text
stringlengths 5
1.04M
|
|---|
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/compiler/xla/service/hlo_cost_analysis.h"
#include <memory>
#include <utility>
#include "tensorflow/compiler/xla/client/client.h"
#include "tensorflow/compiler/xla/client/client_library.h"
#include "tensorflow/compiler/xla/client/computation.h"
#include "tensorflow/compiler/xla/client/computation_builder.h"
#include "tensorflow/compiler/xla/client/local_client.h"
#include "tensorflow/compiler/xla/client/padding.h"
#include "tensorflow/compiler/xla/service/computation_tracker.h"
#include "tensorflow/compiler/xla/service/hlo_module.h"
#include "tensorflow/compiler/xla/service/local_service.h"
#include "tensorflow/compiler/xla/service/service.h"
#include "tensorflow/compiler/xla/service/user_computation.h"
#include "tensorflow/compiler/xla/service/versioned_computation_handle.h"
#include "tensorflow/compiler/xla/shape_util.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/compiler/xla/statusor.h"
#include "tensorflow/compiler/xla/test_helpers.h"
namespace xla {
namespace {
constexpr int64 kPointerSize = 8;
int64 ShapeSize(const Shape& shape) {
return ShapeUtil::ByteSizeOf(shape, kPointerSize);
}
// This test suite tests the HLO cost analysis by first building a computation
// using the client computation builder and running the HloCostAnalysis that
// returns the number of floating point and transcendental operations in the
// graph. We test both individual HLO operations as well as a mixed graph.
class HloCostAnalysisTest : public ::testing::Test {
protected:
HloCostAnalysisTest()
: client_(ClientLibrary::LocalClientOrDie()),
// Accessing service instance is required for the unit tests to enable
// whitebox acccesses to the user computation built from the client,
// as shown in the BuildHloGraph functions below.
service_(static_cast<Service*>(ClientLibrary::GetXlaService(
static_cast<LocalClient*>(client_)->platform()))),
computation_tracker_(service_->computation_tracker()) {
// Create a computation for a unary user function: x => exp(x + 0.5)
{
ComputationBuilder builder(client_, "add_and_exp");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {}), "x");
auto half = builder.ConstantR0<float>(0.5);
builder.Exp(builder.Add(x, half));
auto computation_status = builder.Build();
TF_CHECK_OK(computation_status.status());
add_and_exp_ = computation_status.ConsumeValueOrDie();
}
// Create a computation for a binary user function: (x, y) => x + y
{
ComputationBuilder builder(client_, "add");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {}), "x");
auto y = builder.Parameter(1, ShapeUtil::MakeShape(F32, {}), "y");
builder.Add(x, y);
auto computation_status = builder.Build();
TF_CHECK_OK(computation_status.status());
add_ = computation_status.ConsumeValueOrDie();
}
// Create a computation for a sigmoid function: x => 1 / (1 + exp(-x))
{
ComputationBuilder builder(client_, "sigmoid");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {}), "x");
auto one = builder.ConstantR0<float>(1.0);
builder.Div(one, builder.Add(one, builder.Exp(builder.Neg(x))));
auto computation_status = builder.Build();
TF_CHECK_OK(computation_status.status());
sigmoid_ = computation_status.ConsumeValueOrDie();
}
// Create a computation for a binary max function: (x, y) => max (x, y)
{
ComputationBuilder builder(client_, "max");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {}), "x");
auto y = builder.Parameter(1, ShapeUtil::MakeShape(F32, {}), "y");
builder.Max(x, y);
auto computation_status = builder.Build();
TF_CHECK_OK(computation_status.status());
max_ = computation_status.ConsumeValueOrDie();
}
// Create a computation for a binary GT function: (x, y) => x > y
{
ComputationBuilder builder(client_, "gt");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {}), "x");
auto y = builder.Parameter(1, ShapeUtil::MakeShape(F32, {}), "y");
builder.Gt(x, y);
auto computation_status = builder.Build();
TF_CHECK_OK(computation_status.status());
gt_ = computation_status.ConsumeValueOrDie();
}
}
// Build HLO graph from the given builder and return the HLO module.
std::unique_ptr<HloModule> BuildHloGraph(ComputationBuilder* builder) {
auto computation_status = builder->Build();
TF_CHECK_OK(computation_status.status());
auto computation = computation_status.ConsumeValueOrDie();
auto user_computation_status =
computation_tracker_.Resolve(computation.handle());
TF_CHECK_OK(user_computation_status.status());
auto user_computation = user_computation_status.ConsumeValueOrDie();
VersionedComputationHandle versioned_handle =
user_computation->GetVersionedHandle();
return std::move(computation_tracker_
.BuildHloModule(versioned_handle,
/*config=*/nullptr)
.ValueOrDie());
}
Client* client_;
Service* service_;
const ComputationTracker& computation_tracker_;
// User computations used for higher order operations (e.g., Map, Reduce).
Computation add_;
Computation add_and_exp_;
Computation sigmoid_;
Computation max_;
Computation gt_;
};
TEST_F(HloCostAnalysisTest, MatrixMultiply) {
ComputationBuilder builder(client_, "matrix_multiply");
auto lhs = builder.Parameter(0, ShapeUtil::MakeShape(F32, {10, 5}), "lhs");
auto rhs = builder.Parameter(1, ShapeUtil::MakeShape(F32, {5, 30}), "rhs");
auto result = builder.Dot(lhs, rhs);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// Check the number of computations returned from the analysis (1500 FMAs).
EXPECT_EQ(analysis.flop_count(), 2 * 10 * 30 * 5);
EXPECT_EQ(analysis.transcendental_count(), 0);
// Bytes accessed is sum of inputs and output.
EXPECT_EQ(analysis.bytes_accessed(),
sizeof(float) * (10 * 5 + 5 * 30 + 10 * 30));
}
TEST_F(HloCostAnalysisTest, Map) {
ComputationBuilder builder(client_, "map");
auto input = builder.Parameter(0, ShapeUtil::MakeShape(F32, {10}), "in");
auto result = builder.Map({input}, add_and_exp_);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// add contributes to 10 flops and exp contributes to 10 transcendental ops.
EXPECT_EQ(analysis.flop_count(), 10);
EXPECT_EQ(analysis.transcendental_count(), 10);
EXPECT_EQ(analysis.bytes_accessed(), 80);
}
TEST_F(HloCostAnalysisTest, Convolution) {
ComputationBuilder builder(client_, "convolution");
auto input = builder.Parameter(
0, ShapeUtil::MakeShape(F32, {/*p_dim=*/1, /*z_dim=*/1, /*y_dim=*/10,
/*x_dim=*/20}),
"input");
auto kernel = builder.Parameter(
1, ShapeUtil::MakeShape(F32, {/*p_dim=*/1, /*z_dim=*/1, /*y_dim=*/3,
/*x_dim=*/3}),
"kernel");
auto result = builder.Conv(input, kernel, {1, 1}, Padding::kValid);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// Output shape is [1x1x8x18] and each output element requires (3x3)
// FMAs and one FMA is 2 flops.
EXPECT_EQ(analysis.flop_count(), 8 * 18 * 2 * 3 * 3);
// Bytes accessed is sum of inputs and output.
EXPECT_EQ(analysis.bytes_accessed(),
sizeof(float) * (10 * 20 + 3 * 3 + 8 * 18));
}
TEST_F(HloCostAnalysisTest, Reduce) {
ComputationBuilder builder(client_, "reduce");
auto input =
builder.Parameter(0, ShapeUtil::MakeShape(F32, {10, 20}), "input");
auto result =
builder.Reduce(input, builder.ConstantR0<float>(0.0f), add_, {1});
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// Subtracting the output size from the input size gives the number of
// reduction operations performed.
EXPECT_EQ(analysis.flop_count(), 10 * 20 - 10);
}
TEST_F(HloCostAnalysisTest, ReduceWindow) {
ComputationBuilder builder(client_, "reduce_window");
auto input =
builder.Parameter(0, ShapeUtil::MakeShape(F32, {10, 20}), "input");
auto result = builder.ReduceWindow(input, builder.ConstantR0<float>(0), add_,
{4, 5}, {4, 5}, Padding::kValid);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// Each of [2x4] output elements are generated from reducing [4x5] elements.
EXPECT_EQ(analysis.flop_count(), 2 * 4 * (4 * 5 - 1));
}
TEST_F(HloCostAnalysisTest, SelectAndScatter) {
ComputationBuilder builder(client_, "select_and_scatter");
auto operand =
builder.Parameter(0, ShapeUtil::MakeShape(F32, {10, 20}), "input");
auto source =
builder.Parameter(1, ShapeUtil::MakeShape(F32, {2, 4}), "source");
auto result =
builder.SelectAndScatter(operand, gt_, {4, 5}, {4, 5}, Padding::kValid,
source, builder.ConstantR0<float>(0), add_);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// Each of [2x4] source elements computes its destination from reducing [4x5]
// elements followed by the scatter computation.
EXPECT_EQ(analysis.flop_count(), 2 * 4 * (4 * 5 - 1 + 1));
}
TEST_F(HloCostAnalysisTest, Broadcast) {
ComputationBuilder b(client_, "broadcast");
b.Broadcast(b.ConstantR0<float>(42), {10, 7});
auto hlo_module = BuildHloGraph(&b);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
EXPECT_EQ(analysis.flop_count(), 0);
}
// Calculates the computation cost of a graph with more than one HLO node.
TEST_F(HloCostAnalysisTest, FullyConnectedForward) {
ComputationBuilder builder(client_, "fully_connected_forward");
auto input =
builder.Parameter(0, ShapeUtil::MakeShape(F32, {10, 5}), "input");
auto weight =
builder.Parameter(1, ShapeUtil::MakeShape(F32, {5, 20}), "weight");
auto bias = builder.Parameter(2, ShapeUtil::MakeShape(F32, {20}), "bias");
// sigmoid(input * weight + bias)
auto result = builder.Map(
{builder.Add(builder.Dot(input, weight), bias, {1})}, sigmoid_);
// Run HLO cost analysis.
auto hlo_module = BuildHloGraph(&builder);
HloCostAnalysis analysis(ShapeSize);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
// 1000 FMAs from matrix multiplication, 200 flops from bias addition,
// 600 flops from sigmoid, and 200 transcendental ops from sigmoid.
EXPECT_EQ(analysis.flop_count(), 2 * 1000 + 200 + 3 * 200);
EXPECT_EQ(analysis.transcendental_count(), 200);
}
TEST_F(HloCostAnalysisTest, MatmulAndConvolutionCanBeTheSameComputation) {
HloCostAnalysis conv_analysis(ShapeSize);
{
ComputationBuilder builder(client_, "conv_looking_matmul");
auto lhs = builder.Parameter(0, ShapeUtil::MakeShape(F32, {64, 64, 1, 1}),
"input");
auto rhs = builder.Parameter(1, ShapeUtil::MakeShape(F32, {64, 64, 1, 1}),
"weights");
builder.Conv(lhs, rhs, {1, 1}, Padding::kSame);
auto hlo_module = BuildHloGraph(&builder);
ASSERT_IS_OK(hlo_module->entry_computation()->root_instruction()->Accept(
&conv_analysis));
}
HloCostAnalysis matmul_analysis(ShapeSize);
{
ComputationBuilder builder(client_, "matmul");
auto lhs =
builder.Parameter(0, ShapeUtil::MakeShape(F32, {64, 64}), "input");
auto rhs =
builder.Parameter(1, ShapeUtil::MakeShape(F32, {64, 64}), "weights");
builder.Dot(lhs, rhs);
auto hlo_module = BuildHloGraph(&builder);
ASSERT_IS_OK(hlo_module->entry_computation()->root_instruction()->Accept(
&matmul_analysis));
}
EXPECT_EQ(conv_analysis.flop_count(), matmul_analysis.flop_count());
}
using FusionCostAnalysis = ::testing::Test;
TEST_F(FusionCostAnalysis, LoopFusion) {
Shape r2f32 = ShapeUtil::MakeShape(F32, {2, 2});
// Fuse all instructions in complicated expression:
//
// add = Add(C1, C2)
// clamp = Clamp(C2, add, add)
// exp = Exp(add)
// mul = Mul(exp, C3)
// sub = Sub(mul, clamp)
// tuple = Tuple({sub, sub, mul, C1})
auto c1 = HloInstruction::CreateConstant(LiteralUtil::CreateR2F32Linspace(
/*from=*/0.0f, /*to=*/1.0f, /*rows=*/2, /*cols=*/2));
auto c2 = HloInstruction::CreateConstant(LiteralUtil::CreateR2F32Linspace(
/*from=*/1.0f, /*to=*/2.0f, /*rows=*/2, /*cols=*/2));
auto c3 = HloInstruction::CreateConstant(LiteralUtil::CreateR2F32Linspace(
/*from=*/2.0f, /*to=*/3.0f, /*rows=*/2, /*cols=*/2));
auto add =
HloInstruction::CreateBinary(r2f32, HloOpcode::kAdd, c1.get(), c2.get());
auto clamp = HloInstruction::CreateTernary(r2f32, HloOpcode::kClamp, c2.get(),
add.get(), add.get());
auto exp = HloInstruction::CreateUnary(r2f32, HloOpcode::kExp, add.get());
auto mul = HloInstruction::CreateBinary(r2f32, HloOpcode::kMultiply,
exp.get(), c3.get());
auto sub = HloInstruction::CreateBinary(r2f32, HloOpcode::kSubtract,
mul.get(), clamp.get());
auto tuple =
HloInstruction::CreateTuple({sub.get(), sub.get(), mul.get(), c1.get()});
auto fusion = HloInstruction::CreateFusion(
r2f32, HloInstruction::FusionKind::kLoop, tuple.get());
fusion->FuseInstruction(sub.get());
fusion->FuseInstruction(mul.get());
fusion->FuseInstruction(exp.get());
fusion->FuseInstruction(clamp.get());
fusion->FuseInstruction(add.get());
HloCostAnalysis fusion_analysis(ShapeSize);
ASSERT_IS_OK(fusion->Accept(&fusion_analysis));
EXPECT_EQ(fusion_analysis.flop_count(), 16);
EXPECT_EQ(fusion_analysis.transcendental_count(), 4);
}
TEST_F(FusionCostAnalysis, NoLayout) {
Shape shape_with_layout = ShapeUtil::MakeShape(F32, {2, 3, 4, 5});
// Instructions within a fused op may have no layout.
Shape shape_without_layout = shape_with_layout;
shape_without_layout.clear_layout();
auto c1 = HloInstruction::CreateConstant(
LiteralUtil::CreateR4FromArray4D(Array4D<float>(2, 3, 4, 5)));
auto c2 =
HloInstruction::CreateConstant(LiteralUtil::CreateR1<float>({1, 2, 3}));
auto broadcast =
HloInstruction::CreateBroadcast(shape_without_layout, c2.get(), {1});
auto add = HloInstruction::CreateBinary(shape_with_layout, HloOpcode::kAdd,
c1.get(), broadcast.get());
auto fusion = HloInstruction::CreateFusion(
shape_with_layout, HloInstruction::FusionKind::kLoop, add.get());
fusion->FuseInstruction(broadcast.get());
HloCostAnalysis fusion_analysis(ShapeSize);
ASSERT_IS_OK(fusion->Accept(&fusion_analysis));
EXPECT_EQ(fusion_analysis.flop_count(), 120);
EXPECT_EQ(fusion_analysis.transcendental_count(), 0);
}
TEST_F(HloCostAnalysisTest, TupleCost) {
HloCostAnalysis analysis(ShapeSize);
{
ComputationBuilder builder(client_, "matmul");
auto x = builder.Parameter(0, ShapeUtil::MakeShape(F32, {123}), "x");
auto y = builder.Parameter(1, ShapeUtil::MakeShape(F32, {42}), "y");
auto tuple = builder.Tuple({x, y});
auto hlo_module = BuildHloGraph(&builder);
ASSERT_IS_OK(
hlo_module->entry_computation()->root_instruction()->Accept(&analysis));
}
EXPECT_EQ(analysis.flop_count(), 0);
EXPECT_EQ(analysis.transcendental_count(), 0);
EXPECT_EQ(analysis.bytes_accessed(), kPointerSize * 2);
}
} // namespace
} // namespace xla
|
// material.hpp
// defines a PBR material
#pragma once
#include "texture.hpp"
struct material
{
texture albedoMap;
texture normalMap;
texture metallicMap;
texture roughnessMap;
texture ambientOcclusionMap;
};
|
// Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2017 The SIQS developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiondescdialog.h"
#include "guiutil.h"
#include "ui_transactiondescdialog.h"
#include "transactiontablemodel.h"
#include <QModelIndex>
#include <QSettings>
#include <QString>
TransactionDescDialog::TransactionDescDialog(const QModelIndex& idx, QWidget* parent) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint),
ui(new Ui::TransactionDescDialog)
{
ui->setupUi(this);
/* Open CSS when configured */
this->setStyleSheet(GUIUtil::loadStyleSheet());
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
ui->detailText->setHtml(desc);
}
TransactionDescDialog::~TransactionDescDialog()
{
delete ui;
}
|
/**
* \file FEMCondition.cpp
* 25/11/2010 KR initial implementation
*
* \copyright
* Copyright (c) 2015, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include "FEMCondition.h"
#include "ProcessInfo.h"
#include "GEOObjects.h" //for SourceTerm
#include "GridAdapter.h"
FEMCondition::FEMCondition(const std::string& geometry_name, CondType t)
: _type(t), _geoName("[unspecified]"), _associated_geometry(geometry_name)
{
this->setProcessType(FiniteElement::INVALID_PROCESS);
this->setProcessPrimaryVariable(FiniteElement::INVALID_PV);
this->setGeoType(GEOLIB::INVALID);
this->setProcessDistributionType(FiniteElement::INVALID_DIS_TYPE);
}
FEMCondition::FEMCondition(const std::string& geometry_name, FiniteElement::ProcessType pt,
FiniteElement::PrimaryVariable pv, GEOLIB::GEOTYPE gt, const std::string& gn,
FiniteElement::DistributionType dt, CondType ct)
: ProcessInfo(pt, pv, NULL), GeoInfo(gt, NULL), DistributionInfo(dt), _type(ct), _geoName(gn),
_associated_geometry(geometry_name)
{
}
FEMCondition::FEMCondition(const FEMCondition& cond, CondType t)
: ProcessInfo(cond.getProcessType(), cond.getProcessPrimaryVariable(), NULL),
GeoInfo(cond.getGeoType(), cond.getGeoObj()), DistributionInfo(cond.getProcessDistributionType()), _type(t),
_geoName(cond.getGeoName()), _disNodes(cond.getDisNodes()), _disValues(cond.getDisValues()),
_associated_geometry(cond.getAssociatedGeometryName())
{
}
std::string FEMCondition::condTypeToString(CondType type)
{
if (type == FEMCondition::BOUNDARY_CONDITION)
return "Boundary Conditions";
else if (type == FEMCondition::INITIAL_CONDITION)
return "Initial Conditions";
else if (type == FEMCondition::SOURCE_TERM)
return "Source Terms";
else
return "Unspecified";
}
void FEMCondition::setDisValues(const std::vector<std::pair<size_t, double> >& dis_values)
{
std::vector<size_t> nodes;
std::vector<double> values;
for (size_t i = 0; i < dis_values.size(); i++)
{
nodes.push_back(dis_values[i].first);
values.push_back(dis_values[i].second);
}
this->_disNodes = nodes;
this->_disValues = values;
}
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletdb.h"
#include "base58.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"
#include "wallet.h"
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
using namespace std;
using namespace boost;
static uint64_t nAccountingEntryNumber = 0;
extern bool fWalletUnlockStakingOnly;
//
// CWalletDB
//
bool CWalletDB::WriteName(const string& strAddress, const string& strName)
{
nWalletDBUpdated++;
return Write(make_pair(string("name"), strAddress), strName);
}
bool CWalletDB::EraseName(const string& strAddress)
{
// This should only be used for sending addresses, never for receiving addresses,
// receiving addresses must always have an address book entry if they're not change return.
nWalletDBUpdated++;
return Erase(make_pair(string("name"), strAddress));
}
bool CWalletDB::WriteTx(uint256 hash, const CWalletTx& wtx)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("tx"), hash), wtx);
}
bool CWalletDB::EraseTx(uint256 hash)
{
nWalletDBUpdated++;
return Erase(std::make_pair(std::string("tx"), hash));
}
bool CWalletDB::WriteStealthKeyMeta(const CKeyID& keyId, const CStealthKeyMetadata& sxKeyMeta)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("sxKeyMeta"), keyId), sxKeyMeta, true);
}
bool CWalletDB::EraseStealthKeyMeta(const CKeyID& keyId)
{
nWalletDBUpdated++;
return Erase(std::make_pair(std::string("sxKeyMeta"), keyId));
}
bool CWalletDB::WriteStealthAddress(const CStealthAddress& sxAddr)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("sxAddr"), sxAddr.scan_pubkey), sxAddr, true);
}
bool CWalletDB::ReadStealthAddress(CStealthAddress& sxAddr)
{
// -- set scan_pubkey before reading
return Read(std::make_pair(std::string("sxAddr"), sxAddr.scan_pubkey), sxAddr);
}
bool CWalletDB::WriteKey(const CPubKey& vchPubKey, const CPrivKey& vchPrivKey, const CKeyMetadata& keyMeta)
{
nWalletDBUpdated++;
if (!Write(std::make_pair(std::string("keymeta"), vchPubKey),
keyMeta, false))
return false;
// hash pubkey/privkey to accelerate wallet load
std::vector<unsigned char> vchKey;
vchKey.reserve(vchPubKey.size() + vchPrivKey.size());
vchKey.insert(vchKey.end(), vchPubKey.begin(), vchPubKey.end());
vchKey.insert(vchKey.end(), vchPrivKey.begin(), vchPrivKey.end());
return Write(std::make_pair(std::string("key"), vchPubKey), std::make_pair(vchPrivKey, Hash(vchKey.begin(), vchKey.end())), false);
}
bool CWalletDB::WriteCryptedKey(const CPubKey& vchPubKey,
const std::vector<unsigned char>& vchCryptedSecret,
const CKeyMetadata &keyMeta)
{
const bool fEraseUnencryptedKey = true;
nWalletDBUpdated++;
if (!Write(std::make_pair(std::string("keymeta"), vchPubKey),
keyMeta))
return false;
if (!Write(std::make_pair(std::string("ckey"), vchPubKey), vchCryptedSecret, false))
return false;
if (fEraseUnencryptedKey)
{
Erase(std::make_pair(std::string("key"), vchPubKey));
Erase(std::make_pair(std::string("wkey"), vchPubKey));
}
return true;
}
bool CWalletDB::WriteMasterKey(unsigned int nID, const CMasterKey& kMasterKey)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("mkey"), nID), kMasterKey, true);
}
bool CWalletDB::WriteCScript(const uint160& hash, const CScript& redeemScript)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("cscript"), hash), redeemScript, false);
}
bool CWalletDB::WriteWatchOnly(const CScript &dest)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("watchs"), dest), '1');
}
bool CWalletDB::EraseWatchOnly(const CScript &dest)
{
nWalletDBUpdated++;
return Erase(std::make_pair(std::string("watchs"), dest));
}
bool CWalletDB::WriteBestBlock(const CBlockLocator& locator)
{
nWalletDBUpdated++;
return Write(std::string("bestblock"), locator);
}
bool CWalletDB::ReadBestBlock(CBlockLocator& locator)
{
return Read(std::string("bestblock"), locator);
}
bool CWalletDB::WriteOrderPosNext(int64_t nOrderPosNext)
{
nWalletDBUpdated++;
return Write(std::string("orderposnext"), nOrderPosNext);
}
bool CWalletDB::WriteDefaultKey(const CPubKey& vchPubKey)
{
nWalletDBUpdated++;
return Write(std::string("defaultkey"), vchPubKey);
}
bool CWalletDB::ReadPool(int64_t nPool, CKeyPool& keypool)
{
return Read(std::make_pair(std::string("pool"), nPool), keypool);
}
bool CWalletDB::WritePool(int64_t nPool, const CKeyPool& keypool)
{
nWalletDBUpdated++;
return Write(std::make_pair(std::string("pool"), nPool), keypool);
}
bool CWalletDB::ErasePool(int64_t nPool)
{
nWalletDBUpdated++;
return Erase(std::make_pair(std::string("pool"), nPool));
}
bool CWalletDB::WriteMinVersion(int nVersion)
{
return Write(std::string("minversion"), nVersion);
}
bool CWalletDB::ReadAccount(const string& strAccount, CAccount& account)
{
account.SetNull();
return Read(make_pair(string("acc"), strAccount), account);
}
bool CWalletDB::WriteAccount(const string& strAccount, const CAccount& account)
{
return Write(make_pair(string("acc"), strAccount), account);
}
bool CWalletDB::WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry)
{
return Write(boost::make_tuple(string("acentry"), acentry.strAccount, nAccEntryNum), acentry);
}
bool CWalletDB::WriteAccountingEntry_Backend(const CAccountingEntry& acentry)
{
return WriteAccountingEntry(++nAccountingEntryNumber, acentry);
}
int64_t CWalletDB::GetAccountCreditDebit(const string& strAccount)
{
list<CAccountingEntry> entries;
ListAccountCreditDebit(strAccount, entries);
int64_t nCreditDebit = 0;
BOOST_FOREACH (const CAccountingEntry& entry, entries)
nCreditDebit += entry.nCreditDebit;
return nCreditDebit;
}
void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries)
{
bool fAllAccounts = (strAccount == "*");
Dbc* pcursor = GetCursor();
if (!pcursor)
throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor");
unsigned int fFlags = DB_SET_RANGE;
while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
if (fFlags == DB_SET_RANGE)
ssKey << boost::make_tuple(string("acentry"), (fAllAccounts? string("") : strAccount), uint64_t(0));
CDataStream ssValue(SER_DISK, CLIENT_VERSION);
int ret = ReadAtCursor(pcursor, ssKey, ssValue, fFlags);
fFlags = DB_NEXT;
if (ret == DB_NOTFOUND)
break;
else if (ret != 0)
{
pcursor->close();
throw runtime_error("CWalletDB::ListAccountCreditDebit() : error scanning DB");
}
// Unserialize
string strType;
ssKey >> strType;
if (strType != "acentry")
break;
CAccountingEntry acentry;
ssKey >> acentry.strAccount;
if (!fAllAccounts && acentry.strAccount != strAccount)
break;
ssValue >> acentry;
ssKey >> acentry.nEntryNo;
entries.push_back(acentry);
}
pcursor->close();
}
DBErrors
CWalletDB::ReorderTransactions(CWallet* pwallet)
{
LOCK(pwallet->cs_wallet);
// Old wallets didn't have any defined order for transactions
// Probably a bad idea to change the output of this
// First: get all CWalletTx and CAccountingEntry into a sorted-by-time multimap.
typedef pair<CWalletTx*, CAccountingEntry*> TxPair;
typedef multimap<int64_t, TxPair > TxItems;
TxItems txByTime;
for (map<uint256, CWalletTx>::iterator it = pwallet->mapWallet.begin(); it != pwallet->mapWallet.end(); ++it)
{
CWalletTx* wtx = &((*it).second);
txByTime.insert(make_pair(wtx->nTimeReceived, TxPair(wtx, (CAccountingEntry*)0)));
}
list<CAccountingEntry> acentries;
ListAccountCreditDebit("", acentries);
BOOST_FOREACH(CAccountingEntry& entry, acentries)
{
txByTime.insert(make_pair(entry.nTime, TxPair((CWalletTx*)0, &entry)));
}
int64_t& nOrderPosNext = pwallet->nOrderPosNext;
nOrderPosNext = 0;
std::vector<int64_t> nOrderPosOffsets;
for (TxItems::iterator it = txByTime.begin(); it != txByTime.end(); ++it)
{
CWalletTx *const pwtx = (*it).second.first;
CAccountingEntry *const pacentry = (*it).second.second;
int64_t& nOrderPos = (pwtx != 0) ? pwtx->nOrderPos : pacentry->nOrderPos;
if (nOrderPos == -1)
{
nOrderPos = nOrderPosNext++;
nOrderPosOffsets.push_back(nOrderPos);
if (pwtx)
{
if (!WriteTx(pwtx->GetHash(), *pwtx))
return DB_LOAD_FAIL;
}
else
if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry))
return DB_LOAD_FAIL;
}
else
{
int64_t nOrderPosOff = 0;
BOOST_FOREACH(const int64_t& nOffsetStart, nOrderPosOffsets)
{
if (nOrderPos >= nOffsetStart)
++nOrderPosOff;
}
nOrderPos += nOrderPosOff;
nOrderPosNext = std::max(nOrderPosNext, nOrderPos + 1);
if (!nOrderPosOff)
continue;
// Since we're changing the order, write it back
if (pwtx)
{
if (!WriteTx(pwtx->GetHash(), *pwtx))
return DB_LOAD_FAIL;
}
else
if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry))
return DB_LOAD_FAIL;
}
}
WriteOrderPosNext(nOrderPosNext);
return DB_LOAD_OK;
}
class CWalletScanState {
public:
unsigned int nKeys;
unsigned int nCKeys;
unsigned int nKeyMeta;
bool fIsEncrypted;
bool fAnyUnordered;
int nFileVersion;
vector<uint256> vWalletUpgrade;
CWalletScanState() {
nKeys = nCKeys = nKeyMeta = 0;
fIsEncrypted = false;
fAnyUnordered = false;
nFileVersion = 0;
}
};
bool
ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
CWalletScanState &wss, string& strType, string& strErr)
{
try {
// Unserialize
// Taking advantage of the fact that pair serialization
// is just the two items serialized one after the other
ssKey >> strType;
if (strType == "name")
{
string strAddress;
ssKey >> strAddress;
ssValue >> pwallet->mapAddressBook[CMoneyBytecoinAddress(strAddress).Get()];
}
else if (strType == "tx")
{
uint256 hash;
ssKey >> hash;
CWalletTx& wtx = pwallet->mapWallet[hash];
ssValue >> wtx;
if (!(wtx.CheckTransaction() && (wtx.GetHash() == hash)))
return false;
// Undo serialize changes in 31600
if (31404 <= wtx.fTimeReceivedIsTxTime && wtx.fTimeReceivedIsTxTime <= 31703)
{
if (!ssValue.empty())
{
char fTmp;
char fUnused;
ssValue >> fTmp >> fUnused >> wtx.strFromAccount;
strErr = strprintf("LoadWallet() upgrading tx ver=%d %d '%s' %s",
wtx.fTimeReceivedIsTxTime, fTmp, wtx.strFromAccount, hash.ToString());
wtx.fTimeReceivedIsTxTime = fTmp;
}
else
{
strErr = strprintf("LoadWallet() repairing tx ver=%d %s", wtx.fTimeReceivedIsTxTime, hash.ToString());
wtx.fTimeReceivedIsTxTime = 0;
}
wss.vWalletUpgrade.push_back(hash);
}
if (wtx.nOrderPos == -1)
wss.fAnyUnordered = true;
pwallet->AddToWallet(wtx, true);
//// debug print
//LogPrintf("LoadWallet %s\n", wtx.GetHash().ToString());
//LogPrintf(" %12d %s %s %s\n",
// wtx.vout[0].nValue,
// DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()),
// wtx.hashBlock.ToString(),
// wtx.mapValue["message"]);
}
else if (strType == "sxAddr")
{
if (fDebug)
printf("WalletDB ReadKeyValue sxAddr\n");
CStealthAddress sxAddr;
ssValue >> sxAddr;
pwallet->stealthAddresses.insert(sxAddr);
}
else if (strType == "acentry")
{
string strAccount;
ssKey >> strAccount;
uint64_t nNumber;
ssKey >> nNumber;
if (nNumber > nAccountingEntryNumber)
nAccountingEntryNumber = nNumber;
if (!wss.fAnyUnordered)
{
CAccountingEntry acentry;
ssValue >> acentry;
if (acentry.nOrderPos == -1)
wss.fAnyUnordered = true;
}
}
else if (strType == "watchs")
{
CScript script;
ssKey >> script;
char fYes;
ssValue >> fYes;
if (fYes == '1')
pwallet->LoadWatchOnly(script);
// Watch-only addresses have no birthday information for now,
// so set the wallet birthday to the beginning of time.
pwallet->nTimeFirstKey = 1;
}
else if (strType == "key" || strType == "wkey")
{
CPubKey vchPubKey;
ssKey >> vchPubKey;
if (!vchPubKey.IsValid())
{
strErr = "Error reading wallet database: CPubKey corrupt";
return false;
}
CKey key;
CPrivKey pkey;
uint256 hash = 0;
if (strType == "key")
{
wss.nKeys++;
ssValue >> pkey;
} else {
CWalletKey wkey;
ssValue >> wkey;
pkey = wkey.vchPrivKey;
}
// Old wallets store keys as "key" [pubkey] => [privkey]
// ... which was slow for wallets with lots of keys, because the public key is re-derived from the private key
// using EC operations as a checksum.
// Newer wallets store keys as "key"[pubkey] => [privkey][hash(pubkey,privkey)], which is much faster while
// remaining backwards-compatible.
try
{
ssValue >> hash;
}
catch(...){}
bool fSkipCheck = false;
if (hash != 0)
{
// hash pubkey/privkey to accelerate wallet load
std::vector<unsigned char> vchKey;
vchKey.reserve(vchPubKey.size() + pkey.size());
vchKey.insert(vchKey.end(), vchPubKey.begin(), vchPubKey.end());
vchKey.insert(vchKey.end(), pkey.begin(), pkey.end());
if (Hash(vchKey.begin(), vchKey.end()) != hash)
{
strErr = "Error reading wallet database: CPubKey/CPrivKey corrupt";
return false;
}
fSkipCheck = true;
}
if (!key.Load(pkey, vchPubKey, fSkipCheck))
{
strErr = "Error reading wallet database: CPrivKey corrupt";
return false;
}
if (!pwallet->LoadKey(key, vchPubKey))
{
strErr = "Error reading wallet database: LoadKey failed";
return false;
}
}
else if (strType == "mkey")
{
unsigned int nID;
ssKey >> nID;
CMasterKey kMasterKey;
ssValue >> kMasterKey;
if(pwallet->mapMasterKeys.count(nID) != 0)
{
strErr = strprintf("Error reading wallet database: duplicate CMasterKey id %u", nID);
return false;
}
pwallet->mapMasterKeys[nID] = kMasterKey;
if (pwallet->nMasterKeyMaxID < nID)
pwallet->nMasterKeyMaxID = nID;
}
else if (strType == "ckey")
{
wss.nCKeys++;
vector<unsigned char> vchPubKey;
ssKey >> vchPubKey;
vector<unsigned char> vchPrivKey;
ssValue >> vchPrivKey;
if (!pwallet->LoadCryptedKey(vchPubKey, vchPrivKey))
{
strErr = "Error reading wallet database: LoadCryptedKey failed";
return false;
}
wss.fIsEncrypted = true;
}
else if (strType == "keymeta")
{
CPubKey vchPubKey;
ssKey >> vchPubKey;
CKeyMetadata keyMeta;
ssValue >> keyMeta;
wss.nKeyMeta++;
pwallet->LoadKeyMetadata(vchPubKey, keyMeta);
// find earliest key creation time, as wallet birthday
if (!pwallet->nTimeFirstKey ||
(keyMeta.nCreateTime < pwallet->nTimeFirstKey))
pwallet->nTimeFirstKey = keyMeta.nCreateTime;
}
else if (strType == "sxKeyMeta")
{
if (fDebug)
printf("WalletDB ReadKeyValue sxKeyMeta\n");
CKeyID keyId;
ssKey >> keyId;
CStealthKeyMetadata sxKeyMeta;
ssValue >> sxKeyMeta;
pwallet->mapStealthKeyMeta[keyId] = sxKeyMeta;
}
else if (strType == "defaultkey")
{
ssValue >> pwallet->vchDefaultKey;
}
else if (strType == "pool")
{
int64_t nIndex;
ssKey >> nIndex;
CKeyPool keypool;
ssValue >> keypool;
pwallet->setKeyPool.insert(nIndex);
// If no metadata exists yet, create a default with the pool key's
// creation time. Note that this may be overwritten by actually
// stored metadata for that key later, which is fine.
CKeyID keyid = keypool.vchPubKey.GetID();
if (pwallet->mapKeyMetadata.count(keyid) == 0)
pwallet->mapKeyMetadata[keyid] = CKeyMetadata(keypool.nTime);
}
else if (strType == "version")
{
ssValue >> wss.nFileVersion;
if (wss.nFileVersion == 10300)
wss.nFileVersion = 300;
}
else if (strType == "cscript")
{
uint160 hash;
ssKey >> hash;
CScript script;
ssValue >> script;
if (!pwallet->LoadCScript(script))
{
strErr = "Error reading wallet database: LoadCScript failed";
return false;
}
}
else if (strType == "orderposnext")
{
ssValue >> pwallet->nOrderPosNext;
}
} catch (...)
{
return false;
}
return true;
}
static bool IsKeyType(string strType)
{
return (strType== "key" || strType == "wkey" ||
strType == "mkey" || strType == "ckey");
}
DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
{
pwallet->vchDefaultKey = CPubKey();
CWalletScanState wss;
bool fNoncriticalErrors = false;
DBErrors result = DB_LOAD_OK;
try {
LOCK(pwallet->cs_wallet);
int nMinVersion = 0;
if (Read((string)"minversion", nMinVersion))
{
if (nMinVersion > CLIENT_VERSION)
return DB_TOO_NEW;
pwallet->LoadMinVersion(nMinVersion);
}
// Get cursor
Dbc* pcursor = GetCursor();
if (!pcursor)
{
LogPrintf("Error getting wallet database cursor\n");
return DB_CORRUPT;
}
while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
CDataStream ssValue(SER_DISK, CLIENT_VERSION);
int ret = ReadAtCursor(pcursor, ssKey, ssValue);
if (ret == DB_NOTFOUND)
break;
else if (ret != 0)
{
LogPrintf("Error reading next record from wallet database\n");
return DB_CORRUPT;
}
// Try to be tolerant of single corrupt records:
string strType, strErr;
if (!ReadKeyValue(pwallet, ssKey, ssValue, wss, strType, strErr))
{
// losing keys is considered a catastrophic error, anything else
// we assume the user can live with:
if (IsKeyType(strType))
result = DB_CORRUPT;
else
{
// Leave other errors alone, if we try to fix them we might make things worse.
fNoncriticalErrors = true; // ... but do warn the user there is something wrong.
if (strType == "tx")
// Rescan if there is a bad transaction record:
SoftSetBoolArg("-rescan", true);
}
}
if (!strErr.empty())
LogPrintf("%s\n", strErr);
}
pcursor->close();
}
catch (boost::thread_interrupted) {
throw;
}
catch (...) {
result = DB_CORRUPT;
}
if (fNoncriticalErrors && result == DB_LOAD_OK)
result = DB_NONCRITICAL_ERROR;
// Any wallet corruption at all: skip any rewriting or
// upgrading, we don't want to make it worse.
if (result != DB_LOAD_OK)
return result;
LogPrintf("nFileVersion = %d\n", wss.nFileVersion);
LogPrintf("Keys: %u plaintext, %u encrypted, %u w/ metadata, %u total\n",
wss.nKeys, wss.nCKeys, wss.nKeyMeta, wss.nKeys + wss.nCKeys);
// nTimeFirstKey is only reliable if all keys have metadata
if ((wss.nKeys + wss.nCKeys) != wss.nKeyMeta)
pwallet->nTimeFirstKey = 1; // 0 would be considered 'no value'
BOOST_FOREACH(uint256 hash, wss.vWalletUpgrade)
WriteTx(hash, pwallet->mapWallet[hash]);
// Rewrite encrypted wallets of versions 0.4.0 and 0.5.0rc:
if (wss.fIsEncrypted && (wss.nFileVersion == 40000 || wss.nFileVersion == 50000))
return DB_NEED_REWRITE;
if (wss.nFileVersion < CLIENT_VERSION) // Update
WriteVersion(CLIENT_VERSION);
if (wss.fAnyUnordered)
result = ReorderTransactions(pwallet);
pwallet->laccentries.clear();
ListAccountCreditDebit("*", pwallet->laccentries);
BOOST_FOREACH(CAccountingEntry& entry, pwallet->laccentries) {
pwallet->wtxOrdered.insert(make_pair(entry.nOrderPos, CWallet::TxPair((CWalletTx*)0, &entry)));
}
return result;
}
void ThreadFlushWalletDB(const string& strFile)
{
// Make this thread recognisable as the wallet flushing thread
RenameThread("MoneyByte-wallet");
static bool fOneThread;
if (fOneThread)
return;
fOneThread = true;
if (!GetBoolArg("-flushwallet", true))
return;
unsigned int nLastSeen = nWalletDBUpdated;
unsigned int nLastFlushed = nWalletDBUpdated;
int64_t nLastWalletUpdate = GetTime();
while (true)
{
MilliSleep(500);
if (nLastSeen != nWalletDBUpdated)
{
nLastSeen = nWalletDBUpdated;
nLastWalletUpdate = GetTime();
}
if (nLastFlushed != nWalletDBUpdated && GetTime() - nLastWalletUpdate >= 2)
{
TRY_LOCK(bitdb.cs_db,lockDb);
if (lockDb)
{
// Don't do this if any databases are in use
int nRefCount = 0;
map<string, int>::iterator mi = bitdb.mapFileUseCount.begin();
while (mi != bitdb.mapFileUseCount.end())
{
nRefCount += (*mi).second;
mi++;
}
if (nRefCount == 0)
{
boost::this_thread::interruption_point();
map<string, int>::iterator mi = bitdb.mapFileUseCount.find(strFile);
if (mi != bitdb.mapFileUseCount.end())
{
LogPrint("db", "Flushing wallet.dat\n");
nLastFlushed = nWalletDBUpdated;
int64_t nStart = GetTimeMillis();
// Flush wallet.dat so it's self contained
bitdb.CloseDb(strFile);
bitdb.CheckpointLSN(strFile);
bitdb.mapFileUseCount.erase(mi++);
LogPrint("db", "Flushed wallet.dat %dms\n", GetTimeMillis() - nStart);
}
}
}
}
}
}
bool BackupWallet(const CWallet& wallet, const string& strDest)
{
if (!wallet.fFileBacked)
return false;
while (true)
{
{
LOCK(bitdb.cs_db);
if (!bitdb.mapFileUseCount.count(wallet.strWalletFile) || bitdb.mapFileUseCount[wallet.strWalletFile] == 0)
{
// Flush log data to the dat file
bitdb.CloseDb(wallet.strWalletFile);
bitdb.CheckpointLSN(wallet.strWalletFile);
bitdb.mapFileUseCount.erase(wallet.strWalletFile);
// Copy wallet.dat
filesystem::path pathSrc = GetDataDir() / wallet.strWalletFile;
filesystem::path pathDest(strDest);
if (filesystem::is_directory(pathDest))
pathDest /= wallet.strWalletFile;
try {
#if BOOST_VERSION >= 104000
filesystem::copy_file(pathSrc, pathDest, filesystem::copy_option::overwrite_if_exists);
#else
filesystem::copy_file(pathSrc, pathDest);
#endif
LogPrintf("copied wallet.dat to %s\n", pathDest.string());
return true;
} catch(const filesystem::filesystem_error &e) {
LogPrintf("error copying wallet.dat to %s - %s\n", pathDest.string(), e.what());
return false;
}
}
}
MilliSleep(100);
}
return false;
}
//
// Try to (very carefully!) recover wallet.dat if there is a problem.
//
bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys)
{
// Recovery procedure:
// move wallet.dat to wallet.timestamp.bak
// Call Salvage with fAggressive=true to
// get as much data as possible.
// Rewrite salvaged data to wallet.dat
// Set -rescan so any missing transactions will be
// found.
int64_t now = GetTime();
std::string newFilename = strprintf("wallet.%d.bak", now);
int result = dbenv.dbenv.dbrename(NULL, filename.c_str(), NULL,
newFilename.c_str(), DB_AUTO_COMMIT);
if (result == 0)
LogPrintf("Renamed %s to %s\n", filename, newFilename);
else
{
LogPrintf("Failed to rename %s to %s\n", filename, newFilename);
return false;
}
std::vector<CDBEnv::KeyValPair> salvagedData;
bool allOK = dbenv.Salvage(newFilename, true, salvagedData);
if (salvagedData.empty())
{
LogPrintf("Salvage(aggressive) found no records in %s.\n", newFilename);
return false;
}
LogPrintf("Salvage(aggressive) found %u records\n", salvagedData.size());
bool fSuccess = allOK;
Db* pdbCopy = new Db(&dbenv.dbenv, 0);
int ret = pdbCopy->open(NULL, // Txn pointer
filename.c_str(), // Filename
"main", // Logical db name
DB_BTREE, // Database type
DB_CREATE, // Flags
0);
if (ret > 0)
{
LogPrintf("Cannot create database file %s\n", filename);
return false;
}
CWallet dummyWallet;
CWalletScanState wss;
DbTxn* ptxn = dbenv.TxnBegin();
BOOST_FOREACH(CDBEnv::KeyValPair& row, salvagedData)
{
if (fOnlyKeys)
{
CDataStream ssKey(row.first, SER_DISK, CLIENT_VERSION);
CDataStream ssValue(row.second, SER_DISK, CLIENT_VERSION);
string strType, strErr;
bool fReadOK = ReadKeyValue(&dummyWallet, ssKey, ssValue,
wss, strType, strErr);
if (!IsKeyType(strType))
continue;
if (!fReadOK)
{
LogPrintf("WARNING: CWalletDB::Recover skipping %s: %s\n", strType, strErr);
continue;
}
}
Dbt datKey(&row.first[0], row.first.size());
Dbt datValue(&row.second[0], row.second.size());
int ret2 = pdbCopy->put(ptxn, &datKey, &datValue, DB_NOOVERWRITE);
if (ret2 > 0)
fSuccess = false;
}
ptxn->commit(0);
pdbCopy->close(0);
delete pdbCopy;
return fSuccess;
}
bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename)
{
return CWalletDB::Recover(dbenv, filename, false);
}
|
#ifndef Board_hpp
#define Board_hpp
#include "Param.hpp"
#include "Point.hpp"
#include "Line.hpp"
#include "WeightQueue.hpp"
#include <string>
#define LOG_NOTHING 0 //什么都不输出
#define LOG_RESULT 1 //只输出结果
#define LOG_PROGRESS 2 //输出进度
#define LOG_TRY 3 //输出每一次尝试
#define LOG_ROUND 4 //输出每一轮的情况
#define LOG_STEP 5 //输出每一个点的改变
#define DISPLAY_NOTHING 0 //从不输出结果盘面
#define DISPLAY_RESULT 1 //只输出结果盘面
#define DISPLAY_TRY 2 //在每次莽之前都输出盘面
#define DISPLAY_ROUND 3 //每行/列上运算成功之后都输出盘面
/**
棋盘
*/
class Board
{
public:
//构造函数
Board(const ParamListCollection & col_params, const ParamListCollection & row_params, int log_level, int display_level);
//拷贝构造
Board(const Board &);
//析构
virtual ~Board();
//赋值运算符
Board & operator=(const Board &);
private:
//建立基本的Point矩阵和Line列表,并置于初始状态
void init();
//释放资源
void free();
//复制内容
void copy(const Board &);
public:
//使用参数来初始化
// void install(const ParamListCollection & col_params, const ParamListCollection & row_params);
//强行设定某Point
void install(LENGTH_T row, LENGTH_T col, VALUE_T value);
public:
//走棋
//返回true代表能走的都已经走完了
//返回false代表发现逻辑冲突了
bool play();
public:
//是否已经完成
bool isDone() const;
//是否已经失败
bool isError() const;
//随机找一个不确定点,生成多种可能性
std::vector<Board *> createCandidates() const;
private:
//基于某点生成多种可能性
std::vector<Board *> createCandidates(LENGTH_T row, LENGTH_T col) const;
public:
//获得特定位置的点的值
VALUE_T value(LENGTH_T row, LENGTH_T col) const;
//value的马甲
inline
VALUE_T getValue(LENGTH_T row, LENGTH_T col) const {
return value(row, col);
}
public:
//点被改变的回调
void point_change_callback(LENGTH_T row, LENGTH_T col, VALUE_T value);
private:
Point ** _points; //所有Point
std::map<long, Line *> _lines; //所有行/列
WeightQueue _todo; //待分析的行/列
const ParamListCollection * _params_of_cols; //运行列参数
const ParamListCollection * _params_of_rows; //运行行参数
private:
//从行列号获得点的实际位置
inline
LENGTH2_T _index(LENGTH_T row, LENGTH_T col) const {
return row * col_size() + col;
}
//归一化行号/列号
inline
long _col_id(LENGTH_T col) const {
return -col - 1;
}
//归一化行号/列号
inline
long _row_id(LENGTH_T row) const {
return row + 1;
}
public:
//行数量
inline
LENGTH_T row_size() const {
return _params_of_rows->size();
}
//列数量
inline
LENGTH_T col_size() const {
return _params_of_cols->size();
}
public:
//棋盘id
inline
const char * id() const {
return _id.c_str();
}
//输出结果
// output 输出到哪个文件流 默认stdout
// head 是否输出棋盘标题 默认不输出
void print(FILE * output = stdout, bool head = false) const;
//日志等级
inline
int log_level() const {
return _log_level;
}
//显示等级
inline
int display_level() const {
return _display_level;
}
private:
std::string _id; //棋盘id
int _log_level; //日志等级
int _display_level; //显示等级
public:
//棋盘中有多少确定点
SIZE_T known() const;
};
#endif
|
#ifdef PEGASUS_OS_TRU64
#ifndef __UNIX_HEADTAILDROPPER_PRIVATE_H
#define __UNIX_HEADTAILDROPPER_PRIVATE_H
#endif
#endif
|
//$Id$
//------------------------------------------------------------------------------
// OrbitRaisingPathObject
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2020 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration.
// All Other Rights Reserved.
//
// Author: Wendy Shoan
// Created: 2016.05.25
//
/**
* Developed based on OrbitRaisingPathObject.m
*/
//------------------------------------------------------------------------------
#ifndef OrbitRaisingPathObject_hpp
#define OrbitRaisingPathObject_hpp
#include "UserPathFunction.hpp"
/**
* OrbitRaisingPathObject class
*/
class OrbitRaisingPathObject : public UserPathFunction
{
public:
/// default constructor
OrbitRaisingPathObject();
/// copy constructor
OrbitRaisingPathObject(const OrbitRaisingPathObject ©);
/// operator=
OrbitRaisingPathObject& operator=(const OrbitRaisingPathObject ©);
/// default destructor
virtual ~OrbitRaisingPathObject();
/// EvaluateFunctions
void EvaluateFunctions();
/// EvaluateJacobians
void EvaluateJacobians();
protected:
};
#endif // OrbitRaisingPathObject_hpp
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <folly/FileUtil.h>
#include <cerrno>
#include <string>
#include <system_error>
#include <vector>
#include <folly/detail/FileUtilDetail.h>
#include <folly/net/NetOps.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/Sockets.h>
#include <folly/portability/Stdlib.h>
#include <folly/portability/SysFile.h>
#include <folly/portability/SysStat.h>
namespace folly {
using namespace fileutil_detail;
int openNoInt(const char* name, int flags, mode_t mode) {
return int(wrapNoInt(open, name, flags, mode));
}
static int filterCloseReturn(int r) {
// Ignore EINTR. On Linux, close() may only return EINTR after the file
// descriptor has been closed, so you must not retry close() on EINTR --
// in the best case, you'll get EBADF, and in the worst case, you'll end up
// closing a different file (one opened from another thread).
//
// Interestingly enough, the Single Unix Specification says that the state
// of the file descriptor is unspecified if close returns EINTR. In that
// case, the safe thing to do is also not to retry close() -- leaking a file
// descriptor is definitely better than closing the wrong file.
if (r == -1 && errno == EINTR) {
return 0;
}
return r;
}
int closeNoInt(int fd) {
return filterCloseReturn(close(fd));
}
int closeNoInt(NetworkSocket fd) {
return filterCloseReturn(netops::close(fd));
}
int fsyncNoInt(int fd) {
return int(wrapNoInt(fsync, fd));
}
int dupNoInt(int fd) {
return int(wrapNoInt(dup, fd));
}
int dup2NoInt(int oldfd, int newfd) {
return int(wrapNoInt(dup2, oldfd, newfd));
}
int fdatasyncNoInt(int fd) {
#if defined(__APPLE__)
return int(wrapNoInt(fcntl, fd, F_FULLFSYNC));
#elif defined(__FreeBSD__) || defined(_MSC_VER)
return int(wrapNoInt(fsync, fd));
#else
return int(wrapNoInt(fdatasync, fd));
#endif
}
int ftruncateNoInt(int fd, off_t len) {
return int(wrapNoInt(ftruncate, fd, len));
}
int truncateNoInt(const char* path, off_t len) {
return int(wrapNoInt(truncate, path, len));
}
int flockNoInt(int fd, int operation) {
return int(wrapNoInt(flock, fd, operation));
}
int shutdownNoInt(NetworkSocket fd, int how) {
return int(wrapNoInt(netops::shutdown, fd, how));
}
ssize_t readNoInt(int fd, void* buf, size_t count) {
return wrapNoInt(read, fd, buf, count);
}
ssize_t preadNoInt(int fd, void* buf, size_t count, off_t offset) {
return wrapNoInt(pread, fd, buf, count, offset);
}
ssize_t readvNoInt(int fd, const iovec* iov, int count) {
return wrapNoInt(readv, fd, iov, count);
}
ssize_t preadvNoInt(int fd, const iovec* iov, int count, off_t offset) {
return wrapNoInt(preadv, fd, iov, count, offset);
}
ssize_t writeNoInt(int fd, const void* buf, size_t count) {
return wrapNoInt(write, fd, buf, count);
}
ssize_t pwriteNoInt(int fd, const void* buf, size_t count, off_t offset) {
return wrapNoInt(pwrite, fd, buf, count, offset);
}
ssize_t writevNoInt(int fd, const iovec* iov, int count) {
return wrapNoInt(writev, fd, iov, count);
}
ssize_t pwritevNoInt(int fd, const iovec* iov, int count, off_t offset) {
return wrapNoInt(pwritev, fd, iov, count, offset);
}
ssize_t readFull(int fd, void* buf, size_t count) {
return wrapFull(read, fd, buf, count);
}
ssize_t preadFull(int fd, void* buf, size_t count, off_t offset) {
return wrapFull(pread, fd, buf, count, offset);
}
ssize_t writeFull(int fd, const void* buf, size_t count) {
return wrapFull(write, fd, const_cast<void*>(buf), count);
}
ssize_t pwriteFull(int fd, const void* buf, size_t count, off_t offset) {
return wrapFull(pwrite, fd, const_cast<void*>(buf), count, offset);
}
ssize_t readvFull(int fd, iovec* iov, int count) {
return wrapvFull(readv, fd, iov, count);
}
ssize_t preadvFull(int fd, iovec* iov, int count, off_t offset) {
return wrapvFull(preadv, fd, iov, count, offset);
}
ssize_t writevFull(int fd, iovec* iov, int count) {
return wrapvFull(writev, fd, iov, count);
}
ssize_t pwritevFull(int fd, iovec* iov, int count, off_t offset) {
return wrapvFull(pwritev, fd, iov, count, offset);
}
int writeFileAtomicNoThrow(
StringPiece filename,
iovec* iov,
int count,
mode_t permissions,
SyncType syncType) {
// We write the data to a temporary file name first, then atomically rename
// it into place. This ensures that the file contents will always be valid,
// even if we crash or are killed partway through writing out data.
//
// Create a buffer that will contain two things:
// - A nul-terminated version of the filename
// - The temporary file name
std::vector<char> pathBuffer;
// Note that we have to explicitly pass in the size here to make
// sure the nul byte gets included in the data.
constexpr folly::StringPiece suffix(".XXXXXX\0", 8);
pathBuffer.resize((2 * filename.size()) + 1 + suffix.size());
// Copy in the filename and then a nul terminator
memcpy(pathBuffer.data(), filename.data(), filename.size());
pathBuffer[filename.size()] = '\0';
const char* const filenameCStr = pathBuffer.data();
// Now prepare the temporary path template
char* const tempPath = pathBuffer.data() + filename.size() + 1;
memcpy(tempPath, filename.data(), filename.size());
memcpy(tempPath + filename.size(), suffix.data(), suffix.size());
auto tmpFD = mkstemp(tempPath);
if (tmpFD == -1) {
return errno;
}
bool success = false;
SCOPE_EXIT {
if (tmpFD != -1) {
close(tmpFD);
}
if (!success) {
unlink(tempPath);
}
};
auto rc = writevFull(tmpFD, iov, count);
if (rc == -1) {
return errno;
}
rc = fchmod(tmpFD, permissions);
if (rc == -1) {
return errno;
}
// To guarantee atomicity across power failues on POSIX file systems,
// the temporary file must be explicitly sync'ed before the rename.
if (syncType == SyncType::WITH_SYNC) {
rc = fsyncNoInt(tmpFD);
if (rc == -1) {
return errno;
}
}
// Close the file before renaming to make sure all data has
// been successfully written.
rc = close(tmpFD);
tmpFD = -1;
if (rc == -1) {
return errno;
}
rc = rename(tempPath, filenameCStr);
if (rc == -1) {
return errno;
}
success = true;
return 0;
}
void writeFileAtomic(
StringPiece filename,
iovec* iov,
int count,
mode_t permissions,
SyncType syncType) {
auto rc = writeFileAtomicNoThrow(filename, iov, count, permissions, syncType);
if (rc != 0) {
auto msg = std::string(__func__) + "() failed to update " + filename.str();
throw std::system_error(rc, std::generic_category(), msg);
}
}
void writeFileAtomic(
StringPiece filename,
ByteRange data,
mode_t permissions,
SyncType syncType) {
iovec iov;
iov.iov_base = const_cast<unsigned char*>(data.data());
iov.iov_len = data.size();
writeFileAtomic(filename, &iov, 1, permissions, syncType);
}
void writeFileAtomic(
StringPiece filename,
StringPiece data,
mode_t permissions,
SyncType syncType) {
writeFileAtomic(filename, ByteRange(data), permissions, syncType);
}
} // namespace folly
|
#pragma once
#include <memory>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <cassert>
#include <CL/cl.h>
#include "include.hpp"
namespace cl {
class Context {
private:
cl_context context;
public:
Context(cl_device_id device);
~Context();
Context(const Context &other) = delete;
Context &operator=(const Context &other) = delete;
operator cl_context() const;
};
class Queue {
private:
cl_command_queue queue;
public:
Queue(cl_context context, cl_device_id device);
~Queue();
Queue(const Queue &other) = delete;
Queue &operator=(const Queue &other) = delete;
operator cl_command_queue() const;
};
class Program {
private:
cl_program program;
cl_device_id device;
std::unique_ptr<c_includer> includer;
public:
Program(
cl_context context,
cl_device_id device,
const char *path,
const std::list<std::string> &dirs={"."},
const std::map<std::string, std::string> &fmem={},
bool include_warnings=false
);
~Program();
Program(const Program &other) = delete;
Program &operator=(const Program &other) = delete;
operator cl_program() const;
std::string log();
};
class Buffer {
private:
cl_mem buffer;
size_t _size;
void init(cl_context context, size_t size);
void release();
public:
Buffer();
Buffer(cl_context context, size_t size);
~Buffer();
Buffer(const Buffer &other) = delete;
Buffer &operator=(const Buffer &other) = delete;
cl_mem &raw();
const cl_mem &raw() const;
operator cl_mem() const;
size_t size() const;
void load(cl_command_queue queue, void *data);
void load(cl_command_queue queue, void *data, size_t size);
void store(cl_command_queue queue, const void *data);
void store(cl_command_queue queue, const void *data, size_t size);
};
class Kernel {
private:
cl_kernel kernel;
public:
Kernel(cl_program program, const char *name);
~Kernel();
Kernel(const Kernel &other) = delete;
Kernel &operator=(const Kernel &other) = delete;
operator cl_kernel() const;
private:
template <typename T, typename ... Args>
void unwind_args(size_t n, const T &arg, const Args &... args) {
set_arg(n, arg);
unwind_args(n + 1, args...);
}
template <typename T>
void unwind_args(size_t n, const T &arg) {
set_arg(n, arg);
}
public:
template <typename T>
void set_arg(size_t n, const T &arg) {
assert(clSetKernelArg(kernel, n, sizeof(T), (void *)&arg) == CL_SUCCESS);
}
void set_arg(size_t n, const Buffer &buf);
void run(cl_command_queue queue, size_t work_size);
template <typename ... Args>
void operator()(cl_command_queue queue, size_t work_size, const Args &... args) {
unwind_args(0, args...);
run(queue, work_size);
}
};
}
|
#pragma once
#include "SessionId.hpp"
#include <boost/uuid/uuid.hpp>
#include <iostream>
namespace arepa::networking {
/**
* A token representing a unique session ID and secret.
*
* The session ID is intended to be public, shared knowledge.
* The session secret is intended to be used for re-establishing the session on dropped connections.
*/
class SessionToken {
#pragma mark - Types -
public:
/**
* A type alias for a token's ID typename.
*/
using Id = SessionId;
/**
* A type alias for a token's auth secret typename.
*/
using Secret = boost::uuids::uuid;
#pragma mark - Fields -
private:
Id _id;
Secret _secret;
#pragma mark - Constructors -
public:
SessionToken(const Id& id, const Secret& secret);
#pragma mark - Methods -
public:
/**
* Returns the session ID.
* @return The session ID.
*/
[[nodiscard]] const Id& id() const;
/**
* Returns the session secret.
* This is used for session authentication (e.g. when resuming).
*
* @return The session secret.
*/
[[nodiscard]] const Secret& secret() const;
/**
* Generates a new session token.
* @return The session token.
*/
[[nodiscard]] static SessionToken generate();
#pragma mark - Operators -
public:
[[nodiscard]] operator std::string() const; // NOLINT
[[nodiscard]] bool operator==(const SessionToken& rhs) const;
[[nodiscard]] bool operator==(const SessionToken::Id& rhs) const;
[[nodiscard]] bool operator!=(const SessionToken& rhs) const;
[[nodiscard]] bool operator!=(const SessionToken::Id& rhs) const;
};
std::ostream& operator<<(std::ostream& lhs, const SessionToken& rhs);
}
#pragma mark - std::hash -
template <>
struct std::hash<arepa::networking::SessionToken> {
std::size_t operator()(arepa::networking::SessionToken const& token) const noexcept {
std::hash<arepa::networking::SessionId> hash;
return hash(token.id());
}
};
|
/* Copyright (c) 2016 Baidu, Inc. All Rights Reserve.
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 "LayerGradUtil.h"
P_DECLARE_bool(thread_local_rand_use_global_seed);
namespace paddle {
real getCostSum(LayerPtr& testLayer, MatrixPtr weights) {
testLayer->forward(PASS_GC);
std::vector<Argument> outArgs;
outArgs.push_back(testLayer->getOutput());
if (weights) {
outArgs[0].value->dotMul(*outArgs[0].value, *weights);
}
return Argument::sumCosts(outArgs);
}
real getDiffAndPrint(real newCost1, real newCost2, real callbackCount,
char fill, string testLayerName, string name, real step,
real delta) {
EXPECT_FALSE(std::isnan(newCost1));
EXPECT_FALSE(std::isnan(newCost2));
real trueDelta = (newCost1 - newCost2) * (callbackCount / 2.);
real diff = (1e-20 + trueDelta) / (1e-20 + delta) - 1;
LOG(INFO) << setiosflags(ios::left) << setfill(fill) << setw(20)
<< testLayerName << " " << setw(20) << name << "step=" << setw(15)
<< step << "cost1=" << setw(10) << newCost1 << "cost2=" << setw(10)
<< newCost2 << "true_delta=" << setw(15) << trueDelta
<< "analytic_delta=" << setw(15) << delta << "diff=" << diff
<< (abs(diff) > 0.01 ? " ***" : "");
if (fabs(diff - 1) < 0.02) {
LOG(INFO) << "The previous diff might be caused by not accumulating"
<< " parameter gradients in backward()";
}
return diff;
}
void testState(LayerPtr testLayer, vector<DataLayerPtr>& dataLayers,
vector<Argument>& datas) {
auto batchSize = datas[0].getBatchSize();
Argument data;
ICpuGpuVectorPtr sequenceStartPositions =
ICpuGpuVector::create(2, /* useGpu= */ false);
sequenceStartPositions->getMutableData(false)[0] = 0;
sequenceStartPositions->getMutableData(false)[1] = batchSize;
data.sequenceStartPositions = sequenceStartPositions;
testLayer->resetState();
for (size_t j = 0; j < datas.size(); ++j) {
if (datas[j].value) {
data.value = datas[j].value;
}
if (datas[j].ids) {
data.ids = datas[j].ids;
}
dataLayers[j]->setData(data);
dataLayers[j]->forward(PASS_TEST);
}
testLayer->forward(PASS_TEST);
Argument batchOut;
batchOut.resizeAndCopyFrom(testLayer->getOutput(), /* useGpu= */ false);
sequenceStartPositions->getMutableData(false)[1] = 1;
testLayer->resetState();
auto testLayerState = [&](int batchId) {
for (size_t j = 0; j < datas.size(); ++j) {
if (datas[j].value) {
data.value = datas[j].value->subMatrix(batchId, 1);
}
if (datas[j].ids) {
data.ids = IVector::create(datas[j].ids->getData() + batchId, 1,
FLAGS_use_gpu);
}
dataLayers[j]->setData(data);
dataLayers[j]->forward(PASS_TEST);
}
testLayer->forward(PASS_TEST);
Argument out;
out.resizeAndCopyFrom(testLayer->getOutput(), /* useGpu= */ false);
hl_stream_synchronize(HPPL_STREAM_DEFAULT);
if (batchOut.value) {
size_t dim = batchOut.value->getWidth();
ASSERT_TRUE((bool)out.value);
EXPECT_EQ(dim, out.value->getWidth());
EXPECT_EQ(1UL, out.value->getHeight());
auto ret = std::mismatch(batchOut.value->getData() + batchId * dim,
batchOut.value->getData() + (batchId + 1) * dim,
out.value->getData());
if (ret.second != out.value->getData() + dim) {
// If reaches here, the test will fail
EXPECT_EQ(*ret.first, *ret.second);
}
} else if (batchOut.ids) {
ASSERT_TRUE((bool)out.ids);
EXPECT_EQ(1UL, out.ids->getSize());
EXPECT_EQ(batchOut.ids->getElement(batchId), out.ids->getElement(0));
}
};
CHECK_GT(batchSize, 0);
std::vector<LayerStatePtr> statePtrs;
statePtrs.reserve(batchSize);
// Test layer setState() and getState()
for (int i = 0; i < batchSize; ++i) {
statePtrs.push_back(testLayer->getState());
testLayerState(i);
}
for (int k = 0; k < batchSize - 1; ++k) {
testLayer->setState(statePtrs[k]);
for (int i = k; i < batchSize; ++i) {
testLayerState(i);
}
}
}
void testBatchState(LayerPtr testLayer, vector<DataLayerPtr>& dataLayers,
vector<Argument>& datas) {
auto batchSize = datas[0].getBatchSize();
Argument data;
/*two sequences*/
size_t numSequences = 2;
ICpuGpuVectorPtr sequenceStartPositions =
ICpuGpuVector::create(numSequences + 1, /* useGpu= */ false);
int* cpuStarts = sequenceStartPositions->getMutableData(false);
int len = ::rand() % (batchSize - 1);
cpuStarts[0] = 0;
cpuStarts[1] = len > 0 ? len : 1;
cpuStarts[2] = batchSize;
data.sequenceStartPositions = sequenceStartPositions;
for (size_t j = 0; j < datas.size(); ++j) {
if (datas[j].value) {
data.value = datas[j].value;
}
if (datas[j].ids) {
data.ids = datas[j].ids;
}
dataLayers[j]->setData(data);
dataLayers[j]->forward(PASS_TEST);
}
testLayer->resetState();
testLayer->forward(PASS_TEST);
Argument batchOut;
batchOut.resizeAndCopyFrom(testLayer->getOutput(), /* useGpu= */ false);
/*split one miniBatch into two miniBatchs*/
std::vector<int> seqSplitPos;
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
int len = ::rand() % (cpuStarts[seqId + 1] - cpuStarts[seqId]);
len = len > 0 ? len : 1;
seqSplitPos.push_back(cpuStarts[seqId] + len);
}
std::vector<int> start; /*seq start pos in source data*/
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
start.push_back(cpuStarts[seqId]);
}
testLayer->resetState();
Argument splitData;
for (size_t batchId = 0; batchId < 2; ++batchId) {
size_t splitBatchSize = 0;
std::vector<int> seqLens;
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
int seqLen = (batchId == 0) ? seqSplitPos[seqId] - cpuStarts[seqId]
: cpuStarts[seqId + 1] - seqSplitPos[seqId];
seqLens.push_back(seqLen);
splitBatchSize += seqLen;
}
ICpuGpuVectorPtr cpuSeqStartPos =
ICpuGpuVector::create(3, /* useGpu= */ false);
int* seqStartPosData = cpuSeqStartPos->getMutableData(false);
seqStartPosData[0] = 0;
seqStartPosData[1] = seqLens[0];
seqStartPosData[2] = splitBatchSize;
CHECK_GT(splitBatchSize, size_t(0));
splitData.sequenceStartPositions = cpuSeqStartPos;
for (size_t j = 0; j < datas.size(); ++j) {
if (datas[j].value) {
Matrix::resizeOrCreate(splitData.value, splitBatchSize,
datas[j].value->getWidth(), false,
FLAGS_use_gpu);
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
if (seqLens[seqId]) {
splitData.value->subMatrix(seqStartPosData[seqId], seqLens[seqId])
->copyFrom(
*datas[j].value->subMatrix(start[seqId], seqLens[seqId]));
}
}
}
if (datas[j].ids) {
IVector::resizeOrCreate(splitData.ids, splitBatchSize, FLAGS_use_gpu);
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
if (seqLens[seqId]) {
splitData.ids->subVec(seqStartPosData[seqId], seqLens[seqId])
->copyFrom(*datas[j].ids->subVec(start[seqId], seqLens[seqId]));
}
}
}
dataLayers[j]->setData(splitData);
dataLayers[j]->forward(PASS_TEST);
}
testLayer->forward(PASS_TEST);
Argument out;
out.resizeAndCopyFrom(testLayer->getOutput(), /* useGpu= */ false);
hl_stream_synchronize(HPPL_STREAM_DEFAULT);
if (batchOut.value) {
size_t dim = batchOut.value->getWidth();
ASSERT_TRUE((bool)out.value);
EXPECT_EQ(dim, out.value->getWidth());
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
if (seqLens[seqId]) {
out.value->subMatrix(seqStartPosData[seqId], seqLens[seqId])
->sub(*batchOut.value->subMatrix(start[seqId], seqLens[seqId]));
}
}
}
std::vector<Argument> args;
args.push_back(out);
EXPECT_EQ(0, Argument::sumCosts(args)) << "testBatchState failed";
for (size_t seqId = 0; seqId < numSequences; ++seqId) {
start[seqId] += seqLens[seqId];
}
}
}
double genPerturbation(const real* oldGrad, real* newGrad, size_t dim) {
double gradNorm = 0, dNorm = 0;
for (size_t i = 0; i < dim; ++i) {
newGrad[i] = 2. * rand() / RAND_MAX - 1; // NOLINT
dNorm += newGrad[i] * newGrad[i];
gradNorm += oldGrad[i] * oldGrad[i];
}
if (gradNorm > 0) {
real s = 0.5 * sqrt(gradNorm / dNorm);
for (size_t i = 0; i < dim; ++i) {
newGrad[i] = s * newGrad[i] + oldGrad[i];
}
}
double delta = 0;
for (size_t i = 0; i < dim; ++i) {
delta += oldGrad[i] * newGrad[i];
}
return delta;
}
void initWeight(MatrixPtr& weights) {
MatrixPtr tmpMat = weights->clone();
for (int i = 0; i < int(tmpMat->getElementCnt()); i++) {
tmpMat->getData()[i] = (11 - 2 * (i % 11));
}
weights->copyFrom(*tmpMat);
}
void initBatchState(LayerPtr dataLayer, LayerPtr testLayer,
LayerStatePtr state, bool useGpu) {
int sequenceNum = dataLayer->getOutput().getNumSequences();
MatrixPtr prevBatchOutput =
Matrix::create(sequenceNum, testLayer->getSize(), false, useGpu);
MatrixPtr prevBatchState =
Matrix::create(sequenceNum, testLayer->getSize(), false, useGpu);
prevBatchOutput->randomizeUniform();
prevBatchState->randomizeUniform();
state->value.clear();
state->value.push_back(prevBatchOutput);
state->value.push_back(prevBatchState);
}
void initDataLayer(TestConfig testConf, std::vector<DataLayerPtr>* dataLayers,
vector<Argument>* datas, LayerMap* layerMap,
string testLayerName, size_t batchSize, bool trans,
bool useGpu) {
ICpuGpuVectorPtr sequenceStartPositions;
ICpuGpuVectorPtr subSequenceStartPositions;
IVectorPtr cpuSequenceDims;
for (size_t i = 0; i < testConf.inputDefs.size(); i++) {
LayerConfig config;
config.set_name(testConf.inputDefs[i].name);
config.set_type("data");
config.set_size(testConf.inputDefs[i].dim);
LayerPtr layer = LayerPtr(new DataLayer(config));
size_t numSequence = batchSize / 10 + 1;
Argument data;
auto fillData = [&](bool trans, int height, int width) {
int newHeight = trans ? height : width;
int newWidth = trans ? width : height;
data.value = Matrix::create(newHeight, newWidth, false, useGpu);
data.grad = Matrix::create(newHeight, newWidth, false, useGpu);
};
switch (testConf.inputDefs[i].inputType) {
case INPUT_DATA:
case INPUT_SEQUENCE_DATA:
case INPUT_HASSUB_SEQUENCE_DATA:
case INPUT_DATA_TARGET:
case INPUT_SEQUENCE_MDIM_DATA:
fillData(trans, layer->getSize(), batchSize);
data.value->randomizeUniform();
// make sure that multi-class-cross-entry won't encounter negatives
// make sure that multi_binary_label satisfies 0~1
data.value->add(-0.5);
if (testLayerName != "prelu") {
data.value->sigmoid(*data.value);
}
data.grad->zeroMem();
break;
case INPUT_LABEL:
case INPUT_SEQUENCE_LABEL:
data.ids = VectorT<int>::create(batchSize, useGpu);
// now rand number can be 0 to inputDefs[i].dim
data.ids->rand(testConf.inputDefs[i].dim);
break;
case INPUT_SPARSE_NON_VALUE_DATA:
data.value = makeRandomSparseMatrix(
batchSize, layer->getSize(),
/* withValue= */ false, useGpu,
testConf.inputDefs[i].sparse.equalNnzPerSample);
break;
case INPUT_SPARSE_FLOAT_VALUE_DATA:
data.value = makeRandomSparseMatrix(batchSize, layer->getSize(),
/* withValue= */ true, useGpu);
break;
case INPUT_DENSE_DIM_DATA:
fillData(trans, layer->getSize(), numSequence);
data.value->randomizeUniform();
data.value->add(-0.5);
data.value->sigmoid(*data.value);
data.grad->zeroMem();
break;
default:
LOG(FATAL) << " unknown inputType ";
return;
}
if (testConf.inputDefs[i].inputType == INPUT_SEQUENCE_DATA ||
testConf.inputDefs[i].inputType == INPUT_HASSUB_SEQUENCE_DATA ||
testConf.inputDefs[i].inputType == INPUT_SEQUENCE_LABEL ||
testConf.inputDefs[i].inputType == INPUT_SEQUENCE_MDIM_DATA) {
if (!sequenceStartPositions) {
generateSequenceStartPositions(batchSize, sequenceStartPositions);
}
data.sequenceStartPositions = sequenceStartPositions;
}
if (testConf.inputDefs[i].inputType == INPUT_HASSUB_SEQUENCE_DATA) {
if (!subSequenceStartPositions) {
generateSubSequenceStartPositions(sequenceStartPositions,
subSequenceStartPositions);
}
data.subSequenceStartPositions = subSequenceStartPositions;
}
if (testConf.inputDefs[i].inputType == INPUT_SEQUENCE_MDIM_DATA) {
if (!cpuSequenceDims) {
generateMDimSequenceData(sequenceStartPositions, cpuSequenceDims);
}
data.cpuSequenceDims = cpuSequenceDims;
}
DataLayerPtr dataLayer = std::dynamic_pointer_cast<DataLayer>(layer);
dataLayer->setData(data);
dataLayer->forward(PASS_GC);
dataLayers->push_back(dataLayer);
(*layerMap)[config.name()] = layer;
datas->push_back(data);
}
}
void initTestLayer(TestConfig testConf, LayerMap* layerMap,
std::vector<ParameterPtr>* parameters, LayerPtr* testLayer) {
ParameterMap parameterMap;
size_t index = 0;
LayerConfig testConfig = testConf.layerConfig;
CHECK_EQ(testConf.inputDefs.size(),
size_t(testConf.layerConfig.inputs_size()));
auto initParameter = [&](string paraName, size_t paraSize, bool isStatic,
bool initialize, ParameterConfig paraConfig) {
paraConfig.set_name(paraName);
paraConfig.set_size(paraSize);
paraConfig.set_initial_std(1);
paraConfig.set_is_static(isStatic);
auto para =
std::make_shared<Parameter>(paraConfig, FLAGS_use_gpu, initialize);
para->enableType(PARAMETER_VALUE);
if (!para->isStatic()) {
para->enableType(PARAMETER_GRADIENT);
para->enableType(PARAMETER_MOMENTUM);
}
para->randomize();
para->setID(index++);
parameters->push_back(para);
parameterMap[paraConfig.name()] = para;
};
for (size_t i = 0; i < testConf.inputDefs.size(); i++) {
InputDef inputDef = testConf.inputDefs[i];
size_t paraSize = inputDef.paraSize;
bool sparse = inputDef.sparse.sparse;
LayerInputConfig& input = *(testConfig.mutable_inputs(i));
input.set_input_layer_name(inputDef.name);
if (paraSize) {
constexpr int kParaNameLen = 20;
char paraName[kParaNameLen];
snprintf(paraName, kParaNameLen, "para_%d", (int)i);
input.set_input_parameter_name(paraName);
ParameterConfig paraConfig;
paraConfig.set_is_sparse(sparse);
paraConfig.set_format(inputDef.sparse.format);
if (sparse) {
paraConfig.add_dims((*layerMap)[input.input_layer_name()]->getSize());
paraConfig.add_dims(testConf.layerConfig.size());
}
initParameter(paraName, paraSize, inputDef.isStatic, false, paraConfig);
}
}
if (testConf.biasSize) {
testConfig.set_bias_parameter_name("bias");
ParameterConfig paraConfig;
initParameter(testConfig.bias_parameter_name(), testConf.biasSize,
testConf.staticBias, true, paraConfig);
}
*testLayer = Layer::create(testConfig);
(*layerMap)[testConfig.name()] = *testLayer;
(*testLayer)->init((*layerMap), parameterMap);
(*testLayer)->setNeedGradient(true);
}
void testPerturbParameter(TestConfig testConf, const MatrixPtr weights,
const LayerStatePtr state, real cost,
real callbackCount, real* maxDiff, LayerPtr testLayer,
std::vector<ParameterPtr>* parameters) {
char fill = ' ';
for (auto& parameter : *parameters) {
if (parameter->isStatic()) {
continue;
}
size_t dim = parameter->getSize();
CpuVector oldPara(dim);
CpuVector newPara(dim);
VectorPtr v = parameter->getBuf(PARAMETER_VALUE);
oldPara.copyFrom(*parameter->getBuf(PARAMETER_VALUE));
real* newp = newPara.getData();
real* oldp = oldPara.getData();
CpuVector cpuGrad(*parameter->getBuf(PARAMETER_GRADIENT));
vector<real> d(dim);
double delta = genPerturbation(cpuGrad.getData(), &d[0], dim);
// use a step such that delta / cost is FLAGS_checkgrad_eps
real step =
(delta != 0) ? cost / delta * FLAGS_checkgrad_eps : FLAGS_checkgrad_eps;
if (fabs(step) < 1e-6) step = 1e-6;
delta *= step;
// compute newCost
real newCost[2];
for (int k = 0; k < 2; k++) {
for (size_t i = 0; i < dim; ++i) {
newp[i] = (k == 0) ? oldp[i] + step * d[i] : oldp[i] - step * d[i];
}
if (testConf.testBatchState) {
testLayer->setState(state);
}
parameter->getBuf(PARAMETER_VALUE)->copyFrom(newPara);
parameter->setValueUpdated();
newCost[k] = getCostSum(testLayer, weights);
}
real diff = getDiffAndPrint(newCost[0], newCost[1], callbackCount, fill,
testLayer->getName(), parameter->getName(),
step, delta);
*maxDiff = std::max(*maxDiff, abs(diff));
// restore parameter
parameter->getBuf(PARAMETER_VALUE)->copyFrom(oldPara);
parameter->setValueUpdated();
fill = (fill == ' ') ? '.' : ' ';
}
}
void testPerturbInput(TestConfig testConf, const MatrixPtr weights,
const LayerStatePtr state, real cost, real callbackCount,
real* maxDiff, LayerPtr testLayer,
std::vector<DataLayerPtr> dataLayers) {
char fill = ' ';
for (size_t index = 0; index < testConf.inputDefs.size(); index++) {
InputType inputType = testConf.inputDefs[index].inputType;
if (inputType != INPUT_DATA && inputType != INPUT_SEQUENCE_DATA &&
inputType != INPUT_HASSUB_SEQUENCE_DATA) {
continue;
}
MatrixPtr outV = dataLayers[index]->getOutputValue();
int height = outV->getHeight();
int width = outV->getWidth();
size_t dim = height * width;
CpuMatrix oldPara(height, width);
CpuMatrix newPara(height, width);
oldPara.copyFrom(*outV);
real* newp = newPara.getData();
real* oldp = oldPara.getData();
CpuMatrix cpuGrad(height, width);
cpuGrad.copyFrom(*(dataLayers[index]->getOutputGrad()));
CpuMatrix d(height, width);
real* data = d.getData();
double delta = genPerturbation(cpuGrad.getData(), data, dim);
// use a step such that delta / cost is FLAGS_checkgrad_eps
real step =
(delta != 0) ? cost / delta * FLAGS_checkgrad_eps : FLAGS_checkgrad_eps;
if (fabs(step) < 1e-6) step = 1e-6;
delta *= step;
real newCost[2];
for (int k = 0; k < 2; k++) {
for (size_t i = 0; i < dim; ++i) {
newp[i] =
(k == 0) ? oldp[i] + step * data[i] : oldp[i] - step * data[i];
}
if (testConf.testBatchState) {
testLayer->setState(state);
}
outV->copyFrom(newPara);
newCost[k] = getCostSum(testLayer, weights);
}
real diff = getDiffAndPrint(newCost[0], newCost[1], callbackCount, fill,
testLayer->getName(),
dataLayers[index]->getName(), step, delta);
*maxDiff = std::max(*maxDiff, abs(diff));
// restore parameter
outV->copyFrom(oldPara);
fill = (fill == ' ') ? '.' : ' ';
}
}
void testLayerGradKernel(TestConfig testConf, string testLayerName,
size_t batchSize, bool trans, bool useGpu,
bool useWeight, float epsilon) {
#ifdef PADDLE_ONLY_CPU
if (useGpu) return;
#endif
FLAGS_use_gpu = useGpu;
FLAGS_prev_batch_state = testConf.testBatchState;
MatrixPtr weights = nullptr;
testConf.layerConfig.set_name(testLayerName);
LOG(INFO) << " layer_type=" << testConf.layerConfig.type()
<< " useGpu=" << useGpu;
// data layer initialize
std::vector<DataLayerPtr> dataLayers;
LayerMap layerMap;
vector<Argument> datas;
initDataLayer(testConf, &dataLayers, &datas, &layerMap, testLayerName,
batchSize, trans, useGpu);
// test layer initialize
std::vector<ParameterPtr> parameters;
LayerPtr testLayer;
initTestLayer(testConf, &layerMap, ¶meters, &testLayer);
LayerStatePtr state = std::make_shared<LayerState>();
if (testConf.testBatchState) {
initBatchState(dataLayers[0], testLayer, state, useGpu);
testLayer->resetState();
testLayer->setState(state);
}
testLayer->forward(PASS_GC);
if (useWeight && weights == nullptr) {
weights = testLayer->getOutput().value->clone(0, 0, useGpu);
initWeight(weights);
}
std::vector<Argument> outArgs;
outArgs.push_back(testLayer->getOutput());
if (useWeight) {
outArgs[0].value = outArgs[0].value->clone(0, 0, useGpu);
outArgs[0].value->dotMul(*testLayer->getOutput().value, *weights);
}
real cost = Argument::sumCosts(outArgs);
LOG(INFO) << " cost " << cost;
EXPECT_FALSE(std::isnan(cost));
// Test whether the callback is called for a parameter
if (testLayer->getOutputGrad()) {
useWeight ? testLayer->getOutput().grad->copyFrom(*weights)
: testLayer->getOutputGrad()->resetOne();
}
vector<int> callbackFlags(parameters.size(), 0);
auto callback = [&](Parameter* para) { ++callbackFlags[para->getID()]; };
testLayer->backward(callback);
// do forward and backward for another time to test that gradient is doubled
int callbackCount = 1;
if (testConf.testAccumulate) {
if (testConf.testBatchState) {
testLayer->setState(state);
}
testLayer->forward(PASS_GC);
if (testLayer->getOutputGrad()) {
useWeight ? testLayer->getOutput().grad->copyFrom(*weights)
: testLayer->getOutputGrad()->resetOne();
}
testLayer->backward(callback);
++callbackCount;
}
for (size_t i = 0; i < parameters.size(); ++i) {
EXPECT_EQ(parameters[i]->isStatic() ? 0 : callbackCount,
callbackFlags[i]);
}
// Test whether the layer's forward calculation is stable
// by adding perturbation to its parameters or its input layers
real maxDiff = 0;
testPerturbParameter(testConf, weights, state, cost, callbackCount, &maxDiff,
testLayer, ¶meters);
testPerturbInput(testConf, weights, state, cost, callbackCount, &maxDiff,
testLayer, dataLayers);
EXPECT_LE(fabs(maxDiff), epsilon);
if (testConf.testState) {
testState(testLayer, dataLayers, datas);
}
if (testConf.testBatchState) {
testBatchState(testLayer, dataLayers, datas);
}
}
void testLayerGrad(TestConfig testConf, string testLayerName, size_t batchSize,
bool trans, bool useGpu, bool useWeight, float epsilon) {
testLayerGradKernel(testConf, testLayerName, batchSize, trans, useGpu,
useWeight, epsilon);
bool isStaticTest = false;
LayerConfig testConfig = testConf.layerConfig;
for (size_t i = 0; i < testConf.inputDefs.size(); i++) {
InputDef inputDef = testConf.inputDefs[i];
// Some layer must set isStatic true, like DataNormLayer
// so use !isStatic in if
if (inputDef.paraSize && (!inputDef.isStatic)) {
testConf.inputDefs[i].isStatic = true;
isStaticTest = true;
}
}
if (testConf.biasSize) {
testConf.staticBias = true;
isStaticTest = true;
}
if (isStaticTest) {
testLayerGradKernel(testConf, testLayerName, batchSize, trans, useGpu,
useWeight, epsilon);
}
}
void testProjectionGrad(ProjectionConfig conf, InputType inputType,
size_t parameterSize, size_t batchSize, bool useGpu,
bool testState) {
TestConfig config;
conf.set_name(conf.type());
config.layerConfig.set_type("mixed");
config.layerConfig.set_size(conf.output_size());
config.biasSize = config.layerConfig.size();
config.inputDefs.push_back(
{inputType, "layer_0", conf.input_size(), parameterSize});
*config.layerConfig.add_inputs()->mutable_proj_conf() = conf;
config.testState = testState;
testLayerGrad(config, "mixed", batchSize, false, useGpu);
}
void testOperatorGrad(TestConfig& config, OperatorConfig& operatorConf,
size_t batchSize, bool useGpu, bool testState) {
config.layerConfig.set_type("mixed");
operatorConf.set_output_size(config.layerConfig.size());
for (size_t i = 0; i < config.inputDefs.size(); ++i) {
operatorConf.add_input_indices(i);
operatorConf.add_input_sizes(config.inputDefs[i].dim);
}
config.testState = testState;
testLayerGrad(config, "mixed", batchSize, false, useGpu);
}
} // namespace paddle
|
//===-- asan_rtl.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
//
//===----------------------------------------------------------------------===//
//
// This file is a part of AddressSanitizer, an address sanity checker.
//
// Main file of the ASan run-time library.
//===----------------------------------------------------------------------===//
#include "asan_activation.h"
#include "asan_allocator.h"
#include "asan_interceptors.h"
#include "asan_interface_internal.h"
#include "asan_internal.h"
#include "asan_mapping.h"
#include "asan_poisoning.h"
#include "asan_report.h"
#include "asan_stack.h"
#include "asan_stats.h"
#include "asan_suppressions.h"
#include "asan_thread.h"
#include "sanitizer_common/sanitizer_atomic.h"
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_libc.h"
#include "sanitizer_common/sanitizer_symbolizer.h"
#include "lsan/lsan_common.h"
#include "ubsan/ubsan_init.h"
#include "ubsan/ubsan_platform.h"
uptr __asan_shadow_memory_dynamic_address; // Global interface symbol.
int __asan_option_detect_stack_use_after_return; // Global interface symbol.
uptr *__asan_test_only_reported_buggy_pointer; // Used only for testing asan.
namespace __asan {
uptr AsanMappingProfile[kAsanMappingProfileSize];
static void AsanDie() {
static atomic_uint32_t num_calls;
if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) {
// Don't die twice - run a busy loop.
while (1) { }
}
if (common_flags()->print_module_map >= 1) PrintModuleMap();
if (flags()->sleep_before_dying) {
Report("Sleeping for %d second(s)\n", flags()->sleep_before_dying);
SleepForSeconds(flags()->sleep_before_dying);
}
if (flags()->unmap_shadow_on_exit) {
if (kMidMemBeg) {
UnmapOrDie((void*)kLowShadowBeg, kMidMemBeg - kLowShadowBeg);
UnmapOrDie((void*)kMidMemEnd, kHighShadowEnd - kMidMemEnd);
} else {
if (kHighShadowEnd)
UnmapOrDie((void*)kLowShadowBeg, kHighShadowEnd - kLowShadowBeg);
}
}
}
static void AsanCheckFailed(const char *file, int line, const char *cond,
u64 v1, u64 v2) {
Report("AddressSanitizer CHECK failed: %s:%d \"%s\" (0x%zx, 0x%zx)\n", file,
line, cond, (uptr)v1, (uptr)v2);
// Print a stack trace the first time we come here. Otherwise, we probably
// failed a CHECK during symbolization.
static atomic_uint32_t num_calls;
if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) == 0) {
PRINT_CURRENT_STACK_CHECK();
}
Die();
}
// -------------------------- Globals --------------------- {{{1
int asan_inited;
bool asan_init_is_running;
#if !ASAN_FIXED_MAPPING
uptr kHighMemEnd, kMidMemBeg, kMidMemEnd;
#endif
// -------------------------- Misc ---------------- {{{1
void ShowStatsAndAbort() {
__asan_print_accumulated_stats();
Die();
}
// --------------- LowLevelAllocateCallbac ---------- {{{1
static void OnLowLevelAllocate(uptr ptr, uptr size) {
PoisonShadow(ptr, size, kAsanInternalHeapMagic);
}
// -------------------------- Run-time entry ------------------- {{{1
// exported functions
#define ASAN_REPORT_ERROR(type, is_write, size) \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_ ## type ## size(uptr addr) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, 0, true); \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_exp_ ## type ## size(uptr addr, u32 exp) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, exp, true); \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_ ## type ## size ## _noabort(uptr addr) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, 0, false); \
} \
ASAN_REPORT_ERROR(load, false, 1)
ASAN_REPORT_ERROR(load, false, 2)
ASAN_REPORT_ERROR(load, false, 4)
ASAN_REPORT_ERROR(load, false, 8)
ASAN_REPORT_ERROR(load, false, 16)
ASAN_REPORT_ERROR(store, true, 1)
ASAN_REPORT_ERROR(store, true, 2)
ASAN_REPORT_ERROR(store, true, 4)
ASAN_REPORT_ERROR(store, true, 8)
ASAN_REPORT_ERROR(store, true, 16)
#define ASAN_REPORT_ERROR_N(type, is_write) \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_ ## type ## _n(uptr addr, uptr size) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, 0, true); \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_exp_ ## type ## _n(uptr addr, uptr size, u32 exp) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, exp, true); \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_report_ ## type ## _n_noabort(uptr addr, uptr size) { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, 0, false); \
} \
ASAN_REPORT_ERROR_N(load, false)
ASAN_REPORT_ERROR_N(store, true)
#define ASAN_MEMORY_ACCESS_CALLBACK_BODY(type, is_write, size, exp_arg, fatal) \
if (SANITIZER_MYRIAD2 && !AddrIsInMem(addr) && !AddrIsInShadow(addr)) \
return; \
uptr sp = MEM_TO_SHADOW(addr); \
uptr s = size <= SHADOW_GRANULARITY ? *reinterpret_cast<u8 *>(sp) \
: *reinterpret_cast<u16 *>(sp); \
if (UNLIKELY(s)) { \
if (UNLIKELY(size >= SHADOW_GRANULARITY || \
((s8)((addr & (SHADOW_GRANULARITY - 1)) + size - 1)) >= \
(s8)s)) { \
if (__asan_test_only_reported_buggy_pointer) { \
*__asan_test_only_reported_buggy_pointer = addr; \
} else { \
GET_CALLER_PC_BP_SP; \
ReportGenericError(pc, bp, sp, addr, is_write, size, exp_arg, \
fatal); \
} \
} \
}
#define ASAN_MEMORY_ACCESS_CALLBACK(type, is_write, size) \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_##type##size(uptr addr) { \
ASAN_MEMORY_ACCESS_CALLBACK_BODY(type, is_write, size, 0, true) \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_exp_##type##size(uptr addr, u32 exp) { \
ASAN_MEMORY_ACCESS_CALLBACK_BODY(type, is_write, size, exp, true) \
} \
extern "C" NOINLINE INTERFACE_ATTRIBUTE \
void __asan_##type##size ## _noabort(uptr addr) { \
ASAN_MEMORY_ACCESS_CALLBACK_BODY(type, is_write, size, 0, false) \
} \
ASAN_MEMORY_ACCESS_CALLBACK(load, false, 1)
ASAN_MEMORY_ACCESS_CALLBACK(load, false, 2)
ASAN_MEMORY_ACCESS_CALLBACK(load, false, 4)
ASAN_MEMORY_ACCESS_CALLBACK(load, false, 8)
ASAN_MEMORY_ACCESS_CALLBACK(load, false, 16)
ASAN_MEMORY_ACCESS_CALLBACK(store, true, 1)
ASAN_MEMORY_ACCESS_CALLBACK(store, true, 2)
ASAN_MEMORY_ACCESS_CALLBACK(store, true, 4)
ASAN_MEMORY_ACCESS_CALLBACK(store, true, 8)
ASAN_MEMORY_ACCESS_CALLBACK(store, true, 16)
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_loadN(uptr addr, uptr size) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, false, size, 0, true);
}
}
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_exp_loadN(uptr addr, uptr size, u32 exp) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, false, size, exp, true);
}
}
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_loadN_noabort(uptr addr, uptr size) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, false, size, 0, false);
}
}
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_storeN(uptr addr, uptr size) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, true, size, 0, true);
}
}
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_exp_storeN(uptr addr, uptr size, u32 exp) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, true, size, exp, true);
}
}
extern "C"
NOINLINE INTERFACE_ATTRIBUTE
void __asan_storeN_noabort(uptr addr, uptr size) {
if (__asan_region_is_poisoned(addr, size)) {
GET_CALLER_PC_BP_SP;
ReportGenericError(pc, bp, sp, addr, true, size, 0, false);
}
}
// Force the linker to keep the symbols for various ASan interface functions.
// We want to keep those in the executable in order to let the instrumented
// dynamic libraries access the symbol even if it is not used by the executable
// itself. This should help if the build system is removing dead code at link
// time.
static NOINLINE void force_interface_symbols() {
volatile int fake_condition = 0; // prevent dead condition elimination.
// __asan_report_* functions are noreturn, so we need a switch to prevent
// the compiler from removing any of them.
// clang-format off
switch (fake_condition) {
case 1: __asan_report_load1(0); break;
case 2: __asan_report_load2(0); break;
case 3: __asan_report_load4(0); break;
case 4: __asan_report_load8(0); break;
case 5: __asan_report_load16(0); break;
case 6: __asan_report_load_n(0, 0); break;
case 7: __asan_report_store1(0); break;
case 8: __asan_report_store2(0); break;
case 9: __asan_report_store4(0); break;
case 10: __asan_report_store8(0); break;
case 11: __asan_report_store16(0); break;
case 12: __asan_report_store_n(0, 0); break;
case 13: __asan_report_exp_load1(0, 0); break;
case 14: __asan_report_exp_load2(0, 0); break;
case 15: __asan_report_exp_load4(0, 0); break;
case 16: __asan_report_exp_load8(0, 0); break;
case 17: __asan_report_exp_load16(0, 0); break;
case 18: __asan_report_exp_load_n(0, 0, 0); break;
case 19: __asan_report_exp_store1(0, 0); break;
case 20: __asan_report_exp_store2(0, 0); break;
case 21: __asan_report_exp_store4(0, 0); break;
case 22: __asan_report_exp_store8(0, 0); break;
case 23: __asan_report_exp_store16(0, 0); break;
case 24: __asan_report_exp_store_n(0, 0, 0); break;
case 25: __asan_register_globals(nullptr, 0); break;
case 26: __asan_unregister_globals(nullptr, 0); break;
case 27: __asan_set_death_callback(nullptr); break;
case 28: __asan_set_error_report_callback(nullptr); break;
case 29: __asan_handle_no_return(); break;
case 30: __asan_address_is_poisoned(nullptr); break;
case 31: __asan_poison_memory_region(nullptr, 0); break;
case 32: __asan_unpoison_memory_region(nullptr, 0); break;
case 34: __asan_before_dynamic_init(nullptr); break;
case 35: __asan_after_dynamic_init(); break;
case 36: __asan_poison_stack_memory(0, 0); break;
case 37: __asan_unpoison_stack_memory(0, 0); break;
case 38: __asan_region_is_poisoned(0, 0); break;
case 39: __asan_describe_address(0); break;
case 40: __asan_set_shadow_00(0, 0); break;
case 41: __asan_set_shadow_f1(0, 0); break;
case 42: __asan_set_shadow_f2(0, 0); break;
case 43: __asan_set_shadow_f3(0, 0); break;
case 44: __asan_set_shadow_f5(0, 0); break;
case 45: __asan_set_shadow_f8(0, 0); break;
}
// clang-format on
}
static void asan_atexit() {
Printf("AddressSanitizer exit stats:\n");
__asan_print_accumulated_stats();
// Print AsanMappingProfile.
for (uptr i = 0; i < kAsanMappingProfileSize; i++) {
if (AsanMappingProfile[i] == 0) continue;
Printf("asan_mapping.h:%zd -- %zd\n", i, AsanMappingProfile[i]);
}
}
static void InitializeHighMemEnd() {
#if !SANITIZER_MYRIAD2
#if !ASAN_FIXED_MAPPING
kHighMemEnd = GetMaxUserVirtualAddress();
// Increase kHighMemEnd to make sure it's properly
// aligned together with kHighMemBeg:
kHighMemEnd |= SHADOW_GRANULARITY * GetMmapGranularity() - 1;
#endif // !ASAN_FIXED_MAPPING
CHECK_EQ((kHighMemBeg % GetMmapGranularity()), 0);
#endif // !SANITIZER_MYRIAD2
}
void PrintAddressSpaceLayout() {
if (kHighMemBeg) {
Printf("|| `[%p, %p]` || HighMem ||\n",
(void*)kHighMemBeg, (void*)kHighMemEnd);
Printf("|| `[%p, %p]` || HighShadow ||\n",
(void*)kHighShadowBeg, (void*)kHighShadowEnd);
}
if (kMidMemBeg) {
Printf("|| `[%p, %p]` || ShadowGap3 ||\n",
(void*)kShadowGap3Beg, (void*)kShadowGap3End);
Printf("|| `[%p, %p]` || MidMem ||\n",
(void*)kMidMemBeg, (void*)kMidMemEnd);
Printf("|| `[%p, %p]` || ShadowGap2 ||\n",
(void*)kShadowGap2Beg, (void*)kShadowGap2End);
Printf("|| `[%p, %p]` || MidShadow ||\n",
(void*)kMidShadowBeg, (void*)kMidShadowEnd);
}
Printf("|| `[%p, %p]` || ShadowGap ||\n",
(void*)kShadowGapBeg, (void*)kShadowGapEnd);
if (kLowShadowBeg) {
Printf("|| `[%p, %p]` || LowShadow ||\n",
(void*)kLowShadowBeg, (void*)kLowShadowEnd);
Printf("|| `[%p, %p]` || LowMem ||\n",
(void*)kLowMemBeg, (void*)kLowMemEnd);
}
Printf("MemToShadow(shadow): %p %p",
(void*)MEM_TO_SHADOW(kLowShadowBeg),
(void*)MEM_TO_SHADOW(kLowShadowEnd));
if (kHighMemBeg) {
Printf(" %p %p",
(void*)MEM_TO_SHADOW(kHighShadowBeg),
(void*)MEM_TO_SHADOW(kHighShadowEnd));
}
if (kMidMemBeg) {
Printf(" %p %p",
(void*)MEM_TO_SHADOW(kMidShadowBeg),
(void*)MEM_TO_SHADOW(kMidShadowEnd));
}
Printf("\n");
Printf("redzone=%zu\n", (uptr)flags()->redzone);
Printf("max_redzone=%zu\n", (uptr)flags()->max_redzone);
Printf("quarantine_size_mb=%zuM\n", (uptr)flags()->quarantine_size_mb);
Printf("thread_local_quarantine_size_kb=%zuK\n",
(uptr)flags()->thread_local_quarantine_size_kb);
Printf("malloc_context_size=%zu\n",
(uptr)common_flags()->malloc_context_size);
Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE);
Printf("SHADOW_GRANULARITY: %d\n", (int)SHADOW_GRANULARITY);
Printf("SHADOW_OFFSET: 0x%zx\n", (uptr)SHADOW_OFFSET);
CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7);
if (kMidMemBeg)
CHECK(kMidShadowBeg > kLowShadowEnd &&
kMidMemBeg > kMidShadowEnd &&
kHighShadowBeg > kMidMemEnd);
}
#if defined(__thumb__) && defined(__linux__)
#define START_BACKGROUND_THREAD_IN_ASAN_INTERNAL
#endif
#ifndef START_BACKGROUND_THREAD_IN_ASAN_INTERNAL
static bool UNUSED __local_asan_dyninit = [] {
MaybeStartBackgroudThread();
SetSoftRssLimitExceededCallback(AsanSoftRssLimitExceededCallback);
return false;
}();
#endif
static void AsanInitInternal() {
if (LIKELY(asan_inited)) return;
SanitizerToolName = "AddressSanitizer";
CHECK(!asan_init_is_running && "ASan init calls itself!");
asan_init_is_running = true;
CacheBinaryName();
// Initialize flags. This must be done early, because most of the
// initialization steps look at flags().
InitializeFlags();
// Stop performing init at this point if we are being loaded via
// dlopen() and the platform supports it.
if (SANITIZER_SUPPORTS_INIT_FOR_DLOPEN && UNLIKELY(HandleDlopenInit())) {
asan_init_is_running = false;
VReport(1, "AddressSanitizer init is being performed for dlopen().\n");
return;
}
AsanCheckIncompatibleRT();
AsanCheckDynamicRTPrereqs();
AvoidCVE_2016_2143();
SetCanPoisonMemory(flags()->poison_heap);
SetMallocContextSize(common_flags()->malloc_context_size);
InitializePlatformExceptionHandlers();
InitializeHighMemEnd();
// Make sure we are not statically linked.
AsanDoesNotSupportStaticLinkage();
// Install tool-specific callbacks in sanitizer_common.
AddDieCallback(AsanDie);
SetCheckFailedCallback(AsanCheckFailed);
SetPrintfAndReportCallback(AppendToErrorMessageBuffer);
__sanitizer_set_report_path(common_flags()->log_path);
__asan_option_detect_stack_use_after_return =
flags()->detect_stack_use_after_return;
__sanitizer::InitializePlatformEarly();
// Re-exec ourselves if we need to set additional env or command line args.
MaybeReexec();
// Setup internal allocator callback.
SetLowLevelAllocateMinAlignment(SHADOW_GRANULARITY);
SetLowLevelAllocateCallback(OnLowLevelAllocate);
InitializeAsanInterceptors();
CheckASLR();
// Enable system log ("adb logcat") on Android.
// Doing this before interceptors are initialized crashes in:
// AsanInitInternal -> android_log_write -> __interceptor_strcmp
AndroidLogInit();
ReplaceSystemMalloc();
DisableCoreDumperIfNecessary();
InitializeShadowMemory();
AsanTSDInit(PlatformTSDDtor);
InstallDeadlySignalHandlers(AsanOnDeadlySignal);
AllocatorOptions allocator_options;
allocator_options.SetFrom(flags(), common_flags());
InitializeAllocator(allocator_options);
#ifdef START_BACKGROUND_THREAD_IN_ASAN_INTERNAL
MaybeStartBackgroudThread();
SetSoftRssLimitExceededCallback(AsanSoftRssLimitExceededCallback);
#endif
// On Linux AsanThread::ThreadStart() calls malloc() that's why asan_inited
// should be set to 1 prior to initializing the threads.
asan_inited = 1;
asan_init_is_running = false;
if (flags()->atexit)
Atexit(asan_atexit);
InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
// Now that ASan runtime is (mostly) initialized, deactivate it if
// necessary, so that it can be re-activated when requested.
if (flags()->start_deactivated)
AsanDeactivate();
// interceptors
InitTlsSize();
// Create main thread.
AsanThread *main_thread = CreateMainThread();
CHECK_EQ(0, main_thread->tid());
force_interface_symbols(); // no-op.
SanitizerInitializeUnwinder();
if (CAN_SANITIZE_LEAKS) {
__lsan::InitCommonLsan();
if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit) {
if (flags()->halt_on_error)
Atexit(__lsan::DoLeakCheck);
else
Atexit(__lsan::DoRecoverableLeakCheckVoid);
}
}
#if CAN_SANITIZE_UB
__ubsan::InitAsPlugin();
#endif
InitializeSuppressions();
if (CAN_SANITIZE_LEAKS) {
// LateInitialize() calls dlsym, which can allocate an error string buffer
// in the TLS. Let's ignore the allocation to avoid reporting a leak.
__lsan::ScopedInterceptorDisabler disabler;
Symbolizer::LateInitialize();
} else {
Symbolizer::LateInitialize();
}
VReport(1, "AddressSanitizer Init done\n");
if (flags()->sleep_after_init) {
Report("Sleeping for %d second(s)\n", flags()->sleep_after_init);
SleepForSeconds(flags()->sleep_after_init);
}
}
// Initialize as requested from some part of ASan runtime library (interceptors,
// allocator, etc).
void AsanInitFromRtl() {
AsanInitInternal();
}
#if ASAN_DYNAMIC
// Initialize runtime in case it's LD_PRELOAD-ed into unsanitized executable
// (and thus normal initializers from .preinit_array or modules haven't run).
class AsanInitializer {
public: // NOLINT
AsanInitializer() {
AsanInitFromRtl();
}
};
static AsanInitializer asan_initializer;
#endif // ASAN_DYNAMIC
} // namespace __asan
// ---------------------- Interface ---------------- {{{1
using namespace __asan; // NOLINT
void NOINLINE __asan_handle_no_return() {
if (asan_init_is_running)
return;
int local_stack;
AsanThread *curr_thread = GetCurrentThread();
uptr PageSize = GetPageSizeCached();
uptr top, bottom;
if (curr_thread) {
top = curr_thread->stack_top();
bottom = ((uptr)&local_stack - PageSize) & ~(PageSize - 1);
} else if (SANITIZER_RTEMS) {
// Give up On RTEMS.
return;
} else {
CHECK(!SANITIZER_FUCHSIA);
// If we haven't seen this thread, try asking the OS for stack bounds.
uptr tls_addr, tls_size, stack_size;
GetThreadStackAndTls(/*main=*/false, &bottom, &stack_size, &tls_addr,
&tls_size);
top = bottom + stack_size;
}
static const uptr kMaxExpectedCleanupSize = 64 << 20; // 64M
if (top - bottom > kMaxExpectedCleanupSize) {
static bool reported_warning = false;
if (reported_warning)
return;
reported_warning = true;
Report("WARNING: ASan is ignoring requested __asan_handle_no_return: "
"stack top: %p; bottom %p; size: %p (%zd)\n"
"False positive error reports may follow\n"
"For details see "
"https://github.com/google/sanitizers/issues/189\n",
top, bottom, top - bottom, top - bottom);
return;
}
PoisonShadow(bottom, top - bottom, 0);
if (curr_thread && curr_thread->has_fake_stack())
curr_thread->fake_stack()->HandleNoReturn();
}
extern "C" void *__asan_extra_spill_area() {
AsanThread *t = GetCurrentThread();
CHECK(t);
return t->extra_spill_area();
}
void __asan_handle_vfork(void *sp) {
AsanThread *t = GetCurrentThread();
CHECK(t);
uptr bottom = t->stack_bottom();
PoisonShadow(bottom, (uptr)sp - bottom, 0);
}
void NOINLINE __asan_set_death_callback(void (*callback)(void)) {
SetUserDieCallback(callback);
}
// Initialize as requested from instrumented application code.
// We use this call as a trigger to wake up ASan from deactivated state.
void __asan_init() {
AsanActivate();
AsanInitInternal();
}
void __asan_version_mismatch_check() {
// Do nothing.
}
|
//%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Corporation, The Open Group.
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
// EMC Corporation; VERITAS Software Corporation; The Open Group.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//==============================================================================
//
// Author: Christopher Neufeld <neufeld@linuxcare.com>
// David Kennedy <dkennedy@linuxcare.com>
//
// Modified By:
// David Kennedy <dkennedy@linuxcare.com>
// Christopher Neufeld <neufeld@linuxcare.com>
// Al Stone, Hewlett-Packard Company <ahs3@fc.hp.com>
// Jim Metcalfe, Hewlett-Packard Company
// Carlos Bonilla, Hewlett-Packard Company
// Mike Glantz, Hewlett-Packard Company <michael_glantz@hp.com>
//
//%////////////////////////////////////////////////////////////////////////////
/* ==========================================================================
Includes.
========================================================================== */
#include "ProcessPlatform.h"
PEGASUS_USING_STD;
PEGASUS_USING_PEGASUS;
Process::Process()
{
}
Process::~Process()
{
}
/*
================================================================================
NAME : getCaption
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getCaption(String& s) const
{
s = String::EMPTY;
return true;
}
/*
================================================================================
NAME : getDescription
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getDescription(String& s) const
{
s = String::EMPTY;
return true;
}
/*
================================================================================
NAME : getInstallDate
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getInstallDate(CIMDateTime& d) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getStatus
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getStatus(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getName
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getName(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getPriority
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getPriority(Uint32& i32) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getExecutionState
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getExecutionState(Uint16& i16) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getOtherExecutionDescription
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getOtherExecutionDescription(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getCreationDate
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getCreationDate(CIMDateTime& d) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getTerminationDate
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getTerminationDate(CIMDateTime& d) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getKernelModeTime
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getKernelModeTime(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getUserModeTime
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getUserModeTime(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getWorkingSetSize
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getWorkingSetSize(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getRealUserID
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getRealUserID(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getProcessGroupID
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getProcessGroupID(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getProcessSessionID
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getProcessSessionID(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getProcessTTY
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getProcessTTY(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getModulePath
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getModulePath(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getParameters
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getParameters(Array<String>& as) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getProcessNiceValue
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getProcessNiceValue(Uint32& i32) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getProcessWaitingForEvent
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getProcessWaitingForEvent(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getCPUTime
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getCPUTime(Uint32& i32) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getRealText
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getRealText(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getRealData
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getRealData(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getRealStack
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getRealStack(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getVirtualText
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getVirtualText(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getVirtualData
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getVirtualData(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getVirtualStack
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getVirtualStack(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getVirtualMemoryMappedFileSize
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getVirtualMemoryMappedFileSize(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getVirtualSharedMemory
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getVirtualSharedMemory(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getCpuTimeDeadChildren
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getCpuTimeDeadChildren(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getSystemTimeDeadChildren
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getSystemTimeDeadChildren(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getParentProcessID
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::getParentProcessID(String& s) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getRealSpace
DESCRIPTION :
ASSUMPTIONS :
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES : returns a modified pIndex that can be used in a
subsequent call to get next process structure
================================================================================
*/
Boolean Process::getRealSpace(Uint64& i64) const
{
// not supported
return false;
}
/*
================================================================================
NAME : getHandle
DESCRIPTION : Call uname() and get the operating system name.
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
String Process::getHandle(void) const
{
// This routine *must* return a non-empty value if even a
// dummy provider will be tested
return String::EMPTY;
}
/*
================================================================================
NAME : getCSName
DESCRIPTION : Platform-specific method to get CSName
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
String Process::getCSName(void) const
{
// This routine must be written to return this key value
return String::EMPTY;
}
/*
================================================================================
NAME : getOSName
DESCRIPTION : Platform-specific method to get OSname.
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
String Process::getOSName(void) const
{
// This routine must be written to return this key value
return String::EMPTY;
}
/*
================================================================================
NAME : getCurrentTime
DESCRIPTION : Platform-specific routine to get a timestamp stat Name key
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
String Process::getCurrentTime(void) const
{
return String::EMPTY;
}
/*
================================================================================
NAME : loadProcessInfo
DESCRIPTION : get process info from system into internal data struct
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::loadProcessInfo(int &pIndex)
{
// not yet implemented
return false;
}
/*
================================================================================
NAME : findProcess
DESCRIPTION : find the requested process and load its data
ASSUMPTIONS : None
PRE-CONDITIONS :
POST-CONDITIONS :
NOTES :
================================================================================
*/
Boolean Process::findProcess(const String& handle)
{
// not yet implemented
return false;
}
|
/*****************************************************************************
*
* Copyright (c) 2003-2018 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014 by Centre for Geoscience Computing (GeoComp)
*
*****************************************************************************/
#include "ElementFile.h"
#include "ShapeTable.h"
#include <escript/index.h>
namespace dudley {
ElementFile::ElementFile(ElementTypeId type, escript::JMPI mpiInfo) :
MPIInfo(mpiInfo),
numElements(0),
Id(NULL),
Tag(NULL),
Owner(NULL),
Nodes(NULL),
Color(NULL),
minColor(0),
maxColor(-1),
etype(type)
{
jacobians = new ElementFile_Jacobians();
jacobians_reducedQ = new ElementFile_Jacobians();
numDim = Dims[type];
numNodes = numDim + 1;
numLocalDim = localDims[type];
numShapes = numLocalDim + 1;
ename = getElementName(type);
}
ElementFile::~ElementFile()
{
freeTable();
delete jacobians;
delete jacobians_reducedQ;
}
void ElementFile::allocTable(dim_t NE)
{
if (numElements > 0)
freeTable();
numElements = NE;
Owner = new int[numElements];
Id = new index_t[numElements];
Nodes = new index_t[numElements * numNodes];
Tag = new int[numElements];
Color = new index_t[numElements];
// this initialization makes sure that data are located on the right
// processor
#pragma omp parallel for
for (index_t e = 0; e < numElements; e++) {
for (int i = 0; i < numNodes; i++)
Nodes[INDEX2(i, e, numNodes)] = -1;
Owner[e] = -1;
Id[e] = -1;
Tag[e] = -1;
Color[e] = -1;
}
maxColor = -1;
minColor = 0;
}
void ElementFile::freeTable()
{
delete[] Owner;
delete[] Id;
delete[] Nodes;
delete[] Tag;
delete[] Color;
tagsInUse.clear();
numElements = 0;
maxColor = -1;
minColor = 0;
}
void ElementFile::copyTable(index_t offset, index_t nodeOffset,
index_t idOffset, const ElementFile* in)
{
const int NN_in = in->numNodes;
if (NN_in > numNodes) {
throw DudleyException("ElementFile::copyTable: dimensions of element files don't match.");
}
if (MPIInfo->comm != in->MPIInfo->comm) {
throw DudleyException("ElementFile::copyTable: MPI communicators of element files don't match.");
}
#pragma omp parallel for
for (index_t n = 0; n < in->numElements; n++) {
Owner[offset + n] = in->Owner[n];
Id[offset + n] = in->Id[n] + idOffset;
Tag[offset + n] = in->Tag[n];
for (int i = 0; i < numNodes; i++)
Nodes[INDEX2(i, offset + n, numNodes)] =
in->Nodes[INDEX2(i, n, NN_in)] + nodeOffset;
}
}
void ElementFile::print(const index_t* nodesId) const
{
std::cout << "=== " << ename << ":\nnumber of elements=" << numElements
<< "\ncolor range=[" << minColor << "," << maxColor << "]\n";
if (numElements > 0) {
std::cout << "Id,Tag,Owner,Color,Nodes" << std::endl;
for (index_t i = 0; i < numElements; i++) {
std::cout << Id[i] << "," << Tag[i] << ","
<< Owner[i] << "," << Color[i] << ",";
for (int j = 0; j < numNodes; j++)
std::cout << " " << nodesId[Nodes[INDEX2(j, i, numNodes)]];
std::cout << std::endl;
}
}
}
void ElementFile::gather(const index_t* index, const ElementFile* in)
{
const int NN_in = in->numNodes;
#pragma omp parallel for
for (index_t e = 0; e < numElements; e++) {
const index_t k = index[e];
Id[e] = in->Id[k];
Tag[e] = in->Tag[k];
Owner[e] = in->Owner[k];
Color[e] = in->Color[k] + maxColor + 1;
for (int j = 0; j < std::min(numNodes, NN_in); j++)
Nodes[INDEX2(j, e, numNodes)] = in->Nodes[INDEX2(j, k, NN_in)];
}
minColor = std::min(minColor, in->minColor + maxColor + 1);
maxColor = std::max(maxColor, in->maxColor + maxColor + 1);
}
void ElementFile::swapTable(ElementFile* other)
{
std::swap(numElements, other->numElements);
std::swap(Owner, other->Owner);
std::swap(Id, other->Id);
std::swap(Nodes, other->Nodes);
std::swap(Tag, other->Tag);
std::swap(Color, other->Color);
std::swap(minColor, other->minColor);
std::swap(maxColor, other->maxColor);
std::swap(tagsInUse, other->tagsInUse);
}
void ElementFile::optimizeOrdering()
{
if (numElements < 1)
return;
util::ValueAndIndexList item_list(numElements);
index_t* index = new index_t[numElements];
ElementFile* out = new ElementFile(etype, MPIInfo);
out->allocTable(numElements);
#pragma omp parallel for
for (index_t e = 0; e < numElements; e++) {
std::pair<index_t,index_t> entry(Nodes[INDEX2(0, e, numNodes)], e);
for (int i = 1; i < numNodes; i++)
entry.first = std::min(entry.first, Nodes[INDEX2(i, e, numNodes)]);
item_list[e] = entry;
}
util::sortValueAndIndex(item_list);
#pragma omp parallel for
for (index_t e = 0; e < numElements; e++)
index[e] = item_list[e].second;
out->gather(index, this);
swapTable(out);
delete out;
delete[] index;
}
void ElementFile::setTags(int newTag, const escript::Data& mask)
{
if (mask.isComplex())
{
throw DudleyException("ElementFile::setTags: mask argument must not be complex.");
}
const int numQuad = hasReducedIntegrationOrder(mask) ? 1 : numNodes;
if (1 != mask.getDataPointSize()) {
throw DudleyException("ElementFile::setTags: number of components of mask must be 1.");
} else if (!mask.numSamplesEqual(numQuad, numElements)) {
throw DudleyException("ElementFile::setTags: illegal number of samples of mask Data object");
}
escript::DataTypes::real_t wantreal=0;
if (mask.actsExpanded()) {
#pragma omp parallel for
for (index_t n = 0; n < numElements; n++) {
if (mask.getSampleDataRO(n, wantreal)[0] > 0)
Tag[n] = newTag;
}
} else {
#pragma omp parallel for
for (index_t n = 0; n < numElements; n++) {
const double* mask_array = mask.getSampleDataRO(n, wantreal);
bool check = false;
for (int q = 0; q < numQuad; q++)
check = check || mask_array[q];
if (check)
Tag[n] = newTag;
}
}
updateTagList();
}
void ElementFile::markNodes(std::vector<short>& mask, index_t offset) const
{
#pragma omp parallel for
for (index_t e = 0; e < numElements; e++) {
for (int i = 0; i < numNodes; i++) {
mask[Nodes[INDEX2(i, e, numNodes)] - offset] = 1;
}
}
}
void ElementFile::relabelNodes(const index_t* newNode, index_t offset)
{
#pragma omp parallel for
for (index_t j = 0; j < numElements; j++) {
for (int i = 0; i < numNodes; i++) {
Nodes[INDEX2(i, j, numNodes)] =
newNode[Nodes[INDEX2(i, j, numNodes)] - offset];
}
}
}
} // namespace dudley
|
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// Registers the XLA_INTERPRETER device which exposes the XLA Interpreter.
#include "absl/memory/memory.h"
#include "tensorflow/compiler/jit/kernels/xla_ops.h"
#include "tensorflow/compiler/jit/xla_device.h"
#include "tensorflow/compiler/jit/xla_device_ops.h"
#include "tensorflow/compiler/tf2xla/xla_op_registry.h"
namespace tensorflow {
const char* const DEVICE_XLA_INTERPRETER = "XLA_INTERPRETER";
const char* const DEVICE_INTERPRETER_XLA_JIT = "XLA_INTERPRETER_JIT";
constexpr std::array<DataType, 10> kExecAllTypes = {
{DT_INT8, DT_INT32, DT_INT64, DT_HALF, DT_FLOAT, DT_DOUBLE, DT_COMPLEX64,
DT_COMPLEX128, DT_BOOL, DT_BFLOAT16}};
class XlaInterpreterDeviceFactory : public DeviceFactory {
public:
Status ListPhysicalDevices(std::vector<string>* devices) override;
Status CreateDevices(const SessionOptions& options, const string& name_prefix,
std::vector<std::unique_ptr<Device>>* devices) override;
};
Status XlaInterpreterDeviceFactory::ListPhysicalDevices(
std::vector<string>* devices) {
devices->push_back(
absl::StrCat("/physical_device:", DEVICE_XLA_INTERPRETER, ":0"));
return Status::OK();
}
Status XlaInterpreterDeviceFactory::CreateDevices(
const SessionOptions& session_options, const string& name_prefix,
std::vector<std::unique_ptr<Device>>* devices) {
static XlaDeviceOpRegistrations* registrations = RegisterXlaDeviceKernels(
DEVICE_XLA_INTERPRETER, DEVICE_INTERPRETER_XLA_JIT);
(void)registrations;
XlaOpRegistry::DeviceRegistration registration;
registration.compilation_device_name = DEVICE_INTERPRETER_XLA_JIT;
registration.autoclustering_policy =
XlaOpRegistry::AutoclusteringPolicy::kAlways;
registration.cluster_resource_variable_ops_unsafely = true;
registration.cluster_stack_ops = false;
registration.cluster_tensor_array_ops = true;
registration.cluster_stateful_rng_ops = true;
registration.cluster_control_trigger = true;
registration.elide_assert_and_checknumerics = true;
registration.cluster_variant_ops = true;
registration.cluster_slow_ops = true;
registration.cluster_inaccurate_ops = true;
XlaOpRegistry::RegisterCompilationDevice(DEVICE_XLA_INTERPRETER,
registration);
TF_ASSIGN_OR_RETURN(
auto platform, se::MultiPlatformManager::PlatformWithName("Interpreter"));
XlaDevice::Options options;
options.platform = platform;
options.device_name_prefix = name_prefix;
options.device_name = DEVICE_XLA_INTERPRETER;
options.device_ordinal = 0;
options.compilation_device_name = DEVICE_INTERPRETER_XLA_JIT;
options.use_multiple_streams = false;
devices->push_back(absl::make_unique<XlaDevice>(session_options, options));
return Status::OK();
}
// Set priority to be below the default priority (50), so that Interpreter is
// not selected as a high priority device over other default devices. See
// constructor comments for Registrar in
// tensorflow/core/common_runtime/device_factory.h for a list of priority for
// devices.
REGISTER_LOCAL_DEVICE_FACTORY(DEVICE_XLA_INTERPRETER,
XlaInterpreterDeviceFactory, 40);
// Kernel registrations
static bool OpFilter(KernelDef* kdef) { return true; }
REGISTER_XLA_LAUNCH_KERNEL(DEVICE_XLA_INTERPRETER, XlaLocalLaunchOp,
kExecAllTypes);
REGISTER_XLA_COMPILE_KERNEL(DEVICE_XLA_INTERPRETER, XlaCompileOp,
kExecAllTypes);
REGISTER_XLA_RUN_KERNEL(DEVICE_XLA_INTERPRETER, XlaRunOp, kExecAllTypes);
REGISTER_XLA_DEVICE_KERNELS(DEVICE_XLA_INTERPRETER, kExecAllTypes);
REGISTER_XLA_BACKEND(DEVICE_INTERPRETER_XLA_JIT, kExecAllTypes, OpFilter);
} // namespace tensorflow
|
#include "processor.h"
#include "linux_parser.h"
#include <unistd.h>
#include <fstream>
#include <sstream>
using namespace LinuxParser;
// TODO: Return the aggregate CPU utilization
//returns 0 if the file is unable to be open
float Processor::Utilization()
{
std::ifstream file(kProcDirectory + kStatFilename);
if(file.is_open())
{
int total = 0;
int jiffyComponent;
int idle;
int column = 0;
float idleFruction;
std::string line;
std::getline(file, line);
line.erase(0, 5);
std::istringstream stream(line);
while(stream >> jiffyComponent)
{
total += jiffyComponent;
column++;
if(column==4)
idle = jiffyComponent;
}
idleFruction = (float)idle/total;
return (1.0 - idleFruction);
}
else
{
return 0.0;
}
}
|
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
#include "AliQAThresholds.h"
#include "AliDAQ.h"
ClassImp(AliQAThresholds)
AliQAThresholds::AliQAThresholds(Int_t detId): TNamed(), fThresholds(), fDetectorId(detId)
{
// constructor
fThresholds.SetOwner(kTRUE);
}
AliQAThresholds::~AliQAThresholds()
{
// destructor
}
const char* AliQAThresholds::GetName() const
{
return AliDAQ::OnlineName(fDetectorId);
}
const char* AliQAThresholds::GetTitle() const
{
return AliDAQ::OnlineName(fDetectorId);
}
Int_t AliQAThresholds::GetDetectorId()
{
return fDetectorId;
}
void AliQAThresholds::SetDetectorId(Int_t i)
{
fDetectorId = i;
}
void AliQAThresholds::AddThreshold(TParameter<long>* item)
{
// Add a threshold at the end of the array of thresholds.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<int>* item)
{
// Add a threshold at the end of the array of thresholds.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<double>* item)
{
// Add a threshold at the end of the array of thresholds.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.Add(item);
}
void AliQAThresholds::AddThreshold(TParameter<float>* item)
{
// Add a threshold at the end of the array of thresholds.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.Add(item);
}
void AliQAThresholds::AddThresholdAt(TParameter<int>* item, Int_t index)
{
// Add a threshold at index 'index' in the array of thresholds.
// If index is larger than the current size of the array, expand the array.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<long>* item, Int_t index)
{
// Add a threshold at index 'index' in the array of thresholds.
// If index is larger than the current size of the array, expand the array.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<double>* item, Int_t index)
{
// Add a threshold at index 'index' in the array of thresholds.
// If index is larger than the current size of the array, expand the array.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.AddAtAndExpand(item, index);
}
void AliQAThresholds::AddThresholdAt(TParameter<float>* item, Int_t index)
{
// Add a threshold at index 'index' in the array of thresholds.
// If index is larger than the current size of the array, expand the array.
// Ownership of the object is transfered to AliQAThresholds.
fThresholds.AddAtAndExpand(item, index);
}
TObject* AliQAThresholds::GetThreshold(Int_t i)
{
// Return the object at position i. Returns 0 if i is out of bounds.
return fThresholds.At(i);
}
Int_t AliQAThresholds::GetSize()
{
// Return the number of elements in the thresholds array.
// Beware that it is not the number of thresholds, as some elements of the array can be null.
return fThresholds.GetSize();
}
|
#pragma once
#include <websocketpp/transport/base/endpoint.hpp>
#include <websocketpp/transport/asio/connection.hpp>
#include <websocketpp/transport/asio/security/none.hpp>
#include <websocketpp/uri.hpp>
#include <websocketpp/logger/levels.hpp>
#include <websocketpp/common/functional.hpp>
#include <sstream>
#include <string>
namespace websocketpp {
namespace transport {
namespace asio {
namespace basic_socket {
class local_connection : public lib::enable_shared_from_this<local_connection> {
public:
/// Type of this connection socket component
typedef local_connection type;
/// Type of a shared pointer to this connection socket component
typedef lib::shared_ptr<type> ptr;
/// Type of a pointer to the Asio io_service being used
typedef lib::asio::io_service *io_service_ptr;
/// Type of a pointer to the Asio io_service strand being used
typedef lib::shared_ptr<lib::asio::io_service::strand> strand_ptr;
/// Type of the ASIO socket being used
typedef lib::asio::local::stream_protocol::socket socket_type;
/// Type of a shared pointer to the socket being used.
typedef lib::shared_ptr<socket_type> socket_ptr;
explicit local_connection() : m_state(UNINITIALIZED) {
}
ptr get_shared() {
return shared_from_this();
}
bool is_secure() const {
return false;
}
lib::asio::local::stream_protocol::socket &get_socket() {
return *m_socket;
}
lib::asio::local::stream_protocol::socket &get_next_layer() {
return *m_socket;
}
lib::asio::local::stream_protocol::socket &get_raw_socket() {
return *m_socket;
}
std::string get_remote_endpoint(lib::error_code &ec) const {
return "UNIX Socket Endpoint";
}
void pre_init(init_handler callback) {
if (m_state != READY) {
callback(socket::make_error_code(socket::error::invalid_state));
return;
}
m_state = READING;
callback(lib::error_code());
}
void post_init(init_handler callback) {
callback(lib::error_code());
}
protected:
lib::error_code init_asio(io_service_ptr service, strand_ptr, bool) {
if (m_state != UNINITIALIZED) {
return socket::make_error_code(socket::error::invalid_state);
}
m_socket = lib::make_shared<lib::asio::local::stream_protocol::socket>(*service);
m_state = READY;
return lib::error_code();
}
void set_handle(connection_hdl hdl) {
m_hdl = hdl;
}
lib::asio::error_code cancel_socket() {
lib::asio::error_code ec;
m_socket->cancel(ec);
return ec;
}
void async_shutdown(socket::shutdown_handler h) {
lib::asio::error_code ec;
m_socket->shutdown(lib::asio::ip::tcp::socket::shutdown_both, ec);
h(ec);
}
lib::error_code get_ec() const {
return lib::error_code();
}
template<typename ErrorCodeType>
lib::error_code translate_ec(ErrorCodeType) {
return make_error_code(transport::error::pass_through);
}
lib::error_code translate_ec(lib::error_code ec) {
return ec;
}
private:
enum state {
UNINITIALIZED = 0,
READY = 1,
READING = 2
};
socket_ptr m_socket;
state m_state;
connection_hdl m_hdl;
socket_init_handler m_socket_init_handler;
};
class local_endpoint {
public:
/// The type of this endpoint socket component
typedef local_endpoint type;
/// The type of the corresponding connection socket component
typedef local_connection socket_con_type;
/// The type of a shared pointer to the corresponding connection socket
/// component.
typedef socket_con_type::ptr socket_con_ptr;
explicit local_endpoint() {}
bool is_secure() const {
return false;
}
};
}
/// Asio based endpoint transport component
/**
* transport::asio::endpoint implements an endpoint transport component using
* Asio.
*/
template<typename config>
class local_endpoint : public config::socket_type {
public:
/// Type of this endpoint transport component
typedef local_endpoint<config> type;
/// Type of the concurrency policy
typedef typename config::concurrency_type concurrency_type;
/// Type of the socket policy
typedef typename config::socket_type socket_type;
/// Type of the error logging policy
typedef typename config::elog_type elog_type;
/// Type of the access logging policy
typedef typename config::alog_type alog_type;
/// Type of the socket connection component
typedef typename socket_type::socket_con_type socket_con_type;
/// Type of a shared pointer to the socket connection component
typedef typename socket_con_type::ptr socket_con_ptr;
/// Type of the connection transport component associated with this
/// endpoint transport component
typedef asio::connection<config> transport_con_type;
/// Type of a shared pointer to the connection transport component
/// associated with this endpoint transport component
typedef typename transport_con_type::ptr transport_con_ptr;
/// Type of a pointer to the ASIO io_service being used
typedef lib::asio::io_service *io_service_ptr;
/// Type of a shared pointer to the acceptor being used
typedef lib::shared_ptr<lib::asio::local::stream_protocol::acceptor> acceptor_ptr;
/// Type of timer handle
typedef lib::shared_ptr<lib::asio::steady_timer> timer_ptr;
/// Type of a shared pointer to an io_service work object
typedef lib::shared_ptr<lib::asio::io_service::work> work_ptr;
// generate and manage our own io_service
explicit local_endpoint()
: m_io_service(NULL), m_state(UNINITIALIZED) {
//std::cout << "transport::asio::endpoint constructor" << std::endl;
}
~local_endpoint() {
if (m_acceptor && m_state == LISTENING)
::unlink(m_acceptor->local_endpoint().path().c_str());
// Explicitly destroy local objects
m_acceptor.reset();
m_work.reset();
}
/// transport::asio objects are moveable but not copyable or assignable.
/// The following code sets this situation up based on whether or not we
/// have C++11 support or not
#ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
local_endpoint(const local_endpoint &src) = delete;
local_endpoint &operator=(const local_endpoint &rhs) = delete;
#else
private:
local_endpoint(const local_endpoint & src);
local_endpoint & operator= (const local_endpoint & rhs);
public:
#endif // _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_
#ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
local_endpoint(local_endpoint &&src)
: config::socket_type(std::move(src)), m_tcp_pre_init_handler(src.m_tcp_pre_init_handler),
m_tcp_post_init_handler(src.m_tcp_post_init_handler), m_io_service(src.m_io_service),
m_acceptor(src.m_acceptor), m_elog(src.m_elog), m_alog(src.m_alog), m_state(src.m_state) {
src.m_io_service = NULL;
src.m_acceptor = NULL;
src.m_state = UNINITIALIZED;
}
#endif // _WEBSOCKETPP_MOVE_SEMANTICS_
/// Return whether or not the endpoint produces secure connections.
bool is_secure() const {
return socket_type::is_secure();
}
/// initialize asio transport with external io_service (exception free)
/**
* Initialize the ASIO transport policy for this endpoint using the provided
* io_service object. asio_init must be called exactly once on any endpoint
* that uses transport::asio before it can be used.
*
* @param ptr A pointer to the io_service to use for asio events
* @param ec Set to indicate what error occurred, if any.
*/
void init_asio(io_service_ptr ptr, lib::error_code &ec) {
if (m_state != UNINITIALIZED) {
m_elog->write(log::elevel::library,
"asio::init_asio called from the wrong state");
using websocketpp::error::make_error_code;
ec = make_error_code(websocketpp::error::invalid_state);
return;
}
m_alog->write(log::alevel::devel, "asio::init_asio");
m_io_service = ptr;
m_acceptor = lib::make_shared<lib::asio::local::stream_protocol::acceptor>(*m_io_service);
m_state = READY;
ec = lib::error_code();
}
/// initialize asio transport with external io_service
/**
* Initialize the ASIO transport policy for this endpoint using the provided
* io_service object. asio_init must be called exactly once on any endpoint
* that uses transport::asio before it can be used.
*
* @param ptr A pointer to the io_service to use for asio events
*/
void init_asio(io_service_ptr ptr) {
lib::error_code ec;
init_asio(ptr, ec);
if (ec) { throw exception(ec); }
}
/// Sets the tcp pre init handler
/**
* The tcp pre init handler is called after the raw tcp connection has been
* established but before any additional wrappers (proxy connects, TLS
* handshakes, etc) have been performed.
*
* @since 0.3.0
*
* @param h The handler to call on tcp pre init.
*/
void set_tcp_pre_init_handler(tcp_init_handler h) {
m_tcp_pre_init_handler = h;
}
/// Sets the tcp pre init handler (deprecated)
/**
* The tcp pre init handler is called after the raw tcp connection has been
* established but before any additional wrappers (proxy connects, TLS
* handshakes, etc) have been performed.
*
* @deprecated Use set_tcp_pre_init_handler instead
*
* @param h The handler to call on tcp pre init.
*/
void set_tcp_init_handler(tcp_init_handler h) {
set_tcp_pre_init_handler(h);
}
/// Sets the tcp post init handler
/**
* The tcp post init handler is called after the tcp connection has been
* established and all additional wrappers (proxy connects, TLS handshakes,
* etc have been performed. This is fired before any bytes are read or any
* WebSocket specific handshake logic has been performed.
*
* @since 0.3.0
*
* @param h The handler to call on tcp post init.
*/
void set_tcp_post_init_handler(tcp_init_handler h) {
m_tcp_post_init_handler = h;
}
/// Retrieve a reference to the endpoint's io_service
/**
* The io_service may be an internal or external one. This may be used to
* call methods of the io_service that are not explicitly wrapped by the
* endpoint.
*
* This method is only valid after the endpoint has been initialized with
* `init_asio`. No error will be returned if it isn't.
*
* @return A reference to the endpoint's io_service
*/
lib::asio::io_service &get_io_service() {
return *m_io_service;
}
/// Set up endpoint for listening manually (exception free)
/**
* Bind the internal acceptor using the specified settings. The endpoint
* must have been initialized by calling init_asio before listening.
*
* @param ep An endpoint to read settings from
* @param ec Set to indicate what error occurred, if any.
*/
void listen(lib::asio::local::stream_protocol::endpoint const &ep, lib::error_code &ec) {
if (m_state != READY) {
m_elog->write(log::elevel::library,
"asio::listen called from the wrong state");
using websocketpp::error::make_error_code;
ec = make_error_code(websocketpp::error::invalid_state);
return;
}
m_alog->write(log::alevel::devel, "asio::listen");
lib::asio::error_code bec;
{
boost::system::error_code test_ec;
lib::asio::local::stream_protocol::socket test_socket(get_io_service());
test_socket.connect(ep, test_ec);
//looks like a service is already running on that socket, probably another keosd, don't touch it
if (test_ec == boost::system::errc::success)
bec = boost::system::errc::make_error_code(boost::system::errc::address_in_use);
//socket exists but no one home, go ahead and remove it and continue on
else if (test_ec == boost::system::errc::connection_refused)
::unlink(ep.path().c_str());
else if (test_ec != boost::system::errc::no_such_file_or_directory)
bec = test_ec;
}
if (!bec) {
m_acceptor->open(ep.protocol(), bec);
}
if (!bec) {
m_acceptor->bind(ep, bec);
}
if (!bec) {
m_acceptor->listen(boost::asio::socket_base::max_listen_connections, bec);
}
if (bec) {
if (m_acceptor->is_open()) {
m_acceptor->close();
}
log_err(log::elevel::info, "asio listen", bec);
ec = bec;
} else {
m_state = LISTENING;
ec = lib::error_code();
}
}
/// Set up endpoint for listening manually
/**
* Bind the internal acceptor using the settings specified by the endpoint e
*
* @param ep An endpoint to read settings from
*/
void listen(lib::asio::local::stream_protocol::endpoint const &ep) {
lib::error_code ec;
listen(ep, ec);
if (ec) { throw exception(ec); }
}
/// Stop listening (exception free)
/**
* Stop listening and accepting new connections. This will not end any
* existing connections.
*
* @since 0.3.0-alpha4
* @param ec A status code indicating an error, if any.
*/
void stop_listening(lib::error_code &ec) {
if (m_state != LISTENING) {
m_elog->write(log::elevel::library,
"asio::listen called from the wrong state");
using websocketpp::error::make_error_code;
ec = make_error_code(websocketpp::error::invalid_state);
return;
}
::unlink(m_acceptor->local_endpoint().path().c_str());
m_acceptor->close();
m_state = READY;
ec = lib::error_code();
}
/// Stop listening
/**
* Stop listening and accepting new connections. This will not end any
* existing connections.
*
* @since 0.3.0-alpha4
*/
void stop_listening() {
lib::error_code ec;
stop_listening(ec);
if (ec) { throw exception(ec); }
}
/// Check if the endpoint is listening
/**
* @return Whether or not the endpoint is listening.
*/
bool is_listening() const {
return (m_state == LISTENING);
}
/// wraps the run method of the internal io_service object
std::size_t run() {
return m_io_service->run();
}
/// wraps the run_one method of the internal io_service object
/**
* @since 0.3.0-alpha4
*/
std::size_t run_one() {
return m_io_service->run_one();
}
/// wraps the stop method of the internal io_service object
void stop() {
m_io_service->stop();
}
/// wraps the poll method of the internal io_service object
std::size_t poll() {
return m_io_service->poll();
}
/// wraps the poll_one method of the internal io_service object
std::size_t poll_one() {
return m_io_service->poll_one();
}
/// wraps the reset method of the internal io_service object
void reset() {
m_io_service->reset();
}
/// wraps the stopped method of the internal io_service object
bool stopped() const {
return m_io_service->stopped();
}
/// Marks the endpoint as perpetual, stopping it from exiting when empty
/**
* Marks the endpoint as perpetual. Perpetual endpoints will not
* automatically exit when they run out of connections to process. To stop
* a perpetual endpoint call `end_perpetual`.
*
* An endpoint may be marked perpetual at any time by any thread. It must be
* called either before the endpoint has run out of work or before it was
* started
*
* @since 0.3.0
*/
void start_perpetual() {
m_work = lib::make_shared<lib::asio::io_service::work>(
lib::ref(*m_io_service)
);
}
/// Clears the endpoint's perpetual flag, allowing it to exit when empty
/**
* Clears the endpoint's perpetual flag. This will cause the endpoint's run
* method to exit normally when it runs out of connections. If there are
* currently active connections it will not end until they are complete.
*
* @since 0.3.0
*/
void stop_perpetual() {
m_work.reset();
}
/// Call back a function after a period of time.
/**
* Sets a timer that calls back a function after the specified period of
* milliseconds. Returns a handle that can be used to cancel the timer.
* A cancelled timer will return the error code error::operation_aborted
* A timer that expired will return no error.
*
* @param duration Length of time to wait in milliseconds
* @param callback The function to call back when the timer has expired
* @return A handle that can be used to cancel the timer if it is no longer
* needed.
*/
timer_ptr set_timer(long duration, timer_handler callback) {
timer_ptr new_timer = lib::make_shared<lib::asio::steady_timer>(
*m_io_service,
lib::asio::milliseconds(duration)
);
new_timer->async_wait(
lib::bind(
&type::handle_timer,
this,
new_timer,
callback,
lib::placeholders::_1
)
);
return new_timer;
}
/// Timer handler
/**
* The timer pointer is included to ensure the timer isn't destroyed until
* after it has expired.
*
* @param t Pointer to the timer in question
* @param callback The function to call back
* @param ec A status code indicating an error, if any.
*/
void handle_timer(timer_ptr, timer_handler callback,
lib::asio::error_code const &ec) {
if (ec) {
if (ec == lib::asio::error::operation_aborted) {
callback(make_error_code(transport::error::operation_aborted));
} else {
m_elog->write(log::elevel::info,
"asio handle_timer error: " + ec.message());
log_err(log::elevel::info, "asio handle_timer", ec);
callback(ec);
}
} else {
callback(lib::error_code());
}
}
/// Accept the next connection attempt and assign it to con (exception free)
/**
* @param tcon The connection to accept into.
* @param callback The function to call when the operation is complete.
* @param ec A status code indicating an error, if any.
*/
void async_accept(transport_con_ptr tcon, accept_handler callback,
lib::error_code &ec) {
if (m_state != LISTENING) {
using websocketpp::error::make_error_code;
ec = make_error_code(websocketpp::error::async_accept_not_listening);
return;
}
m_alog->write(log::alevel::devel, "asio::async_accept");
if (config::enable_multithreading) {
m_acceptor->async_accept(
tcon->get_raw_socket(),
tcon->get_strand()->wrap(lib::bind(
&type::handle_accept,
this,
callback,
lib::placeholders::_1
))
);
} else {
m_acceptor->async_accept(
tcon->get_raw_socket(),
lib::bind(
&type::handle_accept,
this,
callback,
lib::placeholders::_1
)
);
}
}
/// Accept the next connection attempt and assign it to con.
/**
* @param tcon The connection to accept into.
* @param callback The function to call when the operation is complete.
*/
void async_accept(transport_con_ptr tcon, accept_handler callback) {
lib::error_code ec;
async_accept(tcon, callback, ec);
if (ec) { throw exception(ec); }
}
protected:
/// Initialize logging
/**
* The loggers are located in the main endpoint class. As such, the
* transport doesn't have direct access to them. This method is called
* by the endpoint constructor to allow shared logging from the transport
* component. These are raw pointers to member variables of the endpoint.
* In particular, they cannot be used in the transport constructor as they
* haven't been constructed yet, and cannot be used in the transport
* destructor as they will have been destroyed by then.
*/
void init_logging(alog_type *a, elog_type *e) {
m_alog = a;
m_elog = e;
}
void handle_accept(accept_handler callback, lib::asio::error_code const &
asio_ec) {
lib::error_code ret_ec;
m_alog->write(log::alevel::devel, "asio::handle_accept");
if (asio_ec) {
if (asio_ec == lib::asio::errc::operation_canceled) {
ret_ec = make_error_code(websocketpp::error::operation_canceled);
} else {
log_err(log::elevel::info, "asio handle_accept", asio_ec);
ret_ec = asio_ec;
}
}
callback(ret_ec);
}
/// Asio connect timeout handler
/**
* The timer pointer is included to ensure the timer isn't destroyed until
* after it has expired.
*
* @param tcon Pointer to the transport connection that is being connected
* @param con_timer Pointer to the timer in question
* @param callback The function to call back
* @param ec A status code indicating an error, if any.
*/
void handle_connect_timeout(transport_con_ptr tcon, timer_ptr,
connect_handler callback, lib::error_code const &ec) {
lib::error_code ret_ec;
if (ec) {
if (ec == transport::error::operation_aborted) {
m_alog->write(log::alevel::devel,
"asio handle_connect_timeout timer cancelled");
return;
}
log_err(log::elevel::devel, "asio handle_connect_timeout", ec);
ret_ec = ec;
} else {
ret_ec = make_error_code(transport::error::timeout);
}
m_alog->write(log::alevel::devel, "TCP connect timed out");
tcon->cancel_socket_checked();
callback(ret_ec);
}
void handle_connect(transport_con_ptr tcon, timer_ptr con_timer,
connect_handler callback, lib::asio::error_code const &ec) {
if (ec == lib::asio::error::operation_aborted ||
lib::asio::is_neg(con_timer->expires_from_now())) {
m_alog->write(log::alevel::devel, "async_connect cancelled");
return;
}
con_timer->cancel();
if (ec) {
log_err(log::elevel::info, "asio async_connect", ec);
callback(ec);
return;
}
if (m_alog->static_test(log::alevel::devel)) {
m_alog->write(log::alevel::devel,
"Async connect to " + tcon->get_remote_endpoint() + " successful.");
}
callback(lib::error_code());
}
/// Initialize a connection
/**
* init is called by an endpoint once for each newly created connection.
* It's purpose is to give the transport policy the chance to perform any
* transport specific initialization that couldn't be done via the default
* constructor.
*
* @param tcon A pointer to the transport portion of the connection.
*
* @return A status code indicating the success or failure of the operation
*/
lib::error_code init(transport_con_ptr tcon) {
m_alog->write(log::alevel::devel, "transport::asio::init");
lib::error_code ec;
ec = tcon->init_asio(m_io_service);
if (ec) { return ec; }
tcon->set_tcp_pre_init_handler(m_tcp_pre_init_handler);
tcon->set_tcp_post_init_handler(m_tcp_post_init_handler);
return lib::error_code();
}
private:
/// Convenience method for logging the code and message for an error_code
template<typename error_type>
void log_err(log::level l, char const *msg, error_type const &ec) {
std::stringstream s;
s << msg << " error: " << ec << " (" << ec.message() << ")";
m_elog->write(l, s.str());
}
enum state {
UNINITIALIZED = 0,
READY = 1,
LISTENING = 2
};
// Handlers
tcp_init_handler m_tcp_pre_init_handler;
tcp_init_handler m_tcp_post_init_handler;
// Network Resources
io_service_ptr m_io_service;
acceptor_ptr m_acceptor;
work_ptr m_work;
elog_type *m_elog;
alog_type *m_alog;
// Transport state
state m_state;
};
} // namespace asio
} // namespace transport
} // namespace websocketpp
|
#include "PID.h"
#include <iostream>
using namespace std;
/*
* TODO: Complete the PID class.
*/
PID::PID() {}
PID::~PID() {}
void PID::Init(double Kp, double Ki, double Kd) {
this->Kp = Kp;
this->Ki = Ki;
this->Kd = Kd;
p_error = 0;
i_error = 0;
d_error = 0;
t_cte = 0;
prev_cte = 0;
}
void PID::UpdateError(double cte) {
//total cte
t_cte += cte;
p_error = -Kp * cte;
i_error = -Ki * total_cte;
d_error = -Kd * (cte - prev_cte);
prev_cte = cte;
cout << "p_error: " << p_error << " i_error: " << i_error << " d_error: " << d_error << endl;
}
double PID::TotalError() {
double total_error = p_error + i_error + d_error;
return total_error;
}
|
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <map>
#include <memory>
#include <set>
#include <string>
#include "platform/globals.h"
#include "platform/assert.h"
#include "vm/class_finalizer.h"
#include "vm/dart_api_impl.h"
#include "vm/globals.h"
#include "vm/heap/become.h"
#include "vm/heap/heap.h"
#include "vm/message_handler.h"
#include "vm/object_graph.h"
#include "vm/port.h"
#include "vm/symbols.h"
#include "vm/unit_test.h"
namespace dart {
TEST_CASE(OldGC) {
const char* kScriptChars =
"main() {\n"
" return [1, 2, 3];\n"
"}\n";
NOT_IN_PRODUCT(FLAG_verbose_gc = true);
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
EXPECT(Dart_IsList(result));
TransitionNativeToVM transition(thread);
GCTestHelper::CollectOldSpace();
}
#if !defined(PRODUCT)
TEST_CASE(OldGC_Unsync) {
// Finalize any GC in progress as it is unsafe to change FLAG_marker_tasks
// when incremental marking is in progress.
{
TransitionNativeToVM transition(thread);
GCTestHelper::CollectAllGarbage();
}
FLAG_marker_tasks = 0;
const char* kScriptChars =
"main() {\n"
" return [1, 2, 3];\n"
"}\n";
FLAG_verbose_gc = true;
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
EXPECT(Dart_IsList(result));
TransitionNativeToVM transition(thread);
GCTestHelper::CollectOldSpace();
}
#endif // !defined(PRODUCT)
TEST_CASE(LargeSweep) {
const char* kScriptChars =
"main() {\n"
" return List.filled(8 * 1024 * 1024, null);\n"
"}\n";
NOT_IN_PRODUCT(FLAG_verbose_gc = true);
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_EnterScope();
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
EXPECT(Dart_IsList(result));
{
TransitionNativeToVM transition(thread);
GCTestHelper::CollectOldSpace();
}
Dart_ExitScope();
{
TransitionNativeToVM transition(thread);
GCTestHelper::CollectOldSpace();
}
}
#ifndef PRODUCT
static ClassPtr GetClass(const Library& lib, const char* name) {
const Class& cls = Class::Handle(
lib.LookupClass(String::Handle(Symbols::New(Thread::Current(), name))));
EXPECT(!cls.IsNull()); // No ambiguity error expected.
return cls.raw();
}
TEST_CASE(ClassHeapStats) {
const char* kScriptChars =
"class A {\n"
" var a;\n"
" var b;\n"
"}\n"
""
"main() {\n"
" var x = new A();\n"
" return new A();\n"
"}\n";
Dart_Handle h_lib = TestCase::LoadTestScript(kScriptChars, NULL);
Isolate* isolate = Isolate::Current();
ClassTable* class_table = isolate->class_table();
{
// GC before main so allocations during the tests don't cause unexpected GC.
TransitionNativeToVM transition(thread);
GCTestHelper::CollectAllGarbage();
}
Dart_EnterScope();
Dart_Handle result = Dart_Invoke(h_lib, NewString("main"), 0, NULL);
EXPECT_VALID(result);
EXPECT(!Dart_IsNull(result));
intptr_t cid;
{
TransitionNativeToVM transition(thread);
Library& lib = Library::Handle();
lib ^= Api::UnwrapHandle(h_lib);
EXPECT(!lib.IsNull());
const Class& cls = Class::Handle(GetClass(lib, "A"));
ASSERT(!cls.IsNull());
cid = cls.id();
{
// Verify preconditions: allocated twice in new space.
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(2, visitor.new_count_[cid]);
EXPECT_EQ(0, visitor.old_count_[cid]);
}
// Perform GC.
GCTestHelper::CollectNewSpace();
{
// Verify postconditions: Only one survived.
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(1, visitor.new_count_[cid]);
EXPECT_EQ(0, visitor.old_count_[cid]);
}
// Perform GC. The following is heavily dependent on the behaviour
// of the GC: Retained instance of A will be promoted.
GCTestHelper::CollectNewSpace();
{
// Verify postconditions: One promoted instance.
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(0, visitor.new_count_[cid]);
EXPECT_EQ(1, visitor.old_count_[cid]);
}
// Perform a GC on new space.
GCTestHelper::CollectNewSpace();
{
// Verify postconditions:
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(0, visitor.new_count_[cid]);
EXPECT_EQ(1, visitor.old_count_[cid]);
}
GCTestHelper::CollectOldSpace();
{
// Verify postconditions:
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(0, visitor.new_count_[cid]);
EXPECT_EQ(1, visitor.old_count_[cid]);
}
}
// Exit scope, freeing instance.
Dart_ExitScope();
{
TransitionNativeToVM transition(thread);
// Perform GC.
GCTestHelper::CollectOldSpace();
{
// Verify postconditions:
CountObjectsVisitor visitor(thread, class_table->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_EQ(0, visitor.new_count_[cid]);
EXPECT_EQ(0, visitor.old_count_[cid]);
}
}
}
#endif // !PRODUCT
class FindOnly : public FindObjectVisitor {
public:
explicit FindOnly(ObjectPtr target) : target_(target) {
#if defined(DEBUG)
EXPECT_GT(Thread::Current()->no_safepoint_scope_depth(), 0);
#endif
}
virtual ~FindOnly() {}
virtual bool FindObject(ObjectPtr obj) const { return obj == target_; }
private:
ObjectPtr target_;
};
class FindNothing : public FindObjectVisitor {
public:
FindNothing() {}
virtual ~FindNothing() {}
virtual bool FindObject(ObjectPtr obj) const { return false; }
};
ISOLATE_UNIT_TEST_CASE(FindObject) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
Heap::Space spaces[2] = {Heap::kOld, Heap::kNew};
for (size_t space = 0; space < ARRAY_SIZE(spaces); ++space) {
const String& obj = String::Handle(String::New("x", spaces[space]));
{
HeapIterationScope iteration(thread);
NoSafepointScope no_safepoint;
FindOnly find_only(obj.raw());
EXPECT(obj.raw() == heap->FindObject(&find_only));
}
}
{
HeapIterationScope iteration(thread);
NoSafepointScope no_safepoint;
FindNothing find_nothing;
EXPECT(Object::null() == heap->FindObject(&find_nothing));
}
}
ISOLATE_UNIT_TEST_CASE(IterateReadOnly) {
const String& obj = String::Handle(String::New("x", Heap::kOld));
// It is not safe to make the heap read-only if marking or sweeping is in
// progress.
GCTestHelper::WaitForGCTasks();
Heap* heap = Thread::Current()->isolate()->heap();
EXPECT(heap->Contains(ObjectLayout::ToAddr(obj.raw())));
heap->WriteProtect(true);
EXPECT(heap->Contains(ObjectLayout::ToAddr(obj.raw())));
heap->WriteProtect(false);
EXPECT(heap->Contains(ObjectLayout::ToAddr(obj.raw())));
}
void TestBecomeForward(Heap::Space before_space, Heap::Space after_space) {
const String& before_obj = String::Handle(String::New("old", before_space));
const String& after_obj = String::Handle(String::New("new", after_space));
EXPECT(before_obj.raw() != after_obj.raw());
// Allocate the arrays in old space to test the remembered set.
const Array& before = Array::Handle(Array::New(1, Heap::kOld));
before.SetAt(0, before_obj);
const Array& after = Array::Handle(Array::New(1, Heap::kOld));
after.SetAt(0, after_obj);
Become::ElementsForwardIdentity(before, after);
EXPECT(before_obj.raw() == after_obj.raw());
GCTestHelper::CollectAllGarbage();
EXPECT(before_obj.raw() == after_obj.raw());
}
ISOLATE_UNIT_TEST_CASE(BecomeFowardOldToOld) {
TestBecomeForward(Heap::kOld, Heap::kOld);
}
ISOLATE_UNIT_TEST_CASE(BecomeFowardNewToNew) {
TestBecomeForward(Heap::kNew, Heap::kNew);
}
ISOLATE_UNIT_TEST_CASE(BecomeFowardOldToNew) {
TestBecomeForward(Heap::kOld, Heap::kNew);
}
ISOLATE_UNIT_TEST_CASE(BecomeFowardNewToOld) {
TestBecomeForward(Heap::kNew, Heap::kOld);
}
ISOLATE_UNIT_TEST_CASE(BecomeForwardPeer) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
const Array& before_obj = Array::Handle(Array::New(0, Heap::kOld));
const Array& after_obj = Array::Handle(Array::New(0, Heap::kOld));
EXPECT(before_obj.raw() != after_obj.raw());
void* peer = reinterpret_cast<void*>(42);
void* no_peer = reinterpret_cast<void*>(0);
heap->SetPeer(before_obj.raw(), peer);
EXPECT_EQ(peer, heap->GetPeer(before_obj.raw()));
EXPECT_EQ(no_peer, heap->GetPeer(after_obj.raw()));
const Array& before = Array::Handle(Array::New(1, Heap::kOld));
before.SetAt(0, before_obj);
const Array& after = Array::Handle(Array::New(1, Heap::kOld));
after.SetAt(0, after_obj);
Become::ElementsForwardIdentity(before, after);
EXPECT(before_obj.raw() == after_obj.raw());
EXPECT_EQ(peer, heap->GetPeer(before_obj.raw()));
EXPECT_EQ(peer, heap->GetPeer(after_obj.raw()));
}
ISOLATE_UNIT_TEST_CASE(BecomeForwardRememberedObject) {
const String& new_element = String::Handle(String::New("new", Heap::kNew));
const String& old_element = String::Handle(String::New("old", Heap::kOld));
const Array& before_obj = Array::Handle(Array::New(1, Heap::kOld));
const Array& after_obj = Array::Handle(Array::New(1, Heap::kOld));
before_obj.SetAt(0, new_element);
after_obj.SetAt(0, old_element);
EXPECT(before_obj.raw()->ptr()->IsRemembered());
EXPECT(!after_obj.raw()->ptr()->IsRemembered());
EXPECT(before_obj.raw() != after_obj.raw());
const Array& before = Array::Handle(Array::New(1, Heap::kOld));
before.SetAt(0, before_obj);
const Array& after = Array::Handle(Array::New(1, Heap::kOld));
after.SetAt(0, after_obj);
Become::ElementsForwardIdentity(before, after);
EXPECT(before_obj.raw() == after_obj.raw());
EXPECT(!after_obj.raw()->ptr()->IsRemembered());
GCTestHelper::CollectAllGarbage();
EXPECT(before_obj.raw() == after_obj.raw());
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadOldToNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
old.SetAt(0, neu);
old = Array::null();
neu = Array::null();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT_EQ(size_before, size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadNewToOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
neu.SetAt(0, old);
old = Array::null();
neu = Array::null();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT_EQ(size_before, size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_DeadGenCycle) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
neu.SetAt(0, old);
old.SetAt(0, neu);
old = Array::null();
neu = Array::null();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT_EQ(size_before, size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
neu.SetAt(0, old);
old = Array::null();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldToNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
old.SetAt(0, neu);
neu = Array::null();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldDeadNew) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
neu = Array::null();
old.SetAt(0, old);
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewDeadOld) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
old = Array::null();
neu.SetAt(0, neu);
heap->CollectAllGarbage();
heap->WaitForMarkerTasks(thread); // Finalize marking to get live size.
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveNewToOldChain) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& old2 = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
old.SetAt(0, old2);
neu.SetAt(0, old);
old = Array::null();
old2 = Array::null();
heap->CollectAllGarbage();
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
ISOLATE_UNIT_TEST_CASE(CollectAllGarbage_LiveOldToNewChain) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
intptr_t size_before =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
Array& old = Array::Handle(Array::New(1, Heap::kOld));
Array& neu = Array::Handle(Array::New(1, Heap::kNew));
Array& neu2 = Array::Handle(Array::New(1, Heap::kOld));
neu.SetAt(0, neu2);
old.SetAt(0, neu);
neu = Array::null();
neu2 = Array::null();
heap->CollectAllGarbage();
intptr_t size_after =
heap->new_space()->UsedInWords() + heap->old_space()->UsedInWords();
EXPECT(size_before < size_after);
}
static void NoopFinalizer(void* isolate_callback_data, void* peer) {}
ISOLATE_UNIT_TEST_CASE(ExternalPromotion) {
Isolate* isolate = Isolate::Current();
Heap* heap = isolate->heap();
heap->CollectAllGarbage();
intptr_t size_before = kWordSize * (heap->new_space()->ExternalInWords() +
heap->old_space()->ExternalInWords());
Array& old = Array::Handle(Array::New(100, Heap::kOld));
Array& neu = Array::Handle();
for (intptr_t i = 0; i < 100; i++) {
neu = Array::New(1, Heap::kNew);
FinalizablePersistentHandle::New(isolate, neu, NULL, NoopFinalizer, 1 * MB,
/*auto_delete=*/true);
old.SetAt(i, neu);
}
intptr_t size_middle = kWordSize * (heap->new_space()->ExternalInWords() +
heap->old_space()->ExternalInWords());
EXPECT_EQ(size_before + 100 * MB, size_middle);
old = Array::null();
neu = Array::null();
heap->CollectAllGarbage();
intptr_t size_after = kWordSize * (heap->new_space()->ExternalInWords() +
heap->old_space()->ExternalInWords());
EXPECT_EQ(size_before, size_after);
}
#if !defined(PRODUCT)
class HeapTestHelper {
public:
static void Scavenge(Thread* thread) {
thread->heap()->CollectNewSpaceGarbage(thread, Heap::kDebugging);
}
static void MarkSweep(Thread* thread) {
thread->heap()->CollectOldSpaceGarbage(thread, Heap::kMarkSweep,
Heap::kDebugging);
thread->heap()->WaitForMarkerTasks(thread);
thread->heap()->WaitForSweeperTasks(thread);
}
};
class MergeIsolatesHeapsHandler : public MessageHandler {
public:
explicit MergeIsolatesHeapsHandler(Isolate* owner)
: msg_(Utils::CreateCStringUniquePtr(nullptr)), owner_(owner) {}
const char* name() const { return "merge-isolates-heaps-handler"; }
~MergeIsolatesHeapsHandler() { PortMap::ClosePorts(this); }
MessageStatus HandleMessage(std::unique_ptr<Message> message) {
// Parse the message.
Object& response_obj = Object::Handle();
if (message->IsRaw()) {
response_obj = message->raw_obj();
} else if (message->IsBequest()) {
Bequest* bequest = message->bequest();
PersistentHandle* handle = bequest->handle();
// Object in the receiving isolate's heap.
EXPECT(isolate()->heap()->Contains(ObjectLayout::ToAddr(handle->raw())));
response_obj = handle->raw();
isolate()->group()->api_state()->FreePersistentHandle(handle);
} else {
Thread* thread = Thread::Current();
MessageSnapshotReader reader(message.get(), thread);
response_obj = reader.ReadObject();
}
if (response_obj.IsString()) {
String& response = String::Handle();
response ^= response_obj.raw();
msg_.reset(Utils::StrDup(response.ToCString()));
} else {
ASSERT(response_obj.IsArray());
Array& response_array = Array::Handle();
response_array ^= response_obj.raw();
ASSERT(response_array.Length() == 1);
ExternalTypedData& response = ExternalTypedData::Handle();
response ^= response_array.At(0);
msg_.reset(Utils::StrDup(reinterpret_cast<char*>(response.DataAddr(0))));
}
return kOK;
}
const char* msg() const { return msg_.get(); }
virtual Isolate* isolate() const { return owner_; }
private:
Utils::CStringUniquePtr msg_;
Isolate* owner_;
};
VM_UNIT_TEST_CASE(CleanupBequestNeverReceived) {
const char* TEST_MESSAGE = "hello, world";
Dart_Isolate parent = TestCase::CreateTestIsolate("parent");
EXPECT_EQ(parent, Dart_CurrentIsolate());
{
MergeIsolatesHeapsHandler handler(Isolate::Current());
Dart_Port port_id = PortMap::CreatePort(&handler);
EXPECT_EQ(PortMap::GetIsolate(port_id), Isolate::Current());
Dart_ExitIsolate();
Dart_Isolate worker = TestCase::CreateTestIsolateInGroup("worker", parent);
EXPECT_EQ(worker, Dart_CurrentIsolate());
{
Thread* thread = Thread::Current();
TransitionNativeToVM transition(thread);
StackZone zone(thread);
HANDLESCOPE(thread);
String& string = String::Handle(String::New(TEST_MESSAGE));
PersistentHandle* handle =
Isolate::Current()->group()->api_state()->AllocatePersistentHandle();
handle->set_raw(string.raw());
reinterpret_cast<Isolate*>(worker)->bequeath(
std::unique_ptr<Bequest>(new Bequest(handle, port_id)));
}
}
Dart_ShutdownIsolate();
Dart_EnterIsolate(parent);
Dart_ShutdownIsolate();
}
VM_UNIT_TEST_CASE(ReceivesSendAndExitMessage) {
const char* TEST_MESSAGE = "hello, world";
Dart_Isolate parent = TestCase::CreateTestIsolate("parent");
EXPECT_EQ(parent, Dart_CurrentIsolate());
MergeIsolatesHeapsHandler handler(Isolate::Current());
Dart_Port port_id = PortMap::CreatePort(&handler);
EXPECT_EQ(PortMap::GetIsolate(port_id), Isolate::Current());
Dart_ExitIsolate();
Dart_Isolate worker = TestCase::CreateTestIsolateInGroup("worker", parent);
EXPECT_EQ(worker, Dart_CurrentIsolate());
{
Thread* thread = Thread::Current();
TransitionNativeToVM transition(thread);
StackZone zone(thread);
HANDLESCOPE(thread);
String& string = String::Handle(String::New(TEST_MESSAGE));
PersistentHandle* handle =
Isolate::Current()->group()->api_state()->AllocatePersistentHandle();
handle->set_raw(string.raw());
reinterpret_cast<Isolate*>(worker)->bequeath(
std::unique_ptr<Bequest>(new Bequest(handle, port_id)));
}
Dart_ShutdownIsolate();
Dart_EnterIsolate(parent);
{
Thread* thread = Thread::Current();
TransitionNativeToVM transition(thread);
StackZone zone(thread);
HANDLESCOPE(thread);
EXPECT_EQ(MessageHandler::kOK, handler.HandleNextMessage());
}
EXPECT_STREQ(handler.msg(), TEST_MESSAGE);
Dart_ShutdownIsolate();
}
ISOLATE_UNIT_TEST_CASE(ExternalAllocationStats) {
Isolate* isolate = thread->isolate();
Heap* heap = thread->heap();
Array& old = Array::Handle(Array::New(100, Heap::kOld));
Array& neu = Array::Handle();
for (intptr_t i = 0; i < 100; i++) {
neu = Array::New(1, Heap::kNew);
FinalizablePersistentHandle::New(isolate, neu, NULL, NoopFinalizer, 1 * MB,
/*auto_delete=*/true);
old.SetAt(i, neu);
if ((i % 4) == 0) {
HeapTestHelper::MarkSweep(thread);
} else {
HeapTestHelper::Scavenge(thread);
}
CountObjectsVisitor visitor(thread, isolate->class_table()->NumCids());
HeapIterationScope iter(thread);
iter.IterateObjects(&visitor);
isolate->group()->VisitWeakPersistentHandles(&visitor);
EXPECT_LE(visitor.old_external_size_[kArrayCid],
heap->old_space()->ExternalInWords() * kWordSize);
EXPECT_LE(visitor.new_external_size_[kArrayCid],
heap->new_space()->ExternalInWords() * kWordSize);
}
}
#endif // !defined(PRODUCT)
ISOLATE_UNIT_TEST_CASE(ArrayTruncationRaces) {
// Alternate between allocating new lists and truncating.
// For each list, the life cycle is
// 1) the list is allocated and filled with some elements
// 2) kNumLists other lists are allocated
// 3) the list's backing store is truncated; the list becomes unreachable
// 4) kNumLists other lists are allocated
// 5) the backing store becomes unreachable
// The goal is to cause truncation *during* concurrent mark or sweep, by
// truncating an array that had been alive for a while and will be visited by
// a GC triggering by the allocations in step 2.
intptr_t kMaxListLength = 100;
intptr_t kNumLists = 1000;
Array& lists = Array::Handle(Array::New(kNumLists));
Array& arrays = Array::Handle(Array::New(kNumLists));
GrowableObjectArray& list = GrowableObjectArray::Handle();
Array& array = Array::Handle();
Object& element = Object::Handle();
for (intptr_t i = 0; i < kNumLists; i++) {
list = GrowableObjectArray::New(Heap::kNew);
intptr_t length = i % kMaxListLength;
for (intptr_t j = 0; j < length; j++) {
list.Add(element, Heap::kNew);
}
lists.SetAt(i, list);
}
intptr_t kTruncations = 100000;
for (intptr_t i = 0; i < kTruncations; i++) {
list ^= lists.At(i % kNumLists);
array = Array::MakeFixedLength(list);
arrays.SetAt(i % kNumLists, array);
list = GrowableObjectArray::New(Heap::kOld);
intptr_t length = i % kMaxListLength;
for (intptr_t j = 0; j < length; j++) {
list.Add(element, Heap::kOld);
}
lists.SetAt(i % kNumLists, list);
}
}
} // namespace dart
|
// nnet0/nnet-train-frmshuff-parallel.cc
// Copyright 2015-2016 Shanghai Jiao Tong University (author: Wei Deng)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
// WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
// MERCHANTABLITY OR NON-INFRINGEMENT.
// See the Apache 2 License for the specific language governing permissions and
// limitations under the License.
#include "nnet0/nnet-trnopts.h"
#include "nnet0/nnet-nnet.h"
#include "nnet0/nnet-loss.h"
#include "nnet0/nnet-randomizer.h"
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "base/timer.h"
#include "cudamatrix/cu-device.h"
#include "nnet0/nnet-compute-parallel.h"
int main(int argc, char *argv[]) {
using namespace kaldi;
using namespace kaldi::nnet0;
typedef kaldi::int32 int32;
try {
const char *usage =
"Perform one iteration of Neural Network training by mini-batch Stochastic Gradient Descent.\n"
"This version use pdf-posterior as targets, prepared typically by ali-to-post.\n"
"Usage: nnet-train-frmshuff-parallel [options] <feature-rspecifier> <targets-rspecifier> <model-in> [<model-out>]\n"
"e.g.: \n"
" nnet-train-frmshuff-parallel scp:feature.scp ark:posterior.ark nnet.init nnet.iter1\n";
ParseOptions po(usage);
NnetTrainOptions trn_opts;
trn_opts.Register(&po);
NnetDataRandomizerOptions rnd_opts;
rnd_opts.Register(&po);
SpecAugOptions spec_opts;
spec_opts.Register(&po);
NnetParallelOptions parallel_opts;
parallel_opts.Register(&po);
LossOptions loss_opts;
loss_opts.Register(&po);
CuAllocatorOptions cuallocator_opts;
cuallocator_opts.cache_memory = false;
cuallocator_opts.Register(&po);
NnetUpdateOptions opts(&trn_opts, &rnd_opts, &spec_opts,
&loss_opts, ¶llel_opts, &cuallocator_opts);
opts.Register(&po);
po.Read(argc, argv);
if (po.NumArgs() != 4-(opts.crossvalidate?1:0)) {
po.PrintUsage();
exit(1);
}
std::string feature_rspecifier = po.GetArg(1),
targets_rspecifier = po.GetArg(2),
model_filename = po.GetArg(3);
std::string target_model_filename;
if (!opts.crossvalidate) {
target_model_filename = po.GetArg(4);
}
using namespace kaldi;
using namespace kaldi::nnet0;
typedef kaldi::int32 int32;
// Initialize GPU
#if HAVE_CUDA==1
if (opts.use_gpu == "yes") {
CuDevice::Instantiate().AllowMultithreading();
CuDevice::Instantiate().Initialize();
}
#endif
Nnet nnet;
NnetStats stats(loss_opts);
Timer time;
double time_now = 0;
KALDI_LOG << "TRAINING STARTED";
NnetUpdateParallel(&opts,
model_filename,
target_model_filename,
feature_rspecifier,
targets_rspecifier,
&nnet,
&stats);
/*
if (!opts.crossvalidate) {
nnet.Write(target_model_filename, opts.binary);
}
*/
KALDI_LOG << "TRAINING FINISHED; ";
time_now = time.Elapsed();
stats.Print(&opts, time_now);
#if HAVE_CUDA==1
CuDevice::Instantiate().PrintProfile();
#endif
return 0;
} catch(const std::exception &e) {
std::cerr << e.what();
return -1;
}
}
|
#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
int a[1000];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
//Generating Subarrays
for(int i=0;i<n;i++)
{
for(int j=i;j<n;j++)
{
for(int k=i;k<=j;k++)
{
//Printing the subarrays
cout<<a[k]<<",";
}
cout<<endl;
}
}
}
|
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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.txt
*
* 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 "itkMinimumMaximumImageCalculator.h"
#include "itkObject.h"
#include "itkTestingMacros.h"
int itkMinimumMaximumImageCalculatorTest( int, char *[] )
{
using SizeType = itk::Size< 3 >;
using ImageType = itk::Image< short, 3 >;
using MinMaxCalculatorType = itk::MinimumMaximumImageCalculator<ImageType>;
/* Define the image size and physical coordinates */
SizeType size = {{20, 20, 20}};
double origin [3] = {0.0, 0.0, 0.0};
double spacing[3] = {1, 1, 1};
std::cout << "Testing Minimum and Maximum Image Calulator:\n";
// Allocate a simple test image
ImageType::Pointer image = ImageType::New();
ImageType::RegionType region;
region.SetSize(size);
image->SetLargestPossibleRegion(region);
image->SetRequestedRegion(region);
image->SetBufferedRegion(region);
image->Allocate();
// Set origin and spacing of physical coordinates
image->SetOrigin(origin);
image->SetSpacing(spacing);
short minimum = -52;
short maximum = 103;
// Initialize the image contents with the minimum value
itk::Index<3> index;
for (int slice = 0; slice < 20; ++slice) {
index[2] = slice;
for (int row = 0; row < 20; ++row) {
index[1] = row;
for (int col = 0; col < 20; ++col) {
index[0] = col;
image->SetPixel(index, minimum);
}
}
}
// The minimum intensity index position will contain a single value:
// since all pixels have equal value, it will be ther first pixel
itk::Index<3> minIntensityValueIndex;
minIntensityValueIndex[0] = 0;
minIntensityValueIndex[1] = 0;
minIntensityValueIndex[2] = 0;
// Set voxel (10,10,10) to maximum value
itk::Index<3> maxIntensityValueIndex;
maxIntensityValueIndex[0] = 10;
maxIntensityValueIndex[1] = 10;
maxIntensityValueIndex[2] = 10;
image->SetPixel(maxIntensityValueIndex, maximum);
// Create and initialize the calculator
MinMaxCalculatorType::Pointer calculator = MinMaxCalculatorType::New();
EXERCISE_BASIC_OBJECT_METHODS( calculator, MinimumMaximumImageCalculator, Object );
calculator->SetImage( image );
calculator->Compute();
// Test minimum of intensity
TEST_SET_GET_VALUE( minimum, calculator->GetMinimum() );
TEST_SET_GET_VALUE( minIntensityValueIndex, calculator->GetIndexOfMinimum() );
// Test maximum of intensity
TEST_SET_GET_VALUE( maximum, calculator->GetMaximum() );
TEST_SET_GET_VALUE( maxIntensityValueIndex, calculator->GetIndexOfMaximum() );
// Set the region over which perform the computations
itk::Size<3> regionSize = {{4, 4, 4}};
itk::Index<3> idx = {{0, 0, 0}};
MinMaxCalculatorType::RegionType computationRegion;
computationRegion.SetSize( regionSize );
computationRegion.SetIndex( idx );
calculator->SetRegion( computationRegion );
minimum = -102;
maximum = 800;
// Set an index inside the region set
maxIntensityValueIndex[0] = 2;
maxIntensityValueIndex[1] = 2;
maxIntensityValueIndex[2] = 2;
image->SetPixel( minIntensityValueIndex, minimum );
image->SetPixel( maxIntensityValueIndex, maximum );
calculator->SetImage( image );
calculator->ComputeMinimum();
// Test minimum of intensity
TEST_SET_GET_VALUE( minimum, calculator->GetMinimum() );
TEST_SET_GET_VALUE( minIntensityValueIndex, calculator->GetIndexOfMinimum() );
calculator->ComputeMaximum();
// Test maximum of intensity
TEST_SET_GET_VALUE( maximum, calculator->GetMaximum() );
TEST_SET_GET_VALUE( maxIntensityValueIndex, calculator->GetIndexOfMaximum() );
return EXIT_SUCCESS;
}
|
#include "Framework.h"
#include <omp.h>
#include <iostream>
#include <unistd.h>
using namespace std;
template<class TParams, class TResult>
TResult BaseProblemSolver<TParams, TResult>::process(TParams params) {
omp_set_num_threads(this->numThreads);
TResult finalResult;
bool work = true;
// create initial task
Task<TParams, TResult> *rootTask = taskContainer.createTask();
rootTask->parent = nullptr;
rootTask->brother = nullptr;
rootTask->isRootTask = true;
rootTask->params = params;
rootTask->state = TaskState::AWAITING;
taskContainer.putIntoQueue(rootTask);
ThreadStats &threadStats = this->threadStats;
#pragma omp parallel
{
const int threadId = omp_get_thread_num();
//every thread iterates over common queue and processes each task
this->output("started working");
Task<TParams, TResult> *task;
while (work) {
task = taskContainer.pickFromQueue();
if (task == nullptr) {
this->output("skip, no task!");
usleep(100000);
continue;
}
else {
threadStats.tick(threadId);
}
if (task->state == TaskState::DONE || task->state == TaskState::DEAD) {
//we assume that is the second node from merge
task->state = TaskState::DEAD;
continue;
}
if (task->isRootTask) {
this->output("got root task!");
}
string common =
"got task: (" + to_string(task->params.a) + " " + to_string(task->params.b) + ") / ";
if (task->isRootTask and task->state == TaskState::COMPUTED) {
this->output(common + "root task = " + to_string(task->result));
//this is the root node = we just have the final result
work = false;
finalResult = task->result;
task->state = TaskState::DEAD;
}
else if (task->state == TaskState::AWAITING) {
//this node need's calculation or has to be divided
if (this->problem.testDivide(task->params)) {
this->output(common + "divide");
// divide task into smaller tasks and push to queue
Task<TParams, TResult> *task1 = taskContainer.createTask();
Task<TParams, TResult> *task2 = taskContainer.createTask();
task1->state = TaskState::AWAITING;
task2->state = TaskState::AWAITING;
task1->parent = task;
task2->parent = task;
task1->brother = task2;
task2->brother = task1;
const DividedParams<TParams> ÷dParams = this->problem.divide(task->params);
task1->params = dividedParams.param1;
task2->params = dividedParams.param2;
taskContainer.putIntoQueue(task1);
taskContainer.putIntoQueue(task2);
}
else {
task->result = this->problem.compute(task->params); // calculate directly the result
task->state = TaskState::COMPUTED; // change the state to "ready to merge"
this->output(common + "compute = ~" + to_string(task->result));
taskContainer.putIntoQueue(task); // put task to be merged later
}
}
else if (task->parent != nullptr and task->state == TaskState::COMPUTED and
task->brother->state == TaskState::COMPUTED) {
//we have two brothers ready to merge, put parent task to queue and mark it as CALCULATED
Task<TParams, TResult> *parent = task->parent;
this->output(common + "parent = " + (parent == nullptr ? "nullptr" : "instance"));
parent->result = this->problem.merge(task->result, task->brother->result);
this->output(common + "merge brothers ~" + to_string(task->result) + " and ~" +
to_string(task->brother->result) + " = " + to_string(parent->result));
parent->state = TaskState::COMPUTED;
task->state = TaskState::DEAD; // we know that task doesn't exist in queue so it will be always dead
task->brother->state = TaskState::DONE; // we don't know if brother is in queue
//put parent into queue again
taskContainer.putIntoQueue(parent);
}
else if (task->parent != nullptr and task->state == TaskState::COMPUTED and
task->brother->state == TaskState::AWAITING) {
//sytuacja, w której nie mamy jeszcze drugiego brata gotowego, zatem nic nie róbmy
}
else if (task->state == TaskState::DONE) {
//sytuacja, w której z kolejki przyszedł węzeł, który został zmergowany przez brata
}
else {
// int a = 0;
//#pragma omp critical(output)
// cout<<"invalid task picked from queue"<<endl;
//// throw "invalid task picked from queue";
}
}
}
return finalResult;
}
|
//===-------- cfi.cc ------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the runtime support for the cross-DSO CFI.
//
//===----------------------------------------------------------------------===//
#include <assert.h>
#include <elf.h>
#include <link.h>
#include <string.h>
#include <sys/mman.h>
typedef ElfW(Phdr) Elf_Phdr;
typedef ElfW(Ehdr) Elf_Ehdr;
#include "interception/interception.h"
#include "sanitizer_common/sanitizer_common.h"
#include "sanitizer_common/sanitizer_flag_parser.h"
#include "ubsan/ubsan_init.h"
#include "ubsan/ubsan_flags.h"
#ifdef CFI_ENABLE_DIAG
#include "ubsan/ubsan_handlers.h"
#endif
using namespace __sanitizer;
namespace __cfi {
#define kCfiShadowLimitsStorageSize 4096 // 1 page
// Lets hope that the data segment is mapped with 4K pages.
// The pointer to the cfi shadow region is stored at the start of this page.
// The rest of the page is unused and re-mapped read-only.
static union {
char space[kCfiShadowLimitsStorageSize];
struct {
uptr start;
uptr size;
} limits;
} cfi_shadow_limits_storage
__attribute__((aligned(kCfiShadowLimitsStorageSize)));
static constexpr uptr kShadowGranularity = 12;
static constexpr uptr kShadowAlign = 1UL << kShadowGranularity; // 4096
static constexpr uint16_t kInvalidShadow = 0;
static constexpr uint16_t kUncheckedShadow = 0xFFFFU;
// Get the start address of the CFI shadow region.
uptr GetShadow() {
return cfi_shadow_limits_storage.limits.start;
}
uptr GetShadowSize() {
return cfi_shadow_limits_storage.limits.size;
}
// This will only work while the shadow is not allocated.
void SetShadowSize(uptr size) {
cfi_shadow_limits_storage.limits.size = size;
}
uptr MemToShadowOffset(uptr x) {
return (x >> kShadowGranularity) << 1;
}
uint16_t *MemToShadow(uptr x, uptr shadow_base) {
return (uint16_t *)(shadow_base + MemToShadowOffset(x));
}
typedef int (*CFICheckFn)(u64, void *, void *);
// This class reads and decodes the shadow contents.
class ShadowValue {
uptr addr;
uint16_t v;
explicit ShadowValue(uptr addr, uint16_t v) : addr(addr), v(v) {}
public:
bool is_invalid() const { return v == kInvalidShadow; }
bool is_unchecked() const { return v == kUncheckedShadow; }
CFICheckFn get_cfi_check() const {
assert(!is_invalid() && !is_unchecked());
uptr aligned_addr = addr & ~(kShadowAlign - 1);
uptr p = aligned_addr - (((uptr)v - 1) << kShadowGranularity);
return reinterpret_cast<CFICheckFn>(p);
}
// Load a shadow value for the given application memory address.
static const ShadowValue load(uptr addr) {
uptr shadow_base = GetShadow();
uptr shadow_offset = MemToShadowOffset(addr);
if (shadow_offset > GetShadowSize())
return ShadowValue(addr, kInvalidShadow);
else
return ShadowValue(
addr, *reinterpret_cast<uint16_t *>(shadow_base + shadow_offset));
}
};
class ShadowBuilder {
uptr shadow_;
public:
// Allocate a new empty shadow (for the entire address space) on the side.
void Start();
// Mark the given address range as unchecked.
// This is used for uninstrumented libraries like libc.
// Any CFI check with a target in that range will pass.
void AddUnchecked(uptr begin, uptr end);
// Mark the given address range as belonging to a library with the given
// cfi_check function.
void Add(uptr begin, uptr end, uptr cfi_check);
// Finish shadow construction. Atomically switch the current active shadow
// region with the newly constructed one and deallocate the former.
void Install();
};
void ShadowBuilder::Start() {
shadow_ = (uptr)MmapNoReserveOrDie(GetShadowSize(), "CFI shadow");
VReport(1, "CFI: shadow at %zx .. %zx\n", shadow_, shadow_ + GetShadowSize());
}
void ShadowBuilder::AddUnchecked(uptr begin, uptr end) {
uint16_t *shadow_begin = MemToShadow(begin, shadow_);
uint16_t *shadow_end = MemToShadow(end - 1, shadow_) + 1;
memset(shadow_begin, kUncheckedShadow,
(shadow_end - shadow_begin) * sizeof(*shadow_begin));
}
void ShadowBuilder::Add(uptr begin, uptr end, uptr cfi_check) {
assert((cfi_check & (kShadowAlign - 1)) == 0);
// Don't fill anything below cfi_check. We can not represent those addresses
// in the shadow, and must make sure at codegen to place all valid call
// targets above cfi_check.
begin = Max(begin, cfi_check);
uint16_t *s = MemToShadow(begin, shadow_);
uint16_t *s_end = MemToShadow(end - 1, shadow_) + 1;
uint16_t sv = ((begin - cfi_check) >> kShadowGranularity) + 1;
for (; s < s_end; s++, sv++)
*s = sv;
}
#if SANITIZER_LINUX
void ShadowBuilder::Install() {
MprotectReadOnly(shadow_, GetShadowSize());
uptr main_shadow = GetShadow();
if (main_shadow) {
// Update.
void *res = mremap((void *)shadow_, GetShadowSize(), GetShadowSize(),
MREMAP_MAYMOVE | MREMAP_FIXED, (void *)main_shadow);
CHECK(res != MAP_FAILED);
} else {
// Initial setup.
CHECK_EQ(kCfiShadowLimitsStorageSize, GetPageSizeCached());
CHECK_EQ(0, GetShadow());
cfi_shadow_limits_storage.limits.start = shadow_;
MprotectReadOnly((uptr)&cfi_shadow_limits_storage,
sizeof(cfi_shadow_limits_storage));
CHECK_EQ(shadow_, GetShadow());
}
}
#else
#error not implemented
#endif
// This is a workaround for a glibc bug:
// https://sourceware.org/bugzilla/show_bug.cgi?id=15199
// Other platforms can, hopefully, just do
// dlopen(RTLD_NOLOAD | RTLD_LAZY)
// dlsym("__cfi_check").
uptr find_cfi_check_in_dso(dl_phdr_info *info) {
const ElfW(Dyn) *dynamic = nullptr;
for (int i = 0; i < info->dlpi_phnum; ++i) {
if (info->dlpi_phdr[i].p_type == PT_DYNAMIC) {
dynamic =
(const ElfW(Dyn) *)(info->dlpi_addr + info->dlpi_phdr[i].p_vaddr);
break;
}
}
if (!dynamic) return 0;
uptr strtab = 0, symtab = 0, strsz = 0;
for (const ElfW(Dyn) *p = dynamic; p->d_tag != PT_NULL; ++p) {
if (p->d_tag == DT_SYMTAB)
symtab = p->d_un.d_ptr;
else if (p->d_tag == DT_STRTAB)
strtab = p->d_un.d_ptr;
else if (p->d_tag == DT_STRSZ)
strsz = p->d_un.d_ptr;
}
if (symtab > strtab) {
VReport(1, "Can not handle: symtab > strtab (%p > %zx)\n", symtab, strtab);
return 0;
}
// Verify that strtab and symtab are inside of the same LOAD segment.
// This excludes VDSO, which has (very high) bogus strtab and symtab pointers.
int phdr_idx;
for (phdr_idx = 0; phdr_idx < info->dlpi_phnum; phdr_idx++) {
const Elf_Phdr *phdr = &info->dlpi_phdr[phdr_idx];
if (phdr->p_type == PT_LOAD) {
uptr beg = info->dlpi_addr + phdr->p_vaddr;
uptr end = beg + phdr->p_memsz;
if (strtab >= beg && strtab + strsz < end && symtab >= beg &&
symtab < end)
break;
}
}
if (phdr_idx == info->dlpi_phnum) {
// Nope, either different segments or just bogus pointers.
// Can not handle this.
VReport(1, "Can not handle: symtab %p, strtab %zx\n", symtab, strtab);
return 0;
}
for (const ElfW(Sym) *p = (const ElfW(Sym) *)symtab; (ElfW(Addr))p < strtab;
++p) {
// There is no reliable way to find the end of the symbol table. In
// lld-produces files, there are other sections between symtab and strtab.
// Stop looking when the symbol name is not inside strtab.
if (p->st_name >= strsz) break;
char *name = (char*)(strtab + p->st_name);
if (strcmp(name, "__cfi_check") == 0) {
assert(p->st_info == ELF32_ST_INFO(STB_GLOBAL, STT_FUNC) ||
p->st_info == ELF32_ST_INFO(STB_WEAK, STT_FUNC));
uptr addr = info->dlpi_addr + p->st_value;
return addr;
}
}
return 0;
}
int dl_iterate_phdr_cb(dl_phdr_info *info, size_t size, void *data) {
uptr cfi_check = find_cfi_check_in_dso(info);
if (cfi_check)
VReport(1, "Module '%s' __cfi_check %zx\n", info->dlpi_name, cfi_check);
ShadowBuilder *b = reinterpret_cast<ShadowBuilder *>(data);
for (int i = 0; i < info->dlpi_phnum; i++) {
const Elf_Phdr *phdr = &info->dlpi_phdr[i];
if (phdr->p_type == PT_LOAD) {
// Jump tables are in the executable segment.
// VTables are in the non-executable one.
// Need to fill shadow for both.
// FIXME: reject writable if vtables are in the r/o segment. Depend on
// PT_RELRO?
uptr cur_beg = info->dlpi_addr + phdr->p_vaddr;
uptr cur_end = cur_beg + phdr->p_memsz;
if (cfi_check) {
VReport(1, " %zx .. %zx\n", cur_beg, cur_end);
b->Add(cur_beg, cur_end, cfi_check);
} else {
b->AddUnchecked(cur_beg, cur_end);
}
}
}
return 0;
}
// Init or update shadow for the current set of loaded libraries.
void UpdateShadow() {
ShadowBuilder b;
b.Start();
dl_iterate_phdr(dl_iterate_phdr_cb, &b);
b.Install();
}
void InitShadow() {
CHECK_EQ(0, GetShadow());
CHECK_EQ(0, GetShadowSize());
uptr vma = GetMaxVirtualAddress();
// Shadow is 2 -> 2**kShadowGranularity.
SetShadowSize((vma >> (kShadowGranularity - 1)) + 1);
VReport(1, "CFI: VMA size %zx, shadow size %zx\n", vma, GetShadowSize());
UpdateShadow();
}
THREADLOCAL int in_loader;
BlockingMutex shadow_update_lock(LINKER_INITIALIZED);
void EnterLoader() {
if (in_loader == 0) {
shadow_update_lock.Lock();
}
++in_loader;
}
void ExitLoader() {
CHECK(in_loader > 0);
--in_loader;
UpdateShadow();
if (in_loader == 0) {
shadow_update_lock.Unlock();
}
}
ALWAYS_INLINE void CfiSlowPathCommon(u64 CallSiteTypeId, void *Ptr,
void *DiagData) {
uptr Addr = (uptr)Ptr;
VReport(3, "__cfi_slowpath: %llx, %p\n", CallSiteTypeId, Ptr);
ShadowValue sv = ShadowValue::load(Addr);
if (sv.is_invalid()) {
VReport(1, "CFI: invalid memory region for a check target: %p\n", Ptr);
#ifdef CFI_ENABLE_DIAG
if (DiagData) {
__ubsan_handle_cfi_check_fail(
reinterpret_cast<__ubsan::CFICheckFailData *>(DiagData), Addr, false);
return;
}
#endif
Trap();
}
if (sv.is_unchecked()) {
VReport(2, "CFI: unchecked call (shadow=FFFF): %p\n", Ptr);
return;
}
CFICheckFn cfi_check = sv.get_cfi_check();
VReport(2, "__cfi_check at %p\n", cfi_check);
cfi_check(CallSiteTypeId, Ptr, DiagData);
}
void InitializeFlags() {
SetCommonFlagsDefaults();
#ifdef CFI_ENABLE_DIAG
__ubsan::Flags *uf = __ubsan::flags();
uf->SetDefaults();
#endif
FlagParser cfi_parser;
RegisterCommonFlags(&cfi_parser);
cfi_parser.ParseString(GetEnv("CFI_OPTIONS"));
#ifdef CFI_ENABLE_DIAG
FlagParser ubsan_parser;
__ubsan::RegisterUbsanFlags(&ubsan_parser, uf);
RegisterCommonFlags(&ubsan_parser);
const char *ubsan_default_options = __ubsan::MaybeCallUbsanDefaultOptions();
ubsan_parser.ParseString(ubsan_default_options);
ubsan_parser.ParseString(GetEnv("UBSAN_OPTIONS"));
#endif
InitializeCommonFlags();
if (Verbosity())
ReportUnrecognizedFlags();
if (common_flags()->help) {
cfi_parser.PrintFlagDescriptions();
}
}
} // namespace __cfi
using namespace __cfi;
extern "C" SANITIZER_INTERFACE_ATTRIBUTE void
__cfi_slowpath(u64 CallSiteTypeId, void *Ptr) {
CfiSlowPathCommon(CallSiteTypeId, Ptr, nullptr);
}
#ifdef CFI_ENABLE_DIAG
extern "C" SANITIZER_INTERFACE_ATTRIBUTE void
__cfi_slowpath_diag(u64 CallSiteTypeId, void *Ptr, void *DiagData) {
CfiSlowPathCommon(CallSiteTypeId, Ptr, DiagData);
}
#endif
// Setup shadow for dlopen()ed libraries.
// The actual shadow setup happens after dlopen() returns, which means that
// a library can not be a target of any CFI checks while its constructors are
// running. It's unclear how to fix this without some extra help from libc.
// In glibc, mmap inside dlopen is not interceptable.
// Maybe a seccomp-bpf filter?
// We could insert a high-priority constructor into the library, but that would
// not help with the uninstrumented libraries.
INTERCEPTOR(void*, dlopen, const char *filename, int flag) {
EnterLoader();
void *handle = REAL(dlopen)(filename, flag);
ExitLoader();
return handle;
}
INTERCEPTOR(int, dlclose, void *handle) {
EnterLoader();
int res = REAL(dlclose)(handle);
ExitLoader();
return res;
}
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
#if !SANITIZER_CAN_USE_PREINIT_ARRAY
// On ELF platforms, the constructor is invoked using .preinit_array (see below)
__attribute__((constructor(0)))
#endif
void __cfi_init() {
SanitizerToolName = "CFI";
InitializeFlags();
InitShadow();
INTERCEPT_FUNCTION(dlopen);
INTERCEPT_FUNCTION(dlclose);
#ifdef CFI_ENABLE_DIAG
__ubsan::InitAsPlugin();
#endif
}
#if SANITIZER_CAN_USE_PREINIT_ARRAY
// On ELF platforms, run cfi initialization before any other constructors.
// On other platforms we use the constructor attribute to arrange to run our
// initialization early.
extern "C" {
__attribute__((section(".preinit_array"),
used)) void (*__cfi_preinit)(void) = __cfi_init;
}
#endif
|
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file collisionHandlerHighestEvent.cxx
* @author drose
* @date 2002-03-16
*/
#include "collisionHandlerHighestEvent.h"
#include "config_collide.h"
#include "eventParameter.h"
#include "throw_event.h"
TypeHandle CollisionHandlerHighestEvent::_type_handle;
/**
* The default CollisionHandlerEvent will throw no events. Its pattern
* strings must first be set via a call to add_in_pattern() and/or
* add_out_pattern().
*/
CollisionHandlerHighestEvent::
CollisionHandlerHighestEvent() {
}
/**
* Will be called by the CollisionTraverser before a new traversal is begun.
* It instructs the handler to reset itself in preparation for a number of
* CollisionEntries to be sent.
*/
void CollisionHandlerHighestEvent::
begin_group() {
if (collide_cat.is_spam()) {
collide_cat.spam()
<< "begin_group.\n";
}
_last_colliding.clear();
if (_closest_collider) {
_last_colliding.insert(_closest_collider);
}
_current_colliding.clear();
_collider_distance = 0;
_closest_collider = NULL;
}
/**
* Called between a begin_group() .. end_group() sequence for each collision
* that is detected.
*/
void CollisionHandlerHighestEvent::
add_entry(CollisionEntry *entry) {
nassertv(entry != (CollisionEntry *)NULL);
LVector3 vec =
entry->get_surface_point(entry->get_from_node_path()) -
entry->get_from()->get_collision_origin();
double dist = vec.length_squared();
if (_closest_collider == NULL || dist < _collider_distance) {
_collider_distance = dist;
_closest_collider = entry;
}
}
/**
* Called by the CollisionTraverser at the completion of all collision
* detections for this traversal. It should do whatever finalization is
* required for the handler.
*/
bool CollisionHandlerHighestEvent::
end_group() {
if (_closest_collider) {
_current_colliding.insert(_closest_collider);
}
return CollisionHandlerEvent::end_group();
}
|
//
// Copyright (c) 2008-2015 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#include "../Precompiled.h"
#include "../IO/Serializer.h"
#include "../DebugNew.h"
namespace Urho3D
{
static const float q = 32767.0f;
Serializer::~Serializer()
{
}
bool Serializer::WriteInt(int value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteShort(short value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteByte(signed char value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteUInt(unsigned value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteUShort(unsigned short value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteUByte(unsigned char value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteBool(bool value)
{
return WriteUByte((unsigned char)(value ? 1 : 0)) == 1;
}
bool Serializer::WriteFloat(float value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteDouble(double value)
{
return Write(&value, sizeof value) == sizeof value;
}
bool Serializer::WriteIntRect(const IntRect& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteIntVector2(const IntVector2& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteRect(const Rect& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteVector2(const Vector2& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteVector3(const Vector3& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WritePackedVector3(const Vector3& value, float maxAbsCoord)
{
short coords[3];
float v = 32767.0f / maxAbsCoord;
coords[0] = (short)(Clamp(value.x_, -maxAbsCoord, maxAbsCoord) * v + 0.5f);
coords[1] = (short)(Clamp(value.y_, -maxAbsCoord, maxAbsCoord) * v + 0.5f);
coords[2] = (short)(Clamp(value.z_, -maxAbsCoord, maxAbsCoord) * v + 0.5f);
return Write(&coords[0], sizeof coords) == sizeof coords;
}
bool Serializer::WriteVector4(const Vector4& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteQuaternion(const Quaternion& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WritePackedQuaternion(const Quaternion& value)
{
short coords[4];
Quaternion norm = value.Normalized();
coords[0] = (short)(Clamp(norm.w_, -1.0f, 1.0f) * q + 0.5f);
coords[1] = (short)(Clamp(norm.x_, -1.0f, 1.0f) * q + 0.5f);
coords[2] = (short)(Clamp(norm.y_, -1.0f, 1.0f) * q + 0.5f);
coords[3] = (short)(Clamp(norm.z_, -1.0f, 1.0f) * q + 0.5f);
return Write(&coords[0], sizeof coords) == sizeof coords;
}
bool Serializer::WriteMatrix3(const Matrix3& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteMatrix3x4(const Matrix3x4& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteMatrix4(const Matrix4& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteColor(const Color& value)
{
return Write(value.Data(), sizeof value) == sizeof value;
}
bool Serializer::WriteBoundingBox(const BoundingBox& value)
{
bool success = true;
success &= WriteVector3(value.min_);
success &= WriteVector3(value.max_);
return success;
}
bool Serializer::WriteString(const String& value)
{
const char* chars = value.CString();
// Count length to the first zero, because ReadString() does the same
unsigned length = String::CStringLength(chars);
return Write(chars, length + 1) == length + 1;
}
bool Serializer::WriteFileID(const String& value)
{
bool success = true;
unsigned length = (unsigned)Min((int)value.Length(), 4);
success &= Write(value.CString(), length) == length;
for (unsigned i = value.Length(); i < 4; ++i)
success &= WriteByte(' ');
return success;
}
bool Serializer::WriteStringHash(const StringHash& value)
{
return WriteUInt(value.Value());
}
bool Serializer::WriteBuffer(const PODVector<unsigned char>& value)
{
bool success = true;
unsigned size = value.Size();
success &= WriteVLE(size);
if (size)
success &= Write(&value[0], size) == size;
return success;
}
bool Serializer::WriteResourceRef(const ResourceRef& value)
{
bool success = true;
success &= WriteStringHash(value.type_);
success &= WriteString(value.name_);
return success;
}
bool Serializer::WriteResourceRefList(const ResourceRefList& value)
{
bool success = true;
success &= WriteStringHash(value.type_);
success &= WriteVLE(value.names_.Size());
for (unsigned i = 0; i < value.names_.Size(); ++i)
success &= WriteString(value.names_[i]);
return success;
}
bool Serializer::WriteVariant(const Variant& value)
{
bool success = true;
VariantType type = value.GetType();
success &= WriteUByte((unsigned char)type);
success &= WriteVariantData(value);
return success;
}
bool Serializer::WriteVariantData(const Variant& value)
{
switch (value.GetType())
{
case VAR_NONE:
return true;
case VAR_INT:
return WriteInt(value.GetInt());
case VAR_BOOL:
return WriteBool(value.GetBool());
case VAR_FLOAT:
return WriteFloat(value.GetFloat());
case VAR_VECTOR2:
return WriteVector2(value.GetVector2());
case VAR_VECTOR3:
return WriteVector3(value.GetVector3());
case VAR_VECTOR4:
return WriteVector4(value.GetVector4());
case VAR_QUATERNION:
return WriteQuaternion(value.GetQuaternion());
case VAR_COLOR:
return WriteColor(value.GetColor());
case VAR_STRING:
return WriteString(value.GetString());
case VAR_BUFFER:
return WriteBuffer(value.GetBuffer());
// Serializing pointers is not supported. Write null
case VAR_VOIDPTR:
case VAR_PTR:
return WriteUInt(0);
case VAR_RESOURCEREF:
return WriteResourceRef(value.GetResourceRef());
case VAR_RESOURCEREFLIST:
return WriteResourceRefList(value.GetResourceRefList());
case VAR_VARIANTVECTOR:
return WriteVariantVector(value.GetVariantVector());
case VAR_STRINGVECTOR:
return WriteStringVector(value.GetStringVector());
case VAR_VARIANTMAP:
return WriteVariantMap(value.GetVariantMap());
case VAR_INTRECT:
return WriteIntRect(value.GetIntRect());
case VAR_INTVECTOR2:
return WriteIntVector2(value.GetIntVector2());
case VAR_MATRIX3:
return WriteMatrix3(value.GetMatrix3());
case VAR_MATRIX3X4:
return WriteMatrix3x4(value.GetMatrix3x4());
case VAR_MATRIX4:
return WriteMatrix4(value.GetMatrix4());
case VAR_DOUBLE:
return WriteDouble(value.GetDouble());
default:
return false;
}
}
bool Serializer::WriteVariantVector(const VariantVector& value)
{
bool success = true;
success &= WriteVLE(value.Size());
for (VariantVector::ConstIterator i = value.Begin(); i != value.End(); ++i)
success &= WriteVariant(*i);
return success;
}
bool Serializer::WriteStringVector(const StringVector& value)
{
bool success = true;
success &= WriteVLE(value.Size());
for (StringVector::ConstIterator i = value.Begin(); i != value.End(); ++i)
success &= WriteString(*i);
return success;
}
bool Serializer::WriteVariantMap(const VariantMap& value)
{
bool success = true;
success &= WriteVLE(value.Size());
for (VariantMap::ConstIterator i = value.Begin(); i != value.End(); ++i)
{
WriteStringHash(i->first_);
WriteVariant(i->second_);
}
return success;
}
bool Serializer::WriteVLE(unsigned value)
{
unsigned char data[4];
if (value < 0x80)
return WriteUByte((unsigned char)value);
else if (value < 0x4000)
{
data[0] = (unsigned char)(value | 0x80);
data[1] = (unsigned char)(value >> 7);
return Write(data, 2) == 2;
}
else if (value < 0x200000)
{
data[0] = (unsigned char)(value | 0x80);
data[1] = (unsigned char)((value >> 7) | 0x80);
data[2] = (unsigned char)(value >> 14);
return Write(data, 3) == 3;
}
else
{
data[0] = (unsigned char)(value | 0x80);
data[1] = (unsigned char)((value >> 7) | 0x80);
data[2] = (unsigned char)((value >> 14) | 0x80);
data[3] = (unsigned char)(value >> 21);
return Write(data, 4) == 4;
}
}
bool Serializer::WriteNetID(unsigned value)
{
return Write(&value, 3) == 3;
}
bool Serializer::WriteLine(const String& value)
{
bool success = true;
success &= Write(value.CString(), value.Length()) == value.Length();
success &= WriteUByte(13);
success &= WriteUByte(10);
return success;
}
}
|
/*
Copyright (c) 2017-2021,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "gtest/gtest.h"
#ifdef _MSC_VER
# pragma warning(push, 0)
# include "helics/external/filesystem.hpp"
# pragma warning(pop)
#else
# include "helics/external/filesystem.hpp"
#endif
#ifndef DISABLE_SYSTEM_CALL_TESTS
# include "exeTestHelper.h"
#endif
#include "helics/application_api/Publications.hpp"
#include "helics/apps/BrokerApp.hpp"
#include "helics/apps/Recorder.hpp"
#include <cstdio>
#include <future>
TEST(recorder_tests, simple_recorder_test)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore1";
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
rec1.addSubscription("pub1");
helics::ValueFederate vfed("block1", fi);
helics::Publication pub1(helics::GLOBAL, &vfed, "pub1", helics::data_type::helics_double);
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(4); });
vfed.enterExecutingMode();
auto retTime = vfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
retTime = vfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
pub1.publish(4.7);
retTime = vfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
vfed.finalize();
fut.get();
rec1.finalize();
auto cnt = rec1.pointCount();
EXPECT_EQ(cnt, 2U);
}
TEST(recorder_tests, simple_recorder_test2)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore1-t2";
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
rec1.addSubscription("pub1");
helics::ValueFederate vfed("block1", fi);
helics::Publication pub1(helics::GLOBAL, &vfed, "pub1", helics::data_type::helics_double);
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(4); });
vfed.enterExecutingMode();
auto retTime = vfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
retTime = vfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
pub1.publish(4.7);
retTime = vfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
vfed.finalize();
fut.get();
rec1.finalize();
auto v1 = rec1.getValue(0);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.4));
v1 = rec1.getValue(1);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(4.7));
v1 = rec1.getValue(2);
EXPECT_EQ(std::get<1>(v1), std::string());
EXPECT_EQ(std::get<2>(v1), std::string());
auto m2 = rec1.getMessage(4);
EXPECT_TRUE(!m2);
}
TEST(recorder_tests, recorder_test_message)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore-tm";
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
helics::MessageFederate mfed("block1", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
rec1.addEndpoint("src1");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed.enterExecutingMode();
auto retTime = mfed.requestTime(1.0);
e1.send("src1", "this is a test message");
EXPECT_EQ(retTime, 1.0);
retTime = mfed.requestTime(2.0);
e1.send("src1", "this is a test message2");
EXPECT_EQ(retTime, 2.0);
mfed.finalize();
fut.get();
EXPECT_EQ(rec1.messageCount(), 2U);
auto m = rec1.getMessage(0);
EXPECT_EQ(m->data.to_string(), "this is a test message");
}
class recorder_file_tests: public ::testing::TestWithParam<const char*> {
};
TEST_P(recorder_file_tests, test_files)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = std::string("coref") + GetParam();
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
rec1.loadFile(std::string(TEST_DIR) + GetParam());
helics::ValueFederate vfed("block1", fi);
helics::Publication pub1(helics::GLOBAL, &vfed, "pub1", helics::data_type::helics_double);
helics::Publication pub2(helics::GLOBAL, &vfed, "pub2", helics::data_type::helics_double);
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(4); });
vfed.enterExecutingMode();
auto retTime = vfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
retTime = vfed.requestTime(1.5);
EXPECT_EQ(retTime, 1.5);
pub2.publish(5.7);
retTime = vfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
pub1.publish(4.7);
retTime = vfed.requestTime(3.0);
EXPECT_EQ(retTime, 3.0);
pub2.publish("3.9");
retTime = vfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
vfed.finalize();
fut.get();
rec1.finalize();
EXPECT_EQ(rec1.pointCount(), 4U);
auto v1 = rec1.getValue(0);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.4));
v1 = rec1.getValue(1);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(5.7));
v1 = rec1.getValue(2);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(4.7));
v1 = rec1.getValue(3);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.9));
}
static constexpr const char* simple_files[] = {"example1.recorder",
"example2.record",
"example3rec.json",
"example4rec.json",
"exampleCapture.txt",
"exampleCapture.json"};
INSTANTIATE_TEST_SUITE_P(recorder_tests, recorder_file_tests, ::testing::ValuesIn(simple_files));
static constexpr const char* simple_message_files[] = {"example4.recorder",
"example5.record",
"example6rec.json"};
class recorder_message_file_tests: public ::testing::TestWithParam<const char*> {
};
TEST_P(recorder_message_file_tests, test_message_files)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = std::string("rcoretmf") + GetParam();
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
rec1.loadFile(std::string(TEST_DIR) + GetParam());
helics::CombinationFederate cfed("block1", fi);
helics::Publication pub1(helics::GLOBAL, &cfed, "pub1", helics::data_type::helics_double);
helics::Publication pub2(helics::GLOBAL, &cfed, "pub2", helics::data_type::helics_double);
helics::Endpoint e1(helics::GLOBAL, &cfed, "d1");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5); });
cfed.enterExecutingMode();
auto retTime = cfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
e1.send("src1", "this is a test message");
retTime = cfed.requestTime(1.5);
EXPECT_EQ(retTime, 1.5);
pub2.publish(5.7);
retTime = cfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
e1.send("src1", "this is a test message2");
pub1.publish(4.7);
retTime = cfed.requestTime(3.0);
EXPECT_EQ(retTime, 3.0);
pub2.publish("3.9");
retTime = cfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
cfed.finalize();
fut.get();
rec1.finalize();
EXPECT_EQ(rec1.pointCount(), 4U);
EXPECT_EQ(rec1.messageCount(), 2U);
auto v1 = rec1.getValue(0);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.4));
v1 = rec1.getValue(1);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(5.7));
v1 = rec1.getValue(2);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(4.7));
v1 = rec1.getValue(3);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.9));
auto m = rec1.getMessage(1);
ASSERT_TRUE(m);
EXPECT_EQ(m->data.to_string(), "this is a test message2");
}
#ifdef ENABLE_IPC_CORE
TEST_P(recorder_message_file_tests, test_message_files_cmd)
{
std::this_thread::sleep_for(std::chrono::milliseconds(600));
helics::apps::BrokerApp brk(helics::core_type::IPC, "ipc_broker", "-f 2");
std::string exampleFile = std::string(TEST_DIR) + GetParam();
std::vector<std::string> args{
"", "--name=rec", "--broker=ipc_broker", "--coretype=ipc", exampleFile};
char* argv[5];
argv[0] = &(args[0][0]);
argv[1] = &(args[1][0]);
argv[2] = &(args[2][0]);
argv[3] = &(args[3][0]);
argv[4] = &(args[4][0]);
helics::apps::Recorder rec1(5, argv);
helics::FederateInfo fi(helics::core_type::IPC);
fi.coreInitString = "-f 1 --broker=ipc_broker";
helics::CombinationFederate cfed("obj", fi);
helics::Publication pub1(helics::GLOBAL, &cfed, "pub1", helics::data_type::helics_double);
helics::Publication pub2(helics::GLOBAL, &cfed, "pub2", helics::data_type::helics_double);
helics::Endpoint e1(helics::GLOBAL, &cfed, "d1");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5); });
cfed.enterExecutingMode();
auto retTime = cfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
e1.send("src1", "this is a test message");
retTime = cfed.requestTime(1.5);
EXPECT_EQ(retTime, 1.5);
pub2.publish(5.7);
retTime = cfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
e1.send("src1", "this is a test message2");
pub1.publish(4.7);
retTime = cfed.requestTime(3.0);
EXPECT_EQ(retTime, 3.0);
pub2.publish("3.9");
retTime = cfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
cfed.finalize();
fut.get();
rec1.finalize();
EXPECT_EQ(rec1.pointCount(), 4U);
EXPECT_EQ(rec1.messageCount(), 2U);
auto v1 = rec1.getValue(0);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.4));
v1 = rec1.getValue(1);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(5.7));
v1 = rec1.getValue(2);
EXPECT_EQ(std::get<1>(v1), "pub1");
EXPECT_EQ(std::get<2>(v1), std::to_string(4.7));
v1 = rec1.getValue(3);
EXPECT_EQ(std::get<1>(v1), "pub2");
EXPECT_EQ(std::get<2>(v1), std::to_string(3.9));
auto m = rec1.getMessage(1);
ASSERT_TRUE(m);
EXPECT_EQ(m->data.to_string(), "this is a test message2");
std::this_thread::sleep_for(std::chrono::milliseconds(500));
}
#endif
INSTANTIATE_TEST_SUITE_P(recorder_tests,
recorder_message_file_tests,
::testing::ValuesIn(simple_message_files));
TEST(recorder_tests, recorder_test_destendpoint_clone)
{
helics::FederateInfo fi;
fi.coreType = helics::core_type::TEST;
fi.coreName = "rcore-dep";
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1.0);
helics::MessageFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.addDestEndpointClone("d1");
rec1.addDestEndpointClone("d2");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_GE(rec1.messageCount(), 2U);
auto m = rec1.getMessage(0);
EXPECT_TRUE(m);
if (m) {
EXPECT_EQ(m->data.to_string(), "this is a test message");
}
}
TEST(recorder_tests, recorder_test_srcendpoint_clone)
{
helics::FederateInfo fi;
fi.coreType = helics::core_type::TEST;
fi.coreName = "rcore2";
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1.0);
helics::MessageFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.addSourceEndpointClone("d1");
rec1.addSourceEndpointClone("d2");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_GE(rec1.messageCount(), 2U);
auto m = rec1.getMessage(0);
EXPECT_EQ(m->data.to_string(), "this is a test message");
}
TEST(recorder_tests, recorder_test_endpoint_clone)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore3";
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1.0);
helics::MessageFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.addDestEndpointClone("d1");
rec1.addSourceEndpointClone("d1");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_EQ(rec1.messageCount(), 2U);
rec1.runTo(8.0);
EXPECT_EQ(rec1.messageCount(), 2U);
auto m = rec1.getMessage(0);
rec1.finalize();
ASSERT_TRUE(m);
if (m) {
EXPECT_EQ(m->data.to_string(), "this is a test message");
EXPECT_EQ(m->time, 1.0);
}
}
class recorder_clone_file_tests: public ::testing::TestWithParam<const char*> {
};
TEST_P(recorder_clone_file_tests, simple_clone_test_file)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = std::string("rcore4") + GetParam();
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1.0);
helics::MessageFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.loadFile(std::string(TEST_DIR) + GetParam());
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_GE(rec1.messageCount(), 2U);
auto m = rec1.getMessage(0);
EXPECT_TRUE(m);
if (m) {
EXPECT_EQ(m->data.to_string(), "this is a test message");
}
}
static constexpr const char* simple_clone_test_files[] = {"clone_example1.txt",
"clone_example2.txt",
"clone_example3.txt",
"clone_example4.txt",
"clone_example5.txt",
"clone_example6.txt",
"clone_example7.json",
"clone_example8.JSON"};
INSTANTIATE_TEST_SUITE_P(recorder_tests,
recorder_clone_file_tests,
::testing::ValuesIn(simple_clone_test_files));
TEST(recorder_tests, recorder_test_saveFile1)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore5";
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1.0);
helics::MessageFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.addDestEndpointClone("d1");
rec1.addSourceEndpointClone("d1");
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(5.0); });
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_EQ(rec1.messageCount(), 2U);
auto filename = ghc::filesystem::temp_directory_path() / "savefile.txt";
rec1.saveFile(filename.string());
EXPECT_TRUE(ghc::filesystem::exists(filename));
auto filename2 = ghc::filesystem::temp_directory_path() / "savefile.json";
rec1.saveFile(filename2.string());
EXPECT_TRUE(ghc::filesystem::exists(filename2));
ghc::filesystem::remove(filename);
ghc::filesystem::remove(filename2);
}
TEST(recorder_tests, recorder_test_saveFile2)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore6";
fi.coreInitString = "-f 2 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
rec1.addSubscription("pub1");
helics::ValueFederate vfed("block1", fi);
helics::Publication pub1(helics::GLOBAL, &vfed, "pub1", helics::data_type::helics_double);
auto fut = std::async(std::launch::async, [&rec1]() { rec1.runTo(4); });
vfed.enterExecutingMode();
auto retTime = vfed.requestTime(1);
EXPECT_EQ(retTime, 1.0);
pub1.publish(3.4);
retTime = vfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
pub1.publish(4.7);
retTime = vfed.requestTime(5);
EXPECT_EQ(retTime, 5.0);
vfed.finalize();
fut.get();
rec1.finalize();
auto m2 = rec1.getMessage(4);
EXPECT_TRUE(!m2);
auto filename = ghc::filesystem::temp_directory_path() / "savefile.txt";
rec1.saveFile(filename.string());
EXPECT_TRUE(ghc::filesystem::exists(filename));
auto filename2 = ghc::filesystem::temp_directory_path() / "savefile.json";
rec1.saveFile(filename2.string());
EXPECT_TRUE(ghc::filesystem::exists(filename2));
ghc::filesystem::remove(filename);
ghc::filesystem::remove(filename2);
}
TEST(recorder_tests, recorder_test_saveFile3)
{
helics::FederateInfo fi(helics::core_type::TEST);
fi.coreName = "rcore7";
fi.coreInitString = "-f 3 --autobroker";
helics::apps::Recorder rec1("rec1", fi);
fi.setProperty(helics_property_time_period, 1);
helics::CombinationFederate mfed("block1", fi);
helics::MessageFederate mfed2("block2", fi);
helics::Endpoint e1(helics::GLOBAL, &mfed, "d1");
helics::Endpoint e2(helics::GLOBAL, &mfed2, "d2");
rec1.addDestEndpointClone("d1");
rec1.addSourceEndpointClone("d1");
rec1.addSubscription("pub1");
helics::Publication pub1(helics::GLOBAL, &mfed, "pub1", helics::data_type::helics_double);
auto fut = std::async(std::launch::async, [&rec1]() {
std::this_thread::sleep_for(std::chrono::milliseconds(50));
rec1.runTo(5.0);
});
mfed2.enterExecutingModeAsync();
mfed.enterExecutingMode();
mfed2.enterExecutingModeComplete();
pub1.publish(3.4);
mfed2.requestTimeAsync(1.0);
auto retTime = mfed.requestTime(1.0);
mfed2.requestTimeComplete();
e1.send("d2", "this is a test message");
pub1.publish(4.7);
EXPECT_EQ(retTime, 1.0);
e2.send("d1", "this is a test message2");
mfed2.requestTimeAsync(2.0);
retTime = mfed.requestTime(2.0);
EXPECT_EQ(retTime, 2.0);
mfed2.requestTimeComplete();
pub1.publish(4.7);
mfed2.requestTimeAsync(4.0);
retTime = mfed.requestTime(4.0);
EXPECT_EQ(retTime, 4.0);
mfed2.requestTimeComplete();
mfed.finalize();
mfed2.finalize();
fut.get();
EXPECT_EQ(rec1.messageCount(), 2U);
EXPECT_EQ(rec1.pointCount(), 3U);
auto filename = ghc::filesystem::temp_directory_path() / "savefile.txt";
rec1.saveFile(filename.string());
EXPECT_TRUE(ghc::filesystem::exists(filename));
auto filename2 = ghc::filesystem::temp_directory_path() / "savefile.json";
rec1.saveFile(filename2.string());
EXPECT_TRUE(ghc::filesystem::exists(filename2));
ghc::filesystem::remove(filename);
ghc::filesystem::remove(filename2);
}
TEST(recorder_tests, recorder_test_help)
{
std::vector<std::string> args{"--quiet", "--version"};
helics::apps::Recorder rec1(args);
EXPECT_TRUE(!rec1.isActive());
args.emplace_back("-?");
helics::apps::Recorder rec2(args);
EXPECT_TRUE(!rec2.isActive());
}
|
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include <memory>
#include "ngraph_functions/builders.hpp"
namespace ngraph {
namespace builder {
std::shared_ptr<Node> makePooling(const ngraph::Output<Node> &in,
const std::vector<size_t> &strides,
const std::vector<size_t> &padsBegin,
const std::vector<size_t> &padsEnd,
const std::vector<size_t> &kernel,
const op::RoundingType &roundingType,
const op::PadType &padType,
bool excludePad,
const ngraph::helpers::PoolingTypes &poolType) {
std::shared_ptr<ngraph::Node> pooling;
switch (poolType) {
case ngraph::helpers::PoolingTypes::MAX:
pooling = std::make_shared<ngraph::opset3::MaxPool>(in, strides, padsBegin, padsEnd, kernel, roundingType,
padType);
break;
case ngraph::helpers::PoolingTypes::AVG:
pooling = std::make_shared<ngraph::opset3::AvgPool>(in, strides, padsBegin, padsEnd, kernel,
excludePad,
roundingType, padType);
break;
}
return pooling;
}
std::shared_ptr<Node> makeMaxPoolingV8(const ngraph::Output<Node> &in,
const std::vector<size_t> &strides,
const std::vector<size_t> &dilation,
const std::vector<size_t> &padsBegin,
const std::vector<size_t> &padsEnd,
const std::vector<size_t> &kernel,
const op::RoundingType &roundingType,
const op::PadType &padType,
const ov::element::Type &indexElementType,
const int64_t axis) {
std::shared_ptr<ngraph::Node> pooling = std::make_shared<ngraph::opset8::MaxPool>(in, strides, dilation, padsBegin, padsEnd,
kernel, roundingType, padType,
indexElementType, axis);
return pooling;
}
} // namespace builder
} // namespace ngraph
|
// This file is part of VCPP, Visual C++ porting tool for QMake projects
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU General
// Public License (GPL). See the gpl.licence file for details or
// see http://www.gnu.org/copyleft/gpl.html
// file-header-ends-here
//////////////////////////////////////////
//! rcsid="$Id: autoport.cc 5298 2006-01-06 11:56:18Z kier $"
//! file="Ravl/SourceTools/VisualCPP/autoport.cc"
//! userlevel=Normal
//! docentry="Ravl.API.Source Tools.AutoPort"
//! author="Charles Galambos"
//! lib=RavlAutoPort2
#include "Ravl/Option.hh"
#include "Ravl/AutoPort2/AutoPortSource.hh"
#include "Ravl/AutoPort2/AutoPortGenerator.hh"
#include "Ravl/OS/Directory.hh"
#include "Ravl/Stream.hh"
#include "Ravl/IO.hh"
#define DODEBUG 0
#if DODEBUG
#define ONDEBUG(x) x
#else
#define ONDEBUG(x)
#endif
using namespace RavlN;
// If PROJECT_OUT isn't defined, make one up.
#ifndef PROJECT_OUT
#define PROJECT_OUT "."
#endif
void BuildTemplates(StringC &templFile,AutoPortSourceC &src,StringC &outFile,const StringC &projectOut, const ExtLibTableC & extLibs) {
if(FilenameC(templFile).IsDirectory()) {
cout << "Processing templates in :'" << templFile << "'\n";
DirectoryC dir(templFile);
DListC<StringC> fl = dir.FiltList("*.tmpl");
// Make sure GUID's are generated first.
for(DLIterC<StringC> it(fl);it;it++) {
if(!it->contains("guid"))
continue;
StringC subDir = dir + filenameSeperator + *it;
ONDEBUG(cerr << "Templates in :'" << subDir << "'\n");
BuildTemplates(subDir,src,outFile,projectOut,extLibs);
}
// Do the rest
for(DLIterC<StringC> it(fl);it;it++) {
if(it->contains("guid"))
continue;
StringC subDir = dir + filenameSeperator + *it;
ONDEBUG(cerr << "Templates in :'" << subDir << "'\n");
BuildTemplates(subDir,src,outFile,projectOut,extLibs);
}
return;
}
cout << "Processing template file : '" << templFile << "'\n";
AutoPortGeneratorC fg(src,templFile,outFile,projectOut,extLibs);
fg.BuildFiles();
}
// -----------------------------------------------------------------------------
int main(int nargs,char **argv) {
OptionC option(nargs,argv,true);
StringC fn = option.String("i",".", "(input) Directory for unix src tree. ");
StringC fout = option.String("o","MSVC", "(output) Directory for VCPP src tree. ");
StringC pathtempl= option.String("pt", PROJECT_OUT "/share/RAVL/AutoPort2","Where to look for template files.");
StringC projectOut= option.String("p", "C:/Build","Project out to use in windows. (With UNIX style seperators)");
StringC doLibsFile =option.String("dl", "", "Text file containing names of Ravl libraries to port. If no file provided all libraries will be done");
DListC<StringC> resourceList = option.List("r","libGTK LibDirectShow","List of resources to use. ");
projectOut.gsub("/","\\"); // "../ProjectOut"
//bool rec = option.Boolean("r",true, "recurse into subdirectories. ");
//bool all = option.Boolean("a",false, "Go into inactive directories as well. ");
bool verb = option.Boolean("v",false, "Verbose mode.");
option.Check();
// Put list of resources into a set
HSetC<StringC> resources;
for(DLIterC<StringC> it(resourceList);it;it++)
resources += *it;
// Load info about external libraries
InitExtLibFormat();
InitExtLibTableFormat();
// Look for local version of externalLib first.
FilenameC inFile = "externalLib.xml";
if(!inFile.Exists())
inFile = pathtempl + '/' + inFile;
ExtLibTableC extLibs;
if(!Load(inFile, extLibs))
RavlIssueError("Unable to open external libs file: " + inFile);
// Load in doLibs file if provided
DListC<StringC> doLibs;
if(option.IsOnCommandLine("dl")) {
TextFileC file(doLibsFile);
for(UIntT i=1;i<=file.NoLines();i++) {
StringC line = file[i];
line = line.TopAndTail();
doLibs.InsLast(line);
}
}
AutoPortSourceC portInfo(fn, doLibs,resources);
if(verb) {
portInfo.Dump();
portInfo.SetVerbose(verb);
}
BuildTemplates(pathtempl,portInfo,fout,projectOut,extLibs);
return 0;
}
// -----------------------------------------------------------------------------
|
/****************************************************************************
**
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
**
** This file is part of $PRODUCT$.
**
** $CPP_LICENSE$
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
|
// Copyright (c) 2014 The BitCore Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/ripemd160.h"
#include "crypto/common.h"
#include <string.h>
// Internal implementation code.
namespace
{
/// Internal RIPEMD-160 implementation.
namespace ripemd160
{
uint32_t inline f1(uint32_t x, uint32_t y, uint32_t z) { return x ^ y ^ z; }
uint32_t inline f2(uint32_t x, uint32_t y, uint32_t z) { return (x & y) | (~x & z); }
uint32_t inline f3(uint32_t x, uint32_t y, uint32_t z) { return (x | ~y) ^ z; }
uint32_t inline f4(uint32_t x, uint32_t y, uint32_t z) { return (x & z) | (y & ~z); }
uint32_t inline f5(uint32_t x, uint32_t y, uint32_t z) { return x ^ (y | ~z); }
/** Initialize RIPEMD-160 state. */
void inline Initialize(uint32_t* s)
{
s[0] = 0x67452301ul;
s[1] = 0xEFCDAB89ul;
s[2] = 0x98BADCFEul;
s[3] = 0x10325476ul;
s[4] = 0xC3D2E1F0ul;
}
uint32_t inline rol(uint32_t x, int i) { return (x << i) | (x >> (32 - i)); }
void inline Round(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t f, uint32_t x, uint32_t k, int r)
{
a = rol(a + f + x + k, r) + e;
c = rol(c, 10);
}
void inline R11(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f1(b, c, d), x, 0, r); }
void inline R21(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f2(b, c, d), x, 0x5A827999ul, r); }
void inline R31(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f3(b, c, d), x, 0x6ED9EBA1ul, r); }
void inline R41(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f4(b, c, d), x, 0x8F1BBCDCul, r); }
void inline R51(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f5(b, c, d), x, 0xA953FD4Eul, r); }
void inline R12(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f5(b, c, d), x, 0x50A28BE6ul, r); }
void inline R22(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f4(b, c, d), x, 0x5C4DD124ul, r); }
void inline R32(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f3(b, c, d), x, 0x6D703EF3ul, r); }
void inline R42(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f2(b, c, d), x, 0x7A6D76E9ul, r); }
void inline R52(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f1(b, c, d), x, 0, r); }
/** Perform a RIPEMD-160 transformation, processing a 64-byte chunk. */
void Transform(uint32_t* s, const unsigned char* chunk)
{
uint32_t a1 = s[0], b1 = s[1], c1 = s[2], d1 = s[3], e1 = s[4];
uint32_t a2 = a1, b2 = b1, c2 = c1, d2 = d1, e2 = e1;
uint32_t w0 = ReadLE32(chunk + 0), w1 = ReadLE32(chunk + 4), w2 = ReadLE32(chunk + 8), w3 = ReadLE32(chunk + 12);
uint32_t w4 = ReadLE32(chunk + 16), w5 = ReadLE32(chunk + 20), w6 = ReadLE32(chunk + 24), w7 = ReadLE32(chunk + 28);
uint32_t w8 = ReadLE32(chunk + 32), w9 = ReadLE32(chunk + 36), w10 = ReadLE32(chunk + 40), w11 = ReadLE32(chunk + 44);
uint32_t w12 = ReadLE32(chunk + 48), w13 = ReadLE32(chunk + 52), w14 = ReadLE32(chunk + 56), w15 = ReadLE32(chunk + 60);
R11(a1, b1, c1, d1, e1, w0, 11);
R12(a2, b2, c2, d2, e2, w5, 8);
R11(e1, a1, b1, c1, d1, w1, 14);
R12(e2, a2, b2, c2, d2, w14, 9);
R11(d1, e1, a1, b1, c1, w2, 15);
R12(d2, e2, a2, b2, c2, w7, 9);
R11(c1, d1, e1, a1, b1, w3, 12);
R12(c2, d2, e2, a2, b2, w0, 11);
R11(b1, c1, d1, e1, a1, w4, 5);
R12(b2, c2, d2, e2, a2, w9, 13);
R11(a1, b1, c1, d1, e1, w5, 8);
R12(a2, b2, c2, d2, e2, w2, 15);
R11(e1, a1, b1, c1, d1, w6, 7);
R12(e2, a2, b2, c2, d2, w11, 15);
R11(d1, e1, a1, b1, c1, w7, 9);
R12(d2, e2, a2, b2, c2, w4, 5);
R11(c1, d1, e1, a1, b1, w8, 11);
R12(c2, d2, e2, a2, b2, w13, 7);
R11(b1, c1, d1, e1, a1, w9, 13);
R12(b2, c2, d2, e2, a2, w6, 7);
R11(a1, b1, c1, d1, e1, w10, 14);
R12(a2, b2, c2, d2, e2, w15, 8);
R11(e1, a1, b1, c1, d1, w11, 15);
R12(e2, a2, b2, c2, d2, w8, 11);
R11(d1, e1, a1, b1, c1, w12, 6);
R12(d2, e2, a2, b2, c2, w1, 14);
R11(c1, d1, e1, a1, b1, w13, 7);
R12(c2, d2, e2, a2, b2, w10, 14);
R11(b1, c1, d1, e1, a1, w14, 9);
R12(b2, c2, d2, e2, a2, w3, 12);
R11(a1, b1, c1, d1, e1, w15, 8);
R12(a2, b2, c2, d2, e2, w12, 6);
R21(e1, a1, b1, c1, d1, w7, 7);
R22(e2, a2, b2, c2, d2, w6, 9);
R21(d1, e1, a1, b1, c1, w4, 6);
R22(d2, e2, a2, b2, c2, w11, 13);
R21(c1, d1, e1, a1, b1, w13, 8);
R22(c2, d2, e2, a2, b2, w3, 15);
R21(b1, c1, d1, e1, a1, w1, 13);
R22(b2, c2, d2, e2, a2, w7, 7);
R21(a1, b1, c1, d1, e1, w10, 11);
R22(a2, b2, c2, d2, e2, w0, 12);
R21(e1, a1, b1, c1, d1, w6, 9);
R22(e2, a2, b2, c2, d2, w13, 8);
R21(d1, e1, a1, b1, c1, w15, 7);
R22(d2, e2, a2, b2, c2, w5, 9);
R21(c1, d1, e1, a1, b1, w3, 15);
R22(c2, d2, e2, a2, b2, w10, 11);
R21(b1, c1, d1, e1, a1, w12, 7);
R22(b2, c2, d2, e2, a2, w14, 7);
R21(a1, b1, c1, d1, e1, w0, 12);
R22(a2, b2, c2, d2, e2, w15, 7);
R21(e1, a1, b1, c1, d1, w9, 15);
R22(e2, a2, b2, c2, d2, w8, 12);
R21(d1, e1, a1, b1, c1, w5, 9);
R22(d2, e2, a2, b2, c2, w12, 7);
R21(c1, d1, e1, a1, b1, w2, 11);
R22(c2, d2, e2, a2, b2, w4, 6);
R21(b1, c1, d1, e1, a1, w14, 7);
R22(b2, c2, d2, e2, a2, w9, 15);
R21(a1, b1, c1, d1, e1, w11, 13);
R22(a2, b2, c2, d2, e2, w1, 13);
R21(e1, a1, b1, c1, d1, w8, 12);
R22(e2, a2, b2, c2, d2, w2, 11);
R31(d1, e1, a1, b1, c1, w3, 11);
R32(d2, e2, a2, b2, c2, w15, 9);
R31(c1, d1, e1, a1, b1, w10, 13);
R32(c2, d2, e2, a2, b2, w5, 7);
R31(b1, c1, d1, e1, a1, w14, 6);
R32(b2, c2, d2, e2, a2, w1, 15);
R31(a1, b1, c1, d1, e1, w4, 7);
R32(a2, b2, c2, d2, e2, w3, 11);
R31(e1, a1, b1, c1, d1, w9, 14);
R32(e2, a2, b2, c2, d2, w7, 8);
R31(d1, e1, a1, b1, c1, w15, 9);
R32(d2, e2, a2, b2, c2, w14, 6);
R31(c1, d1, e1, a1, b1, w8, 13);
R32(c2, d2, e2, a2, b2, w6, 6);
R31(b1, c1, d1, e1, a1, w1, 15);
R32(b2, c2, d2, e2, a2, w9, 14);
R31(a1, b1, c1, d1, e1, w2, 14);
R32(a2, b2, c2, d2, e2, w11, 12);
R31(e1, a1, b1, c1, d1, w7, 8);
R32(e2, a2, b2, c2, d2, w8, 13);
R31(d1, e1, a1, b1, c1, w0, 13);
R32(d2, e2, a2, b2, c2, w12, 5);
R31(c1, d1, e1, a1, b1, w6, 6);
R32(c2, d2, e2, a2, b2, w2, 14);
R31(b1, c1, d1, e1, a1, w13, 5);
R32(b2, c2, d2, e2, a2, w10, 13);
R31(a1, b1, c1, d1, e1, w11, 12);
R32(a2, b2, c2, d2, e2, w0, 13);
R31(e1, a1, b1, c1, d1, w5, 7);
R32(e2, a2, b2, c2, d2, w4, 7);
R31(d1, e1, a1, b1, c1, w12, 5);
R32(d2, e2, a2, b2, c2, w13, 5);
R41(c1, d1, e1, a1, b1, w1, 11);
R42(c2, d2, e2, a2, b2, w8, 15);
R41(b1, c1, d1, e1, a1, w9, 12);
R42(b2, c2, d2, e2, a2, w6, 5);
R41(a1, b1, c1, d1, e1, w11, 14);
R42(a2, b2, c2, d2, e2, w4, 8);
R41(e1, a1, b1, c1, d1, w10, 15);
R42(e2, a2, b2, c2, d2, w1, 11);
R41(d1, e1, a1, b1, c1, w0, 14);
R42(d2, e2, a2, b2, c2, w3, 14);
R41(c1, d1, e1, a1, b1, w8, 15);
R42(c2, d2, e2, a2, b2, w11, 14);
R41(b1, c1, d1, e1, a1, w12, 9);
R42(b2, c2, d2, e2, a2, w15, 6);
R41(a1, b1, c1, d1, e1, w4, 8);
R42(a2, b2, c2, d2, e2, w0, 14);
R41(e1, a1, b1, c1, d1, w13, 9);
R42(e2, a2, b2, c2, d2, w5, 6);
R41(d1, e1, a1, b1, c1, w3, 14);
R42(d2, e2, a2, b2, c2, w12, 9);
R41(c1, d1, e1, a1, b1, w7, 5);
R42(c2, d2, e2, a2, b2, w2, 12);
R41(b1, c1, d1, e1, a1, w15, 6);
R42(b2, c2, d2, e2, a2, w13, 9);
R41(a1, b1, c1, d1, e1, w14, 8);
R42(a2, b2, c2, d2, e2, w9, 12);
R41(e1, a1, b1, c1, d1, w5, 6);
R42(e2, a2, b2, c2, d2, w7, 5);
R41(d1, e1, a1, b1, c1, w6, 5);
R42(d2, e2, a2, b2, c2, w10, 15);
R41(c1, d1, e1, a1, b1, w2, 12);
R42(c2, d2, e2, a2, b2, w14, 8);
R51(b1, c1, d1, e1, a1, w4, 9);
R52(b2, c2, d2, e2, a2, w12, 8);
R51(a1, b1, c1, d1, e1, w0, 15);
R52(a2, b2, c2, d2, e2, w15, 5);
R51(e1, a1, b1, c1, d1, w5, 5);
R52(e2, a2, b2, c2, d2, w10, 12);
R51(d1, e1, a1, b1, c1, w9, 11);
R52(d2, e2, a2, b2, c2, w4, 9);
R51(c1, d1, e1, a1, b1, w7, 6);
R52(c2, d2, e2, a2, b2, w1, 12);
R51(b1, c1, d1, e1, a1, w12, 8);
R52(b2, c2, d2, e2, a2, w5, 5);
R51(a1, b1, c1, d1, e1, w2, 13);
R52(a2, b2, c2, d2, e2, w8, 14);
R51(e1, a1, b1, c1, d1, w10, 12);
R52(e2, a2, b2, c2, d2, w7, 6);
R51(d1, e1, a1, b1, c1, w14, 5);
R52(d2, e2, a2, b2, c2, w6, 8);
R51(c1, d1, e1, a1, b1, w1, 12);
R52(c2, d2, e2, a2, b2, w2, 13);
R51(b1, c1, d1, e1, a1, w3, 13);
R52(b2, c2, d2, e2, a2, w13, 6);
R51(a1, b1, c1, d1, e1, w8, 14);
R52(a2, b2, c2, d2, e2, w14, 5);
R51(e1, a1, b1, c1, d1, w11, 11);
R52(e2, a2, b2, c2, d2, w0, 15);
R51(d1, e1, a1, b1, c1, w6, 8);
R52(d2, e2, a2, b2, c2, w3, 13);
R51(c1, d1, e1, a1, b1, w15, 5);
R52(c2, d2, e2, a2, b2, w9, 11);
R51(b1, c1, d1, e1, a1, w13, 6);
R52(b2, c2, d2, e2, a2, w11, 11);
uint32_t t = s[0];
s[0] = s[1] + c1 + d2;
s[1] = s[2] + d1 + e2;
s[2] = s[3] + e1 + a2;
s[3] = s[4] + a1 + b2;
s[4] = t + b1 + c2;
}
} // namespace ripemd160
} // namespace
////// RIPEMD160
CRIPEMD160::CRIPEMD160() : bytes(0)
{
ripemd160::Initialize(s);
}
CRIPEMD160& CRIPEMD160::Write(const unsigned char* data, size_t len)
{
const unsigned char* end = data + len;
size_t bufsize = bytes % 64;
if (bufsize && bufsize + len >= 64) {
// Fill the buffer, and process it.
memcpy(buf + bufsize, data, 64 - bufsize);
bytes += 64 - bufsize;
data += 64 - bufsize;
ripemd160::Transform(s, buf);
bufsize = 0;
}
while (end >= data + 64) {
// Process full chunks directly from the source.
ripemd160::Transform(s, data);
bytes += 64;
data += 64;
}
if (end > data) {
// Fill the buffer with what remains.
memcpy(buf + bufsize, data, end - data);
bytes += end - data;
}
return *this;
}
void CRIPEMD160::Finalize(unsigned char hash[OUTPUT_SIZE])
{
static const unsigned char pad[64] = {0x80};
unsigned char sizedesc[8];
WriteLE64(sizedesc, bytes << 3);
Write(pad, 1 + ((119 - (bytes % 64)) % 64));
Write(sizedesc, 8);
WriteLE32(hash, s[0]);
WriteLE32(hash + 4, s[1]);
WriteLE32(hash + 8, s[2]);
WriteLE32(hash + 12, s[3]);
WriteLE32(hash + 16, s[4]);
}
CRIPEMD160& CRIPEMD160::Reset()
{
bytes = 0;
ripemd160::Initialize(s);
return *this;
}
|
#include "MainMenu.hpp"
MainMenu::MainMenu()
{
}
|
// $Id$
/*
Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior University
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.
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.
*/
#ifndef _LOA_HPP_
#define _LOA_HPP_
#include <vector>
#include "allocator.hpp"
class LOA : public DenseAllocator {
vector<int> _counts;
vector<int> _req;
vector<int> _rptr;
vector<int> _gptr;
public:
LOA( Module *parent, const string& name,
int inputs, int outputs, Module *clock );
void Allocate( );
};
#endif
|
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Covers ranges::push_heap, ranges::pop_heap, ranges::make_heap, ranges::is_heap, ranges::is_heap_until, and
// ranges::sort_heap
#include <algorithm>
#include <array>
#include <cassert>
#include <concepts>
#include <ranges>
#include <span>
#include <utility>
#include <range_algorithm_support.hpp>
using namespace std;
#define ASSERT(...) assert((__VA_ARGS__))
// Validate dangling story
STATIC_ASSERT(same_as<decltype(ranges::push_heap(borrowed<false>{})), ranges::dangling>);
STATIC_ASSERT(same_as<decltype(ranges::push_heap(borrowed<true>{})), int*>);
STATIC_ASSERT(same_as<decltype(ranges::pop_heap(borrowed<false>{})), ranges::dangling>);
STATIC_ASSERT(same_as<decltype(ranges::pop_heap(borrowed<true>{})), int*>);
STATIC_ASSERT(same_as<decltype(ranges::make_heap(borrowed<false>{})), ranges::dangling>);
STATIC_ASSERT(same_as<decltype(ranges::make_heap(borrowed<true>{})), int*>);
STATIC_ASSERT(same_as<decltype(ranges::sort_heap(borrowed<false>{})), ranges::dangling>);
STATIC_ASSERT(same_as<decltype(ranges::sort_heap(borrowed<true>{})), int*>);
STATIC_ASSERT(same_as<decltype(ranges::is_heap_until(borrowed<false>{})), ranges::dangling>);
STATIC_ASSERT(same_as<decltype(ranges::is_heap_until(borrowed<true>{})), int*>);
using P = pair<int, int>;
struct empty_ranges {
template <ranges::random_access_range Range>
static constexpr void call() {
// Validate empty ranges (only make_heap and sort_heap accept empty ranges)
const Range range{span<P, 0>{}};
ASSERT(ranges::make_heap(range, ranges::less{}, get_first) == ranges::end(range));
ASSERT(ranges::make_heap(ranges::begin(range), ranges::end(range), ranges::less{}, get_first)
== ranges::end(range));
ASSERT(ranges::sort_heap(range, ranges::less{}, get_first) == ranges::end(range));
ASSERT(ranges::sort_heap(ranges::begin(range), ranges::end(range), ranges::less{}, get_first)
== ranges::end(range));
}
};
struct is_heap_test {
template <ranges::random_access_range Range>
static constexpr void call() {
// Validate is_heap and is_heap_until
using ranges::is_heap, ranges::is_heap_until, ranges::less, ranges::swap;
array buff = {
P{1668617627, 0},
P{1429106719, 1},
P{-47163201, 2},
P{-441494788, 3},
P{-1200257975, 4},
P{-1459960308, 5},
P{-912489821, 6},
P{-2095681771, 7},
P{-1298559576, 8},
P{-1260655766, 9},
};
const Range wrapped{buff};
ASSERT(is_heap(wrapped, less{}, get_first));
ASSERT(is_heap(wrapped.begin(), wrapped.end(), less{}, get_first));
ASSERT(is_heap_until(wrapped, less{}, get_first) == wrapped.end());
ASSERT(is_heap_until(wrapped.begin(), wrapped.end(), less{}, get_first) == wrapped.end());
swap(buff[0], buff[1]);
ASSERT(!is_heap(wrapped, less{}, get_first));
ASSERT(!is_heap(wrapped.begin(), wrapped.end(), less{}, get_first));
ASSERT(is_heap_until(wrapped, less{}, get_first) == wrapped.begin() + 1);
ASSERT(is_heap_until(wrapped.begin(), wrapped.end(), less{}, get_first) == wrapped.begin() + 1);
}
};
struct make_and_sort_heap_test {
static constexpr array initial_values = {
P{-1200257975, 0},
P{-1260655766, 1},
P{-1298559576, 2},
P{-1459960308, 3},
P{-2095681771, 4},
P{-441494788, 5},
P{-47163201, 6},
P{-912489821, 7},
P{1429106719, 8},
P{1668617627, 9},
};
template <ranges::random_access_range Range>
static constexpr void call() {
// Validate make_heap and sort_heap
using ranges::make_heap, ranges::sort_heap, ranges::is_heap, ranges::is_sorted, ranges::less, ranges::swap;
{
auto buff = initial_values;
const Range wrapped{buff};
ASSERT(!is_heap(wrapped, less{}, get_first));
make_heap(wrapped, less{}, get_first);
ASSERT(is_heap(wrapped, less{}, get_first));
sort_heap(wrapped, less{}, get_first);
ASSERT(is_sorted(wrapped, less{}, get_first));
}
{
auto buff = initial_values;
const Range wrapped{buff};
ASSERT(!is_heap(wrapped.begin(), wrapped.end(), less{}, get_first));
make_heap(wrapped.begin(), wrapped.end(), less{}, get_first);
ASSERT(is_heap(wrapped.begin(), wrapped.end(), less{}, get_first));
sort_heap(wrapped.begin(), wrapped.end(), less{}, get_first);
ASSERT(is_sorted(wrapped.begin(), wrapped.end(), less{}, get_first));
}
}
};
struct push_and_pop_heap_test {
static constexpr array initial_values = {
P{1668617627, 0},
P{1429106719, 1},
P{-47163201, 2},
P{-441494788, 3},
P{-1200257975, 4},
P{-1459960308, 5},
P{-912489821, 6},
P{-2095681771, 7},
P{-1298559576, 8},
P{-1260655766, 9},
};
STATIC_ASSERT(ranges::is_heap(initial_values, ranges::less{}, get_first));
static constexpr array expectedPushed = {
P{1668617627, 0},
P{1429106719, 1},
P{-47163201, 2},
P{-1260655766, 9},
P{-441494788, 3},
P{-1459960308, 5},
P{-912489821, 6},
P{-2095681771, 7},
P{-1298559576, 8},
P{-1200257975, 4},
};
STATIC_ASSERT(ranges::is_heap(expectedPushed, ranges::less{}, get_first));
static constexpr array expectedPopped = {
P{1429106719, 1},
P{-441494788, 3},
P{-47163201, 2},
P{-1260655766, 9},
P{-1200257975, 4},
P{-1459960308, 5},
P{-912489821, 6},
P{-2095681771, 7},
P{-1298559576, 8},
P{1668617627, 0},
};
STATIC_ASSERT(ranges::is_heap(expectedPopped.begin(), expectedPopped.end() - 1, ranges::less{}, get_first));
template <ranges::random_access_range Range>
static constexpr void call() {
// Validate push_heap and pop_heap
using ranges::push_heap, ranges::pop_heap, ranges::equal, ranges::is_heap, ranges::less;
{
auto buff = initial_values;
const Range wrapped{buff};
pop_heap(wrapped, less{}, get_first);
ASSERT(equal(wrapped, expectedPopped));
push_heap(wrapped, less{}, get_first);
ASSERT(equal(wrapped, expectedPushed));
}
{
auto buff = initial_values;
const Range wrapped{buff};
pop_heap(wrapped.begin(), wrapped.end(), less{}, get_first);
ASSERT(is_heap(expectedPopped.begin(), expectedPopped.end() - 1, less{}, get_first));
ASSERT(equal(wrapped.begin(), wrapped.end(), expectedPopped.begin(), expectedPopped.end()));
push_heap(wrapped.begin(), wrapped.end(), less{}, get_first);
ASSERT(is_heap(expectedPushed, less{}, get_first));
ASSERT(equal(wrapped.begin(), wrapped.end(), expectedPushed.begin(), expectedPushed.end()));
}
}
};
int main() {
STATIC_ASSERT((test_random<empty_ranges, P>(), true));
test_random<empty_ranges, P>();
STATIC_ASSERT((test_random<is_heap_test, P>(), true));
test_random<is_heap_test, P>();
STATIC_ASSERT((test_random<make_and_sort_heap_test, P>(), true));
test_random<make_and_sort_heap_test, P>();
STATIC_ASSERT((test_random<push_and_pop_heap_test, P>(), true));
test_random<push_and_pop_heap_test, P>();
}
|
//
// CPUBatchMatMul.hpp
// MNN
//
// Created by MNN on 2019/03/25.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUBatchMatMul_hpp
#define CPUBatchMatMul_hpp
#include "CPUMatMul.hpp"
namespace MNN {
class CPUBatchMatMul : public Execution {
public:
CPUBatchMatMul(Backend *backend, bool adjX, bool adjY);
virtual ~CPUBatchMatMul() = default;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
int mBatch;
std::shared_ptr<Execution> mMatMul;
std::vector<Tensor*> mTempInputs;
std::vector<Tensor*> mTempOutputs;
std::shared_ptr<Tensor> mMatrixA;
std::shared_ptr<Tensor> mMatrixB;
std::shared_ptr<Tensor> mMatrixC;
};
} // namespace MNN
#endif /* CPUBatchMatMul_hpp */
|
#ifndef ENGINE_GUIDANCE_POST_PROCESSING_HPP
#define ENGINE_GUIDANCE_POST_PROCESSING_HPP
#include "engine/guidance/leg_geometry.hpp"
#include "engine/guidance/route_step.hpp"
#include "engine/phantom_node.hpp"
#include "util/attributes.hpp"
#include <vector>
namespace osrm
{
namespace engine
{
namespace guidance
{
// passed as none-reference to modify in-place and move out again
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> postProcess(std::vector<RouteStep> steps);
// Multiple possible reasons can result in unnecessary/confusing instructions
// A prime example would be a segregated intersection. Turning around at this
// intersection would result in two instructions to turn left.
// Collapsing such turns into a single turn instruction, we give a clearer
// set of instructionst that is not cluttered by unnecessary turns/name changes.
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> collapseTurns(std::vector<RouteStep> steps);
// A check whether two instructions can be treated as one. This is only the case for very short
// maneuvers that can, in some form, be seen as one. Lookahead of one step.
bool collapsable(const RouteStep &step, const RouteStep &next);
// Elongate a step by another. the data is added either at the front, or the back
OSRM_ATTR_WARN_UNUSED
RouteStep elongate(RouteStep step, const RouteStep &by_step);
// trim initial/final segment of very short length.
// This function uses in/out parameter passing to modify both steps and geometry in place.
// We use this method since both steps and geometry are closely coupled logically but
// are not coupled in the same way in the background. To avoid the additional overhead
// of introducing intermediate structions, we resolve to the in/out scheme at this point.
void trimShortSegments(std::vector<RouteStep> &steps, LegGeometry &geometry);
// assign relative locations to depart/arrive instructions
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> assignRelativeLocations(std::vector<RouteStep> steps,
const LegGeometry &geometry,
const PhantomNode &source_node,
const PhantomNode &target_node);
// collapse suppressed instructions remaining into intersections array
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> buildIntersections(std::vector<RouteStep> steps);
// remove steps invalidated by post-processing
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> removeNoTurnInstructions(std::vector<RouteStep> steps);
// remove use lane information that is not actually a turn. For post-processing, we need to
// associate lanes with every turn. Some of these use-lane instructions are not required after lane
// anticipation anymore. This function removes all use lane instructions that are not actually used
// anymore since all lanes going straight are used anyhow.
// FIXME this is currently only a heuristic. We need knowledge on which lanes actually might become
// turn lanes. If a straight lane becomes a turn lane, this might be something to consider. Right
// now we bet on lane-anticipation to catch this.
OSRM_ATTR_WARN_UNUSED
std::vector<RouteStep> collapseUseLane(std::vector<RouteStep> steps);
// postProcess will break the connection between the leg geometry
// for which a segment is supposed to represent exactly the coordinates
// between routing maneuvers and the route steps itself.
// If required, we can get both in sync again using this function.
// Move in LegGeometry for modification in place.
OSRM_ATTR_WARN_UNUSED
LegGeometry resyncGeometry(LegGeometry leg_geometry, const std::vector<RouteStep> &steps);
} // namespace guidance
} // namespace engine
} // namespace osrm
#endif // ENGINE_GUIDANCE_POST_PROCESSING_HPP
|
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions
#include "UnityEngine/ResourceManagement/ResourceProviders/AssetBundleRequestOptions.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.String m_Hash
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Hash() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Hash");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Hash"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.UInt32 m_Crc
uint& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Crc() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Crc");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Crc"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Timeout
int& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Timeout() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_Timeout");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Timeout"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_ChunkedTransfer
bool& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_ChunkedTransfer() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_ChunkedTransfer");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ChunkedTransfer"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_RedirectLimit
int& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_RedirectLimit() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_RedirectLimit");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RedirectLimit"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_RetryCount
int& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_RetryCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_RetryCount");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RetryCount"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_BundleName
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_BundleName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_BundleName");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_BundleName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int64 m_BundleSize
int64_t& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_BundleSize() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_BundleSize");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_BundleSize"))->offset;
return *reinterpret_cast<int64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_UseCrcForCachedBundles
bool& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_UseCrcForCachedBundles() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_UseCrcForCachedBundles");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_UseCrcForCachedBundles"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_ClearOtherCachedVersionsWhenLoaded
bool& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_ClearOtherCachedVersionsWhenLoaded() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::dyn_m_ClearOtherCachedVersionsWhenLoaded");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ClearOtherCachedVersionsWhenLoaded"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_Hash
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Hash() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Hash");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_Hash
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Hash(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Hash");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_Crc
uint UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Crc() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Crc");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Crc", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_Crc
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Crc(uint value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Crc");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_Crc", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_Timeout
int UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Timeout() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_Timeout");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Timeout", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_Timeout
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Timeout(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_Timeout");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_Timeout", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_ChunkedTransfer
bool UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_ChunkedTransfer() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_ChunkedTransfer");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ChunkedTransfer", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_ChunkedTransfer
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_ChunkedTransfer(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_ChunkedTransfer");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_ChunkedTransfer", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_RedirectLimit
int UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_RedirectLimit() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_RedirectLimit");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_RedirectLimit", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_RedirectLimit
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_RedirectLimit(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_RedirectLimit");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_RedirectLimit", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_RetryCount
int UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_RetryCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_RetryCount");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_RetryCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_RetryCount
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_RetryCount(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_RetryCount");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_RetryCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_BundleName
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_BundleName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_BundleName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_BundleName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_BundleName
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_BundleName(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_BundleName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_BundleName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_BundleSize
int64_t UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_BundleSize() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_BundleSize");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_BundleSize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int64_t, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_BundleSize
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_BundleSize(int64_t value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_BundleSize");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_BundleSize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_UseCrcForCachedBundle
bool UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_UseCrcForCachedBundle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_UseCrcForCachedBundle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_UseCrcForCachedBundle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_UseCrcForCachedBundle
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_UseCrcForCachedBundle(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_UseCrcForCachedBundle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_UseCrcForCachedBundle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.get_ClearOtherCachedVersionsWhenLoaded
bool UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_ClearOtherCachedVersionsWhenLoaded() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::get_ClearOtherCachedVersionsWhenLoaded");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ClearOtherCachedVersionsWhenLoaded", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.set_ClearOtherCachedVersionsWhenLoaded
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_ClearOtherCachedVersionsWhenLoaded(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::set_ClearOtherCachedVersionsWhenLoaded");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_ClearOtherCachedVersionsWhenLoaded", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions.ComputeSize
int64_t UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::ComputeSize(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::ResourceManagement::ResourceManager* resourceManager) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions::ComputeSize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ComputeSize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(resourceManager)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int64_t, false>(___instance_arg, ___internal__method, location, resourceManager);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource
#include "UnityEngine/ResourceManagement/ResourceProviders/AssetBundleResource.hpp"
// Including type: UnityEngine.AssetBundle
#include "UnityEngine/AssetBundle.hpp"
// Including type: UnityEngine.Networking.DownloadHandlerAssetBundle
#include "UnityEngine/Networking/DownloadHandlerAssetBundle.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
// Including type: UnityEngine.ResourceManagement.WebRequestQueueOperation
#include "UnityEngine/ResourceManagement/WebRequestQueueOperation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions
#include "UnityEngine/ResourceManagement/ResourceProviders/AssetBundleRequestOptions.hpp"
// Including type: UnityEngine.Networking.UnityWebRequest
#include "UnityEngine/Networking/UnityWebRequest.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.Networking.UnityWebRequestAsyncOperation
#include "UnityEngine/Networking/UnityWebRequestAsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.AssetBundle m_AssetBundle
UnityEngine::AssetBundle*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_AssetBundle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_AssetBundle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AssetBundle"))->offset;
return *reinterpret_cast<UnityEngine::AssetBundle**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Networking.DownloadHandlerAssetBundle m_downloadHandler
UnityEngine::Networking::DownloadHandlerAssetBundle*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_downloadHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_downloadHandler");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_downloadHandler"))->offset;
return *reinterpret_cast<UnityEngine::Networking::DownloadHandlerAssetBundle**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.AsyncOperation m_RequestOperation
UnityEngine::AsyncOperation*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_RequestOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_RequestOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RequestOperation"))->offset;
return *reinterpret_cast<UnityEngine::AsyncOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.WebRequestQueueOperation m_WebRequestQueueOperation
UnityEngine::ResourceManagement::WebRequestQueueOperation*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_WebRequestQueueOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_WebRequestQueueOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_WebRequestQueueOperation"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::WebRequestQueueOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle m_ProvideHandle
UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_ProvideHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_ProvideHandle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ProvideHandle"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions m_Options
UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions*& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Options() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Options");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Options"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::AssetBundleRequestOptions**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Retries
int& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Retries() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Retries");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Retries"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int64 m_BytesToDownload
int64_t& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_BytesToDownload() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_BytesToDownload");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_BytesToDownload"))->offset;
return *reinterpret_cast<int64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int64 m_DownloadedBytes
int64_t& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_DownloadedBytes() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_DownloadedBytes");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_DownloadedBytes"))->offset;
return *reinterpret_cast<int64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_Completed
bool& UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Completed() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::dyn_m_Completed");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Completed"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.CreateWebRequest
UnityEngine::Networking::UnityWebRequest* UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::CreateWebRequest(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* loc) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::CreateWebRequest");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CreateWebRequest", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(loc)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Networking::UnityWebRequest*, false>(___instance_arg, ___internal__method, loc);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.PercentComplete
float UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::PercentComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::PercentComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "PercentComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.GetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::GetDownloadStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::GetDownloadStatus");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.GetAssetBundle
UnityEngine::AssetBundle* UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::GetAssetBundle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::GetAssetBundle");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetAssetBundle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::AssetBundle*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.Start
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::Start(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::Start");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.WaitForCompletionHandler
bool UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::WaitForCompletionHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::WaitForCompletionHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "WaitForCompletionHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.BeginOperation
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::BeginOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::BeginOperation");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "BeginOperation", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.LocalRequestOperationCompleted
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::LocalRequestOperationCompleted(UnityEngine::AsyncOperation* op) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::LocalRequestOperationCompleted");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "LocalRequestOperationCompleted", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(op)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, op);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.WebRequestOperationCompleted
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::WebRequestOperationCompleted(UnityEngine::AsyncOperation* op) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::WebRequestOperationCompleted");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "WebRequestOperationCompleted", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(op)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, op);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.Unload
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::Unload() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::Unload");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Unload", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource.<BeginOperation>b__16_0
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::$BeginOperation$b__16_0(UnityEngine::Networking::UnityWebRequestAsyncOperation* asyncOp) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleResource::<BeginOperation>b__16_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<BeginOperation>b__16_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(asyncOp)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, asyncOp);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/AssetBundleProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle providerInterface) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(providerInterface)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, providerInterface);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider.GetDefaultType
System::Type* UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::GetDefaultType(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::GetDefaultType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDefaultType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method, location);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider.Release
void UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::Release(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, ::Il2CppObject* asset) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AssetBundleProvider::Release");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Release", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(asset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, location, asset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.AtlasSpriteProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/AtlasSpriteProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.AtlasSpriteProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::AtlasSpriteProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle providerInterface) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::AtlasSpriteProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(providerInterface)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, providerInterface);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/BundledAssetProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/BundledAssetProvider_InternalOp.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/BundledAssetProvider_InternalOp.hpp"
// Including type: UnityEngine.AssetBundleRequest
#include "UnityEngine/AssetBundleRequest.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource
#include "UnityEngine/ResourceManagement/ResourceProviders/IAssetBundleResource.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.AssetBundleRequest m_RequestOperation
UnityEngine::AssetBundleRequest*& UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_m_RequestOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_m_RequestOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RequestOperation"))->offset;
return *reinterpret_cast<UnityEngine::AssetBundleRequest**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle m_ProvideHandle
UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle& UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_m_ProvideHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_m_ProvideHandle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ProvideHandle"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String subObjectName
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_subObjectName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::dyn_subObjectName");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "subObjectName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.LoadBundleFromDependecies
UnityEngine::ResourceManagement::ResourceProviders::IAssetBundleResource* UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::LoadBundleFromDependecies(System::Collections::Generic::IList_1<::Il2CppObject*>* results) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::LoadBundleFromDependecies");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.ResourceProviders", "BundledAssetProvider/InternalOp", "LoadBundleFromDependecies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(results)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceProviders::IAssetBundleResource*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, results);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.Start
void UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::Start(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::Start");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.WaitForCompletionHandler
bool UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::WaitForCompletionHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::WaitForCompletionHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "WaitForCompletionHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.ActionComplete
void UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::ActionComplete(UnityEngine::AsyncOperation* obj) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::ActionComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ActionComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(obj)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, obj);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.ProgressCallback
float UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::ProgressCallback() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::BundledAssetProvider::InternalOp::ProgressCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ProgressCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters
#include "UnityEngine/ResourceManagement/ResourceProviders/InstantiationParameters.hpp"
// Including type: UnityEngine.Transform
#include "UnityEngine/Transform.hpp"
// Including type: UnityEngine.Object
#include "UnityEngine/Object.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Vector3 m_Position
UnityEngine::Vector3& UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Position() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Position");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Position"))->offset;
return *reinterpret_cast<UnityEngine::Vector3*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Quaternion m_Rotation
UnityEngine::Quaternion& UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Rotation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Rotation");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Rotation"))->offset;
return *reinterpret_cast<UnityEngine::Quaternion*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Transform m_Parent
UnityEngine::Transform*& UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Parent() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_Parent");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Parent"))->offset;
return *reinterpret_cast<UnityEngine::Transform**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_InstantiateInWorldPosition
bool& UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_InstantiateInWorldPosition() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_InstantiateInWorldPosition");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_InstantiateInWorldPosition"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_SetPositionRotation
bool& UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_SetPositionRotation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::dyn_m_SetPositionRotation");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SetPositionRotation"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters.get_Position
UnityEngine::Vector3 UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Position() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Position");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Position", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Vector3, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters.get_Rotation
UnityEngine::Quaternion UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Rotation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Rotation");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Rotation", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Quaternion, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters.get_Parent
UnityEngine::Transform* UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Parent() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_Parent");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Parent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Transform*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters.get_InstantiateInWorldPosition
bool UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_InstantiateInWorldPosition() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_InstantiateInWorldPosition");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_InstantiateInWorldPosition", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters.get_SetPositionRotation
bool UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_SetPositionRotation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters::get_SetPositionRotation");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_SetPositionRotation", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.IInstanceProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/IInstanceProvider.hpp"
// Including type: UnityEngine.GameObject
#include "UnityEngine/GameObject.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters
#include "UnityEngine/ResourceManagement/ResourceProviders/InstantiationParameters.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IInstanceProvider.ProvideInstance
UnityEngine::GameObject* UnityEngine::ResourceManagement::ResourceProviders::IInstanceProvider::ProvideInstance(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::GameObject*> prefabHandle, UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters instantiateParameters) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IInstanceProvider::ProvideInstance");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ProvideInstance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(prefabHandle), ::il2cpp_utils::ExtractType(instantiateParameters)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(___instance_arg, ___internal__method, resourceManager, prefabHandle, instantiateParameters);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IInstanceProvider.ReleaseInstance
void UnityEngine::ResourceManagement::ResourceProviders::IInstanceProvider::ReleaseInstance(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::GameObject* instance) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IInstanceProvider::ReleaseInstance");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReleaseInstance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(instance)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, resourceManager, instance);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags
#include "UnityEngine/ResourceManagement/ResourceProviders/ProviderBehaviourFlags.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags None
UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_get_None() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_get_None");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags>("UnityEngine.ResourceManagement.ResourceProviders", "ProviderBehaviourFlags", "None"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags None
void UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_set_None(UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_set_None");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.ResourceProviders", "ProviderBehaviourFlags", "None", value));
}
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags CanProvideWithFailedDependencies
UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_get_CanProvideWithFailedDependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_get_CanProvideWithFailedDependencies");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags>("UnityEngine.ResourceManagement.ResourceProviders", "ProviderBehaviourFlags", "CanProvideWithFailedDependencies"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags CanProvideWithFailedDependencies
void UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_set_CanProvideWithFailedDependencies(UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::_set_CanProvideWithFailedDependencies");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.ResourceProviders", "ProviderBehaviourFlags", "CanProvideWithFailedDependencies", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation
#include "UnityEngine/ResourceManagement/AsyncOperations/IGenericProviderOperation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: System.Func`1
#include "System/Func_1.hpp"
// Including type: System.Exception
#include "System/Exception.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Version
int& UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_Version() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_Version");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Version"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation m_InternalOp
UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation*& UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_InternalOp() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_InternalOp");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_InternalOp"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceManager m_ResourceManager
UnityEngine::ResourceManagement::ResourceManager*& UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_ResourceManager() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::dyn_m_ResourceManager");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ResourceManager"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceManager**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.get_InternalOp
UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation* UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_InternalOp() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_InternalOp");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_InternalOp", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.get_ResourceManager
UnityEngine::ResourceManagement::ResourceManager* UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_ResourceManager() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_ResourceManager");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_ResourceManager", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceManager*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.get_Type
System::Type* UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_Type() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_Type");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Type", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.get_Location
UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_Location() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_Location");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Location", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.get_DependencyCount
int UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_DependencyCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::get_DependencyCount");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_DependencyCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.GetDependencies
void UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::GetDependencies(System::Collections::Generic::IList_1<::Il2CppObject*>* list) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::GetDependencies");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(list)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, list);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.SetProgressCallback
void UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetProgressCallback(System::Func_1<float>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetProgressCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "SetProgressCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, callback);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.SetDownloadProgressCallbacks
void UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetDownloadProgressCallbacks(System::Func_1<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetDownloadProgressCallbacks");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "SetDownloadProgressCallbacks", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, callback);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle.SetWaitForCompletionCallback
void UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetWaitForCompletionCallback(System::Func_1<bool>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle::SetWaitForCompletionCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "SetWaitForCompletionCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, callback);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/IResourceProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags
#include "UnityEngine/ResourceManagement/ResourceProviders/ProviderBehaviourFlags.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.get_ProviderId
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::get_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::get_ProviderId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ProviderId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.get_BehaviourFlags
UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::get_BehaviourFlags() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::get_BehaviourFlags");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_BehaviourFlags", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.GetDefaultType
System::Type* UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::GetDefaultType(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::GetDefaultType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDefaultType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method, location);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.CanProvide
bool UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::CanProvide(System::Type* type, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::CanProvide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CanProvide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(type), ::il2cpp_utils::ExtractType(location)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, type, location);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.Release
void UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::Release(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, ::Il2CppObject* asset) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider::Release");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Release", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(asset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, location, asset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneInstance.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.SceneManagement.Scene m_Scene
UnityEngine::SceneManagement::Scene& UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::dyn_m_Scene() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::dyn_m_Scene");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Scene"))->offset;
return *reinterpret_cast<UnityEngine::SceneManagement::Scene*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: UnityEngine.AsyncOperation m_Operation
UnityEngine::AsyncOperation*& UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::dyn_m_Operation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::dyn_m_Operation");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Operation"))->offset;
return *reinterpret_cast<UnityEngine::AsyncOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.get_Scene
UnityEngine::SceneManagement::Scene UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::get_Scene() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::get_Scene");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Scene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::SceneManagement::Scene, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.set_Scene
void UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::set_Scene(UnityEngine::SceneManagement::Scene value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::set_Scene");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_Scene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.Activate
void UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::Activate() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::Activate");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Activate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.ActivateAsync
UnityEngine::AsyncOperation* UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::ActivateAsync() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::ActivateAsync");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "ActivateAsync", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::AsyncOperation*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.GetHashCode
int UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::GetHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::GetHashCode");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetHashCode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance.Equals
bool UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::Equals(::Il2CppObject* obj) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneInstance::Equals");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Equals", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(obj)})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method, obj);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ISceneProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/ISceneProvider.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.SceneManagement.LoadSceneMode
#include "UnityEngine/SceneManagement/LoadSceneMode.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ISceneProvider.ProvideScene
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> UnityEngine::ResourceManagement::ResourceProviders::ISceneProvider::ProvideScene(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::SceneManagement::LoadSceneMode loadMode, bool activateOnLoad, int priority) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ISceneProvider::ProvideScene");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ProvideScene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(loadMode), ::il2cpp_utils::ExtractType(activateOnLoad), ::il2cpp_utils::ExtractType(priority)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>, false>(___instance_arg, ___internal__method, resourceManager, location, loadMode, activateOnLoad, priority);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ISceneProvider.ReleaseScene
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> UnityEngine::ResourceManagement::ResourceProviders::ISceneProvider::ReleaseScene(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> sceneLoadHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ISceneProvider::ReleaseScene");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReleaseScene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(sceneLoadHandle)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>, false>(___instance_arg, ___internal__method, resourceManager, sceneLoadHandle);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/InstanceProvider.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: UnityEngine.GameObject
#include "UnityEngine/GameObject.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.InstantiationParameters
#include "UnityEngine/ResourceManagement/ResourceProviders/InstantiationParameters.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<UnityEngine.GameObject,UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.GameObject>> m_InstanceObjectToPrefabHandle
System::Collections::Generic::Dictionary_2<UnityEngine::GameObject*, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::GameObject*>>*& UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::dyn_m_InstanceObjectToPrefabHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::dyn_m_InstanceObjectToPrefabHandle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_InstanceObjectToPrefabHandle"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<UnityEngine::GameObject*, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::GameObject*>>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider.ProvideInstance
UnityEngine::GameObject* UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::ProvideInstance(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::GameObject*> prefabHandle, UnityEngine::ResourceManagement::ResourceProviders::InstantiationParameters instantiateParameters) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::ProvideInstance");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ProvideInstance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(prefabHandle), ::il2cpp_utils::ExtractType(instantiateParameters)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(___instance_arg, ___internal__method, resourceManager, prefabHandle, instantiateParameters);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider.ReleaseInstance
void UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::ReleaseInstance(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::GameObject* instance) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::InstanceProvider::ReleaseInstance");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReleaseInstance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(instance)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, resourceManager, instance);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.JsonAssetProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/JsonAssetProvider.hpp"
// Including type: System.Type
#include "System/Type.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.JsonAssetProvider.Convert
::Il2CppObject* UnityEngine::ResourceManagement::ResourceProviders::JsonAssetProvider::Convert(System::Type* type, ::Il2CppString* text) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::JsonAssetProvider::Convert");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Convert", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(type), ::il2cpp_utils::ExtractType(text)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method, type, text);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/LegacyResourcesProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/LegacyResourcesProvider_InternalOp.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle pi) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(pi)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, pi);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider.Release
void UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::Release(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, ::Il2CppObject* asset) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::Release");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Release", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(asset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, location, asset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/LegacyResourcesProvider_InternalOp.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.AsyncOperation m_RequestOperation
UnityEngine::AsyncOperation*& UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::dyn_m_RequestOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::dyn_m_RequestOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RequestOperation"))->offset;
return *reinterpret_cast<UnityEngine::AsyncOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle m_ProvideHandle
UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle& UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::dyn_m_ProvideHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::dyn_m_ProvideHandle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ProvideHandle"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.Start
void UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::Start(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::Start");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.AsyncOperationCompleted
void UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::AsyncOperationCompleted(UnityEngine::AsyncOperation* op) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::AsyncOperationCompleted");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AsyncOperationCompleted", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(op)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, op);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.PercentComplete
float UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::PercentComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::LegacyResourcesProvider::InternalOp::PercentComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "PercentComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase
#include "UnityEngine/ResourceManagement/ResourceProviders/ResourceProviderBase.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.BaseInitAsyncOp
#include "UnityEngine/ResourceManagement/ResourceProviders/ResourceProviderBase_BaseInitAsyncOp.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.<>c__DisplayClass10_0
#include "UnityEngine/ResourceManagement/ResourceProviders/ResourceProviderBase_--c__DisplayClass10_0.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: protected System.String m_ProviderId
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::dyn_m_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::dyn_m_ProviderId");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ProviderId"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: protected UnityEngine.ResourceManagement.ResourceProviders.ProviderBehaviourFlags m_BehaviourFlags
UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::dyn_m_BehaviourFlags() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::dyn_m_BehaviourFlags");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_BehaviourFlags"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.get_ProviderId
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::get_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::get_ProviderId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ProviderId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.get_BehaviourFlags
UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::UnityEngine_ResourceManagement_ResourceProviders_IResourceProvider_get_BehaviourFlags() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.get_BehaviourFlags");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider.get_BehaviourFlags", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceProviders::ProviderBehaviourFlags, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.Initialize
bool UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Initialize(::Il2CppString* id, ::Il2CppString* data) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Initialize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Initialize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(id), ::il2cpp_utils::ExtractType(data)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, id, data);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.CanProvide
bool UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::CanProvide(System::Type* t, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::CanProvide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CanProvide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(t), ::il2cpp_utils::ExtractType(location)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, t, location);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.Release
void UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Release(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, ::Il2CppObject* obj) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Release");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Release", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(obj)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, location, obj);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.GetDefaultType
System::Type* UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::GetDefaultType(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::GetDefaultType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDefaultType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method, location);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.Provide
void UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.InitializeAsync
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<bool> UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::InitializeAsync(UnityEngine::ResourceManagement::ResourceManager* rm, ::Il2CppString* id, ::Il2CppString* data) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::InitializeAsync");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InitializeAsync", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rm), ::il2cpp_utils::ExtractType(id), ::il2cpp_utils::ExtractType(data)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<bool>, false>(___instance_arg, ___internal__method, rm, id, data);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase.ToString
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::ToString() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::ToString");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ToString", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.BaseInitAsyncOp
#include "UnityEngine/ResourceManagement/ResourceProviders/ResourceProviderBase_BaseInitAsyncOp.hpp"
// Including type: System.Func`1
#include "System/Func_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Func`1<System.Boolean> m_CallBack
System::Func_1<bool>*& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::dyn_m_CallBack() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::dyn_m_CallBack");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CallBack"))->offset;
return *reinterpret_cast<System::Func_1<bool>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.BaseInitAsyncOp.Init
void UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::Init(System::Func_1<bool>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::Init");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, callback);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.BaseInitAsyncOp.InvokeWaitForCompletion
bool UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::InvokeWaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::InvokeWaitForCompletion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InvokeWaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.BaseInitAsyncOp.Execute
void UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::Execute() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::BaseInitAsyncOp::Execute");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Execute", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.<>c__DisplayClass10_0
#include "UnityEngine/ResourceManagement/ResourceProviders/ResourceProviderBase_--c__DisplayClass10_0.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase <>4__this
UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase*& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_$$4__this() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_$$4__this");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<>4__this"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String id
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_id() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_id");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "id"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String data
::Il2CppString*& UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_data() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::dyn_data");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "data"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ResourceProviderBase/UnityEngine.ResourceManagement.ResourceProviders.<>c__DisplayClass10_0.<InitializeAsync>b__0
bool UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::$InitializeAsync$b__0() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ResourceProviderBase::$$c__DisplayClass10_0::<InitializeAsync>b__0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<InitializeAsync>b__0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProviderLoadRequestOptions
#include "UnityEngine/ResourceManagement/ResourceProviders/ProviderLoadRequestOptions.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_IgnoreFailures
bool& UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::dyn_m_IgnoreFailures() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::dyn_m_IgnoreFailures");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IgnoreFailures"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProviderLoadRequestOptions.get_IgnoreFailures
bool UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::get_IgnoreFailures() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::get_IgnoreFailures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IgnoreFailures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.ProviderLoadRequestOptions.set_IgnoreFailures
void UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::set_IgnoreFailures(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::ProviderLoadRequestOptions::set_IgnoreFailures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_IgnoreFailures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneProvider_SceneOp.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneProvider_UnloadSceneOp.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.SceneManagement.LoadSceneMode
#include "UnityEngine/SceneManagement/LoadSceneMode.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider.ProvideScene
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::ProvideScene(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::SceneManagement::LoadSceneMode loadMode, bool activateOnLoad, int priority) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::ProvideScene");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ProvideScene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(loadMode), ::il2cpp_utils::ExtractType(activateOnLoad), ::il2cpp_utils::ExtractType(priority)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>, false>(___instance_arg, ___internal__method, resourceManager, location, loadMode, activateOnLoad, priority);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider.ReleaseScene
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::ReleaseScene(UnityEngine::ResourceManagement::ResourceManager* resourceManager, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> sceneLoadHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::ReleaseScene");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReleaseScene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resourceManager), ::il2cpp_utils::ExtractType(sceneLoadHandle)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>, false>(___instance_arg, ___internal__method, resourceManager, sceneLoadHandle);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneProvider_SceneOp.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
// Including type: System.Collections.Generic.HashSet`1
#include "System/Collections/Generic/HashSet_1.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_ActivateOnLoad
bool& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_ActivateOnLoad() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_ActivateOnLoad");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ActivateOnLoad"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.SceneInstance m_Inst
UnityEngine::ResourceManagement::ResourceProviders::SceneInstance& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Inst() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Inst");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Inst"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation m_Location
UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Location() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Location");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Location"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.SceneManagement.LoadSceneMode m_LoadMode
UnityEngine::SceneManagement::LoadSceneMode& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_LoadMode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_LoadMode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_LoadMode"))->offset;
return *reinterpret_cast<UnityEngine::SceneManagement::LoadSceneMode*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Priority
int& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Priority() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_Priority");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Priority"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>> m_DepOp
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*>& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_DepOp() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_DepOp");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_DepOp"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*>*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceManager m_ResourceManager
UnityEngine::ResourceManagement::ResourceManager*& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_ResourceManager() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::dyn_m_ResourceManager");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ResourceManager"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceManager**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.Init
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Init(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::SceneManagement::LoadSceneMode loadMode, bool activateOnLoad, int priority, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*> depOp) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Init");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(loadMode), ::il2cpp_utils::ExtractType(activateOnLoad), ::il2cpp_utils::ExtractType(priority), ::il2cpp_utils::ExtractType(depOp)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, location, loadMode, activateOnLoad, priority, depOp);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.InternalLoadScene
UnityEngine::ResourceManagement::ResourceProviders::SceneInstance UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InternalLoadScene(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, bool loadingFromBundle, UnityEngine::SceneManagement::LoadSceneMode loadMode, bool activateOnLoad, int priority) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InternalLoadScene");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InternalLoadScene", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(loadingFromBundle), ::il2cpp_utils::ExtractType(loadMode), ::il2cpp_utils::ExtractType(activateOnLoad), ::il2cpp_utils::ExtractType(priority)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance, false>(___instance_arg, ___internal__method, location, loadingFromBundle, loadMode, activateOnLoad, priority);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.InternalLoad
UnityEngine::AsyncOperation* UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InternalLoad(::Il2CppString* path, bool loadingFromBundle, UnityEngine::SceneManagement::LoadSceneMode mode) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InternalLoad");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InternalLoad", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(path), ::il2cpp_utils::ExtractType(loadingFromBundle), ::il2cpp_utils::ExtractType(mode)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::AsyncOperation*, false>(___instance_arg, ___internal__method, path, loadingFromBundle, mode);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.UnityEngine.ResourceManagement.IUpdateReceiver.Update
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::UnityEngine_ResourceManagement_IUpdateReceiver_Update(float unscaledDeltaTime) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::UnityEngine.ResourceManagement.IUpdateReceiver.Update");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnityEngine.ResourceManagement.IUpdateReceiver.Update", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unscaledDeltaTime)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, unscaledDeltaTime);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.get_DebugName
::Il2CppString* UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::get_DebugName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::get_DebugName");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DebugName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.get_Progress
float UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::get_Progress() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::get_Progress");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Progress", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.GetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::GetDownloadStatus(System::Collections::Generic::HashSet_1<::Il2CppObject*>* visited) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::GetDownloadStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(visited)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(___instance_arg, ___internal__method, visited);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.InvokeWaitForCompletion
bool UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InvokeWaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::InvokeWaitForCompletion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InvokeWaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.GetDependencies
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::GetDependencies(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* deps) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::GetDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(deps)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, deps);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.Execute
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Execute() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Execute");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Execute", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.SceneOp.Destroy
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Destroy() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::SceneOp::Destroy");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Destroy", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp
#include "UnityEngine/ResourceManagement/ResourceProviders/SceneProvider_UnloadSceneOp.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.SceneInstance m_Instance
UnityEngine::ResourceManagement::ResourceProviders::SceneInstance& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::dyn_m_Instance() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::dyn_m_Instance");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Instance"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.ResourceManagement.ResourceProviders.SceneInstance> m_sceneLoadHandle
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>& UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::dyn_m_sceneLoadHandle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::dyn_m_sceneLoadHandle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_sceneLoadHandle"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance>*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.Init
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::Init(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<UnityEngine::ResourceManagement::ResourceProviders::SceneInstance> sceneLoadHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::Init");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(sceneLoadHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, sceneLoadHandle);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.UnloadSceneCompleted
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::UnloadSceneCompleted(UnityEngine::AsyncOperation* obj) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::UnloadSceneCompleted");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnloadSceneCompleted", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(obj)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, obj);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.UnloadSceneCompletedNoRelease
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::UnloadSceneCompletedNoRelease(UnityEngine::AsyncOperation* obj) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::UnloadSceneCompletedNoRelease");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnloadSceneCompletedNoRelease", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(obj)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, obj);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.get_Progress
float UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::get_Progress() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::get_Progress");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Progress", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.Execute
void UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::Execute() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::Execute");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Execute", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider/UnityEngine.ResourceManagement.ResourceProviders.UnloadSceneOp.InvokeWaitForCompletion
bool UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::InvokeWaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::SceneProvider::UnloadSceneOp::InvokeWaitForCompletion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InvokeWaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/TextDataProvider.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/TextDataProvider_InternalOp.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle
#include "UnityEngine/ResourceManagement/ResourceProviders/ProvideHandle.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Boolean <IgnoreFailures>k__BackingField
bool& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::dyn_$IgnoreFailures$k__BackingField() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::dyn_$IgnoreFailures$k__BackingField");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<IgnoreFailures>k__BackingField"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider.get_IgnoreFailures
bool UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::get_IgnoreFailures() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::get_IgnoreFailures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IgnoreFailures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider.set_IgnoreFailures
void UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::set_IgnoreFailures(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::set_IgnoreFailures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_IgnoreFailures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider.Convert
::Il2CppObject* UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::Convert(System::Type* type, ::Il2CppString* text) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::Convert");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Convert", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(type), ::il2cpp_utils::ExtractType(text)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method, type, text);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider.Provide
void UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::Provide(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::Provide");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Provide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp
#include "UnityEngine/ResourceManagement/ResourceProviders/TextDataProvider_InternalOp.hpp"
// Including type: UnityEngine.Networking.UnityWebRequestAsyncOperation
#include "UnityEngine/Networking/UnityWebRequestAsyncOperation.hpp"
// Including type: UnityEngine.ResourceManagement.WebRequestQueueOperation
#include "UnityEngine/ResourceManagement/WebRequestQueueOperation.hpp"
// Including type: UnityEngine.AsyncOperation
#include "UnityEngine/AsyncOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider m_Provider
UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider*& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_Provider() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_Provider");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Provider"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Networking.UnityWebRequestAsyncOperation m_RequestOperation
UnityEngine::Networking::UnityWebRequestAsyncOperation*& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_RequestOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_RequestOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RequestOperation"))->offset;
return *reinterpret_cast<UnityEngine::Networking::UnityWebRequestAsyncOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.WebRequestQueueOperation m_RequestQueueOperation
UnityEngine::ResourceManagement::WebRequestQueueOperation*& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_RequestQueueOperation() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_RequestQueueOperation");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RequestQueueOperation"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::WebRequestQueueOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle m_PI
UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_PI() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_PI");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_PI"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_IgnoreFailures
bool& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_IgnoreFailures() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_IgnoreFailures");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IgnoreFailures"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_Complete
bool& UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_Complete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::dyn_m_Complete");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Complete"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.GetPercentComplete
float UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::GetPercentComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::GetPercentComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetPercentComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.Start
void UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::Start(UnityEngine::ResourceManagement::ResourceProviders::ProvideHandle provideHandle, UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider* rawProvider, bool ignoreFailures) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::Start");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(provideHandle), ::il2cpp_utils::ExtractType(rawProvider), ::il2cpp_utils::ExtractType(ignoreFailures)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, provideHandle, rawProvider, ignoreFailures);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.WaitForCompletionHandler
bool UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::WaitForCompletionHandler() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::WaitForCompletionHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "WaitForCompletionHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.RequestOperation_completed
void UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::RequestOperation_completed(UnityEngine::AsyncOperation* op) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::RequestOperation_completed");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "RequestOperation_completed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(op)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, op);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.ConvertText
::Il2CppObject* UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::ConvertText(::Il2CppString* text) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::ConvertText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ConvertText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(text)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method, text);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceProviders.TextDataProvider/UnityEngine.ResourceManagement.ResourceProviders.InternalOp.<Start>b__7_0
void UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::$Start$b__7_0(UnityEngine::Networking::UnityWebRequestAsyncOperation* asyncOperation) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceProviders::TextDataProvider::InternalOp::<Start>b__7_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<Start>b__7_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(asyncOperation)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, asyncOperation);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.ResourceLocations.ILocationSizeData
#include "UnityEngine/ResourceManagement/ResourceLocations/ILocationSizeData.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ILocationSizeData.ComputeSize
int64_t UnityEngine::ResourceManagement::ResourceLocations::ILocationSizeData::ComputeSize(UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::ResourceManagement::ResourceManager* resourceManager) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ILocationSizeData::ComputeSize");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ComputeSize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(resourceManager)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int64_t, false>(___instance_arg, ___internal__method, location, resourceManager);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: System.Type
#include "System/Type.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_InternalId
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_InternalId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_InternalId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_InternalId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_ProviderId
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_ProviderId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ProviderId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_Dependencies
System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_Dependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_Dependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Dependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_DependencyHashCode
int UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_DependencyHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_DependencyHashCode");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DependencyHashCode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_HasDependencies
bool UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_HasDependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_HasDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_HasDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_Data
::Il2CppObject* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_Data() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_Data");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Data", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_PrimaryKey
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_PrimaryKey() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_PrimaryKey");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_PrimaryKey", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.get_ResourceType
System::Type* UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_ResourceType() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::get_ResourceType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ResourceType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation.Hash
int UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::Hash(System::Type* resultType) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation::Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resultType)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method, resultType);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase
#include "UnityEngine/ResourceManagement/ResourceLocations/ResourceLocationBase.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.String m_Name
::Il2CppString*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Name() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Name");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Name"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_Id
::Il2CppString*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Id() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Id");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Id"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_ProviderId
::Il2CppString*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_ProviderId");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ProviderId"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Object m_Data
::Il2CppObject*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Data() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Data");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Data"))->offset;
return *reinterpret_cast<::Il2CppObject**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_DependencyHashCode
int& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_DependencyHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_DependencyHashCode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_DependencyHashCode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_HashCode
int& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_HashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_HashCode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_HashCode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Type m_Type
System::Type*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Type() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Type");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Type"))->offset;
return *reinterpret_cast<System::Type**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation> m_Dependencies
System::Collections::Generic::List_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Dependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_Dependencies");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Dependencies"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_PrimaryKey
::Il2CppString*& UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_PrimaryKey() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::dyn_m_PrimaryKey");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_PrimaryKey"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_InternalId
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_InternalId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_InternalId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_InternalId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_ProviderId
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_ProviderId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_ProviderId");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ProviderId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_Dependencies
System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_Dependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_Dependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Dependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_HasDependencies
bool UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_HasDependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_HasDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_HasDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_Data
::Il2CppObject* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_Data() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_Data");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Data", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.set_Data
void UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::set_Data(::Il2CppObject* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::set_Data");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_Data", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_PrimaryKey
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_PrimaryKey() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_PrimaryKey");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_PrimaryKey", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.set_PrimaryKey
void UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::set_PrimaryKey(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::set_PrimaryKey");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_PrimaryKey", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_DependencyHashCode
int UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_DependencyHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_DependencyHashCode");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DependencyHashCode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.get_ResourceType
System::Type* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_ResourceType() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::get_ResourceType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ResourceType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.Hash
int UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::Hash(System::Type* t) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(t)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method, t);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.ComputeDependencyHash
void UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::ComputeDependencyHash() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::ComputeDependencyHash");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ComputeDependencyHash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.ResourceLocations.ResourceLocationBase.ToString
::Il2CppString* UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::ToString() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::ResourceLocations::ResourceLocationBase::ToString");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ToString", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent
#include "UnityEngine/ResourceManagement/Diagnostics/DiagnosticEvent.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.String m_Graph
::Il2CppString*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Graph() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Graph");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Graph"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32[] m_Dependencies
::Array<int>*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Dependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Dependencies");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Dependencies"))->offset;
return *reinterpret_cast<::Array<int>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_ObjectId
int& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_ObjectId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_ObjectId");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ObjectId"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_DisplayName
::Il2CppString*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_DisplayName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_DisplayName");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_DisplayName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Stream
int& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Stream() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Stream");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Stream"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Frame
int& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Frame() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Frame");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Frame"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Value
int& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Value() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::dyn_m_Value");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Value"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_Graph
::Il2CppString* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Graph() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Graph");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Graph", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_ObjectId
int UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_ObjectId() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_ObjectId");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_ObjectId", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_DisplayName
::Il2CppString* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_DisplayName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_DisplayName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_DisplayName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_Dependencies
::Array<int>* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Dependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Dependencies");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Dependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Array<int>*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_Stream
int UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Stream() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Stream");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Stream", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_Frame
int UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Frame() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Frame");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Frame", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.get_Value
int UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Value() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::get_Value");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Value", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.Serialize
::Array<uint8_t>* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::Serialize() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::Serialize");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Serialize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Array<uint8_t>*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.Deserialize
UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::Deserialize(::Array<uint8_t>* data) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent::Deserialize");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEvent", "Deserialize", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(data)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, data);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton
#include "UnityEngine/ResourceManagement/Diagnostics/DiagnosticEventCollectorSingleton.hpp"
// Including type: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c
#include "UnityEngine/ResourceManagement/Diagnostics/DiagnosticEventCollectorSingleton_--c.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: DelegateList`1
#include "GlobalNamespace/DelegateList_1.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private System.Guid s_editorConnectionGuid
System::Guid UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::_get_s_editorConnectionGuid() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::_get_s_editorConnectionGuid");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<System::Guid>("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton", "s_editorConnectionGuid"));
}
// Autogenerated static field setter
// Set static field: static private System.Guid s_editorConnectionGuid
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::_set_s_editorConnectionGuid(System::Guid value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::_set_s_editorConnectionGuid");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton", "s_editorConnectionGuid", value));
}
// Autogenerated instance field getter
// Get instance field: System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent> m_CreatedEvents
System::Collections::Generic::Dictionary_2<int, UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_CreatedEvents() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_CreatedEvents");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CreatedEvents"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int, UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.Collections.Generic.List`1<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent> m_UnhandledEvents
System::Collections::Generic::List_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_UnhandledEvents() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_UnhandledEvents");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_UnhandledEvents"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: DelegateList`1<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent> s_EventHandlers
GlobalNamespace::DelegateList_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>*& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_s_EventHandlers() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_s_EventHandlers");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "s_EventHandlers"))->offset;
return *reinterpret_cast<GlobalNamespace::DelegateList_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_lastTickSent
float& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_lastTickSent() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_lastTickSent");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_lastTickSent"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_lastFrame
int& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_lastFrame() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_m_lastFrame");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_lastFrame"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single fpsAvg
float& UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_fpsAvg() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::dyn_fpsAvg");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fpsAvg"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.get_PlayerConnectionGuid
System::Guid UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::get_PlayerConnectionGuid() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::get_PlayerConnectionGuid");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton", "get_PlayerConnectionGuid", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<System::Guid, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.RegisterEventHandler
bool UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::RegisterEventHandler(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* handler, bool _register, bool create) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::RegisterEventHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton", "RegisterEventHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(handler), ::il2cpp_utils::ExtractType(_register), ::il2cpp_utils::ExtractType(create)})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, handler, _register, create);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.RegisterEventHandler
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::RegisterEventHandler(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* handler) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::RegisterEventHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "RegisterEventHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(handler)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, handler);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.UnregisterEventHandler
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::UnregisterEventHandler(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* handler) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::UnregisterEventHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnregisterEventHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(handler)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, handler);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.PostEvent
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::PostEvent(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent diagnosticEvent) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::PostEvent");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "PostEvent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(diagnosticEvent)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, diagnosticEvent);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.Update
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::Update() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::Update");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Update", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.GetGameObjectName
::Il2CppString* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::GetGameObjectName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::GetGameObjectName");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGameObjectName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton.Awake
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::Awake() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::Awake");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Awake", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c
#include "UnityEngine/ResourceManagement/Diagnostics/DiagnosticEventCollectorSingleton_--c.hpp"
// Including type: System.Func`2
#include "System/Func_2.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public readonly UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c <>9
UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c*>("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9")));
}
// Autogenerated static field setter
// Set static field: static public readonly UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c <>9
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9");
THROW_UNLESS((il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent,System.Int32> <>9__8_0
System::Func_2<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent, int>* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9__8_0() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9__8_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent, int>*>("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9__8_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent,System.Int32> <>9__8_0
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9__8_0(System::Func_2<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent, int>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9__8_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9__8_0", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Action`1<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent> <>9__11_0
System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9__11_0() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_get_$$9__11_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>*>("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9__11_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Action`1<UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent> <>9__11_0
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9__11_0(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_set_$$9__11_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", "<>9__11_0", value)));
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c..cctor
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollectorSingleton/<>c", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c.<RegisterEventHandler>b__8_0
int UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::$RegisterEventHandler$b__8_0(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent evt) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::<RegisterEventHandler>b__8_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<RegisterEventHandler>b__8_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(evt)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method, evt);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollectorSingleton/UnityEngine.ResourceManagement.Diagnostics.<>c.<Awake>b__11_0
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::$Awake$b__11_0(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent diagnosticEvent) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollectorSingleton::$$c::<Awake>b__11_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<Awake>b__11_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(diagnosticEvent)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, diagnosticEvent);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector
#include "UnityEngine/ResourceManagement/Diagnostics/DiagnosticEventCollector.hpp"
// Including type: System.Guid
#include "System/Guid.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector s_Collector
UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::_get_s_Collector() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::_get_s_Collector");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector*>("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollector", "s_Collector"));
}
// Autogenerated static field setter
// Set static field: static private UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector s_Collector
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::_set_s_Collector(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::_set_s_Collector");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollector", "s_Collector", value));
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector.get_PlayerConnectionGuid
System::Guid UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::get_PlayerConnectionGuid() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::get_PlayerConnectionGuid");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollector", "get_PlayerConnectionGuid", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<System::Guid, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector.FindOrCreateGlobalInstance
UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector* UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::FindOrCreateGlobalInstance() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::FindOrCreateGlobalInstance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollector", "FindOrCreateGlobalInstance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector.RegisterEventHandler
bool UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::RegisterEventHandler(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* handler, bool _register, bool create) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::RegisterEventHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("UnityEngine.ResourceManagement.Diagnostics", "DiagnosticEventCollector", "RegisterEventHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(handler), ::il2cpp_utils::ExtractType(_register), ::il2cpp_utils::ExtractType(create)})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, handler, _register, create);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector.UnregisterEventHandler
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::UnregisterEventHandler(System::Action_1<UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent>* handler) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::UnregisterEventHandler");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnregisterEventHandler", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(handler)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, handler);
}
// Autogenerated method: UnityEngine.ResourceManagement.Diagnostics.DiagnosticEventCollector.PostEvent
void UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::PostEvent(UnityEngine::ResourceManagement::Diagnostics::DiagnosticEvent diagnosticEvent) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::Diagnostics::DiagnosticEventCollector::PostEvent");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "PostEvent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(diagnosticEvent)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, diagnosticEvent);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.AsyncOperations.ICachable
#include "UnityEngine/ResourceManagement/AsyncOperations/ICachable.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.ICachable.get_Hash
int UnityEngine::ResourceManagement::AsyncOperations::ICachable::get_Hash() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::ICachable::get_Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.ICachable.set_Hash
void UnityEngine::ResourceManagement::AsyncOperations::ICachable::set_Hash(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::ICachable::set_Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation
#include "UnityEngine/ResourceManagement/AsyncOperations/IAsyncOperation.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationStatus.hpp"
// Including type: System.Exception
#include "System/Exception.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
// Including type: System.Threading.Tasks.Task`1
#include "System/Threading/Tasks/Task_1.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.DownloadStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/DownloadStatus.hpp"
// Including type: System.Collections.Generic.HashSet`1
#include "System/Collections/Generic/HashSet_1.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: DelegateList`1
#include "GlobalNamespace/DelegateList_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_ResultType
System::Type* UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_ResultType() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_ResultType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ResultType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_Version
int UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Version() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Version");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Version", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_DebugName
::Il2CppString* UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_DebugName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_DebugName");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DebugName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_ReferenceCount
int UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_ReferenceCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_ReferenceCount");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ReferenceCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_PercentComplete
float UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_PercentComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_PercentComplete");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_PercentComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_Status
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Status() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Status");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Status", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_OperationException
System::Exception* UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_OperationException() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_OperationException");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_OperationException", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Exception*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_IsDone
bool UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_IsDone() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_IsDone");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IsDone", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.set_OnDestroy
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::set_OnDestroy(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::set_OnDestroy");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_OnDestroy", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_IsRunning
bool UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_IsRunning() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_IsRunning");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IsRunning", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_Task
System::Threading::Tasks::Task_1<::Il2CppObject*>* UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Task() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Task");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Task", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Threading::Tasks::Task_1<::Il2CppObject*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.get_Handle
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Handle() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::get_Handle");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Handle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.add_CompletedTypeless
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::add_CompletedTypeless(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::add_CompletedTypeless");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "add_CompletedTypeless", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.remove_CompletedTypeless
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::remove_CompletedTypeless(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::remove_CompletedTypeless");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "remove_CompletedTypeless", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.add_Destroyed
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::add_Destroyed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::add_Destroyed");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "add_Destroyed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.remove_Destroyed
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::remove_Destroyed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::remove_Destroyed");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "remove_Destroyed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.GetResultAsObject
::Il2CppObject* UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetResultAsObject() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetResultAsObject");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetResultAsObject", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.DecrementReferenceCount
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::DecrementReferenceCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::DecrementReferenceCount");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DecrementReferenceCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.IncrementReferenceCount
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::IncrementReferenceCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::IncrementReferenceCount");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "IncrementReferenceCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.GetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetDownloadStatus(System::Collections::Generic::HashSet_1<::Il2CppObject*>* visited) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetDownloadStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(visited)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(___instance_arg, ___internal__method, visited);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.GetDependencies
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetDependencies(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* deps) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::GetDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(deps)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, deps);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::InvokeCompletionEvent() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::InvokeCompletionEvent");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InvokeCompletionEvent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.Start
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::Start(UnityEngine::ResourceManagement::ResourceManager* rm, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle dependency, GlobalNamespace::DelegateList_1<float>* updateCallbacks) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::Start");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rm), ::il2cpp_utils::ExtractType(dependency), ::il2cpp_utils::ExtractType(updateCallbacks)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, rm, dependency, updateCallbacks);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.WaitForCompletion
void UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::WaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation::WaitForCompletion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "WaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation
#include "UnityEngine/ResourceManagement/AsyncOperations/IAsyncOperation.hpp"
// Including type: System.Exception
#include "System/Exception.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationStatus.hpp"
// Including type: System.Threading.Tasks.Task`1
#include "System/Threading/Tasks/Task_1.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.DownloadStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/DownloadStatus.hpp"
// Including type: System.Collections.Generic.HashSet`1
#include "System/Collections/Generic/HashSet_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation m_InternalOp
UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation*& UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_InternalOp() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_InternalOp");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_InternalOp"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Version
int& UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_Version() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_Version");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Version"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String m_LocationName
::Il2CppString*& UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_LocationName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::dyn_m_LocationName");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_LocationName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_LocationName
::Il2CppString* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_LocationName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_LocationName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_LocationName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.set_LocationName
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::set_LocationName(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::set_LocationName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_LocationName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_DebugName
::Il2CppString* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_DebugName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_DebugName");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_DebugName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_InternalOp
UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_InternalOp() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_InternalOp");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_InternalOp", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::IAsyncOperation*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_IsDone
bool UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_IsDone() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_IsDone");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_IsDone", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_OperationException
System::Exception* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_OperationException() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_OperationException");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_OperationException", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<System::Exception*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_PercentComplete
float UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_PercentComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_PercentComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_PercentComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_ReferenceCount
int UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_ReferenceCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_ReferenceCount");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_ReferenceCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_Result
::Il2CppObject* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Result() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Result");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Result", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_Status
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Status() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Status");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Status", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.get_Task
System::Threading::Tasks::Task_1<::Il2CppObject*>* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Task() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::get_Task");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Task", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<System::Threading::Tasks::Task_1<::Il2CppObject*>*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.System.Collections.IEnumerator.get_Current
::Il2CppObject* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System_Collections_IEnumerator_get_Current() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System.Collections.IEnumerator.get_Current");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "System.Collections.IEnumerator.get_Current", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.add_Completed
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::add_Completed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::add_Completed");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "add_Completed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.remove_Completed
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::remove_Completed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::remove_Completed");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "remove_Completed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.add_Destroyed
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::add_Destroyed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::add_Destroyed");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "add_Destroyed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.remove_Destroyed
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::remove_Destroyed(System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::remove_Destroyed");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "remove_Destroyed", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.Acquire
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Acquire() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Acquire");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Acquire", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.Equals
bool UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Equals(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle other) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Equals");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Equals", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(other)})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method, other);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.GetDependencies
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetDependencies(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* deps) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetDependencies");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(deps)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, deps);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.IsValid
bool UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::IsValid() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::IsValid");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "IsValid", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.GetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetDownloadStatus() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetDownloadStatus");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.InternalGetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::InternalGetDownloadStatus(System::Collections::Generic::HashSet_1<::Il2CppObject*>* visited) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::InternalGetDownloadStatus");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "InternalGetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(visited)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(*this, ___internal__method, visited);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.Release
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Release() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::Release");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "Release", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.System.Collections.IEnumerator.MoveNext
bool UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System_Collections_IEnumerator_MoveNext() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System.Collections.IEnumerator.MoveNext");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "System.Collections.IEnumerator.MoveNext", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.System.Collections.IEnumerator.Reset
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System_Collections_IEnumerator_Reset() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::System.Collections.IEnumerator.Reset");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "System.Collections.IEnumerator.Reset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.WaitForCompletion
::Il2CppObject* UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::WaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::WaitForCompletion");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "WaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(*this, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle.GetHashCode
int UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle::GetHashCode");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetHashCode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<int, false>(*this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationStatus.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus None
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_None() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_None");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus>("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "None"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus None
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_None(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_None");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "None", value));
}
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus Succeeded
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_Succeeded() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_Succeeded");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus>("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "Succeeded"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus Succeeded
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_Succeeded(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_Succeeded");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "Succeeded", value));
}
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus Failed
UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_Failed() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_get_Failed");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus>("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "Failed"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationStatus Failed
void UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_Failed(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::_set_Failed");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "AsyncOperationStatus", "Failed", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationStatus::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.AsyncOperations.DownloadStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/DownloadStatus.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Int64 TotalBytes
int64_t& UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_TotalBytes() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_TotalBytes");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "TotalBytes"))->offset;
return *reinterpret_cast<int64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int64 DownloadedBytes
int64_t& UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_DownloadedBytes() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_DownloadedBytes");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "DownloadedBytes"))->offset;
return *reinterpret_cast<int64_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Boolean IsDone
bool& UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_IsDone() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::dyn_IsDone");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "IsDone"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.DownloadStatus.get_Percent
float UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::get_Percent() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus::get_Percent");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_Percent", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation
#include "UnityEngine/ResourceManagement/AsyncOperations/GroupOperation.hpp"
// Including type: System.Collections.Generic.HashSet`1
#include "System/Collections/Generic/HashSet_1.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: System.Action`1
#include "System/Action_1.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.DownloadStatus
#include "UnityEngine/ResourceManagement/AsyncOperations/DownloadStatus.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private System.Int32 k_MaxDisplayedLocationLength
int UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::_get_k_MaxDisplayedLocationLength() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::_get_k_MaxDisplayedLocationLength");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<int>("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation", "k_MaxDisplayedLocationLength"));
}
// Autogenerated static field setter
// Set static field: static private System.Int32 k_MaxDisplayedLocationLength
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::_set_k_MaxDisplayedLocationLength(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::_set_k_MaxDisplayedLocationLength");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation", "k_MaxDisplayedLocationLength", value));
}
// Autogenerated instance field getter
// Get instance field: private System.Action`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle> m_InternalOnComplete
System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_InternalOnComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_InternalOnComplete");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_InternalOnComplete"))->offset;
return *reinterpret_cast<System::Action_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_LoadedCount
int& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_LoadedCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_LoadedCount");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_LoadedCount"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings m_Settings
UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_Settings() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_Settings");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Settings"))->offset;
return *reinterpret_cast<UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.String debugName
::Il2CppString*& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_debugName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_debugName");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "debugName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 <UnityEngine.ResourceManagement.AsyncOperations.ICachable.Hash>k__BackingField
int& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_$UnityEngine_ResourceManagement_AsyncOperations_ICachable_Hash$k__BackingField() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_$UnityEngine_ResourceManagement_AsyncOperations_ICachable_Hash$k__BackingField");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<UnityEngine.ResourceManagement.AsyncOperations.ICachable.Hash>k__BackingField"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.HashSet`1<System.String> m_CachedDependencyLocations
System::Collections::Generic::HashSet_1<::Il2CppString*>*& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_CachedDependencyLocations() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::dyn_m_CachedDependencyLocations");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CachedDependencyLocations"))->offset;
return *reinterpret_cast<System::Collections::Generic::HashSet_1<::Il2CppString*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.UnityEngine.ResourceManagement.AsyncOperations.ICachable.get_Hash
int UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::UnityEngine_ResourceManagement_AsyncOperations_ICachable_get_Hash() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::UnityEngine.ResourceManagement.AsyncOperations.ICachable.get_Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnityEngine.ResourceManagement.AsyncOperations.ICachable.get_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.UnityEngine.ResourceManagement.AsyncOperations.ICachable.set_Hash
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::UnityEngine_ResourceManagement_AsyncOperations_ICachable_set_Hash(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::UnityEngine.ResourceManagement.AsyncOperations.ICachable.set_Hash");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UnityEngine.ResourceManagement.AsyncOperations.ICachable.set_Hash", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.GetDependentOps
System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDependentOps() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDependentOps");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDependentOps", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.DependenciesAreUnchanged
bool UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::DependenciesAreUnchanged(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* deps) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::DependenciesAreUnchanged");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DependenciesAreUnchanged", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(deps)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, deps);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.CompleteIfDependenciesComplete
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::CompleteIfDependenciesComplete() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::CompleteIfDependenciesComplete");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CompleteIfDependenciesComplete", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.Init
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Init(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* operations, bool releaseDependenciesOnFailure, bool allowFailedDependencies) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Init");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(operations), ::il2cpp_utils::ExtractType(releaseDependenciesOnFailure), ::il2cpp_utils::ExtractType(allowFailedDependencies)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, operations, releaseDependenciesOnFailure, allowFailedDependencies);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.Init
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Init(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* operations, UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings settings) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Init");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(operations), ::il2cpp_utils::ExtractType(settings)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, operations, settings);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.OnOperationCompleted
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::OnOperationCompleted(UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle op) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::OnOperationCompleted");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnOperationCompleted", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(op)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, op);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.get_DebugName
::Il2CppString* UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::get_DebugName() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::get_DebugName");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DebugName", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.get_Progress
float UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::get_Progress() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::get_Progress");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Progress", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.InvokeWaitForCompletion
bool UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::InvokeWaitForCompletion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::InvokeWaitForCompletion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InvokeWaitForCompletion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.GetDependencies
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDependencies(System::Collections::Generic::List_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>* deps) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(deps)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, deps);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.ReleaseDependencies
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::ReleaseDependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::ReleaseDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReleaseDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.GetDownloadStatus
UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDownloadStatus(System::Collections::Generic::HashSet_1<::Il2CppObject*>* visited) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GetDownloadStatus");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDownloadStatus", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(visited)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus, false>(___instance_arg, ___internal__method, visited);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.Execute
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Execute() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Execute");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Execute", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation.Destroy
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Destroy() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::Destroy");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Destroy", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings
#include "UnityEngine/ResourceManagement/AsyncOperations/GroupOperation.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings None
UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_None() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_None");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings>("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "None"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings None
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_None(UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_None");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "None", value));
}
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings ReleaseDependenciesOnFailure
UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_ReleaseDependenciesOnFailure() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_ReleaseDependenciesOnFailure");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings>("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "ReleaseDependenciesOnFailure"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings ReleaseDependenciesOnFailure
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_ReleaseDependenciesOnFailure(UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_ReleaseDependenciesOnFailure");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "ReleaseDependenciesOnFailure", value));
}
// Autogenerated static field getter
// Get static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings AllowFailedDependencies
UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_AllowFailedDependencies() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_get_AllowFailedDependencies");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings>("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "AllowFailedDependencies"));
}
// Autogenerated static field setter
// Set static field: static public UnityEngine.ResourceManagement.AsyncOperations.GroupOperation/UnityEngine.ResourceManagement.AsyncOperations.GroupOperationSettings AllowFailedDependencies
void UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_AllowFailedDependencies(UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings value) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::_set_AllowFailedDependencies");
THROW_UNLESS(il2cpp_utils::SetFieldValue("UnityEngine.ResourceManagement.AsyncOperations", "GroupOperation/GroupOperationSettings", "AllowFailedDependencies", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::GroupOperation::GroupOperationSettings::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation
#include "UnityEngine/ResourceManagement/AsyncOperations/IGenericProviderOperation.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation
#include "UnityEngine/ResourceManagement/ResourceLocations/IResourceLocation.hpp"
// Including type: System.Type
#include "System/Type.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceManager
#include "UnityEngine/ResourceManagement/ResourceManager.hpp"
// Including type: UnityEngine.ResourceManagement.ResourceProviders.IResourceProvider
#include "UnityEngine/ResourceManagement/ResourceProviders/IResourceProvider.hpp"
// Including type: UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1
#include "UnityEngine/ResourceManagement/AsyncOperations/AsyncOperationHandle_1.hpp"
// Including type: System.Collections.Generic.IList`1
#include "System/Collections/Generic/IList_1.hpp"
// Including type: System.Func`1
#include "System/Func_1.hpp"
// Including type: System.Exception
#include "System/Exception.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.get_ProvideHandleVersion
int UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_ProvideHandleVersion() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_ProvideHandleVersion");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ProvideHandleVersion", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.get_Location
UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_Location() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_Location");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_Location", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.get_DependencyCount
int UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_DependencyCount() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_DependencyCount");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_DependencyCount", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.get_RequestedType
System::Type* UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_RequestedType() {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::get_RequestedType");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_RequestedType", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Type*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.Init
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::Init(UnityEngine::ResourceManagement::ResourceManager* rm, UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider* provider, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*> depOp) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::Init");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rm), ::il2cpp_utils::ExtractType(provider), ::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(depOp)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, rm, provider, location, depOp);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.Init
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::Init(UnityEngine::ResourceManagement::ResourceManager* rm, UnityEngine::ResourceManagement::ResourceProviders::IResourceProvider* provider, UnityEngine::ResourceManagement::ResourceLocations::IResourceLocation* location, UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle_1<System::Collections::Generic::IList_1<UnityEngine::ResourceManagement::AsyncOperations::AsyncOperationHandle>*> depOp, bool releaseDependenciesOnFailure) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::Init");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Init", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rm), ::il2cpp_utils::ExtractType(provider), ::il2cpp_utils::ExtractType(location), ::il2cpp_utils::ExtractType(depOp), ::il2cpp_utils::ExtractType(releaseDependenciesOnFailure)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, rm, provider, location, depOp, releaseDependenciesOnFailure);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.GetDependencies
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::GetDependencies(System::Collections::Generic::IList_1<::Il2CppObject*>* dstList) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::GetDependencies");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetDependencies", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(dstList)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, dstList);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.SetProgressCallback
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetProgressCallback(System::Func_1<float>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetProgressCallback");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetProgressCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, callback);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.SetDownloadProgressCallback
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetDownloadProgressCallback(System::Func_1<UnityEngine::ResourceManagement::AsyncOperations::DownloadStatus>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetDownloadProgressCallback");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetDownloadProgressCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, callback);
}
// Autogenerated method: UnityEngine.ResourceManagement.AsyncOperations.IGenericProviderOperation.SetWaitForCompletionCallback
void UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetWaitForCompletionCallback(System::Func_1<bool>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("UnityEngine::ResourceManagement::AsyncOperations::IGenericProviderOperation::SetWaitForCompletionCallback");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetWaitForCompletionCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, callback);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.FastAction
#include "TMPro/FastAction.hpp"
// Including type: System.Collections.Generic.LinkedList`1
#include "System/Collections/Generic/LinkedList_1.hpp"
// Including type: System.Action
#include "System/Action.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: System.Collections.Generic.LinkedListNode`1
#include "System/Collections/Generic/LinkedListNode_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.LinkedList`1<System.Action> delegates
System::Collections::Generic::LinkedList_1<System::Action*>*& TMPro::FastAction::dyn_delegates() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FastAction::dyn_delegates");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "delegates"))->offset;
return *reinterpret_cast<System::Collections::Generic::LinkedList_1<System::Action*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.Action,System.Collections.Generic.LinkedListNode`1<System.Action>> lookup
System::Collections::Generic::Dictionary_2<System::Action*, System::Collections::Generic::LinkedListNode_1<System::Action*>*>*& TMPro::FastAction::dyn_lookup() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FastAction::dyn_lookup");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "lookup"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<System::Action*, System::Collections::Generic::LinkedListNode_1<System::Action*>*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.FastAction.Add
void TMPro::FastAction::Add(System::Action* rhs) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FastAction::Add");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Add", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rhs)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, rhs);
}
// Autogenerated method: TMPro.FastAction.Remove
void TMPro::FastAction::Remove(System::Action* rhs) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FastAction::Remove");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Remove", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rhs)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, rhs);
}
// Autogenerated method: TMPro.FastAction.Call
void TMPro::FastAction::Call() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FastAction::Call");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Call", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.MaterialReferenceManager
#include "TMPro/MaterialReferenceManager.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: UnityEngine.Material
#include "UnityEngine/Material.hpp"
// Including type: TMPro.TMP_FontAsset
#include "TMPro/TMP_FontAsset.hpp"
// Including type: TMPro.TMP_SpriteAsset
#include "TMPro/TMP_SpriteAsset.hpp"
// Including type: TMPro.TMP_ColorGradient
#include "TMPro/TMP_ColorGradient.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private TMPro.MaterialReferenceManager s_Instance
TMPro::MaterialReferenceManager* TMPro::MaterialReferenceManager::_get_s_Instance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::_get_s_Instance");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::MaterialReferenceManager*>("TMPro", "MaterialReferenceManager", "s_Instance"));
}
// Autogenerated static field setter
// Set static field: static private TMPro.MaterialReferenceManager s_Instance
void TMPro::MaterialReferenceManager::_set_s_Instance(TMPro::MaterialReferenceManager* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::_set_s_Instance");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "MaterialReferenceManager", "s_Instance", value));
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.Material> m_FontMaterialReferenceLookup
System::Collections::Generic::Dictionary_2<int, UnityEngine::Material*>*& TMPro::MaterialReferenceManager::dyn_m_FontMaterialReferenceLookup() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::dyn_m_FontMaterialReferenceLookup");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FontMaterialReferenceLookup"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int, UnityEngine::Material*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_FontAsset> m_FontAssetReferenceLookup
System::Collections::Generic::Dictionary_2<int, TMPro::TMP_FontAsset*>*& TMPro::MaterialReferenceManager::dyn_m_FontAssetReferenceLookup() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::dyn_m_FontAssetReferenceLookup");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FontAssetReferenceLookup"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int, TMPro::TMP_FontAsset*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_SpriteAsset> m_SpriteAssetReferenceLookup
System::Collections::Generic::Dictionary_2<int, TMPro::TMP_SpriteAsset*>*& TMPro::MaterialReferenceManager::dyn_m_SpriteAssetReferenceLookup() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::dyn_m_SpriteAssetReferenceLookup");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SpriteAssetReferenceLookup"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int, TMPro::TMP_SpriteAsset*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.Int32,TMPro.TMP_ColorGradient> m_ColorGradientReferenceLookup
System::Collections::Generic::Dictionary_2<int, TMPro::TMP_ColorGradient*>*& TMPro::MaterialReferenceManager::dyn_m_ColorGradientReferenceLookup() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::dyn_m_ColorGradientReferenceLookup");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ColorGradientReferenceLookup"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int, TMPro::TMP_ColorGradient*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.get_instance
TMPro::MaterialReferenceManager* TMPro::MaterialReferenceManager::get_instance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::get_instance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "get_instance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<TMPro::MaterialReferenceManager*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddFontAsset
void TMPro::MaterialReferenceManager::AddFontAsset(TMPro::TMP_FontAsset* fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "AddFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fontAsset)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, fontAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddFontAssetInternal
void TMPro::MaterialReferenceManager::AddFontAssetInternal(TMPro::TMP_FontAsset* fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddFontAssetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddFontAssetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fontAsset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, fontAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddSpriteAsset
void TMPro::MaterialReferenceManager::AddSpriteAsset(TMPro::TMP_SpriteAsset* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddSpriteAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "AddSpriteAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(spriteAsset)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddSpriteAssetInternal
void TMPro::MaterialReferenceManager::AddSpriteAssetInternal(TMPro::TMP_SpriteAsset* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddSpriteAssetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddSpriteAssetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(spriteAsset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddSpriteAsset
void TMPro::MaterialReferenceManager::AddSpriteAsset(int hashCode, TMPro::TMP_SpriteAsset* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddSpriteAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "AddSpriteAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(spriteAsset)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddSpriteAssetInternal
void TMPro::MaterialReferenceManager::AddSpriteAssetInternal(int hashCode, TMPro::TMP_SpriteAsset* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddSpriteAssetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddSpriteAssetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(spriteAsset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, hashCode, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddFontMaterial
void TMPro::MaterialReferenceManager::AddFontMaterial(int hashCode, UnityEngine::Material* material) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddFontMaterial");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "AddFontMaterial", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(material)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, material);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddFontMaterialInternal
void TMPro::MaterialReferenceManager::AddFontMaterialInternal(int hashCode, UnityEngine::Material* material) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddFontMaterialInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddFontMaterialInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(material)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, hashCode, material);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddColorGradientPreset
void TMPro::MaterialReferenceManager::AddColorGradientPreset(int hashCode, TMPro::TMP_ColorGradient* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddColorGradientPreset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "AddColorGradientPreset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(spriteAsset)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.AddColorGradientPreset_Internal
void TMPro::MaterialReferenceManager::AddColorGradientPreset_Internal(int hashCode, TMPro::TMP_ColorGradient* spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::AddColorGradientPreset_Internal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddColorGradientPreset_Internal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractType(spriteAsset)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, hashCode, spriteAsset);
}
// Autogenerated method: TMPro.MaterialReferenceManager.Contains
bool TMPro::MaterialReferenceManager::Contains(TMPro::TMP_FontAsset* font) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::Contains");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Contains", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(font)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, font);
}
// Autogenerated method: TMPro.MaterialReferenceManager.Contains
bool TMPro::MaterialReferenceManager::Contains(TMPro::TMP_SpriteAsset* sprite) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::Contains");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Contains", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(sprite)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, sprite);
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetFontAsset
bool TMPro::MaterialReferenceManager::TryGetFontAsset(int hashCode, ByRef<TMPro::TMP_FontAsset*> fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "TryGetFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_FontAsset*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, byref(fontAsset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetFontAssetInternal
bool TMPro::MaterialReferenceManager::TryGetFontAssetInternal(int hashCode, ByRef<TMPro::TMP_FontAsset*> fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetFontAssetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryGetFontAssetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_FontAsset*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, hashCode, byref(fontAsset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetSpriteAsset
bool TMPro::MaterialReferenceManager::TryGetSpriteAsset(int hashCode, ByRef<TMPro::TMP_SpriteAsset*> spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetSpriteAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "TryGetSpriteAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_SpriteAsset*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, byref(spriteAsset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetSpriteAssetInternal
bool TMPro::MaterialReferenceManager::TryGetSpriteAssetInternal(int hashCode, ByRef<TMPro::TMP_SpriteAsset*> spriteAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetSpriteAssetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryGetSpriteAssetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_SpriteAsset*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, hashCode, byref(spriteAsset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetColorGradientPreset
bool TMPro::MaterialReferenceManager::TryGetColorGradientPreset(int hashCode, ByRef<TMPro::TMP_ColorGradient*> gradientPreset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetColorGradientPreset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "TryGetColorGradientPreset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_ColorGradient*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, byref(gradientPreset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetColorGradientPresetInternal
bool TMPro::MaterialReferenceManager::TryGetColorGradientPresetInternal(int hashCode, ByRef<TMPro::TMP_ColorGradient*> gradientPreset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetColorGradientPresetInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryGetColorGradientPresetInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_ColorGradient*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, hashCode, byref(gradientPreset));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetMaterial
bool TMPro::MaterialReferenceManager::TryGetMaterial(int hashCode, ByRef<UnityEngine::Material*> material) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetMaterial");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReferenceManager", "TryGetMaterial", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<UnityEngine::Material*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, hashCode, byref(material));
}
// Autogenerated method: TMPro.MaterialReferenceManager.TryGetMaterialInternal
bool TMPro::MaterialReferenceManager::TryGetMaterialInternal(int hashCode, ByRef<UnityEngine::Material*> material) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReferenceManager::TryGetMaterialInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryGetMaterialInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(hashCode), ::il2cpp_utils::ExtractIndependentType<UnityEngine::Material*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, hashCode, byref(material));
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.MaterialReference
#include "TMPro/MaterialReference.hpp"
// Including type: TMPro.TMP_FontAsset
#include "TMPro/TMP_FontAsset.hpp"
// Including type: TMPro.TMP_SpriteAsset
#include "TMPro/TMP_SpriteAsset.hpp"
// Including type: UnityEngine.Material
#include "UnityEngine/Material.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Int32 index
int& TMPro::MaterialReference::dyn_index() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_index");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "index"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public TMPro.TMP_FontAsset fontAsset
TMPro::TMP_FontAsset*& TMPro::MaterialReference::dyn_fontAsset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_fontAsset");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fontAsset"))->offset;
return *reinterpret_cast<TMPro::TMP_FontAsset**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public TMPro.TMP_SpriteAsset spriteAsset
TMPro::TMP_SpriteAsset*& TMPro::MaterialReference::dyn_spriteAsset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_spriteAsset");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "spriteAsset"))->offset;
return *reinterpret_cast<TMPro::TMP_SpriteAsset**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Material material
UnityEngine::Material*& TMPro::MaterialReference::dyn_material() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_material");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "material"))->offset;
return *reinterpret_cast<UnityEngine::Material**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Boolean isDefaultMaterial
bool& TMPro::MaterialReference::dyn_isDefaultMaterial() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_isDefaultMaterial");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "isDefaultMaterial"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Boolean isFallbackMaterial
bool& TMPro::MaterialReference::dyn_isFallbackMaterial() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_isFallbackMaterial");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "isFallbackMaterial"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Material fallbackMaterial
UnityEngine::Material*& TMPro::MaterialReference::dyn_fallbackMaterial() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_fallbackMaterial");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fallbackMaterial"))->offset;
return *reinterpret_cast<UnityEngine::Material**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single padding
float& TMPro::MaterialReference::dyn_padding() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_padding");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "padding"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 referenceCount
int& TMPro::MaterialReference::dyn_referenceCount() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::dyn_referenceCount");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "referenceCount"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.MaterialReference.Contains
bool TMPro::MaterialReference::Contains(::Array<TMPro::MaterialReference>* materialReferences, TMPro::TMP_FontAsset* fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::Contains");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReference", "Contains", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(materialReferences), ::il2cpp_utils::ExtractType(fontAsset)})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, materialReferences, fontAsset);
}
// Autogenerated method: TMPro.MaterialReference.AddMaterialReference
int TMPro::MaterialReference::AddMaterialReference(UnityEngine::Material* material, TMPro::TMP_FontAsset* fontAsset, ::Array<TMPro::MaterialReference>* materialReferences, System::Collections::Generic::Dictionary_2<int, int>* materialReferenceIndexLookup) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::AddMaterialReference");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReference", "AddMaterialReference", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(material), ::il2cpp_utils::ExtractType(fontAsset), ::il2cpp_utils::ExtractType(materialReferences), ::il2cpp_utils::ExtractType(materialReferenceIndexLookup)})));
return ::il2cpp_utils::RunMethodThrow<int, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, material, fontAsset, materialReferences, materialReferenceIndexLookup);
}
// Autogenerated method: TMPro.MaterialReference.AddMaterialReference
int TMPro::MaterialReference::AddMaterialReference(UnityEngine::Material* material, TMPro::TMP_SpriteAsset* spriteAsset, ::Array<TMPro::MaterialReference>* materialReferences, System::Collections::Generic::Dictionary_2<int, int>* materialReferenceIndexLookup) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::MaterialReference::AddMaterialReference");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "MaterialReference", "AddMaterialReference", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(material), ::il2cpp_utils::ExtractType(spriteAsset), ::il2cpp_utils::ExtractType(materialReferences), ::il2cpp_utils::ExtractType(materialReferenceIndexLookup)})));
return ::il2cpp_utils::RunMethodThrow<int, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, material, spriteAsset, materialReferences, materialReferenceIndexLookup);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Asset
#include "TMPro/TMP_Asset.hpp"
// Including type: UnityEngine.Material
#include "UnityEngine/Material.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Int32 hashCode
int& TMPro::TMP_Asset::dyn_hashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Asset::dyn_hashCode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "hashCode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Material material
UnityEngine::Material*& TMPro::TMP_Asset::dyn_material() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Asset::dyn_material");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "material"))->offset;
return *reinterpret_cast<UnityEngine::Material**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 materialHashCode
int& TMPro::TMP_Asset::dyn_materialHashCode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Asset::dyn_materialHashCode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "materialHashCode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Character
#include "TMPro/TMP_Character.hpp"
// Including type: UnityEngine.TextCore.Glyph
#include "UnityEngine/TextCore/Glyph.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.ColorMode
#include "TMPro/ColorMode.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public TMPro.ColorMode Single
TMPro::ColorMode TMPro::ColorMode::_get_Single() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_get_Single");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorMode>("TMPro", "ColorMode", "Single"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorMode Single
void TMPro::ColorMode::_set_Single(TMPro::ColorMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_set_Single");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorMode", "Single", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.ColorMode HorizontalGradient
TMPro::ColorMode TMPro::ColorMode::_get_HorizontalGradient() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_get_HorizontalGradient");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorMode>("TMPro", "ColorMode", "HorizontalGradient"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorMode HorizontalGradient
void TMPro::ColorMode::_set_HorizontalGradient(TMPro::ColorMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_set_HorizontalGradient");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorMode", "HorizontalGradient", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.ColorMode VerticalGradient
TMPro::ColorMode TMPro::ColorMode::_get_VerticalGradient() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_get_VerticalGradient");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorMode>("TMPro", "ColorMode", "VerticalGradient"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorMode VerticalGradient
void TMPro::ColorMode::_set_VerticalGradient(TMPro::ColorMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_set_VerticalGradient");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorMode", "VerticalGradient", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.ColorMode FourCornersGradient
TMPro::ColorMode TMPro::ColorMode::_get_FourCornersGradient() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_get_FourCornersGradient");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorMode>("TMPro", "ColorMode", "FourCornersGradient"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorMode FourCornersGradient
void TMPro::ColorMode::_set_FourCornersGradient(TMPro::ColorMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::_set_FourCornersGradient");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorMode", "FourCornersGradient", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& TMPro::ColorMode::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorMode::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_ColorGradient
#include "TMPro/TMP_ColorGradient.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private TMPro.ColorMode k_DefaultColorMode
TMPro::ColorMode TMPro::TMP_ColorGradient::_get_k_DefaultColorMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::_get_k_DefaultColorMode");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorMode>("TMPro", "TMP_ColorGradient", "k_DefaultColorMode"));
}
// Autogenerated static field setter
// Set static field: static private TMPro.ColorMode k_DefaultColorMode
void TMPro::TMP_ColorGradient::_set_k_DefaultColorMode(TMPro::ColorMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::_set_k_DefaultColorMode");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_ColorGradient", "k_DefaultColorMode", value));
}
// Autogenerated static field getter
// Get static field: static private readonly UnityEngine.Color k_DefaultColor
UnityEngine::Color TMPro::TMP_ColorGradient::_get_k_DefaultColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::_get_k_DefaultColor");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::Color>("TMPro", "TMP_ColorGradient", "k_DefaultColor"));
}
// Autogenerated static field setter
// Set static field: static private readonly UnityEngine.Color k_DefaultColor
void TMPro::TMP_ColorGradient::_set_k_DefaultColor(UnityEngine::Color value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::_set_k_DefaultColor");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_ColorGradient", "k_DefaultColor", value));
}
// Autogenerated instance field getter
// Get instance field: public TMPro.ColorMode colorMode
TMPro::ColorMode& TMPro::TMP_ColorGradient::dyn_colorMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::dyn_colorMode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "colorMode"))->offset;
return *reinterpret_cast<TMPro::ColorMode*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Color topLeft
UnityEngine::Color& TMPro::TMP_ColorGradient::dyn_topLeft() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::dyn_topLeft");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "topLeft"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Color topRight
UnityEngine::Color& TMPro::TMP_ColorGradient::dyn_topRight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::dyn_topRight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "topRight"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Color bottomLeft
UnityEngine::Color& TMPro::TMP_ColorGradient::dyn_bottomLeft() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::dyn_bottomLeft");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "bottomLeft"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Color bottomRight
UnityEngine::Color& TMPro::TMP_ColorGradient::dyn_bottomRight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::dyn_bottomRight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "bottomRight"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_ColorGradient..cctor
void TMPro::TMP_ColorGradient::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_ColorGradient::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_ColorGradient", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.ITweenValue
#include "TMPro/ITweenValue.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: TMPro.ITweenValue.get_ignoreTimeScale
bool TMPro::ITweenValue::get_ignoreTimeScale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ITweenValue::get_ignoreTimeScale");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ignoreTimeScale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.ITweenValue.get_duration
float TMPro::ITweenValue::get_duration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ITweenValue::get_duration");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_duration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<float, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.ITweenValue.TweenValue
void TMPro::ITweenValue::TweenValue(float floatPercentage) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ITweenValue::TweenValue");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TweenValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(floatPercentage)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, floatPercentage);
}
// Autogenerated method: TMPro.ITweenValue.ValidTarget
bool TMPro::ITweenValue::ValidTarget() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ITweenValue::ValidTarget");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ValidTarget", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.ColorTween
#include "TMPro/ColorTween.hpp"
// Including type: TMPro.ColorTween/TMPro.ColorTweenCallback
#include "TMPro/ColorTween_ColorTweenCallback.hpp"
// Including type: UnityEngine.Events.UnityAction`1
#include "UnityEngine/Events/UnityAction_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private TMPro.ColorTween/TMPro.ColorTweenCallback m_Target
TMPro::ColorTween::ColorTweenCallback*& TMPro::ColorTween::dyn_m_Target() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_Target");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Target"))->offset;
return *reinterpret_cast<TMPro::ColorTween::ColorTweenCallback**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Color m_StartColor
UnityEngine::Color& TMPro::ColorTween::dyn_m_StartColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_StartColor");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_StartColor"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Color m_TargetColor
UnityEngine::Color& TMPro::ColorTween::dyn_m_TargetColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_TargetColor");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_TargetColor"))->offset;
return *reinterpret_cast<UnityEngine::Color*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.ColorTween/TMPro.ColorTweenMode m_TweenMode
TMPro::ColorTween::ColorTweenMode& TMPro::ColorTween::dyn_m_TweenMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_TweenMode");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_TweenMode"))->offset;
return *reinterpret_cast<TMPro::ColorTween::ColorTweenMode*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_Duration
float& TMPro::ColorTween::dyn_m_Duration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_Duration");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Duration"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_IgnoreTimeScale
bool& TMPro::ColorTween::dyn_m_IgnoreTimeScale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::dyn_m_IgnoreTimeScale");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IgnoreTimeScale"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.ColorTween.get_startColor
UnityEngine::Color TMPro::ColorTween::get_startColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::get_startColor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_startColor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Color, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.set_startColor
void TMPro::ColorTween::set_startColor(UnityEngine::Color value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::set_startColor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_startColor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.ColorTween.get_targetColor
UnityEngine::Color TMPro::ColorTween::get_targetColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::get_targetColor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_targetColor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Color, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.set_targetColor
void TMPro::ColorTween::set_targetColor(UnityEngine::Color value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::set_targetColor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_targetColor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.ColorTween.get_tweenMode
TMPro::ColorTween::ColorTweenMode TMPro::ColorTween::get_tweenMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::get_tweenMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_tweenMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<TMPro::ColorTween::ColorTweenMode, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.set_tweenMode
void TMPro::ColorTween::set_tweenMode(TMPro::ColorTween::ColorTweenMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::set_tweenMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_tweenMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.ColorTween.get_duration
float TMPro::ColorTween::get_duration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::get_duration");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_duration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.set_duration
void TMPro::ColorTween::set_duration(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::set_duration");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_duration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.ColorTween.get_ignoreTimeScale
bool TMPro::ColorTween::get_ignoreTimeScale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::get_ignoreTimeScale");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_ignoreTimeScale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.set_ignoreTimeScale
void TMPro::ColorTween::set_ignoreTimeScale(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::set_ignoreTimeScale");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_ignoreTimeScale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.ColorTween.TweenValue
void TMPro::ColorTween::TweenValue(float floatPercentage) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::TweenValue");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "TweenValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(floatPercentage)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, floatPercentage);
}
// Autogenerated method: TMPro.ColorTween.AddOnChangedCallback
void TMPro::ColorTween::AddOnChangedCallback(UnityEngine::Events::UnityAction_1<UnityEngine::Color>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::AddOnChangedCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "AddOnChangedCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, callback);
}
// Autogenerated method: TMPro.ColorTween.GetIgnoreTimescale
bool TMPro::ColorTween::GetIgnoreTimescale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::GetIgnoreTimescale");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetIgnoreTimescale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.GetDuration
float TMPro::ColorTween::GetDuration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::GetDuration");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetDuration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.ColorTween.ValidTarget
bool TMPro::ColorTween::ValidTarget() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ValidTarget");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "ValidTarget", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.ColorTween/TMPro.ColorTweenMode
#include "TMPro/ColorTween.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public TMPro.ColorTween/TMPro.ColorTweenMode All
TMPro::ColorTween::ColorTweenMode TMPro::ColorTween::ColorTweenMode::_get_All() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_get_All");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorTween::ColorTweenMode>("TMPro", "ColorTween/ColorTweenMode", "All"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorTween/TMPro.ColorTweenMode All
void TMPro::ColorTween::ColorTweenMode::_set_All(TMPro::ColorTween::ColorTweenMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_set_All");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorTween/ColorTweenMode", "All", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.ColorTween/TMPro.ColorTweenMode RGB
TMPro::ColorTween::ColorTweenMode TMPro::ColorTween::ColorTweenMode::_get_RGB() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_get_RGB");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorTween::ColorTweenMode>("TMPro", "ColorTween/ColorTweenMode", "RGB"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorTween/TMPro.ColorTweenMode RGB
void TMPro::ColorTween::ColorTweenMode::_set_RGB(TMPro::ColorTween::ColorTweenMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_set_RGB");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorTween/ColorTweenMode", "RGB", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.ColorTween/TMPro.ColorTweenMode Alpha
TMPro::ColorTween::ColorTweenMode TMPro::ColorTween::ColorTweenMode::_get_Alpha() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_get_Alpha");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::ColorTween::ColorTweenMode>("TMPro", "ColorTween/ColorTweenMode", "Alpha"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.ColorTween/TMPro.ColorTweenMode Alpha
void TMPro::ColorTween::ColorTweenMode::_set_Alpha(TMPro::ColorTween::ColorTweenMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::_set_Alpha");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "ColorTween/ColorTweenMode", "Alpha", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& TMPro::ColorTween::ColorTweenMode::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::ColorTween::ColorTweenMode::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.ColorTween/TMPro.ColorTweenCallback
#include "TMPro/ColorTween_ColorTweenCallback.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.FloatTween
#include "TMPro/FloatTween.hpp"
// Including type: TMPro.FloatTween/TMPro.FloatTweenCallback
#include "TMPro/FloatTween_FloatTweenCallback.hpp"
// Including type: UnityEngine.Events.UnityAction`1
#include "UnityEngine/Events/UnityAction_1.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private TMPro.FloatTween/TMPro.FloatTweenCallback m_Target
TMPro::FloatTween::FloatTweenCallback*& TMPro::FloatTween::dyn_m_Target() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::dyn_m_Target");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Target"))->offset;
return *reinterpret_cast<TMPro::FloatTween::FloatTweenCallback**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_StartValue
float& TMPro::FloatTween::dyn_m_StartValue() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::dyn_m_StartValue");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_StartValue"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_TargetValue
float& TMPro::FloatTween::dyn_m_TargetValue() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::dyn_m_TargetValue");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_TargetValue"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_Duration
float& TMPro::FloatTween::dyn_m_Duration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::dyn_m_Duration");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Duration"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_IgnoreTimeScale
bool& TMPro::FloatTween::dyn_m_IgnoreTimeScale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::dyn_m_IgnoreTimeScale");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IgnoreTimeScale"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.FloatTween.get_startValue
float TMPro::FloatTween::get_startValue() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::get_startValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_startValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.set_startValue
void TMPro::FloatTween::set_startValue(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::set_startValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_startValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.FloatTween.get_targetValue
float TMPro::FloatTween::get_targetValue() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::get_targetValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_targetValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.set_targetValue
void TMPro::FloatTween::set_targetValue(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::set_targetValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_targetValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.FloatTween.get_duration
float TMPro::FloatTween::get_duration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::get_duration");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_duration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.set_duration
void TMPro::FloatTween::set_duration(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::set_duration");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_duration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.FloatTween.get_ignoreTimeScale
bool TMPro::FloatTween::get_ignoreTimeScale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::get_ignoreTimeScale");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_ignoreTimeScale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.set_ignoreTimeScale
void TMPro::FloatTween::set_ignoreTimeScale(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::set_ignoreTimeScale");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_ignoreTimeScale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.FloatTween.TweenValue
void TMPro::FloatTween::TweenValue(float floatPercentage) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::TweenValue");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "TweenValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(floatPercentage)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, floatPercentage);
}
// Autogenerated method: TMPro.FloatTween.AddOnChangedCallback
void TMPro::FloatTween::AddOnChangedCallback(UnityEngine::Events::UnityAction_1<float>* callback) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::AddOnChangedCallback");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "AddOnChangedCallback", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(callback)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, callback);
}
// Autogenerated method: TMPro.FloatTween.GetIgnoreTimescale
bool TMPro::FloatTween::GetIgnoreTimescale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::GetIgnoreTimescale");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetIgnoreTimescale", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.GetDuration
float TMPro::FloatTween::GetDuration() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::GetDuration");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "GetDuration", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.FloatTween.ValidTarget
bool TMPro::FloatTween::ValidTarget() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FloatTween::ValidTarget");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "ValidTarget", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(*this, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.FloatTween/TMPro.FloatTweenCallback
#include "TMPro/FloatTween_FloatTweenCallback.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.TMP_DefaultControls
#include "TMPro/TMP_DefaultControls.hpp"
// Including type: TMPro.TMP_DefaultControls/TMPro.Resources
#include "TMPro/TMP_DefaultControls_Resources.hpp"
// Including type: UnityEngine.GameObject
#include "UnityEngine/GameObject.hpp"
// Including type: TMPro.TMP_Text
#include "TMPro/TMP_Text.hpp"
// Including type: UnityEngine.UI.Selectable
#include "UnityEngine/UI/Selectable.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private System.Single kWidth
float TMPro::TMP_DefaultControls::_get_kWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_kWidth");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<float>("TMPro", "TMP_DefaultControls", "kWidth"));
}
// Autogenerated static field setter
// Set static field: static private System.Single kWidth
void TMPro::TMP_DefaultControls::_set_kWidth(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_kWidth");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "kWidth", value));
}
// Autogenerated static field getter
// Get static field: static private System.Single kThickHeight
float TMPro::TMP_DefaultControls::_get_kThickHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_kThickHeight");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<float>("TMPro", "TMP_DefaultControls", "kThickHeight"));
}
// Autogenerated static field setter
// Set static field: static private System.Single kThickHeight
void TMPro::TMP_DefaultControls::_set_kThickHeight(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_kThickHeight");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "kThickHeight", value));
}
// Autogenerated static field getter
// Get static field: static private System.Single kThinHeight
float TMPro::TMP_DefaultControls::_get_kThinHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_kThinHeight");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<float>("TMPro", "TMP_DefaultControls", "kThinHeight"));
}
// Autogenerated static field setter
// Set static field: static private System.Single kThinHeight
void TMPro::TMP_DefaultControls::_set_kThinHeight(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_kThinHeight");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "kThinHeight", value));
}
// Autogenerated static field getter
// Get static field: static private UnityEngine.Vector2 s_ThickElementSize
UnityEngine::Vector2 TMPro::TMP_DefaultControls::_get_s_ThickElementSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_s_ThickElementSize");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::Vector2>("TMPro", "TMP_DefaultControls", "s_ThickElementSize"));
}
// Autogenerated static field setter
// Set static field: static private UnityEngine.Vector2 s_ThickElementSize
void TMPro::TMP_DefaultControls::_set_s_ThickElementSize(UnityEngine::Vector2 value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_s_ThickElementSize");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "s_ThickElementSize", value));
}
// Autogenerated static field getter
// Get static field: static private UnityEngine.Vector2 s_ThinElementSize
UnityEngine::Vector2 TMPro::TMP_DefaultControls::_get_s_ThinElementSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_s_ThinElementSize");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::Vector2>("TMPro", "TMP_DefaultControls", "s_ThinElementSize"));
}
// Autogenerated static field setter
// Set static field: static private UnityEngine.Vector2 s_ThinElementSize
void TMPro::TMP_DefaultControls::_set_s_ThinElementSize(UnityEngine::Vector2 value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_s_ThinElementSize");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "s_ThinElementSize", value));
}
// Autogenerated static field getter
// Get static field: static private UnityEngine.Color s_DefaultSelectableColor
UnityEngine::Color TMPro::TMP_DefaultControls::_get_s_DefaultSelectableColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_s_DefaultSelectableColor");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::Color>("TMPro", "TMP_DefaultControls", "s_DefaultSelectableColor"));
}
// Autogenerated static field setter
// Set static field: static private UnityEngine.Color s_DefaultSelectableColor
void TMPro::TMP_DefaultControls::_set_s_DefaultSelectableColor(UnityEngine::Color value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_s_DefaultSelectableColor");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "s_DefaultSelectableColor", value));
}
// Autogenerated static field getter
// Get static field: static private UnityEngine.Color s_TextColor
UnityEngine::Color TMPro::TMP_DefaultControls::_get_s_TextColor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_get_s_TextColor");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<UnityEngine::Color>("TMPro", "TMP_DefaultControls", "s_TextColor"));
}
// Autogenerated static field setter
// Set static field: static private UnityEngine.Color s_TextColor
void TMPro::TMP_DefaultControls::_set_s_TextColor(UnityEngine::Color value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::_set_s_TextColor");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_DefaultControls", "s_TextColor", value));
}
// Autogenerated method: TMPro.TMP_DefaultControls..cctor
void TMPro::TMP_DefaultControls::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateUIElementRoot
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateUIElementRoot(::Il2CppString* name, UnityEngine::Vector2 size) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateUIElementRoot");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateUIElementRoot", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(name), ::il2cpp_utils::ExtractType(size)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, name, size);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateUIObject
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateUIObject(::Il2CppString* name, UnityEngine::GameObject* parent) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateUIObject");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateUIObject", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(name), ::il2cpp_utils::ExtractType(parent)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, name, parent);
}
// Autogenerated method: TMPro.TMP_DefaultControls.SetDefaultTextValues
void TMPro::TMP_DefaultControls::SetDefaultTextValues(TMPro::TMP_Text* lbl) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::SetDefaultTextValues");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "SetDefaultTextValues", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(lbl)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, lbl);
}
// Autogenerated method: TMPro.TMP_DefaultControls.SetDefaultColorTransitionValues
void TMPro::TMP_DefaultControls::SetDefaultColorTransitionValues(UnityEngine::UI::Selectable* slider) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::SetDefaultColorTransitionValues");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "SetDefaultColorTransitionValues", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(slider)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, slider);
}
// Autogenerated method: TMPro.TMP_DefaultControls.SetParentAndAlign
void TMPro::TMP_DefaultControls::SetParentAndAlign(UnityEngine::GameObject* child, UnityEngine::GameObject* parent) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::SetParentAndAlign");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "SetParentAndAlign", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(child), ::il2cpp_utils::ExtractType(parent)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, child, parent);
}
// Autogenerated method: TMPro.TMP_DefaultControls.SetLayerRecursively
void TMPro::TMP_DefaultControls::SetLayerRecursively(UnityEngine::GameObject* go, int layer) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::SetLayerRecursively");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "SetLayerRecursively", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(go), ::il2cpp_utils::ExtractType(layer)})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, go, layer);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateScrollbar
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateScrollbar(TMPro::TMP_DefaultControls::Resources resources) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateScrollbar");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateScrollbar", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resources)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, resources);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateButton
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateButton(TMPro::TMP_DefaultControls::Resources resources) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateButton");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateButton", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resources)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, resources);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateText
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateText(TMPro::TMP_DefaultControls::Resources resources) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resources)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, resources);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateInputField
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateInputField(TMPro::TMP_DefaultControls::Resources resources) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateInputField");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateInputField", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resources)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, resources);
}
// Autogenerated method: TMPro.TMP_DefaultControls.CreateDropdown
UnityEngine::GameObject* TMPro::TMP_DefaultControls::CreateDropdown(TMPro::TMP_DefaultControls::Resources resources) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_DefaultControls::CreateDropdown");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_DefaultControls", "CreateDropdown", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(resources)})));
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, resources);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.TMP_Dropdown
#include "TMPro/TMP_Dropdown.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.DropdownItem
#include "TMPro/TMP_Dropdown_DropdownItem.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.OptionData
#include "TMPro/TMP_Dropdown_OptionData.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.OptionDataList
#include "TMPro/TMP_Dropdown_OptionDataList.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.DropdownEvent
#include "TMPro/TMP_Dropdown_DropdownEvent.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.<>c__DisplayClass60_0
#include "TMPro/TMP_Dropdown_--c__DisplayClass60_0.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72
#include "TMPro/TMP_Dropdown_-DelayedDestroyDropdownList-d__72.hpp"
// Including type: UnityEngine.RectTransform
#include "UnityEngine/RectTransform.hpp"
// Including type: TMPro.TMP_Text
#include "TMPro/TMP_Text.hpp"
// Including type: UnityEngine.UI.Image
#include "UnityEngine/UI/Image.hpp"
// Including type: UnityEngine.GameObject
#include "UnityEngine/GameObject.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.TweenRunner`1
#include "TMPro/TweenRunner_1.hpp"
// Including type: UnityEngine.Sprite
#include "UnityEngine/Sprite.hpp"
// Including type: UnityEngine.EventSystems.PointerEventData
#include "UnityEngine/EventSystems/PointerEventData.hpp"
// Including type: UnityEngine.EventSystems.BaseEventData
#include "UnityEngine/EventSystems/BaseEventData.hpp"
// Including type: UnityEngine.Canvas
#include "UnityEngine/Canvas.hpp"
// Including type: System.Collections.IEnumerator
#include "System/Collections/IEnumerator.hpp"
// Including type: UnityEngine.UI.Toggle
#include "UnityEngine/UI/Toggle.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private TMPro.TMP_Dropdown/TMPro.OptionData s_NoOptionData
TMPro::TMP_Dropdown::OptionData* TMPro::TMP_Dropdown::_get_s_NoOptionData() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::_get_s_NoOptionData");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::TMP_Dropdown::OptionData*>("TMPro", "TMP_Dropdown", "s_NoOptionData"));
}
// Autogenerated static field setter
// Set static field: static private TMPro.TMP_Dropdown/TMPro.OptionData s_NoOptionData
void TMPro::TMP_Dropdown::_set_s_NoOptionData(TMPro::TMP_Dropdown::OptionData* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::_set_s_NoOptionData");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_Dropdown", "s_NoOptionData", value));
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.RectTransform m_Template
UnityEngine::RectTransform*& TMPro::TMP_Dropdown::dyn_m_Template() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Template");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Template"))->offset;
return *reinterpret_cast<UnityEngine::RectTransform**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_Text m_CaptionText
TMPro::TMP_Text*& TMPro::TMP_Dropdown::dyn_m_CaptionText() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_CaptionText");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CaptionText"))->offset;
return *reinterpret_cast<TMPro::TMP_Text**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.UI.Image m_CaptionImage
UnityEngine::UI::Image*& TMPro::TMP_Dropdown::dyn_m_CaptionImage() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_CaptionImage");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CaptionImage"))->offset;
return *reinterpret_cast<UnityEngine::UI::Image**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_Text m_ItemText
TMPro::TMP_Text*& TMPro::TMP_Dropdown::dyn_m_ItemText() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_ItemText");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ItemText"))->offset;
return *reinterpret_cast<TMPro::TMP_Text**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.UI.Image m_ItemImage
UnityEngine::UI::Image*& TMPro::TMP_Dropdown::dyn_m_ItemImage() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_ItemImage");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_ItemImage"))->offset;
return *reinterpret_cast<UnityEngine::UI::Image**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_Value
int& TMPro::TMP_Dropdown::dyn_m_Value() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Value");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Value"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_Dropdown/TMPro.OptionDataList m_Options
TMPro::TMP_Dropdown::OptionDataList*& TMPro::TMP_Dropdown::dyn_m_Options() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Options");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Options"))->offset;
return *reinterpret_cast<TMPro::TMP_Dropdown::OptionDataList**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_Dropdown/TMPro.DropdownEvent m_OnValueChanged
TMPro::TMP_Dropdown::DropdownEvent*& TMPro::TMP_Dropdown::dyn_m_OnValueChanged() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_OnValueChanged");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_OnValueChanged"))->offset;
return *reinterpret_cast<TMPro::TMP_Dropdown::DropdownEvent**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.GameObject m_Dropdown
UnityEngine::GameObject*& TMPro::TMP_Dropdown::dyn_m_Dropdown() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Dropdown");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Dropdown"))->offset;
return *reinterpret_cast<UnityEngine::GameObject**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.GameObject m_Blocker
UnityEngine::GameObject*& TMPro::TMP_Dropdown::dyn_m_Blocker() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Blocker");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Blocker"))->offset;
return *reinterpret_cast<UnityEngine::GameObject**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<TMPro.TMP_Dropdown/TMPro.DropdownItem> m_Items
System::Collections::Generic::List_1<TMPro::TMP_Dropdown::DropdownItem*>*& TMPro::TMP_Dropdown::dyn_m_Items() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_Items");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Items"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_Dropdown::DropdownItem*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TweenRunner`1<TMPro.FloatTween> m_AlphaTweenRunner
TMPro::TweenRunner_1<TMPro::FloatTween>*& TMPro::TMP_Dropdown::dyn_m_AlphaTweenRunner() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_m_AlphaTweenRunner");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AlphaTweenRunner"))->offset;
return *reinterpret_cast<TMPro::TweenRunner_1<TMPro::FloatTween>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean validTemplate
bool& TMPro::TMP_Dropdown::dyn_validTemplate() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::dyn_validTemplate");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "validTemplate"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_template
UnityEngine::RectTransform* TMPro::TMP_Dropdown::get_template() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_template");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_template", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::RectTransform*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_template
void TMPro::TMP_Dropdown::set_template(UnityEngine::RectTransform* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_template");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_template", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_captionText
TMPro::TMP_Text* TMPro::TMP_Dropdown::get_captionText() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_captionText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_captionText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Text*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_captionText
void TMPro::TMP_Dropdown::set_captionText(TMPro::TMP_Text* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_captionText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_captionText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_captionImage
UnityEngine::UI::Image* TMPro::TMP_Dropdown::get_captionImage() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_captionImage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_captionImage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::UI::Image*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_captionImage
void TMPro::TMP_Dropdown::set_captionImage(UnityEngine::UI::Image* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_captionImage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_captionImage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_itemText
TMPro::TMP_Text* TMPro::TMP_Dropdown::get_itemText() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_itemText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_itemText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Text*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_itemText
void TMPro::TMP_Dropdown::set_itemText(TMPro::TMP_Text* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_itemText");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_itemText", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_itemImage
UnityEngine::UI::Image* TMPro::TMP_Dropdown::get_itemImage() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_itemImage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_itemImage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::UI::Image*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_itemImage
void TMPro::TMP_Dropdown::set_itemImage(UnityEngine::UI::Image* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_itemImage");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_itemImage", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_options
System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>* TMPro::TMP_Dropdown::get_options() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_options");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_options", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_options
void TMPro::TMP_Dropdown::set_options(System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_options");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_options", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_onValueChanged
TMPro::TMP_Dropdown::DropdownEvent* TMPro::TMP_Dropdown::get_onValueChanged() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_onValueChanged");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_onValueChanged", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Dropdown::DropdownEvent*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_onValueChanged
void TMPro::TMP_Dropdown::set_onValueChanged(TMPro::TMP_Dropdown::DropdownEvent* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_onValueChanged");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_onValueChanged", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_value
int TMPro::TMP_Dropdown::get_value() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_value");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_value", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.set_value
void TMPro::TMP_Dropdown::set_value(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::set_value");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_value", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown.get_IsExpanded
bool TMPro::TMP_Dropdown::get_IsExpanded() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::get_IsExpanded");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_IsExpanded", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.SetValueWithoutNotify
void TMPro::TMP_Dropdown::SetValueWithoutNotify(int input) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::SetValueWithoutNotify");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetValueWithoutNotify", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(input)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, input);
}
// Autogenerated method: TMPro.TMP_Dropdown.SetValue
void TMPro::TMP_Dropdown::SetValue(int value, bool sendCallback) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::SetValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value), ::il2cpp_utils::ExtractType(sendCallback)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value, sendCallback);
}
// Autogenerated method: TMPro.TMP_Dropdown.RefreshShownValue
void TMPro::TMP_Dropdown::RefreshShownValue() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::RefreshShownValue");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "RefreshShownValue", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.AddOptions
void TMPro::TMP_Dropdown::AddOptions(System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>* options) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AddOptions");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddOptions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(options)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, options);
}
// Autogenerated method: TMPro.TMP_Dropdown.AddOptions
void TMPro::TMP_Dropdown::AddOptions(System::Collections::Generic::List_1<::Il2CppString*>* options) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AddOptions");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddOptions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(options)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, options);
}
// Autogenerated method: TMPro.TMP_Dropdown.AddOptions
void TMPro::TMP_Dropdown::AddOptions(System::Collections::Generic::List_1<UnityEngine::Sprite*>* options) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AddOptions");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddOptions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(options)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, options);
}
// Autogenerated method: TMPro.TMP_Dropdown.ClearOptions
void TMPro::TMP_Dropdown::ClearOptions() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::ClearOptions");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearOptions", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.SetupTemplate
void TMPro::TMP_Dropdown::SetupTemplate() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::SetupTemplate");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetupTemplate", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.OnPointerClick
void TMPro::TMP_Dropdown::OnPointerClick(UnityEngine::EventSystems::PointerEventData* eventData) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OnPointerClick");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnPointerClick", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(eventData)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, eventData);
}
// Autogenerated method: TMPro.TMP_Dropdown.OnSubmit
void TMPro::TMP_Dropdown::OnSubmit(UnityEngine::EventSystems::BaseEventData* eventData) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OnSubmit");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnSubmit", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(eventData)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, eventData);
}
// Autogenerated method: TMPro.TMP_Dropdown.OnCancel
void TMPro::TMP_Dropdown::OnCancel(UnityEngine::EventSystems::BaseEventData* eventData) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OnCancel");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnCancel", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(eventData)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, eventData);
}
// Autogenerated method: TMPro.TMP_Dropdown.Show
void TMPro::TMP_Dropdown::Show() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::Show");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Show", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.CreateBlocker
UnityEngine::GameObject* TMPro::TMP_Dropdown::CreateBlocker(UnityEngine::Canvas* rootCanvas) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::CreateBlocker");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CreateBlocker", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(rootCanvas)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(___instance_arg, ___internal__method, rootCanvas);
}
// Autogenerated method: TMPro.TMP_Dropdown.DestroyBlocker
void TMPro::TMP_Dropdown::DestroyBlocker(UnityEngine::GameObject* blocker) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DestroyBlocker");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DestroyBlocker", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(blocker)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, blocker);
}
// Autogenerated method: TMPro.TMP_Dropdown.CreateDropdownList
UnityEngine::GameObject* TMPro::TMP_Dropdown::CreateDropdownList(UnityEngine::GameObject* _template) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::CreateDropdownList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CreateDropdownList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(_template)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::GameObject*, false>(___instance_arg, ___internal__method, _template);
}
// Autogenerated method: TMPro.TMP_Dropdown.DestroyDropdownList
void TMPro::TMP_Dropdown::DestroyDropdownList(UnityEngine::GameObject* dropdownList) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DestroyDropdownList");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DestroyDropdownList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(dropdownList)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, dropdownList);
}
// Autogenerated method: TMPro.TMP_Dropdown.CreateItem
TMPro::TMP_Dropdown::DropdownItem* TMPro::TMP_Dropdown::CreateItem(TMPro::TMP_Dropdown::DropdownItem* itemTemplate) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::CreateItem");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "CreateItem", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(itemTemplate)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Dropdown::DropdownItem*, false>(___instance_arg, ___internal__method, itemTemplate);
}
// Autogenerated method: TMPro.TMP_Dropdown.DestroyItem
void TMPro::TMP_Dropdown::DestroyItem(TMPro::TMP_Dropdown::DropdownItem* item) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DestroyItem");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DestroyItem", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(item)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, item);
}
// Autogenerated method: TMPro.TMP_Dropdown.AddItem
TMPro::TMP_Dropdown::DropdownItem* TMPro::TMP_Dropdown::AddItem(TMPro::TMP_Dropdown::OptionData* data, bool selected, TMPro::TMP_Dropdown::DropdownItem* itemTemplate, System::Collections::Generic::List_1<TMPro::TMP_Dropdown::DropdownItem*>* items) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AddItem");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddItem", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(data), ::il2cpp_utils::ExtractType(selected), ::il2cpp_utils::ExtractType(itemTemplate), ::il2cpp_utils::ExtractType(items)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Dropdown::DropdownItem*, false>(___instance_arg, ___internal__method, data, selected, itemTemplate, items);
}
// Autogenerated method: TMPro.TMP_Dropdown.AlphaFadeList
void TMPro::TMP_Dropdown::AlphaFadeList(float duration, float alpha) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AlphaFadeList");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AlphaFadeList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(duration), ::il2cpp_utils::ExtractType(alpha)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, duration, alpha);
}
// Autogenerated method: TMPro.TMP_Dropdown.AlphaFadeList
void TMPro::TMP_Dropdown::AlphaFadeList(float duration, float start, float end) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::AlphaFadeList");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AlphaFadeList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(duration), ::il2cpp_utils::ExtractType(start), ::il2cpp_utils::ExtractType(end)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, duration, start, end);
}
// Autogenerated method: TMPro.TMP_Dropdown.SetAlpha
void TMPro::TMP_Dropdown::SetAlpha(float alpha) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::SetAlpha");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SetAlpha", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(alpha)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, alpha);
}
// Autogenerated method: TMPro.TMP_Dropdown.Hide
void TMPro::TMP_Dropdown::Hide() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::Hide");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Hide", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.DelayedDestroyDropdownList
System::Collections::IEnumerator* TMPro::TMP_Dropdown::DelayedDestroyDropdownList(float delay) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DelayedDestroyDropdownList");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "DelayedDestroyDropdownList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(delay)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::IEnumerator*, false>(___instance_arg, ___internal__method, delay);
}
// Autogenerated method: TMPro.TMP_Dropdown.ImmediateDestroyDropdownList
void TMPro::TMP_Dropdown::ImmediateDestroyDropdownList() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::ImmediateDestroyDropdownList");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ImmediateDestroyDropdownList", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.OnSelectItem
void TMPro::TMP_Dropdown::OnSelectItem(UnityEngine::UI::Toggle* toggle) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OnSelectItem");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnSelectItem", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(toggle)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, toggle);
}
// Autogenerated method: TMPro.TMP_Dropdown..cctor
void TMPro::TMP_Dropdown::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_Dropdown", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.Awake
void TMPro::TMP_Dropdown::Awake() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::Awake");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Awake", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.Start
void TMPro::TMP_Dropdown::Start() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::Start");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Start", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown.OnDisable
void TMPro::TMP_Dropdown::OnDisable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OnDisable");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnDisable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Dropdown/TMPro.DropdownItem
#include "TMPro/TMP_Dropdown_DropdownItem.hpp"
// Including type: TMPro.TMP_Text
#include "TMPro/TMP_Text.hpp"
// Including type: UnityEngine.UI.Image
#include "UnityEngine/UI/Image.hpp"
// Including type: UnityEngine.RectTransform
#include "UnityEngine/RectTransform.hpp"
// Including type: UnityEngine.UI.Toggle
#include "UnityEngine/UI/Toggle.hpp"
// Including type: UnityEngine.EventSystems.PointerEventData
#include "UnityEngine/EventSystems/PointerEventData.hpp"
// Including type: UnityEngine.EventSystems.BaseEventData
#include "UnityEngine/EventSystems/BaseEventData.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_Text m_Text
TMPro::TMP_Text*& TMPro::TMP_Dropdown::DropdownItem::dyn_m_Text() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::dyn_m_Text");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Text"))->offset;
return *reinterpret_cast<TMPro::TMP_Text**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.UI.Image m_Image
UnityEngine::UI::Image*& TMPro::TMP_Dropdown::DropdownItem::dyn_m_Image() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::dyn_m_Image");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Image"))->offset;
return *reinterpret_cast<UnityEngine::UI::Image**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.RectTransform m_RectTransform
UnityEngine::RectTransform*& TMPro::TMP_Dropdown::DropdownItem::dyn_m_RectTransform() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::dyn_m_RectTransform");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_RectTransform"))->offset;
return *reinterpret_cast<UnityEngine::RectTransform**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.UI.Toggle m_Toggle
UnityEngine::UI::Toggle*& TMPro::TMP_Dropdown::DropdownItem::dyn_m_Toggle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::dyn_m_Toggle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Toggle"))->offset;
return *reinterpret_cast<UnityEngine::UI::Toggle**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.get_text
TMPro::TMP_Text* TMPro::TMP_Dropdown::DropdownItem::get_text() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::get_text");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_text", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Text*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.set_text
void TMPro::TMP_Dropdown::DropdownItem::set_text(TMPro::TMP_Text* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::set_text");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_text", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.get_image
UnityEngine::UI::Image* TMPro::TMP_Dropdown::DropdownItem::get_image() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::get_image");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_image", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::UI::Image*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.set_image
void TMPro::TMP_Dropdown::DropdownItem::set_image(UnityEngine::UI::Image* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::set_image");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_image", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.get_rectTransform
UnityEngine::RectTransform* TMPro::TMP_Dropdown::DropdownItem::get_rectTransform() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::get_rectTransform");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_rectTransform", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::RectTransform*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.set_rectTransform
void TMPro::TMP_Dropdown::DropdownItem::set_rectTransform(UnityEngine::RectTransform* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::set_rectTransform");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_rectTransform", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.get_toggle
UnityEngine::UI::Toggle* TMPro::TMP_Dropdown::DropdownItem::get_toggle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::get_toggle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_toggle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::UI::Toggle*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.set_toggle
void TMPro::TMP_Dropdown::DropdownItem::set_toggle(UnityEngine::UI::Toggle* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::set_toggle");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_toggle", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.OnPointerEnter
void TMPro::TMP_Dropdown::DropdownItem::OnPointerEnter(UnityEngine::EventSystems::PointerEventData* eventData) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::OnPointerEnter");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnPointerEnter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(eventData)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, eventData);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.DropdownItem.OnCancel
void TMPro::TMP_Dropdown::DropdownItem::OnCancel(UnityEngine::EventSystems::BaseEventData* eventData) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::DropdownItem::OnCancel");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "OnCancel", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(eventData)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, eventData);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.TMP_Dropdown/TMPro.OptionData
#include "TMPro/TMP_Dropdown_OptionData.hpp"
// Including type: UnityEngine.Sprite
#include "UnityEngine/Sprite.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.String m_Text
::Il2CppString*& TMPro::TMP_Dropdown::OptionData::dyn_m_Text() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::dyn_m_Text");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Text"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Sprite m_Image
UnityEngine::Sprite*& TMPro::TMP_Dropdown::OptionData::dyn_m_Image() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::dyn_m_Image");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Image"))->offset;
return *reinterpret_cast<UnityEngine::Sprite**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionData.get_text
::Il2CppString* TMPro::TMP_Dropdown::OptionData::get_text() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::get_text");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_text", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionData.set_text
void TMPro::TMP_Dropdown::OptionData::set_text(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::set_text");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_text", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionData.get_image
UnityEngine::Sprite* TMPro::TMP_Dropdown::OptionData::get_image() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::get_image");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_image", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Sprite*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionData.set_image
void TMPro::TMP_Dropdown::OptionData::set_image(UnityEngine::Sprite* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionData::set_image");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_image", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Dropdown/TMPro.OptionDataList
#include "TMPro/TMP_Dropdown_OptionDataList.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.OptionData
#include "TMPro/TMP_Dropdown_OptionData.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<TMPro.TMP_Dropdown/TMPro.OptionData> m_Options
System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>*& TMPro::TMP_Dropdown::OptionDataList::dyn_m_Options() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionDataList::dyn_m_Options");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Options"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionDataList.get_options
System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>* TMPro::TMP_Dropdown::OptionDataList::get_options() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionDataList::get_options");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_options", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.OptionDataList.set_options
void TMPro::TMP_Dropdown::OptionDataList::set_options(System::Collections::Generic::List_1<TMPro::TMP_Dropdown::OptionData*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::OptionDataList::set_options");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_options", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Dropdown/TMPro.DropdownEvent
#include "TMPro/TMP_Dropdown_DropdownEvent.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Dropdown/TMPro.<>c__DisplayClass60_0
#include "TMPro/TMP_Dropdown_--c__DisplayClass60_0.hpp"
// Including type: TMPro.TMP_Dropdown/TMPro.DropdownItem
#include "TMPro/TMP_Dropdown_DropdownItem.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public TMPro.TMP_Dropdown/TMPro.DropdownItem item
TMPro::TMP_Dropdown::DropdownItem*& TMPro::TMP_Dropdown::$$c__DisplayClass60_0::dyn_item() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$$c__DisplayClass60_0::dyn_item");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "item"))->offset;
return *reinterpret_cast<TMPro::TMP_Dropdown::DropdownItem**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public TMPro.TMP_Dropdown <>4__this
TMPro::TMP_Dropdown*& TMPro::TMP_Dropdown::$$c__DisplayClass60_0::dyn_$$4__this() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$$c__DisplayClass60_0::dyn_$$4__this");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<>4__this"))->offset;
return *reinterpret_cast<TMPro::TMP_Dropdown**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<>c__DisplayClass60_0.<Show>b__0
void TMPro::TMP_Dropdown::$$c__DisplayClass60_0::$Show$b__0(bool x) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$$c__DisplayClass60_0::<Show>b__0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<Show>b__0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(x)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, x);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72
#include "TMPro/TMP_Dropdown_-DelayedDestroyDropdownList-d__72.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Int32 <>1__state
int& TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$1__state() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$1__state");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<>1__state"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Object <>2__current
::Il2CppObject*& TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$2__current() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$2__current");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<>2__current"))->offset;
return *reinterpret_cast<::Il2CppObject**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single delay
float& TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_delay() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_delay");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "delay"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public TMPro.TMP_Dropdown <>4__this
TMPro::TMP_Dropdown*& TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$4__this() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::dyn_$$4__this");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "<>4__this"))->offset;
return *reinterpret_cast<TMPro::TMP_Dropdown**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72.System.Collections.Generic.IEnumerator<System.Object>.get_Current
::Il2CppObject* TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System_Collections_Generic_IEnumerator$System_Object$_get_Current() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System.Collections.Generic.IEnumerator<System.Object>.get_Current");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "System.Collections.Generic.IEnumerator<System.Object>.get_Current", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72.System.Collections.IEnumerator.get_Current
::Il2CppObject* TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System_Collections_IEnumerator_get_Current() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System.Collections.IEnumerator.get_Current");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "System.Collections.IEnumerator.get_Current", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppObject*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72.System.IDisposable.Dispose
void TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System_IDisposable_Dispose() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System.IDisposable.Dispose");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "System.IDisposable.Dispose", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72.MoveNext
bool TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::MoveNext() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::MoveNext");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "MoveNext", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_Dropdown/TMPro.<DelayedDestroyDropdownList>d__72.System.Collections.IEnumerator.Reset
void TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System_Collections_IEnumerator_Reset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Dropdown::$DelayedDestroyDropdownList$d__72::System.Collections.IEnumerator.Reset");
auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "System.Collections.IEnumerator.Reset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.AtlasPopulationMode
#include "TMPro/AtlasPopulationMode.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public TMPro.AtlasPopulationMode Static
TMPro::AtlasPopulationMode TMPro::AtlasPopulationMode::_get_Static() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::AtlasPopulationMode::_get_Static");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::AtlasPopulationMode>("TMPro", "AtlasPopulationMode", "Static"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.AtlasPopulationMode Static
void TMPro::AtlasPopulationMode::_set_Static(TMPro::AtlasPopulationMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::AtlasPopulationMode::_set_Static");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "AtlasPopulationMode", "Static", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.AtlasPopulationMode Dynamic
TMPro::AtlasPopulationMode TMPro::AtlasPopulationMode::_get_Dynamic() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::AtlasPopulationMode::_get_Dynamic");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::AtlasPopulationMode>("TMPro", "AtlasPopulationMode", "Dynamic"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.AtlasPopulationMode Dynamic
void TMPro::AtlasPopulationMode::_set_Dynamic(TMPro::AtlasPopulationMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::AtlasPopulationMode::_set_Dynamic");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "AtlasPopulationMode", "Dynamic", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& TMPro::AtlasPopulationMode::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::AtlasPopulationMode::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.TMP_FontAsset
#include "TMPro/TMP_FontAsset.hpp"
// Including type: TMPro.TMP_FontAsset/TMPro.<>c
#include "TMPro/TMP_FontAsset_--c.hpp"
// Including type: UnityEngine.Font
#include "UnityEngine/Font.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: UnityEngine.TextCore.Glyph
#include "UnityEngine/TextCore/Glyph.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
// Including type: TMPro.TMP_Character
#include "TMPro/TMP_Character.hpp"
// Including type: UnityEngine.Texture2D
#include "UnityEngine/Texture2D.hpp"
// Including type: TMPro.FaceInfo_Legacy
#include "TMPro/FaceInfo_Legacy.hpp"
// Including type: TMPro.TMP_Glyph
#include "TMPro/TMP_Glyph.hpp"
// Including type: TMPro.KerningTable
#include "TMPro/KerningTable.hpp"
// Including type: TMPro.TMP_FontFeatureTable
#include "TMPro/TMP_FontFeatureTable.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static System.UInt32[] s_GlyphIndexArray
::Array<uint>* TMPro::TMP_FontAsset::_get_s_GlyphIndexArray() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::_get_s_GlyphIndexArray");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<::Array<uint>*>("TMPro", "TMP_FontAsset", "s_GlyphIndexArray"));
}
// Autogenerated static field setter
// Set static field: static System.UInt32[] s_GlyphIndexArray
void TMPro::TMP_FontAsset::_set_s_GlyphIndexArray(::Array<uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::_set_s_GlyphIndexArray");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAsset", "s_GlyphIndexArray", value));
}
// Autogenerated static field getter
// Get static field: static System.Collections.Generic.List`1<System.UInt32> s_MissingCharacterList
System::Collections::Generic::List_1<uint>* TMPro::TMP_FontAsset::_get_s_MissingCharacterList() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::_get_s_MissingCharacterList");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<System::Collections::Generic::List_1<uint>*>("TMPro", "TMP_FontAsset", "s_MissingCharacterList"));
}
// Autogenerated static field setter
// Set static field: static System.Collections.Generic.List`1<System.UInt32> s_MissingCharacterList
void TMPro::TMP_FontAsset::_set_s_MissingCharacterList(System::Collections::Generic::List_1<uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::_set_s_MissingCharacterList");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAsset", "s_MissingCharacterList", value));
}
// Autogenerated instance field getter
// Get instance field: private System.String m_Version
::Il2CppString*& TMPro::TMP_FontAsset::dyn_m_Version() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_Version");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_Version"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.String m_SourceFontFileGUID
::Il2CppString*& TMPro::TMP_FontAsset::dyn_m_SourceFontFileGUID() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_SourceFontFileGUID");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SourceFontFileGUID"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Font m_SourceFontFile
UnityEngine::Font*& TMPro::TMP_FontAsset::dyn_m_SourceFontFile() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_SourceFontFile");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SourceFontFile"))->offset;
return *reinterpret_cast<UnityEngine::Font**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.AtlasPopulationMode m_AtlasPopulationMode
TMPro::AtlasPopulationMode& TMPro::TMP_FontAsset::dyn_m_AtlasPopulationMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasPopulationMode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasPopulationMode"))->offset;
return *reinterpret_cast<TMPro::AtlasPopulationMode*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.TextCore.FaceInfo m_FaceInfo
UnityEngine::TextCore::FaceInfo& TMPro::TMP_FontAsset::dyn_m_FaceInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_FaceInfo");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FaceInfo"))->offset;
return *reinterpret_cast<UnityEngine::TextCore::FaceInfo*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> m_GlyphTable
System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>*& TMPro::TMP_FontAsset::dyn_m_GlyphTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphTable"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Glyph> m_GlyphLookupDictionary
System::Collections::Generic::Dictionary_2<uint, UnityEngine::TextCore::Glyph*>*& TMPro::TMP_FontAsset::dyn_m_GlyphLookupDictionary() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphLookupDictionary");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphLookupDictionary"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<uint, UnityEngine::TextCore::Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<TMPro.TMP_Character> m_CharacterTable
System::Collections::Generic::List_1<TMPro::TMP_Character*>*& TMPro::TMP_FontAsset::dyn_m_CharacterTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_CharacterTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CharacterTable"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_Character*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.Dictionary`2<System.UInt32,TMPro.TMP_Character> m_CharacterLookupDictionary
System::Collections::Generic::Dictionary_2<uint, TMPro::TMP_Character*>*& TMPro::TMP_FontAsset::dyn_m_CharacterLookupDictionary() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_CharacterLookupDictionary");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CharacterLookupDictionary"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<uint, TMPro::TMP_Character*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Texture2D m_AtlasTexture
UnityEngine::Texture2D*& TMPro::TMP_FontAsset::dyn_m_AtlasTexture() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasTexture");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasTexture"))->offset;
return *reinterpret_cast<UnityEngine::Texture2D**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.Texture2D[] m_AtlasTextures
::Array<UnityEngine::Texture2D*>*& TMPro::TMP_FontAsset::dyn_m_AtlasTextures() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasTextures");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasTextures"))->offset;
return *reinterpret_cast<::Array<UnityEngine::Texture2D*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.Int32 m_AtlasTextureIndex
int& TMPro::TMP_FontAsset::dyn_m_AtlasTextureIndex() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasTextureIndex");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasTextureIndex"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> m_UsedGlyphRects
System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>*& TMPro::TMP_FontAsset::dyn_m_UsedGlyphRects() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_UsedGlyphRects");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_UsedGlyphRects"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> m_FreeGlyphRects
System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>*& TMPro::TMP_FontAsset::dyn_m_FreeGlyphRects() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_FreeGlyphRects");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FreeGlyphRects"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.FaceInfo_Legacy m_fontInfo
TMPro::FaceInfo_Legacy*& TMPro::TMP_FontAsset::dyn_m_fontInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_fontInfo");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_fontInfo"))->offset;
return *reinterpret_cast<TMPro::FaceInfo_Legacy**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public UnityEngine.Texture2D atlas
UnityEngine::Texture2D*& TMPro::TMP_FontAsset::dyn_atlas() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_atlas");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "atlas"))->offset;
return *reinterpret_cast<UnityEngine::Texture2D**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_AtlasWidth
int& TMPro::TMP_FontAsset::dyn_m_AtlasWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasWidth");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasWidth"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_AtlasHeight
int& TMPro::TMP_FontAsset::dyn_m_AtlasHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasHeight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasHeight"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Int32 m_AtlasPadding
int& TMPro::TMP_FontAsset::dyn_m_AtlasPadding() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasPadding");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasPadding"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private UnityEngine.TextCore.LowLevel.GlyphRenderMode m_AtlasRenderMode
UnityEngine::TextCore::LowLevel::GlyphRenderMode& TMPro::TMP_FontAsset::dyn_m_AtlasRenderMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_AtlasRenderMode");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_AtlasRenderMode"))->offset;
return *reinterpret_cast<UnityEngine::TextCore::LowLevel::GlyphRenderMode*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.Collections.Generic.List`1<TMPro.TMP_Glyph> m_glyphInfoList
System::Collections::Generic::List_1<TMPro::TMP_Glyph*>*& TMPro::TMP_FontAsset::dyn_m_glyphInfoList() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_glyphInfoList");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_glyphInfoList"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: TMPro.KerningTable m_KerningTable
TMPro::KerningTable*& TMPro::TMP_FontAsset::dyn_m_KerningTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_KerningTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_KerningTable"))->offset;
return *reinterpret_cast<TMPro::KerningTable**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_FontFeatureTable m_FontFeatureTable
TMPro::TMP_FontFeatureTable*& TMPro::TMP_FontAsset::dyn_m_FontFeatureTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_FontFeatureTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FontFeatureTable"))->offset;
return *reinterpret_cast<TMPro::TMP_FontFeatureTable**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<TMPro.TMP_FontAsset> fallbackFontAssets
System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>*& TMPro::TMP_FontAsset::dyn_fallbackFontAssets() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_fallbackFontAssets");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fallbackFontAssets"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Collections.Generic.List`1<TMPro.TMP_FontAsset> m_FallbackFontAssetTable
System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>*& TMPro::TMP_FontAsset::dyn_m_FallbackFontAssetTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_FallbackFontAssetTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FallbackFontAssetTable"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: TMPro.FontAssetCreationSettings m_CreationSettings
TMPro::FontAssetCreationSettings& TMPro::TMP_FontAsset::dyn_m_CreationSettings() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_CreationSettings");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CreationSettings"))->offset;
return *reinterpret_cast<TMPro::FontAssetCreationSettings*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_FontWeightPair[] m_FontWeightTable
::Array<TMPro::TMP_FontWeightPair>*& TMPro::TMP_FontAsset::dyn_m_FontWeightTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_FontWeightTable");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FontWeightTable"))->offset;
return *reinterpret_cast<::Array<TMPro::TMP_FontWeightPair>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_FontWeightPair[] fontWeights
::Array<TMPro::TMP_FontWeightPair>*& TMPro::TMP_FontAsset::dyn_fontWeights() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_fontWeights");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fontWeights"))->offset;
return *reinterpret_cast<::Array<TMPro::TMP_FontWeightPair>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single normalStyle
float& TMPro::TMP_FontAsset::dyn_normalStyle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_normalStyle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "normalStyle"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single normalSpacingOffset
float& TMPro::TMP_FontAsset::dyn_normalSpacingOffset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_normalSpacingOffset");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "normalSpacingOffset"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single boldStyle
float& TMPro::TMP_FontAsset::dyn_boldStyle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_boldStyle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "boldStyle"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single boldSpacing
float& TMPro::TMP_FontAsset::dyn_boldSpacing() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_boldSpacing");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "boldSpacing"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Byte italicStyle
uint8_t& TMPro::TMP_FontAsset::dyn_italicStyle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_italicStyle");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "italicStyle"))->offset;
return *reinterpret_cast<uint8_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Byte tabSize
uint8_t& TMPro::TMP_FontAsset::dyn_tabSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_tabSize");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "tabSize"))->offset;
return *reinterpret_cast<uint8_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Byte m_oldTabSize
uint8_t& TMPro::TMP_FontAsset::dyn_m_oldTabSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_oldTabSize");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_oldTabSize"))->offset;
return *reinterpret_cast<uint8_t*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.Boolean m_IsFontAssetLookupTablesDirty
bool& TMPro::TMP_FontAsset::dyn_m_IsFontAssetLookupTablesDirty() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_IsFontAssetLookupTablesDirty");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IsFontAssetLookupTablesDirty"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> m_GlyphsToPack
System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>*& TMPro::TMP_FontAsset::dyn_m_GlyphsToPack() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphsToPack");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphsToPack"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> m_GlyphsPacked
System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>*& TMPro::TMP_FontAsset::dyn_m_GlyphsPacked() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphsPacked");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphsPacked"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> m_GlyphsToRender
System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>*& TMPro::TMP_FontAsset::dyn_m_GlyphsToRender() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphsToRender");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphsToRender"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<System.UInt32> m_GlyphIndexList
System::Collections::Generic::List_1<uint>*& TMPro::TMP_FontAsset::dyn_m_GlyphIndexList() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_GlyphIndexList");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphIndexList"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<uint>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Collections.Generic.List`1<TMPro.TMP_Character> m_CharactersToAdd
System::Collections::Generic::List_1<TMPro::TMP_Character*>*& TMPro::TMP_FontAsset::dyn_m_CharactersToAdd() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::dyn_m_CharactersToAdd");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_CharactersToAdd"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_Character*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_version
::Il2CppString* TMPro::TMP_FontAsset::get_version() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_version");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_version", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_version
void TMPro::TMP_FontAsset::set_version(::Il2CppString* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_version");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_version", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_sourceFontFile
UnityEngine::Font* TMPro::TMP_FontAsset::get_sourceFontFile() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_sourceFontFile");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_sourceFontFile", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Font*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_sourceFontFile
void TMPro::TMP_FontAsset::set_sourceFontFile(UnityEngine::Font* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_sourceFontFile");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_sourceFontFile", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasPopulationMode
TMPro::AtlasPopulationMode TMPro::TMP_FontAsset::get_atlasPopulationMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasPopulationMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasPopulationMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::AtlasPopulationMode, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasPopulationMode
void TMPro::TMP_FontAsset::set_atlasPopulationMode(TMPro::AtlasPopulationMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasPopulationMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasPopulationMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_faceInfo
UnityEngine::TextCore::FaceInfo TMPro::TMP_FontAsset::get_faceInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_faceInfo");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_faceInfo", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::TextCore::FaceInfo, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_faceInfo
void TMPro::TMP_FontAsset::set_faceInfo(UnityEngine::TextCore::FaceInfo value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_faceInfo");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_faceInfo", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_glyphTable
System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>* TMPro::TMP_FontAsset::get_glyphTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_glyphTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_glyphTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_glyphTable
void TMPro::TMP_FontAsset::set_glyphTable(System::Collections::Generic::List_1<UnityEngine::TextCore::Glyph*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_glyphTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_glyphTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_glyphLookupTable
System::Collections::Generic::Dictionary_2<uint, UnityEngine::TextCore::Glyph*>* TMPro::TMP_FontAsset::get_glyphLookupTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_glyphLookupTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_glyphLookupTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::Dictionary_2<uint, UnityEngine::TextCore::Glyph*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_characterTable
System::Collections::Generic::List_1<TMPro::TMP_Character*>* TMPro::TMP_FontAsset::get_characterTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_characterTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_characterTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<TMPro::TMP_Character*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_characterTable
void TMPro::TMP_FontAsset::set_characterTable(System::Collections::Generic::List_1<TMPro::TMP_Character*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_characterTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_characterTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_characterLookupTable
System::Collections::Generic::Dictionary_2<uint, TMPro::TMP_Character*>* TMPro::TMP_FontAsset::get_characterLookupTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_characterLookupTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_characterLookupTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::Dictionary_2<uint, TMPro::TMP_Character*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasTexture
UnityEngine::Texture2D* TMPro::TMP_FontAsset::get_atlasTexture() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasTexture");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasTexture", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::Texture2D*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasTextures
::Array<UnityEngine::Texture2D*>* TMPro::TMP_FontAsset::get_atlasTextures() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasTextures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasTextures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Array<UnityEngine::Texture2D*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasTextures
void TMPro::TMP_FontAsset::set_atlasTextures(::Array<UnityEngine::Texture2D*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasTextures");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasTextures", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_usedGlyphRects
System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>* TMPro::TMP_FontAsset::get_usedGlyphRects() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_usedGlyphRects");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_usedGlyphRects", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_usedGlyphRects
void TMPro::TMP_FontAsset::set_usedGlyphRects(System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_usedGlyphRects");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_usedGlyphRects", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_freeGlyphRects
System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>* TMPro::TMP_FontAsset::get_freeGlyphRects() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_freeGlyphRects");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_freeGlyphRects", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_freeGlyphRects
void TMPro::TMP_FontAsset::set_freeGlyphRects(System::Collections::Generic::List_1<UnityEngine::TextCore::GlyphRect>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_freeGlyphRects");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_freeGlyphRects", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_fontInfo
TMPro::FaceInfo_Legacy* TMPro::TMP_FontAsset::get_fontInfo() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_fontInfo");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_fontInfo", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::FaceInfo_Legacy*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasWidth
int TMPro::TMP_FontAsset::get_atlasWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasWidth");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasWidth", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasWidth
void TMPro::TMP_FontAsset::set_atlasWidth(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasWidth");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasWidth", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasHeight
int TMPro::TMP_FontAsset::get_atlasHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasHeight");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasHeight", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasHeight
void TMPro::TMP_FontAsset::set_atlasHeight(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasHeight");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasHeight", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasPadding
int TMPro::TMP_FontAsset::get_atlasPadding() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasPadding");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasPadding", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasPadding
void TMPro::TMP_FontAsset::set_atlasPadding(int value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasPadding");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasPadding", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_atlasRenderMode
UnityEngine::TextCore::LowLevel::GlyphRenderMode TMPro::TMP_FontAsset::get_atlasRenderMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_atlasRenderMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_atlasRenderMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<UnityEngine::TextCore::LowLevel::GlyphRenderMode, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_atlasRenderMode
void TMPro::TMP_FontAsset::set_atlasRenderMode(UnityEngine::TextCore::LowLevel::GlyphRenderMode value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_atlasRenderMode");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_atlasRenderMode", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_fontFeatureTable
TMPro::TMP_FontFeatureTable* TMPro::TMP_FontAsset::get_fontFeatureTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_fontFeatureTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_fontFeatureTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontFeatureTable*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_fontFeatureTable
void TMPro::TMP_FontAsset::set_fontFeatureTable(TMPro::TMP_FontFeatureTable* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_fontFeatureTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_fontFeatureTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_fallbackFontAssetTable
System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>* TMPro::TMP_FontAsset::get_fallbackFontAssetTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_fallbackFontAssetTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_fallbackFontAssetTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_fallbackFontAssetTable
void TMPro::TMP_FontAsset::set_fallbackFontAssetTable(System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_fallbackFontAssetTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_fallbackFontAssetTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_creationSettings
TMPro::FontAssetCreationSettings TMPro::TMP_FontAsset::get_creationSettings() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_creationSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_creationSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::FontAssetCreationSettings, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_creationSettings
void TMPro::TMP_FontAsset::set_creationSettings(TMPro::FontAssetCreationSettings value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_creationSettings");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_creationSettings", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.get_fontWeightTable
::Array<TMPro::TMP_FontWeightPair>* TMPro::TMP_FontAsset::get_fontWeightTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::get_fontWeightTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_fontWeightTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<::Array<TMPro::TMP_FontWeightPair>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.set_fontWeightTable
void TMPro::TMP_FontAsset::set_fontWeightTable(::Array<TMPro::TMP_FontWeightPair>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::set_fontWeightTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_fontWeightTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontAsset.CreateFontAsset
TMPro::TMP_FontAsset* TMPro::TMP_FontAsset::CreateFontAsset(UnityEngine::Font* font) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::CreateFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset", "CreateFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(font)})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, font);
}
// Autogenerated method: TMPro.TMP_FontAsset.CreateFontAsset
TMPro::TMP_FontAsset* TMPro::TMP_FontAsset::CreateFontAsset(UnityEngine::Font* font, int samplingPointSize, int atlasPadding, UnityEngine::TextCore::LowLevel::GlyphRenderMode renderMode, int atlasWidth, int atlasHeight, TMPro::AtlasPopulationMode atlasPopulationMode) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::CreateFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset", "CreateFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(font), ::il2cpp_utils::ExtractType(samplingPointSize), ::il2cpp_utils::ExtractType(atlasPadding), ::il2cpp_utils::ExtractType(renderMode), ::il2cpp_utils::ExtractType(atlasWidth), ::il2cpp_utils::ExtractType(atlasHeight), ::il2cpp_utils::ExtractType(atlasPopulationMode)})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, font, samplingPointSize, atlasPadding, renderMode, atlasWidth, atlasHeight, atlasPopulationMode);
}
// Autogenerated method: TMPro.TMP_FontAsset.Awake
void TMPro::TMP_FontAsset::Awake() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::Awake");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "Awake", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.InitializeDictionaryLookupTables
void TMPro::TMP_FontAsset::InitializeDictionaryLookupTables() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::InitializeDictionaryLookupTables");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "InitializeDictionaryLookupTables", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.ReadFontAssetDefinition
void TMPro::TMP_FontAsset::ReadFontAssetDefinition() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::ReadFontAssetDefinition");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ReadFontAssetDefinition", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.SortCharacterTable
void TMPro::TMP_FontAsset::SortCharacterTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::SortCharacterTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SortCharacterTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.SortGlyphTable
void TMPro::TMP_FontAsset::SortGlyphTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::SortGlyphTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SortGlyphTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.SortGlyphAndCharacterTables
void TMPro::TMP_FontAsset::SortGlyphAndCharacterTables() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::SortGlyphAndCharacterTables");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SortGlyphAndCharacterTables", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacter
bool TMPro::TMP_FontAsset::HasCharacter(int character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(character)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, character);
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacter
bool TMPro::TMP_FontAsset::HasCharacter(::Il2CppChar character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(character)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, character);
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacter
bool TMPro::TMP_FontAsset::HasCharacter(::Il2CppChar character, bool searchFallbacks) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(character), ::il2cpp_utils::ExtractType(searchFallbacks)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, character, searchFallbacks);
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacter_Internal
bool TMPro::TMP_FontAsset::HasCharacter_Internal(::Il2CppChar character, bool searchFallbacks) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacter_Internal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacter_Internal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(character), ::il2cpp_utils::ExtractType(searchFallbacks)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, character, searchFallbacks);
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacters
bool TMPro::TMP_FontAsset::HasCharacters(::Il2CppString* text, ByRef<System::Collections::Generic::List_1<::Il2CppChar>*> missingCharacters) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(text), ::il2cpp_utils::ExtractIndependentType<System::Collections::Generic::List_1<::Il2CppChar>*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, text, byref(missingCharacters));
}
// Autogenerated method: TMPro.TMP_FontAsset.HasCharacters
bool TMPro::TMP_FontAsset::HasCharacters(::Il2CppString* text) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::HasCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "HasCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(text)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, text);
}
// Autogenerated method: TMPro.TMP_FontAsset.GetCharacters
::Il2CppString* TMPro::TMP_FontAsset::GetCharacters(TMPro::TMP_FontAsset* fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::GetCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset", "GetCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fontAsset)})));
return ::il2cpp_utils::RunMethodThrow<::Il2CppString*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, fontAsset);
}
// Autogenerated method: TMPro.TMP_FontAsset.GetCharactersArray
::Array<int>* TMPro::TMP_FontAsset::GetCharactersArray(TMPro::TMP_FontAsset* fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::GetCharactersArray");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset", "GetCharactersArray", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fontAsset)})));
return ::il2cpp_utils::RunMethodThrow<::Array<int>*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, fontAsset);
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacters
bool TMPro::TMP_FontAsset::TryAddCharacters(::Array<uint>* unicodes) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicodes)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, unicodes);
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacters
bool TMPro::TMP_FontAsset::TryAddCharacters(::Array<uint>* unicodes, ByRef<::Array<uint>*> missingUnicodes) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicodes), ::il2cpp_utils::ExtractIndependentType<::Array<uint>*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, unicodes, byref(missingUnicodes));
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacters
bool TMPro::TMP_FontAsset::TryAddCharacters(::Il2CppString* characters) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(characters)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, characters);
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacters
bool TMPro::TMP_FontAsset::TryAddCharacters(::Il2CppString* characters, ByRef<::Il2CppString*> missingCharacters) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacters");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacters", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(characters), ::il2cpp_utils::ExtractIndependentType<::Il2CppString*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, characters, byref(missingCharacters));
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacter_Internal
bool TMPro::TMP_FontAsset::TryAddCharacter_Internal(uint unicode) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacter_Internal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacter_Internal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, unicode);
}
// Autogenerated method: TMPro.TMP_FontAsset.AddCharacter_Internal
TMPro::TMP_Character* TMPro::TMP_FontAsset::AddCharacter_Internal(uint unicode, UnityEngine::TextCore::Glyph* glyph) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::AddCharacter_Internal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddCharacter_Internal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(glyph)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Character*, false>(___instance_arg, ___internal__method, unicode, glyph);
}
// Autogenerated method: TMPro.TMP_FontAsset.TryAddCharacterInternal
bool TMPro::TMP_FontAsset::TryAddCharacterInternal(uint unicode, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::TryAddCharacterInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "TryAddCharacterInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, unicode, byref(character));
}
// Autogenerated method: TMPro.TMP_FontAsset.GetGlyphIndex
uint TMPro::TMP_FontAsset::GetGlyphIndex(uint unicode) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::GetGlyphIndex");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "GetGlyphIndex", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, unicode);
}
// Autogenerated method: TMPro.TMP_FontAsset.UpdateAtlasTexture
void TMPro::TMP_FontAsset::UpdateAtlasTexture() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::UpdateAtlasTexture");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UpdateAtlasTexture", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.UpdateGlyphAdjustmentRecords
void TMPro::TMP_FontAsset::UpdateGlyphAdjustmentRecords(uint unicode, uint glyphIndex) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::UpdateGlyphAdjustmentRecords");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UpdateGlyphAdjustmentRecords", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(glyphIndex)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, unicode, glyphIndex);
}
// Autogenerated method: TMPro.TMP_FontAsset.ClearFontAssetData
void TMPro::TMP_FontAsset::ClearFontAssetData(bool setAtlasSizeToZero) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::ClearFontAssetData");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ClearFontAssetData", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(setAtlasSizeToZero)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, setAtlasSizeToZero);
}
// Autogenerated method: TMPro.TMP_FontAsset.UpgradeFontAsset
void TMPro::TMP_FontAsset::UpgradeFontAsset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::UpgradeFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UpgradeFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset.UpgradeGlyphAdjustmentTableToFontFeatureTable
void TMPro::TMP_FontAsset::UpgradeGlyphAdjustmentTableToFontFeatureTable() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::UpgradeGlyphAdjustmentTableToFontFeatureTable");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "UpgradeGlyphAdjustmentTableToFontFeatureTable", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset..cctor
void TMPro::TMP_FontAsset::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_FontAsset/TMPro.<>c
#include "TMPro/TMP_FontAsset_--c.hpp"
// Including type: System.Func`2
#include "System/Func_2.hpp"
// Including type: TMPro.TMP_Character
#include "TMPro/TMP_Character.hpp"
// Including type: UnityEngine.TextCore.Glyph
#include "UnityEngine/TextCore/Glyph.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public readonly TMPro.TMP_FontAsset/TMPro.<>c <>9
TMPro::TMP_FontAsset::$$c* TMPro::TMP_FontAsset::$$c::_get_$$9() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_get_$$9");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<TMPro::TMP_FontAsset::$$c*>("TMPro", "TMP_FontAsset/<>c", "<>9")));
}
// Autogenerated static field setter
// Set static field: static public readonly TMPro.TMP_FontAsset/TMPro.<>c <>9
void TMPro::TMP_FontAsset::$$c::_set_$$9(TMPro::TMP_FontAsset::$$c* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_set_$$9");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAsset/<>c", "<>9", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<TMPro.TMP_Character,System.UInt32> <>9__100_0
System::Func_2<TMPro::TMP_Character*, uint>* TMPro::TMP_FontAsset::$$c::_get_$$9__100_0() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_get_$$9__100_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<TMPro::TMP_Character*, uint>*>("TMPro", "TMP_FontAsset/<>c", "<>9__100_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<TMPro.TMP_Character,System.UInt32> <>9__100_0
void TMPro::TMP_FontAsset::$$c::_set_$$9__100_0(System::Func_2<TMPro::TMP_Character*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_set_$$9__100_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAsset/<>c", "<>9__100_0", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<UnityEngine.TextCore.Glyph,System.UInt32> <>9__101_0
System::Func_2<UnityEngine::TextCore::Glyph*, uint>* TMPro::TMP_FontAsset::$$c::_get_$$9__101_0() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_get_$$9__101_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<UnityEngine::TextCore::Glyph*, uint>*>("TMPro", "TMP_FontAsset/<>c", "<>9__101_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<UnityEngine.TextCore.Glyph,System.UInt32> <>9__101_0
void TMPro::TMP_FontAsset::$$c::_set_$$9__101_0(System::Func_2<UnityEngine::TextCore::Glyph*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::_set_$$9__101_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAsset/<>c", "<>9__101_0", value)));
}
// Autogenerated method: TMPro.TMP_FontAsset/TMPro.<>c..cctor
void TMPro::TMP_FontAsset::$$c::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAsset/<>c", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAsset/TMPro.<>c.<SortCharacterTable>b__100_0
uint TMPro::TMP_FontAsset::$$c::$SortCharacterTable$b__100_0(TMPro::TMP_Character* c) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::<SortCharacterTable>b__100_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortCharacterTable>b__100_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, c);
}
// Autogenerated method: TMPro.TMP_FontAsset/TMPro.<>c.<SortGlyphTable>b__101_0
uint TMPro::TMP_FontAsset::$$c::$SortGlyphTable$b__101_0(UnityEngine::TextCore::Glyph* c) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAsset::$$c::<SortGlyphTable>b__101_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortGlyphTable>b__101_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(c)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, c);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.FaceInfo_Legacy
#include "TMPro/FaceInfo_Legacy.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.String Name
::Il2CppString*& TMPro::FaceInfo_Legacy::dyn_Name() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Name");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Name"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single PointSize
float& TMPro::FaceInfo_Legacy::dyn_PointSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_PointSize");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "PointSize"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Scale
float& TMPro::FaceInfo_Legacy::dyn_Scale() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Scale");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Scale"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 CharacterCount
int& TMPro::FaceInfo_Legacy::dyn_CharacterCount() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_CharacterCount");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "CharacterCount"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single LineHeight
float& TMPro::FaceInfo_Legacy::dyn_LineHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_LineHeight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "LineHeight"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Baseline
float& TMPro::FaceInfo_Legacy::dyn_Baseline() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Baseline");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Baseline"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Ascender
float& TMPro::FaceInfo_Legacy::dyn_Ascender() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Ascender");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Ascender"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single CapHeight
float& TMPro::FaceInfo_Legacy::dyn_CapHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_CapHeight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "CapHeight"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Descender
float& TMPro::FaceInfo_Legacy::dyn_Descender() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Descender");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Descender"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single CenterLine
float& TMPro::FaceInfo_Legacy::dyn_CenterLine() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_CenterLine");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "CenterLine"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single SuperscriptOffset
float& TMPro::FaceInfo_Legacy::dyn_SuperscriptOffset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_SuperscriptOffset");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "SuperscriptOffset"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single SubscriptOffset
float& TMPro::FaceInfo_Legacy::dyn_SubscriptOffset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_SubscriptOffset");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "SubscriptOffset"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single SubSize
float& TMPro::FaceInfo_Legacy::dyn_SubSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_SubSize");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "SubSize"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Underline
float& TMPro::FaceInfo_Legacy::dyn_Underline() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Underline");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Underline"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single UnderlineThickness
float& TMPro::FaceInfo_Legacy::dyn_UnderlineThickness() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_UnderlineThickness");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "UnderlineThickness"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single strikethrough
float& TMPro::FaceInfo_Legacy::dyn_strikethrough() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_strikethrough");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "strikethrough"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single strikethroughThickness
float& TMPro::FaceInfo_Legacy::dyn_strikethroughThickness() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_strikethroughThickness");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "strikethroughThickness"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single TabWidth
float& TMPro::FaceInfo_Legacy::dyn_TabWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_TabWidth");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "TabWidth"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single Padding
float& TMPro::FaceInfo_Legacy::dyn_Padding() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_Padding");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "Padding"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single AtlasWidth
float& TMPro::FaceInfo_Legacy::dyn_AtlasWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_AtlasWidth");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "AtlasWidth"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single AtlasHeight
float& TMPro::FaceInfo_Legacy::dyn_AtlasHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FaceInfo_Legacy::dyn_AtlasHeight");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "AtlasHeight"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_Glyph
#include "TMPro/TMP_Glyph.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated method: TMPro.TMP_Glyph.Clone
TMPro::TMP_Glyph* TMPro::TMP_Glyph::Clone(TMPro::TMP_Glyph* source) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_Glyph::Clone");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_Glyph", "Clone", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(source)})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Glyph*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, source);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: TMPro.FontAssetCreationSettings
#include "TMPro/FontAssetCreationSettings.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.String sourceFontFileName
::Il2CppString*& TMPro::FontAssetCreationSettings::dyn_sourceFontFileName() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_sourceFontFileName");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "sourceFontFileName"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String sourceFontFileGUID
::Il2CppString*& TMPro::FontAssetCreationSettings::dyn_sourceFontFileGUID() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_sourceFontFileGUID");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "sourceFontFileGUID"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 pointSizeSamplingMode
int& TMPro::FontAssetCreationSettings::dyn_pointSizeSamplingMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_pointSizeSamplingMode");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "pointSizeSamplingMode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 pointSize
int& TMPro::FontAssetCreationSettings::dyn_pointSize() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_pointSize");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "pointSize"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 padding
int& TMPro::FontAssetCreationSettings::dyn_padding() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_padding");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "padding"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 packingMode
int& TMPro::FontAssetCreationSettings::dyn_packingMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_packingMode");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "packingMode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 atlasWidth
int& TMPro::FontAssetCreationSettings::dyn_atlasWidth() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_atlasWidth");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "atlasWidth"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 atlasHeight
int& TMPro::FontAssetCreationSettings::dyn_atlasHeight() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_atlasHeight");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "atlasHeight"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 characterSetSelectionMode
int& TMPro::FontAssetCreationSettings::dyn_characterSetSelectionMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_characterSetSelectionMode");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "characterSetSelectionMode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String characterSequence
::Il2CppString*& TMPro::FontAssetCreationSettings::dyn_characterSequence() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_characterSequence");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "characterSequence"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String referencedFontAssetGUID
::Il2CppString*& TMPro::FontAssetCreationSettings::dyn_referencedFontAssetGUID() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_referencedFontAssetGUID");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "referencedFontAssetGUID"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.String referencedTextAssetGUID
::Il2CppString*& TMPro::FontAssetCreationSettings::dyn_referencedTextAssetGUID() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_referencedTextAssetGUID");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "referencedTextAssetGUID"))->offset;
return *reinterpret_cast<::Il2CppString**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 fontStyle
int& TMPro::FontAssetCreationSettings::dyn_fontStyle() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_fontStyle");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fontStyle"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single fontStyleModifier
float& TMPro::FontAssetCreationSettings::dyn_fontStyleModifier() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_fontStyleModifier");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "fontStyleModifier"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 renderMode
int& TMPro::FontAssetCreationSettings::dyn_renderMode() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_renderMode");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "renderMode"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Boolean includeFontFeatures
bool& TMPro::FontAssetCreationSettings::dyn_includeFontFeatures() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontAssetCreationSettings::dyn_includeFontFeatures");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "includeFontFeatures"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningPairKey
#include "TMPro/KerningPairKey.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.UInt32 ascii_Left
uint& TMPro::KerningPairKey::dyn_ascii_Left() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPairKey::dyn_ascii_Left");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "ascii_Left"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 ascii_Right
uint& TMPro::KerningPairKey::dyn_ascii_Right() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPairKey::dyn_ascii_Right");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "ascii_Right"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 key
uint& TMPro::KerningPairKey::dyn_key() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPairKey::dyn_key");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "key"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.GlyphValueRecord_Legacy
#include "TMPro/GlyphValueRecord_Legacy.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Single xPlacement
float& TMPro::GlyphValueRecord_Legacy::dyn_xPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::GlyphValueRecord_Legacy::dyn_xPlacement");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "xPlacement"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single yPlacement
float& TMPro::GlyphValueRecord_Legacy::dyn_yPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::GlyphValueRecord_Legacy::dyn_yPlacement");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "yPlacement"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single xAdvance
float& TMPro::GlyphValueRecord_Legacy::dyn_xAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::GlyphValueRecord_Legacy::dyn_xAdvance");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "xAdvance"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single yAdvance
float& TMPro::GlyphValueRecord_Legacy::dyn_yAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::GlyphValueRecord_Legacy::dyn_yAdvance");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "yAdvance"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.GlyphValueRecord_Legacy.op_Addition
TMPro::GlyphValueRecord_Legacy TMPro::operator+(const TMPro::GlyphValueRecord_Legacy& a, const TMPro::GlyphValueRecord_Legacy& b) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::GlyphValueRecord_Legacy::op_Addition");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "GlyphValueRecord_Legacy", "op_Addition", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(a), ::il2cpp_utils::ExtractType(b)})));
return ::il2cpp_utils::RunMethodThrow<TMPro::GlyphValueRecord_Legacy, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, a, b);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static TMPro.KerningPair empty
TMPro::KerningPair* TMPro::KerningPair::_get_empty() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::_get_empty");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::KerningPair*>("TMPro", "KerningPair", "empty"));
}
// Autogenerated static field setter
// Set static field: static TMPro.KerningPair empty
void TMPro::KerningPair::_set_empty(TMPro::KerningPair* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::_set_empty");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "KerningPair", "empty", value));
}
// Autogenerated instance field getter
// Get instance field: private System.UInt32 m_FirstGlyph
uint& TMPro::KerningPair::dyn_m_FirstGlyph() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_m_FirstGlyph");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FirstGlyph"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.GlyphValueRecord_Legacy m_FirstGlyphAdjustments
TMPro::GlyphValueRecord_Legacy& TMPro::KerningPair::dyn_m_FirstGlyphAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_m_FirstGlyphAdjustments");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FirstGlyphAdjustments"))->offset;
return *reinterpret_cast<TMPro::GlyphValueRecord_Legacy*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.UInt32 m_SecondGlyph
uint& TMPro::KerningPair::dyn_m_SecondGlyph() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_m_SecondGlyph");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SecondGlyph"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.GlyphValueRecord_Legacy m_SecondGlyphAdjustments
TMPro::GlyphValueRecord_Legacy& TMPro::KerningPair::dyn_m_SecondGlyphAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_m_SecondGlyphAdjustments");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SecondGlyphAdjustments"))->offset;
return *reinterpret_cast<TMPro::GlyphValueRecord_Legacy*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Single xOffset
float& TMPro::KerningPair::dyn_xOffset() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_xOffset");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "xOffset"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Boolean m_IgnoreSpacingAdjustments
bool& TMPro::KerningPair::dyn_m_IgnoreSpacingAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::dyn_m_IgnoreSpacingAdjustments");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_IgnoreSpacingAdjustments"))->offset;
return *reinterpret_cast<bool*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.KerningPair.get_firstGlyph
uint TMPro::KerningPair::get_firstGlyph() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::get_firstGlyph");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_firstGlyph", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningPair.set_firstGlyph
void TMPro::KerningPair::set_firstGlyph(uint value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::set_firstGlyph");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_firstGlyph", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.KerningPair.get_firstGlyphAdjustments
TMPro::GlyphValueRecord_Legacy TMPro::KerningPair::get_firstGlyphAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::get_firstGlyphAdjustments");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_firstGlyphAdjustments", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::GlyphValueRecord_Legacy, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningPair.get_secondGlyph
uint TMPro::KerningPair::get_secondGlyph() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::get_secondGlyph");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_secondGlyph", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningPair.set_secondGlyph
void TMPro::KerningPair::set_secondGlyph(uint value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::set_secondGlyph");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_secondGlyph", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.KerningPair.get_secondGlyphAdjustments
TMPro::GlyphValueRecord_Legacy TMPro::KerningPair::get_secondGlyphAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::get_secondGlyphAdjustments");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_secondGlyphAdjustments", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::GlyphValueRecord_Legacy, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningPair.get_ignoreSpacingAdjustments
bool TMPro::KerningPair::get_ignoreSpacingAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::get_ignoreSpacingAdjustments");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_ignoreSpacingAdjustments", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningPair..cctor
void TMPro::KerningPair::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "KerningPair", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.KerningPair.ConvertLegacyKerningData
void TMPro::KerningPair::ConvertLegacyKerningData() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningPair::ConvertLegacyKerningData");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "ConvertLegacyKerningData", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningTable
#include "TMPro/KerningTable.hpp"
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass3_0
#include "TMPro/KerningTable_--c__DisplayClass3_0.hpp"
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass4_0
#include "TMPro/KerningTable_--c__DisplayClass4_0.hpp"
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass5_0
#include "TMPro/KerningTable_--c__DisplayClass5_0.hpp"
// Including type: TMPro.KerningTable/TMPro.<>c
#include "TMPro/KerningTable_--c.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
// Including type: TMPro.GlyphValueRecord_Legacy
#include "TMPro/GlyphValueRecord_Legacy.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Collections.Generic.List`1<TMPro.KerningPair> kerningPairs
System::Collections::Generic::List_1<TMPro::KerningPair*>*& TMPro::KerningTable::dyn_kerningPairs() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::dyn_kerningPairs");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "kerningPairs"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::KerningPair*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.KerningTable.AddKerningPair
void TMPro::KerningTable::AddKerningPair() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::AddKerningPair");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddKerningPair", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.KerningTable.AddKerningPair
int TMPro::KerningTable::AddKerningPair(uint first, uint second, float offset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::AddKerningPair");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddKerningPair", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(first), ::il2cpp_utils::ExtractType(second), ::il2cpp_utils::ExtractType(offset)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method, first, second, offset);
}
// Autogenerated method: TMPro.KerningTable.AddGlyphPairAdjustmentRecord
int TMPro::KerningTable::AddGlyphPairAdjustmentRecord(uint first, TMPro::GlyphValueRecord_Legacy firstAdjustments, uint second, TMPro::GlyphValueRecord_Legacy secondAdjustments) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::AddGlyphPairAdjustmentRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "AddGlyphPairAdjustmentRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(first), ::il2cpp_utils::ExtractType(firstAdjustments), ::il2cpp_utils::ExtractType(second), ::il2cpp_utils::ExtractType(secondAdjustments)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<int, false>(___instance_arg, ___internal__method, first, firstAdjustments, second, secondAdjustments);
}
// Autogenerated method: TMPro.KerningTable.RemoveKerningPair
void TMPro::KerningTable::RemoveKerningPair(int left, int right) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::RemoveKerningPair");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "RemoveKerningPair", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(left), ::il2cpp_utils::ExtractType(right)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, left, right);
}
// Autogenerated method: TMPro.KerningTable.RemoveKerningPair
void TMPro::KerningTable::RemoveKerningPair(int index) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::RemoveKerningPair");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "RemoveKerningPair", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(index)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, index);
}
// Autogenerated method: TMPro.KerningTable.SortKerningPairs
void TMPro::KerningTable::SortKerningPairs() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::SortKerningPairs");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SortKerningPairs", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass3_0
#include "TMPro/KerningTable_--c__DisplayClass3_0.hpp"
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.UInt32 first
uint& TMPro::KerningTable::$$c__DisplayClass3_0::dyn_first() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass3_0::dyn_first");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "first"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 second
uint& TMPro::KerningTable::$$c__DisplayClass3_0::dyn_second() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass3_0::dyn_second");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "second"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c__DisplayClass3_0.<AddKerningPair>b__0
bool TMPro::KerningTable::$$c__DisplayClass3_0::$AddKerningPair$b__0(TMPro::KerningPair* item) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass3_0::<AddKerningPair>b__0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<AddKerningPair>b__0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(item)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, item);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass4_0
#include "TMPro/KerningTable_--c__DisplayClass4_0.hpp"
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.UInt32 first
uint& TMPro::KerningTable::$$c__DisplayClass4_0::dyn_first() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass4_0::dyn_first");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "first"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.UInt32 second
uint& TMPro::KerningTable::$$c__DisplayClass4_0::dyn_second() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass4_0::dyn_second");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "second"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c__DisplayClass4_0.<AddGlyphPairAdjustmentRecord>b__0
bool TMPro::KerningTable::$$c__DisplayClass4_0::$AddGlyphPairAdjustmentRecord$b__0(TMPro::KerningPair* item) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass4_0::<AddGlyphPairAdjustmentRecord>b__0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<AddGlyphPairAdjustmentRecord>b__0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(item)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, item);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningTable/TMPro.<>c__DisplayClass5_0
#include "TMPro/KerningTable_--c__DisplayClass5_0.hpp"
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: public System.Int32 left
int& TMPro::KerningTable::$$c__DisplayClass5_0::dyn_left() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass5_0::dyn_left");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "left"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 right
int& TMPro::KerningTable::$$c__DisplayClass5_0::dyn_right() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass5_0::dyn_right");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "right"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c__DisplayClass5_0.<RemoveKerningPair>b__0
bool TMPro::KerningTable::$$c__DisplayClass5_0::$RemoveKerningPair$b__0(TMPro::KerningPair* item) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c__DisplayClass5_0::<RemoveKerningPair>b__0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<RemoveKerningPair>b__0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(item)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<bool, false>(___instance_arg, ___internal__method, item);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.KerningTable/TMPro.<>c
#include "TMPro/KerningTable_--c.hpp"
// Including type: System.Func`2
#include "System/Func_2.hpp"
// Including type: TMPro.KerningPair
#include "TMPro/KerningPair.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public readonly TMPro.KerningTable/TMPro.<>c <>9
TMPro::KerningTable::$$c* TMPro::KerningTable::$$c::_get_$$9() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_get_$$9");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<TMPro::KerningTable::$$c*>("TMPro", "KerningTable/<>c", "<>9")));
}
// Autogenerated static field setter
// Set static field: static public readonly TMPro.KerningTable/TMPro.<>c <>9
void TMPro::KerningTable::$$c::_set_$$9(TMPro::KerningTable::$$c* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_set_$$9");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "KerningTable/<>c", "<>9", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<TMPro.KerningPair,System.UInt32> <>9__7_0
System::Func_2<TMPro::KerningPair*, uint>* TMPro::KerningTable::$$c::_get_$$9__7_0() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_get_$$9__7_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<TMPro::KerningPair*, uint>*>("TMPro", "KerningTable/<>c", "<>9__7_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<TMPro.KerningPair,System.UInt32> <>9__7_0
void TMPro::KerningTable::$$c::_set_$$9__7_0(System::Func_2<TMPro::KerningPair*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_set_$$9__7_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "KerningTable/<>c", "<>9__7_0", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<TMPro.KerningPair,System.UInt32> <>9__7_1
System::Func_2<TMPro::KerningPair*, uint>* TMPro::KerningTable::$$c::_get_$$9__7_1() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_get_$$9__7_1");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<TMPro::KerningPair*, uint>*>("TMPro", "KerningTable/<>c", "<>9__7_1")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<TMPro.KerningPair,System.UInt32> <>9__7_1
void TMPro::KerningTable::$$c::_set_$$9__7_1(System::Func_2<TMPro::KerningPair*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::_set_$$9__7_1");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "KerningTable/<>c", "<>9__7_1", value)));
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c..cctor
void TMPro::KerningTable::$$c::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "KerningTable/<>c", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c.<SortKerningPairs>b__7_0
uint TMPro::KerningTable::$$c::$SortKerningPairs$b__7_0(TMPro::KerningPair* s) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::<SortKerningPairs>b__7_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortKerningPairs>b__7_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(s)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, s);
}
// Autogenerated method: TMPro.KerningTable/TMPro.<>c.<SortKerningPairs>b__7_1
uint TMPro::KerningTable::$$c::$SortKerningPairs$b__7_1(TMPro::KerningPair* s) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::KerningTable::$$c::<SortKerningPairs>b__7_1");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortKerningPairs>b__7_1", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(s)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, s);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_FontUtilities
#include "TMPro/TMP_FontUtilities.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.TMP_FontAsset
#include "TMPro/TMP_FontAsset.hpp"
// Including type: TMPro.TMP_Character
#include "TMPro/TMP_Character.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private System.Collections.Generic.List`1<System.Int32> k_searchedFontAssets
System::Collections::Generic::List_1<int>* TMPro::TMP_FontUtilities::_get_k_searchedFontAssets() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::_get_k_searchedFontAssets");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<System::Collections::Generic::List_1<int>*>("TMPro", "TMP_FontUtilities", "k_searchedFontAssets"));
}
// Autogenerated static field setter
// Set static field: static private System.Collections.Generic.List`1<System.Int32> k_searchedFontAssets
void TMPro::TMP_FontUtilities::_set_k_searchedFontAssets(System::Collections::Generic::List_1<int>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::_set_k_searchedFontAssets");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontUtilities", "k_searchedFontAssets", value));
}
// Autogenerated method: TMPro.TMP_FontUtilities.SearchForCharacter
TMPro::TMP_FontAsset* TMPro::TMP_FontUtilities::SearchForCharacter(TMPro::TMP_FontAsset* font, uint unicode, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::SearchForCharacter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontUtilities", "SearchForCharacter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(font), ::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, font, unicode, byref(character));
}
// Autogenerated method: TMPro.TMP_FontUtilities.SearchForCharacter
TMPro::TMP_FontAsset* TMPro::TMP_FontUtilities::SearchForCharacter(System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>* fonts, uint unicode, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::SearchForCharacter");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontUtilities", "SearchForCharacter", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fonts), ::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, fonts, unicode, byref(character));
}
// Autogenerated method: TMPro.TMP_FontUtilities.SearchForCharacterInternal
TMPro::TMP_FontAsset* TMPro::TMP_FontUtilities::SearchForCharacterInternal(TMPro::TMP_FontAsset* font, uint unicode, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::SearchForCharacterInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontUtilities", "SearchForCharacterInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(font), ::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, font, unicode, byref(character));
}
// Autogenerated method: TMPro.TMP_FontUtilities.SearchForCharacterInternal
TMPro::TMP_FontAsset* TMPro::TMP_FontUtilities::SearchForCharacterInternal(System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>* fonts, uint unicode, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontUtilities::SearchForCharacterInternal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontUtilities", "SearchForCharacterInternal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(fonts), ::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAsset*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, fonts, unicode, byref(character));
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_FontAssetUtilities
#include "TMPro/TMP_FontAssetUtilities.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.TMP_Character
#include "TMPro/TMP_Character.hpp"
// Including type: TMPro.TMP_FontAsset
#include "TMPro/TMP_FontAsset.hpp"
// Including type: TMPro.FontStyles
#include "TMPro/FontStyles.hpp"
// Including type: TMPro.FontWeight
#include "TMPro/FontWeight.hpp"
// Including type: UnityEngine.TextCore.Glyph
#include "UnityEngine/TextCore/Glyph.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static private readonly TMPro.TMP_FontAssetUtilities s_Instance
TMPro::TMP_FontAssetUtilities* TMPro::TMP_FontAssetUtilities::_get_s_Instance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_get_s_Instance");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::TMP_FontAssetUtilities*>("TMPro", "TMP_FontAssetUtilities", "s_Instance"));
}
// Autogenerated static field setter
// Set static field: static private readonly TMPro.TMP_FontAssetUtilities s_Instance
void TMPro::TMP_FontAssetUtilities::_set_s_Instance(TMPro::TMP_FontAssetUtilities* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_set_s_Instance");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAssetUtilities", "s_Instance", value));
}
// Autogenerated static field getter
// Get static field: static private System.Collections.Generic.List`1<System.Int32> k_SearchedFontAssets
System::Collections::Generic::List_1<int>* TMPro::TMP_FontAssetUtilities::_get_k_SearchedFontAssets() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_get_k_SearchedFontAssets");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<System::Collections::Generic::List_1<int>*>("TMPro", "TMP_FontAssetUtilities", "k_SearchedFontAssets"));
}
// Autogenerated static field setter
// Set static field: static private System.Collections.Generic.List`1<System.Int32> k_SearchedFontAssets
void TMPro::TMP_FontAssetUtilities::_set_k_SearchedFontAssets(System::Collections::Generic::List_1<int>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_set_k_SearchedFontAssets");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAssetUtilities", "k_SearchedFontAssets", value));
}
// Autogenerated static field getter
// Get static field: static private System.Boolean k_IsFontEngineInitialized
bool TMPro::TMP_FontAssetUtilities::_get_k_IsFontEngineInitialized() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_get_k_IsFontEngineInitialized");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<bool>("TMPro", "TMP_FontAssetUtilities", "k_IsFontEngineInitialized"));
}
// Autogenerated static field setter
// Set static field: static private System.Boolean k_IsFontEngineInitialized
void TMPro::TMP_FontAssetUtilities::_set_k_IsFontEngineInitialized(bool value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::_set_k_IsFontEngineInitialized");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "TMP_FontAssetUtilities", "k_IsFontEngineInitialized", value));
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.get_instance
TMPro::TMP_FontAssetUtilities* TMPro::TMP_FontAssetUtilities::get_instance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::get_instance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "get_instance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_FontAssetUtilities*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities..cctor
void TMPro::TMP_FontAssetUtilities::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAsset
TMPro::TMP_Character* TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAsset(uint unicode, TMPro::TMP_FontAsset* sourceFontAsset, bool includeFallbacks, TMPro::FontStyles fontStyle, TMPro::FontWeight fontWeight, ByRef<bool> isAlternativeTypeface, ByRef<TMPro::TMP_FontAsset*> fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAsset");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "GetCharacterFromFontAsset", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(sourceFontAsset), ::il2cpp_utils::ExtractType(includeFallbacks), ::il2cpp_utils::ExtractType(fontStyle), ::il2cpp_utils::ExtractType(fontWeight), ::il2cpp_utils::ExtractIndependentType<bool&>(), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_FontAsset*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Character*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, unicode, sourceFontAsset, includeFallbacks, fontStyle, fontWeight, byref(isAlternativeTypeface), byref(fontAsset));
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAsset_Internal
TMPro::TMP_Character* TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAsset_Internal(uint unicode, TMPro::TMP_FontAsset* sourceFontAsset, bool includeFallbacks, TMPro::FontStyles fontStyle, TMPro::FontWeight fontWeight, ByRef<bool> isAlternativeTypeface, ByRef<TMPro::TMP_FontAsset*> fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAsset_Internal");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "GetCharacterFromFontAsset_Internal", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(sourceFontAsset), ::il2cpp_utils::ExtractType(includeFallbacks), ::il2cpp_utils::ExtractType(fontStyle), ::il2cpp_utils::ExtractType(fontWeight), ::il2cpp_utils::ExtractIndependentType<bool&>(), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_FontAsset*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Character*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, unicode, sourceFontAsset, includeFallbacks, fontStyle, fontWeight, byref(isAlternativeTypeface), byref(fontAsset));
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.GetCharacterFromFontAssets
TMPro::TMP_Character* TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAssets(uint unicode, System::Collections::Generic::List_1<TMPro::TMP_FontAsset*>* fontAssets, bool includeFallbacks, TMPro::FontStyles fontStyle, TMPro::FontWeight fontWeight, ByRef<bool> isAlternativeTypeface, ByRef<TMPro::TMP_FontAsset*> fontAsset) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::GetCharacterFromFontAssets");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "GetCharacterFromFontAssets", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(fontAssets), ::il2cpp_utils::ExtractType(includeFallbacks), ::il2cpp_utils::ExtractType(fontStyle), ::il2cpp_utils::ExtractType(fontWeight), ::il2cpp_utils::ExtractIndependentType<bool&>(), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_FontAsset*&>()})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_Character*, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, unicode, fontAssets, includeFallbacks, fontStyle, fontWeight, byref(isAlternativeTypeface), byref(fontAsset));
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.TryGetCharacterFromFontFile
bool TMPro::TMP_FontAssetUtilities::TryGetCharacterFromFontFile(uint unicode, TMPro::TMP_FontAsset* fontAsset, ByRef<TMPro::TMP_Character*> character) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::TryGetCharacterFromFontFile");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "TryGetCharacterFromFontFile", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(unicode), ::il2cpp_utils::ExtractType(fontAsset), ::il2cpp_utils::ExtractIndependentType<TMPro::TMP_Character*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, unicode, fontAsset, byref(character));
}
// Autogenerated method: TMPro.TMP_FontAssetUtilities.TryGetGlyphFromFontFile
bool TMPro::TMP_FontAssetUtilities::TryGetGlyphFromFontFile(uint glyphIndex, TMPro::TMP_FontAsset* fontAsset, ByRef<UnityEngine::TextCore::Glyph*> glyph) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontAssetUtilities::TryGetGlyphFromFontFile");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontAssetUtilities", "TryGetGlyphFromFontFile", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(glyphIndex), ::il2cpp_utils::ExtractType(fontAsset), ::il2cpp_utils::ExtractIndependentType<UnityEngine::TextCore::Glyph*&>()})));
return ::il2cpp_utils::RunMethodThrow<bool, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, glyphIndex, fontAsset, byref(glyph));
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_FontFeatureTable
#include "TMPro/TMP_FontFeatureTable.hpp"
// Including type: TMPro.TMP_FontFeatureTable/TMPro.<>c
#include "TMPro/TMP_FontFeatureTable_--c.hpp"
// Including type: System.Collections.Generic.List`1
#include "System/Collections/Generic/List_1.hpp"
// Including type: TMPro.TMP_GlyphPairAdjustmentRecord
#include "TMPro/TMP_GlyphPairAdjustmentRecord.hpp"
// Including type: System.Collections.Generic.Dictionary`2
#include "System/Collections/Generic/Dictionary_2.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: System.Collections.Generic.List`1<TMPro.TMP_GlyphPairAdjustmentRecord> m_GlyphPairAdjustmentRecords
System::Collections::Generic::List_1<TMPro::TMP_GlyphPairAdjustmentRecord*>*& TMPro::TMP_FontFeatureTable::dyn_m_GlyphPairAdjustmentRecords() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::dyn_m_GlyphPairAdjustmentRecords");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphPairAdjustmentRecords"))->offset;
return *reinterpret_cast<System::Collections::Generic::List_1<TMPro::TMP_GlyphPairAdjustmentRecord*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: System.Collections.Generic.Dictionary`2<System.Int64,TMPro.TMP_GlyphPairAdjustmentRecord> m_GlyphPairAdjustmentRecordLookupDictionary
System::Collections::Generic::Dictionary_2<int64_t, TMPro::TMP_GlyphPairAdjustmentRecord*>*& TMPro::TMP_FontFeatureTable::dyn_m_GlyphPairAdjustmentRecordLookupDictionary() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::dyn_m_GlyphPairAdjustmentRecordLookupDictionary");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphPairAdjustmentRecordLookupDictionary"))->offset;
return *reinterpret_cast<System::Collections::Generic::Dictionary_2<int64_t, TMPro::TMP_GlyphPairAdjustmentRecord*>**>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_FontFeatureTable.get_glyphPairAdjustmentRecords
System::Collections::Generic::List_1<TMPro::TMP_GlyphPairAdjustmentRecord*>* TMPro::TMP_FontFeatureTable::get_glyphPairAdjustmentRecords() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::get_glyphPairAdjustmentRecords");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_glyphPairAdjustmentRecords", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<System::Collections::Generic::List_1<TMPro::TMP_GlyphPairAdjustmentRecord*>*, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontFeatureTable.set_glyphPairAdjustmentRecords
void TMPro::TMP_FontFeatureTable::set_glyphPairAdjustmentRecords(System::Collections::Generic::List_1<TMPro::TMP_GlyphPairAdjustmentRecord*>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::set_glyphPairAdjustmentRecords");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_glyphPairAdjustmentRecords", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_FontFeatureTable.SortGlyphPairAdjustmentRecords
void TMPro::TMP_FontFeatureTable::SortGlyphPairAdjustmentRecords() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::SortGlyphPairAdjustmentRecords");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "SortGlyphPairAdjustmentRecords", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_FontFeatureTable/TMPro.<>c
#include "TMPro/TMP_FontFeatureTable_--c.hpp"
// Including type: System.Func`2
#include "System/Func_2.hpp"
// Including type: TMPro.TMP_GlyphPairAdjustmentRecord
#include "TMPro/TMP_GlyphPairAdjustmentRecord.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public readonly TMPro.TMP_FontFeatureTable/TMPro.<>c <>9
TMPro::TMP_FontFeatureTable::$$c* TMPro::TMP_FontFeatureTable::$$c::_get_$$9() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_get_$$9");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<TMPro::TMP_FontFeatureTable::$$c*>("TMPro", "TMP_FontFeatureTable/<>c", "<>9")));
}
// Autogenerated static field setter
// Set static field: static public readonly TMPro.TMP_FontFeatureTable/TMPro.<>c <>9
void TMPro::TMP_FontFeatureTable::$$c::_set_$$9(TMPro::TMP_FontFeatureTable::$$c* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_set_$$9");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontFeatureTable/<>c", "<>9", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<TMPro.TMP_GlyphPairAdjustmentRecord,System.UInt32> <>9__6_0
System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>* TMPro::TMP_FontFeatureTable::$$c::_get_$$9__6_0() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_get_$$9__6_0");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>*>("TMPro", "TMP_FontFeatureTable/<>c", "<>9__6_0")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<TMPro.TMP_GlyphPairAdjustmentRecord,System.UInt32> <>9__6_0
void TMPro::TMP_FontFeatureTable::$$c::_set_$$9__6_0(System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_set_$$9__6_0");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontFeatureTable/<>c", "<>9__6_0", value)));
}
// Autogenerated static field getter
// Get static field: static public System.Func`2<TMPro.TMP_GlyphPairAdjustmentRecord,System.UInt32> <>9__6_1
System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>* TMPro::TMP_FontFeatureTable::$$c::_get_$$9__6_1() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_get_$$9__6_1");
return THROW_UNLESS((il2cpp_utils::GetFieldValue<System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>*>("TMPro", "TMP_FontFeatureTable/<>c", "<>9__6_1")));
}
// Autogenerated static field setter
// Set static field: static public System.Func`2<TMPro.TMP_GlyphPairAdjustmentRecord,System.UInt32> <>9__6_1
void TMPro::TMP_FontFeatureTable::$$c::_set_$$9__6_1(System::Func_2<TMPro::TMP_GlyphPairAdjustmentRecord*, uint>* value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::_set_$$9__6_1");
THROW_UNLESS((il2cpp_utils::SetFieldValue("TMPro", "TMP_FontFeatureTable/<>c", "<>9__6_1", value)));
}
// Autogenerated method: TMPro.TMP_FontFeatureTable/TMPro.<>c..cctor
void TMPro::TMP_FontFeatureTable::$$c::_cctor() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::.cctor");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_FontFeatureTable/<>c", ".cctor", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
::il2cpp_utils::RunMethodThrow<void, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method);
}
// Autogenerated method: TMPro.TMP_FontFeatureTable/TMPro.<>c.<SortGlyphPairAdjustmentRecords>b__6_0
uint TMPro::TMP_FontFeatureTable::$$c::$SortGlyphPairAdjustmentRecords$b__6_0(TMPro::TMP_GlyphPairAdjustmentRecord* s) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::<SortGlyphPairAdjustmentRecords>b__6_0");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortGlyphPairAdjustmentRecords>b__6_0", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(s)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, s);
}
// Autogenerated method: TMPro.TMP_FontFeatureTable/TMPro.<>c.<SortGlyphPairAdjustmentRecords>b__6_1
uint TMPro::TMP_FontFeatureTable::$$c::$SortGlyphPairAdjustmentRecords$b__6_1(TMPro::TMP_GlyphPairAdjustmentRecord* s) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_FontFeatureTable::$$c::<SortGlyphPairAdjustmentRecords>b__6_1");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "<SortGlyphPairAdjustmentRecords>b__6_1", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(s)})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<uint, false>(___instance_arg, ___internal__method, s);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.FontFeatureLookupFlags
#include "TMPro/FontFeatureLookupFlags.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated static field getter
// Get static field: static public TMPro.FontFeatureLookupFlags IgnoreLigatures
TMPro::FontFeatureLookupFlags TMPro::FontFeatureLookupFlags::_get_IgnoreLigatures() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontFeatureLookupFlags::_get_IgnoreLigatures");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::FontFeatureLookupFlags>("TMPro", "FontFeatureLookupFlags", "IgnoreLigatures"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.FontFeatureLookupFlags IgnoreLigatures
void TMPro::FontFeatureLookupFlags::_set_IgnoreLigatures(TMPro::FontFeatureLookupFlags value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontFeatureLookupFlags::_set_IgnoreLigatures");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "FontFeatureLookupFlags", "IgnoreLigatures", value));
}
// Autogenerated static field getter
// Get static field: static public TMPro.FontFeatureLookupFlags IgnoreSpacingAdjustments
TMPro::FontFeatureLookupFlags TMPro::FontFeatureLookupFlags::_get_IgnoreSpacingAdjustments() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontFeatureLookupFlags::_get_IgnoreSpacingAdjustments");
return THROW_UNLESS(il2cpp_utils::GetFieldValue<TMPro::FontFeatureLookupFlags>("TMPro", "FontFeatureLookupFlags", "IgnoreSpacingAdjustments"));
}
// Autogenerated static field setter
// Set static field: static public TMPro.FontFeatureLookupFlags IgnoreSpacingAdjustments
void TMPro::FontFeatureLookupFlags::_set_IgnoreSpacingAdjustments(TMPro::FontFeatureLookupFlags value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontFeatureLookupFlags::_set_IgnoreSpacingAdjustments");
THROW_UNLESS(il2cpp_utils::SetFieldValue("TMPro", "FontFeatureLookupFlags", "IgnoreSpacingAdjustments", value));
}
// Autogenerated instance field getter
// Get instance field: public System.Int32 value__
int& TMPro::FontFeatureLookupFlags::dyn_value__() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::FontFeatureLookupFlags::dyn_value__");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "value__"))->offset;
return *reinterpret_cast<int*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_GlyphValueRecord
#include "TMPro/TMP_GlyphValueRecord.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.Single m_XPlacement
float& TMPro::TMP_GlyphValueRecord::dyn_m_XPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::dyn_m_XPlacement");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_XPlacement"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_YPlacement
float& TMPro::TMP_GlyphValueRecord::dyn_m_YPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::dyn_m_YPlacement");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_YPlacement"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_XAdvance
float& TMPro::TMP_GlyphValueRecord::dyn_m_XAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::dyn_m_XAdvance");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_XAdvance"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private System.Single m_YAdvance
float& TMPro::TMP_GlyphValueRecord::dyn_m_YAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::dyn_m_YAdvance");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_YAdvance"))->offset;
return *reinterpret_cast<float*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.get_xPlacement
float TMPro::TMP_GlyphValueRecord::get_xPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::get_xPlacement");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_xPlacement", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.set_xPlacement
void TMPro::TMP_GlyphValueRecord::set_xPlacement(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::set_xPlacement");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_xPlacement", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.get_yPlacement
float TMPro::TMP_GlyphValueRecord::get_yPlacement() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::get_yPlacement");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_yPlacement", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.set_yPlacement
void TMPro::TMP_GlyphValueRecord::set_yPlacement(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::set_yPlacement");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_yPlacement", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.get_xAdvance
float TMPro::TMP_GlyphValueRecord::get_xAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::get_xAdvance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_xAdvance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.set_xAdvance
void TMPro::TMP_GlyphValueRecord::set_xAdvance(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::set_xAdvance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_xAdvance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.get_yAdvance
float TMPro::TMP_GlyphValueRecord::get_yAdvance() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::get_yAdvance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_yAdvance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<float, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.set_yAdvance
void TMPro::TMP_GlyphValueRecord::set_yAdvance(float value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::set_yAdvance");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_yAdvance", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphValueRecord.op_Addition
TMPro::TMP_GlyphValueRecord TMPro::operator+(const TMPro::TMP_GlyphValueRecord& a, const TMPro::TMP_GlyphValueRecord& b) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphValueRecord::op_Addition");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod("TMPro", "TMP_GlyphValueRecord", "op_Addition", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(a), ::il2cpp_utils::ExtractType(b)})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_GlyphValueRecord, false>(static_cast<Il2CppClass*>(nullptr), ___internal__method, a, b);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_GlyphAdjustmentRecord
#include "TMPro/TMP_GlyphAdjustmentRecord.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private System.UInt32 m_GlyphIndex
uint& TMPro::TMP_GlyphAdjustmentRecord::dyn_m_GlyphIndex() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::dyn_m_GlyphIndex");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphIndex"))->offset;
return *reinterpret_cast<uint*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_GlyphValueRecord m_GlyphValueRecord
TMPro::TMP_GlyphValueRecord& TMPro::TMP_GlyphAdjustmentRecord::dyn_m_GlyphValueRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::dyn_m_GlyphValueRecord");
auto ___internal__instance = *this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_GlyphValueRecord"))->offset;
return *reinterpret_cast<TMPro::TMP_GlyphValueRecord*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_GlyphAdjustmentRecord.get_glyphIndex
uint TMPro::TMP_GlyphAdjustmentRecord::get_glyphIndex() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::get_glyphIndex");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_glyphIndex", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<uint, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphAdjustmentRecord.set_glyphIndex
void TMPro::TMP_GlyphAdjustmentRecord::set_glyphIndex(uint value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::set_glyphIndex");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_glyphIndex", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphAdjustmentRecord.get_glyphValueRecord
TMPro::TMP_GlyphValueRecord TMPro::TMP_GlyphAdjustmentRecord::get_glyphValueRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::get_glyphValueRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "get_glyphValueRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_GlyphValueRecord, false>(*this, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphAdjustmentRecord.set_glyphValueRecord
void TMPro::TMP_GlyphAdjustmentRecord::set_glyphValueRecord(TMPro::TMP_GlyphValueRecord value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphAdjustmentRecord::set_glyphValueRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(*this, "set_glyphValueRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
::il2cpp_utils::RunMethodThrow<void, false>(*this, ___internal__method, value);
}
// Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: TMPro.TMP_GlyphPairAdjustmentRecord
#include "TMPro/TMP_GlyphPairAdjustmentRecord.hpp"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#include "extern/beatsaber-hook/shared/utils/utils.h"
// Completed includes
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_GlyphAdjustmentRecord m_FirstAdjustmentRecord
TMPro::TMP_GlyphAdjustmentRecord& TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_FirstAdjustmentRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_FirstAdjustmentRecord");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FirstAdjustmentRecord"))->offset;
return *reinterpret_cast<TMPro::TMP_GlyphAdjustmentRecord*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.TMP_GlyphAdjustmentRecord m_SecondAdjustmentRecord
TMPro::TMP_GlyphAdjustmentRecord& TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_SecondAdjustmentRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_SecondAdjustmentRecord");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_SecondAdjustmentRecord"))->offset;
return *reinterpret_cast<TMPro::TMP_GlyphAdjustmentRecord*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated instance field getter
// Get instance field: private TMPro.FontFeatureLookupFlags m_FeatureLookupFlags
TMPro::FontFeatureLookupFlags& TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_FeatureLookupFlags() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::dyn_m_FeatureLookupFlags");
auto ___internal__instance = this;
static auto ___internal__field__offset = THROW_UNLESS(il2cpp_utils::FindField(___internal__instance, "m_FeatureLookupFlags"))->offset;
return *reinterpret_cast<TMPro::FontFeatureLookupFlags*>(reinterpret_cast<char*>(this) + ___internal__field__offset);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.get_firstAdjustmentRecord
TMPro::TMP_GlyphAdjustmentRecord TMPro::TMP_GlyphPairAdjustmentRecord::get_firstAdjustmentRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::get_firstAdjustmentRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_firstAdjustmentRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_GlyphAdjustmentRecord, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.set_firstAdjustmentRecord
void TMPro::TMP_GlyphPairAdjustmentRecord::set_firstAdjustmentRecord(TMPro::TMP_GlyphAdjustmentRecord value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::set_firstAdjustmentRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_firstAdjustmentRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.get_secondAdjustmentRecord
TMPro::TMP_GlyphAdjustmentRecord TMPro::TMP_GlyphPairAdjustmentRecord::get_secondAdjustmentRecord() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::get_secondAdjustmentRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_secondAdjustmentRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::TMP_GlyphAdjustmentRecord, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.set_secondAdjustmentRecord
void TMPro::TMP_GlyphPairAdjustmentRecord::set_secondAdjustmentRecord(TMPro::TMP_GlyphAdjustmentRecord value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::set_secondAdjustmentRecord");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_secondAdjustmentRecord", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.get_featureLookupFlags
TMPro::FontFeatureLookupFlags TMPro::TMP_GlyphPairAdjustmentRecord::get_featureLookupFlags() {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::get_featureLookupFlags");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "get_featureLookupFlags", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{})));
auto ___instance_arg = this;
return ::il2cpp_utils::RunMethodThrow<TMPro::FontFeatureLookupFlags, false>(___instance_arg, ___internal__method);
}
// Autogenerated method: TMPro.TMP_GlyphPairAdjustmentRecord.set_featureLookupFlags
void TMPro::TMP_GlyphPairAdjustmentRecord::set_featureLookupFlags(TMPro::FontFeatureLookupFlags value) {
static auto ___internal__logger = ::Logger::get().WithContext("TMPro::TMP_GlyphPairAdjustmentRecord::set_featureLookupFlags");
static auto* ___internal__method = THROW_UNLESS((::il2cpp_utils::FindMethod(this, "set_featureLookupFlags", std::vector<Il2CppClass*>{}, ::std::vector<const Il2CppType*>{::il2cpp_utils::ExtractType(value)})));
auto ___instance_arg = this;
::il2cpp_utils::RunMethodThrow<void, false>(___instance_arg, ___internal__method, value);
}
|
#include "yondergui.h"
#include "ui_yondergui.h"
extern QString NAME;
extern QString VERSION;
extern QString ACTION_KEY;
extern QString AUTHOR;
extern QString WEBADDRESS;
extern QString ACCEPTED_MIMETYPES;
YonderGui::YonderGui(QSplashScreen *splash_screen, QWidget *parent) : QMainWindow(parent), ui(new Ui::YonderGui) {
QSettings::setDefaultFormat(QSettings::IniFormat);
QSettings settings;
// settings.sync();
core = new YonderCore(this);
connect(core, &YonderCore::updateAvailable, this, &YonderGui::openUpdater);
this->splash_screen = splash_screen;
// Setup Ui
ui->setupUi(this);
start_frame = new FrameStart(this);
ui->frame_wrapper->addWidget(start_frame);
generator_frame = new FrameGenerator(core, this);
ui->frame_wrapper->addWidget(generator_frame);
editor_frame = new FrameEditor(core->media, this);
ui->frame_wrapper->addWidget(editor_frame);
resource_frame = new FrameResourceBrowser(this);
ui->frame_wrapper->addWidget(resource_frame);
configure_frame = new FrameConfigure(this);
ui->frame_wrapper->addWidget(configure_frame);
help_frame = new FrameHelp(this);
ui->frame_wrapper->addWidget(help_frame);
ui->frame_sidebar->addTab(start_frame, tr("Start"), tr("Ctrl+P"));
ui->frame_sidebar->addTab(generator_frame, tr("Generate"), tr("Ctrl+G"));
ui->frame_sidebar->addTab(editor_frame, tr("Edit"), tr("Ctrl+E"));
ui->frame_sidebar->addTab(resource_frame, tr("Resources"), tr("Ctrl+R"));
ui->frame_sidebar->addTab(configure_frame, tr("Configure"), tr("Ctrl+C"));
ui->frame_sidebar->addTab(help_frame, tr("Help"), tr("Ctrl+H"));
// only enabled after project is loaded. Default to start tab
ui->frame_sidebar->setTabEnabled(1, false);
ui->frame_sidebar->setTabEnabled(2, false);
ui->frame_sidebar->setActive(0);
// Quit immediately if clicked close. Open browser if clicked on webapp button
connect(ui->frame_sidebar->quit_button, &SolidTabButton::clicked, this, &YonderGui::close);
connect(ui->frame_sidebar->webapp_running, &SolidTabButton::clicked, this, &YonderGui::openWebappUrl);
connect(core, &YonderCore::managerLoading, this, &YonderGui::setSplashScreen);
connect(core, &YonderCore::projectLoading, this, &YonderGui::stateLoading);
connect(core, &YonderCore::projectLoadingFailed, this, &YonderGui::stateLoadingFailed);
connect(core, &YonderCore::projectLoaded, this, &YonderGui::stateLoaded);
connect(core, &YonderCore::projectRefreshed, this, &YonderGui::stateRefreshed);
connect(core, &YonderCore::webappStarted, this, &YonderGui::webappStarted);
connect(core, &YonderCore::webappStopped, this, &YonderGui::webappStopped);
connect(generator_frame, SIGNAL(deactivated()), core, SLOT(projectStop()));
connect(generator_frame, SIGNAL(activated()), core, SLOT(projectRefresh()));
// Load project setProject returns to default state if no path is set.
connect(start_frame, SIGNAL(acceptedProjectFolder(QString)), core, SLOT(projectLoad(QString)));
core->projectLoad(settings.value("Settings/last_project_path", "").toString());
// Set style. Signals for changed settings while running
applyStylesheet();
connect(configure_frame, &FrameConfigure::deactivated, this, &YonderGui::applyStylesheet);
this->setWindowTitle(QString("%1 %2").arg(QApplication::instance()->applicationName(), VERSION));
this->restoreGeometry(settings.value("MainWindow/geometry").toByteArray());
}
/*!
* \brief YonderGui::stateLoading
* Set ui to state for loading a project
*/
void YonderGui::stateLoading() {
ui->frame_sidebar->setTabEnabled(1, false);
ui->frame_sidebar->setTabEnabled(2, false);
ui->frame_sidebar->progress_bar->show(); //repair signals
}
/*!
* \brief YonderGui::stateLoadingFailed
* Set ui to state if loading a project failed
*/
void YonderGui::stateLoadingFailed() {
ui->frame_sidebar->setActive(0);
}
/*!
* \brief YonderGui::stateLoaded
* Set ui to state right after a project finished loading
*/
void YonderGui::stateLoaded() {
ui->frame_sidebar->setTabEnabled(1, true);
ui->frame_sidebar->setTabEnabled(2, true);
start_frame->hide(); // weird behaviour fix
ui->frame_sidebar->setActive(1);
ui->frame_sidebar->progress_bar->hide();
editor_frame->setManagers(core->atmosphere, core->sfx, core->music, core->singleshot, core->hotkeys);
}
void YonderGui::stateRefreshed() {
generator_frame->refreshUi();
}
/*!
* \brief YonderGui::setSplashScreen
* \param message
* Update splash screen on first load
*/
void YonderGui::setSplashScreen(QString message) {
splash_screen->showMessage(tr("Loading %1").arg(message), 0x0041, Qt::white);
}
/*!
* \brief YonderGui::webappStarted
* \param url
* Update ui after webapp started
*/
void YonderGui::webappStarted(QUrl url) {
this->webapp_url = url;
ui->frame_sidebar->webapp_running->setToolTip(tr("Open webapp in browser\nAddress:%1").arg(webapp_url.toString()));
ui->frame_sidebar->webapp_running->show();
}
/*!
* \brief YonderGui::webappStopped
* Update ui after webapp stopped
*/
void YonderGui::webappStopped() {
ui->frame_sidebar->webapp_running->hide();
}
/*!
* \brief YonderGui::applyStylesheet
* Apply fancy stylesheet if it is acitvated in preferences, otherwise set default desktop style
*/
void YonderGui::applyStylesheet() {
QSettings settings;
if(settings.value("Settings/custom_style", 1).toBool()) {
QFile stylesheet(":application/style.css");
QFontDatabase::addApplicationFont(":application/ostrich_regular.ttf");
stylesheet.open(QIODevice::ReadOnly);
setStyleSheet(QString(stylesheet.readAll()));
stylesheet.close();
ui->frame_sidebar->applyStylesheet(true);
} else {
setStyleSheet(QString());
ui->frame_sidebar->applyStylesheet(false);
}
}
/*!
* \brief YonderGui::openWebappUrl
* Open the webapp in the default browser
*/
void YonderGui::openWebappUrl() {
QDesktopServices::openUrl(webapp_url);
}
/*!
* \brief YonderGui::openOnlineHelp
* Open help url in default browser.
*/
void YonderGui::openOnlineHelp() {
QDesktopServices::openUrl(QUrl(WEBADDRESS));
}
/*!
* \brief YonderGui::openUpdater
* Launch updating mechanism. Right now it's only a messagebox.
*/
void YonderGui::openUpdater() {
QMessageBox::information(this, tr("New version available"), tr("<p><b>A new version of %1 is available!</b></p><p>Visit <a href=\"%2\">%2</a> to download the recent version.</p>").arg(NAME, WEBADDRESS), QMessageBox::Close);
}
YonderGui::~YonderGui()
{
qDebug() << "Yonder is shutting down!";
QSettings settings;
settings.setValue("MainWindow/geometry", this->saveGeometry());
settings.sync();
delete ui;
qDebug() << "So this is goodbye";
}
|
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef KONAN_NO_EXTERNAL_CALLS_CHECKER
#include <string_view>
#include <cstring>
#include "KAssert.h"
#include "Memory.h"
#include "Porting.h"
#include "ThreadData.hpp"
#include "ThreadRegistry.hpp"
#include "ExecFormat.h"
#include "std_support/UnorderedSet.hpp"
using namespace kotlin;
// this values will be substituted by compiler
extern "C" const void **Kotlin_callsCheckerKnownFunctions = nullptr;
extern "C" int Kotlin_callsCheckerKnownFunctionsCount = 0;
extern "C" const char* Kotlin_callsCheckerGoodFunctionNames[] = {
"\x01_close",
"\x01_mprotect",
"close",
"mprotect",
"_ZL15_objc_terminatev", // _objc_terminate()
"_ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm", // std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned long, unsigned long) const
"_ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEyyy", // std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned long long, unsigned long long, unsigned long long) const
"_ZNSaIcED2Ev", // std::allocator<char>::~allocator()
"_ZNSt13exception_ptrC1ERKS_", // std::exception_ptr::exception_ptr(std::exception_ptr const&)
"_ZNSt13exception_ptrD1Ev", // std::exception_ptr::~exception_ptr()
"_ZNSt15__exception_ptr13exception_ptrC1ERKS0_", // std::__exception_ptr::exception_ptr::exception_ptr(std::__exception_ptr::exception_ptr const&)
"_ZNSt15__exception_ptr13exception_ptrD1Ev", // std::__exception_ptr::exception_ptr::~exception_ptr()
"_ZNSt18condition_variableD1Ev", // std::condition_variable::~condition_variable()
"_ZNSt3__112__next_primeEm", // std::__1::__next_prime(unsigned long)
"_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev", // std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()
"_ZNSt3__16chrono12steady_clock3nowEv", // std::__1::chrono::steady_clock::now()
"_ZNSt3__19to_stringEi", // std::__1::to_string(int)
"_ZNSt6chrono3_V212steady_clock3nowEv", // std::chrono::_V2::steady_clock::now()
"_ZNSt8__detail15_List_node_base7_M_hookEPS0_", // std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
"_ZNSt8__detail15_List_node_base9_M_unhookEv", // std::__detail::_List_node_base::_M_unhook()
"_ZNSt9exceptionD2Ev", // std::exception::~exception()
"_ZSt17current_exceptionv", // std::current_exception()
"_ZSt17rethrow_exceptionSt13exception_ptr", // std::rethrow_exception(std::exception_ptr)
"_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_", // std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)
"_ZSt9terminatev", // std::terminate()
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev", // std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
"_ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE", // std::rethrow_exception(std::__exception_ptr::exception_ptr)
"_ZSt28_Rb_tree_rebalance_for_erasePSt18_Rb_tree_node_baseRS_", // std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)
"_ZN9__gnu_cxx27__verbose_terminate_handlerEv", // __gnu_cxx::__verbose_terminate_handler()
"_Znwm", // new
"_Znwy", // operator new(unsigned long long)
"_ZdlPv", // delete
"_ZNSt3__16thread20hardware_concurrencyEv", // std::__1::thread::hardware_concurrency()
"_ZNSt6thread20hardware_concurrencyEv", // std::thread::hardware_concurrency()
"__mingw_vsnprintf",
"__cxa_allocate_exception",
"__cxa_begin_catch",
"__cxa_end_catch",
"__cxa_throw",
"__cxa_rethrow",
"__memset_chk",
"abort",
"acos",
"acosf",
"acosh",
"acoshf",
"asin",
"asinf",
"asinh",
"asinhf",
"atan",
"atanf",
"atan2",
"atan2f",
"atanf",
"atanh",
"atanhf",
"calloc",
"clock_gettime",
"cos",
"cosf",
"cosh",
"cosh",
"coshf",
"coshf",
"exit",
"exp",
"expf",
"expm1",
"expm1f",
"exp10",
"exp10f",
"__exp10",
"__exp10f",
"free",
"getrusage",
"hypot",
"hypotf",
"isinf",
"isnan",
"log",
"logf",
"log1p",
"log1pf",
"log10",
"log10f",
"log2",
"log2f",
"malloc",
"memcmp",
"memmem",
"mmap",
"\x01_mmap",
"munmap",
"\x01_munmap",
"nextafter",
"nextafterf",
"pow",
"powf",
"remainder",
"remainderf",
"sin",
"sinf",
"sinh",
"sinhf",
"snprintf",
"sqrt",
"sqrtf",
"strcmp",
"strlen",
"strnlen",
"tan",
"tanf",
"tanh",
"tanhf",
"vsnprintf",
"bcmp",
"getenv",
"setenv",
"unsetenv",
"dispatch_once",
"pthread_equal",
"pthread_main_np",
"pthread_self",
"+[NSMethodSignature signatureWithObjCTypes:]",
"+[NSNull null]",
"+[NSObject allocWithZone:]",
"+[NSObject class]",
"+[NSObject conformsToProtocol:]",
"+[NSObject isKindOfClass:]",
"+[NSObject new]",
"+[NSString stringWithFormat:]",
"+[NSString stringWithUTF8String:]",
"-[NSPlaceholderValue initWithBytes:objCType:]",
"-[NSException name]",
"-[NSException reason]",
"-[NSMethodSignature getArgumentTypeAtIndex:]",
"-[NSMethodSignature methodReturnType]",
"-[NSMethodSignature numberOfArguments]",
"-[NSObject conformsToProtocol:]",
"-[NSObject init]",
"-[NSObject isKindOfClass:]",
"-[NSObject retain]",
"-[NSPlaceholderString initWithBytes:length:encoding:]",
"-[NSPlaceholderString initWithBytesNoCopy:length:encoding:freeWhenDone:]",
"-[NSValue init]",
"-[NSValue pointerValue]",
"-[__NSCFBoolean boolValue]",
"-[__NSCFNumber doubleValue]",
"-[__NSCFNumber floatValue]",
"-[__NSCFNumber intValue]",
"-[__NSCFNumber longLongValue]",
"-[__NSCFNumber objCType]",
"-[__NSCFString isEqual:]",
"CFStringCreateCopy",
"CFStringGetCharacters",
"CFStringGetLength",
"_Block_object_assign",
"class_addIvar",
"class_addMethod",
"class_addProtocol",
"class_copyMethodList",
"class_copyProtocolList",
"class_getClassMethod",
"class_getInstanceMethod",
"class_getInstanceVariable",
"class_getName",
"class_getSuperclass",
"class_isMetaClass",
"ivar_getOffset",
"method_getName",
"method_getTypeEncoding",
"objc_alloc",
"objc_alloc_init",
"objc_allocateClassPair",
"objc_autorelease",
"objc_autoreleasePoolPush",
"objc_autoreleaseReturnValue",
"objc_getAssociatedObject",
"objc_getClass",
"objc_getProtocol",
"objc_lookUpClass",
"objc_registerClassPair",
"objc_retain",
"objc_retainAutoreleaseReturnValue",
"objc_retainBlock",
"objc_setAssociatedObject",
"objc_storeWeak",
"object_getClass",
"object_isClass",
"protocol_copyProtocolList",
"protocol_getMethodDescription",
"protocol_getName",
"sel_registerName",
"llvm.assume",
"llvm.ceil.*",
"llvm.copysign.*",
"llvm.cos.*",
"llvm.ctlz.*",
"llvm.ctpop.*",
"llvm.cttz.*",
"llvm.dbg.*",
"llvm.eh.typeid.for",
"llvm.exp.*",
"llvm.fabs.*",
"llvm.fabs.*",
"llvm.floor.*",
"llvm.instrprof.*",
"llvm.lifetime.*",
"llvm.log.*",
"llvm.log10.*",
"llvm.log2.*",
"llvm.memcpy.*",
"llvm.memmove.*",
"llvm.memset.*",
"llvm.objc.autorelease",
"llvm.objc.autoreleaseReturnValue",
"llvm.objc.retain",
// Not used in Runnable state, but this would be ok.
// If we don't include it to the good functions list, the code generator will emit redundant state check at the callsite,
// and this would ruin the code: the state check would be inserted between retainAutoreleasedReturnValue and the actual call
// producing "autoreleased return value", so the latter won't be able to detect the former, and the autorelease elimination
// won't work.
"llvm.objc.retainAutoreleasedReturnValue",
"llvm.objectsize.*",
"llvm.pow.*",
"llvm.rint.*",
"llvm.sin.*",
"llvm.sqrt.*",
"llvm.umul.*",
"llvm.va_end",
"llvm.va_start",
"llvm.x86.avx2.*",
"llvm.x86.ssse3.*",
"llvm.x86.sse2.*",
"llvm.uadd.sat.*",
"llvm.aarch64.neon.*",
"SetConsoleOutputCP",
"SetConsoleCP",
"QueryPerformanceCounter",
"VirtualAlloc",
"FlsSetValue",
"GetCurrentProcess",
"FlsFree",
"K32GetProcessMemoryInfo",
"VirtualFree",
"madvise",
};
namespace {
class KnownFunctionChecker {
public:
KnownFunctionChecker() {
for (int i = 0; i < Kotlin_callsCheckerKnownFunctionsCount; i++) {
known_functions_.insert(Kotlin_callsCheckerKnownFunctions[i]);
}
std::copy(std::begin(Kotlin_callsCheckerGoodFunctionNames), std::end(Kotlin_callsCheckerGoodFunctionNames), std::begin(good_names_copy_));
std::sort(std::begin(good_names_copy_), std::end(good_names_copy_));
}
bool isKnown(const void* fun) const noexcept {
return known_functions_.find(fun) != known_functions_.end();
}
bool isSafeByName(std::string_view name) const noexcept {
auto it = std::lower_bound(std::begin(good_names_copy_), std::end(good_names_copy_), name);
auto check = [&](std::string_view banned) {
if (banned.back() != '*') {
return banned == name;
}
return name.substr(0, banned.size() - 1) == banned.substr(0, banned.size() - 1);
};
if (it != std::end(good_names_copy_) && check(*it)) {
return true;
}
if (it != std::begin(good_names_copy_) && check(*std::prev(it))) {
return true;
}
return false;
}
~KnownFunctionChecker() = delete;
private:
std_support::unordered_set<const void*> known_functions_;
std::string_view good_names_copy_[sizeof(Kotlin_callsCheckerGoodFunctionNames) / sizeof(Kotlin_callsCheckerGoodFunctionNames[0])];
};
[[clang::no_destroy]] const KnownFunctionChecker checker;
constexpr int MSG_SEND_TO_NULL = -1;
constexpr int CALLED_LLVM_BUILTIN = -2;
}
/**
* This function calls is inserted to llvm bitcode automatically, so it can be called almost anywhre.
*
* Although, function itself is excluded, it can call itself indirectly, from other called functions.
* Because of this, thread_local guard is used to avoid recursive calls.
*
* Unfortunately, function can be called in thread constructors or destructors, where thread local data
* should not be accessed. So before guard checking we need to check is thread destructor is running,
* which requires special handling of recursive calls from this check.
*/
extern "C" RUNTIME_NOTHROW RUNTIME_NODEBUG void Kotlin_mm_checkStateAtExternalFunctionCall(const char* caller, const char *callee, const void *calleePtr) noexcept {
if (reinterpret_cast<int64_t>(calleePtr) == MSG_SEND_TO_NULL) return; // objc_sendMsg called on nil, it does nothing, so it's ok
if (konan::isOnThreadExitNotSetOrAlreadyStarted()) return;
static thread_local bool recursiveCallGuard = false;
if (recursiveCallGuard) return;
if (!mm::ThreadRegistry::Instance().IsCurrentThreadRegistered()) return;
struct unlockGuard {
unlockGuard() { recursiveCallGuard = true; }
~unlockGuard() { recursiveCallGuard = false; }
} guard;
auto actualState = GetThreadState();
if (actualState == ThreadState::kNative) {
return;
}
if (reinterpret_cast<int64_t>(calleePtr) != CALLED_LLVM_BUILTIN && checker.isKnown(calleePtr)) {
return;
}
char buf[200];
if (callee == nullptr) {
ptrdiff_t unused;
if (AddressToSymbol(calleePtr, buf, sizeof(buf), unused)) {
callee = buf;
} else {
callee = "unknown function";
}
}
if (checker.isSafeByName(callee)) {
return;
}
RuntimeFail("Expected kNative thread state at call of function %s by function %s", callee, caller);
}
#endif // KONAN_NO_EXTERNAL_CALLS_CHECKER
|
/*
SoLoud audio engine
Copyright (c) 2020 Jari Komppa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
*/
#include <string.h>
#include "soloud.h"
#include "soloud_misc.h"
#include "soloud_robotizefilter.h"
namespace SoLoud
{
RobotizeFilterInstance::RobotizeFilterInstance(RobotizeFilter *aParent)
{
mParent = aParent;
initParams(3);
mParam[FREQ] = aParent->mFreq;
mParam[WAVE] = (float)aParent->mWave;
}
void RobotizeFilterInstance::filterChannel(float *aBuffer, unsigned int aSamples, float aSamplerate, time aTime, unsigned int aChannel, unsigned int aChannels)
{
unsigned int i;
int period = (int)(aSamplerate / mParam[FREQ]);
int start = (int)(aTime * aSamplerate) % period;
for (i = 0; i < aSamples; i++)
{
float s = aBuffer[i];
float wpos = ((start + i) % period) / (float)period;
s *= SoLoud::Misc::generateWaveform((int)mParam[WAVE], wpos) + 0.5f;
aBuffer[i] += (s - aBuffer[i]) * mParam[WET];
}
}
RobotizeFilter::RobotizeFilter()
{
mFreq = 30;
mWave = 0;
}
void RobotizeFilter::setParams(float aFreq, int aWaveform)
{
mFreq = aFreq;
mWave = aWaveform;
}
int RobotizeFilter::getParamCount()
{
return 3;
}
const char* RobotizeFilter::getParamName(unsigned int aParamIndex)
{
if (aParamIndex > 2)
return 0;
const char* names[3] = {
"Wet",
"Frequency",
"Waveform"
};
return names[aParamIndex];
}
unsigned int RobotizeFilter::getParamType(unsigned int aParamIndex)
{
if (aParamIndex == WAVE)
return INT_PARAM;
return FLOAT_PARAM;
}
float RobotizeFilter::getParamMax(unsigned int aParamIndex)
{
if (aParamIndex == WAVE)
return 6;
if (aParamIndex == FREQ)
return 100;
return 1;
}
float RobotizeFilter::getParamMin(unsigned int aParamIndex)
{
if (aParamIndex == FREQ)
return 0.1f;
return 0;
}
FilterInstance *RobotizeFilter::createInstance()
{
return new RobotizeFilterInstance(this);
}
}
|
#ifndef BOOST_MPL_AT_FWD_HPP_INCLUDED
#define BOOST_MPL_AT_FWD_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id: at_fwd.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
// $Date: 2008-10-11 10:19:02 +0400 (Ñá, 11 îêò 2008) $
// $Revision: 49267 $
namespace boost { namespace mpl {
template< typename Tag > struct at_impl;
template< typename Sequence, typename N > struct at;
}}
#endif // BOOST_MPL_AT_FWD_HPP_INCLUDED
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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 <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/mediapackage/MediaPackageClient.h>
#include <aws/mediapackage/MediaPackageEndpoint.h>
#include <aws/mediapackage/MediaPackageErrorMarshaller.h>
#include <aws/mediapackage/model/CreateChannelRequest.h>
#include <aws/mediapackage/model/CreateOriginEndpointRequest.h>
#include <aws/mediapackage/model/DeleteChannelRequest.h>
#include <aws/mediapackage/model/DeleteOriginEndpointRequest.h>
#include <aws/mediapackage/model/DescribeChannelRequest.h>
#include <aws/mediapackage/model/DescribeOriginEndpointRequest.h>
#include <aws/mediapackage/model/ListChannelsRequest.h>
#include <aws/mediapackage/model/ListOriginEndpointsRequest.h>
#include <aws/mediapackage/model/ListTagsForResourceRequest.h>
#include <aws/mediapackage/model/RotateIngestEndpointCredentialsRequest.h>
#include <aws/mediapackage/model/TagResourceRequest.h>
#include <aws/mediapackage/model/UntagResourceRequest.h>
#include <aws/mediapackage/model/UpdateChannelRequest.h>
#include <aws/mediapackage/model/UpdateOriginEndpointRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::MediaPackage;
using namespace Aws::MediaPackage::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "mediapackage";
static const char* ALLOCATION_TAG = "MediaPackageClient";
MediaPackageClient::MediaPackageClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, clientConfiguration.region),
Aws::MakeShared<MediaPackageErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageClient::MediaPackageClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, clientConfiguration.region),
Aws::MakeShared<MediaPackageErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageClient::MediaPackageClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, clientConfiguration.region),
Aws::MakeShared<MediaPackageErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
MediaPackageClient::~MediaPackageClient()
{
}
void MediaPackageClient::init(const ClientConfiguration& config)
{
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + MediaPackageEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void MediaPackageClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
CreateChannelOutcome MediaPackageClient::CreateChannel(const CreateChannelRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels";
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return CreateChannelOutcome(CreateChannelResult(outcome.GetResult()));
}
else
{
return CreateChannelOutcome(outcome.GetError());
}
}
CreateChannelOutcomeCallable MediaPackageClient::CreateChannelCallable(const CreateChannelRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateChannel(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::CreateChannelAsync(const CreateChannelRequest& request, const CreateChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateChannelAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::CreateChannelAsyncHelper(const CreateChannelRequest& request, const CreateChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateChannel(request), context);
}
CreateOriginEndpointOutcome MediaPackageClient::CreateOriginEndpoint(const CreateOriginEndpointRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/origin_endpoints";
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return CreateOriginEndpointOutcome(CreateOriginEndpointResult(outcome.GetResult()));
}
else
{
return CreateOriginEndpointOutcome(outcome.GetError());
}
}
CreateOriginEndpointOutcomeCallable MediaPackageClient::CreateOriginEndpointCallable(const CreateOriginEndpointRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateOriginEndpointOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateOriginEndpoint(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::CreateOriginEndpointAsync(const CreateOriginEndpointRequest& request, const CreateOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateOriginEndpointAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::CreateOriginEndpointAsyncHelper(const CreateOriginEndpointRequest& request, const CreateOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateOriginEndpoint(request), context);
}
DeleteChannelOutcome MediaPackageClient::DeleteChannel(const DeleteChannelRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return DeleteChannelOutcome(DeleteChannelResult(outcome.GetResult()));
}
else
{
return DeleteChannelOutcome(outcome.GetError());
}
}
DeleteChannelOutcomeCallable MediaPackageClient::DeleteChannelCallable(const DeleteChannelRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteChannel(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::DeleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteChannelAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::DeleteChannelAsyncHelper(const DeleteChannelRequest& request, const DeleteChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteChannel(request), context);
}
DeleteOriginEndpointOutcome MediaPackageClient::DeleteOriginEndpoint(const DeleteOriginEndpointRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/origin_endpoints/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return DeleteOriginEndpointOutcome(DeleteOriginEndpointResult(outcome.GetResult()));
}
else
{
return DeleteOriginEndpointOutcome(outcome.GetError());
}
}
DeleteOriginEndpointOutcomeCallable MediaPackageClient::DeleteOriginEndpointCallable(const DeleteOriginEndpointRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteOriginEndpointOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteOriginEndpoint(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::DeleteOriginEndpointAsync(const DeleteOriginEndpointRequest& request, const DeleteOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteOriginEndpointAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::DeleteOriginEndpointAsyncHelper(const DeleteOriginEndpointRequest& request, const DeleteOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteOriginEndpoint(request), context);
}
DescribeChannelOutcome MediaPackageClient::DescribeChannel(const DescribeChannelRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return DescribeChannelOutcome(DescribeChannelResult(outcome.GetResult()));
}
else
{
return DescribeChannelOutcome(outcome.GetError());
}
}
DescribeChannelOutcomeCallable MediaPackageClient::DescribeChannelCallable(const DescribeChannelRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeChannel(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::DescribeChannelAsync(const DescribeChannelRequest& request, const DescribeChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeChannelAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::DescribeChannelAsyncHelper(const DescribeChannelRequest& request, const DescribeChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeChannel(request), context);
}
DescribeOriginEndpointOutcome MediaPackageClient::DescribeOriginEndpoint(const DescribeOriginEndpointRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/origin_endpoints/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return DescribeOriginEndpointOutcome(DescribeOriginEndpointResult(outcome.GetResult()));
}
else
{
return DescribeOriginEndpointOutcome(outcome.GetError());
}
}
DescribeOriginEndpointOutcomeCallable MediaPackageClient::DescribeOriginEndpointCallable(const DescribeOriginEndpointRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeOriginEndpointOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeOriginEndpoint(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::DescribeOriginEndpointAsync(const DescribeOriginEndpointRequest& request, const DescribeOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeOriginEndpointAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::DescribeOriginEndpointAsyncHelper(const DescribeOriginEndpointRequest& request, const DescribeOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeOriginEndpoint(request), context);
}
ListChannelsOutcome MediaPackageClient::ListChannels(const ListChannelsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels";
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return ListChannelsOutcome(ListChannelsResult(outcome.GetResult()));
}
else
{
return ListChannelsOutcome(outcome.GetError());
}
}
ListChannelsOutcomeCallable MediaPackageClient::ListChannelsCallable(const ListChannelsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListChannelsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListChannels(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::ListChannelsAsync(const ListChannelsRequest& request, const ListChannelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListChannelsAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::ListChannelsAsyncHelper(const ListChannelsRequest& request, const ListChannelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListChannels(request), context);
}
ListOriginEndpointsOutcome MediaPackageClient::ListOriginEndpoints(const ListOriginEndpointsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/origin_endpoints";
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return ListOriginEndpointsOutcome(ListOriginEndpointsResult(outcome.GetResult()));
}
else
{
return ListOriginEndpointsOutcome(outcome.GetError());
}
}
ListOriginEndpointsOutcomeCallable MediaPackageClient::ListOriginEndpointsCallable(const ListOriginEndpointsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListOriginEndpointsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListOriginEndpoints(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::ListOriginEndpointsAsync(const ListOriginEndpointsRequest& request, const ListOriginEndpointsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListOriginEndpointsAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::ListOriginEndpointsAsyncHelper(const ListOriginEndpointsRequest& request, const ListOriginEndpointsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListOriginEndpoints(request), context);
}
ListTagsForResourceOutcome MediaPackageClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return ListTagsForResourceOutcome(ListTagsForResourceResult(outcome.GetResult()));
}
else
{
return ListTagsForResourceOutcome(outcome.GetError());
}
}
ListTagsForResourceOutcomeCallable MediaPackageClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListTagsForResource(request), context);
}
RotateIngestEndpointCredentialsOutcome MediaPackageClient::RotateIngestEndpointCredentials(const RotateIngestEndpointCredentialsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels/";
ss << request.GetId();
ss << "/ingest_endpoints/";
ss << request.GetIngestEndpointId();
ss << "/credentials";
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return RotateIngestEndpointCredentialsOutcome(RotateIngestEndpointCredentialsResult(outcome.GetResult()));
}
else
{
return RotateIngestEndpointCredentialsOutcome(outcome.GetError());
}
}
RotateIngestEndpointCredentialsOutcomeCallable MediaPackageClient::RotateIngestEndpointCredentialsCallable(const RotateIngestEndpointCredentialsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< RotateIngestEndpointCredentialsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->RotateIngestEndpointCredentials(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::RotateIngestEndpointCredentialsAsync(const RotateIngestEndpointCredentialsRequest& request, const RotateIngestEndpointCredentialsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->RotateIngestEndpointCredentialsAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::RotateIngestEndpointCredentialsAsyncHelper(const RotateIngestEndpointCredentialsRequest& request, const RotateIngestEndpointCredentialsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, RotateIngestEndpointCredentials(request), context);
}
TagResourceOutcome MediaPackageClient::TagResource(const TagResourceRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return TagResourceOutcome(NoResult());
}
else
{
return TagResourceOutcome(outcome.GetError());
}
}
TagResourceOutcomeCallable MediaPackageClient::TagResourceCallable(const TagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, TagResource(request), context);
}
UntagResourceOutcome MediaPackageClient::UntagResource(const UntagResourceRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return UntagResourceOutcome(NoResult());
}
else
{
return UntagResourceOutcome(outcome.GetError());
}
}
UntagResourceOutcomeCallable MediaPackageClient::UntagResourceCallable(const UntagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UntagResource(request), context);
}
UpdateChannelOutcome MediaPackageClient::UpdateChannel(const UpdateChannelRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/channels/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return UpdateChannelOutcome(UpdateChannelResult(outcome.GetResult()));
}
else
{
return UpdateChannelOutcome(outcome.GetError());
}
}
UpdateChannelOutcomeCallable MediaPackageClient::UpdateChannelCallable(const UpdateChannelRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateChannelOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateChannel(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::UpdateChannelAsync(const UpdateChannelRequest& request, const UpdateChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateChannelAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::UpdateChannelAsyncHelper(const UpdateChannelRequest& request, const UpdateChannelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateChannel(request), context);
}
UpdateOriginEndpointOutcome MediaPackageClient::UpdateOriginEndpoint(const UpdateOriginEndpointRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/origin_endpoints/";
ss << request.GetId();
uri.SetPath(uri.GetPath() + ss.str());
JsonOutcome outcome = MakeRequest(uri, request, HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER);
if(outcome.IsSuccess())
{
return UpdateOriginEndpointOutcome(UpdateOriginEndpointResult(outcome.GetResult()));
}
else
{
return UpdateOriginEndpointOutcome(outcome.GetError());
}
}
UpdateOriginEndpointOutcomeCallable MediaPackageClient::UpdateOriginEndpointCallable(const UpdateOriginEndpointRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateOriginEndpointOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateOriginEndpoint(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void MediaPackageClient::UpdateOriginEndpointAsync(const UpdateOriginEndpointRequest& request, const UpdateOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateOriginEndpointAsyncHelper( request, handler, context ); } );
}
void MediaPackageClient::UpdateOriginEndpointAsyncHelper(const UpdateOriginEndpointRequest& request, const UpdateOriginEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateOriginEndpoint(request), context);
}
|
#include "timeline.h"
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QTimer>
#include <QDebug>
TimeLine::TimeLine(Timers *t, QGraphicsItem *parent)
: QGraphicsRectItem(parent) {
timer = t;
timeLineWidth = 200000;
setRect(QRectF(0, 0, timeLineWidth, 18));
timeLineScale = 0.1;
}
void TimeLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget) {
Q_UNUSED(option)
Q_UNUSED(widget)
QRectF rect = boundingRect().toRect();
QPen pen(Qt::NoPen);
painter->setPen(pen);
painter->setBrush(QColor(200, 200, 200));
painter->drawRect(rect);
painter->setPen(Qt::red);
for (int i = 0; i < 200; i++) {
painter->drawText(i * 30, 9, QString::number(i + 1));
}
}
void TimeLine::mousePressEvent(QGraphicsSceneMouseEvent *event) {
if (event->button() == Qt::LeftButton)
timer->start();
}
|
#include "PlayerHistory.h"
uint8_t PlayerHistory::getSubgroup() const {
return subgroup;
}
bool PlayerHistory::isSelf() const {
return self;
}
Prof PlayerHistory::getProfession() const {
return prof;
}
ImVec4 PlayerHistory::getColor() const {
ImVec4* arc_colors[5];
arc_export_e5(arc_colors);
return arc_colors[1][prof];
}
|
/*************************************************************************
* MediPy - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for details.
************************************************************************/
#include "dataset_io.h"
#include <sstream>
#include <stdexcept>
#include <string>
#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmdata/dctk.h>
#include <dcmtk/dcmdata/dcistrmb.h>
#include <dcmtk/ofstd/ofcond.h>
#include <gdcmAttribute.h>
#include <gdcmUIDGenerator.h>
#include <gdcmReader.h>
#include <gdcmWriter.h>
#include <Python.h>
#include "DCMTKToPython.h"
#include "PythonToDCMTK.h"
bool can_read(std::string const & filename)
{
bool result = true;
FILE* file = fopen(filename.c_str(), "rb");
if(file==NULL)
{
result = false;
}
else
{
char signature[4];
if(fseek(file, DCM_PreambleLen, SEEK_SET) < 0)
{
result = false;
}
else if(fread(signature, 1, DCM_MagicLen, file) != DCM_MagicLen ||
strncmp(signature, DCM_Magic, DCM_MagicLen) != 0)
{
result = false;
}
fclose(file);
}
return result;
}
PyObject* get_medipy_base_exception()
{
PyObject * base = PyImport_ImportModule("medipy.base"); // New reference
PyObject * exception = PyObject_GetAttrString(base, "Exception"); // New reference
Py_DECREF(base);
return exception;
}
PyObject* read(std::string const & filename)
{
// GDCM is more robust when reading weird files. Use it to "convert" the
// file so that DCMTK can read it.
static PyObject * medipy_base_exception = get_medipy_base_exception();
gdcm::Trace::DebugOn();
gdcm::Trace::WarningOn();
gdcm::Trace::ErrorOn();
gdcm::Reader reader;
reader.SetFileName(filename.c_str());
bool const gdcm_read_ok = reader.Read();
if(!gdcm_read_ok)
{
PyErr_SetString(medipy_base_exception, "Could not read file");
return NULL;
}
gdcm::DataSet & gdcm_dataset = reader.GetFile().GetDataSet();
// If SOP Instance UID is not in the dataset, then the Writer fails
// silently
if(!gdcm_dataset.FindDataElement(gdcm::Tag(0x0008,0x0018)))
{
gdcm::UIDGenerator generator;
gdcm::Attribute<0x0008,0x0018> attribute = {generator.Generate()};
gdcm_dataset.Insert(attribute.GetAsDataElement());
}
gdcm::Writer writer;
std::ostringstream gdcm_stream;
writer.SetFile(reader.GetFile());
writer.SetStream(gdcm_stream);
bool const write_ok = writer.Write();
if(!write_ok)
{
PyErr_SetString(medipy_base_exception, "Could not write to stream");
return NULL;
}
std::string const data = gdcm_stream.str();
// Read the data with DCMTK
DcmInputBufferStream dcmtk_stream;
dcmtk_stream.setBuffer(&data[0], data.size());
dcmtk_stream.setEos();
DcmFileFormat format;
format.transferInit();
OFCondition const dcmtk_read_ok = format.read(dcmtk_stream);
format.transferEnd();
dcmtk_stream.releaseBuffer();
if(!dcmtk_read_ok.good())
{
PyErr_SetString(medipy_base_exception, "Could not read from stream");
return NULL;
}
format.loadAllDataIntoMemory();
// Convert header and dataset
DCMTKToPython converter;
PyObject * header = converter(format.getMetaInfo());
PyObject * dataset = converter(format.getDataset());
PyObject_SetAttrString(dataset, "header", header);
Py_DECREF(header);
return dataset;
}
void write(PyObject* dataset, std::string const & filename)
{
PythonToDCMTK converter;
DcmDataset dcmtk_dataset = converter(dataset);
DcmFileFormat writer(&dcmtk_dataset);
// Update the writer meta-info with the dataset header, if present
if(PyObject_HasAttrString(dataset, "header"))
{
// New reference
PyObject * python_header = PyObject_GetAttrString(dataset, "header");
DcmDataset dcmtk_header = converter(python_header);
Py_XDECREF(python_header);
DcmObject * it = NULL;
while(NULL != (it = dcmtk_header.nextInContainer(it)))
{
// The DcmMetaInfo takes ownership of the inserted element, hence
// the hoop-jumping with clone/dynamic_cast
DcmElement * element = dynamic_cast<DcmElement*>(it->clone());
if(element == NULL)
{
throw std::runtime_error("Cannot insert element");
}
writer.getMetaInfo()->insert(element);
}
}
// If the transfer syntax is missing, default to Little Endian Explicit VR
if(!writer.getMetaInfo()->tagExists(DCM_TransferSyntaxUID))
{
writer.getMetaInfo()->putAndInsertOFStringArray(DCM_TransferSyntaxUID,
DcmXfer(EXS_LittleEndianExplicit).getXferID());
}
OFString value;
writer.getMetaInfo()->findAndGetOFStringArray(DCM_TransferSyntaxUID, value);
DcmXfer const transfer_syntax(value.c_str());
// Transfer syntax /must/ be specified if it is not present in the dataset.
OFCondition const condition = writer.saveFile(
filename.c_str(), transfer_syntax.getXfer());
if(condition.bad())
{
std::ostringstream message;
message << "Cannot write '" << filename.c_str() << "': " << condition.text();
throw std::runtime_error(message.str());
}
}
|
// ioctlizer.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
NTSTATUS TryOpenDevice(TCHAR* deviceName, PHANDLE deviceHandle, PBYTE accessGranted);
NTSTATUS OpenDeviceTryNamespace(TCHAR* deviceName, DWORD requiredAccess, PHANDLE deviceHandle);
NTSTATUS OpenDevice(TCHAR* deviceName, DWORD requiredAccess, BOOLEAN withNamespace, PHANDLE deviceHandle);
NTSTATUS ConvertAccessToString(BYTE access, TCHAR* accessStr);
void ConvertErrorCodeToErrorString(NTSTATUS code);
#define MALLOC_CHECK(var, typ, len) do { \
if (((var) = (typ)malloc((len))) == NULL) { \
return STATUS_INSUFFICIENT_RESOURCES; } \
} while (0);
#define VERIFY_HANDLE(hnd) do { \
if (!(hnd) || INVALID_HANDLE_VALUE == hnd) { \
return STATUS_INVALID_HANDLE; }\
} while (0);
NTSTATUS OpenDevice(TCHAR* deviceName, DWORD requiredAccess, BOOLEAN withNamespace, PHANDLE deviceHandle) {
TCHAR *namesp = TEXT("\\Namespace"), *tmpDeviceName;
SIZE_T size = (lstrlen(deviceName) * sizeof(TCHAR)) + (lstrlen(namesp) * sizeof(TCHAR)) + sizeof(TCHAR);
NTSTATUS status = STATUS_SUCCESS;
//tmpDeviceName = (TCHAR*)malloc(size);
MALLOC_CHECK(tmpDeviceName, TCHAR*, size);
// add check
memset(tmpDeviceName, 0x00, size);
if (!SUCCEEDED(StringCchCopy(tmpDeviceName, size / sizeof(TCHAR), deviceName))) {
printf("[**] OpenDevice: Failed to copy device name into temp device name\n");
status = STATUS_INSUFFICIENT_RESOURCES;
}
if (withNamespace) {
if (!SUCCEEDED(StringCchCat(tmpDeviceName, size, namesp))) {
printf("[**] OpenDevice: Failed to concat namespace into device name\n");
status = STATUS_INSUFFICIENT_RESOURCES;
}
*deviceHandle = CreateFile(tmpDeviceName, requiredAccess, NULL, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
}
else {
*deviceHandle = CreateFile(tmpDeviceName, requiredAccess, NULL, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
}
VERIFY_HANDLE(*deviceHandle);
free(tmpDeviceName);
return status;
}
NTSTATUS OpenDeviceTryNamespace(TCHAR* deviceName, DWORD requiredAccess, PHANDLE deviceHandle) {
NTSTATUS status = STATUS_ACCESS_DENIED;
HANDLE devHandle = NULL, tmpHandle = NULL;
status = OpenDevice(deviceName, requiredAccess, FALSE, &tmpHandle);
if (status >= 0 && tmpHandle != NULL && tmpHandle != INVALID_HANDLE_VALUE) { // succeeded
devHandle = tmpHandle;
status = STATUS_SUCCESS;
}
else {
status = OpenDevice(deviceName, requiredAccess, TRUE, &tmpHandle);
if (status >= 0 && tmpHandle != NULL && tmpHandle != INVALID_HANDLE_VALUE) { // succeeded
devHandle = tmpHandle;
status = STATUS_SUCCESS;
}
}
*deviceHandle = devHandle;
return status;
}
NTSTATUS TryOpenDevice(TCHAR* deviceName, PHANDLE deviceHandle, PBYTE accessGranted) {
// accessGranted will be given a value according to the type of possible access rights:
// 0 -> ANY
// 1 -> R
// 2 -> W
// 3 -> RW
// 4 -> ALL
HANDLE hndDevice = NULL, tmpHndDevice = NULL;
NTSTATUS status;
*accessGranted = 5;
// First, try opening for ANY_ACCESS:
status = OpenDeviceTryNamespace(deviceName, FILE_ANY_ACCESS, &tmpHndDevice);
if (status >= 0 && tmpHndDevice != NULL && tmpHndDevice != INVALID_HANDLE_VALUE) { // succeeded
hndDevice = tmpHndDevice;
*accessGranted = 0;
}
status = OpenDeviceTryNamespace(deviceName, GENERIC_READ, &tmpHndDevice);
if (status >= 0 && tmpHndDevice != NULL && tmpHndDevice != INVALID_HANDLE_VALUE) { // succeeded
hndDevice = tmpHndDevice;
*accessGranted = 1;
}
status = OpenDeviceTryNamespace(deviceName, GENERIC_WRITE, &tmpHndDevice);
if (status >= 0 && tmpHndDevice != NULL && tmpHndDevice != INVALID_HANDLE_VALUE) { // succeeded
hndDevice = tmpHndDevice;
*accessGranted = 2;
}
status = OpenDeviceTryNamespace(deviceName, GENERIC_READ | GENERIC_WRITE, &tmpHndDevice);
if (status >= 0 && tmpHndDevice != NULL && tmpHndDevice != INVALID_HANDLE_VALUE) { // succeeded
hndDevice = tmpHndDevice;
*accessGranted = 3;
}
*deviceHandle = hndDevice;
if (*accessGranted == 5) {
return STATUS_ACCESS_DENIED;
}
return STATUS_SUCCESS;
}
NTSTATUS ConvertAccessToString(BYTE access, TCHAR* accessStr) {
if (access == 0) {
if (!lstrcpy(accessStr, TEXT("FILE_ANY_ACCESS"))) {
return STATUS_INVALID_PARAMETER;
}
}
else if (access == 1) {
if (!lstrcpy(accessStr, TEXT("FILE_READ_ACCESS"))) {
return STATUS_INVALID_PARAMETER;
}
}
else if (access == 2) {
if (!lstrcpy(accessStr, TEXT("FILE_WRITE_ACCESS"))) {
return STATUS_INVALID_PARAMETER;
}
}
else if (access == 3) {
if (!lstrcpy(accessStr, TEXT("FILE_READ_ACCESS | FILE_WRITE_ACCESS"))) {
return STATUS_INVALID_PARAMETER;
}
}
else if (access == 4) {
if (!lstrcpy(accessStr, TEXT("FILE_ALL_ACCESS"))) {
return STATUS_INVALID_PARAMETER;
}
}
return STATUS_SUCCESS;
}
void ConvertErrorCodeToErrorString(NTSTATUS code, TCHAR* errStr) {
FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM, NULL, code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
errStr, 0x200, NULL);
return;
}
int main(int argc, char* argv[])
{
TCHAR *deviceName = NULL, *fullName = NULL, *namesp = TEXT("\\Namespace"), err[0x201] = { 0 };
int nameSize = 0, fullSize = 0, namespSize = lstrlen(namesp), totalSize;
NTSTATUS status = STATUS_SUCCESS;
HANDLE hndDevice = INVALID_HANDLE_VALUE;
BYTE accessGranted = NULL;
for (int idx = 1; idx < argc; ++idx) {
nameSize = MultiByteToWideChar(CP_UTF8, NULL, argv[idx], strlen(argv[idx]), NULL, 0);
nameSize *= sizeof(TCHAR);
totalSize = nameSize + namespSize*sizeof(TCHAR) + sizeof(TCHAR);
deviceName = (TCHAR*)malloc(totalSize);
if (!deviceName) {
printf("Failed to allocate memory for device %s", argv[idx]);
return STATUS_INSUFFICIENT_RESOURCES;
}
memset(deviceName, 0x00, totalSize);
MultiByteToWideChar(CP_UTF8, NULL, argv[idx], strlen(argv[idx]), deviceName, nameSize / sizeof(TCHAR));
status = TryOpenDevice(deviceName, &hndDevice, &accessGranted);
if (status < 0) {
ConvertErrorCodeToErrorString(status, err);
printf("[--] FAILURE opening device %ws: %ws\n", deviceName, err);
free(deviceName);
continue;
}
TCHAR accessStr[100] = { 0 };
if (ConvertAccessToString(accessGranted, accessStr) < 0) {
printf("[++] SUCCESS opening device %ws with rights %x\n", deviceName, accessGranted);
}
else {
printf("[++] SUCCESS opening device %ws with rights %ws\n", deviceName, accessStr);
}
free(deviceName);
}
return 0;
}
|
#include "transactiontablemodel.h"
#include "guiutil.h"
#include "transactionrecord.h"
#include "guiconstants.h"
#include "transactiondesc.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "wallet.h"
#include "ui_interface.h"
#include <QLocale>
#include <QList>
#include <QColor>
#include <QTimer>
#include <QIcon>
#include <QDateTime>
#include <QtAlgorithms>
#include <algorithm>
// Amount column is right-aligned it contains numbers
static int column_alignments[] = {
Qt::AlignLeft|Qt::AlignVCenter,
Qt::AlignLeft|Qt::AlignVCenter,
Qt::AlignLeft|Qt::AlignVCenter,
Qt::AlignLeft|Qt::AlignVCenter,
Qt::AlignRight|Qt::AlignVCenter
};
// Comparison operator for sort/binary search of model tx list
struct TxLessThan
{
bool operator()(const TransactionRecord &a, const TransactionRecord &b) const
{
return a.hash < b.hash;
}
bool operator()(const TransactionRecord &a, const uint256 &b) const
{
return a.hash < b;
}
bool operator()(const uint256 &a, const TransactionRecord &b) const
{
return a < b.hash;
}
};
// Private implementation
class TransactionTablePriv
{
public:
TransactionTablePriv(CWallet *wallet, TransactionTableModel *parent):
wallet(wallet),
parent(parent)
{
}
CWallet *wallet;
TransactionTableModel *parent;
/* Local cache of wallet.
* As it is in the same order as the CWallet, by definition
* this is sorted by sha256.
*/
QList<TransactionRecord> cachedWallet;
/* Query entire wallet anew from core.
*/
void refreshWallet()
{
OutputDebugStringF("refreshWallet\n");
cachedWallet.clear();
{
LOCK(wallet->cs_wallet);
for(std::map<uint256, CWalletTx>::iterator it = wallet->mapWallet.begin(); it != wallet->mapWallet.end(); ++it)
{
if(TransactionRecord::showTransaction(it->second))
cachedWallet.append(TransactionRecord::decomposeTransaction(wallet, it->second));
}
}
}
/* Update our model of the wallet incrementally, to synchronize our model of the wallet
with that of the core.
Call with transaction that was added, removed or changed.
*/
void updateWallet(const uint256 &hash, int status)
{
OutputDebugStringF("updateWallet %s %i\n", hash.ToString().c_str(), status);
{
LOCK(wallet->cs_wallet);
// Find transaction in wallet
std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(hash);
bool inWallet = mi != wallet->mapWallet.end();
// Find bounds of this transaction in model
QList<TransactionRecord>::iterator lower = qLowerBound(
cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan());
QList<TransactionRecord>::iterator upper = qUpperBound(
cachedWallet.begin(), cachedWallet.end(), hash, TxLessThan());
int lowerIndex = (lower - cachedWallet.begin());
int upperIndex = (upper - cachedWallet.begin());
bool inModel = (lower != upper);
// Determine whether to show transaction or not
bool showTransaction = (inWallet && TransactionRecord::showTransaction(mi->second));
if(status == CT_UPDATED)
{
if(showTransaction && !inModel)
status = CT_NEW; /* Not in model, but want to show, treat as new */
if(!showTransaction && inModel)
status = CT_DELETED; /* In model, but want to hide, treat as deleted */
}
OutputDebugStringF(" inWallet=%i inModel=%i Index=%i-%i showTransaction=%i derivedStatus=%i\n",
inWallet, inModel, lowerIndex, upperIndex, showTransaction, status);
switch(status)
{
case CT_NEW:
if(inModel)
{
OutputDebugStringF("Warning: updateWallet: Got CT_NEW, but transaction is already in model\n");
break;
}
if(!inWallet)
{
OutputDebugStringF("Warning: updateWallet: Got CT_NEW, but transaction is not in wallet\n");
break;
}
if(showTransaction)
{
// Added -- insert at the right position
QList<TransactionRecord> toInsert =
TransactionRecord::decomposeTransaction(wallet, mi->second);
if(!toInsert.isEmpty()) /* only if something to insert */
{
parent->beginInsertRows(QModelIndex(), lowerIndex, lowerIndex+toInsert.size()-1);
int insert_idx = lowerIndex;
foreach(const TransactionRecord &rec, toInsert)
{
cachedWallet.insert(insert_idx, rec);
insert_idx += 1;
}
parent->endInsertRows();
}
}
break;
case CT_DELETED:
if(!inModel)
{
OutputDebugStringF("Warning: updateWallet: Got CT_DELETED, but transaction is not in model\n");
break;
}
// Removed -- remove entire transaction from table
parent->beginRemoveRows(QModelIndex(), lowerIndex, upperIndex-1);
cachedWallet.erase(lower, upper);
parent->endRemoveRows();
break;
case CT_UPDATED:
// Miscellaneous updates -- nothing to do, status update will take care of this, and is only computed for
// visible transactions.
break;
}
}
}
int size()
{
return cachedWallet.size();
}
TransactionRecord *index(int idx)
{
if(idx >= 0 && idx < cachedWallet.size())
{
TransactionRecord *rec = &cachedWallet[idx];
// If a status update is needed (blocks came in since last check),
// update the status of this transaction from the wallet. Otherwise,
// simply re-use the cached status.
if(rec->statusUpdateNeeded())
{
{
LOCK(wallet->cs_wallet);
std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(rec->hash);
if(mi != wallet->mapWallet.end())
{
rec->updateStatus(mi->second);
}
}
}
return rec;
}
else
{
return 0;
}
}
QString describe(TransactionRecord *rec)
{
{
LOCK(wallet->cs_wallet);
std::map<uint256, CWalletTx>::iterator mi = wallet->mapWallet.find(rec->hash);
if(mi != wallet->mapWallet.end())
{
return TransactionDesc::toHTML(wallet, mi->second);
}
}
return QString("");
}
};
TransactionTableModel::TransactionTableModel(CWallet* wallet, WalletModel *parent):
QAbstractTableModel(parent),
wallet(wallet),
walletModel(parent),
priv(new TransactionTablePriv(wallet, this)),
cachedNumBlocks(0)
{
columns << QString() << tr("Date") << tr("Type") << tr("Address/Label") << tr("Amount");
priv->refreshWallet();
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(updateConfirmations()));
timer->start(TXTABLE_UPDATE_DELAY);
connect(walletModel->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
}
TransactionTableModel::~TransactionTableModel()
{
delete priv;
}
void TransactionTableModel::updateTransaction(const QString &hash, int status)
{
uint256 updated;
updated.SetHex(hash.toStdString());
priv->updateWallet(updated, status);
}
void TransactionTableModel::updateConfirmations()
{
if(nBestHeight != cachedNumBlocks)
{
cachedNumBlocks = nBestHeight;
// Blocks came in since last poll.
// Invalidate status (number of confirmations) and (possibly) description
// for all rows. Qt is smart enough to only actually request the data for the
// visible rows.
emit dataChanged(index(0, Status), index(priv->size()-1, Status));
emit dataChanged(index(0, ToAddress), index(priv->size()-1, ToAddress));
}
}
int TransactionTableModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return priv->size();
}
int TransactionTableModel::columnCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return columns.length();
}
QString TransactionTableModel::formatTxStatus(const TransactionRecord *wtx) const
{
QString status;
float rate, days;
CWalletTx tx, ptx;
switch(wtx->status.status)
{
case TransactionStatus::OpenUntilBlock:
status = tr("Open for %n block(s)","",wtx->status.open_for);
break;
case TransactionStatus::OpenUntilDate:
status = tr("Open until %1").arg(GUIUtil::dateTimeStr(wtx->status.open_for));
break;
case TransactionStatus::Offline:
status = tr("Offline (%1 confirmations)").arg(wtx->status.depth);
break;
case TransactionStatus::Unconfirmed:
status = tr("Unconfirmed (%1 of %2 confirmations)").arg(wtx->status.depth).arg(TransactionRecord::NumConfirmations);
break;
case TransactionStatus::HaveConfirmations:
status = tr("Confirmed (%1 confirmations)").arg(wtx->status.depth);
break;
}
if(wtx->type == TransactionRecord::Generated || wtx->type == TransactionRecord::StakeMint)
{
switch(wtx->status.maturity)
{
case TransactionStatus::Immature:
status += "\n" + tr("Mined balance will be available when it matures in %n more block(s)", "", wtx->status.matures_in);
break;
case TransactionStatus::Mature:
if (wallet->GetTransaction(wtx->hash, tx)) {
if (tx.vin.size() == 1) {
rate = 100.0f * (wtx->credit + wtx->debit) / -wtx->debit;
if (wallet->GetTransaction(tx.vin[0].prevout.hash, ptx)) {
days = (tx.nTime - ptx.nTime) / 86400.0f;
status += "\n" + tr("%1% staked in %2 days").arg(rate).arg(days);
if (wtx->credit + wtx->debit == 1000 * COIN) {
uint64_t capped = -wtx->debit * 7.5f * days / 365.f - 1000 * COIN;
status += "\n" + tr("About %1 XD capped").arg(capped / (float)COIN);
float unCappedStake = (capped / (float)COIN) + 1000;
status += "\n" + tr("Uncapped Stake: %1").arg((unCappedStake));
//status += "\n" +tr("Weight: %1").arg(unCappedStake * (days - (8/24)));
}
float nWeight = (-wtx->debit)/(float)COIN * (std::min(days, (float)(30 - (8/24))) - 8/24);
status += "\n" + tr("Original UTXO: %1").arg((float)(-wtx->debit)/COIN);
status += "\n" + tr("Weight: %1").arg(nWeight);
}
}
}
break;
case TransactionStatus::MaturesWarning:
status += "\n" + tr("This block was not received by any other nodes and will probably not be accepted!");
break;
case TransactionStatus::NotAccepted:
status += "\n" + tr("Generated but not accepted");
break;
}
}
return status;
}
QString TransactionTableModel::formatTxDate(const TransactionRecord *wtx) const
{
if(wtx->time)
{
return GUIUtil::dateTimeStr(wtx->time);
}
else
{
return QString();
}
}
/* Look up address in address book, if found return label (address)
otherwise just return (address)
*/
QString TransactionTableModel::lookupAddress(const std::string &address, bool tooltip) const
{
QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(address));
QString description;
if(!label.isEmpty())
{
description += label + QString(" ");
}
if(label.isEmpty() || walletModel->getOptionsModel()->getDisplayAddresses() || tooltip)
{
description += QString("(") + QString::fromStdString(address) + QString(")");
}
return description;
}
QString TransactionTableModel::formatTxType(const TransactionRecord *wtx) const
{
switch(wtx->type)
{
case TransactionRecord::RecvWithAddress:
return tr("Received with");
case TransactionRecord::RecvFromOther:
return tr("Received from");
case TransactionRecord::SendToAddress:
case TransactionRecord::SendToOther:
return tr("Sent to");
case TransactionRecord::SendToSelf:
return tr("Payment to yourself");
case TransactionRecord::StakeMint:
return tr("Minted");
case TransactionRecord::Generated:
return tr("Mined");
default:
return QString();
}
}
QVariant TransactionTableModel::txAddressDecoration(const TransactionRecord *wtx) const
{
switch(wtx->type)
{
case TransactionRecord::Generated:
case TransactionRecord::StakeMint:
{
QString str = BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), wtx->credit + wtx->debit);
return QIcon(":/icons/tx_mined");
}
case TransactionRecord::RecvWithAddress:
case TransactionRecord::RecvFromOther:
return QIcon(":/icons/tx_input");
case TransactionRecord::SendToAddress:
case TransactionRecord::SendToOther:
return QIcon(":/icons/tx_output");
default:
return QIcon(":/icons/tx_inout");
}
return QVariant();
}
QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
{
switch(wtx->type)
{
case TransactionRecord::RecvFromOther:
return QString::fromStdString(wtx->address);
case TransactionRecord::RecvWithAddress:
case TransactionRecord::SendToAddress:
case TransactionRecord::Generated:
return lookupAddress(wtx->address, tooltip);
case TransactionRecord::SendToOther:
return QString::fromStdString(wtx->address);
case TransactionRecord::SendToSelf:
return lookupAddress(wtx->address, tooltip);
case TransactionRecord::StakeMint:
return lookupAddress(wtx->address, tooltip);
default:
return tr("(n/a)");
}
}
QVariant TransactionTableModel::addressColor(const TransactionRecord *wtx) const
{
// Show addresses without label in a less visible color
switch(wtx->type)
{
case TransactionRecord::RecvWithAddress:
case TransactionRecord::SendToAddress:
case TransactionRecord::Generated:
{
QString label = walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(wtx->address));
if(label.isEmpty())
return COLOR_BAREADDRESS;
} break;
case TransactionRecord::SendToSelf:
return COLOR_BAREADDRESS;
default:
break;
}
return QVariant();
}
QString TransactionTableModel::formatTxAmount(const TransactionRecord *wtx, bool showUnconfirmed) const
{
QString str = BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), wtx->credit + wtx->debit);
if(showUnconfirmed)
{
if(!wtx->status.confirmed || wtx->status.maturity != TransactionStatus::Mature)
{
str = QString("[") + str + QString("]");
}
}
return QString(str);
}
QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx) const
{
if(wtx->type == TransactionRecord::Generated || wtx->type == TransactionRecord::StakeMint)
{
switch(wtx->status.maturity)
{
case TransactionStatus::Immature: {
int total = wtx->status.depth + wtx->status.matures_in;
int part = (wtx->status.depth * 4 / total) + 1;
return QIcon(QString(":/icons/transaction_%1").arg(part));
}
case TransactionStatus::Mature:
return QIcon(":/icons/transaction_confirmed");
case TransactionStatus::MaturesWarning:
case TransactionStatus::NotAccepted:
return QIcon(":/icons/transaction_0");
}
}
else
{
switch(wtx->status.status)
{
case TransactionStatus::OpenUntilBlock:
case TransactionStatus::OpenUntilDate:
return QColor(64,64,255);
break;
case TransactionStatus::Offline:
return QColor(192,192,192);
case TransactionStatus::Unconfirmed:
switch(wtx->status.depth)
{
case 0: return QIcon(":/icons/transaction_0");
case 1: return QIcon(":/icons/transaction_1");
case 2: return QIcon(":/icons/transaction_2");
case 3: return QIcon(":/icons/transaction_3");
case 4: return QIcon(":/icons/transaction_4");
default: return QIcon(":/icons/transaction_5");
};
case TransactionStatus::HaveConfirmations:
return QIcon(":/icons/transaction_confirmed");
}
}
return QColor(0,0,0);
}
QString TransactionTableModel::formatTooltip(const TransactionRecord *rec) const
{
QString tooltip = formatTxStatus(rec) + QString("\n") + formatTxType(rec);
if(rec->type==TransactionRecord::RecvFromOther || rec->type==TransactionRecord::SendToOther ||
rec->type==TransactionRecord::SendToAddress || rec->type==TransactionRecord::RecvWithAddress)
{
tooltip += QString(" ") + formatTxToAddress(rec, true);
}
return tooltip;
}
QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
{
if(!index.isValid())
return QVariant();
TransactionRecord *rec = static_cast<TransactionRecord*>(index.internalPointer());
switch(role)
{
case Qt::DecorationRole:
switch(index.column())
{
case Status:
return txStatusDecoration(rec);
case ToAddress:
return txAddressDecoration(rec);
}
break;
case Qt::DisplayRole:
switch(index.column())
{
case Date:
return formatTxDate(rec);
case Type:
return formatTxType(rec);
case ToAddress:
return formatTxToAddress(rec, false);
case Amount:
return formatTxAmount(rec);
case Depth:
return QString::number(rec->status.depth);
}
break;
case Qt::EditRole:
// Edit role is used for sorting, so return the unformatted values
switch(index.column())
{
case Status:
return QString::fromStdString(rec->status.sortKey);
case Date:
return rec->time;
case Type:
return formatTxType(rec);
case ToAddress:
return formatTxToAddress(rec, true);
case Amount:
return rec->credit + rec->debit;
case Depth:
return rec->status.depth;
}
break;
case Qt::ToolTipRole:
return formatTooltip(rec);
case Qt::TextAlignmentRole:
return column_alignments[index.column()];
case Qt::ForegroundRole:
// Non-confirmed transactions are grey
if(!rec->status.confirmed)
{
return COLOR_UNCONFIRMED;
}
if(index.column() == Amount && (rec->credit+rec->debit) < 0)
{
return COLOR_NEGATIVE;
}
if(index.column() == ToAddress)
{
return addressColor(rec);
}
break;
case TypeRole:
return rec->type;
case DateRole:
return QDateTime::fromTime_t(static_cast<uint>(rec->time));
case LongDescriptionRole:
return priv->describe(rec);
case AddressRole:
return QString::fromStdString(rec->address);
case LabelRole:
return walletModel->getAddressTableModel()->labelForAddress(QString::fromStdString(rec->address));
case AmountRole:
return rec->credit + rec->debit;
case TxIDRole:
return QString::fromStdString(rec->getTxID());
case ConfirmedRole:
// Return True if transaction counts for balance
return rec->status.confirmed && !((rec->type == TransactionRecord::Generated || rec->type == TransactionRecord::StakeMint) &&
rec->status.maturity != TransactionStatus::Mature);
case FormattedAmountRole:
return formatTxAmount(rec, false);
}
return QVariant();
}
QVariant TransactionTableModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if(orientation == Qt::Horizontal)
{
if(role == Qt::DisplayRole)
{
return columns[section];
}
else if (role == Qt::TextAlignmentRole)
{
return column_alignments[section];
} else if (role == Qt::ToolTipRole)
{
switch(section)
{
case Status:
return tr("Transaction status. Hover over this field to show number of confirmations.");
case Date:
return tr("Date and time that the transaction was received.");
case Type:
return tr("Type of transaction.");
case ToAddress:
return tr("Destination address of transaction.");
case Amount:
return tr("Amount removed from or added to balance.");
}
}
}
return QVariant();
}
QModelIndex TransactionTableModel::index(int row, int column, const QModelIndex &parent) const
{
Q_UNUSED(parent);
TransactionRecord *data = priv->index(row);
if(data)
{
return createIndex(row, column, priv->index(row));
}
else
{
return QModelIndex();
}
}
void TransactionTableModel::updateDisplayUnit()
{
// emit dataChanged to update Amount column with the current unit
emit dataChanged(index(0, Amount), index(priv->size()-1, Amount));
}
|
//
// main.cpp
// C Plus Plus Tutorial
//
// Created by Sonar Systems on 14/06/2014.
// Copyright (c) 2014 Sonar Systems. All rights reserved.
//
#include <iostream>
#include <string>
int main(int argc, const char * argv[])
{
// insert code here...
std::string s("Hello this is a string");
std::cout << s.c_str() << std::endl;
return 0;
}
|
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include "GUI_utils.h"
#include <iomanip>
#include <pwd.h>
#include <fstream>
bool GUI_utils::init_GUI(cv::String window_name)
{
m_rect_thickness = 3;
m_rect_line_type = 8;
m_rect_shift = 0;
m_text_thickness = 1;
m_text_font = cv::FONT_HERSHEY_SIMPLEX;
m_font_scale = 0.75;
m_text_line_type = 5;
m_window_name = window_name;
m_image.create(468, 628, CV_8UC3);
if (!m_image.data)
return false;
return true;
}
void GUI_utils::set_rect_thickness(int newThickness)
{
m_rect_thickness = newThickness;
}
int GUI_utils::get_rect_thickness()
{
return m_rect_thickness;
}
void GUI_utils::set_line_type(int newLineType)
{
m_rect_line_type = newLineType;
}
int GUI_utils::get_line_type()
{
return m_rect_line_type;
}
void GUI_utils::set_rect_shift(int newShift)
{
m_rect_shift = newShift;
}
int GUI_utils::get_rect_shift()
{
return m_rect_shift;
}
void GUI_utils::set_text_thickness(int newTextThickness)
{
m_text_thickness = newTextThickness;
}
int GUI_utils::get_text_thickness()
{
return m_text_thickness;
}
void GUI_utils::set_text_font(int newTextFont)
{
m_text_font = newTextFont;
}
int GUI_utils::get_text_font()
{
return m_text_font;
}
void GUI_utils::set_font_scale(int newFontScale)
{
m_font_scale = newFontScale;
}
int GUI_utils::get_font_scale()
{
return m_font_scale;
}
void GUI_utils::set_text_line_type(int newTextLineType)
{
m_text_line_type = newTextLineType;
}
int GUI_utils::get_text_line_type()
{
return m_text_line_type;
}
cv::Mat& GUI_utils::get_color_cvmat()
{
return m_image;
}
cv::String GUI_utils::get_win_name()
{
return m_window_name;
}
void GUI_utils::draw_text(cv::String text, cv::Point originPoint, int classID)
{
// Getting the rectangle color
cv::Scalar color = get_color(classID);
//Getting title text size
int baseline = 0;
cv::Size nameTextSize = cv::getTextSize(text, m_text_font, m_font_scale, m_text_thickness, &baseline);
baseline += m_text_thickness;
// Getting beginning point of text
cv::Point textOrigin(originPoint.x, originPoint.y - nameTextSize.height / 2);
// Draw the box
int filledRectangle = -1;
cv::Point originShifted = textOrigin + cv::Point(0, baseline);
cv::Point opositeToOrigin = textOrigin + cv::Point(nameTextSize.width, -nameTextSize.height);
cv::rectangle(m_image, originShifted, opositeToOrigin, color, filledRectangle, m_rect_line_type, m_rect_shift);
// Then put the text itself
cv::putText(m_image, text, textOrigin, m_text_font, m_font_scale, get_text_color(classID), m_text_thickness, m_text_line_type);
}
void GUI_utils::draw_rect_no_text(cv::Point topLeftPoint, int width, int height, int classID)
{
// Translating the given data to two opposite corners of the rectangle
cv::Point* bottomRightPoint = new cv::Point(topLeftPoint.x + width, topLeftPoint.y + height);
// Getting the rectangle color
cv::Scalar color = get_color(classID);
// Drawing the rectangle
cv::rectangle(m_image, topLeftPoint, *bottomRightPoint, color, m_rect_thickness, m_rect_line_type, m_rect_shift);
}
bool GUI_utils::draw_rect(cv::String name, int classID, int x, int y, int width, int height)
{
if (x == 0 || y == 0)
{
return false;
}
//Getting title text size
int baseline = 0;
cv::Size nameTextSize = cv::getTextSize(name, m_text_font, m_font_scale, m_text_thickness, &baseline);
int minCoordinateValue = 10;
cv::Point* topLeftPoint = new cv::Point(std::max(minCoordinateValue, x),
std::max(minCoordinateValue + nameTextSize.height, y));
draw_rect_no_text(*topLeftPoint, width + std::min(x, 0), height + std::min(y, 0), classID);
draw_text(name, *topLeftPoint, classID);
return true;
}
void GUI_utils::draw_no_results()
{
cv::String text = "No object was found";
int baseline = 0;
// Getting the rectangle color
int classID = 0; // This text doesn't belong to any object class
cv::Scalar color = get_color(classID); // Meaning no color - black
//Getting title text size
cv::Size textSize = cv::getTextSize(text, m_text_font, m_font_scale, m_text_thickness, &baseline);
baseline += m_text_thickness;
// Getting beginning point of text
cv::Point textOrigin(0, 0);
// Draw the box
int filledRectangle = -1;
int rectangleHeightFactor = 2; // I can't say why, but this number seems to put the rectangle in it's right place
cv::Point originShifted = textOrigin + cv::Point(0, baseline);
cv::Point opositeToOrigin = textOrigin + cv::Point(textSize.width, rectangleHeightFactor * textSize.height);
cv::rectangle(m_image, originShifted, opositeToOrigin, color, filledRectangle, m_rect_line_type, m_rect_shift);
int finalTextShift = 3; // I can't say why, but this number seems to put the text in it's right place
// Then put the text itself
cv::putText(m_image, text, finalTextShift * originShifted, m_text_font, m_font_scale,
get_text_color(classID), m_text_thickness, m_text_line_type);
}
bool GUI_utils::draw_results(const sensor_msgs::ImageConstPtr& color, const realsense_ros_object::ObjectsInBoxes& msg)
{
try
{
m_image = cv_bridge::toCvShare(color, "bgr8")->image;
}
catch (cv_bridge::Exception& e)
{
ROS_ERROR("Could not convert from '%s' to 'bgr8'.", color->encoding.c_str());
return false;
}
if (m_image.data == NULL)
{
std::cout << "No image found! Check path.\n";
return false;//ERROR
}
for (int i = 0; i < (int)msg.objects_vector.size(); i++)
{
cv::String text = msg.objects_vector[i].object.object_name + " " + get_3D_location_string(msg.objects_vector[i].location.coordinates); //todo: drow vertical and horisontical margin
draw_rect(text, 3 * i, (int)msg.objects_vector[i].object_bbox.x, (int)msg.objects_vector[i].object_bbox.y, (int)msg.objects_vector[i].object_bbox.width, (int)msg.objects_vector[i].object_bbox.height);
}
return true;
}
char GUI_utils::save_results(const realsense_ros_object::ObjectsInBoxes &msg, std::string file_path)
{
if(file_path == "")
{
const char *home_dir = getenv("HOME");
if ( home_dir== NULL) {
home_dir = getpwuid(getuid())->pw_dir;
}
file_path = std::string(home_dir) + "/object_bag_results.txt";
}
std::fstream myfile;
myfile.open (file_path, std::ofstream::out | std::ofstream::app);
static int frame_num = -1;
frame_num++;
myfile << "frame " + std::to_string(frame_num) << std::endl;
for (int i = 0; i < (int)msg.objects_vector.size(); i++)
{
myfile << "object id: " << i << std::endl;
myfile << msg.objects_vector[i].object.object_name << std::endl;
myfile << msg.objects_vector[i].object_bbox.x << std::endl;
myfile << msg.objects_vector[i].object_bbox.y << std::endl;
myfile << msg.objects_vector[i].object_bbox.width << std::endl;
myfile << msg.objects_vector[i].object_bbox.height << std::endl;
myfile << msg.objects_vector[i].location.coordinates.x << std::endl;
myfile << msg.objects_vector[i].location.coordinates.y << std::endl;
myfile << msg.objects_vector[i].location.coordinates.z << std::endl;
myfile << msg.objects_vector[i].location.horiz_margin << std::endl;
myfile << msg.objects_vector[i].location.vert_margin << std::endl;
}
myfile.close();
}
std::vector<realsense_ros_object::ObjectsInBoxes> GUI_utils::read_results(std::string file_path)
{
std::string frame("frame");
std::string object_id("object id:");
std::vector<realsense_ros_object::ObjectsInBoxes> res;
std::ifstream resFile;
resFile.open(file_path);
std::string str;
if (resFile.is_open())
{
bool new_frame = true;
realsense_ros_object::ObjectsInBoxes objs;
while(new_frame)
{
new_frame = false;
std::getline(resFile, str);
while(std::getline(resFile, str))
{
if(!str.compare(0, object_id.size(), object_id))
{
realsense_ros_object::ObjectInBox objectInBox;
std::getline(resFile, objectInBox.object.object_name);
std::getline(resFile, str);
objectInBox.object_bbox.x = std::stoi(str);
std::getline(resFile, str);
objectInBox.object_bbox.y = std::stoi(str);
std::getline(resFile, str);
objectInBox.object_bbox.width = std::stoi(str);
std::getline(resFile, str);
objectInBox.object_bbox.height = std::stoi(str);
std::getline(resFile, str);
objectInBox.location.coordinates.x = std::stoi(str);
std::getline(resFile, str);
objectInBox.location.coordinates.y = std::stoi(str);
std::getline(resFile, str);
objectInBox.location.coordinates.z = std::stoi(str);
std::getline(resFile, str);
objectInBox.location.horiz_margin = std::stof(str);
std::getline(resFile, str);
objectInBox.location.vert_margin = std::stof(str);
objs.objects_vector.push_back(objectInBox);
}
else if (!str.compare(0, frame.size(), frame))
{
new_frame = true;
res.push_back(objs);
}
}
}
}
for(auto & frame : res)
{
save_results(frame, std::string("/home/sshoshan/object_bag_results2.txt"));
}
return res;
}
char GUI_utils::show_results()
{
cv::namedWindow(m_window_name, cv::WINDOW_AUTOSIZE);
cv::imshow(m_window_name, m_image);
char c = cv::waitKey(5);
return c;
}
cv::Scalar GUI_utils::get_color(int classID)
{
if (classID > m_max_classes || classID < 1)
{
classID = m_max_classes;
}
return cv::Scalar(m_color_mat.at<unsigned char>(classID - 1, 0),
m_color_mat.at<unsigned char>(classID - 1, 1),
m_color_mat.at<unsigned char>(classID - 1, 2),
m_color_mat.at<unsigned char>(classID - 1, 3));
}
cv::Scalar GUI_utils::get_text_color(int classID)
{
if (classID > m_max_classes || classID < 1)
{
classID = m_max_classes;
}
return cv::Scalar(m_text_mat.at<unsigned char>(classID - 1, 0),
m_text_mat.at<unsigned char>(classID - 1, 1),
m_text_mat.at<unsigned char>(classID - 1, 2),
m_text_mat.at<unsigned char>(classID - 1, 3));
}
std::string GUI_utils::get_3D_location_string(geometry_msgs::Point32 location)
{
std::stringstream str_stream;
str_stream << std::fixed << std::setprecision(1) << (location.z / 1000);
std::string str = "@";
str += str_stream.str() + "m";
return str;
}
|
// Copyright 2020 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 "chrome/browser/ui/passwords/bubble_controllers/items_bubble_controller.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/ui/passwords/passwords_model_delegate_mock.h"
#include "chrome/test/base/testing_profile.h"
#include "components/password_manager/core/browser/mock_password_store.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::testing::Return;
using ::testing::ReturnRef;
namespace {
constexpr char kUIDismissalReasonGeneralMetric[] =
"PasswordManager.UIDismissalReason";
constexpr char kSiteOrigin[] = "http://example.com/login/";
} // namespace
class ItemsBubbleControllerTest : public ::testing::Test {
public:
ItemsBubbleControllerTest() {
test_web_contents_ =
content::WebContentsTester::CreateTestWebContents(&profile_, nullptr);
mock_delegate_ =
std::make_unique<testing::NiceMock<PasswordsModelDelegateMock>>();
ON_CALL(*mock_delegate_, GetPasswordFormMetricsRecorder())
.WillByDefault(Return(nullptr));
PasswordStoreFactory::GetInstance()->SetTestingFactoryAndUse(
profile(),
base::BindRepeating(
&password_manager::BuildPasswordStore<
content::BrowserContext,
testing::StrictMock<password_manager::MockPasswordStore>>));
}
~ItemsBubbleControllerTest() override = default;
static std::vector<std::unique_ptr<autofill::PasswordForm>> GetCurrentForms();
PasswordsModelDelegateMock* delegate() { return mock_delegate_.get(); }
ItemsBubbleController* controller() { return controller_.get(); }
TestingProfile* profile() { return &profile_; }
password_manager::MockPasswordStore* GetStore() {
return static_cast<password_manager::MockPasswordStore*>(
PasswordStoreFactory::GetInstance()
->GetForProfile(profile(), ServiceAccessType::EXPLICIT_ACCESS)
.get());
}
void Init();
void DestroyController();
private:
content::BrowserTaskEnvironment task_environment_;
content::RenderViewHostTestEnabler rvh_enabler_;
TestingProfile profile_;
std::unique_ptr<content::WebContents> test_web_contents_;
std::unique_ptr<PasswordsModelDelegateMock> mock_delegate_;
std::unique_ptr<ItemsBubbleController> controller_;
};
void ItemsBubbleControllerTest::Init() {
std::vector<std::unique_ptr<autofill::PasswordForm>> forms =
GetCurrentForms();
EXPECT_CALL(*delegate(), GetCurrentForms()).WillOnce(ReturnRef(forms));
GURL origin(kSiteOrigin);
EXPECT_CALL(*delegate(), GetOrigin()).WillOnce(ReturnRef(origin));
EXPECT_CALL(*delegate(), GetWebContents())
.WillRepeatedly(Return(test_web_contents_.get()));
EXPECT_CALL(*delegate(), OnBubbleShown());
controller_.reset(new ItemsBubbleController(mock_delegate_->AsWeakPtr()));
ASSERT_TRUE(testing::Mock::VerifyAndClearExpectations(delegate()));
EXPECT_CALL(*delegate(), GetWebContents())
.WillRepeatedly(Return(test_web_contents_.get()));
}
void ItemsBubbleControllerTest::DestroyController() {
controller_.reset();
}
// static
std::vector<std::unique_ptr<autofill::PasswordForm>>
ItemsBubbleControllerTest::GetCurrentForms() {
autofill::PasswordForm form1;
form1.origin = GURL(kSiteOrigin);
form1.signon_realm = kSiteOrigin;
form1.username_value = base::ASCIIToUTF16("User1");
form1.password_value = base::ASCIIToUTF16("123456");
autofill::PasswordForm form2;
form2.origin = GURL(kSiteOrigin);
form2.signon_realm = kSiteOrigin;
form2.username_value = base::ASCIIToUTF16("User2");
form2.password_value = base::ASCIIToUTF16("654321");
std::vector<std::unique_ptr<autofill::PasswordForm>> forms;
forms.push_back(std::make_unique<autofill::PasswordForm>(form1));
forms.push_back(std::make_unique<autofill::PasswordForm>(form2));
return forms;
}
TEST_F(ItemsBubbleControllerTest, OnManageClicked) {
Init();
EXPECT_CALL(
*delegate(),
NavigateToPasswordManagerSettingsPage(
password_manager::ManagePasswordsReferrer::kManagePasswordsBubble));
controller()->OnManageClicked(
password_manager::ManagePasswordsReferrer::kManagePasswordsBubble);
base::HistogramTester histogram_tester;
DestroyController();
histogram_tester.ExpectUniqueSample(
kUIDismissalReasonGeneralMetric,
password_manager::metrics_util::CLICKED_MANAGE, 1);
}
TEST_F(ItemsBubbleControllerTest, OnPasswordActionAddPassword) {
Init();
autofill::PasswordForm form;
form.origin = GURL(kSiteOrigin);
form.signon_realm = kSiteOrigin;
form.username_value = base::ASCIIToUTF16("User");
form.password_value = base::ASCIIToUTF16("123456");
EXPECT_CALL(*GetStore(), AddLogin(form));
controller()->OnPasswordAction(
form, PasswordBubbleControllerBase::PasswordAction::kAddPassword);
}
TEST_F(ItemsBubbleControllerTest, OnPasswordActionRemovePassword) {
Init();
autofill::PasswordForm form;
form.origin = GURL(kSiteOrigin);
form.signon_realm = kSiteOrigin;
form.username_value = base::ASCIIToUTF16("User");
form.password_value = base::ASCIIToUTF16("123456");
EXPECT_CALL(*GetStore(), RemoveLogin(form));
controller()->OnPasswordAction(
form, PasswordBubbleControllerBase::PasswordAction::kRemovePassword);
}
TEST_F(ItemsBubbleControllerTest, ShouldReturnLocalCredentials) {
Init();
std::vector<autofill::PasswordForm> local_credentials =
controller()->local_credentials();
std::vector<std::unique_ptr<autofill::PasswordForm>>
expected_local_credentials = ItemsBubbleControllerTest::GetCurrentForms();
EXPECT_EQ(local_credentials.size(), expected_local_credentials.size());
for (size_t i = 0; i < local_credentials.size(); i++) {
EXPECT_EQ(local_credentials[i], *expected_local_credentials[i]);
}
}
|
/**
* This file is part of the ExaHyPE project.
* Copyright (c) 2016 http://exahype.eu
All rights reserved.
*
* The project has received funding from the European Union's Horizon
* 2020 research and innovation programme under grant agreement
* No 671698. For copyrights and licensing, please consult the webpage.
*
* Released under the BSD 3 Open Source License.
* For the full license text, see LICENSE.txt
**/
#include "exahype/mappings/MeshRefinement.h"
#include "peano/utils/Globals.h"
#include "peano/utils/Loop.h"
#include "peano/datatraversal/autotuning/Oracle.h"
#include "peano/datatraversal/TaskSet.h"
#include "peano/grid/aspects/VertexStateAnalysis.h"
#include "peano/parallel/loadbalancing/Oracle.h"
#include "tarch/la/VectorScalarOperations.h"
#include "tarch/multicore/Lock.h"
#include "exahype/mappings/LevelwiseAdjacencyBookkeeping.h"
#include "exahype/VertexOperations.h"
#include "exahype/solvers/LimitingADERDGSolver.h"
#include "exahype/mappings/RefinementStatusSpreading.h"
#include <sstream>
bool exahype::mappings::MeshRefinement::DynamicLoadBalancing = false;
bool exahype::mappings::MeshRefinement::IsFirstIteration = true;
bool exahype::mappings::MeshRefinement::IsInitialMeshRefinement = true;
tarch::logging::Log exahype::mappings::MeshRefinement::_log("exahype::mappings::MeshRefinement");
tarch::multicore::BooleanSemaphore exahype::mappings::MeshRefinement::BoundarySemaphore;
/**
* @todo Please tailor the parameters to your mapping's properties.
*/
peano::CommunicationSpecification
exahype::mappings::MeshRefinement::communicationSpecification() const {
return peano::CommunicationSpecification(
peano::CommunicationSpecification::ExchangeMasterWorkerData::
SendDataAndStateBeforeFirstTouchVertexFirstTime,
peano::CommunicationSpecification::ExchangeWorkerMasterData::
SendDataAndStateAfterLastTouchVertexLastTime,
true);
}
peano::MappingSpecification
exahype::mappings::MeshRefinement::touchVertexFirstTimeSpecification(int level) const {
return peano::MappingSpecification(
peano::MappingSpecification::WholeTree,
peano::MappingSpecification::AvoidFineGridRaces,true);
}
peano::MappingSpecification
exahype::mappings::MeshRefinement::touchVertexLastTimeSpecification(int level) const {
return Vertex::getNeighbourMergeSpecification(level);
}
peano::MappingSpecification
exahype::mappings::MeshRefinement::enterCellSpecification(int level) const {
if ( exahype::solvers::Solver::SpawnAMRBackgroundJobs ) {
return peano::MappingSpecification(
peano::MappingSpecification::WholeTree,
peano::MappingSpecification::Serial,true);
} else {
return peano::MappingSpecification(
peano::MappingSpecification::WholeTree,
peano::MappingSpecification::AvoidFineGridRaces,true);
}
}
peano::MappingSpecification
exahype::mappings::MeshRefinement::leaveCellSpecification(int level) const {
if ( exahype::solvers::Solver::SpawnAMRBackgroundJobs ) {
return peano::MappingSpecification(
peano::MappingSpecification::WholeTree,
peano::MappingSpecification::Serial,true);
} else {
return peano::MappingSpecification(
peano::MappingSpecification::WholeTree,
peano::MappingSpecification::AvoidFineGridRaces,true);
}
}
// Nop.
peano::MappingSpecification
exahype::mappings::MeshRefinement::ascendSpecification(int level) const {
return peano::MappingSpecification(
peano::MappingSpecification::Nop,
peano::MappingSpecification::AvoidCoarseGridRaces,false);
}
peano::MappingSpecification
exahype::mappings::MeshRefinement::descendSpecification(int level) const {
return peano::MappingSpecification(
peano::MappingSpecification::Nop,
peano::MappingSpecification::AvoidCoarseGridRaces,false);
}
#if defined(SharedMemoryParallelisation)
exahype::mappings::MeshRefinement::MeshRefinement(const MeshRefinement& masterThread) :
_stateCopy(masterThread._stateCopy) {
// do nothing
}
#endif
#if defined(SharedMemoryParallelisation)
void exahype::mappings::MeshRefinement::mergeWithWorkerThread(
const MeshRefinement& workerThread) {
// do nothing
}
#endif
void exahype::mappings::MeshRefinement::beginIteration( exahype::State& solverState ) {
_stateCopy = solverState;
tarch::multicore::jobs::Job::setMaxNumberOfRunningBackgroundThreads(0); // during the traversal only have zero/one consumer thread running
if ( IsInitialMeshRefinement || DynamicLoadBalancing ) {
peano::parallel::loadbalancing::Oracle::getInstance().activateLoadBalancing(true);
}
// mesh refinement convergence check
solvers::Solver::AllSolversAreStable =
!exahype::mappings::MeshRefinement::IsFirstIteration &&
!solverState.isInvolvedInJoinOrFork();
// reset
_verticalExchangeOfSolverDataRequired = false;
#ifdef Parallel
if (! MetadataHeap::getInstance().validateThatIncomingJoinBuffersAreEmpty() ) {
exit(-1);
}
#endif
}
void exahype::mappings::MeshRefinement::endIteration(exahype::State& solverState) {
logTraceInWith1Argument("endIteration(State)", solverState);
// update the solver state
solverState.setAllSolversAttainedStableState(solvers::Solver::AllSolversAreStable.load()); // merge the local values
solverState.setVerticalExchangeOfSolverDataRequired(_verticalExchangeOfSolverDataRequired);
if ( tarch::parallel::Node::getInstance().isGlobalMaster() ) {
#ifndef TrackGridStatistics
#error Compiler flag TrackGridStatistics must be defined!
#endif
solverState.setAllSolversAttainedStableState( // check if we actually reached the solver's grids
solverState.getAllSolversAttainedStableState() &&
solverState.getMaxLevel()>=exahype::solvers::Solver::getFinestUniformMeshLevelOfAllSolvers()); // max level only available in endIteration(..>)
}
exahype::mappings::MeshRefinement::IsFirstIteration=false;
// background threads
exahype::solvers::Solver::ensureAllJobsHaveTerminated(exahype::solvers::Solver::JobType::AMRJob);
logTraceOutWith1Argument("endIteration(State)", solverState);
}
void exahype::mappings::MeshRefinement::refineSafely(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
int fineGridLevel,
bool isCalledByCreationalEvent) const {
bool vertexIsUnrefined =
fineGridVertex.getRefinementControl()==Vertex::Records::Unrefined;
if ( vertexIsUnrefined ) {
switch ( _stateCopy.mayRefine(isCalledByCreationalEvent,fineGridLevel) ) {
case State::RefinementAnswer::DontRefineYet:
break;
case State::RefinementAnswer::Refine:
fineGridVertex.refine();
break;
case State::RefinementAnswer::EnforceRefinement:
#ifdef Parallel // TODO hotfix
fineGridVertex.refine();
#else
fineGridVertex.enforceRefine();
#endif
break;
}
}
}
void exahype::mappings::MeshRefinement::touchVertexLastTime(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
bool correctAdjacencyInformation = true;
exahype::solvers::Solver::RefinementControl refinementControl =
fineGridVertex.evaluateRefinementCriterion(
fineGridX,
coarseGridVerticesEnumerator.getLevel()+1,
fineGridH,
true,
correctAdjacencyInformation);
solvers::Solver::AllSolversAreStable =
solvers::Solver::AllSolversAreStable.load() &&
correctAdjacencyInformation;
if (
refinementControl==exahype::solvers::Solver::RefinementControl::Refine
) {
refineSafely(fineGridVertex,fineGridH,coarseGridVerticesEnumerator.getLevel()+1,false);
} else if (
refinementControl==exahype::solvers::Solver::RefinementControl::Erase
&&
IsFirstIteration
&&
!fineGridVertex.isHangingNode()
#ifdef Parallel
&&
!fineGridVertex.isRemote(_stateCopy,true,true)
#endif
&& // otherwise, we compete with ensureRegularityAlongBoundary
fineGridVertex.getRefinementControl()==
Vertex::Records::RefinementControl::Refined
) {
fineGridVertex.erase();
}
}
void exahype::mappings::MeshRefinement::createBoundaryVertex(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
logTraceInWith6Arguments("createBoundaryVertex(...)", fineGridVertex,
fineGridX, fineGridH,
coarseGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfVertex);
bool correctAdjacencyInformation = true;
if (
fineGridVertex.evaluateRefinementCriterion(
fineGridX,
coarseGridVerticesEnumerator.getLevel()+1,
fineGridH, false,
correctAdjacencyInformation)
== exahype::solvers::Solver::RefinementControl::Refine
) {
refineSafely(fineGridVertex,fineGridH,coarseGridVerticesEnumerator.getLevel()+1,true);
}
logTraceOutWith1Argument("createBoundaryVertex(...)", fineGridVertex);
}
void exahype::mappings::MeshRefinement::createInnerVertex(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
logTraceInWith6Arguments("createInnerVertex(...)", fineGridVertex, fineGridX,
fineGridH, coarseGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfVertex);
bool correctAdjacencyInformation = true;
if (
fineGridVertex.evaluateRefinementCriterion(
fineGridX,
coarseGridVerticesEnumerator.getLevel()+1,
fineGridH,
false,
correctAdjacencyInformation)
== exahype::solvers::Solver::RefinementControl::Refine
) {
refineSafely(fineGridVertex,fineGridH,coarseGridVerticesEnumerator.getLevel()+1,true);
}
logTraceOutWith1Argument("createInnerVertex(...)", fineGridVertex);
}
void exahype::mappings::MeshRefinement::createCell(
exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
logTraceInWith4Arguments("createCell(...)", fineGridCell,
fineGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfCell);
// do nothing
fineGridCell.setCellDescriptionsIndex(
mappings::LevelwiseAdjacencyBookkeeping::InvalidAdjacencyIndex);
logTraceOutWith1Argument("createCell(...)", fineGridCell);
}
void exahype::mappings::MeshRefinement::createHangingVertex(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
// do nothing
}
void exahype::mappings::MeshRefinement::touchVertexFirstTime(
exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
logTraceInWith6Arguments("touchVertexFirstTime(...)", fineGridVertex,
fineGridX, fineGridH,
coarseGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfVertex);
fineGridVertex.mergeOnlyNeighboursMetadata(
exahype::State::AlgorithmSection::MeshRefinement,fineGridX,fineGridH,true);
logTraceOutWith1Argument("touchVertexFirstTime(...)", fineGridVertex);
}
void exahype::mappings::MeshRefinement::ensureRegularityAlongBoundary(
exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator) const {
if (
peano::grid::aspects::VertexStateAnalysis::isOneVertexBoundary(
fineGridVertices,fineGridVerticesEnumerator)
) {
bool oneInnerVertexIsRefined = false;
bool noInnerVertexIsRefined = true;
bool correctAdjacencyInformation = true;
dfor2(v)
oneInnerVertexIsRefined |=
fineGridVertices[fineGridVerticesEnumerator(v)].isInside() &&
fineGridVertices[fineGridVerticesEnumerator(v)].getRefinementControl()
==exahype::Vertex::Records::RefinementControl::Refined;
noInnerVertexIsRefined &=
!fineGridVertices[fineGridVerticesEnumerator(v)].isInside() ||
fineGridVertices[fineGridVerticesEnumerator(v)].getRefinementControl()
==exahype::Vertex::Records::RefinementControl::Unrefined;
enddforx
if ( oneInnerVertexIsRefined ) {
dfor2(v)
tarch::multicore::Lock lock(BoundarySemaphore);
if (
fineGridVertices[fineGridVerticesEnumerator(v)].isBoundary()
&&
fineGridVertices[fineGridVerticesEnumerator(v)].evaluateRefinementCriterion(
fineGridVerticesEnumerator.getVertexPosition(vScalar),
fineGridVerticesEnumerator.getLevel(),
fineGridVerticesEnumerator.getCellSize(),
true,
correctAdjacencyInformation)
!=exahype::solvers::Solver::RefinementControl::Erase
&&
_stateCopy.mayRefine(true,fineGridVerticesEnumerator.getLevel())
) {
refineSafely(fineGridVertices[fineGridVerticesEnumerator(v)],fineGridVerticesEnumerator.getCellSize(),fineGridVerticesEnumerator.getLevel(),false);
}
lock.free();
enddforx
}
else if ( noInnerVertexIsRefined ) {
dfor2(v)
tarch::multicore::Lock lock(BoundarySemaphore);
if (
#ifdef Parallel
!fineGridVertices[fineGridVerticesEnumerator(v)].isRemote(_stateCopy,true,true)
&&
#endif
fineGridVertices[fineGridVerticesEnumerator(v)].isBoundary()
&&
fineGridVertices[fineGridVerticesEnumerator(v)].getRefinementControl()==
exahype::Vertex::Records::RefinementControl::Refined
&&
fineGridVertices[fineGridVerticesEnumerator(v)].evaluateRefinementCriterion(
fineGridVerticesEnumerator.getVertexPosition(vScalar),
fineGridVerticesEnumerator.getLevel(),
fineGridVerticesEnumerator.getCellSize(),
true,
correctAdjacencyInformation)
==exahype::solvers::Solver::RefinementControl::Erase
) {
fineGridVertices[fineGridVerticesEnumerator(v)].erase();
}
lock.free();
enddforx
}
}
}
void exahype::mappings::MeshRefinement::enterCell(
exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
logTraceInWith4Arguments("enterCell(...)", fineGridCell,
fineGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfCell);
assertion(fineGridCell.isInside());
const bool firstMeshRefinementIteration =
#ifdef Parallel
!exahype::State::isNewWorkerDueToForkOfExistingDomain() &&
#endif
exahype::mappings::MeshRefinement::IsFirstIteration; // It has to be the first overall iteration
for (unsigned int solverNumber=0; solverNumber<exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
if ( solver->hasRequestedAnyMeshRefinement() ) {
const bool newComputeCell =
!firstMeshRefinementIteration && // skip in first iteration
solver->progressMeshRefinementInEnterCell(
fineGridCell,
fineGridVertices,
fineGridVerticesEnumerator,
coarseGridCell,
coarseGridVerticesEnumerator,
solverNumber);
// Synchronise time stepping, adjust the solution, evaluate refinement criterion if required
if (
(firstMeshRefinementIteration && fineGridCell.isInitialised()) ||
newComputeCell
) {
solvers::Solver::CellInfo cellInfo = fineGridCell.createCellInfo();
solver->adjustSolutionDuringMeshRefinement(solverNumber,cellInfo); // TODO(Dominic): Consider to merge this into the last loop
}
}
}
if ( fineGridCell.isInitialised() && fineGridCell.isEmpty() ) {
fineGridCell.shutdownMetaDataAndResetCellDescriptionsIndex();
}
logTraceOutWith1Argument("enterCell(...)", fineGridCell);
}
void exahype::mappings::MeshRefinement::leaveCell(
exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
logTraceInWith4Arguments("leaveCell(...)", fineGridCell,
fineGridVerticesEnumerator.toString(),
coarseGridCell, fineGridPositionOfCell);
for (unsigned int solverNumber=0; solverNumber<exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
if ( solver->hasRequestedAnyMeshRefinement() ) {
solver->progressMeshRefinementInLeaveCell(
fineGridCell,
fineGridVertices,
fineGridVerticesEnumerator,
coarseGridCell,
fineGridPositionOfCell,
solverNumber);
}
}
ensureRegularityAlongBoundary(fineGridVertices,fineGridVerticesEnumerator);
logTraceOutWith1Argument("leaveCell(...)", fineGridCell);
}
void exahype::mappings::MeshRefinement::destroyCell(
const exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
if ( fineGridCell.isInitialised() ) {
fineGridCell.shutdownMetaData();
}
}
#ifdef Parallel
void exahype::mappings::MeshRefinement::mergeWithNeighbour(
exahype::Vertex& vertex, const exahype::Vertex& neighbour, int fromRank,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH, int level) {
logTraceInWith6Arguments("mergeWithNeighbour(...)", vertex, neighbour,
fromRank, fineGridX, fineGridH, level);
if ( !IsFirstIteration ) {
vertex.mergeOnlyWithNeighbourMetadata(fromRank,fineGridX,fineGridH,level,exahype::State::AlgorithmSection::MeshRefinement,true);
}
logTraceOut("mergeWithNeighbour(...)");
}
void exahype::mappings::MeshRefinement::prepareSendToNeighbour(
exahype::Vertex& vertex, int toRank,
const tarch::la::Vector<DIMENSIONS, double>& x,
const tarch::la::Vector<DIMENSIONS, double>& h, int level) {
logTraceInWith5Arguments("prepareSendToNeighbour(...)", vertex,
toRank, x, h, level);
vertex.sendOnlyMetadataToNeighbour(toRank,x,h,level,true);
logTraceOut("prepareSendToNeighbour(...)");
}
bool exahype::mappings::MeshRefinement::prepareSendToWorker(
exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell,
int worker) {
logTraceIn( "prepareSendToWorker(...)" );
if (
!exahype::State::isForkingRank(worker) &&
fineGridCell.hasToCommunicate(fineGridVerticesEnumerator.getLevel() )
) {
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
solver->progressMeshRefinementInPrepareSendToWorker(
worker, fineGridCell, fineGridVertices,fineGridVerticesEnumerator,
coarseGridCell, coarseGridVerticesEnumerator,
solverNumber);
}
// send out the cell descriptions
const int cellDescriptionsIndex = fineGridCell.getCellDescriptionsIndex();
_verticalExchangeOfSolverDataRequired |=
exahype::solvers::ADERDGSolver::sendCellDescriptions(worker,cellDescriptionsIndex,
false/* !(send data from worker side) */,
peano::heap::MessageType::MasterWorkerCommunication,
fineGridVerticesEnumerator.getCellCenter(),fineGridVerticesEnumerator.getLevel());
exahype::solvers::FiniteVolumesSolver::sendCellDescriptions(worker,cellDescriptionsIndex,
peano::heap::MessageType::MasterWorkerCommunication,
fineGridVerticesEnumerator.getCellCenter(),fineGridVerticesEnumerator.getLevel());
// possibly send out data
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int element = solver->tryGetElement(cellDescriptionsIndex,solverNumber);
if ( element!=exahype::solvers::Solver::NotFound ) {
solver->sendDataToWorkerIfProlongating(
worker,
cellDescriptionsIndex,element,
fineGridVerticesEnumerator.getCellCenter(),
fineGridVerticesEnumerator.getLevel());
}
}
}
logTraceOutWith1Argument( "prepareSendToWorker(...)", true );
return true;
}
// TODO(Dominic): Add to docu: see documentation in peano/pdt/stdtemplates/MappingHeader.template
// on function receiveDataFromMaster
void exahype::mappings::MeshRefinement::receiveDataFromMaster(
exahype::Cell& receivedCell, exahype::Vertex* receivedVertices,
const peano::grid::VertexEnumerator& receivedVerticesEnumerator,
exahype::Vertex* const receivedCoarseGridVertices,
const peano::grid::VertexEnumerator& receivedCoarseGridVerticesEnumerator,
exahype::Cell& receivedCoarseGridCell,
exahype::Vertex* const workersCoarseGridVertices,
const peano::grid::VertexEnumerator& workersCoarseGridVerticesEnumerator,
exahype::Cell& workersCoarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
logTraceIn( "receiveDataFromMaster(...)" );
// TODO(Dominic): Here, I have to chance to read the coarse grid cell's state.
receivedCell.setCellDescriptionsIndex(
mappings::LevelwiseAdjacencyBookkeeping::InvalidAdjacencyIndex);
if (
!exahype::State::isNewWorkerDueToForkOfExistingDomain() &&
receivedCell.hasToCommunicate( receivedVerticesEnumerator.getLevel())
) {
receivedCell.setupMetaData();
exahype::solvers::ADERDGSolver::receiveCellDescriptions(
tarch::parallel::NodePool::getInstance().getMasterRank(),
receivedCell,
peano::heap::MessageType::MasterWorkerCommunication,
receivedVerticesEnumerator.getCellCenter(),
receivedVerticesEnumerator.getLevel());
exahype::solvers::FiniteVolumesSolver::receiveCellDescriptions(
tarch::parallel::NodePool::getInstance().getMasterRank(),
receivedCell, // Two step approach
peano::heap::MessageType::MasterWorkerCommunication,
receivedVerticesEnumerator.getCellCenter(),
receivedVerticesEnumerator.getLevel());
const int receivedCellDescriptionsIndex = receivedCell.getCellDescriptionsIndex();
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int receivedElement = solver->tryGetElement(receivedCellDescriptionsIndex,solverNumber);
if ( receivedElement!=exahype::solvers::Solver::NotFound ) {
solver->receiveDataFromMasterIfProlongating(
tarch::parallel::NodePool::getInstance().getMasterRank(),
receivedCellDescriptionsIndex,receivedElement,
receivedVerticesEnumerator.getCellCenter(),
receivedVerticesEnumerator.getLevel());
}
}
}
logTraceOut( "receiveDataFromMaster(...)" );
}
void exahype::mappings::MeshRefinement::mergeWithWorker(
exahype::Cell& localCell, const exahype::Cell& receivedMasterCell,
const tarch::la::Vector<DIMENSIONS, double>& cellCentre,
const tarch::la::Vector<DIMENSIONS, double>& cellSize, int level) {
logTraceInWith2Arguments( "mergeWithWorker(...)", localCell.toString(), receivedMasterCell.toString() );
if ( receivedMasterCell.isInitialised() ) { // we do not receive anything here
// Do not merge anything if our worker is on a newly forked part of the mesh
if ( !exahype::State::isNewWorkerDueToForkOfExistingDomain() ) {
if ( !localCell.isInitialised() ) { // simply copy the index
localCell.setupMetaData();
}
const int receivedCellDescriptionsIndex = receivedMasterCell.getCellDescriptionsIndex();
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int receivedElement = solver->tryGetElement(receivedCellDescriptionsIndex,solverNumber);
if ( receivedElement!=exahype::solvers::Solver::NotFound ) {
bool newComputeCell =
solver->progressMeshRefinementInMergeWithWorker(
localCell.getCellDescriptionsIndex(),
receivedCellDescriptionsIndex,receivedElement);
if ( newComputeCell ) {
solvers::Solver::CellInfo cellInfo = localCell.createCellInfo();
solver->adjustSolutionDuringMeshRefinement(solverNumber,cellInfo);
}
}
}
if ( localCell.isInitialised() && localCell.isEmpty() ) {
localCell.shutdownMetaDataAndResetCellDescriptionsIndex();
}
}
receivedMasterCell.shutdownMetaData();
}
logTraceOutWith1Argument( "mergeWithWorker(...)", localCell.toString() );
}
void exahype::mappings::MeshRefinement::prepareSendToMaster(
exahype::Cell& localCell, exahype::Vertex* vertices,
const peano::grid::VertexEnumerator& verticesEnumerator,
const exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
const exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell) {
logTraceInWith2Arguments( "prepareSendToMaster(...)", localCell, verticesEnumerator.toString() );
if ( localCell.hasToCommunicate( verticesEnumerator.getLevel() ) ) {
exahype::solvers::ADERDGSolver::sendCellDescriptions(
tarch::parallel::NodePool::getInstance().getMasterRank(),
localCell.getCellDescriptionsIndex(),true/* send data from worker side*/,
peano::heap::MessageType::MasterWorkerCommunication,
verticesEnumerator.getCellCenter(),
verticesEnumerator.getLevel());
exahype::solvers::FiniteVolumesSolver::sendCellDescriptions(
tarch::parallel::NodePool::getInstance().getMasterRank(),
localCell.getCellDescriptionsIndex(),
peano::heap::MessageType::MasterWorkerCommunication,
verticesEnumerator.getCellCenter(),
verticesEnumerator.getLevel()); // make collective
for (unsigned int solverNumber = 0; solverNumber < exahype::solvers::RegisteredSolvers.size(); ++solverNumber) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int element = solver->tryGetElement(localCell.getCellDescriptionsIndex(),solverNumber);
if ( element!=exahype::solvers::Solver::NotFound ) {
solver->progressMeshRefinementInPrepareSendToMaster(
tarch::parallel::NodePool::getInstance().getMasterRank(),
localCell.getCellDescriptionsIndex(),element,
verticesEnumerator.getCellCenter(),verticesEnumerator.getLevel());
}
}
}
logTraceOut( "prepareSendToMaster(...)" );
}
void exahype::mappings::MeshRefinement::mergeWithMaster(
const exahype::Cell& workerGridCell,
exahype::Vertex* const workerGridVertices,
const peano::grid::VertexEnumerator& workerEnumerator,
exahype::Cell& fineGridCell, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfCell,
int worker, const exahype::State& workerState,
exahype::State& masterState) {
logTraceIn( "mergeWithMaster(...)" );
// Merge global solver states
solvers::Solver::AllSolversAreStable =
solvers::Solver::AllSolversAreStable.load() &&
workerState.getAllSolversAttainedStableState();
_verticalExchangeOfSolverDataRequired |= workerState.getVerticalExchangeOfSolverDataRequired();
if ( fineGridCell.hasToCommunicate( fineGridVerticesEnumerator.getLevel() ) ) {
if ( fineGridCell.isInitialised() ) {
exahype::solvers::ADERDGSolver::eraseCellDescriptions(fineGridCell.getCellDescriptionsIndex());
exahype::solvers::FiniteVolumesSolver::eraseCellDescriptions(fineGridCell.getCellDescriptionsIndex());
} else {
fineGridCell.setupMetaData();
}
exahype::solvers::ADERDGSolver::receiveCellDescriptions(
worker,fineGridCell,
peano::heap::MessageType::MasterWorkerCommunication,
fineGridVerticesEnumerator.getCellCenter(),
fineGridVerticesEnumerator.getLevel());
exahype::solvers::FiniteVolumesSolver::receiveCellDescriptions(
worker,fineGridCell,
peano::heap::MessageType::MasterWorkerCommunication,
fineGridVerticesEnumerator.getCellCenter(),
fineGridVerticesEnumerator.getLevel());
const int cellDescriptionsIndex = fineGridCell.getCellDescriptionsIndex();
for (unsigned int solverNumber = 0; solverNumber < exahype::solvers::RegisteredSolvers.size(); ++solverNumber) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int element = solver->tryGetElement(cellDescriptionsIndex,solverNumber);
if ( element!=exahype::solvers::Solver::NotFound ) {
solver->progressMeshRefinementInMergeWithMaster(
worker, cellDescriptionsIndex, element,
coarseGridCell.getCellDescriptionsIndex(),
fineGridVerticesEnumerator.getCellCenter(),
fineGridVerticesEnumerator.getLevel());
}
}
if ( fineGridCell.isEmpty() ) {
fineGridCell.shutdownMetaDataAndResetCellDescriptionsIndex();
}
}
logTraceOut( "mergeWithMaster(...)" );
}
//////////////////
// FORK and JOIN//
//////////////////
void exahype::mappings::MeshRefinement::prepareCopyToRemoteNode(
exahype::Cell& localCell, int toRank,
const tarch::la::Vector<DIMENSIONS, double>& cellCentre,
const tarch::la::Vector<DIMENSIONS, double>& cellSize, int level) {
logTraceInWith5Arguments( "prepareCopyToRemoteNode(...)", localCell, toRank, cellCentre, cellSize, level );
solvers::Solver::AllSolversAreStable = false;
if (
localCell.hasToCommunicate(level) &&
localCell.getRankOfRemoteNode()==toRank
) { // isAsignedToRemoteRank does not work, remember the halo sends
const int cellDescriptionsIndex = localCell.getCellDescriptionsIndex();
exahype::solvers::ADERDGSolver::sendCellDescriptions(toRank,cellDescriptionsIndex,
exahype::State::isJoiningWithMaster()/* send out data from worker side */,
peano::heap::MessageType::ForkOrJoinCommunication,cellCentre,level);
exahype::solvers::FiniteVolumesSolver::sendCellDescriptions(toRank,cellDescriptionsIndex,
peano::heap::MessageType::ForkOrJoinCommunication,cellCentre,level);
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int element = solver->tryGetElement(cellDescriptionsIndex,solverNumber);
if( element!=exahype::solvers::Solver::NotFound ) {
solver->sendDataToWorkerOrMasterDueToForkOrJoin(toRank,cellDescriptionsIndex,element,
peano::heap::MessageType::ForkOrJoinCommunication,cellCentre,level);
}
}
if ( localCell.isInitialised() ) {
localCell.shutdownMetaDataAndResetCellDescriptionsIndex();
}
}
logTraceOut( "prepareCopyToRemoteNode(...)" );
}
void exahype::mappings::MeshRefinement::mergeWithRemoteDataDueToForkOrJoin(
exahype::Vertex& localVertex, const exahype::Vertex& masterOrWorkerVertex,
int fromRank, const tarch::la::Vector<DIMENSIONS, double>& x,
const tarch::la::Vector<DIMENSIONS, double>& h, int level) {
logTraceInWith6Arguments( "mergeWithRemoteDataDueToForkOrJoin(...)", localVertex, masterOrWorkerVertex, fromRank, x, h, level );
if ( exahype::State::isNewWorkerDueToForkOfExistingDomain() ) {
exahype::VertexOperations::writeCellDescriptionsIndex(
localVertex, mappings::LevelwiseAdjacencyBookkeeping::InvalidAdjacencyIndex
);
}
logTraceOut( "mergeWithRemoteDataDueToForkOrJoin(...)" );
}
void exahype::mappings::MeshRefinement::mergeWithRemoteDataDueToForkOrJoin(
exahype::Cell& localCell, const exahype::Cell& masterOrWorkerCell,
int fromRank, const tarch::la::Vector<DIMENSIONS, double>& cellCentre,
const tarch::la::Vector<DIMENSIONS, double>& cellSize, int level) {
logTraceInWith3Arguments( "mergeWithRemoteDataDueToForkOrJoin(...)", localCell, masterOrWorkerCell, fromRank );
if (
localCell.hasToCommunicate(level) &&
masterOrWorkerCell.getRankOfRemoteNode()==tarch::parallel::Node::getInstance().getRank()
) {
if ( exahype::State::isNewWorkerDueToForkOfExistingDomain() ) {
localCell.setCellDescriptionsIndex(
mappings::LevelwiseAdjacencyBookkeeping::InvalidAdjacencyIndex);
localCell.setupMetaData();
} else if ( exahype::State::isJoiningWithWorker() ) {
exahype::solvers::ADERDGSolver::eraseCellDescriptions(localCell.getCellDescriptionsIndex());
exahype::solvers::FiniteVolumesSolver::eraseCellDescriptions(localCell.getCellDescriptionsIndex());
}
exahype::solvers::ADERDGSolver::receiveCellDescriptions(
fromRank,localCell,
peano::heap::MessageType::ForkOrJoinCommunication,
cellCentre,level);
exahype::solvers::FiniteVolumesSolver::receiveCellDescriptions(
fromRank,localCell,
peano::heap::MessageType::ForkOrJoinCommunication,
cellCentre,level);
// receive accompanying data
for (unsigned int solverNumber=0; solverNumber < exahype::solvers::RegisteredSolvers.size(); solverNumber++) {
auto* solver = exahype::solvers::RegisteredSolvers[solverNumber];
const int element = solver->tryGetElement(localCell.getCellDescriptionsIndex(),solverNumber);
if ( element!=exahype::solvers::Solver::NotFound ) {
solver->mergeWithWorkerOrMasterDataDueToForkOrJoin(fromRank,
localCell.getCellDescriptionsIndex(),element,
peano::heap::MessageType::ForkOrJoinCommunication,cellCentre,level);
}
}
// if no solver was found or the cell does belong to the master,
// shut down the metadata again
if (
localCell.isInitialised() &&
localCell.isEmpty()
) {
localCell.shutdownMetaDataAndResetCellDescriptionsIndex();
}
}
logTraceOut( "mergeWithRemoteDataDueToForkOrJoin(...)" );
}
//
// All methods below are nop,
//
// ==================================
void exahype::mappings::MeshRefinement::prepareCopyToRemoteNode(
exahype::Vertex& localVertex, int toRank,
const tarch::la::Vector<DIMENSIONS, double>& x,
const tarch::la::Vector<DIMENSIONS, double>& h, int level) {
// do nothing
}
void exahype::mappings::MeshRefinement::mergeWithWorker(
exahype::Vertex& localVertex, const exahype::Vertex& receivedMasterVertex,
const tarch::la::Vector<DIMENSIONS, double>& x,
const tarch::la::Vector<DIMENSIONS, double>& h, int level) {
// do nothing
}
#endif
exahype::mappings::MeshRefinement::MeshRefinement() {
// do nothing
}
exahype::mappings::MeshRefinement::~MeshRefinement() {
// do nothing
}
void exahype::mappings::MeshRefinement::destroyHangingVertex(
const exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
// do nothing
}
void exahype::mappings::MeshRefinement::destroyVertex(
const exahype::Vertex& fineGridVertex,
const tarch::la::Vector<DIMENSIONS, double>& fineGridX,
const tarch::la::Vector<DIMENSIONS, double>& fineGridH,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell,
const tarch::la::Vector<DIMENSIONS, int>& fineGridPositionOfVertex) {
// do nothing
}
void exahype::mappings::MeshRefinement::descend(
exahype::Cell* const fineGridCells, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell) {
// do nothing
}
void exahype::mappings::MeshRefinement::ascend(
exahype::Cell* const fineGridCells, exahype::Vertex* const fineGridVertices,
const peano::grid::VertexEnumerator& fineGridVerticesEnumerator,
exahype::Vertex* const coarseGridVertices,
const peano::grid::VertexEnumerator& coarseGridVerticesEnumerator,
exahype::Cell& coarseGridCell) {
// do nothing
}
|
#include <bits/stdc++.h>
using namespace std;
using Freq=array<int,26>;
map<Freq, int> mp[111];
Freq f(string s){
Freq a = {};
for (char x: s)a[x-'a']++;
return a;
}
void solve() {
int n; cin >> n;
cout << "? 1 " << n << endl;
string s;
for (int _ = 0; _ < (n)*(n+1)/2; _++) {
cin >> s;
mp[s.size()][f(s)]++;
}
if (n == 1) {
cout << "! "<< s; return;
}
cout << "? 2 " << n << endl;
for (int _ = 0; _ < (n)*(n-1)/2; _++) {
cin >> s;
auto it = mp[s.size()].find(f(s));
it->second--;
if (it->second == 0) {
mp[s.size()].erase(it);
}
}
string res(n, '#');
for (int i = 1; i <= n; i++) {
auto cnt = mp[i].begin()->first;
for (int k = 0; k < i-1; k++) {
cnt[res[k]-'a']--;
}
for (int x = 0; x < 26; x++) {
if (cnt[x]) {
res[i-1] = 'a'+x;
break;
}
}
}
cout << "! " << res;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
solve();
cout << endl;
}
|
/**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* World of Warcraft, and all World of Warcraft or Warcraft art, images,
* and lore are copyrighted by Blizzard Entertainment, Inc.
*/
#include "Corpse.h"
#include "Player.h"
#include "UpdateMask.h"
#include "ObjectAccessor.h"
#include "ObjectGuid.h"
#include "Database/DatabaseEnv.h"
#include "Opcodes.h"
#include "GossipDef.h"
#include "World.h"
#include "ObjectMgr.h"
Corpse::Corpse(CorpseType type) : WorldObject(),
loot(this),
lootRecipient(NULL),
lootForBody(false)
{
m_objectType |= TYPEMASK_CORPSE;
m_objectTypeId = TYPEID_CORPSE;
m_updateFlag = (UPDATEFLAG_HIGHGUID | UPDATEFLAG_HAS_POSITION | UPDATEFLAG_POSITION);
m_valuesCount = CORPSE_END;
m_type = type;
m_time = time(NULL);
}
Corpse::~Corpse()
{
}
void Corpse::AddToWorld()
{
///- Register the corpse for guid lookup
if (!IsInWorld())
{ sObjectAccessor.AddObject(this); }
Object::AddToWorld();
}
void Corpse::RemoveFromWorld()
{
///- Remove the corpse from the accessor
if (IsInWorld())
{ sObjectAccessor.RemoveObject(this); }
Object::RemoveFromWorld();
}
bool Corpse::Create(uint32 guidlow)
{
Object::_Create(guidlow, 0, HIGHGUID_CORPSE);
return true;
}
bool Corpse::Create(uint32 guidlow, Player* owner)
{
MANGOS_ASSERT(owner);
WorldObject::_Create(guidlow, HIGHGUID_CORPSE, owner->GetPhaseMask());
Relocate(owner->GetPositionX(), owner->GetPositionY(), owner->GetPositionZ(), owner->GetOrientation());
// we need to assign owner's map for corpse
// in other way we will get a crash in Corpse::SaveToDB()
SetMap(owner->GetMap());
if (!IsPositionValid())
{
sLog.outError("Corpse (guidlow %d, owner %s) not created. Suggested coordinates isn't valid (X: %f Y: %f)",
guidlow, owner->GetName(), owner->GetPositionX(), owner->GetPositionY());
return false;
}
SetObjectScale(DEFAULT_OBJECT_SCALE);
SetGuidValue(CORPSE_FIELD_OWNER, owner->GetObjectGuid());
m_grid = MaNGOS::ComputeGridPair(GetPositionX(), GetPositionY());
return true;
}
void Corpse::SaveToDB()
{
// bones should not be saved to DB (would be deleted on startup anyway)
MANGOS_ASSERT(GetType() != CORPSE_BONES);
// prevent DB data inconsistence problems and duplicates
CharacterDatabase.BeginTransaction();
DeleteFromDB();
std::ostringstream ss;
ss << "INSERT INTO corpse (guid,player,position_x,position_y,position_z,orientation,map,time,corpse_type,instance,phaseMask) VALUES ("
<< GetGUIDLow() << ", "
<< GetOwnerGuid().GetCounter() << ", "
<< GetPositionX() << ", "
<< GetPositionY() << ", "
<< GetPositionZ() << ", "
<< GetOrientation() << ", "
<< GetMapId() << ", "
<< uint64(m_time) << ", "
<< uint32(GetType()) << ", "
<< int(GetInstanceId()) << ", "
<< uint16(GetPhaseMask()) << ")"; // prevent out of range error
CharacterDatabase.Execute(ss.str().c_str());
CharacterDatabase.CommitTransaction();
}
void Corpse::DeleteBonesFromWorld()
{
MANGOS_ASSERT(GetType() == CORPSE_BONES);
Corpse* corpse = GetMap()->GetCorpse(GetObjectGuid());
if (!corpse)
{
sLog.outError("Bones %u not found in world.", GetGUIDLow());
return;
}
AddObjectToRemoveList();
}
void Corpse::DeleteFromDB()
{
// bones should not be saved to DB (would be deleted on startup anyway)
MANGOS_ASSERT(GetType() != CORPSE_BONES);
// all corpses (not bones)
static SqlStatementID id;
SqlStatement stmt = CharacterDatabase.CreateStatement(id, "DELETE FROM corpse WHERE player = ? AND corpse_type <> '0'");
stmt.PExecute(GetOwnerGuid().GetCounter());
}
bool Corpse::LoadFromDB(uint32 lowguid, Field* fields)
{
//// 0 1 2 3 4 5 6
// QueryResult *result = CharacterDatabase.Query("SELECT corpse.guid, player, corpse.position_x, corpse.position_y, corpse.position_z, corpse.orientation, corpse.map,"
//// 7 8 9 10 11 12 13 14 15 16 17 18
// "time, corpse_type, instance, phaseMask, gender, race, class, playerBytes, playerBytes2, equipmentCache, guildId, playerFlags FROM corpse"
uint32 playerLowGuid = fields[1].GetUInt32();
float positionX = fields[2].GetFloat();
float positionY = fields[3].GetFloat();
float positionZ = fields[4].GetFloat();
float orientation = fields[5].GetFloat();
uint32 mapid = fields[6].GetUInt32();
Object::_Create(lowguid, 0, HIGHGUID_CORPSE);
m_time = time_t(fields[7].GetUInt64());
m_type = CorpseType(fields[8].GetUInt32());
if (m_type >= MAX_CORPSE_TYPE)
{
sLog.outError("%s Owner %s have wrong corpse type (%i), not load.", GetGuidStr().c_str(), GetOwnerGuid().GetString().c_str(), m_type);
return false;
}
uint32 instanceid = fields[9].GetUInt32();
uint32 phaseMask = fields[10].GetUInt32();
uint8 gender = fields[11].GetUInt8();
uint8 race = fields[12].GetUInt8();
uint8 _class = fields[13].GetUInt8();
uint32 playerBytes = fields[14].GetUInt32();
uint32 playerBytes2 = fields[15].GetUInt32();
uint32 guildId = fields[17].GetUInt32();
uint32 playerFlags = fields[18].GetUInt32();
ObjectGuid guid = ObjectGuid(HIGHGUID_CORPSE, lowguid);
ObjectGuid playerGuid = ObjectGuid(HIGHGUID_PLAYER, playerLowGuid);
// overwrite possible wrong/corrupted guid
SetGuidValue(OBJECT_FIELD_GUID, guid);
SetGuidValue(CORPSE_FIELD_OWNER, playerGuid);
SetObjectScale(DEFAULT_OBJECT_SCALE);
PlayerInfo const* info = sObjectMgr.GetPlayerInfo(race, _class);
if (!info)
{
sLog.outError("Player %u has incorrect race/class pair.", GetGUIDLow());
return false;
}
SetUInt32Value(CORPSE_FIELD_DISPLAY_ID, gender == GENDER_FEMALE ? info->displayId_f : info->displayId_m);
// Load equipment
Tokens data = StrSplit(fields[16].GetCppString(), " ");
for (uint8 slot = 0; slot < EQUIPMENT_SLOT_END; ++slot)
{
uint32 visualbase = slot * 2;
uint32 item_id = GetUInt32ValueFromArray(data, visualbase);
const ItemPrototype* proto = ObjectMgr::GetItemPrototype(item_id);
if (!proto)
{
SetUInt32Value(CORPSE_FIELD_ITEM + slot, 0);
continue;
}
SetUInt32Value(CORPSE_FIELD_ITEM + slot, proto->DisplayInfoID | (proto->InventoryType << 24));
}
uint8 skin = (uint8)(playerBytes);
uint8 face = (uint8)(playerBytes >> 8);
uint8 hairstyle = (uint8)(playerBytes >> 16);
uint8 haircolor = (uint8)(playerBytes >> 24);
uint8 facialhair = (uint8)(playerBytes2);
SetUInt32Value(CORPSE_FIELD_BYTES_1, ((0x00) | (race << 8) | (gender << 16) | (skin << 24)));
SetUInt32Value(CORPSE_FIELD_BYTES_2, ((face) | (hairstyle << 8) | (haircolor << 16) | (facialhair << 24)));
SetUInt32Value(CORPSE_FIELD_GUILD, guildId);
uint32 flags = CORPSE_FLAG_UNK2;
if (playerFlags & PLAYER_FLAGS_HIDE_HELM)
{ flags |= CORPSE_FLAG_HIDE_HELM; }
if (playerFlags & PLAYER_FLAGS_HIDE_CLOAK)
{ flags |= CORPSE_FLAG_HIDE_CLOAK; }
SetUInt32Value(CORPSE_FIELD_FLAGS, flags);
// no need to mark corpse as lootable, because corpses are not saved in battle grounds
// place
SetLocationInstanceId(instanceid);
SetLocationMapId(mapid);
SetPhaseMask(phaseMask, false);
Relocate(positionX, positionY, positionZ, orientation);
if (!IsPositionValid())
{
sLog.outError("%s Owner %s not created. Suggested coordinates isn't valid (X: %f Y: %f)",
GetGuidStr().c_str(), GetOwnerGuid().GetString().c_str(), GetPositionX(), GetPositionY());
return false;
}
m_grid = MaNGOS::ComputeGridPair(GetPositionX(), GetPositionY());
return true;
}
bool Corpse::isVisibleForInState(Player const* u, WorldObject const* viewPoint, bool inVisibleList) const
{
return IsInWorld() && u->IsInWorld() && IsWithinDistInMap(viewPoint, GetMap()->GetVisibilityDistance() + (inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f), false);
}
bool Corpse::IsHostileTo(Unit const* unit) const
{
if (Player* owner = sObjectMgr.GetPlayer(GetOwnerGuid()))
{ return owner->IsHostileTo(unit); }
else
{ return false; }
}
bool Corpse::IsFriendlyTo(Unit const* unit) const
{
if (Player* owner = sObjectMgr.GetPlayer(GetOwnerGuid()))
{ return owner->IsFriendlyTo(unit); }
else
{ return true; }
}
bool Corpse::IsExpired(time_t t) const
{
if (m_type == CORPSE_BONES)
{ return m_time < t - 60 * MINUTE; }
else
{ return m_time < t - 3 * DAY; }
}
|
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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 <cmath>
#include <cstddef>
#include <cstdint>
#include <iomanip>
#include <limits>
#include <ostream>
#include <emmintrin.h>
#include <immintrin.h>
#include <smmintrin.h>
namespace fetch {
namespace vectorise {
ADD_REGISTER_SIZE(int64_t, 256);
template <>
class VectorRegister<int64_t, 128> : public BaseVectorRegisterType
{
public:
using type = int64_t;
using MMRegisterType = __m128i;
enum
{
E_VECTOR_SIZE = 128,
E_REGISTER_SIZE = sizeof(MMRegisterType),
E_BLOCK_COUNT = E_REGISTER_SIZE / sizeof(type)
};
static_assert((E_BLOCK_COUNT * sizeof(type)) == E_REGISTER_SIZE,
"type cannot be contained in the given register size.");
VectorRegister() = default;
VectorRegister(type const *d) // NOLINT
{
data_ = _mm_load_si128(reinterpret_cast<MMRegisterType const *>(d));
}
VectorRegister(std::initializer_list<type> const &list)
{
data_ = _mm_load_si128(reinterpret_cast<MMRegisterType const *>(list.begin()));
}
VectorRegister(type const &c) // NOLINT
{
data_ = _mm_set1_epi64x(c);
}
VectorRegister(MMRegisterType const &d) // NOLINT
: data_(d)
{}
VectorRegister(MMRegisterType &&d) // NOLINT
: data_(d)
{}
explicit operator MMRegisterType()
{
return data_;
}
void Store(type *ptr) const
{
_mm_store_si128(reinterpret_cast<MMRegisterType *>(ptr), data_);
}
void Stream(type *ptr) const
{
_mm_stream_si128(reinterpret_cast<MMRegisterType *>(ptr), data_);
}
MMRegisterType const &data() const
{
return data_;
}
MMRegisterType &data()
{
return data_;
}
private:
MMRegisterType data_;
};
template <>
class VectorRegister<int64_t, 256> : public BaseVectorRegisterType
{
public:
using type = int64_t;
using MMRegisterType = __m256i;
enum
{
E_VECTOR_SIZE = 256,
E_REGISTER_SIZE = sizeof(MMRegisterType),
E_BLOCK_COUNT = E_REGISTER_SIZE / sizeof(type)
};
static_assert((E_BLOCK_COUNT * sizeof(type)) == E_REGISTER_SIZE,
"type cannot be contained in the given register size.");
VectorRegister() = default;
VectorRegister(type const *d) // NOLINT
{
data_ = _mm256_load_si256(reinterpret_cast<MMRegisterType const *>(d));
}
VectorRegister(std::initializer_list<type> const &list)
{
data_ = _mm256_load_si256(reinterpret_cast<MMRegisterType const *>(list.begin()));
}
VectorRegister(type const &c) // NOLINT
{
data_ = _mm256_set1_epi64x(c);
}
VectorRegister(MMRegisterType const &d) // NOLINT
: data_(d)
{}
VectorRegister(MMRegisterType &&d) // NOLINT
: data_(d)
{}
explicit operator MMRegisterType()
{
return data_;
}
void Store(type *ptr) const
{
_mm256_store_si256(reinterpret_cast<MMRegisterType *>(ptr), data_);
}
void Stream(type *ptr) const
{
_mm256_stream_si256(reinterpret_cast<MMRegisterType *>(ptr), data_);
}
MMRegisterType const &data() const
{
return data_;
}
MMRegisterType &data()
{
return data_;
}
private:
MMRegisterType data_;
};
template <>
inline std::ostream &operator<<(std::ostream &s, VectorRegister<int64_t, 128> const &n)
{
alignas(16) int64_t out[4];
n.Store(out);
s << std::setprecision(std::numeric_limits<int64_t>::digits10);
s << std::fixed;
s << std::hex << out[0] << ", " << out[1] << std::dec;
return s;
}
template <>
inline std::ostream &operator<<(std::ostream &s, VectorRegister<int64_t, 256> const &n)
{
alignas(32) int64_t out[8];
n.Store(out);
s << std::setprecision(std::numeric_limits<int64_t>::digits10);
s << std::fixed;
s << std::hex << out[0] << ", " << out[1] << ", " << out[2] << ", " << out[3] << std::dec;
return s;
}
inline VectorRegister<int64_t, 128> operator~(VectorRegister<int64_t, 128> const &x)
{
return {_mm_xor_si128(x.data(), _mm_cmpeq_epi64(x.data(), x.data()))};
}
inline VectorRegister<int64_t, 256> operator~(VectorRegister<int64_t, 256> const &x)
{
return {_mm256_xor_si256(x.data(), _mm256_cmpeq_epi64(x.data(), x.data()))};
}
inline VectorRegister<int64_t, 128> operator-(VectorRegister<int64_t, 128> const &x)
{
return {_mm_sub_epi64(_mm_setzero_si128(), x.data())};
}
inline VectorRegister<int64_t, 256> operator-(VectorRegister<int64_t, 256> const &x)
{
return {_mm256_sub_epi64(_mm256_setzero_si256(), x.data())};
}
#define FETCH_ADD_OPERATOR(op, type, size, L, fnc) \
inline VectorRegister<type, size> operator op(VectorRegister<type, size> const &a, \
VectorRegister<type, size> const &b) \
{ \
L ret = fnc(a.data(), b.data()); \
return VectorRegister<type, size>(ret); \
}
FETCH_ADD_OPERATOR(+, int64_t, 128, __m128i, _mm_add_epi64)
FETCH_ADD_OPERATOR(-, int64_t, 128, __m128i, _mm_sub_epi64)
FETCH_ADD_OPERATOR(&, int64_t, 128, __m128i, _mm_and_si128)
FETCH_ADD_OPERATOR(|, int64_t, 128, __m128i, _mm_or_si128)
FETCH_ADD_OPERATOR (^, int64_t, 128, __m128i, _mm_xor_si128)
FETCH_ADD_OPERATOR(==, int64_t, 128, __m128i, _mm_cmpeq_epi64)
FETCH_ADD_OPERATOR(>, int64_t, 128, __m128i, _mm_cmpgt_epi64)
FETCH_ADD_OPERATOR(+, int64_t, 256, __m256i, _mm256_add_epi64)
FETCH_ADD_OPERATOR(-, int64_t, 256, __m256i, _mm256_sub_epi64)
FETCH_ADD_OPERATOR(&, int64_t, 256, __m256i, _mm256_and_si256)
FETCH_ADD_OPERATOR(|, int64_t, 256, __m256i, _mm256_or_si256)
FETCH_ADD_OPERATOR (^, int64_t, 256, __m256i, _mm256_xor_si256)
FETCH_ADD_OPERATOR(==, int64_t, 256, __m256i, _mm256_cmpeq_epi64)
FETCH_ADD_OPERATOR(>, int64_t, 256, __m256i, _mm256_cmpgt_epi64)
#undef FETCH_ADD_OPERATOR
inline VectorRegister<int64_t, 128> operator*(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
// TODO(private 440): SSE implementation required
alignas(16) int64_t d1[2];
_mm_store_si128(reinterpret_cast<__m128i *>(d1), a.data());
alignas(16) int64_t d2[2];
_mm_store_si128(reinterpret_cast<__m128i *>(d2), b.data());
alignas(16) int64_t ret[2];
ret[0] = d1[0] * d2[0];
ret[1] = d1[1] * d2[1];
return {ret};
}
inline VectorRegister<int64_t, 256> operator*(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
// TODO(private 440): SSE implementation required
alignas(32) int64_t d1[4];
_mm256_store_si256(reinterpret_cast<__m256i *>(d1), a.data());
alignas(32) int64_t d2[4];
_mm256_store_si256(reinterpret_cast<__m256i *>(d2), b.data());
alignas(32) int64_t ret[4];
ret[0] = d1[0] * d2[0];
ret[1] = d1[1] * d2[1];
ret[2] = d1[2] * d2[2];
ret[3] = d1[3] * d2[3];
return {ret};
}
inline VectorRegister<int64_t, 128> operator/(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
// TODO(private 440): SSE implementation required
alignas(16) int64_t d1[2];
_mm_store_si128(reinterpret_cast<__m128i *>(d1), a.data());
alignas(16) int64_t d2[2];
_mm_store_si128(reinterpret_cast<__m128i *>(d2), b.data());
alignas(16) int64_t ret[2];
// don't divide by zero
// set each of the 4 values in the vector register to either the solution of the division or 0
ret[0] = d2[0] != 0 ? d1[0] / d2[0] : 0;
ret[1] = d2[1] != 0 ? d1[1] / d2[1] : 0;
return {ret};
}
inline VectorRegister<int64_t, 256> operator/(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
// TODO(private 440): SSE implementation required
alignas(32) int64_t d1[4];
_mm256_store_si256(reinterpret_cast<__m256i *>(d1), a.data());
alignas(32) int64_t d2[4];
_mm256_store_si256(reinterpret_cast<__m256i *>(d2), b.data());
alignas(32) int64_t ret[4];
// don't divide by zero
// set each of the 4 values in the vector register to either the solution of the division or 0
for (std::size_t i = 0; i < 4; i++)
{
ret[i] = d2[i] != 0 ? d1[i] / d2[i] : 0;
}
return {ret};
}
inline VectorRegister<int64_t, 128> operator!=(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
return ~(a == b);
}
inline VectorRegister<int64_t, 256> operator!=(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
return ~(a == b);
}
inline VectorRegister<int64_t, 128> operator<(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
return b > a;
}
inline VectorRegister<int64_t, 256> operator<(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
return b > a;
}
inline VectorRegister<int64_t, 128> operator<=(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
return (a < b) | (a == b);
}
inline VectorRegister<int64_t, 256> operator<=(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
return (a < b) | (a == b);
}
inline VectorRegister<int64_t, 128> operator>=(VectorRegister<int64_t, 128> const &a,
VectorRegister<int64_t, 128> const &b)
{
return (a > b) | (a == b);
}
inline VectorRegister<int64_t, 256> operator>=(VectorRegister<int64_t, 256> const &a,
VectorRegister<int64_t, 256> const &b)
{
return (a > b) | (a == b);
}
inline int64_t first_element(VectorRegister<int64_t, 128> const &x)
{
return static_cast<int64_t>(_mm_extract_epi64(x.data(), 0)); // NOLINT
}
inline int64_t first_element(VectorRegister<int64_t, 256> const &x)
{
return static_cast<int64_t>(_mm256_extract_epi64(x.data(), 0));
}
template <int32_t elements>
inline VectorRegister<int64_t, 128> rotate_elements_left(VectorRegister<int64_t, 128> const &x)
{
__m128i n = x.data();
n = _mm_alignr_epi8(n, n, elements * 8);
return {n};
}
template <int64_t elements>
inline VectorRegister<int64_t, 256> rotate_elements_left(VectorRegister<int64_t, 256> const &x);
template <>
inline VectorRegister<int64_t, 256> rotate_elements_left<0>(VectorRegister<int64_t, 256> const &x)
{
return x;
}
template <>
inline VectorRegister<int64_t, 256> rotate_elements_left<1>(VectorRegister<int64_t, 256> const &x)
{
__m128i hi = _mm256_extractf128_si256(x.data(), 1);
__m128i lo = _mm256_extractf128_si256(x.data(), 0);
__m128i hi1 = _mm_alignr_epi8(lo, hi, 8);
__m128i lo1 = _mm_alignr_epi8(hi, lo, 8);
return {_mm256_set_m128i(hi1, lo1)};
}
template <>
inline VectorRegister<int64_t, 256> rotate_elements_left<2>(VectorRegister<int64_t, 256> const &x)
{
__m128i hi = _mm256_extractf128_si256(x.data(), 1);
__m128i lo = _mm256_extractf128_si256(x.data(), 0);
return {_mm256_set_m128i(lo, hi)};
}
template <>
inline VectorRegister<int64_t, 256> rotate_elements_left<3>(VectorRegister<int64_t, 256> const &x)
{
__m128i hi = _mm256_extractf128_si256(x.data(), 1);
__m128i lo = _mm256_extractf128_si256(x.data(), 0);
__m128i hi1 = _mm_alignr_epi8(lo, hi, 8);
__m128i lo1 = _mm_alignr_epi8(hi, lo, 8);
return {_mm256_set_m128i(lo1, hi1)};
}
template <>
inline VectorRegister<int64_t, 256> rotate_elements_left<4>(VectorRegister<int64_t, 256> const &x)
{
return rotate_elements_left<0>(x);
}
inline VectorRegister<int64_t, 128> shift_elements_left(VectorRegister<int64_t, 128> const &x)
{
__m128i n = _mm_bslli_si128(x.data(), 8);
return n;
}
inline VectorRegister<int64_t, 256> shift_elements_left(VectorRegister<int64_t, 256> const &x)
{
__m256i n = _mm256_bslli_epi128(x.data(), 8);
return n;
}
inline VectorRegister<int64_t, 128> shift_elements_right(VectorRegister<int64_t, 128> const &x)
{
__m128i n = _mm_bsrli_si128(x.data(), 8);
return n;
}
inline VectorRegister<int64_t, 256> shift_elements_right(VectorRegister<int64_t, 256> const &x)
{
__m256i n = _mm256_bsrli_epi128(x.data(), 8);
return n;
}
inline int64_t reduce(VectorRegister<int64_t, 128> const &x)
{
__m128i r = _mm_add_epi64(x.data(), _mm_bsrli_si128(x.data(), 8));
return static_cast<int64_t>(_mm_extract_epi64(r, 0)); // NOLINT
}
inline int64_t reduce(VectorRegister<int64_t, 256> const &x)
{
VectorRegister<int64_t, 128> hi{_mm256_extractf128_si256(x.data(), 1)};
VectorRegister<int64_t, 128> lo{_mm256_extractf128_si256(x.data(), 0)};
hi = hi + lo;
return reduce(hi);
}
inline bool all_less_than(VectorRegister<int64_t, 128> const &x,
VectorRegister<int64_t, 128> const &y)
{
__m128i r = (x < y).data();
return _mm_movemask_epi8(r) == 0xFFFF;
}
inline bool all_less_than(VectorRegister<int64_t, 256> const &x,
VectorRegister<int64_t, 256> const &y)
{
__m256i r = (x < y).data();
auto mask = static_cast<uint32_t>(_mm256_movemask_epi8(r));
return mask == 0xFFFFFFFFUL;
}
inline bool any_less_than(VectorRegister<int64_t, 128> const &x,
VectorRegister<int64_t, 128> const &y)
{
__m128i r = (x < y).data();
return _mm_movemask_epi8(r) != 0;
}
inline bool any_less_than(VectorRegister<int64_t, 256> const &x,
VectorRegister<int64_t, 256> const &y)
{
__m256i r = (x < y).data();
return _mm256_movemask_epi8(r) != 0;
}
inline bool all_equal_to(VectorRegister<int64_t, 128> const &x,
VectorRegister<int64_t, 128> const &y)
{
__m128i r = (x == y).data();
return _mm_movemask_epi8(r) == 0xFFFF;
}
inline bool all_equal_to(VectorRegister<int64_t, 256> const &x,
VectorRegister<int64_t, 256> const &y)
{
__m256i r = (x == y).data();
auto mask = static_cast<uint32_t>(_mm256_movemask_epi8(r));
return mask == 0xFFFFFFFFUL;
}
inline bool any_equal_to(VectorRegister<int64_t, 128> const &x,
VectorRegister<int64_t, 128> const &y)
{
__m128i r = (x == y).data();
return _mm_movemask_epi8(r) != 0;
}
inline bool any_equal_to(VectorRegister<int64_t, 256> const &x,
VectorRegister<int64_t, 256> const &y)
{
__m256i r = (x == y).data();
return _mm256_movemask_epi8(r) != 0;
}
} // namespace vectorise
} // namespace fetch
|
#include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.title=tsc("German locale for Germany"),.source=tsc("Free Software Foundation, Inc.\t\t;\t\tfast_io"),.address=tsc("https://www.gnu.org/software/libc/\t\t;\t\thttps://gitee.com/qabeowjbtkwb/fast_io"),.contact=tsc("fast_io"),.email=tsc("bug-glibc-locales@gnu.org;euloanty@live.com"),.tel=tsc(""),.fax=tsc(""),.language=tsc("German"),.territory=tsc("Germany"),.revision=tsc("1.0"),.date=tsc("2000-06-24")},.monetary={.int_curr_symbol=tsc("EUR "),.currency_symbol=tsc("€"),.mon_decimal_point=tsc(","),.mon_thousands_sep=tsc("."),.mon_grouping={numeric_grouping_storage,1},.positive_sign=tsc(""),.negative_sign=tsc("-"),.int_frac_digits=2,.frac_digits=2,.p_cs_precedes=0,.p_sep_by_space=1,.n_cs_precedes=0,.n_sep_by_space=1,.p_sign_posn=1,.n_sign_posn=1},.numeric={.decimal_point=tsc(","),.thousands_sep=tsc("."),.grouping={numeric_grouping_storage,1}},.time={.abday={tsc("So"),tsc("Mo"),tsc("Di"),tsc("Mi"),tsc("Do"),tsc("Fr"),tsc("Sa")},.day={tsc("Sonntag"),tsc("Montag"),tsc("Dienstag"),tsc("Mittwoch"),tsc("Donnerstag"),tsc("Freitag"),tsc("Samstag")},.abmon={tsc("Jan"),tsc("Feb"),tsc("Mär"),tsc("Apr"),tsc("Mai"),tsc("Jun"),tsc("Jul"),tsc("Aug"),tsc("Sep"),tsc("Okt"),tsc("Nov"),tsc("Dez")},.mon={tsc("Januar"),tsc("Februar"),tsc("März"),tsc("April"),tsc("Mai"),tsc("Juni"),tsc("Juli"),tsc("August"),tsc("September"),tsc("Oktober"),tsc("November"),tsc("Dezember")},.d_t_fmt=tsc("%a %d %b %Y %T %Z"),.d_fmt=tsc("%d.%m.%Y"),.t_fmt=tsc("%T"),.t_fmt_ampm=tsc(""),.date_fmt=tsc("%a %-d. %b %H:%M:%S %Z %Y"),.am_pm={tsc(""),tsc("")},.week={7,19971130,4},.first_weekday=2},.messages={.yesexpr=tsc("^[+1jJyY]"),.noexpr=tsc("^[-0nN]"),.yesstr=tsc("ja"),.nostr=tsc("nein")},.paper={.width=210,.height=297},.telephone={.tel_int_fmt=tsc("+%c %a %l"),.tel_dom_fmt=tsc("%A %l"),.int_select=tsc("00"),.int_prefix=tsc("49")},.name={.name_fmt=tsc("%d%t%g%t%m%t%f"),.name_miss=tsc("Fräulein"),.name_mr=tsc("Herr"),.name_mrs=tsc("Frau"),.name_ms=tsc("Frau")},.address={.postal_fmt=tsc("%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"),.country_name=tsc("Deutschland"),.country_post=tsc("D"),.country_ab2=tsc("DE"),.country_ab3=tsc("DEU"),.country_num=276,.country_car=tsc("D"),.country_isbn=tsc("3"),.lang_name=tsc("Deutsch"),.lang_ab=tsc("de"),.lang_term=tsc("deu"),.lang_lib=tsc("ger")},.measurement={.measurement=1}};
inline constexpr wlc_all wlc_all_global{.identification={.title=tsc(L"German locale for Germany"),.source=tsc(L"Free Software Foundation, Inc.\t\t;\t\tfast_io"),.address=tsc(L"https://www.gnu.org/software/libc/\t\t;\t\thttps://gitee.com/qabeowjbtkwb/fast_io"),.contact=tsc(L"fast_io"),.email=tsc(L"bug-glibc-locales@gnu.org;euloanty@live.com"),.tel=tsc(L""),.fax=tsc(L""),.language=tsc(L"German"),.territory=tsc(L"Germany"),.revision=tsc(L"1.0"),.date=tsc(L"2000-06-24")},.monetary={.int_curr_symbol=tsc(L"EUR "),.currency_symbol=tsc(L"€"),.mon_decimal_point=tsc(L","),.mon_thousands_sep=tsc(L"."),.mon_grouping={numeric_grouping_storage,1},.positive_sign=tsc(L""),.negative_sign=tsc(L"-"),.int_frac_digits=2,.frac_digits=2,.p_cs_precedes=0,.p_sep_by_space=1,.n_cs_precedes=0,.n_sep_by_space=1,.p_sign_posn=1,.n_sign_posn=1},.numeric={.decimal_point=tsc(L","),.thousands_sep=tsc(L"."),.grouping={numeric_grouping_storage,1}},.time={.abday={tsc(L"So"),tsc(L"Mo"),tsc(L"Di"),tsc(L"Mi"),tsc(L"Do"),tsc(L"Fr"),tsc(L"Sa")},.day={tsc(L"Sonntag"),tsc(L"Montag"),tsc(L"Dienstag"),tsc(L"Mittwoch"),tsc(L"Donnerstag"),tsc(L"Freitag"),tsc(L"Samstag")},.abmon={tsc(L"Jan"),tsc(L"Feb"),tsc(L"Mär"),tsc(L"Apr"),tsc(L"Mai"),tsc(L"Jun"),tsc(L"Jul"),tsc(L"Aug"),tsc(L"Sep"),tsc(L"Okt"),tsc(L"Nov"),tsc(L"Dez")},.mon={tsc(L"Januar"),tsc(L"Februar"),tsc(L"März"),tsc(L"April"),tsc(L"Mai"),tsc(L"Juni"),tsc(L"Juli"),tsc(L"August"),tsc(L"September"),tsc(L"Oktober"),tsc(L"November"),tsc(L"Dezember")},.d_t_fmt=tsc(L"%a %d %b %Y %T %Z"),.d_fmt=tsc(L"%d.%m.%Y"),.t_fmt=tsc(L"%T"),.t_fmt_ampm=tsc(L""),.date_fmt=tsc(L"%a %-d. %b %H:%M:%S %Z %Y"),.am_pm={tsc(L""),tsc(L"")},.week={7,19971130,4},.first_weekday=2},.messages={.yesexpr=tsc(L"^[+1jJyY]"),.noexpr=tsc(L"^[-0nN]"),.yesstr=tsc(L"ja"),.nostr=tsc(L"nein")},.paper={.width=210,.height=297},.telephone={.tel_int_fmt=tsc(L"+%c %a %l"),.tel_dom_fmt=tsc(L"%A %l"),.int_select=tsc(L"00"),.int_prefix=tsc(L"49")},.name={.name_fmt=tsc(L"%d%t%g%t%m%t%f"),.name_miss=tsc(L"Fräulein"),.name_mr=tsc(L"Herr"),.name_mrs=tsc(L"Frau"),.name_ms=tsc(L"Frau")},.address={.postal_fmt=tsc(L"%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"),.country_name=tsc(L"Deutschland"),.country_post=tsc(L"D"),.country_ab2=tsc(L"DE"),.country_ab3=tsc(L"DEU"),.country_num=276,.country_car=tsc(L"D"),.country_isbn=tsc(L"3"),.lang_name=tsc(L"Deutsch"),.lang_ab=tsc(L"de"),.lang_term=tsc(L"deu"),.lang_lib=tsc(L"ger")},.measurement={.measurement=1}};
inline constexpr u8lc_all u8lc_all_global{.identification={.title=tsc(u8"German locale for Germany"),.source=tsc(u8"Free Software Foundation, Inc.\t\t;\t\tfast_io"),.address=tsc(u8"https://www.gnu.org/software/libc/\t\t;\t\thttps://gitee.com/qabeowjbtkwb/fast_io"),.contact=tsc(u8"fast_io"),.email=tsc(u8"bug-glibc-locales@gnu.org;euloanty@live.com"),.tel=tsc(u8""),.fax=tsc(u8""),.language=tsc(u8"German"),.territory=tsc(u8"Germany"),.revision=tsc(u8"1.0"),.date=tsc(u8"2000-06-24")},.monetary={.int_curr_symbol=tsc(u8"EUR "),.currency_symbol=tsc(u8"€"),.mon_decimal_point=tsc(u8","),.mon_thousands_sep=tsc(u8"."),.mon_grouping={numeric_grouping_storage,1},.positive_sign=tsc(u8""),.negative_sign=tsc(u8"-"),.int_frac_digits=2,.frac_digits=2,.p_cs_precedes=0,.p_sep_by_space=1,.n_cs_precedes=0,.n_sep_by_space=1,.p_sign_posn=1,.n_sign_posn=1},.numeric={.decimal_point=tsc(u8","),.thousands_sep=tsc(u8"."),.grouping={numeric_grouping_storage,1}},.time={.abday={tsc(u8"So"),tsc(u8"Mo"),tsc(u8"Di"),tsc(u8"Mi"),tsc(u8"Do"),tsc(u8"Fr"),tsc(u8"Sa")},.day={tsc(u8"Sonntag"),tsc(u8"Montag"),tsc(u8"Dienstag"),tsc(u8"Mittwoch"),tsc(u8"Donnerstag"),tsc(u8"Freitag"),tsc(u8"Samstag")},.abmon={tsc(u8"Jan"),tsc(u8"Feb"),tsc(u8"Mär"),tsc(u8"Apr"),tsc(u8"Mai"),tsc(u8"Jun"),tsc(u8"Jul"),tsc(u8"Aug"),tsc(u8"Sep"),tsc(u8"Okt"),tsc(u8"Nov"),tsc(u8"Dez")},.mon={tsc(u8"Januar"),tsc(u8"Februar"),tsc(u8"März"),tsc(u8"April"),tsc(u8"Mai"),tsc(u8"Juni"),tsc(u8"Juli"),tsc(u8"August"),tsc(u8"September"),tsc(u8"Oktober"),tsc(u8"November"),tsc(u8"Dezember")},.d_t_fmt=tsc(u8"%a %d %b %Y %T %Z"),.d_fmt=tsc(u8"%d.%m.%Y"),.t_fmt=tsc(u8"%T"),.t_fmt_ampm=tsc(u8""),.date_fmt=tsc(u8"%a %-d. %b %H:%M:%S %Z %Y"),.am_pm={tsc(u8""),tsc(u8"")},.week={7,19971130,4},.first_weekday=2},.messages={.yesexpr=tsc(u8"^[+1jJyY]"),.noexpr=tsc(u8"^[-0nN]"),.yesstr=tsc(u8"ja"),.nostr=tsc(u8"nein")},.paper={.width=210,.height=297},.telephone={.tel_int_fmt=tsc(u8"+%c %a %l"),.tel_dom_fmt=tsc(u8"%A %l"),.int_select=tsc(u8"00"),.int_prefix=tsc(u8"49")},.name={.name_fmt=tsc(u8"%d%t%g%t%m%t%f"),.name_miss=tsc(u8"Fräulein"),.name_mr=tsc(u8"Herr"),.name_mrs=tsc(u8"Frau"),.name_ms=tsc(u8"Frau")},.address={.postal_fmt=tsc(u8"%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"),.country_name=tsc(u8"Deutschland"),.country_post=tsc(u8"D"),.country_ab2=tsc(u8"DE"),.country_ab3=tsc(u8"DEU"),.country_num=276,.country_car=tsc(u8"D"),.country_isbn=tsc(u8"3"),.lang_name=tsc(u8"Deutsch"),.lang_ab=tsc(u8"de"),.lang_term=tsc(u8"deu"),.lang_lib=tsc(u8"ger")},.measurement={.measurement=1}};
inline constexpr u16lc_all u16lc_all_global{.identification={.title=tsc(u"German locale for Germany"),.source=tsc(u"Free Software Foundation, Inc.\t\t;\t\tfast_io"),.address=tsc(u"https://www.gnu.org/software/libc/\t\t;\t\thttps://gitee.com/qabeowjbtkwb/fast_io"),.contact=tsc(u"fast_io"),.email=tsc(u"bug-glibc-locales@gnu.org;euloanty@live.com"),.tel=tsc(u""),.fax=tsc(u""),.language=tsc(u"German"),.territory=tsc(u"Germany"),.revision=tsc(u"1.0"),.date=tsc(u"2000-06-24")},.monetary={.int_curr_symbol=tsc(u"EUR "),.currency_symbol=tsc(u"€"),.mon_decimal_point=tsc(u","),.mon_thousands_sep=tsc(u"."),.mon_grouping={numeric_grouping_storage,1},.positive_sign=tsc(u""),.negative_sign=tsc(u"-"),.int_frac_digits=2,.frac_digits=2,.p_cs_precedes=0,.p_sep_by_space=1,.n_cs_precedes=0,.n_sep_by_space=1,.p_sign_posn=1,.n_sign_posn=1},.numeric={.decimal_point=tsc(u","),.thousands_sep=tsc(u"."),.grouping={numeric_grouping_storage,1}},.time={.abday={tsc(u"So"),tsc(u"Mo"),tsc(u"Di"),tsc(u"Mi"),tsc(u"Do"),tsc(u"Fr"),tsc(u"Sa")},.day={tsc(u"Sonntag"),tsc(u"Montag"),tsc(u"Dienstag"),tsc(u"Mittwoch"),tsc(u"Donnerstag"),tsc(u"Freitag"),tsc(u"Samstag")},.abmon={tsc(u"Jan"),tsc(u"Feb"),tsc(u"Mär"),tsc(u"Apr"),tsc(u"Mai"),tsc(u"Jun"),tsc(u"Jul"),tsc(u"Aug"),tsc(u"Sep"),tsc(u"Okt"),tsc(u"Nov"),tsc(u"Dez")},.mon={tsc(u"Januar"),tsc(u"Februar"),tsc(u"März"),tsc(u"April"),tsc(u"Mai"),tsc(u"Juni"),tsc(u"Juli"),tsc(u"August"),tsc(u"September"),tsc(u"Oktober"),tsc(u"November"),tsc(u"Dezember")},.d_t_fmt=tsc(u"%a %d %b %Y %T %Z"),.d_fmt=tsc(u"%d.%m.%Y"),.t_fmt=tsc(u"%T"),.t_fmt_ampm=tsc(u""),.date_fmt=tsc(u"%a %-d. %b %H:%M:%S %Z %Y"),.am_pm={tsc(u""),tsc(u"")},.week={7,19971130,4},.first_weekday=2},.messages={.yesexpr=tsc(u"^[+1jJyY]"),.noexpr=tsc(u"^[-0nN]"),.yesstr=tsc(u"ja"),.nostr=tsc(u"nein")},.paper={.width=210,.height=297},.telephone={.tel_int_fmt=tsc(u"+%c %a %l"),.tel_dom_fmt=tsc(u"%A %l"),.int_select=tsc(u"00"),.int_prefix=tsc(u"49")},.name={.name_fmt=tsc(u"%d%t%g%t%m%t%f"),.name_miss=tsc(u"Fräulein"),.name_mr=tsc(u"Herr"),.name_mrs=tsc(u"Frau"),.name_ms=tsc(u"Frau")},.address={.postal_fmt=tsc(u"%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"),.country_name=tsc(u"Deutschland"),.country_post=tsc(u"D"),.country_ab2=tsc(u"DE"),.country_ab3=tsc(u"DEU"),.country_num=276,.country_car=tsc(u"D"),.country_isbn=tsc(u"3"),.lang_name=tsc(u"Deutsch"),.lang_ab=tsc(u"de"),.lang_term=tsc(u"deu"),.lang_lib=tsc(u"ger")},.measurement={.measurement=1}};
inline constexpr u32lc_all u32lc_all_global{.identification={.title=tsc(U"German locale for Germany"),.source=tsc(U"Free Software Foundation, Inc.\t\t;\t\tfast_io"),.address=tsc(U"https://www.gnu.org/software/libc/\t\t;\t\thttps://gitee.com/qabeowjbtkwb/fast_io"),.contact=tsc(U"fast_io"),.email=tsc(U"bug-glibc-locales@gnu.org;euloanty@live.com"),.tel=tsc(U""),.fax=tsc(U""),.language=tsc(U"German"),.territory=tsc(U"Germany"),.revision=tsc(U"1.0"),.date=tsc(U"2000-06-24")},.monetary={.int_curr_symbol=tsc(U"EUR "),.currency_symbol=tsc(U"€"),.mon_decimal_point=tsc(U","),.mon_thousands_sep=tsc(U"."),.mon_grouping={numeric_grouping_storage,1},.positive_sign=tsc(U""),.negative_sign=tsc(U"-"),.int_frac_digits=2,.frac_digits=2,.p_cs_precedes=0,.p_sep_by_space=1,.n_cs_precedes=0,.n_sep_by_space=1,.p_sign_posn=1,.n_sign_posn=1},.numeric={.decimal_point=tsc(U","),.thousands_sep=tsc(U"."),.grouping={numeric_grouping_storage,1}},.time={.abday={tsc(U"So"),tsc(U"Mo"),tsc(U"Di"),tsc(U"Mi"),tsc(U"Do"),tsc(U"Fr"),tsc(U"Sa")},.day={tsc(U"Sonntag"),tsc(U"Montag"),tsc(U"Dienstag"),tsc(U"Mittwoch"),tsc(U"Donnerstag"),tsc(U"Freitag"),tsc(U"Samstag")},.abmon={tsc(U"Jan"),tsc(U"Feb"),tsc(U"Mär"),tsc(U"Apr"),tsc(U"Mai"),tsc(U"Jun"),tsc(U"Jul"),tsc(U"Aug"),tsc(U"Sep"),tsc(U"Okt"),tsc(U"Nov"),tsc(U"Dez")},.mon={tsc(U"Januar"),tsc(U"Februar"),tsc(U"März"),tsc(U"April"),tsc(U"Mai"),tsc(U"Juni"),tsc(U"Juli"),tsc(U"August"),tsc(U"September"),tsc(U"Oktober"),tsc(U"November"),tsc(U"Dezember")},.d_t_fmt=tsc(U"%a %d %b %Y %T %Z"),.d_fmt=tsc(U"%d.%m.%Y"),.t_fmt=tsc(U"%T"),.t_fmt_ampm=tsc(U""),.date_fmt=tsc(U"%a %-d. %b %H:%M:%S %Z %Y"),.am_pm={tsc(U""),tsc(U"")},.week={7,19971130,4},.first_weekday=2},.messages={.yesexpr=tsc(U"^[+1jJyY]"),.noexpr=tsc(U"^[-0nN]"),.yesstr=tsc(U"ja"),.nostr=tsc(U"nein")},.paper={.width=210,.height=297},.telephone={.tel_int_fmt=tsc(U"+%c %a %l"),.tel_dom_fmt=tsc(U"%A %l"),.int_select=tsc(U"00"),.int_prefix=tsc(U"49")},.name={.name_fmt=tsc(U"%d%t%g%t%m%t%f"),.name_miss=tsc(U"Fräulein"),.name_mr=tsc(U"Herr"),.name_mrs=tsc(U"Frau"),.name_ms=tsc(U"Frau")},.address={.postal_fmt=tsc(U"%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"),.country_name=tsc(U"Deutschland"),.country_post=tsc(U"D"),.country_ab2=tsc(U"DE"),.country_ab3=tsc(U"DEU"),.country_num=276,.country_car=tsc(U"D"),.country_isbn=tsc(U"3"),.lang_name=tsc(U"Deutsch"),.lang_ab=tsc(U"de"),.lang_term=tsc(U"deu"),.lang_lib=tsc(U"ger")},.measurement={.measurement=1}};
}
}
#include"../main.h"
|
#include<iostream>
using namespace std;
int ArrayisSorted(int arr[],int n)
{
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if (arr[j]<arr[i])
{
return false;
}
}
}
return true;
}
int main()
{
int arr[]={5,12,30,2,35};
int n=sizeof(arr)/sizeof(arr[0]);
cout<<ArrayisSorted(arr,n);
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
n*=2;
int ara[n], i, x=0, y=0;
for(i=0; i<n; i++)
scanf("%d", &ara[i]);
sort(ara, ara+n);
for(i=0; i<n/2; i++)
x+=ara[i];
for(; i<n; i++)
y+=ara[i];
if(x!=y)
{
for(i=0; i<n; i++)
{
if(i!=n-1)
printf("%d ", ara[i]);
else printf("%d\n", ara[i]);
}
}
else printf("-1\n");
return 0;
}
|
#include "ApiClient.h"
#include "MultipartFormData.h"
#include "ModelBase.h"
namespace swagger {
namespace petshop {
namespace api {
using namespace swagger::petshop::model;
ApiClient::ApiClient(std::shared_ptr<ApiConfiguration> configuration )
: m_Configuration(configuration)
{
}
ApiClient::~ApiClient()
{
}
std::shared_ptr<ApiConfiguration> ApiClient::getConfiguration() const
{
return m_Configuration;
}
void ApiClient::setConfiguration(std::shared_ptr<ApiConfiguration> configuration)
{
m_Configuration = configuration;
}
utility::string_t ApiClient::parameterToString(utility::string_t value)
{
return value;
}
utility::string_t ApiClient::parameterToString(int64_t value)
{
return std::to_wstring(value);
}
utility::string_t ApiClient::parameterToString(int32_t value)
{
return std::to_wstring(value);
}
pplx::task<web::http::http_response> ApiClient::callApi(
const utility::string_t& path,
const utility::string_t& method,
const std::map<utility::string_t, utility::string_t>& queryParams,
const std::shared_ptr<IHttpBody> postBody,
const std::map<utility::string_t, utility::string_t>& headerParams,
const std::map<utility::string_t, utility::string_t>& formParams,
const std::map<utility::string_t, std::shared_ptr<HttpContent>>& fileParams,
const utility::string_t& contentType
) const
{
if (postBody != nullptr && formParams.size() != 0)
{
throw ApiException(400, U("Cannot have body and form params"));
}
if (postBody != nullptr && fileParams.size() != 0)
{
throw ApiException(400, U("Cannot have body and file params"));
}
if (fileParams.size() > 0 && contentType != U("multipart/form-data"))
{
throw ApiException(400, U("Operations with file parameters must be called with multipart/form-data"));
}
web::http::client::http_client client(m_Configuration->getBaseUrl(), m_Configuration->getHttpConfig());
web::http::http_request request;
for ( auto& kvp : headerParams )
{
request.headers().add(kvp.first, kvp.second);
}
if (fileParams.size() > 0)
{
MultipartFormData uploadData;
for (auto& kvp : formParams)
{
uploadData.add(ModelBase::toHttpContent(kvp.first, kvp.second));
}
for (auto& kvp : fileParams)
{
uploadData.add(ModelBase::toHttpContent(kvp.first, kvp.second));
}
std::stringstream data;
postBody->writeTo(data);
auto bodyString = data.str();
auto length = bodyString.size();
request.set_body(concurrency::streams::bytestream::open_istream(std::move(bodyString)), length, contentType);
}
else
{
if (postBody != nullptr)
{
std::stringstream data;
postBody->writeTo(data);
auto bodyString = data.str();
auto length = bodyString.size();
request.set_body(concurrency::streams::bytestream::open_istream(std::move(bodyString)), length, contentType);
}
else
{
web::http::uri_builder formData;
for (auto& kvp : formParams)
{
formData.append_query(kvp.first, kvp.second);
}
request.set_body(formData.query(), U("application/x-www-form-urlencoded"));
}
}
web::http::uri_builder builder(path);
for (auto& kvp : queryParams)
{
builder.append_query(kvp.first, kvp.second);
}
request.set_request_uri(builder.to_uri());
request.set_method(method);
if ( !request.headers().has( web::http::header_names::user_agent ) )
{
request.headers().add( web::http::header_names::user_agent, m_Configuration->getUserAgent() );
}
return client.request(request);
}
}
}
}
|
#include "AppHdr.h"
#ifdef USE_TILE_LOCAL
#include "tilereg-text.h"
#include "tilefont.h"
#include "unicode.h"
int TextRegion::print_x;
int TextRegion::print_y;
TextRegion *TextRegion::text_mode = nullptr;
int TextRegion::text_col = 0;
TextRegion *TextRegion::cursor_region= nullptr;
int TextRegion::cursor_flag = 0;
int TextRegion::cursor_x;
int TextRegion::cursor_y;
TextRegion::TextRegion(FontWrapper *font) :
cbuf(nullptr),
abuf(nullptr),
cx_ofs(0),
cy_ofs(0),
m_font(font)
{
ASSERT(font);
// warning: dx and dy are not guaranteed to be accurate for TextRegion
// because on high-dpi displays, glyphs may have fractional widths relative
// to logical pixels. Use `grid_width_to_pixels` etc instead, or use the
// functions on font().
dx = m_font->char_width();
dy = m_font->char_height();
}
FontWrapper &TextRegion::font() const
{
ASSERT(m_font);
return *m_font;
}
void TextRegion::on_resize()
{
delete[] cbuf;
delete[] abuf;
int size = mx * my;
cbuf = new char32_t[size];
abuf = new uint8_t[size];
for (int i = 0; i < size; i++)
{
cbuf[i] = ' ';
abuf[i] = 0;
}
}
TextRegion::~TextRegion()
{
delete[] cbuf;
delete[] abuf;
}
void TextRegion::addstr(const char *buffer)
{
char32_t buf2[1024], c;
int j = 0;
int clen;
do
{
buffer += clen = utf8towc(&c, buffer);
bool newline = false;
if (c == '\r')
continue;
if (c == '\n')
{
c = 0;
newline = true;
}
// TODO: use wcwidth() to handle widths!=1:
// * 2 for CJK chars -- add a zero-width blank?
// * 0 for combining characters -- would need extra support
// * -1 for non-printable stuff -- assert or ignore
buf2[j] = c;
j++;
if (c == 0 || j == ARRAYSZ(buf2))
{
if (j-1 != 0)
addstr_aux(buf2, j - 1); // draw it
if (newline)
{
print_x = cx_ofs;
print_y++;
j = 0;
if (print_y - cy_ofs == my)
scroll();
}
}
} while (clen);
if (cursor_flag)
cgotoxy(print_x+1, print_y+1);
}
void TextRegion::addstr_aux(const char32_t *buffer, int len)
{
int x = print_x - cx_ofs;
int y = print_y - cy_ofs;
int adrs = y * mx;
ASSERT(y < my);
for (int i = 0; i < len && x + i < mx; i++)
{
cbuf[adrs+x+i] = buffer[i];
abuf[adrs+x+i] = text_col;
}
print_x += len;
}
void TextRegion::clear_to_end_of_line()
{
int cx = print_x - cx_ofs;
int cy = print_y - cy_ofs;
int col = text_col;
int adrs = cy * mx;
ASSERT(adrs + mx - 1 < mx * my);
for (int i = cx; i < mx; i++)
{
cbuf[adrs+i] = ' ';
abuf[adrs+i] = col;
}
}
void TextRegion::putwch(char32_t ch)
{
// special case: check for '0' char: map to space
if (ch == 0)
ch = ' ';
addstr_aux(&ch, 1);
}
void TextRegion::textcolour(int colour)
{
text_col = colour;
}
void TextRegion::textbackground(int col)
{
textcolour(col*16 + (text_col & 0xf));
}
void TextRegion::cgotoxy(int x, int y)
{
ASSERT(x >= 1);
ASSERT(y >= 1);
print_x = x-1;
print_y = y-1;
if (cursor_flag)
{
cursor_x = print_x;
cursor_y = print_y;
cursor_region = text_mode;
}
}
int TextRegion::wherex()
{
return print_x + 1;
}
int TextRegion::wherey()
{
return print_y + 1;
}
const int TextRegion::grid_width_to_pixels(int x) const
{
return font().max_width(x);
}
const int TextRegion::grid_height_to_pixels(int y) const
{
return font().max_height(y);
}
void TextRegion::calculate_grid_size(int inner_x, int inner_y)
{
// This can't be calculated perfectly using just dx, because on hidpi
// displays, font rendering may involve sub-logical-pixel advances.
mx = glmanager->logical_to_device(inner_x) / font().char_width(false);
my = glmanager->logical_to_device(inner_y) / font().char_height(false);
}
void TextRegion::_setcursortype(int curstype)
{
cursor_flag = curstype;
if (cursor_region != nullptr)
{
cursor_x = -1;
cursor_y = -1;
}
if (curstype)
{
cursor_x = print_x;
cursor_y = print_y;
cursor_region = text_mode;
}
}
void TextRegion::render()
{
#ifdef DEBUG_TILES_REDRAW
cprintf("rendering TextRegion\n");
#endif
if (this == TextRegion::cursor_region && cursor_x > 0 && cursor_y > 0)
{
int idx = cursor_x + mx * cursor_y;
char32_t char_back = cbuf[idx];
uint8_t col_back = abuf[idx];
cbuf[idx] = '_';
abuf[idx] = WHITE;
m_font->render_textblock(sx + ox, sy + oy, cbuf, abuf, mx, my);
cbuf[idx] = char_back;
abuf[idx] = col_back;
}
else
m_font->render_textblock(sx + ox, sy + oy, cbuf, abuf, mx, my);
}
void TextRegion::clear()
{
for (int i = 0; i < mx * my; i++)
{
cbuf[i] = ' ';
abuf[i] = 0;
}
}
void TextRegion::scroll()
{
for (int idx = 0; idx < mx*(my-1); idx++)
{
cbuf[idx] = cbuf[idx + mx];
abuf[idx] = abuf[idx + mx];
}
for (int idx = mx*(my-1); idx < mx*my; idx++)
{
cbuf[idx] = ' ';
abuf[idx] = 0;
}
if (print_y > 0)
print_y -= 1;
if (cursor_y > 0)
cursor_y -= 1;
}
#endif
|
#ifndef CPPDNN_HEADER_ACTIVATION_DETAILS_SIGMOID_LAYER_HPP
#define CPPDNN_HEADER_ACTIVATION_DETAILS_SIGMOID_LAYER_HPP
#include <cmath>
namespace cppdnn
{
template<typename Ty_>
void basic_sigmoid_layer<Ty_>::function(const basic_object_ptr<Ty_>& input) const
{
input->apply([](const basic_object_ptr<Ty_>& value)
{
Ty_& data = to_value_ref(value)->data();
data = Ty_(1) / (Ty_(1) + std::exp(-data));
});
}
template<typename Ty_>
basic_layer_ptr<Ty_> sigmoid()
{
return std::make_shared<basic_sigmoid_layer<Ty_>>();
}
}
#endif
|
#include <nestedtensor/csrc/nested_tensor_impl.h>
#include <nestedtensor/csrc/python_args.h>
#include <nestedtensor/csrc/python_functions.h>
#include <pybind11/stl.h>
#include <torch/extension.h>
using namespace torch::nn;
namespace F = torch::nn::functional;
namespace torch {
namespace nested_tensor {
at::Tensor cross_entropy(
at::Tensor input,
at::Tensor target,
c10::optional<at::Tensor>& weight,
c10::optional<bool>& size_average, // TODO: use
c10::optional<int64_t>& ignore_index,
c10::optional<bool>& reduce, // TODO: use
c10::optional<std::string>& reduction) {
F::CrossEntropyFuncOptions::reduction_t redct;
if (reduction.value() == "mean" || reduction.value() == "none") {
redct = torch::kMean;
} else if (reduction.value() == "sum") {
redct = torch::kSum;
} else {
throw std::runtime_error(
"Unexpected mode for reduction: " + reduction.value());
}
auto options = F::CrossEntropyFuncOptions().reduction(redct);
if (ignore_index.has_value()) {
options = options.ignore_index(ignore_index.value());
}
return map_nested_tensor(
[&, options](at::Tensor input_tensor, at::Tensor target_tensor) {
return F::cross_entropy(
input_tensor.unsqueeze(0),
target_tensor.unsqueeze(0),
options)
.squeeze(0);
},
input,
target);
}
at::Tensor interpolate(
at::Tensor input,
c10::optional<std::vector<std::vector<int64_t>>> size,
c10::optional<at::ArrayRef<double>> scale_factor,
c10::optional<std::string> mode,
c10::optional<bool> align_corners) {
F::InterpolateFuncOptions::mode_t int_mode;
if (mode.value() == "nearest" || mode.value() == "none") {
int_mode = torch::kNearest;
} else if (mode.value() == "trilinear") {
int_mode = torch::kTrilinear;
} else if (mode.value() == "linear") {
int_mode = torch::kLinear;
} else if (mode.value() == "bicubic") {
int_mode = torch::kBicubic;
} else if (mode.value() == "area") {
int_mode = torch::kArea;
} else if (mode.value() == "bilinear") {
int_mode = torch::kBilinear;
} else {
throw std::runtime_error(
"Unexpected mode for interpolate: " + mode.value());
}
auto options = F::InterpolateFuncOptions().mode(int_mode);
if (align_corners.has_value()) {
options.align_corners() = align_corners.value();
}
// Either scale factor or size can be passed
if (scale_factor.has_value()) {
options = options.scale_factor(scale_factor.value().vec());
return map_nested_tensor(
[&options](at::Tensor input_tensor) {
return F::interpolate(input_tensor.unsqueeze(0), options).squeeze(0);
},
input);
}
// Get input leaves count
auto fn = [](at::Tensor leaf, int64_t input) { return input + 1; };
auto leaves_count = size_t(reduce<decltype(fn), int64_t, at::Tensor>(
get_nested_tensor_structure(input), fn, 0));
if (size.has_value()) {
// There can be either 1 size for all tensor or an individual size value per
// tensor
if (size.value().size() != 1 && size.value().size() != leaves_count) {
throw std::runtime_error(
"Interpolate has to take either 1 size tuple or same amount as leaves in Nested Tensor.");
}
if (size.value().size() == 1) {
return map_nested_tensor(
[&options, &size](at::Tensor input_tensor) {
options = options.size(size.value()[0]);
return F::interpolate(input_tensor.unsqueeze(0), options)
.squeeze(0);
},
input);
} else {
int size_i = 0;
return map_nested_tensor(
[&options, &size_i, &size](at::Tensor input_tensor) {
options = options.size(size.value()[size_i]);
size_i++;
return F::interpolate(input_tensor.unsqueeze(0), options)
.squeeze(0);
},
input);
}
}
throw std::runtime_error("Either size or scale_factor should be defined.");
}
namespace py = pybind11;
void add_functions(pybind11::module m) {
m.def(
"interpolate",
[](at::Tensor input,
c10::optional<std::vector<std::vector<int64_t>>> size,
c10::optional<THPArrayRef<double>> scale_factor,
c10::optional<std::string> mode,
c10::optional<bool> align_corners,
c10::optional<bool> recompute_scale_factor) {
if (scale_factor.has_value() && size.has_value()) {
throw std::runtime_error(
"only one of size or scale_factor should be defined");
}
if (size.has_value()) {
return interpolate(
input, size.value(), c10::nullopt, mode, align_corners);
}
if (scale_factor.has_value()) {
return interpolate(
input,
c10::nullopt,
scale_factor.value().extract<2>(),
mode,
align_corners);
}
throw "Either size or scale factor have to be passed.";
},
py::arg("input"),
py::arg("size") = nullptr,
py::arg("scale_factor") = nullptr,
py::arg("mode") = "nearest",
py::arg("align_corners") = false,
py::arg("recompute_scale_factor") = false);
m.def(
"interpolate",
[](at::Tensor input,
c10::optional<std::vector<int64_t>> size,
c10::optional<THPArrayRef<double>> scale_factor,
c10::optional<std::string> mode,
c10::optional<bool> align_corners,
c10::optional<bool> recompute_scale_factor) {
if (scale_factor.has_value() && size.has_value()) {
throw std::runtime_error(
"only one of size or scale_factor should be defined");
}
if (size.has_value()) {
std::vector<std::vector<int64_t>> sizes{size.value()};
return interpolate(input, sizes, c10::nullopt, mode, align_corners);
}
if (scale_factor.has_value()) {
return interpolate(
input,
c10::nullopt,
scale_factor.value().extract<2>(),
mode,
align_corners);
}
throw "Either size or scale factor have to be passed.";
},
py::arg("input"),
py::arg("size") = nullptr,
py::arg("scale_factor") = nullptr,
py::arg("mode") = "nearest",
py::arg("align_corners") = false,
py::arg("recompute_scale_factor") = false);
m.def(
"interpolate",
[](at::Tensor input,
c10::optional<int64_t> size,
c10::optional<THPArrayRef<double>> scale_factor,
c10::optional<std::string> mode,
c10::optional<bool> align_corners,
c10::optional<bool> recompute_scale_factor) {
if (scale_factor.has_value() && size.has_value()) {
throw std::runtime_error(
"only one of size or scale_factor should be defined");
}
if (size.has_value()) {
std::vector<std::vector<int64_t>> sizes{
std::vector<int64_t>{size.value(), size.value()}};
return interpolate(input, sizes, c10::nullopt, mode, align_corners);
}
if (scale_factor.has_value()) {
return interpolate(
input,
c10::nullopt,
scale_factor.value().extract<2>(),
mode,
align_corners);
}
throw "Either size or scale factor have to be passed.";
},
py::arg("input"),
py::arg("size") = nullptr,
py::arg("scale_factor") = nullptr,
py::arg("mode") = "nearest",
py::arg("align_corners") = false,
py::arg("recompute_scale_factor") = false);
m.def(
"cross_entropy",
[](at::Tensor input,
at::Tensor target,
c10::optional<at::Tensor> weight,
c10::optional<bool> size_average, // TODO: use
c10::optional<int64_t> ignore_index,
c10::optional<bool> reduce, // TODO: use
c10::optional<std::string> reduction) {
return cross_entropy(
input,
target,
weight,
size_average,
ignore_index,
reduce,
reduction);
},
py::arg("input"),
py::arg("target"),
py::arg("weight") = nullptr,
py::arg("size_average") = true,
py::arg("ignore_index") = -100,
py::arg("reduce") = true,
py::arg("reduction") = "mean");
}
} // namespace nested_tensor
} // namespace torch
|
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include <string>
#include "tensorflow/lite/tools/benchmark/delegate_provider.h"
namespace tflite {
namespace benchmark {
// This class actually doesn't provide any TFLite delegate instances, it simply
// provides common params and flags that are common to all actual delegate
// providers.
class DefaultExecutionProvider : public DelegateProvider {
public:
DefaultExecutionProvider() {
default_params_.AddParam("num_threads", BenchmarkParam::Create<int32_t>(1));
default_params_.AddParam("max_delegated_partitions",
BenchmarkParam::Create<int32_t>(0));
}
std::vector<Flag> CreateFlags(BenchmarkParams* params) const final;
void LogParams(const BenchmarkParams& params) const final;
TfLiteDelegatePtr CreateTfLiteDelegate(
const BenchmarkParams& params) const final;
std::string GetName() const final { return "Default-NoDelegate"; }
};
REGISTER_DELEGATE_PROVIDER(DefaultExecutionProvider);
std::vector<Flag> DefaultExecutionProvider::CreateFlags(
BenchmarkParams* params) const {
std::vector<Flag> flags = {
CreateFlag<int32_t>("num_threads", params,
"number of threads used for inference on CPU."),
CreateFlag<int32_t>("max_delegated_partitions", params,
"Max number of partitions to be delegated.")};
return flags;
}
void DefaultExecutionProvider::LogParams(const BenchmarkParams& params) const {
TFLITE_LOG(INFO) << "#threads used for CPU inference: ["
<< params.Get<int32_t>("num_threads") << "]";
TFLITE_LOG(INFO) << "Max number of delegated partitions : ["
<< params.Get<int32_t>("max_delegated_partitions") << "]";
}
TfLiteDelegatePtr DefaultExecutionProvider::CreateTfLiteDelegate(
const BenchmarkParams& params) const {
return TfLiteDelegatePtr(nullptr, [](TfLiteDelegate*) {});
}
} // namespace benchmark
} // namespace tflite
|
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/basic_math.h"
#include "level_zero/tools/source/sysman/ras/ras_imp.h"
namespace L0 {
void RasHandleContext::releaseRasHandles() {
for (Ras *pRas : handleList) {
delete pRas;
}
handleList.clear();
}
RasHandleContext::~RasHandleContext() {
releaseRasHandles();
}
void RasHandleContext::createHandle(zes_ras_error_type_t type, ze_device_handle_t deviceHandle) {
Ras *pRas = new RasImp(pOsSysman, type, deviceHandle);
handleList.push_back(pRas);
}
void RasHandleContext::init(std::vector<ze_device_handle_t> &deviceHandles) {
for (const auto &deviceHandle : deviceHandles) {
std::vector<zes_ras_error_type_t> errorType = {};
OsRas::getSupportedRasErrorTypes(errorType, pOsSysman, deviceHandle);
for (const auto &type : errorType) {
createHandle(type, deviceHandle);
}
}
}
ze_result_t RasHandleContext::rasGet(uint32_t *pCount,
zes_ras_handle_t *phRas) {
uint32_t handleListSize = static_cast<uint32_t>(handleList.size());
uint32_t numToCopy = std::min(*pCount, handleListSize);
if (0 == *pCount || *pCount > handleListSize) {
*pCount = handleListSize;
}
if (nullptr != phRas) {
for (uint32_t i = 0; i < numToCopy; i++) {
phRas[i] = handleList[i]->toHandle();
}
}
return ZE_RESULT_SUCCESS;
}
} // namespace L0
|
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
#if defined(TARGET_ARCH_ARM)
#include "vm/code_patcher.h"
#include "vm/compiler/backend/flow_graph_compiler.h"
#include "vm/instructions.h"
#include "vm/object.h"
namespace dart {
RawCode* CodePatcher::GetStaticCallTargetAt(uword return_address,
const Code& code) {
ASSERT(code.ContainsInstructionAt(return_address));
CallPattern call(return_address, code);
return call.TargetCode();
}
void CodePatcher::PatchStaticCallAt(uword return_address,
const Code& code,
const Code& new_target) {
ASSERT(code.ContainsInstructionAt(return_address));
CallPattern call(return_address, code);
call.SetTargetCode(new_target);
}
void CodePatcher::InsertDeoptimizationCallAt(uword start) {
UNREACHABLE();
}
RawCode* CodePatcher::GetInstanceCallAt(uword return_address,
const Code& code,
ICData* ic_data) {
ASSERT(code.ContainsInstructionAt(return_address));
CallPattern call(return_address, code);
if (ic_data != NULL) {
*ic_data = call.IcData();
}
return call.TargetCode();
}
RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address,
const Code& code,
ICData* ic_data_result) {
ASSERT(code.ContainsInstructionAt(return_address));
CallPattern static_call(return_address, code);
ICData& ic_data = ICData::Handle();
ic_data ^= static_call.IcData();
if (ic_data_result != NULL) {
*ic_data_result = ic_data.raw();
}
return ic_data.GetTargetAt(0);
}
void CodePatcher::PatchSwitchableCallAt(uword return_address,
const Code& caller_code,
const Object& data,
const Code& target) {
ASSERT(caller_code.ContainsInstructionAt(return_address));
SwitchableCallPattern call(return_address, caller_code);
call.SetData(data);
call.SetTarget(target);
}
RawCode* CodePatcher::GetSwitchableCallTargetAt(uword return_address,
const Code& caller_code) {
ASSERT(caller_code.ContainsInstructionAt(return_address));
SwitchableCallPattern call(return_address, caller_code);
return call.target();
}
RawObject* CodePatcher::GetSwitchableCallDataAt(uword return_address,
const Code& caller_code) {
ASSERT(caller_code.ContainsInstructionAt(return_address));
SwitchableCallPattern call(return_address, caller_code);
return call.data();
}
void CodePatcher::PatchNativeCallAt(uword return_address,
const Code& code,
NativeFunction target,
const Code& trampoline) {
ASSERT(code.ContainsInstructionAt(return_address));
NativeCallPattern call(return_address, code);
call.set_target(trampoline);
call.set_native_function(target);
}
RawCode* CodePatcher::GetNativeCallAt(uword return_address,
const Code& code,
NativeFunction* target) {
ASSERT(code.ContainsInstructionAt(return_address));
NativeCallPattern call(return_address, code);
*target = call.native_function();
return call.target();
}
} // namespace dart
#endif // defined TARGET_ARCH_ARM
|
/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) **
** **
** Permission is hereby granted, free of charge, to any person obtaining a copy **
** of this software and associated documentation files (the "Software"), to deal **
** in the Software without restriction, including without limitation the rights **
** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell **
** copies of the Software, and to permit persons to whom the Software is **
** furnished to do so, subject to the following conditions: **
** **
** The above copyright notice and this permission notice shall be included in all **
** copies or substantial portions of the Software. **
** **
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR **
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, **
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE **
** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER **
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, **
** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE **
** SOFTWARE. **
***********************************************************************************/
#pragma once
#ifndef SIELOBROWSER_TABWIDGET_HPP
#define SIELOBROWSER_TABWIDGET_HPP
#include "SharedDefines.hpp"
#include <QByteArray>
#include <QVector>
#include <QMenu>
#include <QToolBar>
#include <QWebEngineFullScreenRequest>
#include <QWebEngineDownloadItem>
#include <QWebEngineView>
#include "Application.hpp"
#include "Widgets/Tab/TabStackedWidget.hpp"
#include "Web/LoadRequest.hpp"
#include "Web/Tab/WebTab.hpp"
namespace Sn {
class MainTabBar;
class TabIcon;
class MenuTabs;
class AddTabButton;
class ClosedTabsManager;
class ToolButton;
class AutoSaver;
class StatusBarMessage;
class FloatingButton;
class NavigationToolBar;
class TabbedWebView;
class SIELO_SHAREDLIB TabWidget: public TabStackedWidget {
Q_OBJECT
public:
TabWidget(BrowserWindow* window, Application::TabsSpaceType type = Application::TST_Web, QWidget* parent = nullptr);
~TabWidget();
void loadSettings();
QByteArray saveState();
bool restoreState(const QVector<WebTab::SavedTab>& tabs, int currentTab, const QUrl& homeUrl);
void setCurrentIndex(int index);
void goToApplication(QWidget* w);
void nextTab();
void previousTab();
void currentTabChanged(int index);
int normalTabsCount() const;
int pinnedTabsCount() const;
int extraReservedWidth() const;
WebTab* webTab(int index = -1) const;
QAction* action(const QString& name) const;
BrowserWindow* window() const { return m_window; }
MainTabBar* tabBar() const { return m_tabBar; }
NavigationToolBar* navigationToolBar() const { return m_navigationToolBar; }
ClosedTabsManager* closedTabsManager() const { return m_closedTabsManager; }
QList<WebTab*> allTabs(bool withPinned = true);
Application::TabsSpaceType type() const { return m_tabsSpaceType; }
bool canRestoreTab() const;
bool isCurrentTabFresh() const { return m_currentTabFresh; }
void setCurrentTabFresh(bool currentTabFresh);
QUrl urlOnNewTab() const { return m_urlOnNewTab; }
QUrl homeUrl() const { return m_homeUrl; }
void setHomeUrl(const QString& newUrl);
StatusBarMessage* statusBarMessage() const { return m_statusBarMessage; }
QStackedWidget* addressBars() const { return m_addressBars; }
ToolButton* buttonClosedTabs() const { return m_buttonClosedTabs; }
AddTabButton* buttonAddTab() const { return m_buttonAddTab; }
void moveTab(int from, int to);
int pinUnPinTab(int index, const QString &title = QString());
void detachTab(WebTab* tab);
signals:
void changed();
void tabInserted(int index);
void tabRemoved(int index);
void tabMoved(int from, int to);
void focusIn(TabWidget*);
public slots:
void addTab();
int addView(const QUrl& url);
int addView(const LoadRequest& request, const Application::NewTabTypeFlags& openFlags, bool selectLine = false,
bool pinned = false);
int addView(const LoadRequest& request, const QString& title = tr("New Tab"),
const Application::NewTabTypeFlags& openFlags = Application::NTT_SelectedTab, bool selectLine = false,
int position = -1, bool pinned = false);
int addView(WebTab* tab, const Application::NewTabTypeFlags& openFlags);
int insertView(int index, WebTab* tab, const Application::NewTabTypeFlags& openFlags);
int addApplication(QWidget* application);
int insertApplication(int index, QWidget* application);
void addTabFromClipboard();
int duplicateTab(int index);
void closeTab(int index = -1); // Force
void requestCloseTab(int index = -1);
void reloadTab(int index);
void reloadAllTabs();
void reload();
void reloadBypassCache();
void stopTab(int index);
void closeAllButCurrent(int index);
void closeToRight(int index);
void closeToLeft(int index);
void detachTab(int index);
void loadTab(int index);
void unloadTab(int index);
// void detachTab(int index, QPoint position);
void restoreClosedTab(QObject* obj = nullptr);
void restoreAllClosedTabs();
void clearClosedTabsList();
void showSource();
void showInspector(WebTab* webTab = nullptr);
void fullScreenRequested(QWebEngineFullScreenRequest request);
void toggleFullScreen();
void moveAddTabButton(int posX);
void updateShowBookmarksBarText(bool visible);
void tabBarOverFlowChanged(bool overflowed);
void openBookmarksDialog();
void openHistoryDialog();
private slots:
void save();
void aboutToShowTabsMenu();
void aboutToShowClosedTabsMenu();
void actionChangeIndex();
void tabWasMoved(int before, int after);
private:
WebTab* weTab() const;
WebTab* weTab(int index) const;
TabIcon* tabIcon(int index) const;
bool validIndex(int index) const;
void updateClosedTabsButton();
void setupNavigationBar();
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
AutoSaver* m_saveTimer{nullptr};
BrowserWindow* m_window{nullptr};
MainTabBar* m_tabBar{nullptr};
QStackedWidget* m_addressBars{nullptr};
ClosedTabsManager* m_closedTabsManager;
Application::TabsSpaceType m_tabsSpaceType{};
MenuTabs* m_menuTabs{nullptr};
ToolButton* m_buttonListTabs{nullptr};
ToolButton* m_buttonClosedTabs{nullptr};
AddTabButton* m_buttonAddTab{nullptr};
AddTabButton* m_buttonAddTab2{nullptr};
ToolButton* m_buttonMainMenu{nullptr};
StatusBarMessage* m_statusBarMessage{nullptr};
QPointer<WebTab> m_lastBackgroundTab{};
QMenu* m_menuClosedTabs{nullptr};
NavigationToolBar* m_navigationToolBar{nullptr};
QUrl m_urlOnNewTab{};
QUrl m_homeUrl{};
bool m_dontCloseWithOneTab{false};
bool m_showClosedTabsButton{false};
bool m_newTabAfterActive{false};
bool m_newEmptyTabAfterActive{false};
bool m_currentTabFresh{false};
QWebEngineView* m_fullScreenView{nullptr};
QWidget* m_oldParent{nullptr};
QSize m_oldSize{};
};
}
#endif //SIELOBROWSER_TABWIDGET_HPP
|
#include <one/ping/internal/site_information.h>
namespace i3d {
namespace ping {
SiteInformation::SiteInformation() : _continent_id(0), _dc_location_id(0) {}
I3dPingError SiteInformation::set_continent_id(int continent_id) {
_continent_id = continent_id;
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::set_country(const char *country) {
if (country == nullptr) {
return I3D_PING_ERROR_VALIDATION_PARAM_IS_NULLPTR;
}
_country = country;
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::set_dc_location_id(int dc_location_id) {
_dc_location_id = dc_location_id;
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::set_dc_location_name(const char *dc_location_name) {
if (dc_location_name == nullptr) {
return I3D_PING_ERROR_VALIDATION_PARAM_IS_NULLPTR;
}
_dc_location_name = dc_location_name;
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::set_hostname(const char *hostname) {
if (hostname == nullptr) {
return I3D_PING_ERROR_VALIDATION_PARAM_IS_NULLPTR;
}
_hostname = hostname;
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::push_back_ipv4(const char *ipv4) {
if (ipv4 == nullptr) {
return I3D_PING_ERROR_VALIDATION_PARAM_IS_NULLPTR;
}
_ipv4.push_back(ipv4);
return I3D_PING_ERROR_NONE;
}
I3dPingError SiteInformation::push_back_ipv6(const char *ipv6) {
if (ipv6 == nullptr) {
return I3D_PING_ERROR_VALIDATION_PARAM_IS_NULLPTR;
}
_ipv6.push_back(ipv6);
return I3D_PING_ERROR_NONE;
}
} // namespace ping
} // namespace i3d
|
#include "Stabilizer.h"
#include "quadCopter/Drone.h"
#include "Accelerometer.h"
namespace quad {
double Stabilizer::computePwm(const std::vector<Motor*>& motors, double dt) {
readSensorsData();
if (_flightMode == STAB_HEIGHT) {
computeHoverMode(dt);
}
rp3d::Vector3 currentPRY;
if (_flightMode == STAB || _flightMode == STAB_HEIGHT) {
currentPRY = _currentParams.getAxisPRY();
currentPRY[YAW] = _currentParams.getAngularVelocity().y;
}
rp3d::Vector3 targetPRY = _targetParams.getAxisPRY();
double thrustPitch = _quadPIDs[PITCH_PID].calculate(dt, currentPRY[PITCH], targetPRY[PITCH]);
double thrustRoll = _quadPIDs[ROLL_PID].calculate(dt, currentPRY[ROLL], targetPRY[ROLL]);
double thrustYaw = _quadPIDs[YAW_PID].calculate(dt, currentPRY[YAW], targetPRY[YAW]);
std::vector<double> motorsPwm(4, 0);
motorsPwm[MOTOR_FR] = thrustPitch - thrustRoll + thrustYaw + _throttle;
motorsPwm[MOTOR_FL] = thrustPitch + thrustRoll - thrustYaw + _throttle;
motorsPwm[MOTOR_BR] = -thrustPitch - thrustRoll - thrustYaw + _throttle;
motorsPwm[MOTOR_BL] = -thrustPitch + thrustRoll + thrustYaw + _throttle;
for (int i = 0; i < 4; i++) {
motors[i]->setPwm(motorsPwm[i]);
// std::cout << "Thrust" << i + 1 << "_Pwm: " << motorsPwm[i] << " ";
}
// double thrustPitch = 0;
// double thrustRoll = 0;
// double thrustYaw = 0;
// std::cout << "FLight Mode: " << _flightMode << std::endl;
//
// std::cout << "Current Altitude: " << _currentParams.getAltitude()
// << " Target Altitude: " << _targetParams.getAltitude()
// << std::endl
// << "Current Pitch: " << _currentParams.getAxisPRY().x
// << " Roll: " << _currentParams.getAxisPRY().y
// << " Yaw: " << _currentParams.getAxisPRY().z
// << " Target Pitch: " << _targetParams.getAxisPRY().x
// << " Roll: " << _targetParams.getAxisPRY().y
// << " Yaw: " << _targetParams.getAxisPRY().z
// << std::endl;
//
// std::cout << "Thrust Pitch: " << thrustPitch
// << " Roll: " << thrustRoll
// << " Yaw: " << thrustYaw
// << " Throttle: " << _throttle
// << std::endl;
// std::cout << "-------------------------------------------------------------" << std::endl;
}
void Stabilizer::computeHoverMode(double dt) {
double currentAltitude = _currentParams.getAltitude();
_throttle = _quadPIDs[HOVER_PID].calculate(dt, _targetParams.getAltitude(), currentAltitude);
}
void Stabilizer::reset() {
_quadPIDs.reset();
_targetParams.setParameters(0, rp3d::Vector3(0, 0, 0));
}
void Stabilizer::setFlightMode(FlightModes flightMode) {
readSensorsData();
_flightMode = flightMode;
if (flightMode == STAB_HEIGHT) {
_targetParams.setAltitude(_currentParams.getAltitude());
}
}
Stabilizer::~Stabilizer() {
for (auto& sensor : _sensors) {
delete sensor;
}
_sensors.clear();
}
void Stabilizer::setTargetParameters(double targetAltitude, const rp3d::Vector3& targetAxis) {
_targetParams.setParameters(targetAltitude, targetAxis);
}
Stabilizer::Stabilizer(const QuadPIDs& quadPIDs,
PhysicsObject*& objectToRead,
const QuadAttitudeParameters& currentParameters,
const QuadAttitudeParameters& targetParameters,
FlightModes flightMode) :
_quadPIDs(quadPIDs),
_targetParams(targetParameters),
_currentParams(currentParameters),
_throttle(0),
_flightMode(flightMode) {
_sensors.push_back(new Barometer(objectToRead));
_sensors.push_back(new Gyroscope(objectToRead));
_sensors.push_back(new Accelerometer(objectToRead));
}
const QuadAttitudeParameters& Stabilizer::getCurrentParameters() const {
return _currentParams;
}
const QuadAttitudeParameters& Stabilizer::getTargetParameters() const {
return _targetParams;
}
void Stabilizer::readSensorsData() {
for (const auto& sensor : _sensors) {
sensor->getData(_currentParams);
}
}
void Stabilizer::setTargetAxisPRY(const rp3d::Vector3& targetAxis) {
_targetParams.setAxisPRY(targetAxis);
}
void Stabilizer::setThrottle(double throttle) {
_throttle = throttle;
}
FlightModes Stabilizer::getFlightMode() const {
return _flightMode;
}
double Stabilizer::getThrottle() const {
return _throttle;
}
}
|
#include <iostream>
using namespace std;
class Solution {
public:
int lengthOfLastWord(const char *s) {
string ss(s);
for(int i = ss.size()-1; i >= 0 && ss[i] == ' '; i--) {
ss.erase(i,1);
}
size_t index_of_space = ss.find_last_of(' ');
if (index_of_space == string::npos) {
return ss.size();
}
return ss.size() - index_of_space -1;
}
};
int main()
{
char s[] = " ";
Solution so;
cout<<so.lengthOfLastWord(s);
return 0;
}
|
/************************************************************************/
/* */
/* Copyright 2011 by Ullrich Koethe */
/* */
/* This file is part of the VIGRA computer vision library. */
/* The VIGRA Website is */
/* http://hci.iwr.uni-heidelberg.de/vigra/ */
/* Please direct questions, bug reports, and contributions to */
/* ullrich.koethe@iwr.uni-heidelberg.de or */
/* vigra@informatik.uni-hamburg.de */
/* */
/* Permission is hereby granted, free of charge, to any person */
/* obtaining a copy of this software and associated documentation */
/* files (the "Software"), to deal in the Software without */
/* restriction, including without limitation the rights to use, */
/* copy, modify, merge, publish, distribute, sublicense, and/or */
/* sell copies of the Software, and to permit persons to whom the */
/* Software is furnished to do so, subject to the following */
/* conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the */
/* Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES */
/* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND */
/* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT */
/* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, */
/* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */
/* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR */
/* OTHER DEALINGS IN THE SOFTWARE. */
/* */
/************************************************************************/
#ifndef VIGRA_UNSUPERVISED_TEST_DATA_HXX
#define VIGRA_UNSUPERVISED_TEST_DATA_HXX
double plsaData[1024*159] = {
12., 2., 4., 14., 24., 7., 40., 0., 14., 153., 6., 35., 231., 5., 11., 6., 1., 5., 70., 1., 18., 272., 48., 345., 33., 9., 2., 0., 7., 2., 50., 35., 223., 43., 9., 155., 12., 32., 3., 0., 1., 14., 7., 72., 27., 86., 13., 30., 43., 16., 3., 0., 14., 5., 43., 2., 44., 8., 30., 7., 12., 6., 0., 0., 0., 0., 34., 3., 18., 5., 29., 9., 11., 4., 0., 6., 3., 0., 1., 2., 11., 2., 15., 1., 11., 0., 0., 5., 122., 7., 1902., 86., 107., 248., 118., 105., 74., 13., 10., 19., 12., 2., 1., 7., 10., 4., 12., 7., 27., 9., 31., 13., 38., 8., 8., 4., 6., 9., 4., 3., 2., 3., 7., 4., 0., 6., 3., 13., 1., 0., 11., 3., 3., 0., 6., 3., 8., 30., 3., 9., 4., 14., 4., 26., 4., 3., 8., 5., 23., 7., 41., 5., 3., 12., 7., 38., 9., 22., 5.,
13., 1., 3., 5., 36., 8., 24., 2., 13., 169., 3., 30., 202., 6., 24., 3., 1., 2., 70., 0., 14., 308., 50., 316., 39., 18., 1., 0., 8., 5., 36., 32., 232., 36., 6., 161., 15., 39., 6., 0., 3., 17., 9., 66., 19., 88., 9., 33., 50., 8., 2., 2., 31., 5., 38., 12., 46., 10., 27., 4., 18., 8., 3., 0., 2., 0., 24., 3., 17., 0., 27., 8., 20., 4., 0., 1., 1., 1., 0., 4., 14., 2., 7., 1., 3., 1., 1., 3., 130., 5., 1930., 80., 105., 200., 118., 127., 64., 12., 12., 19., 12., 3., 2., 9., 7., 6., 9., 3., 33., 18., 41., 22., 40., 4., 10., 2., 2., 9., 7., 1., 4., 1., 5., 5., 0., 2., 9., 21., 1., 0., 11., 5., 7., 0., 7., 6., 3., 31., 4., 14., 5., 21., 4., 20., 3., 4., 5., 1., 29., 3., 27., 5., 5., 7., 4., 38., 7., 15., 5.,
9., 3., 4., 8., 27., 4., 32., 1., 13., 163., 0., 35., 176., 6., 12., 3., 5., 5., 78., 0., 21., 260., 48., 303., 38., 15., 1., 2., 7., 7., 43., 33., 238., 36., 9., 163., 13., 31., 1., 0., 4., 26., 9., 79., 18., 81., 15., 34., 38., 12., 3., 1., 28., 5., 27., 15., 56., 9., 35., 4., 8., 8., 3., 0., 1., 0., 25., 4., 12., 3., 35., 3., 8., 3., 0., 2., 2., 2., 2., 1., 10., 5., 16., 5., 10., 1., 0., 6., 139., 7., 1813., 76., 103., 223., 102., 116., 59., 17., 11., 21., 8., 0., 1., 5., 5., 3., 15., 10., 33., 19., 29., 15., 32., 9., 11., 4., 7., 8., 3., 2., 6., 1., 6., 0., 0., 2., 4., 17., 0., 0., 9., 7., 6., 0., 3., 5., 3., 33., 3., 5., 2., 10., 4., 26., 0., 0., 4., 3., 28., 4., 28., 6., 3., 3., 12., 32., 6., 15., 5.,
13., 3., 5., 7., 31., 4., 38., 1., 14., 159., 4., 30., 181., 2., 18., 6., 1., 4., 78., 4., 15., 297., 38., 284., 31., 18., 0., 0., 6., 5., 46., 28., 235., 41., 12., 157., 19., 47., 3., 0., 2., 16., 4., 92., 13., 88., 16., 28., 48., 5., 5., 5., 26., 5., 40., 12., 58., 8., 28., 2., 10., 4., 3., 0., 1., 0., 14., 7., 13., 0., 32., 4., 14., 6., 3., 4., 2., 1., 2., 2., 11., 3., 9., 3., 9., 0., 2., 5., 160., 13., 1942., 112., 86., 230., 93., 118., 61., 17., 10., 18., 12., 1., 4., 4., 5., 3., 13., 7., 37., 21., 38., 15., 39., 6., 4., 4., 4., 7., 9., 2., 1., 6., 6., 7., 0., 1., 4., 10., 4., 0., 11., 3., 1., 0., 4., 2., 3., 21., 4., 14., 3., 6., 1., 20., 4., 2., 4., 3., 26., 5., 38., 9., 2., 6., 4., 27., 7., 6., 7.,
10., 0., 4., 5., 28., 7., 32., 2., 11., 159., 5., 29., 200., 2., 17., 9., 0., 8., 62., 8., 24., 322., 42., 328., 55., 13., 2., 1., 8., 4., 37., 30., 253., 43., 9., 172., 12., 26., 6., 0., 2., 24., 11., 91., 18., 105., 13., 34., 40., 24., 3., 1., 26., 8., 34., 10., 47., 10., 32., 5., 8., 7., 5., 0., 0., 0., 19., 3., 16., 6., 30., 5., 11., 3., 2., 7., 0., 2., 2., 5., 10., 3., 4., 4., 7., 3., 1., 9., 144., 11., 1896., 107., 117., 222., 89., 99., 68., 11., 10., 9., 16., 0., 1., 9., 5., 3., 9., 9., 30., 14., 44., 18., 42., 6., 10., 3., 8., 9., 2., 2., 4., 0., 7., 1., 0., 7., 5., 12., 1., 0., 7., 5., 4., 0., 7., 1., 7., 32., 3., 14., 2., 10., 4., 17., 5., 3., 2., 7., 22., 7., 41., 8., 2., 9., 9., 23., 8., 17., 4.,
13., 1., 3., 8., 24., 7., 24., 1., 20., 163., 4., 24., 210., 3., 8., 7., 0., 6., 73., 1., 13., 304., 53., 296., 38., 25., 0., 3., 7., 4., 45., 38., 230., 29., 6., 152., 14., 59., 6., 0., 2., 11., 9., 78., 11., 104., 10., 29., 57., 20., 7., 1., 27., 8., 28., 6., 35., 8., 24., 10., 8., 11., 1., 0., 0., 0., 23., 8., 16., 4., 35., 3., 10., 4., 2., 7., 0., 2., 5., 5., 14., 3., 6., 3., 6., 0., 0., 7., 135., 8., 1842., 96., 96., 222., 101., 106., 79., 16., 12., 23., 11., 1., 1., 6., 9., 10., 10., 9., 36., 15., 37., 17., 41., 5., 9., 4., 4., 12., 5., 0., 1., 4., 8., 5., 0., 2., 9., 12., 2., 0., 13., 3., 5., 0., 9., 7., 3., 26., 6., 15., 3., 14., 4., 20., 4., 3., 2., 6., 25., 4., 37., 6., 5., 5., 8., 26., 7., 14., 3.,
10., 2., 2., 6., 26., 4., 35., 1., 12., 177., 5., 26., 194., 3., 12., 10., 0., 9., 79., 3., 18., 302., 51., 304., 40., 22., 0., 2., 9., 4., 35., 32., 233., 41., 6., 155., 14., 36., 6., 0., 2., 18., 5., 89., 18., 102., 10., 28., 43., 7., 4., 2., 23., 6., 36., 12., 45., 5., 34., 12., 7., 12., 4., 0., 0., 0., 23., 5., 15., 5., 30., 3., 11., 5., 2., 5., 1., 2., 3., 1., 7., 4., 10., 3., 14., 3., 0., 6., 137., 10., 1802., 102., 94., 256., 93., 123., 52., 12., 12., 23., 16., 2., 5., 5., 3., 4., 12., 6., 31., 17., 26., 10., 50., 12., 8., 0., 9., 6., 4., 1., 1., 2., 8., 2., 0., 5., 4., 20., 5., 0., 5., 2., 5., 0., 6., 5., 3., 33., 3., 14., 2., 25., 1., 20., 4., 4., 1., 9., 30., 0., 28., 10., 4., 4., 1., 26., 5., 12., 3.,
20., 3., 2., 8., 25., 8., 33., 1., 22., 157., 5., 29., 208., 5., 13., 7., 0., 5., 85., 2., 15., 318., 49., 335., 49., 23., 1., 4., 5., 3., 40., 37., 248., 33., 10., 146., 17., 40., 7., 0., 1., 10., 4., 93., 17., 110., 23., 24., 44., 12., 1., 0., 24., 9., 40., 9., 54., 10., 29., 11., 15., 9., 3., 0., 1., 0., 20., 8., 15., 2., 27., 8., 9., 8., 2., 1., 1., 0., 2., 3., 5., 0., 15., 1., 7., 0., 1., 3., 129., 8., 1856., 89., 117., 226., 108., 109., 68., 11., 12., 23., 10., 0., 1., 7., 5., 0., 6., 6., 38., 15., 31., 8., 41., 6., 13., 6., 5., 6., 5., 0., 5., 2., 10., 3., 0., 4., 4., 18., 2., 0., 9., 4., 1., 0., 5., 7., 2., 36., 2., 9., 2., 15., 2., 19., 2., 2., 6., 6., 27., 5., 27., 8., 6., 8., 8., 31., 6., 12., 3.,
15., 4., 0., 9., 20., 3., 30., 1., 11., 146., 4., 35., 199., 6., 19., 6., 1., 7., 78., 1., 15., 308., 40., 345., 44., 15., 2., 2., 6., 2., 41., 24., 233., 42., 7., 161., 6., 35., 10., 0., 1., 23., 7., 70., 28., 84., 5., 38., 45., 20., 2., 1., 26., 9., 25., 7., 44., 5., 20., 5., 9., 7., 2., 0., 1., 0., 21., 2., 15., 5., 21., 2., 11., 7., 1., 6., 0., 1., 1., 3., 13., 2., 11., 0., 7., 1., 0., 4., 138., 6., 1833., 98., 98., 233., 107., 115., 67., 20., 8., 21., 9., 0., 2., 4., 7., 2., 7., 9., 28., 16., 32., 18., 29., 7., 6., 4., 7., 6., 4., 1., 0., 1., 5., 4., 0., 6., 2., 16., 1., 0., 9., 3., 2., 0., 6., 3., 3., 32., 7., 9., 5., 16., 2., 27., 6., 4., 5., 4., 29., 4., 35., 3., 6., 8., 7., 19., 8., 17., 1.,
19., 1., 3., 3., 24., 3., 30., 0., 17., 163., 8., 27., 227., 3., 15., 6., 2., 6., 78., 0., 13., 268., 40., 324., 39., 17., 3., 2., 8., 7., 47., 38., 225., 40., 4., 166., 10., 48., 5., 0., 4., 10., 10., 72., 22., 79., 22., 40., 45., 12., 2., 2., 17., 4., 45., 8., 40., 9., 32., 6., 17., 5., 1., 0., 0., 0., 34., 2., 14., 0., 26., 2., 15., 6., 2., 2., 1., 2., 5., 3., 13., 3., 6., 1., 10., 1., 0., 6., 139., 9., 1919., 100., 88., 241., 99., 110., 72., 15., 14., 15., 8., 0., 2., 9., 10., 3., 7., 12., 23., 11., 39., 23., 42., 6., 5., 3., 8., 5., 9., 1., 0., 2., 14., 2., 0., 3., 5., 14., 0., 0., 7., 6., 6., 0., 8., 2., 4., 39., 4., 8., 4., 10., 4., 21., 3., 0., 5., 7., 20., 6., 28., 3., 3., 7., 3., 32., 5., 8., 3.,
7., 1., 6., 9., 18., 11., 35., 2., 10., 126., 2., 27., 197., 4., 14., 5., 2., 5., 92., 1., 16., 270., 44., 310., 42., 19., 0., 1., 4., 4., 34., 32., 270., 37., 7., 160., 16., 46., 3., 0., 3., 18., 6., 73., 20., 73., 15., 36., 33., 6., 5., 0., 24., 5., 31., 14., 51., 10., 40., 7., 12., 7., 1., 0., 3., 0., 17., 4., 13., 2., 25., 5., 9., 2., 4., 2., 0., 0., 2., 2., 5., 1., 10., 1., 10., 1., 2., 4., 145., 8., 1808., 102., 113., 210., 95., 107., 63., 10., 15., 10., 8., 2., 2., 7., 4., 5., 6., 4., 44., 16., 43., 18., 47., 7., 16., 4., 3., 5., 6., 2., 5., 6., 5., 5., 0., 6., 2., 15., 3., 0., 8., 6., 3., 0., 8., 1., 0., 24., 4., 8., 8., 12., 1., 23., 3., 4., 4., 6., 22., 7., 41., 8., 3., 10., 5., 33., 10., 11., 5.,
16., 1., 3., 7., 8., 6., 28., 1., 8., 171., 3., 29., 206., 3., 18., 4., 2., 4., 84., 3., 16., 305., 47., 305., 45., 22., 1., 1., 8., 5., 53., 28., 223., 53., 11., 146., 7., 37., 6., 0., 2., 14., 5., 78., 22., 88., 11., 30., 40., 12., 2., 0., 20., 7., 39., 12., 31., 6., 31., 6., 9., 5., 2., 0., 0., 0., 17., 10., 17., 5., 24., 3., 8., 5., 1., 5., 2., 0., 3., 3., 9., 4., 8., 0., 12., 1., 1., 2., 169., 4., 1900., 98., 111., 215., 99., 91., 64., 19., 10., 19., 8., 1., 0., 5., 7., 2., 6., 7., 32., 13., 29., 22., 42., 7., 7., 3., 6., 6., 3., 3., 1., 3., 5., 2., 0., 3., 4., 11., 1., 0., 8., 5., 3., 0., 5., 5., 3., 27., 2., 11., 3., 14., 4., 27., 6., 3., 3., 6., 21., 4., 25., 8., 5., 6., 2., 30., 6., 7., 4.,
14., 3., 4., 4., 26., 5., 32., 0., 26., 153., 3., 17., 190., 5., 13., 7., 4., 6., 68., 4., 18., 292., 54., 344., 35., 16., 1., 2., 10., 3., 38., 43., 249., 39., 10., 152., 18., 37., 4., 0., 2., 13., 5., 81., 21., 84., 15., 47., 42., 7., 2., 2., 24., 6., 32., 10., 44., 15., 24., 9., 8., 8., 1., 0., 1., 0., 30., 8., 10., 4., 33., 2., 13., 6., 3., 2., 0., 2., 5., 1., 6., 6., 8., 0., 6., 1., 0., 1., 134., 5., 1787., 98., 98., 235., 98., 130., 67., 13., 12., 16., 10., 1., 2., 4., 7., 4., 11., 2., 47., 19., 29., 20., 39., 8., 7., 6., 2., 12., 3., 4., 2., 3., 11., 7., 0., 6., 7., 20., 2., 0., 12., 1., 2., 0., 7., 4., 1., 36., 4., 11., 1., 10., 2., 25., 1., 4., 6., 6., 29., 3., 36., 6., 6., 6., 6., 33., 5., 10., 6.,
11., 3., 3., 7., 24., 5., 27., 1., 17., 141., 1., 21., 198., 6., 14., 7., 0., 8., 81., 1., 8., 301., 47., 300., 42., 21., 2., 1., 11., 5., 51., 30., 215., 45., 4., 151., 15., 43., 3., 0., 1., 18., 8., 81., 22., 76., 8., 33., 62., 19., 0., 2., 28., 7., 34., 12., 53., 6., 31., 12., 14., 8., 2., 0., 2., 0., 17., 4., 20., 5., 27., 5., 11., 4., 5., 4., 0., 3., 0., 1., 10., 3., 4., 3., 10., 0., 0., 5., 131., 10., 1839., 90., 97., 202., 106., 128., 60., 25., 12., 25., 12., 0., 3., 2., 6., 4., 9., 10., 41., 19., 43., 13., 35., 5., 10., 4., 4., 4., 10., 2., 1., 4., 8., 1., 0., 5., 5., 13., 1., 0., 12., 4., 1., 0., 10., 2., 0., 32., 5., 17., 2., 10., 1., 14., 4., 5., 6., 8., 27., 5., 29., 8., 3., 7., 6., 30., 6., 14., 1.,
10., 2., 4., 15., 21., 10., 26., 1., 14., 154., 2., 17., 179., 4., 16., 11., 3., 5., 75., 3., 17., 282., 33., 275., 44., 22., 1., 1., 4., 3., 49., 33., 261., 43., 5., 163., 14., 50., 6., 0., 3., 23., 5., 81., 14., 69., 13., 45., 35., 7., 5., 2., 26., 7., 32., 8., 39., 10., 40., 8., 8., 3., 2., 0., 2., 0., 15., 7., 19., 6., 30., 3., 13., 3., 1., 2., 1., 1., 1., 1., 13., 1., 10., 1., 5., 1., 0., 6., 153., 7., 1929., 98., 114., 218., 112., 115., 73., 18., 19., 23., 6., 1., 2., 4., 2., 1., 13., 7., 38., 22., 39., 14., 32., 11., 12., 4., 7., 9., 5., 0., 7., 2., 6., 1., 0., 5., 3., 17., 1., 0., 7., 4., 2., 0., 3., 1., 0., 28., 2., 9., 1., 13., 2., 17., 2., 2., 4., 4., 24., 2., 35., 3., 4., 6., 5., 32., 7., 14., 4.,
12., 2., 4., 9., 30., 4., 34., 0., 16., 159., 4., 40., 196., 6., 18., 6., 1., 6., 69., 3., 14., 295., 41., 353., 52., 16., 1., 5., 9., 5., 41., 27., 234., 47., 2., 147., 10., 40., 10., 0., 3., 22., 9., 72., 29., 101., 18., 40., 27., 10., 7., 1., 19., 5., 34., 11., 59., 12., 26., 7., 8., 5., 3., 0., 1., 0., 27., 5., 15., 3., 31., 7., 14., 2., 2., 2., 0., 1., 2., 3., 8., 2., 7., 1., 7., 2., 0., 3., 118., 11., 1952., 87., 92., 213., 110., 104., 73., 13., 19., 15., 11., 1., 2., 3., 2., 3., 11., 8., 41., 11., 34., 13., 45., 6., 9., 9., 4., 7., 5., 1., 6., 2., 5., 5., 0., 5., 5., 15., 3., 0., 10., 5., 1., 0., 3., 3., 1., 34., 5., 12., 2., 14., 2., 19., 2., 5., 8., 3., 36., 3., 28., 5., 7., 7., 5., 38., 5., 22., 8.,
13., 3., 4., 6., 24., 6., 37., 3., 19., 189., 6., 30., 182., 3., 18., 7., 1., 3., 93., 3., 15., 322., 41., 332., 37., 16., 1., 1., 6., 4., 37., 34., 231., 37., 5., 170., 15., 42., 6., 0., 2., 25., 7., 81., 20., 81., 18., 18., 43., 9., 3., 0., 26., 2., 34., 7., 47., 7., 35., 5., 13., 2., 0., 0., 0., 0., 18., 6., 13., 5., 24., 8., 9., 9., 0., 3., 2., 1., 7., 2., 12., 5., 11., 3., 10., 2., 2., 3., 144., 5., 1829., 86., 86., 251., 90., 112., 60., 20., 11., 18., 12., 0., 2., 6., 9., 2., 7., 6., 37., 24., 35., 16., 44., 4., 6., 5., 7., 7., 9., 0., 2., 1., 6., 5., 0., 4., 8., 14., 2., 0., 12., 6., 4., 0., 2., 2., 4., 42., 4., 8., 3., 13., 1., 24., 5., 2., 2., 6., 30., 5., 30., 12., 2., 4., 5., 27., 4., 9., 5.,
9., 1., 3., 9., 29., 5., 27., 2., 22., 164., 4., 34., 227., 4., 14., 5., 0., 4., 66., 0., 16., 294., 56., 351., 33., 21., 1., 3., 7., 2., 34., 31., 224., 37., 8., 175., 7., 30., 8., 0., 1., 18., 9., 85., 15., 82., 9., 35., 52., 10., 2., 0., 28., 8., 43., 8., 48., 10., 47., 5., 11., 1., 6., 0., 3., 0., 22., 2., 10., 2., 29., 2., 6., 6., 1., 3., 2., 2., 3., 3., 12., 2., 9., 1., 9., 2., 1., 5., 142., 6., 1903., 90., 119., 217., 94., 122., 80., 18., 5., 17., 23., 0., 3., 9., 10., 3., 8., 11., 43., 25., 36., 17., 39., 8., 9., 4., 5., 10., 5., 0., 2., 3., 11., 2., 0., 4., 7., 15., 2., 0., 8., 5., 4., 0., 4., 3., 4., 25., 5., 18., 3., 11., 4., 21., 2., 5., 5., 4., 18., 6., 27., 8., 6., 2., 5., 31., 5., 14., 7.,
13., 2., 1., 9., 28., 9., 19., 3., 14., 154., 1., 33., 187., 3., 15., 7., 1., 7., 98., 2., 24., 298., 51., 344., 39., 21., 2., 0., 8., 4., 39., 30., 235., 44., 7., 149., 14., 40., 6., 0., 2., 17., 6., 90., 15., 75., 12., 27., 45., 18., 4., 1., 16., 9., 46., 8., 27., 8., 24., 8., 7., 6., 2., 0., 2., 0., 20., 2., 15., 1., 31., 4., 8., 2., 0., 3., 0., 1., 4., 1., 9., 3., 12., 1., 7., 2., 4., 3., 129., 10., 1955., 91., 95., 212., 102., 118., 78., 19., 10., 22., 11., 0., 0., 9., 6., 4., 7., 7., 33., 15., 37., 11., 39., 7., 16., 1., 7., 7., 5., 2., 1., 1., 12., 9., 0., 7., 9., 12., 1., 0., 6., 3., 3., 0., 6., 5., 6., 29., 1., 10., 2., 18., 0., 20., 4., 5., 2., 3., 31., 4., 27., 7., 6., 10., 7., 32., 13., 16., 10.,
9., 3., 4., 7., 35., 2., 31., 2., 18., 155., 5., 25., 206., 6., 22., 11., 2., 7., 79., 1., 20., 314., 42., 335., 46., 17., 2., 5., 11., 6., 47., 42., 212., 38., 5., 153., 17., 32., 10., 0., 1., 19., 8., 83., 12., 76., 13., 33., 44., 10., 3., 1., 21., 6., 27., 13., 40., 10., 23., 3., 12., 5., 3., 0., 1., 0., 27., 9., 14., 4., 28., 1., 10., 2., 1., 4., 1., 0., 3., 3., 7., 3., 10., 0., 12., 1., 0., 2., 139., 9., 1988., 99., 111., 223., 98., 115., 84., 13., 17., 14., 8., 2., 2., 6., 9., 8., 9., 12., 32., 18., 37., 13., 44., 12., 15., 1., 3., 8., 8., 2., 1., 3., 9., 4., 0., 1., 7., 15., 1., 0., 8., 5., 5., 0., 8., 4., 2., 35., 2., 10., 6., 18., 1., 25., 3., 5., 3., 2., 29., 4., 32., 5., 6., 4., 5., 33., 2., 16., 3.,
7., 1., 4., 5., 31., 5., 39., 1., 14., 172., 0., 24., 215., 3., 12., 7., 1., 3., 92., 2., 14., 287., 41., 332., 44., 25., 1., 0., 5., 9., 44., 40., 202., 50., 3., 150., 10., 39., 6., 0., 3., 20., 12., 69., 13., 82., 18., 23., 54., 9., 4., 0., 22., 6., 27., 13., 57., 5., 25., 5., 9., 7., 4., 0., 0., 0., 33., 6., 12., 1., 39., 5., 11., 5., 2., 2., 0., 0., 5., 4., 15., 4., 10., 2., 14., 0., 0., 4., 146., 5., 1815., 116., 105., 204., 106., 128., 78., 16., 12., 17., 10., 0., 3., 4., 10., 5., 15., 7., 34., 18., 35., 14., 34., 8., 12., 5., 5., 8., 5., 5., 2., 5., 9., 3., 0., 6., 4., 13., 2., 0., 13., 4., 2., 0., 4., 1., 3., 19., 2., 9., 0., 14., 5., 21., 3., 3., 1., 2., 28., 3., 28., 5., 4., 7., 2., 29., 10., 14., 4.,
17., 1., 2., 5., 31., 6., 23., 1., 16., 147., 1., 23., 231., 6., 19., 5., 2., 3., 78., 0., 11., 296., 47., 345., 45., 15., 2., 1., 8., 4., 52., 32., 239., 36., 7., 167., 10., 32., 5., 0., 1., 18., 8., 90., 22., 77., 21., 43., 38., 19., 3., 3., 28., 5., 39., 13., 48., 12., 31., 3., 10., 11., 2., 0., 2., 0., 17., 3., 16., 5., 24., 5., 8., 7., 0., 6., 1., 2., 1., 1., 9., 3., 9., 5., 11., 3., 1., 5., 129., 8., 1937., 89., 88., 230., 92., 121., 58., 17., 11., 21., 14., 1., 1., 8., 7., 6., 6., 9., 35., 22., 36., 14., 49., 8., 9., 2., 3., 5., 2., 2., 1., 5., 14., 3., 0., 2., 2., 13., 0., 0., 8., 3., 4., 0., 6., 5., 3., 37., 6., 13., 0., 8., 3., 19., 1., 4., 4., 4., 19., 3., 38., 4., 5., 9., 5., 34., 5., 16., 7.,
15., 0., 4., 12., 29., 4., 41., 0., 16., 128., 4., 28., 210., 15., 19., 6., 0., 8., 84., 1., 25., 266., 44., 369., 53., 19., 2., 2., 8., 6., 44., 27., 255., 44., 7., 166., 12., 37., 9., 0., 1., 7., 6., 70., 17., 84., 22., 32., 42., 15., 4., 1., 24., 4., 51., 7., 51., 7., 30., 1., 9., 8., 3., 0., 3., 0., 22., 6., 17., 5., 28., 4., 9., 5., 1., 4., 3., 1., 3., 2., 10., 5., 10., 3., 11., 1., 2., 7., 147., 11., 1938., 82., 109., 219., 108., 122., 68., 23., 9., 24., 15., 0., 2., 6., 6., 2., 7., 6., 34., 18., 32., 26., 33., 4., 11., 4., 0., 9., 6., 1., 1., 6., 14., 5., 0., 3., 2., 19., 1., 0., 8., 2., 2., 0., 3., 2., 3., 32., 2., 10., 0., 12., 3., 23., 4., 4., 3., 6., 17., 3., 32., 9., 8., 9., 4., 27., 11., 10., 4.,
12., 0., 2., 6., 31., 3., 19., 1., 12., 160., 7., 30., 189., 8., 17., 6., 0., 5., 99., 2., 16., 292., 52., 364., 31., 17., 0., 4., 4., 6., 50., 39., 259., 40., 10., 131., 19., 40., 2., 0., 2., 25., 5., 93., 20., 97., 10., 32., 43., 17., 3., 2., 24., 6., 43., 5., 48., 8., 34., 4., 6., 4., 1., 0., 1., 0., 21., 5., 15., 4., 34., 6., 16., 7., 1., 4., 0., 1., 6., 1., 15., 1., 6., 2., 10., 1., 2., 4., 137., 16., 1901., 106., 99., 229., 88., 110., 75., 15., 11., 14., 14., 1., 3., 7., 4., 6., 13., 12., 44., 16., 34., 16., 39., 8., 7., 1., 3., 4., 2., 2., 1., 2., 13., 4., 0., 4., 3., 16., 1., 0., 10., 1., 2., 0., 5., 4., 5., 31., 4., 11., 8., 10., 1., 18., 2., 3., 2., 3., 24., 6., 41., 7., 4., 8., 3., 42., 4., 10., 2.,
14., 1., 2., 10., 28., 5., 42., 0., 14., 166., 1., 27., 215., 2., 11., 7., 0., 5., 76., 0., 19., 317., 38., 337., 38., 19., 1., 2., 11., 4., 59., 36., 231., 30., 14., 165., 19., 45., 3., 0., 1., 18., 10., 78., 23., 86., 18., 42., 51., 15., 3., 0., 17., 7., 35., 14., 42., 11., 33., 8., 8., 9., 3., 0., 1., 0., 20., 5., 15., 5., 25., 8., 12., 2., 1., 0., 1., 2., 1., 3., 9., 3., 7., 0., 8., 1., 0., 5., 143., 7., 1949., 88., 98., 192., 84., 126., 72., 19., 9., 19., 5., 0., 3., 5., 1., 4., 12., 8., 32., 14., 42., 12., 31., 8., 8., 4., 9., 6., 6., 0., 5., 3., 6., 2., 0., 5., 5., 12., 3., 0., 12., 1., 2., 0., 7., 3., 4., 22., 4., 11., 0., 14., 2., 21., 3., 2., 7., 3., 24., 1., 34., 11., 4., 4., 2., 37., 5., 11., 4.,
16., 2., 4., 8., 30., 7., 25., 0., 16., 170., 3., 26., 206., 10., 13., 7., 1., 5., 63., 1., 15., 263., 37., 314., 40., 21., 1., 1., 11., 7., 35., 31., 233., 37., 8., 140., 12., 41., 7., 0., 2., 17., 6., 85., 17., 86., 15., 33., 50., 14., 2., 1., 19., 6., 59., 10., 60., 7., 31., 8., 13., 8., 4., 0., 1., 0., 22., 3., 16., 2., 23., 4., 11., 4., 3., 1., 0., 0., 2., 2., 6., 1., 5., 2., 12., 1., 0., 5., 135., 6., 1840., 92., 93., 227., 91., 107., 65., 20., 10., 19., 12., 0., 6., 5., 5., 7., 8., 12., 42., 15., 30., 17., 38., 5., 6., 4., 2., 8., 6., 3., 4., 2., 10., 4., 0., 7., 4., 12., 3., 0., 11., 4., 2., 0., 3., 1., 6., 34., 2., 9., 4., 24., 2., 13., 2., 6., 4., 7., 22., 4., 28., 7., 3., 7., 7., 39., 7., 14., 4.,
11., 1., 3., 2., 13., 6., 6., 0., 5., 29., 2., 12., 29., 0., 16., 2., 2., 2., 18., 1., 5., 13., 13., 25., 38., 6., 0., 1., 3., 1., 10., 10., 17., 7., 3., 17., 3., 15., 7., 2., 1., 2., 2., 9., 14., 13., 41., 7., 22., 9., 3., 0., 3., 3., 14., 1., 8., 4., 8., 18., 7., 19., 10., 4., 1., 1., 11., 1., 3., 3., 8., 5., 4., 4., 3., 4., 5., 2., 0., 5., 5., 0., 0., 1., 1., 4., 5., 2., 3., 3., 3., 1., 3., 0., 1., 4., 2., 0., 1., 3., 4., 3., 0., 3., 2., 2., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 3., 2., 3., 2., 0., 6., 1., 8., 10., 0., 16., 10., 0., 12., 1., 1., 2., 10., 3., 1., 18., 17., 21., 31., 6., 1., 2., 2., 1., 8., 11., 28., 13., 1., 11., 6., 18., 11., 5., 1., 1., 1., 21., 10., 14., 38., 13., 14., 8., 5., 0., 5., 1., 5., 2., 9., 13., 5., 19., 4., 29., 6., 0., 0., 1., 6., 1., 0., 1., 7., 4., 6., 4., 3., 9., 4., 3., 1., 2., 4., 0., 5., 0., 1., 2., 0., 5., 6., 5., 4., 0., 0., 3., 1., 4., 4., 0., 2., 5., 2., 2., 3., 5., 1., 1., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 5., 10., 6., 4., 1., 8., 16., 1., 8., 17., 1., 27., 3., 2., 3., 22., 0., 7., 31., 10., 28., 29., 8., 0., 0., 1., 2., 9., 5., 37., 26., 3., 15., 4., 15., 12., 0., 2., 4., 2., 21., 15., 19., 51., 7., 25., 11., 3., 0., 3., 1., 16., 6., 12., 7., 4., 14., 11., 22., 11., 3., 1., 0., 0., 1., 1., 3., 3., 1., 2., 5., 1., 2., 2., 4., 1., 1., 2., 0., 4., 2., 3., 3., 1., 4., 2., 1., 3., 0., 2., 1., 3., 4., 0., 0., 0., 1., 0., 4., 1., 1., 0., 0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 4., 10., 4., 15., 0., 5., 18., 2., 13., 25., 1., 20., 2., 1., 1., 13., 0., 4., 35., 14., 24., 32., 2., 1., 0., 1., 3., 8., 7., 29., 11., 0., 13., 5., 15., 8., 4., 1., 4., 3., 8., 12., 20., 55., 7., 19., 11., 5., 1., 4., 2., 14., 3., 7., 3., 11., 14., 5., 24., 7., 2., 2., 2., 10., 1., 2., 0., 5., 3., 4., 4., 0., 1., 1., 3., 1., 3., 1., 0., 1., 0., 3., 3., 2., 4., 3., 2., 8., 2., 5., 2., 1., 9., 3., 0., 2., 2., 1., 0., 1., 2., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 5., 13., 5., 1., 2., 5., 25., 1., 17., 20., 2., 19., 2., 1., 4., 15., 1., 3., 10., 11., 33., 33., 4., 1., 1., 4., 2., 9., 3., 25., 10., 5., 18., 3., 17., 7., 2., 0., 4., 4., 15., 9., 12., 36., 10., 19., 12., 4., 2., 5., 3., 9., 2., 13., 8., 10., 18., 9., 21., 12., 6., 0., 0., 10., 1., 7., 2., 7., 1., 3., 1., 3., 2., 11., 2., 3., 1., 2., 0., 2., 2., 1., 7., 1., 4., 5., 1., 2., 0., 2., 1., 5., 4., 0., 0., 2., 1., 1., 0., 5., 0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 3., 4., 18., 5., 4., 0., 8., 23., 2., 17., 16., 2., 14., 6., 1., 2., 28., 3., 7., 18., 15., 28., 26., 3., 1., 1., 1., 2., 5., 13., 25., 21., 2., 13., 6., 13., 20., 2., 2., 8., 2., 9., 15., 26., 53., 11., 23., 8., 5., 3., 6., 0., 6., 6., 17., 5., 9., 12., 4., 26., 11., 5., 0., 0., 10., 0., 6., 3., 8., 2., 2., 3., 3., 3., 2., 1., 0., 2., 2., 0., 2., 0., 2., 7., 3., 3., 1., 0., 9., 0., 4., 1., 3., 7., 2., 0., 3., 5., 4., 1., 1., 2., 4., 0., 1., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 7., 29., 3., 37., 2., 10., 156., 3., 21., 209., 2., 21., 4., 3., 4., 81., 6., 10., 296., 43., 361., 38., 15., 1., 2., 4., 4., 44., 40., 235., 39., 9., 168., 16., 36., 4., 0., 2., 19., 5., 79., 18., 91., 13., 28., 48., 13., 4., 1., 32., 8., 39., 5., 48., 10., 25., 5., 8., 7., 3., 0., 0., 0., 29., 1., 14., 2., 27., 5., 13., 4., 1., 3., 3., 0., 1., 2., 10., 2., 8., 5., 8., 1., 2., 2., 138., 9., 1929., 87., 97., 232., 84., 108., 67., 17., 9., 22., 16., 0., 0., 10., 6., 3., 9., 6., 35., 15., 37., 19., 33., 2., 8., 7., 5., 6., 3., 3., 4., 2., 3., 2., 0., 5., 2., 8., 2., 0., 10., 2., 4., 0., 5., 1., 5., 24., 1., 9., 1., 15., 4., 20., 1., 5., 1., 4., 25., 3., 37., 6., 2., 8., 5., 35., 6., 8., 3.,
21., 1., 5., 10., 27., 3., 27., 2., 11., 136., 6., 36., 193., 9., 17., 6., 0., 4., 70., 3., 15., 294., 48., 307., 48., 17., 0., 0., 7., 2., 42., 30., 239., 40., 5., 146., 10., 44., 5., 0., 2., 10., 10., 77., 31., 81., 17., 34., 41., 8., 1., 0., 20., 13., 36., 12., 47., 10., 34., 7., 17., 8., 0., 0., 1., 0., 23., 4., 15., 2., 27., 4., 14., 5., 1., 2., 0., 1., 5., 5., 8., 2., 9., 3., 6., 2., 1., 4., 134., 3., 1858., 98., 101., 249., 118., 113., 71., 18., 8., 13., 17., 1., 3., 7., 4., 3., 8., 5., 35., 21., 31., 20., 39., 9., 9., 3., 3., 10., 5., 1., 2., 1., 12., 4., 0., 2., 3., 14., 2., 0., 10., 3., 2., 0., 7., 1., 2., 35., 0., 14., 3., 9., 2., 23., 3., 5., 2., 8., 31., 7., 22., 10., 6., 6., 3., 24., 7., 16., 6.,
6., 6., 4., 12., 23., 4., 35., 0., 21., 160., 3., 27., 198., 3., 17., 8., 1., 6., 69., 5., 27., 280., 48., 319., 47., 16., 0., 3., 8., 6., 51., 35., 242., 36., 9., 143., 13., 35., 6., 0., 2., 23., 14., 81., 25., 116., 14., 45., 43., 13., 1., 0., 18., 5., 33., 12., 58., 7., 37., 4., 11., 14., 0., 0., 0., 0., 18., 5., 17., 4., 30., 6., 7., 6., 3., 4., 0., 0., 4., 0., 13., 1., 3., 2., 7., 1., 0., 4., 145., 8., 1919., 94., 95., 248., 99., 119., 58., 13., 11., 21., 13., 0., 2., 5., 1., 2., 15., 5., 50., 10., 36., 19., 50., 10., 6., 1., 3., 5., 3., 2., 2., 5., 5., 2., 0., 4., 7., 14., 3., 0., 13., 6., 4., 0., 1., 4., 4., 30., 3., 11., 4., 12., 1., 17., 3., 5., 5., 9., 20., 5., 30., 6., 3., 7., 4., 43., 4., 12., 3.,
14., 3., 6., 14., 24., 15., 33., 2., 25., 166., 1., 20., 209., 7., 16., 9., 1., 7., 86., 2., 14., 305., 46., 313., 46., 13., 1., 1., 4., 5., 41., 36., 258., 35., 12., 176., 15., 38., 5., 0., 2., 24., 8., 79., 17., 90., 15., 31., 45., 17., 6., 1., 28., 6., 46., 7., 54., 11., 34., 4., 12., 9., 1., 0., 0., 0., 22., 6., 6., 4., 34., 4., 18., 2., 3., 3., 1., 3., 3., 2., 14., 1., 10., 1., 10., 1., 3., 4., 151., 8., 1900., 82., 106., 224., 98., 121., 69., 23., 12., 19., 14., 1., 1., 5., 3., 6., 8., 10., 27., 12., 43., 14., 49., 6., 12., 4., 5., 7., 8., 2., 6., 4., 9., 5., 0., 7., 6., 15., 0., 0., 12., 7., 3., 0., 4., 1., 1., 30., 4., 23., 4., 12., 3., 25., 2., 2., 3., 4., 24., 5., 44., 8., 4., 17., 4., 29., 12., 8., 6.,
23., 1., 2., 9., 21., 9., 23., 1., 10., 144., 3., 17., 197., 6., 8., 7., 1., 1., 76., 5., 17., 276., 41., 306., 38., 15., 2., 1., 9., 4., 43., 27., 220., 39., 13., 155., 14., 34., 5., 0., 0., 18., 10., 74., 21., 91., 12., 25., 45., 15., 4., 0., 16., 7., 47., 11., 54., 7., 28., 4., 6., 2., 3., 0., 1., 0., 22., 3., 14., 2., 29., 4., 6., 6., 1., 3., 0., 0., 1., 1., 7., 2., 6., 1., 6., 2., 1., 4., 125., 6., 1964., 110., 77., 206., 98., 101., 71., 19., 16., 15., 13., 0., 1., 6., 5., 4., 3., 14., 32., 18., 29., 13., 37., 8., 11., 3., 5., 9., 5., 5., 5., 5., 10., 2., 0., 5., 4., 16., 0., 0., 10., 5., 2., 0., 8., 2., 3., 42., 1., 9., 2., 15., 0., 19., 2., 4., 4., 1., 35., 3., 31., 9., 6., 8., 3., 29., 5., 9., 2.,
17., 1., 4., 8., 20., 8., 40., 1., 13., 152., 4., 34., 200., 4., 22., 5., 2., 3., 92., 2., 17., 280., 45., 343., 56., 16., 2., 0., 4., 3., 50., 22., 221., 49., 10., 160., 14., 41., 5., 0., 2., 15., 8., 66., 21., 85., 15., 33., 48., 12., 6., 1., 25., 3., 46., 13., 49., 9., 33., 8., 10., 5., 1., 0., 1., 0., 26., 7., 14., 2., 26., 2., 14., 4., 2., 6., 0., 0., 5., 0., 16., 1., 10., 1., 5., 1., 2., 6., 149., 5., 1923., 96., 113., 214., 96., 109., 79., 15., 14., 12., 15., 0., 2., 5., 7., 5., 8., 7., 31., 15., 36., 17., 30., 9., 9., 2., 2., 3., 6., 1., 3., 2., 5., 6., 0., 7., 5., 8., 1., 0., 6., 4., 7., 0., 6., 1., 3., 25., 3., 11., 4., 10., 5., 24., 3., 0., 6., 5., 30., 2., 30., 7., 7., 7., 2., 32., 10., 16., 5.,
10., 4., 3., 6., 31., 2., 39., 2., 17., 159., 4., 36., 213., 8., 14., 12., 0., 1., 83., 2., 19., 264., 35., 351., 40., 21., 1., 4., 8., 2., 47., 40., 245., 45., 6., 147., 19., 29., 7., 0., 0., 18., 7., 83., 16., 85., 14., 28., 62., 13., 4., 2., 38., 12., 38., 10., 53., 3., 24., 7., 13., 8., 1., 0., 2., 0., 25., 3., 16., 4., 23., 3., 17., 8., 2., 2., 0., 0., 5., 1., 11., 2., 10., 0., 5., 0., 0., 2., 142., 10., 1934., 97., 86., 211., 96., 123., 64., 10., 11., 22., 17., 0., 3., 3., 5., 6., 14., 12., 47., 15., 29., 16., 35., 9., 8., 7., 5., 6., 5., 2., 2., 3., 8., 1., 0., 4., 3., 12., 2., 0., 11., 4., 3., 0., 3., 3., 1., 30., 4., 20., 4., 12., 4., 25., 2., 6., 3., 4., 27., 5., 38., 1., 3., 5., 4., 36., 3., 10., 6.,
18., 1., 4., 4., 21., 8., 27., 2., 11., 159., 5., 22., 201., 6., 17., 6., 0., 8., 96., 3., 16., 279., 58., 301., 44., 17., 1., 0., 6., 1., 36., 35., 229., 36., 4., 165., 10., 33., 7., 0., 4., 23., 11., 61., 20., 71., 14., 37., 43., 17., 4., 1., 25., 11., 40., 4., 51., 10., 29., 6., 11., 5., 2., 0., 1., 0., 26., 2., 12., 0., 21., 2., 8., 4., 0., 2., 1., 3., 6., 2., 13., 4., 6., 0., 6., 1., 2., 0., 165., 7., 1869., 86., 95., 244., 86., 122., 68., 16., 8., 19., 9., 2., 1., 7., 7., 6., 12., 7., 34., 17., 26., 17., 42., 8., 9., 7., 5., 7., 7., 3., 2., 2., 8., 1., 0., 3., 4., 13., 2., 0., 15., 4., 2., 0., 8., 2., 3., 26., 2., 20., 3., 14., 5., 18., 0., 2., 5., 5., 29., 5., 24., 4., 7., 9., 4., 43., 5., 11., 4.,
17., 1., 3., 10., 25., 6., 33., 3., 15., 161., 1., 28., 206., 9., 21., 7., 3., 5., 108., 2., 9., 293., 48., 322., 40., 17., 2., 5., 9., 7., 45., 38., 223., 36., 7., 172., 24., 43., 7., 0., 3., 13., 10., 64., 18., 83., 13., 28., 39., 9., 3., 0., 26., 7., 38., 13., 36., 9., 35., 2., 6., 7., 3., 0., 2., 0., 32., 7., 13., 8., 30., 10., 5., 4., 1., 3., 0., 1., 4., 1., 10., 3., 12., 5., 2., 1., 1., 4., 145., 13., 1899., 89., 110., 215., 96., 97., 65., 17., 11., 17., 12., 2., 4., 5., 3., 2., 13., 8., 19., 17., 21., 14., 46., 6., 13., 6., 2., 5., 12., 2., 1., 2., 6., 3., 0., 4., 6., 15., 3., 0., 18., 4., 3., 0., 4., 1., 3., 28., 1., 10., 4., 9., 3., 21., 3., 4., 5., 3., 31., 4., 32., 5., 5., 7., 3., 32., 5., 10., 7.,
8., 0., 9., 6., 27., 5., 29., 1., 16., 150., 6., 29., 195., 6., 13., 11., 0., 4., 82., 2., 12., 306., 47., 309., 43., 15., 0., 0., 7., 8., 39., 33., 236., 40., 13., 164., 20., 40., 7., 0., 2., 22., 13., 84., 21., 76., 13., 37., 51., 20., 3., 0., 26., 6., 42., 7., 51., 11., 38., 8., 14., 9., 7., 0., 1., 0., 20., 4., 12., 3., 32., 8., 11., 6., 1., 0., 2., 2., 1., 4., 10., 1., 10., 1., 4., 2., 1., 5., 137., 8., 1911., 72., 95., 217., 95., 107., 57., 14., 12., 13., 12., 0., 1., 6., 6., 4., 9., 10., 45., 14., 42., 12., 49., 7., 8., 3., 5., 10., 6., 2., 1., 4., 9., 3., 0., 4., 4., 15., 5., 0., 5., 5., 3., 0., 5., 3., 5., 27., 3., 9., 2., 6., 5., 26., 1., 5., 3., 4., 27., 6., 31., 2., 7., 5., 5., 24., 7., 10., 4.,
9., 2., 4., 8., 25., 4., 34., 0., 19., 182., 5., 25., 199., 7., 15., 4., 1., 5., 76., 2., 18., 304., 34., 330., 42., 18., 1., 1., 13., 1., 51., 36., 223., 43., 7., 152., 17., 35., 5., 0., 2., 12., 9., 78., 16., 87., 14., 31., 49., 9., 1., 0., 20., 9., 39., 6., 53., 14., 40., 3., 6., 4., 0., 0., 2., 0., 24., 3., 23., 3., 29., 10., 9., 4., 6., 3., 2., 1., 3., 1., 11., 3., 10., 1., 9., 0., 1., 5., 146., 10., 1786., 84., 110., 230., 98., 102., 71., 14., 9., 22., 11., 1., 1., 9., 9., 5., 5., 2., 27., 17., 46., 20., 39., 4., 11., 3., 2., 9., 6., 0., 2., 1., 7., 8., 0., 4., 9., 15., 3., 0., 9., 4., 3., 0., 5., 2., 6., 27., 3., 9., 5., 13., 1., 21., 6., 2., 5., 2., 18., 5., 35., 7., 5., 8., 8., 42., 6., 13., 8.,
14., 3., 3., 3., 27., 6., 31., 1., 7., 167., 1., 23., 218., 4., 14., 7., 1., 5., 83., 3., 20., 281., 57., 323., 40., 19., 1., 3., 8., 9., 45., 39., 230., 44., 15., 158., 22., 31., 6., 0., 1., 12., 12., 64., 18., 87., 8., 36., 41., 10., 4., 2., 31., 6., 43., 7., 40., 7., 37., 8., 5., 0., 2., 0., 1., 0., 22., 4., 14., 5., 25., 6., 7., 10., 1., 2., 0., 1., 3., 2., 11., 2., 4., 3., 9., 1., 1., 3., 167., 12., 1863., 94., 97., 241., 95., 107., 66., 15., 12., 14., 5., 1., 1., 6., 3., 5., 8., 8., 36., 19., 37., 12., 42., 10., 9., 7., 6., 7., 6., 3., 2., 7., 8., 2., 0., 3., 3., 9., 5., 0., 11., 3., 2., 0., 6., 3., 1., 41., 3., 10., 3., 9., 4., 20., 5., 3., 3., 7., 20., 3., 38., 7., 5., 4., 5., 28., 7., 8., 5.,
10., 1., 3., 11., 29., 8., 22., 1., 12., 166., 2., 22., 191., 4., 16., 5., 0., 2., 88., 0., 17., 292., 51., 338., 51., 25., 0., 4., 5., 8., 37., 20., 227., 44., 12., 157., 12., 37., 7., 0., 5., 15., 8., 82., 19., 91., 11., 41., 48., 15., 3., 1., 25., 2., 43., 7., 52., 9., 27., 7., 7., 10., 2., 0., 0., 0., 17., 7., 17., 2., 33., 4., 10., 2., 3., 3., 0., 1., 3., 1., 15., 4., 10., 0., 12., 1., 1., 4., 131., 10., 1866., 81., 90., 201., 117., 120., 64., 13., 8., 17., 9., 1., 0., 4., 3., 4., 11., 11., 37., 13., 31., 19., 42., 4., 7., 2., 5., 3., 6., 3., 6., 2., 4., 4., 0., 3., 10., 16., 3., 0., 13., 6., 3., 0., 5., 5., 3., 24., 6., 9., 3., 18., 4., 25., 5., 6., 10., 1., 25., 6., 26., 10., 8., 5., 4., 30., 9., 13., 3.,
8., 1., 4., 9., 27., 8., 34., 0., 17., 163., 4., 24., 213., 3., 19., 17., 1., 5., 78., 4., 17., 309., 29., 339., 50., 14., 3., 3., 10., 8., 36., 42., 201., 32., 10., 161., 14., 35., 11., 0., 0., 24., 5., 82., 18., 88., 12., 32., 55., 11., 4., 2., 31., 11., 31., 9., 53., 5., 30., 8., 9., 9., 5., 0., 0., 0., 24., 13., 14., 1., 33., 8., 10., 5., 0., 2., 1., 1., 5., 1., 9., 2., 11., 5., 7., 0., 2., 5., 147., 4., 1911., 99., 112., 205., 109., 122., 63., 12., 16., 14., 14., 0., 1., 2., 1., 2., 8., 5., 40., 13., 24., 12., 40., 10., 10., 7., 4., 11., 3., 4., 3., 3., 4., 2., 0., 4., 9., 22., 1., 0., 8., 2., 2., 0., 4., 3., 5., 30., 1., 10., 1., 7., 1., 15., 3., 1., 7., 5., 20., 5., 44., 8., 4., 11., 4., 35., 4., 12., 9.,
14., 2., 2., 6., 31., 6., 39., 4., 17., 161., 2., 21., 200., 4., 22., 8., 0., 2., 95., 1., 14., 269., 44., 324., 40., 26., 3., 1., 6., 6., 31., 26., 228., 39., 11., 168., 11., 37., 5., 0., 1., 18., 8., 78., 18., 97., 13., 35., 46., 21., 1., 0., 31., 11., 37., 11., 54., 9., 37., 4., 9., 7., 1., 0., 4., 0., 16., 5., 14., 3., 35., 7., 10., 3., 2., 1., 4., 3., 2., 4., 8., 3., 9., 0., 7., 2., 0., 4., 139., 10., 1904., 106., 107., 235., 108., 110., 71., 18., 13., 15., 13., 1., 4., 6., 8., 4., 4., 4., 43., 22., 33., 14., 45., 7., 9., 4., 5., 9., 6., 2., 4., 1., 10., 3., 0., 3., 6., 13., 1., 0., 6., 3., 2., 0., 2., 3., 4., 28., 7., 17., 2., 15., 3., 21., 5., 2., 3., 5., 25., 4., 34., 5., 4., 6., 5., 36., 6., 11., 5.,
8., 1., 2., 8., 24., 5., 35., 0., 19., 171., 4., 29., 195., 7., 18., 10., 0., 1., 101., 4., 18., 302., 36., 335., 48., 15., 0., 2., 4., 6., 54., 31., 232., 45., 6., 154., 18., 47., 4., 0., 1., 21., 4., 83., 17., 85., 15., 35., 66., 14., 2., 1., 33., 9., 51., 12., 63., 6., 38., 5., 7., 7., 2., 0., 0., 0., 18., 5., 13., 2., 23., 2., 14., 4., 1., 2., 0., 2., 3., 1., 5., 1., 8., 1., 11., 0., 2., 4., 148., 6., 1930., 79., 100., 211., 98., 90., 73., 17., 18., 11., 16., 1., 2., 4., 6., 6., 12., 16., 31., 12., 31., 22., 46., 8., 7., 5., 6., 7., 3., 3., 3., 3., 8., 6., 0., 3., 3., 11., 0., 0., 15., 4., 2., 0., 3., 5., 3., 38., 2., 15., 1., 15., 5., 26., 5., 2., 4., 5., 19., 6., 32., 5., 5., 4., 3., 42., 6., 12., 4.,
14., 2., 4., 5., 26., 6., 35., 1., 13., 178., 0., 29., 224., 4., 14., 12., 1., 6., 89., 6., 18., 268., 43., 309., 46., 16., 1., 1., 5., 1., 46., 24., 239., 34., 9., 168., 17., 34., 6., 0., 2., 20., 8., 97., 21., 91., 11., 36., 43., 13., 2., 1., 16., 13., 43., 6., 41., 9., 24., 5., 10., 10., 2., 0., 0., 0., 27., 4., 10., 2., 41., 1., 11., 5., 2., 2., 0., 0., 2., 1., 6., 4., 6., 2., 7., 0., 1., 3., 156., 7., 1818., 93., 103., 228., 96., 116., 66., 20., 12., 19., 9., 0., 1., 6., 3., 5., 7., 12., 24., 17., 23., 11., 46., 5., 10., 4., 2., 7., 0., 4., 0., 1., 8., 3., 0., 3., 4., 13., 2., 0., 4., 2., 2., 0., 4., 3., 5., 35., 3., 13., 2., 7., 5., 27., 0., 5., 4., 6., 26., 5., 27., 6., 3., 10., 2., 36., 5., 13., 7.,
9., 2., 5., 7., 26., 6., 26., 1., 21., 136., 3., 40., 206., 7., 17., 4., 1., 6., 84., 0., 19., 270., 28., 337., 37., 16., 2., 2., 9., 3., 48., 31., 231., 35., 4., 167., 16., 42., 5., 0., 3., 17., 5., 81., 30., 83., 16., 40., 46., 18., 2., 0., 27., 8., 45., 13., 43., 6., 25., 6., 9., 7., 1., 0., 1., 0., 23., 4., 8., 1., 29., 7., 10., 3., 4., 2., 0., 2., 2., 3., 17., 2., 5., 2., 3., 2., 1., 6., 142., 5., 1969., 103., 91., 220., 87., 107., 55., 17., 11., 29., 12., 1., 2., 9., 5., 3., 9., 13., 38., 16., 29., 15., 47., 3., 8., 2., 4., 11., 3., 4., 6., 1., 4., 2., 0., 3., 6., 13., 1., 0., 12., 1., 3., 0., 6., 6., 7., 28., 1., 12., 4., 22., 1., 20., 1., 5., 1., 4., 30., 4., 29., 9., 5., 5., 4., 38., 4., 14., 3.,
20., 1., 6., 6., 20., 4., 35., 0., 16., 148., 6., 28., 186., 3., 11., 7., 1., 4., 85., 3., 17., 258., 38., 364., 41., 24., 0., 3., 2., 3., 43., 33., 207., 39., 4., 161., 18., 35., 5., 0., 4., 16., 12., 78., 14., 97., 12., 31., 39., 12., 4., 0., 30., 4., 43., 10., 64., 10., 27., 8., 8., 8., 3., 0., 1., 0., 31., 5., 13., 1., 21., 3., 10., 6., 3., 2., 1., 1., 1., 0., 8., 2., 4., 2., 5., 1., 1., 4., 158., 9., 1929., 100., 99., 226., 97., 110., 68., 16., 10., 17., 17., 0., 1., 5., 6., 3., 5., 9., 34., 14., 33., 21., 34., 4., 10., 3., 4., 8., 3., 2., 5., 3., 8., 3., 0., 3., 6., 15., 2., 0., 10., 2., 4., 0., 4., 2., 4., 28., 3., 7., 2., 11., 3., 30., 3., 4., 2., 7., 22., 9., 30., 5., 4., 2., 1., 37., 6., 10., 7.,
16., 1., 1., 7., 23., 8., 23., 1., 20., 156., 3., 23., 207., 7., 10., 6., 2., 3., 88., 1., 14., 291., 36., 328., 47., 15., 2., 3., 5., 4., 36., 27., 222., 28., 6., 153., 13., 42., 7., 0., 2., 15., 12., 88., 17., 87., 11., 26., 50., 13., 7., 0., 26., 7., 42., 17., 44., 7., 29., 7., 14., 3., 2., 0., 0., 0., 23., 4., 21., 5., 21., 8., 10., 5., 2., 2., 1., 0., 3., 1., 8., 4., 10., 1., 7., 0., 0., 5., 161., 4., 1918., 103., 88., 234., 101., 113., 57., 17., 12., 12., 11., 1., 2., 6., 6., 4., 15., 6., 40., 16., 41., 17., 45., 7., 9., 3., 5., 6., 3., 1., 6., 4., 10., 2., 0., 2., 1., 18., 3., 0., 3., 4., 2., 0., 8., 3., 3., 18., 5., 8., 6., 17., 3., 22., 5., 1., 2., 5., 25., 3., 34., 8., 10., 8., 2., 36., 7., 16., 3.,
13., 2., 2., 8., 30., 10., 21., 2., 25., 157., 2., 25., 211., 4., 17., 9., 1., 8., 87., 0., 22., 302., 48., 337., 36., 21., 1., 1., 5., 7., 42., 32., 264., 52., 12., 161., 17., 41., 8., 0., 2., 20., 8., 80., 13., 85., 17., 34., 57., 11., 1., 0., 28., 5., 40., 9., 48., 8., 22., 4., 7., 5., 3., 0., 1., 0., 17., 3., 11., 3., 23., 3., 10., 6., 1., 2., 2., 2., 2., 0., 16., 4., 7., 3., 17., 1., 2., 5., 146., 8., 1868., 84., 85., 231., 94., 101., 74., 11., 14., 16., 8., 0., 0., 7., 5., 7., 17., 7., 38., 18., 41., 19., 42., 8., 16., 5., 6., 7., 4., 1., 2., 5., 8., 2., 0., 7., 6., 13., 0., 0., 10., 3., 5., 0., 4., 2., 8., 18., 1., 13., 6., 11., 4., 18., 4., 2., 4., 4., 24., 4., 26., 4., 5., 7., 0., 30., 9., 12., 4.,
23., 1., 2., 4., 30., 8., 20., 0., 14., 137., 4., 26., 199., 5., 15., 2., 1., 4., 77., 1., 17., 279., 43., 358., 29., 23., 1., 1., 10., 1., 51., 27., 250., 31., 13., 161., 18., 40., 3., 0., 0., 19., 11., 70., 19., 89., 15., 27., 45., 16., 1., 3., 23., 5., 35., 10., 51., 8., 22., 8., 5., 7., 1., 0., 0., 0., 36., 13., 9., 2., 34., 7., 14., 3., 4., 2., 1., 2., 2., 2., 11., 5., 8., 1., 7., 1., 0., 4., 121., 8., 1892., 91., 102., 242., 102., 138., 88., 13., 13., 10., 14., 1., 7., 3., 3., 6., 7., 8., 31., 14., 34., 17., 36., 14., 8., 5., 5., 2., 5., 5., 6., 7., 2., 3., 0., 7., 4., 13., 1., 0., 6., 4., 4., 0., 4., 4., 6., 41., 2., 14., 3., 17., 2., 27., 4., 4., 3., 5., 21., 6., 25., 7., 10., 4., 6., 35., 9., 13., 4.,
10., 1., 4., 11., 24., 7., 32., 1., 14., 174., 2., 25., 218., 5., 12., 2., 1., 4., 98., 1., 21., 297., 53., 301., 51., 11., 0., 3., 9., 2., 42., 36., 238., 44., 7., 155., 15., 45., 8., 0., 1., 15., 8., 77., 14., 99., 23., 37., 51., 14., 4., 1., 15., 13., 47., 6., 45., 5., 35., 5., 13., 9., 2., 0., 0., 0., 16., 2., 13., 6., 32., 8., 12., 9., 3., 5., 2., 1., 4., 3., 6., 2., 8., 2., 10., 0., 0., 6., 140., 10., 1853., 89., 94., 197., 88., 115., 69., 17., 11., 23., 11., 0., 3., 5., 7., 3., 12., 10., 31., 16., 32., 10., 39., 7., 13., 5., 5., 15., 3., 4., 2., 2., 7., 4., 0., 2., 3., 14., 1., 0., 10., 2., 4., 0., 3., 3., 1., 35., 5., 8., 1., 15., 5., 16., 4., 8., 8., 7., 20., 3., 26., 7., 4., 10., 4., 23., 9., 10., 5.,
3., 1., 0., 6., 7., 2., 7., 0., 3., 26., 0., 10., 24., 2., 15., 2., 0., 6., 7., 1., 8., 17., 12., 24., 27., 4., 1., 2., 5., 0., 12., 2., 20., 15., 2., 12., 3., 16., 11., 1., 3., 0., 3., 10., 11., 26., 39., 13., 29., 9., 4., 1., 5., 2., 9., 4., 9., 9., 12., 24., 5., 21., 7., 2., 0., 0., 8., 1., 3., 1., 4., 4., 3., 5., 1., 5., 8., 3., 0., 2., 0., 0., 0., 3., 2., 7., 0., 3., 4., 2., 5., 0., 1., 2., 2., 6., 2., 0., 3., 0., 3., 0., 3., 3., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 1., 4., 11., 2., 6., 2., 3., 21., 1., 6., 24., 1., 11., 3., 1., 2., 21., 0., 4., 24., 12., 26., 34., 5., 2., 0., 2., 3., 9., 6., 20., 18., 1., 10., 7., 16., 9., 3., 0., 3., 3., 17., 15., 11., 42., 15., 32., 14., 5., 3., 6., 0., 4., 2., 9., 5., 8., 14., 10., 26., 7., 1., 3., 2., 6., 1., 1., 4., 2., 2., 4., 6., 1., 4., 3., 4., 1., 2., 1., 0., 7., 4., 2., 8., 1., 3., 1., 1., 6., 2., 2., 2., 0., 7., 2., 0., 2., 3., 1., 1., 1., 3., 3., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 1., 2., 6., 5., 6., 7., 1., 5., 13., 0., 11., 27., 1., 22., 4., 0., 3., 10., 3., 4., 25., 12., 20., 30., 2., 0., 3., 5., 3., 6., 8., 34., 11., 3., 19., 3., 8., 10., 2., 1., 6., 1., 13., 12., 16., 33., 14., 12., 6., 3., 0., 5., 3., 12., 2., 9., 7., 6., 19., 5., 22., 12., 5., 2., 1., 12., 2., 0., 0., 4., 1., 2., 2., 3., 3., 3., 0., 3., 3., 2., 0., 4., 1., 2., 6., 3., 3., 0., 4., 3., 0., 3., 0., 0., 10., 5., 0., 1., 1., 0., 1., 1., 2., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 3., 8., 4., 2., 5., 1., 8., 15., 2., 17., 24., 0., 14., 2., 2., 1., 22., 4., 3., 19., 12., 21., 28., 3., 1., 2., 4., 0., 7., 7., 25., 14., 0., 10., 3., 13., 9., 3., 2., 5., 2., 10., 9., 19., 48., 14., 25., 9., 3., 0., 4., 1., 9., 6., 7., 8., 3., 13., 5., 18., 8., 3., 1., 1., 9., 2., 1., 1., 6., 2., 5., 1., 5., 2., 2., 1., 1., 1., 4., 0., 3., 1., 0., 3., 2., 3., 5., 4., 4., 0., 2., 1., 1., 6., 1., 0., 1., 2., 5., 1., 3., 3., 2., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 3., 7., 5., 9., 0., 4., 34., 1., 15., 28., 0., 13., 2., 1., 3., 4., 0., 5., 28., 23., 29., 25., 6., 0., 1., 5., 2., 4., 6., 19., 22., 1., 18., 5., 13., 10., 0., 0., 3., 2., 11., 13., 23., 51., 10., 15., 6., 5., 1., 7., 1., 3., 2., 11., 5., 4., 18., 1., 22., 5., 3., 0., 3., 11., 0., 5., 6., 5., 5., 3., 3., 2., 2., 1., 0., 1., 0., 2., 0., 1., 2., 2., 2., 5., 7., 2., 0., 4., 0., 3., 1., 1., 6., 3., 0., 1., 2., 3., 1., 2., 1., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 3., 3., 2., 6., 2., 5., 2., 13., 29., 0., 14., 18., 1., 18., 3., 0., 3., 12., 2., 5., 30., 10., 23., 30., 7., 1., 2., 4., 3., 11., 6., 25., 13., 0., 16., 2., 15., 4., 1., 3., 3., 0., 14., 9., 25., 43., 8., 17., 8., 3., 1., 6., 1., 5., 0., 7., 9., 11., 15., 5., 21., 11., 1., 1., 0., 4., 0., 3., 1., 4., 4., 6., 5., 0., 4., 2., 3., 0., 4., 0., 0., 2., 1., 1., 5., 4., 3., 2., 1., 1., 2., 1., 1., 0., 6., 1., 0., 2., 0., 0., 1., 1., 1., 3., 2., 4., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 4., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 3., 7., 4., 2., 0., 7., 35., 0., 11., 13., 1., 11., 3., 0., 2., 23., 0., 4., 24., 4., 21., 28., 6., 0., 1., 2., 2., 11., 7., 27., 10., 4., 13., 5., 10., 13., 3., 1., 5., 2., 14., 13., 9., 45., 11., 27., 6., 3., 0., 3., 3., 10., 2., 6., 7., 8., 14., 6., 19., 9., 3., 1., 0., 5., 1., 4., 2., 6., 0., 4., 5., 3., 8., 2., 4., 2., 7., 0., 0., 1., 4., 2., 8., 2., 3., 1., 4., 3., 0., 1., 1., 3., 7., 2., 0., 3., 2., 0., 3., 0., 0., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 4., 4., 9., 4., 4., 2., 3., 26., 0., 10., 32., 0., 16., 2., 3., 2., 21., 4., 2., 18., 10., 30., 16., 11., 0., 0., 0., 3., 7., 7., 19., 17., 6., 15., 0., 12., 10., 2., 0., 4., 1., 16., 11., 21., 41., 9., 21., 7., 1., 1., 5., 4., 7., 5., 13., 9., 7., 15., 5., 24., 11., 5., 3., 3., 7., 2., 4., 2., 7., 2., 3., 6., 2., 6., 6., 3., 2., 0., 0., 0., 1., 1., 0., 3., 2., 7., 2., 4., 7., 1., 1., 1., 4., 7., 1., 0., 5., 3., 2., 3., 1., 1., 1., 3., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 5., 3., 1., 4., 1., 4., 20., 1., 14., 29., 0., 17., 3., 2., 3., 22., 1., 4., 22., 7., 16., 29., 7., 1., 0., 3., 3., 8., 6., 28., 24., 1., 14., 2., 14., 6., 2., 1., 3., 4., 8., 13., 14., 51., 7., 15., 10., 5., 3., 7., 2., 15., 3., 10., 4., 8., 10., 5., 9., 4., 3., 4., 1., 7., 0., 1., 2., 3., 3., 3., 6., 2., 5., 1., 3., 0., 5., 0., 0., 1., 1., 1., 5., 2., 5., 3., 8., 4., 0., 1., 1., 3., 5., 4., 0., 2., 1., 2., 2., 2., 2., 4., 4., 2., 0., 0., 0., 0., 3., 0., 0., 6., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 2., 1., 8., 21., 3., 32., 4., 10., 166., 2., 20., 207., 5., 15., 12., 3., 4., 93., 0., 16., 312., 37., 337., 37., 26., 0., 2., 8., 9., 48., 36., 233., 48., 11., 172., 23., 42., 10., 0., 3., 11., 13., 79., 16., 82., 18., 34., 35., 8., 2., 3., 27., 7., 36., 8., 49., 9., 31., 10., 8., 8., 1., 0., 2., 0., 23., 6., 13., 3., 33., 7., 7., 5., 3., 3., 0., 0., 6., 5., 16., 4., 9., 2., 10., 1., 0., 3., 132., 8., 1828., 99., 100., 234., 95., 98., 67., 18., 10., 25., 15., 2., 2., 5., 4., 5., 9., 13., 34., 24., 40., 20., 37., 8., 8., 3., 3., 5., 8., 4., 2., 2., 12., 2., 0., 1., 4., 17., 0., 0., 16., 6., 3., 0., 3., 3., 3., 30., 3., 17., 4., 11., 2., 12., 2., 3., 7., 5., 20., 6., 35., 4., 1., 8., 5., 37., 6., 11., 2.,
14., 2., 3., 7., 21., 4., 37., 0., 18., 165., 3., 31., 193., 5., 16., 12., 0., 5., 90., 6., 16., 258., 34., 311., 41., 16., 2., 1., 9., 1., 32., 41., 249., 48., 5., 178., 7., 32., 8., 0., 0., 12., 15., 68., 15., 78., 15., 40., 57., 9., 3., 0., 27., 3., 40., 7., 56., 8., 29., 6., 7., 6., 3., 0., 0., 0., 19., 3., 13., 2., 28., 3., 14., 5., 2., 5., 1., 0., 5., 1., 8., 0., 5., 2., 4., 1., 1., 5., 136., 5., 1874., 94., 99., 215., 87., 118., 71., 20., 13., 19., 13., 1., 2., 5., 6., 4., 10., 14., 35., 16., 46., 19., 30., 6., 14., 2., 10., 5., 4., 1., 4., 1., 16., 5., 0., 4., 8., 7., 3., 0., 12., 6., 2., 0., 5., 5., 3., 30., 4., 6., 1., 13., 3., 15., 1., 6., 2., 2., 25., 5., 37., 8., 5., 11., 6., 27., 9., 18., 7.,
15., 4., 2., 2., 25., 3., 31., 3., 17., 154., 6., 33., 204., 5., 18., 6., 1., 12., 101., 2., 21., 294., 44., 331., 41., 18., 1., 0., 10., 7., 50., 30., 234., 42., 9., 155., 15., 31., 3., 0., 2., 20., 10., 76., 21., 86., 13., 37., 45., 9., 3., 1., 19., 10., 36., 9., 47., 12., 35., 7., 7., 9., 2., 0., 1., 0., 25., 8., 11., 7., 24., 6., 11., 7., 4., 1., 1., 1., 3., 3., 11., 3., 4., 5., 4., 0., 0., 4., 140., 9., 1756., 74., 86., 201., 102., 103., 78., 18., 10., 32., 6., 3., 3., 6., 4., 2., 5., 7., 32., 27., 27., 24., 39., 9., 8., 5., 9., 4., 1., 1., 0., 3., 6., 1., 0., 6., 5., 13., 4., 0., 16., 3., 0., 0., 5., 8., 2., 34., 3., 10., 2., 15., 1., 20., 7., 3., 3., 2., 25., 1., 38., 7., 3., 8., 9., 27., 7., 20., 3.,
17., 2., 1., 12., 37., 3., 27., 1., 16., 160., 2., 19., 212., 11., 20., 9., 0., 9., 87., 1., 10., 315., 43., 316., 40., 18., 1., 2., 11., 10., 45., 41., 258., 43., 10., 180., 10., 47., 10., 0., 0., 22., 8., 61., 13., 93., 17., 31., 35., 10., 4., 0., 18., 5., 38., 10., 54., 10., 30., 8., 12., 5., 3., 0., 2., 0., 22., 6., 12., 3., 37., 7., 5., 4., 3., 1., 0., 0., 5., 1., 9., 4., 7., 1., 13., 1., 0., 2., 151., 11., 1908., 74., 104., 235., 93., 107., 70., 25., 11., 15., 9., 0., 0., 3., 6., 3., 12., 13., 40., 21., 24., 13., 54., 10., 8., 3., 5., 6., 6., 2., 2., 4., 10., 3., 0., 3., 10., 9., 2., 0., 15., 4., 0., 0., 4., 6., 4., 27., 3., 21., 4., 16., 2., 25., 2., 1., 5., 7., 27., 4., 35., 11., 6., 5., 7., 26., 5., 9., 4.,
13., 2., 3., 10., 35., 8., 34., 1., 17., 172., 2., 39., 184., 6., 22., 7., 0., 2., 88., 0., 16., 313., 51., 321., 45., 23., 2., 2., 5., 7., 48., 40., 248., 31., 6., 161., 23., 52., 8., 0., 3., 9., 5., 79., 18., 93., 15., 46., 41., 15., 1., 0., 27., 8., 33., 11., 53., 6., 23., 7., 11., 9., 2., 0., 2., 0., 22., 6., 17., 3., 24., 4., 10., 4., 1., 5., 0., 0., 7., 1., 12., 4., 11., 3., 6., 0., 0., 7., 137., 3., 1941., 81., 97., 218., 79., 116., 75., 11., 14., 12., 15., 1., 4., 5., 5., 3., 10., 9., 39., 19., 39., 16., 36., 8., 15., 5., 5., 11., 6., 0., 1., 3., 9., 7., 0., 3., 6., 16., 2., 0., 14., 5., 1., 0., 3., 4., 1., 37., 2., 8., 1., 8., 3., 19., 3., 3., 4., 5., 26., 7., 33., 7., 8., 3., 1., 32., 9., 14., 3.,
10., 5., 2., 13., 24., 4., 28., 3., 22., 173., 6., 29., 210., 6., 14., 7., 2., 7., 102., 2., 19., 327., 50., 347., 46., 18., 2., 3., 6., 7., 46., 33., 234., 40., 13., 156., 12., 28., 6., 0., 3., 20., 8., 77., 23., 90., 18., 23., 37., 17., 3., 1., 25., 7., 33., 9., 40., 8., 38., 6., 13., 6., 1., 0., 1., 0., 31., 8., 13., 2., 31., 5., 11., 6., 2., 4., 1., 1., 2., 2., 14., 1., 9., 1., 4., 0., 1., 3., 137., 8., 1829., 81., 104., 217., 90., 110., 74., 19., 6., 12., 20., 1., 4., 6., 6., 2., 12., 6., 45., 18., 32., 17., 49., 4., 11., 1., 3., 11., 8., 3., 3., 2., 8., 3., 0., 3., 5., 16., 3., 0., 8., 4., 3., 0., 3., 1., 0., 34., 2., 14., 2., 11., 1., 20., 1., 2., 2., 3., 28., 6., 23., 6., 9., 6., 4., 37., 8., 10., 5.,
10., 2., 3., 8., 24., 8., 42., 2., 10., 160., 6., 30., 217., 1., 13., 6., 1., 1., 93., 1., 16., 299., 40., 311., 46., 17., 1., 4., 11., 11., 41., 32., 247., 36., 5., 141., 15., 48., 9., 0., 0., 17., 12., 78., 15., 82., 7., 27., 48., 11., 3., 0., 25., 6., 41., 9., 55., 9., 27., 9., 2., 4., 2., 0., 1., 0., 28., 10., 21., 5., 29., 6., 6., 8., 2., 1., 3., 1., 1., 1., 7., 2., 4., 0., 9., 2., 1., 2., 134., 7., 1916., 85., 113., 227., 114., 119., 93., 13., 13., 15., 13., 1., 2., 5., 6., 0., 14., 15., 36., 12., 22., 20., 36., 5., 10., 5., 4., 6., 2., 3., 3., 2., 10., 2., 0., 4., 4., 19., 0., 0., 11., 2., 2., 0., 4., 4., 3., 32., 1., 13., 4., 9., 1., 15., 4., 3., 2., 3., 20., 5., 38., 4., 3., 8., 5., 37., 7., 9., 6.,
5., 1., 2., 5., 29., 4., 38., 0., 16., 163., 6., 28., 209., 4., 11., 4., 1., 8., 84., 3., 15., 277., 45., 312., 42., 15., 0., 3., 4., 7., 46., 33., 233., 39., 3., 167., 15., 38., 4., 0., 1., 15., 7., 72., 16., 90., 15., 37., 45., 14., 1., 1., 23., 6., 39., 12., 50., 7., 38., 7., 3., 12., 2., 0., 1., 0., 25., 6., 12., 4., 30., 2., 10., 4., 4., 3., 3., 2., 4., 1., 11., 1., 13., 3., 9., 3., 1., 4., 138., 9., 1855., 105., 126., 228., 94., 136., 62., 14., 21., 23., 6., 0., 4., 6., 4., 11., 5., 9., 35., 21., 32., 16., 44., 6., 10., 2., 4., 1., 2., 1., 0., 5., 7., 4., 0., 4., 4., 15., 0., 0., 4., 7., 7., 0., 4., 1., 2., 40., 2., 7., 1., 13., 2., 19., 4., 2., 4., 2., 27., 5., 46., 10., 4., 6., 6., 31., 10., 8., 6.,
14., 1., 5., 6., 25., 2., 20., 1., 14., 168., 2., 20., 186., 2., 22., 4., 2., 5., 107., 2., 11., 257., 43., 324., 52., 18., 0., 1., 6., 6., 51., 42., 206., 48., 7., 172., 13., 49., 5., 0., 1., 13., 9., 77., 18., 85., 17., 29., 48., 9., 6., 0., 16., 5., 35., 8., 53., 7., 29., 6., 9., 3., 3., 0., 1., 0., 22., 2., 15., 5., 21., 3., 15., 4., 1., 1., 0., 1., 1., 0., 9., 7., 6., 0., 11., 1., 2., 3., 142., 5., 1757., 75., 103., 190., 81., 110., 68., 13., 10., 19., 15., 0., 1., 10., 6., 7., 8., 12., 31., 15., 32., 27., 37., 6., 9., 5., 3., 5., 1., 1., 3., 5., 5., 3., 0., 6., 6., 15., 5., 0., 9., 4., 5., 0., 7., 2., 2., 26., 1., 11., 3., 11., 3., 26., 4., 0., 4., 5., 20., 4., 33., 4., 5., 11., 4., 32., 2., 10., 4.,
5., 1., 4., 6., 22., 9., 32., 2., 21., 170., 7., 26., 212., 5., 18., 6., 2., 5., 83., 2., 19., 293., 42., 339., 36., 18., 0., 1., 8., 5., 47., 38., 213., 44., 6., 140., 17., 28., 3., 0., 2., 16., 8., 85., 24., 90., 14., 38., 52., 10., 3., 1., 30., 7., 31., 11., 42., 10., 25., 8., 12., 10., 1., 0., 2., 0., 28., 3., 8., 2., 29., 4., 14., 4., 4., 6., 0., 0., 4., 1., 4., 3., 10., 5., 3., 1., 0., 3., 139., 6., 1879., 80., 94., 218., 108., 133., 71., 12., 12., 18., 12., 1., 2., 4., 3., 3., 7., 6., 31., 16., 38., 11., 42., 8., 9., 4., 4., 6., 3., 1., 4., 1., 7., 3., 0., 5., 3., 17., 4., 0., 6., 5., 3., 0., 8., 7., 0., 47., 2., 16., 4., 12., 5., 19., 3., 2., 2., 4., 25., 5., 43., 10., 6., 8., 2., 25., 3., 12., 3.,
8., 3., 3., 10., 24., 8., 33., 2., 14., 171., 2., 36., 201., 4., 16., 6., 0., 4., 71., 1., 13., 272., 47., 328., 47., 17., 0., 3., 8., 3., 39., 35., 205., 33., 8., 149., 17., 36., 9., 0., 3., 18., 6., 88., 21., 71., 17., 25., 47., 24., 3., 0., 34., 15., 47., 10., 52., 10., 29., 6., 11., 6., 4., 0., 0., 0., 19., 7., 8., 4., 26., 3., 13., 4., 3., 2., 1., 0., 0., 3., 10., 3., 6., 2., 5., 1., 2., 1., 137., 7., 1922., 108., 97., 228., 104., 123., 59., 19., 11., 16., 10., 0., 2., 9., 4., 5., 3., 7., 34., 11., 41., 20., 32., 4., 13., 2., 9., 8., 6., 3., 4., 1., 7., 4., 0., 7., 3., 11., 1., 0., 14., 5., 2., 0., 6., 3., 2., 37., 2., 11., 4., 7., 3., 25., 2., 6., 6., 3., 17., 6., 35., 5., 6., 3., 5., 26., 10., 9., 2.,
21., 0., 2., 13., 27., 5., 43., 0., 22., 154., 4., 25., 187., 7., 11., 5., 0., 4., 98., 1., 11., 251., 45., 331., 52., 14., 2., 5., 10., 5., 55., 36., 232., 34., 5., 183., 11., 35., 5., 0., 2., 15., 7., 66., 18., 90., 23., 29., 47., 10., 8., 1., 36., 9., 37., 18., 44., 10., 27., 8., 6., 5., 2., 0., 1., 0., 25., 4., 12., 4., 41., 8., 11., 3., 2., 6., 1., 3., 5., 1., 10., 4., 12., 4., 10., 1., 1., 5., 156., 8., 1855., 112., 88., 221., 100., 97., 75., 17., 11., 21., 7., 0., 0., 4., 2., 1., 9., 8., 38., 14., 40., 16., 32., 12., 12., 2., 4., 7., 5., 1., 3., 3., 6., 4., 0., 3., 5., 17., 2., 0., 11., 4., 2., 0., 12., 3., 0., 32., 4., 13., 2., 9., 4., 19., 2., 6., 2., 5., 25., 2., 32., 3., 5., 7., 4., 28., 7., 14., 1.,
8., 3., 2., 12., 29., 6., 31., 1., 13., 149., 3., 25., 220., 7., 16., 12., 0., 6., 89., 3., 15., 296., 41., 380., 41., 20., 1., 3., 6., 3., 33., 39., 254., 36., 12., 128., 10., 38., 11., 0., 3., 21., 8., 69., 26., 61., 7., 38., 55., 13., 3., 1., 26., 9., 43., 7., 57., 17., 30., 7., 7., 9., 0., 0., 0., 0., 23., 5., 6., 3., 34., 7., 15., 3., 4., 1., 3., 0., 2., 2., 8., 4., 7., 1., 9., 0., 1., 2., 137., 12., 1921., 98., 93., 238., 101., 96., 53., 11., 12., 11., 15., 3., 3., 6., 4., 4., 7., 9., 34., 15., 34., 8., 41., 6., 12., 11., 4., 4., 6., 0., 1., 5., 9., 3., 0., 2., 7., 12., 2., 0., 20., 7., 2., 0., 3., 4., 3., 29., 3., 23., 7., 12., 6., 17., 5., 3., 1., 6., 20., 7., 38., 10., 8., 5., 3., 30., 8., 12., 7.,
8., 2., 5., 6., 20., 4., 32., 1., 16., 150., 4., 34., 224., 6., 17., 5., 2., 7., 89., 2., 14., 284., 50., 342., 45., 15., 0., 1., 5., 6., 45., 40., 213., 51., 14., 150., 12., 36., 2., 0., 2., 16., 6., 65., 18., 100., 6., 36., 47., 14., 4., 1., 25., 2., 40., 11., 53., 3., 31., 3., 10., 5., 3., 0., 0., 0., 37., 3., 13., 1., 35., 3., 19., 9., 0., 6., 1., 2., 2., 3., 10., 1., 10., 2., 6., 1., 1., 4., 146., 6., 1894., 91., 92., 227., 89., 112., 63., 13., 12., 23., 14., 1., 5., 5., 4., 3., 13., 7., 44., 11., 40., 18., 29., 7., 9., 3., 8., 8., 3., 3., 3., 4., 8., 7., 0., 4., 6., 13., 3., 0., 9., 6., 2., 0., 1., 3., 2., 21., 4., 15., 1., 11., 3., 15., 2., 5., 1., 2., 31., 4., 34., 9., 6., 8., 10., 21., 6., 10., 5.,
21., 4., 1., 7., 19., 11., 24., 1., 15., 159., 3., 23., 212., 1., 20., 8., 1., 7., 83., 3., 20., 290., 58., 295., 42., 18., 0., 2., 3., 3., 48., 28., 221., 42., 7., 160., 4., 44., 6., 0., 2., 18., 5., 70., 21., 95., 21., 31., 49., 14., 5., 0., 18., 7., 32., 8., 65., 15., 41., 8., 13., 10., 1., 0., 0., 0., 17., 3., 17., 8., 38., 6., 9., 6., 0., 4., 1., 0., 1., 2., 10., 4., 6., 5., 12., 0., 0., 2., 142., 11., 1875., 109., 105., 217., 100., 108., 75., 13., 5., 19., 12., 1., 3., 5., 5., 1., 14., 6., 33., 20., 30., 18., 39., 12., 11., 2., 7., 9., 2., 2., 3., 3., 6., 2., 0., 4., 6., 18., 0., 0., 12., 1., 0., 0., 6., 2., 2., 29., 5., 8., 3., 19., 3., 25., 2., 3., 2., 6., 23., 3., 33., 6., 2., 10., 7., 38., 3., 12., 1.,
11., 2., 1., 6., 23., 7., 36., 1., 12., 148., 5., 23., 214., 8., 15., 6., 2., 4., 95., 2., 16., 285., 38., 319., 45., 23., 2., 2., 3., 3., 52., 37., 246., 37., 9., 168., 13., 38., 6., 0., 1., 20., 8., 72., 14., 76., 14., 30., 45., 17., 4., 3., 29., 5., 41., 14., 51., 9., 29., 9., 10., 10., 3., 0., 1., 0., 28., 7., 22., 4., 38., 5., 21., 7., 4., 4., 1., 1., 8., 3., 11., 1., 9., 6., 4., 0., 1., 2., 147., 9., 1937., 82., 92., 195., 81., 119., 58., 13., 10., 22., 14., 1., 1., 7., 4., 2., 14., 7., 36., 29., 29., 14., 37., 7., 6., 3., 2., 7., 5., 5., 6., 2., 9., 2., 0., 2., 3., 15., 2., 0., 6., 3., 2., 0., 5., 4., 6., 32., 6., 10., 3., 9., 3., 19., 5., 4., 0., 6., 25., 7., 39., 5., 4., 5., 3., 22., 6., 10., 6.,
14., 5., 1., 1., 26., 3., 28., 0., 17., 173., 2., 17., 186., 7., 21., 5., 0., 5., 100., 1., 10., 270., 54., 346., 41., 17., 0., 2., 11., 5., 41., 31., 227., 37., 8., 174., 15., 40., 8., 0., 0., 18., 6., 71., 22., 93., 20., 43., 35., 14., 2., 2., 19., 7., 32., 13., 67., 12., 42., 7., 9., 9., 1., 0., 3., 0., 17., 1., 10., 2., 21., 7., 13., 11., 1., 2., 2., 2., 3., 3., 20., 3., 7., 3., 8., 0., 0., 2., 144., 6., 1892., 93., 92., 229., 103., 129., 57., 13., 10., 27., 19., 0., 1., 5., 4., 6., 11., 14., 40., 19., 30., 18., 33., 10., 9., 7., 6., 6., 2., 2., 1., 1., 6., 5., 0., 3., 7., 17., 4., 0., 14., 1., 5., 0., 8., 1., 1., 48., 3., 9., 2., 17., 1., 19., 5., 3., 7., 9., 17., 9., 22., 5., 2., 5., 7., 26., 5., 15., 5.,
17., 1., 3., 10., 23., 7., 30., 1., 14., 149., 3., 27., 215., 5., 18., 7., 1., 6., 88., 0., 20., 270., 42., 311., 40., 17., 0., 2., 11., 1., 37., 30., 255., 41., 10., 170., 12., 43., 5., 0., 5., 15., 12., 88., 21., 80., 16., 28., 34., 13., 3., 0., 27., 6., 48., 13., 45., 6., 17., 10., 11., 5., 3., 0., 0., 0., 21., 5., 4., 2., 31., 4., 20., 8., 3., 3., 0., 0., 4., 1., 12., 4., 7., 2., 5., 2., 1., 8., 143., 9., 1877., 84., 102., 231., 112., 108., 79., 16., 4., 16., 11., 1., 5., 6., 6., 6., 10., 9., 41., 19., 32., 16., 39., 10., 12., 1., 4., 9., 10., 3., 0., 3., 11., 3., 0., 6., 4., 21., 1., 0., 11., 3., 4., 0., 5., 3., 3., 27., 4., 10., 1., 7., 1., 21., 1., 3., 4., 8., 25., 6., 36., 9., 6., 7., 4., 23., 4., 12., 4.,
12., 3., 3., 6., 34., 3., 26., 0., 18., 158., 1., 20., 199., 2., 23., 7., 1., 6., 71., 3., 9., 265., 49., 294., 41., 18., 0., 1., 10., 3., 51., 33., 236., 40., 8., 164., 13., 31., 11., 0., 2., 21., 3., 88., 13., 94., 17., 26., 50., 9., 2., 0., 29., 9., 37., 14., 48., 10., 31., 8., 10., 6., 3., 0., 1., 0., 23., 8., 21., 4., 17., 5., 9., 3., 0., 3., 0., 0., 2., 3., 10., 5., 4., 2., 8., 1., 0., 6., 124., 9., 1952., 86., 99., 220., 80., 103., 66., 19., 10., 16., 14., 1., 4., 4., 9., 2., 7., 11., 45., 17., 32., 13., 35., 5., 9., 5., 6., 5., 5., 2., 3., 4., 9., 3., 0., 1., 4., 20., 2., 0., 10., 5., 5., 0., 6., 0., 1., 27., 2., 9., 3., 17., 2., 26., 6., 2., 4., 4., 30., 6., 27., 5., 8., 3., 7., 34., 8., 5., 5.,
14., 3., 6., 8., 29., 4., 34., 1., 21., 150., 3., 33., 201., 3., 11., 4., 1., 5., 84., 3., 15., 270., 47., 321., 52., 19., 3., 3., 7., 1., 48., 34., 197., 42., 7., 155., 15., 36., 6., 0., 4., 11., 10., 80., 17., 78., 13., 34., 48., 14., 2., 0., 31., 4., 31., 9., 52., 10., 33., 3., 10., 10., 3., 0., 1., 0., 33., 5., 16., 1., 31., 7., 7., 8., 2., 6., 2., 0., 4., 1., 14., 0., 7., 3., 9., 1., 1., 7., 136., 12., 1918., 94., 101., 220., 92., 111., 82., 21., 12., 18., 9., 0., 3., 6., 5., 5., 10., 5., 30., 14., 43., 13., 44., 10., 10., 3., 2., 5., 4., 1., 6., 4., 8., 4., 0., 4., 6., 18., 1., 0., 8., 4., 1., 0., 1., 2., 3., 35., 0., 4., 2., 11., 1., 17., 1., 2., 2., 8., 19., 6., 33., 3., 6., 8., 7., 35., 9., 17., 3.,
10., 0., 0., 3., 13., 5., 5., 1., 6., 8., 2., 9., 17., 3., 15., 5., 2., 1., 26., 1., 3., 34., 10., 12., 25., 4., 3., 0., 3., 2., 6., 3., 29., 16., 4., 25., 5., 15., 11., 4., 0., 3., 3., 9., 7., 15., 52., 18., 22., 12., 5., 1., 4., 2., 11., 5., 10., 8., 9., 10., 5., 31., 10., 2., 0., 2., 4., 1., 5., 2., 3., 4., 3., 3., 4., 4., 3., 1., 3., 1., 1., 0., 0., 5., 1., 5., 1., 8., 1., 1., 8., 2., 0., 3., 1., 7., 1., 0., 0., 3., 5., 4., 1., 1., 0., 0., 4., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 5., 3., 12., 1., 2., 1., 1., 21., 1., 15., 21., 1., 20., 5., 3., 2., 19., 0., 3., 20., 12., 26., 31., 4., 0., 2., 4., 1., 9., 7., 28., 15., 1., 12., 1., 11., 6., 1., 0., 3., 2., 10., 12., 19., 43., 13., 19., 7., 5., 1., 6., 1., 5., 2., 6., 7., 5., 17., 7., 17., 7., 2., 0., 3., 9., 1., 2., 2., 2., 2., 1., 4., 3., 5., 9., 2., 0., 3., 6., 0., 1., 1., 2., 10., 2., 3., 3., 1., 3., 0., 2., 0., 4., 8., 2., 0., 3., 0., 1., 2., 3., 2., 2., 0., 3., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 4., 3., 7., 3., 7., 2., 4., 19., 0., 4., 17., 2., 14., 1., 0., 2., 16., 2., 3., 24., 14., 22., 22., 7., 3., 1., 7., 1., 5., 8., 22., 17., 6., 20., 5., 11., 9., 1., 1., 7., 0., 12., 13., 24., 47., 12., 17., 11., 3., 2., 8., 3., 0., 5., 12., 6., 8., 15., 3., 13., 5., 3., 1., 1., 6., 2., 4., 2., 6., 2., 6., 2., 1., 3., 7., 3., 0., 2., 3., 0., 3., 2., 0., 6., 2., 2., 2., 1., 5., 2., 3., 0., 2., 8., 0., 0., 3., 2., 2., 1., 2., 3., 2., 2., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 4., 8., 5., 3., 2., 5., 14., 2., 11., 10., 2., 17., 3., 3., 1., 18., 0., 6., 30., 9., 27., 27., 8., 0., 0., 6., 2., 7., 5., 21., 6., 3., 20., 3., 15., 11., 2., 0., 9., 3., 16., 9., 30., 48., 10., 23., 10., 8., 3., 6., 3., 16., 5., 7., 1., 11., 18., 4., 26., 6., 6., 4., 0., 10., 1., 3., 3., 10., 1., 4., 6., 2., 6., 2., 1., 0., 3., 5., 0., 4., 4., 1., 10., 4., 3., 4., 1., 6., 0., 1., 0., 1., 6., 1., 0., 1., 0., 2., 0., 5., 4., 1., 1., 6., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 2., 3., 5., 10., 4., 7., 1., 5., 16., 2., 17., 18., 0., 17., 3., 0., 5., 20., 2., 4., 22., 11., 24., 25., 3., 0., 0., 2., 2., 3., 9., 14., 19., 3., 25., 5., 15., 8., 4., 1., 7., 3., 12., 14., 11., 62., 8., 25., 6., 4., 2., 2., 5., 9., 6., 4., 4., 3., 12., 4., 23., 14., 5., 0., 2., 4., 2., 1., 4., 3., 5., 5., 7., 4., 4., 3., 3., 1., 2., 3., 0., 1., 3., 1., 3., 1., 3., 2., 1., 4., 2., 2., 0., 4., 9., 0., 0., 2., 4., 2., 3., 1., 1., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 1., 4., 3., 4., 9., 2., 6., 13., 0., 11., 21., 2., 17., 2., 0., 3., 15., 1., 5., 22., 14., 23., 24., 5., 0., 1., 7., 2., 10., 15., 17., 20., 3., 12., 0., 21., 8., 7., 0., 2., 2., 20., 13., 24., 47., 9., 24., 7., 5., 1., 3., 0., 10., 6., 6., 4., 10., 12., 9., 26., 10., 1., 1., 1., 4., 2., 0., 1., 6., 2., 6., 4., 4., 4., 3., 2., 1., 2., 0., 0., 1., 1., 2., 2., 1., 2., 2., 0., 10., 3., 1., 1., 2., 3., 4., 0., 3., 1., 3., 1., 0., 3., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 4., 0., 5., 4., 3., 0., 6., 22., 0., 12., 22., 0., 19., 1., 0., 0., 25., 1., 6., 17., 18., 20., 21., 7., 3., 0., 5., 2., 10., 5., 21., 24., 1., 12., 4., 11., 5., 2., 0., 1., 1., 15., 15., 21., 50., 16., 26., 13., 1., 1., 3., 3., 3., 3., 11., 6., 7., 25., 8., 12., 9., 3., 0., 4., 9., 1., 2., 2., 5., 3., 7., 8., 0., 3., 3., 1., 0., 3., 4., 0., 3., 1., 2., 5., 1., 2., 2., 2., 4., 2., 4., 2., 3., 6., 0., 0., 2., 4., 4., 2., 3., 4., 2., 1., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 2., 3., 8., 3., 8., 1., 8., 26., 1., 14., 16., 1., 11., 3., 1., 0., 22., 1., 1., 17., 9., 26., 24., 5., 0., 0., 7., 2., 10., 6., 24., 15., 0., 15., 5., 15., 15., 0., 0., 3., 1., 18., 9., 24., 41., 14., 17., 7., 4., 1., 6., 2., 3., 3., 10., 7., 5., 18., 3., 24., 10., 5., 0., 2., 4., 0., 4., 2., 5., 2., 7., 3., 3., 6., 2., 3., 3., 2., 2., 0., 5., 2., 5., 3., 2., 4., 2., 2., 4., 0., 1., 2., 4., 4., 5., 0., 2., 1., 2., 1., 1., 1., 1., 1., 1., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 3., 8., 11., 2., 7., 0., 12., 21., 2., 13., 18., 1., 14., 3., 2., 3., 19., 3., 3., 25., 19., 28., 27., 6., 2., 0., 1., 3., 11., 10., 26., 15., 2., 14., 4., 15., 10., 2., 2., 5., 1., 11., 12., 11., 45., 15., 21., 13., 5., 1., 4., 8., 4., 4., 8., 5., 8., 11., 3., 16., 12., 1., 4., 4., 5., 0., 1., 1., 4., 2., 3., 5., 0., 5., 3., 4., 1., 3., 1., 0., 1., 1., 0., 4., 2., 2., 4., 2., 2., 1., 3., 1., 1., 6., 5., 0., 1., 2., 5., 3., 2., 2., 2., 2., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 3., 6., 11., 4., 4., 1., 1., 20., 0., 14., 22., 1., 18., 4., 0., 1., 10., 2., 5., 13., 17., 37., 26., 7., 2., 2., 3., 1., 11., 6., 30., 22., 5., 16., 5., 16., 10., 6., 2., 3., 2., 9., 13., 25., 51., 14., 33., 12., 4., 1., 5., 1., 5., 5., 11., 9., 4., 12., 4., 26., 2., 4., 1., 1., 7., 1., 1., 3., 11., 5., 2., 3., 5., 3., 0., 4., 0., 1., 3., 0., 2., 2., 1., 3., 2., 3., 0., 3., 3., 2., 2., 0., 4., 8., 2., 0., 4., 2., 1., 1., 1., 1., 0., 3., 1., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 4., 11., 3., 3., 1., 6., 18., 3., 15., 27., 1., 15., 1., 1., 0., 25., 2., 4., 29., 9., 19., 19., 5., 2., 0., 2., 1., 5., 9., 32., 20., 4., 16., 5., 10., 5., 0., 1., 5., 1., 13., 12., 12., 42., 11., 31., 9., 6., 2., 1., 2., 7., 5., 8., 2., 6., 18., 9., 23., 13., 0., 0., 1., 8., 2., 4., 1., 4., 1., 2., 3., 0., 5., 2., 1., 0., 1., 7., 0., 0., 0., 2., 2., 1., 2., 3., 0., 4., 0., 7., 0., 3., 5., 1., 0., 3., 1., 3., 1., 3., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 4., 2., 5., 2., 9., 1., 6., 30., 0., 17., 32., 1., 12., 4., 1., 2., 12., 2., 6., 32., 15., 21., 29., 11., 0., 0., 3., 0., 7., 10., 33., 19., 7., 13., 3., 15., 7., 3., 1., 4., 0., 12., 6., 21., 44., 10., 33., 8., 6., 0., 4., 0., 9., 4., 11., 3., 7., 11., 5., 15., 9., 1., 0., 2., 5., 2., 1., 3., 4., 2., 6., 4., 2., 4., 1., 1., 1., 0., 3., 0., 3., 2., 2., 8., 4., 7., 5., 2., 3., 1., 2., 1., 5., 9., 6., 0., 4., 1., 2., 2., 3., 5., 0., 2., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
18., 3., 4., 8., 33., 9., 40., 1., 18., 172., 4., 25., 202., 7., 15., 5., 1., 4., 79., 2., 15., 306., 50., 350., 52., 19., 1., 3., 6., 4., 36., 25., 214., 48., 7., 150., 15., 29., 5., 0., 1., 13., 15., 82., 17., 95., 12., 34., 35., 7., 2., 0., 29., 3., 29., 11., 50., 13., 16., 4., 14., 11., 3., 0., 2., 0., 19., 6., 8., 6., 19., 8., 22., 3., 2., 4., 0., 3., 2., 3., 8., 5., 13., 4., 10., 0., 0., 4., 136., 5., 1896., 86., 83., 236., 91., 111., 90., 14., 16., 14., 21., 3., 2., 4., 4., 4., 8., 6., 39., 12., 43., 16., 46., 5., 12., 4., 7., 6., 6., 4., 7., 1., 3., 6., 0., 2., 4., 12., 3., 0., 8., 7., 1., 0., 3., 2., 2., 25., 3., 11., 7., 20., 2., 16., 7., 2., 3., 1., 32., 6., 32., 3., 4., 4., 3., 37., 4., 12., 6.,
18., 3., 2., 10., 24., 9., 29., 2., 13., 155., 3., 30., 205., 6., 18., 7., 1., 6., 87., 2., 18., 257., 54., 319., 39., 17., 0., 1., 3., 3., 41., 28., 194., 42., 9., 174., 15., 45., 3., 0., 0., 14., 8., 85., 17., 91., 16., 41., 49., 10., 5., 2., 32., 5., 40., 4., 41., 8., 32., 4., 11., 9., 4., 0., 1., 0., 27., 4., 11., 1., 29., 7., 8., 3., 3., 3., 0., 1., 1., 3., 17., 4., 12., 3., 3., 1., 1., 4., 130., 6., 1880., 85., 86., 222., 103., 116., 65., 15., 19., 17., 13., 2., 3., 8., 0., 5., 8., 8., 29., 27., 28., 11., 42., 3., 14., 5., 3., 7., 1., 3., 6., 3., 8., 2., 0., 2., 4., 18., 4., 0., 13., 3., 4., 0., 5., 5., 3., 28., 1., 13., 9., 12., 8., 20., 1., 4., 4., 3., 25., 5., 33., 4., 3., 10., 5., 42., 11., 14., 3.,
8., 3., 4., 9., 24., 4., 37., 0., 21., 179., 3., 34., 240., 7., 17., 5., 0., 4., 88., 4., 8., 289., 48., 370., 37., 17., 2., 3., 6., 6., 51., 24., 206., 37., 9., 163., 13., 40., 5., 0., 4., 15., 6., 88., 17., 109., 13., 28., 45., 13., 2., 1., 21., 6., 33., 5., 53., 7., 38., 6., 12., 12., 2., 0., 0., 0., 21., 3., 18., 1., 30., 5., 15., 6., 4., 1., 2., 0., 2., 2., 9., 3., 15., 2., 12., 3., 2., 2., 144., 5., 1875., 98., 94., 224., 103., 90., 80., 16., 11., 18., 14., 2., 2., 7., 4., 4., 7., 10., 38., 19., 34., 25., 43., 6., 12., 4., 7., 9., 5., 0., 3., 3., 8., 5., 0., 4., 5., 16., 3., 0., 11., 2., 6., 0., 2., 1., 3., 31., 0., 13., 3., 16., 2., 14., 3., 2., 0., 5., 20., 8., 22., 5., 3., 12., 10., 36., 6., 14., 8.,
10., 5., 4., 9., 25., 6., 26., 1., 14., 161., 2., 20., 203., 7., 15., 7., 2., 5., 85., 5., 20., 330., 44., 351., 42., 23., 0., 2., 9., 6., 36., 33., 232., 35., 7., 142., 18., 48., 9., 0., 2., 15., 8., 88., 13., 84., 14., 33., 42., 15., 2., 1., 24., 7., 49., 14., 49., 9., 39., 8., 11., 7., 2., 0., 1., 0., 25., 5., 17., 1., 31., 10., 16., 5., 5., 3., 1., 1., 1., 1., 11., 2., 7., 2., 11., 2., 3., 2., 141., 8., 1924., 87., 89., 217., 93., 129., 65., 15., 13., 13., 8., 1., 5., 9., 4., 5., 6., 6., 35., 18., 34., 18., 38., 6., 11., 8., 8., 8., 9., 0., 4., 1., 8., 4., 0., 3., 3., 15., 3., 0., 6., 4., 4., 0., 4., 2., 0., 28., 2., 9., 4., 14., 3., 24., 2., 4., 4., 2., 23., 3., 35., 8., 11., 8., 3., 34., 5., 10., 8.,
22., 1., 2., 7., 17., 4., 36., 0., 14., 167., 4., 24., 207., 6., 17., 11., 3., 6., 97., 3., 12., 264., 54., 352., 37., 17., 0., 1., 11., 7., 50., 45., 209., 31., 7., 136., 15., 35., 3., 0., 1., 19., 8., 73., 21., 89., 13., 43., 38., 21., 2., 0., 25., 4., 34., 8., 48., 8., 33., 9., 3., 9., 1., 0., 0., 0., 29., 2., 11., 3., 29., 3., 9., 6., 2., 2., 0., 0., 7., 2., 8., 1., 6., 2., 11., 0., 1., 5., 162., 13., 1917., 107., 116., 201., 89., 107., 58., 23., 12., 17., 16., 0., 3., 4., 5., 0., 8., 9., 41., 20., 32., 21., 42., 2., 11., 3., 8., 10., 5., 4., 3., 2., 8., 3., 0., 1., 0., 11., 2., 0., 11., 1., 0., 0., 6., 2., 2., 34., 0., 10., 7., 7., 2., 16., 0., 3., 2., 2., 33., 4., 35., 8., 9., 11., 3., 25., 11., 7., 6.,
21., 0., 4., 9., 25., 4., 29., 2., 18., 150., 3., 29., 181., 4., 8., 4., 0., 5., 73., 1., 20., 313., 54., 303., 59., 20., 1., 4., 9., 9., 40., 27., 230., 47., 5., 152., 16., 47., 8., 0., 4., 22., 7., 99., 18., 70., 9., 35., 61., 12., 2., 3., 24., 4., 42., 6., 55., 12., 39., 4., 12., 5., 1., 0., 0., 0., 19., 2., 15., 1., 27., 3., 9., 4., 2., 0., 1., 0., 4., 4., 7., 2., 7., 3., 11., 0., 2., 5., 141., 10., 1832., 92., 101., 213., 99., 120., 74., 13., 15., 13., 12., 1., 3., 5., 4., 4., 8., 9., 46., 12., 36., 15., 37., 9., 11., 6., 5., 9., 2., 5., 3., 4., 13., 2., 0., 4., 3., 15., 1., 0., 7., 5., 3., 0., 5., 4., 1., 35., 3., 13., 1., 16., 2., 15., 2., 1., 3., 1., 31., 4., 34., 8., 4., 9., 7., 32., 6., 16., 6.,
18., 4., 1., 5., 35., 7., 20., 1., 18., 129., 0., 24., 213., 4., 16., 6., 0., 6., 104., 4., 16., 315., 38., 343., 41., 24., 2., 1., 5., 6., 45., 27., 207., 41., 6., 155., 18., 42., 5., 0., 1., 18., 5., 78., 9., 90., 8., 35., 60., 18., 0., 2., 23., 4., 35., 5., 50., 3., 23., 7., 4., 8., 0., 0., 1., 0., 34., 9., 14., 3., 26., 3., 13., 3., 3., 2., 0., 0., 2., 1., 15., 8., 5., 0., 6., 3., 1., 2., 152., 11., 1958., 77., 71., 237., 87., 111., 72., 18., 11., 23., 12., 1., 2., 8., 7., 5., 6., 5., 28., 14., 30., 14., 43., 15., 9., 6., 3., 10., 5., 2., 2., 1., 7., 3., 0., 4., 9., 13., 1., 0., 8., 3., 3., 0., 3., 3., 3., 22., 3., 12., 5., 17., 4., 11., 0., 3., 6., 8., 32., 3., 39., 4., 9., 6., 6., 32., 9., 16., 5.,
7., 0., 2., 4., 28., 8., 29., 0., 18., 152., 2., 22., 199., 3., 22., 6., 1., 5., 96., 1., 13., 294., 58., 330., 36., 14., 0., 4., 6., 6., 39., 41., 242., 44., 11., 144., 8., 43., 10., 0., 2., 17., 9., 88., 19., 71., 15., 38., 45., 15., 5., 0., 25., 6., 36., 19., 35., 7., 28., 0., 8., 7., 2., 0., 2., 0., 19., 6., 13., 3., 33., 7., 14., 8., 3., 1., 0., 0., 3., 0., 13., 5., 14., 1., 13., 2., 1., 5., 142., 9., 1922., 106., 107., 245., 91., 105., 62., 7., 16., 23., 11., 1., 2., 2., 5., 6., 5., 6., 30., 20., 36., 17., 48., 5., 9., 2., 2., 8., 1., 2., 3., 0., 8., 3., 0., 4., 2., 9., 4., 0., 8., 3., 2., 0., 7., 3., 4., 28., 1., 16., 3., 16., 4., 18., 2., 7., 1., 8., 25., 7., 28., 7., 6., 13., 7., 23., 4., 7., 4.,
15., 1., 4., 8., 17., 6., 35., 0., 22., 159., 2., 27., 178., 4., 16., 7., 1., 1., 65., 2., 14., 273., 44., 350., 32., 15., 2., 2., 7., 11., 53., 37., 239., 34., 7., 159., 14., 33., 7., 0., 0., 18., 5., 80., 21., 87., 14., 23., 45., 9., 8., 3., 22., 11., 37., 8., 48., 12., 33., 10., 8., 11., 4., 0., 1., 0., 29., 4., 5., 4., 28., 7., 12., 4., 4., 4., 1., 0., 2., 3., 11., 4., 8., 3., 13., 1., 0., 3., 119., 4., 1931., 87., 118., 219., 114., 119., 74., 17., 15., 23., 13., 1., 2., 7., 3., 5., 4., 9., 38., 10., 46., 22., 34., 4., 6., 4., 7., 10., 4., 1., 3., 3., 7., 6., 0., 4., 7., 18., 1., 0., 12., 5., 3., 0., 2., 4., 8., 25., 5., 13., 3., 20., 2., 30., 3., 3., 2., 0., 33., 2., 27., 5., 4., 5., 3., 35., 6., 6., 5.,
20., 2., 4., 4., 30., 7., 36., 1., 24., 164., 2., 30., 176., 6., 14., 5., 2., 4., 78., 1., 17., 269., 29., 316., 40., 22., 0., 3., 7., 6., 34., 25., 238., 44., 3., 162., 14., 31., 6., 0., 2., 26., 9., 95., 25., 94., 18., 28., 46., 13., 1., 1., 22., 8., 41., 9., 56., 12., 29., 1., 12., 1., 1., 0., 1., 0., 18., 6., 16., 5., 34., 3., 10., 4., 5., 2., 2., 2., 3., 2., 15., 3., 9., 1., 16., 2., 1., 3., 141., 13., 1903., 81., 99., 232., 88., 110., 65., 27., 13., 11., 19., 2., 0., 6., 3., 3., 7., 6., 38., 13., 38., 9., 56., 5., 8., 3., 4., 5., 5., 1., 6., 4., 14., 2., 0., 1., 5., 10., 0., 0., 11., 3., 1., 0., 5., 1., 1., 44., 4., 9., 0., 13., 5., 17., 4., 4., 5., 2., 25., 1., 34., 4., 4., 11., 5., 39., 3., 16., 5.,
17., 4., 3., 9., 27., 9., 31., 2., 16., 179., 6., 32., 223., 6., 22., 7., 0., 3., 87., 1., 10., 257., 46., 348., 52., 25., 0., 0., 6., 5., 43., 34., 248., 45., 6., 144., 9., 35., 4., 0., 1., 19., 6., 75., 13., 99., 16., 31., 44., 7., 4., 0., 21., 9., 40., 12., 52., 7., 43., 11., 9., 5., 0., 0., 2., 0., 26., 6., 15., 2., 38., 1., 17., 3., 1., 0., 2., 2., 3., 1., 14., 4., 13., 0., 9., 0., 0., 4., 155., 9., 1801., 97., 95., 218., 118., 109., 72., 13., 12., 15., 11., 1., 2., 3., 6., 9., 5., 14., 40., 19., 32., 14., 43., 12., 4., 5., 5., 4., 6., 3., 6., 6., 13., 1., 0., 3., 8., 10., 2., 0., 13., 8., 2., 0., 3., 4., 1., 29., 7., 12., 2., 15., 9., 25., 2., 2., 1., 6., 20., 2., 31., 7., 6., 7., 4., 28., 8., 13., 3.,
6., 1., 5., 7., 28., 4., 31., 4., 17., 186., 2., 27., 222., 5., 16., 8., 0., 3., 76., 2., 17., 256., 40., 319., 30., 27., 1., 1., 7., 8., 51., 36., 248., 38., 8., 143., 12., 49., 2., 0., 1., 15., 7., 77., 17., 96., 19., 33., 55., 16., 3., 1., 25., 8., 50., 7., 46., 9., 20., 13., 9., 11., 0., 0., 1., 0., 23., 5., 13., 4., 32., 4., 7., 6., 2., 1., 0., 1., 3., 3., 6., 0., 8., 2., 7., 0., 2., 4., 142., 7., 1840., 95., 112., 219., 95., 98., 67., 11., 20., 20., 10., 2., 3., 5., 6., 7., 7., 4., 38., 19., 29., 16., 35., 8., 12., 3., 6., 4., 4., 4., 1., 2., 6., 2., 0., 2., 4., 11., 1., 0., 13., 0., 1., 0., 5., 1., 4., 29., 3., 14., 3., 7., 1., 13., 4., 5., 0., 5., 16., 6., 32., 10., 6., 5., 7., 24., 2., 8., 5.,
18., 3., 1., 6., 27., 6., 37., 1., 22., 173., 8., 24., 167., 5., 15., 7., 1., 8., 98., 0., 16., 292., 54., 357., 37., 21., 0., 3., 5., 8., 30., 23., 240., 40., 12., 153., 12., 32., 4., 0., 3., 19., 6., 76., 22., 83., 12., 40., 40., 12., 3., 2., 25., 7., 40., 7., 45., 7., 38., 3., 12., 9., 6., 0., 0., 0., 19., 4., 17., 2., 23., 4., 7., 5., 3., 4., 2., 1., 1., 1., 9., 3., 8., 2., 7., 1., 3., 5., 132., 10., 1853., 89., 87., 219., 92., 104., 57., 23., 7., 14., 16., 1., 0., 6., 1., 3., 9., 3., 49., 11., 32., 11., 42., 10., 6., 6., 4., 5., 10., 1., 2., 1., 5., 1., 0., 2., 7., 13., 4., 0., 10., 4., 2., 0., 7., 2., 0., 31., 5., 6., 2., 12., 8., 15., 3., 5., 4., 5., 28., 6., 42., 6., 5., 8., 4., 24., 6., 9., 7.,
9., 4., 3., 4., 23., 2., 28., 0., 13., 174., 3., 26., 183., 6., 14., 6., 0., 2., 105., 3., 14., 318., 46., 301., 42., 24., 1., 1., 7., 8., 45., 29., 238., 41., 5., 141., 7., 29., 5., 0., 3., 14., 7., 80., 14., 93., 16., 38., 52., 10., 2., 0., 26., 10., 45., 11., 54., 10., 30., 5., 12., 8., 2., 0., 0., 0., 18., 5., 15., 3., 27., 6., 9., 9., 3., 0., 0., 1., 4., 1., 13., 2., 6., 4., 6., 1., 1., 3., 156., 11., 1924., 73., 99., 189., 105., 129., 79., 21., 18., 17., 15., 1., 1., 7., 2., 3., 11., 6., 39., 15., 38., 17., 53., 8., 10., 1., 5., 10., 2., 2., 6., 3., 5., 0., 0., 4., 6., 10., 0., 0., 12., 4., 0., 0., 6., 2., 4., 31., 3., 7., 7., 17., 5., 17., 2., 3., 4., 6., 20., 2., 25., 1., 5., 8., 5., 23., 5., 7., 6.,
14., 3., 2., 10., 26., 5., 32., 1., 15., 138., 3., 27., 197., 8., 13., 5., 1., 3., 83., 1., 25., 303., 29., 334., 46., 18., 0., 2., 5., 2., 57., 35., 242., 45., 10., 155., 15., 38., 8., 0., 1., 16., 9., 92., 19., 85., 14., 39., 44., 10., 3., 1., 25., 7., 36., 15., 47., 10., 20., 7., 6., 4., 3., 0., 1., 0., 16., 5., 10., 1., 28., 4., 16., 3., 2., 3., 0., 3., 6., 1., 8., 3., 10., 3., 6., 1., 0., 9., 150., 7., 1913., 84., 91., 220., 101., 100., 56., 16., 7., 11., 15., 0., 4., 7., 4., 2., 8., 9., 41., 17., 32., 11., 29., 10., 15., 1., 3., 8., 6., 0., 4., 3., 5., 2., 0., 2., 3., 13., 2., 0., 9., 5., 2., 0., 3., 2., 3., 35., 1., 14., 4., 15., 6., 15., 2., 2., 4., 8., 24., 3., 31., 5., 5., 5., 8., 32., 7., 9., 4.,
19., 2., 2., 4., 21., 4., 29., 2., 3., 163., 0., 24., 182., 5., 18., 5., 0., 4., 79., 5., 12., 290., 42., 327., 53., 14., 2., 2., 6., 3., 45., 32., 220., 49., 8., 183., 13., 37., 1., 0., 2., 22., 15., 66., 20., 86., 18., 38., 45., 14., 2., 1., 20., 5., 40., 12., 51., 8., 36., 9., 9., 6., 4., 0., 0., 0., 19., 4., 15., 2., 32., 6., 7., 3., 3., 2., 1., 0., 4., 7., 10., 6., 9., 3., 6., 1., 1., 3., 146., 7., 1904., 78., 98., 228., 89., 127., 65., 22., 11., 11., 16., 0., 4., 8., 6., 10., 10., 6., 43., 16., 40., 11., 37., 10., 13., 4., 6., 12., 6., 2., 5., 4., 9., 7., 0., 2., 8., 10., 2., 0., 11., 5., 4., 0., 0., 5., 1., 21., 3., 16., 4., 11., 1., 23., 2., 0., 2., 6., 22., 0., 39., 8., 6., 11., 3., 38., 6., 14., 4.,
9., 1., 0., 6., 20., 6., 39., 1., 21., 151., 2., 23., 206., 6., 20., 6., 0., 7., 81., 1., 19., 294., 53., 353., 43., 17., 0., 3., 7., 6., 44., 32., 236., 40., 7., 158., 13., 48., 6., 0., 2., 10., 11., 85., 18., 93., 11., 33., 44., 8., 2., 2., 44., 6., 45., 5., 49., 12., 26., 8., 11., 8., 3., 0., 3., 0., 22., 4., 9., 5., 27., 7., 11., 5., 2., 5., 2., 0., 3., 1., 11., 1., 7., 4., 16., 3., 1., 5., 123., 12., 1902., 81., 81., 214., 98., 119., 68., 10., 9., 15., 11., 2., 4., 8., 6., 6., 5., 8., 42., 19., 30., 13., 47., 5., 6., 5., 6., 6., 4., 3., 3., 4., 11., 4., 0., 5., 3., 12., 3., 0., 10., 5., 1., 0., 1., 2., 6., 35., 2., 11., 4., 13., 1., 22., 2., 2., 5., 7., 26., 1., 32., 5., 7., 9., 10., 26., 3., 14., 5.,
10., 2., 4., 3., 33., 7., 27., 1., 9., 168., 3., 21., 214., 1., 14., 11., 1., 0., 80., 3., 19., 269., 36., 353., 40., 20., 0., 3., 7., 5., 37., 34., 233., 31., 11., 165., 13., 37., 4., 0., 2., 14., 9., 72., 9., 89., 13., 33., 42., 10., 1., 1., 23., 8., 37., 13., 45., 5., 31., 5., 11., 7., 2., 0., 3., 0., 17., 4., 10., 3., 26., 5., 15., 4., 1., 7., 1., 2., 4., 5., 13., 1., 13., 0., 6., 2., 0., 8., 136., 7., 1836., 88., 110., 226., 106., 115., 72., 14., 15., 17., 12., 0., 1., 4., 4., 2., 11., 10., 38., 11., 32., 22., 47., 7., 4., 2., 8., 10., 4., 6., 1., 2., 6., 3., 0., 7., 6., 13., 4., 0., 10., 7., 4., 0., 4., 6., 5., 14., 2., 12., 2., 13., 3., 23., 4., 3., 9., 2., 40., 5., 32., 5., 3., 6., 9., 24., 9., 14., 3.,
9., 0., 1., 3., 5., 1., 7., 1., 4., 23., 1., 14., 24., 2., 13., 6., 2., 1., 17., 1., 11., 28., 12., 35., 27., 5., 2., 2., 1., 1., 9., 4., 27., 15., 4., 18., 6., 13., 11., 0., 1., 5., 2., 10., 14., 16., 53., 16., 23., 8., 3., 1., 3., 3., 4., 0., 10., 3., 15., 15., 2., 18., 7., 4., 3., 0., 3., 0., 7., 0., 8., 3., 4., 3., 1., 6., 3., 1., 0., 3., 3., 0., 2., 2., 4., 10., 1., 2., 3., 3., 5., 0., 2., 0., 0., 5., 3., 0., 3., 3., 2., 1., 2., 3., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 0., 2., 12., 1., 3., 0., 7., 22., 1., 10., 16., 0., 12., 4., 0., 3., 22., 1., 3., 18., 10., 25., 23., 4., 1., 1., 2., 2., 9., 6., 24., 16., 2., 16., 8., 16., 5., 2., 0., 2., 1., 12., 9., 13., 53., 15., 27., 8., 7., 1., 7., 1., 3., 2., 11., 5., 12., 14., 5., 26., 8., 3., 0., 0., 9., 3., 4., 7., 1., 1., 2., 4., 1., 2., 4., 3., 1., 1., 3., 0., 2., 1., 2., 4., 2., 3., 3., 6., 1., 1., 4., 2., 4., 8., 1., 0., 1., 2., 2., 3., 3., 1., 0., 1., 4., 0., 0., 0., 0., 6., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 6., 7., 6., 3., 2., 2., 4., 24., 2., 14., 22., 0., 9., 2., 0., 2., 13., 1., 3., 14., 23., 28., 27., 8., 1., 1., 4., 1., 7., 7., 15., 19., 2., 6., 5., 15., 11., 0., 0., 3., 1., 9., 14., 20., 50., 16., 14., 12., 4., 0., 4., 2., 13., 5., 15., 9., 6., 12., 3., 12., 5., 3., 2., 0., 11., 1., 6., 0., 2., 4., 2., 7., 1., 8., 4., 3., 1., 1., 3., 0., 2., 1., 3., 3., 1., 3., 0., 0., 5., 1., 2., 0., 3., 6., 0., 0., 0., 3., 5., 1., 3., 1., 0., 0., 4., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 2., 7., 5., 1., 10., 2., 4., 16., 0., 13., 17., 0., 20., 4., 0., 1., 25., 2., 2., 20., 9., 18., 28., 6., 1., 0., 1., 1., 10., 8., 21., 17., 2., 14., 4., 16., 8., 1., 1., 5., 2., 14., 12., 22., 54., 21., 25., 8., 6., 1., 9., 3., 6., 3., 10., 5., 15., 9., 6., 24., 8., 3., 1., 1., 7., 3., 6., 4., 3., 4., 4., 8., 2., 5., 0., 2., 1., 2., 2., 0., 0., 2., 3., 3., 3., 11., 0., 4., 7., 0., 0., 0., 1., 9., 3., 0., 1., 2., 1., 2., 4., 2., 1., 2., 2., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 1., 2., 10., 3., 9., 0., 5., 35., 1., 11., 20., 1., 10., 1., 0., 1., 11., 1., 4., 27., 13., 25., 25., 13., 1., 1., 3., 1., 13., 10., 35., 12., 2., 15., 3., 13., 6., 4., 1., 2., 1., 12., 8., 22., 48., 7., 17., 12., 6., 1., 7., 2., 9., 4., 15., 4., 10., 19., 5., 23., 4., 4., 0., 1., 5., 1., 5., 2., 7., 1., 8., 2., 5., 0., 1., 7., 1., 1., 2., 0., 2., 3., 2., 3., 1., 3., 4., 3., 6., 0., 1., 2., 1., 4., 1., 0., 4., 1., 1., 1., 1., 3., 1., 1., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 4., 8., 2., 5., 0., 9., 19., 0., 16., 26., 1., 12., 0., 0., 2., 13., 1., 3., 15., 7., 14., 17., 4., 1., 2., 2., 5., 6., 4., 24., 13., 6., 18., 3., 22., 10., 1., 2., 1., 2., 12., 12., 18., 37., 9., 17., 7., 3., 2., 6., 4., 6., 5., 7., 4., 9., 13., 11., 15., 9., 1., 1., 1., 7., 2., 1., 3., 6., 4., 3., 4., 3., 4., 4., 3., 1., 1., 1., 0., 2., 1., 1., 5., 3., 2., 1., 3., 1., 3., 0., 0., 5., 10., 2., 0., 1., 3., 2., 3., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 0., 3., 6., 3., 7., 1., 3., 27., 0., 13., 20., 1., 8., 5., 0., 6., 14., 0., 6., 29., 13., 23., 15., 6., 1., 1., 4., 2., 10., 3., 24., 24., 1., 13., 2., 19., 7., 3., 2., 3., 3., 11., 11., 16., 60., 16., 27., 9., 6., 1., 5., 2., 9., 4., 14., 5., 7., 19., 4., 26., 8., 0., 1., 1., 4., 0., 2., 3., 6., 6., 5., 9., 0., 2., 3., 3., 0., 2., 3., 0., 2., 0., 2., 6., 3., 3., 0., 2., 3., 2., 2., 0., 5., 5., 2., 0., 1., 0., 1., 4., 2., 5., 3., 0., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 3., 3., 4., 3., 5., 1., 6., 28., 2., 12., 19., 1., 17., 2., 3., 2., 22., 0., 4., 15., 11., 21., 24., 9., 3., 3., 2., 3., 9., 6., 30., 19., 2., 17., 3., 11., 9., 1., 0., 4., 3., 9., 16., 17., 45., 12., 22., 11., 3., 1., 4., 1., 4., 1., 13., 4., 5., 20., 2., 18., 9., 1., 0., 2., 5., 0., 3., 1., 7., 3., 4., 2., 0., 4., 1., 1., 0., 4., 1., 0., 1., 2., 1., 9., 1., 7., 5., 0., 4., 0., 1., 2., 3., 5., 4., 0., 1., 3., 4., 3., 2., 0., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 5., 6., 3., 1., 2., 9., 29., 1., 4., 20., 0., 16., 3., 3., 2., 17., 1., 2., 30., 20., 17., 28., 9., 2., 2., 5., 0., 9., 7., 18., 15., 2., 26., 0., 21., 8., 1., 0., 6., 1., 20., 4., 16., 49., 10., 21., 5., 4., 1., 10., 4., 6., 3., 10., 7., 6., 15., 10., 31., 12., 1., 3., 2., 1., 1., 3., 1., 4., 1., 1., 2., 1., 6., 3., 1., 0., 3., 1., 0., 2., 3., 3., 2., 3., 3., 2., 2., 5., 1., 2., 2., 0., 3., 2., 0., 1., 1., 4., 3., 2., 3., 1., 1., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 3., 3., 10., 1., 5., 3., 7., 17., 0., 10., 28., 2., 13., 2., 2., 4., 21., 1., 2., 34., 7., 28., 23., 3., 1., 1., 0., 2., 5., 8., 37., 7., 3., 19., 4., 17., 9., 1., 0., 3., 3., 5., 11., 20., 41., 12., 21., 14., 4., 1., 3., 3., 6., 1., 11., 3., 11., 17., 4., 17., 6., 7., 1., 0., 6., 0., 4., 2., 4., 4., 5., 6., 2., 2., 2., 1., 1., 3., 4., 0., 3., 1., 2., 5., 1., 5., 2., 5., 2., 2., 1., 1., 1., 8., 1., 0., 1., 3., 0., 1., 2., 2., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 2., 4., 2., 5., 0., 6., 27., 1., 12., 23., 2., 17., 3., 3., 2., 14., 3., 2., 20., 16., 30., 35., 9., 2., 0., 4., 0., 9., 4., 23., 12., 7., 12., 5., 17., 9., 3., 0., 4., 3., 14., 7., 28., 44., 13., 16., 9., 7., 1., 7., 3., 10., 3., 5., 7., 6., 14., 3., 20., 11., 5., 0., 1., 4., 0., 4., 3., 7., 2., 8., 2., 0., 5., 2., 3., 1., 1., 1., 0., 3., 0., 1., 5., 2., 3., 0., 4., 5., 0., 2., 0., 2., 11., 1., 0., 1., 1., 1., 2., 4., 2., 1., 2., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 5., 2., 6., 4., 5., 2., 5., 25., 2., 14., 24., 0., 17., 1., 3., 1., 21., 3., 7., 20., 20., 23., 23., 3., 0., 1., 1., 2., 9., 5., 23., 20., 4., 15., 4., 14., 7., 3., 1., 1., 0., 17., 17., 16., 48., 17., 21., 8., 3., 0., 7., 4., 5., 3., 12., 7., 12., 19., 7., 22., 9., 0., 1., 0., 12., 4., 2., 0., 4., 0., 3., 1., 0., 1., 2., 3., 0., 4., 1., 0., 1., 1., 8., 7., 1., 5., 4., 2., 4., 3., 3., 0., 0., 11., 1., 0., 0., 2., 2., 2., 1., 0., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 4., 10., 6., 6., 0., 2., 28., 0., 7., 28., 2., 12., 2., 1., 5., 19., 2., 7., 22., 17., 29., 42., 5., 0., 0., 2., 5., 5., 3., 22., 10., 3., 8., 2., 17., 11., 1., 0., 6., 2., 8., 14., 10., 42., 13., 19., 11., 4., 4., 4., 2., 9., 4., 13., 4., 11., 15., 8., 26., 8., 4., 1., 2., 3., 2., 3., 3., 4., 3., 5., 3., 5., 1., 5., 2., 2., 1., 3., 0., 3., 0., 4., 3., 1., 3., 2., 1., 5., 1., 2., 2., 0., 6., 2., 0., 0., 1., 7., 1., 2., 3., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 8., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 3., 3., 7., 12., 3., 8., 1., 2., 29., 0., 10., 25., 0., 18., 4., 3., 0., 11., 1., 7., 23., 8., 37., 35., 2., 3., 2., 4., 2., 10., 8., 33., 16., 7., 17., 3., 14., 10., 2., 0., 6., 2., 7., 13., 20., 33., 15., 23., 9., 3., 1., 7., 5., 4., 4., 9., 6., 6., 20., 11., 32., 8., 4., 1., 2., 6., 0., 6., 1., 7., 2., 3., 8., 2., 5., 3., 2., 2., 6., 0., 0., 3., 1., 3., 4., 1., 7., 1., 1., 2., 1., 2., 0., 3., 9., 4., 0., 1., 1., 1., 3., 2., 4., 0., 3., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 3., 5., 7., 26., 5., 35., 2., 16., 148., 2., 29., 219., 4., 21., 6., 1., 8., 73., 1., 17., 256., 41., 324., 46., 22., 3., 2., 12., 7., 43., 25., 236., 40., 8., 156., 16., 33., 7., 0., 3., 18., 14., 101., 22., 73., 22., 45., 37., 6., 6., 1., 30., 8., 43., 7., 46., 13., 31., 6., 14., 8., 2., 0., 2., 0., 19., 6., 11., 3., 28., 4., 18., 7., 2., 6., 0., 1., 2., 1., 12., 2., 9., 2., 7., 1., 0., 5., 136., 7., 1863., 90., 97., 220., 113., 118., 58., 13., 15., 18., 15., 1., 0., 4., 6., 8., 12., 6., 37., 18., 36., 25., 36., 5., 13., 5., 5., 7., 7., 1., 2., 5., 5., 1., 0., 1., 4., 12., 3., 0., 7., 5., 6., 0., 5., 1., 5., 27., 6., 9., 3., 13., 5., 23., 0., 0., 1., 3., 23., 6., 25., 5., 4., 7., 8., 26., 4., 10., 3.,
9., 1., 3., 5., 25., 3., 31., 2., 11., 162., 2., 25., 223., 3., 21., 9., 1., 7., 76., 5., 14., 300., 34., 354., 57., 21., 0., 3., 4., 4., 43., 23., 249., 39., 12., 169., 16., 46., 5., 0., 2., 14., 9., 86., 15., 78., 15., 47., 51., 12., 2., 1., 24., 7., 51., 15., 54., 12., 30., 3., 8., 9., 0., 0., 0., 0., 20., 8., 16., 5., 31., 4., 11., 4., 3., 2., 0., 0., 4., 3., 14., 0., 10., 1., 12., 1., 1., 5., 135., 7., 1795., 81., 99., 214., 97., 136., 73., 11., 13., 22., 11., 2., 0., 4., 7., 4., 7., 6., 39., 17., 37., 12., 40., 3., 11., 7., 7., 10., 5., 2., 5., 3., 9., 2., 0., 9., 8., 14., 1., 0., 12., 7., 4., 0., 7., 1., 1., 26., 2., 19., 10., 10., 3., 13., 2., 3., 3., 5., 29., 5., 31., 6., 8., 5., 4., 38., 13., 5., 5.,
10., 2., 2., 11., 26., 8., 36., 1., 18., 176., 6., 17., 205., 3., 17., 4., 1., 6., 69., 0., 16., 258., 47., 326., 47., 14., 1., 2., 12., 1., 42., 35., 231., 50., 9., 163., 17., 35., 6., 0., 0., 25., 6., 84., 12., 90., 17., 36., 43., 16., 2., 0., 20., 6., 31., 7., 54., 4., 35., 5., 8., 4., 0., 0., 1., 0., 28., 6., 17., 6., 23., 7., 14., 9., 2., 5., 1., 1., 1., 1., 10., 3., 8., 3., 7., 1., 1., 3., 145., 9., 1901., 100., 91., 231., 99., 112., 66., 10., 8., 23., 9., 2., 1., 4., 4., 5., 8., 9., 40., 16., 33., 16., 32., 9., 9., 2., 4., 9., 8., 1., 4., 4., 8., 3., 0., 3., 6., 11., 3., 0., 12., 1., 2., 0., 6., 5., 3., 36., 2., 7., 5., 17., 1., 24., 0., 3., 2., 3., 24., 9., 32., 8., 6., 12., 3., 29., 7., 12., 4.,
12., 5., 2., 7., 27., 11., 30., 1., 21., 140., 6., 18., 211., 3., 17., 11., 1., 4., 86., 1., 18., 306., 48., 326., 41., 16., 1., 4., 6., 6., 45., 26., 230., 38., 5., 164., 10., 39., 6., 0., 1., 20., 11., 79., 17., 87., 12., 50., 53., 9., 5., 5., 20., 7., 34., 9., 53., 5., 26., 5., 8., 6., 1., 0., 1., 0., 22., 8., 10., 3., 22., 3., 17., 4., 1., 2., 1., 0., 5., 0., 7., 6., 7., 2., 10., 0., 1., 7., 133., 9., 1784., 86., 89., 198., 88., 134., 70., 15., 9., 16., 10., 0., 2., 4., 9., 5., 5., 8., 38., 20., 34., 10., 41., 7., 13., 5., 6., 5., 4., 3., 6., 4., 6., 3., 0., 11., 3., 16., 2., 0., 7., 4., 2., 0., 6., 2., 1., 33., 2., 13., 2., 18., 5., 18., 6., 8., 3., 5., 28., 6., 26., 5., 2., 5., 5., 26., 7., 14., 8.,
13., 3., 1., 4., 18., 10., 26., 1., 19., 170., 4., 30., 215., 3., 17., 13., 0., 4., 104., 0., 15., 281., 48., 312., 44., 12., 0., 3., 6., 6., 45., 40., 211., 32., 5., 150., 14., 49., 5., 0., 1., 16., 8., 78., 21., 75., 13., 21., 40., 17., 1., 1., 24., 8., 41., 6., 57., 7., 31., 8., 8., 6., 0., 0., 1., 0., 24., 10., 16., 7., 33., 3., 9., 7., 1., 2., 4., 2., 5., 4., 12., 1., 6., 1., 3., 1., 1., 5., 171., 6., 1787., 77., 91., 262., 92., 113., 68., 16., 11., 15., 10., 1., 3., 8., 5., 3., 10., 9., 42., 12., 42., 10., 35., 6., 12., 3., 4., 2., 2., 3., 4., 1., 8., 2., 0., 5., 9., 15., 1., 0., 12., 4., 2., 0., 3., 4., 2., 32., 1., 10., 4., 16., 5., 17., 2., 2., 5., 8., 25., 5., 40., 7., 6., 2., 6., 34., 7., 12., 7.,
9., 2., 2., 10., 31., 7., 37., 0., 11., 165., 4., 36., 192., 5., 11., 5., 1., 5., 81., 2., 11., 288., 39., 329., 48., 18., 1., 3., 4., 3., 34., 30., 238., 46., 8., 144., 14., 38., 6., 0., 1., 26., 10., 73., 21., 75., 14., 25., 49., 9., 1., 0., 29., 7., 41., 8., 50., 10., 39., 9., 12., 6., 1., 0., 1., 0., 28., 2., 13., 3., 18., 4., 11., 7., 3., 0., 3., 1., 2., 1., 7., 4., 7., 1., 9., 0., 1., 5., 137., 9., 1915., 108., 121., 224., 106., 123., 74., 18., 8., 17., 15., 1., 1., 6., 5., 7., 11., 9., 38., 18., 30., 16., 45., 5., 10., 1., 10., 9., 5., 4., 5., 2., 11., 0., 0., 2., 9., 15., 2., 0., 12., 4., 2., 0., 4., 2., 4., 39., 1., 11., 2., 12., 4., 17., 4., 1., 5., 6., 31., 9., 42., 15., 8., 15., 9., 34., 6., 16., 12.,
11., 0., 5., 10., 20., 5., 22., 2., 9., 170., 5., 31., 207., 4., 17., 9., 1., 6., 90., 0., 13., 300., 42., 311., 48., 23., 0., 1., 7., 6., 44., 28., 228., 38., 6., 152., 22., 28., 4., 0., 5., 22., 12., 73., 25., 81., 14., 48., 47., 10., 3., 0., 21., 10., 47., 10., 40., 9., 32., 4., 8., 1., 1., 0., 2., 0., 25., 2., 14., 9., 19., 2., 9., 4., 1., 3., 1., 0., 5., 2., 16., 3., 11., 0., 12., 0., 2., 7., 145., 11., 1911., 94., 116., 217., 95., 117., 80., 14., 9., 32., 11., 2., 1., 3., 8., 5., 9., 12., 51., 24., 35., 16., 42., 5., 6., 2., 6., 8., 3., 4., 5., 0., 8., 6., 0., 4., 7., 14., 2., 0., 8., 4., 4., 0., 6., 5., 7., 27., 5., 13., 0., 14., 3., 22., 6., 2., 2., 5., 34., 4., 27., 5., 4., 2., 4., 28., 9., 15., 6.,
14., 3., 0., 7., 18., 7., 30., 1., 21., 140., 5., 27., 173., 8., 18., 7., 3., 4., 80., 0., 13., 269., 42., 344., 47., 14., 1., 0., 6., 1., 49., 29., 213., 46., 5., 143., 11., 41., 4., 0., 2., 21., 8., 76., 19., 71., 13., 27., 45., 17., 1., 2., 22., 8., 28., 10., 40., 3., 28., 6., 12., 6., 3., 0., 1., 0., 22., 5., 17., 5., 26., 7., 8., 6., 1., 2., 0., 1., 5., 2., 12., 1., 7., 4., 7., 1., 0., 3., 140., 9., 1832., 90., 107., 197., 96., 126., 62., 22., 9., 16., 9., 2., 4., 3., 5., 4., 10., 3., 42., 17., 33., 17., 47., 6., 10., 8., 6., 8., 8., 3., 3., 5., 4., 2., 0., 0., 7., 12., 2., 0., 11., 1., 1., 0., 4., 4., 3., 39., 0., 17., 2., 16., 5., 35., 4., 3., 4., 4., 27., 6., 34., 5., 5., 7., 5., 34., 9., 9., 6.,
13., 1., 1., 8., 27., 6., 33., 0., 21., 158., 3., 35., 217., 6., 12., 8., 2., 7., 71., 1., 11., 265., 35., 303., 36., 10., 2., 4., 7., 3., 45., 36., 230., 40., 10., 164., 16., 30., 4., 0., 1., 23., 8., 96., 17., 87., 24., 44., 46., 19., 3., 2., 26., 12., 46., 12., 43., 10., 31., 5., 9., 15., 0., 0., 4., 0., 29., 3., 15., 1., 25., 4., 14., 2., 1., 4., 2., 1., 1., 1., 10., 4., 11., 2., 5., 1., 0., 1., 142., 7., 1875., 89., 121., 205., 111., 112., 73., 17., 10., 16., 17., 1., 2., 9., 1., 5., 2., 6., 37., 15., 29., 21., 44., 7., 6., 5., 8., 5., 6., 1., 3., 3., 5., 0., 0., 3., 3., 11., 1., 0., 12., 4., 3., 0., 4., 1., 3., 32., 3., 6., 4., 9., 5., 17., 4., 5., 4., 5., 20., 5., 35., 7., 5., 6., 1., 23., 10., 9., 3.,
18., 0., 3., 11., 29., 7., 26., 1., 14., 169., 1., 27., 206., 1., 9., 9., 0., 6., 93., 1., 12., 293., 43., 331., 41., 19., 1., 3., 6., 4., 38., 31., 244., 41., 12., 167., 12., 39., 5., 0., 3., 16., 6., 57., 15., 98., 8., 26., 51., 14., 4., 1., 22., 8., 36., 10., 56., 9., 18., 6., 15., 7., 2., 0., 2., 0., 31., 6., 15., 5., 36., 3., 11., 2., 4., 0., 0., 2., 1., 3., 14., 3., 5., 5., 5., 1., 0., 4., 143., 9., 1944., 90., 98., 210., 91., 120., 81., 15., 18., 10., 11., 0., 2., 5., 5., 4., 11., 9., 35., 21., 36., 15., 38., 5., 5., 5., 5., 11., 4., 1., 2., 0., 8., 1., 0., 3., 7., 14., 0., 0., 10., 2., 2., 0., 2., 2., 5., 28., 4., 14., 3., 20., 2., 20., 6., 3., 3., 4., 30., 4., 26., 9., 5., 4., 4., 30., 8., 9., 4.,
21., 1., 2., 9., 23., 3., 38., 1., 16., 154., 4., 26., 220., 5., 22., 5., 0., 6., 76., 2., 13., 272., 37., 316., 40., 25., 1., 1., 9., 9., 45., 34., 240., 36., 7., 155., 8., 39., 7., 0., 3., 16., 11., 78., 14., 108., 16., 47., 49., 10., 1., 2., 20., 8., 28., 11., 40., 11., 29., 4., 9., 16., 1., 0., 0., 0., 20., 5., 9., 5., 23., 10., 11., 4., 3., 4., 0., 0., 5., 1., 6., 2., 8., 3., 8., 0., 1., 5., 161., 12., 1840., 100., 101., 195., 97., 116., 65., 17., 14., 23., 11., 1., 6., 5., 3., 5., 9., 7., 38., 16., 30., 14., 45., 6., 7., 3., 5., 3., 8., 2., 1., 8., 3., 3., 0., 5., 6., 22., 1., 0., 6., 5., 4., 0., 7., 4., 1., 32., 5., 15., 2., 7., 4., 21., 0., 4., 6., 5., 20., 5., 26., 6., 3., 4., 14., 28., 7., 11., 4.,
11., 3., 0., 9., 28., 5., 37., 0., 12., 147., 2., 33., 194., 5., 5., 5., 1., 3., 82., 2., 18., 312., 39., 311., 36., 16., 0., 1., 7., 2., 46., 37., 231., 45., 11., 146., 14., 38., 6., 0., 2., 13., 8., 73., 19., 73., 16., 28., 31., 19., 1., 0., 32., 5., 35., 10., 36., 5., 30., 6., 13., 8., 1., 0., 0., 0., 24., 2., 16., 4., 30., 4., 8., 6., 0., 4., 0., 2., 0., 7., 10., 2., 9., 3., 13., 1., 0., 4., 138., 8., 1872., 102., 91., 205., 112., 89., 49., 15., 14., 15., 9., 1., 2., 9., 11., 4., 12., 4., 40., 15., 29., 18., 45., 5., 7., 4., 8., 5., 7., 4., 3., 0., 9., 2., 0., 4., 2., 25., 3., 0., 4., 5., 5., 0., 3., 2., 1., 21., 4., 16., 0., 11., 1., 18., 2., 2., 3., 5., 29., 4., 24., 4., 8., 9., 8., 33., 10., 10., 6.,
20., 3., 2., 2., 28., 7., 35., 1., 14., 136., 6., 31., 189., 3., 17., 8., 1., 1., 73., 1., 15., 270., 41., 320., 32., 20., 0., 2., 7., 4., 52., 44., 255., 31., 9., 151., 24., 31., 5., 0., 1., 8., 9., 80., 27., 80., 9., 38., 37., 17., 6., 1., 22., 9., 37., 14., 64., 8., 30., 6., 10., 4., 0., 0., 1., 0., 28., 8., 7., 3., 31., 6., 14., 4., 4., 1., 0., 0., 1., 1., 19., 5., 12., 1., 13., 0., 1., 3., 126., 7., 1937., 95., 103., 234., 90., 129., 56., 12., 8., 18., 17., 0., 0., 4., 2., 7., 13., 4., 35., 11., 32., 10., 28., 6., 14., 2., 4., 3., 7., 2., 3., 2., 6., 1., 0., 3., 1., 15., 1., 0., 6., 5., 0., 0., 5., 0., 1., 29., 3., 11., 7., 20., 5., 22., 3., 5., 9., 6., 24., 3., 47., 4., 5., 5., 9., 25., 8., 9., 2.,
15., 3., 1., 6., 24., 6., 34., 0., 20., 142., 2., 31., 198., 5., 10., 7., 2., 3., 86., 4., 20., 262., 45., 361., 48., 18., 2., 3., 14., 3., 37., 29., 254., 39., 8., 185., 10., 39., 7., 0., 2., 17., 6., 82., 11., 81., 15., 26., 35., 20., 2., 0., 23., 7., 35., 8., 61., 18., 38., 7., 10., 6., 1., 0., 0., 0., 22., 6., 17., 2., 26., 6., 16., 7., 3., 1., 0., 0., 3., 1., 10., 3., 9., 2., 9., 0., 1., 2., 130., 11., 1826., 86., 121., 175., 96., 116., 62., 18., 17., 14., 16., 1., 2., 2., 4., 3., 7., 7., 35., 17., 38., 5., 48., 5., 15., 4., 6., 9., 2., 2., 1., 0., 8., 2., 0., 3., 8., 13., 1., 0., 15., 2., 3., 0., 6., 4., 2., 34., 1., 7., 2., 13., 7., 14., 3., 2., 2., 6., 22., 2., 27., 6., 8., 3., 2., 30., 8., 11., 9.,
18., 2., 1., 8., 27., 8., 21., 1., 8., 159., 3., 29., 228., 4., 10., 5., 2., 10., 79., 2., 15., 254., 60., 377., 52., 22., 2., 1., 5., 8., 43., 33., 225., 40., 6., 134., 9., 47., 3., 0., 0., 15., 11., 97., 12., 78., 17., 36., 52., 12., 2., 0., 22., 5., 34., 10., 38., 9., 27., 3., 13., 9., 6., 0., 1., 0., 16., 10., 15., 7., 33., 1., 10., 1., 3., 2., 1., 0., 5., 2., 15., 3., 5., 1., 8., 2., 0., 6., 130., 6., 1966., 93., 117., 203., 108., 118., 72., 20., 10., 16., 19., 0., 0., 7., 8., 5., 6., 10., 24., 17., 31., 21., 38., 5., 7., 6., 5., 5., 5., 2., 5., 3., 8., 2., 0., 3., 7., 10., 1., 0., 13., 1., 2., 0., 2., 4., 4., 22., 3., 6., 5., 15., 4., 21., 5., 3., 5., 3., 36., 5., 34., 3., 1., 8., 3., 41., 5., 12., 2.,
13., 1., 3., 4., 29., 5., 30., 2., 17., 169., 3., 19., 176., 5., 26., 6., 0., 9., 77., 1., 11., 298., 50., 339., 48., 11., 3., 1., 4., 3., 43., 31., 267., 45., 8., 159., 15., 45., 4., 0., 7., 16., 12., 61., 21., 89., 24., 45., 57., 13., 2., 2., 32., 6., 34., 9., 50., 13., 31., 11., 12., 3., 1., 0., 1., 0., 30., 3., 12., 2., 27., 4., 15., 5., 5., 1., 2., 1., 2., 2., 14., 1., 4., 5., 7., 0., 0., 6., 152., 7., 1859., 105., 115., 203., 102., 107., 72., 20., 17., 21., 19., 1., 5., 6., 4., 8., 12., 4., 33., 16., 34., 14., 34., 5., 19., 6., 3., 15., 3., 2., 1., 1., 8., 2., 0., 3., 4., 18., 2., 0., 12., 1., 5., 0., 3., 1., 1., 34., 6., 10., 2., 20., 4., 21., 6., 1., 3., 3., 28., 5., 26., 5., 5., 6., 2., 22., 6., 9., 7.,
15., 1., 1., 7., 30., 12., 30., 0., 11., 158., 2., 29., 187., 2., 16., 9., 1., 8., 76., 2., 16., 300., 37., 347., 42., 10., 1., 2., 6., 5., 38., 33., 235., 48., 6., 165., 9., 38., 6., 0., 3., 15., 9., 76., 15., 105., 19., 39., 38., 20., 2., 1., 30., 6., 43., 12., 55., 6., 34., 5., 7., 4., 2., 0., 1., 0., 21., 6., 20., 2., 35., 4., 16., 4., 1., 3., 0., 1., 7., 1., 14., 3., 9., 2., 6., 2., 0., 3., 143., 9., 1865., 68., 107., 211., 102., 129., 64., 12., 14., 18., 15., 1., 0., 5., 7., 3., 7., 10., 38., 13., 34., 12., 52., 2., 12., 3., 5., 6., 3., 2., 4., 1., 7., 1., 0., 3., 6., 13., 2., 0., 16., 7., 4., 0., 4., 3., 2., 22., 6., 14., 4., 12., 3., 26., 2., 1., 6., 3., 23., 4., 27., 3., 5., 11., 9., 44., 7., 14., 8.,
1., 1., 2., 5., 1., 3., 5., 0., 5., 21., 0., 10., 25., 3., 16., 2., 0., 1., 27., 1., 7., 26., 8., 28., 27., 9., 0., 3., 7., 3., 4., 9., 33., 17., 3., 14., 5., 22., 7., 2., 2., 2., 5., 13., 15., 19., 43., 6., 25., 11., 5., 1., 10., 2., 10., 4., 10., 4., 7., 19., 8., 20., 6., 4., 1., 0., 7., 1., 2., 3., 6., 3., 3., 2., 0., 3., 2., 1., 1., 3., 3., 0., 3., 1., 0., 2., 3., 1., 1., 4., 5., 0., 3., 2., 1., 5., 5., 0., 9., 3., 3., 3., 0., 1., 2., 0., 1., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 3., 4., 11., 2., 4., 1., 4., 25., 1., 8., 21., 2., 17., 1., 0., 2., 18., 2., 4., 29., 17., 35., 27., 10., 1., 0., 1., 1., 11., 7., 35., 18., 0., 24., 7., 16., 5., 4., 1., 0., 2., 13., 18., 12., 45., 14., 17., 11., 1., 3., 8., 1., 9., 4., 11., 3., 11., 18., 3., 21., 4., 1., 0., 0., 10., 1., 4., 1., 5., 4., 7., 5., 1., 8., 4., 0., 0., 1., 0., 0., 1., 4., 2., 4., 3., 3., 0., 6., 2., 1., 3., 2., 0., 9., 2., 0., 3., 2., 0., 2., 2., 5., 3., 1., 2., 0., 0., 0., 0., 5., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 1., 10., 2., 4., 1., 4., 25., 1., 9., 27., 1., 8., 1., 0., 1., 25., 0., 4., 19., 13., 37., 25., 8., 0., 0., 4., 2., 10., 6., 36., 13., 3., 11., 7., 16., 10., 1., 0., 4., 1., 11., 10., 15., 58., 11., 19., 8., 7., 0., 6., 2., 2., 2., 10., 7., 5., 16., 5., 16., 8., 7., 0., 1., 6., 0., 5., 2., 5., 8., 3., 4., 3., 4., 4., 0., 1., 0., 1., 0., 3., 3., 2., 5., 2., 1., 2., 1., 2., 0., 3., 2., 2., 4., 1., 0., 1., 3., 4., 2., 2., 2., 2., 3., 1., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 0., 1., 8., 5., 8., 0., 2., 7., 3., 11., 28., 1., 7., 1., 0., 2., 18., 0., 6., 18., 11., 29., 34., 6., 1., 1., 3., 2., 13., 7., 34., 24., 4., 19., 4., 13., 2., 2., 1., 8., 2., 11., 13., 15., 36., 17., 21., 9., 5., 1., 6., 0., 5., 2., 7., 5., 4., 16., 8., 32., 10., 4., 1., 1., 8., 0., 7., 3., 5., 0., 4., 3., 3., 4., 1., 1., 0., 1., 0., 0., 0., 2., 2., 2., 1., 3., 1., 3., 3., 0., 0., 2., 2., 10., 3., 0., 1., 3., 1., 3., 1., 2., 1., 1., 1., 0., 0., 0., 0., 5., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 5., 5., 9., 0., 2., 0., 7., 16., 0., 9., 16., 0., 12., 3., 0., 2., 20., 3., 6., 22., 11., 35., 18., 4., 2., 0., 2., 2., 8., 11., 23., 16., 1., 17., 0., 18., 10., 1., 1., 7., 0., 15., 10., 23., 39., 14., 32., 6., 1., 2., 5., 0., 3., 4., 13., 7., 7., 19., 19., 20., 10., 2., 0., 1., 7., 1., 6., 0., 5., 2., 6., 4., 2., 7., 1., 2., 1., 3., 3., 0., 0., 0., 2., 4., 1., 0., 3., 3., 1., 1., 3., 1., 1., 7., 2., 0., 4., 2., 1., 1., 0., 0., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 2., 8., 4., 3., 0., 4., 18., 1., 8., 19., 1., 19., 2., 0., 3., 16., 0., 1., 29., 10., 20., 31., 9., 1., 1., 4., 3., 2., 7., 33., 15., 6., 29., 6., 9., 7., 2., 1., 6., 3., 16., 10., 20., 46., 11., 19., 7., 4., 3., 3., 1., 8., 2., 10., 6., 7., 10., 5., 20., 4., 2., 0., 2., 12., 0., 5., 4., 4., 5., 3., 1., 0., 5., 1., 1., 1., 3., 1., 0., 3., 1., 4., 3., 2., 5., 0., 3., 4., 1., 0., 0., 2., 7., 1., 0., 4., 1., 2., 2., 1., 1., 3., 1., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 4., 2., 5., 3., 6., 2., 7., 9., 2., 19., 22., 0., 24., 2., 0., 3., 15., 1., 4., 18., 8., 20., 31., 7., 2., 0., 4., 4., 7., 6., 26., 15., 4., 22., 4., 18., 8., 1., 0., 6., 1., 11., 11., 21., 46., 14., 18., 15., 3., 0., 7., 1., 10., 6., 8., 5., 12., 18., 7., 28., 7., 3., 2., 2., 10., 1., 2., 1., 10., 2., 4., 1., 3., 3., 4., 1., 1., 3., 1., 0., 0., 2., 0., 5., 0., 8., 3., 2., 5., 0., 3., 3., 4., 2., 4., 0., 2., 3., 2., 2., 1., 2., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 2., 3., 13., 2., 6., 0., 3., 18., 1., 16., 26., 1., 14., 4., 0., 1., 23., 4., 1., 18., 10., 15., 25., 7., 0., 3., 1., 1., 10., 10., 14., 21., 5., 21., 2., 15., 10., 0., 0., 4., 3., 14., 12., 24., 53., 9., 14., 8., 2., 1., 5., 1., 10., 2., 7., 7., 5., 17., 5., 24., 16., 2., 1., 1., 7., 0., 1., 3., 3., 5., 0., 4., 0., 3., 2., 2., 2., 1., 2., 0., 0., 5., 3., 5., 0., 8., 2., 3., 5., 1., 3., 1., 3., 10., 1., 0., 2., 1., 1., 2., 2., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 3., 2., 1., 10., 1., 6., 1., 5., 21., 4., 12., 19., 1., 16., 3., 1., 0., 27., 2., 3., 35., 8., 28., 24., 8., 2., 2., 0., 4., 9., 6., 23., 19., 3., 15., 3., 19., 13., 3., 1., 6., 1., 12., 7., 16., 46., 12., 16., 7., 7., 1., 7., 4., 5., 2., 10., 8., 11., 16., 9., 16., 11., 1., 1., 1., 8., 2., 3., 4., 2., 1., 6., 6., 4., 4., 2., 1., 3., 1., 2., 0., 1., 3., 0., 5., 1., 7., 2., 1., 6., 2., 2., 1., 1., 10., 2., 0., 0., 1., 3., 3., 2., 1., 2., 2., 1., 0., 0., 0., 0., 4., 0., 0., 5., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 4., 3., 6., 2., 6., 1., 7., 22., 0., 7., 8., 1., 16., 1., 1., 1., 18., 1., 6., 37., 20., 20., 34., 1., 1., 0., 0., 4., 13., 6., 25., 14., 4., 12., 4., 12., 16., 4., 1., 4., 1., 6., 8., 15., 50., 12., 15., 9., 4., 0., 7., 3., 8., 4., 8., 11., 10., 13., 3., 21., 10., 1., 2., 2., 4., 3., 4., 0., 6., 5., 2., 5., 2., 9., 6., 2., 1., 3., 2., 0., 1., 0., 1., 4., 1., 7., 0., 1., 3., 0., 2., 1., 1., 9., 2., 0., 1., 1., 1., 3., 2., 5., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 4., 6., 1., 10., 0., 6., 24., 1., 9., 43., 1., 18., 3., 1., 5., 16., 1., 2., 24., 10., 34., 20., 7., 2., 1., 2., 1., 7., 1., 43., 18., 3., 14., 5., 15., 7., 3., 2., 7., 3., 10., 14., 28., 47., 11., 22., 13., 4., 3., 7., 3., 10., 3., 8., 6., 11., 13., 6., 24., 10., 1., 1., 1., 8., 0., 2., 2., 8., 3., 3., 5., 1., 5., 3., 4., 1., 4., 1., 0., 2., 2., 3., 5., 0., 6., 1., 4., 1., 1., 1., 1., 4., 8., 3., 0., 3., 0., 2., 1., 2., 3., 4., 1., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 2., 5., 8., 0., 7., 0., 6., 18., 2., 19., 22., 1., 18., 3., 0., 3., 13., 1., 3., 27., 12., 35., 22., 5., 1., 0., 3., 2., 5., 3., 23., 16., 1., 17., 6., 15., 7., 1., 2., 6., 1., 8., 18., 16., 42., 16., 24., 8., 6., 1., 9., 3., 4., 1., 5., 5., 7., 15., 9., 23., 9., 2., 1., 0., 9., 2., 6., 2., 3., 1., 3., 3., 1., 7., 2., 0., 0., 4., 3., 0., 1., 2., 1., 6., 5., 8., 1., 4., 4., 0., 3., 1., 2., 3., 2., 0., 4., 2., 0., 1., 3., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 5., 11., 2., 2., 2., 7., 29., 0., 15., 17., 1., 17., 1., 2., 4., 28., 4., 4., 22., 13., 16., 24., 7., 2., 0., 2., 2., 11., 11., 21., 12., 2., 9., 0., 10., 8., 1., 1., 1., 1., 11., 12., 11., 40., 20., 16., 13., 5., 0., 7., 2., 5., 1., 9., 3., 4., 17., 5., 32., 3., 3., 3., 1., 8., 0., 7., 1., 3., 5., 6., 5., 4., 6., 7., 4., 2., 5., 1., 0., 0., 5., 2., 6., 3., 4., 1., 3., 7., 1., 4., 2., 2., 3., 2., 0., 2., 3., 0., 3., 1., 3., 1., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 5., 8., 0., 3., 0., 8., 21., 1., 16., 23., 1., 15., 3., 2., 2., 20., 1., 5., 33., 15., 12., 29., 1., 0., 0., 3., 1., 7., 5., 30., 22., 3., 9., 5., 15., 8., 2., 2., 1., 3., 11., 14., 21., 33., 7., 23., 12., 2., 2., 4., 1., 10., 5., 17., 7., 6., 14., 9., 29., 10., 1., 0., 1., 7., 1., 3., 1., 10., 3., 4., 4., 2., 3., 1., 0., 0., 1., 4., 0., 6., 1., 4., 5., 1., 9., 2., 4., 3., 0., 3., 0., 3., 10., 0., 0., 2., 3., 3., 3., 5., 2., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 2., 14., 6., 10., 1., 6., 18., 1., 11., 24., 3., 12., 1., 2., 2., 8., 1., 6., 37., 13., 24., 28., 3., 0., 2., 7., 3., 11., 8., 40., 20., 2., 18., 4., 7., 7., 6., 1., 5., 3., 16., 9., 17., 48., 10., 20., 9., 6., 2., 3., 2., 7., 1., 10., 3., 11., 19., 11., 24., 7., 5., 2., 2., 4., 2., 4., 0., 7., 3., 10., 4., 2., 4., 2., 1., 1., 0., 2., 0., 1., 0., 2., 5., 2., 9., 0., 2., 4., 2., 2., 0., 0., 10., 3., 0., 0., 3., 2., 2., 2., 2., 2., 1., 1., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 5., 6., 22., 10., 36., 0., 19., 170., 3., 30., 224., 5., 12., 3., 1., 4., 67., 0., 20., 242., 47., 349., 52., 22., 1., 2., 7., 1., 35., 40., 244., 34., 5., 175., 15., 51., 8., 0., 5., 16., 8., 83., 17., 93., 11., 42., 43., 11., 1., 0., 20., 11., 22., 6., 47., 12., 25., 5., 5., 8., 2., 0., 3., 0., 20., 6., 12., 3., 28., 3., 11., 1., 2., 0., 0., 1., 2., 3., 9., 2., 6., 2., 8., 2., 0., 3., 132., 10., 1868., 89., 100., 218., 108., 104., 57., 11., 10., 15., 18., 2., 0., 7., 3., 4., 7., 11., 33., 21., 49., 12., 30., 11., 11., 6., 7., 5., 2., 2., 2., 4., 9., 3., 0., 9., 3., 9., 1., 0., 16., 3., 1., 0., 5., 3., 4., 47., 4., 11., 1., 18., 3., 14., 8., 3., 5., 5., 20., 1., 42., 5., 12., 10., 3., 22., 12., 14., 5.,
11., 2., 4., 8., 39., 8., 36., 0., 14., 165., 3., 22., 198., 4., 14., 6., 0., 4., 89., 2., 22., 251., 50., 310., 49., 17., 2., 1., 6., 5., 45., 27., 219., 37., 6., 141., 12., 43., 5., 0., 1., 20., 5., 77., 19., 98., 23., 31., 40., 11., 2., 1., 23., 6., 57., 14., 45., 6., 26., 7., 4., 6., 4., 0., 1., 0., 31., 6., 15., 1., 28., 6., 9., 1., 3., 2., 1., 0., 3., 1., 9., 4., 13., 0., 8., 1., 0., 4., 122., 12., 1899., 90., 89., 224., 78., 125., 66., 24., 14., 23., 14., 1., 1., 7., 2., 4., 8., 9., 36., 12., 38., 22., 34., 8., 6., 0., 8., 8., 3., 4., 3., 2., 9., 2., 0., 5., 8., 9., 2., 0., 10., 4., 2., 0., 4., 5., 3., 25., 2., 10., 5., 9., 2., 22., 5., 5., 3., 5., 24., 3., 33., 9., 3., 9., 5., 27., 8., 14., 7.,
8., 4., 1., 12., 20., 10., 36., 2., 18., 159., 2., 33., 226., 2., 17., 3., 2., 2., 93., 2., 19., 265., 40., 312., 43., 20., 5., 2., 6., 3., 44., 22., 245., 53., 6., 167., 12., 38., 6., 0., 4., 16., 6., 76., 21., 81., 17., 39., 56., 9., 7., 3., 23., 6., 40., 7., 48., 11., 37., 5., 12., 6., 2., 0., 0., 0., 20., 2., 15., 1., 23., 3., 19., 3., 2., 2., 1., 3., 0., 2., 17., 2., 10., 2., 8., 1., 1., 1., 131., 12., 1856., 96., 110., 207., 95., 144., 69., 12., 15., 16., 12., 0., 3., 4., 5., 4., 9., 14., 25., 14., 30., 16., 47., 8., 6., 6., 6., 9., 3., 1., 2., 5., 9., 0., 0., 0., 3., 23., 3., 0., 11., 2., 4., 0., 3., 2., 1., 25., 2., 11., 1., 10., 7., 18., 2., 2., 4., 5., 29., 8., 29., 7., 9., 10., 7., 28., 8., 22., 7.,
15., 6., 0., 7., 36., 4., 31., 1., 12., 167., 3., 22., 226., 1., 16., 7., 2., 3., 74., 6., 17., 307., 41., 303., 50., 21., 0., 3., 7., 9., 30., 15., 225., 34., 7., 167., 16., 31., 3., 0., 0., 19., 6., 75., 16., 86., 17., 29., 36., 16., 3., 0., 31., 6., 43., 11., 43., 12., 30., 9., 10., 7., 0., 0., 2., 0., 20., 9., 15., 6., 31., 2., 9., 3., 1., 1., 1., 4., 1., 0., 13., 4., 8., 4., 7., 0., 2., 5., 132., 7., 1966., 68., 110., 221., 95., 109., 67., 21., 18., 24., 11., 0., 0., 8., 3., 4., 7., 13., 39., 8., 35., 14., 37., 6., 15., 2., 7., 7., 3., 2., 0., 6., 11., 1., 0., 4., 6., 18., 2., 0., 5., 4., 7., 0., 3., 7., 1., 27., 0., 12., 4., 16., 6., 21., 4., 1., 2., 2., 22., 3., 36., 9., 10., 1., 4., 33., 6., 13., 4.,
5., 1., 6., 8., 23., 6., 27., 1., 16., 158., 2., 27., 210., 5., 11., 9., 2., 9., 86., 3., 22., 282., 54., 349., 39., 19., 1., 1., 5., 4., 48., 27., 224., 42., 5., 158., 17., 50., 8., 0., 3., 11., 8., 88., 22., 94., 11., 38., 55., 9., 1., 2., 28., 8., 39., 7., 50., 13., 42., 4., 8., 6., 1., 0., 0., 0., 28., 8., 13., 3., 27., 3., 3., 6., 1., 0., 1., 0., 1., 4., 8., 3., 6., 3., 7., 1., 1., 3., 156., 5., 1878., 105., 114., 229., 86., 122., 82., 16., 13., 19., 14., 1., 4., 6., 5., 5., 8., 11., 26., 16., 33., 17., 54., 3., 13., 0., 6., 8., 2., 5., 5., 5., 7., 3., 0., 4., 5., 11., 2., 0., 13., 7., 1., 0., 3., 9., 4., 31., 2., 11., 9., 10., 0., 15., 3., 0., 6., 6., 25., 2., 30., 5., 6., 7., 7., 34., 5., 12., 3.,
15., 1., 4., 9., 15., 5., 31., 2., 20., 147., 4., 19., 196., 2., 19., 6., 0., 8., 95., 1., 12., 269., 34., 335., 41., 28., 1., 2., 6., 2., 37., 30., 196., 46., 11., 144., 18., 32., 6., 0., 2., 21., 9., 91., 24., 82., 15., 34., 36., 9., 3., 2., 35., 4., 34., 8., 39., 11., 27., 2., 9., 9., 1., 0., 0., 0., 27., 6., 21., 5., 34., 3., 10., 9., 1., 3., 1., 1., 6., 4., 5., 3., 10., 2., 7., 2., 0., 5., 165., 2., 1904., 83., 78., 222., 112., 110., 71., 16., 15., 11., 12., 0., 1., 3., 7., 1., 5., 8., 33., 18., 47., 11., 39., 10., 6., 7., 6., 7., 7., 2., 3., 5., 7., 3., 0., 1., 2., 18., 1., 0., 6., 4., 2., 0., 2., 3., 1., 38., 2., 15., 4., 16., 6., 17., 6., 1., 5., 8., 32., 9., 31., 2., 6., 3., 6., 32., 9., 12., 0.,
11., 0., 1., 11., 18., 8., 28., 3., 24., 143., 2., 28., 201., 6., 17., 10., 0., 5., 84., 3., 18., 274., 42., 311., 33., 16., 1., 4., 10., 8., 43., 23., 219., 41., 5., 171., 16., 39., 11., 0., 5., 13., 10., 78., 24., 98., 22., 38., 45., 17., 3., 2., 25., 9., 30., 7., 54., 5., 32., 7., 5., 6., 2., 0., 1., 0., 19., 8., 16., 1., 35., 6., 11., 5., 1., 4., 2., 1., 5., 1., 12., 3., 11., 2., 5., 1., 0., 2., 145., 10., 1849., 81., 112., 215., 90., 116., 74., 9., 12., 18., 16., 1., 2., 3., 8., 3., 14., 9., 29., 17., 33., 10., 42., 3., 11., 4., 3., 11., 5., 3., 3., 2., 13., 4., 0., 4., 6., 18., 3., 0., 8., 4., 3., 0., 2., 3., 3., 33., 2., 11., 3., 12., 2., 18., 3., 0., 3., 6., 28., 6., 38., 7., 6., 8., 5., 25., 8., 14., 5.,
16., 2., 1., 10., 22., 7., 36., 1., 12., 160., 3., 24., 202., 2., 14., 14., 1., 6., 77., 2., 11., 276., 55., 340., 51., 17., 0., 2., 6., 1., 40., 28., 227., 50., 13., 132., 14., 36., 7., 0., 2., 13., 1., 77., 16., 80., 16., 41., 34., 11., 5., 1., 28., 9., 36., 10., 56., 6., 20., 9., 10., 7., 1., 0., 2., 0., 22., 4., 16., 7., 31., 5., 5., 5., 2., 0., 2., 0., 4., 2., 8., 1., 11., 4., 4., 0., 0., 2., 157., 11., 1887., 79., 101., 215., 89., 102., 63., 19., 9., 12., 12., 0., 5., 2., 6., 3., 8., 10., 37., 15., 30., 17., 28., 12., 10., 5., 10., 5., 7., 2., 2., 4., 11., 1., 0., 4., 6., 10., 2., 0., 15., 4., 2., 0., 7., 8., 3., 29., 2., 8., 2., 12., 1., 18., 0., 4., 3., 5., 35., 2., 30., 7., 14., 5., 5., 25., 10., 16., 8.,
13., 3., 1., 2., 23., 3., 35., 0., 18., 153., 3., 31., 207., 4., 14., 11., 0., 4., 80., 4., 11., 274., 59., 366., 38., 18., 0., 1., 7., 7., 48., 28., 221., 37., 6., 180., 13., 26., 2., 0., 2., 17., 8., 86., 26., 75., 13., 40., 49., 16., 1., 2., 23., 11., 37., 11., 39., 7., 32., 8., 13., 5., 1., 0., 0., 0., 21., 2., 25., 1., 25., 4., 14., 4., 1., 7., 1., 1., 3., 1., 11., 4., 12., 3., 8., 0., 3., 5., 146., 6., 1846., 84., 100., 236., 99., 105., 82., 14., 7., 19., 11., 0., 2., 6., 5., 2., 16., 6., 32., 16., 34., 18., 42., 11., 8., 3., 7., 5., 2., 1., 4., 2., 9., 3., 0., 0., 5., 17., 4., 0., 13., 5., 3., 0., 8., 5., 3., 28., 2., 10., 5., 14., 3., 20., 1., 1., 6., 9., 28., 8., 30., 9., 1., 8., 6., 29., 5., 12., 4.,
12., 3., 3., 10., 32., 5., 33., 0., 13., 142., 1., 34., 217., 4., 18., 8., 1., 5., 78., 1., 14., 305., 42., 315., 39., 18., 0., 2., 5., 1., 54., 26., 225., 36., 13., 167., 17., 37., 5., 0., 2., 11., 3., 76., 23., 97., 11., 42., 29., 16., 2., 0., 35., 13., 36., 10., 56., 6., 39., 6., 9., 7., 1., 0., 1., 0., 18., 3., 23., 5., 20., 6., 7., 4., 4., 2., 1., 0., 6., 5., 9., 4., 12., 2., 7., 1., 3., 4., 163., 8., 1906., 111., 112., 234., 101., 120., 68., 17., 14., 15., 20., 0., 0., 11., 7., 2., 8., 13., 38., 20., 27., 16., 30., 8., 8., 2., 4., 7., 4., 1., 2., 3., 5., 3., 0., 4., 3., 14., 3., 0., 9., 6., 0., 0., 2., 7., 5., 28., 4., 13., 2., 8., 2., 18., 2., 2., 5., 2., 31., 5., 37., 4., 7., 7., 9., 30., 3., 7., 5.,
9., 3., 3., 4., 36., 3., 30., 1., 15., 136., 1., 23., 211., 3., 16., 9., 0., 6., 86., 2., 15., 294., 33., 345., 44., 13., 1., 4., 5., 5., 45., 25., 220., 42., 6., 150., 13., 30., 4., 0., 2., 17., 9., 89., 10., 95., 21., 42., 46., 15., 1., 2., 25., 4., 46., 7., 43., 9., 33., 7., 14., 14., 2., 0., 0., 0., 25., 7., 24., 2., 27., 4., 18., 5., 1., 2., 0., 3., 3., 2., 9., 1., 8., 0., 9., 2., 0., 4., 148., 8., 1932., 107., 102., 229., 108., 117., 62., 10., 4., 13., 13., 0., 1., 3., 5., 3., 9., 8., 38., 9., 24., 20., 39., 13., 11., 1., 3., 7., 3., 2., 3., 4., 3., 1., 0., 4., 5., 12., 1., 0., 17., 2., 3., 0., 9., 3., 3., 29., 2., 14., 2., 12., 3., 19., 4., 4., 2., 6., 36., 2., 41., 5., 5., 11., 1., 28., 6., 3., 5.,
13., 1., 2., 7., 25., 2., 29., 0., 20., 152., 3., 23., 218., 6., 14., 9., 1., 5., 91., 2., 16., 310., 49., 301., 51., 16., 1., 1., 6., 5., 52., 31., 243., 44., 10., 149., 10., 39., 12., 0., 1., 13., 8., 64., 22., 82., 19., 41., 46., 16., 2., 1., 39., 4., 37., 8., 40., 11., 42., 6., 5., 4., 2., 0., 3., 0., 24., 5., 17., 3., 35., 6., 11., 8., 1., 4., 0., 1., 2., 2., 16., 0., 10., 2., 7., 2., 2., 3., 147., 11., 1897., 86., 100., 226., 88., 108., 66., 16., 12., 27., 17., 1., 2., 4., 7., 4., 14., 11., 37., 14., 24., 18., 50., 5., 15., 4., 5., 6., 4., 1., 2., 2., 4., 4., 0., 5., 5., 9., 3., 0., 11., 4., 3., 0., 2., 4., 4., 37., 3., 13., 1., 14., 4., 27., 1., 1., 2., 6., 25., 2., 33., 5., 5., 4., 8., 32., 8., 9., 4.,
15., 1., 1., 9., 24., 5., 40., 1., 14., 154., 1., 23., 194., 9., 20., 11., 0., 8., 66., 3., 14., 257., 50., 296., 36., 22., 0., 1., 4., 12., 47., 37., 249., 51., 10., 158., 8., 46., 3., 0., 1., 12., 8., 75., 12., 82., 10., 38., 43., 14., 3., 0., 25., 5., 35., 9., 45., 7., 30., 4., 8., 4., 3., 0., 0., 0., 28., 6., 11., 2., 29., 4., 13., 1., 4., 0., 1., 3., 5., 2., 15., 2., 5., 3., 7., 3., 2., 3., 119., 12., 1859., 79., 95., 225., 82., 114., 61., 18., 12., 14., 10., 0., 2., 4., 4., 3., 9., 5., 31., 17., 44., 9., 46., 10., 5., 1., 6., 6., 2., 5., 4., 4., 7., 1., 0., 4., 5., 17., 1., 0., 15., 5., 2., 0., 5., 2., 4., 28., 8., 14., 4., 14., 4., 19., 4., 7., 2., 3., 21., 4., 28., 5., 4., 5., 5., 45., 8., 17., 4.,
5., 2., 4., 9., 22., 6., 36., 0., 8., 159., 2., 38., 222., 8., 15., 5., 3., 2., 77., 2., 24., 278., 43., 339., 40., 12., 0., 0., 10., 3., 40., 34., 211., 48., 11., 143., 12., 38., 5., 0., 0., 17., 13., 81., 17., 74., 21., 41., 49., 16., 4., 1., 26., 10., 34., 7., 51., 6., 32., 6., 7., 8., 6., 0., 1., 0., 17., 6., 10., 2., 38., 5., 18., 6., 3., 3., 1., 3., 1., 2., 8., 2., 7., 2., 10., 0., 2., 5., 140., 8., 1829., 94., 98., 231., 87., 110., 65., 13., 11., 21., 12., 1., 4., 6., 4., 3., 9., 13., 27., 23., 31., 18., 30., 6., 14., 2., 2., 11., 3., 2., 2., 3., 10., 0., 0., 2., 8., 11., 3., 0., 13., 4., 6., 0., 2., 2., 4., 31., 3., 13., 0., 15., 3., 18., 4., 3., 3., 6., 33., 4., 35., 5., 5., 4., 5., 34., 7., 9., 4.,
15., 4., 2., 8., 21., 5., 30., 0., 22., 175., 3., 26., 218., 6., 18., 9., 1., 10., 84., 2., 20., 319., 40., 319., 34., 13., 0., 3., 6., 5., 47., 26., 222., 29., 7., 155., 17., 39., 3., 0., 3., 30., 6., 83., 20., 66., 17., 31., 47., 12., 2., 1., 16., 2., 32., 13., 53., 12., 31., 3., 9., 7., 1., 0., 1., 0., 23., 4., 15., 5., 25., 5., 10., 4., 0., 1., 0., 0., 4., 2., 19., 6., 9., 5., 7., 2., 2., 3., 153., 12., 1836., 101., 115., 216., 105., 129., 67., 21., 11., 21., 8., 1., 1., 8., 3., 4., 9., 5., 34., 21., 35., 11., 37., 5., 7., 6., 7., 3., 6., 1., 4., 2., 8., 4., 0., 4., 7., 14., 2., 0., 9., 2., 4., 0., 10., 3., 5., 30., 8., 12., 3., 19., 4., 27., 3., 2., 5., 4., 22., 6., 23., 5., 3., 5., 3., 27., 6., 7., 3.,
5., 1., 1., 0., 4., 4., 6., 2., 6., 19., 1., 20., 20., 0., 15., 3., 0., 1., 15., 4., 1., 26., 11., 21., 31., 2., 4., 2., 3., 3., 8., 4., 22., 14., 7., 17., 3., 9., 8., 2., 0., 2., 0., 11., 10., 27., 39., 15., 24., 9., 3., 3., 7., 6., 6., 1., 8., 11., 10., 14., 10., 22., 10., 2., 0., 0., 4., 1., 4., 2., 5., 5., 3., 4., 2., 8., 1., 2., 1., 4., 3., 0., 1., 5., 1., 5., 5., 1., 4., 2., 3., 0., 3., 1., 3., 4., 2., 0., 3., 1., 2., 3., 6., 3., 2., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 7., 8., 4., 9., 2., 10., 21., 1., 9., 18., 1., 16., 0., 2., 1., 13., 3., 3., 23., 7., 14., 33., 4., 2., 0., 2., 2., 9., 5., 26., 19., 1., 13., 6., 15., 12., 3., 0., 4., 1., 18., 9., 12., 50., 12., 18., 10., 4., 0., 3., 1., 8., 5., 9., 10., 5., 22., 6., 18., 9., 4., 2., 1., 13., 3., 3., 1., 8., 5., 7., 6., 0., 3., 3., 3., 2., 5., 0., 0., 2., 4., 1., 5., 4., 5., 1., 2., 2., 1., 1., 0., 2., 5., 1., 0., 1., 3., 5., 2., 2., 4., 2., 0., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 4., 3., 1., 11., 0., 10., 24., 0., 17., 26., 1., 21., 3., 0., 4., 28., 3., 7., 36., 9., 29., 35., 4., 2., 1., 2., 1., 7., 6., 27., 13., 4., 20., 3., 13., 4., 2., 2., 3., 0., 12., 13., 14., 47., 16., 18., 7., 2., 1., 2., 1., 6., 4., 10., 6., 12., 15., 5., 33., 8., 2., 0., 1., 6., 0., 1., 3., 6., 3., 4., 4., 2., 4., 1., 3., 0., 2., 2., 0., 2., 2., 3., 10., 4., 3., 3., 2., 2., 1., 4., 0., 2., 9., 2., 0., 4., 1., 3., 2., 1., 2., 0., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 5., 6., 3., 5., 9., 0., 3., 14., 1., 10., 23., 0., 16., 3., 2., 2., 24., 0., 5., 9., 17., 12., 28., 8., 1., 4., 4., 4., 10., 5., 27., 12., 5., 14., 6., 15., 7., 1., 1., 2., 1., 13., 10., 25., 60., 15., 16., 6., 2., 1., 6., 1., 13., 5., 9., 5., 5., 13., 10., 21., 6., 3., 1., 1., 6., 0., 2., 1., 5., 2., 2., 4., 1., 1., 3., 2., 0., 3., 0., 0., 3., 2., 1., 5., 0., 6., 1., 2., 4., 0., 0., 1., 2., 5., 2., 0., 5., 2., 2., 4., 2., 1., 3., 0., 4., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 9., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 0., 3., 10., 1., 2., 1., 6., 15., 0., 11., 24., 1., 13., 2., 0., 4., 8., 1., 7., 23., 12., 24., 24., 6., 0., 2., 1., 2., 5., 7., 25., 13., 4., 16., 5., 13., 12., 0., 3., 6., 2., 13., 7., 15., 46., 13., 22., 9., 5., 1., 6., 2., 3., 2., 15., 7., 10., 5., 3., 21., 9., 4., 0., 1., 3., 2., 4., 2., 2., 2., 1., 1., 0., 4., 2., 2., 2., 0., 0., 0., 2., 4., 0., 5., 4., 3., 1., 3., 5., 0., 3., 1., 3., 5., 1., 0., 2., 3., 1., 1., 5., 6., 5., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 0., 2., 8., 4., 5., 0., 9., 10., 1., 11., 28., 4., 11., 2., 1., 3., 14., 2., 3., 26., 9., 40., 28., 4., 0., 2., 0., 2., 5., 4., 25., 15., 5., 26., 8., 11., 4., 2., 3., 6., 3., 10., 10., 19., 40., 10., 22., 17., 5., 0., 7., 3., 5., 0., 10., 8., 8., 16., 7., 29., 6., 4., 2., 1., 12., 1., 4., 4., 8., 3., 4., 2., 1., 6., 2., 2., 1., 3., 1., 0., 3., 1., 0., 5., 3., 6., 2., 4., 2., 0., 3., 0., 1., 6., 0., 0., 1., 1., 3., 4., 0., 2., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 9., 9., 1., 3., 1., 5., 37., 2., 14., 20., 0., 12., 3., 0., 0., 12., 1., 2., 19., 10., 16., 25., 6., 1., 2., 4., 3., 7., 3., 28., 12., 4., 15., 5., 12., 11., 1., 2., 5., 2., 13., 16., 15., 40., 14., 19., 15., 6., 2., 6., 2., 3., 3., 7., 5., 9., 18., 12., 28., 8., 2., 1., 1., 8., 0., 5., 3., 8., 6., 4., 7., 2., 5., 4., 3., 3., 1., 1., 0., 2., 0., 1., 8., 4., 2., 2., 2., 3., 2., 1., 1., 2., 7., 0., 0., 2., 1., 2., 0., 1., 1., 2., 0., 3., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 2., 4., 4., 7., 3., 10., 0., 6., 13., 1., 15., 15., 0., 15., 3., 2., 2., 12., 0., 3., 10., 15., 51., 21., 3., 0., 1., 2., 4., 8., 7., 21., 19., 5., 15., 3., 12., 8., 4., 3., 7., 2., 9., 10., 18., 45., 9., 22., 6., 7., 0., 6., 3., 5., 1., 11., 5., 14., 20., 3., 19., 4., 0., 3., 2., 7., 1., 4., 0., 5., 4., 7., 4., 1., 5., 4., 1., 0., 1., 1., 0., 2., 2., 1., 5., 0., 6., 1., 1., 4., 1., 1., 0., 3., 6., 1., 0., 3., 2., 3., 0., 2., 1., 2., 2., 0., 0., 0., 0., 0., 6., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 1., 8., 1., 6., 3., 4., 28., 4., 14., 22., 0., 16., 1., 1., 3., 13., 3., 4., 25., 8., 28., 24., 6., 0., 1., 4., 1., 7., 13., 32., 18., 4., 23., 6., 16., 12., 4., 3., 6., 1., 9., 11., 10., 44., 14., 31., 9., 1., 2., 5., 1., 7., 4., 8., 8., 4., 13., 9., 24., 3., 3., 1., 0., 4., 3., 4., 0., 6., 2., 1., 5., 3., 8., 4., 0., 0., 1., 2., 0., 4., 3., 2., 6., 2., 7., 3., 0., 3., 2., 3., 2., 2., 10., 2., 0., 4., 0., 1., 3., 2., 2., 3., 1., 4., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 2., 8., 5., 5., 0., 9., 17., 3., 17., 32., 1., 16., 4., 0., 2., 16., 1., 4., 29., 13., 30., 29., 2., 0., 0., 5., 1., 5., 4., 18., 20., 3., 21., 1., 15., 10., 0., 1., 6., 5., 9., 15., 17., 51., 12., 20., 10., 4., 1., 4., 1., 5., 4., 15., 7., 11., 14., 5., 18., 5., 2., 1., 1., 10., 1., 2., 3., 7., 3., 2., 4., 3., 4., 4., 5., 1., 1., 3., 0., 3., 0., 1., 6., 2., 4., 1., 1., 4., 1., 2., 1., 2., 4., 5., 0., 2., 2., 2., 0., 2., 2., 3., 1., 3., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 3., 8., 1., 8., 0., 5., 22., 1., 13., 21., 0., 14., 6., 1., 3., 22., 1., 4., 23., 15., 30., 29., 5., 1., 3., 2., 4., 11., 7., 10., 28., 6., 19., 5., 8., 11., 1., 0., 4., 5., 14., 14., 9., 37., 11., 25., 7., 1., 2., 10., 3., 6., 2., 13., 4., 9., 14., 7., 22., 12., 3., 1., 1., 4., 0., 2., 4., 8., 6., 5., 2., 2., 1., 2., 2., 1., 2., 1., 0., 4., 3., 4., 4., 1., 2., 1., 1., 5., 3., 2., 1., 2., 5., 4., 0., 3., 4., 0., 1., 2., 5., 3., 0., 2., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 4., 2., 11., 2., 6., 0., 6., 13., 0., 18., 13., 1., 15., 5., 2., 4., 20., 0., 3., 18., 9., 16., 30., 9., 0., 0., 1., 3., 10., 10., 27., 11., 3., 22., 2., 15., 11., 1., 0., 5., 3., 12., 12., 11., 34., 12., 18., 14., 4., 1., 11., 2., 9., 1., 11., 3., 6., 10., 11., 14., 14., 3., 0., 0., 6., 1., 4., 5., 6., 3., 7., 1., 3., 5., 2., 1., 0., 5., 1., 0., 5., 2., 2., 2., 1., 5., 1., 4., 5., 0., 0., 1., 1., 6., 4., 0., 0., 0., 1., 0., 5., 1., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 0., 1., 9., 2., 7., 0., 5., 26., 2., 10., 23., 2., 16., 0., 0., 3., 18., 0., 4., 27., 10., 39., 25., 7., 0., 2., 2., 3., 6., 4., 19., 16., 2., 13., 4., 10., 10., 2., 1., 1., 0., 19., 5., 25., 49., 6., 15., 19., 7., 0., 1., 0., 9., 5., 7., 11., 5., 19., 6., 23., 5., 3., 0., 3., 3., 0., 2., 1., 8., 6., 3., 1., 2., 3., 4., 1., 0., 2., 1., 0., 3., 0., 2., 6., 0., 4., 2., 6., 5., 2., 3., 0., 3., 7., 0., 0., 4., 0., 4., 1., 4., 4., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 0., 5., 11., 3., 7., 2., 7., 18., 2., 16., 24., 2., 16., 4., 1., 4., 31., 4., 2., 35., 17., 33., 30., 5., 0., 0., 1., 0., 3., 1., 20., 7., 2., 20., 3., 13., 7., 1., 0., 3., 0., 15., 15., 21., 40., 20., 27., 7., 4., 4., 9., 3., 5., 4., 16., 4., 6., 13., 6., 21., 7., 2., 2., 0., 8., 2., 3., 0., 8., 2., 6., 0., 4., 4., 6., 1., 2., 2., 3., 0., 1., 3., 4., 5., 1., 1., 2., 3., 5., 0., 1., 0., 2., 9., 2., 0., 1., 1., 2., 1., 2., 2., 4., 1., 3., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 5., 1., 5., 3., 7., 1., 8., 36., 1., 12., 22., 1., 4., 4., 3., 3., 19., 1., 3., 21., 11., 22., 25., 6., 1., 0., 3., 0., 5., 8., 24., 10., 5., 15., 2., 16., 11., 2., 0., 2., 1., 12., 13., 20., 51., 9., 27., 7., 1., 1., 9., 6., 3., 2., 9., 6., 9., 20., 4., 23., 6., 4., 1., 0., 9., 3., 3., 4., 8., 4., 4., 4., 2., 6., 1., 2., 1., 1., 2., 0., 2., 1., 1., 8., 2., 5., 4., 1., 3., 0., 1., 1., 2., 4., 1., 0., 1., 4., 3., 6., 1., 0., 8., 2., 0., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 3., 2., 6., 5., 5., 2., 0., 6., 13., 0., 18., 23., 0., 22., 1., 0., 4., 26., 1., 3., 24., 10., 18., 28., 4., 0., 1., 7., 3., 8., 12., 26., 17., 2., 17., 7., 21., 9., 1., 4., 3., 3., 12., 13., 15., 54., 12., 25., 8., 7., 1., 3., 2., 12., 3., 7., 5., 9., 13., 5., 25., 6., 1., 0., 1., 10., 2., 6., 2., 9., 2., 2., 4., 0., 4., 5., 1., 0., 2., 3., 0., 3., 4., 2., 8., 3., 4., 4., 4., 5., 2., 2., 3., 2., 8., 3., 0., 1., 2., 0., 4., 0., 2., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 5., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 3., 9., 5., 5., 0., 7., 19., 1., 17., 14., 0., 16., 3., 2., 3., 26., 2., 3., 31., 12., 35., 19., 4., 0., 0., 2., 1., 11., 6., 20., 18., 1., 8., 7., 19., 8., 2., 1., 3., 2., 19., 21., 15., 44., 13., 24., 13., 2., 2., 3., 4., 7., 0., 13., 3., 7., 15., 4., 14., 4., 2., 2., 1., 5., 1., 4., 2., 8., 0., 5., 5., 1., 7., 4., 4., 4., 2., 4., 0., 2., 5., 2., 9., 4., 3., 3., 4., 5., 0., 0., 1., 4., 5., 1., 0., 3., 1., 1., 5., 4., 1., 2., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 5., 1., 11., 17., 4., 35., 0., 9., 151., 1., 23., 208., 5., 19., 9., 2., 7., 56., 1., 19., 297., 44., 367., 43., 17., 1., 2., 9., 3., 48., 36., 251., 33., 7., 144., 12., 48., 6., 0., 5., 15., 8., 56., 21., 91., 11., 23., 48., 17., 2., 2., 18., 7., 41., 14., 51., 8., 22., 4., 14., 7., 3., 0., 1., 0., 28., 5., 9., 4., 27., 3., 14., 2., 4., 7., 0., 1., 4., 0., 13., 4., 10., 0., 16., 1., 3., 6., 155., 8., 1789., 87., 104., 226., 96., 105., 72., 13., 16., 17., 12., 1., 1., 7., 4., 4., 13., 10., 42., 14., 27., 17., 30., 10., 12., 2., 4., 8., 10., 3., 3., 2., 10., 1., 0., 3., 6., 12., 2., 0., 12., 4., 1., 0., 5., 3., 4., 23., 5., 9., 5., 11., 1., 23., 0., 2., 4., 5., 21., 4., 28., 6., 3., 8., 4., 30., 7., 17., 6.,
17., 3., 3., 11., 17., 6., 28., 2., 13., 169., 3., 24., 197., 4., 15., 8., 0., 4., 88., 3., 16., 298., 41., 317., 32., 16., 0., 2., 5., 8., 50., 32., 252., 37., 10., 164., 14., 34., 4., 0., 1., 14., 5., 78., 29., 70., 6., 27., 48., 12., 2., 1., 29., 7., 39., 8., 49., 11., 26., 9., 6., 10., 2., 0., 2., 0., 24., 11., 14., 4., 28., 8., 9., 3., 1., 2., 0., 0., 1., 2., 9., 2., 8., 3., 6., 1., 0., 4., 141., 14., 1815., 97., 123., 209., 115., 119., 69., 19., 21., 29., 13., 2., 2., 5., 8., 2., 11., 10., 36., 19., 48., 17., 37., 8., 15., 5., 5., 5., 4., 1., 1., 5., 8., 1., 0., 4., 5., 14., 0., 0., 7., 3., 4., 0., 9., 1., 4., 33., 0., 8., 0., 12., 2., 22., 2., 3., 4., 4., 22., 6., 29., 4., 5., 5., 3., 29., 7., 12., 3.,
14., 1., 2., 5., 18., 9., 28., 1., 16., 177., 4., 24., 235., 5., 16., 6., 0., 3., 75., 1., 18., 292., 33., 305., 39., 11., 0., 1., 4., 6., 49., 21., 244., 30., 8., 161., 10., 33., 4., 0., 1., 14., 9., 54., 29., 81., 18., 29., 39., 13., 4., 1., 36., 5., 47., 10., 48., 7., 30., 10., 11., 10., 4., 0., 0., 0., 31., 4., 8., 4., 40., 8., 7., 4., 3., 0., 2., 1., 2., 0., 10., 3., 7., 3., 7., 1., 0., 3., 162., 9., 1823., 86., 97., 210., 91., 104., 80., 16., 8., 23., 16., 0., 0., 5., 3., 7., 11., 5., 32., 16., 32., 14., 47., 4., 8., 5., 5., 12., 5., 3., 5., 3., 11., 1., 0., 4., 3., 21., 5., 0., 12., 4., 4., 0., 5., 7., 1., 30., 1., 17., 3., 10., 2., 21., 1., 3., 8., 3., 26., 7., 25., 4., 1., 9., 3., 38., 12., 13., 5.,
15., 4., 3., 9., 29., 4., 29., 2., 12., 148., 3., 21., 208., 6., 25., 9., 1., 6., 74., 0., 13., 306., 47., 320., 37., 11., 0., 2., 5., 8., 36., 32., 225., 42., 9., 174., 15., 36., 3., 0., 2., 16., 7., 77., 22., 83., 18., 31., 52., 13., 0., 0., 29., 9., 44., 13., 40., 6., 31., 4., 10., 6., 3., 0., 0., 0., 22., 5., 17., 5., 29., 2., 11., 7., 1., 1., 2., 1., 2., 1., 8., 2., 7., 3., 12., 2., 2., 5., 137., 10., 1895., 85., 125., 220., 112., 111., 75., 13., 17., 18., 16., 0., 2., 8., 6., 4., 7., 3., 33., 19., 30., 19., 41., 7., 12., 5., 5., 4., 9., 1., 2., 2., 7., 4., 0., 3., 5., 9., 0., 0., 13., 3., 2., 0., 3., 5., 7., 33., 4., 8., 5., 13., 1., 17., 7., 3., 3., 5., 25., 9., 31., 3., 4., 7., 5., 26., 7., 4., 3.,
13., 4., 0., 12., 28., 4., 24., 0., 10., 167., 2., 24., 211., 5., 19., 9., 1., 4., 82., 2., 10., 265., 31., 316., 48., 11., 0., 5., 4., 5., 48., 33., 228., 45., 7., 163., 13., 51., 6., 0., 3., 22., 9., 84., 15., 78., 16., 34., 43., 13., 3., 1., 20., 4., 46., 8., 59., 7., 26., 1., 14., 8., 1., 0., 1., 0., 23., 4., 18., 2., 42., 1., 10., 2., 1., 4., 0., 1., 0., 2., 11., 3., 6., 4., 11., 2., 0., 5., 141., 7., 1863., 87., 111., 208., 114., 117., 70., 17., 14., 25., 20., 1., 0., 5., 9., 5., 11., 15., 38., 20., 29., 20., 45., 16., 8., 7., 10., 11., 6., 5., 1., 3., 10., 5., 0., 3., 8., 17., 3., 0., 7., 4., 6., 0., 6., 1., 3., 33., 3., 8., 0., 13., 3., 22., 0., 5., 2., 3., 27., 3., 26., 7., 3., 2., 4., 30., 3., 13., 5.,
7., 1., 1., 6., 28., 5., 37., 0., 15., 155., 5., 37., 199., 3., 17., 3., 1., 5., 87., 0., 19., 302., 37., 327., 44., 22., 1., 1., 9., 2., 49., 39., 230., 40., 12., 177., 13., 34., 4., 0., 0., 21., 11., 83., 21., 87., 13., 30., 57., 14., 2., 0., 25., 15., 42., 7., 55., 11., 31., 4., 6., 7., 2., 0., 3., 0., 18., 1., 10., 7., 33., 1., 8., 4., 1., 1., 1., 0., 5., 2., 8., 2., 6., 4., 8., 2., 0., 8., 155., 3., 1834., 90., 104., 235., 123., 126., 66., 16., 10., 10., 10., 2., 0., 9., 4., 4., 7., 6., 30., 11., 32., 20., 45., 2., 10., 4., 5., 8., 3., 1., 1., 2., 10., 1., 0., 7., 7., 11., 4., 0., 9., 3., 2., 0., 4., 4., 4., 27., 4., 9., 4., 8., 2., 23., 1., 5., 0., 6., 24., 9., 31., 5., 7., 8., 3., 34., 5., 13., 8.,
16., 1., 3., 9., 18., 8., 28., 1., 14., 135., 2., 26., 223., 4., 9., 4., 1., 8., 86., 1., 11., 297., 48., 332., 35., 20., 1., 0., 10., 7., 45., 45., 226., 39., 12., 141., 15., 34., 5., 0., 0., 13., 8., 90., 21., 90., 9., 29., 47., 9., 3., 0., 32., 9., 49., 12., 47., 7., 39., 9., 11., 7., 2., 0., 1., 0., 23., 2., 20., 3., 24., 9., 9., 7., 3., 3., 3., 0., 2., 2., 11., 5., 4., 3., 9., 0., 0., 1., 153., 11., 1870., 111., 93., 237., 95., 99., 63., 26., 17., 20., 10., 0., 0., 3., 5., 4., 2., 9., 35., 17., 29., 22., 38., 6., 13., 3., 4., 9., 7., 0., 2., 7., 6., 2., 0., 7., 1., 17., 1., 0., 4., 4., 3., 0., 7., 1., 2., 41., 2., 7., 4., 7., 3., 27., 1., 3., 5., 5., 26., 5., 26., 7., 8., 6., 0., 30., 5., 14., 4.,
17., 0., 2., 15., 23., 9., 30., 0., 20., 150., 1., 33., 202., 9., 14., 9., 2., 7., 90., 3., 18., 297., 48., 335., 57., 22., 2., 0., 6., 4., 44., 36., 226., 37., 4., 144., 15., 46., 4., 0., 1., 16., 6., 97., 17., 94., 21., 34., 40., 11., 2., 0., 19., 4., 41., 8., 55., 8., 26., 6., 12., 10., 0., 0., 0., 0., 15., 10., 21., 4., 25., 10., 8., 2., 2., 5., 0., 0., 3., 0., 16., 0., 6., 2., 9., 0., 1., 5., 125., 9., 1903., 86., 98., 234., 100., 110., 63., 18., 14., 14., 16., 0., 1., 1., 6., 4., 4., 11., 49., 16., 41., 14., 45., 4., 13., 6., 4., 4., 3., 1., 4., 1., 9., 2., 0., 7., 9., 16., 3., 0., 6., 3., 4., 0., 5., 5., 1., 40., 0., 14., 2., 17., 3., 23., 7., 3., 2., 6., 17., 5., 29., 9., 4., 9., 5., 32., 8., 11., 6.,
10., 1., 4., 6., 29., 5., 29., 0., 16., 177., 4., 27., 193., 5., 15., 14., 0., 6., 61., 2., 15., 253., 48., 321., 36., 18., 0., 4., 13., 4., 47., 29., 228., 31., 7., 180., 21., 48., 8., 0., 4., 21., 4., 67., 21., 66., 13., 32., 62., 13., 3., 1., 15., 9., 39., 12., 46., 5., 39., 2., 8., 4., 2., 0., 3., 0., 18., 3., 9., 4., 31., 5., 3., 6., 3., 4., 3., 0., 2., 2., 9., 3., 3., 2., 9., 0., 0., 2., 126., 11., 1885., 82., 91., 223., 114., 115., 78., 13., 15., 21., 12., 0., 4., 5., 4., 3., 3., 5., 37., 24., 35., 15., 44., 3., 18., 4., 4., 6., 6., 3., 2., 7., 8., 4., 0., 4., 2., 19., 2., 0., 9., 7., 2., 0., 6., 2., 3., 30., 3., 10., 5., 9., 2., 23., 1., 2., 4., 2., 23., 5., 27., 6., 4., 7., 5., 24., 10., 11., 2.,
18., 0., 4., 10., 31., 10., 28., 0., 17., 145., 0., 28., 198., 4., 11., 7., 0., 1., 79., 1., 15., 262., 32., 336., 38., 11., 2., 0., 7., 4., 43., 38., 231., 47., 14., 178., 13., 32., 5., 0., 5., 26., 7., 66., 29., 84., 15., 34., 38., 13., 4., 1., 20., 6., 29., 10., 63., 11., 17., 6., 13., 8., 1., 0., 0., 0., 22., 5., 10., 3., 33., 4., 16., 4., 2., 3., 6., 1., 4., 1., 11., 1., 5., 5., 2., 2., 1., 7., 162., 9., 1943., 97., 102., 200., 91., 110., 66., 20., 22., 20., 9., 0., 1., 6., 8., 5., 11., 13., 22., 17., 32., 13., 44., 5., 12., 10., 7., 7., 1., 2., 5., 0., 9., 3., 0., 5., 2., 16., 3., 0., 13., 3., 3., 0., 2., 4., 6., 33., 7., 13., 3., 9., 7., 19., 2., 1., 4., 7., 26., 5., 40., 3., 5., 5., 2., 33., 4., 15., 8.,
16., 4., 4., 10., 28., 2., 32., 1., 14., 153., 1., 31., 215., 14., 20., 4., 1., 8., 86., 5., 15., 269., 45., 330., 47., 14., 0., 1., 5., 7., 49., 40., 223., 44., 9., 173., 13., 47., 5., 0., 0., 16., 7., 82., 17., 94., 21., 34., 41., 13., 3., 1., 16., 7., 41., 9., 45., 7., 47., 8., 14., 7., 3., 0., 2., 0., 20., 5., 10., 2., 23., 5., 13., 4., 3., 2., 1., 1., 3., 2., 11., 0., 4., 4., 8., 0., 0., 2., 138., 1., 1868., 94., 87., 246., 82., 103., 74., 10., 17., 24., 14., 0., 1., 9., 2., 4., 9., 15., 41., 13., 46., 11., 51., 7., 6., 4., 9., 7., 3., 1., 4., 4., 4., 4., 0., 3., 7., 8., 4., 0., 8., 5., 3., 0., 5., 0., 3., 31., 3., 10., 5., 13., 1., 19., 3., 5., 7., 2., 35., 2., 32., 10., 10., 5., 7., 19., 6., 15., 6.,
15., 3., 1., 3., 29., 6., 27., 1., 15., 148., 1., 31., 219., 4., 16., 7., 0., 4., 73., 2., 12., 251., 50., 351., 37., 20., 1., 1., 7., 8., 49., 39., 233., 31., 10., 166., 13., 45., 7., 0., 1., 16., 4., 79., 16., 84., 15., 22., 43., 11., 4., 1., 24., 5., 37., 19., 49., 11., 35., 7., 12., 5., 6., 0., 2., 0., 26., 9., 17., 3., 37., 4., 16., 5., 1., 5., 1., 0., 4., 3., 18., 4., 10., 0., 11., 0., 0., 2., 148., 3., 1827., 107., 97., 222., 75., 118., 54., 19., 10., 18., 11., 0., 2., 7., 1., 3., 7., 9., 42., 16., 28., 14., 38., 7., 8., 5., 4., 8., 11., 3., 6., 3., 11., 3., 0., 4., 5., 18., 4., 0., 10., 4., 2., 0., 5., 3., 1., 33., 3., 15., 6., 16., 2., 21., 4., 2., 2., 6., 25., 4., 32., 3., 6., 2., 4., 22., 7., 8., 4.,
15., 3., 1., 18., 22., 10., 22., 1., 16., 161., 5., 19., 211., 7., 15., 5., 0., 6., 67., 2., 16., 318., 38., 340., 46., 18., 0., 3., 8., 5., 50., 34., 261., 44., 5., 154., 17., 37., 5., 0., 0., 13., 5., 91., 18., 78., 12., 34., 46., 18., 2., 1., 28., 13., 39., 10., 48., 6., 38., 6., 12., 5., 1., 0., 0., 0., 23., 5., 19., 1., 26., 5., 9., 8., 1., 2., 1., 1., 1., 5., 9., 3., 7., 3., 7., 2., 1., 4., 150., 7., 1921., 84., 110., 198., 104., 111., 59., 17., 14., 14., 14., 1., 0., 6., 1., 2., 11., 4., 34., 16., 26., 17., 41., 6., 16., 3., 3., 7., 4., 3., 0., 1., 9., 5., 0., 3., 6., 8., 3., 0., 13., 4., 3., 0., 3., 2., 2., 31., 4., 11., 5., 11., 4., 16., 0., 1., 5., 3., 26., 9., 31., 6., 10., 10., 6., 38., 7., 5., 6.,
16., 0., 2., 6., 27., 3., 36., 0., 23., 180., 6., 27., 235., 5., 12., 14., 0., 7., 93., 3., 19., 303., 50., 316., 41., 19., 1., 3., 7., 2., 42., 33., 238., 47., 11., 168., 15., 42., 8., 0., 1., 23., 2., 74., 23., 82., 14., 32., 51., 9., 3., 2., 20., 6., 46., 10., 47., 7., 24., 3., 12., 5., 2., 0., 2., 0., 25., 1., 13., 1., 26., 8., 6., 8., 2., 6., 0., 1., 3., 0., 13., 3., 11., 2., 9., 4., 0., 4., 133., 11., 1865., 106., 99., 218., 85., 111., 70., 16., 7., 17., 17., 1., 4., 7., 3., 8., 9., 3., 42., 16., 23., 13., 37., 11., 12., 3., 3., 8., 2., 1., 6., 2., 12., 6., 0., 2., 0., 11., 5., 0., 9., 3., 4., 0., 3., 1., 5., 27., 6., 10., 4., 10., 6., 25., 3., 5., 6., 4., 37., 5., 34., 7., 7., 7., 4., 24., 2., 13., 4.,
17., 2., 1., 5., 11., 3., 5., 0., 8., 24., 2., 14., 29., 0., 27., 3., 0., 3., 11., 2., 4., 25., 11., 13., 26., 6., 1., 0., 3., 1., 6., 10., 33., 13., 4., 9., 6., 7., 8., 2., 0., 3., 2., 16., 5., 19., 58., 15., 22., 8., 5., 1., 0., 2., 6., 2., 8., 6., 6., 15., 10., 22., 12., 1., 1., 0., 5., 2., 6., 1., 1., 2., 2., 3., 3., 2., 4., 3., 2., 2., 0., 0., 0., 2., 2., 5., 1., 7., 4., 2., 3., 2., 5., 2., 3., 10., 0., 0., 3., 2., 3., 4., 1., 1., 2., 1., 4., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 9., 7., 1., 8., 0., 5., 19., 1., 10., 29., 0., 19., 2., 0., 1., 17., 1., 7., 30., 13., 25., 18., 9., 1., 1., 5., 1., 18., 9., 24., 9., 4., 19., 8., 11., 5., 2., 2., 2., 2., 14., 13., 15., 42., 12., 19., 8., 4., 0., 3., 3., 8., 3., 13., 7., 4., 26., 7., 22., 8., 6., 1., 1., 7., 1., 1., 2., 4., 4., 4., 3., 2., 1., 2., 1., 3., 0., 2., 0., 2., 1., 1., 6., 2., 5., 0., 0., 3., 2., 1., 3., 2., 12., 1., 0., 1., 2., 3., 3., 1., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 4., 8., 4., 8., 1., 8., 28., 1., 10., 24., 0., 16., 5., 2., 2., 10., 3., 4., 23., 11., 32., 23., 5., 0., 1., 5., 1., 13., 7., 24., 11., 4., 11., 9., 14., 9., 0., 2., 3., 1., 13., 12., 16., 50., 6., 19., 8., 2., 0., 3., 1., 6., 3., 9., 5., 10., 15., 6., 17., 6., 2., 0., 0., 10., 0., 7., 0., 6., 1., 7., 3., 2., 3., 2., 0., 2., 1., 3., 0., 3., 6., 2., 8., 4., 9., 2., 1., 4., 1., 3., 4., 4., 8., 2., 0., 2., 1., 2., 3., 4., 0., 2., 0., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 5., 6., 2., 1., 1., 8., 31., 0., 16., 21., 0., 16., 5., 0., 0., 21., 0., 1., 24., 12., 34., 23., 7., 1., 0., 3., 4., 13., 6., 33., 22., 2., 11., 3., 15., 11., 3., 1., 3., 2., 14., 9., 21., 39., 15., 28., 10., 5., 1., 7., 4., 7., 1., 10., 10., 12., 23., 7., 27., 9., 6., 0., 0., 5., 3., 4., 4., 2., 5., 4., 5., 2., 9., 3., 2., 1., 2., 3., 0., 1., 2., 4., 4., 5., 4., 0., 5., 5., 1., 3., 0., 4., 8., 1., 0., 0., 2., 0., 5., 0., 2., 2., 2., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 3., 13., 2., 9., 2., 2., 33., 2., 8., 23., 1., 14., 7., 1., 2., 19., 1., 5., 36., 11., 23., 24., 1., 1., 2., 4., 4., 4., 14., 20., 19., 6., 24., 3., 18., 6., 0., 0., 6., 4., 16., 10., 13., 42., 8., 23., 11., 6., 2., 6., 3., 5., 6., 7., 7., 9., 16., 9., 22., 16., 3., 2., 0., 4., 0., 4., 6., 4., 8., 3., 6., 1., 1., 3., 5., 0., 3., 4., 0., 0., 2., 2., 6., 2., 5., 2., 3., 1., 1., 4., 0., 3., 2., 6., 0., 3., 1., 3., 1., 0., 3., 1., 1., 1., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 2., 8., 3., 6., 0., 3., 22., 1., 10., 26., 1., 21., 2., 2., 4., 19., 6., 3., 18., 11., 34., 29., 8., 1., 2., 0., 2., 7., 5., 31., 17., 5., 19., 1., 17., 9., 1., 0., 5., 3., 16., 8., 17., 36., 8., 25., 7., 3., 2., 5., 2., 5., 3., 9., 5., 8., 14., 4., 29., 6., 4., 0., 3., 8., 0., 0., 0., 3., 1., 4., 4., 2., 4., 4., 1., 1., 2., 0., 0., 6., 4., 1., 4., 3., 4., 2., 3., 7., 0., 0., 1., 0., 4., 0., 0., 3., 1., 2., 4., 0., 1., 3., 1., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 1., 2., 6., 10., 4., 10., 0., 5., 33., 1., 12., 22., 2., 13., 1., 1., 1., 18., 2., 7., 24., 13., 29., 28., 14., 0., 1., 5., 2., 7., 7., 30., 19., 1., 19., 4., 20., 6., 3., 2., 4., 2., 9., 16., 15., 48., 13., 15., 9., 6., 1., 11., 1., 4., 2., 13., 9., 9., 11., 5., 18., 11., 3., 2., 2., 9., 1., 0., 3., 6., 1., 0., 3., 4., 7., 3., 2., 2., 0., 1., 0., 4., 2., 2., 10., 4., 1., 2., 4., 1., 0., 3., 0., 3., 9., 2., 0., 4., 2., 2., 4., 3., 2., 2., 1., 5., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 7., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 4., 7., 6., 5., 4., 3., 5., 21., 0., 9., 25., 3., 15., 4., 0., 0., 14., 1., 7., 31., 10., 24., 31., 6., 1., 1., 5., 4., 8., 6., 24., 14., 3., 9., 9., 18., 9., 5., 0., 5., 3., 17., 9., 12., 47., 15., 12., 8., 6., 0., 7., 4., 5., 4., 10., 6., 12., 10., 4., 18., 13., 5., 1., 1., 6., 3., 7., 3., 6., 5., 6., 4., 2., 7., 3., 1., 1., 1., 0., 0., 4., 2., 3., 4., 2., 2., 1., 1., 0., 1., 0., 1., 2., 4., 2., 0., 2., 2., 1., 3., 2., 3., 3., 0., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 3., 1., 8., 1., 2., 2., 6., 36., 1., 18., 19., 1., 16., 0., 2., 1., 28., 2., 1., 24., 9., 18., 31., 3., 1., 1., 1., 1., 9., 11., 24., 17., 4., 21., 3., 12., 11., 4., 1., 4., 5., 15., 21., 19., 44., 15., 17., 4., 4., 2., 2., 6., 7., 2., 8., 11., 9., 11., 4., 23., 7., 4., 0., 2., 9., 1., 3., 1., 4., 2., 5., 4., 1., 2., 6., 2., 0., 2., 1., 0., 5., 2., 1., 1., 2., 7., 1., 3., 6., 1., 2., 0., 2., 4., 2., 0., 0., 1., 3., 1., 5., 2., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 3., 4., 10., 5., 10., 5., 10., 25., 1., 16., 15., 0., 17., 5., 0., 0., 15., 3., 6., 29., 15., 28., 29., 9., 1., 1., 0., 2., 3., 7., 22., 23., 2., 14., 4., 20., 11., 4., 1., 4., 3., 12., 8., 22., 44., 12., 24., 11., 1., 2., 3., 0., 9., 4., 9., 6., 12., 9., 6., 21., 6., 3., 0., 0., 8., 2., 2., 1., 6., 3., 8., 1., 2., 3., 3., 2., 0., 2., 1., 0., 1., 2., 3., 6., 3., 3., 2., 1., 9., 6., 1., 1., 2., 2., 0., 0., 3., 1., 3., 4., 1., 2., 0., 2., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 4., 1., 10., 2., 8., 2., 4., 17., 0., 6., 18., 1., 14., 4., 0., 1., 20., 1., 5., 20., 11., 21., 32., 9., 3., 0., 5., 2., 8., 5., 23., 16., 1., 6., 5., 9., 12., 2., 1., 7., 1., 7., 15., 20., 43., 22., 16., 6., 3., 1., 11., 2., 6., 0., 13., 6., 10., 16., 3., 20., 9., 4., 1., 0., 7., 0., 3., 2., 11., 2., 3., 3., 1., 5., 1., 0., 2., 1., 1., 0., 1., 2., 3., 5., 1., 5., 2., 0., 6., 1., 1., 1., 2., 12., 2., 0., 5., 3., 6., 1., 2., 2., 2., 0., 5., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 5., 3., 5., 4., 6., 3., 4., 2., 0., 5., 27., 0., 16., 5., 1., 1., 7., 2., 5., 19., 12., 23., 35., 4., 1., 1., 1., 0., 8., 5., 28., 19., 5., 16., 0., 14., 5., 3., 0., 4., 4., 8., 12., 14., 36., 13., 19., 16., 10., 0., 2., 3., 12., 2., 12., 7., 5., 13., 5., 14., 10., 2., 2., 1., 10., 1., 4., 3., 3., 5., 4., 4., 1., 5., 5., 2., 1., 1., 2., 0., 0., 5., 2., 5., 2., 7., 2., 0., 2., 0., 2., 1., 1., 3., 1., 0., 1., 3., 1., 2., 2., 1., 1., 2., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 0., 1., 11., 3., 10., 1., 9., 20., 0., 17., 19., 1., 23., 7., 2., 2., 16., 2., 6., 25., 16., 23., 30., 4., 1., 0., 3., 5., 0., 11., 25., 20., 2., 9., 8., 17., 9., 4., 1., 3., 1., 9., 9., 20., 36., 5., 12., 11., 8., 2., 6., 0., 7., 3., 15., 5., 12., 22., 10., 23., 5., 3., 0., 1., 12., 0., 1., 3., 6., 2., 8., 6., 2., 3., 1., 3., 1., 0., 2., 0., 1., 3., 2., 9., 1., 3., 4., 0., 4., 0., 1., 1., 3., 4., 1., 0., 2., 1., 0., 1., 6., 2., 0., 2., 3., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 3., 7., 5., 6., 4., 0., 4., 20., 0., 17., 20., 1., 12., 5., 1., 2., 31., 0., 4., 26., 12., 18., 14., 6., 0., 1., 4., 2., 6., 10., 24., 20., 2., 10., 2., 12., 6., 2., 0., 3., 3., 12., 8., 15., 60., 10., 21., 8., 5., 1., 8., 4., 13., 2., 8., 8., 15., 15., 6., 14., 10., 1., 0., 2., 10., 1., 3., 0., 9., 2., 4., 4., 3., 5., 4., 0., 0., 0., 4., 0., 2., 4., 1., 8., 2., 7., 2., 2., 8., 3., 2., 1., 1., 8., 3., 0., 2., 3., 0., 2., 2., 1., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 0., 3., 9., 1., 7., 1., 9., 13., 1., 7., 23., 1., 12., 2., 1., 0., 19., 2., 4., 15., 16., 24., 28., 4., 1., 1., 2., 2., 5., 15., 18., 16., 0., 12., 3., 11., 4., 2., 2., 8., 4., 14., 9., 23., 50., 15., 21., 7., 4., 1., 3., 0., 10., 2., 6., 4., 9., 16., 7., 22., 5., 4., 1., 2., 13., 0., 2., 1., 7., 2., 4., 5., 4., 7., 6., 0., 0., 2., 0., 0., 1., 1., 1., 4., 5., 4., 0., 0., 3., 0., 2., 0., 1., 8., 0., 0., 0., 2., 1., 1., 3., 2., 2., 3., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 4., 3., 2., 7., 1., 11., 28., 5., 14., 31., 0., 10., 5., 0., 1., 13., 0., 5., 27., 6., 20., 23., 7., 1., 0., 3., 2., 6., 5., 24., 17., 4., 10., 4., 10., 8., 0., 0., 6., 4., 5., 12., 21., 35., 16., 14., 8., 4., 4., 5., 3., 6., 2., 9., 9., 9., 15., 6., 21., 6., 2., 1., 1., 9., 1., 3., 1., 2., 4., 5., 8., 1., 6., 3., 2., 3., 1., 1., 0., 1., 3., 4., 8., 1., 7., 2., 3., 3., 0., 2., 0., 1., 6., 1., 0., 1., 4., 3., 1., 2., 1., 3., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 2., 2., 2., 4., 4., 2., 6., 16., 0., 8., 24., 1., 16., 3., 0., 2., 16., 0., 4., 17., 8., 35., 26., 5., 0., 1., 2., 2., 7., 13., 26., 18., 2., 15., 1., 8., 4., 2., 2., 3., 2., 19., 6., 12., 41., 7., 24., 6., 4., 0., 6., 5., 9., 4., 11., 6., 7., 12., 1., 27., 11., 5., 0., 0., 8., 1., 2., 1., 7., 1., 3., 4., 3., 5., 4., 3., 1., 2., 1., 0., 2., 1., 4., 6., 0., 4., 4., 3., 6., 0., 0., 1., 3., 7., 1., 0., 2., 1., 2., 1., 3., 3., 0., 3., 6., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 5., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 1., 0., 21., 0., 16., 5., 7., 45., 2., 10., 70., 1., 6., 2., 0., 4., 66., 9., 8., 75., 14., 80., 11., 3., 0., 1., 2., 1., 11., 8., 54., 9., 0., 35., 44., 13., 1., 0., 1., 4., 5., 32., 5., 24., 8., 19., 8., 0., 1., 0., 9., 1., 18., 6., 15., 5., 12., 3., 3., 36., 9., 6., 3., 0., 12., 5., 5., 0., 16., 6., 2., 0., 1., 1., 0., 5., 3., 19., 4., 3., 7., 2., 3., 0., 0., 0., 0., 0., 8., 4., 0., 1., 4., 2., 1., 0., 0., 0., 2., 0., 3., 4., 1., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 1., 1., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 26., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 6., 27., 9., 33., 1., 12., 161., 4., 27., 227., 6., 13., 9., 1., 7., 70., 3., 11., 268., 44., 297., 51., 18., 0., 4., 5., 5., 48., 36., 232., 46., 11., 159., 18., 38., 3., 0., 0., 22., 10., 85., 25., 93., 17., 38., 44., 16., 2., 2., 31., 8., 46., 8., 52., 7., 36., 8., 13., 5., 1., 0., 1., 0., 17., 8., 9., 1., 34., 3., 12., 4., 3., 3., 0., 3., 3., 1., 9., 4., 8., 5., 11., 3., 0., 5., 129., 4., 1868., 103., 97., 201., 82., 108., 66., 16., 7., 19., 10., 3., 1., 6., 2., 5., 11., 7., 39., 16., 38., 18., 37., 9., 8., 1., 9., 7., 11., 1., 5., 5., 6., 7., 0., 4., 6., 11., 3., 0., 9., 3., 4., 0., 8., 2., 2., 26., 3., 12., 3., 12., 2., 27., 3., 3., 4., 2., 23., 4., 26., 6., 8., 8., 6., 32., 5., 7., 6.,
19., 1., 7., 10., 26., 7., 36., 0., 15., 139., 4., 31., 210., 7., 21., 5., 3., 4., 100., 2., 12., 276., 45., 332., 47., 18., 2., 1., 8., 6., 36., 39., 205., 36., 8., 169., 16., 34., 5., 0., 1., 16., 8., 65., 24., 96., 9., 36., 54., 14., 3., 0., 22., 8., 29., 8., 39., 11., 27., 3., 12., 7., 3., 0., 1., 0., 17., 6., 12., 4., 30., 7., 12., 6., 1., 3., 0., 3., 4., 5., 14., 2., 12., 3., 7., 2., 0., 5., 132., 4., 1922., 93., 115., 225., 89., 117., 74., 19., 9., 14., 12., 3., 1., 3., 6., 1., 5., 14., 30., 17., 45., 14., 37., 10., 12., 3., 6., 7., 2., 3., 2., 2., 7., 1., 0., 7., 5., 13., 1., 0., 8., 4., 2., 0., 7., 3., 6., 36., 2., 15., 4., 19., 4., 29., 2., 3., 7., 6., 27., 2., 19., 9., 5., 4., 5., 31., 6., 10., 5.,
15., 3., 3., 4., 29., 8., 28., 3., 19., 200., 4., 27., 215., 7., 16., 6., 0., 8., 87., 3., 21., 283., 31., 305., 41., 19., 2., 2., 10., 5., 38., 19., 246., 35., 10., 155., 15., 40., 6., 0., 4., 19., 8., 74., 25., 82., 18., 35., 46., 19., 2., 1., 26., 7., 30., 13., 46., 6., 37., 5., 6., 8., 1., 0., 0., 0., 30., 7., 16., 5., 27., 5., 12., 7., 2., 0., 2., 1., 1., 3., 13., 4., 9., 3., 6., 0., 1., 3., 155., 10., 1946., 86., 76., 206., 104., 129., 71., 16., 18., 12., 11., 0., 5., 9., 9., 5., 7., 12., 38., 18., 24., 13., 46., 14., 8., 5., 4., 3., 6., 5., 4., 4., 10., 1., 0., 6., 4., 14., 2., 0., 15., 3., 2., 0., 5., 2., 1., 31., 3., 14., 3., 13., 2., 18., 3., 1., 7., 8., 27., 3., 37., 8., 9., 7., 7., 33., 8., 11., 9.,
9., 4., 3., 7., 28., 8., 33., 0., 22., 145., 6., 21., 186., 8., 17., 6., 0., 2., 63., 2., 14., 277., 49., 349., 44., 17., 2., 3., 6., 5., 38., 24., 250., 40., 11., 177., 12., 25., 7., 0., 0., 14., 5., 93., 11., 87., 21., 40., 43., 19., 4., 0., 16., 7., 44., 9., 56., 5., 36., 6., 8., 7., 3., 0., 2., 0., 27., 6., 16., 3., 26., 9., 19., 6., 2., 4., 0., 2., 3., 1., 14., 6., 10., 3., 12., 0., 1., 1., 128., 5., 1873., 87., 106., 219., 92., 110., 80., 15., 6., 21., 17., 0., 3., 10., 7., 2., 7., 11., 44., 21., 39., 12., 39., 6., 11., 5., 5., 4., 4., 2., 1., 2., 7., 3., 0., 3., 7., 20., 4., 0., 11., 5., 3., 0., 5., 7., 4., 37., 2., 8., 4., 9., 2., 27., 3., 3., 4., 7., 15., 7., 31., 4., 4., 10., 10., 25., 7., 10., 4.,
11., 2., 1., 13., 20., 3., 32., 0., 17., 154., 5., 27., 185., 3., 17., 9., 2., 6., 91., 2., 10., 301., 62., 310., 36., 15., 0., 0., 6., 6., 39., 35., 211., 50., 8., 175., 21., 36., 7., 0., 5., 18., 6., 100., 25., 87., 17., 35., 46., 22., 3., 1., 22., 5., 46., 5., 48., 11., 29., 4., 10., 6., 3., 0., 1., 0., 28., 3., 17., 3., 32., 7., 12., 2., 6., 3., 1., 2., 3., 1., 7., 1., 11., 3., 7., 0., 1., 3., 151., 8., 1896., 97., 110., 216., 103., 113., 68., 21., 14., 13., 13., 2., 2., 2., 7., 3., 10., 9., 28., 18., 31., 17., 47., 4., 14., 9., 5., 10., 6., 3., 3., 4., 8., 4., 0., 2., 5., 13., 3., 0., 12., 3., 4., 0., 1., 2., 1., 38., 5., 11., 1., 10., 5., 23., 1., 1., 4., 3., 30., 6., 42., 4., 8., 6., 3., 30., 9., 18., 5.,
10., 1., 3., 14., 39., 2., 29., 0., 9., 153., 3., 24., 188., 7., 14., 3., 0., 4., 75., 1., 17., 287., 48., 345., 37., 14., 1., 2., 4., 4., 49., 29., 237., 41., 8., 165., 16., 35., 4., 0., 1., 21., 8., 74., 23., 91., 23., 41., 46., 19., 3., 0., 32., 4., 31., 13., 56., 7., 25., 4., 8., 6., 4., 0., 0., 0., 23., 3., 19., 3., 28., 3., 10., 8., 0., 1., 0., 2., 2., 7., 12., 1., 9., 1., 5., 0., 2., 2., 132., 7., 1944., 83., 98., 213., 89., 92., 66., 24., 12., 23., 22., 1., 1., 4., 6., 2., 13., 13., 37., 14., 33., 16., 52., 4., 12., 4., 3., 6., 4., 1., 3., 6., 8., 2., 0., 2., 5., 11., 2., 0., 1., 3., 1., 0., 12., 2., 3., 30., 3., 16., 3., 11., 4., 17., 3., 5., 5., 10., 13., 3., 37., 7., 2., 9., 6., 40., 8., 11., 7.,
11., 0., 1., 11., 19., 3., 35., 0., 14., 156., 3., 21., 200., 5., 11., 7., 1., 12., 85., 3., 16., 293., 46., 321., 34., 16., 1., 3., 8., 8., 37., 28., 238., 41., 8., 152., 14., 53., 4., 0., 1., 16., 9., 88., 16., 83., 12., 41., 35., 10., 1., 0., 26., 6., 44., 15., 51., 10., 21., 7., 14., 8., 3., 0., 1., 0., 23., 7., 16., 3., 36., 8., 7., 4., 1., 1., 1., 2., 6., 1., 17., 2., 9., 0., 12., 2., 1., 5., 164., 6., 1867., 89., 93., 216., 90., 116., 56., 9., 18., 25., 13., 1., 3., 7., 3., 5., 10., 11., 30., 19., 40., 13., 33., 4., 9., 4., 4., 12., 4., 0., 2., 2., 12., 6., 0., 3., 6., 20., 3., 0., 15., 5., 2., 0., 7., 3., 4., 38., 3., 10., 1., 14., 1., 19., 2., 3., 4., 5., 21., 7., 29., 8., 5., 9., 3., 29., 4., 10., 6.,
9., 5., 4., 5., 20., 6., 37., 1., 20., 163., 2., 33., 206., 5., 18., 7., 2., 4., 64., 3., 21., 262., 49., 359., 46., 15., 2., 0., 4., 5., 40., 40., 221., 34., 6., 166., 17., 28., 6., 0., 4., 28., 10., 80., 24., 70., 12., 41., 56., 16., 2., 0., 26., 5., 45., 13., 53., 15., 31., 6., 16., 4., 0., 0., 4., 0., 24., 5., 16., 5., 35., 6., 7., 7., 0., 2., 0., 2., 3., 2., 7., 2., 7., 1., 5., 1., 0., 6., 144., 16., 1861., 90., 111., 211., 80., 107., 67., 11., 10., 20., 19., 1., 2., 6., 11., 5., 12., 6., 34., 19., 35., 10., 50., 6., 10., 3., 11., 6., 5., 1., 3., 4., 13., 2., 0., 0., 3., 11., 0., 0., 9., 5., 4., 0., 9., 2., 2., 46., 4., 14., 7., 11., 4., 23., 2., 4., 3., 5., 29., 6., 34., 9., 7., 10., 6., 37., 11., 18., 4.,
19., 0., 4., 7., 15., 7., 23., 0., 13., 152., 4., 20., 197., 2., 15., 8., 1., 4., 79., 1., 12., 275., 37., 338., 37., 15., 1., 1., 13., 2., 51., 32., 250., 48., 9., 182., 12., 34., 6., 0., 2., 18., 4., 77., 14., 95., 13., 33., 47., 14., 8., 1., 24., 2., 31., 15., 54., 10., 24., 10., 9., 4., 0., 0., 0., 0., 27., 4., 12., 2., 38., 2., 8., 2., 0., 3., 0., 1., 3., 2., 5., 2., 9., 4., 5., 2., 2., 3., 154., 8., 1823., 118., 96., 218., 83., 104., 62., 16., 5., 21., 9., 1., 4., 11., 5., 1., 9., 6., 32., 13., 36., 17., 37., 3., 13., 6., 3., 1., 3., 1., 3., 3., 9., 3., 0., 5., 0., 22., 0., 0., 18., 2., 4., 0., 5., 2., 2., 34., 3., 18., 4., 11., 3., 16., 5., 2., 4., 4., 29., 6., 30., 1., 2., 5., 7., 34., 6., 12., 4.,
16., 5., 4., 11., 29., 11., 29., 1., 20., 160., 4., 34., 194., 9., 24., 8., 1., 7., 80., 0., 20., 272., 44., 341., 46., 15., 0., 4., 11., 7., 35., 31., 249., 34., 9., 165., 13., 34., 2., 0., 2., 20., 8., 71., 23., 86., 11., 32., 37., 13., 3., 1., 19., 9., 37., 16., 58., 5., 34., 9., 8., 8., 2., 0., 1., 0., 32., 4., 16., 4., 31., 3., 9., 8., 2., 2., 0., 1., 4., 1., 18., 5., 8., 2., 11., 0., 1., 7., 107., 14., 1910., 91., 83., 221., 99., 123., 77., 20., 9., 23., 16., 1., 2., 8., 6., 4., 11., 14., 38., 15., 39., 21., 44., 2., 10., 5., 5., 7., 4., 1., 5., 1., 11., 2., 0., 1., 6., 11., 0., 0., 10., 2., 3., 0., 5., 3., 4., 32., 5., 10., 3., 7., 2., 18., 4., 3., 4., 5., 30., 7., 21., 6., 4., 8., 3., 26., 8., 14., 7.,
7., 2., 2., 8., 23., 7., 28., 1., 26., 158., 4., 24., 205., 3., 21., 5., 0., 6., 86., 0., 17., 290., 46., 298., 51., 24., 1., 0., 8., 3., 45., 36., 228., 29., 13., 167., 10., 29., 5., 0., 3., 13., 7., 84., 25., 99., 15., 33., 50., 11., 3., 0., 25., 3., 33., 11., 56., 8., 35., 4., 8., 7., 0., 0., 0., 0., 16., 8., 9., 2., 26., 5., 15., 2., 1., 3., 0., 1., 5., 0., 11., 3., 10., 0., 10., 0., 1., 1., 147., 9., 1947., 78., 86., 232., 87., 112., 62., 20., 18., 14., 17., 0., 1., 7., 4., 5., 8., 14., 45., 17., 44., 17., 39., 11., 8., 4., 6., 8., 2., 1., 6., 2., 12., 1., 0., 2., 4., 14., 2., 0., 15., 1., 3., 0., 9., 0., 3., 30., 5., 7., 2., 13., 3., 19., 2., 1., 4., 5., 23., 3., 35., 10., 4., 9., 6., 20., 6., 16., 1.,
7., 2., 4., 7., 23., 5., 33., 0., 17., 170., 4., 23., 218., 7., 15., 7., 1., 9., 86., 1., 13., 309., 51., 372., 38., 22., 1., 3., 4., 7., 60., 36., 214., 57., 4., 155., 10., 40., 10., 0., 2., 11., 6., 79., 16., 87., 20., 38., 43., 7., 1., 0., 28., 7., 26., 11., 48., 9., 33., 3., 9., 6., 5., 0., 0., 0., 17., 4., 10., 3., 39., 7., 8., 2., 3., 2., 0., 4., 1., 3., 12., 3., 7., 0., 7., 1., 0., 4., 173., 8., 1941., 89., 100., 212., 92., 109., 62., 14., 12., 17., 10., 1., 4., 8., 1., 5., 5., 6., 41., 27., 33., 14., 37., 4., 9., 1., 7., 8., 8., 1., 4., 4., 7., 6., 0., 3., 5., 11., 2., 0., 8., 5., 4., 0., 6., 1., 2., 27., 1., 7., 3., 11., 2., 25., 4., 4., 3., 6., 20., 2., 30., 11., 5., 8., 4., 29., 5., 7., 5.,
3., 1., 1., 4., 6., 1., 6., 0., 2., 20., 1., 24., 34., 1., 12., 2., 0., 3., 15., 3., 3., 19., 14., 26., 33., 4., 0., 0., 2., 4., 5., 9., 24., 16., 2., 18., 1., 12., 12., 0., 2., 3., 1., 14., 10., 29., 40., 17., 16., 7., 4., 0., 9., 1., 5., 3., 9., 9., 6., 12., 5., 19., 15., 2., 0., 1., 9., 1., 4., 2., 6., 3., 1., 5., 1., 4., 3., 3., 0., 2., 1., 0., 1., 2., 0., 7., 1., 6., 2., 5., 4., 0., 2., 0., 2., 6., 1., 0., 1., 1., 1., 1., 3., 6., 5., 3., 2., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 3., 12., 3., 4., 2., 3., 23., 3., 19., 16., 0., 8., 2., 0., 2., 13., 3., 3., 32., 14., 18., 21., 4., 1., 0., 2., 3., 9., 5., 33., 16., 2., 20., 1., 15., 5., 0., 2., 1., 1., 17., 18., 12., 55., 19., 13., 7., 9., 0., 3., 2., 5., 3., 11., 5., 9., 15., 3., 14., 15., 2., 1., 1., 4., 1., 2., 2., 3., 2., 1., 4., 3., 5., 2., 2., 0., 0., 3., 0., 3., 2., 2., 4., 3., 2., 3., 3., 4., 1., 2., 1., 2., 5., 2., 0., 1., 2., 0., 0., 3., 4., 4., 1., 4., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 1., 13., 5., 2., 1., 5., 29., 1., 14., 35., 1., 27., 6., 1., 1., 14., 2., 7., 19., 7., 32., 19., 3., 2., 0., 7., 3., 10., 4., 22., 17., 1., 19., 1., 17., 6., 3., 0., 3., 0., 13., 9., 20., 45., 10., 20., 7., 2., 2., 5., 1., 8., 3., 7., 10., 11., 17., 9., 26., 2., 6., 1., 0., 7., 1., 1., 3., 4., 2., 6., 3., 0., 3., 3., 2., 0., 5., 1., 0., 1., 1., 1., 3., 2., 6., 0., 2., 2., 1., 3., 0., 5., 9., 0., 0., 2., 4., 5., 0., 2., 1., 2., 1., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 6., 7., 4., 3., 0., 6., 24., 1., 17., 22., 0., 15., 5., 2., 3., 24., 1., 4., 20., 12., 30., 22., 3., 1., 1., 1., 2., 5., 9., 24., 16., 2., 20., 5., 17., 13., 0., 2., 1., 1., 5., 13., 18., 42., 14., 18., 6., 1., 1., 5., 0., 9., 2., 10., 7., 9., 18., 8., 22., 4., 6., 1., 1., 8., 1., 0., 1., 6., 2., 1., 4., 3., 3., 3., 2., 2., 2., 1., 0., 1., 2., 1., 6., 3., 4., 3., 1., 7., 2., 0., 2., 1., 13., 2., 0., 2., 1., 0., 2., 0., 3., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 7., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 3., 2., 6., 6., 8., 1., 7., 20., 1., 13., 25., 0., 13., 1., 2., 0., 22., 1., 4., 23., 10., 25., 32., 8., 0., 2., 4., 3., 9., 2., 28., 8., 4., 20., 1., 5., 12., 1., 0., 6., 4., 8., 9., 21., 49., 9., 11., 6., 4., 2., 4., 0., 4., 3., 15., 6., 12., 20., 8., 13., 8., 1., 1., 2., 8., 2., 4., 5., 5., 2., 3., 2., 3., 7., 0., 2., 2., 3., 4., 0., 2., 1., 2., 9., 0., 2., 1., 1., 5., 2., 1., 1., 2., 8., 3., 0., 2., 7., 2., 1., 0., 3., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 4., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 2., 3., 7., 2., 6., 0., 12., 20., 0., 21., 17., 0., 10., 2., 1., 1., 22., 0., 3., 30., 10., 30., 31., 6., 0., 0., 1., 3., 6., 3., 27., 16., 3., 15., 4., 14., 9., 5., 0., 3., 2., 12., 5., 15., 48., 9., 19., 7., 6., 4., 7., 0., 7., 3., 8., 9., 10., 17., 5., 18., 9., 2., 0., 0., 4., 1., 1., 1., 5., 5., 4., 2., 1., 5., 4., 1., 3., 1., 3., 0., 1., 1., 2., 8., 1., 4., 2., 3., 3., 1., 2., 1., 1., 6., 2., 0., 0., 1., 2., 0., 2., 4., 2., 1., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 6., 11., 6., 7., 0., 8., 18., 1., 10., 27., 0., 28., 3., 0., 1., 15., 3., 5., 34., 11., 29., 29., 2., 0., 1., 6., 3., 9., 6., 23., 13., 2., 4., 3., 15., 7., 2., 1., 4., 4., 7., 9., 19., 52., 12., 19., 13., 3., 1., 6., 1., 7., 4., 8., 3., 7., 15., 5., 18., 10., 2., 1., 1., 3., 1., 2., 2., 5., 5., 5., 8., 4., 6., 4., 2., 3., 4., 2., 0., 0., 2., 1., 3., 3., 3., 2., 1., 5., 1., 2., 0., 5., 6., 0., 0., 3., 1., 4., 3., 3., 3., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 4., 2., 5., 2., 9., 1., 7., 11., 2., 11., 28., 0., 13., 2., 1., 3., 14., 1., 2., 28., 15., 40., 28., 5., 0., 0., 3., 1., 8., 8., 29., 9., 3., 13., 3., 18., 13., 0., 0., 7., 4., 15., 10., 13., 56., 7., 23., 9., 8., 3., 7., 3., 6., 2., 12., 6., 12., 20., 3., 13., 13., 2., 2., 1., 5., 2., 1., 2., 4., 4., 1., 3., 0., 5., 2., 2., 0., 0., 3., 0., 1., 2., 0., 4., 1., 4., 1., 0., 3., 0., 3., 3., 1., 9., 0., 0., 2., 1., 2., 1., 3., 4., 1., 1., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 2., 3., 6., 3., 11., 2., 3., 22., 1., 7., 16., 1., 9., 2., 1., 3., 19., 1., 8., 10., 7., 15., 27., 7., 2., 2., 3., 1., 9., 9., 32., 12., 2., 10., 4., 13., 8., 3., 0., 4., 2., 17., 9., 14., 45., 13., 18., 10., 6., 0., 2., 1., 9., 5., 6., 4., 10., 18., 6., 27., 10., 3., 1., 1., 8., 2., 3., 4., 6., 1., 4., 1., 4., 3., 1., 0., 0., 2., 2., 0., 3., 3., 4., 13., 1., 3., 4., 1., 1., 1., 2., 0., 2., 7., 3., 0., 1., 3., 0., 3., 5., 2., 1., 1., 4., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 3., 1., 6., 4., 7., 1., 3., 16., 0., 16., 23., 2., 22., 1., 0., 1., 15., 1., 1., 17., 11., 25., 30., 3., 0., 0., 1., 0., 7., 8., 25., 20., 0., 7., 3., 22., 9., 0., 1., 4., 0., 9., 8., 18., 52., 10., 20., 7., 5., 4., 3., 1., 9., 4., 11., 5., 8., 11., 5., 20., 4., 5., 4., 0., 9., 2., 2., 3., 4., 3., 3., 4., 4., 4., 5., 4., 0., 3., 1., 0., 2., 4., 5., 7., 1., 3., 0., 3., 5., 1., 2., 1., 1., 4., 2., 0., 2., 1., 1., 2., 1., 1., 6., 0., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 4., 1., 5., 1., 7., 0., 4., 15., 2., 10., 27., 1., 17., 3., 0., 0., 29., 3., 3., 22., 9., 27., 23., 3., 0., 0., 4., 2., 8., 7., 17., 14., 2., 7., 7., 12., 13., 1., 0., 4., 2., 5., 9., 15., 46., 15., 19., 6., 5., 2., 3., 2., 10., 5., 11., 2., 6., 15., 4., 26., 7., 4., 1., 0., 6., 2., 4., 1., 6., 1., 4., 5., 0., 6., 3., 1., 0., 1., 3., 0., 2., 3., 2., 10., 2., 1., 2., 1., 3., 1., 3., 0., 1., 10., 5., 0., 2., 3., 1., 3., 0., 2., 1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 6., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 0., 6., 5., 3., 7., 2., 6., 15., 1., 13., 17., 1., 12., 7., 0., 3., 18., 4., 1., 18., 9., 14., 32., 6., 2., 0., 1., 1., 4., 10., 19., 14., 4., 13., 0., 13., 8., 2., 0., 4., 0., 15., 12., 13., 48., 13., 20., 11., 1., 3., 7., 3., 5., 5., 9., 10., 4., 16., 6., 21., 8., 4., 2., 1., 4., 0., 3., 0., 5., 1., 1., 4., 1., 3., 5., 1., 1., 3., 3., 0., 3., 1., 2., 6., 2., 5., 0., 2., 7., 1., 1., 0., 0., 5., 2., 0., 1., 4., 0., 1., 2., 1., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 4., 1., 2., 9., 3., 10., 1., 7., 18., 1., 13., 20., 1., 17., 2., 3., 1., 11., 6., 3., 19., 14., 28., 32., 6., 0., 0., 5., 1., 6., 8., 29., 20., 2., 12., 4., 18., 10., 5., 0., 6., 1., 16., 10., 20., 53., 10., 21., 9., 2., 2., 5., 1., 4., 2., 14., 7., 10., 16., 6., 16., 8., 6., 0., 0., 6., 1., 3., 2., 3., 1., 4., 6., 1., 4., 3., 2., 0., 0., 0., 0., 2., 2., 4., 6., 1., 2., 1., 2., 3., 2., 2., 0., 1., 5., 5., 0., 2., 0., 1., 3., 2., 2., 1., 2., 1., 0., 0., 0., 0., 6., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 4., 6., 5., 4., 1., 5., 29., 0., 14., 22., 1., 9., 1., 2., 3., 22., 4., 7., 33., 17., 20., 25., 11., 0., 0., 0., 2., 8., 5., 21., 13., 2., 21., 5., 11., 11., 2., 3., 6., 0., 13., 6., 13., 67., 11., 23., 14., 5., 0., 4., 1., 8., 3., 9., 9., 13., 21., 3., 23., 4., 3., 1., 1., 7., 3., 1., 2., 7., 3., 4., 4., 1., 5., 5., 1., 0., 2., 2., 0., 1., 3., 1., 11., 1., 6., 2., 4., 2., 0., 2., 0., 3., 8., 0., 0., 2., 3., 4., 1., 3., 2., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 4., 4., 9., 3., 13., 3., 6., 23., 3., 8., 16., 0., 21., 5., 1., 2., 19., 1., 7., 9., 6., 27., 31., 1., 0., 2., 3., 0., 4., 6., 27., 19., 1., 15., 4., 12., 4., 3., 0., 6., 2., 6., 9., 23., 46., 10., 21., 12., 3., 1., 7., 3., 4., 4., 7., 12., 11., 20., 5., 23., 9., 3., 0., 1., 7., 3., 1., 1., 7., 0., 3., 3., 1., 4., 4., 0., 0., 0., 1., 0., 1., 0., 2., 4., 3., 2., 0., 2., 5., 0., 1., 4., 5., 9., 3., 0., 3., 1., 1., 0., 2., 6., 0., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 4., 5., 6., 3., 4., 1., 2., 19., 0., 17., 21., 3., 16., 3., 2., 2., 25., 2., 1., 37., 13., 28., 34., 7., 0., 0., 0., 3., 7., 8., 26., 15., 2., 12., 2., 13., 6., 2., 2., 2., 1., 15., 9., 24., 45., 9., 23., 10., 7., 1., 2., 1., 9., 1., 10., 11., 13., 21., 6., 32., 5., 3., 2., 1., 9., 1., 4., 0., 4., 2., 5., 3., 4., 4., 2., 2., 0., 2., 3., 0., 2., 2., 2., 12., 4., 3., 1., 4., 8., 1., 3., 1., 3., 6., 3., 0., 5., 1., 4., 1., 4., 1., 1., 1., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 2., 3., 9., 4., 5., 2., 7., 11., 2., 15., 10., 2., 19., 1., 2., 1., 20., 2., 5., 20., 13., 28., 25., 8., 3., 2., 3., 5., 8., 8., 26., 20., 5., 13., 4., 8., 10., 1., 0., 7., 3., 20., 15., 23., 51., 7., 21., 10., 4., 2., 10., 2., 8., 3., 6., 4., 8., 16., 4., 24., 10., 2., 1., 1., 10., 0., 3., 1., 9., 2., 5., 4., 1., 2., 2., 4., 2., 0., 0., 0., 3., 3., 3., 6., 1., 4., 2., 3., 1., 1., 0., 1., 2., 7., 3., 0., 1., 2., 4., 2., 1., 1., 1., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 2., 9., 2., 11., 1., 4., 11., 1., 14., 15., 1., 15., 1., 0., 0., 14., 3., 2., 24., 11., 5., 38., 6., 0., 1., 5., 1., 7., 1., 15., 11., 3., 9., 6., 6., 9., 2., 0., 6., 1., 20., 13., 13., 44., 12., 20., 8., 3., 2., 8., 0., 2., 3., 9., 6., 9., 9., 5., 22., 8., 5., 0., 1., 10., 1., 3., 3., 7., 1., 7., 2., 1., 5., 2., 4., 1., 0., 1., 0., 2., 3., 2., 4., 2., 4., 3., 4., 5., 1., 2., 0., 4., 6., 3., 0., 3., 0., 1., 0., 1., 3., 1., 1., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 4., 5., 8., 3., 3., 0., 9., 18., 0., 11., 28., 1., 19., 3., 0., 1., 15., 0., 6., 23., 12., 24., 31., 7., 3., 0., 2., 4., 9., 7., 34., 17., 4., 20., 5., 18., 15., 3., 1., 1., 1., 6., 9., 26., 41., 13., 21., 10., 11., 0., 2., 3., 3., 7., 11., 5., 7., 26., 8., 17., 5., 2., 0., 0., 4., 0., 2., 5., 6., 3., 2., 3., 1., 1., 4., 1., 1., 2., 2., 0., 1., 0., 6., 3., 2., 2., 0., 2., 0., 1., 1., 0., 0., 4., 2., 0., 1., 1., 1., 1., 3., 0., 2., 1., 6., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 3., 2., 7., 0., 17., 2., 7., 39., 1., 4., 50., 0., 3., 5., 0., 4., 72., 19., 5., 84., 21., 84., 9., 2., 0., 0., 4., 3., 12., 7., 64., 7., 2., 43., 33., 10., 5., 0., 2., 8., 4., 23., 4., 26., 9., 12., 6., 2., 3., 0., 6., 5., 18., 7., 30., 3., 13., 3., 1., 30., 3., 7., 1., 0., 19., 2., 9., 3., 11., 2., 2., 0., 3., 0., 0., 6., 3., 11., 5., 3., 3., 2., 5., 0., 0., 0., 0., 0., 2., 3., 2., 0., 1., 0., 3., 0., 2., 0., 1., 0., 1., 1., 3., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 5., 1., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 29., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 7., 12., 12., 7., 32., 1., 11., 166., 4., 20., 186., 3., 12., 11., 1., 5., 96., 1., 18., 307., 46., 313., 45., 23., 0., 2., 9., 9., 44., 30., 241., 43., 10., 144., 18., 40., 7., 0., 1., 19., 12., 60., 20., 82., 10., 28., 40., 10., 3., 1., 26., 9., 39., 13., 59., 9., 25., 8., 4., 7., 2., 0., 1., 0., 21., 9., 19., 4., 38., 4., 16., 6., 3., 2., 0., 2., 3., 4., 7., 4., 8., 1., 8., 2., 0., 3., 136., 10., 1888., 91., 107., 218., 122., 115., 70., 15., 9., 21., 16., 0., 2., 7., 3., 5., 13., 10., 45., 15., 35., 12., 32., 4., 8., 2., 3., 6., 6., 4., 4., 5., 8., 4., 0., 6., 5., 21., 3., 0., 11., 6., 3., 0., 5., 1., 7., 34., 0., 9., 5., 11., 1., 20., 2., 2., 3., 3., 22., 5., 29., 3., 8., 3., 5., 26., 5., 12., 7.,
14., 1., 2., 10., 21., 2., 26., 0., 14., 173., 4., 21., 178., 7., 15., 8., 5., 7., 75., 4., 14., 281., 36., 339., 42., 24., 0., 5., 3., 8., 42., 33., 234., 41., 6., 142., 15., 36., 5., 0., 1., 22., 8., 77., 16., 85., 14., 36., 54., 10., 1., 0., 22., 7., 47., 11., 56., 7., 38., 5., 17., 6., 5., 0., 0., 0., 33., 5., 11., 3., 27., 2., 13., 6., 2., 3., 1., 1., 4., 0., 9., 2., 7., 2., 7., 0., 1., 3., 138., 7., 1940., 89., 92., 222., 107., 133., 57., 14., 8., 12., 14., 1., 1., 3., 0., 7., 7., 7., 30., 17., 41., 9., 39., 4., 12., 5., 6., 9., 9., 3., 4., 3., 7., 4., 0., 6., 6., 19., 3., 0., 11., 4., 4., 0., 6., 2., 2., 38., 3., 8., 2., 15., 3., 16., 2., 3., 2., 3., 27., 9., 33., 5., 6., 8., 2., 26., 10., 13., 5.,
16., 3., 4., 12., 30., 4., 34., 1., 20., 176., 3., 21., 192., 6., 14., 7., 2., 7., 59., 2., 17., 317., 41., 316., 45., 20., 2., 4., 6., 6., 50., 30., 236., 35., 16., 178., 12., 37., 6., 0., 3., 10., 10., 79., 17., 78., 18., 24., 54., 10., 3., 4., 33., 7., 50., 8., 50., 6., 27., 6., 16., 11., 3., 0., 1., 0., 24., 3., 15., 5., 32., 5., 10., 7., 1., 1., 0., 2., 4., 3., 9., 2., 12., 3., 12., 0., 2., 3., 144., 9., 1908., 99., 106., 235., 94., 119., 63., 14., 10., 9., 8., 0., 4., 5., 6., 4., 11., 9., 32., 11., 33., 19., 30., 11., 4., 4., 1., 7., 4., 0., 3., 3., 11., 3., 0., 3., 4., 15., 0., 0., 9., 5., 3., 0., 5., 4., 3., 35., 5., 13., 3., 11., 0., 21., 4., 0., 4., 4., 29., 6., 35., 5., 2., 6., 8., 40., 7., 16., 6.,
16., 1., 3., 8., 13., 7., 25., 0., 13., 137., 3., 29., 187., 7., 15., 9., 1., 7., 84., 4., 18., 272., 35., 363., 52., 20., 3., 1., 3., 5., 53., 32., 224., 42., 9., 170., 16., 41., 13., 0., 1., 19., 2., 78., 12., 79., 23., 36., 39., 13., 5., 3., 23., 6., 32., 11., 51., 18., 32., 3., 13., 10., 3., 0., 1., 0., 18., 6., 10., 7., 17., 2., 9., 4., 1., 1., 1., 1., 1., 1., 12., 2., 5., 0., 11., 1., 0., 2., 138., 7., 1841., 78., 103., 224., 108., 104., 73., 13., 10., 21., 14., 0., 1., 6., 2., 6., 9., 10., 30., 12., 33., 13., 39., 10., 10., 5., 3., 6., 8., 2., 2., 3., 6., 4., 0., 1., 5., 7., 3., 0., 6., 4., 2., 0., 2., 2., 2., 37., 4., 12., 3., 18., 3., 15., 1., 10., 5., 0., 15., 2., 26., 5., 7., 7., 3., 29., 7., 14., 3.,
13., 5., 4., 8., 21., 6., 31., 2., 12., 185., 0., 24., 215., 6., 12., 4., 2., 3., 70., 1., 16., 281., 44., 346., 31., 14., 2., 1., 5., 6., 48., 34., 228., 35., 5., 132., 13., 34., 8., 0., 3., 12., 4., 68., 23., 86., 10., 38., 49., 16., 1., 0., 29., 4., 49., 8., 50., 12., 27., 6., 10., 7., 1., 0., 2., 0., 26., 6., 17., 4., 21., 9., 13., 2., 0., 7., 0., 1., 1., 3., 10., 5., 6., 1., 7., 2., 0., 2., 141., 6., 1889., 90., 104., 237., 75., 113., 55., 12., 11., 23., 7., 2., 1., 11., 5., 4., 11., 12., 37., 15., 49., 17., 42., 11., 10., 2., 9., 8., 6., 1., 2., 0., 13., 2., 0., 5., 5., 9., 5., 0., 16., 3., 3., 0., 7., 1., 2., 29., 2., 10., 1., 15., 4., 33., 0., 2., 1., 4., 28., 5., 21., 3., 4., 7., 4., 42., 9., 12., 8.,
10., 1., 0., 6., 26., 4., 35., 0., 10., 152., 2., 25., 208., 6., 18., 7., 2., 7., 95., 0., 10., 276., 40., 322., 50., 25., 2., 2., 6., 6., 36., 32., 218., 42., 12., 174., 12., 35., 6., 0., 5., 19., 5., 73., 24., 79., 17., 29., 52., 20., 4., 1., 31., 12., 53., 7., 37., 9., 25., 6., 9., 3., 2., 0., 3., 0., 20., 5., 17., 1., 27., 6., 11., 1., 4., 3., 0., 2., 2., 1., 13., 4., 7., 2., 4., 1., 0., 6., 147., 12., 1917., 84., 116., 188., 109., 125., 74., 10., 22., 17., 14., 3., 1., 8., 4., 8., 12., 5., 42., 17., 31., 15., 47., 9., 13., 4., 7., 7., 6., 0., 3., 6., 12., 2., 0., 4., 3., 20., 2., 0., 8., 6., 5., 0., 4., 3., 2., 29., 3., 8., 5., 15., 1., 20., 6., 3., 1., 5., 20., 2., 33., 3., 3., 14., 5., 45., 5., 18., 5.,
21., 3., 1., 4., 32., 6., 40., 2., 19., 157., 3., 27., 210., 4., 12., 11., 2., 6., 84., 3., 16., 278., 53., 356., 48., 20., 1., 4., 6., 3., 47., 25., 233., 32., 5., 166., 13., 40., 8., 0., 2., 16., 6., 96., 22., 83., 10., 32., 51., 21., 4., 3., 13., 10., 39., 9., 56., 11., 33., 5., 10., 4., 1., 0., 1., 0., 19., 3., 18., 5., 26., 8., 13., 3., 2., 3., 1., 2., 0., 0., 11., 1., 5., 1., 6., 0., 2., 2., 152., 14., 1938., 84., 104., 207., 89., 109., 65., 15., 7., 15., 15., 1., 0., 2., 7., 2., 13., 5., 37., 17., 32., 18., 38., 9., 10., 5., 5., 5., 9., 3., 2., 3., 5., 1., 0., 4., 1., 16., 2., 0., 11., 3., 5., 0., 4., 4., 2., 21., 1., 12., 1., 14., 5., 24., 2., 1., 3., 3., 26., 3., 40., 4., 4., 6., 6., 28., 11., 7., 5.,
18., 3., 2., 9., 15., 8., 31., 1., 14., 159., 1., 18., 219., 3., 20., 5., 1., 3., 79., 0., 17., 256., 54., 328., 53., 20., 1., 3., 6., 10., 45., 37., 219., 46., 7., 151., 9., 38., 8., 0., 4., 12., 11., 88., 23., 100., 11., 39., 39., 10., 5., 2., 25., 4., 40., 6., 48., 13., 31., 9., 7., 9., 4., 0., 0., 0., 31., 11., 13., 2., 31., 7., 12., 7., 3., 5., 1., 1., 0., 1., 11., 6., 5., 1., 10., 0., 0., 3., 133., 9., 1857., 93., 92., 212., 94., 130., 62., 15., 13., 25., 19., 2., 2., 12., 5., 2., 10., 8., 43., 15., 29., 12., 44., 14., 13., 4., 5., 12., 7., 1., 3., 0., 10., 5., 0., 4., 2., 17., 3., 0., 11., 2., 3., 0., 3., 2., 3., 22., 4., 15., 4., 16., 9., 22., 4., 0., 3., 1., 29., 5., 34., 5., 6., 4., 8., 38., 4., 6., 2.,
7., 3., 7., 8., 21., 10., 23., 1., 12., 155., 4., 20., 204., 5., 14., 7., 2., 7., 79., 3., 14., 290., 46., 293., 46., 25., 1., 1., 8., 9., 52., 39., 218., 51., 8., 161., 12., 36., 2., 0., 2., 14., 11., 84., 23., 82., 17., 29., 50., 15., 1., 2., 26., 5., 49., 13., 45., 9., 29., 3., 12., 7., 3., 0., 3., 0., 20., 4., 16., 2., 43., 4., 5., 2., 2., 2., 2., 0., 5., 2., 12., 5., 7., 0., 7., 3., 1., 1., 149., 7., 1917., 90., 102., 226., 91., 111., 73., 10., 7., 21., 12., 1., 1., 6., 5., 3., 10., 7., 35., 13., 37., 14., 42., 6., 7., 5., 9., 8., 6., 1., 1., 3., 6., 4., 0., 2., 4., 9., 2., 0., 8., 7., 0., 0., 5., 4., 3., 34., 2., 11., 3., 15., 3., 22., 5., 3., 2., 5., 25., 5., 42., 7., 5., 9., 5., 28., 7., 11., 3.,
19., 1., 1., 8., 18., 8., 27., 1., 13., 167., 4., 37., 181., 4., 8., 12., 1., 5., 100., 2., 16., 305., 57., 281., 42., 19., 1., 3., 7., 4., 41., 27., 224., 33., 7., 148., 8., 42., 6., 0., 3., 14., 9., 92., 19., 89., 19., 47., 51., 17., 0., 3., 26., 11., 36., 8., 36., 10., 31., 3., 12., 5., 3., 0., 0., 0., 23., 5., 21., 2., 24., 8., 13., 5., 6., 3., 0., 1., 3., 3., 7., 2., 11., 0., 8., 0., 3., 3., 142., 12., 1972., 80., 97., 234., 102., 100., 63., 8., 12., 11., 7., 1., 1., 10., 4., 4., 8., 7., 28., 26., 33., 16., 36., 2., 5., 5., 6., 6., 6., 2., 6., 3., 5., 3., 0., 4., 2., 13., 0., 0., 10., 1., 2., 0., 4., 5., 1., 35., 2., 9., 2., 9., 4., 29., 3., 1., 1., 6., 31., 3., 30., 6., 6., 3., 0., 31., 9., 7., 2.,
18., 0., 1., 7., 26., 9., 32., 1., 19., 136., 1., 31., 201., 5., 8., 8., 0., 4., 89., 2., 14., 299., 48., 344., 45., 17., 2., 3., 7., 2., 44., 33., 230., 30., 9., 169., 13., 33., 4., 0., 4., 13., 11., 88., 16., 104., 20., 39., 43., 12., 2., 3., 19., 7., 32., 4., 44., 9., 25., 6., 9., 4., 2., 0., 1., 0., 21., 10., 8., 5., 28., 2., 11., 7., 3., 6., 0., 0., 3., 1., 11., 1., 8., 2., 13., 1., 0., 3., 139., 12., 1877., 77., 110., 238., 111., 112., 71., 27., 13., 14., 12., 0., 1., 6., 10., 6., 8., 8., 32., 16., 49., 18., 35., 9., 9., 9., 1., 9., 5., 2., 0., 1., 6., 4., 0., 0., 9., 15., 3., 0., 6., 3., 1., 0., 3., 3., 7., 32., 2., 13., 2., 10., 4., 14., 2., 4., 4., 2., 26., 7., 39., 6., 4., 5., 4., 29., 6., 12., 4.,
8., 2., 3., 1., 6., 2., 6., 1., 7., 21., 1., 15., 13., 3., 19., 4., 0., 3., 15., 3., 5., 36., 10., 21., 23., 6., 2., 2., 2., 0., 6., 8., 29., 10., 2., 17., 2., 21., 13., 2., 1., 2., 2., 12., 15., 8., 49., 15., 22., 10., 3., 1., 4., 4., 4., 3., 6., 7., 10., 16., 11., 21., 13., 4., 0., 3., 4., 0., 3., 2., 4., 2., 5., 2., 2., 4., 4., 1., 0., 1., 3., 0., 2., 4., 3., 8., 1., 3., 2., 3., 2., 0., 3., 0., 3., 7., 3., 0., 0., 1., 2., 0., 2., 1., 1., 0., 4., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 3., 11., 6., 7., 2., 7., 38., 2., 14., 10., 2., 21., 0., 1., 3., 11., 2., 4., 11., 17., 33., 32., 7., 0., 0., 2., 3., 7., 8., 20., 15., 2., 13., 5., 17., 7., 1., 0., 2., 4., 9., 9., 27., 56., 11., 14., 6., 6., 1., 8., 1., 6., 1., 10., 5., 8., 15., 6., 17., 7., 9., 0., 0., 5., 1., 2., 2., 5., 3., 6., 5., 2., 2., 2., 2., 1., 5., 1., 0., 3., 2., 3., 4., 5., 1., 2., 3., 2., 2., 1., 0., 2., 7., 1., 0., 1., 4., 1., 3., 2., 2., 1., 0., 3., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 2., 2., 8., 2., 9., 1., 5., 21., 0., 13., 14., 1., 15., 3., 0., 0., 12., 0., 1., 27., 11., 32., 28., 7., 0., 0., 3., 3., 4., 7., 31., 13., 4., 22., 3., 10., 12., 3., 0., 1., 0., 12., 8., 13., 44., 11., 21., 8., 5., 2., 6., 3., 11., 2., 17., 7., 8., 17., 7., 24., 6., 4., 0., 0., 6., 1., 2., 1., 6., 3., 3., 2., 5., 6., 3., 2., 1., 4., 3., 0., 1., 1., 2., 1., 6., 1., 3., 3., 2., 0., 3., 3., 2., 5., 1., 0., 1., 1., 1., 0., 1., 1., 3., 0., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 1., 10., 2., 8., 3., 9., 18., 0., 8., 21., 2., 19., 2., 1., 1., 11., 2., 5., 16., 10., 24., 23., 4., 2., 0., 3., 1., 5., 5., 17., 19., 3., 13., 8., 15., 12., 1., 1., 6., 1., 16., 8., 11., 30., 7., 21., 6., 3., 0., 2., 1., 11., 0., 13., 6., 6., 18., 3., 14., 8., 1., 1., 0., 7., 0., 3., 3., 5., 1., 6., 4., 3., 5., 7., 2., 1., 1., 2., 0., 0., 0., 2., 8., 1., 2., 1., 1., 4., 0., 3., 2., 2., 8., 0., 0., 1., 4., 1., 2., 4., 2., 2., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 5., 2., 9., 3., 9., 1., 4., 32., 1., 14., 25., 1., 11., 3., 1., 2., 12., 1., 3., 33., 6., 26., 28., 3., 0., 1., 4., 1., 4., 8., 13., 17., 0., 18., 5., 11., 10., 1., 1., 4., 0., 6., 12., 20., 60., 13., 19., 5., 4., 1., 4., 1., 5., 4., 13., 6., 6., 18., 3., 23., 9., 1., 0., 0., 8., 1., 2., 1., 2., 7., 5., 3., 5., 3., 3., 2., 0., 2., 2., 0., 1., 0., 4., 5., 5., 4., 3., 2., 4., 3., 2., 0., 5., 10., 1., 0., 2., 4., 2., 3., 2., 2., 1., 0., 6., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 3., 6., 1., 1., 7., 2., 5., 30., 1., 17., 15., 0., 12., 3., 1., 1., 10., 0., 1., 28., 12., 21., 23., 6., 2., 0., 3., 5., 10., 16., 38., 10., 2., 19., 3., 10., 12., 1., 3., 6., 0., 13., 16., 26., 44., 13., 15., 13., 2., 0., 4., 1., 8., 4., 4., 7., 9., 6., 12., 21., 8., 3., 2., 1., 3., 0., 2., 4., 3., 3., 4., 5., 3., 6., 5., 5., 0., 3., 1., 0., 1., 4., 0., 5., 1., 1., 3., 3., 1., 2., 1., 0., 8., 11., 2., 0., 2., 3., 2., 3., 2., 3., 2., 2., 2., 0., 0., 0., 0., 7., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 1., 2., 4., 2., 3., 2., 3., 27., 1., 20., 22., 1., 21., 2., 1., 3., 19., 1., 8., 10., 15., 29., 29., 8., 0., 0., 0., 3., 5., 13., 25., 10., 3., 12., 5., 16., 9., 1., 2., 4., 4., 10., 14., 15., 38., 17., 17., 11., 4., 2., 5., 0., 10., 5., 9., 6., 7., 10., 4., 21., 13., 4., 1., 1., 4., 0., 4., 0., 5., 4., 3., 3., 0., 3., 2., 0., 0., 0., 1., 0., 0., 1., 3., 9., 5., 4., 0., 0., 7., 0., 3., 0., 2., 5., 3., 0., 2., 2., 0., 4., 1., 2., 3., 1., 3., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 3., 4., 11., 4., 3., 0., 6., 31., 0., 8., 26., 1., 15., 3., 1., 2., 18., 2., 4., 19., 10., 10., 20., 7., 0., 1., 2., 3., 10., 0., 23., 20., 3., 19., 2., 7., 6., 1., 1., 6., 0., 17., 8., 21., 40., 9., 34., 10., 4., 0., 11., 3., 5., 1., 10., 7., 5., 16., 6., 28., 9., 4., 1., 1., 10., 1., 6., 0., 5., 1., 6., 6., 4., 5., 3., 2., 2., 1., 4., 0., 0., 0., 0., 4., 4., 4., 0., 3., 6., 2., 1., 1., 2., 7., 2., 0., 2., 1., 1., 0., 1., 5., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 3., 0., 4., 7., 4., 6., 1., 2., 15., 0., 10., 21., 0., 22., 0., 0., 4., 15., 1., 1., 19., 16., 18., 32., 4., 0., 1., 4., 2., 7., 5., 24., 8., 4., 15., 4., 15., 11., 2., 1., 2., 5., 11., 10., 12., 37., 7., 19., 7., 4., 1., 3., 2., 11., 1., 3., 12., 10., 15., 8., 20., 7., 4., 0., 2., 11., 1., 7., 2., 5., 7., 7., 5., 1., 5., 3., 0., 0., 2., 0., 0., 5., 1., 1., 4., 1., 4., 2., 1., 3., 1., 2., 0., 3., 9., 2., 0., 2., 4., 1., 3., 0., 0., 2., 1., 1., 0., 0., 0., 0., 5., 0., 0., 4., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 3., 6., 7., 5., 4., 1., 4., 26., 1., 14., 27., 2., 18., 1., 0., 2., 13., 2., 4., 23., 11., 29., 26., 7., 0., 3., 4., 3., 9., 10., 26., 18., 3., 17., 3., 5., 11., 0., 2., 2., 0., 16., 13., 12., 51., 12., 19., 11., 2., 1., 4., 1., 8., 3., 9., 7., 9., 9., 9., 17., 8., 1., 0., 0., 7., 1., 3., 3., 2., 4., 2., 1., 4., 2., 2., 2., 1., 0., 1., 0., 4., 0., 1., 5., 3., 6., 4., 2., 3., 1., 3., 1., 1., 6., 0., 0., 3., 1., 0., 3., 2., 0., 4., 1., 2., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 4., 9., 7., 5., 0., 7., 27., 1., 11., 28., 0., 17., 1., 0., 2., 16., 4., 4., 24., 13., 22., 30., 5., 2., 0., 3., 0., 12., 6., 3., 14., 1., 7., 5., 17., 13., 0., 1., 4., 3., 10., 18., 13., 45., 8., 12., 14., 4., 2., 5., 0., 12., 2., 11., 9., 12., 16., 8., 22., 8., 1., 0., 2., 12., 1., 0., 1., 4., 2., 5., 6., 2., 1., 7., 2., 1., 1., 1., 0., 2., 3., 2., 2., 2., 1., 2., 0., 5., 1., 3., 2., 1., 7., 4., 0., 5., 4., 4., 2., 0., 1., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 0., 5., 6., 1., 9., 3., 6., 25., 1., 18., 24., 0., 23., 1., 1., 3., 17., 4., 5., 38., 9., 34., 30., 6., 0., 0., 6., 4., 14., 6., 34., 19., 2., 14., 7., 12., 7., 1., 0., 2., 3., 17., 19., 26., 35., 5., 33., 11., 2., 2., 9., 0., 7., 4., 6., 7., 8., 12., 5., 26., 9., 6., 3., 2., 10., 0., 2., 0., 2., 2., 5., 7., 1., 4., 3., 0., 2., 2., 4., 0., 1., 2., 0., 6., 1., 0., 2., 1., 2., 0., 3., 1., 2., 8., 3., 0., 1., 0., 2., 3., 4., 2., 2., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 4., 6., 13., 5., 7., 1., 5., 37., 1., 12., 17., 0., 20., 2., 0., 3., 16., 2., 1., 33., 12., 16., 22., 2., 0., 1., 5., 3., 11., 16., 28., 19., 0., 14., 4., 7., 11., 2., 0., 7., 1., 15., 7., 19., 40., 8., 27., 3., 2., 3., 3., 4., 4., 2., 6., 3., 4., 20., 4., 24., 10., 3., 1., 0., 5., 0., 1., 2., 10., 7., 3., 9., 0., 6., 6., 2., 2., 2., 4., 0., 3., 2., 1., 7., 6., 3., 4., 3., 8., 1., 1., 0., 1., 5., 2., 0., 2., 2., 3., 1., 1., 2., 2., 0., 4., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 3., 5., 8., 3., 10., 1., 7., 18., 1., 10., 21., 0., 11., 3., 3., 1., 18., 1., 3., 29., 8., 28., 21., 2., 2., 0., 2., 1., 10., 7., 20., 23., 5., 17., 6., 12., 11., 4., 1., 4., 4., 22., 12., 21., 41., 14., 26., 10., 4., 3., 4., 3., 8., 0., 9., 2., 7., 12., 10., 25., 13., 3., 2., 1., 12., 2., 2., 1., 3., 2., 6., 4., 2., 5., 6., 4., 0., 3., 2., 0., 3., 3., 5., 7., 6., 5., 1., 3., 4., 0., 3., 1., 4., 4., 0., 0., 4., 1., 2., 8., 3., 3., 3., 1., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 0., 3., 11., 4., 3., 1., 6., 18., 2., 13., 17., 1., 16., 2., 3., 4., 24., 2., 6., 31., 7., 32., 23., 2., 0., 2., 2., 2., 10., 2., 18., 22., 1., 5., 2., 12., 7., 4., 0., 2., 0., 11., 15., 18., 58., 13., 17., 9., 5., 0., 3., 1., 10., 2., 11., 7., 13., 14., 5., 18., 13., 2., 2., 2., 6., 0., 7., 4., 6., 5., 7., 2., 2., 2., 4., 2., 0., 1., 4., 0., 2., 3., 4., 7., 4., 10., 0., 2., 2., 0., 6., 1., 2., 9., 2., 0., 2., 2., 4., 2., 2., 1., 5., 0., 4., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 2., 4., 9., 3., 4., 2., 8., 19., 1., 22., 31., 1., 8., 4., 0., 3., 28., 3., 4., 22., 12., 18., 29., 6., 2., 2., 5., 3., 8., 10., 30., 18., 3., 12., 5., 13., 10., 1., 2., 2., 2., 11., 9., 16., 45., 19., 25., 8., 1., 1., 6., 1., 6., 3., 14., 8., 7., 12., 7., 19., 4., 3., 0., 3., 10., 2., 2., 3., 3., 3., 4., 4., 4., 4., 3., 1., 1., 0., 3., 0., 2., 2., 2., 4., 1., 3., 4., 2., 6., 1., 0., 1., 1., 4., 1., 0., 4., 3., 3., 2., 1., 3., 1., 2., 4., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 2., 1., 7., 10., 2., 8., 1., 7., 24., 2., 14., 21., 1., 24., 3., 1., 2., 23., 2., 3., 33., 14., 24., 28., 12., 0., 2., 4., 3., 6., 1., 34., 16., 4., 22., 3., 12., 5., 1., 2., 2., 3., 12., 14., 17., 53., 8., 19., 14., 7., 2., 2., 1., 8., 4., 13., 7., 12., 19., 4., 29., 9., 4., 2., 0., 1., 0., 6., 2., 0., 2., 4., 3., 3., 3., 3., 2., 0., 2., 1., 0., 4., 1., 1., 7., 4., 4., 3., 0., 1., 0., 1., 1., 1., 6., 3., 0., 1., 2., 3., 1., 1., 4., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 2., 11., 1., 5., 0., 3., 16., 3., 22., 27., 1., 13., 3., 1., 2., 18., 5., 8., 14., 11., 20., 19., 6., 2., 3., 6., 3., 7., 6., 26., 21., 1., 9., 5., 19., 5., 2., 1., 1., 2., 9., 10., 23., 25., 10., 21., 11., 3., 0., 3., 7., 3., 2., 9., 3., 5., 10., 3., 24., 8., 4., 0., 1., 4., 1., 5., 2., 5., 3., 1., 1., 1., 3., 3., 6., 1., 1., 1., 0., 2., 0., 2., 5., 2., 4., 2., 2., 2., 0., 3., 0., 2., 8., 1., 0., 4., 4., 0., 1., 4., 0., 2., 4., 1., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 1., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 6., 6., 3., 6., 3., 6., 20., 2., 17., 17., 0., 12., 1., 0., 1., 15., 2., 5., 19., 14., 36., 32., 4., 1., 2., 3., 2., 9., 13., 22., 11., 2., 13., 1., 14., 9., 1., 1., 4., 1., 12., 5., 20., 48., 6., 26., 4., 4., 0., 3., 2., 5., 4., 8., 7., 8., 14., 4., 23., 1., 2., 0., 0., 12., 0., 0., 2., 5., 5., 1., 4., 1., 5., 3., 2., 2., 1., 4., 0., 1., 2., 2., 5., 3., 3., 1., 1., 5., 1., 1., 1., 6., 6., 0., 0., 2., 3., 3., 2., 3., 1., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 2., 10., 0., 11., 1., 9., 29., 2., 17., 26., 0., 14., 4., 0., 5., 12., 3., 5., 21., 17., 22., 28., 2., 0., 1., 0., 0., 5., 6., 21., 15., 4., 19., 3., 9., 7., 0., 0., 2., 3., 14., 19., 24., 56., 9., 20., 9., 2., 1., 7., 3., 3., 4., 6., 6., 11., 20., 5., 21., 7., 5., 1., 1., 11., 0., 6., 0., 7., 2., 4., 5., 1., 4., 2., 1., 1., 3., 2., 0., 3., 0., 0., 7., 3., 4., 3., 2., 5., 1., 1., 2., 0., 5., 3., 0., 2., 4., 3., 3., 2., 2., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 3., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 4., 10., 0., 11., 3., 3., 51., 1., 6., 53., 1., 11., 1., 0., 1., 64., 11., 4., 69., 18., 74., 14., 6., 0., 0., 2., 1., 16., 13., 56., 16., 1., 39., 36., 14., 2., 0., 2., 2., 3., 28., 7., 25., 7., 9., 13., 5., 1., 0., 8., 2., 17., 6., 13., 1., 7., 4., 2., 36., 9., 11., 1., 0., 15., 2., 5., 0., 9., 4., 2., 2., 0., 1., 0., 11., 1., 21., 9., 5., 2., 4., 3., 0., 0., 0., 0., 0., 7., 1., 1., 3., 4., 2., 0., 0., 0., 0., 0., 0., 1., 8., 2., 0., 5., 0., 0., 0., 1., 0., 0., 0., 2., 0., 1., 2., 3., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 24., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
19., 3., 3., 5., 19., 6., 30., 0., 15., 163., 5., 20., 201., 2., 13., 9., 0., 5., 79., 5., 11., 297., 38., 348., 49., 14., 0., 1., 7., 2., 42., 33., 223., 44., 5., 159., 10., 39., 6., 0., 0., 17., 13., 74., 20., 93., 12., 28., 41., 21., 6., 0., 33., 2., 40., 7., 49., 11., 24., 4., 14., 7., 0., 0., 1., 0., 26., 5., 10., 3., 26., 1., 14., 2., 2., 4., 0., 0., 1., 2., 15., 0., 6., 2., 8., 3., 0., 7., 134., 7., 1863., 88., 104., 202., 92., 107., 70., 14., 12., 12., 20., 0., 2., 3., 5., 8., 8., 5., 41., 13., 30., 16., 40., 3., 3., 2., 6., 3., 4., 5., 6., 1., 10., 3., 0., 2., 8., 18., 0., 0., 9., 3., 2., 0., 5., 2., 3., 26., 3., 10., 3., 11., 3., 18., 4., 2., 4., 5., 27., 6., 29., 4., 3., 2., 5., 35., 7., 11., 4.,
11., 2., 2., 7., 20., 6., 29., 1., 21., 161., 5., 32., 226., 3., 15., 6., 1., 7., 80., 4., 12., 279., 38., 344., 33., 14., 3., 1., 5., 6., 39., 42., 226., 47., 13., 146., 8., 41., 10., 0., 4., 13., 13., 65., 14., 99., 16., 25., 38., 14., 3., 2., 16., 8., 35., 7., 53., 13., 24., 7., 4., 9., 0., 0., 0., 0., 17., 5., 18., 0., 31., 8., 10., 5., 5., 3., 1., 1., 2., 1., 9., 0., 10., 2., 7., 2., 1., 3., 130., 7., 1891., 108., 108., 205., 95., 115., 61., 16., 12., 17., 18., 2., 2., 7., 3., 3., 8., 11., 32., 20., 33., 22., 43., 13., 12., 3., 6., 6., 6., 1., 6., 3., 3., 2., 0., 7., 7., 18., 1., 0., 10., 5., 5., 0., 2., 3., 2., 40., 4., 10., 3., 15., 4., 14., 6., 2., 3., 8., 26., 4., 31., 9., 4., 9., 4., 29., 4., 8., 6.,
12., 3., 0., 3., 25., 4., 29., 0., 17., 132., 6., 31., 196., 5., 28., 12., 1., 4., 99., 1., 19., 259., 57., 321., 42., 14., 0., 1., 8., 3., 49., 27., 241., 44., 11., 163., 9., 38., 5., 0., 1., 18., 6., 79., 21., 80., 5., 38., 51., 10., 2., 1., 17., 6., 54., 9., 50., 6., 28., 6., 7., 6., 3., 0., 0., 0., 23., 8., 13., 2., 30., 4., 11., 3., 1., 0., 3., 3., 4., 1., 14., 2., 10., 5., 7., 2., 0., 5., 135., 6., 1877., 98., 93., 209., 110., 116., 75., 16., 14., 22., 10., 1., 3., 7., 7., 4., 9., 6., 35., 15., 31., 16., 36., 9., 4., 10., 3., 6., 8., 2., 1., 4., 7., 2., 0., 2., 4., 14., 2., 0., 7., 3., 2., 0., 8., 1., 3., 24., 3., 15., 4., 15., 7., 16., 1., 3., 5., 3., 36., 9., 30., 7., 6., 8., 3., 23., 15., 12., 8.,
20., 2., 3., 12., 25., 4., 33., 0., 18., 125., 4., 15., 192., 6., 19., 7., 2., 2., 70., 2., 13., 271., 49., 317., 47., 16., 0., 3., 4., 4., 38., 26., 234., 45., 7., 154., 19., 43., 6., 0., 7., 12., 9., 70., 26., 90., 12., 33., 50., 7., 2., 1., 23., 6., 44., 10., 60., 9., 35., 7., 9., 5., 5., 0., 2., 0., 23., 5., 9., 7., 30., 6., 10., 3., 0., 4., 1., 5., 5., 6., 14., 3., 12., 1., 6., 1., 0., 4., 129., 7., 1920., 94., 111., 217., 95., 98., 72., 12., 17., 24., 15., 1., 2., 7., 7., 4., 13., 7., 41., 14., 38., 14., 55., 6., 11., 2., 5., 10., 5., 4., 2., 2., 3., 2., 0., 3., 8., 10., 1., 0., 10., 0., 2., 0., 7., 2., 5., 28., 5., 13., 6., 6., 5., 21., 3., 4., 4., 2., 18., 2., 37., 5., 5., 5., 10., 21., 8., 11., 8.,
7., 3., 2., 8., 26., 5., 22., 0., 8., 149., 7., 23., 178., 5., 14., 7., 0., 2., 90., 1., 16., 266., 39., 327., 45., 16., 0., 1., 7., 1., 38., 36., 227., 34., 8., 160., 24., 31., 8., 0., 1., 11., 8., 88., 15., 95., 15., 40., 42., 9., 4., 3., 30., 5., 39., 6., 49., 10., 32., 9., 8., 10., 1., 0., 0., 0., 33., 2., 21., 5., 36., 7., 9., 10., 2., 2., 1., 2., 4., 0., 9., 2., 4., 2., 6., 1., 1., 4., 140., 8., 1893., 75., 99., 226., 97., 125., 53., 14., 13., 22., 18., 2., 1., 8., 2., 4., 11., 7., 32., 11., 32., 17., 42., 7., 13., 3., 11., 5., 7., 0., 3., 2., 8., 6., 0., 3., 7., 15., 3., 0., 11., 3., 4., 0., 4., 3., 4., 32., 3., 14., 6., 13., 5., 22., 0., 2., 4., 2., 21., 4., 32., 4., 2., 11., 5., 29., 10., 10., 8.,
12., 0., 3., 6., 21., 2., 34., 2., 21., 167., 1., 34., 171., 5., 18., 5., 3., 3., 85., 2., 22., 264., 27., 345., 43., 10., 1., 2., 15., 6., 42., 27., 224., 39., 9., 164., 12., 35., 8., 0., 3., 13., 7., 78., 20., 77., 15., 42., 51., 14., 2., 0., 29., 16., 46., 7., 56., 9., 27., 4., 14., 7., 1., 0., 0., 0., 19., 7., 13., 6., 22., 7., 11., 5., 4., 3., 1., 0., 5., 0., 16., 3., 10., 0., 14., 4., 1., 2., 118., 7., 1829., 108., 88., 213., 106., 114., 73., 16., 12., 13., 10., 0., 1., 4., 3., 7., 16., 5., 30., 22., 37., 17., 39., 9., 13., 8., 2., 5., 3., 3., 2., 1., 5., 0., 0., 4., 4., 17., 3., 0., 7., 6., 5., 0., 3., 4., 5., 41., 2., 11., 3., 14., 2., 23., 2., 4., 6., 6., 28., 7., 30., 3., 3., 5., 3., 35., 5., 16., 2.,
15., 0., 2., 13., 23., 12., 22., 2., 7., 143., 3., 33., 210., 3., 16., 9., 0., 7., 80., 2., 14., 292., 48., 309., 47., 16., 2., 2., 5., 8., 33., 39., 238., 34., 7., 166., 18., 28., 7., 0., 5., 18., 8., 82., 16., 85., 15., 39., 38., 15., 0., 0., 29., 2., 36., 9., 57., 9., 32., 4., 20., 13., 0., 0., 0., 0., 31., 5., 15., 2., 23., 5., 14., 2., 3., 3., 1., 2., 0., 1., 14., 3., 10., 3., 7., 1., 0., 6., 137., 10., 1871., 94., 99., 215., 98., 110., 67., 17., 12., 21., 11., 3., 0., 4., 11., 3., 5., 7., 30., 18., 21., 12., 35., 6., 8., 7., 2., 7., 7., 1., 2., 4., 8., 2., 0., 2., 4., 11., 1., 0., 16., 7., 4., 0., 2., 3., 4., 29., 3., 10., 0., 12., 2., 20., 3., 5., 8., 5., 26., 3., 31., 5., 6., 9., 6., 26., 9., 10., 4.,
11., 4., 2., 7., 16., 5., 36., 0., 17., 157., 3., 21., 221., 0., 18., 9., 1., 6., 71., 1., 20., 287., 41., 345., 38., 19., 1., 2., 9., 6., 46., 35., 229., 40., 7., 156., 12., 34., 8., 0., 2., 21., 6., 97., 22., 96., 14., 38., 56., 9., 5., 1., 14., 10., 33., 11., 41., 8., 41., 10., 16., 2., 3., 0., 1., 0., 34., 3., 20., 5., 23., 6., 16., 3., 2., 2., 1., 0., 1., 3., 9., 2., 4., 1., 6., 1., 2., 1., 133., 7., 1900., 87., 92., 224., 108., 102., 71., 14., 17., 15., 17., 0., 0., 8., 7., 5., 12., 4., 37., 16., 35., 12., 30., 7., 7., 1., 3., 7., 1., 4., 3., 3., 11., 4., 0., 5., 0., 11., 2., 0., 8., 3., 3., 0., 2., 3., 4., 20., 2., 14., 5., 14., 3., 21., 2., 1., 4., 3., 31., 1., 33., 9., 7., 7., 6., 33., 4., 12., 5.,
12., 1., 4., 8., 26., 4., 29., 0., 12., 177., 3., 30., 208., 4., 20., 8., 0., 8., 75., 3., 16., 291., 46., 338., 54., 20., 1., 3., 9., 4., 39., 37., 228., 38., 13., 159., 15., 37., 4., 0., 1., 9., 9., 76., 22., 99., 16., 39., 45., 9., 1., 2., 30., 6., 40., 8., 66., 11., 34., 4., 6., 10., 1., 0., 0., 0., 17., 3., 14., 1., 26., 4., 14., 4., 2., 1., 2., 2., 1., 0., 8., 3., 7., 0., 6., 3., 0., 0., 157., 7., 1873., 90., 109., 212., 97., 111., 64., 17., 12., 12., 16., 0., 3., 9., 5., 8., 12., 6., 27., 17., 32., 20., 53., 12., 7., 4., 8., 10., 7., 0., 4., 2., 11., 3., 0., 1., 9., 15., 3., 0., 6., 5., 5., 0., 9., 3., 5., 21., 4., 13., 2., 7., 5., 30., 3., 2., 5., 1., 21., 3., 30., 4., 5., 5., 6., 24., 8., 15., 5.,
14., 1., 3., 8., 18., 7., 39., 2., 23., 128., 5., 22., 200., 4., 13., 7., 0., 7., 94., 3., 19., 288., 35., 335., 41., 19., 0., 2., 8., 5., 42., 28., 219., 45., 8., 180., 10., 36., 7., 0., 4., 15., 10., 77., 21., 82., 15., 32., 43., 13., 0., 2., 24., 4., 38., 14., 57., 16., 33., 4., 9., 9., 2., 0., 0., 0., 23., 4., 12., 2., 23., 6., 15., 4., 0., 6., 2., 2., 6., 1., 13., 4., 4., 4., 9., 1., 0., 2., 154., 9., 1876., 81., 94., 214., 99., 104., 53., 16., 13., 11., 9., 1., 0., 2., 8., 3., 7., 8., 37., 12., 36., 21., 48., 10., 9., 8., 0., 7., 2., 1., 3., 7., 6., 2., 0., 2., 4., 17., 2., 0., 11., 1., 2., 0., 4., 5., 0., 34., 2., 17., 1., 13., 1., 25., 3., 5., 5., 5., 23., 1., 30., 6., 5., 8., 9., 46., 7., 15., 2.,
10., 0., 2., 1., 11., 4., 8., 3., 3., 27., 0., 14., 32., 1., 8., 4., 0., 3., 17., 0., 6., 13., 10., 24., 24., 4., 2., 1., 2., 1., 9., 5., 30., 13., 2., 17., 3., 19., 4., 0., 1., 8., 3., 13., 14., 14., 38., 11., 20., 13., 6., 4., 7., 5., 11., 1., 10., 6., 10., 19., 6., 25., 14., 5., 0., 1., 4., 1., 2., 2., 4., 3., 7., 3., 1., 4., 1., 3., 1., 4., 2., 0., 1., 1., 1., 7., 3., 6., 1., 2., 4., 1., 2., 0., 2., 8., 1., 0., 6., 2., 2., 2., 2., 2., 4., 1., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 3., 11., 5., 7., 2., 5., 13., 1., 19., 24., 2., 13., 3., 1., 1., 13., 0., 3., 22., 9., 30., 20., 5., 0., 1., 2., 3., 5., 8., 27., 17., 8., 15., 9., 13., 9., 3., 0., 5., 3., 9., 16., 25., 45., 17., 19., 5., 5., 2., 1., 2., 2., 2., 7., 9., 7., 16., 7., 19., 7., 3., 1., 1., 7., 4., 0., 1., 6., 6., 2., 1., 2., 6., 4., 4., 0., 0., 2., 0., 2., 1., 2., 9., 3., 3., 4., 0., 4., 0., 2., 0., 2., 6., 0., 0., 1., 3., 1., 1., 0., 3., 2., 3., 2., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 3., 1., 4., 5., 4., 6., 1., 6., 23., 2., 20., 20., 1., 23., 5., 3., 2., 18., 1., 4., 31., 13., 16., 27., 8., 0., 0., 1., 2., 9., 14., 26., 16., 1., 14., 6., 18., 7., 1., 0., 5., 3., 6., 7., 12., 45., 12., 21., 10., 3., 0., 7., 2., 12., 4., 7., 4., 5., 15., 7., 31., 8., 3., 1., 0., 17., 1., 4., 1., 6., 0., 4., 3., 5., 4., 5., 2., 0., 1., 1., 0., 3., 2., 1., 11., 1., 2., 1., 0., 2., 0., 2., 0., 1., 5., 2., 0., 3., 2., 1., 4., 2., 0., 4., 0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 3., 8., 3., 1., 1., 5., 22., 1., 18., 14., 0., 17., 0., 0., 0., 17., 2., 5., 30., 6., 19., 23., 11., 0., 1., 2., 3., 9., 7., 17., 14., 6., 24., 6., 16., 10., 2., 0., 4., 2., 10., 12., 26., 53., 12., 21., 6., 5., 1., 6., 3., 6., 2., 5., 3., 7., 20., 3., 20., 12., 1., 0., 1., 9., 1., 1., 5., 6., 3., 1., 7., 2., 2., 4., 1., 1., 0., 0., 0., 3., 2., 5., 8., 0., 4., 5., 4., 1., 0., 2., 2., 2., 11., 3., 0., 1., 1., 3., 3., 2., 5., 2., 1., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 8., 5., 3., 4., 2., 2., 22., 1., 18., 11., 1., 14., 4., 3., 2., 27., 5., 6., 15., 11., 18., 21., 5., 2., 0., 4., 0., 6., 2., 17., 18., 2., 15., 3., 12., 7., 1., 1., 3., 1., 15., 13., 19., 41., 10., 17., 5., 2., 0., 5., 3., 3., 2., 9., 7., 11., 14., 8., 29., 9., 3., 1., 0., 2., 0., 5., 1., 2., 3., 1., 6., 4., 1., 4., 2., 0., 2., 3., 0., 3., 1., 1., 9., 5., 11., 2., 1., 1., 0., 4., 1., 5., 9., 1., 0., 2., 1., 1., 0., 4., 2., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 2., 11., 2., 3., 0., 4., 23., 0., 17., 20., 2., 14., 2., 3., 0., 19., 1., 3., 28., 15., 23., 41., 4., 1., 0., 1., 2., 9., 8., 25., 16., 3., 7., 6., 11., 3., 4., 1., 7., 1., 10., 15., 25., 32., 15., 22., 12., 3., 2., 3., 1., 2., 1., 6., 8., 8., 15., 8., 15., 7., 6., 0., 1., 6., 1., 2., 0., 3., 3., 6., 3., 1., 5., 2., 2., 0., 2., 1., 0., 3., 1., 1., 9., 2., 6., 1., 1., 2., 1., 4., 0., 3., 7., 3., 0., 2., 2., 1., 0., 2., 3., 1., 1., 3., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 4., 9., 2., 12., 1., 5., 28., 2., 11., 24., 2., 12., 3., 2., 5., 19., 5., 3., 25., 13., 42., 21., 6., 3., 1., 3., 2., 7., 5., 21., 13., 5., 13., 4., 14., 7., 4., 0., 6., 2., 9., 10., 18., 27., 13., 29., 13., 5., 0., 8., 0., 6., 5., 12., 11., 10., 20., 2., 19., 4., 2., 0., 1., 4., 2., 6., 1., 3., 5., 3., 3., 3., 5., 2., 0., 3., 3., 1., 0., 1., 1., 1., 4., 2., 2., 4., 3., 3., 2., 1., 1., 4., 7., 1., 0., 5., 3., 3., 1., 1., 0., 2., 0., 1., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 1., 8., 7., 3., 3., 2., 2., 22., 4., 9., 15., 1., 21., 4., 0., 3., 16., 2., 2., 34., 18., 33., 21., 4., 1., 0., 1., 2., 4., 3., 32., 18., 4., 19., 4., 14., 8., 4., 0., 6., 1., 6., 10., 18., 37., 7., 13., 11., 7., 1., 4., 2., 7., 1., 3., 9., 8., 15., 8., 23., 8., 3., 0., 1., 8., 3., 3., 0., 7., 6., 6., 2., 3., 3., 2., 3., 2., 2., 3., 0., 1., 2., 4., 6., 4., 2., 4., 3., 9., 2., 4., 1., 4., 8., 4., 0., 2., 1., 2., 3., 2., 3., 0., 2., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 6., 5., 2., 5., 0., 5., 29., 0., 13., 16., 0., 16., 7., 1., 2., 16., 2., 7., 29., 12., 34., 24., 6., 1., 0., 4., 6., 6., 8., 24., 13., 4., 20., 5., 8., 10., 2., 1., 3., 1., 17., 10., 24., 57., 7., 22., 9., 6., 3., 5., 1., 7., 4., 8., 6., 8., 15., 0., 25., 10., 5., 2., 1., 5., 0., 3., 4., 5., 1., 5., 3., 3., 5., 4., 2., 1., 2., 1., 0., 4., 3., 3., 7., 1., 4., 2., 3., 5., 2., 3., 2., 4., 11., 1., 0., 4., 1., 2., 5., 2., 2., 2., 2., 2., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 8., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 2., 5., 9., 0., 6., 0., 3., 24., 0., 19., 27., 1., 8., 5., 0., 2., 13., 2., 7., 23., 17., 16., 21., 5., 0., 0., 1., 0., 7., 4., 28., 12., 6., 26., 6., 10., 8., 2., 1., 0., 3., 8., 8., 26., 33., 13., 17., 7., 6., 0., 3., 2., 5., 2., 4., 7., 8., 14., 6., 19., 8., 2., 0., 1., 4., 2., 2., 2., 6., 3., 0., 9., 5., 2., 2., 3., 1., 0., 0., 0., 2., 3., 3., 3., 0., 1., 2., 2., 4., 1., 1., 2., 2., 7., 4., 0., 0., 4., 3., 2., 2., 4., 2., 1., 3., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 6., 6., 2., 5., 0., 5., 28., 0., 11., 32., 1., 20., 4., 0., 1., 20., 3., 6., 35., 12., 25., 27., 8., 0., 1., 3., 1., 9., 4., 15., 13., 3., 26., 0., 12., 6., 1., 2., 6., 4., 7., 14., 19., 44., 18., 27., 2., 5., 1., 8., 0., 6., 2., 8., 8., 6., 18., 6., 27., 5., 3., 0., 3., 8., 0., 4., 1., 4., 1., 2., 2., 1., 4., 0., 3., 0., 0., 3., 0., 1., 2., 1., 9., 3., 4., 0., 2., 5., 1., 4., 0., 3., 7., 0., 0., 3., 4., 0., 1., 1., 0., 3., 1., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 1., 5., 7., 9., 4., 0., 8., 7., 0., 15., 19., 1., 12., 2., 1., 2., 41., 2., 4., 19., 16., 40., 18., 7., 0., 2., 4., 0., 11., 8., 21., 13., 3., 11., 5., 15., 9., 1., 1., 6., 2., 10., 12., 11., 41., 10., 18., 9., 4., 2., 6., 4., 10., 3., 16., 4., 12., 24., 4., 18., 11., 3., 1., 1., 5., 2., 5., 3., 6., 6., 2., 5., 0., 4., 4., 4., 0., 3., 2., 0., 0., 2., 2., 2., 1., 5., 2., 2., 5., 0., 2., 0., 2., 6., 0., 0., 4., 2., 2., 3., 3., 4., 3., 0., 0., 0., 0., 0., 0., 4., 0., 0., 5., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 0., 2., 3., 1., 2., 1., 4., 18., 0., 11., 19., 1., 21., 6., 2., 0., 15., 3., 5., 28., 9., 25., 32., 6., 0., 3., 4., 2., 5., 7., 24., 16., 3., 15., 6., 15., 7., 0., 4., 7., 1., 16., 11., 10., 44., 12., 16., 2., 4., 1., 5., 0., 4., 7., 10., 9., 7., 12., 4., 15., 7., 2., 2., 2., 5., 2., 1., 4., 7., 3., 2., 9., 1., 6., 5., 2., 1., 2., 2., 0., 0., 2., 3., 7., 4., 6., 1., 2., 0., 1., 2., 2., 1., 6., 2., 0., 4., 2., 2., 4., 4., 1., 2., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 4., 7., 2., 8., 2., 6., 31., 0., 15., 23., 1., 10., 6., 0., 1., 24., 0., 4., 26., 16., 27., 23., 6., 0., 0., 4., 1., 13., 14., 24., 17., 2., 17., 1., 15., 8., 4., 1., 6., 0., 18., 5., 12., 36., 14., 29., 5., 4., 0., 10., 2., 6., 4., 13., 2., 11., 22., 4., 21., 9., 4., 2., 1., 4., 1., 4., 2., 5., 3., 3., 3., 1., 1., 5., 2., 1., 0., 2., 0., 2., 1., 3., 8., 2., 6., 5., 4., 1., 0., 4., 0., 2., 10., 3., 0., 1., 3., 0., 1., 1., 5., 2., 0., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 4., 9., 2., 6., 1., 4., 14., 1., 19., 17., 2., 6., 3., 0., 0., 12., 1., 3., 17., 12., 25., 18., 5., 0., 2., 1., 1., 5., 5., 28., 22., 2., 17., 8., 11., 9., 0., 0., 5., 1., 14., 16., 14., 46., 8., 16., 5., 3., 2., 4., 2., 6., 6., 14., 5., 8., 19., 9., 26., 7., 3., 1., 2., 8., 1., 0., 1., 7., 2., 3., 7., 2., 3., 2., 3., 1., 2., 0., 0., 1., 4., 4., 11., 2., 1., 2., 4., 5., 4., 2., 1., 1., 13., 5., 0., 3., 3., 4., 4., 2., 0., 0., 2., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 0., 3., 3., 5., 5., 6., 1., 3., 23., 0., 13., 22., 0., 17., 4., 0., 0., 19., 0., 4., 14., 9., 23., 34., 3., 1., 0., 6., 3., 11., 5., 30., 17., 1., 7., 2., 16., 14., 3., 0., 6., 3., 11., 6., 20., 48., 14., 11., 10., 7., 0., 5., 5., 6., 1., 10., 4., 7., 12., 5., 20., 13., 4., 1., 1., 9., 1., 2., 1., 5., 4., 4., 3., 1., 6., 0., 2., 1., 1., 3., 0., 1., 4., 4., 5., 3., 6., 2., 3., 2., 1., 1., 0., 2., 10., 1., 0., 5., 2., 2., 2., 2., 6., 4., 1., 5., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 1., 5., 4., 10., 3., 6., 0., 4., 26., 3., 16., 20., 0., 15., 2., 1., 2., 9., 1., 8., 24., 10., 22., 17., 3., 1., 2., 2., 1., 10., 11., 16., 12., 3., 21., 4., 11., 14., 0., 2., 4., 2., 15., 14., 21., 54., 12., 21., 6., 4., 1., 2., 2., 4., 5., 11., 10., 10., 21., 8., 21., 10., 4., 1., 0., 8., 0., 3., 1., 4., 4., 5., 4., 1., 3., 4., 1., 2., 1., 1., 0., 5., 3., 0., 9., 3., 4., 2., 5., 1., 0., 5., 2., 1., 7., 1., 0., 0., 2., 0., 2., 1., 0., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 0., 6., 16., 2., 9., 0., 10., 20., 0., 10., 17., 1., 13., 5., 2., 4., 17., 2., 5., 24., 12., 24., 25., 9., 0., 2., 1., 3., 9., 8., 30., 15., 4., 16., 3., 11., 7., 3., 2., 4., 2., 14., 11., 18., 40., 13., 24., 10., 3., 1., 5., 1., 10., 3., 12., 7., 9., 16., 11., 17., 9., 3., 3., 0., 4., 2., 6., 2., 6., 3., 1., 8., 3., 5., 1., 1., 1., 2., 2., 0., 2., 6., 0., 7., 3., 6., 4., 2., 5., 0., 3., 1., 1., 9., 1., 0., 2., 2., 0., 2., 1., 1., 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 1., 1., 6., 1., 2., 0., 3., 10., 2., 21., 25., 0., 13., 3., 1., 2., 19., 2., 3., 32., 18., 22., 29., 5., 0., 2., 8., 3., 7., 8., 32., 14., 2., 19., 3., 16., 12., 2., 1., 7., 0., 9., 14., 11., 47., 13., 12., 9., 5., 1., 7., 1., 3., 5., 9., 5., 6., 20., 3., 13., 7., 2., 0., 2., 10., 0., 2., 2., 2., 4., 3., 2., 2., 6., 2., 3., 0., 2., 2., 0., 2., 3., 2., 4., 2., 3., 3., 0., 5., 1., 3., 1., 8., 6., 3., 0., 2., 2., 1., 3., 2., 1., 3., 2., 4., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 10., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 0., 7., 8., 4., 9., 2., 5., 23., 1., 18., 29., 0., 10., 1., 0., 0., 8., 2., 7., 15., 16., 31., 34., 3., 0., 1., 4., 3., 5., 6., 13., 20., 0., 15., 7., 20., 13., 3., 0., 2., 3., 20., 9., 18., 37., 14., 22., 10., 3., 1., 7., 5., 6., 2., 12., 9., 8., 12., 4., 23., 11., 3., 0., 1., 6., 1., 4., 2., 5., 0., 4., 3., 1., 4., 1., 3., 2., 2., 2., 0., 1., 1., 1., 8., 1., 2., 3., 3., 4., 1., 2., 2., 2., 3., 1., 0., 4., 2., 2., 1., 2., 1., 3., 0., 4., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 5., 6., 0., 14., 2., 6., 60., 1., 13., 50., 1., 4., 2., 0., 1., 76., 10., 5., 84., 11., 83., 9., 3., 0., 1., 1., 3., 13., 6., 46., 11., 1., 51., 22., 14., 3., 0., 1., 13., 1., 27., 5., 16., 11., 13., 7., 3., 1., 0., 7., 3., 10., 7., 18., 4., 7., 2., 0., 36., 5., 9., 2., 0., 21., 4., 5., 1., 6., 1., 4., 0., 0., 1., 0., 3., 4., 13., 12., 1., 6., 0., 1., 0., 0., 0., 0., 0., 8., 3., 3., 1., 2., 3., 1., 0., 4., 0., 0., 0., 0., 4., 0., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 3., 2., 2., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 30., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 2., 11., 0., 6., 3., 8., 48., 0., 5., 63., 1., 3., 3., 0., 1., 63., 3., 2., 82., 15., 74., 15., 1., 0., 1., 3., 2., 8., 11., 44., 14., 2., 40., 38., 20., 6., 0., 0., 7., 4., 20., 0., 30., 9., 15., 10., 4., 5., 0., 8., 4., 19., 7., 9., 4., 8., 1., 2., 39., 8., 10., 1., 0., 18., 2., 5., 0., 5., 3., 2., 0., 1., 1., 0., 5., 0., 13., 5., 3., 2., 0., 1., 0., 0., 0., 0., 0., 4., 2., 4., 0., 3., 1., 0., 0., 1., 0., 1., 0., 1., 3., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 1., 0., 5., 0., 3., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 19., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 2., 16., 16., 3., 38., 3., 16., 162., 3., 19., 229., 4., 13., 9., 0., 6., 94., 1., 15., 262., 53., 305., 45., 13., 0., 6., 6., 4., 55., 37., 227., 35., 2., 139., 12., 35., 11., 0., 0., 11., 14., 69., 22., 95., 15., 30., 33., 14., 2., 2., 26., 12., 48., 14., 59., 5., 29., 9., 8., 8., 2., 0., 0., 0., 20., 2., 9., 4., 32., 4., 15., 7., 3., 3., 3., 1., 2., 0., 8., 6., 8., 4., 8., 1., 2., 5., 179., 7., 1907., 98., 96., 241., 107., 105., 88., 16., 14., 21., 14., 0., 3., 6., 2., 3., 10., 8., 39., 16., 27., 18., 30., 5., 8., 5., 5., 9., 2., 2., 3., 1., 9., 5., 0., 5., 5., 19., 0., 0., 9., 10., 2., 0., 6., 3., 1., 40., 1., 15., 3., 12., 0., 23., 4., 1., 1., 5., 33., 2., 25., 9., 2., 4., 7., 28., 8., 11., 7.,
20., 2., 2., 6., 26., 5., 37., 0., 19., 160., 1., 28., 222., 6., 19., 8., 1., 8., 85., 0., 9., 255., 53., 349., 39., 15., 0., 2., 4., 10., 44., 29., 252., 36., 7., 163., 13., 40., 6., 0., 0., 15., 8., 83., 19., 83., 20., 41., 43., 12., 6., 1., 18., 9., 34., 10., 64., 9., 22., 8., 10., 9., 2., 0., 2., 0., 26., 1., 19., 2., 29., 4., 11., 6., 1., 2., 0., 1., 0., 3., 4., 5., 9., 2., 5., 0., 0., 7., 148., 11., 1946., 97., 106., 236., 95., 111., 60., 22., 10., 18., 13., 0., 0., 11., 7., 0., 16., 8., 32., 22., 31., 23., 35., 12., 8., 4., 3., 5., 7., 1., 1., 1., 7., 1., 0., 4., 6., 18., 2., 0., 3., 3., 0., 0., 0., 5., 5., 39., 6., 8., 4., 15., 7., 24., 2., 5., 1., 2., 29., 12., 27., 4., 5., 6., 4., 25., 10., 10., 2.,
10., 0., 1., 9., 34., 3., 35., 0., 19., 146., 3., 24., 222., 11., 24., 3., 0., 4., 67., 1., 23., 267., 53., 323., 38., 21., 2., 2., 8., 5., 50., 26., 241., 37., 8., 135., 15., 42., 3., 0., 3., 14., 7., 77., 21., 85., 14., 32., 65., 9., 5., 2., 30., 5., 39., 14., 43., 12., 36., 6., 6., 10., 5., 0., 0., 0., 22., 4., 14., 2., 22., 5., 10., 4., 1., 3., 1., 1., 0., 3., 10., 2., 8., 1., 10., 2., 0., 5., 123., 7., 1876., 87., 104., 226., 73., 111., 68., 12., 16., 23., 21., 1., 1., 8., 3., 3., 8., 8., 30., 14., 48., 9., 35., 6., 12., 4., 4., 9., 8., 0., 6., 3., 5., 2., 0., 3., 5., 26., 3., 0., 9., 7., 0., 0., 4., 4., 1., 24., 8., 11., 3., 15., 3., 18., 3., 3., 2., 6., 24., 5., 31., 13., 5., 7., 7., 39., 6., 9., 6.,
10., 2., 3., 9., 26., 4., 37., 0., 17., 144., 1., 24., 214., 7., 16., 8., 1., 7., 82., 2., 23., 302., 38., 340., 41., 16., 1., 3., 7., 4., 51., 24., 223., 45., 11., 141., 16., 33., 5., 0., 1., 17., 6., 77., 16., 95., 9., 40., 49., 11., 3., 1., 24., 4., 37., 3., 43., 7., 25., 4., 18., 2., 1., 0., 0., 0., 17., 7., 11., 4., 31., 2., 6., 6., 1., 2., 0., 1., 2., 1., 14., 8., 9., 0., 6., 1., 1., 4., 143., 13., 1888., 96., 86., 229., 95., 106., 58., 17., 11., 15., 7., 0., 1., 2., 2., 8., 3., 3., 42., 16., 37., 15., 30., 3., 7., 1., 3., 6., 4., 2., 3., 2., 9., 5., 0., 6., 2., 11., 2., 0., 9., 5., 6., 0., 8., 5., 3., 28., 6., 11., 3., 13., 6., 13., 5., 3., 5., 4., 21., 7., 30., 5., 4., 7., 6., 25., 5., 8., 13.,
10., 0., 2., 5., 32., 7., 28., 1., 20., 149., 5., 32., 166., 3., 13., 8., 1., 2., 89., 1., 17., 288., 45., 333., 44., 22., 0., 2., 5., 2., 44., 36., 254., 47., 2., 151., 17., 43., 9., 0., 1., 24., 9., 90., 16., 82., 14., 38., 51., 15., 3., 0., 33., 7., 37., 10., 51., 10., 42., 6., 20., 4., 2., 0., 0., 0., 24., 2., 10., 6., 26., 4., 11., 5., 1., 2., 1., 0., 3., 2., 18., 4., 6., 3., 13., 1., 0., 4., 140., 4., 1958., 76., 103., 215., 100., 105., 80., 11., 11., 18., 21., 2., 3., 9., 3., 3., 5., 10., 50., 21., 34., 20., 41., 6., 14., 4., 7., 6., 5., 1., 2., 2., 10., 3., 0., 4., 5., 16., 5., 0., 9., 1., 6., 0., 8., 4., 3., 28., 3., 10., 4., 11., 1., 17., 1., 5., 6., 4., 25., 9., 35., 12., 4., 12., 2., 30., 3., 15., 1.,
13., 1., 3., 10., 21., 6., 37., 0., 16., 152., 4., 34., 190., 4., 20., 7., 0., 4., 88., 1., 14., 276., 37., 338., 34., 10., 2., 5., 8., 6., 48., 35., 248., 40., 6., 159., 16., 48., 11., 0., 0., 23., 6., 70., 17., 76., 16., 39., 37., 15., 3., 0., 29., 10., 34., 9., 46., 7., 29., 7., 5., 8., 4., 0., 1., 0., 34., 9., 19., 2., 29., 0., 13., 8., 4., 2., 2., 2., 4., 0., 13., 3., 10., 3., 10., 1., 0., 6., 138., 6., 1895., 81., 81., 240., 97., 109., 54., 11., 19., 22., 10., 0., 1., 5., 5., 1., 11., 8., 40., 17., 37., 16., 51., 7., 7., 2., 3., 4., 2., 2., 1., 2., 11., 1., 0., 1., 6., 18., 2., 0., 8., 8., 5., 0., 3., 2., 2., 33., 8., 13., 3., 11., 2., 24., 3., 2., 4., 5., 31., 5., 33., 4., 6., 7., 1., 32., 8., 12., 5.,
17., 3., 2., 9., 22., 5., 25., 1., 9., 179., 2., 30., 209., 5., 11., 5., 3., 3., 76., 0., 16., 285., 34., 352., 51., 11., 2., 3., 2., 6., 42., 34., 221., 42., 12., 148., 11., 36., 7., 0., 6., 13., 8., 80., 15., 85., 12., 42., 33., 14., 3., 3., 22., 4., 32., 8., 33., 9., 34., 10., 13., 6., 1., 0., 2., 0., 28., 4., 12., 2., 30., 2., 8., 5., 3., 3., 1., 2., 1., 0., 11., 5., 8., 1., 7., 2., 2., 2., 159., 8., 1923., 80., 85., 240., 91., 112., 77., 20., 15., 23., 8., 2., 1., 5., 3., 7., 4., 10., 35., 13., 27., 14., 33., 8., 8., 6., 3., 3., 4., 1., 3., 1., 9., 0., 0., 5., 4., 20., 2., 0., 9., 4., 6., 0., 8., 4., 2., 34., 2., 12., 1., 15., 3., 33., 3., 2., 11., 10., 18., 2., 31., 8., 5., 4., 7., 29., 6., 15., 4.,
16., 4., 8., 10., 26., 3., 29., 1., 16., 190., 5., 33., 210., 6., 10., 4., 0., 2., 84., 3., 19., 288., 47., 334., 38., 15., 2., 3., 3., 8., 40., 37., 233., 46., 5., 129., 9., 36., 9., 0., 2., 20., 3., 69., 13., 110., 20., 27., 48., 8., 0., 0., 20., 7., 31., 6., 53., 9., 34., 8., 13., 13., 0., 0., 0., 0., 29., 5., 16., 3., 26., 2., 16., 3., 2., 5., 1., 2., 1., 1., 11., 5., 5., 1., 7., 0., 0., 4., 137., 10., 1930., 91., 77., 232., 97., 118., 85., 10., 14., 15., 10., 3., 0., 8., 1., 5., 7., 8., 45., 12., 37., 16., 36., 4., 13., 6., 3., 10., 8., 0., 1., 4., 9., 1., 0., 6., 0., 13., 1., 0., 11., 0., 1., 0., 2., 3., 4., 31., 2., 17., 2., 13., 6., 19., 6., 4., 4., 4., 22., 3., 35., 4., 3., 4., 4., 31., 4., 12., 10.,
21., 0., 3., 11., 25., 4., 43., 0., 18., 152., 3., 26., 238., 6., 6., 7., 0., 6., 77., 5., 16., 309., 40., 298., 36., 10., 1., 1., 3., 6., 42., 13., 215., 26., 6., 151., 20., 45., 8., 0., 1., 14., 4., 74., 17., 103., 18., 36., 46., 9., 2., 1., 22., 9., 36., 9., 35., 4., 33., 4., 11., 7., 3., 0., 1., 0., 19., 5., 11., 4., 27., 4., 10., 6., 2., 2., 2., 0., 2., 0., 8., 2., 13., 1., 7., 1., 2., 1., 131., 7., 1965., 71., 104., 237., 95., 93., 57., 15., 17., 16., 19., 1., 2., 5., 6., 4., 9., 8., 31., 17., 36., 8., 34., 2., 10., 4., 7., 6., 6., 3., 3., 5., 5., 4., 0., 2., 4., 15., 2., 0., 8., 4., 1., 0., 4., 4., 1., 30., 3., 14., 2., 11., 4., 24., 4., 6., 2., 6., 23., 9., 42., 2., 11., 11., 5., 28., 4., 14., 5.,
7., 1., 0., 3., 13., 4., 6., 0., 8., 21., 0., 21., 13., 1., 26., 3., 0., 2., 15., 5., 3., 28., 15., 38., 30., 5., 0., 1., 4., 2., 6., 13., 17., 16., 6., 25., 5., 14., 14., 1., 3., 5., 1., 11., 11., 28., 47., 15., 13., 10., 3., 1., 10., 1., 9., 4., 14., 3., 7., 19., 6., 19., 7., 5., 1., 0., 7., 0., 2., 1., 4., 3., 5., 3., 1., 13., 1., 2., 2., 1., 1., 0., 2., 3., 0., 6., 2., 3., 1., 3., 1., 1., 1., 1., 0., 5., 2., 0., 2., 2., 6., 1., 1., 0., 2., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 0., 7., 11., 1., 8., 2., 11., 28., 1., 7., 18., 2., 15., 1., 0., 2., 24., 2., 5., 25., 14., 19., 24., 8., 1., 0., 0., 1., 10., 9., 25., 11., 1., 7., 5., 23., 6., 2., 2., 4., 1., 12., 15., 6., 43., 6., 20., 10., 5., 1., 6., 1., 10., 2., 10., 2., 8., 15., 8., 24., 9., 2., 0., 2., 8., 3., 2., 1., 2., 3., 4., 3., 2., 1., 1., 3., 2., 0., 3., 0., 5., 2., 5., 4., 1., 6., 4., 2., 3., 3., 3., 1., 2., 5., 4., 0., 3., 0., 4., 1., 0., 0., 6., 1., 4., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 1., 3., 3., 4., 1., 3., 0., 3., 13., 1., 11., 20., 0., 14., 5., 0., 1., 23., 3., 1., 21., 13., 24., 27., 4., 1., 0., 4., 1., 12., 8., 20., 27., 4., 19., 6., 15., 9., 2., 2., 5., 5., 14., 10., 10., 43., 14., 21., 9., 4., 1., 3., 2., 5., 3., 16., 9., 14., 15., 7., 17., 7., 2., 0., 1., 7., 3., 5., 1., 5., 2., 5., 2., 1., 3., 3., 4., 1., 4., 3., 0., 2., 2., 2., 6., 2., 5., 1., 1., 3., 0., 1., 2., 2., 6., 1., 0., 1., 3., 1., 1., 5., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 2., 3., 4., 5., 3., 5., 2., 1., 22., 1., 16., 16., 3., 19., 1., 0., 1., 4., 3., 3., 31., 13., 19., 30., 9., 3., 0., 4., 3., 6., 0., 24., 16., 1., 14., 6., 14., 6., 2., 1., 4., 3., 14., 12., 15., 41., 15., 27., 8., 3., 1., 6., 2., 4., 2., 12., 5., 4., 12., 11., 25., 13., 3., 3., 0., 7., 2., 4., 2., 0., 2., 4., 6., 1., 2., 4., 2., 2., 2., 4., 0., 3., 0., 0., 4., 4., 1., 0., 4., 4., 1., 4., 1., 1., 7., 3., 0., 2., 1., 3., 5., 0., 3., 2., 1., 3., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 0., 3., 6., 4., 13., 1., 9., 18., 0., 13., 15., 3., 11., 5., 0., 2., 29., 0., 1., 24., 11., 31., 24., 7., 1., 0., 3., 2., 6., 12., 19., 9., 2., 20., 3., 11., 10., 1., 1., 2., 3., 12., 11., 17., 37., 11., 15., 10., 1., 2., 2., 1., 13., 1., 5., 4., 4., 15., 3., 24., 4., 3., 1., 2., 5., 1., 1., 1., 3., 2., 4., 2., 1., 5., 0., 3., 1., 3., 6., 0., 1., 0., 3., 7., 3., 4., 2., 0., 2., 0., 0., 0., 1., 3., 6., 0., 1., 4., 2., 3., 1., 0., 4., 1., 3., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 1., 13., 1., 8., 0., 6., 24., 1., 15., 32., 1., 19., 6., 0., 1., 14., 4., 4., 21., 9., 32., 32., 5., 2., 0., 5., 0., 3., 8., 31., 12., 3., 21., 2., 9., 13., 3., 2., 3., 2., 16., 16., 18., 52., 13., 19., 11., 1., 0., 4., 2., 5., 2., 11., 8., 8., 10., 3., 22., 6., 4., 0., 0., 5., 1., 2., 3., 2., 4., 2., 4., 0., 3., 3., 1., 0., 0., 3., 0., 2., 2., 1., 7., 0., 1., 1., 3., 6., 1., 2., 2., 1., 8., 3., 0., 2., 0., 3., 3., 1., 1., 2., 0., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 6., 6., 8., 2., 4., 1., 6., 37., 2., 13., 8., 1., 13., 2., 0., 0., 13., 0., 4., 28., 11., 21., 28., 2., 1., 0., 4., 2., 4., 9., 23., 23., 1., 12., 7., 13., 6., 7., 2., 5., 1., 14., 12., 12., 39., 15., 16., 11., 3., 1., 3., 2., 3., 1., 11., 4., 3., 25., 6., 17., 3., 2., 0., 1., 6., 0., 3., 1., 5., 4., 1., 8., 1., 2., 4., 0., 1., 1., 2., 0., 2., 5., 3., 7., 1., 5., 1., 1., 1., 2., 1., 1., 2., 7., 3., 0., 4., 1., 1., 2., 1., 5., 1., 1., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 3., 7., 5., 6., 1., 10., 25., 1., 9., 24., 0., 18., 0., 3., 0., 17., 2., 4., 24., 15., 25., 25., 3., 0., 0., 3., 4., 5., 6., 21., 22., 8., 17., 4., 12., 12., 0., 1., 6., 1., 8., 5., 16., 47., 10., 20., 8., 5., 0., 5., 1., 8., 1., 9., 4., 11., 26., 8., 25., 11., 7., 4., 0., 5., 3., 6., 1., 5., 6., 4., 6., 1., 5., 1., 3., 2., 2., 2., 0., 3., 2., 0., 6., 5., 4., 2., 5., 5., 0., 1., 4., 1., 8., 1., 0., 1., 4., 4., 2., 2., 2., 1., 3., 0., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 2., 4., 2., 4., 1., 12., 1., 6., 18., 1., 9., 22., 2., 15., 2., 2., 2., 4., 6., 3., 28., 7., 21., 33., 2., 1., 0., 2., 2., 6., 6., 24., 20., 2., 13., 3., 14., 6., 1., 0., 6., 5., 8., 9., 15., 47., 11., 21., 8., 5., 2., 10., 2., 6., 2., 8., 4., 11., 9., 5., 27., 11., 3., 0., 1., 6., 2., 6., 1., 8., 1., 3., 6., 5., 2., 3., 3., 2., 0., 4., 0., 1., 4., 2., 2., 0., 5., 1., 1., 8., 0., 5., 2., 0., 12., 1., 0., 1., 5., 0., 2., 1., 2., 6., 0., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 5., 9., 4., 4., 1., 6., 28., 3., 12., 20., 1., 13., 3., 1., 1., 10., 6., 3., 22., 10., 27., 32., 9., 0., 2., 2., 2., 8., 3., 14., 18., 3., 18., 3., 11., 9., 5., 0., 2., 4., 11., 11., 15., 41., 13., 21., 5., 4., 0., 8., 2., 6., 4., 9., 3., 7., 16., 5., 10., 4., 2., 4., 1., 11., 0., 4., 4., 7., 2., 5., 4., 1., 8., 2., 1., 1., 2., 6., 0., 3., 4., 1., 8., 3., 2., 5., 0., 5., 2., 2., 4., 2., 7., 3., 0., 3., 1., 0., 5., 2., 0., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 3., 3., 7., 4., 6., 1., 7., 8., 0., 9., 22., 2., 17., 2., 3., 3., 16., 1., 4., 28., 12., 36., 35., 6., 1., 2., 2., 1., 10., 3., 32., 15., 1., 13., 2., 13., 7., 4., 0., 7., 2., 8., 13., 23., 39., 13., 28., 11., 2., 0., 4., 2., 9., 2., 12., 9., 15., 7., 5., 30., 5., 6., 1., 0., 5., 1., 3., 1., 5., 4., 0., 7., 1., 5., 5., 2., 0., 1., 1., 0., 1., 4., 0., 4., 4., 0., 2., 2., 1., 1., 2., 1., 0., 5., 2., 0., 4., 3., 1., 2., 2., 1., 2., 2., 6., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 4., 1., 3., 2., 14., 0., 5., 21., 2., 15., 22., 1., 11., 2., 1., 1., 9., 0., 2., 35., 11., 29., 27., 4., 2., 1., 4., 1., 9., 6., 27., 12., 3., 12., 3., 10., 10., 3., 0., 3., 3., 18., 10., 11., 47., 4., 26., 13., 3., 2., 7., 0., 3., 6., 8., 7., 7., 10., 4., 24., 8., 6., 1., 1., 9., 0., 1., 0., 5., 3., 2., 5., 1., 3., 2., 3., 1., 1., 1., 0., 1., 1., 3., 5., 3., 6., 1., 1., 3., 2., 1., 1., 1., 10., 2., 0., 4., 4., 0., 1., 3., 1., 2., 3., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 1., 6., 9., 4., 2., 1., 8., 28., 0., 10., 25., 2., 10., 1., 3., 2., 14., 3., 4., 27., 11., 29., 30., 5., 1., 1., 2., 3., 7., 7., 24., 12., 0., 9., 4., 11., 10., 0., 1., 6., 1., 12., 16., 17., 53., 10., 25., 8., 5., 1., 6., 3., 5., 2., 12., 9., 7., 26., 12., 18., 10., 4., 0., 0., 9., 0., 5., 0., 4., 3., 5., 4., 1., 3., 6., 1., 3., 3., 3., 0., 1., 2., 1., 5., 2., 1., 1., 2., 3., 0., 1., 1., 3., 3., 1., 0., 1., 2., 2., 0., 4., 1., 3., 3., 2., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 4., 3., 8., 2., 6., 1., 7., 21., 0., 10., 25., 0., 18., 4., 0., 3., 16., 4., 4., 22., 8., 23., 29., 10., 2., 2., 1., 2., 6., 3., 17., 14., 3., 18., 5., 17., 8., 0., 0., 5., 0., 17., 4., 12., 52., 12., 22., 7., 3., 0., 8., 2., 6., 4., 9., 5., 10., 19., 6., 25., 6., 2., 4., 0., 9., 1., 1., 1., 4., 4., 4., 0., 2., 7., 3., 5., 3., 4., 1., 0., 3., 0., 4., 5., 2., 3., 3., 2., 3., 0., 1., 1., 3., 6., 2., 0., 2., 0., 2., 2., 2., 4., 1., 0., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 5., 5., 9., 3., 8., 1., 7., 10., 1., 15., 36., 0., 14., 0., 1., 1., 9., 1., 4., 40., 10., 31., 20., 4., 1., 1., 6., 2., 8., 6., 15., 18., 3., 17., 3., 15., 8., 2., 0., 4., 2., 10., 9., 14., 44., 11., 15., 8., 6., 2., 2., 1., 9., 2., 8., 7., 12., 14., 8., 20., 10., 1., 0., 2., 4., 2., 5., 0., 8., 7., 1., 4., 1., 6., 2., 2., 0., 1., 2., 0., 2., 2., 2., 8., 2., 4., 1., 1., 4., 0., 0., 2., 3., 7., 1., 0., 2., 2., 3., 1., 0., 2., 1., 0., 2., 0., 0., 0., 0., 6., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 5., 7., 2., 5., 1., 4., 30., 2., 14., 12., 1., 11., 6., 3., 2., 15., 3., 4., 28., 14., 27., 26., 13., 3., 2., 1., 2., 11., 7., 23., 17., 0., 10., 3., 13., 11., 2., 0., 3., 3., 11., 11., 15., 50., 12., 24., 7., 4., 2., 3., 2., 7., 4., 11., 2., 5., 18., 7., 25., 16., 2., 2., 1., 6., 0., 5., 1., 6., 1., 3., 4., 3., 9., 3., 3., 0., 1., 2., 0., 5., 1., 0., 4., 4., 5., 2., 0., 3., 1., 2., 1., 1., 7., 6., 0., 1., 2., 4., 0., 4., 5., 5., 0., 4., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 1., 5., 9., 5., 6., 1., 4., 30., 1., 12., 19., 0., 13., 0., 0., 1., 23., 4., 1., 30., 13., 24., 25., 8., 1., 1., 2., 4., 7., 5., 34., 20., 3., 11., 2., 8., 10., 1., 1., 7., 1., 7., 7., 18., 57., 14., 29., 8., 3., 1., 3., 3., 4., 3., 9., 4., 13., 15., 8., 17., 8., 5., 2., 1., 5., 0., 3., 0., 3., 2., 4., 9., 2., 6., 3., 1., 0., 1., 1., 0., 2., 3., 1., 5., 3., 6., 0., 0., 5., 1., 1., 0., 1., 8., 0., 0., 6., 3., 2., 3., 1., 1., 3., 0., 0., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 6., 6., 0., 9., 3., 6., 14., 0., 11., 21., 1., 11., 2., 0., 2., 16., 1., 1., 16., 12., 21., 30., 9., 0., 1., 3., 1., 4., 4., 36., 19., 2., 14., 7., 16., 7., 3., 3., 2., 7., 11., 8., 21., 45., 12., 26., 5., 3., 1., 3., 2., 8., 0., 13., 5., 7., 19., 5., 12., 8., 5., 2., 1., 12., 1., 1., 3., 5., 1., 2., 3., 3., 4., 5., 0., 2., 3., 0., 0., 4., 6., 2., 4., 1., 4., 0., 4., 2., 2., 1., 1., 2., 6., 0., 0., 1., 1., 1., 1., 1., 3., 3., 1., 3., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 4., 5., 3., 3., 5., 1., 6., 27., 0., 17., 25., 3., 15., 2., 1., 1., 12., 2., 5., 14., 11., 16., 21., 7., 2., 3., 4., 2., 4., 8., 22., 15., 2., 15., 2., 15., 8., 1., 1., 4., 1., 9., 15., 19., 45., 10., 26., 12., 3., 0., 5., 2., 2., 4., 4., 11., 4., 12., 3., 15., 6., 1., 1., 0., 9., 1., 2., 2., 10., 3., 2., 5., 1., 2., 4., 4., 1., 2., 1., 0., 2., 2., 2., 9., 1., 3., 2., 3., 5., 1., 4., 1., 4., 11., 1., 0., 3., 1., 2., 2., 3., 2., 1., 1., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 6., 7., 1., 6., 1., 6., 4., 3., 15., 16., 2., 13., 0., 2., 3., 22., 2., 1., 29., 16., 17., 30., 5., 1., 1., 4., 1., 7., 7., 16., 11., 4., 17., 4., 23., 10., 2., 0., 3., 1., 10., 5., 18., 40., 13., 20., 6., 3., 1., 8., 2., 8., 3., 14., 7., 10., 17., 1., 21., 6., 3., 0., 1., 8., 2., 3., 2., 2., 4., 5., 2., 2., 7., 3., 0., 2., 0., 1., 0., 2., 5., 2., 5., 2., 5., 5., 4., 5., 1., 3., 2., 5., 10., 3., 0., 4., 3., 2., 1., 3., 5., 0., 1., 1., 0., 0., 0., 0., 5., 0., 0., 3., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 0., 13., 3., 12., 2., 8., 16., 1., 13., 17., 0., 14., 4., 2., 4., 17., 3., 5., 24., 10., 28., 30., 4., 0., 3., 3., 2., 3., 6., 21., 14., 2., 14., 2., 11., 13., 2., 0., 5., 3., 12., 8., 17., 43., 13., 21., 7., 5., 1., 4., 2., 9., 7., 8., 10., 9., 15., 6., 27., 5., 2., 1., 0., 2., 1., 5., 0., 4., 3., 5., 6., 3., 5., 2., 1., 3., 0., 3., 0., 3., 2., 1., 5., 3., 7., 2., 3., 3., 0., 1., 2., 0., 5., 2., 0., 1., 4., 1., 3., 1., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 3., 10., 0., 12., 3., 8., 51., 2., 3., 69., 0., 6., 2., 0., 0., 64., 9., 10., 60., 17., 67., 17., 3., 0., 2., 5., 0., 12., 10., 39., 13., 3., 47., 31., 15., 4., 0., 0., 8., 2., 26., 4., 22., 3., 13., 4., 4., 1., 0., 14., 6., 16., 2., 15., 3., 8., 3., 1., 41., 11., 5., 2., 0., 11., 2., 9., 2., 10., 0., 3., 3., 0., 1., 0., 5., 0., 10., 18., 4., 4., 1., 2., 0., 0., 0., 0., 0., 9., 1., 1., 3., 2., 2., 1., 0., 3., 0., 2., 0., 0., 3., 0., 0., 1., 0., 1., 0., 2., 0., 0., 0., 2., 0., 2., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 2., 3., 5., 7., 0., 11., 2., 4., 69., 1., 5., 58., 0., 5., 0., 0., 1., 68., 7., 7., 70., 17., 93., 15., 3., 0., 2., 2., 1., 16., 9., 57., 14., 0., 41., 33., 17., 3., 0., 0., 4., 8., 12., 3., 29., 11., 18., 4., 2., 1., 0., 8., 2., 12., 5., 15., 3., 5., 4., 2., 38., 6., 6., 1., 0., 15., 2., 7., 3., 12., 3., 5., 2., 1., 2., 0., 5., 1., 11., 13., 1., 4., 0., 4., 0., 0., 0., 0., 0., 12., 4., 3., 4., 4., 2., 0., 0., 1., 0., 0., 0., 1., 3., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 18., 0., 6., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 1., 11., 30., 6., 31., 0., 16., 170., 1., 25., 212., 3., 21., 10., 0., 4., 85., 3., 22., 260., 40., 314., 53., 18., 1., 3., 9., 2., 47., 37., 227., 36., 10., 169., 12., 39., 5., 0., 1., 16., 4., 78., 24., 84., 10., 38., 42., 20., 4., 0., 30., 8., 35., 9., 48., 9., 33., 8., 16., 5., 1., 0., 0., 0., 18., 4., 14., 4., 23., 5., 15., 4., 2., 0., 2., 0., 5., 1., 7., 2., 13., 3., 15., 0., 1., 8., 139., 7., 1838., 106., 99., 222., 105., 113., 72., 15., 7., 17., 11., 1., 1., 6., 2., 4., 9., 11., 31., 16., 44., 16., 38., 6., 9., 3., 4., 14., 4., 3., 3., 1., 9., 3., 0., 2., 6., 14., 0., 0., 7., 5., 1., 0., 9., 4., 4., 29., 0., 14., 2., 18., 3., 22., 3., 4., 4., 7., 26., 4., 43., 7., 6., 7., 4., 33., 7., 13., 6.,
12., 2., 4., 8., 32., 5., 24., 0., 14., 136., 3., 24., 220., 5., 16., 8., 2., 5., 75., 3., 15., 290., 40., 345., 28., 15., 1., 1., 11., 8., 47., 34., 223., 33., 9., 181., 14., 49., 1., 0., 2., 15., 11., 63., 19., 77., 6., 41., 35., 5., 7., 1., 23., 10., 41., 11., 46., 13., 39., 2., 16., 3., 1., 0., 0., 0., 22., 3., 15., 2., 21., 5., 17., 6., 2., 4., 0., 0., 5., 1., 9., 3., 7., 2., 10., 0., 0., 5., 151., 10., 1794., 90., 102., 257., 84., 115., 57., 16., 12., 16., 9., 3., 3., 5., 6., 5., 11., 7., 41., 14., 28., 19., 38., 6., 9., 0., 8., 5., 7., 0., 5., 1., 6., 1., 0., 6., 4., 21., 1., 0., 10., 4., 3., 0., 6., 5., 0., 33., 5., 17., 2., 10., 7., 21., 2., 3., 3., 4., 27., 3., 31., 5., 11., 3., 6., 34., 5., 8., 7.,
17., 7., 2., 13., 24., 3., 32., 2., 12., 168., 7., 24., 201., 6., 23., 6., 0., 0., 88., 3., 21., 287., 43., 323., 44., 16., 1., 2., 6., 7., 42., 31., 222., 37., 12., 175., 7., 42., 6., 0., 1., 13., 5., 97., 20., 81., 14., 33., 38., 17., 2., 0., 29., 4., 47., 10., 50., 5., 23., 7., 6., 6., 3., 0., 1., 0., 26., 4., 18., 5., 22., 7., 11., 4., 3., 2., 3., 1., 3., 1., 4., 6., 10., 3., 8., 0., 1., 5., 160., 9., 1830., 115., 90., 213., 78., 122., 60., 18., 12., 17., 14., 0., 1., 7., 4., 2., 6., 8., 42., 12., 32., 14., 49., 9., 5., 1., 11., 12., 7., 5., 0., 1., 7., 0., 0., 1., 1., 20., 3., 0., 9., 8., 3., 0., 4., 1., 4., 33., 2., 10., 1., 12., 1., 21., 4., 3., 2., 4., 33., 2., 30., 6., 4., 8., 9., 25., 8., 16., 3.,
8., 1., 3., 5., 26., 5., 35., 0., 16., 162., 4., 37., 195., 2., 22., 4., 0., 5., 75., 3., 12., 248., 51., 318., 48., 21., 0., 3., 8., 2., 40., 39., 238., 45., 8., 154., 9., 54., 5., 0., 4., 15., 7., 63., 26., 99., 15., 39., 42., 14., 6., 1., 25., 6., 42., 11., 38., 10., 39., 6., 9., 11., 6., 0., 3., 0., 26., 6., 12., 2., 28., 7., 15., 4., 1., 5., 1., 0., 4., 3., 6., 2., 8., 1., 9., 2., 1., 2., 151., 11., 1926., 73., 105., 253., 81., 112., 72., 15., 12., 20., 7., 3., 3., 12., 3., 4., 15., 7., 26., 13., 30., 18., 35., 7., 5., 5., 7., 5., 5., 2., 6., 5., 7., 3., 0., 2., 5., 19., 3., 0., 5., 1., 4., 0., 7., 4., 3., 30., 2., 7., 4., 12., 5., 21., 2., 2., 3., 1., 27., 8., 34., 6., 2., 4., 10., 43., 6., 9., 4.,
20., 0., 4., 7., 19., 10., 26., 0., 15., 165., 5., 27., 199., 1., 16., 12., 1., 5., 88., 4., 20., 294., 48., 332., 34., 18., 0., 1., 5., 6., 49., 30., 235., 28., 11., 168., 11., 45., 6., 0., 3., 14., 12., 61., 17., 91., 21., 44., 45., 10., 6., 1., 26., 4., 50., 12., 47., 11., 23., 7., 13., 7., 2., 0., 0., 0., 34., 2., 14., 3., 30., 3., 13., 3., 2., 2., 1., 0., 5., 4., 14., 3., 7., 3., 10., 1., 1., 3., 125., 10., 1845., 101., 110., 235., 84., 100., 65., 14., 8., 17., 12., 1., 4., 7., 8., 3., 8., 9., 38., 13., 37., 13., 42., 11., 15., 5., 4., 10., 4., 3., 3., 2., 8., 5., 0., 6., 8., 12., 1., 0., 9., 5., 1., 0., 2., 5., 4., 27., 2., 11., 1., 12., 4., 20., 2., 5., 5., 6., 36., 4., 38., 6., 5., 9., 5., 28., 2., 22., 4.,
13., 3., 2., 10., 24., 6., 35., 1., 9., 156., 0., 36., 220., 9., 12., 7., 4., 1., 86., 3., 13., 268., 37., 325., 43., 18., 1., 2., 2., 6., 48., 34., 241., 48., 7., 156., 9., 34., 6., 0., 0., 19., 11., 80., 19., 82., 15., 27., 49., 11., 4., 1., 31., 7., 39., 8., 38., 7., 32., 7., 9., 6., 1., 0., 1., 0., 22., 6., 14., 3., 28., 5., 10., 10., 2., 0., 2., 0., 5., 0., 17., 4., 10., 4., 7., 1., 1., 5., 144., 4., 1894., 94., 105., 218., 99., 112., 69., 15., 11., 25., 12., 1., 4., 4., 9., 3., 11., 9., 26., 11., 29., 19., 32., 8., 6., 4., 7., 5., 8., 2., 2., 1., 10., 3., 0., 2., 8., 19., 1., 0., 10., 5., 4., 0., 4., 0., 3., 28., 3., 16., 2., 20., 1., 27., 2., 6., 5., 6., 28., 9., 32., 7., 5., 8., 9., 34., 4., 16., 2.,
18., 1., 1., 7., 27., 3., 35., 0., 9., 162., 2., 24., 209., 4., 17., 7., 2., 11., 69., 1., 11., 304., 43., 329., 45., 13., 0., 2., 8., 4., 49., 21., 230., 40., 5., 156., 9., 60., 6., 0., 1., 18., 6., 72., 16., 71., 9., 26., 50., 18., 1., 2., 28., 5., 36., 8., 59., 8., 33., 3., 7., 8., 5., 0., 1., 0., 26., 2., 20., 5., 22., 4., 25., 2., 2., 2., 0., 0., 3., 2., 11., 4., 10., 3., 10., 3., 0., 4., 130., 3., 1892., 76., 93., 194., 100., 104., 78., 16., 13., 11., 13., 2., 2., 10., 3., 7., 5., 7., 28., 20., 34., 13., 41., 7., 12., 2., 6., 3., 3., 2., 2., 5., 9., 1., 0., 8., 8., 13., 5., 0., 8., 1., 4., 0., 4., 5., 2., 43., 3., 6., 4., 14., 4., 12., 4., 1., 7., 2., 29., 9., 27., 4., 3., 6., 4., 28., 6., 7., 6.,
16., 1., 2., 5., 21., 3., 35., 0., 13., 162., 2., 18., 198., 6., 16., 8., 0., 6., 84., 2., 19., 302., 48., 339., 44., 23., 0., 2., 7., 6., 49., 30., 217., 32., 6., 155., 18., 46., 3., 0., 3., 16., 10., 78., 24., 85., 12., 34., 42., 13., 2., 0., 24., 4., 30., 9., 57., 7., 32., 10., 6., 10., 1., 0., 1., 0., 27., 9., 17., 4., 22., 8., 12., 3., 0., 5., 3., 2., 0., 2., 12., 1., 9., 2., 8., 1., 3., 6., 130., 6., 1868., 98., 106., 229., 97., 124., 86., 17., 9., 11., 13., 1., 3., 3., 6., 2., 9., 8., 38., 19., 36., 18., 37., 9., 9., 4., 7., 8., 2., 1., 3., 3., 5., 8., 0., 3., 5., 14., 1., 0., 15., 0., 2., 0., 2., 3., 3., 26., 3., 17., 3., 10., 2., 27., 3., 1., 0., 4., 25., 6., 24., 6., 4., 9., 7., 23., 6., 16., 5.,
10., 1., 2., 5., 5., 2., 3., 5., 7., 8., 1., 12., 15., 1., 16., 4., 0., 1., 16., 2., 6., 12., 7., 34., 32., 5., 1., 0., 5., 4., 5., 12., 25., 16., 1., 18., 2., 13., 7., 1., 1., 3., 2., 7., 11., 17., 48., 16., 23., 7., 6., 0., 5., 1., 6., 3., 17., 2., 11., 16., 2., 33., 6., 3., 1., 1., 7., 1., 3., 1., 3., 1., 4., 4., 1., 4., 1., 3., 0., 1., 2., 0., 0., 3., 1., 3., 0., 2., 5., 1., 4., 1., 1., 2., 4., 12., 2., 0., 1., 0., 1., 0., 2., 3., 2., 1., 5., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 2., 4., 5., 4., 5., 1., 3., 12., 2., 9., 12., 2., 13., 4., 0., 4., 25., 1., 3., 33., 9., 33., 22., 3., 0., 2., 3., 0., 7., 11., 26., 17., 2., 15., 4., 17., 10., 1., 2., 3., 3., 8., 9., 11., 51., 8., 24., 4., 4., 1., 4., 2., 9., 5., 7., 5., 8., 21., 7., 31., 9., 4., 1., 2., 10., 2., 3., 2., 6., 0., 4., 6., 1., 5., 3., 5., 0., 5., 0., 0., 0., 3., 1., 4., 2., 2., 5., 2., 6., 0., 2., 1., 2., 10., 1., 0., 2., 2., 3., 4., 0., 4., 1., 1., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 1., 3., 4., 6., 5., 2., 0., 7., 6., 0., 17., 24., 2., 17., 6., 2., 0., 17., 1., 0., 20., 13., 26., 23., 5., 0., 0., 4., 2., 6., 15., 13., 11., 5., 21., 1., 11., 12., 1., 0., 6., 2., 14., 12., 16., 35., 9., 28., 10., 2., 1., 2., 3., 5., 4., 10., 8., 8., 23., 9., 20., 9., 3., 0., 0., 8., 0., 3., 0., 4., 3., 5., 8., 5., 4., 3., 0., 2., 2., 0., 0., 1., 3., 5., 5., 3., 2., 2., 1., 2., 1., 7., 0., 3., 10., 1., 0., 0., 1., 1., 5., 3., 3., 2., 1., 3., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 3., 11., 2., 0., 1., 8., 18., 2., 2., 21., 0., 17., 2., 0., 3., 20., 3., 5., 17., 6., 22., 14., 4., 0., 1., 0., 3., 10., 12., 28., 20., 2., 19., 4., 16., 4., 1., 1., 2., 0., 9., 9., 17., 52., 23., 16., 9., 8., 2., 4., 0., 6., 1., 13., 7., 6., 18., 5., 19., 10., 1., 2., 3., 9., 1., 5., 1., 6., 4., 5., 3., 1., 3., 8., 5., 1., 3., 2., 0., 1., 5., 2., 5., 2., 4., 2., 0., 4., 1., 1., 1., 4., 2., 1., 0., 3., 1., 2., 3., 1., 3., 1., 1., 3., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 3., 1., 8., 2., 4., 1., 8., 11., 2., 18., 22., 0., 17., 5., 2., 3., 17., 5., 6., 26., 12., 21., 27., 7., 0., 2., 3., 1., 9., 7., 34., 15., 11., 24., 7., 11., 3., 2., 2., 1., 3., 11., 8., 25., 43., 12., 25., 5., 7., 1., 8., 4., 6., 6., 10., 9., 6., 24., 7., 20., 6., 2., 1., 1., 10., 2., 2., 0., 5., 5., 5., 7., 4., 3., 4., 4., 0., 4., 1., 0., 2., 0., 2., 7., 4., 4., 3., 4., 3., 2., 3., 0., 5., 5., 2., 0., 3., 3., 0., 2., 1., 3., 6., 0., 6., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 0., 9., 9., 4., 2., 1., 5., 41., 1., 10., 32., 0., 9., 4., 3., 3., 18., 0., 1., 24., 15., 18., 26., 3., 3., 0., 2., 2., 8., 3., 23., 13., 1., 16., 2., 6., 11., 2., 2., 6., 2., 6., 15., 15., 48., 10., 17., 8., 7., 0., 5., 0., 7., 5., 10., 7., 11., 26., 4., 26., 9., 1., 1., 0., 8., 3., 5., 2., 9., 3., 4., 4., 1., 6., 4., 4., 1., 1., 1., 0., 1., 4., 0., 5., 1., 7., 6., 2., 2., 0., 2., 2., 2., 8., 2., 0., 3., 1., 5., 1., 0., 1., 4., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 2., 4., 9., 3., 4., 2., 5., 32., 4., 16., 19., 0., 10., 3., 1., 1., 13., 4., 5., 18., 10., 24., 29., 3., 1., 0., 7., 2., 8., 7., 33., 12., 2., 12., 4., 8., 8., 1., 0., 6., 3., 6., 14., 19., 43., 9., 19., 14., 5., 2., 5., 2., 6., 5., 12., 11., 12., 11., 4., 17., 8., 1., 1., 1., 10., 0., 5., 0., 2., 1., 5., 4., 1., 10., 3., 2., 0., 2., 3., 0., 2., 0., 2., 5., 3., 3., 1., 3., 3., 0., 4., 3., 3., 5., 1., 0., 2., 1., 2., 3., 0., 3., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 1., 4., 2., 3., 7., 0., 4., 17., 2., 13., 25., 1., 20., 0., 1., 0., 25., 2., 3., 37., 10., 16., 33., 3., 0., 0., 5., 0., 12., 6., 24., 14., 1., 11., 6., 10., 6., 1., 1., 3., 2., 8., 13., 17., 45., 11., 34., 4., 4., 1., 9., 2., 5., 2., 6., 8., 11., 20., 6., 18., 12., 3., 0., 1., 10., 2., 2., 2., 5., 2., 5., 2., 4., 1., 3., 2., 0., 2., 2., 0., 1., 2., 5., 9., 4., 6., 4., 1., 1., 2., 3., 0., 3., 3., 3., 0., 0., 0., 2., 6., 1., 2., 3., 0., 0., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 3., 2., 8., 2., 5., 0., 5., 27., 2., 15., 22., 1., 22., 3., 0., 2., 23., 1., 5., 24., 14., 24., 29., 5., 0., 1., 3., 2., 4., 2., 25., 17., 4., 17., 3., 15., 8., 0., 1., 3., 1., 13., 4., 12., 43., 13., 25., 9., 2., 0., 7., 2., 5., 4., 11., 6., 5., 19., 9., 25., 2., 2., 0., 0., 5., 0., 8., 3., 4., 2., 8., 7., 2., 6., 4., 1., 2., 0., 3., 0., 3., 2., 2., 5., 2., 4., 0., 1., 0., 1., 3., 1., 2., 7., 2., 0., 1., 0., 0., 4., 2., 0., 1., 1., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 1., 0., 8., 5., 1., 8., 2., 6., 32., 1., 10., 24., 0., 11., 2., 1., 3., 8., 2., 5., 23., 12., 21., 26., 5., 3., 1., 1., 1., 6., 6., 21., 10., 4., 14., 2., 17., 9., 2., 1., 2., 3., 13., 5., 11., 39., 15., 25., 8., 7., 1., 1., 4., 8., 4., 10., 8., 8., 18., 10., 24., 8., 4., 2., 2., 10., 0., 1., 2., 6., 2., 2., 4., 1., 9., 4., 0., 0., 4., 3., 0., 1., 3., 3., 6., 1., 9., 2., 3., 2., 1., 2., 1., 2., 7., 5., 0., 2., 2., 0., 4., 1., 6., 4., 3., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 4., 6., 10., 3., 12., 2., 8., 19., 1., 13., 19., 1., 17., 1., 0., 0., 14., 4., 2., 15., 13., 31., 24., 4., 1., 1., 1., 3., 8., 7., 18., 20., 2., 14., 0., 17., 9., 2., 0., 3., 4., 12., 14., 17., 40., 8., 19., 5., 3., 0., 13., 3., 11., 2., 7., 4., 4., 21., 4., 28., 5., 2., 1., 1., 6., 0., 5., 5., 3., 3., 8., 5., 1., 4., 2., 2., 1., 1., 2., 0., 2., 0., 3., 5., 5., 3., 1., 3., 4., 1., 3., 0., 2., 3., 1., 0., 0., 2., 3., 4., 4., 3., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 3., 6., 4., 6., 1., 0., 23., 1., 16., 17., 1., 17., 5., 4., 1., 17., 2., 2., 30., 13., 22., 32., 4., 0., 0., 4., 4., 10., 11., 19., 11., 3., 23., 8., 13., 9., 4., 3., 8., 3., 18., 17., 15., 40., 10., 17., 6., 3., 0., 5., 1., 9., 3., 7., 4., 6., 20., 7., 16., 10., 2., 1., 1., 6., 0., 1., 2., 6., 2., 3., 4., 6., 1., 6., 1., 3., 3., 1., 0., 2., 5., 2., 9., 2., 6., 1., 4., 1., 0., 1., 0., 3., 2., 0., 0., 1., 2., 3., 1., 5., 1., 4., 1., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 3., 4., 6., 5., 9., 0., 6., 27., 2., 14., 29., 1., 21., 1., 1., 2., 30., 1., 3., 20., 9., 36., 26., 5., 1., 0., 0., 0., 9., 3., 23., 18., 2., 11., 3., 11., 4., 2., 0., 4., 3., 17., 11., 22., 42., 11., 17., 7., 3., 2., 5., 6., 8., 3., 10., 7., 15., 11., 4., 21., 7., 1., 1., 0., 10., 3., 4., 1., 6., 4., 6., 3., 2., 5., 9., 2., 2., 1., 3., 0., 3., 2., 3., 1., 0., 1., 5., 1., 3., 1., 1., 1., 0., 7., 0., 0., 1., 0., 3., 0., 4., 2., 1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 1., 12., 1., 3., 2., 5., 25., 0., 12., 18., 2., 14., 3., 1., 1., 14., 0., 3., 13., 10., 30., 33., 9., 0., 1., 5., 1., 8., 6., 19., 12., 2., 16., 2., 14., 7., 4., 0., 4., 2., 14., 5., 14., 48., 10., 25., 5., 3., 1., 7., 1., 6., 4., 15., 7., 10., 12., 5., 21., 8., 3., 0., 1., 3., 0., 2., 2., 7., 3., 5., 1., 2., 8., 6., 2., 0., 1., 0., 0., 2., 3., 2., 9., 2., 5., 2., 3., 6., 0., 3., 1., 2., 10., 1., 0., 0., 1., 2., 5., 4., 3., 2., 1., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 3., 6., 2., 5., 1., 2., 34., 1., 24., 19., 0., 13., 3., 2., 1., 17., 1., 4., 20., 13., 19., 27., 5., 3., 0., 3., 4., 2., 9., 35., 13., 4., 26., 8., 16., 10., 4., 0., 4., 6., 15., 11., 17., 55., 10., 19., 8., 8., 0., 8., 2., 8., 2., 10., 4., 6., 26., 3., 16., 8., 4., 1., 1., 10., 3., 3., 3., 3., 2., 5., 4., 4., 6., 3., 1., 0., 2., 4., 0., 3., 2., 3., 7., 2., 7., 4., 1., 3., 2., 3., 1., 0., 8., 0., 0., 4., 0., 1., 2., 2., 1., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 6., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 1., 0., 10., 6., 7., 2., 11., 20., 0., 14., 27., 1., 19., 2., 0., 4., 15., 1., 5., 14., 12., 28., 27., 5., 2., 1., 6., 1., 10., 9., 27., 18., 2., 16., 2., 24., 13., 4., 2., 5., 3., 22., 19., 15., 47., 12., 18., 11., 7., 4., 3., 1., 10., 3., 10., 6., 7., 18., 4., 25., 8., 1., 3., 0., 3., 1., 6., 1., 6., 5., 6., 4., 2., 2., 0., 3., 0., 1., 6., 0., 1., 1., 3., 6., 2., 4., 2., 1., 6., 0., 3., 1., 0., 4., 2., 0., 0., 4., 2., 2., 0., 1., 3., 3., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 6., 4., 2., 10., 2., 6., 26., 1., 21., 17., 1., 11., 3., 1., 1., 21., 5., 5., 20., 11., 18., 26., 6., 0., 1., 5., 0., 10., 10., 14., 21., 0., 14., 5., 18., 6., 2., 0., 7., 2., 8., 12., 19., 53., 12., 25., 8., 1., 1., 6., 1., 6., 4., 14., 8., 5., 22., 7., 23., 8., 4., 1., 0., 6., 0., 4., 1., 8., 6., 6., 3., 2., 3., 8., 1., 0., 2., 1., 0., 2., 2., 4., 8., 2., 4., 1., 5., 3., 1., 0., 0., 1., 7., 2., 0., 1., 1., 0., 2., 3., 0., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 0., 6., 7., 3., 5., 2., 3., 27., 1., 10., 20., 2., 20., 3., 2., 1., 12., 1., 7., 32., 16., 17., 28., 10., 1., 1., 2., 0., 3., 4., 26., 16., 3., 16., 6., 17., 8., 1., 1., 6., 1., 7., 8., 17., 40., 12., 22., 12., 2., 1., 3., 1., 4., 0., 12., 10., 15., 13., 5., 25., 7., 5., 2., 1., 7., 0., 4., 3., 5., 2., 5., 3., 2., 5., 1., 1., 2., 1., 3., 0., 2., 3., 2., 10., 2., 6., 1., 0., 8., 1., 3., 1., 4., 7., 2., 0., 0., 1., 0., 2., 2., 0., 4., 1., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 6., 11., 4., 7., 0., 4., 22., 2., 12., 30., 1., 13., 3., 0., 1., 16., 1., 5., 26., 9., 28., 23., 3., 2., 1., 3., 0., 4., 8., 36., 17., 4., 17., 3., 14., 9., 4., 1., 3., 1., 24., 11., 23., 49., 16., 16., 14., 4., 0., 4., 1., 7., 7., 7., 4., 15., 14., 6., 25., 6., 5., 2., 0., 3., 3., 1., 1., 3., 6., 2., 1., 1., 3., 2., 3., 1., 3., 1., 0., 3., 3., 2., 3., 1., 3., 2., 2., 4., 1., 5., 0., 2., 7., 1., 0., 3., 2., 0., 0., 0., 3., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 0., 4., 11., 1., 5., 3., 3., 22., 1., 13., 25., 2., 22., 1., 1., 3., 22., 0., 4., 22., 10., 25., 19., 6., 2., 0., 4., 2., 3., 8., 14., 14., 2., 9., 4., 20., 5., 2., 0., 5., 2., 15., 9., 13., 39., 9., 15., 6., 7., 0., 5., 3., 9., 3., 10., 2., 7., 18., 1., 24., 7., 2., 2., 2., 5., 1., 5., 2., 5., 4., 1., 6., 0., 5., 3., 2., 0., 1., 2., 0., 0., 2., 5., 4., 3., 3., 0., 3., 4., 0., 0., 2., 1., 6., 2., 0., 0., 0., 1., 2., 2., 5., 2., 0., 3., 0., 0., 0., 0., 4., 0., 0., 5., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 3., 5., 11., 4., 6., 1., 4., 25., 0., 9., 20., 0., 7., 1., 2., 2., 20., 3., 6., 33., 9., 17., 25., 8., 0., 2., 3., 1., 7., 5., 19., 17., 5., 18., 7., 9., 4., 0., 0., 3., 4., 8., 4., 13., 48., 20., 26., 10., 8., 1., 6., 1., 3., 3., 8., 3., 8., 11., 7., 26., 11., 0., 2., 0., 4., 0., 3., 1., 4., 4., 5., 3., 2., 2., 5., 2., 0., 1., 2., 0., 1., 1., 2., 4., 3., 6., 4., 1., 7., 1., 0., 6., 4., 7., 2., 0., 1., 3., 3., 0., 3., 1., 3., 2., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 4., 8., 1., 3., 1., 6., 37., 0., 10., 13., 0., 11., 4., 0., 1., 16., 3., 6., 27., 14., 30., 20., 9., 1., 1., 8., 2., 9., 5., 16., 13., 1., 20., 5., 15., 8., 2., 1., 2., 0., 6., 5., 19., 50., 8., 22., 10., 0., 0., 8., 2., 4., 4., 15., 6., 12., 8., 8., 18., 4., 3., 2., 1., 3., 1., 6., 2., 3., 2., 2., 4., 2., 3., 1., 2., 0., 0., 1., 0., 1., 2., 4., 5., 3., 2., 4., 3., 5., 0., 1., 1., 2., 8., 2., 0., 0., 1., 5., 2., 4., 1., 5., 1., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 3., 10., 0., 13., 3., 5., 47., 2., 9., 61., 0., 7., 3., 0., 2., 62., 10., 14., 79., 10., 84., 12., 7., 0., 0., 1., 2., 19., 10., 68., 18., 4., 32., 34., 11., 8., 0., 0., 5., 1., 33., 11., 22., 4., 17., 2., 3., 1., 0., 13., 10., 14., 8., 20., 4., 6., 1., 2., 44., 12., 4., 3., 0., 8., 2., 5., 2., 15., 3., 5., 0., 0., 0., 0., 4., 2., 15., 10., 4., 6., 1., 6., 0., 0., 0., 0., 0., 9., 1., 5., 2., 3., 1., 2., 0., 0., 0., 0., 0., 0., 3., 4., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 1., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 30., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 4., 2., 15., 0., 10., 1., 10., 41., 0., 12., 62., 0., 3., 3., 0., 1., 66., 11., 2., 69., 15., 65., 15., 4., 0., 1., 2., 2., 7., 5., 51., 5., 3., 43., 27., 23., 7., 0., 0., 8., 3., 17., 9., 28., 3., 12., 8., 5., 3., 0., 7., 1., 20., 7., 18., 2., 9., 2., 2., 33., 8., 2., 1., 0., 18., 2., 10., 3., 15., 4., 3., 1., 2., 0., 0., 7., 3., 13., 6., 5., 5., 0., 5., 0., 0., 0., 0., 0., 11., 4., 5., 2., 5., 1., 1., 0., 1., 0., 0., 0., 1., 0., 3., 0., 4., 0., 0., 0., 1., 0., 0., 0., 1., 0., 3., 4., 3., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 13., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 9., 27., 8., 21., 2., 15., 161., 3., 23., 214., 6., 12., 5., 0., 1., 81., 0., 11., 297., 45., 360., 55., 20., 0., 1., 4., 8., 40., 19., 225., 38., 10., 166., 16., 32., 7., 0., 3., 13., 9., 100., 24., 77., 12., 33., 50., 13., 0., 1., 22., 6., 31., 11., 40., 11., 30., 7., 7., 7., 5., 0., 1., 0., 24., 2., 13., 4., 26., 5., 9., 8., 3., 4., 1., 1., 4., 3., 15., 1., 9., 3., 9., 0., 0., 1., 147., 11., 1906., 97., 97., 230., 94., 112., 58., 5., 17., 18., 14., 1., 5., 5., 5., 8., 12., 8., 35., 20., 24., 8., 40., 7., 6., 4., 6., 9., 7., 3., 2., 2., 7., 4., 0., 3., 7., 13., 2., 0., 10., 3., 2., 0., 1., 0., 3., 22., 2., 15., 4., 9., 4., 20., 0., 4., 3., 2., 26., 3., 27., 1., 9., 9., 13., 30., 7., 12., 10.,
18., 1., 3., 7., 26., 6., 33., 0., 11., 151., 5., 27., 197., 2., 19., 8., 0., 5., 80., 1., 24., 289., 46., 293., 35., 24., 0., 3., 9., 12., 52., 37., 210., 44., 14., 152., 7., 41., 5., 0., 2., 18., 5., 78., 15., 85., 10., 25., 52., 8., 3., 0., 28., 7., 26., 7., 46., 13., 35., 8., 11., 7., 5., 0., 1., 0., 28., 6., 10., 2., 28., 5., 7., 4., 2., 4., 1., 2., 1., 2., 9., 6., 7., 5., 11., 1., 1., 5., 129., 8., 1907., 98., 79., 229., 95., 119., 65., 15., 14., 28., 17., 0., 4., 5., 4., 3., 13., 8., 41., 5., 34., 15., 43., 13., 12., 4., 9., 9., 5., 2., 4., 4., 10., 1., 0., 4., 7., 10., 2., 0., 11., 3., 3., 0., 4., 4., 4., 32., 1., 15., 4., 20., 1., 13., 2., 2., 4., 6., 24., 2., 23., 4., 4., 9., 7., 25., 5., 9., 2.,
11., 2., 5., 7., 27., 6., 39., 0., 17., 133., 2., 26., 184., 6., 18., 14., 1., 6., 89., 0., 16., 298., 36., 327., 51., 24., 0., 1., 10., 7., 35., 27., 246., 52., 4., 168., 13., 29., 6., 0., 2., 21., 8., 72., 17., 95., 20., 28., 42., 8., 2., 0., 26., 10., 41., 8., 47., 7., 20., 4., 7., 10., 2., 0., 0., 0., 27., 4., 16., 2., 19., 2., 10., 5., 0., 1., 1., 0., 3., 2., 15., 4., 6., 2., 2., 2., 1., 5., 147., 12., 1820., 88., 110., 228., 85., 95., 70., 10., 16., 16., 18., 1., 1., 3., 2., 3., 12., 4., 37., 13., 41., 13., 54., 6., 7., 5., 7., 8., 8., 2., 6., 3., 5., 4., 0., 7., 7., 21., 1., 0., 11., 3., 2., 0., 3., 3., 1., 37., 1., 16., 4., 8., 5., 30., 4., 1., 4., 4., 22., 3., 30., 4., 6., 5., 5., 26., 6., 12., 4.,
13., 1., 5., 8., 21., 6., 19., 1., 22., 168., 6., 24., 194., 5., 16., 4., 0., 4., 77., 6., 13., 280., 52., 324., 50., 22., 1., 1., 5., 2., 45., 33., 234., 43., 4., 142., 11., 39., 9., 0., 5., 18., 8., 78., 26., 114., 15., 40., 53., 10., 1., 1., 30., 10., 50., 10., 57., 9., 28., 5., 6., 8., 2., 0., 0., 0., 22., 6., 17., 3., 31., 4., 10., 1., 0., 5., 0., 0., 3., 1., 10., 2., 13., 8., 7., 0., 0., 3., 159., 7., 1850., 94., 107., 205., 93., 123., 69., 18., 16., 18., 14., 0., 0., 10., 1., 1., 6., 8., 30., 19., 28., 21., 37., 3., 12., 7., 1., 6., 5., 0., 0., 3., 12., 2., 0., 6., 5., 18., 2., 0., 9., 3., 3., 0., 6., 0., 4., 31., 1., 19., 4., 5., 4., 30., 3., 4., 2., 8., 24., 3., 25., 6., 1., 9., 11., 40., 5., 12., 4.,
18., 0., 2., 9., 15., 4., 32., 0., 20., 153., 2., 23., 222., 6., 17., 10., 2., 6., 88., 2., 18., 273., 42., 315., 55., 16., 2., 4., 6., 3., 55., 28., 233., 57., 5., 137., 25., 25., 9., 0., 3., 11., 3., 77., 24., 101., 15., 29., 32., 8., 0., 1., 25., 6., 35., 7., 32., 8., 27., 5., 14., 3., 2., 0., 5., 0., 22., 5., 13., 4., 26., 6., 14., 1., 0., 5., 0., 1., 3., 2., 13., 3., 9., 2., 8., 0., 2., 1., 119., 12., 1859., 98., 121., 235., 92., 111., 77., 17., 11., 26., 7., 0., 1., 2., 6., 7., 4., 9., 42., 11., 45., 10., 38., 7., 9., 8., 2., 7., 5., 2., 4., 4., 8., 4., 0., 5., 3., 17., 1., 0., 8., 1., 2., 0., 0., 1., 5., 26., 2., 11., 1., 12., 3., 19., 2., 8., 3., 4., 21., 7., 42., 6., 5., 2., 4., 31., 9., 15., 5.,
12., 4., 0., 5., 30., 2., 40., 2., 17., 172., 2., 24., 190., 2., 11., 6., 0., 4., 75., 3., 22., 320., 35., 384., 45., 25., 0., 3., 11., 3., 39., 30., 238., 53., 5., 174., 15., 35., 4., 0., 2., 9., 10., 88., 18., 89., 13., 33., 45., 11., 4., 3., 30., 5., 38., 9., 39., 8., 28., 4., 9., 10., 2., 0., 0., 0., 25., 4., 16., 3., 38., 6., 12., 6., 1., 2., 0., 1., 2., 2., 13., 5., 8., 1., 8., 1., 1., 5., 163., 5., 1961., 80., 116., 237., 111., 99., 71., 12., 19., 20., 16., 1., 3., 8., 5., 7., 7., 10., 36., 12., 36., 16., 44., 5., 10., 3., 3., 12., 4., 2., 4., 2., 8., 4., 0., 3., 8., 15., 2., 0., 8., 4., 5., 0., 4., 2., 5., 35., 2., 13., 4., 8., 2., 28., 1., 3., 6., 4., 28., 3., 28., 4., 6., 10., 4., 28., 9., 10., 4.,
11., 2., 4., 14., 35., 4., 29., 2., 14., 167., 2., 26., 201., 7., 14., 6., 2., 8., 81., 1., 15., 300., 43., 326., 51., 19., 1., 0., 6., 5., 48., 34., 232., 41., 5., 165., 8., 30., 4., 0., 2., 16., 12., 65., 12., 82., 16., 38., 45., 12., 2., 2., 29., 7., 45., 3., 42., 9., 31., 8., 13., 6., 2., 0., 3., 0., 20., 11., 20., 1., 30., 4., 17., 2., 1., 3., 1., 1., 4., 2., 10., 2., 7., 2., 4., 0., 1., 1., 143., 12., 1932., 79., 96., 232., 105., 113., 74., 17., 13., 12., 11., 1., 3., 3., 4., 4., 6., 9., 33., 16., 30., 21., 36., 4., 12., 7., 5., 8., 13., 1., 4., 4., 9., 3., 0., 2., 6., 20., 0., 0., 7., 2., 3., 0., 3., 5., 2., 28., 3., 11., 2., 11., 1., 19., 8., 5., 3., 3., 27., 7., 31., 10., 7., 7., 5., 38., 3., 7., 5.,
8., 3., 6., 2., 4., 0., 4., 2., 7., 24., 1., 13., 17., 1., 18., 1., 2., 5., 20., 0., 6., 12., 19., 26., 27., 4., 1., 0., 2., 4., 12., 13., 33., 19., 1., 15., 2., 14., 9., 2., 0., 6., 5., 13., 10., 14., 50., 16., 21., 9., 5., 3., 3., 5., 8., 2., 11., 6., 6., 20., 6., 22., 9., 0., 1., 1., 10., 3., 3., 1., 7., 1., 4., 3., 1., 5., 6., 3., 2., 3., 2., 0., 3., 1., 3., 5., 1., 7., 3., 1., 2., 3., 1., 1., 3., 8., 0., 0., 1., 5., 0., 2., 1., 3., 1., 0., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 0., 2., 5., 7., 4., 0., 5., 15., 1., 15., 17., 0., 19., 2., 0., 4., 14., 3., 4., 27., 14., 28., 32., 5., 1., 1., 3., 3., 11., 4., 17., 18., 6., 18., 5., 16., 4., 2., 2., 2., 1., 13., 15., 17., 45., 13., 23., 5., 3., 3., 3., 3., 11., 5., 11., 3., 8., 15., 5., 24., 5., 4., 0., 0., 6., 1., 1., 1., 2., 4., 6., 1., 0., 3., 5., 4., 1., 3., 2., 0., 2., 2., 1., 5., 4., 3., 3., 3., 4., 1., 2., 1., 2., 8., 1., 0., 0., 0., 1., 2., 1., 2., 4., 3., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 2., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 7., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 3., 7., 6., 5., 2., 0., 6., 17., 0., 22., 25., 0., 16., 2., 0., 1., 15., 1., 5., 35., 9., 15., 20., 8., 1., 0., 0., 1., 6., 8., 24., 19., 3., 21., 3., 19., 8., 2., 0., 10., 3., 13., 12., 16., 50., 13., 22., 7., 4., 3., 2., 3., 6., 2., 7., 2., 5., 13., 6., 15., 6., 1., 2., 0., 7., 0., 3., 1., 7., 2., 2., 9., 3., 2., 3., 1., 1., 3., 1., 0., 5., 1., 3., 8., 1., 1., 4., 1., 7., 1., 5., 2., 0., 8., 3., 0., 0., 2., 5., 1., 4., 1., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 2., 2., 2., 4., 5., 2., 2., 3., 16., 0., 15., 23., 2., 19., 3., 1., 2., 23., 1., 2., 17., 18., 17., 21., 6., 0., 1., 1., 2., 2., 3., 36., 16., 4., 15., 7., 7., 12., 3., 0., 4., 3., 12., 13., 23., 45., 20., 22., 6., 3., 3., 6., 3., 3., 1., 11., 5., 5., 17., 8., 21., 11., 0., 1., 1., 3., 0., 3., 2., 4., 1., 3., 0., 3., 7., 2., 1., 0., 3., 0., 0., 6., 0., 1., 3., 0., 2., 1., 0., 4., 1., 0., 1., 2., 7., 1., 0., 2., 2., 3., 6., 2., 3., 1., 1., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 2., 8., 5., 10., 1., 7., 24., 0., 5., 23., 3., 11., 5., 0., 1., 22., 1., 4., 31., 10., 22., 27., 4., 0., 3., 1., 2., 9., 1., 28., 16., 2., 8., 4., 19., 9., 1., 1., 2., 3., 14., 12., 15., 57., 9., 16., 5., 6., 0., 4., 1., 8., 2., 14., 3., 9., 25., 5., 24., 5., 6., 4., 0., 5., 0., 5., 0., 7., 1., 6., 5., 1., 6., 3., 3., 3., 1., 2., 0., 1., 0., 4., 6., 2., 3., 1., 1., 1., 0., 0., 0., 4., 6., 3., 0., 4., 4., 2., 3., 4., 1., 3., 3., 5., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
16., 1., 3., 7., 4., 7., 2., 2., 7., 21., 1., 16., 30., 2., 14., 1., 1., 1., 14., 3., 4., 27., 5., 20., 30., 9., 0., 1., 3., 0., 12., 7., 25., 20., 5., 15., 5., 11., 12., 2., 0., 8., 2., 9., 11., 12., 44., 7., 25., 4., 5., 1., 11., 1., 4., 6., 9., 7., 11., 17., 9., 20., 7., 2., 1., 0., 10., 2., 1., 2., 7., 4., 4., 5., 3., 5., 2., 0., 0., 3., 2., 0., 2., 1., 2., 5., 0., 4., 2., 2., 3., 0., 2., 1., 0., 8., 1., 0., 2., 1., 2., 3., 1., 0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 3., 11., 0., 5., 0., 6., 31., 0., 14., 19., 0., 15., 2., 0., 3., 27., 3., 5., 40., 9., 31., 27., 3., 1., 0., 1., 1., 4., 7., 19., 10., 3., 17., 3., 20., 11., 4., 0., 5., 2., 7., 13., 15., 45., 8., 10., 5., 5., 0., 5., 3., 5., 4., 7., 3., 9., 15., 5., 21., 6., 1., 1., 1., 6., 0., 2., 3., 8., 2., 5., 7., 2., 7., 3., 4., 1., 2., 6., 0., 4., 3., 2., 8., 1., 4., 1., 0., 4., 0., 2., 0., 3., 10., 4., 0., 2., 4., 1., 1., 2., 0., 4., 0., 1., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 3., 5., 13., 1., 6., 3., 6., 19., 2., 12., 14., 2., 18., 2., 0., 5., 13., 3., 3., 30., 19., 34., 29., 7., 1., 0., 3., 2., 5., 0., 21., 18., 5., 15., 6., 10., 9., 3., 0., 2., 5., 15., 8., 17., 49., 9., 20., 2., 2., 0., 6., 1., 5., 0., 10., 6., 5., 16., 3., 18., 13., 1., 1., 2., 10., 2., 3., 0., 3., 3., 1., 3., 0., 3., 7., 3., 0., 0., 1., 0., 0., 2., 0., 2., 2., 6., 4., 2., 4., 0., 2., 0., 2., 12., 5., 0., 1., 4., 3., 1., 5., 4., 0., 1., 2., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 2., 4., 13., 1., 3., 1., 3., 16., 0., 14., 15., 0., 17., 2., 1., 4., 32., 2., 2., 33., 24., 14., 20., 3., 0., 3., 8., 3., 11., 5., 20., 21., 1., 11., 5., 6., 10., 2., 0., 8., 2., 10., 19., 14., 37., 12., 23., 10., 4., 1., 8., 1., 2., 4., 17., 11., 10., 14., 7., 29., 12., 4., 0., 1., 13., 0., 7., 2., 4., 3., 7., 3., 3., 5., 2., 1., 0., 2., 1., 0., 1., 3., 1., 9., 4., 1., 2., 4., 5., 1., 7., 1., 2., 8., 1., 0., 2., 1., 1., 1., 2., 1., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 4., 10., 3., 0., 2., 8., 22., 0., 13., 20., 0., 11., 4., 1., 3., 17., 1., 4., 26., 15., 23., 26., 9., 1., 0., 2., 3., 9., 6., 23., 30., 4., 14., 8., 13., 5., 1., 3., 4., 1., 12., 18., 18., 46., 12., 24., 5., 2., 1., 5., 3., 10., 1., 8., 7., 13., 17., 7., 24., 6., 3., 2., 1., 8., 1., 1., 2., 4., 3., 4., 3., 1., 1., 3., 1., 1., 5., 1., 0., 6., 2., 2., 4., 4., 6., 2., 1., 2., 0., 2., 0., 0., 9., 1., 0., 0., 0., 2., 2., 4., 2., 4., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 3., 3., 9., 4., 10., 1., 5., 21., 1., 13., 29., 1., 13., 2., 2., 4., 30., 2., 5., 18., 10., 25., 27., 3., 3., 1., 3., 4., 6., 5., 30., 13., 4., 14., 3., 13., 6., 1., 1., 2., 2., 13., 11., 11., 44., 11., 24., 10., 6., 1., 3., 2., 10., 2., 7., 6., 8., 14., 2., 29., 8., 2., 0., 1., 4., 1., 1., 3., 4., 3., 2., 4., 1., 3., 4., 0., 1., 4., 0., 0., 3., 6., 5., 4., 1., 4., 1., 0., 2., 0., 2., 0., 4., 9., 5., 0., 0., 1., 3., 0., 2., 1., 3., 1., 4., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 3., 5., 8., 3., 3., 1., 9., 22., 0., 17., 18., 1., 21., 1., 1., 0., 16., 4., 5., 18., 14., 19., 26., 6., 2., 1., 2., 1., 4., 8., 39., 11., 4., 10., 1., 18., 6., 2., 2., 4., 3., 11., 12., 21., 50., 7., 22., 15., 1., 0., 4., 1., 1., 4., 9., 4., 8., 18., 4., 27., 6., 4., 0., 0., 5., 2., 3., 1., 4., 4., 1., 5., 0., 3., 7., 3., 2., 4., 4., 0., 2., 1., 2., 7., 4., 2., 2., 3., 4., 1., 5., 2., 2., 4., 4., 0., 2., 0., 2., 1., 0., 2., 5., 2., 0., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 1., 5., 5., 5., 8., 0., 7., 28., 1., 15., 29., 1., 20., 3., 0., 1., 17., 2., 4., 26., 7., 19., 22., 13., 1., 3., 0., 2., 5., 7., 25., 23., 2., 20., 7., 13., 11., 2., 0., 6., 1., 9., 14., 21., 38., 6., 21., 7., 6., 0., 0., 1., 7., 2., 18., 1., 5., 13., 9., 25., 12., 1., 0., 1., 6., 2., 5., 1., 2., 3., 3., 4., 3., 4., 1., 1., 2., 1., 2., 0., 1., 2., 4., 3., 2., 2., 2., 2., 5., 0., 3., 1., 1., 8., 0., 0., 2., 2., 1., 4., 4., 1., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 5., 11., 5., 7., 0., 4., 27., 1., 15., 25., 0., 10., 5., 3., 1., 30., 1., 2., 17., 19., 34., 41., 9., 3., 5., 1., 3., 9., 7., 18., 17., 0., 11., 6., 18., 5., 0., 0., 1., 2., 11., 11., 14., 40., 15., 17., 8., 7., 0., 2., 1., 12., 6., 7., 3., 8., 17., 6., 23., 9., 4., 1., 1., 7., 1., 4., 4., 7., 3., 4., 3., 3., 4., 4., 1., 1., 1., 2., 0., 2., 3., 1., 8., 6., 3., 2., 1., 5., 1., 2., 2., 2., 6., 3., 0., 1., 1., 2., 3., 5., 3., 0., 0., 3., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 1., 7., 5., 4., 0., 5., 21., 4., 16., 29., 0., 22., 4., 1., 5., 10., 3., 4., 23., 6., 29., 23., 6., 0., 2., 4., 4., 12., 8., 28., 17., 3., 16., 3., 17., 2., 3., 3., 1., 4., 11., 12., 23., 42., 8., 22., 14., 5., 0., 4., 2., 11., 3., 7., 4., 13., 21., 6., 22., 10., 2., 0., 0., 8., 1., 1., 3., 6., 4., 3., 3., 1., 2., 4., 3., 0., 1., 2., 0., 2., 1., 2., 6., 3., 8., 0., 3., 7., 0., 2., 1., 1., 6., 1., 0., 1., 2., 0., 2., 2., 1., 1., 2., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 2., 4., 7., 4., 2., 0., 10., 11., 0., 14., 30., 1., 24., 3., 1., 5., 21., 1., 6., 17., 15., 18., 41., 5., 1., 1., 3., 2., 8., 4., 33., 20., 7., 13., 1., 13., 7., 5., 2., 3., 4., 14., 18., 16., 41., 16., 20., 11., 1., 0., 0., 2., 5., 5., 11., 3., 8., 16., 7., 34., 6., 4., 1., 0., 8., 3., 1., 2., 6., 3., 4., 2., 2., 2., 2., 0., 1., 3., 1., 0., 0., 4., 1., 3., 5., 0., 4., 1., 3., 1., 2., 1., 3., 6., 3., 0., 0., 1., 3., 5., 2., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 6., 5., 4., 3., 2., 9., 30., 0., 17., 28., 0., 9., 6., 1., 2., 15., 2., 7., 30., 14., 32., 21., 3., 0., 0., 3., 1., 4., 8., 24., 15., 3., 14., 3., 7., 6., 2., 0., 3., 3., 15., 6., 16., 46., 11., 21., 11., 0., 1., 3., 1., 4., 2., 4., 3., 8., 14., 7., 21., 8., 3., 1., 5., 7., 1., 2., 1., 5., 6., 3., 1., 0., 6., 1., 2., 2., 4., 2., 0., 1., 2., 1., 6., 1., 5., 1., 1., 7., 3., 3., 1., 1., 10., 2., 0., 3., 4., 3., 1., 6., 0., 1., 2., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 6., 3., 6., 3., 4., 1., 9., 17., 1., 14., 15., 0., 14., 4., 0., 1., 9., 0., 3., 28., 10., 28., 24., 6., 1., 1., 5., 2., 9., 7., 21., 12., 3., 17., 3., 12., 7., 1., 0., 6., 0., 8., 2., 15., 52., 8., 25., 10., 4., 0., 4., 3., 8., 2., 15., 4., 9., 17., 7., 20., 14., 3., 2., 1., 9., 1., 5., 2., 6., 2., 1., 9., 3., 2., 5., 1., 3., 2., 1., 0., 1., 1., 6., 7., 3., 4., 2., 2., 2., 1., 2., 1., 4., 2., 2., 0., 3., 3., 2., 1., 0., 4., 2., 1., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 6., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 2., 9., 3., 5., 0., 3., 18., 1., 15., 27., 3., 18., 6., 0., 2., 27., 2., 5., 30., 13., 25., 35., 4., 0., 2., 2., 2., 9., 6., 23., 23., 2., 7., 4., 10., 11., 2., 0., 3., 2., 16., 12., 10., 48., 9., 24., 7., 3., 1., 4., 1., 8., 1., 9., 6., 6., 18., 3., 15., 6., 3., 0., 0., 12., 0., 5., 4., 9., 1., 4., 4., 3., 5., 3., 0., 1., 7., 1., 0., 0., 0., 3., 7., 2., 5., 2., 0., 2., 1., 3., 0., 4., 5., 1., 0., 1., 6., 3., 1., 1., 2., 2., 1., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 2., 9., 2., 4., 1., 5., 20., 0., 13., 13., 3., 15., 2., 0., 2., 21., 2., 4., 27., 17., 29., 15., 3., 1., 2., 0., 5., 7., 11., 23., 19., 0., 9., 5., 20., 10., 2., 2., 6., 2., 10., 15., 18., 36., 10., 15., 10., 3., 2., 4., 2., 12., 3., 11., 5., 8., 7., 11., 17., 5., 0., 0., 1., 5., 0., 4., 6., 3., 6., 6., 4., 0., 1., 2., 2., 0., 2., 4., 0., 0., 4., 2., 11., 0., 3., 3., 3., 6., 0., 4., 2., 2., 4., 0., 0., 1., 1., 0., 0., 0., 4., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 4., 12., 2., 6., 0., 9., 14., 1., 9., 13., 1., 16., 6., 2., 1., 10., 0., 4., 23., 10., 29., 28., 4., 1., 1., 4., 2., 6., 3., 25., 20., 3., 11., 1., 8., 6., 1., 0., 0., 0., 10., 11., 20., 45., 15., 21., 7., 7., 1., 4., 4., 4., 5., 3., 6., 6., 13., 3., 16., 5., 4., 1., 1., 10., 1., 3., 2., 6., 4., 3., 7., 3., 2., 2., 4., 0., 4., 4., 0., 1., 2., 2., 10., 1., 4., 1., 2., 5., 1., 3., 1., 4., 6., 0., 0., 2., 2., 5., 1., 3., 3., 4., 3., 0., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 2., 6., 5., 8., 1., 7., 28., 2., 12., 21., 0., 13., 0., 0., 3., 35., 4., 4., 41., 8., 23., 22., 6., 0., 0., 0., 1., 6., 2., 28., 12., 1., 11., 7., 13., 5., 2., 1., 5., 2., 11., 10., 14., 35., 12., 14., 13., 6., 1., 8., 0., 15., 2., 8., 9., 8., 18., 4., 16., 6., 4., 0., 1., 5., 1., 3., 0., 2., 3., 6., 4., 2., 6., 3., 2., 2., 2., 2., 0., 3., 3., 1., 4., 0., 3., 3., 2., 4., 1., 2., 1., 1., 7., 1., 0., 0., 1., 1., 1., 3., 6., 2., 0., 3., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 3., 6., 0., 14., 2., 6., 45., 0., 7., 61., 0., 4., 1., 0., 4., 77., 10., 4., 67., 12., 70., 13., 6., 0., 1., 4., 2., 14., 9., 41., 11., 4., 43., 32., 15., 7., 0., 1., 9., 3., 24., 0., 26., 6., 12., 5., 5., 0., 0., 8., 8., 16., 6., 9., 0., 12., 5., 1., 33., 7., 6., 3., 0., 12., 3., 8., 3., 10., 0., 3., 0., 3., 3., 0., 2., 5., 18., 10., 1., 2., 1., 6., 0., 0., 0., 0., 0., 16., 1., 0., 0., 4., 0., 1., 0., 3., 0., 0., 0., 0., 2., 0., 0., 5., 0., 1., 0., 1., 0., 0., 0., 3., 0., 0., 3., 2., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 14., 0., 1., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 2., 13., 0., 13., 2., 8., 59., 3., 9., 59., 1., 3., 4., 0., 4., 71., 10., 9., 88., 18., 90., 11., 7., 0., 0., 4., 2., 11., 10., 55., 11., 1., 36., 27., 13., 6., 0., 1., 7., 4., 16., 3., 27., 12., 12., 12., 1., 3., 0., 8., 6., 14., 9., 18., 2., 5., 3., 5., 38., 4., 7., 1., 0., 16., 7., 6., 1., 13., 2., 2., 1., 1., 0., 0., 7., 1., 14., 7., 4., 4., 0., 2., 0., 0., 0., 0., 0., 9., 0., 1., 1., 4., 1., 0., 0., 1., 0., 1., 0., 0., 5., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 2., 2., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 22., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 5., 5., 14., 0., 9., 1., 10., 54., 2., 9., 55., 1., 5., 1., 0., 3., 87., 6., 7., 77., 12., 89., 10., 3., 0., 0., 3., 2., 14., 7., 44., 11., 2., 34., 41., 10., 2., 0., 2., 0., 3., 18., 6., 21., 8., 13., 11., 0., 1., 0., 7., 6., 20., 4., 16., 7., 5., 4., 4., 41., 9., 4., 1., 0., 15., 4., 7., 1., 10., 2., 2., 1., 0., 2., 0., 1., 1., 28., 9., 2., 4., 1., 3., 0., 0., 0., 0., 0., 6., 3., 1., 4., 2., 0., 0., 0., 0., 0., 0., 0., 1., 6., 2., 0., 2., 0., 0., 0., 2., 0., 0., 0., 2., 0., 2., 2., 3., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 28., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 3., 3., 8., 24., 5., 25., 1., 12., 151., 4., 29., 203., 1., 20., 4., 0., 4., 74., 3., 9., 277., 32., 340., 36., 18., 0., 4., 7., 2., 38., 34., 224., 29., 8., 159., 10., 31., 7., 0., 0., 22., 15., 95., 15., 84., 20., 35., 53., 11., 3., 1., 27., 9., 33., 8., 41., 12., 33., 4., 5., 7., 3., 0., 1., 0., 21., 6., 16., 2., 33., 5., 16., 5., 1., 3., 0., 0., 3., 0., 15., 5., 8., 2., 7., 0., 2., 5., 124., 8., 1829., 98., 91., 219., 95., 96., 73., 16., 10., 21., 6., 0., 1., 7., 6., 4., 6., 9., 29., 12., 30., 23., 41., 8., 13., 2., 4., 7., 6., 3., 6., 6., 12., 3., 0., 2., 7., 22., 4., 0., 8., 8., 4., 0., 5., 1., 1., 29., 2., 15., 3., 16., 4., 19., 3., 2., 8., 2., 28., 2., 24., 1., 8., 7., 3., 26., 5., 15., 5.,
14., 1., 3., 6., 30., 9., 31., 5., 9., 153., 2., 31., 201., 9., 15., 9., 1., 3., 93., 5., 13., 266., 46., 355., 54., 16., 1., 1., 8., 2., 44., 24., 211., 51., 4., 148., 16., 40., 3., 0., 2., 23., 5., 83., 25., 87., 14., 40., 39., 14., 2., 1., 30., 6., 46., 8., 43., 4., 33., 8., 10., 2., 2., 0., 1., 0., 26., 0., 13., 0., 25., 3., 7., 2., 2., 3., 0., 0., 2., 3., 12., 0., 10., 3., 6., 1., 3., 3., 130., 6., 1837., 79., 105., 224., 76., 96., 68., 14., 6., 17., 13., 1., 1., 5., 7., 3., 10., 8., 27., 18., 26., 14., 43., 2., 6., 4., 7., 4., 9., 2., 4., 1., 11., 1., 0., 5., 9., 16., 1., 0., 8., 6., 5., 0., 0., 1., 4., 32., 0., 18., 1., 12., 3., 17., 5., 8., 3., 4., 30., 2., 29., 5., 2., 6., 6., 34., 12., 18., 9.,
13., 2., 2., 4., 27., 4., 38., 3., 23., 158., 4., 30., 238., 3., 15., 9., 1., 6., 88., 2., 20., 294., 54., 315., 54., 20., 1., 5., 12., 10., 38., 35., 254., 35., 7., 151., 13., 33., 4., 0., 1., 19., 8., 84., 15., 91., 14., 56., 44., 12., 1., 2., 23., 10., 40., 8., 47., 12., 38., 5., 8., 7., 3., 0., 0., 0., 24., 6., 10., 3., 29., 7., 10., 2., 3., 4., 3., 3., 3., 0., 13., 4., 10., 1., 4., 1., 1., 6., 165., 8., 1904., 94., 81., 234., 89., 119., 71., 19., 13., 22., 8., 2., 3., 5., 5., 3., 12., 9., 38., 16., 35., 17., 47., 7., 8., 5., 11., 13., 5., 0., 3., 2., 9., 5., 0., 10., 7., 14., 3., 0., 4., 5., 4., 0., 2., 1., 1., 35., 5., 12., 4., 11., 5., 24., 9., 7., 5., 5., 22., 3., 25., 9., 4., 5., 6., 28., 7., 9., 8.,
14., 1., 2., 5., 20., 6., 26., 2., 12., 163., 1., 28., 217., 3., 17., 5., 1., 2., 84., 1., 23., 295., 34., 322., 39., 20., 2., 1., 8., 7., 39., 35., 217., 46., 8., 158., 12., 42., 2., 0., 0., 15., 5., 86., 18., 100., 15., 32., 46., 5., 4., 0., 26., 8., 41., 9., 38., 16., 26., 3., 17., 6., 2., 0., 1., 0., 24., 4., 16., 1., 31., 4., 6., 6., 2., 3., 3., 0., 1., 3., 16., 2., 6., 3., 10., 2., 2., 5., 161., 9., 1827., 92., 99., 195., 92., 121., 72., 16., 13., 15., 11., 1., 2., 4., 8., 4., 8., 4., 33., 22., 39., 13., 39., 5., 5., 2., 2., 2., 4., 6., 3., 5., 12., 7., 0., 4., 6., 13., 2., 0., 14., 9., 3., 0., 7., 3., 0., 21., 1., 6., 4., 6., 0., 27., 2., 1., 8., 2., 23., 9., 23., 5., 2., 6., 7., 35., 7., 14., 5.,
13., 0., 1., 4., 16., 6., 23., 1., 13., 149., 2., 24., 202., 5., 20., 13., 1., 8., 67., 0., 13., 305., 42., 329., 46., 24., 0., 2., 11., 4., 32., 36., 247., 40., 3., 154., 17., 38., 9., 0., 1., 17., 4., 86., 31., 78., 12., 26., 35., 15., 4., 5., 21., 3., 43., 12., 35., 12., 29., 7., 12., 5., 1., 0., 1., 0., 23., 5., 14., 2., 30., 5., 10., 2., 0., 2., 2., 3., 0., 3., 20., 4., 6., 2., 13., 0., 0., 5., 144., 5., 1852., 94., 86., 226., 92., 106., 74., 16., 14., 10., 15., 1., 0., 5., 10., 6., 10., 12., 31., 17., 26., 12., 45., 8., 11., 3., 10., 5., 7., 1., 6., 2., 6., 1., 0., 3., 4., 14., 0., 0., 9., 5., 3., 0., 3., 1., 3., 29., 5., 9., 3., 17., 3., 15., 5., 3., 4., 6., 22., 2., 46., 3., 9., 2., 3., 21., 5., 11., 2.,
10., 2., 5., 9., 27., 3., 27., 1., 19., 168., 3., 27., 199., 5., 13., 9., 0., 4., 80., 1., 15., 312., 39., 301., 44., 18., 0., 1., 7., 4., 45., 27., 211., 40., 8., 164., 9., 50., 5., 0., 3., 9., 9., 90., 17., 84., 13., 37., 46., 14., 4., 0., 22., 10., 38., 8., 55., 9., 27., 7., 6., 7., 1., 0., 0., 0., 27., 4., 21., 1., 38., 5., 7., 4., 2., 3., 0., 1., 4., 3., 10., 2., 8., 4., 10., 2., 2., 3., 143., 7., 1825., 99., 103., 229., 82., 118., 70., 19., 14., 18., 14., 1., 2., 13., 6., 6., 10., 4., 44., 10., 32., 27., 52., 5., 11., 6., 5., 8., 2., 0., 2., 4., 9., 3., 0., 3., 9., 15., 3., 0., 4., 6., 5., 0., 7., 6., 2., 41., 1., 8., 7., 14., 3., 25., 4., 4., 2., 5., 28., 4., 40., 2., 8., 7., 6., 37., 15., 17., 4.,
17., 2., 2., 11., 25., 7., 40., 0., 21., 175., 5., 26., 188., 2., 19., 6., 0., 5., 76., 5., 17., 286., 48., 325., 33., 18., 0., 0., 4., 7., 51., 33., 215., 35., 5., 134., 3., 29., 5., 0., 4., 22., 7., 67., 20., 75., 9., 35., 32., 15., 2., 3., 24., 7., 36., 16., 57., 6., 25., 3., 8., 9., 1., 0., 1., 0., 18., 6., 14., 0., 39., 0., 9., 1., 3., 2., 1., 1., 3., 2., 9., 4., 9., 2., 6., 1., 1., 5., 146., 6., 1906., 102., 88., 238., 103., 131., 69., 16., 8., 15., 10., 1., 4., 11., 7., 2., 8., 6., 30., 19., 33., 14., 40., 7., 10., 2., 3., 5., 5., 1., 1., 0., 9., 5., 0., 3., 6., 15., 3., 0., 8., 6., 0., 0., 7., 3., 0., 35., 0., 8., 1., 10., 6., 14., 2., 3., 2., 4., 28., 3., 31., 11., 4., 8., 4., 39., 7., 14., 5.,
6., 1., 1., 3., 5., 2., 13., 2., 1., 18., 1., 16., 24., 3., 12., 5., 3., 3., 7., 5., 1., 22., 13., 27., 28., 4., 0., 0., 2., 0., 7., 6., 21., 15., 3., 13., 5., 9., 10., 2., 1., 4., 1., 18., 10., 14., 38., 14., 27., 7., 2., 0., 2., 3., 9., 4., 7., 3., 14., 15., 8., 22., 12., 3., 0., 3., 4., 1., 3., 3., 4., 2., 4., 3., 1., 4., 2., 0., 0., 1., 5., 0., 1., 0., 2., 6., 3., 7., 3., 2., 6., 0., 1., 0., 2., 9., 2., 0., 1., 0., 3., 3., 1., 2., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 1., 4., 9., 4., 6., 0., 8., 19., 1., 15., 31., 0., 17., 2., 1., 1., 24., 0., 6., 25., 13., 29., 31., 5., 1., 2., 1., 5., 8., 13., 35., 20., 2., 8., 1., 16., 9., 2., 0., 1., 1., 14., 8., 11., 34., 16., 19., 6., 4., 6., 5., 3., 8., 3., 8., 6., 7., 18., 7., 29., 10., 2., 1., 2., 5., 0., 1., 0., 3., 3., 6., 1., 1., 4., 2., 2., 0., 1., 1., 0., 3., 3., 3., 12., 0., 6., 1., 1., 6., 1., 2., 2., 2., 6., 1., 0., 1., 3., 0., 5., 4., 4., 1., 1., 4., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 1., 7., 5., 6., 1., 8., 14., 0., 15., 12., 3., 18., 2., 1., 1., 26., 3., 3., 28., 11., 12., 25., 4., 0., 2., 3., 1., 11., 8., 26., 13., 3., 16., 6., 18., 7., 1., 0., 1., 3., 14., 18., 22., 44., 14., 17., 10., 5., 0., 6., 0., 6., 2., 14., 3., 9., 17., 9., 31., 7., 4., 0., 1., 10., 1., 2., 4., 4., 3., 2., 2., 5., 3., 2., 0., 2., 2., 2., 0., 0., 4., 0., 6., 3., 2., 2., 1., 5., 0., 2., 1., 1., 11., 2., 0., 0., 1., 3., 1., 1., 3., 1., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 3., 2., 3., 6., 3., 4., 1., 7., 27., 1., 11., 25., 0., 17., 5., 1., 2., 19., 2., 3., 13., 16., 19., 31., 10., 1., 2., 3., 2., 9., 11., 34., 25., 7., 20., 3., 10., 4., 5., 0., 2., 3., 10., 10., 21., 31., 14., 26., 7., 5., 1., 3., 1., 6., 6., 17., 6., 7., 14., 5., 20., 10., 3., 0., 3., 7., 1., 2., 2., 4., 6., 0., 3., 3., 7., 2., 4., 2., 3., 2., 0., 3., 1., 2., 5., 1., 3., 2., 4., 2., 0., 2., 0., 3., 5., 1., 0., 5., 6., 0., 1., 3., 3., 3., 0., 6., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 2., 3., 9., 1., 4., 0., 6., 19., 0., 11., 23., 2., 17., 4., 1., 4., 6., 2., 4., 31., 13., 22., 21., 8., 2., 2., 3., 5., 7., 6., 28., 10., 4., 18., 5., 19., 12., 2., 0., 4., 1., 15., 8., 14., 40., 14., 17., 8., 4., 3., 4., 1., 6., 1., 8., 3., 6., 15., 6., 19., 10., 4., 2., 0., 6., 1., 2., 2., 3., 5., 3., 7., 2., 6., 0., 4., 1., 5., 3., 0., 0., 4., 0., 8., 2., 5., 2., 1., 0., 0., 0., 1., 1., 5., 3., 0., 1., 0., 1., 1., 1., 3., 3., 1., 0., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 4., 5., 4., 7., 2., 5., 26., 1., 12., 22., 0., 12., 0., 0., 0., 12., 0., 7., 11., 5., 22., 28., 4., 0., 0., 5., 2., 8., 8., 37., 12., 2., 11., 7., 9., 7., 5., 2., 5., 0., 13., 8., 17., 48., 14., 28., 7., 3., 1., 5., 3., 9., 4., 3., 11., 7., 12., 7., 28., 13., 1., 1., 1., 6., 0., 4., 2., 6., 4., 5., 5., 0., 2., 2., 1., 2., 2., 3., 0., 1., 2., 1., 12., 1., 5., 2., 3., 2., 2., 1., 2., 1., 6., 0., 0., 3., 1., 3., 1., 5., 4., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 0., 7., 2., 6., 1., 4., 27., 1., 13., 27., 1., 10., 0., 0., 3., 13., 3., 6., 22., 12., 24., 23., 5., 1., 2., 0., 1., 6., 5., 18., 11., 3., 19., 4., 11., 8., 3., 1., 5., 3., 13., 17., 15., 30., 16., 18., 4., 0., 1., 5., 3., 11., 4., 10., 9., 9., 14., 6., 25., 9., 3., 0., 1., 7., 0., 2., 0., 6., 3., 2., 6., 0., 4., 6., 1., 1., 2., 0., 0., 3., 3., 0., 3., 1., 3., 1., 3., 4., 0., 1., 1., 1., 10., 1., 0., 2., 4., 1., 2., 2., 2., 2., 1., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 4., 11., 2., 4., 2., 10., 29., 2., 18., 21., 0., 10., 1., 3., 0., 7., 1., 7., 22., 18., 33., 20., 6., 0., 1., 4., 1., 6., 10., 28., 15., 3., 19., 2., 14., 8., 2., 0., 4., 1., 8., 18., 23., 46., 9., 19., 4., 7., 1., 4., 2., 4., 1., 9., 4., 8., 17., 9., 21., 10., 1., 0., 0., 1., 0., 4., 4., 3., 3., 4., 7., 0., 5., 6., 1., 2., 1., 3., 0., 2., 0., 2., 8., 3., 6., 4., 3., 4., 0., 4., 1., 1., 7., 1., 0., 0., 6., 2., 0., 2., 2., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 3., 5., 11., 3., 13., 2., 9., 22., 3., 18., 25., 0., 16., 4., 2., 1., 36., 2., 2., 11., 11., 15., 25., 7., 1., 1., 3., 2., 8., 11., 23., 16., 2., 13., 3., 9., 5., 3., 0., 6., 3., 11., 11., 17., 57., 12., 23., 11., 2., 0., 5., 1., 6., 3., 10., 4., 7., 15., 4., 23., 8., 5., 3., 0., 3., 1., 5., 3., 7., 1., 5., 2., 3., 2., 0., 2., 1., 1., 2., 0., 1., 0., 4., 11., 2., 3., 0., 2., 1., 2., 4., 0., 1., 6., 3., 0., 2., 1., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 5., 5., 8., 3., 5., 1., 6., 27., 2., 14., 14., 1., 17., 2., 1., 1., 24., 3., 4., 13., 19., 27., 32., 2., 1., 0., 4., 3., 5., 9., 21., 17., 1., 24., 4., 15., 9., 2., 0., 5., 4., 14., 14., 22., 41., 15., 23., 10., 3., 1., 3., 2., 9., 4., 11., 8., 9., 21., 5., 22., 7., 2., 1., 2., 7., 2., 1., 2., 5., 7., 2., 4., 1., 3., 4., 2., 1., 0., 0., 0., 5., 2., 0., 9., 1., 4., 4., 3., 1., 1., 3., 1., 2., 11., 4., 0., 2., 2., 1., 0., 1., 3., 1., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 4., 5., 9., 9., 5., 3., 1., 4., 24., 0., 11., 14., 0., 17., 0., 0., 0., 18., 4., 10., 27., 11., 23., 24., 5., 0., 0., 3., 1., 7., 4., 29., 14., 6., 13., 4., 8., 6., 1., 1., 3., 2., 13., 5., 19., 33., 10., 25., 9., 3., 1., 6., 1., 7., 2., 14., 10., 4., 13., 4., 18., 3., 1., 1., 1., 2., 1., 2., 3., 8., 2., 2., 5., 3., 3., 2., 4., 2., 4., 5., 0., 4., 1., 1., 6., 3., 4., 1., 1., 6., 1., 0., 0., 1., 1., 1., 0., 2., 2., 0., 2., 3., 2., 1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 3., 7., 2., 7., 0., 5., 35., 1., 13., 20., 0., 12., 2., 0., 4., 6., 1., 3., 16., 6., 25., 26., 3., 0., 2., 5., 4., 7., 1., 34., 13., 3., 11., 3., 14., 6., 3., 0., 8., 4., 17., 13., 18., 38., 16., 28., 5., 6., 3., 11., 3., 9., 4., 10., 9., 14., 19., 4., 17., 11., 3., 0., 0., 5., 0., 4., 0., 2., 2., 5., 2., 3., 6., 3., 2., 1., 0., 1., 0., 3., 4., 0., 8., 6., 4., 2., 0., 3., 0., 6., 0., 4., 5., 1., 0., 2., 4., 3., 4., 1., 1., 2., 0., 5., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 2., 13., 2., 3., 0., 7., 19., 2., 17., 17., 0., 16., 3., 1., 2., 13., 0., 5., 27., 13., 18., 27., 5., 1., 6., 2., 4., 2., 9., 21., 22., 2., 15., 4., 10., 9., 4., 1., 5., 3., 14., 11., 13., 44., 10., 26., 9., 2., 0., 5., 2., 5., 5., 12., 3., 9., 12., 4., 19., 9., 3., 0., 1., 9., 1., 5., 3., 5., 3., 3., 1., 3., 6., 3., 0., 0., 1., 2., 0., 2., 1., 3., 5., 0., 2., 2., 1., 5., 0., 2., 1., 4., 7., 3., 0., 3., 1., 2., 2., 1., 0., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 6., 8., 1., 7., 1., 3., 13., 0., 23., 17., 1., 16., 4., 3., 4., 5., 2., 4., 23., 13., 17., 23., 7., 2., 2., 1., 2., 12., 7., 25., 18., 5., 20., 4., 11., 11., 1., 2., 2., 1., 15., 9., 16., 63., 9., 26., 10., 8., 0., 7., 3., 5., 3., 6., 6., 5., 15., 5., 22., 8., 2., 1., 2., 10., 1., 4., 4., 9., 1., 5., 8., 3., 4., 4., 5., 0., 2., 2., 0., 3., 0., 0., 7., 1., 3., 0., 1., 5., 0., 4., 1., 2., 1., 2., 0., 1., 3., 1., 3., 3., 3., 2., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 3., 5., 3., 8., 1., 1., 16., 0., 15., 26., 1., 17., 2., 0., 1., 18., 0., 2., 18., 5., 37., 28., 2., 2., 0., 6., 1., 9., 8., 36., 11., 2., 18., 6., 19., 14., 2., 1., 3., 0., 11., 13., 11., 53., 12., 26., 15., 4., 0., 8., 3., 7., 0., 10., 5., 4., 18., 6., 18., 5., 2., 0., 1., 7., 2., 0., 1., 6., 0., 6., 3., 4., 13., 4., 0., 0., 2., 4., 0., 2., 3., 0., 11., 2., 6., 1., 2., 6., 1., 0., 0., 2., 5., 3., 0., 5., 1., 2., 3., 3., 2., 2., 1., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 1., 2., 6., 5., 6., 0., 6., 14., 0., 12., 12., 0., 16., 2., 1., 3., 33., 2., 4., 29., 6., 31., 25., 10., 0., 1., 1., 0., 5., 6., 27., 18., 2., 14., 1., 13., 11., 0., 1., 4., 2., 12., 14., 14., 51., 16., 18., 9., 1., 0., 4., 2., 6., 1., 10., 7., 9., 15., 5., 21., 5., 5., 0., 2., 9., 0., 1., 2., 7., 3., 8., 8., 4., 1., 8., 1., 2., 0., 1., 0., 1., 2., 3., 5., 2., 2., 4., 1., 3., 1., 2., 2., 5., 2., 2., 0., 2., 6., 1., 2., 3., 1., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 0., 6., 5., 3., 5., 0., 4., 11., 2., 14., 15., 2., 26., 3., 2., 1., 4., 2., 1., 20., 15., 36., 27., 2., 0., 0., 3., 2., 8., 9., 19., 19., 2., 23., 5., 16., 5., 3., 1., 4., 1., 17., 19., 9., 47., 5., 17., 12., 2., 0., 4., 2., 5., 2., 12., 3., 10., 10., 7., 12., 6., 2., 0., 3., 11., 0., 3., 3., 7., 1., 1., 4., 2., 5., 2., 1., 2., 3., 4., 0., 1., 1., 3., 12., 4., 10., 0., 2., 1., 3., 3., 0., 4., 12., 1., 0., 3., 1., 4., 2., 1., 1., 2., 3., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 4., 12., 4., 8., 2., 7., 25., 2., 13., 27., 1., 10., 2., 2., 3., 13., 2., 3., 32., 9., 24., 27., 5., 0., 1., 6., 2., 7., 8., 20., 14., 5., 18., 6., 17., 8., 2., 1., 9., 2., 13., 11., 23., 42., 9., 21., 5., 2., 3., 2., 1., 4., 2., 9., 7., 14., 17., 5., 27., 4., 2., 0., 1., 9., 1., 2., 2., 6., 4., 2., 3., 2., 1., 3., 3., 0., 0., 2., 0., 2., 2., 3., 8., 1., 5., 0., 2., 4., 2., 1., 1., 3., 3., 2., 0., 1., 2., 2., 4., 2., 4., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 1., 5., 8., 3., 11., 0., 7., 27., 1., 7., 26., 0., 16., 6., 1., 3., 31., 2., 3., 14., 11., 24., 32., 4., 2., 1., 4., 6., 3., 6., 28., 11., 3., 9., 3., 13., 10., 2., 2., 5., 3., 11., 9., 17., 44., 12., 20., 5., 3., 3., 6., 2., 4., 2., 13., 6., 11., 9., 4., 17., 8., 5., 1., 1., 12., 1., 1., 3., 5., 6., 1., 4., 1., 3., 2., 5., 1., 1., 3., 0., 2., 2., 3., 4., 1., 4., 3., 2., 7., 1., 3., 1., 4., 5., 4., 0., 4., 2., 2., 1., 1., 1., 3., 0., 2., 0., 0., 0., 0., 2., 0., 0., 5., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 1., 4., 9., 2., 6., 2., 4., 24., 3., 13., 21., 1., 18., 2., 0., 3., 16., 0., 6., 23., 6., 21., 22., 7., 0., 1., 4., 3., 8., 11., 27., 17., 3., 11., 6., 17., 8., 3., 1., 4., 3., 10., 11., 19., 50., 13., 16., 13., 9., 0., 8., 1., 7., 2., 15., 7., 8., 18., 3., 33., 12., 3., 0., 1., 8., 2., 0., 2., 5., 2., 4., 4., 5., 5., 4., 1., 1., 2., 3., 0., 4., 2., 3., 5., 2., 4., 2., 2., 4., 0., 1., 0., 5., 5., 3., 0., 3., 3., 1., 4., 2., 2., 3., 4., 2., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 2., 7., 2., 4., 0., 5., 27., 0., 9., 19., 0., 15., 1., 1., 3., 19., 4., 6., 27., 12., 32., 28., 7., 1., 0., 3., 1., 9., 9., 25., 17., 3., 17., 5., 9., 4., 2., 0., 6., 2., 11., 16., 19., 39., 13., 22., 11., 0., 1., 7., 2., 4., 5., 9., 2., 12., 21., 6., 29., 4., 7., 0., 2., 6., 2., 6., 2., 6., 3., 3., 3., 2., 2., 0., 1., 0., 4., 3., 0., 1., 3., 3., 6., 3., 8., 2., 4., 8., 0., 2., 0., 5., 2., 2., 0., 3., 2., 1., 3., 4., 1., 3., 0., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 3., 1., 14., 5., 6., 0., 7., 10., 1., 11., 23., 4., 9., 2., 1., 3., 19., 2., 4., 35., 15., 31., 26., 7., 0., 1., 2., 1., 6., 2., 24., 21., 2., 20., 3., 17., 10., 4., 1., 11., 4., 7., 12., 23., 46., 11., 22., 7., 0., 0., 9., 4., 5., 2., 14., 8., 7., 18., 6., 14., 12., 5., 0., 3., 4., 2., 4., 2., 4., 5., 2., 5., 2., 5., 4., 7., 1., 1., 3., 0., 2., 0., 2., 6., 2., 6., 2., 1., 6., 0., 4., 1., 2., 5., 4., 0., 2., 1., 3., 5., 3., 0., 2., 0., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 2., 1., 6., 0., 22., 2., 7., 50., 0., 11., 79., 1., 8., 2., 0., 2., 79., 10., 5., 84., 14., 86., 17., 5., 0., 3., 2., 1., 15., 14., 54., 11., 4., 38., 27., 15., 4., 0., 1., 8., 2., 23., 6., 29., 4., 11., 7., 4., 4., 0., 10., 2., 13., 9., 14., 5., 9., 5., 6., 51., 3., 5., 3., 0., 12., 5., 9., 2., 13., 2., 3., 4., 2., 1., 0., 6., 2., 8., 17., 1., 2., 0., 3., 0., 0., 0., 0., 0., 6., 1., 4., 2., 3., 1., 3., 0., 1., 0., 3., 0., 1., 3., 2., 0., 2., 0., 4., 0., 0., 0., 0., 0., 1., 0., 3., 2., 5., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 22., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 4., 12., 0., 14., 1., 12., 52., 1., 9., 63., 2., 7., 2., 0., 1., 66., 7., 13., 64., 6., 73., 15., 2., 0., 4., 2., 1., 12., 13., 68., 12., 2., 35., 36., 13., 6., 0., 1., 2., 4., 23., 3., 20., 5., 9., 7., 2., 2., 0., 9., 3., 14., 9., 15., 3., 5., 5., 5., 47., 9., 5., 4., 0., 7., 8., 5., 2., 15., 1., 2., 1., 0., 2., 0., 7., 3., 18., 14., 0., 2., 2., 5., 0., 0., 0., 0., 0., 6., 1., 4., 2., 2., 1., 3., 0., 1., 0., 2., 0., 1., 2., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 3., 2., 1., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 21., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 1., 3., 12., 0., 11., 3., 8., 68., 0., 11., 59., 0., 2., 2., 0., 0., 69., 6., 13., 92., 23., 74., 14., 7., 0., 3., 4., 2., 13., 9., 57., 13., 3., 37., 45., 12., 1., 0., 1., 3., 5., 22., 5., 22., 4., 11., 5., 4., 1., 0., 11., 2., 10., 9., 16., 2., 12., 3., 3., 49., 6., 6., 0., 0., 15., 7., 8., 3., 10., 5., 4., 2., 2., 1., 0., 12., 1., 15., 7., 2., 2., 3., 0., 0., 0., 0., 0., 0., 10., 2., 1., 2., 2., 4., 1., 0., 1., 0., 1., 0., 0., 5., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 1., 0., 2., 1., 3., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 19., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 4., 3., 10., 26., 7., 47., 1., 19., 163., 6., 28., 181., 6., 29., 4., 2., 2., 75., 1., 20., 283., 39., 299., 48., 17., 0., 3., 9., 4., 56., 36., 250., 42., 8., 175., 18., 35., 7., 0., 2., 16., 9., 86., 21., 96., 9., 44., 41., 14., 3., 1., 31., 7., 29., 13., 46., 8., 30., 5., 11., 4., 1., 0., 0., 0., 28., 6., 14., 2., 20., 2., 9., 6., 1., 2., 0., 1., 1., 5., 8., 2., 5., 1., 2., 0., 0., 4., 140., 10., 1854., 82., 101., 213., 104., 116., 62., 14., 13., 18., 13., 0., 5., 5., 7., 4., 9., 13., 29., 16., 31., 20., 42., 5., 16., 4., 5., 7., 4., 2., 2., 5., 12., 3., 0., 0., 3., 14., 2., 0., 14., 2., 2., 0., 5., 2., 3., 34., 2., 6., 2., 9., 2., 14., 3., 3., 2., 3., 23., 5., 35., 11., 6., 5., 6., 29., 5., 7., 1.,
11., 1., 0., 6., 14., 5., 31., 0., 19., 156., 2., 27., 204., 3., 15., 1., 1., 5., 88., 0., 9., 290., 50., 298., 26., 12., 4., 0., 7., 4., 41., 30., 222., 39., 11., 152., 13., 39., 7., 0., 3., 16., 13., 81., 24., 111., 20., 37., 22., 12., 5., 0., 32., 11., 46., 9., 40., 6., 34., 3., 10., 8., 2., 0., 0., 0., 27., 5., 5., 2., 24., 6., 12., 3., 0., 2., 0., 0., 5., 0., 7., 5., 12., 0., 8., 2., 2., 2., 157., 9., 1902., 77., 96., 206., 91., 119., 72., 16., 12., 17., 22., 0., 2., 9., 4., 4., 6., 11., 35., 13., 39., 17., 32., 7., 7., 5., 8., 3., 6., 2., 7., 4., 13., 5., 0., 3., 2., 16., 1., 0., 7., 1., 4., 0., 6., 2., 7., 24., 6., 16., 4., 17., 4., 14., 5., 5., 3., 10., 22., 5., 32., 5., 6., 6., 3., 28., 11., 11., 9.,
14., 3., 4., 8., 19., 2., 31., 0., 13., 162., 1., 27., 202., 5., 15., 7., 1., 3., 99., 0., 31., 290., 46., 363., 54., 19., 1., 3., 6., 4., 50., 27., 208., 56., 4., 176., 11., 31., 7., 0., 1., 10., 11., 78., 21., 95., 7., 41., 56., 8., 4., 1., 16., 9., 42., 10., 49., 7., 32., 10., 8., 5., 2., 0., 1., 0., 20., 6., 9., 4., 31., 10., 7., 3., 2., 1., 3., 0., 5., 2., 10., 3., 4., 7., 6., 1., 1., 6., 125., 12., 1767., 87., 94., 229., 92., 126., 74., 15., 12., 15., 19., 1., 2., 9., 2., 4., 8., 11., 30., 15., 29., 17., 35., 9., 12., 4., 6., 10., 5., 2., 5., 0., 8., 2., 0., 3., 8., 15., 3., 0., 9., 2., 2., 0., 6., 7., 8., 39., 6., 10., 2., 12., 2., 21., 4., 2., 8., 4., 26., 2., 30., 4., 5., 7., 7., 40., 3., 15., 5.,
15., 1., 1., 8., 25., 5., 36., 3., 9., 188., 8., 27., 203., 4., 16., 6., 1., 5., 67., 2., 30., 293., 55., 306., 32., 20., 2., 1., 6., 8., 43., 33., 233., 43., 11., 172., 9., 38., 11., 0., 2., 22., 8., 74., 14., 95., 12., 36., 37., 17., 3., 2., 27., 7., 35., 5., 38., 9., 28., 6., 9., 4., 4., 0., 1., 0., 22., 5., 11., 0., 48., 1., 5., 3., 0., 2., 2., 2., 2., 1., 15., 4., 13., 2., 15., 0., 1., 4., 136., 9., 1915., 79., 76., 225., 106., 104., 56., 30., 6., 18., 12., 0., 1., 8., 10., 3., 12., 7., 32., 26., 29., 12., 30., 5., 10., 5., 4., 6., 4., 1., 1., 4., 8., 5., 0., 4., 3., 22., 5., 0., 10., 6., 3., 0., 8., 3., 3., 32., 3., 17., 3., 7., 3., 19., 2., 3., 5., 4., 31., 6., 23., 7., 0., 9., 5., 25., 9., 13., 1.,
12., 1., 3., 12., 24., 2., 23., 0., 19., 140., 2., 23., 211., 7., 19., 2., 1., 4., 73., 1., 5., 309., 53., 316., 39., 18., 0., 1., 8., 8., 38., 29., 240., 30., 11., 151., 15., 43., 4., 0., 2., 13., 4., 66., 13., 103., 14., 38., 35., 4., 0., 0., 35., 8., 45., 12., 51., 14., 35., 8., 10., 7., 2., 0., 0., 0., 23., 6., 15., 1., 38., 5., 11., 5., 2., 3., 3., 0., 3., 1., 11., 3., 12., 0., 7., 0., 0., 6., 135., 12., 1918., 86., 98., 193., 95., 106., 83., 10., 11., 19., 10., 2., 5., 8., 5., 7., 9., 7., 35., 17., 24., 16., 45., 7., 9., 3., 8., 7., 6., 0., 3., 1., 11., 4., 0., 6., 4., 19., 2., 0., 10., 2., 1., 0., 2., 3., 2., 30., 4., 13., 1., 17., 2., 18., 6., 2., 6., 4., 27., 3., 31., 10., 4., 6., 4., 29., 5., 17., 2.,
15., 2., 0., 10., 27., 9., 40., 2., 21., 176., 4., 30., 208., 8., 15., 3., 0., 8., 70., 2., 12., 275., 39., 311., 43., 10., 0., 0., 7., 5., 43., 34., 268., 30., 11., 165., 18., 37., 5., 0., 0., 20., 9., 77., 21., 102., 14., 37., 46., 13., 2., 1., 24., 1., 42., 10., 46., 7., 32., 3., 8., 7., 4., 0., 0., 0., 25., 4., 23., 6., 19., 10., 10., 3., 2., 2., 0., 1., 1., 0., 11., 0., 12., 4., 9., 1., 1., 5., 150., 14., 1864., 90., 94., 231., 108., 103., 62., 16., 9., 18., 8., 0., 0., 3., 5., 4., 11., 7., 38., 24., 43., 19., 50., 10., 12., 4., 4., 6., 2., 5., 3., 8., 8., 1., 0., 5., 9., 15., 0., 0., 13., 4., 1., 0., 2., 5., 2., 38., 3., 20., 3., 14., 4., 24., 7., 4., 7., 6., 31., 2., 34., 5., 5., 10., 4., 25., 6., 12., 4.,
8., 3., 1., 9., 11., 4., 7., 2., 8., 29., 1., 2., 22., 3., 9., 5., 2., 2., 17., 8., 8., 23., 16., 33., 29., 6., 4., 0., 2., 3., 10., 4., 15., 17., 7., 16., 4., 17., 11., 5., 2., 7., 2., 6., 13., 23., 58., 9., 23., 6., 6., 4., 6., 0., 7., 4., 8., 5., 8., 20., 6., 21., 13., 4., 3., 2., 5., 2., 7., 1., 4., 6., 4., 4., 1., 2., 6., 3., 2., 6., 5., 0., 1., 1., 2., 6., 1., 2., 0., 2., 0., 1., 4., 3., 1., 14., 0., 0., 1., 3., 2., 1., 2., 0., 1., 2., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 1., 6., 5., 7., 0., 10., 14., 1., 15., 30., 1., 18., 2., 2., 1., 19., 3., 6., 18., 15., 15., 29., 5., 0., 2., 2., 1., 6., 9., 21., 21., 0., 23., 5., 11., 11., 2., 2., 4., 2., 6., 6., 21., 42., 11., 18., 4., 8., 1., 2., 6., 5., 1., 17., 11., 8., 22., 4., 20., 9., 2., 3., 2., 16., 2., 2., 1., 4., 4., 2., 6., 2., 2., 3., 3., 0., 2., 0., 0., 1., 1., 4., 9., 1., 0., 1., 2., 4., 2., 3., 2., 3., 3., 4., 0., 1., 1., 0., 2., 1., 4., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 5., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 9., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 2., 7., 2., 4., 6., 1., 7., 17., 2., 14., 14., 0., 20., 4., 2., 2., 24., 1., 4., 23., 14., 17., 24., 4., 1., 0., 3., 2., 8., 9., 23., 17., 4., 13., 3., 18., 7., 3., 2., 5., 0., 14., 8., 13., 39., 9., 26., 7., 3., 0., 4., 1., 8., 0., 9., 8., 4., 16., 7., 18., 10., 4., 1., 2., 0., 3., 2., 4., 6., 7., 6., 3., 1., 3., 1., 4., 0., 3., 1., 0., 3., 0., 3., 3., 2., 6., 3., 1., 5., 2., 2., 0., 2., 3., 3., 0., 1., 1., 1., 2., 3., 2., 1., 1., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 3., 2., 9., 9., 1., 7., 1., 5., 10., 0., 12., 11., 2., 12., 4., 1., 2., 3., 2., 4., 24., 14., 24., 25., 8., 1., 2., 2., 0., 12., 6., 24., 19., 4., 20., 7., 21., 8., 2., 1., 6., 1., 6., 18., 24., 64., 10., 16., 13., 1., 0., 7., 0., 10., 2., 7., 9., 6., 20., 6., 24., 6., 2., 1., 0., 4., 0., 3., 1., 6., 4., 6., 2., 1., 6., 1., 1., 2., 1., 3., 0., 4., 2., 2., 6., 0., 4., 1., 3., 2., 0., 2., 1., 2., 8., 1., 0., 0., 1., 1., 0., 1., 3., 3., 1., 6., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 3., 2., 9., 3., 6., 1., 6., 20., 3., 20., 36., 3., 24., 3., 1., 4., 16., 1., 6., 23., 9., 20., 23., 2., 2., 1., 3., 1., 6., 9., 33., 18., 11., 21., 1., 21., 6., 4., 0., 3., 3., 12., 9., 22., 44., 13., 25., 10., 7., 2., 2., 1., 5., 3., 3., 5., 7., 17., 4., 23., 15., 6., 3., 0., 7., 0., 3., 3., 3., 7., 2., 3., 2., 8., 1., 2., 1., 2., 1., 0., 2., 4., 2., 5., 2., 7., 0., 3., 2., 2., 1., 1., 2., 5., 2., 0., 0., 2., 2., 1., 2., 1., 1., 0., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 8., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 1., 7., 9., 6., 8., 0., 6., 28., 1., 12., 24., 1., 12., 6., 1., 2., 11., 0., 5., 18., 16., 13., 31., 7., 2., 2., 3., 4., 5., 4., 13., 18., 3., 15., 4., 12., 6., 3., 0., 1., 1., 10., 7., 18., 46., 13., 14., 4., 3., 0., 9., 2., 4., 5., 13., 5., 9., 16., 8., 13., 9., 4., 1., 0., 12., 0., 4., 4., 9., 0., 3., 3., 0., 2., 1., 1., 0., 0., 3., 0., 1., 0., 4., 9., 3., 6., 2., 2., 7., 1., 4., 0., 5., 3., 1., 0., 2., 7., 4., 2., 2., 0., 2., 0., 3., 0., 0., 0., 0., 5., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 4., 2., 4., 3., 2., 7., 12., 1., 15., 23., 0., 19., 7., 1., 5., 17., 3., 3., 21., 20., 10., 39., 6., 0., 0., 1., 2., 7., 3., 37., 23., 2., 6., 7., 20., 8., 1., 2., 4., 2., 5., 9., 12., 41., 13., 20., 11., 5., 3., 5., 2., 7., 1., 13., 4., 11., 20., 6., 24., 9., 3., 2., 2., 10., 1., 1., 3., 4., 0., 6., 1., 1., 3., 6., 3., 1., 1., 4., 0., 1., 1., 1., 5., 1., 8., 1., 0., 5., 2., 2., 1., 4., 7., 2., 0., 1., 1., 2., 0., 5., 4., 3., 0., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 7., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 0., 8., 3., 3., 3., 0., 4., 18., 1., 17., 23., 1., 10., 3., 3., 0., 14., 2., 7., 18., 14., 38., 24., 13., 3., 0., 5., 2., 7., 7., 46., 20., 3., 10., 4., 21., 16., 2., 1., 5., 0., 16., 8., 20., 52., 15., 28., 15., 4., 0., 5., 2., 10., 4., 12., 5., 7., 17., 8., 25., 10., 4., 1., 2., 11., 0., 3., 0., 2., 3., 7., 5., 2., 4., 4., 1., 4., 1., 3., 0., 6., 2., 2., 2., 0., 3., 1., 1., 2., 1., 1., 1., 3., 8., 1., 0., 1., 0., 3., 1., 3., 1., 4., 4., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 3., 5., 2., 6., 1., 5., 1., 6., 14., 0., 19., 26., 0., 14., 6., 0., 3., 29., 1., 6., 29., 12., 26., 20., 4., 0., 0., 2., 1., 12., 6., 33., 18., 3., 17., 4., 13., 5., 1., 1., 2., 3., 10., 10., 24., 42., 12., 23., 11., 4., 2., 4., 2., 7., 6., 11., 6., 9., 17., 7., 22., 10., 1., 1., 2., 9., 2., 2., 2., 5., 2., 1., 8., 2., 2., 3., 3., 0., 2., 3., 0., 1., 4., 4., 11., 4., 7., 2., 3., 7., 2., 2., 2., 4., 8., 3., 0., 3., 0., 0., 1., 4., 4., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 4., 5., 3., 2., 1., 6., 28., 2., 19., 21., 1., 13., 1., 1., 4., 22., 0., 6., 30., 13., 19., 28., 11., 1., 3., 1., 2., 8., 5., 23., 23., 2., 20., 3., 10., 6., 2., 1., 4., 0., 10., 8., 15., 51., 13., 15., 4., 3., 2., 3., 1., 10., 3., 8., 6., 13., 17., 7., 20., 8., 3., 0., 0., 8., 0., 5., 3., 5., 4., 2., 5., 0., 1., 4., 2., 1., 2., 1., 0., 4., 3., 2., 7., 3., 3., 3., 7., 7., 3., 4., 2., 2., 7., 2., 0., 0., 0., 5., 4., 0., 1., 3., 0., 3., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 4., 9., 3., 6., 0., 8., 28., 0., 15., 23., 1., 14., 1., 0., 2., 18., 3., 4., 15., 11., 27., 32., 8., 0., 3., 5., 3., 9., 8., 27., 18., 5., 13., 5., 11., 8., 1., 1., 4., 4., 15., 13., 10., 40., 7., 16., 7., 7., 3., 5., 1., 7., 3., 6., 8., 10., 14., 6., 21., 4., 5., 1., 1., 7., 0., 3., 0., 7., 1., 5., 0., 2., 5., 3., 4., 0., 2., 2., 0., 4., 0., 3., 6., 2., 3., 3., 0., 5., 1., 1., 1., 1., 7., 2., 0., 1., 2., 1., 0., 4., 2., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 3., 2., 0., 2., 9., 1., 7., 14., 0., 6., 29., 1., 16., 3., 0., 4., 15., 1., 1., 28., 10., 11., 27., 3., 0., 1., 2., 1., 10., 5., 27., 12., 1., 8., 2., 14., 12., 2., 1., 4., 1., 16., 11., 25., 51., 14., 24., 5., 4., 0., 5., 1., 6., 1., 5., 8., 9., 13., 7., 25., 5., 1., 1., 3., 8., 1., 0., 2., 6., 3., 12., 1., 3., 6., 3., 4., 0., 2., 1., 0., 1., 3., 1., 5., 1., 7., 3., 1., 5., 1., 0., 1., 1., 6., 0., 0., 1., 0., 2., 1., 3., 2., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 2., 9., 13., 1., 5., 1., 11., 27., 0., 9., 24., 2., 12., 1., 0., 1., 13., 2., 5., 18., 14., 25., 23., 10., 0., 0., 1., 3., 11., 12., 33., 13., 4., 16., 2., 6., 9., 2., 0., 3., 4., 6., 15., 21., 40., 9., 19., 11., 1., 1., 0., 3., 7., 4., 10., 6., 10., 14., 8., 27., 9., 2., 1., 2., 6., 0., 3., 4., 3., 1., 8., 4., 1., 4., 1., 2., 2., 3., 4., 0., 1., 2., 2., 4., 2., 3., 2., 8., 6., 0., 2., 1., 3., 8., 1., 0., 0., 2., 3., 0., 1., 0., 1., 3., 3., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 3., 4., 12., 1., 5., 1., 8., 27., 1., 6., 30., 4., 16., 4., 0., 1., 20., 1., 1., 34., 9., 26., 26., 1., 1., 0., 2., 0., 8., 4., 27., 19., 5., 15., 2., 14., 10., 3., 1., 4., 1., 6., 9., 17., 45., 15., 16., 9., 4., 1., 3., 4., 1., 3., 7., 7., 7., 14., 4., 22., 3., 2., 2., 2., 4., 3., 2., 3., 6., 7., 3., 9., 2., 3., 4., 2., 2., 1., 1., 0., 3., 1., 3., 3., 1., 7., 2., 4., 7., 3., 0., 0., 1., 7., 2., 0., 1., 1., 0., 2., 0., 0., 2., 2., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 1., 9., 10., 5., 3., 0., 5., 14., 0., 9., 24., 0., 15., 5., 3., 2., 9., 0., 8., 28., 17., 22., 37., 6., 1., 2., 3., 1., 8., 11., 22., 17., 6., 13., 2., 14., 7., 0., 2., 5., 2., 9., 10., 18., 52., 9., 17., 9., 5., 1., 5., 1., 11., 2., 14., 9., 13., 11., 11., 24., 9., 2., 0., 2., 12., 0., 1., 1., 6., 0., 1., 4., 0., 4., 2., 4., 0., 3., 2., 0., 1., 1., 4., 9., 3., 5., 3., 3., 5., 0., 3., 1., 2., 12., 1., 0., 2., 3., 2., 0., 3., 1., 3., 4., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 0., 2., 8., 11., 3., 4., 1., 11., 11., 0., 11., 19., 1., 12., 3., 1., 1., 16., 3., 5., 28., 11., 32., 32., 9., 0., 2., 1., 2., 9., 6., 19., 13., 1., 14., 2., 14., 9., 1., 2., 4., 3., 16., 6., 19., 54., 14., 11., 8., 7., 2., 6., 2., 9., 2., 12., 6., 9., 14., 4., 28., 14., 1., 0., 1., 10., 0., 1., 0., 1., 5., 3., 3., 1., 5., 3., 2., 2., 1., 1., 0., 4., 1., 0., 4., 1., 9., 3., 0., 3., 0., 2., 0., 2., 6., 3., 0., 2., 0., 2., 2., 2., 4., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 3., 7., 1., 9., 1., 4., 14., 1., 16., 22., 2., 7., 4., 1., 0., 15., 3., 4., 22., 18., 22., 19., 6., 0., 2., 3., 3., 12., 8., 16., 19., 4., 8., 4., 14., 14., 1., 1., 4., 4., 11., 18., 20., 37., 9., 24., 7., 3., 0., 6., 1., 6., 2., 8., 12., 6., 16., 5., 21., 11., 3., 0., 0., 6., 0., 4., 2., 2., 1., 4., 2., 1., 2., 3., 4., 1., 1., 1., 0., 2., 1., 2., 2., 4., 6., 0., 1., 3., 2., 2., 2., 1., 6., 0., 0., 1., 1., 1., 2., 1., 0., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 6., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 4., 11., 1., 3., 3., 6., 31., 1., 16., 20., 1., 12., 5., 1., 0., 17., 2., 6., 23., 17., 20., 23., 7., 1., 1., 3., 3., 2., 5., 34., 24., 2., 15., 4., 15., 5., 2., 1., 3., 3., 12., 18., 20., 59., 11., 20., 6., 1., 2., 4., 5., 4., 3., 8., 7., 10., 15., 7., 17., 6., 2., 3., 0., 8., 3., 2., 2., 4., 6., 3., 4., 3., 7., 3., 1., 2., 1., 1., 0., 1., 2., 2., 4., 2., 3., 2., 2., 2., 1., 2., 2., 4., 7., 1., 0., 6., 0., 1., 2., 2., 1., 3., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 1., 4., 2., 13., 2., 7., 1., 3., 18., 1., 8., 27., 2., 13., 4., 1., 4., 23., 2., 5., 17., 12., 31., 17., 6., 2., 3., 1., 3., 11., 4., 25., 15., 6., 14., 1., 13., 8., 3., 0., 5., 2., 9., 17., 14., 42., 13., 15., 9., 6., 1., 7., 1., 11., 2., 6., 8., 9., 16., 6., 23., 7., 4., 1., 1., 2., 1., 3., 0., 4., 3., 1., 5., 0., 6., 3., 0., 1., 2., 3., 0., 1., 4., 3., 7., 3., 5., 2., 2., 1., 0., 2., 0., 4., 6., 6., 0., 2., 1., 2., 4., 1., 5., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 1., 12., 5., 9., 0., 5., 34., 3., 14., 20., 1., 19., 1., 1., 2., 10., 3., 4., 12., 15., 27., 24., 4., 1., 0., 3., 3., 5., 5., 28., 23., 4., 8., 4., 9., 14., 1., 0., 4., 2., 14., 9., 14., 58., 17., 27., 6., 4., 1., 6., 2., 3., 4., 4., 5., 6., 14., 3., 18., 7., 7., 0., 0., 7., 0., 0., 1., 3., 1., 3., 4., 0., 2., 3., 2., 6., 5., 1., 0., 1., 0., 6., 6., 2., 4., 4., 0., 5., 0., 3., 1., 3., 8., 2., 0., 0., 1., 2., 2., 2., 3., 1., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 2., 3., 10., 2., 3., 2., 7., 14., 0., 15., 32., 2., 8., 2., 1., 2., 13., 3., 5., 24., 7., 31., 22., 5., 1., 0., 1., 2., 4., 3., 31., 19., 2., 17., 4., 14., 5., 1., 1., 2., 1., 9., 12., 16., 43., 13., 28., 7., 6., 1., 7., 1., 8., 0., 7., 2., 11., 12., 5., 20., 8., 3., 0., 1., 11., 0., 3., 1., 5., 3., 5., 6., 2., 4., 1., 5., 1., 2., 2., 0., 1., 1., 1., 5., 3., 3., 1., 1., 4., 1., 1., 1., 3., 9., 1., 0., 2., 1., 3., 1., 2., 1., 3., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 3., 2., 9., 1., 4., 3., 6., 17., 0., 9., 24., 1., 12., 2., 0., 2., 16., 2., 5., 24., 7., 34., 27., 9., 1., 1., 4., 4., 4., 3., 34., 11., 3., 12., 5., 11., 6., 1., 1., 4., 0., 14., 14., 21., 47., 15., 17., 8., 3., 0., 2., 1., 12., 5., 14., 5., 9., 16., 4., 15., 12., 2., 6., 0., 11., 0., 2., 2., 3., 5., 5., 3., 3., 8., 1., 2., 0., 2., 0., 0., 1., 4., 3., 3., 3., 2., 2., 0., 0., 0., 4., 3., 2., 5., 2., 0., 2., 2., 1., 2., 1., 2., 2., 1., 3., 0., 0., 0., 0., 5., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 3., 9., 0., 14., 0., 8., 44., 1., 11., 66., 0., 5., 0., 0., 0., 74., 8., 10., 87., 15., 75., 11., 1., 0., 1., 7., 2., 10., 7., 46., 11., 3., 35., 22., 10., 5., 0., 2., 6., 2., 20., 6., 27., 6., 18., 1., 2., 3., 0., 13., 7., 15., 4., 10., 4., 4., 4., 6., 33., 12., 4., 2., 0., 9., 2., 12., 3., 14., 2., 3., 1., 1., 1., 0., 7., 2., 11., 9., 5., 2., 0., 1., 0., 0., 0., 0., 0., 10., 1., 2., 2., 4., 0., 2., 0., 1., 0., 0., 0., 0., 4., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 6., 4., 2., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 29., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 3., 5., 2., 0., 18., 0., 10., 32., 1., 7., 43., 0., 7., 2., 0., 2., 69., 11., 7., 72., 16., 70., 12., 5., 0., 2., 1., 1., 13., 9., 48., 13., 4., 47., 30., 17., 4., 0., 2., 10., 3., 26., 8., 29., 10., 7., 10., 3., 1., 0., 17., 4., 19., 7., 16., 6., 11., 2., 2., 40., 6., 7., 2., 0., 14., 4., 8., 2., 10., 2., 2., 2., 1., 0., 0., 5., 5., 16., 10., 3., 9., 0., 2., 0., 0., 0., 0., 0., 9., 2., 3., 1., 5., 2., 2., 0., 0., 0., 0., 0., 2., 2., 2., 0., 4., 0., 0., 0., 2., 0., 0., 0., 0., 0., 2., 2., 1., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 26., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 3., 6., 4., 17., 0., 12., 1., 12., 41., 1., 4., 52., 0., 7., 0., 0., 0., 76., 10., 4., 84., 14., 67., 17., 5., 0., 1., 0., 2., 10., 6., 55., 5., 2., 40., 31., 13., 9., 0., 0., 7., 2., 20., 3., 15., 10., 11., 10., 1., 2., 0., 11., 5., 13., 5., 18., 4., 5., 2., 1., 38., 13., 5., 1., 0., 11., 4., 10., 3., 15., 2., 5., 3., 2., 0., 0., 2., 2., 12., 5., 5., 1., 2., 2., 0., 0., 0., 0., 0., 10., 2., 1., 2., 6., 1., 1., 0., 1., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 7., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 17., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 3., 10., 0., 8., 2., 6., 49., 0., 9., 63., 2., 4., 2., 0., 2., 55., 14., 7., 79., 20., 83., 10., 4., 0., 1., 2., 0., 14., 10., 47., 20., 4., 37., 28., 19., 7., 0., 0., 10., 3., 28., 5., 20., 3., 13., 3., 4., 1., 0., 7., 4., 16., 5., 13., 2., 5., 3., 3., 38., 11., 6., 3., 0., 17., 1., 8., 5., 8., 6., 7., 1., 0., 1., 0., 5., 2., 14., 6., 1., 3., 1., 5., 0., 0., 0., 0., 0., 13., 2., 1., 1., 1., 0., 1., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 7., 1., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 25., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
22., 2., 5., 9., 21., 7., 43., 0., 13., 154., 3., 26., 221., 5., 13., 12., 0., 3., 89., 1., 16., 297., 37., 341., 48., 24., 1., 1., 6., 5., 33., 29., 218., 43., 9., 143., 11., 33., 5., 0., 3., 15., 7., 76., 8., 105., 19., 34., 46., 14., 1., 1., 25., 5., 44., 9., 52., 15., 27., 8., 7., 4., 1., 0., 2., 0., 24., 6., 11., 1., 30., 7., 11., 5., 1., 3., 0., 0., 5., 0., 6., 1., 5., 3., 2., 2., 3., 5., 135., 3., 1894., 88., 115., 204., 100., 103., 70., 16., 11., 17., 20., 1., 2., 11., 5., 5., 9., 11., 28., 18., 36., 22., 58., 6., 11., 7., 8., 6., 5., 2., 2., 1., 4., 3., 0., 3., 2., 23., 2., 0., 11., 4., 4., 0., 2., 5., 4., 31., 2., 10., 2., 14., 3., 20., 5., 1., 3., 5., 32., 2., 19., 6., 4., 11., 9., 29., 11., 17., 2.,
23., 1., 1., 4., 22., 5., 35., 4., 17., 150., 2., 31., 210., 6., 20., 7., 0., 6., 67., 2., 11., 312., 55., 347., 38., 14., 2., 2., 10., 2., 38., 30., 247., 40., 6., 154., 16., 33., 4., 0., 3., 16., 9., 94., 25., 80., 14., 28., 42., 10., 8., 0., 31., 7., 44., 7., 50., 13., 33., 7., 7., 5., 3., 0., 0., 0., 28., 5., 12., 2., 27., 2., 12., 3., 0., 5., 2., 1., 3., 3., 5., 3., 8., 1., 8., 3., 2., 4., 141., 6., 1836., 91., 90., 206., 103., 122., 60., 10., 11., 14., 14., 1., 1., 7., 4., 0., 11., 7., 34., 13., 32., 16., 48., 10., 9., 2., 5., 7., 7., 1., 0., 2., 6., 3., 0., 1., 6., 11., 2., 0., 16., 1., 8., 0., 7., 1., 4., 31., 3., 9., 3., 6., 7., 23., 4., 2., 3., 5., 32., 3., 29., 6., 4., 9., 7., 25., 8., 18., 4.,
15., 0., 1., 7., 22., 8., 38., 1., 13., 154., 6., 27., 201., 6., 12., 8., 1., 4., 76., 1., 17., 283., 60., 295., 37., 19., 2., 3., 10., 3., 42., 34., 226., 45., 9., 168., 8., 39., 7., 0., 2., 14., 4., 79., 19., 82., 16., 27., 45., 12., 3., 1., 26., 2., 43., 10., 45., 4., 32., 7., 12., 9., 1., 0., 0., 0., 28., 6., 9., 4., 30., 4., 14., 4., 2., 3., 1., 0., 6., 1., 12., 4., 8., 1., 5., 0., 2., 1., 149., 12., 1826., 86., 119., 223., 103., 111., 87., 16., 9., 8., 13., 1., 2., 8., 4., 3., 14., 13., 34., 16., 23., 18., 39., 4., 9., 5., 3., 10., 6., 1., 2., 0., 7., 3., 0., 6., 4., 14., 3., 0., 10., 7., 3., 0., 1., 1., 2., 32., 1., 12., 4., 18., 1., 19., 3., 2., 4., 6., 17., 5., 31., 7., 8., 5., 5., 35., 7., 16., 0.,
19., 5., 3., 10., 30., 8., 30., 0., 13., 149., 2., 30., 188., 8., 22., 6., 1., 3., 63., 0., 16., 259., 51., 325., 48., 25., 2., 2., 8., 6., 42., 43., 222., 34., 4., 160., 14., 39., 4., 0., 1., 9., 4., 84., 25., 96., 13., 34., 47., 10., 3., 1., 24., 8., 51., 14., 47., 6., 34., 5., 13., 3., 2., 0., 2., 0., 19., 10., 9., 3., 39., 3., 11., 6., 3., 4., 0., 0., 2., 3., 8., 1., 6., 2., 5., 0., 1., 6., 137., 7., 1888., 87., 91., 231., 90., 112., 84., 29., 8., 21., 13., 3., 1., 5., 6., 3., 8., 9., 40., 13., 28., 18., 40., 11., 11., 2., 6., 8., 9., 1., 8., 5., 13., 6., 0., 5., 4., 17., 1., 0., 10., 4., 5., 0., 6., 2., 4., 35., 3., 13., 1., 17., 1., 18., 4., 2., 6., 5., 31., 3., 23., 3., 5., 7., 3., 28., 7., 16., 4.,
15., 2., 1., 11., 22., 6., 32., 0., 12., 144., 1., 22., 216., 4., 24., 8., 1., 3., 91., 1., 10., 310., 42., 325., 34., 24., 0., 4., 8., 3., 41., 32., 242., 47., 11., 162., 20., 39., 3., 0., 1., 10., 16., 81., 18., 82., 17., 37., 57., 11., 2., 3., 17., 4., 64., 5., 41., 11., 21., 5., 12., 4., 1., 0., 1., 0., 31., 4., 16., 2., 26., 5., 12., 6., 5., 3., 1., 0., 1., 4., 5., 1., 5., 2., 12., 0., 2., 6., 158., 10., 1888., 81., 98., 213., 101., 127., 68., 20., 9., 16., 14., 0., 1., 13., 3., 3., 12., 6., 32., 14., 33., 14., 45., 5., 12., 5., 7., 5., 4., 1., 4., 5., 13., 5., 0., 4., 5., 16., 2., 0., 8., 4., 1., 0., 6., 3., 5., 30., 2., 9., 1., 13., 2., 18., 1., 4., 7., 6., 27., 8., 33., 7., 4., 3., 4., 27., 4., 9., 2.,
14., 2., 3., 8., 6., 3., 8., 1., 5., 2., 1., 16., 22., 2., 13., 2., 1., 0., 20., 0., 3., 21., 9., 30., 27., 4., 0., 0., 1., 2., 7., 8., 14., 22., 0., 13., 2., 23., 8., 2., 1., 2., 3., 11., 16., 13., 51., 14., 24., 6., 5., 1., 4., 1., 6., 6., 10., 6., 6., 16., 2., 18., 5., 3., 0., 0., 8., 0., 4., 3., 6., 7., 3., 7., 1., 3., 1., 1., 1., 2., 0., 0., 2., 1., 1., 4., 2., 3., 0., 3., 3., 2., 1., 0., 3., 8., 0., 0., 2., 1., 2., 3., 1., 4., 0., 2., 7., 0., 0., 0., 0., 5., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 4., 10., 1., 5., 2., 4., 16., 0., 12., 36., 3., 17., 2., 4., 3., 25., 2., 1., 12., 8., 17., 25., 9., 0., 3., 6., 2., 8., 5., 30., 13., 2., 17., 0., 15., 9., 1., 2., 3., 2., 14., 20., 21., 46., 13., 16., 7., 1., 2., 4., 0., 8., 7., 13., 6., 13., 14., 1., 20., 10., 3., 1., 0., 2., 2., 2., 2., 7., 3., 4., 2., 1., 6., 1., 1., 1., 0., 1., 0., 3., 5., 0., 6., 2., 2., 4., 1., 5., 3., 4., 2., 4., 9., 3., 0., 1., 0., 2., 8., 2., 1., 2., 3., 0., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 6., 6., 6., 4., 1., 4., 19., 0., 14., 22., 1., 21., 2., 2., 1., 26., 1., 5., 16., 16., 28., 25., 4., 0., 2., 3., 1., 9., 12., 18., 18., 7., 22., 6., 12., 7., 1., 1., 2., 1., 8., 9., 16., 49., 11., 19., 7., 6., 2., 3., 3., 11., 4., 9., 6., 6., 11., 10., 25., 9., 3., 2., 0., 7., 1., 2., 1., 6., 1., 4., 5., 1., 4., 5., 2., 0., 1., 2., 0., 0., 1., 0., 3., 3., 3., 2., 0., 2., 1., 1., 4., 1., 9., 2., 0., 1., 4., 3., 0., 2., 3., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 2., 5., 3., 8., 0., 9., 16., 1., 14., 14., 3., 21., 8., 0., 0., 17., 3., 4., 19., 9., 27., 25., 6., 2., 1., 2., 0., 8., 8., 22., 11., 3., 12., 2., 17., 5., 3., 1., 3., 0., 17., 14., 17., 43., 16., 15., 11., 2., 0., 3., 2., 7., 2., 10., 4., 7., 14., 6., 22., 5., 3., 0., 3., 6., 0., 3., 2., 3., 5., 3., 5., 4., 1., 4., 2., 0., 0., 3., 0., 2., 9., 0., 9., 3., 1., 0., 0., 4., 1., 2., 0., 2., 4., 3., 0., 1., 0., 2., 2., 2., 5., 1., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 8., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 4., 7., 1., 8., 0., 6., 22., 0., 12., 28., 2., 10., 5., 2., 0., 13., 0., 7., 15., 13., 25., 22., 10., 1., 0., 1., 3., 5., 7., 23., 16., 5., 9., 1., 14., 7., 3., 2., 8., 2., 14., 13., 25., 41., 17., 16., 12., 4., 1., 2., 3., 8., 2., 10., 9., 2., 18., 7., 33., 8., 3., 3., 1., 10., 2., 3., 2., 7., 4., 1., 5., 1., 3., 2., 3., 2., 0., 7., 0., 2., 3., 2., 7., 3., 5., 1., 4., 6., 0., 0., 1., 3., 8., 4., 0., 1., 2., 2., 0., 0., 1., 0., 0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 3., 2., 15., 4., 8., 0., 5., 22., 1., 15., 12., 0., 10., 3., 5., 4., 16., 1., 2., 13., 13., 33., 34., 4., 0., 0., 4., 1., 17., 11., 23., 16., 5., 15., 3., 13., 16., 1., 0., 2., 0., 11., 10., 9., 43., 13., 28., 9., 3., 1., 3., 2., 5., 4., 12., 5., 6., 20., 5., 23., 11., 6., 1., 2., 5., 3., 0., 0., 4., 3., 4., 5., 2., 4., 1., 3., 1., 0., 2., 0., 1., 1., 1., 6., 3., 4., 2., 2., 5., 2., 2., 1., 5., 7., 3., 0., 5., 3., 4., 2., 0., 2., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 4., 2., 6., 2., 5., 2., 3., 34., 0., 12., 28., 0., 19., 1., 1., 3., 20., 2., 7., 14., 13., 21., 40., 5., 2., 3., 6., 3., 5., 8., 33., 25., 4., 16., 1., 19., 8., 2., 0., 2., 1., 13., 13., 9., 45., 13., 15., 6., 0., 2., 8., 2., 4., 0., 8., 6., 15., 10., 6., 28., 4., 4., 2., 2., 3., 2., 5., 2., 6., 2., 3., 4., 2., 2., 3., 1., 2., 5., 4., 0., 2., 0., 2., 4., 4., 2., 3., 4., 5., 2., 1., 0., 4., 8., 0., 0., 2., 3., 2., 2., 1., 3., 3., 1., 4., 0., 0., 0., 0., 5., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 0., 4., 7., 6., 2., 5., 2., 5., 16., 1., 9., 25., 0., 22., 4., 0., 2., 28., 1., 1., 29., 9., 31., 21., 8., 1., 1., 3., 0., 11., 4., 25., 15., 4., 12., 6., 18., 8., 2., 1., 1., 4., 10., 10., 17., 42., 13., 18., 16., 2., 1., 2., 1., 5., 4., 9., 3., 11., 18., 10., 25., 10., 0., 1., 2., 9., 1., 6., 1., 2., 5., 7., 4., 2., 2., 4., 3., 1., 0., 2., 0., 1., 0., 4., 10., 3., 4., 5., 1., 5., 1., 2., 0., 2., 3., 2., 0., 1., 7., 3., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 4., 3., 4., 3., 1., 9., 0., 8., 16., 0., 15., 20., 0., 20., 3., 0., 3., 14., 0., 5., 32., 10., 22., 25., 7., 1., 0., 4., 2., 14., 6., 21., 17., 6., 15., 5., 14., 11., 0., 1., 7., 3., 8., 11., 16., 53., 8., 18., 13., 4., 1., 5., 4., 7., 4., 3., 3., 7., 14., 4., 27., 5., 4., 1., 0., 5., 2., 4., 3., 2., 3., 2., 1., 1., 2., 0., 3., 0., 2., 0., 0., 2., 3., 1., 8., 1., 2., 0., 3., 1., 0., 2., 1., 1., 7., 4., 0., 2., 1., 2., 1., 3., 0., 1., 1., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 7., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 0., 6., 10., 2., 6., 2., 3., 27., 1., 14., 11., 0., 17., 4., 1., 4., 12., 0., 5., 20., 13., 31., 20., 3., 0., 0., 5., 1., 10., 8., 11., 19., 0., 9., 4., 15., 9., 1., 1., 5., 6., 6., 13., 15., 35., 16., 17., 7., 4., 2., 3., 5., 6., 3., 7., 2., 7., 17., 3., 18., 6., 2., 1., 1., 4., 0., 5., 3., 2., 1., 5., 6., 3., 3., 3., 2., 4., 1., 2., 0., 2., 4., 3., 7., 1., 1., 2., 2., 6., 2., 5., 0., 3., 13., 2., 0., 2., 0., 2., 1., 4., 1., 3., 1., 4., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 6., 11., 2., 4., 0., 5., 11., 2., 13., 25., 1., 12., 4., 3., 1., 13., 3., 4., 34., 14., 32., 29., 13., 1., 0., 2., 3., 9., 10., 28., 13., 2., 14., 3., 8., 5., 2., 1., 4., 2., 11., 15., 20., 37., 14., 24., 14., 3., 2., 1., 3., 10., 1., 7., 5., 9., 14., 8., 18., 8., 1., 0., 1., 8., 0., 2., 2., 5., 2., 5., 2., 4., 3., 1., 0., 0., 1., 2., 0., 3., 9., 1., 2., 0., 4., 2., 1., 5., 1., 3., 4., 1., 12., 3., 0., 4., 3., 2., 2., 1., 1., 1., 0., 3., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 0., 1., 3., 1., 7., 0., 5., 28., 2., 17., 18., 1., 12., 3., 2., 2., 24., 7., 2., 23., 6., 27., 24., 5., 0., 1., 0., 2., 8., 12., 17., 10., 1., 9., 6., 10., 7., 3., 1., 3., 2., 9., 13., 13., 41., 7., 23., 9., 6., 1., 8., 3., 12., 2., 7., 8., 6., 12., 2., 16., 14., 4., 1., 0., 8., 1., 3., 1., 7., 5., 3., 8., 4., 2., 3., 0., 0., 3., 3., 0., 4., 3., 1., 6., 2., 7., 4., 3., 1., 0., 4., 0., 3., 6., 3., 0., 3., 3., 2., 2., 1., 2., 3., 2., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 0., 2., 1., 5., 5., 10., 0., 5., 17., 1., 8., 14., 0., 25., 3., 0., 4., 10., 0., 5., 29., 12., 27., 21., 6., 0., 0., 4., 2., 6., 3., 21., 21., 2., 22., 2., 16., 7., 2., 1., 3., 2., 12., 14., 16., 37., 14., 20., 8., 5., 1., 3., 2., 7., 2., 13., 4., 13., 10., 7., 20., 10., 1., 0., 0., 4., 2., 3., 0., 3., 5., 1., 6., 8., 5., 3., 1., 1., 1., 2., 0., 1., 0., 3., 6., 0., 8., 1., 1., 5., 0., 5., 2., 3., 4., 0., 0., 6., 1., 1., 2., 1., 2., 3., 0., 3., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 3., 9., 2., 5., 0., 3., 15., 2., 9., 13., 0., 9., 1., 0., 2., 19., 4., 1., 27., 10., 28., 28., 8., 0., 2., 5., 1., 4., 6., 28., 10., 2., 12., 3., 11., 13., 4., 1., 1., 4., 13., 7., 15., 43., 12., 25., 10., 1., 2., 8., 4., 5., 2., 11., 9., 8., 17., 7., 29., 5., 4., 3., 0., 6., 0., 1., 3., 8., 0., 4., 4., 1., 6., 4., 2., 1., 3., 0., 0., 4., 3., 1., 6., 1., 5., 4., 0., 2., 2., 0., 2., 3., 7., 3., 0., 2., 3., 1., 2., 3., 1., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 1., 8., 4., 8., 1., 7., 24., 3., 9., 23., 0., 16., 2., 0., 1., 10., 3., 5., 37., 12., 24., 19., 5., 0., 2., 1., 2., 7., 9., 22., 18., 3., 14., 1., 15., 9., 1., 3., 1., 2., 10., 9., 15., 41., 10., 29., 9., 6., 2., 5., 2., 6., 3., 13., 8., 12., 15., 11., 18., 8., 4., 0., 0., 11., 0., 7., 1., 7., 4., 3., 4., 2., 4., 6., 2., 1., 1., 3., 0., 1., 2., 3., 3., 2., 3., 5., 2., 6., 1., 0., 2., 2., 1., 1., 0., 1., 2., 2., 2., 3., 3., 3., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 3., 12., 6., 3., 1., 5., 11., 0., 16., 25., 1., 14., 2., 0., 5., 21., 0., 6., 27., 16., 26., 35., 6., 1., 1., 7., 0., 9., 9., 21., 14., 2., 10., 3., 15., 13., 1., 1., 3., 2., 10., 10., 17., 41., 11., 15., 11., 4., 1., 7., 3., 12., 3., 16., 11., 10., 15., 6., 23., 5., 4., 2., 1., 5., 0., 1., 2., 4., 4., 3., 0., 3., 3., 2., 1., 0., 2., 5., 0., 4., 4., 0., 10., 2., 3., 4., 1., 2., 1., 2., 2., 4., 9., 1., 0., 2., 1., 1., 4., 2., 4., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 5., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 2., 5., 1., 0., 7., 2., 4., 31., 0., 21., 25., 0., 10., 0., 0., 0., 15., 4., 6., 23., 10., 15., 25., 7., 0., 1., 5., 1., 15., 4., 32., 16., 1., 16., 2., 16., 8., 3., 0., 3., 3., 13., 21., 15., 50., 8., 21., 10., 6., 3., 10., 3., 8., 5., 9., 5., 6., 18., 6., 27., 2., 1., 0., 4., 5., 1., 3., 2., 6., 1., 3., 6., 3., 2., 1., 1., 2., 3., 0., 0., 1., 2., 1., 10., 0., 2., 3., 2., 4., 1., 1., 1., 2., 2., 1., 0., 0., 0., 2., 3., 3., 1., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 2., 11., 2., 4., 2., 4., 14., 3., 3., 23., 0., 17., 3., 0., 4., 20., 2., 4., 21., 10., 21., 30., 8., 3., 0., 3., 2., 8., 6., 25., 14., 3., 22., 4., 8., 12., 0., 1., 4., 0., 11., 10., 19., 51., 14., 14., 20., 6., 0., 3., 2., 5., 4., 6., 2., 9., 16., 4., 21., 5., 2., 2., 2., 7., 0., 3., 1., 2., 0., 4., 8., 2., 1., 1., 2., 0., 2., 2., 0., 4., 0., 3., 13., 2., 3., 1., 5., 5., 2., 2., 1., 0., 7., 1., 0., 2., 0., 2., 0., 0., 2., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 3., 7., 1., 7., 1., 8., 19., 1., 13., 26., 1., 21., 2., 0., 1., 26., 3., 5., 27., 8., 18., 25., 5., 1., 0., 3., 3., 8., 9., 23., 15., 2., 14., 7., 19., 7., 3., 2., 5., 2., 17., 13., 15., 47., 13., 29., 11., 5., 0., 5., 4., 7., 5., 5., 6., 2., 18., 10., 16., 6., 7., 0., 1., 9., 0., 5., 2., 4., 3., 3., 4., 6., 4., 2., 1., 0., 5., 4., 0., 0., 0., 3., 6., 2., 4., 2., 3., 1., 1., 2., 0., 0., 6., 3., 0., 1., 1., 2., 1., 2., 1., 1., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 1., 8., 0., 8., 1., 5., 26., 0., 19., 13., 2., 21., 4., 4., 0., 11., 1., 5., 12., 7., 28., 24., 7., 2., 1., 4., 1., 6., 4., 25., 12., 3., 15., 4., 12., 5., 0., 0., 3., 4., 15., 13., 15., 49., 8., 18., 10., 4., 3., 6., 0., 6., 0., 6., 4., 8., 20., 6., 33., 6., 4., 2., 1., 8., 0., 1., 1., 7., 3., 4., 2., 2., 1., 4., 3., 1., 1., 3., 0., 1., 1., 1., 5., 2., 8., 2., 1., 6., 2., 3., 1., 3., 2., 2., 0., 0., 4., 2., 1., 1., 1., 4., 1., 1., 0., 0., 0., 0., 5., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 2., 5., 6., 5., 5., 1., 6., 28., 1., 10., 24., 0., 20., 3., 3., 3., 17., 4., 0., 10., 18., 27., 27., 5., 0., 1., 0., 1., 8., 6., 14., 21., 4., 20., 5., 12., 13., 2., 2., 5., 2., 13., 10., 19., 35., 9., 14., 6., 5., 2., 7., 2., 7., 2., 8., 10., 7., 17., 4., 25., 9., 3., 0., 1., 7., 2., 5., 3., 3., 7., 1., 5., 3., 9., 2., 0., 1., 2., 4., 0., 2., 4., 1., 6., 4., 0., 0., 4., 12., 2., 2., 0., 1., 13., 3., 0., 1., 2., 4., 1., 4., 5., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 6., 4., 6., 7., 4., 8., 17., 3., 11., 16., 2., 8., 2., 3., 1., 14., 0., 6., 25., 14., 30., 32., 10., 2., 2., 1., 0., 12., 7., 16., 10., 4., 23., 6., 15., 9., 0., 1., 3., 1., 13., 14., 15., 49., 18., 19., 10., 1., 2., 6., 2., 11., 3., 9., 7., 14., 13., 7., 21., 8., 7., 2., 1., 6., 1., 5., 2., 5., 0., 3., 3., 7., 2., 3., 0., 2., 2., 3., 0., 2., 2., 1., 6., 1., 7., 3., 0., 2., 3., 2., 0., 0., 8., 3., 0., 1., 0., 3., 3., 1., 3., 2., 3., 5., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 5., 12., 0., 19., 0., 3., 43., 2., 10., 59., 1., 10., 3., 0., 3., 46., 6., 6., 66., 15., 90., 18., 2., 0., 0., 1., 0., 11., 11., 37., 14., 1., 37., 35., 11., 4., 0., 0., 9., 3., 22., 9., 33., 9., 11., 7., 6., 2., 0., 11., 5., 15., 6., 9., 3., 6., 6., 2., 47., 9., 5., 4., 0., 18., 3., 7., 3., 13., 2., 5., 0., 1., 3., 0., 3., 1., 10., 6., 3., 2., 1., 3., 0., 0., 0., 0., 0., 8., 1., 4., 4., 4., 0., 2., 0., 2., 0., 0., 0., 0., 3., 3., 0., 2., 0., 2., 0., 2., 0., 0., 0., 0., 0., 4., 3., 3., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 25., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 1., 5., 7., 0., 18., 4., 6., 32., 0., 6., 82., 1., 8., 5., 0., 1., 45., 10., 8., 77., 11., 81., 18., 1., 0., 2., 5., 3., 3., 10., 44., 22., 2., 46., 32., 15., 6., 0., 2., 3., 3., 17., 8., 10., 11., 18., 5., 2., 3., 0., 11., 4., 8., 3., 15., 3., 9., 6., 2., 35., 8., 4., 0., 0., 6., 0., 8., 0., 8., 2., 8., 2., 0., 2., 0., 6., 4., 9., 9., 1., 6., 1., 2., 0., 0., 0., 0., 0., 10., 0., 3., 4., 2., 1., 2., 0., 1., 0., 1., 0., 2., 4., 4., 0., 3., 0., 0., 0., 1., 0., 0., 0., 1., 0., 1., 3., 2., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 18., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 2., 12., 0., 13., 3., 6., 65., 2., 7., 48., 1., 3., 2., 0., 5., 93., 8., 7., 69., 19., 85., 12., 2., 0., 1., 4., 1., 10., 7., 59., 15., 1., 35., 29., 16., 2., 0., 1., 7., 4., 31., 6., 21., 7., 12., 1., 3., 2., 0., 7., 1., 20., 4., 20., 3., 9., 1., 2., 41., 7., 3., 3., 0., 13., 3., 3., 4., 8., 1., 2., 1., 1., 2., 0., 3., 1., 13., 12., 5., 5., 2., 4., 0., 0., 0., 0., 0., 16., 3., 2., 5., 2., 0., 1., 0., 0., 0., 1., 0., 1., 5., 2., 0., 3., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 2., 3., 0., 0., 0., 4., 0., 5., 0., 0., 0., 0., 28., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 4., 3., 5., 18., 0., 17., 3., 6., 62., 1., 11., 66., 2., 5., 1., 0., 2., 73., 11., 9., 70., 9., 99., 12., 4., 0., 2., 2., 3., 6., 9., 58., 14., 3., 32., 38., 16., 8., 0., 1., 7., 3., 17., 7., 26., 9., 12., 6., 1., 2., 0., 13., 4., 13., 5., 25., 1., 6., 5., 0., 32., 4., 5., 3., 0., 11., 2., 11., 2., 8., 1., 1., 1., 2., 2., 0., 6., 1., 15., 14., 4., 1., 1., 1., 0., 0., 0., 0., 0., 13., 2., 1., 5., 2., 0., 0., 0., 3., 0., 1., 0., 2., 5., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 3., 3., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 21., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 2., 1., 14., 0., 19., 1., 8., 44., 1., 7., 65., 0., 5., 0., 0., 0., 52., 5., 15., 84., 19., 79., 6., 2., 0., 2., 4., 3., 17., 9., 49., 12., 1., 39., 35., 18., 10., 0., 0., 1., 3., 25., 7., 18., 5., 14., 8., 3., 3., 0., 12., 3., 11., 2., 10., 4., 6., 3., 2., 38., 8., 10., 4., 0., 17., 2., 11., 1., 11., 3., 5., 0., 3., 2., 0., 6., 0., 15., 5., 3., 2., 1., 4., 0., 0., 0., 0., 0., 14., 1., 2., 1., 1., 1., 0., 0., 1., 0., 1., 0., 0., 0., 2., 0., 5., 0., 1., 0., 1., 0., 0., 0., 2., 0., 0., 1., 1., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 22., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 1., 4., 8., 23., 6., 33., 3., 19., 167., 5., 31., 198., 6., 18., 8., 0., 5., 83., 1., 20., 289., 51., 305., 42., 11., 0., 2., 7., 6., 47., 30., 245., 45., 5., 162., 13., 40., 6., 0., 1., 24., 11., 91., 30., 72., 12., 28., 41., 13., 1., 1., 23., 12., 40., 8., 52., 14., 26., 7., 6., 11., 1., 0., 3., 0., 28., 3., 14., 4., 22., 4., 10., 8., 2., 3., 3., 1., 0., 0., 9., 4., 5., 2., 7., 2., 2., 7., 137., 5., 1855., 78., 90., 230., 97., 139., 65., 9., 9., 13., 7., 2., 1., 6., 6., 4., 10., 7., 40., 20., 38., 15., 37., 8., 15., 6., 2., 3., 4., 1., 0., 6., 14., 4., 0., 2., 5., 10., 3., 0., 8., 4., 3., 0., 9., 1., 2., 21., 4., 9., 2., 12., 5., 22., 2., 0., 4., 10., 24., 7., 26., 3., 5., 7., 6., 34., 4., 18., 8.,
15., 3., 2., 12., 23., 4., 20., 1., 16., 161., 3., 29., 197., 1., 17., 9., 2., 6., 97., 3., 15., 305., 40., 292., 29., 19., 0., 2., 8., 5., 47., 38., 214., 44., 6., 130., 11., 47., 7., 0., 2., 17., 9., 80., 21., 81., 12., 48., 65., 8., 2., 3., 27., 2., 39., 18., 51., 9., 36., 6., 8., 8., 4., 0., 1., 0., 40., 3., 10., 3., 27., 9., 4., 5., 3., 4., 4., 0., 3., 2., 18., 3., 7., 1., 7., 0., 2., 4., 133., 5., 1924., 91., 99., 247., 96., 117., 70., 13., 6., 18., 15., 1., 5., 7., 3., 4., 18., 8., 32., 11., 46., 15., 33., 6., 7., 4., 6., 8., 3., 3., 1., 2., 5., 2., 0., 4., 4., 11., 1., 0., 6., 3., 5., 0., 5., 2., 3., 33., 2., 14., 4., 11., 3., 30., 4., 4., 1., 5., 31., 7., 27., 8., 6., 6., 9., 41., 5., 9., 6.,
12., 1., 1., 7., 21., 9., 32., 2., 22., 174., 4., 27., 262., 9., 11., 4., 0., 5., 65., 0., 15., 271., 41., 329., 42., 16., 0., 0., 8., 4., 41., 29., 238., 50., 9., 165., 16., 45., 6., 0., 3., 21., 8., 69., 12., 83., 18., 35., 40., 11., 1., 2., 28., 11., 32., 11., 41., 13., 22., 5., 12., 11., 2., 0., 1., 0., 31., 4., 18., 3., 25., 5., 9., 4., 4., 3., 3., 4., 6., 1., 14., 4., 4., 2., 10., 2., 0., 6., 137., 12., 1862., 87., 103., 214., 92., 125., 56., 15., 18., 22., 12., 0., 2., 3., 9., 3., 6., 8., 40., 15., 29., 15., 37., 13., 13., 2., 7., 5., 1., 0., 2., 3., 8., 0., 0., 7., 5., 13., 2., 0., 9., 6., 2., 0., 1., 2., 3., 37., 7., 13., 3., 10., 2., 21., 0., 2., 6., 4., 26., 3., 40., 5., 5., 8., 6., 32., 6., 13., 6.,
18., 1., 3., 1., 21., 10., 26., 1., 23., 159., 2., 22., 242., 10., 17., 5., 1., 9., 86., 0., 15., 280., 42., 351., 41., 27., 0., 3., 11., 6., 31., 29., 229., 44., 3., 160., 16., 40., 4., 0., 2., 18., 3., 77., 23., 101., 13., 36., 47., 6., 2., 0., 18., 8., 32., 13., 55., 16., 25., 3., 10., 4., 1., 0., 1., 0., 18., 4., 18., 2., 34., 3., 16., 8., 5., 4., 0., 1., 3., 2., 13., 6., 7., 1., 7., 0., 0., 6., 143., 9., 1870., 84., 99., 214., 112., 103., 75., 13., 10., 17., 10., 1., 1., 14., 5., 3., 8., 7., 33., 17., 32., 23., 58., 7., 14., 3., 7., 7., 3., 4., 3., 3., 10., 4., 0., 1., 8., 10., 0., 0., 11., 4., 3., 0., 7., 3., 3., 31., 0., 17., 3., 15., 3., 22., 2., 0., 2., 2., 23., 7., 32., 6., 7., 11., 6., 32., 8., 15., 4.,
22., 1., 1., 8., 17., 9., 35., 0., 14., 167., 2., 24., 229., 3., 13., 13., 2., 3., 82., 3., 16., 300., 48., 314., 55., 15., 0., 0., 7., 2., 44., 42., 245., 39., 5., 165., 5., 41., 3., 0., 1., 21., 8., 72., 21., 96., 23., 36., 48., 11., 2., 4., 16., 6., 36., 9., 45., 6., 35., 8., 11., 9., 0., 0., 1., 0., 22., 8., 14., 1., 26., 7., 9., 8., 1., 4., 1., 1., 4., 2., 14., 1., 8., 1., 3., 1., 0., 2., 138., 10., 1835., 80., 109., 219., 103., 119., 65., 19., 9., 14., 16., 0., 2., 6., 5., 2., 11., 3., 32., 18., 29., 10., 37., 4., 8., 4., 3., 10., 3., 0., 2., 1., 4., 2., 0., 5., 2., 11., 0., 0., 2., 4., 1., 0., 5., 2., 2., 30., 4., 14., 0., 15., 4., 19., 0., 5., 3., 4., 37., 6., 29., 10., 5., 3., 8., 44., 5., 10., 4.,
9., 2., 1., 5., 10., 5., 8., 2., 6., 18., 1., 23., 23., 1., 10., 3., 2., 0., 16., 0., 7., 21., 19., 32., 16., 4., 2., 2., 2., 2., 4., 7., 30., 20., 2., 12., 3., 12., 10., 1., 0., 5., 4., 10., 12., 12., 44., 5., 20., 13., 4., 2., 8., 4., 4., 6., 7., 6., 9., 9., 13., 20., 11., 4., 0., 0., 6., 0., 3., 1., 3., 3., 3., 1., 2., 4., 3., 0., 1., 5., 2., 0., 0., 6., 2., 10., 1., 4., 3., 2., 5., 0., 2., 1., 1., 3., 2., 0., 3., 2., 2., 0., 3., 1., 1., 0., 4., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 5., 5., 2., 4., 1., 8., 21., 0., 16., 22., 1., 8., 4., 0., 3., 25., 2., 5., 31., 12., 20., 26., 3., 1., 0., 2., 3., 7., 8., 19., 19., 4., 10., 6., 19., 10., 3., 0., 5., 1., 13., 9., 17., 48., 6., 14., 7., 7., 0., 5., 2., 5., 3., 11., 5., 7., 18., 11., 25., 10., 8., 0., 0., 6., 4., 2., 2., 3., 2., 3., 2., 2., 1., 0., 3., 0., 3., 4., 0., 1., 4., 5., 6., 0., 4., 2., 2., 4., 0., 1., 1., 4., 9., 4., 0., 2., 3., 1., 4., 4., 1., 5., 0., 1., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 0., 8., 13., 2., 5., 1., 4., 21., 2., 22., 17., 2., 13., 4., 1., 5., 12., 4., 6., 16., 15., 24., 27., 5., 0., 0., 1., 2., 11., 4., 13., 21., 5., 19., 3., 13., 7., 3., 1., 6., 5., 10., 13., 19., 61., 8., 18., 10., 2., 2., 11., 4., 9., 5., 15., 3., 12., 18., 3., 19., 8., 3., 0., 0., 4., 1., 3., 2., 7., 2., 4., 4., 2., 3., 4., 0., 0., 4., 0., 0., 3., 0., 3., 8., 1., 5., 1., 3., 4., 3., 1., 0., 4., 7., 3., 0., 7., 2., 2., 1., 4., 4., 2., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 7., 4., 3., 5., 0., 6., 14., 1., 21., 24., 1., 12., 3., 3., 2., 22., 2., 4., 27., 10., 31., 21., 5., 1., 1., 1., 2., 4., 3., 24., 13., 4., 17., 5., 12., 2., 2., 1., 6., 2., 19., 10., 14., 54., 13., 18., 9., 3., 2., 7., 4., 7., 3., 11., 6., 10., 15., 2., 28., 9., 5., 1., 4., 5., 1., 2., 0., 6., 2., 7., 6., 2., 5., 3., 3., 3., 4., 5., 0., 1., 2., 3., 4., 2., 5., 1., 1., 4., 2., 2., 0., 3., 7., 0., 0., 2., 2., 1., 3., 4., 2., 2., 3., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 6., 10., 1., 3., 0., 4., 10., 2., 5., 22., 0., 12., 2., 2., 1., 20., 2., 2., 24., 11., 29., 27., 5., 1., 2., 4., 1., 7., 9., 30., 22., 2., 17., 3., 6., 12., 3., 0., 1., 0., 19., 11., 16., 49., 13., 18., 11., 6., 0., 1., 2., 6., 2., 12., 3., 7., 15., 5., 20., 8., 4., 2., 2., 1., 4., 3., 3., 3., 3., 6., 3., 0., 8., 3., 1., 1., 2., 0., 0., 1., 3., 3., 5., 0., 5., 5., 3., 2., 1., 3., 1., 0., 7., 2., 0., 2., 0., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 4., 3., 11., 2., 2., 0., 4., 16., 0., 16., 29., 0., 18., 4., 0., 3., 19., 2., 4., 30., 15., 27., 25., 5., 3., 1., 3., 1., 5., 6., 22., 14., 1., 12., 2., 13., 10., 2., 2., 5., 4., 7., 13., 28., 45., 9., 23., 13., 2., 1., 5., 2., 4., 1., 13., 7., 7., 16., 6., 24., 11., 3., 2., 1., 5., 2., 4., 2., 8., 2., 3., 4., 0., 2., 1., 0., 0., 0., 1., 0., 2., 2., 0., 7., 2., 4., 2., 0., 4., 0., 1., 1., 1., 7., 1., 0., 1., 3., 3., 3., 1., 1., 2., 0., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 1., 4., 2., 10., 1., 10., 18., 2., 8., 15., 0., 15., 1., 0., 2., 19., 2., 2., 36., 10., 16., 25., 7., 2., 1., 2., 2., 4., 7., 24., 16., 4., 11., 3., 14., 6., 2., 1., 6., 1., 21., 10., 16., 31., 9., 24., 11., 0., 2., 4., 1., 9., 4., 7., 5., 11., 18., 5., 19., 6., 3., 2., 1., 2., 0., 1., 0., 5., 2., 5., 7., 3., 3., 4., 2., 1., 0., 3., 0., 0., 2., 1., 8., 2., 5., 1., 2., 3., 0., 1., 1., 2., 5., 1., 0., 2., 3., 3., 2., 2., 0., 4., 1., 2., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 6., 2., 10., 2., 8., 0., 8., 29., 0., 16., 25., 1., 12., 3., 1., 1., 9., 1., 10., 14., 16., 32., 30., 6., 0., 2., 5., 1., 6., 7., 28., 12., 1., 14., 3., 8., 13., 1., 0., 5., 6., 16., 8., 17., 52., 14., 15., 14., 7., 1., 7., 2., 2., 2., 9., 5., 11., 12., 9., 22., 11., 4., 2., 1., 5., 1., 2., 2., 4., 4., 6., 3., 2., 4., 1., 1., 1., 5., 2., 0., 2., 0., 1., 6., 1., 2., 2., 3., 2., 2., 0., 0., 3., 4., 0., 0., 4., 2., 1., 0., 2., 3., 2., 1., 3., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 3., 10., 5., 2., 1., 4., 32., 0., 10., 24., 1., 8., 2., 0., 1., 12., 3., 2., 25., 13., 24., 27., 4., 2., 0., 3., 1., 11., 2., 31., 18., 1., 9., 2., 12., 6., 8., 1., 9., 2., 10., 11., 22., 52., 15., 23., 7., 6., 1., 5., 4., 5., 3., 9., 5., 10., 16., 4., 15., 9., 2., 0., 0., 6., 1., 2., 2., 3., 0., 4., 4., 2., 7., 3., 0., 0., 4., 2., 0., 2., 0., 0., 2., 4., 5., 0., 1., 2., 0., 4., 2., 0., 11., 2., 0., 0., 3., 4., 3., 5., 2., 1., 0., 2., 0., 0., 0., 0., 5., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 0., 4., 8., 5., 8., 0., 10., 19., 1., 10., 18., 1., 10., 1., 1., 0., 19., 2., 3., 18., 13., 25., 29., 7., 0., 2., 2., 0., 12., 1., 27., 21., 2., 21., 4., 16., 9., 1., 1., 1., 1., 20., 10., 22., 51., 14., 24., 8., 3., 1., 7., 2., 6., 1., 12., 8., 2., 15., 2., 22., 8., 3., 0., 1., 10., 2., 4., 4., 5., 3., 1., 4., 1., 1., 4., 0., 0., 1., 0., 0., 2., 3., 2., 8., 2., 4., 1., 0., 7., 2., 3., 1., 4., 8., 3., 0., 2., 7., 2., 3., 2., 0., 2., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 2., 10., 5., 6., 0., 4., 41., 0., 2., 22., 1., 18., 2., 0., 4., 18., 2., 2., 28., 15., 35., 22., 6., 1., 1., 2., 2., 10., 4., 26., 13., 5., 20., 3., 14., 6., 1., 0., 0., 0., 13., 10., 15., 34., 12., 22., 8., 3., 1., 8., 6., 2., 0., 9., 7., 10., 19., 7., 22., 8., 2., 1., 0., 2., 1., 3., 0., 2., 5., 3., 5., 2., 2., 2., 2., 0., 2., 3., 0., 2., 1., 3., 12., 3., 3., 3., 5., 4., 2., 4., 1., 1., 12., 0., 0., 1., 1., 3., 3., 0., 2., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 3., 3., 5., 8., 0., 6., 11., 0., 9., 20., 2., 12., 6., 0., 1., 17., 2., 0., 21., 10., 30., 32., 3., 2., 1., 3., 5., 8., 8., 31., 21., 1., 13., 4., 6., 12., 5., 1., 3., 4., 9., 8., 16., 40., 11., 13., 11., 1., 0., 5., 2., 11., 7., 12., 3., 6., 19., 6., 24., 8., 1., 3., 2., 8., 0., 8., 4., 8., 0., 3., 6., 1., 2., 4., 3., 3., 4., 0., 0., 2., 2., 1., 6., 1., 5., 0., 4., 7., 3., 1., 2., 2., 6., 2., 0., 1., 3., 2., 3., 1., 3., 2., 1., 4., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 3., 6., 11., 4., 6., 1., 3., 34., 1., 12., 18., 1., 15., 4., 1., 2., 24., 4., 7., 29., 13., 12., 22., 4., 2., 0., 3., 3., 6., 7., 33., 16., 4., 13., 6., 10., 9., 2., 2., 2., 2., 16., 15., 17., 52., 12., 27., 8., 3., 1., 6., 0., 2., 2., 14., 7., 8., 16., 11., 24., 8., 2., 1., 0., 9., 0., 4., 2., 4., 2., 5., 6., 0., 10., 2., 1., 2., 2., 3., 0., 2., 2., 0., 3., 3., 3., 2., 0., 4., 1., 1., 1., 1., 3., 2., 0., 0., 0., 1., 2., 3., 6., 2., 0., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 1., 4., 4., 4., 2., 6., 0., 8., 15., 0., 13., 14., 0., 15., 3., 0., 0., 19., 2., 2., 36., 13., 23., 22., 5., 2., 0., 6., 0., 10., 4., 27., 24., 3., 22., 4., 13., 8., 0., 1., 5., 2., 14., 16., 25., 62., 15., 24., 10., 3., 2., 6., 5., 7., 4., 12., 7., 12., 7., 7., 17., 13., 2., 0., 1., 7., 2., 5., 3., 4., 3., 4., 4., 3., 2., 5., 3., 1., 3., 3., 0., 4., 1., 0., 8., 0., 4., 2., 1., 2., 0., 5., 0., 1., 7., 1., 0., 1., 1., 0., 3., 2., 1., 0., 2., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 2., 4., 4., 2., 1., 7., 32., 1., 9., 29., 0., 12., 7., 0., 1., 20., 2., 5., 15., 13., 26., 38., 4., 0., 1., 5., 9., 12., 4., 18., 13., 3., 16., 3., 18., 16., 1., 2., 2., 0., 13., 15., 15., 53., 11., 17., 13., 7., 2., 4., 1., 9., 3., 7., 7., 8., 16., 6., 19., 10., 5., 0., 0., 7., 0., 3., 4., 8., 5., 5., 6., 2., 7., 5., 2., 0., 0., 2., 0., 0., 2., 4., 4., 5., 5., 3., 1., 3., 3., 2., 2., 2., 9., 1., 0., 2., 2., 2., 2., 2., 1., 0., 3., 7., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 4., 3., 13., 2., 3., 0., 3., 21., 5., 18., 12., 1., 11., 3., 2., 2., 18., 3., 3., 18., 6., 37., 37., 7., 0., 1., 5., 4., 6., 9., 36., 11., 3., 11., 1., 13., 7., 3., 0., 4., 3., 13., 5., 19., 51., 13., 25., 6., 2., 1., 1., 1., 6., 2., 12., 5., 5., 17., 6., 26., 5., 3., 2., 1., 10., 0., 5., 3., 5., 1., 4., 5., 1., 4., 2., 2., 2., 1., 2., 0., 0., 1., 1., 6., 0., 6., 1., 0., 2., 0., 3., 1., 2., 6., 1., 0., 3., 1., 2., 2., 2., 3., 4., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 2., 4., 11., 2., 7., 1., 5., 24., 0., 16., 8., 0., 13., 5., 2., 1., 19., 1., 2., 22., 9., 26., 28., 4., 1., 0., 1., 3., 9., 6., 15., 20., 5., 7., 2., 9., 7., 1., 3., 4., 2., 6., 8., 12., 48., 8., 20., 12., 5., 2., 7., 1., 2., 4., 6., 1., 9., 18., 6., 21., 7., 4., 0., 1., 7., 2., 5., 5., 2., 3., 4., 6., 2., 5., 1., 0., 1., 2., 1., 0., 3., 4., 1., 7., 1., 4., 2., 3., 6., 1., 0., 1., 3., 8., 0., 0., 2., 2., 2., 2., 3., 2., 3., 3., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 4., 7., 4., 7., 0., 9., 25., 0., 15., 23., 2., 16., 2., 2., 1., 26., 4., 3., 29., 11., 29., 35., 4., 1., 2., 1., 5., 17., 2., 34., 13., 1., 6., 2., 18., 7., 2., 1., 6., 3., 15., 9., 18., 56., 16., 27., 9., 6., 4., 4., 4., 5., 5., 13., 10., 7., 20., 8., 15., 7., 2., 1., 0., 8., 1., 3., 2., 2., 2., 6., 3., 4., 5., 5., 1., 0., 5., 1., 0., 1., 4., 2., 7., 2., 4., 2., 3., 1., 2., 4., 1., 2., 2., 1., 0., 1., 2., 1., 5., 3., 2., 5., 1., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 0., 4., 7., 0., 9., 1., 2., 13., 0., 13., 12., 3., 14., 3., 0., 1., 14., 1., 2., 25., 11., 27., 27., 6., 0., 4., 6., 1., 0., 11., 35., 19., 1., 14., 3., 13., 8., 0., 3., 4., 1., 10., 14., 16., 39., 16., 25., 7., 1., 1., 3., 4., 9., 1., 12., 3., 9., 13., 4., 20., 6., 4., 1., 2., 10., 3., 5., 3., 3., 8., 3., 2., 1., 3., 1., 4., 1., 1., 4., 0., 1., 1., 0., 5., 3., 5., 2., 5., 4., 0., 3., 1., 4., 8., 2., 0., 1., 1., 2., 2., 3., 3., 2., 2., 5., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 5., 5., 7., 7., 0., 8., 29., 0., 13., 13., 2., 20., 4., 0., 1., 6., 1., 5., 29., 13., 22., 35., 3., 2., 2., 3., 0., 9., 9., 31., 12., 3., 17., 3., 9., 12., 3., 1., 2., 2., 6., 9., 14., 48., 8., 18., 10., 5., 0., 8., 3., 4., 6., 4., 10., 3., 9., 5., 16., 12., 3., 0., 2., 4., 1., 1., 1., 5., 4., 8., 6., 1., 3., 4., 1., 1., 1., 0., 0., 2., 5., 2., 8., 4., 5., 0., 3., 5., 0., 5., 2., 0., 9., 1., 0., 4., 2., 4., 3., 2., 5., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 3., 3., 9., 5., 7., 3., 6., 20., 2., 13., 24., 1., 15., 3., 0., 5., 13., 1., 7., 19., 6., 21., 24., 10., 0., 1., 0., 2., 9., 11., 33., 11., 0., 13., 5., 15., 12., 0., 0., 4., 5., 14., 14., 16., 46., 11., 18., 12., 0., 0., 4., 3., 6., 2., 13., 4., 3., 12., 10., 18., 7., 2., 2., 3., 4., 2., 2., 1., 4., 3., 3., 5., 5., 4., 3., 1., 0., 3., 0., 0., 1., 2., 2., 6., 0., 5., 4., 1., 3., 1., 0., 0., 0., 3., 2., 0., 1., 3., 5., 2., 3., 3., 0., 2., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 4., 5., 1., 4., 0., 0., 15., 2., 14., 21., 0., 16., 3., 1., 1., 21., 1., 3., 19., 15., 21., 35., 5., 2., 2., 2., 1., 7., 5., 21., 22., 2., 17., 2., 16., 10., 2., 2., 3., 2., 18., 16., 19., 41., 13., 18., 9., 4., 1., 3., 0., 6., 4., 11., 4., 3., 20., 2., 28., 7., 3., 2., 2., 6., 1., 4., 0., 3., 5., 4., 2., 3., 3., 7., 5., 1., 1., 1., 0., 2., 1., 4., 5., 1., 5., 3., 1., 3., 2., 1., 0., 2., 8., 4., 0., 4., 0., 4., 0., 1., 0., 1., 2., 5., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 5., 10., 0., 19., 7., 8., 54., 0., 9., 57., 1., 8., 2., 0., 1., 59., 0., 9., 83., 8., 78., 9., 3., 0., 1., 2., 1., 12., 10., 57., 7., 1., 40., 34., 13., 4., 0., 3., 5., 2., 13., 3., 26., 4., 11., 7., 4., 2., 0., 14., 2., 25., 7., 16., 1., 15., 3., 0., 38., 10., 7., 0., 0., 15., 2., 14., 0., 9., 3., 2., 0., 1., 2., 0., 9., 5., 24., 8., 5., 3., 2., 4., 0., 0., 0., 0., 0., 12., 2., 3., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 2., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 4., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 33., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 0., 3., 2., 10., 0., 14., 2., 8., 58., 2., 7., 55., 2., 8., 4., 0., 4., 81., 12., 9., 86., 24., 76., 11., 4., 0., 1., 5., 3., 15., 9., 68., 10., 3., 49., 26., 17., 3., 0., 1., 5., 5., 28., 6., 20., 2., 14., 6., 2., 1., 0., 9., 5., 14., 2., 9., 5., 7., 5., 1., 31., 8., 7., 1., 0., 10., 3., 2., 1., 9., 5., 4., 1., 1., 0., 0., 6., 6., 10., 7., 2., 3., 2., 3., 0., 0., 0., 0., 0., 10., 0., 3., 4., 2., 1., 1., 0., 3., 0., 2., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 1., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 27., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 4., 8., 18., 0., 10., 3., 8., 56., 1., 9., 42., 1., 6., 0., 0., 1., 94., 10., 13., 98., 19., 77., 15., 6., 0., 1., 3., 1., 18., 11., 51., 9., 1., 36., 26., 13., 7., 0., 0., 9., 2., 26., 2., 16., 5., 17., 3., 2., 3., 0., 21., 5., 15., 5., 19., 4., 11., 2., 2., 34., 10., 15., 1., 0., 9., 3., 12., 2., 14., 3., 1., 2., 2., 0., 0., 5., 0., 16., 8., 4., 1., 2., 2., 0., 0., 0., 0., 0., 7., 5., 3., 2., 6., 1., 1., 0., 3., 0., 2., 0., 1., 2., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 4., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 19., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 0., 2., 9., 11., 0., 17., 3., 8., 57., 0., 12., 61., 1., 11., 2., 0., 3., 79., 4., 8., 74., 16., 71., 12., 4., 0., 1., 3., 1., 12., 8., 43., 7., 2., 42., 30., 14., 4., 0., 1., 6., 2., 34., 5., 24., 12., 7., 7., 1., 2., 0., 10., 7., 21., 5., 14., 4., 7., 4., 3., 31., 6., 4., 1., 0., 20., 5., 7., 2., 7., 1., 2., 1., 1., 1., 0., 5., 1., 12., 5., 2., 5., 1., 3., 0., 0., 0., 0., 0., 6., 4., 6., 1., 4., 1., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 3., 3., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 27., 0., 2., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 1., 3., 4., 13., 0., 12., 0., 9., 58., 2., 13., 49., 0., 9., 1., 0., 1., 73., 1., 9., 43., 11., 78., 12., 1., 0., 0., 2., 4., 12., 10., 67., 9., 3., 34., 40., 13., 4., 0., 0., 6., 2., 23., 9., 18., 9., 16., 6., 1., 3., 0., 6., 4., 17., 4., 11., 1., 8., 5., 1., 28., 10., 11., 5., 0., 19., 4., 9., 4., 11., 2., 6., 1., 0., 0., 0., 8., 1., 17., 8., 5., 8., 3., 5., 0., 0., 0., 0., 0., 10., 0., 3., 2., 4., 0., 1., 0., 0., 0., 1., 0., 1., 2., 4., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 25., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 4., 5., 20., 6., 17., 0., 13., 191., 2., 19., 215., 3., 12., 5., 1., 5., 82., 5., 20., 281., 48., 353., 37., 13., 1., 3., 10., 6., 54., 35., 243., 52., 11., 161., 8., 48., 6., 0., 2., 17., 4., 84., 18., 92., 16., 33., 49., 15., 0., 2., 20., 7., 35., 9., 46., 11., 26., 3., 9., 4., 4., 0., 1., 0., 20., 2., 5., 1., 23., 3., 9., 7., 5., 1., 1., 0., 4., 1., 6., 3., 4., 3., 6., 1., 2., 6., 146., 10., 1962., 87., 100., 223., 102., 122., 74., 17., 14., 18., 11., 1., 4., 9., 4., 5., 6., 9., 41., 11., 38., 20., 40., 8., 12., 2., 1., 10., 2., 0., 2., 6., 7., 2., 0., 3., 8., 15., 0., 0., 14., 2., 3., 0., 4., 2., 3., 25., 4., 7., 3., 14., 7., 21., 3., 3., 2., 4., 27., 5., 32., 12., 4., 9., 8., 22., 4., 17., 4.,
14., 3., 6., 10., 27., 5., 34., 1., 15., 149., 5., 20., 193., 3., 15., 3., 1., 5., 86., 1., 10., 327., 45., 342., 54., 21., 0., 5., 5., 4., 43., 29., 236., 39., 8., 147., 8., 44., 7., 0., 2., 17., 9., 69., 13., 88., 18., 46., 43., 9., 1., 1., 24., 6., 48., 14., 37., 6., 33., 6., 10., 7., 0., 0., 0., 0., 28., 2., 15., 1., 27., 5., 7., 7., 1., 4., 1., 1., 2., 2., 11., 2., 9., 0., 11., 0., 0., 5., 137., 6., 1813., 93., 102., 226., 97., 113., 61., 9., 9., 18., 17., 0., 3., 5., 6., 3., 9., 5., 32., 13., 27., 19., 39., 4., 11., 6., 3., 6., 5., 3., 2., 2., 9., 4., 0., 6., 1., 10., 1., 0., 4., 6., 5., 0., 4., 4., 1., 32., 2., 10., 4., 19., 1., 19., 2., 6., 3., 3., 21., 4., 31., 6., 4., 7., 2., 19., 13., 17., 6.,
15., 4., 3., 9., 21., 3., 26., 1., 9., 150., 0., 17., 207., 7., 12., 7., 1., 1., 90., 3., 17., 281., 46., 347., 38., 22., 3., 5., 6., 8., 43., 24., 223., 44., 7., 146., 15., 36., 5., 0., 1., 16., 11., 85., 16., 97., 15., 41., 49., 11., 3., 0., 27., 11., 32., 11., 59., 3., 20., 6., 9., 6., 0., 0., 1., 0., 28., 7., 15., 7., 31., 4., 11., 8., 2., 3., 2., 2., 2., 1., 13., 5., 10., 7., 6., 1., 2., 5., 150., 7., 1859., 76., 97., 208., 94., 96., 65., 10., 13., 14., 13., 1., 3., 2., 7., 4., 9., 13., 44., 21., 28., 16., 45., 7., 7., 4., 5., 6., 4., 1., 2., 5., 9., 1., 0., 3., 3., 12., 2., 0., 8., 0., 6., 0., 1., 1., 1., 25., 3., 11., 2., 13., 2., 25., 3., 2., 5., 9., 32., 7., 39., 6., 2., 2., 6., 27., 12., 9., 3.,
9., 5., 2., 8., 27., 3., 41., 0., 18., 159., 2., 30., 202., 7., 7., 7., 0., 7., 70., 1., 19., 304., 37., 338., 44., 26., 1., 4., 6., 11., 44., 31., 236., 37., 9., 130., 12., 31., 6., 0., 2., 18., 11., 86., 17., 92., 9., 34., 47., 18., 3., 1., 26., 7., 31., 11., 52., 9., 28., 7., 10., 11., 1., 0., 0., 0., 26., 7., 15., 3., 28., 2., 11., 6., 6., 2., 1., 4., 1., 6., 14., 4., 6., 0., 13., 1., 0., 4., 153., 10., 1913., 103., 73., 227., 98., 98., 68., 17., 17., 19., 10., 0., 2., 11., 6., 4., 8., 8., 43., 15., 38., 18., 47., 8., 15., 5., 6., 13., 6., 2., 2., 0., 9., 2., 0., 4., 7., 12., 1., 0., 10., 2., 2., 0., 3., 5., 3., 28., 1., 10., 2., 10., 5., 16., 2., 2., 3., 5., 32., 7., 41., 7., 3., 8., 5., 30., 6., 15., 6.,
6., 1., 5., 4., 9., 3., 7., 0., 7., 28., 0., 9., 21., 1., 13., 3., 1., 3., 18., 2., 5., 18., 13., 28., 25., 8., 0., 0., 2., 1., 10., 14., 21., 10., 5., 20., 1., 17., 7., 1., 1., 6., 4., 8., 9., 28., 48., 10., 19., 3., 3., 1., 4., 1., 7., 7., 9., 6., 10., 6., 10., 19., 7., 4., 1., 1., 7., 1., 2., 1., 3., 1., 3., 2., 1., 5., 4., 1., 0., 1., 2., 0., 1., 3., 2., 8., 2., 4., 1., 5., 1., 3., 1., 2., 0., 7., 0., 0., 2., 3., 2., 4., 3., 4., 5., 2., 1., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 3., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 3., 4., 7., 2., 9., 1., 5., 21., 0., 13., 15., 3., 13., 1., 1., 1., 17., 1., 3., 23., 10., 31., 25., 4., 2., 1., 2., 2., 8., 6., 15., 11., 1., 17., 7., 10., 10., 3., 0., 6., 2., 14., 12., 25., 48., 8., 21., 8., 7., 1., 7., 3., 9., 3., 15., 9., 6., 16., 3., 27., 15., 3., 0., 0., 5., 3., 4., 2., 5., 3., 1., 6., 1., 2., 4., 6., 0., 1., 1., 0., 1., 6., 5., 6., 1., 1., 3., 1., 8., 2., 0., 0., 1., 10., 2., 0., 4., 2., 2., 0., 3., 3., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 3., 7., 8., 4., 12., 2., 3., 15., 0., 15., 30., 0., 15., 3., 4., 2., 23., 1., 1., 17., 8., 24., 24., 0., 0., 1., 0., 3., 2., 2., 15., 15., 2., 12., 4., 10., 13., 2., 1., 2., 2., 13., 11., 15., 49., 12., 24., 2., 4., 4., 3., 2., 8., 1., 7., 3., 13., 17., 7., 26., 1., 1., 1., 0., 12., 0., 0., 3., 2., 5., 7., 1., 1., 4., 2., 4., 0., 1., 3., 0., 1., 3., 3., 3., 4., 6., 2., 1., 6., 0., 2., 0., 0., 9., 0., 0., 1., 1., 2., 0., 1., 0., 2., 2., 2., 0., 0., 0., 0., 1., 0., 0., 5., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 3., 5., 12., 3., 6., 2., 4., 24., 2., 11., 22., 1., 13., 3., 0., 2., 24., 1., 3., 28., 18., 36., 35., 8., 2., 1., 2., 2., 5., 4., 28., 11., 3., 6., 5., 13., 5., 1., 0., 4., 2., 13., 12., 25., 49., 15., 23., 6., 2., 1., 5., 3., 6., 4., 11., 4., 6., 16., 4., 28., 8., 1., 1., 1., 5., 0., 0., 1., 11., 4., 4., 4., 4., 4., 3., 0., 2., 2., 2., 0., 3., 1., 2., 1., 1., 6., 2., 4., 5., 0., 3., 1., 3., 4., 2., 0., 0., 1., 0., 2., 1., 2., 3., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 5., 5., 3., 1., 0., 5., 20., 3., 10., 26., 0., 15., 7., 0., 1., 18., 0., 3., 31., 12., 29., 22., 8., 2., 0., 1., 1., 5., 7., 27., 27., 3., 9., 4., 12., 10., 3., 1., 4., 3., 11., 16., 23., 35., 17., 29., 11., 4., 1., 4., 0., 7., 2., 11., 5., 16., 24., 6., 27., 9., 2., 2., 0., 8., 1., 3., 2., 6., 0., 4., 2., 2., 4., 4., 1., 1., 2., 1., 0., 2., 1., 3., 6., 0., 7., 1., 0., 6., 0., 2., 0., 4., 8., 7., 0., 2., 2., 3., 2., 2., 0., 1., 0., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 1., 2., 8., 2., 10., 3., 4., 17., 1., 11., 18., 1., 15., 2., 1., 3., 21., 3., 7., 19., 10., 33., 15., 5., 0., 1., 3., 3., 14., 12., 22., 17., 2., 17., 3., 10., 8., 3., 1., 2., 1., 17., 6., 16., 56., 10., 16., 6., 7., 2., 4., 3., 6., 3., 8., 4., 10., 17., 6., 27., 3., 3., 1., 1., 8., 2., 2., 0., 5., 5., 3., 2., 2., 9., 5., 3., 0., 4., 0., 0., 3., 2., 2., 5., 2., 3., 1., 3., 3., 0., 2., 1., 2., 7., 1., 0., 3., 4., 2., 2., 3., 0., 2., 1., 4., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 2., 3., 10., 5., 6., 1., 4., 29., 0., 14., 22., 1., 16., 1., 2., 3., 23., 3., 6., 11., 10., 28., 27., 10., 0., 0., 0., 2., 10., 10., 32., 13., 3., 18., 5., 16., 9., 1., 1., 3., 4., 11., 10., 13., 44., 15., 23., 12., 3., 0., 3., 3., 8., 7., 11., 3., 7., 13., 5., 25., 8., 2., 0., 1., 8., 0., 10., 6., 1., 5., 3., 5., 3., 3., 1., 1., 0., 1., 2., 0., 3., 1., 2., 6., 2., 4., 0., 2., 2., 0., 1., 3., 4., 3., 1., 0., 1., 2., 1., 2., 4., 2., 1., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 3., 4., 10., 3., 6., 3., 6., 21., 1., 17., 24., 1., 17., 2., 1., 3., 21., 2., 5., 22., 13., 23., 31., 5., 1., 0., 3., 4., 6., 7., 29., 14., 2., 10., 5., 12., 7., 5., 3., 3., 5., 7., 4., 16., 36., 13., 28., 12., 5., 1., 5., 4., 8., 3., 8., 3., 9., 15., 10., 21., 6., 4., 1., 1., 6., 0., 1., 1., 2., 4., 2., 1., 4., 10., 2., 2., 1., 1., 3., 0., 3., 3., 2., 6., 4., 5., 2., 2., 3., 0., 1., 1., 0., 11., 0., 0., 4., 1., 2., 2., 5., 5., 1., 1., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 3., 1., 5., 11., 1., 3., 2., 4., 21., 1., 8., 16., 0., 10., 4., 2., 2., 15., 2., 3., 20., 11., 31., 24., 5., 0., 3., 2., 3., 5., 7., 25., 16., 1., 11., 3., 12., 11., 3., 2., 6., 2., 16., 13., 15., 45., 5., 22., 12., 5., 1., 6., 4., 5., 2., 5., 7., 7., 11., 6., 26., 9., 1., 0., 1., 4., 1., 6., 2., 3., 3., 7., 3., 0., 1., 4., 5., 1., 1., 0., 0., 3., 1., 4., 3., 0., 3., 3., 3., 6., 1., 2., 2., 1., 7., 1., 0., 2., 2., 0., 6., 0., 0., 3., 3., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 6., 8., 1., 4., 1., 5., 28., 0., 13., 30., 0., 12., 4., 0., 3., 23., 0., 4., 32., 15., 24., 21., 6., 3., 0., 2., 1., 8., 12., 29., 16., 3., 12., 6., 13., 8., 4., 0., 3., 2., 17., 12., 15., 56., 15., 22., 9., 5., 0., 7., 1., 3., 3., 8., 5., 6., 19., 8., 22., 6., 3., 0., 1., 9., 0., 4., 1., 7., 6., 5., 3., 1., 5., 5., 2., 2., 2., 2., 0., 0., 1., 2., 9., 3., 2., 0., 4., 0., 1., 3., 1., 0., 10., 1., 0., 4., 1., 2., 2., 1., 0., 0., 2., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 3., 3., 6., 3., 5., 1., 9., 27., 0., 6., 26., 1., 14., 7., 1., 1., 18., 3., 7., 18., 12., 19., 27., 10., 3., 1., 4., 1., 11., 5., 25., 15., 3., 17., 6., 11., 7., 1., 2., 4., 0., 14., 12., 12., 52., 9., 17., 5., 7., 1., 5., 3., 5., 5., 15., 6., 7., 16., 7., 25., 10., 2., 0., 0., 11., 2., 4., 2., 10., 4., 4., 2., 2., 5., 2., 5., 0., 1., 2., 0., 2., 2., 0., 4., 0., 5., 3., 2., 6., 2., 1., 1., 1., 8., 5., 0., 4., 1., 1., 1., 3., 0., 1., 1., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 1., 6., 7., 5., 5., 0., 6., 20., 1., 14., 17., 0., 14., 2., 1., 2., 17., 2., 4., 25., 11., 24., 20., 10., 2., 1., 5., 0., 8., 11., 33., 13., 3., 16., 5., 7., 9., 0., 1., 4., 0., 9., 12., 10., 42., 9., 21., 8., 4., 2., 4., 4., 6., 2., 8., 3., 11., 16., 5., 28., 12., 3., 0., 2., 9., 2., 3., 4., 8., 4., 1., 2., 2., 2., 0., 4., 2., 1., 2., 0., 3., 2., 1., 7., 0., 8., 4., 1., 3., 0., 2., 1., 1., 8., 1., 0., 1., 3., 2., 2., 2., 3., 3., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 5., 3., 10., 2., 9., 0., 5., 14., 0., 10., 12., 1., 16., 4., 0., 2., 21., 1., 3., 31., 11., 16., 25., 6., 3., 0., 2., 1., 5., 6., 26., 24., 7., 18., 3., 16., 13., 3., 2., 4., 1., 20., 12., 13., 47., 16., 27., 10., 3., 1., 5., 5., 6., 2., 11., 8., 7., 20., 8., 19., 9., 2., 1., 1., 9., 1., 3., 3., 5., 2., 2., 1., 2., 2., 5., 2., 0., 2., 1., 0., 0., 2., 4., 3., 3., 6., 2., 1., 3., 2., 3., 1., 1., 13., 1., 0., 2., 2., 2., 3., 3., 2., 0., 2., 1., 0., 0., 0., 0., 7., 0., 0., 4., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 3., 8., 4., 2., 1., 10., 27., 0., 11., 26., 2., 13., 2., 2., 3., 14., 1., 4., 33., 12., 27., 17., 7., 0., 1., 5., 4., 13., 11., 37., 15., 5., 10., 4., 16., 9., 2., 1., 2., 1., 13., 9., 17., 41., 15., 20., 12., 5., 1., 2., 0., 8., 6., 10., 9., 8., 11., 11., 19., 11., 5., 1., 3., 8., 3., 4., 4., 5., 1., 8., 4., 2., 5., 0., 4., 1., 3., 0., 0., 2., 0., 4., 5., 2., 1., 1., 3., 5., 0., 5., 3., 5., 2., 2., 0., 1., 3., 1., 0., 0., 1., 4., 0., 2., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 6., 5., 7., 3., 3., 0., 5., 17., 1., 9., 11., 0., 12., 2., 0., 5., 25., 1., 3., 14., 0., 33., 33., 4., 0., 0., 1., 5., 6., 4., 22., 18., 1., 21., 3., 8., 9., 2., 1., 3., 1., 15., 15., 17., 39., 14., 27., 8., 8., 2., 4., 2., 8., 5., 9., 7., 3., 10., 7., 31., 10., 1., 3., 2., 2., 1., 2., 0., 9., 5., 7., 6., 2., 0., 5., 4., 2., 2., 0., 0., 1., 0., 1., 2., 3., 4., 2., 2., 3., 1., 2., 0., 3., 5., 0., 0., 0., 2., 3., 3., 4., 3., 3., 1., 2., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 3., 3., 2., 6., 0., 8., 10., 1., 11., 18., 1., 17., 0., 0., 5., 19., 2., 7., 32., 10., 19., 21., 8., 0., 1., 4., 0., 10., 7., 24., 8., 1., 12., 6., 17., 8., 1., 0., 5., 5., 8., 4., 22., 42., 8., 27., 11., 2., 1., 5., 2., 2., 2., 6., 1., 5., 14., 6., 18., 9., 4., 1., 0., 8., 0., 5., 0., 4., 4., 3., 6., 1., 6., 4., 0., 0., 2., 2., 0., 2., 2., 1., 1., 3., 3., 1., 0., 6., 1., 2., 0., 3., 9., 1., 0., 4., 0., 5., 2., 4., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 4., 7., 4., 12., 1., 6., 17., 0., 17., 17., 0., 17., 4., 2., 4., 9., 1., 3., 26., 12., 25., 20., 9., 1., 1., 3., 5., 10., 5., 11., 21., 3., 18., 3., 17., 11., 4., 0., 2., 1., 14., 10., 17., 47., 12., 29., 10., 4., 0., 5., 3., 9., 2., 11., 9., 6., 15., 2., 17., 8., 3., 0., 2., 12., 1., 7., 4., 4., 4., 5., 3., 2., 7., 6., 3., 1., 2., 1., 0., 2., 1., 1., 4., 2., 5., 3., 2., 4., 0., 1., 1., 2., 7., 3., 0., 0., 1., 1., 3., 0., 1., 0., 1., 3., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 2., 6., 10., 4., 5., 0., 13., 5., 1., 18., 23., 0., 21., 6., 2., 4., 24., 6., 0., 1., 9., 17., 33., 6., 1., 2., 3., 0., 12., 13., 25., 19., 2., 21., 6., 9., 4., 0., 1., 4., 2., 13., 12., 18., 43., 11., 19., 14., 2., 0., 6., 1., 8., 2., 10., 7., 12., 15., 6., 17., 6., 3., 4., 0., 9., 2., 3., 1., 8., 4., 5., 5., 3., 4., 2., 1., 3., 1., 0., 0., 2., 3., 2., 7., 3., 6., 1., 4., 5., 2., 3., 2., 4., 4., 5., 0., 2., 0., 4., 3., 2., 2., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 3., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 0., 3., 7., 3., 7., 2., 10., 16., 0., 18., 33., 1., 15., 4., 1., 0., 8., 0., 5., 34., 11., 15., 30., 11., 3., 0., 4., 2., 9., 5., 28., 7., 3., 15., 5., 14., 10., 3., 0., 5., 2., 8., 15., 14., 45., 11., 25., 5., 4., 1., 2., 1., 7., 2., 9., 10., 5., 23., 5., 15., 11., 3., 1., 2., 5., 1., 1., 2., 2., 4., 3., 3., 3., 5., 4., 4., 0., 3., 3., 0., 3., 3., 1., 9., 5., 3., 2., 2., 4., 0., 1., 0., 4., 10., 1., 0., 0., 1., 1., 4., 0., 4., 1., 2., 3., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 1., 1., 2., 7., 4., 7., 1., 6., 30., 3., 15., 21., 0., 23., 2., 0., 1., 10., 1., 5., 17., 10., 22., 29., 4., 2., 2., 2., 4., 6., 1., 36., 14., 1., 16., 9., 16., 6., 2., 1., 5., 4., 20., 12., 14., 54., 12., 21., 15., 4., 0., 4., 2., 10., 2., 5., 5., 7., 22., 3., 25., 8., 3., 1., 1., 7., 0., 7., 2., 14., 2., 4., 5., 4., 2., 4., 4., 1., 3., 2., 0., 0., 0., 1., 4., 2., 3., 1., 2., 5., 2., 0., 1., 2., 10., 0., 0., 4., 4., 2., 2., 3., 2., 0., 2., 2., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 4., 2., 3., 1., 6., 1., 4., 20., 1., 16., 15., 0., 15., 4., 1., 2., 15., 1., 9., 25., 8., 15., 30., 6., 0., 1., 4., 2., 5., 11., 27., 14., 2., 14., 3., 22., 15., 3., 1., 2., 3., 10., 14., 14., 46., 16., 31., 7., 4., 0., 5., 3., 13., 4., 14., 5., 4., 19., 7., 21., 6., 9., 1., 2., 5., 2., 7., 1., 3., 6., 3., 3., 3., 4., 2., 3., 0., 2., 4., 0., 5., 4., 2., 3., 1., 2., 1., 1., 5., 0., 1., 0., 1., 7., 1., 0., 6., 1., 2., 0., 1., 3., 2., 3., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 5., 3., 7., 0., 11., 0., 4., 27., 0., 11., 12., 0., 11., 3., 1., 0., 17., 1., 10., 25., 8., 33., 17., 5., 1., 0., 3., 2., 15., 4., 28., 14., 2., 9., 4., 12., 11., 4., 1., 2., 0., 4., 8., 12., 48., 13., 13., 18., 4., 0., 0., 2., 8., 5., 7., 6., 6., 16., 6., 21., 7., 1., 2., 0., 6., 0., 1., 2., 3., 3., 4., 4., 1., 7., 7., 2., 1., 5., 2., 0., 7., 1., 2., 9., 5., 5., 4., 3., 3., 1., 1., 2., 0., 8., 4., 0., 2., 3., 1., 1., 2., 1., 1., 1., 3., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 3., 4., 14., 0., 16., 3., 5., 46., 0., 8., 62., 1., 6., 3., 0., 0., 72., 3., 9., 81., 14., 73., 11., 3., 0., 2., 3., 1., 5., 15., 56., 8., 2., 38., 35., 10., 11., 0., 0., 10., 0., 32., 10., 23., 6., 16., 7., 3., 0., 0., 7., 2., 17., 7., 16., 5., 12., 5., 3., 40., 4., 9., 2., 0., 13., 4., 5., 1., 6., 4., 7., 1., 1., 0., 0., 0., 0., 12., 5., 1., 6., 0., 2., 0., 0., 0., 0., 0., 14., 0., 3., 0., 2., 1., 0., 0., 1., 0., 2., 0., 4., 5., 0., 0., 3., 0., 0., 0., 3., 0., 0., 0., 0., 0., 4., 4., 2., 0., 0., 0., 3., 0., 7., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 0., 2., 13., 0., 20., 1., 2., 67., 2., 13., 55., 1., 11., 0., 0., 4., 68., 8., 7., 86., 13., 83., 19., 2., 0., 1., 6., 4., 15., 6., 44., 16., 3., 37., 30., 17., 8., 0., 3., 5., 2., 27., 3., 32., 6., 18., 9., 6., 4., 0., 7., 5., 20., 1., 8., 2., 10., 7., 2., 36., 5., 11., 2., 0., 19., 1., 9., 2., 10., 3., 1., 1., 0., 2., 0., 6., 1., 20., 8., 2., 5., 0., 3., 0., 0., 0., 0., 0., 11., 0., 2., 2., 1., 2., 0., 0., 0., 0., 4., 0., 2., 3., 3., 0., 3., 0., 2., 0., 2., 0., 0., 0., 0., 0., 2., 2., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 27., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 0., 1., 8., 0., 18., 0., 6., 49., 0., 12., 61., 0., 3., 0., 0., 2., 71., 6., 5., 84., 9., 65., 11., 3., 0., 2., 4., 2., 8., 6., 53., 18., 0., 47., 23., 14., 5., 0., 1., 9., 4., 18., 6., 25., 9., 7., 10., 2., 3., 0., 11., 3., 13., 6., 14., 5., 9., 3., 1., 37., 6., 7., 0., 0., 12., 5., 7., 0., 20., 0., 5., 2., 1., 0., 0., 4., 0., 28., 13., 2., 1., 2., 2., 0., 0., 0., 0., 0., 5., 3., 5., 1., 2., 2., 0., 0., 2., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 4., 1., 3., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 22., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 3., 7., 11., 0., 12., 1., 8., 49., 3., 10., 44., 2., 3., 1., 0., 4., 71., 7., 3., 85., 11., 67., 13., 2., 0., 1., 1., 4., 17., 10., 60., 9., 3., 32., 34., 14., 6., 0., 2., 8., 3., 31., 4., 18., 9., 11., 1., 1., 2., 0., 10., 1., 19., 9., 14., 5., 6., 8., 7., 39., 8., 11., 4., 0., 10., 7., 16., 1., 18., 0., 3., 0., 2., 1., 0., 6., 0., 12., 8., 2., 4., 1., 0., 0., 0., 0., 0., 0., 10., 2., 6., 1., 2., 2., 3., 0., 2., 0., 1., 0., 1., 2., 3., 0., 2., 0., 0., 0., 1., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 8., 0., 0., 0., 0., 20., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 0., 4., 9., 0., 15., 2., 4., 50., 1., 13., 55., 0., 4., 1., 0., 4., 57., 8., 7., 74., 12., 82., 9., 5., 0., 0., 2., 2., 17., 9., 61., 14., 3., 35., 27., 16., 6., 0., 1., 4., 1., 19., 7., 29., 8., 13., 7., 3., 1., 0., 8., 6., 21., 8., 11., 0., 11., 3., 2., 31., 6., 4., 2., 0., 14., 2., 13., 2., 12., 0., 3., 2., 1., 3., 0., 7., 1., 13., 10., 6., 2., 0., 2., 0., 0., 0., 0., 0., 14., 2., 3., 5., 3., 1., 0., 0., 2., 0., 1., 0., 1., 1., 0., 0., 7., 0., 1., 0., 1., 0., 0., 0., 3., 0., 0., 1., 5., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 25., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 2., 1., 7., 0., 17., 1., 6., 55., 1., 8., 62., 0., 4., 3., 0., 3., 61., 7., 3., 87., 11., 73., 9., 5., 0., 0., 1., 3., 15., 10., 64., 7., 2., 33., 30., 15., 8., 0., 1., 4., 0., 18., 7., 30., 2., 16., 5., 3., 2., 0., 12., 5., 20., 10., 16., 4., 14., 3., 5., 41., 12., 5., 0., 0., 11., 4., 6., 3., 9., 2., 1., 1., 2., 0., 0., 8., 3., 13., 14., 2., 2., 1., 1., 0., 0., 0., 0., 0., 12., 1., 6., 2., 4., 0., 0., 0., 0., 0., 2., 0., 4., 2., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 3., 0., 5., 2., 3., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 27., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
16., 2., 1., 3., 21., 2., 37., 4., 12., 167., 0., 16., 220., 3., 24., 3., 0., 4., 92., 4., 19., 261., 40., 370., 45., 19., 1., 2., 6., 5., 57., 32., 230., 40., 8., 148., 17., 33., 8., 0., 2., 12., 14., 84., 15., 87., 18., 47., 43., 14., 6., 2., 24., 4., 37., 7., 45., 10., 28., 6., 13., 10., 1., 0., 2., 0., 17., 4., 8., 5., 20., 2., 5., 4., 2., 5., 1., 1., 7., 0., 13., 1., 11., 0., 4., 4., 0., 8., 138., 12., 1946., 89., 102., 198., 95., 108., 74., 16., 12., 14., 8., 3., 2., 2., 2., 1., 7., 7., 42., 20., 37., 25., 39., 2., 17., 4., 6., 7., 3., 2., 2., 5., 6., 2., 0., 3., 5., 12., 2., 0., 7., 2., 1., 0., 5., 2., 3., 20., 3., 14., 6., 12., 3., 23., 5., 1., 5., 8., 26., 10., 42., 6., 3., 5., 5., 27., 2., 13., 4.,
14., 2., 3., 6., 16., 2., 33., 0., 9., 162., 1., 27., 197., 4., 8., 7., 1., 4., 80., 4., 21., 288., 45., 355., 42., 18., 1., 3., 7., 10., 49., 29., 249., 42., 11., 161., 18., 43., 6., 0., 2., 24., 10., 79., 12., 89., 10., 34., 42., 8., 6., 2., 29., 6., 39., 8., 55., 11., 41., 8., 13., 5., 1., 0., 2., 0., 31., 4., 10., 6., 30., 4., 19., 2., 3., 3., 0., 1., 2., 3., 10., 1., 11., 2., 8., 2., 0., 6., 144., 8., 1868., 84., 113., 250., 99., 109., 56., 19., 9., 15., 16., 1., 1., 10., 5., 4., 8., 7., 51., 20., 35., 13., 42., 8., 14., 3., 6., 6., 4., 3., 5., 3., 10., 3., 0., 5., 4., 10., 1., 0., 7., 3., 9., 0., 5., 2., 2., 29., 3., 13., 2., 15., 3., 11., 0., 3., 1., 4., 21., 5., 33., 2., 3., 8., 5., 31., 5., 4., 3.,
14., 1., 5., 11., 16., 7., 31., 0., 9., 152., 1., 22., 219., 4., 12., 8., 0., 3., 74., 3., 12., 299., 36., 295., 42., 15., 1., 1., 6., 9., 50., 29., 223., 40., 8., 183., 12., 45., 8., 0., 2., 20., 7., 73., 15., 71., 17., 26., 51., 15., 2., 0., 16., 8., 32., 11., 49., 7., 38., 7., 11., 7., 1., 0., 0., 0., 23., 4., 20., 1., 29., 7., 12., 6., 4., 4., 1., 1., 1., 3., 14., 0., 7., 0., 7., 1., 2., 2., 135., 11., 1921., 90., 92., 216., 125., 120., 66., 16., 13., 16., 16., 4., 5., 8., 4., 6., 12., 9., 40., 13., 30., 13., 42., 5., 8., 6., 4., 5., 8., 2., 1., 3., 8., 1., 0., 4., 5., 8., 2., 0., 14., 1., 4., 0., 8., 1., 1., 39., 1., 11., 1., 13., 4., 12., 0., 2., 2., 8., 23., 8., 39., 3., 3., 10., 4., 28., 11., 19., 5.,
8., 1., 4., 2., 8., 4., 10., 2., 10., 31., 1., 15., 25., 1., 15., 4., 2., 5., 17., 1., 6., 17., 11., 19., 30., 8., 2., 1., 0., 1., 4., 10., 21., 15., 4., 19., 4., 9., 10., 4., 2., 4., 0., 22., 13., 13., 47., 16., 14., 9., 2., 1., 6., 3., 10., 5., 10., 4., 7., 21., 6., 33., 11., 3., 0., 1., 6., 2., 4., 7., 4., 1., 3., 4., 0., 5., 3., 2., 0., 2., 2., 0., 2., 1., 3., 6., 3., 4., 5., 4., 4., 3., 1., 1., 1., 9., 4., 0., 6., 1., 2., 4., 6., 2., 4., 1., 4., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 2., 9., 7., 6., 0., 5., 24., 0., 15., 25., 0., 11., 1., 0., 0., 25., 0., 6., 33., 13., 21., 26., 7., 3., 3., 3., 2., 15., 10., 26., 18., 1., 7., 5., 13., 11., 0., 2., 2., 2., 10., 12., 16., 43., 12., 20., 6., 2., 1., 8., 1., 2., 4., 7., 8., 8., 12., 5., 25., 10., 2., 1., 4., 4., 3., 1., 1., 6., 4., 6., 3., 1., 2., 6., 0., 0., 3., 0., 0., 3., 1., 0., 8., 2., 0., 3., 2., 5., 1., 2., 0., 6., 9., 2., 0., 2., 3., 2., 1., 0., 2., 1., 1., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 3., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 4., 11., 4., 6., 1., 8., 14., 3., 11., 23., 2., 16., 2., 1., 4., 16., 0., 0., 9., 15., 22., 26., 1., 0., 0., 4., 1., 8., 5., 20., 11., 5., 18., 3., 10., 7., 2., 0., 3., 1., 12., 11., 15., 51., 11., 19., 12., 6., 1., 5., 1., 11., 1., 17., 5., 7., 12., 8., 26., 8., 6., 3., 1., 6., 1., 1., 4., 4., 2., 6., 7., 3., 5., 0., 3., 1., 1., 3., 0., 2., 5., 3., 9., 2., 6., 1., 1., 5., 0., 1., 0., 4., 6., 4., 0., 2., 1., 3., 0., 1., 2., 4., 0., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 0., 3., 7., 4., 5., 2., 8., 17., 0., 14., 18., 3., 18., 1., 1., 3., 19., 1., 4., 26., 10., 24., 24., 5., 0., 2., 1., 1., 9., 8., 23., 12., 2., 10., 4., 11., 7., 1., 2., 3., 3., 12., 6., 22., 38., 9., 18., 6., 7., 3., 6., 4., 10., 3., 10., 6., 8., 15., 5., 19., 15., 8., 2., 1., 7., 2., 1., 4., 6., 4., 3., 6., 2., 3., 2., 3., 2., 1., 2., 0., 3., 1., 1., 9., 3., 2., 3., 3., 4., 0., 2., 2., 2., 6., 0., 0., 1., 1., 2., 4., 2., 4., 3., 0., 2., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 3., 9., 2., 5., 2., 8., 34., 1., 9., 17., 0., 17., 1., 1., 1., 16., 0., 5., 32., 10., 22., 30., 9., 1., 0., 1., 0., 5., 7., 33., 11., 0., 23., 5., 14., 5., 2., 1., 0., 3., 11., 10., 20., 45., 14., 27., 10., 3., 2., 9., 2., 8., 7., 7., 7., 10., 11., 7., 13., 4., 4., 0., 1., 6., 0., 1., 2., 4., 2., 2., 3., 2., 7., 2., 3., 1., 5., 1., 0., 2., 3., 1., 10., 0., 2., 3., 1., 4., 0., 1., 0., 0., 7., 2., 0., 0., 1., 2., 1., 2., 0., 4., 2., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 2., 4., 7., 1., 7., 0., 5., 20., 4., 13., 23., 1., 14., 2., 0., 3., 14., 1., 3., 26., 11., 37., 26., 4., 0., 2., 6., 3., 6., 9., 29., 12., 2., 13., 5., 11., 11., 1., 0., 4., 1., 16., 10., 17., 46., 12., 16., 6., 3., 0., 3., 1., 3., 5., 8., 6., 5., 10., 6., 18., 12., 3., 3., 0., 8., 0., 3., 1., 9., 4., 5., 4., 0., 5., 2., 4., 2., 2., 2., 0., 4., 2., 3., 6., 0., 3., 4., 1., 3., 0., 1., 0., 1., 6., 1., 0., 2., 1., 4., 3., 1., 0., 4., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 0., 3., 9., 4., 4., 2., 4., 26., 1., 13., 18., 2., 24., 4., 1., 2., 13., 0., 4., 22., 15., 20., 32., 3., 2., 1., 1., 0., 7., 3., 30., 13., 6., 17., 3., 16., 7., 2., 0., 4., 4., 5., 5., 17., 56., 16., 18., 6., 9., 0., 5., 2., 13., 2., 11., 4., 8., 18., 7., 27., 9., 2., 0., 2., 6., 1., 1., 3., 5., 5., 8., 3., 3., 4., 2., 3., 3., 2., 1., 0., 0., 2., 3., 6., 2., 4., 0., 2., 5., 0., 2., 2., 0., 5., 1., 0., 2., 0., 4., 2., 1., 0., 1., 2., 3., 0., 0., 0., 0., 2., 0., 0., 5., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 2., 2., 7., 2., 8., 2., 5., 17., 1., 15., 24., 0., 8., 2., 1., 2., 7., 2., 4., 16., 7., 22., 19., 5., 0., 1., 0., 1., 5., 4., 19., 14., 1., 15., 2., 14., 11., 3., 1., 4., 5., 10., 12., 17., 49., 14., 19., 10., 6., 1., 6., 3., 8., 5., 10., 2., 5., 18., 12., 28., 8., 3., 1., 2., 11., 1., 1., 0., 5., 3., 6., 10., 3., 3., 4., 3., 2., 2., 1., 0., 2., 4., 3., 8., 1., 3., 4., 1., 1., 1., 1., 2., 0., 6., 3., 0., 2., 0., 0., 0., 3., 3., 2., 1., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 7., 6., 3., 1., 0., 6., 19., 1., 14., 12., 0., 14., 1., 4., 1., 28., 2., 1., 15., 13., 22., 21., 4., 0., 1., 5., 1., 7., 5., 20., 18., 4., 10., 5., 13., 12., 0., 0., 3., 2., 14., 14., 18., 55., 11., 19., 7., 0., 0., 3., 1., 6., 3., 8., 3., 5., 19., 5., 16., 3., 1., 1., 3., 10., 3., 2., 3., 3., 3., 6., 7., 0., 2., 4., 2., 2., 3., 2., 0., 3., 4., 3., 6., 2., 4., 5., 2., 0., 2., 2., 0., 0., 6., 1., 0., 1., 4., 0., 4., 0., 4., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 0., 5., 6., 2., 14., 1., 7., 18., 3., 10., 18., 0., 11., 4., 1., 1., 24., 1., 5., 23., 23., 15., 25., 4., 1., 1., 1., 2., 5., 7., 23., 15., 3., 16., 2., 16., 12., 0., 1., 3., 3., 16., 13., 11., 36., 13., 21., 13., 4., 0., 5., 3., 17., 6., 10., 8., 7., 15., 9., 16., 8., 3., 2., 1., 2., 2., 3., 3., 5., 5., 6., 3., 1., 6., 1., 0., 0., 3., 2., 0., 4., 1., 3., 5., 1., 6., 0., 2., 2., 0., 2., 0., 2., 8., 1., 0., 2., 1., 1., 3., 3., 4., 1., 1., 4., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 7., 8., 4., 0., 1., 6., 25., 1., 13., 37., 3., 19., 4., 3., 1., 13., 1., 6., 26., 13., 26., 33., 5., 0., 0., 4., 2., 9., 7., 15., 17., 3., 20., 3., 7., 10., 3., 0., 2., 1., 11., 7., 20., 44., 10., 26., 14., 8., 2., 4., 6., 4., 2., 6., 6., 10., 16., 14., 16., 5., 2., 2., 0., 12., 1., 4., 3., 5., 1., 2., 2., 2., 2., 4., 2., 1., 1., 4., 0., 1., 1., 1., 6., 2., 6., 3., 1., 4., 0., 0., 0., 3., 8., 0., 0., 2., 2., 2., 1., 2., 3., 1., 1., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 1., 5., 12., 4., 6., 1., 4., 25., 2., 7., 26., 0., 10., 5., 0., 1., 23., 1., 4., 18., 12., 28., 29., 5., 3., 0., 2., 0., 13., 9., 20., 9., 2., 18., 3., 15., 5., 0., 1., 4., 0., 12., 7., 15., 52., 14., 22., 12., 2., 1., 11., 1., 3., 4., 9., 6., 8., 19., 7., 27., 6., 4., 3., 1., 6., 0., 4., 2., 4., 0., 1., 7., 2., 5., 5., 3., 2., 3., 2., 0., 1., 1., 2., 4., 5., 7., 2., 0., 5., 1., 3., 2., 4., 6., 1., 0., 1., 2., 2., 3., 1., 2., 2., 0., 5., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 6., 7., 2., 6., 4., 6., 13., 0., 21., 19., 1., 14., 1., 2., 2., 15., 3., 5., 27., 12., 28., 30., 6., 1., 0., 5., 2., 8., 7., 28., 11., 4., 14., 5., 8., 3., 1., 2., 4., 0., 9., 12., 21., 33., 7., 25., 10., 5., 0., 5., 2., 8., 1., 16., 3., 12., 13., 5., 25., 6., 3., 2., 1., 4., 1., 1., 1., 8., 1., 2., 1., 3., 5., 2., 6., 0., 5., 2., 0., 2., 3., 0., 8., 1., 5., 2., 1., 3., 4., 1., 0., 3., 4., 2., 0., 0., 3., 4., 2., 2., 1., 4., 2., 0., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 4., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 6., 7., 1., 3., 2., 6., 26., 1., 6., 11., 0., 17., 3., 1., 2., 17., 1., 5., 16., 16., 19., 20., 5., 2., 2., 5., 1., 7., 7., 25., 22., 4., 20., 8., 12., 9., 4., 2., 2., 5., 8., 5., 14., 49., 10., 18., 8., 3., 0., 4., 1., 8., 2., 13., 6., 11., 8., 6., 20., 4., 5., 0., 0., 6., 0., 0., 3., 8., 2., 5., 4., 2., 7., 4., 2., 0., 1., 3., 0., 5., 2., 4., 2., 5., 4., 0., 2., 5., 2., 4., 2., 3., 6., 1., 0., 4., 0., 2., 3., 1., 2., 4., 1., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 5., 2., 11., 3., 5., 1., 5., 29., 0., 16., 27., 2., 19., 6., 2., 3., 20., 4., 3., 18., 7., 26., 18., 9., 1., 1., 2., 1., 8., 6., 42., 15., 3., 12., 3., 19., 8., 2., 2., 4., 1., 15., 11., 17., 32., 8., 15., 5., 8., 2., 9., 1., 3., 2., 11., 7., 4., 20., 7., 28., 8., 4., 1., 0., 4., 1., 4., 2., 2., 6., 5., 4., 0., 4., 2., 4., 3., 1., 3., 0., 2., 1., 2., 10., 0., 6., 2., 1., 3., 0., 1., 1., 2., 6., 1., 0., 2., 0., 1., 1., 0., 1., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 3., 2., 6., 4., 3., 0., 3., 30., 3., 17., 27., 0., 19., 4., 1., 3., 19., 12., 5., 26., 10., 20., 24., 5., 1., 0., 2., 4., 15., 8., 28., 14., 5., 18., 3., 14., 11., 2., 3., 5., 2., 11., 14., 25., 46., 15., 19., 12., 4., 1., 5., 2., 12., 2., 15., 6., 4., 8., 6., 19., 11., 1., 1., 0., 10., 1., 3., 2., 7., 3., 3., 4., 1., 3., 1., 3., 0., 0., 2., 0., 2., 0., 0., 4., 2., 0., 1., 0., 4., 1., 3., 0., 2., 12., 4., 0., 3., 2., 1., 1., 2., 0., 0., 2., 3., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 5., 11., 2., 5., 0., 4., 25., 1., 20., 36., 1., 10., 6., 0., 2., 20., 0., 1., 31., 14., 28., 27., 9., 1., 2., 2., 0., 9., 6., 33., 12., 3., 18., 4., 15., 5., 0., 0., 7., 4., 10., 19., 19., 44., 15., 17., 8., 3., 2., 4., 0., 8., 2., 10., 5., 9., 24., 4., 20., 9., 3., 1., 0., 4., 1., 1., 3., 9., 2., 1., 7., 1., 3., 2., 1., 0., 2., 2., 0., 3., 0., 3., 5., 3., 1., 9., 2., 1., 1., 2., 1., 2., 6., 2., 0., 0., 1., 1., 1., 1., 4., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 5., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 2., 10., 1., 6., 0., 7., 15., 2., 1., 12., 2., 12., 3., 1., 3., 18., 2., 3., 17., 15., 16., 27., 4., 2., 2., 1., 1., 15., 12., 30., 14., 3., 16., 4., 16., 9., 5., 0., 5., 0., 10., 7., 22., 41., 12., 15., 7., 5., 2., 10., 3., 7., 5., 5., 7., 5., 11., 8., 23., 5., 4., 1., 1., 6., 2., 2., 1., 6., 4., 2., 5., 4., 7., 3., 4., 3., 1., 2., 0., 4., 1., 4., 3., 2., 6., 3., 2., 3., 0., 1., 1., 5., 9., 0., 0., 0., 0., 2., 2., 2., 4., 3., 2., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 3., 10., 3., 7., 1., 4., 14., 1., 15., 14., 0., 8., 3., 1., 2., 23., 2., 2., 27., 12., 26., 39., 7., 1., 1., 2., 4., 11., 6., 18., 15., 1., 13., 3., 20., 5., 2., 0., 2., 1., 8., 12., 19., 58., 12., 17., 3., 6., 1., 4., 0., 10., 3., 9., 9., 17., 16., 2., 23., 5., 4., 2., 1., 2., 1., 1., 4., 7., 1., 4., 1., 3., 5., 2., 0., 0., 1., 1., 0., 1., 2., 3., 4., 2., 9., 2., 2., 2., 2., 0., 3., 1., 5., 3., 0., 1., 2., 5., 3., 3., 1., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 5., 3., 2., 1., 6., 2., 8., 31., 1., 9., 18., 2., 12., 5., 0., 4., 18., 4., 2., 10., 12., 31., 35., 1., 0., 0., 3., 0., 5., 5., 14., 17., 6., 18., 4., 16., 10., 2., 2., 4., 4., 3., 9., 17., 52., 17., 28., 12., 3., 3., 3., 2., 8., 6., 12., 5., 5., 21., 5., 23., 7., 2., 0., 2., 8., 1., 1., 7., 5., 3., 2., 4., 0., 2., 3., 5., 1., 1., 0., 0., 3., 4., 1., 2., 0., 5., 2., 0., 3., 0., 7., 0., 4., 7., 4., 0., 2., 5., 2., 4., 2., 1., 3., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 3., 5., 10., 4., 5., 3., 8., 24., 1., 26., 30., 0., 11., 7., 1., 0., 18., 2., 8., 14., 13., 19., 30., 8., 2., 0., 5., 1., 8., 7., 22., 17., 3., 23., 5., 15., 12., 3., 3., 3., 2., 13., 10., 8., 47., 10., 21., 9., 3., 1., 7., 2., 8., 4., 9., 9., 11., 18., 4., 12., 11., 4., 6., 1., 3., 1., 2., 3., 4., 1., 4., 4., 1., 4., 4., 1., 0., 2., 4., 0., 2., 3., 5., 4., 2., 4., 3., 0., 5., 3., 2., 1., 2., 9., 1., 0., 3., 2., 4., 3., 2., 1., 1., 1., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 1., 12., 1., 3., 0., 5., 28., 0., 15., 29., 1., 15., 8., 0., 3., 13., 3., 11., 9., 16., 32., 26., 10., 2., 3., 3., 3., 9., 10., 37., 18., 1., 16., 3., 16., 11., 0., 1., 4., 1., 15., 9., 17., 58., 9., 28., 15., 7., 2., 2., 5., 8., 4., 9., 6., 9., 19., 2., 20., 10., 1., 1., 0., 6., 1., 1., 1., 6., 3., 6., 3., 0., 5., 2., 2., 2., 4., 2., 0., 1., 1., 3., 7., 4., 0., 3., 4., 2., 1., 1., 1., 3., 11., 4., 0., 3., 1., 1., 4., 2., 2., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 9., 15., 0., 12., 1., 6., 52., 2., 9., 56., 2., 1., 1., 0., 1., 74., 6., 11., 89., 18., 71., 16., 0., 0., 1., 2., 3., 16., 7., 60., 13., 6., 43., 33., 21., 4., 0., 1., 2., 2., 23., 8., 29., 7., 15., 3., 2., 3., 0., 5., 7., 20., 9., 9., 0., 6., 4., 6., 37., 8., 6., 4., 0., 13., 3., 3., 0., 14., 1., 3., 1., 0., 1., 0., 4., 0., 14., 9., 5., 3., 2., 1., 0., 0., 0., 0., 0., 10., 2., 4., 4., 4., 0., 1., 0., 1., 0., 0., 0., 2., 2., 2., 0., 3., 0., 1., 0., 1., 0., 0., 0., 2., 0., 1., 2., 1., 0., 0., 0., 3., 0., 5., 0., 0., 0., 0., 23., 0., 4., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 2., 3., 13., 0., 12., 1., 8., 45., 1., 3., 65., 3., 3., 1., 0., 2., 63., 14., 10., 80., 12., 101., 10., 6., 0., 3., 0., 0., 18., 11., 59., 16., 2., 41., 32., 14., 4., 0., 2., 5., 6., 19., 5., 21., 7., 9., 9., 1., 2., 0., 9., 4., 16., 4., 15., 4., 8., 2., 5., 33., 11., 6., 3., 0., 14., 2., 1., 5., 11., 2., 0., 0., 1., 0., 0., 3., 1., 12., 10., 1., 4., 3., 5., 0., 0., 0., 0., 0., 7., 0., 4., 4., 3., 2., 1., 0., 1., 0., 0., 0., 1., 1., 1., 0., 2., 0., 2., 0., 3., 0., 0., 0., 0., 0., 2., 1., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 14., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 5., 11., 0., 17., 1., 6., 51., 1., 4., 48., 0., 1., 1., 0., 1., 61., 15., 9., 63., 15., 83., 7., 4., 0., 0., 3., 4., 10., 11., 46., 12., 2., 37., 27., 8., 6., 0., 0., 3., 7., 16., 7., 11., 10., 19., 8., 1., 3., 0., 6., 4., 13., 6., 9., 1., 11., 3., 3., 28., 7., 6., 1., 0., 16., 3., 8., 3., 17., 2., 3., 2., 0., 1., 0., 6., 1., 18., 8., 4., 4., 3., 3., 0., 0., 0., 0., 0., 9., 8., 2., 2., 2., 2., 0., 0., 2., 0., 1., 0., 0., 2., 1., 0., 4., 0., 0., 0., 1., 0., 0., 0., 0., 0., 5., 2., 3., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 23., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 0., 5., 7., 0., 17., 0., 7., 38., 2., 10., 54., 2., 3., 1., 0., 3., 64., 8., 7., 62., 21., 96., 17., 3., 0., 0., 4., 1., 12., 11., 56., 8., 3., 36., 38., 12., 2., 0., 2., 7., 2., 31., 4., 24., 6., 16., 3., 3., 2., 0., 11., 2., 22., 4., 13., 1., 7., 4., 2., 43., 9., 11., 4., 0., 19., 3., 7., 4., 5., 1., 4., 2., 1., 2., 0., 6., 0., 16., 7., 5., 4., 0., 4., 0., 0., 0., 0., 0., 9., 3., 4., 2., 8., 1., 1., 0., 1., 0., 1., 0., 2., 2., 5., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 3., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 25., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 3., 9., 0., 19., 2., 5., 56., 0., 9., 62., 0., 6., 1., 0., 4., 90., 10., 6., 90., 15., 81., 9., 6., 0., 0., 5., 1., 17., 8., 55., 11., 2., 50., 27., 16., 4., 0., 2., 11., 3., 27., 7., 28., 13., 14., 2., 2., 2., 0., 5., 2., 15., 4., 19., 5., 11., 3., 3., 37., 12., 6., 2., 0., 6., 2., 11., 1., 6., 1., 4., 1., 2., 0., 0., 8., 4., 18., 12., 4., 3., 1., 1., 0., 0., 0., 0., 0., 15., 1., 5., 3., 5., 1., 0., 0., 0., 0., 1., 0., 0., 3., 2., 0., 3., 0., 3., 0., 1., 0., 0., 0., 0., 0., 2., 2., 1., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 20., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 3., 3., 17., 0., 16., 0., 4., 59., 1., 8., 52., 2., 7., 2., 0., 1., 70., 9., 8., 69., 15., 89., 10., 4., 0., 2., 2., 1., 15., 18., 50., 9., 4., 39., 38., 12., 4., 0., 0., 9., 0., 22., 6., 17., 6., 13., 8., 3., 2., 0., 5., 3., 13., 4., 11., 1., 6., 3., 3., 27., 6., 7., 3., 0., 18., 5., 13., 2., 15., 3., 4., 1., 1., 1., 0., 4., 1., 13., 9., 2., 5., 1., 2., 0., 0., 0., 0., 0., 13., 2., 3., 0., 7., 0., 1., 0., 1., 0., 1., 0., 3., 4., 4., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 3., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 26., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 6., 6., 0., 11., 1., 11., 41., 1., 9., 58., 1., 5., 1., 0., 3., 65., 11., 6., 88., 15., 88., 11., 4., 0., 0., 5., 3., 18., 9., 53., 6., 3., 45., 33., 16., 2., 0., 2., 7., 2., 29., 6., 21., 4., 13., 4., 3., 2., 0., 13., 5., 19., 5., 15., 2., 7., 0., 6., 39., 8., 5., 1., 0., 11., 6., 5., 6., 12., 2., 5., 2., 0., 0., 0., 4., 3., 19., 11., 2., 2., 0., 1., 0., 0., 0., 0., 0., 9., 2., 3., 3., 4., 2., 1., 0., 0., 0., 0., 0., 1., 1., 2., 0., 2., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 2., 3., 0., 0., 0., 0., 0., 8., 0., 0., 0., 0., 35., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
20., 3., 2., 12., 16., 7., 31., 3., 13., 173., 4., 31., 212., 5., 12., 7., 0., 8., 82., 2., 21., 291., 42., 352., 46., 16., 1., 1., 7., 6., 55., 25., 239., 42., 8., 159., 11., 41., 3., 0., 2., 15., 12., 85., 20., 77., 15., 38., 36., 9., 1., 1., 28., 5., 41., 7., 45., 12., 31., 8., 10., 7., 4., 0., 0., 0., 12., 2., 23., 3., 25., 4., 12., 5., 6., 0., 0., 1., 1., 1., 14., 4., 5., 3., 5., 1., 0., 7., 137., 8., 1875., 93., 107., 206., 87., 97., 70., 7., 9., 13., 12., 1., 1., 5., 3., 2., 8., 5., 40., 24., 33., 10., 37., 5., 9., 5., 6., 10., 5., 0., 4., 5., 7., 1., 0., 4., 6., 14., 3., 0., 8., 2., 2., 0., 6., 4., 5., 27., 0., 14., 3., 20., 3., 13., 3., 3., 1., 9., 26., 2., 37., 7., 7., 7., 3., 29., 8., 12., 9.,
10., 3., 2., 12., 28., 3., 29., 3., 19., 157., 5., 28., 194., 7., 11., 5., 1., 10., 75., 6., 15., 293., 48., 309., 55., 13., 4., 1., 6., 5., 46., 34., 209., 34., 5., 148., 17., 45., 8., 0., 0., 18., 8., 91., 15., 77., 23., 33., 44., 14., 4., 0., 24., 6., 34., 7., 43., 9., 28., 2., 9., 6., 1., 0., 3., 0., 23., 3., 11., 1., 30., 4., 7., 3., 2., 4., 1., 1., 1., 0., 6., 5., 6., 1., 6., 0., 1., 7., 142., 11., 1928., 98., 105., 202., 106., 100., 74., 21., 16., 19., 13., 1., 2., 3., 2., 3., 7., 11., 41., 13., 35., 16., 44., 11., 8., 0., 6., 3., 3., 0., 5., 1., 7., 1., 0., 2., 5., 9., 1., 0., 13., 2., 2., 0., 8., 4., 2., 32., 2., 12., 2., 8., 1., 23., 5., 1., 1., 6., 23., 3., 25., 11., 1., 9., 0., 32., 4., 10., 7.,
16., 4., 3., 10., 38., 9., 33., 4., 15., 172., 5., 33., 199., 4., 15., 9., 1., 7., 83., 2., 19., 307., 49., 329., 38., 19., 0., 2., 11., 4., 50., 22., 264., 28., 9., 154., 16., 49., 6., 0., 4., 12., 11., 88., 20., 89., 12., 33., 44., 14., 4., 1., 21., 6., 35., 11., 55., 8., 31., 6., 11., 8., 2., 0., 0., 0., 14., 10., 12., 0., 36., 5., 10., 1., 1., 0., 0., 3., 4., 1., 18., 4., 8., 2., 10., 1., 1., 4., 162., 9., 1813., 80., 107., 225., 95., 107., 83., 17., 7., 20., 3., 0., 3., 17., 6., 3., 10., 8., 27., 12., 29., 21., 55., 3., 14., 3., 2., 6., 5., 1., 5., 1., 10., 0., 0., 3., 3., 15., 4., 0., 12., 3., 6., 0., 8., 1., 4., 26., 2., 17., 5., 17., 1., 19., 2., 4., 4., 4., 22., 6., 27., 6., 10., 3., 7., 41., 4., 16., 5.,
10., 0., 3., 7., 11., 4., 7., 1., 8., 12., 1., 22., 32., 0., 16., 5., 1., 3., 8., 3., 4., 21., 14., 21., 21., 8., 1., 0., 6., 3., 9., 9., 35., 8., 7., 16., 2., 17., 11., 1., 1., 5., 0., 11., 9., 30., 51., 9., 25., 4., 4., 2., 4., 2., 3., 4., 15., 2., 7., 18., 4., 25., 9., 6., 1., 1., 10., 2., 5., 2., 6., 4., 5., 5., 0., 3., 2., 0., 1., 5., 0., 0., 1., 2., 4., 5., 3., 4., 4., 1., 1., 1., 0., 2., 1., 3., 2., 0., 1., 3., 0., 2., 4., 1., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 3., 7., 8., 3., 8., 0., 7., 10., 0., 11., 22., 1., 15., 3., 2., 2., 12., 0., 1., 26., 9., 28., 24., 5., 1., 1., 0., 3., 10., 6., 29., 13., 2., 8., 6., 11., 11., 0., 0., 4., 1., 7., 10., 24., 44., 12., 19., 8., 4., 1., 2., 1., 11., 4., 7., 10., 4., 19., 10., 9., 11., 0., 0., 0., 2., 1., 3., 1., 3., 9., 2., 2., 2., 2., 4., 3., 0., 2., 1., 0., 2., 1., 2., 7., 1., 1., 3., 1., 5., 2., 2., 2., 2., 4., 3., 0., 3., 0., 1., 2., 3., 5., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 1., 5., 5., 3., 7., 2., 11., 28., 3., 14., 17., 1., 18., 1., 0., 1., 7., 2., 7., 30., 12., 32., 30., 7., 1., 1., 4., 2., 4., 12., 30., 28., 3., 15., 4., 12., 10., 3., 0., 5., 3., 8., 14., 18., 52., 16., 22., 8., 2., 2., 0., 2., 13., 3., 5., 7., 2., 12., 8., 15., 3., 3., 1., 1., 12., 1., 2., 2., 4., 3., 3., 8., 4., 4., 4., 1., 2., 1., 2., 0., 3., 3., 0., 4., 5., 2., 3., 1., 4., 1., 1., 0., 1., 9., 3., 0., 3., 1., 1., 1., 6., 2., 3., 0., 3., 0., 0., 0., 0., 6., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 3., 5., 1., 7., 2., 7., 36., 0., 14., 35., 2., 13., 4., 0., 4., 12., 0., 4., 29., 13., 31., 23., 7., 1., 3., 4., 2., 4., 4., 31., 13., 3., 11., 4., 13., 10., 4., 1., 2., 0., 8., 8., 17., 50., 13., 28., 5., 4., 1., 1., 3., 8., 2., 9., 6., 8., 11., 6., 22., 8., 4., 2., 0., 2., 1., 5., 1., 5., 3., 0., 2., 1., 6., 5., 2., 2., 0., 3., 0., 2., 2., 2., 2., 0., 3., 2., 0., 5., 0., 5., 0., 2., 5., 0., 0., 1., 2., 0., 1., 1., 2., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 0., 1., 7., 10., 7., 5., 1., 10., 22., 2., 6., 17., 0., 12., 2., 2., 4., 18., 7., 2., 19., 15., 23., 31., 5., 1., 2., 1., 2., 8., 19., 20., 18., 5., 11., 3., 17., 12., 0., 0., 3., 5., 12., 10., 17., 54., 16., 20., 12., 2., 1., 5., 2., 5., 1., 9., 5., 8., 10., 9., 28., 8., 4., 0., 3., 6., 0., 3., 1., 4., 2., 0., 4., 2., 2., 0., 6., 3., 3., 3., 0., 0., 3., 2., 6., 2., 4., 4., 0., 6., 1., 1., 2., 3., 4., 3., 0., 5., 2., 1., 2., 3., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 1., 9., 12., 2., 8., 0., 8., 29., 1., 8., 14., 2., 18., 2., 0., 1., 16., 1., 5., 24., 13., 15., 29., 4., 0., 1., 0., 2., 8., 6., 21., 15., 4., 11., 2., 12., 13., 5., 1., 3., 0., 14., 15., 17., 44., 12., 26., 6., 8., 2., 3., 1., 3., 2., 7., 7., 6., 10., 11., 25., 4., 4., 2., 3., 4., 1., 3., 0., 9., 3., 4., 1., 2., 5., 2., 2., 0., 2., 4., 0., 1., 1., 5., 6., 2., 5., 2., 2., 6., 1., 2., 1., 1., 11., 7., 0., 2., 0., 3., 1., 2., 1., 3., 2., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 7., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 8., 15., 2., 5., 2., 7., 23., 1., 15., 19., 0., 11., 1., 0., 3., 16., 2., 3., 11., 12., 27., 19., 9., 2., 1., 4., 3., 10., 6., 22., 18., 4., 18., 7., 12., 9., 4., 1., 4., 5., 16., 7., 11., 42., 12., 23., 11., 4., 2., 5., 2., 7., 4., 11., 6., 7., 18., 3., 19., 9., 2., 3., 0., 5., 0., 4., 3., 9., 2., 7., 5., 0., 4., 3., 2., 1., 2., 0., 0., 0., 1., 1., 3., 2., 4., 3., 2., 6., 0., 2., 0., 3., 9., 2., 0., 1., 3., 4., 1., 1., 2., 3., 3., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 4., 5., 5., 2., 1., 7., 15., 2., 11., 18., 2., 15., 4., 0., 3., 14., 3., 3., 20., 7., 15., 24., 3., 1., 1., 1., 2., 8., 4., 30., 15., 3., 11., 4., 12., 9., 2., 1., 4., 4., 13., 11., 15., 48., 20., 16., 8., 4., 1., 5., 1., 6., 1., 10., 5., 6., 17., 3., 16., 8., 5., 1., 1., 7., 2., 3., 2., 6., 7., 3., 5., 0., 3., 2., 3., 0., 1., 2., 0., 1., 3., 2., 8., 3., 5., 1., 1., 7., 1., 4., 1., 0., 5., 2., 0., 3., 3., 2., 5., 3., 0., 3., 1., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 3., 9., 8., 0., 5., 0., 4., 29., 1., 10., 28., 2., 21., 5., 1., 4., 20., 1., 4., 35., 7., 21., 18., 6., 2., 1., 2., 1., 9., 8., 28., 15., 3., 9., 11., 20., 15., 1., 1., 5., 4., 13., 14., 16., 45., 13., 13., 13., 5., 1., 4., 2., 5., 0., 12., 5., 12., 21., 6., 19., 6., 4., 1., 0., 8., 0., 3., 1., 2., 5., 7., 7., 1., 5., 2., 2., 1., 2., 3., 0., 2., 3., 4., 0., 3., 2., 2., 1., 1., 0., 5., 1., 0., 11., 2., 0., 2., 2., 1., 1., 1., 0., 4., 1., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 2., 3., 7., 2., 9., 0., 4., 15., 1., 5., 23., 0., 14., 4., 3., 2., 16., 2., 7., 30., 18., 27., 31., 8., 3., 1., 4., 2., 5., 11., 22., 20., 4., 14., 6., 13., 10., 0., 0., 4., 1., 18., 7., 25., 43., 11., 30., 7., 6., 2., 8., 1., 8., 7., 7., 4., 7., 16., 6., 33., 4., 4., 2., 0., 3., 0., 1., 1., 9., 6., 5., 3., 0., 1., 1., 0., 2., 3., 5., 0., 2., 1., 2., 8., 2., 5., 3., 0., 2., 1., 3., 3., 2., 7., 1., 0., 3., 0., 0., 2., 1., 0., 6., 0., 2., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 6., 9., 3., 2., 0., 7., 20., 0., 13., 18., 2., 19., 3., 0., 0., 25., 4., 3., 14., 14., 31., 31., 8., 1., 0., 1., 4., 6., 8., 29., 20., 2., 7., 3., 11., 3., 1., 0., 6., 0., 10., 15., 10., 56., 10., 29., 10., 8., 1., 4., 2., 17., 1., 6., 8., 7., 13., 4., 21., 10., 2., 1., 2., 5., 0., 3., 4., 8., 0., 7., 2., 3., 5., 2., 1., 1., 4., 2., 0., 1., 3., 4., 12., 4., 2., 1., 1., 2., 0., 2., 0., 1., 7., 4., 0., 1., 2., 2., 2., 1., 0., 3., 0., 3., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 0., 4., 12., 2., 7., 1., 2., 8., 2., 13., 27., 0., 14., 3., 0., 2., 10., 0., 5., 25., 12., 21., 20., 9., 1., 2., 5., 3., 9., 5., 27., 20., 1., 22., 2., 21., 9., 2., 2., 4., 3., 10., 8., 29., 46., 5., 23., 9., 3., 2., 7., 2., 6., 3., 8., 5., 7., 13., 10., 21., 5., 3., 0., 0., 6., 4., 3., 2., 5., 2., 4., 2., 4., 3., 4., 1., 2., 3., 3., 0., 0., 1., 2., 7., 0., 2., 1., 0., 4., 1., 0., 3., 4., 8., 0., 0., 4., 0., 3., 3., 1., 4., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 1., 3., 9., 2., 3., 3., 4., 25., 1., 13., 21., 0., 12., 1., 2., 1., 23., 2., 3., 13., 9., 30., 28., 6., 1., 1., 7., 0., 5., 5., 30., 21., 4., 17., 3., 18., 10., 2., 2., 5., 1., 16., 10., 19., 47., 10., 24., 9., 3., 0., 5., 5., 8., 5., 9., 9., 4., 19., 6., 26., 9., 2., 0., 2., 6., 1., 6., 1., 5., 4., 8., 3., 0., 4., 0., 3., 0., 4., 3., 0., 2., 2., 0., 8., 0., 1., 2., 1., 3., 0., 6., 2., 0., 12., 0., 0., 3., 3., 2., 3., 1., 2., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 3., 2., 4., 2., 6., 0., 12., 20., 2., 15., 28., 3., 15., 4., 0., 3., 14., 5., 5., 22., 6., 22., 27., 7., 0., 1., 1., 1., 8., 5., 41., 20., 2., 15., 4., 15., 9., 1., 1., 3., 1., 16., 5., 18., 39., 8., 18., 7., 6., 1., 7., 1., 5., 3., 12., 8., 9., 11., 8., 27., 6., 3., 1., 2., 11., 0., 3., 1., 4., 2., 4., 5., 1., 1., 4., 0., 0., 4., 2., 0., 1., 2., 1., 7., 3., 6., 1., 2., 7., 3., 2., 1., 2., 10., 3., 0., 2., 1., 0., 1., 2., 0., 2., 3., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 3., 5., 11., 3., 4., 0., 6., 10., 0., 16., 23., 3., 19., 6., 0., 1., 23., 4., 6., 22., 11., 33., 30., 12., 1., 1., 7., 0., 9., 7., 29., 16., 2., 19., 4., 15., 5., 1., 2., 2., 3., 13., 17., 20., 47., 7., 21., 9., 4., 0., 6., 2., 11., 1., 12., 4., 9., 14., 4., 26., 7., 4., 0., 1., 9., 2., 5., 0., 3., 1., 6., 3., 7., 4., 7., 1., 3., 4., 4., 0., 1., 1., 2., 5., 3., 5., 0., 1., 3., 1., 2., 0., 1., 8., 2., 0., 2., 2., 2., 2., 4., 3., 5., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 2., 8., 2., 8., 5., 6., 4., 0., 17., 25., 0., 14., 5., 1., 1., 17., 5., 5., 23., 11., 18., 21., 7., 1., 1., 4., 0., 6., 13., 25., 13., 4., 12., 2., 10., 10., 1., 2., 4., 1., 14., 8., 11., 49., 13., 18., 8., 6., 0., 4., 1., 4., 5., 6., 5., 9., 14., 5., 22., 9., 3., 2., 1., 10., 1., 3., 2., 7., 3., 3., 7., 1., 0., 3., 2., 0., 3., 0., 0., 5., 1., 1., 7., 2., 5., 4., 4., 3., 3., 4., 1., 3., 7., 1., 0., 1., 1., 1., 3., 2., 1., 4., 1., 4., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 3., 7., 14., 5., 10., 2., 2., 25., 0., 16., 14., 1., 12., 4., 2., 2., 16., 2., 2., 15., 12., 13., 26., 4., 1., 1., 3., 1., 7., 9., 21., 13., 2., 4., 2., 18., 8., 2., 0., 1., 3., 9., 12., 18., 39., 12., 29., 4., 3., 1., 10., 3., 9., 3., 9., 10., 5., 12., 1., 27., 9., 4., 0., 1., 5., 1., 2., 2., 5., 2., 5., 4., 3., 6., 3., 3., 0., 2., 0., 0., 1., 1., 0., 9., 2., 1., 3., 4., 1., 2., 2., 0., 0., 9., 4., 0., 1., 2., 0., 2., 1., 4., 4., 0., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 6., 10., 4., 4., 0., 4., 39., 1., 9., 27., 1., 16., 1., 2., 2., 26., 0., 6., 10., 8., 30., 26., 7., 2., 2., 1., 0., 6., 11., 24., 16., 6., 5., 5., 12., 6., 1., 2., 3., 2., 15., 6., 18., 39., 18., 15., 11., 8., 1., 6., 2., 4., 5., 8., 5., 11., 11., 6., 18., 4., 1., 1., 2., 12., 1., 0., 2., 6., 2., 6., 3., 1., 3., 2., 2., 0., 2., 1., 0., 0., 0., 1., 5., 3., 4., 2., 2., 7., 1., 2., 1., 4., 5., 1., 0., 1., 5., 0., 4., 5., 0., 1., 0., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 7., 7., 2., 6., 0., 5., 14., 2., 12., 26., 3., 17., 2., 3., 2., 27., 3., 2., 19., 6., 17., 31., 4., 1., 1., 3., 2., 12., 9., 32., 12., 4., 14., 4., 13., 9., 4., 2., 1., 4., 15., 13., 22., 46., 20., 15., 11., 2., 2., 9., 1., 5., 1., 9., 3., 11., 13., 7., 23., 9., 1., 0., 4., 10., 0., 2., 1., 6., 4., 2., 0., 2., 5., 3., 3., 1., 2., 3., 0., 1., 2., 3., 6., 2., 3., 2., 0., 7., 2., 1., 1., 2., 6., 1., 0., 2., 4., 2., 2., 4., 4., 3., 2., 3., 0., 0., 0., 0., 4., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 1., 4., 7., 5., 9., 0., 7., 18., 2., 17., 20., 2., 9., 4., 2., 2., 13., 4., 2., 14., 18., 23., 27., 2., 1., 0., 4., 4., 9., 12., 26., 20., 2., 17., 3., 17., 5., 3., 1., 3., 5., 15., 5., 33., 41., 14., 22., 6., 6., 2., 4., 2., 10., 2., 2., 5., 10., 15., 9., 30., 6., 5., 1., 2., 6., 1., 7., 1., 4., 3., 3., 5., 3., 5., 7., 4., 2., 3., 5., 0., 4., 1., 1., 7., 3., 7., 2., 3., 5., 0., 2., 2., 3., 6., 3., 0., 4., 4., 1., 6., 4., 4., 4., 1., 2., 0., 0., 0., 0., 2., 0., 0., 6., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 4., 7., 7., 2., 7., 1., 4., 35., 2., 8., 21., 2., 20., 2., 2., 3., 17., 0., 5., 28., 9., 27., 17., 2., 1., 0., 1., 1., 9., 5., 24., 19., 4., 24., 8., 17., 10., 1., 0., 1., 4., 14., 14., 14., 42., 13., 23., 9., 8., 2., 3., 1., 6., 1., 11., 9., 8., 18., 3., 26., 7., 7., 0., 0., 8., 0., 1., 1., 6., 0., 5., 2., 1., 3., 4., 6., 2., 4., 0., 0., 0., 5., 0., 8., 0., 5., 1., 4., 4., 1., 1., 2., 2., 4., 0., 0., 3., 3., 2., 3., 2., 1., 2., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 1., 7., 3., 3., 2., 6., 32., 0., 9., 16., 0., 9., 1., 1., 0., 17., 1., 3., 12., 11., 31., 23., 6., 3., 0., 4., 2., 7., 10., 19., 18., 4., 12., 1., 17., 10., 5., 1., 5., 0., 16., 7., 14., 45., 14., 24., 4., 5., 3., 0., 1., 4., 2., 14., 5., 7., 18., 3., 23., 7., 2., 1., 1., 7., 0., 1., 1., 5., 7., 2., 1., 2., 5., 1., 4., 0., 2., 2., 0., 3., 2., 3., 7., 1., 1., 3., 1., 4., 2., 1., 0., 4., 8., 2., 0., 2., 2., 3., 1., 1., 0., 2., 0., 2., 0., 0., 0., 0., 1., 0., 0., 5., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 0., 4., 10., 0., 15., 1., 7., 44., 0., 9., 62., 0., 4., 2., 0., 0., 69., 9., 12., 77., 15., 84., 9., 2., 0., 1., 6., 4., 16., 6., 43., 12., 1., 42., 38., 23., 6., 0., 2., 12., 0., 24., 2., 20., 6., 18., 3., 3., 0., 0., 8., 7., 8., 3., 19., 4., 10., 1., 3., 41., 10., 8., 1., 0., 13., 2., 12., 4., 14., 1., 3., 0., 0., 1., 0., 3., 0., 17., 8., 1., 4., 0., 2., 0., 0., 0., 0., 0., 10., 3., 1., 0., 5., 1., 0., 0., 3., 0., 1., 0., 0., 3., 2., 0., 1., 0., 2., 0., 1., 0., 0., 0., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 23., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 5., 12., 0., 16., 3., 8., 45., 1., 6., 69., 1., 4., 1., 0., 2., 81., 6., 5., 91., 20., 74., 13., 4., 0., 1., 3., 1., 14., 8., 55., 10., 2., 32., 41., 12., 6., 0., 0., 11., 4., 26., 3., 26., 8., 16., 4., 3., 2., 0., 7., 2., 19., 6., 17., 4., 10., 2., 5., 33., 7., 10., 0., 0., 11., 8., 11., 3., 10., 2., 6., 3., 1., 0., 0., 9., 3., 11., 6., 2., 3., 1., 2., 0., 0., 0., 0., 0., 11., 5., 1., 1., 3., 1., 1., 0., 4., 0., 1., 0., 0., 2., 0., 0., 4., 0., 0., 0., 3., 0., 0., 0., 1., 0., 3., 1., 2., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 22., 0., 4., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 5., 9., 0., 10., 1., 11., 55., 2., 5., 56., 1., 4., 0., 0., 4., 66., 7., 12., 81., 15., 82., 16., 3., 0., 2., 3., 5., 17., 10., 59., 19., 2., 41., 30., 18., 1., 0., 1., 3., 9., 20., 9., 18., 7., 14., 12., 3., 2., 0., 11., 3., 16., 4., 12., 3., 13., 6., 5., 35., 11., 2., 1., 0., 7., 3., 6., 3., 12., 1., 4., 0., 0., 2., 0., 6., 0., 18., 11., 3., 4., 1., 0., 0., 0., 0., 0., 0., 9., 4., 3., 1., 2., 1., 2., 0., 0., 0., 2., 0., 1., 3., 2., 0., 4., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 1., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 19., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 5., 9., 0., 15., 3., 9., 53., 2., 6., 47., 2., 7., 1., 0., 1., 66., 4., 5., 83., 14., 93., 8., 0., 0., 2., 2., 3., 21., 7., 73., 14., 3., 44., 30., 9., 8., 0., 1., 4., 5., 18., 6., 25., 7., 12., 5., 2., 1., 0., 12., 4., 10., 5., 17., 2., 10., 3., 4., 45., 11., 5., 4., 0., 9., 4., 13., 3., 9., 4., 3., 0., 0., 0., 0., 2., 1., 16., 8., 5., 2., 1., 3., 0., 0., 0., 0., 0., 13., 1., 3., 1., 1., 0., 1., 0., 2., 0., 3., 0., 0., 0., 1., 0., 2., 0., 1., 0., 1., 0., 0., 0., 1., 0., 1., 1., 3., 0., 0., 0., 0., 0., 9., 0., 0., 0., 0., 23., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 7., 12., 0., 17., 1., 5., 50., 0., 6., 62., 1., 7., 0., 0., 1., 58., 8., 6., 77., 20., 84., 13., 5., 0., 1., 2., 1., 10., 8., 42., 9., 1., 43., 29., 15., 1., 0., 0., 5., 1., 21., 5., 26., 6., 10., 4., 1., 3., 0., 10., 9., 20., 4., 11., 1., 6., 4., 5., 42., 3., 9., 3., 0., 11., 3., 5., 2., 9., 3., 3., 1., 1., 0., 0., 2., 1., 9., 11., 7., 4., 0., 3., 0., 0., 0., 0., 0., 10., 3., 4., 1., 6., 0., 2., 0., 0., 0., 1., 0., 0., 2., 3., 0., 3., 0., 1., 0., 1., 0., 0., 0., 1., 0., 0., 1., 1., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 28., 0., 4., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 1., 8., 9., 0., 9., 2., 12., 54., 3., 4., 73., 0., 6., 1., 0., 3., 81., 9., 7., 70., 13., 80., 10., 6., 0., 0., 2., 3., 17., 14., 43., 13., 2., 39., 32., 12., 5., 0., 2., 2., 2., 28., 5., 13., 8., 6., 2., 5., 2., 0., 7., 4., 19., 3., 16., 3., 6., 5., 1., 30., 9., 8., 1., 0., 16., 5., 9., 2., 8., 2., 5., 0., 1., 0., 0., 4., 1., 18., 17., 4., 4., 1., 1., 0., 0., 0., 0., 0., 10., 2., 4., 4., 4., 2., 1., 0., 1., 0., 0., 0., 1., 2., 3., 0., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 2., 0., 7., 0., 0., 0., 0., 25., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 4., 11., 0., 17., 5., 9., 56., 1., 11., 64., 4., 4., 2., 0., 0., 88., 8., 9., 74., 18., 77., 15., 3., 0., 4., 6., 2., 17., 16., 60., 8., 2., 37., 42., 14., 3., 0., 1., 4., 1., 31., 7., 24., 7., 13., 1., 2., 2., 0., 6., 2., 18., 5., 21., 4., 9., 6., 1., 40., 8., 6., 3., 0., 15., 2., 9., 2., 12., 2., 5., 0., 1., 1., 0., 7., 3., 14., 8., 6., 5., 0., 3., 0., 0., 0., 0., 0., 11., 2., 2., 1., 4., 3., 1., 0., 0., 0., 0., 0., 2., 3., 0., 0., 3., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 4., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 21., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
27., 2., 2., 8., 19., 3., 32., 1., 20., 173., 1., 23., 213., 7., 25., 4., 0., 6., 93., 1., 16., 308., 40., 330., 29., 18., 0., 2., 6., 2., 29., 41., 234., 43., 4., 160., 16., 39., 8., 0., 5., 23., 6., 91., 19., 98., 10., 32., 48., 15., 1., 2., 34., 11., 25., 7., 50., 11., 21., 4., 14., 9., 3., 0., 1., 0., 24., 7., 14., 0., 35., 4., 16., 10., 0., 6., 1., 0., 4., 3., 7., 0., 8., 3., 9., 1., 0., 5., 127., 10., 1851., 92., 105., 245., 102., 97., 69., 16., 18., 25., 15., 0., 2., 5., 5., 7., 11., 8., 34., 16., 36., 13., 32., 5., 8., 4., 3., 5., 7., 0., 1., 5., 8., 4., 0., 4., 4., 19., 4., 0., 8., 5., 3., 0., 4., 2., 4., 28., 1., 12., 2., 11., 2., 14., 3., 2., 5., 7., 26., 7., 27., 13., 6., 9., 5., 35., 9., 7., 5.,
12., 6., 6., 8., 23., 6., 28., 2., 17., 167., 3., 28., 173., 4., 12., 7., 0., 7., 84., 2., 14., 273., 42., 303., 38., 12., 0., 1., 5., 5., 34., 25., 215., 34., 8., 155., 13., 35., 3., 0., 5., 7., 9., 79., 23., 77., 14., 32., 42., 19., 1., 1., 33., 5., 32., 13., 50., 11., 29., 11., 13., 8., 1., 0., 2., 0., 32., 11., 8., 3., 23., 6., 7., 9., 1., 2., 0., 0., 3., 1., 9., 3., 6., 3., 8., 2., 1., 3., 144., 10., 1924., 92., 112., 259., 92., 97., 75., 16., 15., 14., 20., 0., 3., 6., 6., 4., 8., 16., 35., 16., 39., 21., 38., 6., 7., 6., 6., 5., 6., 2., 6., 5., 6., 3., 0., 5., 3., 11., 2., 0., 12., 2., 1., 0., 3., 1., 3., 33., 2., 4., 1., 13., 5., 21., 1., 2., 1., 1., 28., 3., 33., 4., 3., 9., 3., 38., 6., 4., 7.,
12., 0., 1., 6., 8., 2., 6., 0., 8., 18., 0., 11., 22., 0., 15., 2., 0., 3., 16., 0., 10., 23., 11., 19., 38., 12., 1., 1., 2., 3., 6., 5., 15., 19., 2., 12., 2., 16., 8., 1., 1., 7., 3., 12., 12., 14., 55., 8., 16., 6., 5., 2., 5., 2., 6., 3., 16., 1., 10., 13., 5., 23., 9., 3., 2., 0., 4., 1., 1., 3., 2., 5., 1., 5., 2., 5., 3., 2., 3., 2., 2., 0., 1., 1., 2., 7., 2., 3., 0., 7., 5., 0., 4., 1., 2., 6., 4., 0., 0., 2., 4., 1., 4., 3., 3., 0., 3., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
16., 2., 1., 6., 5., 0., 8., 3., 4., 26., 0., 17., 21., 1., 15., 4., 0., 2., 16., 3., 2., 6., 12., 35., 21., 5., 0., 1., 2., 3., 9., 4., 36., 18., 1., 12., 2., 16., 6., 1., 1., 2., 1., 16., 15., 16., 43., 18., 12., 13., 3., 1., 5., 1., 6., 5., 10., 8., 10., 21., 4., 19., 8., 2., 2., 4., 10., 2., 2., 1., 3., 4., 3., 4., 3., 3., 2., 5., 1., 1., 2., 0., 3., 2., 0., 4., 2., 6., 5., 1., 3., 0., 6., 1., 3., 8., 2., 0., 3., 0., 2., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 3., 9., 5., 9., 2., 6., 22., 3., 2., 34., 1., 16., 3., 1., 0., 22., 1., 4., 30., 17., 32., 23., 4., 2., 3., 4., 0., 6., 4., 31., 18., 1., 12., 2., 12., 7., 4., 3., 3., 2., 8., 18., 15., 54., 11., 13., 6., 4., 1., 3., 2., 5., 1., 9., 5., 6., 25., 5., 25., 3., 4., 1., 2., 6., 0., 4., 3., 7., 4., 4., 6., 1., 4., 5., 2., 2., 2., 3., 0., 4., 2., 2., 10., 0., 3., 1., 3., 5., 4., 2., 0., 5., 6., 0., 0., 1., 3., 3., 5., 0., 2., 1., 1., 2., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 1., 7., 4., 1., 4., 0., 9., 26., 0., 11., 18., 1., 13., 4., 0., 2., 19., 2., 5., 22., 13., 23., 24., 5., 1., 1., 4., 2., 6., 11., 31., 16., 4., 15., 0., 17., 11., 2., 1., 2., 2., 13., 11., 10., 51., 18., 20., 7., 3., 1., 5., 5., 15., 1., 5., 7., 12., 16., 8., 18., 5., 2., 3., 0., 4., 3., 3., 2., 2., 2., 3., 5., 2., 8., 1., 2., 2., 2., 1., 0., 1., 1., 2., 12., 0., 1., 3., 1., 4., 1., 4., 0., 1., 10., 0., 0., 2., 0., 0., 2., 1., 3., 4., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 3., 3., 2., 9., 2., 5., 0., 10., 16., 3., 11., 31., 3., 12., 8., 0., 2., 25., 2., 4., 6., 12., 14., 23., 5., 0., 0., 1., 4., 15., 5., 38., 15., 2., 15., 3., 15., 3., 3., 0., 3., 1., 13., 9., 11., 50., 7., 26., 10., 5., 0., 7., 2., 11., 3., 6., 5., 7., 12., 5., 19., 8., 2., 3., 2., 8., 1., 3., 2., 4., 3., 4., 3., 2., 6., 4., 0., 0., 3., 2., 0., 3., 0., 1., 10., 3., 6., 3., 1., 3., 1., 2., 0., 2., 6., 1., 0., 2., 2., 4., 1., 3., 3., 2., 1., 1., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 1., 3., 17., 5., 7., 1., 3., 23., 0., 15., 20., 1., 16., 4., 1., 2., 25., 1., 6., 32., 18., 19., 28., 7., 1., 1., 4., 1., 4., 7., 17., 16., 5., 26., 9., 17., 10., 1., 0., 4., 2., 15., 12., 23., 44., 9., 20., 5., 3., 0., 1., 2., 6., 4., 11., 1., 3., 10., 3., 21., 5., 1., 2., 0., 10., 0., 2., 1., 1., 4., 2., 5., 1., 0., 2., 2., 2., 1., 4., 0., 3., 4., 3., 7., 2., 4., 0., 0., 5., 0., 3., 0., 2., 8., 2., 0., 5., 6., 5., 1., 1., 1., 1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 6., 6., 5., 6., 0., 5., 10., 1., 12., 25., 1., 13., 1., 1., 1., 17., 3., 5., 22., 12., 12., 25., 2., 1., 1., 4., 5., 9., 9., 21., 15., 2., 16., 2., 12., 7., 2., 3., 2., 2., 10., 7., 15., 60., 11., 16., 8., 4., 0., 7., 3., 6., 2., 7., 6., 8., 9., 6., 23., 11., 1., 1., 1., 11., 0., 1., 1., 5., 4., 7., 5., 3., 5., 2., 3., 1., 1., 0., 0., 1., 0., 2., 7., 4., 2., 3., 0., 2., 0., 0., 2., 2., 11., 3., 0., 2., 0., 2., 2., 1., 1., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 1., 5., 6., 3., 5., 1., 6., 25., 0., 13., 16., 2., 15., 2., 2., 2., 8., 1., 5., 21., 10., 13., 31., 5., 0., 2., 2., 1., 11., 15., 25., 16., 1., 13., 2., 13., 10., 2., 3., 5., 1., 7., 10., 17., 41., 9., 14., 9., 3., 3., 5., 2., 7., 2., 12., 7., 2., 19., 6., 20., 6., 0., 2., 0., 8., 0., 3., 0., 3., 2., 2., 5., 1., 6., 5., 3., 0., 2., 2., 0., 2., 2., 3., 1., 1., 6., 3., 0., 5., 1., 3., 0., 1., 10., 4., 0., 2., 0., 2., 3., 1., 2., 0., 2., 3., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 7., 8., 1., 6., 0., 8., 30., 0., 11., 20., 1., 25., 7., 0., 5., 15., 2., 1., 5., 13., 23., 27., 2., 1., 0., 4., 2., 10., 6., 18., 19., 3., 22., 4., 15., 11., 3., 1., 5., 2., 12., 7., 15., 44., 6., 19., 6., 2., 1., 4., 5., 3., 2., 4., 9., 11., 19., 8., 16., 10., 5., 1., 2., 5., 0., 3., 3., 9., 3., 6., 4., 1., 1., 3., 0., 2., 0., 5., 0., 4., 3., 5., 8., 2., 4., 0., 1., 4., 3., 0., 0., 4., 2., 2., 0., 4., 2., 2., 3., 2., 0., 3., 1., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 3., 1., 8., 2., 2., 2., 9., 9., 1., 16., 15., 0., 19., 2., 2., 3., 25., 5., 2., 29., 9., 35., 15., 8., 1., 0., 3., 1., 12., 4., 22., 16., 5., 13., 3., 18., 9., 4., 0., 5., 2., 16., 14., 11., 52., 13., 24., 12., 3., 0., 2., 2., 5., 3., 7., 4., 9., 18., 3., 30., 4., 3., 0., 0., 8., 0., 3., 1., 3., 3., 6., 3., 1., 6., 6., 3., 1., 1., 3., 0., 3., 3., 2., 7., 3., 2., 2., 4., 6., 0., 2., 0., 0., 4., 2., 0., 1., 0., 2., 4., 0., 4., 4., 0., 0., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 4., 4., 5., 9., 1., 4., 36., 0., 2., 24., 0., 20., 4., 3., 4., 15., 1., 3., 30., 15., 21., 26., 9., 1., 0., 3., 1., 5., 5., 33., 14., 3., 16., 2., 8., 6., 2., 2., 5., 0., 17., 7., 16., 47., 11., 23., 9., 3., 1., 6., 3., 5., 1., 13., 7., 12., 15., 9., 20., 11., 4., 2., 3., 4., 1., 3., 1., 6., 5., 2., 2., 2., 4., 2., 4., 0., 4., 2., 0., 3., 1., 2., 7., 1., 10., 2., 0., 3., 1., 1., 0., 1., 6., 3., 0., 4., 3., 3., 0., 1., 1., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 0., 1., 7., 5., 1., 4., 1., 5., 14., 0., 14., 25., 0., 16., 5., 1., 3., 20., 4., 5., 13., 9., 23., 21., 6., 0., 2., 2., 1., 4., 3., 23., 17., 3., 12., 1., 15., 10., 5., 3., 5., 1., 12., 11., 13., 47., 7., 11., 11., 3., 0., 6., 3., 4., 1., 13., 3., 10., 18., 5., 23., 4., 3., 1., 0., 6., 1., 3., 1., 2., 2., 4., 3., 4., 4., 5., 1., 1., 2., 2., 0., 0., 1., 0., 3., 0., 4., 2., 3., 3., 1., 2., 2., 2., 5., 2., 0., 1., 2., 4., 3., 3., 1., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 1., 6., 5., 0., 8., 1., 4., 22., 1., 10., 17., 1., 15., 4., 0., 1., 12., 1., 6., 19., 11., 23., 27., 4., 2., 0., 5., 1., 7., 9., 21., 17., 3., 18., 4., 13., 13., 5., 0., 2., 3., 20., 8., 22., 48., 10., 22., 9., 9., 5., 5., 1., 5., 2., 6., 4., 10., 16., 6., 21., 9., 4., 0., 3., 5., 1., 1., 0., 3., 3., 2., 5., 0., 4., 2., 1., 2., 3., 4., 0., 5., 5., 1., 7., 2., 8., 0., 5., 7., 0., 1., 1., 4., 9., 1., 0., 2., 1., 2., 1., 2., 1., 2., 0., 3., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 0., 3., 5., 2., 5., 4., 8., 29., 1., 9., 32., 2., 14., 1., 3., 3., 16., 8., 7., 24., 13., 28., 33., 2., 0., 3., 4., 2., 9., 2., 19., 12., 2., 20., 0., 18., 8., 4., 0., 3., 3., 12., 17., 25., 55., 10., 33., 6., 4., 0., 7., 2., 8., 3., 9., 9., 7., 16., 7., 21., 12., 5., 2., 0., 6., 4., 0., 4., 8., 6., 2., 6., 3., 3., 4., 2., 0., 1., 1., 0., 4., 1., 2., 5., 4., 3., 2., 0., 10., 0., 1., 2., 5., 6., 5., 0., 1., 1., 3., 3., 1., 2., 3., 3., 1., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 2., 2., 6., 3., 8., 0., 4., 26., 1., 8., 16., 0., 16., 0., 0., 1., 17., 2., 3., 26., 8., 22., 25., 6., 0., 1., 2., 2., 3., 12., 21., 15., 4., 18., 3., 11., 9., 1., 1., 3., 0., 16., 10., 20., 37., 14., 23., 8., 5., 0., 1., 0., 3., 7., 11., 5., 8., 20., 8., 22., 11., 2., 2., 1., 6., 2., 6., 3., 5., 2., 7., 3., 3., 7., 2., 5., 0., 4., 5., 0., 2., 1., 3., 3., 6., 4., 2., 5., 7., 1., 2., 2., 1., 7., 3., 0., 2., 3., 5., 1., 4., 3., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 3., 2., 3., 5., 1., 8., 2., 6., 7., 2., 11., 9., 3., 17., 1., 1., 2., 8., 3., 2., 20., 13., 27., 30., 6., 0., 1., 6., 1., 10., 5., 35., 18., 0., 10., 4., 4., 9., 2., 0., 5., 2., 13., 9., 17., 48., 22., 33., 10., 8., 2., 6., 3., 14., 2., 8., 3., 7., 17., 8., 15., 8., 6., 2., 2., 9., 2., 1., 0., 8., 2., 6., 5., 3., 7., 4., 1., 0., 0., 5., 0., 3., 0., 2., 9., 3., 3., 5., 1., 2., 1., 2., 0., 1., 6., 4., 0., 3., 3., 3., 1., 2., 2., 5., 2., 3., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 1., 3., 7., 3., 4., 3., 8., 13., 2., 20., 24., 2., 13., 2., 0., 3., 21., 3., 3., 25., 2., 17., 28., 9., 0., 2., 6., 3., 7., 2., 21., 13., 6., 12., 4., 16., 11., 0., 1., 1., 2., 8., 9., 22., 55., 16., 29., 4., 3., 2., 5., 1., 5., 0., 6., 9., 12., 17., 7., 14., 5., 5., 1., 1., 9., 0., 5., 0., 5., 5., 4., 3., 6., 7., 6., 1., 1., 1., 3., 0., 1., 3., 1., 7., 1., 3., 0., 1., 1., 0., 3., 1., 0., 9., 1., 0., 2., 5., 1., 4., 3., 1., 3., 3., 1., 0., 0., 0., 0., 1., 0., 0., 8., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 1., 6., 6., 9., 1., 9., 0., 0., 19., 0., 16., 31., 3., 13., 2., 2., 1., 27., 0., 2., 22., 17., 15., 23., 10., 0., 1., 1., 4., 10., 14., 27., 16., 3., 16., 4., 9., 8., 3., 2., 3., 1., 23., 13., 18., 40., 12., 22., 14., 1., 0., 4., 4., 10., 4., 9., 4., 9., 19., 11., 16., 8., 4., 1., 3., 2., 1., 5., 2., 3., 1., 4., 4., 1., 3., 3., 5., 1., 2., 2., 0., 4., 1., 3., 2., 1., 8., 0., 3., 4., 0., 2., 0., 2., 2., 3., 0., 0., 1., 0., 2., 2., 0., 2., 2., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 1., 2., 10., 3., 7., 1., 9., 26., 1., 13., 22., 0., 15., 3., 1., 5., 21., 2., 8., 4., 12., 24., 29., 5., 1., 0., 2., 0., 4., 5., 17., 11., 3., 14., 5., 10., 12., 4., 0., 4., 3., 14., 14., 17., 44., 14., 24., 9., 1., 0., 3., 4., 10., 2., 12., 7., 7., 23., 8., 20., 5., 1., 1., 4., 4., 1., 1., 1., 3., 4., 4., 4., 1., 7., 2., 4., 0., 1., 3., 0., 0., 1., 3., 7., 1., 3., 2., 2., 4., 1., 1., 3., 4., 10., 3., 0., 5., 3., 3., 3., 1., 3., 2., 2., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 2., 1., 4., 9., 3., 3., 0., 4., 28., 0., 14., 19., 0., 9., 3., 2., 1., 23., 2., 4., 21., 15., 23., 27., 2., 0., 1., 3., 2., 6., 7., 14., 8., 5., 18., 5., 8., 9., 2., 0., 4., 3., 12., 7., 17., 48., 10., 28., 5., 4., 1., 1., 1., 2., 0., 19., 11., 5., 11., 4., 12., 6., 4., 0., 3., 8., 1., 6., 1., 8., 3., 7., 7., 3., 5., 2., 3., 1., 4., 3., 0., 4., 2., 2., 3., 0., 5., 3., 4., 3., 1., 2., 0., 2., 7., 3., 0., 2., 3., 1., 1., 4., 1., 1., 0., 3., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 2., 6., 2., 3., 4., 2., 7., 23., 1., 14., 25., 1., 14., 2., 1., 2., 21., 2., 4., 31., 14., 26., 32., 6., 2., 1., 4., 3., 11., 6., 10., 16., 3., 17., 6., 19., 12., 3., 0., 8., 2., 10., 13., 10., 37., 11., 21., 10., 3., 1., 6., 3., 7., 4., 9., 7., 12., 13., 7., 24., 7., 3., 1., 2., 8., 1., 3., 1., 2., 1., 6., 4., 2., 4., 3., 0., 5., 1., 3., 0., 1., 2., 0., 7., 0., 8., 3., 4., 4., 2., 3., 0., 5., 4., 1., 0., 2., 4., 5., 1., 3., 4., 2., 3., 3., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 0., 1., 8., 5., 4., 0., 10., 21., 2., 10., 12., 1., 14., 4., 1., 1., 17., 4., 4., 24., 13., 33., 17., 6., 0., 1., 2., 1., 5., 4., 33., 14., 4., 20., 3., 10., 7., 1., 3., 6., 2., 6., 11., 15., 51., 18., 19., 12., 4., 1., 5., 4., 2., 2., 9., 5., 5., 13., 5., 21., 8., 3., 0., 1., 7., 0., 2., 0., 7., 2., 6., 6., 0., 2., 3., 2., 1., 0., 0., 0., 4., 2., 0., 5., 4., 4., 0., 1., 5., 1., 4., 2., 3., 5., 0., 0., 4., 1., 1., 2., 2., 1., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 3., 1., 17., 0., 17., 0., 6., 45., 1., 8., 57., 1., 4., 3., 0., 1., 64., 5., 6., 69., 12., 71., 9., 5., 0., 1., 2., 2., 20., 17., 49., 9., 1., 38., 35., 19., 4., 0., 0., 8., 5., 22., 5., 23., 10., 10., 6., 3., 3., 0., 6., 5., 15., 6., 15., 3., 9., 1., 3., 43., 11., 3., 0., 0., 16., 3., 5., 0., 8., 3., 2., 0., 0., 2., 0., 3., 2., 18., 8., 4., 4., 2., 2., 0., 0., 0., 0., 0., 7., 1., 5., 1., 1., 1., 1., 0., 0., 0., 0., 0., 1., 2., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 35., 0., 2., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 2., 10., 0., 11., 1., 9., 44., 1., 10., 48., 0., 4., 1., 0., 1., 78., 8., 5., 76., 14., 79., 13., 0., 0., 1., 2., 4., 11., 10., 41., 17., 2., 39., 32., 20., 5., 0., 3., 3., 2., 20., 5., 22., 7., 21., 3., 5., 5., 0., 9., 5., 20., 2., 22., 3., 9., 3., 6., 30., 19., 9., 1., 0., 8., 3., 8., 2., 16., 1., 2., 0., 2., 0., 0., 4., 2., 18., 8., 2., 4., 2., 2., 0., 0., 0., 0., 0., 8., 3., 1., 1., 3., 1., 0., 0., 1., 0., 2., 0., 1., 5., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 2., 1., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 17., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 1., 7., 10., 0., 13., 1., 5., 52., 1., 8., 63., 1., 4., 2., 0., 1., 69., 8., 11., 101., 19., 71., 7., 6., 0., 0., 0., 2., 18., 7., 51., 10., 0., 38., 28., 12., 1., 0., 1., 5., 3., 29., 13., 17., 11., 14., 8., 5., 3., 0., 11., 4., 10., 7., 15., 6., 10., 1., 2., 33., 10., 5., 2., 0., 15., 3., 10., 1., 12., 0., 4., 0., 0., 1., 0., 8., 3., 14., 7., 2., 4., 2., 3., 0., 0., 0., 0., 0., 9., 2., 4., 5., 3., 1., 0., 0., 0., 0., 0., 0., 0., 4., 2., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 5., 2., 0., 0., 0., 2., 0., 7., 0., 0., 0., 0., 23., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 1., 4., 12., 0., 8., 2., 4., 60., 1., 7., 62., 1., 6., 0., 0., 0., 80., 2., 10., 81., 13., 79., 13., 4., 0., 0., 3., 0., 20., 14., 63., 11., 2., 35., 40., 7., 3., 0., 0., 4., 2., 21., 6., 21., 8., 11., 3., 1., 5., 0., 7., 6., 23., 5., 16., 3., 7., 2., 2., 29., 8., 10., 3., 0., 12., 2., 5., 1., 14., 2., 2., 0., 1., 2., 0., 2., 1., 21., 8., 3., 5., 1., 2., 0., 0., 0., 0., 0., 10., 6., 3., 1., 2., 2., 2., 0., 1., 0., 1., 0., 1., 0., 2., 0., 1., 0., 0., 0., 2., 0., 0., 0., 3., 0., 1., 2., 0., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 19., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 7., 6., 12., 0., 15., 0., 10., 59., 1., 10., 61., 0., 6., 0., 0., 4., 79., 10., 8., 77., 11., 61., 12., 2., 0., 1., 0., 1., 17., 6., 44., 11., 2., 35., 36., 16., 3., 0., 1., 5., 5., 27., 7., 34., 10., 15., 4., 4., 6., 0., 4., 5., 20., 4., 14., 5., 6., 3., 2., 42., 9., 3., 1., 0., 13., 0., 6., 5., 11., 3., 4., 4., 1., 0., 0., 3., 0., 17., 11., 3., 4., 0., 1., 0., 0., 0., 0., 0., 10., 3., 4., 3., 4., 1., 0., 0., 0., 0., 0., 0., 0., 2., 5., 0., 1., 0., 0., 0., 2., 0., 0., 0., 1., 0., 3., 4., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 24., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 2., 9., 0., 19., 2., 10., 36., 1., 6., 43., 2., 6., 2., 0., 1., 76., 7., 7., 45., 21., 66., 16., 2., 0., 4., 3., 1., 13., 3., 48., 11., 4., 46., 24., 10., 15., 0., 2., 6., 2., 16., 5., 25., 6., 8., 12., 4., 1., 0., 14., 1., 18., 5., 20., 3., 10., 6., 3., 41., 9., 3., 2., 0., 12., 4., 5., 3., 12., 1., 10., 2., 2., 1., 0., 6., 4., 10., 16., 5., 1., 0., 1., 0., 0., 0., 0., 0., 7., 2., 3., 2., 2., 2., 2., 0., 1., 0., 0., 0., 3., 4., 2., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 0., 5., 1., 0., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 25., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 2., 9., 0., 14., 2., 6., 45., 2., 7., 63., 1., 5., 2., 0., 2., 74., 18., 7., 78., 14., 56., 8., 5., 0., 0., 2., 3., 16., 7., 47., 11., 2., 36., 35., 17., 4., 0., 2., 8., 2., 21., 10., 28., 6., 10., 6., 2., 2., 0., 8., 7., 25., 5., 21., 2., 7., 4., 6., 40., 7., 5., 0., 0., 14., 5., 12., 4., 13., 1., 5., 0., 1., 0., 0., 4., 2., 14., 10., 2., 5., 0., 4., 0., 0., 0., 0., 0., 8., 4., 5., 0., 2., 0., 0., 0., 2., 0., 2., 0., 1., 5., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 35., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 4., 4., 11., 0., 14., 1., 8., 44., 1., 6., 71., 1., 9., 1., 0., 2., 76., 10., 5., 92., 18., 59., 9., 5., 0., 0., 5., 1., 13., 6., 50., 12., 1., 42., 33., 16., 5., 0., 0., 5., 0., 28., 10., 30., 8., 14., 8., 7., 2., 0., 7., 3., 19., 4., 19., 2., 12., 6., 4., 35., 5., 5., 1., 0., 19., 6., 7., 2., 15., 2., 6., 0., 1., 2., 0., 7., 1., 21., 9., 5., 1., 1., 1., 0., 0., 0., 0., 0., 7., 4., 0., 3., 6., 0., 0., 0., 3., 0., 2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 2., 3., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 31., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 0., 3., 4., 21., 5., 29., 1., 15., 153., 2., 29., 230., 5., 19., 3., 4., 4., 86., 1., 8., 289., 52., 351., 42., 18., 1., 0., 3., 6., 39., 36., 229., 41., 7., 145., 12., 29., 10., 0., 4., 16., 7., 69., 21., 86., 15., 27., 38., 12., 2., 3., 32., 5., 36., 12., 49., 6., 26., 3., 8., 3., 3., 0., 0., 0., 20., 5., 13., 5., 36., 7., 13., 10., 2., 5., 0., 1., 4., 4., 13., 2., 5., 2., 8., 0., 1., 5., 153., 9., 1858., 98., 101., 220., 106., 111., 66., 21., 10., 21., 8., 1., 2., 2., 3., 2., 13., 10., 34., 15., 34., 21., 38., 9., 12., 2., 5., 1., 4., 2., 4., 1., 13., 8., 0., 3., 5., 17., 1., 0., 13., 4., 2., 0., 5., 2., 4., 36., 1., 6., 0., 18., 2., 21., 4., 2., 2., 8., 20., 7., 26., 4., 7., 8., 2., 26., 5., 9., 5.,
18., 1., 6., 7., 32., 9., 35., 1., 7., 163., 2., 30., 199., 3., 16., 3., 0., 4., 78., 3., 16., 277., 52., 327., 45., 19., 3., 2., 10., 2., 37., 34., 203., 41., 5., 144., 9., 53., 9., 0., 5., 12., 9., 76., 25., 93., 19., 26., 46., 15., 2., 2., 19., 3., 50., 9., 59., 12., 39., 8., 4., 5., 1., 0., 1., 0., 18., 5., 15., 3., 33., 3., 15., 5., 0., 3., 0., 1., 2., 0., 12., 2., 12., 0., 6., 0., 0., 4., 136., 6., 1880., 78., 118., 214., 106., 137., 70., 17., 14., 15., 15., 0., 2., 5., 4., 2., 9., 8., 28., 12., 33., 17., 39., 10., 14., 2., 6., 5., 3., 3., 1., 4., 7., 4., 0., 4., 5., 12., 0., 0., 10., 2., 2., 0., 7., 4., 3., 25., 1., 8., 2., 9., 3., 16., 4., 3., 4., 8., 19., 6., 34., 6., 1., 7., 3., 32., 11., 18., 1.,
9., 6., 4., 5., 6., 3., 6., 0., 5., 23., 0., 11., 19., 0., 10., 3., 0., 2., 10., 2., 4., 23., 17., 17., 28., 4., 1., 0., 2., 1., 5., 9., 18., 11., 4., 22., 1., 15., 10., 3., 0., 5., 0., 18., 10., 14., 57., 8., 19., 5., 4., 2., 5., 1., 6., 3., 4., 5., 12., 12., 6., 23., 11., 2., 1., 2., 9., 1., 2., 0., 5., 5., 4., 6., 2., 5., 2., 1., 2., 2., 2., 0., 0., 1., 1., 6., 2., 4., 1., 2., 4., 2., 0., 3., 1., 8., 0., 0., 1., 1., 0., 4., 1., 2., 3., 1., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 7., 10., 5., 6., 1., 7., 24., 1., 12., 15., 1., 14., 5., 1., 1., 7., 2., 5., 35., 13., 27., 24., 5., 2., 0., 2., 4., 6., 11., 31., 13., 1., 11., 4., 13., 6., 2., 1., 3., 1., 15., 6., 15., 44., 5., 17., 9., 2., 3., 8., 2., 8., 2., 6., 5., 9., 12., 8., 22., 7., 2., 0., 0., 6., 1., 2., 1., 9., 2., 5., 2., 1., 1., 3., 4., 0., 1., 0., 0., 4., 2., 4., 7., 2., 3., 3., 2., 2., 0., 3., 1., 1., 9., 2., 0., 2., 4., 3., 3., 2., 2., 4., 2., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 1., 1., 1., 5., 2., 2., 3., 3., 31., 0., 17., 15., 0., 15., 1., 2., 1., 25., 2., 2., 12., 7., 20., 29., 5., 1., 4., 3., 0., 10., 11., 24., 18., 5., 19., 4., 21., 7., 1., 1., 4., 2., 12., 9., 23., 65., 9., 22., 11., 5., 0., 2., 2., 7., 2., 10., 9., 7., 13., 8., 32., 7., 3., 0., 1., 7., 0., 1., 2., 7., 4., 6., 3., 0., 2., 2., 2., 1., 1., 1., 0., 1., 1., 0., 6., 3., 3., 1., 1., 7., 2., 2., 0., 1., 10., 1., 0., 2., 0., 3., 2., 1., 1., 4., 1., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
18., 0., 1., 5., 12., 5., 4., 0., 10., 13., 1., 12., 16., 0., 14., 2., 2., 1., 8., 0., 2., 27., 18., 25., 25., 6., 1., 1., 3., 4., 8., 11., 16., 12., 2., 20., 3., 23., 12., 1., 0., 5., 0., 20., 9., 17., 35., 12., 21., 8., 7., 1., 3., 2., 9., 5., 8., 5., 10., 16., 11., 24., 13., 5., 1., 0., 5., 1., 6., 3., 11., 2., 5., 9., 1., 8., 3., 1., 0., 2., 5., 0., 2., 1., 3., 8., 3., 3., 1., 4., 1., 1., 3., 0., 3., 4., 3., 0., 3., 0., 1., 1., 1., 3., 2., 0., 2., 0., 0., 0., 0., 5., 0., 0., 4., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 0., 3., 7., 4., 7., 1., 6., 16., 0., 9., 29., 2., 10., 2., 1., 1., 16., 1., 1., 9., 16., 28., 24., 4., 1., 0., 1., 1., 7., 7., 22., 17., 1., 14., 7., 18., 10., 2., 1., 6., 2., 19., 8., 12., 53., 13., 28., 9., 5., 1., 4., 2., 4., 4., 4., 6., 13., 16., 4., 26., 12., 3., 3., 1., 10., 1., 5., 1., 6., 4., 5., 4., 5., 0., 1., 3., 3., 1., 1., 0., 2., 1., 1., 12., 5., 6., 0., 1., 3., 1., 1., 2., 2., 9., 0., 0., 3., 3., 3., 4., 1., 2., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 4., 0., 3., 5., 6., 0., 5., 5., 1., 19., 26., 3., 13., 2., 0., 3., 20., 1., 0., 25., 11., 34., 30., 5., 1., 0., 1., 2., 7., 6., 21., 16., 3., 11., 4., 13., 10., 4., 1., 2., 2., 14., 10., 9., 50., 14., 25., 6., 1., 0., 5., 3., 4., 3., 9., 10., 12., 14., 5., 26., 9., 1., 0., 0., 6., 5., 4., 0., 3., 2., 7., 5., 1., 0., 4., 2., 0., 2., 4., 0., 1., 2., 1., 8., 4., 3., 3., 0., 5., 1., 4., 1., 2., 6., 6., 0., 3., 3., 3., 1., 1., 1., 7., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 2., 12., 2., 7., 2., 6., 3., 3., 14., 25., 2., 9., 3., 1., 1., 19., 0., 5., 28., 10., 36., 23., 3., 1., 0., 2., 2., 10., 7., 20., 20., 1., 21., 3., 15., 8., 3., 0., 6., 4., 7., 11., 22., 51., 9., 18., 13., 2., 2., 7., 2., 10., 5., 10., 10., 9., 17., 2., 24., 8., 1., 1., 2., 8., 1., 5., 1., 7., 2., 3., 3., 4., 6., 3., 2., 3., 5., 1., 0., 0., 1., 2., 9., 0., 4., 3., 2., 2., 3., 3., 1., 1., 7., 0., 0., 5., 3., 3., 4., 1., 2., 2., 1., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 3., 6., 6., 5., 9., 0., 3., 31., 0., 16., 22., 2., 22., 4., 1., 2., 16., 4., 4., 30., 12., 32., 27., 8., 3., 0., 3., 2., 9., 9., 25., 13., 2., 16., 4., 14., 10., 3., 0., 6., 5., 15., 7., 10., 42., 10., 24., 11., 6., 2., 3., 0., 8., 3., 13., 11., 12., 11., 5., 22., 7., 2., 2., 0., 9., 1., 3., 5., 6., 5., 3., 4., 3., 5., 3., 1., 0., 3., 1., 0., 1., 1., 2., 7., 1., 4., 0., 1., 1., 0., 4., 2., 2., 7., 3., 0., 5., 4., 1., 4., 1., 1., 2., 0., 2., 0., 0., 0., 0., 3., 0., 0., 6., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 3., 4., 11., 2., 4., 2., 7., 29., 0., 15., 22., 1., 11., 2., 2., 2., 18., 3., 7., 28., 6., 45., 32., 6., 1., 3., 5., 1., 6., 3., 26., 17., 2., 16., 4., 14., 10., 1., 2., 5., 2., 13., 10., 11., 40., 8., 13., 10., 6., 1., 8., 1., 6., 0., 8., 6., 8., 7., 3., 17., 9., 3., 3., 2., 10., 1., 2., 3., 5., 1., 8., 5., 4., 7., 2., 2., 2., 3., 2., 0., 2., 2., 3., 11., 1., 3., 2., 2., 2., 2., 2., 0., 3., 5., 2., 0., 2., 3., 2., 2., 2., 3., 2., 0., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 5., 9., 5., 4., 0., 7., 28., 3., 14., 27., 1., 11., 2., 2., 6., 25., 4., 3., 13., 9., 43., 18., 4., 0., 1., 4., 0., 11., 5., 25., 16., 0., 13., 4., 11., 13., 0., 1., 8., 3., 11., 12., 18., 49., 14., 14., 7., 7., 0., 4., 0., 11., 4., 6., 10., 3., 18., 6., 23., 9., 0., 1., 1., 13., 0., 3., 1., 5., 4., 7., 3., 4., 4., 3., 3., 0., 2., 1., 0., 2., 1., 1., 4., 0., 8., 0., 2., 2., 0., 3., 1., 3., 7., 3., 0., 3., 2., 1., 3., 2., 1., 1., 0., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 1., 3., 8., 2., 6., 0., 5., 18., 0., 11., 21., 0., 11., 1., 0., 2., 15., 4., 1., 31., 6., 16., 15., 11., 0., 0., 1., 4., 8., 6., 42., 18., 3., 10., 0., 12., 11., 1., 0., 4., 1., 10., 11., 19., 40., 8., 14., 9., 3., 1., 4., 5., 8., 3., 13., 5., 8., 19., 5., 17., 12., 3., 0., 1., 4., 0., 1., 5., 3., 1., 5., 3., 1., 6., 1., 1., 0., 0., 1., 0., 3., 3., 3., 8., 4., 4., 1., 6., 2., 2., 1., 2., 4., 6., 2., 0., 3., 4., 3., 3., 3., 2., 4., 0., 3., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 1., 3., 4., 3., 2., 3., 5., 29., 2., 11., 21., 0., 18., 2., 1., 2., 24., 1., 5., 14., 13., 29., 36., 1., 0., 3., 4., 2., 7., 4., 25., 13., 1., 16., 3., 6., 6., 1., 1., 2., 5., 23., 9., 23., 43., 15., 19., 8., 2., 0., 3., 1., 6., 4., 9., 7., 6., 22., 3., 28., 8., 4., 0., 1., 11., 2., 3., 1., 5., 0., 2., 6., 2., 3., 0., 0., 2., 2., 4., 0., 5., 1., 3., 12., 1., 2., 3., 1., 5., 2., 1., 0., 3., 7., 1., 0., 4., 2., 2., 1., 1., 1., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 4., 2., 3., 14., 3., 5., 1., 3., 28., 1., 12., 25., 4., 18., 4., 1., 2., 3., 0., 4., 25., 15., 15., 33., 6., 0., 1., 3., 1., 11., 5., 27., 22., 4., 18., 5., 9., 8., 2., 3., 7., 3., 17., 13., 19., 48., 15., 10., 13., 7., 2., 3., 0., 2., 0., 9., 8., 5., 15., 6., 31., 8., 2., 0., 0., 9., 1., 5., 0., 3., 3., 4., 2., 1., 4., 3., 4., 0., 1., 2., 0., 0., 4., 3., 4., 1., 1., 2., 2., 3., 1., 4., 4., 0., 8., 2., 0., 0., 0., 2., 2., 2., 1., 1., 1., 3., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 0., 5., 12., 5., 9., 2., 7., 0., 0., 14., 22., 0., 14., 2., 0., 1., 15., 2., 6., 10., 9., 26., 32., 1., 3., 2., 3., 1., 12., 16., 34., 16., 1., 8., 7., 12., 10., 2., 1., 2., 3., 8., 9., 12., 43., 14., 24., 10., 6., 2., 4., 0., 6., 4., 11., 6., 10., 21., 7., 25., 6., 3., 2., 1., 6., 2., 0., 2., 6., 3., 2., 4., 0., 5., 5., 5., 2., 2., 4., 0., 0., 2., 2., 6., 0., 5., 1., 2., 2., 0., 2., 2., 1., 7., 4., 0., 0., 0., 1., 1., 2., 0., 1., 2., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 0., 6., 10., 2., 16., 0., 6., 24., 1., 22., 19., 1., 15., 2., 1., 4., 9., 1., 5., 23., 15., 35., 26., 5., 1., 0., 5., 1., 6., 11., 26., 14., 3., 29., 3., 11., 12., 2., 0., 7., 0., 14., 13., 21., 50., 10., 18., 5., 3., 0., 6., 0., 7., 2., 15., 3., 9., 15., 6., 31., 8., 7., 1., 1., 8., 2., 4., 4., 4., 2., 6., 6., 1., 4., 2., 6., 1., 3., 3., 0., 2., 5., 3., 11., 2., 2., 6., 1., 3., 0., 1., 0., 1., 5., 2., 0., 3., 0., 3., 5., 3., 0., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 3., 4., 8., 5., 4., 0., 5., 16., 0., 12., 10., 1., 19., 3., 1., 3., 21., 0., 5., 27., 15., 19., 28., 3., 1., 1., 2., 5., 9., 11., 20., 15., 6., 18., 3., 21., 7., 1., 3., 4., 1., 15., 11., 19., 44., 11., 26., 8., 1., 1., 3., 1., 4., 7., 7., 5., 9., 12., 5., 26., 6., 2., 1., 1., 3., 0., 3., 4., 6., 2., 3., 1., 2., 4., 1., 0., 1., 3., 2., 0., 4., 5., 3., 6., 2., 2., 3., 0., 4., 0., 2., 0., 0., 7., 1., 0., 4., 1., 0., 1., 2., 6., 2., 1., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 7., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 3., 13., 5., 5., 1., 8., 32., 1., 14., 27., 1., 16., 3., 1., 1., 15., 1., 1., 33., 18., 46., 28., 4., 0., 0., 1., 0., 4., 8., 22., 24., 2., 15., 6., 14., 6., 0., 3., 6., 3., 11., 12., 12., 45., 11., 18., 7., 3., 1., 2., 3., 9., 2., 6., 7., 5., 13., 6., 22., 10., 1., 1., 1., 4., 0., 2., 0., 5., 0., 3., 4., 2., 5., 5., 0., 3., 1., 3., 0., 2., 1., 2., 8., 1., 5., 6., 2., 3., 2., 1., 2., 5., 8., 3., 0., 0., 1., 3., 4., 3., 0., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 6., 7., 4., 8., 0., 8., 29., 1., 15., 16., 2., 17., 1., 3., 1., 15., 1., 6., 25., 9., 12., 19., 8., 0., 0., 4., 2., 5., 9., 18., 16., 3., 15., 6., 12., 8., 4., 0., 0., 2., 4., 10., 10., 54., 13., 14., 8., 5., 3., 9., 3., 5., 1., 10., 6., 11., 25., 8., 34., 10., 2., 1., 2., 7., 1., 0., 2., 6., 2., 2., 5., 2., 6., 3., 1., 2., 2., 2., 0., 4., 2., 1., 9., 4., 2., 3., 3., 6., 2., 2., 2., 2., 8., 2., 0., 4., 2., 0., 3., 0., 2., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 3., 8., 4., 2., 0., 4., 21., 0., 17., 14., 2., 17., 1., 0., 3., 18., 1., 3., 18., 17., 26., 35., 6., 2., 0., 2., 2., 5., 4., 28., 14., 3., 14., 3., 15., 7., 2., 0., 2., 1., 14., 13., 18., 33., 15., 19., 12., 5., 2., 7., 3., 7., 0., 7., 5., 7., 18., 7., 14., 7., 4., 2., 2., 4., 0., 2., 3., 6., 4., 4., 1., 2., 2., 1., 1., 1., 2., 1., 0., 3., 0., 3., 9., 1., 3., 2., 3., 4., 1., 2., 0., 1., 7., 1., 0., 2., 3., 1., 1., 3., 3., 3., 1., 3., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 3., 2., 1., 6., 4., 4., 1., 12., 21., 0., 13., 18., 1., 18., 1., 1., 5., 30., 4., 2., 24., 8., 18., 16., 9., 0., 0., 3., 1., 4., 7., 33., 15., 2., 9., 4., 15., 12., 0., 3., 4., 1., 18., 7., 19., 43., 17., 22., 6., 3., 0., 3., 1., 8., 4., 8., 9., 6., 11., 8., 15., 12., 1., 1., 2., 8., 0., 1., 3., 5., 3., 3., 6., 2., 2., 7., 3., 1., 1., 3., 0., 4., 2., 3., 2., 4., 6., 4., 1., 7., 3., 5., 1., 2., 8., 3., 0., 5., 1., 0., 4., 5., 3., 1., 1., 3., 0., 0., 0., 0., 5., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 2., 3., 4., 8., 5., 7., 1., 8., 16., 0., 9., 23., 0., 16., 2., 1., 0., 12., 5., 3., 15., 17., 18., 26., 7., 0., 3., 5., 2., 5., 8., 16., 22., 3., 15., 7., 7., 12., 2., 0., 1., 3., 13., 17., 18., 47., 11., 21., 10., 6., 0., 6., 3., 7., 2., 14., 8., 7., 11., 7., 20., 4., 3., 0., 0., 7., 2., 1., 3., 2., 4., 5., 4., 4., 4., 1., 2., 1., 1., 4., 0., 2., 0., 0., 2., 2., 3., 2., 2., 5., 0., 2., 2., 1., 8., 0., 0., 3., 1., 0., 4., 2., 4., 2., 4., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 4., 4., 22., 0., 16., 4., 10., 48., 1., 6., 60., 1., 8., 2., 0., 1., 59., 13., 8., 65., 18., 83., 13., 4., 0., 1., 1., 2., 15., 11., 60., 13., 1., 26., 36., 11., 2., 0., 2., 6., 1., 20., 8., 22., 4., 12., 7., 4., 1., 0., 7., 3., 13., 4., 14., 4., 9., 5., 0., 35., 3., 8., 0., 0., 16., 5., 7., 0., 14., 4., 7., 4., 1., 0., 0., 3., 2., 16., 9., 6., 2., 1., 4., 0., 0., 0., 0., 0., 8., 1., 2., 3., 4., 4., 0., 0., 1., 0., 2., 0., 2., 4., 3., 0., 3., 0., 1., 0., 1., 0., 0., 0., 1., 0., 0., 2., 1., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 21., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 3., 5., 22., 0., 11., 1., 5., 49., 1., 5., 58., 1., 5., 1., 0., 3., 69., 8., 9., 68., 9., 85., 8., 3., 0., 0., 2., 3., 11., 11., 59., 10., 4., 36., 44., 13., 4., 0., 0., 6., 2., 27., 5., 27., 4., 13., 13., 5., 1., 0., 9., 5., 16., 3., 15., 0., 11., 7., 5., 42., 6., 6., 0., 0., 15., 1., 7., 3., 12., 4., 6., 1., 2., 0., 0., 7., 2., 15., 10., 1., 2., 1., 2., 0., 0., 0., 0., 0., 9., 2., 0., 4., 3., 2., 0., 0., 0., 0., 1., 0., 0., 5., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 3., 0., 3., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 25., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 3., 10., 0., 26., 2., 4., 45., 1., 9., 80., 0., 5., 5., 0., 3., 68., 19., 9., 57., 18., 57., 9., 5., 0., 0., 0., 6., 13., 7., 53., 8., 3., 31., 43., 13., 4., 0., 1., 5., 6., 29., 7., 25., 6., 15., 4., 2., 3., 0., 16., 6., 22., 2., 15., 4., 5., 2., 3., 38., 8., 11., 2., 0., 18., 3., 8., 1., 9., 4., 5., 1., 0., 0., 0., 3., 3., 8., 7., 6., 4., 0., 2., 0., 0., 0., 0., 0., 10., 1., 4., 2., 2., 2., 1., 0., 1., 0., 0., 0., 1., 4., 3., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 2., 2., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 29., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 7., 6., 14., 0., 11., 0., 5., 39., 0., 7., 66., 1., 6., 1., 0., 4., 71., 5., 9., 80., 8., 81., 19., 2., 0., 2., 1., 0., 19., 7., 35., 22., 3., 41., 36., 15., 5., 0., 1., 9., 7., 23., 5., 23., 4., 14., 5., 2., 1., 0., 9., 5., 10., 7., 16., 4., 10., 2., 1., 40., 9., 7., 0., 0., 10., 2., 8., 1., 13., 1., 3., 0., 0., 3., 0., 6., 4., 18., 9., 2., 1., 1., 5., 0., 0., 0., 0., 0., 5., 0., 3., 0., 3., 3., 1., 0., 0., 0., 0., 0., 1., 6., 1., 0., 1., 0., 1., 0., 3., 0., 0., 0., 1., 0., 2., 3., 2., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 15., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 5., 12., 0., 12., 1., 4., 53., 1., 4., 42., 3., 7., 1., 0., 2., 57., 10., 7., 79., 12., 66., 12., 5., 0., 0., 3., 4., 11., 7., 48., 11., 5., 52., 25., 20., 3., 0., 1., 4., 3., 10., 10., 32., 5., 15., 6., 2., 1., 0., 9., 4., 20., 3., 16., 2., 4., 1., 0., 55., 10., 11., 1., 0., 6., 1., 12., 2., 16., 1., 5., 3., 1., 2., 0., 8., 0., 25., 7., 1., 5., 1., 4., 0., 0., 0., 0., 0., 7., 4., 5., 2., 4., 0., 1., 0., 1., 0., 0., 0., 3., 3., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 20., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 2., 4., 18., 0., 14., 1., 11., 55., 1., 13., 42., 1., 4., 1., 0., 2., 64., 8., 5., 81., 11., 76., 12., 3., 0., 0., 1., 1., 11., 10., 52., 9., 0., 39., 31., 15., 3., 0., 0., 8., 2., 11., 4., 20., 11., 12., 4., 2., 2., 0., 11., 6., 18., 6., 10., 4., 8., 1., 4., 34., 11., 8., 1., 0., 10., 1., 5., 2., 10., 4., 2., 0., 0., 1., 0., 5., 2., 15., 8., 5., 7., 0., 4., 0., 0., 0., 0., 0., 5., 1., 1., 1., 3., 2., 0., 0., 1., 0., 1., 0., 0., 1., 3., 0., 1., 0., 2., 0., 0., 0., 0., 0., 2., 0., 3., 0., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 27., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 2., 10., 0., 22., 0., 8., 56., 2., 6., 55., 0., 7., 3., 0., 3., 72., 7., 4., 79., 5., 72., 10., 5., 0., 0., 4., 1., 10., 10., 58., 9., 4., 46., 29., 13., 4., 0., 0., 4., 5., 19., 6., 25., 3., 14., 11., 5., 0., 0., 9., 3., 18., 7., 13., 2., 16., 1., 7., 39., 12., 4., 3., 0., 10., 3., 7., 1., 12., 2., 2., 2., 2., 0., 0., 0., 3., 13., 10., 3., 1., 3., 2., 0., 0., 0., 0., 0., 6., 1., 4., 2., 4., 1., 0., 0., 2., 0., 1., 0., 1., 3., 2., 0., 1., 0., 2., 0., 1., 0., 0., 0., 2., 0., 1., 2., 3., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 17., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 2., 7., 0., 18., 2., 13., 38., 1., 8., 50., 2., 5., 4., 0., 6., 69., 5., 6., 73., 19., 83., 17., 4., 0., 1., 2., 3., 19., 11., 47., 12., 3., 34., 26., 14., 3., 0., 0., 10., 5., 25., 5., 26., 4., 10., 2., 2., 4., 0., 7., 1., 23., 7., 15., 2., 5., 2., 4., 35., 8., 9., 1., 0., 15., 4., 9., 1., 14., 1., 5., 0., 1., 3., 0., 7., 3., 14., 6., 5., 1., 2., 4., 0., 0., 0., 0., 0., 11., 1., 2., 2., 2., 0., 2., 0., 0., 0., 1., 0., 2., 5., 1., 0., 3., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 2., 4., 13., 0., 21., 1., 7., 56., 0., 7., 56., 1., 5., 4., 0., 2., 66., 15., 3., 91., 15., 79., 20., 2., 0., 1., 4., 1., 13., 5., 58., 16., 4., 56., 40., 11., 6., 0., 3., 7., 5., 15., 2., 30., 5., 9., 3., 2., 1., 0., 10., 5., 11., 4., 15., 0., 15., 2., 5., 37., 16., 5., 1., 0., 14., 5., 3., 0., 13., 3., 1., 3., 1., 0., 0., 7., 1., 16., 9., 4., 4., 0., 0., 0., 0., 0., 0., 0., 9., 0., 3., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 24., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 4., 2., 5., 19., 5., 39., 0., 21., 158., 3., 19., 180., 3., 13., 9., 2., 7., 90., 4., 13., 262., 42., 307., 38., 25., 1., 0., 6., 8., 42., 30., 221., 37., 9., 151., 12., 48., 5., 0., 6., 22., 15., 74., 18., 70., 18., 33., 52., 9., 2., 2., 23., 14., 34., 12., 58., 12., 26., 4., 9., 9., 0., 0., 1., 0., 36., 6., 16., 4., 25., 7., 6., 4., 2., 6., 2., 2., 5., 3., 7., 4., 6., 1., 6., 0., 0., 2., 125., 14., 1946., 106., 111., 210., 92., 120., 78., 9., 12., 18., 8., 1., 0., 8., 4., 1., 10., 4., 38., 14., 39., 18., 38., 9., 13., 2., 6., 14., 5., 4., 3., 4., 7., 2., 0., 5., 6., 16., 1., 0., 6., 6., 2., 0., 2., 4., 4., 27., 3., 12., 1., 18., 4., 22., 4., 4., 2., 2., 25., 6., 40., 7., 8., 11., 0., 26., 6., 9., 6.,
13., 3., 4., 6., 25., 5., 35., 2., 14., 172., 2., 31., 231., 7., 18., 6., 0., 7., 74., 0., 17., 254., 36., 310., 38., 18., 2., 2., 9., 5., 51., 33., 238., 35., 6., 161., 6., 43., 2., 0., 2., 9., 8., 83., 17., 102., 12., 35., 29., 13., 2., 1., 32., 5., 49., 11., 48., 11., 32., 6., 11., 5., 3., 0., 1., 0., 28., 4., 12., 1., 28., 4., 10., 1., 2., 2., 1., 0., 4., 5., 5., 8., 5., 3., 6., 2., 1., 5., 133., 9., 1854., 92., 101., 211., 78., 126., 71., 17., 17., 17., 20., 1., 1., 1., 10., 2., 6., 9., 38., 14., 41., 21., 38., 2., 7., 4., 4., 11., 5., 4., 5., 5., 9., 5., 0., 1., 4., 15., 1., 0., 9., 4., 4., 0., 6., 4., 3., 27., 3., 16., 1., 21., 0., 24., 3., 3., 7., 8., 24., 3., 30., 7., 5., 11., 6., 36., 6., 17., 3.,
10., 1., 0., 1., 10., 4., 10., 2., 0., 25., 0., 16., 18., 1., 14., 2., 0., 2., 11., 2., 2., 23., 12., 30., 28., 9., 1., 0., 2., 1., 5., 6., 23., 15., 3., 19., 5., 14., 10., 0., 0., 3., 1., 13., 8., 14., 54., 15., 18., 10., 0., 1., 4., 2., 11., 3., 11., 4., 7., 16., 6., 21., 5., 3., 2., 1., 8., 1., 1., 1., 6., 5., 3., 5., 3., 2., 2., 1., 1., 4., 2., 0., 1., 1., 4., 7., 1., 3., 0., 2., 3., 1., 2., 1., 1., 2., 2., 0., 2., 3., 1., 4., 4., 0., 2., 1., 2., 0., 0., 0., 0., 0., 0., 0., 6., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 5., 5., 8., 3., 5., 1., 5., 27., 2., 14., 16., 1., 24., 2., 1., 3., 20., 3., 6., 22., 9., 31., 16., 4., 1., 0., 7., 2., 9., 10., 43., 16., 5., 17., 5., 14., 11., 1., 1., 2., 0., 17., 11., 12., 37., 13., 19., 9., 2., 1., 1., 4., 8., 5., 10., 7., 7., 11., 5., 14., 10., 4., 2., 0., 8., 1., 2., 4., 6., 5., 3., 2., 1., 5., 1., 2., 3., 1., 5., 0., 4., 3., 0., 2., 1., 2., 3., 1., 4., 1., 1., 1., 0., 6., 3., 0., 2., 0., 4., 0., 1., 4., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 0., 3., 3., 1., 8., 0., 9., 20., 2., 15., 21., 1., 19., 3., 0., 0., 16., 1., 10., 31., 15., 21., 27., 8., 0., 0., 3., 2., 11., 6., 22., 19., 3., 17., 2., 13., 7., 1., 2., 1., 2., 16., 8., 21., 50., 13., 16., 11., 5., 1., 5., 3., 2., 4., 9., 7., 6., 12., 7., 19., 16., 4., 2., 1., 6., 3., 5., 6., 5., 2., 2., 3., 2., 9., 5., 3., 0., 4., 6., 0., 2., 1., 2., 4., 2., 8., 2., 2., 3., 0., 5., 2., 2., 2., 2., 0., 1., 2., 1., 2., 4., 1., 2., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 2., 8., 7., 4., 7., 1., 5., 29., 1., 18., 35., 1., 13., 2., 2., 3., 18., 4., 4., 24., 12., 37., 22., 7., 4., 2., 3., 3., 9., 8., 35., 15., 2., 12., 6., 20., 6., 1., 2., 3., 2., 12., 17., 16., 50., 18., 21., 9., 3., 1., 7., 1., 14., 3., 10., 2., 13., 13., 8., 28., 9., 7., 0., 1., 7., 3., 5., 3., 2., 2., 2., 3., 1., 7., 4., 4., 0., 2., 1., 0., 0., 1., 3., 4., 2., 1., 2., 0., 10., 2., 0., 0., 2., 9., 2., 0., 1., 3., 1., 2., 2., 0., 2., 0., 5., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 4., 2., 5., 1., 7., 0., 8., 28., 3., 7., 22., 1., 15., 2., 0., 3., 21., 1., 4., 23., 16., 28., 28., 3., 2., 1., 3., 4., 7., 7., 33., 20., 4., 19., 5., 12., 9., 1., 0., 1., 0., 12., 11., 21., 56., 11., 25., 9., 0., 1., 4., 1., 11., 4., 13., 5., 9., 14., 7., 20., 7., 1., 1., 0., 4., 1., 3., 0., 1., 2., 1., 5., 2., 4., 1., 4., 1., 1., 3., 0., 3., 1., 2., 7., 2., 0., 2., 5., 1., 1., 5., 2., 2., 12., 2., 0., 2., 3., 1., 3., 2., 3., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 2., 11., 3., 6., 0., 5., 27., 0., 13., 17., 0., 17., 0., 2., 3., 20., 2., 11., 15., 9., 28., 22., 6., 3., 0., 0., 5., 9., 10., 19., 18., 2., 10., 4., 13., 10., 3., 1., 5., 2., 15., 10., 17., 36., 8., 14., 8., 5., 0., 5., 6., 8., 4., 10., 2., 6., 18., 2., 18., 10., 0., 2., 0., 10., 1., 1., 5., 4., 6., 7., 2., 1., 3., 2., 2., 3., 5., 2., 0., 1., 2., 3., 6., 2., 2., 3., 2., 3., 2., 1., 0., 3., 4., 6., 0., 1., 2., 1., 4., 0., 1., 3., 0., 4., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 7., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 2., 6., 4., 8., 1., 12., 18., 1., 14., 18., 0., 26., 4., 2., 0., 17., 0., 4., 30., 9., 21., 24., 3., 1., 1., 5., 1., 13., 8., 24., 16., 2., 20., 4., 8., 8., 2., 2., 3., 4., 15., 11., 23., 46., 5., 16., 7., 4., 1., 5., 3., 3., 1., 9., 3., 7., 14., 4., 22., 8., 3., 0., 2., 7., 0., 4., 3., 8., 3., 6., 6., 3., 8., 2., 3., 1., 2., 2., 0., 3., 1., 4., 4., 1., 4., 0., 3., 4., 1., 3., 0., 2., 9., 4., 0., 4., 3., 3., 2., 1., 1., 3., 2., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 5., 2., 2., 9., 2., 5., 0., 5., 18., 0., 10., 30., 1., 13., 9., 2., 1., 18., 2., 2., 2., 20., 16., 22., 4., 1., 2., 2., 2., 7., 12., 23., 13., 1., 10., 5., 16., 13., 3., 1., 4., 5., 12., 9., 16., 51., 10., 20., 9., 6., 1., 7., 2., 2., 4., 12., 5., 5., 20., 8., 15., 12., 3., 1., 2., 7., 0., 4., 3., 7., 3., 4., 6., 2., 4., 1., 3., 0., 2., 2., 0., 1., 2., 0., 6., 0., 6., 1., 2., 2., 3., 4., 2., 0., 9., 3., 0., 3., 2., 2., 2., 3., 0., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 2., 7., 11., 1., 11., 3., 6., 8., 0., 7., 21., 0., 13., 2., 1., 1., 22., 3., 2., 34., 5., 15., 20., 6., 0., 1., 0., 5., 3., 8., 27., 12., 5., 14., 4., 10., 11., 1., 2., 5., 5., 17., 11., 15., 53., 17., 19., 5., 2., 1., 2., 2., 8., 2., 13., 5., 9., 16., 3., 17., 7., 4., 0., 0., 4., 1., 1., 1., 2., 3., 2., 2., 3., 4., 4., 3., 1., 2., 2., 0., 1., 1., 1., 6., 1., 1., 3., 2., 1., 1., 1., 2., 4., 5., 0., 0., 1., 1., 4., 2., 2., 2., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
18., 0., 3., 6., 14., 5., 3., 0., 7., 22., 0., 12., 18., 1., 15., 1., 0., 1., 20., 2., 3., 30., 8., 35., 21., 7., 1., 1., 2., 1., 9., 6., 16., 13., 4., 10., 3., 16., 8., 0., 0., 1., 3., 17., 16., 19., 59., 6., 18., 11., 3., 0., 2., 3., 7., 4., 5., 5., 4., 15., 4., 29., 8., 2., 1., 0., 16., 1., 6., 2., 8., 3., 2., 4., 5., 1., 3., 1., 1., 2., 4., 0., 0., 1., 0., 3., 4., 4., 1., 1., 6., 2., 3., 1., 4., 2., 3., 0., 0., 3., 4., 0., 2., 2., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 3., 10., 5., 4., 1., 7., 31., 3., 22., 24., 2., 18., 3., 2., 2., 16., 3., 2., 21., 7., 17., 27., 9., 2., 1., 1., 5., 6., 5., 23., 15., 1., 11., 5., 11., 9., 1., 3., 3., 2., 11., 16., 17., 41., 9., 21., 4., 4., 2., 1., 1., 7., 2., 9., 7., 8., 20., 7., 24., 7., 1., 0., 1., 7., 1., 6., 3., 3., 2., 5., 4., 3., 3., 4., 2., 0., 4., 2., 0., 1., 0., 2., 5., 4., 4., 1., 4., 8., 5., 3., 0., 1., 14., 0., 0., 2., 3., 3., 1., 2., 2., 3., 1., 3., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 2., 0., 6., 14., 7., 8., 0., 6., 24., 0., 14., 16., 2., 12., 5., 0., 3., 16., 0., 2., 9., 0., 25., 23., 10., 1., 0., 2., 2., 11., 6., 29., 17., 3., 16., 7., 11., 9., 1., 0., 3., 4., 18., 10., 14., 43., 11., 22., 6., 2., 4., 6., 1., 7., 4., 13., 5., 7., 20., 2., 26., 8., 1., 1., 2., 9., 0., 3., 7., 8., 3., 5., 2., 2., 4., 5., 1., 1., 5., 2., 0., 2., 2., 2., 4., 2., 9., 1., 2., 6., 2., 2., 0., 6., 10., 1., 0., 5., 2., 3., 1., 2., 3., 1., 0., 4., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 2., 10., 3., 4., 0., 4., 25., 2., 11., 13., 2., 11., 1., 0., 2., 31., 1., 4., 25., 15., 24., 38., 2., 1., 4., 5., 1., 8., 9., 32., 18., 5., 17., 4., 13., 5., 1., 0., 4., 0., 10., 12., 10., 45., 18., 27., 3., 7., 0., 9., 1., 9., 4., 9., 4., 9., 19., 3., 24., 9., 3., 0., 0., 6., 0., 1., 4., 5., 4., 3., 4., 4., 4., 4., 2., 1., 6., 4., 0., 1., 3., 4., 7., 1., 6., 3., 2., 4., 0., 4., 1., 5., 8., 0., 0., 4., 1., 2., 1., 1., 5., 2., 0., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 0., 5., 6., 3., 6., 0., 1., 21., 3., 9., 30., 2., 19., 0., 0., 5., 25., 2., 1., 30., 7., 28., 33., 8., 0., 1., 6., 3., 8., 5., 13., 16., 2., 20., 1., 15., 11., 3., 0., 10., 3., 12., 14., 17., 49., 14., 18., 9., 7., 0., 6., 5., 8., 5., 12., 5., 7., 13., 3., 20., 12., 1., 1., 3., 6., 0., 2., 2., 5., 4., 3., 6., 4., 6., 4., 1., 0., 1., 3., 0., 1., 4., 4., 7., 6., 2., 3., 1., 4., 1., 3., 1., 2., 5., 2., 0., 2., 2., 1., 2., 5., 4., 1., 0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 0., 2., 4., 1., 6., 1., 4., 7., 1., 9., 19., 0., 23., 2., 3., 0., 14., 2., 4., 25., 8., 27., 39., 7., 1., 1., 3., 1., 7., 2., 31., 20., 1., 10., 4., 13., 13., 2., 1., 5., 1., 3., 13., 19., 48., 11., 30., 10., 7., 0., 4., 6., 6., 5., 11., 8., 9., 12., 13., 20., 10., 2., 1., 0., 12., 1., 3., 3., 4., 2., 3., 5., 2., 4., 3., 1., 2., 2., 3., 0., 0., 1., 2., 7., 0., 9., 0., 4., 5., 2., 1., 1., 1., 4., 3., 0., 1., 0., 6., 0., 1., 2., 1., 3., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 1., 5., 8., 6., 6., 1., 6., 23., 0., 14., 23., 0., 13., 1., 1., 1., 27., 3., 5., 22., 12., 31., 24., 6., 0., 3., 2., 5., 6., 11., 26., 22., 1., 16., 3., 18., 8., 1., 0., 6., 2., 3., 11., 15., 59., 14., 17., 13., 3., 1., 8., 3., 6., 2., 6., 4., 10., 9., 4., 23., 4., 4., 0., 2., 11., 2., 4., 2., 10., 5., 6., 1., 3., 4., 2., 3., 0., 2., 4., 0., 2., 1., 1., 7., 4., 4., 3., 1., 6., 1., 2., 1., 1., 9., 2., 0., 2., 0., 3., 1., 1., 0., 1., 4., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 3., 7., 9., 3., 8., 1., 6., 20., 0., 12., 20., 0., 8., 3., 2., 2., 5., 2., 4., 34., 5., 22., 32., 4., 1., 1., 4., 1., 9., 8., 27., 16., 1., 15., 2., 16., 2., 2., 0., 4., 1., 10., 13., 21., 43., 14., 20., 10., 5., 0., 5., 2., 8., 6., 6., 5., 8., 8., 7., 26., 12., 4., 2., 0., 4., 2., 3., 4., 5., 7., 6., 1., 2., 2., 3., 3., 0., 2., 3., 0., 0., 4., 3., 8., 2., 6., 1., 1., 6., 1., 2., 1., 1., 10., 2., 0., 2., 2., 0., 2., 2., 4., 4., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
19., 1., 2., 5., 6., 4., 9., 0., 1., 26., 1., 10., 13., 1., 12., 7., 2., 3., 19., 1., 3., 40., 13., 21., 29., 4., 3., 1., 2., 1., 4., 4., 20., 13., 5., 19., 3., 13., 7., 2., 1., 5., 2., 19., 11., 7., 40., 13., 22., 8., 2., 0., 3., 2., 7., 7., 9., 6., 7., 21., 8., 20., 13., 2., 2., 3., 8., 1., 3., 0., 4., 1., 3., 4., 2., 3., 4., 1., 2., 2., 2., 0., 3., 2., 3., 5., 2., 3., 0., 0., 8., 1., 3., 2., 2., 8., 3., 0., 2., 2., 5., 1., 1., 3., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 1., 2., 10., 3., 4., 2., 9., 18., 0., 16., 18., 2., 14., 5., 0., 1., 32., 2., 0., 13., 10., 32., 20., 11., 0., 1., 3., 2., 4., 12., 31., 11., 4., 21., 2., 11., 9., 2., 1., 6., 5., 8., 11., 8., 40., 8., 14., 11., 4., 1., 3., 4., 7., 4., 6., 5., 4., 17., 6., 21., 8., 5., 1., 0., 7., 1., 2., 2., 2., 3., 5., 3., 1., 9., 5., 0., 0., 1., 7., 0., 3., 3., 1., 6., 1., 3., 2., 1., 6., 2., 2., 0., 0., 11., 2., 0., 1., 5., 0., 4., 1., 1., 2., 0., 3., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 2., 2., 2., 2., 4., 2., 6., 26., 0., 11., 27., 0., 7., 1., 1., 2., 23., 2., 6., 25., 8., 40., 32., 8., 1., 0., 5., 3., 11., 7., 24., 10., 5., 21., 8., 14., 10., 5., 1., 2., 3., 12., 6., 20., 41., 15., 28., 11., 3., 1., 9., 1., 10., 3., 14., 8., 3., 24., 10., 21., 7., 2., 2., 0., 7., 0., 2., 0., 2., 4., 3., 2., 3., 5., 3., 2., 0., 2., 4., 0., 1., 2., 0., 6., 2., 4., 3., 4., 3., 2., 3., 0., 4., 8., 1., 0., 1., 1., 1., 2., 3., 1., 3., 3., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 2., 13., 0., 15., 1., 5., 42., 0., 4., 61., 0., 8., 0., 0., 1., 78., 10., 14., 71., 12., 92., 8., 4., 0., 1., 0., 2., 21., 6., 53., 13., 2., 43., 32., 16., 8., 0., 0., 6., 4., 21., 5., 17., 9., 9., 6., 1., 0., 0., 8., 2., 18., 3., 15., 5., 12., 4., 2., 42., 7., 8., 3., 0., 14., 1., 11., 1., 14., 4., 6., 0., 0., 2., 0., 9., 3., 16., 10., 1., 4., 3., 1., 0., 0., 0., 0., 0., 10., 1., 3., 4., 4., 0., 0., 0., 1., 0., 0., 0., 0., 3., 2., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 2., 2., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 22., 0., 5., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 3., 4., 12., 0., 8., 1., 8., 51., 0., 8., 48., 1., 1., 6., 0., 3., 68., 11., 7., 59., 14., 53., 17., 3., 0., 0., 2., 1., 15., 11., 49., 17., 1., 37., 38., 17., 10., 0., 0., 9., 1., 29., 4., 26., 9., 10., 3., 2., 4., 0., 11., 6., 14., 3., 19., 1., 11., 2., 3., 33., 10., 5., 2., 0., 10., 3., 8., 3., 11., 3., 3., 0., 1., 1., 0., 6., 2., 18., 10., 4., 3., 0., 1., 0., 0., 0., 0., 0., 9., 1., 1., 1., 3., 1., 2., 0., 1., 0., 0., 0., 1., 3., 2., 0., 2., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 2., 5., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 21., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 2., 13., 0., 11., 3., 7., 48., 1., 12., 58., 3., 1., 2., 0., 4., 78., 8., 3., 76., 11., 82., 11., 4., 0., 0., 3., 3., 15., 14., 46., 9., 0., 41., 32., 8., 6., 0., 1., 6., 1., 20., 4., 31., 3., 9., 6., 3., 2., 0., 9., 9., 14., 8., 19., 4., 9., 7., 3., 38., 8., 4., 2., 0., 13., 1., 7., 3., 12., 3., 3., 0., 1., 3., 0., 0., 5., 15., 11., 5., 4., 1., 1., 0., 0., 0., 0., 0., 9., 2., 2., 3., 0., 0., 1., 0., 2., 0., 1., 0., 0., 6., 0., 0., 1., 0., 1., 0., 3., 0., 0., 0., 3., 0., 0., 2., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 17., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 4., 4., 0., 18., 1., 9., 47., 0., 5., 39., 1., 5., 1., 0., 1., 75., 7., 12., 76., 10., 104., 11., 5., 0., 0., 4., 1., 18., 9., 48., 15., 3., 47., 44., 17., 9., 0., 2., 5., 7., 23., 9., 28., 9., 15., 10., 2., 1., 0., 13., 5., 14., 6., 15., 1., 7., 4., 4., 38., 8., 5., 3., 0., 12., 3., 11., 3., 12., 0., 4., 1., 0., 1., 0., 3., 0., 23., 10., 2., 2., 0., 7., 0., 0., 0., 0., 0., 6., 1., 3., 4., 1., 1., 0., 0., 2., 0., 2., 0., 2., 4., 5., 0., 1., 0., 3., 0., 3., 0., 0., 0., 2., 0., 2., 2., 1., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 1., 3., 8., 0., 21., 3., 6., 54., 0., 7., 56., 2., 4., 3., 0., 2., 47., 12., 6., 84., 15., 69., 18., 6., 0., 0., 0., 2., 4., 7., 43., 13., 0., 43., 36., 15., 4., 0., 1., 4., 3., 25., 6., 26., 10., 8., 3., 3., 2., 0., 19., 7., 12., 6., 11., 3., 2., 2., 1., 39., 9., 4., 3., 0., 10., 1., 10., 6., 8., 3., 6., 0., 5., 2., 0., 6., 4., 7., 4., 1., 5., 0., 4., 0., 0., 0., 0., 0., 7., 2., 0., 2., 2., 0., 2., 0., 1., 0., 1., 0., 4., 2., 3., 0., 0., 0., 2., 0., 1., 0., 0., 0., 3., 0., 0., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 23., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 4., 12., 0., 15., 2., 7., 68., 0., 13., 55., 1., 3., 2., 0., 5., 79., 11., 4., 73., 15., 72., 8., 3., 0., 0., 3., 1., 8., 12., 43., 15., 1., 37., 36., 13., 11., 0., 0., 4., 2., 25., 4., 35., 7., 10., 6., 4., 1., 0., 10., 6., 17., 3., 17., 4., 5., 1., 5., 32., 9., 10., 3., 0., 10., 2., 11., 2., 6., 0., 7., 0., 0., 1., 0., 3., 1., 11., 6., 2., 1., 0., 3., 0., 0., 0., 0., 0., 12., 0., 3., 1., 2., 1., 0., 0., 3., 0., 0., 0., 2., 4., 2., 0., 4., 0., 2., 0., 0., 0., 0., 0., 1., 0., 3., 1., 1., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 22., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 1., 3., 15., 0., 12., 2., 7., 41., 1., 7., 68., 2., 3., 3., 0., 1., 82., 7., 11., 84., 18., 85., 12., 3., 0., 0., 2., 2., 15., 16., 56., 15., 1., 35., 24., 13., 7., 0., 0., 10., 4., 29., 4., 21., 10., 12., 5., 4., 2., 0., 8., 3., 15., 4., 12., 3., 4., 3., 1., 39., 8., 7., 2., 0., 18., 4., 9., 2., 7., 3., 4., 1., 3., 0., 0., 5., 2., 15., 11., 4., 5., 2., 4., 0., 0., 0., 0., 0., 9., 2., 3., 1., 4., 0., 1., 0., 2., 0., 0., 0., 0., 2., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 4., 0., 4., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 4., 6., 15., 0., 11., 5., 4., 56., 4., 2., 45., 1., 4., 1., 0., 1., 74., 9., 12., 80., 11., 78., 11., 7., 0., 2., 5., 2., 12., 11., 66., 13., 2., 41., 29., 11., 6., 0., 1., 5., 6., 29., 8., 22., 8., 5., 7., 5., 1., 0., 15., 5., 22., 1., 13., 4., 8., 5., 9., 32., 11., 3., 2., 0., 12., 4., 9., 1., 5., 3., 2., 1., 0., 1., 0., 5., 3., 8., 14., 5., 4., 0., 8., 0., 0., 0., 0., 0., 7., 1., 3., 3., 1., 1., 0., 0., 0., 0., 1., 0., 1., 3., 1., 0., 2., 0., 2., 0., 1., 0., 0., 0., 2., 0., 0., 3., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 20., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 4., 13., 0., 18., 1., 7., 63., 0., 14., 57., 2., 5., 3., 0., 3., 83., 7., 7., 75., 13., 62., 15., 4., 0., 2., 2., 3., 10., 6., 57., 5., 5., 40., 28., 13., 5., 0., 1., 6., 3., 18., 7., 24., 11., 16., 5., 2., 3., 0., 11., 3., 16., 2., 14., 3., 6., 1., 1., 34., 5., 12., 1., 0., 15., 2., 6., 5., 11., 4., 5., 1., 0., 0., 0., 3., 0., 14., 11., 1., 2., 3., 4., 0., 0., 0., 0., 0., 9., 4., 4., 1., 2., 1., 2., 0., 0., 0., 2., 0., 1., 4., 3., 0., 2., 0., 1., 0., 1., 0., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 15., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 4., 8., 0., 14., 1., 5., 30., 1., 13., 56., 1., 7., 2., 0., 0., 57., 13., 7., 78., 16., 76., 11., 5., 0., 0., 3., 1., 13., 4., 51., 10., 1., 41., 29., 12., 5., 0., 0., 4., 2., 22., 5., 21., 5., 9., 10., 5., 3., 0., 10., 3., 23., 3., 11., 3., 6., 5., 3., 40., 6., 4., 0., 0., 8., 2., 7., 2., 13., 4., 3., 0., 1., 1., 0., 5., 0., 12., 14., 2., 0., 0., 1., 0., 0., 0., 0., 0., 17., 2., 3., 2., 6., 2., 0., 0., 0., 0., 1., 0., 1., 3., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 2., 0., 3., 1., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 28., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 3., 4., 6., 20., 3., 35., 1., 11., 127., 1., 35., 198., 7., 18., 8., 2., 11., 63., 2., 16., 260., 54., 349., 35., 16., 1., 2., 2., 2., 41., 42., 273., 36., 9., 168., 17., 48., 2., 0., 1., 21., 8., 59., 25., 79., 16., 29., 59., 12., 4., 1., 28., 4., 34., 13., 48., 11., 27., 5., 11., 7., 0., 0., 0., 0., 22., 3., 14., 2., 33., 6., 16., 8., 3., 1., 1., 1., 5., 2., 7., 3., 13., 4., 4., 3., 0., 1., 148., 6., 1882., 86., 113., 222., 105., 113., 60., 19., 14., 10., 14., 0., 0., 5., 3., 7., 5., 8., 36., 20., 52., 18., 40., 11., 13., 2., 5., 5., 6., 3., 5., 4., 5., 1., 0., 4., 5., 18., 1., 0., 4., 4., 4., 0., 4., 3., 1., 36., 3., 15., 5., 19., 4., 34., 2., 0., 6., 4., 24., 3., 36., 6., 4., 8., 6., 27., 5., 12., 1.,
10., 2., 1., 3., 10., 2., 6., 1., 4., 33., 4., 7., 11., 2., 16., 3., 2., 4., 11., 2., 7., 37., 13., 21., 21., 9., 2., 2., 3., 1., 9., 10., 24., 16., 1., 14., 3., 19., 11., 0., 1., 4., 4., 10., 7., 21., 47., 15., 23., 8., 1., 3., 4., 1., 3., 2., 7., 7., 5., 20., 6., 21., 8., 3., 1., 1., 9., 1., 1., 3., 5., 2., 5., 2., 1., 4., 5., 1., 0., 0., 1., 0., 5., 2., 1., 6., 3., 5., 1., 3., 6., 0., 2., 1., 1., 6., 2., 0., 4., 1., 2., 1., 1., 0., 2., 1., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 4., 13., 9., 2., 2., 3., 22., 2., 18., 16., 3., 8., 7., 0., 8., 17., 2., 7., 11., 11., 26., 21., 7., 1., 3., 3., 1., 10., 9., 20., 12., 3., 18., 1., 20., 9., 2., 2., 3., 2., 9., 9., 19., 49., 7., 15., 11., 5., 0., 5., 0., 8., 4., 3., 11., 9., 18., 8., 24., 13., 3., 0., 0., 4., 1., 3., 1., 7., 2., 3., 3., 2., 3., 5., 1., 1., 0., 0., 0., 2., 3., 1., 5., 1., 2., 2., 1., 4., 1., 4., 2., 1., 10., 4., 0., 2., 4., 3., 1., 2., 2., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 5., 2., 8., 2., 9., 1., 7., 24., 1., 12., 24., 2., 18., 1., 1., 3., 23., 0., 4., 20., 12., 25., 39., 6., 1., 1., 2., 2., 8., 11., 25., 13., 1., 16., 5., 17., 11., 1., 1., 4., 1., 11., 10., 11., 45., 12., 22., 7., 3., 0., 7., 1., 9., 5., 8., 3., 9., 14., 6., 27., 10., 2., 1., 1., 8., 2., 1., 1., 6., 2., 3., 1., 4., 1., 2., 1., 0., 1., 1., 0., 3., 0., 2., 4., 3., 3., 2., 5., 5., 0., 1., 0., 5., 12., 3., 0., 2., 0., 2., 3., 1., 3., 2., 1., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 5., 8., 1., 7., 0., 9., 34., 0., 8., 27., 1., 12., 3., 1., 2., 18., 1., 3., 28., 6., 18., 25., 4., 4., 0., 7., 1., 3., 10., 17., 14., 3., 13., 3., 22., 7., 1., 0., 4., 2., 14., 8., 16., 46., 14., 13., 9., 3., 2., 3., 2., 5., 3., 6., 5., 6., 13., 7., 26., 8., 3., 1., 0., 2., 2., 3., 4., 6., 2., 3., 5., 1., 4., 3., 4., 2., 2., 2., 0., 2., 2., 2., 7., 2., 2., 1., 0., 4., 1., 1., 1., 2., 9., 2., 0., 1., 2., 1., 2., 2., 2., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 3., 2., 5., 0., 5., 1., 5., 21., 1., 19., 20., 1., 20., 1., 2., 1., 22., 3., 1., 21., 13., 33., 27., 7., 1., 1., 7., 4., 5., 9., 26., 20., 4., 13., 2., 8., 7., 2., 0., 5., 5., 16., 12., 16., 30., 15., 16., 6., 1., 1., 4., 0., 6., 3., 13., 2., 2., 23., 6., 25., 9., 5., 0., 1., 7., 1., 4., 0., 7., 1., 9., 3., 1., 4., 3., 2., 0., 2., 1., 0., 5., 2., 1., 10., 1., 5., 1., 1., 3., 0., 4., 2., 1., 8., 0., 0., 4., 6., 3., 2., 0., 3., 3., 1., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 5., 4., 5., 4., 12., 0., 4., 13., 2., 21., 2., 3., 14., 5., 2., 2., 18., 2., 5., 27., 8., 28., 22., 7., 4., 1., 5., 3., 4., 6., 21., 15., 2., 14., 1., 15., 15., 1., 2., 3., 1., 13., 10., 18., 39., 16., 27., 11., 3., 0., 4., 1., 6., 4., 8., 5., 8., 20., 3., 20., 8., 7., 3., 2., 7., 1., 3., 2., 5., 5., 5., 2., 2., 5., 4., 3., 1., 1., 2., 0., 2., 4., 1., 6., 3., 1., 3., 3., 4., 3., 5., 0., 2., 6., 3., 0., 4., 4., 2., 0., 3., 2., 1., 1., 2., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 8., 7., 3., 7., 2., 9., 22., 0., 17., 15., 3., 18., 3., 1., 5., 20., 1., 5., 29., 11., 29., 23., 4., 2., 4., 1., 3., 5., 14., 40., 16., 2., 25., 4., 15., 12., 5., 0., 4., 2., 12., 14., 26., 55., 13., 18., 9., 1., 1., 4., 0., 7., 1., 9., 8., 8., 15., 12., 28., 9., 6., 1., 1., 6., 0., 3., 1., 2., 3., 3., 3., 3., 3., 2., 2., 1., 1., 2., 0., 2., 3., 3., 7., 3., 3., 4., 2., 4., 2., 1., 2., 2., 7., 1., 0., 0., 3., 1., 2., 1., 4., 3., 0., 2., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 3., 1., 3., 6., 3., 7., 0., 7., 12., 0., 13., 15., 2., 12., 3., 0., 1., 22., 2., 3., 14., 11., 31., 27., 5., 0., 1., 3., 2., 6., 10., 17., 11., 3., 19., 4., 16., 5., 1., 0., 2., 1., 14., 6., 28., 48., 10., 19., 11., 3., 0., 2., 2., 6., 3., 4., 12., 5., 14., 5., 24., 11., 4., 1., 0., 12., 1., 4., 1., 11., 3., 4., 6., 0., 3., 0., 2., 1., 3., 3., 0., 3., 3., 2., 13., 1., 3., 2., 5., 4., 1., 0., 0., 2., 7., 3., 0., 2., 3., 0., 1., 3., 2., 3., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 4., 6., 9., 1., 8., 0., 7., 26., 1., 9., 17., 1., 16., 2., 1., 1., 18., 3., 1., 31., 15., 15., 29., 5., 0., 1., 1., 3., 8., 14., 17., 25., 0., 13., 4., 12., 9., 0., 0., 1., 2., 14., 5., 20., 49., 10., 17., 9., 4., 1., 4., 4., 4., 6., 10., 4., 6., 16., 8., 17., 9., 1., 0., 0., 6., 0., 5., 3., 5., 4., 3., 4., 3., 3., 1., 2., 1., 2., 2., 0., 3., 0., 2., 4., 0., 2., 2., 0., 8., 0., 2., 0., 2., 8., 4., 0., 2., 0., 4., 2., 0., 6., 2., 2., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 1., 7., 9., 4., 9., 0., 10., 13., 1., 24., 28., 0., 21., 5., 2., 4., 18., 2., 4., 15., 16., 31., 25., 6., 1., 2., 4., 2., 5., 2., 16., 5., 7., 22., 7., 21., 8., 1., 1., 4., 2., 15., 12., 14., 60., 8., 24., 8., 7., 0., 4., 0., 12., 3., 10., 5., 8., 24., 6., 37., 6., 1., 2., 0., 10., 0., 1., 1., 2., 2., 3., 3., 2., 3., 2., 3., 1., 1., 2., 0., 0., 5., 3., 8., 0., 5., 3., 3., 5., 0., 2., 1., 3., 9., 2., 0., 2., 1., 1., 5., 3., 6., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 3., 6., 3., 3., 4., 1., 12., 14., 1., 10., 21., 1., 14., 2., 1., 1., 15., 2., 7., 11., 3., 21., 30., 7., 0., 2., 4., 1., 13., 6., 38., 17., 5., 20., 5., 7., 7., 4., 1., 5., 2., 19., 9., 14., 51., 14., 21., 14., 4., 1., 5., 1., 10., 5., 9., 7., 4., 22., 4., 19., 7., 3., 1., 0., 6., 1., 1., 1., 6., 0., 3., 3., 2., 6., 4., 2., 2., 2., 1., 0., 3., 1., 2., 5., 1., 4., 2., 1., 5., 1., 0., 0., 3., 12., 3., 0., 3., 2., 2., 3., 1., 1., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 3., 0., 1., 11., 4., 5., 0., 4., 22., 0., 10., 30., 1., 18., 5., 1., 0., 19., 2., 7., 31., 11., 19., 34., 3., 2., 1., 0., 4., 3., 9., 26., 14., 4., 20., 6., 16., 8., 6., 2., 6., 1., 18., 7., 19., 54., 14., 15., 9., 2., 1., 4., 0., 4., 1., 11., 11., 13., 20., 5., 24., 4., 3., 1., 2., 7., 0., 5., 3., 1., 5., 5., 2., 3., 2., 4., 2., 0., 2., 1., 0., 1., 1., 4., 7., 3., 4., 4., 0., 5., 1., 1., 1., 2., 3., 2., 0., 5., 3., 2., 2., 4., 3., 2., 0., 3., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 0., 2., 8., 6., 4., 1., 4., 19., 2., 17., 26., 2., 15., 2., 4., 2., 13., 3., 2., 9., 10., 22., 26., 7., 0., 1., 1., 2., 3., 7., 26., 19., 1., 15., 7., 13., 7., 2., 2., 3., 2., 10., 14., 25., 44., 12., 19., 5., 4., 1., 2., 3., 8., 5., 15., 5., 7., 10., 5., 20., 14., 2., 0., 3., 12., 1., 2., 0., 3., 2., 3., 3., 0., 4., 8., 2., 0., 2., 2., 0., 2., 2., 0., 6., 0., 2., 1., 2., 5., 1., 3., 1., 2., 5., 2., 0., 1., 4., 0., 3., 1., 0., 2., 0., 0., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 1., 10., 3., 2., 6., 3., 19., 2., 15., 8., 0., 14., 2., 0., 1., 15., 7., 7., 38., 7., 25., 20., 6., 3., 0., 3., 1., 9., 9., 36., 19., 5., 17., 1., 13., 8., 1., 1., 7., 3., 16., 7., 15., 49., 8., 17., 5., 2., 1., 6., 4., 9., 3., 8., 3., 10., 22., 7., 21., 9., 1., 1., 2., 5., 0., 3., 1., 3., 0., 3., 4., 2., 3., 4., 1., 1., 0., 5., 0., 2., 3., 4., 3., 3., 4., 4., 1., 0., 1., 3., 0., 2., 6., 2., 0., 3., 3., 3., 3., 4., 1., 0., 1., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 5., 9., 0., 5., 1., 5., 24., 0., 10., 13., 3., 15., 1., 0., 0., 26., 2., 3., 34., 14., 14., 29., 6., 2., 3., 1., 2., 10., 6., 28., 11., 1., 14., 3., 14., 7., 1., 2., 2., 2., 18., 18., 18., 41., 19., 13., 14., 5., 0., 4., 1., 7., 2., 13., 12., 9., 8., 5., 14., 8., 4., 2., 1., 8., 1., 4., 1., 5., 1., 10., 6., 2., 3., 2., 2., 1., 1., 2., 0., 1., 2., 1., 8., 3., 3., 0., 2., 4., 0., 3., 0., 3., 8., 2., 0., 2., 4., 0., 4., 1., 2., 2., 2., 4., 0., 0., 0., 0., 5., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 3., 4., 12., 3., 4., 1., 2., 12., 1., 11., 23., 1., 12., 5., 0., 2., 17., 0., 3., 36., 11., 26., 25., 7., 2., 0., 5., 0., 9., 6., 5., 23., 4., 19., 2., 20., 12., 3., 1., 3., 2., 12., 7., 22., 51., 9., 29., 14., 9., 3., 2., 3., 6., 1., 12., 6., 10., 13., 3., 28., 11., 5., 1., 2., 8., 1., 3., 0., 3., 1., 0., 5., 2., 6., 1., 1., 1., 3., 2., 0., 0., 1., 4., 6., 1., 3., 4., 6., 4., 2., 1., 1., 2., 9., 3., 0., 1., 3., 4., 1., 1., 2., 0., 2., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 3., 1., 7., 1., 2., 2., 5., 13., 0., 12., 19., 1., 8., 2., 0., 5., 15., 4., 1., 27., 10., 29., 29., 5., 1., 1., 2., 2., 7., 4., 12., 17., 2., 14., 7., 20., 10., 3., 0., 6., 3., 14., 11., 27., 60., 7., 15., 7., 3., 0., 3., 5., 8., 5., 8., 10., 14., 20., 6., 18., 11., 2., 0., 0., 5., 1., 5., 3., 5., 1., 2., 6., 2., 5., 1., 4., 0., 2., 1., 0., 2., 0., 0., 3., 2., 1., 0., 2., 5., 1., 1., 1., 0., 7., 2., 0., 2., 2., 0., 1., 5., 0., 4., 1., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 3., 2., 7., 1., 5., 1., 9., 17., 1., 10., 28., 1., 14., 1., 0., 2., 17., 4., 6., 22., 17., 21., 24., 4., 0., 0., 3., 2., 8., 5., 43., 22., 1., 8., 3., 19., 10., 3., 0., 7., 1., 13., 4., 23., 46., 17., 28., 12., 5., 1., 3., 3., 5., 6., 7., 6., 10., 14., 13., 15., 8., 0., 0., 1., 4., 1., 3., 1., 6., 1., 5., 4., 3., 4., 2., 1., 0., 3., 2., 0., 3., 1., 1., 8., 5., 3., 1., 2., 4., 1., 3., 0., 3., 8., 4., 0., 3., 5., 4., 1., 2., 2., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 2., 1., 5., 2., 9., 0., 10., 8., 2., 8., 20., 0., 16., 1., 3., 0., 18., 4., 2., 15., 9., 28., 28., 8., 2., 0., 2., 0., 8., 12., 22., 23., 2., 10., 3., 15., 9., 3., 1., 3., 1., 14., 9., 17., 50., 14., 22., 7., 2., 1., 9., 2., 8., 1., 9., 4., 11., 13., 7., 25., 4., 5., 1., 1., 13., 1., 1., 3., 7., 5., 2., 2., 2., 4., 3., 3., 0., 3., 0., 0., 1., 2., 0., 4., 1., 3., 3., 3., 4., 0., 3., 1., 1., 6., 3., 0., 1., 4., 4., 1., 2., 2., 1., 3., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 2., 3., 6., 3., 3., 1., 5., 26., 2., 18., 27., 2., 12., 4., 1., 1., 18., 5., 8., 24., 12., 17., 31., 7., 1., 1., 1., 2., 4., 6., 27., 10., 1., 22., 4., 15., 7., 3., 2., 6., 3., 12., 10., 19., 43., 11., 23., 9., 5., 0., 2., 1., 10., 1., 13., 4., 11., 15., 10., 19., 9., 3., 0., 1., 8., 0., 3., 5., 6., 2., 3., 3., 1., 3., 1., 1., 3., 1., 3., 0., 3., 1., 0., 2., 1., 4., 3., 2., 3., 1., 1., 0., 3., 15., 0., 0., 2., 4., 1., 2., 2., 2., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 4., 5., 11., 0., 25., 0., 6., 62., 1., 13., 71., 1., 4., 1., 0., 2., 76., 9., 9., 82., 16., 76., 10., 4., 0., 2., 1., 1., 19., 9., 52., 8., 4., 45., 33., 8., 6., 0., 0., 4., 4., 17., 7., 23., 4., 7., 4., 3., 2., 0., 17., 6., 12., 3., 22., 4., 8., 2., 2., 34., 10., 11., 2., 0., 14., 7., 10., 4., 18., 2., 5., 2., 1., 0., 0., 7., 1., 19., 12., 1., 5., 0., 4., 0., 0., 0., 0., 0., 6., 0., 2., 2., 5., 0., 0., 0., 0., 0., 1., 0., 1., 0., 1., 0., 3., 0., 2., 0., 2., 0., 0., 0., 3., 0., 3., 4., 4., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 26., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 1., 2., 5., 0., 12., 2., 7., 34., 3., 8., 52., 1., 6., 1., 0., 1., 45., 14., 10., 81., 10., 77., 7., 2., 0., 0., 2., 2., 11., 6., 37., 11., 3., 45., 37., 19., 3., 0., 0., 7., 3., 23., 8., 25., 8., 12., 6., 5., 2., 0., 9., 1., 18., 8., 14., 0., 11., 4., 3., 27., 9., 10., 6., 0., 13., 7., 4., 1., 12., 1., 2., 1., 2., 1., 0., 2., 3., 14., 12., 2., 7., 3., 0., 0., 0., 0., 0., 0., 9., 1., 6., 2., 4., 0., 0., 0., 1., 0., 0., 0., 1., 3., 2., 0., 3., 0., 0., 0., 2., 0., 0., 0., 2., 0., 1., 0., 4., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 22., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 7., 7., 0., 20., 5., 5., 57., 1., 6., 61., 2., 7., 1., 0., 3., 69., 9., 12., 61., 16., 79., 14., 5., 0., 2., 1., 1., 17., 4., 49., 10., 2., 36., 35., 9., 6., 0., 0., 4., 4., 22., 4., 28., 8., 5., 8., 1., 0., 0., 7., 6., 16., 3., 17., 1., 14., 2., 0., 44., 7., 9., 4., 0., 18., 3., 7., 3., 9., 5., 4., 0., 3., 0., 0., 2., 4., 14., 7., 3., 3., 0., 2., 0., 0., 0., 0., 0., 12., 1., 1., 0., 3., 1., 1., 0., 2., 0., 1., 0., 2., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 21., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 6., 12., 0., 16., 3., 13., 47., 0., 5., 42., 1., 6., 0., 0., 4., 64., 10., 8., 72., 15., 71., 14., 1., 0., 2., 2., 2., 19., 7., 65., 9., 1., 33., 30., 14., 3., 0., 1., 8., 2., 22., 7., 26., 11., 7., 7., 3., 0., 0., 12., 5., 24., 5., 9., 4., 5., 3., 3., 38., 5., 7., 0., 0., 17., 1., 7., 1., 13., 0., 1., 1., 4., 1., 0., 6., 0., 21., 9., 2., 4., 1., 1., 0., 0., 0., 0., 0., 8., 1., 4., 3., 2., 0., 1., 0., 2., 0., 0., 0., 4., 3., 2., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 0., 5., 1., 0., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 28., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 3., 0., 11., 0., 11., 2., 8., 48., 1., 9., 46., 0., 4., 0., 0., 1., 75., 3., 12., 73., 12., 82., 6., 7., 0., 0., 3., 2., 18., 8., 61., 11., 3., 33., 32., 10., 4., 0., 1., 9., 4., 19., 7., 26., 9., 10., 5., 3., 2., 0., 6., 8., 19., 2., 23., 2., 8., 2., 6., 39., 5., 6., 3., 0., 12., 2., 8., 3., 7., 4., 3., 1., 0., 0., 0., 5., 1., 18., 12., 2., 6., 1., 3., 0., 0., 0., 0., 0., 13., 1., 4., 3., 1., 2., 1., 0., 3., 0., 2., 0., 1., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 3., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 20., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 7., 4., 11., 0., 19., 0., 4., 58., 2., 7., 57., 0., 4., 3., 0., 1., 80., 17., 8., 79., 14., 77., 9., 5., 0., 1., 2., 3., 7., 6., 57., 6., 0., 36., 37., 9., 3., 0., 0., 7., 6., 25., 3., 14., 5., 11., 6., 3., 0., 0., 9., 6., 20., 4., 19., 4., 6., 4., 3., 34., 8., 9., 1., 0., 17., 2., 10., 1., 13., 5., 3., 1., 1., 0., 0., 7., 2., 13., 9., 2., 5., 2., 3., 0., 0., 0., 0., 0., 18., 0., 3., 4., 2., 0., 1., 0., 1., 0., 1., 0., 2., 4., 4., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 4., 3., 1., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 22., 0., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 3., 6., 8., 0., 15., 1., 8., 47., 0., 3., 64., 2., 4., 1., 0., 0., 75., 4., 5., 84., 5., 98., 5., 5., 0., 1., 5., 3., 11., 6., 46., 16., 3., 38., 34., 7., 4., 0., 2., 7., 5., 32., 9., 25., 5., 4., 4., 4., 1., 0., 11., 3., 12., 6., 13., 4., 6., 6., 3., 32., 11., 10., 0., 0., 11., 3., 5., 1., 6., 0., 3., 2., 3., 0., 0., 3., 1., 14., 12., 5., 2., 1., 4., 0., 0., 0., 0., 0., 5., 1., 2., 5., 3., 1., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 18., 0., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 2., 2., 13., 0., 13., 1., 15., 57., 0., 6., 53., 1., 2., 1., 0., 3., 74., 9., 8., 79., 16., 76., 13., 2., 0., 1., 4., 1., 14., 9., 53., 9., 2., 34., 33., 14., 4., 0., 0., 8., 5., 19., 6., 22., 6., 13., 3., 1., 2., 0., 11., 8., 11., 8., 15., 3., 12., 3., 2., 38., 11., 7., 2., 0., 7., 3., 7., 3., 8., 4., 4., 0., 0., 0., 0., 2., 2., 21., 8., 3., 2., 3., 3., 0., 0., 0., 0., 0., 16., 4., 2., 0., 1., 0., 0., 0., 1., 0., 1., 0., 1., 6., 2., 0., 1., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 3., 1., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 28., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 1., 2., 9., 0., 17., 4., 10., 49., 1., 11., 40., 1., 8., 1., 0., 0., 70., 15., 12., 68., 16., 90., 12., 3., 0., 2., 1., 4., 21., 6., 35., 10., 3., 39., 22., 12., 4., 0., 2., 7., 5., 22., 5., 19., 5., 11., 1., 2., 1., 0., 14., 4., 12., 5., 11., 3., 4., 2., 4., 43., 8., 4., 0., 0., 12., 7., 10., 2., 15., 2., 3., 0., 0., 1., 0., 6., 1., 17., 7., 3., 5., 1., 4., 0., 0., 0., 0., 0., 11., 0., 2., 3., 2., 0., 5., 0., 0., 0., 0., 0., 1., 4., 1., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 3., 4., 3., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 24., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 2., 4., 12., 0., 9., 1., 8., 47., 2., 11., 48., 1., 2., 1., 0., 1., 79., 6., 10., 64., 14., 56., 11., 2., 0., 0., 4., 1., 13., 7., 81., 14., 0., 38., 33., 19., 3., 0., 1., 6., 4., 24., 8., 28., 6., 11., 1., 5., 1., 0., 15., 4., 18., 5., 20., 2., 10., 4., 3., 49., 11., 6., 2., 0., 15., 3., 9., 1., 10., 3., 6., 1., 0., 2., 0., 3., 1., 11., 9., 2., 7., 0., 3., 0., 0., 0., 0., 0., 7., 3., 2., 0., 4., 0., 0., 0., 1., 0., 0., 0., 0., 2., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 1., 5., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 28., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 2., 1., 13., 0., 16., 3., 7., 43., 1., 10., 57., 0., 8., 0., 0., 4., 73., 12., 1., 81., 10., 94., 10., 8., 0., 0., 6., 0., 14., 18., 43., 12., 2., 36., 28., 9., 6., 0., 0., 4., 6., 17., 8., 20., 8., 16., 5., 4., 0., 0., 12., 5., 19., 6., 20., 1., 8., 4., 5., 44., 15., 7., 1., 0., 14., 4., 7., 4., 11., 4., 6., 0., 3., 1., 0., 6., 2., 12., 11., 2., 7., 0., 2., 0., 0., 0., 0., 0., 16., 1., 5., 1., 4., 0., 1., 0., 1., 0., 0., 0., 1., 2., 5., 0., 3., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 2., 5., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 27., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 4., 1., 8., 31., 8., 24., 3., 16., 147., 2., 17., 186., 10., 11., 7., 0., 4., 79., 1., 12., 284., 37., 327., 41., 19., 1., 6., 8., 6., 52., 35., 202., 37., 8., 168., 12., 50., 11., 0., 0., 11., 9., 67., 23., 91., 18., 44., 43., 10., 5., 1., 26., 8., 39., 12., 50., 8., 37., 2., 14., 5., 1., 0., 0., 0., 25., 5., 16., 2., 30., 4., 14., 5., 2., 6., 0., 2., 5., 1., 14., 3., 7., 0., 10., 1., 1., 7., 132., 7., 1762., 81., 115., 228., 77., 111., 67., 15., 12., 15., 16., 2., 2., 10., 1., 4., 11., 7., 36., 20., 29., 18., 56., 4., 8., 5., 5., 7., 6., 1., 5., 4., 4., 4., 0., 1., 7., 17., 1., 0., 6., 4., 2., 0., 3., 5., 5., 42., 3., 9., 2., 13., 4., 20., 2., 4., 6., 4., 34., 5., 40., 5., 0., 7., 2., 32., 6., 11., 11.,
9., 2., 2., 8., 8., 5., 6., 0., 10., 18., 1., 13., 19., 3., 16., 2., 1., 0., 18., 2., 3., 28., 6., 27., 28., 5., 1., 0., 1., 1., 12., 7., 21., 16., 1., 20., 7., 13., 6., 1., 0., 4., 2., 9., 9., 21., 44., 10., 14., 5., 4., 0., 6., 0., 9., 4., 14., 5., 7., 14., 7., 22., 8., 3., 0., 0., 6., 1., 3., 1., 4., 5., 2., 5., 2., 4., 2., 2., 2., 1., 3., 0., 2., 3., 6., 7., 3., 9., 3., 1., 7., 0., 4., 2., 4., 9., 2., 0., 1., 0., 2., 3., 2., 1., 4., 2., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 4., 11., 1., 5., 1., 12., 20., 2., 12., 17., 3., 13., 3., 2., 0., 17., 3., 4., 27., 12., 17., 26., 5., 2., 0., 1., 1., 8., 11., 29., 13., 6., 19., 3., 17., 5., 2., 1., 6., 1., 8., 13., 19., 45., 7., 23., 7., 1., 2., 8., 2., 8., 2., 4., 5., 4., 22., 6., 11., 9., 7., 2., 0., 8., 1., 5., 1., 4., 3., 3., 3., 2., 4., 2., 0., 1., 1., 3., 0., 1., 0., 1., 3., 0., 3., 3., 0., 5., 3., 1., 1., 4., 6., 1., 0., 1., 3., 1., 3., 3., 1., 4., 0., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 1., 1., 12., 3., 6., 0., 10., 31., 3., 9., 21., 0., 17., 2., 0., 3., 13., 0., 5., 19., 12., 19., 17., 8., 0., 2., 4., 6., 11., 7., 36., 8., 3., 11., 2., 17., 9., 2., 3., 10., 1., 13., 8., 23., 38., 20., 23., 13., 4., 2., 5., 3., 7., 4., 12., 3., 9., 9., 8., 20., 9., 3., 2., 0., 10., 2., 3., 2., 7., 1., 4., 2., 0., 1., 4., 6., 2., 3., 1., 0., 1., 1., 3., 7., 2., 4., 2., 0., 6., 1., 0., 1., 2., 5., 1., 0., 1., 1., 5., 2., 2., 2., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 3., 8., 8., 5., 8., 2., 9., 14., 1., 10., 24., 3., 14., 5., 2., 3., 12., 0., 1., 14., 15., 25., 23., 5., 0., 0., 6., 0., 5., 4., 22., 7., 2., 15., 8., 9., 7., 1., 0., 5., 2., 7., 6., 14., 51., 14., 17., 9., 8., 1., 5., 1., 6., 2., 6., 4., 5., 19., 9., 15., 9., 3., 1., 0., 7., 2., 6., 4., 7., 1., 7., 2., 1., 0., 5., 3., 2., 2., 1., 0., 5., 3., 3., 12., 2., 6., 0., 3., 4., 2., 2., 1., 0., 6., 4., 0., 1., 5., 3., 3., 2., 4., 2., 2., 0., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 1., 7., 7., 4., 14., 1., 6., 21., 2., 8., 30., 1., 20., 5., 2., 4., 17., 3., 5., 29., 12., 9., 24., 10., 3., 3., 0., 1., 4., 11., 22., 26., 1., 19., 2., 20., 8., 1., 0., 4., 1., 14., 5., 20., 40., 16., 20., 6., 4., 3., 6., 3., 6., 5., 8., 11., 7., 12., 3., 32., 5., 1., 1., 0., 9., 1., 5., 1., 2., 1., 6., 7., 0., 5., 2., 1., 2., 1., 2., 0., 1., 4., 2., 4., 2., 5., 1., 4., 2., 0., 4., 0., 2., 3., 1., 0., 2., 2., 1., 1., 1., 0., 1., 1., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 6., 9., 3., 9., 0., 3., 24., 0., 18., 23., 1., 12., 8., 1., 1., 11., 2., 1., 28., 15., 32., 29., 5., 0., 1., 2., 1., 7., 9., 14., 18., 4., 12., 3., 8., 11., 3., 0., 5., 0., 9., 13., 9., 38., 9., 17., 5., 3., 1., 5., 3., 11., 4., 9., 9., 8., 16., 6., 30., 11., 4., 2., 2., 8., 0., 1., 3., 5., 1., 2., 1., 3., 3., 9., 1., 1., 4., 3., 0., 0., 3., 2., 7., 3., 4., 1., 2., 6., 2., 3., 2., 0., 4., 3., 0., 4., 2., 3., 1., 4., 5., 3., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 1., 8., 2., 4., 1., 5., 16., 0., 14., 13., 1., 8., 2., 0., 0., 29., 3., 5., 21., 14., 20., 29., 4., 0., 2., 2., 2., 6., 5., 22., 18., 2., 18., 3., 13., 5., 0., 1., 5., 3., 6., 13., 9., 40., 7., 16., 5., 1., 2., 2., 2., 9., 1., 9., 8., 1., 15., 5., 19., 14., 4., 1., 0., 9., 1., 3., 1., 2., 2., 6., 10., 1., 3., 6., 1., 0., 4., 3., 0., 3., 0., 1., 8., 2., 8., 1., 0., 5., 0., 2., 0., 0., 3., 3., 0., 2., 4., 4., 3., 3., 2., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 5., 8., 0., 6., 1., 5., 11., 2., 12., 35., 0., 21., 4., 4., 1., 9., 3., 6., 38., 12., 17., 30., 7., 0., 1., 2., 2., 8., 5., 15., 17., 5., 13., 2., 20., 9., 0., 1., 5., 2., 20., 5., 20., 45., 10., 23., 9., 1., 0., 4., 2., 5., 1., 11., 5., 9., 16., 5., 32., 9., 4., 1., 3., 8., 0., 7., 4., 8., 2., 2., 5., 0., 4., 4., 1., 0., 1., 2., 0., 4., 2., 1., 5., 2., 4., 0., 5., 3., 3., 0., 3., 2., 4., 2., 0., 5., 1., 2., 1., 0., 5., 4., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 2., 2., 3., 7., 0., 5., 2., 4., 20., 1., 19., 14., 1., 13., 3., 0., 3., 14., 1., 2., 32., 10., 16., 24., 5., 0., 0., 1., 4., 8., 4., 24., 15., 1., 9., 9., 13., 10., 3., 2., 1., 1., 6., 14., 14., 52., 15., 33., 8., 2., 1., 5., 0., 4., 0., 7., 6., 6., 17., 8., 20., 6., 1., 0., 0., 7., 2., 3., 2., 7., 2., 4., 2., 3., 2., 1., 2., 0., 3., 3., 0., 2., 1., 2., 6., 1., 6., 1., 1., 8., 1., 0., 3., 6., 9., 6., 0., 2., 2., 0., 2., 0., 2., 4., 1., 4., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 3., 9., 2., 10., 0., 5., 35., 0., 12., 17., 4., 12., 5., 0., 4., 17., 3., 2., 33., 15., 18., 33., 3., 2., 2., 2., 3., 7., 4., 27., 19., 3., 19., 5., 16., 8., 1., 0., 4., 3., 13., 12., 18., 52., 8., 30., 5., 3., 0., 7., 5., 5., 3., 10., 6., 5., 13., 4., 25., 12., 2., 2., 1., 5., 1., 3., 4., 4., 1., 4., 6., 4., 1., 2., 2., 2., 1., 3., 0., 1., 3., 0., 5., 2., 4., 2., 1., 2., 2., 1., 0., 1., 13., 2., 0., 0., 4., 1., 3., 1., 1., 4., 2., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 0., 4., 7., 2., 2., 0., 3., 21., 1., 11., 28., 3., 18., 2., 2., 1., 24., 5., 3., 19., 11., 20., 26., 8., 2., 1., 2., 2., 7., 13., 23., 16., 3., 17., 4., 12., 10., 1., 3., 6., 4., 10., 14., 10., 50., 11., 31., 7., 3., 1., 9., 2., 7., 1., 8., 6., 10., 9., 11., 20., 4., 1., 0., 2., 8., 1., 2., 4., 8., 2., 9., 2., 2., 8., 1., 3., 2., 2., 0., 0., 4., 0., 4., 3., 1., 3., 4., 0., 1., 1., 1., 1., 3., 7., 2., 0., 1., 0., 4., 2., 0., 3., 3., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 3., 4., 4., 8., 1., 5., 15., 0., 15., 18., 0., 23., 4., 0., 5., 20., 2., 4., 17., 13., 12., 18., 11., 1., 1., 1., 1., 11., 9., 26., 23., 0., 13., 5., 12., 9., 0., 0., 1., 5., 16., 10., 30., 52., 8., 22., 13., 2., 1., 5., 2., 6., 6., 9., 5., 7., 12., 4., 10., 7., 2., 2., 0., 5., 0., 4., 1., 1., 3., 4., 4., 2., 5., 1., 3., 1., 4., 2., 0., 2., 1., 0., 4., 2., 10., 1., 1., 0., 3., 1., 1., 1., 5., 3., 0., 2., 1., 4., 1., 1., 2., 2., 2., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 1., 5., 9., 5., 5., 1., 6., 31., 3., 15., 16., 1., 17., 4., 1., 0., 16., 1., 3., 6., 13., 29., 29., 7., 2., 1., 3., 4., 6., 10., 44., 21., 2., 16., 4., 17., 8., 0., 2., 4., 3., 16., 8., 15., 51., 14., 18., 12., 0., 3., 2., 5., 8., 2., 9., 4., 3., 12., 4., 22., 8., 3., 0., 0., 6., 0., 2., 2., 5., 1., 3., 3., 1., 2., 7., 1., 1., 3., 2., 0., 2., 3., 5., 3., 3., 6., 3., 1., 6., 2., 3., 1., 4., 13., 6., 0., 0., 0., 3., 3., 0., 5., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 4., 4., 10., 5., 4., 1., 4., 21., 0., 16., 19., 2., 14., 1., 3., 2., 15., 4., 5., 19., 15., 27., 22., 5., 0., 1., 5., 2., 5., 14., 20., 16., 1., 11., 2., 13., 5., 0., 0., 7., 4., 15., 11., 15., 33., 9., 28., 11., 4., 1., 10., 4., 5., 3., 9., 6., 9., 13., 4., 26., 7., 0., 0., 1., 8., 0., 3., 2., 5., 8., 1., 4., 1., 4., 6., 0., 0., 0., 2., 0., 2., 3., 2., 7., 2., 3., 3., 2., 3., 1., 2., 1., 1., 9., 4., 0., 1., 2., 1., 2., 3., 2., 3., 2., 5., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 6., 2., 6., 1., 3., 1., 6., 22., 0., 8., 26., 0., 15., 2., 0., 4., 22., 2., 6., 17., 8., 19., 25., 7., 0., 1., 3., 1., 10., 2., 28., 16., 2., 8., 5., 7., 8., 0., 0., 3., 2., 15., 15., 20., 44., 10., 20., 8., 5., 0., 10., 3., 10., 1., 8., 6., 9., 29., 4., 22., 10., 3., 0., 0., 7., 2., 3., 3., 6., 0., 2., 4., 0., 5., 5., 2., 0., 0., 0., 0., 5., 3., 2., 5., 5., 4., 3., 0., 2., 0., 4., 0., 1., 9., 6., 0., 3., 0., 1., 3., 2., 2., 1., 3., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 6., 1., 4., 1., 8., 1., 4., 16., 1., 14., 32., 2., 18., 3., 1., 1., 21., 3., 0., 20., 12., 18., 28., 6., 0., 1., 2., 2., 9., 9., 29., 16., 3., 14., 0., 8., 10., 0., 1., 9., 1., 3., 16., 20., 45., 12., 23., 8., 5., 0., 4., 2., 4., 4., 19., 4., 8., 14., 7., 20., 9., 3., 0., 1., 8., 1., 3., 1., 7., 3., 1., 1., 4., 3., 2., 2., 0., 4., 1., 0., 3., 2., 1., 7., 5., 8., 0., 2., 4., 2., 3., 0., 2., 11., 2., 0., 1., 1., 1., 4., 2., 5., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0.,
16., 4., 6., 5., 4., 4., 4., 0., 6., 8., 0., 21., 33., 0., 15., 1., 1., 0., 19., 0., 2., 22., 10., 18., 29., 6., 0., 2., 4., 0., 12., 11., 35., 16., 0., 18., 2., 11., 15., 0., 2., 4., 2., 12., 8., 18., 46., 14., 22., 12., 2., 0., 3., 0., 2., 3., 8., 9., 5., 8., 3., 24., 4., 2., 1., 1., 4., 2., 1., 2., 7., 5., 4., 1., 2., 4., 5., 2., 3., 2., 5., 0., 4., 0., 1., 7., 2., 4., 2., 2., 4., 0., 3., 0., 1., 5., 1., 0., 2., 7., 2., 5., 2., 1., 1., 2., 3., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 2., 7., 3., 4., 0., 10., 29., 1., 13., 23., 2., 15., 2., 0., 2., 18., 2., 2., 10., 15., 17., 28., 3., 1., 0., 5., 2., 9., 5., 38., 24., 2., 12., 5., 11., 7., 2., 1., 2., 2., 13., 10., 16., 45., 17., 12., 13., 5., 1., 5., 1., 3., 2., 12., 4., 7., 22., 3., 21., 5., 1., 0., 2., 5., 1., 0., 3., 5., 2., 3., 4., 1., 4., 1., 0., 2., 2., 1., 0., 1., 3., 2., 5., 2., 3., 3., 2., 4., 0., 3., 1., 1., 7., 3., 0., 0., 0., 1., 2., 0., 4., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 3., 6., 7., 3., 7., 2., 6., 18., 1., 13., 23., 0., 19., 3., 1., 2., 31., 2., 5., 43., 13., 28., 35., 4., 1., 0., 2., 1., 4., 9., 27., 14., 8., 26., 4., 17., 8., 0., 2., 1., 0., 9., 6., 19., 52., 20., 25., 8., 3., 0., 5., 1., 7., 4., 7., 8., 10., 8., 4., 19., 3., 2., 2., 2., 7., 0., 2., 4., 3., 2., 1., 3., 6., 3., 3., 1., 0., 3., 1., 0., 3., 2., 2., 11., 3., 4., 0., 0., 2., 0., 2., 0., 1., 6., 1., 0., 3., 4., 4., 2., 3., 1., 1., 1., 4., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 1., 13., 0., 23., 6., 9., 46., 1., 6., 61., 1., 4., 3., 0., 0., 63., 10., 6., 69., 16., 93., 16., 3., 0., 2., 3., 0., 21., 6., 35., 10., 1., 37., 23., 11., 4., 0., 2., 2., 0., 28., 6., 32., 9., 16., 5., 2., 4., 0., 4., 6., 15., 9., 17., 3., 13., 2., 3., 45., 6., 12., 0., 0., 10., 1., 6., 3., 18., 2., 3., 1., 0., 2., 0., 4., 3., 16., 9., 1., 7., 3., 4., 0., 0., 0., 0., 0., 13., 3., 1., 4., 0., 1., 3., 0., 1., 0., 0., 0., 1., 1., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 3., 2., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 19., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 3., 1., 6., 13., 0., 19., 3., 6., 40., 2., 4., 62., 1., 5., 1., 0., 4., 80., 3., 11., 63., 16., 71., 7., 4., 0., 1., 2., 0., 13., 7., 61., 8., 3., 36., 38., 10., 8., 0., 2., 8., 5., 25., 5., 14., 7., 6., 8., 2., 3., 0., 7., 5., 19., 5., 20., 0., 5., 5., 1., 31., 9., 9., 3., 0., 20., 4., 6., 0., 10., 3., 0., 0., 2., 3., 0., 3., 2., 10., 22., 1., 3., 2., 2., 0., 0., 0., 0., 0., 7., 4., 3., 3., 2., 1., 0., 0., 0., 0., 3., 0., 0., 4., 2., 0., 1., 0., 1., 0., 3., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 23., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 2., 5., 8., 0., 9., 0., 6., 56., 1., 13., 48., 0., 4., 1., 0., 2., 67., 10., 5., 65., 10., 72., 13., 8., 0., 0., 4., 1., 16., 13., 53., 18., 1., 39., 31., 17., 4., 0., 1., 3., 1., 24., 5., 27., 6., 10., 11., 2., 2., 0., 13., 3., 27., 5., 14., 2., 7., 1., 4., 43., 12., 12., 1., 0., 15., 4., 11., 4., 10., 1., 4., 2., 4., 1., 0., 6., 2., 17., 10., 5., 5., 1., 3., 0., 0., 0., 0., 0., 7., 2., 2., 1., 2., 0., 1., 0., 1., 0., 1., 0., 0., 4., 4., 0., 5., 0., 3., 0., 0., 0., 0., 0., 0., 0., 2., 2., 4., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 18., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 5., 1., 8., 0., 20., 1., 3., 44., 2., 7., 58., 1., 5., 3., 0., 2., 64., 7., 8., 83., 14., 81., 8., 3., 0., 2., 1., 4., 14., 8., 42., 15., 3., 36., 30., 14., 7., 0., 1., 7., 4., 25., 14., 19., 7., 11., 4., 6., 1., 0., 10., 3., 11., 5., 17., 4., 10., 4., 4., 51., 12., 7., 2., 0., 23., 4., 9., 5., 15., 2., 4., 1., 0., 1., 0., 2., 3., 14., 12., 1., 2., 2., 2., 0., 0., 0., 0., 0., 9., 1., 2., 0., 2., 0., 2., 0., 0., 0., 1., 0., 0., 2., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 3., 4., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 17., 0., 2., 0., 8., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 4., 1., 7., 0., 11., 1., 8., 34., 1., 8., 64., 1., 4., 1., 0., 3., 55., 5., 7., 69., 16., 90., 12., 2., 0., 2., 3., 0., 20., 8., 47., 17., 1., 43., 33., 20., 5., 0., 0., 4., 2., 17., 7., 31., 11., 22., 8., 2., 2., 0., 9., 5., 17., 9., 18., 3., 6., 3., 3., 36., 6., 6., 2., 0., 5., 3., 9., 2., 7., 1., 3., 1., 3., 1., 0., 2., 1., 16., 12., 2., 1., 1., 5., 0., 0., 0., 0., 0., 12., 1., 2., 0., 3., 0., 1., 0., 1., 0., 3., 0., 6., 0., 2., 0., 2., 0., 3., 0., 1., 0., 0., 0., 1., 0., 1., 4., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 27., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 4., 1., 10., 0., 9., 1., 7., 56., 0., 7., 56., 3., 2., 3., 0., 1., 56., 5., 4., 73., 12., 94., 11., 6., 0., 2., 3., 1., 16., 6., 58., 11., 1., 43., 37., 16., 4., 0., 2., 4., 2., 23., 7., 24., 3., 13., 5., 2., 2., 0., 7., 8., 12., 5., 16., 0., 6., 4., 2., 45., 1., 7., 0., 0., 13., 2., 7., 1., 15., 1., 4., 2., 1., 0., 0., 5., 2., 13., 3., 3., 3., 2., 0., 0., 0., 0., 0., 0., 12., 0., 6., 1., 2., 0., 0., 0., 1., 0., 4., 0., 1., 5., 2., 0., 4., 0., 1., 0., 3., 0., 0., 0., 1., 0., 2., 1., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 27., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 4., 8., 0., 17., 3., 8., 42., 1., 9., 40., 2., 9., 1., 0., 1., 73., 5., 5., 90., 14., 81., 16., 3., 0., 4., 1., 3., 9., 11., 53., 15., 3., 33., 26., 18., 6., 0., 0., 6., 7., 26., 8., 26., 9., 11., 5., 6., 2., 0., 5., 7., 14., 4., 15., 5., 10., 2., 6., 38., 7., 13., 3., 0., 8., 5., 5., 2., 6., 4., 5., 2., 0., 1., 0., 4., 1., 11., 6., 6., 2., 0., 3., 0., 0., 0., 0., 0., 8., 5., 3., 1., 6., 0., 0., 0., 0., 0., 1., 0., 0., 5., 1., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 0., 1., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 26., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 4., 1., 3., 8., 0., 10., 2., 4., 62., 2., 8., 46., 1., 6., 3., 0., 2., 55., 7., 9., 72., 20., 78., 11., 6., 0., 0., 2., 2., 15., 9., 52., 12., 1., 37., 36., 17., 7., 0., 0., 4., 2., 19., 5., 25., 4., 11., 5., 1., 2., 0., 7., 10., 15., 6., 17., 3., 6., 2., 6., 37., 7., 9., 2., 0., 13., 5., 11., 2., 10., 3., 3., 1., 0., 0., 0., 3., 5., 22., 5., 3., 1., 0., 1., 0., 0., 0., 0., 0., 10., 2., 1., 1., 4., 1., 0., 0., 2., 0., 0., 0., 1., 5., 1., 0., 4., 0., 0., 0., 4., 0., 0., 0., 1., 0., 0., 4., 2., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 28., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 4., 17., 0., 12., 5., 6., 50., 0., 8., 51., 0., 4., 3., 0., 2., 67., 7., 7., 78., 13., 59., 15., 0., 0., 1., 4., 0., 18., 12., 49., 19., 2., 29., 40., 14., 9., 0., 1., 8., 5., 15., 8., 26., 8., 9., 5., 1., 4., 0., 14., 3., 11., 8., 18., 1., 9., 5., 1., 31., 9., 10., 1., 0., 7., 5., 6., 0., 10., 2., 7., 3., 1., 1., 0., 2., 0., 13., 7., 5., 2., 2., 1., 0., 0., 0., 0., 0., 3., 1., 2., 3., 7., 0., 0., 0., 1., 0., 1., 0., 0., 5., 1., 0., 5., 0., 3., 0., 2., 0., 0., 0., 1., 0., 4., 1., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 20., 0., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 3., 6., 18., 0., 10., 4., 6., 59., 3., 8., 77., 4., 6., 2., 0., 1., 82., 9., 12., 73., 19., 91., 7., 4., 0., 1., 3., 5., 11., 9., 42., 11., 2., 45., 32., 16., 2., 0., 0., 7., 1., 26., 3., 25., 4., 17., 6., 2., 1., 0., 14., 6., 11., 3., 14., 4., 12., 3., 7., 20., 8., 9., 2., 0., 13., 1., 10., 3., 13., 1., 4., 2., 0., 1., 0., 4., 4., 20., 9., 3., 4., 1., 6., 0., 0., 0., 0., 0., 5., 3., 3., 3., 3., 0., 2., 0., 2., 0., 4., 0., 2., 4., 2., 0., 1., 0., 1., 0., 2., 0., 0., 0., 1., 0., 2., 4., 3., 0., 0., 0., 2., 0., 7., 0., 0., 0., 0., 18., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 4., 8., 12., 0., 21., 2., 8., 41., 0., 7., 58., 1., 7., 2., 0., 1., 70., 10., 9., 79., 11., 90., 19., 4., 0., 1., 6., 1., 16., 5., 47., 10., 3., 37., 28., 19., 3., 0., 2., 5., 4., 24., 4., 28., 2., 14., 11., 2., 1., 0., 8., 2., 15., 7., 16., 2., 6., 2., 3., 35., 14., 8., 1., 0., 13., 6., 5., 1., 12., 0., 4., 1., 0., 2., 0., 3., 3., 17., 4., 2., 6., 2., 3., 0., 0., 0., 0., 0., 11., 1., 6., 2., 1., 1., 2., 0., 1., 0., 3., 0., 0., 1., 4., 0., 2., 0., 2., 0., 0., 0., 0., 0., 1., 0., 1., 3., 4., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 19., 0., 3., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 0., 2., 13., 0., 13., 0., 6., 56., 0., 10., 53., 2., 4., 1., 0., 1., 65., 17., 13., 72., 22., 85., 7., 5., 0., 0., 4., 5., 17., 5., 58., 10., 3., 40., 33., 20., 6., 0., 0., 7., 1., 32., 6., 27., 7., 19., 7., 2., 2., 0., 12., 4., 14., 4., 15., 1., 8., 2., 4., 33., 7., 8., 3., 0., 10., 4., 6., 3., 4., 1., 9., 0., 1., 0., 0., 4., 0., 18., 9., 3., 7., 1., 2., 0., 0., 0., 0., 0., 7., 1., 2., 1., 2., 1., 1., 0., 2., 0., 2., 0., 4., 2., 3., 0., 1., 0., 2., 0., 0., 0., 0., 0., 1., 0., 2., 2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 3., 8., 26., 9., 27., 2., 14., 169., 2., 30., 196., 7., 17., 3., 0., 5., 99., 1., 13., 263., 51., 357., 59., 18., 0., 2., 5., 4., 51., 32., 261., 44., 11., 148., 17., 49., 6., 0., 2., 16., 10., 80., 18., 90., 21., 36., 40., 13., 1., 0., 30., 6., 30., 7., 54., 11., 35., 6., 7., 9., 0., 0., 1., 0., 19., 3., 15., 3., 30., 4., 12., 4., 2., 2., 3., 2., 3., 0., 14., 3., 10., 0., 9., 2., 0., 4., 133., 8., 1846., 89., 116., 211., 99., 113., 72., 19., 16., 26., 9., 0., 1., 9., 5., 6., 7., 2., 41., 15., 30., 15., 37., 1., 11., 3., 4., 7., 9., 2., 2., 3., 8., 1., 0., 5., 5., 11., 2., 0., 9., 3., 1., 0., 4., 3., 3., 33., 2., 14., 2., 8., 1., 27., 2., 3., 1., 5., 30., 7., 23., 4., 4., 6., 7., 49., 7., 10., 6.,
12., 1., 3., 4., 6., 2., 6., 4., 4., 23., 0., 8., 29., 2., 11., 1., 3., 4., 19., 3., 3., 21., 10., 28., 22., 5., 0., 2., 4., 2., 5., 5., 26., 14., 1., 14., 4., 14., 10., 1., 1., 3., 2., 5., 12., 15., 54., 10., 25., 10., 9., 2., 3., 2., 6., 2., 14., 12., 9., 10., 8., 22., 10., 2., 0., 1., 6., 2., 3., 3., 2., 3., 6., 1., 2., 2., 0., 2., 0., 2., 2., 0., 2., 2., 2., 10., 3., 3., 0., 2., 7., 2., 4., 0., 0., 6., 4., 0., 2., 2., 2., 1., 4., 8., 3., 1., 0., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 3., 7., 1., 7., 1., 11., 31., 1., 8., 25., 1., 10., 1., 2., 1., 20., 2., 9., 29., 13., 29., 39., 11., 2., 2., 5., 0., 4., 7., 32., 18., 4., 18., 1., 13., 6., 4., 0., 2., 0., 5., 11., 20., 46., 9., 20., 6., 8., 1., 8., 3., 5., 3., 14., 9., 10., 24., 7., 17., 7., 3., 1., 1., 3., 1., 3., 2., 6., 1., 5., 6., 2., 0., 0., 2., 3., 3., 0., 0., 3., 1., 1., 5., 5., 3., 2., 7., 2., 0., 1., 0., 3., 11., 3., 0., 2., 3., 2., 2., 2., 2., 2., 0., 0., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 6., 7., 3., 11., 0., 6., 29., 2., 8., 21., 0., 18., 5., 0., 3., 13., 3., 2., 31., 6., 22., 21., 5., 1., 0., 3., 1., 4., 5., 31., 14., 3., 10., 4., 10., 9., 2., 1., 7., 3., 14., 8., 17., 54., 5., 23., 12., 4., 0., 8., 1., 7., 3., 7., 9., 11., 19., 9., 25., 7., 3., 2., 0., 6., 0., 7., 2., 10., 3., 3., 4., 1., 5., 5., 1., 3., 3., 2., 0., 2., 1., 2., 3., 2., 4., 3., 3., 3., 0., 2., 1., 3., 7., 3., 0., 2., 5., 0., 0., 1., 3., 3., 2., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 0., 4., 5., 8., 4., 4., 2., 9., 20., 0., 13., 24., 0., 25., 6., 3., 2., 20., 4., 6., 16., 11., 31., 31., 5., 1., 0., 6., 1., 14., 7., 28., 16., 1., 18., 3., 18., 3., 3., 0., 0., 3., 18., 8., 16., 43., 18., 19., 8., 5., 1., 4., 4., 12., 2., 5., 7., 15., 16., 8., 18., 7., 1., 0., 2., 4., 2., 4., 3., 5., 7., 3., 6., 1., 2., 2., 0., 1., 8., 3., 0., 3., 2., 3., 4., 0., 2., 2., 2., 6., 1., 4., 2., 1., 10., 0., 0., 3., 1., 4., 0., 2., 2., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 7., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 1., 6., 3., 4., 2., 5., 13., 0., 9., 19., 0., 7., 1., 0., 3., 26., 1., 2., 24., 12., 25., 24., 7., 4., 0., 1., 3., 7., 9., 35., 11., 2., 23., 3., 17., 8., 3., 0., 7., 0., 11., 13., 16., 40., 11., 25., 9., 5., 0., 6., 2., 5., 3., 14., 7., 10., 16., 8., 18., 6., 5., 2., 4., 7., 1., 2., 1., 6., 4., 3., 4., 1., 5., 4., 1., 3., 5., 5., 0., 1., 0., 1., 5., 2., 4., 4., 0., 2., 0., 6., 1., 2., 12., 1., 0., 1., 2., 2., 3., 2., 1., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 0., 3., 11., 3., 6., 0., 7., 13., 1., 12., 19., 0., 22., 3., 1., 0., 31., 3., 6., 20., 10., 22., 21., 4., 0., 2., 0., 5., 5., 4., 27., 16., 7., 25., 3., 14., 10., 4., 5., 5., 2., 7., 6., 24., 48., 14., 15., 15., 4., 0., 8., 3., 2., 2., 11., 4., 11., 14., 5., 20., 11., 5., 1., 0., 10., 2., 2., 2., 3., 1., 9., 1., 2., 5., 4., 1., 0., 4., 1., 0., 0., 2., 1., 9., 0., 5., 1., 4., 9., 0., 1., 0., 0., 4., 2., 0., 4., 1., 4., 2., 1., 1., 1., 2., 3., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 2., 3., 12., 1., 6., 1., 4., 30., 1., 11., 25., 3., 9., 2., 0., 2., 22., 3., 2., 19., 14., 10., 27., 7., 1., 0., 1., 1., 4., 6., 28., 17., 2., 15., 4., 10., 7., 4., 1., 3., 0., 9., 3., 17., 42., 18., 20., 10., 5., 0., 3., 4., 9., 1., 4., 7., 8., 15., 6., 19., 10., 0., 1., 0., 2., 1., 2., 1., 2., 3., 3., 2., 2., 1., 4., 2., 1., 4., 2., 0., 3., 3., 1., 4., 3., 1., 0., 0., 4., 0., 1., 1., 2., 5., 2., 0., 2., 3., 0., 4., 3., 4., 2., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 3., 3., 7., 11., 1., 5., 1., 7., 8., 0., 15., 24., 0., 14., 2., 0., 1., 20., 2., 6., 31., 12., 23., 21., 5., 2., 0., 3., 4., 18., 6., 17., 16., 6., 13., 2., 12., 7., 0., 1., 4., 2., 18., 7., 16., 45., 11., 20., 15., 3., 0., 5., 2., 6., 3., 16., 5., 9., 19., 3., 23., 5., 5., 0., 1., 8., 3., 3., 4., 7., 2., 6., 4., 1., 2., 4., 1., 0., 4., 2., 0., 2., 5., 2., 6., 0., 3., 0., 2., 5., 2., 1., 1., 2., 7., 0., 0., 2., 2., 2., 1., 0., 4., 1., 1., 1., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 4., 1., 2., 3., 5., 1., 4., 11., 5., 15., 24., 1., 12., 3., 1., 1., 10., 4., 2., 14., 19., 39., 25., 8., 2., 1., 3., 3., 5., 6., 32., 11., 3., 19., 5., 6., 7., 3., 1., 4., 1., 11., 10., 15., 42., 7., 26., 6., 2., 1., 4., 3., 4., 3., 10., 5., 5., 16., 9., 19., 7., 0., 0., 1., 8., 0., 4., 0., 2., 3., 1., 1., 4., 0., 1., 3., 0., 3., 1., 0., 3., 2., 1., 7., 0., 0., 1., 1., 3., 1., 0., 0., 2., 9., 1., 0., 1., 1., 6., 3., 4., 2., 3., 0., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 2., 0., 5., 5., 3., 6., 4., 7., 25., 1., 11., 16., 1., 18., 4., 3., 3., 18., 4., 6., 14., 11., 37., 27., 4., 1., 1., 3., 5., 7., 11., 14., 22., 6., 17., 1., 11., 8., 2., 1., 3., 2., 8., 16., 12., 43., 10., 18., 12., 8., 2., 3., 1., 8., 3., 4., 4., 11., 19., 6., 18., 9., 4., 2., 0., 6., 0., 4., 1., 6., 2., 5., 6., 3., 5., 3., 2., 2., 1., 2., 0., 0., 0., 2., 5., 2., 6., 2., 2., 2., 0., 2., 1., 2., 2., 1., 0., 1., 3., 0., 3., 3., 5., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 0., 4., 11., 4., 10., 1., 10., 11., 1., 14., 28., 0., 10., 6., 0., 3., 19., 3., 2., 13., 13., 27., 28., 6., 1., 1., 1., 3., 7., 9., 20., 13., 1., 13., 5., 12., 11., 1., 0., 3., 3., 13., 10., 14., 50., 18., 20., 10., 4., 0., 5., 4., 8., 2., 8., 6., 8., 15., 6., 22., 7., 5., 0., 2., 6., 0., 1., 1., 0., 5., 5., 4., 0., 7., 3., 1., 2., 3., 0., 0., 3., 1., 2., 7., 0., 3., 3., 2., 6., 1., 2., 1., 4., 4., 4., 0., 0., 1., 0., 0., 2., 4., 1., 1., 4., 0., 0., 0., 0., 1., 0., 0., 5., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 4., 3., 6., 4., 5., 0., 5., 24., 0., 15., 17., 1., 14., 3., 1., 1., 16., 2., 3., 20., 10., 29., 29., 2., 0., 1., 3., 4., 7., 5., 15., 19., 2., 12., 5., 16., 5., 2., 0., 2., 5., 8., 10., 25., 52., 11., 17., 8., 6., 2., 4., 3., 6., 1., 12., 9., 8., 8., 8., 14., 4., 2., 1., 1., 8., 1., 3., 1., 5., 2., 5., 3., 0., 2., 3., 2., 0., 2., 1., 0., 1., 3., 2., 7., 4., 2., 2., 1., 5., 1., 2., 0., 2., 10., 3., 0., 3., 2., 2., 3., 1., 3., 3., 1., 1., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 4., 8., 3., 2., 1., 9., 34., 0., 17., 26., 2., 19., 1., 0., 2., 16., 3., 5., 35., 14., 31., 30., 6., 2., 1., 2., 3., 6., 4., 35., 15., 2., 17., 1., 14., 12., 1., 1., 4., 3., 16., 13., 18., 54., 9., 25., 10., 3., 0., 10., 4., 7., 2., 6., 10., 7., 20., 11., 13., 14., 7., 1., 0., 2., 0., 2., 2., 5., 2., 5., 5., 3., 2., 4., 0., 0., 0., 1., 0., 1., 0., 1., 8., 1., 2., 6., 1., 2., 2., 2., 1., 1., 8., 2., 0., 1., 0., 1., 2., 5., 2., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 5., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 5., 12., 2., 1., 1., 6., 32., 0., 14., 15., 1., 15., 4., 0., 1., 11., 3., 4., 18., 17., 26., 24., 9., 1., 1., 0., 3., 9., 9., 29., 15., 2., 12., 6., 17., 9., 1., 2., 5., 1., 9., 14., 21., 47., 12., 24., 10., 8., 0., 8., 4., 13., 0., 8., 7., 8., 15., 4., 21., 8., 1., 0., 1., 9., 3., 5., 2., 4., 5., 1., 4., 0., 6., 4., 4., 0., 3., 3., 0., 4., 1., 4., 4., 4., 2., 3., 4., 2., 1., 1., 1., 3., 4., 2., 0., 2., 3., 2., 2., 3., 2., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 0., 4., 13., 5., 14., 0., 6., 16., 0., 10., 24., 0., 18., 0., 1., 1., 8., 0., 8., 27., 13., 10., 23., 4., 3., 1., 1., 3., 7., 11., 28., 19., 5., 20., 3., 14., 8., 1., 1., 4., 3., 10., 3., 15., 40., 10., 23., 13., 7., 2., 4., 0., 8., 3., 8., 6., 9., 13., 4., 19., 5., 1., 1., 1., 5., 0., 3., 1., 3., 2., 5., 1., 0., 5., 7., 5., 1., 1., 1., 0., 5., 2., 1., 3., 1., 1., 1., 2., 5., 1., 4., 1., 1., 6., 1., 0., 0., 1., 3., 0., 1., 6., 1., 1., 4., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 4., 6., 10., 7., 5., 1., 8., 19., 1., 11., 29., 1., 14., 2., 3., 3., 17., 4., 3., 23., 17., 30., 27., 4., 1., 1., 4., 4., 10., 6., 21., 10., 4., 17., 3., 18., 9., 1., 2., 4., 3., 20., 14., 19., 36., 11., 21., 8., 6., 1., 4., 3., 8., 2., 10., 8., 9., 17., 8., 16., 13., 4., 0., 1., 8., 3., 3., 1., 7., 0., 9., 5., 0., 4., 6., 2., 0., 1., 2., 0., 2., 0., 1., 4., 1., 2., 2., 0., 2., 1., 1., 0., 3., 8., 0., 0., 2., 0., 3., 0., 1., 1., 3., 1., 2., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 2., 8., 2., 7., 0., 5., 21., 3., 8., 19., 3., 20., 3., 2., 1., 18., 1., 2., 36., 10., 19., 29., 12., 1., 1., 4., 2., 3., 7., 15., 19., 5., 17., 3., 7., 9., 0., 1., 4., 1., 15., 17., 20., 50., 17., 18., 2., 4., 1., 10., 0., 3., 2., 12., 5., 8., 12., 2., 15., 6., 5., 2., 0., 12., 1., 7., 2., 9., 2., 1., 4., 3., 5., 2., 0., 1., 2., 0., 0., 1., 1., 1., 6., 1., 0., 1., 5., 2., 0., 2., 0., 1., 5., 0., 0., 1., 3., 2., 2., 2., 1., 1., 2., 2., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 3., 4., 12., 0., 16., 3., 5., 42., 2., 6., 55., 1., 3., 3., 0., 1., 67., 8., 14., 79., 16., 87., 7., 5., 0., 0., 5., 4., 6., 10., 48., 15., 0., 30., 35., 13., 7., 0., 0., 7., 4., 22., 6., 21., 6., 7., 4., 5., 1., 0., 11., 9., 20., 9., 11., 7., 7., 3., 2., 32., 6., 12., 3., 0., 11., 1., 8., 1., 13., 1., 6., 3., 2., 1., 0., 7., 1., 18., 13., 4., 4., 0., 2., 0., 0., 0., 0., 0., 15., 3., 6., 1., 2., 2., 1., 0., 0., 0., 1., 0., 2., 6., 2., 0., 5., 0., 2., 0., 2., 0., 0., 0., 1., 0., 6., 3., 3., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 18., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 6., 16., 0., 15., 3., 6., 51., 0., 12., 58., 3., 1., 0., 0., 0., 52., 5., 8., 74., 11., 74., 11., 2., 0., 1., 3., 3., 10., 9., 39., 11., 0., 35., 36., 20., 4., 0., 2., 3., 2., 18., 10., 17., 6., 16., 14., 3., 1., 0., 10., 4., 19., 6., 15., 3., 9., 3., 1., 42., 8., 6., 2., 0., 22., 5., 8., 2., 17., 1., 6., 2., 1., 1., 0., 7., 4., 12., 10., 0., 6., 1., 1., 0., 0., 0., 0., 0., 9., 4., 4., 0., 5., 1., 1., 0., 2., 0., 1., 0., 0., 3., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 6., 2., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 22., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 4., 7., 0., 14., 1., 3., 48., 3., 6., 59., 2., 6., 3., 0., 1., 82., 12., 7., 62., 12., 70., 16., 1., 0., 2., 3., 2., 12., 5., 66., 4., 1., 36., 28., 15., 5., 0., 2., 4., 2., 23., 5., 27., 6., 15., 6., 1., 8., 0., 13., 1., 13., 6., 29., 3., 7., 2., 2., 34., 8., 6., 4., 0., 17., 4., 7., 0., 13., 3., 1., 1., 1., 2., 0., 11., 1., 13., 6., 7., 10., 0., 2., 0., 0., 0., 0., 0., 4., 2., 6., 1., 3., 2., 1., 0., 1., 0., 1., 0., 0., 3., 4., 0., 4., 0., 1., 0., 0., 0., 0., 0., 2., 0., 2., 4., 2., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 23., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 3., 6., 8., 0., 14., 0., 5., 38., 1., 4., 59., 2., 9., 3., 0., 1., 78., 9., 11., 76., 11., 76., 8., 3., 0., 0., 4., 2., 9., 6., 61., 11., 1., 43., 37., 17., 8., 0., 0., 8., 2., 26., 5., 26., 10., 11., 2., 5., 3., 0., 10., 1., 6., 3., 20., 2., 12., 4., 1., 34., 9., 4., 4., 0., 10., 6., 9., 2., 13., 0., 5., 0., 1., 2., 0., 4., 4., 25., 6., 8., 4., 1., 1., 0., 0., 0., 0., 0., 10., 6., 7., 4., 1., 3., 0., 0., 2., 0., 2., 0., 1., 4., 0., 0., 1., 0., 1., 0., 1., 0., 0., 0., 3., 0., 1., 3., 3., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 17., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 2., 4., 7., 7., 0., 10., 2., 8., 49., 0., 7., 58., 1., 8., 2., 0., 2., 72., 14., 6., 65., 13., 66., 10., 3., 0., 1., 2., 0., 4., 8., 62., 10., 4., 38., 35., 17., 4., 0., 1., 4., 4., 22., 3., 21., 4., 14., 5., 1., 3., 0., 7., 2., 23., 3., 12., 1., 10., 1., 4., 34., 2., 5., 3., 0., 11., 0., 8., 1., 10., 3., 6., 1., 1., 1., 0., 6., 1., 20., 9., 6., 5., 2., 2., 0., 0., 0., 0., 0., 7., 0., 4., 1., 4., 1., 1., 0., 2., 0., 1., 0., 0., 5., 4., 0., 4., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2., 4., 2., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 25., 0., 4., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 4., 3., 14., 0., 10., 3., 10., 57., 0., 10., 56., 0., 6., 0., 0., 3., 70., 7., 11., 76., 9., 85., 16., 4., 0., 2., 2., 2., 12., 8., 40., 12., 3., 40., 33., 15., 6., 0., 0., 5., 3., 30., 5., 24., 6., 9., 7., 3., 0., 0., 10., 10., 19., 7., 12., 4., 9., 5., 4., 31., 6., 10., 2., 0., 12., 7., 5., 0., 7., 2., 4., 0., 2., 1., 0., 7., 3., 20., 6., 3., 1., 1., 2., 0., 0., 0., 0., 0., 12., 1., 2., 1., 5., 1., 2., 0., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 3., 3., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 27., 0., 5., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 1., 6., 9., 0., 19., 4., 5., 49., 2., 9., 60., 2., 5., 1., 0., 2., 54., 12., 6., 73., 14., 75., 16., 4., 0., 0., 3., 1., 12., 10., 37., 18., 1., 43., 28., 11., 5., 0., 0., 4., 1., 21., 0., 33., 5., 13., 9., 6., 2., 0., 10., 5., 18., 10., 10., 3., 12., 1., 5., 47., 11., 8., 4., 0., 11., 4., 6., 3., 7., 1., 6., 1., 1., 1., 0., 5., 1., 18., 14., 0., 3., 1., 2., 0., 0., 0., 0., 0., 13., 0., 4., 2., 3., 0., 1., 0., 0., 0., 2., 0., 2., 2., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 5., 3., 1., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 22., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 1., 7., 5., 0., 13., 3., 10., 66., 0., 4., 46., 0., 3., 0., 0., 1., 68., 10., 11., 71., 22., 96., 5., 0., 0., 4., 8., 1., 13., 3., 46., 14., 3., 42., 34., 16., 8., 0., 1., 6., 6., 21., 5., 24., 5., 17., 4., 4., 1., 0., 11., 6., 8., 5., 23., 3., 8., 0., 2., 37., 2., 12., 1., 0., 17., 9., 13., 1., 10., 5., 3., 0., 0., 0., 0., 9., 3., 13., 9., 6., 4., 4., 3., 0., 0., 0., 0., 0., 13., 2., 1., 1., 3., 2., 1., 0., 1., 0., 0., 0., 1., 3., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 4., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 25., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 8., 11., 0., 10., 2., 5., 42., 2., 6., 62., 0., 7., 2., 0., 3., 77., 13., 10., 88., 13., 82., 12., 7., 0., 1., 0., 1., 18., 5., 53., 13., 2., 38., 27., 13., 3., 0., 1., 4., 7., 28., 7., 21., 6., 16., 11., 3., 0., 0., 11., 1., 14., 7., 18., 1., 2., 3., 2., 28., 7., 11., 3., 0., 14., 1., 14., 5., 11., 2., 5., 0., 3., 1., 0., 3., 5., 12., 8., 2., 6., 3., 6., 0., 0., 0., 0., 0., 9., 1., 0., 2., 1., 1., 0., 0., 1., 0., 3., 0., 0., 2., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 2., 0., 2., 2., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 28., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 1., 0., 4., 14., 0., 11., 2., 5., 66., 1., 11., 53., 1., 6., 2., 0., 2., 64., 8., 4., 78., 12., 97., 12., 5., 0., 2., 4., 1., 11., 13., 59., 15., 1., 33., 24., 11., 1., 0., 0., 3., 2., 32., 7., 33., 8., 12., 8., 2., 0., 0., 7., 5., 10., 5., 16., 8., 11., 3., 2., 34., 6., 5., 1., 0., 15., 4., 10., 1., 4., 0., 6., 1., 2., 0., 0., 2., 3., 14., 13., 4., 3., 0., 2., 0., 0., 0., 0., 0., 6., 1., 2., 2., 3., 0., 0., 0., 0., 0., 1., 0., 1., 3., 1., 0., 3., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 2., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 31., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 0., 7., 16., 0., 12., 1., 5., 64., 0., 8., 61., 0., 3., 1., 0., 1., 61., 13., 12., 69., 11., 86., 14., 3., 0., 2., 4., 1., 20., 10., 41., 11., 3., 41., 37., 16., 7., 0., 2., 6., 2., 21., 4., 16., 8., 8., 8., 7., 3., 0., 9., 2., 17., 3., 18., 5., 7., 5., 3., 37., 10., 7., 4., 0., 13., 0., 11., 3., 11., 0., 5., 4., 1., 1., 0., 6., 2., 10., 11., 2., 2., 0., 3., 0., 0., 0., 0., 0., 8., 2., 1., 2., 3., 2., 0., 0., 0., 0., 1., 0., 2., 5., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 0., 1., 3., 2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 26., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 4., 4., 15., 0., 15., 2., 9., 61., 1., 9., 62., 1., 3., 2., 0., 1., 89., 7., 12., 72., 13., 89., 6., 7., 0., 1., 4., 4., 20., 7., 56., 11., 2., 31., 45., 10., 3., 0., 1., 7., 4., 27., 8., 25., 13., 12., 4., 4., 0., 0., 11., 3., 23., 1., 22., 7., 10., 2., 2., 29., 14., 9., 4., 0., 13., 2., 7., 2., 5., 2., 3., 1., 0., 2., 0., 2., 2., 15., 13., 4., 6., 1., 2., 0., 0., 0., 0., 0., 13., 0., 2., 4., 2., 0., 1., 0., 2., 0., 1., 0., 0., 2., 2., 0., 1., 0., 3., 0., 1., 0., 0., 0., 0., 0., 1., 2., 3., 0., 0., 0., 3., 0., 5., 0., 0., 0., 0., 21., 0., 2., 0., 8., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 2., 1., 11., 0., 20., 3., 4., 47., 0., 10., 66., 1., 4., 2., 0., 0., 80., 4., 9., 99., 11., 71., 19., 4., 0., 0., 1., 3., 12., 8., 53., 10., 1., 33., 24., 16., 5., 0., 2., 4., 1., 25., 3., 26., 4., 6., 0., 1., 5., 0., 7., 2., 19., 3., 11., 2., 11., 1., 2., 30., 7., 7., 1., 0., 14., 1., 10., 1., 11., 0., 4., 1., 0., 1., 0., 6., 1., 13., 6., 2., 4., 1., 4., 0., 0., 0., 0., 0., 3., 1., 4., 0., 1., 3., 2., 0., 0., 0., 2., 0., 0., 4., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 3., 0., 0., 0., 4., 0., 4., 0., 0., 0., 0., 25., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 1., 2., 3., 10., 0., 16., 3., 9., 49., 2., 8., 57., 1., 2., 3., 0., 1., 77., 7., 8., 77., 9., 85., 10., 4., 0., 0., 2., 5., 21., 10., 48., 8., 3., 43., 35., 17., 8., 0., 0., 10., 2., 23., 9., 24., 6., 11., 7., 5., 4., 0., 7., 4., 15., 1., 18., 4., 12., 1., 2., 34., 9., 8., 2., 0., 15., 2., 15., 0., 10., 4., 5., 0., 3., 1., 0., 2., 2., 19., 5., 5., 4., 1., 3., 0., 0., 0., 0., 0., 8., 1., 3., 1., 3., 0., 0., 0., 2., 0., 4., 0., 1., 3., 2., 0., 1., 0., 0., 0., 2., 0., 0., 0., 3., 0., 5., 1., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 15., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 7., 16., 1., 6., 1., 9., 28., 0., 8., 20., 3., 10., 6., 1., 3., 10., 5., 4., 19., 12., 22., 32., 1., 1., 2., 1., 4., 10., 8., 23., 15., 2., 8., 4., 15., 8., 0., 2., 3., 4., 11., 5., 19., 45., 11., 20., 8., 6., 3., 7., 5., 10., 2., 9., 3., 3., 17., 12., 16., 7., 2., 0., 0., 5., 3., 5., 2., 2., 1., 4., 0., 1., 8., 3., 1., 0., 1., 4., 0., 2., 3., 5., 3., 1., 4., 3., 1., 5., 0., 4., 1., 4., 13., 2., 0., 0., 1., 4., 1., 1., 4., 1., 4., 3., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 2., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 5., 9., 4., 4., 1., 13., 24., 1., 6., 12., 2., 11., 2., 2., 0., 20., 2., 5., 12., 6., 30., 25., 6., 0., 0., 6., 0., 10., 9., 29., 15., 3., 13., 2., 16., 14., 1., 0., 3., 1., 11., 12., 27., 47., 25., 25., 12., 4., 0., 4., 2., 9., 1., 5., 11., 3., 16., 8., 18., 17., 3., 0., 1., 1., 0., 3., 2., 8., 4., 7., 3., 3., 4., 1., 3., 1., 1., 2., 0., 1., 2., 4., 7., 2., 5., 2., 0., 4., 2., 2., 2., 1., 9., 1., 0., 0., 0., 0., 2., 2., 0., 3., 1., 4., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 3., 9., 5., 5., 1., 1., 37., 1., 13., 28., 0., 17., 5., 2., 4., 23., 1., 6., 28., 14., 32., 22., 6., 3., 0., 3., 4., 5., 5., 24., 17., 5., 22., 7., 10., 12., 3., 1., 1., 3., 12., 8., 18., 39., 12., 25., 7., 2., 0., 5., 0., 14., 3., 8., 8., 16., 12., 1., 26., 9., 2., 1., 2., 7., 1., 3., 4., 3., 2., 1., 5., 4., 3., 3., 3., 1., 1., 3., 0., 1., 2., 0., 5., 2., 2., 3., 1., 4., 0., 2., 2., 2., 11., 0., 0., 3., 3., 3., 2., 2., 2., 1., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 1., 10., 3., 4., 0., 12., 26., 1., 18., 16., 0., 12., 0., 2., 1., 19., 2., 6., 27., 14., 14., 31., 8., 2., 0., 4., 4., 10., 5., 33., 19., 3., 20., 4., 14., 8., 2., 4., 5., 1., 17., 13., 10., 36., 17., 21., 4., 3., 1., 6., 2., 4., 2., 13., 4., 10., 7., 5., 18., 7., 2., 1., 0., 8., 0., 7., 1., 8., 2., 6., 5., 3., 2., 2., 2., 2., 0., 2., 0., 3., 2., 1., 5., 3., 4., 2., 2., 4., 4., 1., 1., 0., 9., 3., 0., 3., 2., 2., 1., 1., 2., 4., 1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 5., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 3., 7., 5., 9., 0., 7., 20., 1., 12., 21., 0., 16., 3., 1., 5., 19., 1., 8., 35., 12., 26., 34., 6., 2., 3., 2., 3., 5., 2., 28., 20., 4., 15., 6., 15., 7., 3., 0., 4., 0., 13., 7., 22., 34., 13., 18., 6., 7., 0., 6., 1., 3., 1., 8., 7., 10., 19., 6., 9., 5., 2., 1., 0., 5., 2., 2., 2., 5., 1., 3., 5., 5., 2., 4., 4., 2., 3., 2., 0., 3., 4., 0., 5., 1., 1., 2., 1., 3., 1., 1., 1., 3., 6., 3., 0., 2., 1., 2., 2., 1., 3., 2., 2., 2., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 5., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 3., 8., 3., 4., 9., 2., 8., 23., 0., 10., 16., 2., 12., 3., 1., 2., 16., 0., 6., 23., 14., 27., 18., 3., 0., 1., 7., 2., 5., 4., 39., 18., 2., 14., 4., 13., 5., 3., 2., 4., 3., 8., 7., 13., 56., 6., 26., 4., 2., 2., 2., 2., 11., 6., 13., 3., 10., 15., 2., 25., 10., 2., 1., 0., 2., 3., 5., 1., 5., 3., 2., 3., 2., 4., 2., 0., 1., 2., 5., 0., 1., 3., 2., 4., 2., 0., 3., 0., 2., 0., 2., 0., 1., 5., 1., 0., 1., 2., 1., 3., 1., 1., 0., 3., 2., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 2., 3., 12., 4., 7., 1., 3., 15., 1., 17., 13., 1., 11., 1., 1., 1., 21., 3., 6., 15., 11., 20., 29., 8., 2., 0., 3., 3., 10., 7., 14., 14., 3., 15., 6., 10., 12., 0., 1., 3., 0., 16., 11., 19., 50., 14., 26., 13., 2., 0., 3., 0., 2., 0., 10., 9., 7., 18., 5., 26., 9., 7., 1., 1., 9., 1., 6., 3., 5., 5., 5., 6., 1., 3., 6., 1., 0., 4., 5., 0., 0., 3., 1., 8., 3., 2., 2., 3., 4., 2., 1., 3., 1., 10., 4., 0., 1., 4., 1., 4., 1., 2., 2., 0., 4., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 2., 6., 6., 4., 1., 6., 28., 0., 9., 23., 0., 16., 5., 0., 3., 19., 0., 1., 20., 13., 22., 22., 7., 1., 0., 4., 3., 5., 11., 33., 18., 7., 26., 5., 13., 4., 1., 1., 6., 1., 20., 8., 17., 50., 8., 22., 11., 9., 0., 7., 3., 4., 3., 12., 9., 6., 14., 5., 22., 6., 5., 1., 1., 12., 3., 7., 1., 3., 4., 6., 5., 0., 3., 7., 1., 3., 4., 5., 0., 3., 2., 4., 10., 4., 4., 3., 1., 3., 0., 3., 0., 4., 3., 5., 0., 1., 4., 3., 7., 3., 2., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 4., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 5., 3., 5., 0., 6., 0., 4., 31., 0., 13., 27., 1., 11., 3., 0., 3., 25., 2., 3., 13., 16., 25., 25., 6., 0., 1., 6., 2., 10., 3., 25., 9., 1., 9., 4., 13., 4., 1., 1., 5., 2., 13., 9., 8., 41., 12., 18., 9., 7., 0., 2., 4., 7., 3., 5., 7., 15., 16., 11., 26., 10., 2., 0., 0., 2., 1., 2., 4., 6., 1., 3., 7., 3., 1., 4., 4., 1., 0., 2., 0., 3., 1., 0., 0., 0., 4., 3., 3., 1., 0., 1., 0., 3., 7., 0., 0., 1., 2., 1., 2., 4., 1., 1., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 2., 7., 0., 10., 1., 11., 20., 2., 9., 10., 0., 8., 3., 2., 0., 24., 1., 2., 21., 6., 19., 16., 10., 0., 0., 2., 1., 8., 10., 20., 14., 2., 11., 7., 12., 10., 5., 0., 1., 4., 10., 12., 22., 36., 10., 11., 8., 6., 1., 5., 1., 10., 5., 5., 3., 10., 16., 3., 19., 12., 1., 2., 1., 4., 0., 2., 2., 8., 0., 5., 4., 1., 6., 4., 1., 0., 2., 2., 0., 3., 4., 3., 6., 2., 2., 1., 2., 3., 0., 2., 1., 1., 9., 2., 0., 2., 1., 1., 1., 1., 1., 0., 0., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 9., 4., 4., 4., 1., 4., 31., 0., 9., 26., 1., 16., 1., 1., 3., 27., 3., 4., 31., 19., 17., 25., 6., 3., 2., 6., 2., 8., 3., 38., 19., 4., 20., 4., 20., 7., 1., 1., 5., 0., 12., 8., 20., 46., 11., 20., 12., 4., 1., 6., 1., 4., 0., 16., 10., 11., 15., 11., 22., 5., 3., 1., 2., 7., 0., 1., 2., 8., 2., 5., 5., 2., 1., 3., 1., 0., 2., 0., 0., 1., 2., 1., 2., 2., 5., 3., 3., 4., 1., 5., 0., 3., 10., 1., 0., 0., 5., 0., 6., 2., 3., 3., 2., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 3., 10., 3., 6., 1., 6., 14., 2., 11., 19., 0., 11., 4., 0., 2., 22., 3., 4., 22., 15., 28., 26., 5., 3., 2., 3., 1., 6., 6., 29., 15., 5., 19., 3., 15., 8., 1., 1., 4., 0., 9., 14., 13., 53., 12., 14., 7., 4., 1., 2., 3., 8., 1., 10., 8., 9., 15., 4., 23., 5., 3., 0., 2., 2., 0., 2., 2., 8., 1., 7., 8., 2., 2., 2., 4., 0., 2., 0., 0., 2., 3., 5., 5., 1., 3., 0., 4., 7., 1., 2., 2., 3., 6., 2., 0., 1., 2., 1., 3., 3., 0., 2., 0., 3., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 3., 8., 4., 3., 0., 7., 19., 0., 16., 29., 0., 14., 4., 2., 0., 30., 4., 1., 32., 20., 34., 26., 8., 1., 0., 4., 1., 7., 7., 40., 19., 3., 16., 2., 21., 20., 2., 1., 5., 1., 15., 8., 22., 52., 12., 33., 12., 3., 0., 4., 3., 6., 2., 13., 1., 9., 25., 6., 16., 8., 2., 1., 0., 5., 1., 4., 2., 6., 4., 5., 5., 2., 2., 0., 2., 2., 0., 2., 0., 2., 2., 0., 4., 4., 6., 0., 0., 4., 0., 6., 0., 1., 3., 3., 0., 3., 2., 2., 1., 2., 2., 1., 1., 3., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 1., 3., 5., 3., 6., 0., 8., 6., 1., 16., 22., 0., 19., 3., 0., 4., 24., 4., 2., 29., 14., 29., 23., 11., 2., 3., 6., 2., 5., 13., 21., 7., 1., 11., 5., 20., 4., 3., 1., 6., 2., 7., 9., 12., 37., 10., 26., 7., 7., 0., 7., 3., 6., 2., 10., 9., 7., 12., 10., 17., 5., 2., 1., 1., 7., 3., 4., 4., 7., 5., 2., 3., 0., 3., 5., 2., 0., 3., 1., 0., 3., 2., 1., 5., 2., 2., 2., 4., 4., 0., 3., 2., 3., 6., 0., 0., 4., 0., 2., 3., 2., 5., 3., 1., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 2., 5., 9., 3., 7., 3., 6., 25., 1., 18., 22., 1., 20., 0., 2., 2., 20., 2., 6., 18., 10., 27., 33., 6., 1., 1., 3., 1., 4., 12., 45., 16., 3., 20., 2., 11., 10., 1., 1., 4., 3., 10., 16., 15., 41., 10., 20., 13., 3., 3., 6., 0., 7., 1., 5., 6., 5., 11., 8., 21., 4., 4., 0., 1., 7., 0., 1., 2., 7., 1., 5., 6., 4., 5., 0., 1., 0., 3., 1., 0., 2., 0., 2., 5., 3., 7., 0., 1., 4., 1., 1., 0., 4., 11., 4., 0., 2., 2., 1., 6., 1., 1., 4., 3., 1., 0., 0., 0., 0., 3., 0., 0., 3., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 1., 17., 0., 6., 0., 5., 25., 1., 9., 28., 3., 13., 2., 2., 3., 22., 1., 2., 23., 10., 16., 32., 4., 1., 1., 4., 3., 9., 6., 23., 18., 4., 19., 1., 15., 6., 1., 2., 5., 2., 15., 6., 22., 35., 14., 16., 10., 3., 0., 7., 1., 8., 5., 9., 4., 11., 22., 6., 18., 7., 3., 1., 0., 6., 2., 3., 2., 6., 5., 4., 4., 5., 1., 6., 1., 0., 1., 0., 0., 0., 1., 0., 6., 0., 5., 2., 3., 3., 1., 1., 1., 3., 3., 3., 0., 2., 3., 2., 1., 1., 3., 2., 3., 8., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 4., 10., 2., 8., 0., 4., 13., 1., 14., 22., 2., 20., 2., 1., 2., 22., 1., 10., 33., 13., 22., 26., 9., 0., 1., 4., 2., 8., 8., 32., 13., 3., 17., 4., 13., 7., 5., 0., 3., 0., 15., 10., 13., 50., 15., 15., 8., 6., 1., 6., 2., 8., 3., 6., 3., 6., 11., 4., 25., 3., 0., 2., 3., 9., 4., 2., 2., 6., 3., 5., 1., 2., 1., 5., 3., 1., 3., 1., 0., 3., 0., 1., 8., 2., 2., 4., 6., 1., 1., 4., 0., 2., 7., 2., 0., 2., 1., 1., 1., 0., 2., 4., 1., 1., 0., 0., 0., 0., 4., 0., 0., 5., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 1., 6., 9., 0., 26., 0., 1., 36., 2., 8., 54., 0., 7., 3., 0., 3., 75., 9., 8., 68., 10., 86., 16., 4., 0., 1., 5., 2., 14., 10., 59., 10., 2., 33., 34., 22., 7., 0., 1., 5., 5., 15., 2., 28., 7., 14., 10., 1., 1., 0., 10., 3., 15., 2., 19., 4., 5., 2., 4., 33., 9., 7., 0., 0., 20., 3., 14., 4., 9., 1., 3., 1., 0., 1., 0., 3., 1., 17., 9., 3., 6., 1., 3., 0., 0., 0., 0., 0., 9., 2., 1., 3., 0., 0., 2., 0., 2., 0., 3., 0., 0., 1., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 4., 0., 0., 0., 4., 0., 5., 0., 0., 0., 0., 30., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 3., 10., 0., 9., 0., 2., 40., 2., 7., 63., 0., 2., 1., 0., 4., 54., 14., 11., 92., 13., 87., 9., 7., 0., 1., 2., 1., 11., 7., 45., 12., 3., 54., 34., 22., 4., 0., 0., 10., 9., 18., 6., 21., 8., 11., 9., 5., 4., 0., 12., 3., 16., 6., 12., 4., 7., 5., 3., 42., 11., 8., 1., 0., 19., 5., 9., 4., 13., 3., 4., 0., 1., 4., 0., 10., 0., 5., 12., 4., 7., 1., 2., 0., 0., 0., 0., 0., 7., 3., 4., 4., 3., 0., 1., 0., 0., 0., 1., 0., 1., 1., 1., 0., 3., 0., 3., 0., 0., 0., 0., 0., 2., 0., 2., 2., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 20., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 7., 7., 0., 14., 3., 6., 42., 2., 6., 40., 3., 5., 4., 0., 1., 83., 15., 10., 84., 15., 85., 6., 7., 0., 1., 1., 2., 17., 8., 52., 11., 1., 41., 35., 16., 7., 0., 2., 5., 5., 27., 4., 17., 6., 8., 7., 1., 3., 0., 9., 1., 17., 5., 15., 4., 5., 2., 7., 32., 7., 8., 3., 0., 21., 0., 4., 1., 11., 1., 2., 2., 1., 2., 0., 4., 1., 16., 12., 2., 2., 1., 3., 0., 0., 0., 0., 0., 7., 0., 2., 0., 1., 1., 0., 0., 1., 0., 0., 0., 2., 3., 1., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 29., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 0., 4., 9., 0., 14., 4., 9., 46., 1., 12., 59., 0., 8., 0., 0., 6., 52., 9., 10., 60., 22., 75., 15., 4., 0., 2., 2., 2., 16., 6., 55., 14., 2., 40., 29., 15., 7., 0., 0., 6., 2., 21., 6., 29., 7., 13., 3., 2., 0., 0., 13., 3., 25., 9., 10., 2., 9., 3., 2., 35., 10., 6., 1., 0., 11., 3., 8., 0., 16., 2., 2., 1., 0., 0., 0., 4., 3., 20., 8., 0., 7., 0., 3., 0., 0., 0., 0., 0., 7., 1., 6., 4., 3., 1., 2., 0., 0., 0., 1., 0., 0., 2., 4., 0., 3., 0., 2., 0., 3., 0., 0., 0., 1., 0., 3., 1., 2., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 20., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 0., 4., 12., 0., 9., 1., 2., 60., 0., 7., 70., 2., 7., 1., 0., 2., 64., 8., 8., 64., 10., 70., 9., 3., 0., 1., 3., 3., 11., 9., 36., 17., 2., 37., 30., 12., 8., 0., 3., 7., 2., 24., 7., 19., 8., 13., 10., 2., 1., 0., 5., 2., 14., 7., 28., 1., 10., 3., 3., 43., 11., 10., 0., 0., 14., 5., 8., 0., 11., 1., 2., 2., 1., 2., 0., 4., 2., 11., 12., 2., 2., 1., 6., 0., 0., 0., 0., 0., 13., 2., 2., 3., 4., 1., 4., 0., 1., 0., 0., 0., 0., 2., 3., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 5., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 22., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 3., 4., 9., 0., 12., 0., 11., 53., 1., 7., 55., 3., 9., 5., 0., 3., 86., 7., 9., 63., 8., 87., 12., 6., 0., 1., 1., 4., 13., 9., 38., 13., 3., 39., 34., 13., 6., 0., 0., 6., 2., 19., 3., 34., 6., 17., 3., 2., 0., 0., 13., 3., 15., 5., 20., 3., 10., 3., 3., 25., 11., 6., 1., 0., 6., 3., 9., 5., 10., 3., 5., 1., 3., 0., 0., 5., 1., 15., 11., 3., 3., 0., 1., 0., 0., 0., 0., 0., 10., 2., 1., 2., 4., 0., 1., 0., 1., 0., 1., 0., 1., 6., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 2., 0., 5., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 17., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 3., 3., 12., 0., 18., 3., 11., 50., 1., 8., 33., 1., 2., 0., 0., 2., 77., 11., 10., 80., 16., 98., 22., 2., 0., 2., 3., 0., 8., 8., 49., 12., 0., 46., 25., 10., 5., 0., 4., 8., 2., 31., 7., 22., 12., 12., 6., 2., 2., 0., 11., 3., 17., 4., 15., 1., 9., 3., 4., 39., 6., 8., 2., 0., 11., 3., 11., 4., 11., 0., 2., 1., 0., 0., 0., 4., 0., 20., 5., 2., 5., 2., 1., 0., 0., 0., 0., 0., 9., 3., 3., 3., 1., 1., 2., 0., 0., 0., 2., 0., 1., 2., 2., 0., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 1., 2., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 24., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 3., 5., 8., 0., 14., 1., 7., 52., 0., 9., 62., 2., 3., 1., 0., 2., 57., 8., 7., 74., 11., 80., 8., 4., 0., 1., 2., 0., 8., 11., 59., 12., 0., 39., 29., 19., 7., 0., 0., 6., 5., 32., 7., 26., 8., 9., 7., 8., 1., 0., 11., 5., 13., 5., 14., 3., 7., 3., 7., 33., 7., 8., 1., 0., 10., 4., 4., 1., 15., 2., 3., 1., 0., 0., 0., 4., 3., 19., 9., 4., 4., 1., 4., 0., 0., 0., 0., 0., 12., 1., 5., 3., 1., 1., 0., 0., 2., 0., 1., 0., 0., 6., 3., 0., 2., 0., 1., 0., 1., 0., 0., 0., 2., 0., 2., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 32., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 0., 4., 18., 0., 20., 2., 6., 40., 4., 13., 58., 0., 3., 2., 0., 2., 58., 7., 8., 86., 18., 90., 9., 1., 0., 1., 6., 2., 13., 16., 48., 10., 1., 35., 27., 16., 4., 0., 1., 4., 3., 21., 5., 26., 5., 18., 6., 4., 3., 0., 13., 1., 21., 5., 15., 0., 8., 6., 1., 38., 8., 3., 3., 0., 12., 1., 7., 1., 8., 3., 7., 0., 2., 1., 0., 6., 1., 15., 7., 2., 5., 3., 1., 0., 0., 0., 0., 0., 11., 3., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 2., 4., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 1., 0., 1., 0., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 27., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 3., 1., 6., 0., 19., 1., 2., 47., 2., 6., 55., 0., 9., 5., 0., 3., 64., 11., 10., 85., 15., 95., 16., 2., 0., 0., 6., 2., 19., 9., 55., 9., 4., 47., 27., 16., 4., 0., 1., 9., 1., 24., 3., 27., 5., 12., 12., 4., 1., 0., 10., 3., 14., 4., 21., 2., 8., 2., 3., 23., 11., 9., 5., 0., 18., 3., 8., 3., 5., 2., 3., 1., 1., 1., 0., 2., 2., 17., 8., 6., 7., 4., 3., 0., 0., 0., 0., 0., 14., 0., 6., 0., 7., 1., 0., 0., 0., 0., 0., 0., 0., 8., 2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 4., 3., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 38., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 1., 4., 13., 0., 8., 0., 9., 50., 1., 7., 53., 0., 4., 1., 0., 0., 76., 7., 6., 75., 17., 94., 13., 3., 0., 2., 0., 1., 16., 8., 48., 11., 2., 42., 41., 15., 5., 0., 0., 2., 3., 29., 7., 37., 13., 15., 7., 3., 1., 0., 6., 5., 8., 6., 19., 1., 16., 3., 2., 35., 12., 7., 1., 0., 13., 2., 7., 2., 12., 2., 4., 0., 2., 0., 0., 5., 2., 9., 6., 10., 6., 0., 4., 0., 0., 0., 0., 0., 6., 2., 5., 0., 1., 1., 1., 0., 2., 0., 0., 0., 1., 0., 4., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2., 1., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 16., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 2., 4., 16., 0., 15., 0., 5., 63., 2., 3., 63., 1., 5., 2., 0., 2., 76., 9., 8., 63., 14., 73., 15., 2., 0., 2., 4., 0., 13., 7., 49., 13., 2., 31., 43., 10., 3., 0., 0., 5., 0., 26., 8., 27., 2., 13., 7., 4., 0., 0., 11., 1., 16., 4., 9., 3., 12., 6., 2., 38., 8., 5., 2., 0., 13., 1., 9., 2., 12., 4., 3., 2., 0., 1., 0., 7., 2., 17., 11., 5., 1., 0., 2., 0., 0., 0., 0., 0., 11., 1., 3., 3., 3., 0., 3., 0., 1., 0., 0., 0., 2., 6., 5., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 4., 2., 3., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 22., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 2., 2., 6., 0., 12., 3., 7., 55., 0., 10., 64., 1., 2., 2., 0., 3., 59., 9., 12., 68., 16., 72., 6., 2., 0., 0., 0., 1., 14., 16., 54., 8., 1., 45., 38., 16., 6., 0., 2., 6., 1., 29., 10., 26., 5., 17., 12., 5., 4., 0., 7., 4., 13., 5., 17., 5., 7., 4., 2., 34., 8., 7., 3., 0., 12., 2., 11., 2., 13., 2., 5., 3., 1., 2., 0., 1., 2., 14., 7., 2., 6., 2., 3., 0., 0., 0., 0., 0., 9., 2., 6., 2., 2., 1., 0., 0., 3., 0., 2., 0., 0., 3., 3., 0., 3., 0., 1., 0., 1., 0., 0., 0., 2., 0., 1., 2., 2., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 29., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 3., 1., 3., 15., 0., 16., 0., 11., 70., 1., 6., 88., 0., 4., 2., 0., 1., 65., 13., 3., 68., 19., 75., 19., 6., 0., 1., 5., 2., 21., 8., 63., 15., 1., 33., 26., 24., 8., 0., 1., 4., 2., 18., 3., 16., 12., 10., 4., 1., 2., 0., 9., 4., 12., 5., 14., 4., 13., 6., 3., 30., 4., 10., 5., 0., 11., 0., 5., 0., 6., 3., 3., 2., 1., 1., 0., 5., 2., 20., 14., 4., 9., 0., 5., 0., 0., 0., 0., 0., 10., 2., 2., 4., 2., 0., 0., 0., 1., 0., 2., 0., 1., 3., 0., 0., 4., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 3., 2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 18., 0., 3., 0., 8., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 0., 5., 12., 0., 12., 0., 6., 56., 0., 11., 70., 1., 5., 1., 0., 1., 82., 4., 10., 64., 12., 94., 14., 2., 0., 0., 1., 3., 12., 6., 67., 18., 2., 47., 33., 14., 8., 0., 2., 8., 5., 15., 5., 22., 4., 13., 8., 3., 2., 0., 13., 4., 21., 3., 17., 1., 4., 5., 0., 43., 13., 6., 1., 0., 14., 1., 5., 2., 12., 0., 11., 1., 1., 4., 0., 4., 1., 18., 7., 6., 5., 1., 2., 0., 0., 0., 0., 0., 11., 1., 3., 2., 2., 1., 2., 0., 3., 0., 0., 0., 0., 3., 0., 0., 3., 0., 1., 0., 2., 0., 0., 0., 1., 0., 3., 1., 1., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 12., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 2., 4., 9., 3., 11., 2., 6., 11., 4., 15., 25., 2., 11., 3., 0., 0., 16., 3., 6., 19., 16., 23., 26., 6., 1., 1., 7., 0., 8., 6., 41., 21., 3., 16., 2., 9., 12., 3., 1., 3., 4., 14., 12., 13., 56., 13., 16., 10., 6., 0., 2., 2., 6., 0., 16., 4., 3., 12., 10., 24., 11., 4., 0., 3., 7., 1., 1., 3., 9., 1., 4., 3., 2., 1., 4., 3., 2., 5., 2., 0., 1., 1., 3., 6., 3., 2., 1., 2., 8., 2., 4., 0., 2., 11., 0., 0., 2., 5., 5., 1., 1., 2., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 9., 8., 4., 10., 3., 9., 24., 0., 12., 26., 0., 20., 3., 1., 1., 13., 1., 5., 22., 13., 31., 27., 4., 0., 1., 3., 3., 10., 11., 25., 15., 6., 15., 1., 13., 9., 2., 2., 3., 1., 12., 12., 17., 41., 6., 16., 11., 4., 0., 4., 2., 4., 2., 4., 7., 9., 9., 5., 27., 11., 0., 1., 2., 6., 1., 3., 2., 10., 6., 1., 2., 1., 6., 3., 2., 0., 2., 1., 0., 3., 2., 1., 4., 4., 5., 2., 2., 4., 1., 1., 0., 3., 6., 3., 0., 2., 3., 1., 5., 2., 5., 0., 0., 2., 0., 0., 0., 0., 5., 0., 0., 5., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 4., 11., 0., 4., 0., 9., 23., 1., 10., 26., 1., 10., 5., 1., 4., 19., 2., 2., 14., 12., 31., 32., 5., 0., 0., 1., 0., 6., 2., 22., 20., 3., 23., 4., 16., 10., 1., 1., 7., 4., 7., 6., 22., 52., 9., 19., 5., 4., 0., 9., 1., 6., 1., 8., 8., 7., 14., 5., 21., 12., 1., 3., 0., 6., 3., 0., 3., 3., 1., 5., 4., 3., 10., 2., 2., 0., 3., 1., 0., 3., 2., 1., 5., 5., 4., 3., 2., 2., 1., 2., 0., 3., 6., 2., 0., 3., 2., 3., 1., 1., 3., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 5., 12., 3., 4., 1., 6., 17., 1., 17., 21., 1., 12., 5., 1., 3., 26., 1., 3., 17., 14., 22., 24., 7., 0., 0., 4., 1., 3., 9., 19., 10., 2., 17., 6., 15., 13., 2., 0., 3., 4., 13., 6., 18., 59., 14., 20., 14., 1., 0., 6., 4., 10., 2., 8., 7., 6., 25., 3., 25., 3., 3., 1., 3., 6., 2., 4., 0., 4., 2., 5., 4., 2., 3., 3., 3., 0., 4., 0., 0., 2., 3., 2., 4., 2., 5., 1., 0., 6., 0., 3., 2., 1., 9., 1., 0., 0., 0., 6., 0., 2., 3., 3., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 3., 1., 9., 1., 7., 1., 10., 24., 3., 13., 24., 0., 9., 3., 1., 0., 18., 2., 2., 22., 10., 16., 24., 8., 0., 0., 3., 4., 5., 8., 23., 20., 1., 9., 5., 16., 7., 2., 1., 4., 2., 10., 10., 12., 46., 14., 21., 1., 2., 1., 5., 5., 6., 1., 9., 7., 6., 14., 3., 17., 11., 3., 0., 1., 6., 1., 3., 3., 5., 3., 4., 2., 2., 4., 2., 1., 0., 1., 1., 0., 3., 1., 0., 6., 0., 4., 2., 1., 4., 2., 1., 1., 2., 10., 1., 0., 3., 2., 2., 2., 1., 4., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 3., 4., 10., 1., 6., 1., 3., 21., 0., 13., 35., 4., 11., 0., 2., 4., 19., 2., 3., 28., 13., 19., 17., 6., 1., 0., 1., 3., 8., 2., 24., 14., 2., 18., 4., 10., 8., 2., 0., 5., 1., 16., 19., 21., 50., 11., 22., 5., 6., 2., 10., 2., 3., 4., 6., 8., 5., 12., 6., 21., 9., 4., 2., 0., 6., 2., 2., 2., 6., 3., 4., 5., 2., 2., 2., 1., 1., 1., 0., 0., 2., 3., 4., 8., 1., 3., 0., 2., 4., 1., 7., 2., 1., 8., 1., 0., 4., 2., 1., 2., 4., 4., 2., 0., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 2., 4., 10., 3., 4., 0., 6., 25., 0., 13., 20., 1., 11., 3., 0., 1., 12., 1., 2., 13., 8., 30., 26., 8., 1., 0., 1., 3., 6., 9., 27., 16., 5., 16., 6., 15., 6., 3., 0., 3., 2., 19., 4., 19., 56., 6., 15., 13., 6., 4., 7., 3., 11., 5., 17., 8., 6., 13., 10., 12., 5., 2., 0., 2., 7., 1., 1., 6., 2., 2., 4., 5., 2., 6., 3., 1., 2., 2., 2., 0., 4., 3., 3., 8., 3., 5., 3., 1., 7., 2., 1., 0., 2., 6., 2., 0., 3., 1., 3., 1., 2., 4., 2., 2., 1., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 0., 1., 4., 11., 3., 5., 3., 6., 11., 1., 19., 19., 0., 12., 5., 1., 0., 24., 0., 8., 36., 8., 18., 24., 4., 0., 0., 4., 3., 4., 6., 20., 20., 6., 11., 5., 20., 8., 2., 1., 4., 1., 10., 10., 18., 54., 15., 16., 7., 4., 1., 5., 2., 5., 3., 10., 7., 7., 24., 4., 21., 13., 2., 1., 0., 6., 1., 0., 4., 5., 3., 7., 1., 1., 5., 2., 1., 1., 1., 4., 0., 1., 0., 2., 2., 6., 1., 2., 1., 6., 2., 1., 1., 2., 4., 1., 0., 1., 2., 3., 1., 1., 0., 3., 0., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 0., 2., 10., 2., 6., 1., 7., 27., 2., 9., 18., 0., 21., 5., 1., 4., 18., 1., 3., 18., 9., 18., 22., 7., 1., 0., 4., 1., 8., 3., 34., 14., 4., 18., 5., 16., 7., 0., 0., 8., 3., 15., 14., 17., 44., 9., 23., 3., 2., 0., 0., 3., 10., 2., 15., 9., 8., 15., 4., 16., 12., 5., 1., 1., 10., 1., 2., 2., 9., 8., 4., 3., 3., 7., 4., 2., 2., 3., 2., 0., 2., 1., 3., 3., 3., 4., 4., 2., 2., 0., 2., 0., 2., 6., 5., 0., 2., 3., 2., 4., 3., 1., 2., 1., 1., 0., 0., 0., 0., 2., 0., 0., 7., 0., 0., 0., 1., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 4., 5., 7., 2., 10., 1., 5., 23., 1., 17., 27., 1., 9., 1., 3., 3., 14., 1., 3., 16., 11., 25., 28., 1., 1., 0., 2., 2., 13., 14., 30., 14., 7., 18., 4., 12., 10., 2., 0., 5., 1., 8., 14., 15., 52., 17., 28., 9., 5., 0., 7., 2., 7., 6., 6., 2., 5., 12., 7., 15., 3., 2., 1., 0., 5., 2., 3., 4., 4., 4., 7., 4., 1., 1., 3., 2., 0., 3., 4., 0., 2., 0., 1., 2., 5., 4., 3., 4., 5., 2., 0., 1., 1., 6., 4., 0., 4., 3., 2., 3., 3., 0., 2., 1., 4., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 0., 6., 9., 1., 8., 0., 3., 19., 0., 11., 30., 1., 9., 5., 0., 2., 8., 0., 2., 32., 11., 24., 26., 4., 1., 2., 3., 3., 12., 9., 35., 17., 4., 21., 2., 20., 5., 2., 3., 4., 2., 15., 13., 13., 43., 15., 26., 11., 3., 0., 8., 2., 1., 4., 12., 8., 5., 23., 10., 28., 8., 3., 0., 0., 10., 0., 0., 2., 2., 1., 2., 1., 1., 3., 3., 3., 2., 1., 4., 0., 0., 1., 1., 5., 2., 7., 3., 2., 3., 0., 2., 1., 4., 6., 1., 0., 2., 1., 4., 4., 0., 2., 1., 1., 2., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 5., 5., 5., 2., 6., 0., 10., 20., 0., 11., 18., 2., 18., 3., 0., 0., 11., 1., 4., 42., 8., 20., 24., 8., 0., 1., 4., 4., 5., 8., 12., 18., 2., 12., 4., 13., 8., 3., 0., 3., 3., 13., 17., 18., 39., 13., 19., 11., 6., 1., 6., 2., 11., 2., 13., 1., 7., 27., 4., 26., 8., 2., 2., 2., 6., 1., 5., 2., 2., 4., 3., 4., 2., 4., 2., 5., 2., 4., 3., 0., 1., 1., 1., 9., 3., 2., 1., 3., 1., 0., 1., 3., 4., 6., 5., 0., 3., 2., 2., 4., 2., 1., 3., 0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 2., 9., 2., 6., 0., 10., 27., 4., 15., 32., 1., 16., 3., 1., 2., 11., 1., 1., 27., 7., 22., 34., 5., 3., 0., 5., 0., 10., 4., 25., 17., 3., 18., 9., 13., 12., 0., 1., 4., 0., 15., 13., 11., 55., 12., 15., 12., 2., 1., 2., 2., 9., 3., 8., 5., 7., 22., 4., 28., 9., 3., 0., 0., 10., 3., 4., 4., 4., 4., 4., 3., 1., 7., 6., 4., 1., 3., 2., 0., 2., 4., 0., 10., 2., 8., 1., 1., 5., 0., 2., 2., 2., 14., 2., 0., 1., 2., 4., 2., 1., 2., 2., 1., 2., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 1., 11., 5., 2., 3., 0., 7., 25., 1., 12., 21., 0., 20., 2., 1., 1., 14., 1., 6., 20., 11., 27., 19., 9., 2., 1., 2., 4., 5., 3., 26., 18., 3., 12., 5., 19., 8., 3., 1., 10., 0., 14., 9., 17., 45., 9., 20., 14., 1., 1., 3., 2., 2., 3., 10., 1., 7., 9., 5., 24., 10., 3., 3., 3., 12., 2., 2., 1., 5., 6., 3., 1., 1., 4., 2., 5., 1., 1., 2., 0., 0., 3., 1., 4., 3., 3., 1., 0., 4., 0., 1., 1., 1., 10., 0., 0., 4., 4., 1., 2., 1., 4., 0., 1., 5., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 5., 6., 8., 5., 9., 1., 7., 22., 0., 9., 19., 1., 19., 4., 1., 2., 17., 2., 7., 31., 11., 11., 29., 3., 4., 0., 1., 2., 7., 0., 22., 22., 1., 13., 4., 14., 6., 1., 2., 2., 2., 7., 12., 23., 36., 11., 25., 9., 5., 2., 1., 1., 2., 3., 11., 4., 3., 13., 5., 19., 4., 1., 1., 1., 3., 1., 2., 1., 8., 4., 3., 4., 2., 3., 1., 1., 0., 2., 0., 0., 1., 1., 3., 6., 4., 2., 1., 1., 4., 0., 2., 0., 1., 6., 3., 0., 4., 1., 0., 1., 2., 4., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 4., 3., 12., 0., 18., 2., 13., 39., 0., 5., 67., 0., 6., 2., 0., 3., 68., 6., 15., 79., 8., 77., 16., 4., 0., 2., 4., 2., 13., 12., 50., 13., 0., 43., 37., 10., 4., 0., 1., 6., 3., 22., 8., 23., 6., 7., 8., 1., 2., 0., 5., 4., 19., 7., 18., 2., 9., 3., 3., 39., 5., 7., 2., 0., 17., 2., 4., 3., 17., 2., 5., 0., 0., 2., 0., 5., 2., 13., 11., 4., 8., 0., 2., 0., 0., 0., 0., 0., 9., 0., 1., 2., 2., 1., 1., 0., 0., 0., 0., 0., 1., 3., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 3., 1., 1., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 23., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 2., 11., 0., 16., 1., 9., 49., 0., 13., 57., 1., 6., 3., 0., 3., 73., 7., 3., 95., 10., 68., 7., 6., 0., 1., 4., 2., 14., 9., 47., 9., 1., 51., 42., 15., 4., 0., 1., 11., 4., 18., 6., 23., 4., 10., 3., 2., 3., 0., 5., 4., 19., 4., 14., 0., 7., 0., 3., 31., 7., 6., 2., 0., 10., 1., 10., 4., 11., 2., 3., 1., 3., 5., 0., 7., 2., 20., 7., 4., 7., 3., 2., 0., 0., 0., 0., 0., 9., 0., 3., 6., 3., 0., 0., 0., 0., 0., 0., 0., 0., 6., 4., 0., 1., 0., 4., 0., 2., 0., 0., 0., 3., 0., 4., 4., 0., 0., 0., 0., 0., 0., 8., 0., 0., 0., 0., 21., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 5., 12., 0., 14., 2., 6., 55., 1., 12., 55., 2., 9., 0., 0., 0., 48., 9., 7., 71., 15., 94., 10., 0., 0., 2., 3., 1., 10., 9., 41., 18., 3., 45., 28., 9., 4., 0., 0., 5., 6., 16., 7., 22., 10., 12., 2., 0., 3., 0., 6., 6., 17., 4., 12., 3., 9., 3., 5., 41., 7., 9., 3., 0., 16., 1., 7., 2., 8., 0., 5., 2., 0., 0., 0., 7., 0., 13., 6., 5., 5., 1., 1., 0., 0., 0., 0., 0., 8., 1., 2., 2., 3., 2., 2., 0., 1., 0., 2., 0., 1., 1., 2., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 27., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 3., 12., 0., 17., 2., 7., 44., 2., 9., 54., 1., 6., 1., 0., 0., 65., 5., 6., 87., 16., 95., 12., 2., 0., 2., 1., 2., 19., 10., 51., 15., 1., 45., 27., 9., 5., 0., 1., 5., 2., 18., 5., 27., 9., 17., 7., 0., 4., 0., 13., 4., 12., 4., 16., 3., 8., 2., 1., 43., 11., 3., 3., 0., 20., 6., 9., 2., 11., 1., 5., 3., 2., 0., 0., 2., 2., 26., 10., 4., 7., 0., 3., 0., 0., 0., 0., 0., 8., 1., 3., 2., 1., 2., 1., 0., 3., 0., 0., 0., 0., 1., 1., 0., 1., 0., 1., 0., 2., 0., 0., 0., 2., 0., 2., 2., 2., 0., 0., 0., 5., 0., 7., 0., 0., 0., 0., 28., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 2., 2., 8., 0., 15., 2., 11., 50., 2., 16., 52., 1., 7., 3., 0., 4., 55., 12., 4., 55., 18., 85., 12., 5., 0., 1., 1., 1., 19., 4., 46., 11., 0., 44., 34., 18., 4., 0., 3., 4., 2., 29., 9., 35., 12., 18., 5., 4., 4., 0., 9., 3., 22., 4., 16., 2., 8., 4., 2., 37., 12., 3., 1., 0., 9., 3., 4., 2., 15., 0., 6., 0., 2., 1., 0., 6., 2., 19., 10., 2., 0., 2., 2., 0., 0., 0., 0., 0., 6., 3., 3., 3., 3., 1., 2., 0., 0., 0., 3., 0., 0., 4., 2., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 4., 3., 3., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 34., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 3., 15., 0., 11., 4., 5., 53., 2., 3., 64., 1., 6., 1., 0., 0., 70., 14., 6., 91., 8., 76., 11., 10., 0., 0., 4., 0., 14., 6., 35., 14., 1., 38., 38., 21., 4., 0., 0., 3., 4., 25., 8., 18., 7., 14., 5., 4., 3., 0., 9., 5., 16., 3., 19., 4., 8., 8., 4., 43., 9., 9., 2., 0., 15., 8., 8., 3., 10., 1., 4., 3., 0., 2., 0., 2., 3., 13., 12., 4., 6., 0., 1., 0., 0., 0., 0., 0., 8., 2., 1., 1., 4., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 4., 2., 2., 0., 0., 0., 2., 0., 8., 0., 0., 0., 0., 30., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 5., 9., 0., 16., 0., 7., 53., 0., 6., 65., 0., 5., 3., 0., 2., 72., 8., 8., 79., 13., 88., 15., 4., 0., 0., 1., 2., 14., 11., 59., 17., 1., 45., 30., 11., 6., 0., 0., 7., 4., 38., 7., 26., 4., 9., 11., 3., 2., 0., 15., 2., 18., 6., 19., 2., 9., 2., 0., 30., 14., 4., 1., 0., 15., 3., 7., 2., 9., 1., 7., 1., 2., 0., 0., 4., 4., 17., 5., 4., 4., 0., 1., 0., 0., 0., 0., 0., 9., 4., 2., 0., 6., 0., 0., 0., 0., 0., 2., 0., 2., 4., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 4., 2., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 22., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 3., 8., 0., 21., 0., 7., 54., 0., 5., 56., 2., 5., 4., 0., 1., 61., 14., 9., 71., 16., 95., 12., 4., 0., 1., 1., 1., 15., 9., 36., 10., 2., 39., 23., 20., 6., 0., 1., 8., 1., 22., 6., 20., 4., 17., 4., 1., 3., 0., 11., 2., 11., 3., 14., 3., 5., 5., 4., 35., 9., 6., 3., 0., 23., 4., 7., 1., 10., 2., 4., 2., 4., 2., 0., 2., 3., 11., 9., 1., 3., 1., 6., 0., 0., 0., 0., 0., 13., 1., 4., 5., 2., 1., 2., 0., 1., 0., 2., 0., 2., 0., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 6., 4., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 19., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 5., 10., 0., 15., 1., 9., 52., 2., 3., 40., 1., 2., 3., 0., 2., 85., 12., 9., 75., 13., 68., 12., 3., 0., 1., 3., 3., 21., 5., 40., 13., 3., 34., 31., 17., 6., 0., 0., 5., 4., 25., 4., 24., 10., 17., 6., 2., 2., 0., 13., 7., 9., 5., 14., 4., 8., 0., 3., 29., 7., 7., 0., 0., 20., 3., 10., 2., 18., 2., 3., 2., 2., 1., 0., 6., 1., 17., 8., 5., 5., 0., 2., 0., 0., 0., 0., 0., 11., 2., 5., 3., 1., 0., 1., 0., 2., 0., 0., 0., 0., 2., 3., 0., 1., 0., 3., 0., 2., 0., 0., 0., 0., 0., 1., 1., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 36., 0., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 4., 6., 17., 0., 9., 6., 12., 28., 0., 10., 52., 2., 3., 1., 0., 2., 70., 8., 5., 70., 12., 95., 15., 5., 0., 0., 5., 3., 9., 11., 42., 12., 0., 45., 37., 13., 4., 0., 0., 9., 0., 25., 2., 26., 8., 11., 2., 6., 1., 0., 11., 4., 17., 4., 10., 1., 6., 4., 4., 36., 10., 9., 1., 0., 20., 2., 6., 1., 15., 2., 1., 0., 0., 3., 0., 8., 0., 14., 7., 3., 3., 1., 3., 0., 0., 0., 0., 0., 8., 5., 3., 1., 4., 0., 0., 0., 0., 0., 0., 0., 3., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 3., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 28., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 3., 9., 0., 12., 2., 5., 43., 1., 6., 54., 2., 7., 2., 0., 0., 68., 6., 13., 87., 17., 72., 19., 3., 0., 1., 3., 2., 12., 5., 71., 12., 1., 34., 36., 21., 4., 0., 1., 9., 3., 20., 6., 25., 8., 16., 8., 4., 3., 0., 10., 7., 14., 5., 6., 2., 7., 5., 2., 34., 3., 12., 0., 0., 10., 3., 7., 5., 14., 3., 7., 2., 2., 0., 0., 7., 0., 21., 8., 1., 5., 0., 4., 0., 0., 0., 0., 0., 8., 4., 7., 2., 2., 0., 2., 0., 1., 0., 0., 0., 1., 6., 1., 0., 3., 0., 1., 0., 1., 0., 0., 0., 4., 0., 1., 0., 1., 0., 0., 0., 3., 0., 7., 0., 0., 0., 0., 20., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 3., 1., 6., 0., 25., 0., 17., 46., 0., 2., 66., 1., 5., 3., 0., 1., 62., 7., 5., 75., 14., 62., 12., 2., 0., 2., 6., 2., 9., 10., 49., 11., 1., 42., 31., 14., 3., 0., 0., 8., 2., 21., 5., 26., 8., 8., 9., 4., 0., 0., 10., 3., 15., 8., 13., 1., 8., 5., 4., 44., 4., 5., 2., 0., 14., 3., 8., 2., 16., 5., 3., 1., 4., 2., 0., 4., 1., 22., 6., 2., 3., 2., 3., 0., 0., 0., 0., 0., 6., 4., 2., 3., 1., 1., 0., 0., 1., 0., 2., 0., 1., 5., 0., 0., 2., 0., 3., 0., 2., 0., 0., 0., 2., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 25., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
20., 0., 5., 7., 11., 0., 18., 2., 9., 64., 3., 5., 61., 3., 6., 5., 0., 0., 45., 8., 6., 90., 20., 72., 16., 5., 0., 0., 1., 0., 18., 18., 52., 11., 1., 41., 28., 18., 3., 0., 3., 4., 3., 20., 8., 25., 6., 14., 10., 5., 3., 0., 5., 2., 15., 7., 16., 3., 10., 1., 1., 44., 10., 9., 1., 0., 16., 4., 11., 3., 10., 0., 5., 1., 2., 0., 0., 5., 2., 15., 7., 4., 7., 1., 2., 0., 0., 0., 0., 0., 10., 1., 1., 4., 5., 0., 0., 0., 3., 0., 2., 0., 3., 3., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 5., 1., 4., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 22., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 1., 4., 10., 0., 13., 4., 5., 53., 1., 8., 64., 0., 3., 1., 0., 5., 80., 17., 7., 65., 13., 81., 10., 5., 0., 1., 2., 0., 20., 10., 51., 12., 4., 26., 23., 11., 3., 0., 0., 3., 1., 31., 7., 26., 3., 13., 3., 1., 3., 0., 13., 0., 15., 6., 15., 1., 8., 5., 5., 28., 13., 6., 2., 0., 18., 0., 5., 4., 9., 4., 6., 0., 1., 0., 0., 7., 2., 13., 9., 5., 6., 0., 3., 0., 0., 0., 0., 0., 6., 1., 1., 1., 3., 3., 1., 0., 0., 0., 3., 0., 4., 3., 2., 0., 2., 0., 1., 0., 0., 0., 0., 0., 2., 0., 1., 3., 1., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 31., 0., 2., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 4., 9., 0., 11., 1., 7., 42., 0., 8., 58., 1., 4., 4., 0., 1., 70., 13., 10., 71., 17., 84., 10., 4., 0., 0., 3., 4., 18., 10., 51., 4., 0., 42., 28., 21., 2., 0., 1., 4., 2., 17., 3., 31., 7., 12., 3., 3., 0., 0., 10., 5., 19., 6., 15., 5., 10., 4., 4., 39., 8., 9., 0., 0., 14., 3., 10., 3., 9., 3., 6., 1., 0., 1., 0., 5., 4., 16., 8., 3., 4., 1., 4., 0., 0., 0., 0., 0., 8., 5., 3., 0., 3., 1., 1., 0., 0., 0., 2., 0., 0., 0., 2., 0., 5., 0., 3., 0., 1., 0., 0., 0., 0., 0., 1., 1., 3., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 30., 0., 1., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 1., 6., 9., 0., 17., 2., 9., 48., 1., 5., 50., 0., 7., 0., 0., 0., 73., 15., 12., 71., 22., 74., 11., 4., 0., 1., 2., 1., 17., 4., 48., 15., 1., 40., 39., 15., 8., 0., 0., 7., 1., 20., 6., 30., 5., 22., 6., 1., 4., 0., 5., 3., 20., 3., 16., 4., 5., 1., 1., 33., 8., 5., 3., 0., 10., 4., 9., 5., 7., 1., 4., 0., 0., 1., 0., 6., 3., 13., 5., 1., 3., 1., 1., 0., 0., 0., 0., 0., 14., 1., 2., 2., 1., 2., 0., 0., 1., 0., 1., 0., 2., 2., 2., 0., 4., 0., 2., 0., 3., 0., 0., 0., 0., 0., 1., 6., 1., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 25., 0., 4., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 1., 4., 11., 0., 15., 1., 4., 63., 1., 3., 65., 0., 6., 2., 0., 1., 62., 7., 9., 65., 12., 75., 11., 2., 0., 1., 0., 1., 10., 8., 56., 11., 2., 49., 32., 22., 6., 0., 1., 7., 2., 23., 9., 32., 6., 10., 3., 2., 4., 0., 15., 3., 20., 3., 17., 2., 4., 4., 4., 30., 4., 6., 3., 0., 15., 2., 9., 2., 14., 5., 5., 0., 2., 2., 0., 6., 1., 16., 9., 2., 3., 1., 0., 0., 0., 0., 0., 0., 3., 2., 6., 1., 2., 2., 1., 0., 1., 0., 2., 0., 0., 3., 1., 0., 2., 0., 1., 0., 4., 0., 0., 0., 0., 0., 2., 5., 4., 0., 0., 0., 1., 0., 9., 0., 0., 0., 0., 20., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 4., 3., 4., 1., 3., 0., 5., 35., 2., 8., 21., 1., 10., 3., 0., 3., 13., 3., 2., 19., 11., 23., 36., 2., 0., 0., 2., 1., 10., 5., 22., 13., 4., 19., 2., 19., 17., 2., 1., 3., 3., 15., 13., 21., 36., 10., 18., 10., 3., 1., 6., 3., 6., 2., 5., 6., 10., 11., 5., 27., 3., 3., 1., 1., 8., 0., 3., 2., 3., 2., 4., 5., 1., 7., 1., 0., 1., 2., 1., 0., 1., 4., 3., 7., 3., 3., 3., 3., 2., 0., 2., 1., 3., 8., 3., 0., 2., 4., 3., 1., 2., 3., 2., 1., 0., 0., 0., 0., 0., 4., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 1., 2., 9., 2., 5., 1., 8., 24., 1., 14., 27., 0., 9., 4., 0., 3., 24., 3., 2., 21., 5., 23., 21., 10., 3., 3., 2., 1., 8., 12., 31., 16., 3., 17., 3., 13., 16., 4., 1., 3., 3., 6., 10., 20., 38., 9., 21., 14., 4., 1., 7., 2., 5., 2., 8., 6., 13., 12., 6., 26., 8., 3., 2., 0., 5., 0., 4., 3., 5., 4., 4., 5., 3., 4., 3., 0., 1., 2., 1., 0., 4., 0., 3., 7., 1., 3., 1., 1., 6., 2., 2., 2., 2., 6., 1., 0., 0., 3., 3., 1., 0., 1., 4., 2., 1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 5., 6., 3., 5., 2., 1., 30., 1., 13., 18., 0., 18., 5., 1., 3., 13., 3., 8., 21., 8., 24., 23., 8., 1., 0., 4., 1., 10., 2., 22., 14., 7., 10., 6., 27., 7., 1., 0., 4., 2., 17., 8., 12., 48., 13., 20., 6., 2., 2., 4., 1., 8., 2., 7., 11., 7., 13., 5., 17., 7., 1., 0., 0., 3., 0., 3., 4., 6., 2., 7., 2., 0., 4., 3., 2., 1., 0., 1., 0., 2., 2., 2., 5., 4., 4., 0., 3., 7., 1., 2., 0., 2., 4., 0., 0., 4., 3., 2., 0., 2., 4., 1., 0., 2., 0., 0., 0., 0., 2., 0., 0., 5., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 1., 8., 4., 12., 3., 7., 22., 3., 16., 35., 5., 11., 5., 1., 2., 21., 3., 4., 15., 10., 34., 23., 3., 1., 1., 3., 1., 6., 4., 18., 19., 1., 13., 4., 20., 9., 0., 0., 4., 1., 10., 11., 18., 52., 9., 13., 9., 5., 0., 3., 1., 11., 4., 9., 7., 11., 18., 5., 17., 10., 5., 0., 2., 9., 3., 1., 0., 6., 6., 6., 3., 1., 5., 3., 4., 1., 1., 1., 0., 2., 2., 3., 7., 0., 4., 3., 5., 4., 1., 2., 2., 3., 7., 1., 0., 3., 1., 3., 1., 1., 4., 1., 1., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 3., 3., 1., 6., 2., 2., 1., 5., 15., 2., 14., 12., 1., 13., 4., 1., 3., 22., 4., 5., 14., 14., 35., 34., 5., 5., 1., 3., 3., 8., 6., 27., 15., 2., 17., 5., 21., 11., 1., 1., 5., 2., 15., 5., 22., 58., 7., 18., 5., 7., 1., 4., 2., 13., 4., 10., 4., 5., 15., 3., 28., 9., 3., 2., 0., 5., 2., 4., 1., 3., 2., 4., 3., 3., 1., 3., 2., 0., 3., 0., 0., 2., 0., 2., 4., 0., 1., 2., 1., 4., 0., 4., 0., 0., 4., 3., 0., 5., 1., 2., 4., 6., 2., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 6., 9., 1., 7., 0., 4., 40., 0., 13., 27., 2., 17., 3., 0., 0., 9., 1., 6., 25., 12., 17., 28., 5., 0., 2., 6., 2., 9., 6., 16., 15., 3., 20., 5., 9., 9., 2., 1., 4., 2., 10., 19., 18., 46., 12., 16., 9., 3., 1., 4., 3., 5., 2., 4., 6., 8., 9., 7., 26., 6., 1., 1., 0., 3., 2., 2., 0., 3., 2., 3., 5., 3., 5., 1., 2., 0., 3., 4., 0., 3., 5., 2., 6., 3., 6., 1., 3., 3., 2., 6., 0., 1., 9., 3., 0., 2., 1., 1., 4., 2., 2., 2., 0., 4., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 2., 6., 5., 4., 3., 1., 9., 27., 4., 18., 34., 1., 17., 0., 1., 6., 21., 3., 3., 16., 16., 30., 29., 3., 1., 2., 0., 2., 4., 8., 22., 13., 1., 16., 6., 15., 10., 0., 0., 2., 3., 12., 6., 11., 45., 8., 18., 10., 3., 1., 5., 1., 6., 1., 8., 4., 9., 19., 6., 19., 1., 2., 1., 1., 6., 0., 4., 3., 10., 4., 4., 4., 1., 3., 4., 1., 1., 0., 1., 0., 0., 1., 3., 5., 2., 3., 1., 1., 5., 0., 3., 1., 1., 12., 2., 0., 2., 2., 1., 3., 1., 1., 3., 0., 4., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 4., 9., 3., 1., 1., 6., 26., 2., 17., 30., 0., 18., 3., 1., 1., 7., 0., 7., 34., 9., 14., 27., 1., 1., 0., 0., 2., 8., 5., 14., 19., 1., 12., 3., 11., 8., 3., 2., 8., 2., 18., 14., 22., 48., 17., 15., 13., 4., 2., 5., 2., 5., 5., 16., 7., 6., 21., 5., 19., 10., 1., 1., 0., 4., 0., 3., 1., 4., 2., 4., 5., 5., 5., 1., 3., 3., 0., 1., 0., 1., 7., 1., 7., 5., 4., 3., 6., 3., 1., 2., 1., 2., 8., 2., 0., 3., 0., 3., 2., 1., 1., 3., 1., 2., 0., 0., 0., 0., 0., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 2., 6., 5., 5., 4., 2., 11., 20., 3., 17., 15., 0., 18., 1., 0., 0., 19., 1., 2., 26., 18., 13., 24., 8., 1., 0., 2., 1., 7., 6., 23., 21., 4., 13., 8., 19., 8., 3., 0., 4., 2., 18., 8., 20., 44., 10., 23., 8., 4., 0., 9., 2., 11., 4., 7., 4., 5., 21., 4., 31., 4., 2., 2., 1., 8., 1., 4., 2., 0., 2., 6., 4., 3., 3., 2., 3., 2., 0., 2., 0., 2., 1., 2., 10., 2., 7., 3., 2., 4., 2., 3., 1., 1., 11., 3., 0., 2., 2., 2., 2., 0., 5., 2., 0., 0., 0., 0., 0., 0., 5., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 4., 12., 3., 7., 3., 5., 38., 0., 18., 26., 1., 13., 5., 0., 0., 25., 2., 7., 27., 14., 19., 33., 8., 2., 0., 4., 2., 9., 4., 22., 24., 6., 26., 1., 9., 11., 3., 3., 1., 0., 12., 15., 14., 50., 14., 12., 10., 1., 3., 5., 0., 7., 2., 15., 4., 5., 19., 4., 22., 9., 0., 1., 1., 9., 1., 5., 1., 0., 2., 0., 3., 0., 4., 2., 4., 1., 0., 0., 0., 1., 3., 2., 5., 1., 3., 1., 2., 2., 3., 4., 0., 1., 5., 2., 0., 4., 2., 1., 1., 0., 2., 1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 0., 3., 9., 12., 3., 4., 0., 5., 26., 1., 10., 20., 1., 13., 1., 0., 3., 13., 0., 2., 25., 12., 25., 32., 8., 2., 0., 2., 4., 5., 11., 16., 14., 4., 15., 3., 17., 6., 1., 1., 5., 4., 9., 11., 14., 46., 14., 13., 12., 1., 0., 5., 4., 11., 6., 7., 7., 8., 20., 8., 30., 6., 4., 0., 4., 17., 1., 2., 2., 6., 3., 2., 3., 1., 5., 5., 2., 2., 1., 0., 0., 5., 1., 1., 3., 0., 6., 1., 3., 5., 2., 2., 1., 1., 10., 0., 0., 3., 0., 3., 1., 2., 2., 0., 2., 1., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 3., 4., 9., 4., 9., 1., 7., 26., 2., 15., 24., 1., 20., 3., 0., 1., 18., 2., 9., 35., 14., 15., 24., 4., 2., 1., 4., 1., 7., 5., 17., 14., 4., 15., 5., 15., 11., 2., 1., 5., 2., 7., 9., 21., 49., 9., 22., 8., 4., 0., 5., 1., 5., 1., 6., 5., 7., 15., 7., 23., 4., 2., 0., 2., 5., 0., 5., 1., 8., 3., 2., 5., 2., 6., 3., 0., 1., 4., 1., 0., 0., 4., 4., 9., 3., 6., 0., 2., 2., 2., 2., 2., 0., 8., 1., 0., 0., 0., 2., 5., 0., 2., 2., 2., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 4., 13., 4., 7., 3., 10., 14., 0., 13., 14., 1., 12., 4., 2., 3., 19., 3., 4., 32., 11., 16., 23., 6., 1., 0., 5., 2., 10., 14., 33., 17., 3., 15., 3., 11., 6., 2., 2., 8., 1., 12., 12., 18., 44., 13., 21., 10., 4., 0., 4., 1., 3., 4., 11., 6., 8., 11., 5., 22., 9., 6., 0., 0., 2., 1., 3., 3., 4., 7., 2., 2., 0., 2., 7., 2., 0., 1., 0., 0., 2., 1., 1., 7., 2., 5., 5., 0., 4., 0., 3., 2., 1., 4., 4., 0., 3., 1., 2., 3., 1., 0., 3., 1., 2., 0., 0., 0., 0., 5., 0., 0., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 2., 4., 8., 5., 4., 3., 7., 25., 0., 11., 14., 2., 14., 1., 0., 3., 14., 2., 5., 18., 16., 18., 32., 5., 1., 0., 3., 2., 8., 10., 23., 26., 7., 16., 5., 20., 10., 2., 1., 2., 3., 11., 10., 13., 38., 16., 27., 9., 3., 0., 3., 0., 5., 4., 14., 4., 6., 15., 8., 28., 4., 2., 0., 1., 8., 3., 2., 1., 7., 5., 7., 5., 0., 3., 4., 4., 0., 3., 2., 0., 3., 3., 4., 6., 3., 3., 1., 0., 3., 0., 2., 2., 3., 7., 0., 0., 3., 0., 0., 1., 2., 1., 4., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 2., 0., 3., 8., 0., 10., 4., 9., 54., 1., 3., 72., 0., 7., 1., 0., 1., 75., 5., 12., 93., 20., 75., 13., 3., 0., 1., 3., 2., 14., 12., 44., 12., 2., 33., 36., 18., 3., 0., 0., 8., 2., 22., 4., 26., 12., 14., 2., 4., 5., 0., 8., 1., 17., 8., 15., 4., 8., 4., 2., 44., 5., 6., 2., 0., 5., 4., 14., 2., 17., 1., 6., 0., 0., 1., 0., 3., 3., 19., 13., 2., 4., 0., 4., 0., 0., 0., 0., 0., 10., 1., 5., 2., 2., 1., 0., 0., 0., 0., 1., 0., 2., 3., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 7., 0., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 4., 8., 0., 16., 1., 8., 60., 1., 12., 47., 0., 7., 1., 0., 2., 86., 11., 11., 66., 14., 80., 14., 4., 0., 0., 7., 3., 14., 8., 52., 12., 2., 40., 32., 13., 5., 0., 3., 5., 6., 20., 6., 32., 8., 10., 6., 2., 1., 0., 8., 4., 7., 3., 18., 0., 8., 3., 4., 30., 12., 8., 5., 0., 13., 6., 7., 0., 12., 1., 7., 2., 0., 1., 0., 5., 3., 11., 5., 3., 2., 1., 2., 0., 0., 0., 0., 0., 8., 1., 4., 1., 5., 3., 1., 0., 2., 0., 1., 0., 1., 3., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 2., 1., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 22., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 0., 4., 11., 0., 15., 3., 8., 31., 1., 7., 49., 0., 5., 3., 0., 1., 71., 6., 6., 71., 5., 71., 8., 8., 0., 0., 3., 3., 16., 10., 65., 15., 3., 34., 32., 19., 0., 0., 0., 3., 2., 26., 3., 22., 7., 11., 4., 2., 2., 0., 9., 4., 14., 5., 15., 4., 10., 3., 2., 38., 15., 5., 2., 0., 16., 4., 5., 0., 9., 1., 5., 3., 1., 1., 0., 6., 1., 20., 11., 3., 3., 3., 4., 0., 0., 0., 0., 0., 10., 2., 1., 1., 2., 1., 0., 0., 0., 0., 0., 0., 1., 3., 3., 0., 4., 0., 0., 0., 1., 0., 0., 0., 1., 0., 4., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 16., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 4., 6., 3., 0., 12., 5., 7., 60., 1., 6., 62., 0., 6., 3., 0., 0., 70., 10., 8., 67., 13., 68., 7., 6., 0., 0., 3., 0., 16., 8., 57., 12., 0., 31., 20., 13., 3., 0., 0., 6., 9., 21., 4., 17., 5., 14., 6., 2., 4., 0., 9., 3., 16., 6., 23., 4., 5., 6., 1., 44., 5., 12., 2., 0., 17., 2., 7., 1., 10., 1., 6., 4., 1., 2., 0., 7., 1., 21., 10., 1., 1., 2., 2., 0., 0., 0., 0., 0., 7., 2., 5., 2., 4., 0., 0., 0., 2., 0., 0., 0., 3., 4., 2., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 30., 0., 4., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 2., 21., 0., 20., 3., 4., 60., 1., 8., 67., 0., 3., 1., 0., 2., 92., 4., 7., 87., 19., 89., 7., 4., 0., 2., 4., 2., 13., 10., 49., 14., 4., 42., 34., 19., 4., 0., 0., 13., 2., 17., 4., 26., 6., 15., 5., 2., 3., 0., 10., 5., 10., 7., 16., 4., 5., 8., 2., 25., 11., 3., 2., 0., 10., 1., 8., 3., 10., 3., 1., 2., 1., 1., 0., 4., 2., 17., 10., 0., 9., 0., 2., 0., 0., 0., 0., 0., 12., 4., 4., 1., 5., 1., 0., 0., 0., 0., 0., 0., 0., 3., 2., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 3., 4., 2., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 24., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 3., 2., 9., 13., 0., 17., 1., 12., 55., 1., 11., 63., 0., 7., 3., 0., 4., 69., 10., 8., 82., 10., 84., 10., 5., 0., 2., 3., 2., 14., 10., 48., 11., 2., 40., 20., 10., 3., 0., 1., 6., 4., 25., 5., 19., 6., 13., 10., 2., 1., 0., 7., 2., 12., 5., 17., 3., 6., 5., 1., 38., 5., 7., 1., 0., 11., 1., 6., 1., 5., 0., 4., 0., 1., 1., 0., 2., 2., 23., 6., 4., 3., 1., 3., 0., 0., 0., 0., 0., 1., 2., 1., 2., 4., 1., 0., 0., 0., 0., 3., 0., 1., 2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 4., 3., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 1., 4., 6., 0., 10., 1., 5., 51., 1., 3., 67., 2., 5., 2., 0., 1., 80., 7., 6., 70., 19., 91., 11., 6., 0., 1., 3., 1., 13., 8., 52., 12., 2., 47., 35., 9., 5., 0., 0., 7., 4., 16., 11., 25., 8., 17., 8., 2., 1., 0., 11., 3., 10., 3., 16., 0., 11., 2., 2., 38., 11., 9., 4., 0., 15., 4., 5., 0., 11., 5., 3., 1., 2., 1., 0., 7., 2., 14., 12., 4., 5., 0., 3., 0., 0., 0., 0., 0., 10., 2., 4., 1., 4., 1., 0., 0., 1., 0., 1., 0., 0., 7., 2., 0., 2., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 29., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 5., 7., 12., 0., 18., 4., 8., 38., 0., 10., 67., 2., 4., 3., 0., 2., 81., 11., 6., 66., 15., 68., 9., 4., 0., 4., 5., 2., 9., 3., 42., 12., 0., 47., 26., 13., 9., 0., 2., 8., 1., 23., 7., 35., 2., 13., 3., 1., 0., 0., 10., 4., 19., 4., 15., 3., 8., 2., 3., 42., 6., 8., 1., 0., 11., 1., 11., 1., 16., 3., 5., 3., 0., 1., 0., 5., 1., 15., 11., 9., 3., 3., 2., 0., 0., 0., 0., 0., 10., 2., 2., 5., 2., 0., 3., 0., 1., 0., 0., 0., 2., 2., 1., 0., 2., 0., 2., 0., 1., 0., 0., 0., 1., 0., 2., 1., 1., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 30., 0., 0., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 2., 3., 8., 0., 13., 2., 7., 64., 2., 7., 55., 0., 5., 1., 0., 1., 85., 6., 2., 83., 15., 68., 12., 3., 0., 1., 1., 0., 16., 10., 58., 12., 0., 40., 26., 11., 8., 0., 0., 3., 1., 22., 14., 24., 8., 17., 3., 6., 2., 0., 9., 1., 10., 5., 16., 5., 11., 2., 4., 37., 10., 9., 1., 0., 17., 4., 13., 1., 4., 4., 6., 1., 0., 0., 0., 3., 2., 20., 14., 3., 6., 1., 6., 0., 0., 0., 0., 0., 8., 2., 1., 1., 8., 1., 0., 0., 0., 0., 0., 0., 2., 8., 5., 0., 2., 0., 1., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 19., 0., 3., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 2., 5., 12., 0., 16., 1., 5., 68., 1., 7., 42., 1., 7., 5., 0., 4., 58., 12., 9., 94., 15., 72., 15., 7., 0., 0., 4., 2., 14., 7., 56., 11., 0., 44., 43., 6., 6., 0., 1., 6., 0., 25., 4., 23., 5., 13., 6., 1., 1., 0., 4., 3., 11., 6., 14., 4., 4., 1., 6., 54., 8., 5., 2., 0., 13., 1., 3., 1., 10., 1., 4., 1., 3., 1., 0., 5., 1., 15., 8., 4., 6., 0., 3., 0., 0., 0., 0., 0., 8., 2., 2., 3., 5., 0., 1., 0., 0., 0., 2., 0., 0., 4., 4., 0., 5., 0., 1., 0., 1., 0., 0., 0., 1., 0., 1., 2., 2., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 23., 0., 3., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
5., 1., 4., 2., 18., 0., 10., 4., 7., 43., 2., 6., 49., 1., 1., 3., 0., 3., 60., 4., 11., 70., 22., 73., 7., 7., 0., 1., 2., 3., 13., 8., 55., 10., 2., 30., 31., 11., 8., 0., 0., 9., 8., 19., 5., 20., 5., 17., 6., 8., 3., 0., 14., 6., 16., 5., 18., 2., 5., 1., 2., 29., 6., 3., 2., 0., 17., 1., 8., 2., 16., 5., 2., 3., 2., 0., 0., 4., 0., 20., 8., 1., 3., 2., 4., 0., 0., 0., 0., 0., 11., 1., 4., 5., 1., 2., 0., 0., 0., 0., 0., 0., 1., 3., 2., 0., 2., 0., 0., 0., 3., 0., 0., 0., 2., 0., 2., 1., 1., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 21., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
19., 1., 1., 5., 4., 0., 14., 0., 5., 58., 0., 12., 63., 0., 5., 3., 0., 1., 70., 9., 12., 92., 9., 75., 14., 5., 0., 0., 2., 3., 18., 4., 35., 11., 2., 39., 29., 16., 0., 0., 1., 9., 3., 27., 2., 23., 11., 15., 4., 2., 2., 0., 6., 7., 13., 6., 11., 2., 4., 0., 3., 39., 12., 9., 3., 0., 14., 2., 10., 4., 17., 2., 5., 0., 1., 1., 0., 3., 3., 9., 6., 4., 5., 1., 5., 0., 0., 0., 0., 0., 2., 0., 4., 2., 3., 3., 2., 0., 2., 0., 2., 0., 1., 2., 2., 0., 4., 0., 1., 0., 3., 0., 0., 0., 0., 0., 2., 3., 3., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 23., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 2., 3., 12., 0., 16., 1., 11., 47., 0., 11., 64., 3., 5., 2., 0., 3., 75., 5., 10., 66., 15., 91., 13., 3., 0., 0., 4., 1., 15., 5., 44., 6., 4., 40., 28., 12., 6., 0., 0., 6., 1., 28., 8., 18., 8., 12., 8., 3., 2., 0., 14., 5., 19., 4., 15., 2., 4., 1., 2., 30., 7., 3., 1., 0., 17., 3., 9., 2., 7., 1., 2., 0., 0., 2., 0., 6., 3., 16., 5., 6., 3., 0., 2., 0., 0., 0., 0., 0., 14., 0., 2., 3., 2., 2., 0., 0., 0., 0., 1., 0., 1., 3., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 5., 3., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 20., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 1., 5., 13., 0., 15., 1., 7., 42., 0., 10., 60., 2., 3., 1., 0., 2., 68., 10., 4., 79., 13., 81., 13., 3., 0., 1., 5., 3., 12., 14., 51., 10., 6., 37., 35., 18., 6., 0., 2., 7., 3., 17., 2., 18., 8., 19., 12., 2., 4., 0., 5., 2., 8., 9., 8., 2., 6., 3., 2., 33., 6., 5., 0., 0., 11., 0., 4., 0., 10., 1., 4., 1., 0., 0., 0., 3., 2., 19., 13., 7., 3., 3., 4., 0., 0., 0., 0., 0., 8., 0., 4., 1., 6., 1., 2., 0., 0., 0., 1., 0., 1., 6., 2., 0., 3., 0., 1., 0., 0., 0., 0., 0., 4., 0., 0., 3., 1., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 27., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 3., 7., 16., 0., 14., 3., 6., 55., 0., 2., 64., 2., 1., 2., 0., 1., 78., 6., 5., 91., 10., 74., 12., 3., 0., 2., 3., 3., 12., 12., 55., 10., 5., 37., 30., 10., 4., 0., 0., 5., 2., 32., 5., 32., 4., 8., 5., 4., 1., 0., 8., 4., 12., 2., 14., 4., 6., 6., 2., 33., 8., 9., 2., 0., 13., 0., 7., 3., 18., 5., 8., 0., 4., 2., 0., 5., 1., 18., 10., 0., 3., 4., 0., 0., 0., 0., 0., 0., 7., 1., 1., 1., 4., 1., 1., 0., 0., 0., 1., 0., 2., 4., 2., 0., 2., 0., 3., 0., 2., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 2., 0., 6., 0., 0., 0., 0., 25., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 2., 0., 16., 0., 12., 1., 3., 52., 1., 7., 47., 1., 6., 4., 0., 3., 55., 10., 8., 79., 18., 78., 9., 3., 0., 0., 3., 0., 16., 8., 57., 18., 0., 46., 29., 11., 8., 0., 1., 10., 3., 23., 8., 28., 5., 12., 4., 3., 0., 0., 7., 5., 19., 4., 14., 3., 12., 2., 2., 36., 9., 13., 2., 0., 20., 3., 9., 5., 7., 2., 6., 0., 1., 0., 0., 6., 2., 26., 8., 0., 2., 2., 2., 0., 0., 0., 0., 0., 6., 0., 2., 1., 3., 1., 0., 0., 0., 0., 1., 0., 0., 2., 2., 0., 0., 0., 3., 0., 4., 0., 0., 0., 1., 0., 3., 1., 3., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 13., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 5., 2., 7., 0., 17., 2., 7., 60., 2., 11., 55., 0., 2., 1., 0., 2., 71., 11., 7., 78., 16., 79., 14., 2., 0., 2., 2., 2., 10., 9., 54., 5., 3., 32., 29., 15., 4., 0., 2., 3., 2., 21., 7., 31., 10., 12., 8., 2., 4., 0., 8., 3., 15., 4., 18., 2., 6., 2., 1., 29., 6., 9., 0., 0., 14., 4., 13., 3., 4., 1., 3., 2., 0., 0., 0., 7., 2., 20., 7., 2., 9., 1., 2., 0., 0., 0., 0., 0., 5., 2., 3., 2., 4., 1., 1., 0., 1., 0., 1., 0., 1., 7., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 4., 0., 2., 4., 1., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 27., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 0., 2., 4., 13., 0., 16., 1., 5., 61., 0., 9., 68., 1., 5., 2., 0., 1., 62., 6., 1., 72., 13., 67., 13., 4., 0., 3., 5., 1., 22., 8., 40., 8., 0., 29., 35., 11., 9., 0., 0., 7., 3., 18., 4., 23., 9., 15., 6., 0., 2., 0., 11., 1., 17., 9., 20., 3., 8., 1., 3., 30., 13., 6., 2., 0., 15., 6., 15., 2., 16., 0., 4., 0., 1., 1., 0., 5., 2., 24., 11., 1., 5., 0., 4., 0., 0., 0., 0., 0., 5., 3., 2., 2., 1., 3., 1., 0., 3., 0., 1., 0., 1., 4., 1., 0., 3., 0., 2., 0., 2., 0., 0., 0., 0., 0., 5., 4., 3., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 22., 0., 2., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 1., 0., 3., 8., 2., 8., 0., 6., 17., 1., 10., 11., 0., 13., 2., 2., 1., 15., 3., 0., 20., 20., 33., 29., 10., 0., 1., 4., 6., 4., 8., 29., 20., 5., 13., 3., 11., 9., 1., 0., 6., 4., 9., 16., 26., 50., 14., 12., 12., 6., 1., 4., 2., 8., 5., 7., 4., 8., 10., 6., 21., 4., 2., 1., 1., 7., 0., 5., 0., 7., 4., 4., 3., 3., 2., 7., 2., 0., 1., 1., 0., 0., 1., 2., 4., 2., 2., 3., 1., 7., 0., 1., 0., 0., 3., 3., 0., 1., 3., 3., 1., 0., 1., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 3., 1., 6., 9., 5., 11., 2., 5., 21., 1., 18., 18., 3., 16., 3., 1., 1., 22., 1., 4., 30., 13., 12., 21., 8., 0., 0., 0., 1., 9., 5., 13., 18., 3., 6., 5., 14., 6., 4., 2., 4., 0., 12., 8., 24., 51., 12., 30., 9., 5., 0., 5., 2., 5., 4., 11., 6., 7., 15., 3., 16., 9., 5., 2., 1., 5., 0., 4., 1., 6., 3., 3., 5., 2., 2., 4., 2., 0., 3., 1., 0., 3., 2., 0., 3., 1., 4., 0., 3., 7., 0., 2., 1., 4., 7., 2., 0., 4., 1., 2., 0., 2., 3., 4., 0., 1., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 3., 7., 2., 5., 1., 5., 28., 3., 4., 22., 2., 24., 3., 2., 1., 24., 2., 3., 7., 8., 19., 29., 2., 0., 2., 5., 1., 15., 15., 18., 11., 7., 12., 5., 13., 15., 4., 1., 6., 5., 14., 8., 25., 51., 14., 19., 13., 4., 1., 5., 3., 5., 2., 9., 4., 3., 19., 5., 14., 10., 3., 1., 4., 5., 1., 3., 2., 5., 2., 3., 6., 0., 5., 1., 2., 1., 4., 1., 0., 6., 0., 1., 7., 2., 9., 2., 7., 6., 1., 1., 0., 1., 6., 2., 0., 2., 1., 3., 2., 0., 1., 1., 2., 3., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 4., 6., 2., 3., 0., 5., 18., 0., 11., 13., 2., 18., 2., 1., 1., 14., 1., 5., 27., 10., 24., 22., 10., 0., 1., 2., 1., 4., 4., 19., 13., 3., 16., 8., 15., 3., 3., 0., 2., 0., 10., 10., 8., 46., 10., 25., 10., 3., 3., 6., 1., 5., 3., 17., 6., 9., 12., 8., 21., 13., 1., 1., 1., 6., 2., 4., 1., 4., 0., 2., 5., 4., 1., 1., 1., 1., 2., 2., 0., 4., 2., 2., 7., 2., 3., 4., 0., 7., 1., 4., 1., 4., 4., 4., 0., 1., 4., 5., 4., 1., 1., 1., 0., 4., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 5., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 4., 2., 8., 4., 4., 1., 9., 23., 0., 9., 24., 1., 13., 2., 3., 2., 20., 3., 5., 22., 18., 17., 26., 8., 2., 3., 3., 2., 3., 12., 44., 9., 2., 16., 6., 15., 9., 1., 0., 5., 2., 6., 17., 18., 56., 11., 14., 10., 5., 0., 3., 3., 4., 5., 9., 4., 5., 22., 4., 24., 6., 4., 1., 1., 11., 0., 2., 2., 3., 1., 4., 5., 2., 6., 4., 4., 1., 3., 2., 0., 4., 1., 5., 8., 2., 3., 7., 1., 6., 1., 3., 0., 2., 8., 3., 0., 1., 3., 0., 3., 3., 2., 0., 2., 4., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 3., 11., 1., 7., 0., 9., 24., 2., 16., 20., 1., 16., 0., 0., 1., 22., 2., 4., 28., 17., 39., 32., 5., 1., 2., 2., 3., 5., 8., 32., 22., 1., 14., 6., 7., 11., 3., 0., 2., 4., 24., 10., 10., 39., 7., 17., 11., 6., 0., 7., 4., 6., 6., 14., 5., 11., 15., 5., 21., 12., 2., 0., 0., 3., 0., 6., 3., 3., 1., 4., 3., 1., 2., 5., 1., 1., 5., 3., 0., 1., 2., 1., 7., 3., 3., 5., 2., 4., 1., 2., 1., 1., 11., 2., 0., 4., 1., 1., 4., 2., 2., 5., 1., 3., 0., 0., 0., 0., 2., 0., 0., 7., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 0., 5., 7., 1., 5., 2., 10., 25., 2., 12., 30., 4., 12., 4., 1., 4., 10., 1., 2., 33., 8., 33., 26., 7., 1., 3., 1., 1., 7., 12., 25., 18., 6., 15., 1., 15., 9., 1., 1., 1., 1., 7., 15., 15., 49., 12., 19., 10., 6., 0., 5., 1., 1., 1., 8., 8., 13., 18., 6., 20., 4., 2., 0., 1., 7., 1., 4., 0., 5., 2., 2., 6., 2., 5., 5., 1., 1., 1., 2., 0., 1., 2., 2., 4., 2., 3., 1., 3., 3., 1., 1., 1., 3., 9., 1., 0., 1., 1., 3., 4., 2., 4., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 4., 2., 11., 3., 5., 1., 4., 14., 1., 12., 24., 0., 11., 2., 1., 1., 15., 2., 6., 18., 13., 17., 29., 8., 0., 0., 4., 0., 10., 8., 20., 17., 1., 15., 3., 14., 8., 1., 0., 2., 2., 12., 6., 11., 49., 6., 29., 6., 1., 1., 6., 1., 8., 3., 13., 6., 9., 22., 4., 27., 8., 6., 0., 0., 6., 1., 5., 0., 3., 3., 3., 3., 1., 7., 4., 2., 2., 1., 2., 0., 0., 2., 1., 4., 2., 3., 3., 6., 2., 2., 1., 2., 4., 5., 0., 0., 4., 0., 2., 7., 1., 3., 2., 3., 5., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 0., 4., 5., 1., 9., 0., 4., 25., 1., 13., 24., 1., 16., 4., 2., 1., 21., 2., 2., 21., 11., 19., 21., 6., 0., 1., 6., 1., 6., 5., 26., 12., 3., 15., 2., 22., 13., 2., 0., 7., 1., 3., 10., 17., 40., 20., 29., 7., 1., 0., 4., 1., 9., 1., 8., 10., 9., 16., 4., 26., 10., 3., 4., 2., 7., 2., 2., 3., 4., 2., 6., 9., 2., 5., 6., 2., 1., 5., 4., 0., 2., 1., 4., 3., 1., 4., 3., 2., 2., 0., 1., 1., 3., 8., 3., 0., 4., 2., 1., 3., 1., 1., 2., 1., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 0., 4., 2., 7., 6., 7., 1., 5., 27., 2., 10., 22., 0., 19., 3., 0., 1., 12., 2., 4., 25., 8., 30., 29., 10., 0., 0., 5., 2., 12., 7., 22., 25., 3., 15., 5., 20., 6., 2., 1., 3., 1., 16., 9., 11., 40., 13., 20., 13., 6., 2., 4., 1., 15., 2., 12., 7., 6., 15., 8., 24., 8., 2., 0., 0., 6., 1., 6., 0., 5., 4., 7., 3., 1., 4., 5., 1., 0., 4., 1., 0., 0., 2., 3., 7., 1., 3., 1., 2., 0., 1., 1., 0., 2., 6., 2., 0., 0., 1., 0., 0., 2., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
15., 2., 0., 4., 8., 0., 9., 2., 11., 22., 1., 10., 27., 2., 16., 2., 0., 4., 18., 1., 1., 23., 14., 32., 16., 6., 0., 2., 1., 1., 4., 11., 27., 17., 1., 13., 6., 18., 5., 1., 0., 5., 1., 11., 10., 20., 50., 14., 24., 13., 2., 1., 5., 0., 7., 4., 15., 5., 7., 16., 6., 24., 8., 1., 1., 0., 3., 1., 3., 1., 7., 6., 5., 2., 1., 3., 3., 0., 4., 2., 2., 0., 3., 2., 2., 4., 3., 4., 1., 3., 7., 2., 1., 1., 2., 10., 5., 0., 1., 2., 3., 2., 6., 3., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 1., 6., 12., 1., 5., 2., 6., 23., 0., 22., 26., 2., 15., 2., 0., 3., 9., 3., 3., 23., 19., 32., 20., 2., 1., 3., 1., 3., 13., 4., 29., 14., 3., 8., 7., 19., 13., 3., 1., 2., 0., 8., 14., 19., 32., 10., 14., 14., 3., 2., 4., 1., 9., 1., 9., 5., 17., 20., 5., 18., 12., 2., 0., 1., 11., 1., 3., 4., 5., 2., 1., 7., 1., 6., 0., 3., 1., 1., 2., 0., 3., 1., 3., 4., 2., 5., 2., 2., 4., 2., 4., 1., 3., 3., 1., 0., 1., 2., 3., 5., 2., 2., 0., 1., 3., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 0., 2., 3., 10., 0., 15., 3., 5., 47., 0., 12., 60., 3., 8., 2., 0., 2., 72., 13., 4., 92., 18., 97., 8., 2., 0., 0., 3., 3., 20., 13., 33., 14., 1., 38., 19., 7., 0., 0., 0., 6., 3., 29., 4., 21., 5., 14., 9., 4., 1., 0., 9., 4., 11., 3., 15., 2., 7., 3., 3., 29., 11., 12., 0., 0., 7., 3., 10., 2., 11., 0., 3., 1., 1., 1., 0., 3., 3., 19., 9., 5., 2., 1., 2., 0., 0., 0., 0., 0., 10., 2., 0., 1., 3., 1., 3., 0., 0., 0., 1., 0., 2., 4., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 0., 0., 0., 4., 0., 5., 0., 0., 0., 0., 27., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 4., 5., 11., 0., 11., 3., 9., 43., 1., 11., 61., 1., 8., 2., 0., 5., 58., 10., 9., 53., 7., 78., 10., 4., 0., 0., 4., 3., 19., 10., 48., 9., 5., 34., 26., 11., 4., 0., 0., 4., 1., 32., 6., 36., 7., 11., 6., 3., 2., 0., 5., 4., 17., 2., 22., 3., 16., 0., 2., 37., 7., 6., 0., 0., 14., 2., 7., 4., 13., 0., 2., 1., 3., 1., 0., 4., 6., 28., 8., 4., 4., 0., 7., 0., 0., 0., 0., 0., 11., 1., 1., 5., 1., 1., 1., 0., 0., 0., 0., 0., 0., 3., 4., 0., 2., 0., 1., 0., 1., 0., 0., 0., 3., 0., 2., 2., 2., 0., 0., 0., 2., 0., 5., 0., 0., 0., 0., 36., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
1., 0., 0., 4., 14., 0., 9., 3., 5., 49., 3., 5., 55., 2., 9., 0., 0., 4., 76., 8., 9., 85., 17., 76., 5., 2., 0., 1., 2., 1., 12., 6., 59., 9., 2., 38., 44., 14., 5., 0., 0., 4., 3., 27., 5., 28., 5., 10., 10., 5., 0., 0., 10., 7., 15., 1., 19., 2., 6., 4., 5., 36., 13., 4., 4., 0., 10., 7., 10., 3., 14., 4., 3., 1., 1., 3., 0., 5., 1., 13., 13., 3., 2., 0., 1., 0., 0., 0., 0., 0., 11., 4., 3., 6., 2., 1., 0., 0., 2., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 5., 0., 3., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 33., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 2., 1., 1., 8., 0., 11., 3., 7., 46., 2., 11., 57., 2., 6., 4., 0., 1., 72., 9., 8., 67., 16., 68., 15., 1., 0., 1., 2., 3., 16., 13., 49., 11., 4., 33., 37., 15., 2., 0., 1., 0., 2., 20., 6., 29., 9., 8., 4., 3., 4., 0., 7., 5., 19., 6., 20., 3., 11., 1., 3., 49., 8., 7., 2., 0., 14., 2., 9., 2., 10., 1., 4., 0., 0., 3., 0., 1., 2., 11., 9., 1., 4., 0., 6., 0., 0., 0., 0., 0., 5., 2., 3., 3., 0., 1., 3., 0., 1., 0., 2., 0., 2., 5., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 23., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 3., 8., 0., 13., 2., 12., 49., 0., 3., 48., 3., 5., 2., 0., 5., 80., 11., 5., 79., 11., 71., 8., 3., 0., 2., 1., 0., 14., 9., 43., 15., 1., 44., 34., 11., 2., 0., 0., 8., 3., 22., 9., 27., 6., 10., 7., 1., 2., 0., 11., 5., 23., 6., 12., 2., 7., 2., 2., 43., 10., 6., 2., 0., 6., 4., 8., 2., 12., 1., 1., 2., 0., 1., 0., 2., 2., 22., 9., 2., 3., 1., 1., 0., 0., 0., 0., 0., 8., 2., 1., 4., 2., 1., 1., 0., 0., 0., 0., 0., 0., 2., 1., 0., 1., 0., 3., 0., 1., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 18., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 5., 6., 0., 13., 4., 6., 42., 2., 5., 55., 3., 6., 1., 0., 4., 76., 5., 10., 88., 12., 86., 4., 4., 0., 2., 2., 2., 13., 13., 39., 12., 2., 37., 29., 11., 8., 0., 2., 9., 4., 27., 3., 17., 12., 11., 8., 0., 0., 0., 11., 4., 20., 8., 14., 3., 8., 4., 2., 47., 10., 5., 2., 0., 22., 3., 9., 3., 13., 8., 4., 1., 1., 1., 0., 8., 2., 15., 13., 2., 4., 1., 4., 0., 0., 0., 0., 0., 13., 2., 2., 5., 1., 1., 2., 0., 0., 0., 2., 0., 0., 3., 3., 0., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 3., 2., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 26., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 1., 3., 8., 0., 15., 1., 7., 47., 0., 6., 63., 3., 5., 3., 0., 1., 79., 10., 6., 71., 15., 85., 14., 6., 0., 1., 5., 0., 18., 7., 34., 15., 1., 42., 36., 10., 6., 0., 1., 8., 5., 23., 7., 20., 8., 9., 5., 5., 1., 0., 4., 5., 23., 8., 17., 3., 7., 1., 8., 39., 5., 4., 5., 0., 13., 1., 10., 1., 6., 0., 3., 0., 0., 1., 0., 3., 0., 17., 11., 0., 4., 2., 3., 0., 0., 0., 0., 0., 10., 0., 0., 0., 4., 3., 1., 0., 3., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 1., 0., 2., 1., 2., 0., 0., 0., 3., 0., 4., 0., 0., 0., 0., 23., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
19., 0., 4., 6., 8., 0., 16., 7., 7., 39., 0., 3., 70., 1., 5., 3., 0., 3., 62., 11., 11., 54., 14., 74., 11., 7., 0., 2., 1., 0., 12., 5., 66., 17., 2., 44., 33., 17., 4., 0., 0., 7., 7., 24., 8., 24., 4., 15., 3., 2., 2., 0., 10., 7., 22., 4., 14., 2., 8., 2., 4., 48., 6., 5., 0., 0., 9., 4., 6., 3., 12., 0., 4., 2., 0., 0., 0., 3., 2., 22., 8., 3., 4., 0., 1., 0., 0., 0., 0., 0., 11., 5., 6., 2., 3., 1., 1., 0., 2., 0., 1., 0., 0., 5., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 1., 1., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 33., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 2., 3., 12., 0., 15., 2., 8., 69., 0., 5., 59., 1., 5., 2., 0., 4., 65., 10., 7., 76., 14., 74., 17., 4., 0., 0., 0., 2., 11., 15., 55., 12., 1., 33., 34., 14., 4., 0., 2., 6., 0., 24., 8., 35., 11., 11., 2., 2., 0., 0., 6., 6., 13., 4., 15., 2., 5., 0., 4., 35., 8., 5., 4., 0., 15., 1., 7., 1., 7., 3., 5., 1., 1., 1., 0., 0., 2., 20., 7., 3., 2., 0., 5., 0., 0., 0., 0., 0., 9., 1., 4., 1., 4., 3., 1., 0., 1., 0., 0., 0., 1., 3., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 3., 2., 1., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 23., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 0., 14., 0., 19., 2., 7., 45., 2., 9., 61., 1., 4., 1., 0., 5., 62., 8., 3., 81., 17., 87., 11., 2., 0., 1., 2., 1., 15., 12., 48., 10., 1., 43., 39., 14., 6., 0., 0., 6., 2., 29., 4., 24., 8., 13., 7., 2., 2., 0., 8., 2., 13., 5., 15., 3., 7., 2., 4., 42., 7., 8., 1., 0., 13., 3., 6., 4., 9., 4., 7., 0., 1., 1., 0., 2., 4., 17., 7., 1., 1., 2., 2., 0., 0., 0., 0., 0., 13., 5., 2., 1., 3., 1., 0., 0., 3., 0., 1., 0., 2., 3., 2., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 2., 4., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 30., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 2., 0., 5., 13., 0., 17., 0., 7., 51., 3., 6., 55., 1., 1., 1., 0., 3., 70., 6., 9., 77., 23., 71., 10., 2., 0., 3., 4., 0., 16., 16., 51., 9., 1., 44., 34., 10., 6., 0., 1., 8., 4., 13., 5., 25., 5., 11., 8., 5., 3., 0., 6., 3., 14., 10., 15., 7., 9., 6., 3., 38., 4., 6., 3., 0., 10., 1., 6., 0., 21., 2., 1., 0., 1., 2., 0., 2., 1., 14., 10., 6., 2., 1., 3., 0., 0., 0., 0., 0., 11., 1., 4., 2., 0., 0., 1., 0., 0., 0., 1., 0., 0., 3., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 4., 3., 0., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 25., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 6., 12., 0., 16., 0., 4., 56., 2., 6., 54., 0., 3., 3., 0., 4., 69., 8., 11., 80., 13., 77., 14., 5., 0., 2., 1., 2., 11., 3., 45., 16., 2., 41., 26., 5., 4., 0., 2., 5., 0., 23., 6., 25., 7., 15., 7., 6., 3., 0., 9., 6., 12., 9., 15., 6., 8., 4., 8., 31., 9., 5., 2., 0., 16., 3., 5., 1., 8., 1., 2., 0., 0., 0., 0., 4., 2., 19., 10., 6., 4., 0., 2., 0., 0., 0., 0., 0., 7., 2., 6., 5., 2., 2., 1., 0., 1., 0., 1., 0., 0., 3., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 2., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 1., 1., 12., 0., 15., 0., 6., 44., 1., 12., 60., 1., 5., 5., 0., 2., 69., 13., 7., 72., 20., 97., 12., 4., 0., 0., 5., 3., 11., 11., 63., 13., 7., 41., 26., 9., 6., 0., 1., 6., 6., 26., 9., 21., 4., 11., 2., 1., 3., 0., 13., 2., 13., 4., 21., 4., 7., 2., 3., 40., 1., 4., 4., 0., 14., 2., 9., 4., 11., 1., 4., 1., 2., 1., 0., 2., 2., 24., 6., 2., 10., 3., 3., 0., 0., 0., 0., 0., 7., 3., 1., 2., 6., 1., 1., 0., 1., 0., 1., 0., 0., 5., 3., 0., 5., 0., 0., 0., 2., 0., 0., 0., 0., 0., 2., 3., 2., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 24., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 3., 3., 11., 0., 17., 3., 14., 50., 0., 12., 44., 1., 4., 3., 0., 4., 56., 4., 12., 86., 17., 86., 11., 6., 0., 1., 3., 4., 10., 10., 59., 10., 0., 49., 31., 18., 1., 0., 1., 6., 2., 27., 9., 33., 9., 8., 5., 1., 1., 0., 9., 5., 16., 5., 21., 5., 10., 3., 4., 35., 4., 4., 3., 0., 8., 6., 10., 3., 8., 3., 2., 1., 0., 2., 0., 7., 3., 17., 12., 1., 3., 0., 2., 0., 0., 0., 0., 0., 12., 2., 7., 2., 6., 2., 1., 0., 0., 0., 1., 0., 1., 4., 4., 0., 3., 0., 7., 0., 1., 0., 0., 0., 0., 0., 6., 3., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 35., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 3., 2., 12., 0., 17., 4., 6., 47., 1., 9., 65., 1., 2., 0., 0., 1., 83., 5., 9., 67., 16., 76., 12., 5., 0., 1., 2., 1., 14., 8., 46., 14., 4., 44., 35., 14., 5., 0., 3., 7., 1., 24., 5., 15., 7., 12., 7., 1., 1., 0., 7., 7., 13., 0., 17., 4., 5., 5., 3., 45., 11., 10., 2., 0., 17., 2., 7., 4., 13., 2., 6., 0., 1., 1., 0., 6., 3., 15., 8., 4., 6., 0., 3., 0., 0., 0., 0., 0., 11., 2., 3., 5., 1., 2., 2., 0., 3., 0., 1., 0., 1., 4., 2., 0., 1., 0., 2., 0., 2., 0., 0., 0., 0., 0., 4., 4., 1., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 24., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
3., 1., 1., 4., 12., 0., 12., 3., 9., 57., 0., 7., 47., 1., 2., 1., 0., 5., 80., 13., 10., 79., 13., 82., 16., 3., 0., 3., 1., 1., 15., 8., 68., 10., 1., 45., 25., 11., 8., 0., 0., 7., 1., 16., 4., 17., 3., 15., 6., 3., 2., 0., 12., 7., 17., 6., 20., 3., 7., 4., 1., 30., 6., 5., 2., 0., 15., 4., 14., 4., 12., 0., 4., 1., 1., 1., 0., 9., 2., 14., 11., 2., 5., 0., 2., 0., 0., 0., 0., 0., 13., 3., 4., 2., 4., 3., 2., 0., 0., 0., 0., 0., 2., 6., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 28., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 5., 3., 6., 0., 15., 0., 6., 59., 2., 9., 66., 0., 4., 4., 0., 1., 76., 6., 9., 77., 16., 84., 5., 5., 0., 0., 4., 1., 11., 17., 59., 10., 2., 32., 26., 15., 4., 0., 1., 2., 5., 22., 5., 16., 12., 10., 3., 3., 1., 0., 8., 6., 17., 3., 18., 2., 5., 4., 2., 51., 4., 6., 1., 0., 12., 5., 10., 1., 20., 2., 5., 1., 2., 2., 0., 8., 1., 19., 12., 3., 4., 0., 4., 0., 0., 0., 0., 0., 8., 2., 5., 3., 2., 2., 1., 0., 3., 0., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 3., 1., 2., 0., 0., 0., 1., 0., 8., 0., 0., 0., 0., 25., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 2., 3., 13., 0., 19., 4., 5., 52., 0., 7., 46., 1., 5., 3., 0., 3., 77., 11., 6., 83., 14., 88., 8., 4., 0., 1., 4., 3., 22., 16., 56., 14., 0., 39., 36., 11., 11., 0., 1., 7., 2., 18., 6., 32., 6., 9., 3., 3., 1., 0., 3., 5., 16., 6., 17., 3., 12., 3., 2., 37., 5., 6., 2., 0., 22., 4., 5., 0., 11., 3., 3., 0., 6., 2., 0., 5., 0., 18., 11., 3., 4., 0., 1., 0., 0., 0., 0., 0., 7., 1., 4., 1., 1., 1., 1., 0., 0., 0., 1., 0., 1., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 4., 2., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 27., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 0., 2., 4., 13., 0., 9., 3., 5., 58., 0., 8., 59., 0., 7., 2., 0., 0., 65., 10., 11., 92., 15., 92., 11., 4., 0., 3., 6., 3., 10., 9., 40., 17., 1., 22., 35., 13., 4., 0., 0., 6., 2., 31., 6., 21., 6., 14., 6., 3., 2., 0., 15., 6., 14., 6., 19., 5., 10., 3., 3., 38., 6., 3., 3., 0., 13., 3., 7., 2., 4., 0., 1., 3., 0., 1., 0., 2., 2., 16., 11., 3., 4., 1., 5., 0., 0., 0., 0., 0., 6., 1., 3., 2., 3., 1., 1., 0., 0., 0., 1., 0., 1., 2., 5., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 5., 3., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 35., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 0., 7., 16., 0., 13., 1., 10., 51., 1., 5., 46., 1., 8., 3., 0., 4., 62., 12., 5., 65., 22., 74., 11., 2., 0., 0., 2., 3., 13., 10., 49., 17., 0., 37., 43., 14., 6., 0., 1., 7., 1., 29., 3., 21., 9., 12., 5., 3., 1., 0., 8., 3., 16., 11., 15., 2., 9., 4., 7., 27., 8., 9., 1., 0., 11., 8., 11., 1., 10., 2., 3., 2., 0., 0., 0., 4., 2., 17., 10., 3., 6., 1., 2., 0., 0., 0., 0., 0., 8., 2., 4., 0., 3., 2., 1., 0., 2., 0., 0., 0., 0., 1., 1., 0., 4., 0., 1., 0., 0., 0., 0., 0., 2., 0., 0., 3., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 22., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 4., 8., 1., 11., 1., 8., 15., 0., 22., 18., 0., 16., 4., 0., 2., 19., 2., 4., 24., 12., 17., 27., 6., 1., 1., 4., 2., 5., 8., 29., 14., 3., 14., 3., 11., 17., 5., 0., 7., 3., 9., 8., 13., 50., 6., 22., 16., 3., 0., 5., 1., 8., 2., 6., 6., 9., 19., 10., 17., 15., 1., 2., 0., 2., 0., 7., 4., 6., 4., 4., 1., 3., 8., 2., 0., 0., 5., 1., 0., 2., 1., 4., 7., 4., 4., 3., 3., 4., 2., 0., 0., 2., 7., 4., 0., 3., 1., 1., 0., 1., 2., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 2., 0., 0., 0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 4., 3., 7., 3., 3., 0., 5., 19., 3., 11., 19., 1., 13., 3., 2., 2., 15., 4., 2., 30., 13., 25., 39., 4., 1., 3., 5., 3., 8., 4., 21., 20., 3., 15., 4., 13., 7., 2., 0., 1., 0., 11., 8., 16., 59., 21., 24., 12., 5., 5., 5., 4., 5., 5., 13., 5., 8., 16., 5., 22., 9., 5., 1., 2., 4., 0., 2., 2., 3., 4., 4., 2., 1., 1., 2., 0., 3., 5., 4., 0., 4., 5., 2., 7., 3., 2., 3., 0., 6., 0., 0., 2., 1., 5., 3., 0., 0., 2., 2., 5., 2., 3., 2., 2., 5., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
2., 0., 4., 3., 9., 8., 2., 0., 5., 30., 2., 16., 22., 1., 12., 1., 1., 1., 16., 0., 1., 31., 13., 27., 36., 4., 0., 0., 4., 2., 10., 10., 22., 15., 3., 12., 1., 9., 9., 1., 1., 3., 3., 8., 11., 20., 47., 9., 12., 8., 6., 0., 2., 2., 8., 3., 11., 6., 5., 11., 6., 25., 9., 2., 1., 0., 7., 0., 2., 2., 11., 4., 2., 5., 3., 4., 4., 1., 1., 4., 0., 0., 2., 0., 0., 3., 0., 3., 6., 0., 3., 2., 2., 0., 1., 8., 0., 0., 1., 0., 0., 3., 4., 0., 2., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 2., 3., 6., 0., 6., 5., 5., 23., 0., 9., 19., 0., 9., 6., 2., 3., 22., 4., 1., 38., 10., 9., 23., 5., 0., 1., 0., 5., 8., 3., 31., 22., 1., 13., 4., 16., 7., 2., 3., 6., 1., 11., 4., 17., 51., 11., 20., 11., 4., 0., 6., 4., 7., 6., 9., 7., 5., 17., 6., 22., 8., 6., 1., 1., 6., 2., 2., 1., 10., 0., 5., 4., 1., 4., 4., 3., 0., 1., 1., 0., 3., 5., 4., 6., 4., 9., 2., 3., 4., 0., 2., 1., 2., 6., 3., 0., 2., 3., 2., 0., 1., 2., 0., 2., 2., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 2., 4., 9., 2., 3., 2., 4., 32., 1., 8., 17., 2., 21., 2., 1., 3., 31., 3., 2., 15., 13., 22., 37., 5., 3., 0., 2., 2., 5., 3., 26., 11., 2., 14., 3., 14., 7., 4., 0., 8., 3., 6., 13., 16., 58., 7., 18., 7., 4., 0., 8., 1., 8., 3., 17., 3., 3., 11., 5., 23., 7., 3., 1., 0., 4., 1., 1., 2., 8., 1., 8., 5., 0., 10., 2., 1., 1., 1., 0., 0., 2., 1., 3., 9., 4., 2., 3., 4., 4., 0., 3., 0., 1., 5., 2., 0., 3., 2., 3., 0., 3., 2., 1., 1., 2., 0., 0., 0., 0., 3., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 1., 4., 9., 9., 3., 4., 3., 4., 22., 0., 15., 19., 0., 16., 1., 0., 2., 11., 4., 3., 34., 17., 20., 30., 5., 0., 1., 3., 1., 11., 3., 20., 17., 1., 11., 7., 14., 11., 4., 0., 3., 2., 20., 8., 10., 56., 12., 19., 7., 6., 2., 7., 0., 6., 3., 15., 2., 7., 19., 4., 24., 9., 3., 1., 3., 4., 0., 4., 1., 6., 4., 5., 6., 0., 2., 1., 0., 2., 1., 4., 0., 2., 1., 2., 4., 3., 1., 5., 0., 3., 0., 4., 1., 1., 7., 1., 0., 1., 5., 2., 4., 1., 0., 3., 0., 2., 0., 0., 0., 0., 4., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 7., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 3., 11., 1., 8., 0., 4., 20., 0., 10., 22., 1., 15., 2., 2., 0., 18., 2., 5., 14., 15., 28., 29., 6., 0., 0., 2., 2., 11., 10., 21., 13., 4., 15., 1., 13., 12., 6., 0., 5., 2., 20., 9., 18., 46., 6., 31., 8., 4., 1., 11., 6., 9., 3., 11., 5., 4., 10., 11., 27., 12., 2., 0., 1., 3., 2., 1., 1., 3., 1., 0., 6., 2., 5., 2., 2., 0., 4., 3., 0., 1., 1., 0., 6., 0., 5., 5., 1., 5., 0., 1., 0., 1., 12., 3., 0., 1., 5., 2., 2., 4., 1., 0., 1., 3., 0., 0., 0., 0., 1., 0., 0., 4., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 4., 2., 9., 2., 7., 1., 11., 5., 2., 11., 37., 3., 14., 3., 1., 0., 10., 3., 3., 21., 15., 31., 18., 6., 4., 0., 8., 1., 8., 6., 33., 18., 4., 19., 6., 15., 8., 2., 2., 4., 3., 12., 15., 21., 49., 19., 24., 6., 1., 0., 5., 4., 6., 3., 7., 5., 7., 14., 2., 27., 6., 2., 0., 3., 8., 1., 5., 2., 3., 4., 5., 1., 0., 2., 3., 3., 0., 2., 3., 0., 2., 2., 3., 4., 3., 6., 2., 3., 3., 1., 1., 2., 3., 2., 4., 0., 2., 2., 3., 1., 1., 1., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 5., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 5., 4., 9., 3., 6., 1., 12., 20., 0., 9., 14., 0., 10., 4., 1., 2., 15., 1., 1., 29., 15., 14., 32., 6., 1., 2., 3., 2., 9., 3., 36., 13., 1., 17., 8., 12., 10., 3., 1., 2., 2., 13., 9., 14., 49., 3., 14., 9., 3., 1., 8., 2., 8., 2., 13., 6., 5., 19., 11., 21., 8., 3., 2., 1., 7., 1., 6., 3., 5., 3., 5., 10., 1., 5., 4., 2., 1., 1., 5., 0., 2., 1., 1., 12., 1., 6., 7., 2., 4., 0., 5., 0., 1., 9., 0., 0., 2., 3., 0., 3., 2., 1., 3., 0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 5., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
18., 1., 1., 5., 19., 0., 16., 1., 7., 41., 1., 7., 45., 3., 2., 5., 0., 4., 66., 8., 6., 72., 16., 79., 11., 5., 0., 0., 4., 2., 26., 9., 49., 11., 1., 44., 28., 18., 6., 0., 0., 5., 4., 12., 5., 24., 6., 12., 6., 5., 2., 0., 11., 3., 7., 10., 18., 2., 5., 1., 2., 37., 13., 6., 2., 0., 10., 5., 16., 3., 14., 4., 4., 2., 2., 3., 0., 5., 3., 13., 10., 2., 5., 1., 3., 0., 0., 0., 0., 0., 10., 1., 8., 4., 2., 1., 0., 0., 0., 0., 4., 0., 3., 1., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 2., 0., 4., 2., 3., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 23., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 2., 13., 0., 5., 1., 3., 56., 0., 10., 61., 2., 5., 7., 0., 0., 75., 7., 9., 72., 16., 74., 13., 3., 0., 1., 2., 1., 17., 14., 60., 15., 1., 41., 27., 11., 6., 0., 1., 5., 2., 33., 9., 26., 12., 11., 5., 3., 3., 0., 10., 4., 17., 8., 19., 1., 9., 4., 5., 51., 10., 3., 2., 0., 9., 4., 10., 1., 10., 1., 3., 2., 2., 1., 0., 5., 2., 14., 5., 2., 0., 0., 4., 0., 0., 0., 0., 0., 5., 2., 2., 4., 2., 1., 0., 0., 2., 0., 0., 0., 2., 2., 7., 0., 1., 0., 3., 0., 0., 0., 0., 0., 1., 0., 5., 1., 2., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 28., 0., 2., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 2., 4., 12., 0., 14., 3., 9., 46., 1., 3., 56., 1., 8., 1., 0., 2., 68., 14., 11., 80., 11., 80., 12., 1., 0., 1., 1., 1., 13., 14., 53., 10., 1., 32., 26., 9., 5., 0., 0., 5., 7., 15., 3., 23., 4., 8., 5., 4., 3., 0., 10., 2., 9., 3., 20., 0., 5., 6., 3., 36., 8., 10., 1., 0., 11., 5., 7., 0., 8., 2., 5., 4., 1., 0., 0., 7., 3., 20., 6., 7., 2., 5., 4., 0., 0., 0., 0., 0., 5., 2., 5., 3., 4., 2., 1., 0., 1., 0., 1., 0., 0., 2., 1., 0., 0., 0., 2., 0., 4., 0., 0., 0., 1., 0., 2., 0., 3., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 23., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 1., 2., 7., 0., 14., 1., 6., 45., 1., 10., 55., 0., 2., 6., 0., 0., 71., 13., 12., 53., 17., 87., 13., 7., 0., 0., 4., 2., 11., 6., 49., 17., 0., 33., 29., 18., 3., 0., 0., 4., 5., 28., 7., 37., 6., 15., 7., 0., 1., 0., 10., 5., 14., 5., 17., 0., 10., 4., 5., 37., 6., 6., 2., 0., 14., 3., 4., 2., 8., 3., 2., 2., 2., 1., 0., 5., 2., 13., 16., 8., 4., 3., 3., 0., 0., 0., 0., 0., 8., 1., 3., 2., 3., 1., 1., 0., 0., 0., 1., 0., 2., 1., 3., 0., 0., 0., 1., 0., 2., 0., 0., 0., 1., 0., 1., 3., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 15., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 3., 4., 15., 0., 13., 0., 11., 59., 2., 9., 54., 1., 3., 5., 0., 2., 61., 5., 12., 71., 12., 87., 11., 2., 0., 0., 3., 2., 15., 7., 46., 11., 1., 47., 35., 14., 5., 0., 2., 4., 2., 21., 7., 25., 15., 14., 6., 2., 2., 0., 10., 6., 18., 11., 9., 5., 11., 0., 1., 35., 5., 6., 6., 0., 9., 3., 4., 1., 13., 3., 1., 0., 1., 3., 0., 7., 5., 18., 11., 3., 1., 3., 3., 0., 0., 0., 0., 0., 14., 1., 1., 1., 2., 1., 1., 0., 1., 0., 1., 0., 2., 6., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 1., 3., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 18., 0., 5., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 4., 3., 13., 0., 10., 3., 4., 54., 1., 10., 57., 1., 2., 4., 0., 1., 70., 11., 12., 69., 15., 89., 7., 5., 0., 0., 4., 0., 14., 11., 39., 7., 1., 38., 20., 18., 9., 0., 2., 5., 2., 21., 12., 26., 8., 16., 7., 4., 0., 0., 12., 7., 15., 8., 14., 0., 7., 3., 3., 39., 16., 8., 5., 0., 17., 2., 5., 1., 14., 0., 7., 0., 0., 0., 0., 4., 1., 19., 8., 2., 2., 1., 4., 0., 0., 0., 0., 0., 9., 0., 5., 4., 4., 0., 1., 0., 1., 0., 1., 0., 0., 3., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 3., 4., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 33., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 1., 3., 7., 0., 12., 3., 9., 45., 0., 6., 47., 2., 2., 3., 0., 1., 74., 12., 6., 66., 11., 80., 16., 7., 0., 2., 3., 3., 12., 10., 42., 14., 0., 37., 40., 14., 5., 0., 2., 7., 2., 18., 8., 25., 7., 15., 8., 2., 5., 0., 7., 5., 12., 4., 13., 1., 6., 1., 4., 48., 13., 8., 5., 0., 13., 5., 10., 4., 10., 3., 4., 0., 1., 0., 0., 2., 2., 21., 5., 3., 5., 0., 5., 0., 0., 0., 0., 0., 7., 3., 3., 5., 1., 2., 0., 0., 0., 0., 1., 0., 0., 4., 1., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 4., 4., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 22., 0., 4., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 2., 3., 14., 0., 15., 1., 6., 29., 0., 9., 64., 0., 3., 4., 0., 1., 75., 10., 10., 68., 16., 86., 16., 5., 0., 0., 4., 1., 14., 12., 58., 12., 2., 35., 46., 18., 4., 0., 0., 6., 2., 23., 8., 25., 8., 4., 7., 3., 3., 0., 15., 3., 17., 3., 10., 4., 10., 1., 3., 24., 16., 8., 1., 0., 13., 1., 7., 0., 12., 7., 1., 2., 1., 0., 0., 3., 3., 13., 7., 6., 7., 2., 0., 0., 0., 0., 0., 0., 10., 3., 3., 2., 3., 0., 1., 0., 0., 0., 2., 0., 1., 0., 1., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 13., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 2., 2., 4., 0., 17., 0., 3., 38., 1., 6., 51., 0., 4., 5., 0., 4., 55., 9., 9., 72., 15., 84., 17., 4., 0., 0., 5., 4., 14., 8., 53., 13., 5., 46., 38., 14., 2., 0., 0., 6., 2., 37., 9., 30., 7., 12., 8., 2., 1., 0., 10., 4., 20., 5., 17., 2., 10., 6., 3., 34., 8., 5., 3., 0., 14., 2., 6., 1., 15., 2., 6., 2., 0., 2., 0., 4., 0., 10., 11., 0., 5., 0., 0., 0., 0., 0., 0., 0., 6., 0., 3., 2., 8., 2., 1., 0., 0., 0., 1., 0., 1., 5., 1., 0., 2., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 30., 0., 3., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 1., 0., 5., 15., 0., 17., 1., 3., 48., 2., 8., 68., 0., 8., 3., 0., 3., 83., 6., 8., 66., 22., 76., 14., 2., 0., 0., 5., 1., 17., 13., 41., 12., 3., 37., 39., 8., 4., 0., 2., 3., 1., 19., 7., 27., 5., 10., 4., 5., 1., 0., 14., 0., 25., 6., 19., 5., 10., 3., 6., 31., 6., 8., 1., 0., 13., 3., 12., 2., 10., 2., 5., 0., 1., 1., 0., 7., 2., 12., 5., 1., 2., 0., 2., 0., 0., 0., 0., 0., 6., 2., 4., 2., 4., 0., 0., 0., 1., 0., 0., 0., 0., 2., 2., 0., 1., 0., 1., 0., 2., 0., 0., 0., 1., 0., 1., 1., 2., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 23., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 0., 3., 4., 21., 0., 14., 4., 6., 54., 3., 4., 77., 2., 4., 2., 0., 1., 75., 9., 8., 65., 14., 85., 8., 5., 0., 0., 2., 2., 20., 8., 58., 9., 0., 38., 27., 10., 3., 0., 2., 5., 3., 29., 7., 17., 6., 8., 7., 3., 5., 0., 4., 3., 9., 4., 21., 5., 3., 1., 3., 31., 8., 7., 2., 0., 14., 1., 13., 4., 7., 1., 4., 2., 2., 2., 0., 5., 5., 13., 10., 3., 4., 1., 3., 0., 0., 0., 0., 0., 21., 1., 1., 2., 1., 2., 0., 0., 2., 0., 0., 0., 0., 5., 3., 0., 2., 0., 2., 0., 0., 0., 0., 0., 1., 0., 2., 5., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 26., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 1., 6., 15., 0., 23., 1., 4., 56., 1., 6., 58., 0., 8., 4., 0., 2., 74., 9., 8., 73., 5., 62., 17., 1., 0., 1., 4., 3., 15., 8., 58., 19., 3., 52., 27., 23., 4., 0., 1., 7., 5., 23., 0., 26., 4., 5., 8., 3., 1., 0., 8., 5., 14., 4., 20., 1., 11., 2., 7., 51., 10., 7., 1., 0., 14., 3., 5., 0., 14., 1., 4., 0., 1., 0., 0., 6., 4., 17., 10., 4., 5., 2., 5., 0., 0., 0., 0., 0., 5., 3., 4., 0., 4., 1., 1., 0., 1., 0., 0., 0., 1., 4., 4., 0., 0., 0., 1., 0., 1., 0., 0., 0., 3., 0., 0., 0., 2., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 15., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 3., 6., 13., 0., 14., 3., 9., 49., 0., 10., 50., 0., 10., 1., 0., 0., 67., 19., 7., 81., 13., 72., 12., 0., 0., 5., 1., 2., 14., 13., 65., 7., 1., 52., 30., 11., 10., 0., 1., 9., 1., 23., 4., 26., 10., 13., 4., 4., 1., 0., 6., 5., 17., 4., 16., 2., 10., 7., 2., 38., 13., 6., 1., 0., 14., 2., 8., 1., 9., 1., 6., 0., 0., 1., 0., 4., 3., 25., 8., 3., 8., 2., 5., 0., 0., 0., 0., 0., 10., 3., 5., 3., 3., 1., 2., 0., 3., 0., 3., 0., 0., 2., 3., 0., 2., 0., 0., 0., 2., 0., 0., 0., 1., 0., 1., 4., 0., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 31., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 0., 4., 14., 0., 13., 0., 4., 53., 1., 6., 56., 1., 5., 0., 0., 4., 75., 7., 13., 73., 7., 95., 18., 6., 0., 1., 4., 4., 16., 8., 48., 14., 5., 41., 45., 10., 4., 0., 1., 3., 4., 23., 6., 36., 12., 11., 6., 4., 2., 0., 12., 4., 10., 5., 31., 3., 12., 2., 4., 34., 11., 10., 2., 0., 13., 2., 4., 3., 6., 1., 1., 0., 1., 2., 0., 5., 0., 17., 7., 3., 5., 1., 3., 0., 0., 0., 0., 0., 15., 1., 2., 2., 2., 0., 0., 0., 2., 0., 0., 0., 2., 5., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2., 2., 5., 0., 0., 0., 1., 0., 10., 0., 0., 0., 0., 20., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 4., 3., 11., 0., 13., 2., 10., 55., 1., 8., 57., 1., 7., 2., 0., 3., 65., 10., 13., 74., 20., 66., 8., 7., 0., 1., 6., 2., 22., 6., 58., 11., 0., 40., 30., 19., 8., 0., 2., 3., 3., 17., 8., 18., 10., 13., 8., 4., 4., 0., 9., 6., 11., 6., 20., 4., 9., 5., 1., 32., 8., 13., 3., 0., 14., 2., 9., 6., 10., 1., 4., 1., 0., 0., 0., 4., 2., 17., 3., 2., 5., 1., 1., 0., 0., 0., 0., 0., 13., 1., 3., 0., 4., 1., 1., 0., 0., 0., 3., 0., 0., 3., 0., 0., 3., 0., 1., 0., 1., 0., 0., 0., 2., 0., 1., 1., 2., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 22., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 2., 2., 3., 10., 0., 17., 1., 8., 44., 0., 8., 47., 2., 4., 3., 0., 2., 63., 6., 9., 78., 16., 80., 17., 5., 0., 1., 3., 3., 21., 3., 61., 16., 2., 42., 33., 17., 4., 0., 0., 7., 3., 19., 5., 22., 7., 7., 7., 2., 3., 0., 6., 6., 18., 3., 16., 5., 5., 6., 4., 30., 6., 12., 3., 0., 13., 4., 9., 2., 13., 1., 1., 2., 1., 1., 0., 8., 2., 14., 7., 1., 2., 2., 7., 0., 0., 0., 0., 0., 6., 2., 3., 0., 3., 0., 1., 0., 1., 0., 1., 0., 2., 2., 1., 0., 2., 0., 0., 0., 1., 0., 0., 0., 1., 0., 1., 2., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 26., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 4., 16., 0., 13., 1., 4., 57., 2., 5., 65., 0., 5., 2., 0., 0., 62., 7., 9., 69., 16., 87., 8., 3., 0., 0., 5., 3., 14., 9., 52., 15., 0., 29., 36., 13., 1., 0., 1., 5., 2., 26., 3., 15., 5., 10., 3., 7., 2., 0., 13., 5., 19., 5., 16., 1., 6., 3., 3., 31., 11., 9., 1., 0., 19., 7., 6., 2., 14., 3., 2., 0., 2., 0., 0., 6., 1., 22., 6., 0., 7., 1., 1., 0., 0., 0., 0., 0., 18., 3., 2., 0., 2., 0., 4., 0., 3., 0., 1., 0., 0., 3., 2., 0., 1., 0., 2., 0., 2., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 25., 0., 3., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 4., 4., 12., 0., 9., 2., 9., 52., 2., 11., 44., 2., 2., 4., 0., 7., 66., 12., 8., 82., 15., 89., 11., 12., 0., 0., 6., 2., 10., 9., 43., 14., 2., 40., 34., 10., 6., 0., 2., 6., 2., 23., 4., 21., 14., 11., 8., 4., 1., 0., 15., 0., 13., 5., 17., 5., 6., 1., 4., 45., 8., 11., 2., 0., 14., 2., 11., 1., 10., 4., 7., 1., 0., 2., 0., 2., 1., 11., 4., 4., 4., 0., 2., 0., 0., 0., 0., 0., 2., 2., 2., 1., 1., 0., 0., 0., 0., 0., 0., 0., 3., 3., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 2., 0., 0., 0., 2., 0., 3., 0., 0., 0., 0., 26., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
13., 1., 1., 4., 4., 0., 11., 3., 8., 63., 0., 8., 54., 0., 1., 2., 0., 3., 82., 5., 10., 73., 17., 74., 16., 0., 0., 0., 4., 0., 13., 10., 63., 14., 0., 32., 30., 10., 9., 0., 0., 1., 3., 22., 3., 21., 7., 13., 10., 6., 2., 0., 9., 2., 27., 4., 23., 2., 12., 3., 1., 32., 13., 8., 2., 0., 15., 4., 12., 1., 8., 4., 4., 1., 0., 1., 0., 1., 2., 15., 12., 1., 3., 0., 2., 0., 0., 0., 0., 0., 10., 1., 5., 2., 2., 1., 2., 0., 4., 0., 0., 0., 3., 2., 2., 0., 2., 0., 2., 0., 1., 0., 0., 0., 1., 0., 3., 1., 5., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 31., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 5., 11., 0., 11., 3., 5., 52., 2., 9., 68., 2., 8., 1., 0., 0., 79., 13., 7., 81., 14., 90., 11., 4., 0., 0., 5., 2., 16., 10., 51., 10., 3., 43., 32., 10., 6., 0., 3., 10., 4., 15., 9., 15., 2., 7., 6., 4., 2., 0., 7., 7., 18., 3., 12., 3., 11., 1., 2., 33., 11., 12., 2., 0., 15., 2., 19., 1., 5., 0., 1., 1., 0., 2., 0., 9., 1., 12., 9., 4., 3., 1., 4., 0., 0., 0., 0., 0., 4., 7., 5., 1., 2., 0., 3., 0., 1., 0., 1., 0., 0., 1., 3., 0., 2., 0., 2., 0., 1., 0., 0., 0., 2., 0., 1., 4., 4., 0., 0., 0., 0., 0., 7., 0., 0., 0., 0., 30., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 3., 1., 13., 0., 19., 1., 4., 40., 3., 4., 64., 3., 4., 0., 0., 2., 82., 6., 7., 74., 13., 90., 10., 1., 0., 2., 3., 3., 16., 17., 64., 12., 1., 41., 30., 14., 4., 0., 0., 4., 2., 19., 7., 23., 5., 8., 8., 1., 0., 0., 10., 4., 14., 4., 15., 3., 10., 5., 2., 29., 13., 1., 4., 0., 10., 2., 5., 5., 10., 0., 4., 1., 4., 1., 0., 5., 0., 19., 7., 3., 4., 1., 4., 0., 0., 0., 0., 0., 5., 2., 0., 1., 4., 2., 2., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 0., 2., 0., 1., 0., 1., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 24., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 1., 5., 15., 0., 12., 1., 7., 47., 0., 10., 51., 3., 5., 2., 0., 1., 74., 9., 4., 73., 23., 90., 8., 2., 0., 2., 0., 1., 13., 11., 48., 13., 2., 29., 37., 15., 1., 0., 1., 8., 6., 25., 4., 23., 11., 14., 11., 2., 6., 0., 9., 7., 15., 3., 22., 4., 3., 0., 0., 30., 10., 6., 2., 0., 9., 3., 7., 1., 11., 6., 5., 0., 1., 0., 0., 5., 4., 16., 11., 1., 5., 0., 2., 0., 0., 0., 0., 0., 9., 2., 4., 2., 3., 1., 0., 0., 0., 0., 1., 0., 1., 1., 3., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 1., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 2., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 2., 5., 8., 0., 11., 4., 6., 64., 1., 4., 59., 0., 4., 1., 0., 1., 59., 8., 8., 67., 19., 74., 10., 3., 0., 0., 3., 2., 13., 9., 56., 7., 1., 53., 37., 17., 2., 0., 2., 10., 1., 23., 2., 15., 7., 10., 8., 1., 1., 0., 10., 3., 22., 5., 16., 3., 6., 5., 5., 37., 5., 8., 0., 0., 18., 4., 7., 0., 5., 1., 3., 1., 1., 1., 0., 4., 3., 9., 9., 1., 4., 6., 3., 0., 0., 0., 0., 0., 11., 0., 5., 0., 4., 3., 2., 0., 0., 0., 1., 0., 1., 3., 2., 0., 2., 0., 4., 0., 2., 0., 0., 0., 2., 0., 0., 1., 3., 0., 0., 0., 2., 0., 7., 0., 0., 0., 0., 19., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 2., 2., 2., 9., 4., 4., 0., 1., 13., 1., 15., 27., 1., 12., 4., 1., 0., 20., 1., 4., 16., 14., 17., 20., 4., 0., 0., 2., 0., 10., 7., 23., 18., 5., 13., 3., 16., 5., 1., 1., 5., 3., 11., 14., 28., 38., 11., 28., 16., 2., 2., 7., 2., 2., 2., 5., 9., 6., 15., 4., 17., 3., 3., 1., 1., 5., 2., 5., 3., 4., 6., 2., 7., 1., 1., 4., 2., 0., 0., 2., 0., 0., 2., 1., 3., 3., 0., 1., 2., 2., 1., 2., 0., 0., 8., 2., 0., 2., 3., 3., 2., 0., 1., 0., 1., 3., 0., 0., 0., 0., 6., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 3., 3., 8., 3., 6., 0., 3., 35., 1., 12., 24., 1., 12., 3., 0., 1., 15., 2., 5., 31., 7., 21., 32., 6., 3., 2., 3., 4., 7., 11., 20., 14., 3., 15., 2., 16., 9., 4., 0., 7., 1., 11., 14., 16., 44., 6., 28., 11., 6., 2., 2., 2., 7., 4., 16., 4., 3., 10., 5., 18., 7., 1., 0., 1., 14., 0., 1., 1., 8., 3., 4., 5., 1., 3., 3., 3., 3., 0., 2., 0., 0., 0., 2., 4., 3., 5., 4., 3., 5., 1., 4., 0., 2., 4., 3., 0., 1., 6., 4., 3., 3., 4., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 3., 0., 0., 0., 7., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 1., 1., 4., 4., 4., 7., 1., 7., 23., 2., 13., 25., 1., 9., 2., 2., 5., 15., 2., 5., 9., 8., 31., 27., 5., 1., 1., 2., 2., 12., 5., 28., 17., 2., 13., 3., 15., 8., 4., 2., 2., 2., 15., 12., 15., 41., 10., 27., 10., 7., 1., 3., 3., 3., 1., 16., 10., 8., 15., 6., 17., 9., 3., 3., 3., 4., 0., 4., 0., 7., 2., 1., 2., 0., 4., 1., 0., 0., 4., 2., 0., 4., 1., 1., 2., 2., 4., 2., 2., 4., 0., 3., 0., 2., 10., 1., 0., 3., 1., 2., 1., 3., 3., 3., 1., 0., 0., 0., 0., 0., 3., 0., 0., 4., 0., 0., 0., 4., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 4., 12., 2., 2., 0., 4., 19., 1., 6., 15., 1., 13., 2., 0., 2., 7., 1., 2., 29., 17., 22., 25., 4., 2., 1., 5., 4., 12., 5., 24., 16., 5., 20., 1., 18., 11., 0., 1., 3., 5., 7., 10., 28., 50., 11., 13., 11., 4., 0., 5., 3., 2., 0., 13., 15., 7., 16., 4., 16., 6., 2., 1., 2., 3., 1., 4., 2., 6., 1., 4., 4., 2., 2., 2., 4., 0., 2., 1., 0., 5., 0., 2., 6., 1., 4., 2., 3., 3., 1., 4., 0., 1., 3., 1., 0., 4., 1., 1., 5., 1., 3., 4., 1., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 0., 4., 4., 2., 8., 3., 6., 30., 0., 18., 21., 1., 14., 4., 1., 2., 15., 4., 4., 21., 14., 28., 34., 2., 0., 0., 3., 3., 9., 7., 14., 13., 1., 17., 5., 15., 8., 3., 1., 1., 3., 13., 13., 17., 38., 14., 16., 9., 3., 0., 1., 3., 4., 4., 16., 9., 5., 10., 8., 24., 5., 3., 0., 1., 7., 2., 4., 3., 9., 3., 4., 7., 2., 1., 2., 2., 0., 3., 3., 0., 0., 4., 3., 6., 2., 7., 1., 4., 3., 3., 4., 2., 2., 6., 2., 0., 5., 3., 1., 0., 1., 7., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 5., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 3., 0., 4., 10., 5., 8., 1., 4., 22., 0., 11., 17., 1., 17., 3., 1., 2., 27., 0., 6., 30., 13., 23., 29., 7., 0., 0., 1., 0., 6., 3., 24., 11., 5., 8., 5., 12., 11., 0., 0., 2., 5., 10., 13., 22., 39., 8., 21., 12., 2., 3., 3., 2., 12., 3., 6., 6., 5., 15., 12., 21., 6., 1., 2., 0., 7., 0., 2., 1., 7., 5., 5., 5., 2., 4., 2., 2., 2., 3., 3., 0., 4., 1., 1., 4., 2., 5., 4., 2., 4., 1., 5., 0., 1., 7., 2., 0., 2., 5., 1., 2., 5., 1., 2., 1., 1., 0., 0., 0., 0., 4., 0., 0., 4., 0., 0., 0., 3., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 7., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 2., 2., 13., 0., 14., 1., 8., 46., 0., 6., 48., 0., 4., 2., 0., 2., 54., 9., 9., 83., 12., 84., 8., 5., 0., 1., 2., 4., 12., 7., 64., 15., 0., 31., 31., 17., 5., 0., 1., 5., 3., 37., 6., 22., 9., 9., 4., 4., 3., 0., 13., 4., 15., 3., 12., 6., 7., 6., 4., 33., 6., 5., 1., 0., 13., 2., 9., 3., 14., 2., 6., 0., 0., 1., 0., 3., 3., 16., 15., 4., 5., 1., 3., 0., 0., 0., 0., 0., 10., 3., 1., 1., 1., 0., 3., 0., 1., 0., 0., 0., 1., 4., 2., 0., 0., 0., 1., 0., 3., 0., 0., 0., 3., 0., 0., 0., 5., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 22., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 3., 7., 10., 0., 13., 2., 5., 58., 1., 10., 63., 0., 10., 3., 0., 4., 72., 8., 9., 100., 8., 83., 14., 2., 0., 1., 4., 3., 13., 12., 55., 13., 3., 39., 30., 16., 5., 0., 0., 9., 1., 21., 7., 18., 5., 13., 7., 1., 0., 0., 7., 4., 21., 6., 16., 3., 3., 5., 5., 34., 1., 7., 5., 0., 11., 3., 10., 3., 7., 2., 4., 1., 3., 1., 0., 6., 0., 15., 6., 6., 4., 0., 3., 0., 0., 0., 0., 0., 11., 2., 1., 1., 2., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 2., 0., 1., 0., 3., 0., 0., 0., 0., 0., 2., 2., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 31., 0., 3., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 0., 1., 7., 8., 0., 13., 1., 4., 55., 1., 7., 62., 1., 5., 2., 0., 2., 72., 16., 10., 68., 21., 88., 12., 2., 0., 0., 4., 2., 13., 10., 65., 14., 1., 41., 25., 8., 9., 0., 0., 10., 5., 16., 4., 22., 4., 15., 5., 3., 1., 0., 5., 7., 6., 3., 15., 1., 7., 4., 0., 41., 8., 7., 2., 0., 15., 1., 4., 0., 19., 0., 6., 1., 2., 2., 0., 8., 2., 20., 9., 0., 1., 0., 4., 0., 0., 0., 0., 0., 11., 1., 1., 2., 6., 1., 2., 0., 0., 0., 0., 0., 0., 7., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1., 1., 3., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 33., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 4., 1., 7., 15., 0., 16., 1., 10., 66., 0., 12., 48., 0., 2., 2., 0., 1., 54., 9., 6., 64., 11., 71., 14., 4., 0., 3., 2., 0., 9., 9., 48., 11., 1., 32., 27., 15., 5., 0., 0., 8., 2., 32., 7., 19., 3., 12., 3., 1., 1., 0., 11., 3., 20., 5., 19., 5., 6., 5., 6., 34., 5., 8., 2., 0., 11., 5., 7., 3., 10., 2., 3., 0., 1., 0., 0., 4., 3., 20., 14., 5., 7., 2., 4., 0., 0., 0., 0., 0., 6., 4., 6., 3., 4., 1., 1., 0., 1., 0., 0., 0., 1., 6., 2., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 23., 0., 3., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
17., 0., 1., 6., 13., 0., 15., 0., 3., 47., 0., 8., 54., 1., 7., 1., 0., 0., 67., 11., 6., 80., 15., 82., 13., 3., 0., 0., 3., 2., 27., 12., 55., 13., 1., 51., 26., 17., 6., 0., 1., 1., 1., 24., 4., 19., 7., 10., 5., 4., 2., 0., 7., 5., 22., 7., 15., 0., 7., 2., 0., 42., 5., 5., 3., 0., 10., 3., 4., 2., 10., 2., 3., 2., 0., 1., 0., 7., 3., 11., 7., 1., 4., 1., 5., 0., 0., 0., 0., 0., 9., 3., 4., 3., 1., 3., 3., 0., 1., 0., 0., 0., 1., 4., 4., 0., 2., 0., 1., 0., 2., 0., 0., 0., 2., 0., 2., 0., 1., 0., 0., 0., 1., 0., 4., 0., 0., 0., 0., 25., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 0., 2., 4., 14., 0., 16., 1., 5., 39., 2., 7., 71., 0., 2., 0., 0., 2., 56., 6., 3., 74., 11., 89., 15., 1., 0., 0., 5., 1., 14., 12., 50., 8., 3., 57., 44., 20., 3., 0., 1., 12., 5., 19., 12., 23., 3., 12., 9., 3., 1., 0., 7., 5., 25., 8., 18., 1., 9., 3., 4., 41., 8., 6., 2., 0., 14., 1., 8., 1., 11., 3., 6., 1., 1., 2., 0., 6., 1., 12., 9., 3., 3., 2., 5., 0., 0., 0., 0., 0., 5., 6., 4., 1., 3., 1., 4., 0., 1., 0., 0., 0., 0., 2., 2., 0., 2., 0., 0., 0., 3., 0., 0., 0., 1., 0., 2., 1., 1., 0., 0., 0., 0., 0., 4., 0., 0., 0., 0., 27., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 2., 1., 3., 11., 0., 10., 1., 7., 48., 0., 10., 42., 1., 6., 2., 0., 0., 69., 9., 7., 95., 12., 107., 10., 3., 0., 3., 6., 3., 17., 8., 54., 13., 0., 45., 39., 19., 5., 0., 0., 7., 9., 11., 6., 27., 6., 14., 5., 6., 1., 0., 6., 6., 14., 4., 11., 3., 14., 0., 1., 40., 9., 5., 4., 0., 14., 4., 9., 0., 19., 2., 6., 2., 1., 0., 0., 2., 3., 18., 6., 4., 4., 0., 0., 0., 0., 0., 0., 0., 5., 5., 1., 1., 4., 2., 2., 0., 0., 0., 2., 0., 3., 3., 2., 0., 6., 0., 0., 0., 1., 0., 0., 0., 3., 0., 4., 1., 2., 0., 0., 0., 0., 0., 3., 0., 0., 0., 0., 26., 0., 4., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
10., 0., 1., 2., 7., 0., 10., 0., 4., 41., 0., 10., 47., 2., 6., 5., 0., 0., 71., 4., 7., 70., 12., 64., 10., 2., 0., 0., 1., 2., 15., 12., 48., 10., 2., 46., 31., 8., 11., 0., 2., 3., 5., 23., 4., 29., 15., 13., 10., 2., 1., 0., 10., 5., 20., 5., 18., 3., 6., 3., 2., 32., 7., 5., 2., 0., 16., 3., 6., 3., 6., 2., 4., 0., 0., 1., 0., 6., 3., 13., 16., 3., 4., 1., 3., 0., 0., 0., 0., 0., 5., 2., 2., 2., 3., 0., 1., 0., 3., 0., 3., 0., 1., 2., 3., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 2., 1., 0., 0., 0., 0., 0., 6., 0., 0., 0., 0., 27., 0., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 2., 3., 14., 0., 14., 6., 4., 54., 1., 8., 75., 2., 2., 2., 0., 3., 64., 11., 11., 87., 13., 87., 8., 7., 0., 2., 5., 3., 16., 11., 73., 8., 4., 47., 29., 12., 6., 0., 0., 2., 2., 25., 10., 26., 11., 14., 6., 4., 3., 0., 7., 2., 13., 1., 20., 3., 6., 2., 2., 41., 5., 5., 3., 0., 13., 3., 8., 1., 16., 2., 2., 0., 2., 2., 0., 3., 2., 9., 7., 6., 7., 1., 2., 0., 0., 0., 0., 0., 4., 2., 4., 1., 4., 2., 0., 0., 1., 0., 1., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0., 1., 2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 25., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
14., 1., 2., 3., 10., 0., 12., 1., 3., 49., 2., 12., 53., 1., 5., 2., 0., 5., 73., 11., 6., 74., 9., 100., 7., 4., 0., 1., 2., 3., 13., 10., 39., 9., 3., 32., 39., 16., 6., 0., 1., 6., 5., 23., 8., 18., 13., 8., 13., 3., 3., 0., 7., 6., 12., 6., 13., 3., 6., 5., 4., 36., 14., 10., 2., 0., 10., 4., 7., 3., 20., 3., 3., 0., 3., 1., 0., 7., 4., 17., 14., 3., 6., 2., 0., 0., 0., 0., 0., 0., 6., 3., 3., 2., 2., 2., 0., 0., 1., 0., 0., 0., 2., 3., 2., 0., 3., 0., 0., 0., 2., 0., 0., 0., 1., 0., 2., 2., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 24., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 1., 1., 9., 14., 0., 21., 1., 9., 33., 0., 15., 78., 1., 7., 2., 0., 3., 63., 10., 11., 77., 12., 68., 9., 2., 0., 1., 4., 1., 13., 13., 50., 9., 3., 43., 31., 11., 4., 0., 1., 5., 4., 26., 6., 26., 10., 10., 7., 4., 4., 0., 12., 4., 11., 5., 12., 4., 3., 5., 1., 44., 5., 7., 4., 0., 17., 6., 7., 1., 7., 3., 7., 1., 1., 1., 0., 3., 2., 10., 10., 2., 4., 1., 3., 0., 0., 0., 0., 0., 9., 2., 2., 2., 5., 2., 1., 0., 0., 0., 0., 0., 2., 4., 2., 0., 2., 0., 1., 0., 2., 0., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 19., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 1., 4., 2., 10., 0., 13., 2., 6., 60., 1., 12., 57., 1., 4., 2., 0., 1., 82., 5., 8., 78., 16., 82., 11., 4., 0., 2., 3., 2., 18., 12., 54., 10., 4., 40., 34., 17., 3., 0., 0., 5., 7., 23., 8., 22., 11., 17., 4., 4., 2., 0., 12., 4., 15., 0., 11., 3., 9., 4., 3., 33., 7., 7., 3., 0., 12., 0., 8., 3., 8., 4., 6., 1., 2., 2., 0., 2., 2., 16., 10., 4., 2., 0., 2., 0., 0., 0., 0., 0., 5., 3., 3., 2., 2., 1., 0., 0., 2., 0., 3., 0., 0., 3., 0., 0., 4., 0., 2., 0., 1., 0., 0., 0., 3., 0., 0., 2., 2., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 23., 0., 2., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 3., 5., 3., 6., 0., 17., 2., 10., 38., 2., 6., 59., 0., 12., 1., 0., 1., 68., 13., 9., 79., 13., 76., 15., 1., 0., 1., 3., 2., 14., 10., 35., 17., 2., 34., 34., 13., 3., 0., 1., 6., 2., 32., 8., 17., 12., 16., 6., 6., 0., 0., 17., 3., 24., 4., 19., 2., 8., 0., 7., 37., 7., 7., 3., 0., 13., 1., 7., 0., 6., 3., 5., 0., 2., 0., 0., 5., 1., 20., 11., 6., 3., 0., 3., 0., 0., 0., 0., 0., 11., 3., 2., 3., 1., 1., 2., 0., 0., 0., 0., 0., 2., 3., 2., 0., 1., 0., 1., 0., 2., 0., 0., 0., 2., 0., 2., 3., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 27., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 4., 1., 1., 12., 0., 13., 3., 6., 56., 3., 8., 47., 1., 3., 1., 0., 3., 81., 8., 4., 66., 17., 75., 11., 4., 0., 0., 5., 0., 20., 5., 48., 12., 2., 34., 21., 12., 3., 0., 1., 8., 7., 24., 8., 22., 10., 13., 7., 0., 2., 0., 13., 7., 24., 0., 8., 3., 5., 2., 2., 44., 10., 8., 1., 0., 12., 3., 5., 6., 18., 1., 4., 0., 0., 3., 0., 2., 1., 19., 2., 2., 3., 1., 6., 0., 0., 0., 0., 0., 13., 1., 3., 0., 2., 2., 1., 0., 0., 0., 1., 0., 0., 1., 2., 0., 1., 0., 1., 0., 1., 0., 0., 0., 1., 0., 1., 1., 2., 0., 0., 0., 1., 0., 6., 0., 0., 0., 0., 21., 0., 0., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 2., 1., 0., 12., 0., 16., 3., 10., 58., 0., 4., 59., 3., 3., 0., 0., 3., 69., 8., 10., 68., 8., 98., 8., 3., 0., 1., 5., 4., 7., 9., 53., 7., 3., 34., 41., 12., 2., 0., 1., 8., 2., 18., 6., 17., 9., 15., 10., 2., 1., 0., 6., 5., 20., 6., 14., 3., 8., 0., 4., 40., 5., 4., 1., 0., 16., 4., 7., 3., 11., 2., 6., 2., 2., 2., 0., 1., 1., 21., 6., 2., 5., 4., 3., 0., 0., 0., 0., 0., 18., 2., 1., 3., 3., 1., 6., 0., 3., 0., 1., 0., 1., 4., 0., 0., 3., 0., 1., 0., 0., 0., 0., 0., 2., 0., 1., 3., 4., 0., 0., 0., 0., 0., 5., 0., 0., 0., 0., 20., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 1., 4., 14., 0., 12., 0., 4., 58., 2., 4., 54., 2., 5., 2., 0., 0., 68., 11., 7., 80., 13., 92., 13., 3., 0., 0., 1., 4., 13., 9., 50., 17., 2., 25., 32., 16., 6., 0., 0., 5., 2., 20., 6., 22., 4., 19., 7., 4., 0., 0., 11., 7., 16., 6., 9., 4., 11., 4., 4., 39., 5., 11., 2., 0., 17., 3., 8., 1., 7., 4., 3., 2., 1., 3., 0., 10., 0., 15., 4., 5., 3., 1., 0., 0., 0., 0., 0., 0., 3., 1., 2., 2., 2., 1., 5., 0., 3., 0., 0., 0., 2., 5., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 5., 0., 0., 0., 0., 29., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 1., 3., 10., 0., 17., 2., 5., 28., 0., 10., 62., 2., 4., 4., 0., 0., 73., 14., 6., 78., 13., 66., 18., 5., 0., 1., 3., 0., 15., 10., 57., 14., 2., 35., 35., 15., 6., 0., 0., 4., 5., 26., 6., 16., 9., 15., 8., 3., 1., 0., 9., 0., 23., 6., 11., 5., 4., 2., 6., 49., 7., 7., 0., 0., 11., 0., 3., 0., 15., 3., 5., 1., 2., 2., 0., 7., 4., 18., 7., 1., 2., 1., 6., 0., 0., 0., 0., 0., 5., 0., 5., 2., 9., 1., 1., 0., 1., 0., 0., 0., 1., 0., 2., 0., 1., 0., 0., 0., 2., 0., 0., 0., 3., 0., 2., 4., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 33., 0., 3., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 2., 2., 2., 12., 0., 20., 2., 7., 55., 0., 13., 56., 2., 6., 1., 0., 4., 72., 9., 6., 71., 13., 91., 9., 0., 0., 0., 7., 3., 15., 10., 52., 7., 6., 41., 42., 17., 11., 0., 1., 3., 3., 23., 5., 28., 13., 14., 3., 4., 1., 0., 9., 4., 11., 2., 13., 3., 7., 5., 2., 29., 15., 12., 3., 0., 24., 6., 10., 1., 12., 0., 11., 1., 2., 1., 0., 6., 7., 10., 10., 4., 1., 0., 1., 0., 0., 0., 0., 0., 8., 3., 3., 3., 4., 2., 2., 0., 2., 0., 1., 0., 3., 2., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2., 2., 1., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 25., 0., 0., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 2., 3., 4., 5., 0., 15., 1., 7., 51., 2., 7., 63., 0., 1., 3., 0., 1., 56., 15., 10., 79., 13., 83., 12., 6., 0., 1., 4., 0., 16., 8., 44., 9., 2., 30., 31., 11., 5., 0., 1., 6., 2., 17., 12., 27., 8., 11., 9., 1., 5., 0., 10., 8., 11., 2., 15., 9., 7., 5., 1., 41., 9., 5., 1., 0., 6., 2., 7., 1., 11., 0., 6., 0., 1., 0., 0., 5., 2., 13., 6., 0., 7., 0., 1., 0., 0., 0., 0., 0., 8., 0., 3., 0., 6., 1., 2., 0., 1., 0., 1., 0., 1., 4., 3., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 1., 3., 5., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0., 20., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
11., 0., 3., 1., 14., 0., 12., 4., 11., 41., 1., 6., 50., 1., 4., 2., 0., 3., 75., 13., 4., 64., 15., 84., 16., 10., 0., 0., 4., 3., 13., 4., 54., 11., 4., 44., 31., 15., 7., 0., 2., 4., 3., 23., 5., 13., 3., 13., 2., 6., 1., 0., 10., 7., 9., 1., 11., 3., 10., 4., 1., 35., 6., 8., 0., 0., 20., 2., 11., 1., 6., 3., 5., 1., 1., 3., 0., 6., 0., 13., 6., 4., 6., 2., 2., 0., 0., 0., 0., 0., 9., 2., 2., 1., 2., 0., 1., 0., 1., 0., 3., 0., 1., 3., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 5., 5., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 18., 0., 1., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
8., 3., 2., 3., 15., 0., 13., 0., 8., 47., 2., 5., 73., 1., 4., 0., 0., 0., 69., 12., 10., 72., 16., 81., 10., 3., 0., 1., 4., 2., 14., 13., 53., 12., 6., 37., 31., 15., 3., 0., 0., 6., 4., 18., 3., 27., 9., 10., 8., 4., 1., 0., 11., 6., 15., 5., 21., 1., 7., 2., 1., 37., 6., 7., 3., 0., 8., 2., 11., 4., 10., 6., 1., 0., 1., 0., 0., 7., 2., 14., 8., 2., 3., 1., 1., 0., 0., 0., 0., 0., 9., 1., 5., 3., 4., 0., 0., 0., 1., 0., 3., 0., 1., 2., 2., 0., 4., 0., 1., 0., 0., 0., 0., 0., 0., 0., 5., 0., 5., 0., 0., 0., 1., 0., 9., 0., 0., 0., 0., 27., 0., 1., 0., 5., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
6., 0., 2., 5., 9., 0., 19., 3., 9., 67., 0., 9., 54., 1., 5., 2., 0., 5., 73., 10., 7., 78., 11., 92., 8., 3., 0., 0., 3., 3., 16., 14., 55., 12., 1., 36., 34., 12., 5., 0., 0., 5., 2., 14., 5., 19., 7., 20., 4., 3., 0., 0., 9., 6., 16., 5., 15., 3., 3., 3., 2., 32., 8., 14., 2., 0., 16., 4., 11., 1., 16., 2., 5., 0., 1., 2., 0., 5., 2., 17., 7., 4., 4., 0., 1., 0., 0., 0., 0., 0., 13., 6., 4., 1., 6., 1., 2., 0., 1., 0., 2., 0., 2., 1., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 1., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 28., 0., 1., 0., 3., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
4., 1., 2., 4., 6., 0., 16., 2., 8., 30., 1., 7., 53., 0., 3., 2., 0., 0., 72., 4., 3., 71., 13., 83., 14., 5., 0., 0., 1., 6., 17., 9., 54., 12., 1., 39., 26., 12., 10., 0., 4., 13., 1., 29., 6., 26., 7., 11., 4., 1., 4., 0., 13., 5., 20., 5., 21., 1., 8., 0., 5., 33., 9., 12., 1., 0., 14., 3., 9., 3., 10., 2., 2., 1., 1., 1., 0., 8., 2., 14., 8., 5., 3., 1., 1., 0., 0., 0., 0., 0., 9., 3., 2., 1., 2., 1., 0., 0., 0., 0., 1., 0., 0., 3., 0., 0., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 3., 3., 1., 0., 0., 0., 3., 0., 5., 0., 0., 0., 0., 28., 0., 6., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
7., 0., 4., 5., 12., 0., 15., 2., 6., 47., 1., 7., 61., 0., 10., 1., 0., 0., 95., 12., 3., 78., 23., 81., 11., 2., 0., 0., 2., 2., 7., 10., 45., 19., 0., 37., 33., 18., 3., 0., 0., 7., 3., 32., 3., 21., 6., 9., 5., 3., 5., 0., 5., 4., 21., 5., 22., 2., 6., 3., 0., 38., 2., 5., 3., 0., 9., 4., 6., 2., 10., 3., 1., 0., 2., 1., 0., 7., 2., 9., 6., 5., 5., 3., 2., 0., 0., 0., 0., 0., 4., 3., 5., 2., 6., 1., 1., 0., 0., 0., 0., 0., 0., 8., 1., 0., 1., 0., 2., 0., 2., 0., 0., 0., 2., 0., 2., 1., 4., 0., 0., 0., 2., 0., 4., 0., 0., 0., 0., 24., 0., 2., 0., 7., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
12., 0., 1., 8., 10., 0., 19., 2., 4., 49., 0., 8., 62., 1., 4., 3., 0., 1., 76., 9., 6., 75., 11., 75., 10., 4., 0., 1., 5., 2., 11., 10., 48., 10., 1., 34., 36., 21., 4., 0., 1., 5., 5., 29., 6., 22., 6., 13., 7., 3., 1., 0., 14., 2., 14., 8., 12., 2., 5., 5., 8., 36., 7., 7., 1., 0., 10., 3., 4., 1., 6., 2., 3., 0., 0., 0., 0., 4., 1., 21., 9., 6., 6., 0., 1., 0., 0., 0., 0., 0., 11., 2., 1., 3., 4., 1., 1., 0., 3., 0., 0., 0., 0., 3., 5., 0., 4., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2., 4., 3., 0., 0., 0., 2., 0., 2., 0., 0., 0., 0., 22., 0., 4., 0., 4., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
9., 1., 3., 4., 14., 0., 15., 2., 5., 39., 0., 9., 64., 0., 4., 2., 0., 1., 69., 8., 9., 60., 15., 72., 12., 4., 0., 0., 2., 2., 10., 11., 42., 16., 0., 38., 37., 13., 6., 0., 2., 8., 2., 27., 5., 26., 5., 10., 7., 2., 4., 0., 3., 5., 21., 5., 13., 6., 8., 4., 1., 36., 11., 5., 3., 0., 12., 2., 10., 1., 11., 2., 0., 2., 0., 0., 0., 2., 0., 16., 11., 4., 5., 1., 3., 0., 0., 0., 0., 0., 11., 2., 3., 3., 4., 1., 0., 0., 1., 0., 2., 0., 1., 6., 2., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0., 1., 0., 7., 0., 0., 0., 0., 30., 0., 4., 0., 6., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.0
};
#endif // VIGRA_UNSUPERVISED_TEST_DATA_HXX
|
/*
* Repast for High Performance Computing (Repast HPC)
*
* Copyright (c) 2010 Argonne National Laboratory
* 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 Argonne National Laboratory 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 TRUSTEES 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.
*
*
* logger.cpp
*
* Created on: Dec 16, 2008
* Author: nick
*/
#include <mpi.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <stdexcept>
#include <algorithm>
#include <iomanip>
#include <map>
#include <ctime>
#include <boost/filesystem.hpp>
#include <boost/mpi/collectives.hpp>
#include "logger.h"
#include "io.h"
#include "RepastErrors.h"
namespace fs = boost::filesystem;
using namespace std;
namespace repast {
typedef enum _TOKEN {
END = 0, ROOT, LOGGER, APPENDER, APPENDER_FILE, APPENDER_SIZE, APPENDER_BIDX, ERRORT
} TOKEN;
const string ROOT_LOGGER_TAG = "logger.root";
const string LOGGER_TAG = "logger.";
const string APPENDER_TAG = "appender.";
const string FILE_TAG = ".File";
const string SIZE_TAG = ".MaxFileSize";
const string BACK_IDX_TAG = ".MaxBackupIndex";
// DEBUG, INFO, WARN, ERROR, FATAL
const int LEVEL_COUNT = 5;
const char *LEVELS[5] = { "DEBUG", "INFO", "WARN", "ERROR", "FATAL" };
int count_char(const string& str, const char& to_count) {
int count = 0;
for (int i = 0, n = str.length(); i < n; i++) {
if (str[i] == to_count)
count++;
}
return count;
}
bool ends_with(const string& str, const string& ends) {
size_t pos = str.rfind(ends, str.length());
if (pos == string::npos)
return false;
return str.length() - pos == ends.length();
}
class ConfigLexer {
private:
int _line;
// ifstream* in;
istringstream* in;
string _value, _key, _error;
void format_error(const char* msg);
bool is_root();
bool is_logger();
bool is_appender();
bool is_appender_file();
bool is_appender_size();
bool is_appender_bidx();
public:
ConfigLexer(const string& file_name, boost::mpi::communicator* comm = 0, int maxConfigFileSize = MAX_CONFIG_FILE_SIZE);
~ConfigLexer();
TOKEN next_token();
string key();
string value();
string error();
int line();
void reset();
};
ConfigLexer::ConfigLexer(const string& file_name, boost::mpi::communicator* comm, int maxConfigFileSize) :
_line(0), _value(""), _key(""), _error("") {
char* CONFIGFILEBUFFER = new char[maxConfigFileSize]; // All procs allocate memory for the properties file
if(comm == 0 || comm->rank() == 0){ // If no communicator is passed, all ranks read props file
ifstream fileInStream(file_name.c_str());
if (fileInStream.is_open()){
fileInStream.read(CONFIGFILEBUFFER, maxConfigFileSize);
// Check if fail:
if(fileInStream.gcount() >= (maxConfigFileSize - 1)){
throw repast::Repast_Error_41(maxConfigFileSize, fileInStream.gcount(), file_name); // Config file exceeds maximum allowed size
}
CONFIGFILEBUFFER[fileInStream.gcount()] = '\0'; // Add a null terminator
fileInStream.close();
} else {
throw repast::Repast_Error_42(file_name); // Config file not found
}
}
if(comm != 0){ // If a communicator was passed, proc 0 broadcasts to all other procs
MPI_Bcast(CONFIGFILEBUFFER, maxConfigFileSize, MPI_CHAR, 0, *comm);
}
std::string P(CONFIGFILEBUFFER);
delete[] CONFIGFILEBUFFER;
in = new istringstream(P, ios_base::in);
if (in == NULL || in->fail()) {
string err = "Error opening config file '" + file_name + "'";
if (in != NULL)
delete in;
throw repast::Repast_Error_43(file_name); // Unknown error
}
}
ConfigLexer::~ConfigLexer() {
// if (in != NULL)
// in->close();
delete in;
}
bool ConfigLexer::is_root() {
return _key == ROOT_LOGGER_TAG;
}
bool ConfigLexer::is_logger() {
return _key.find(LOGGER_TAG) == 0;
}
// its an appender if it starts with appender
// and there is a single dot
bool ConfigLexer::is_appender() {
return _key.find(APPENDER_TAG) == 0 && count_char(_key, '.') == 1;
}
// its an appender.File if starts with
// appender., has two dots, and ends with File.
bool ConfigLexer::is_appender_file() {
return _key.find(APPENDER_TAG) == 0 && count_char(_key, '.') == 2 && ends_with(_key, FILE_TAG);
}
// starts with appender, has two dots
// and ends with SIZE tag.
bool ConfigLexer::is_appender_size() {
return _key.find(APPENDER_TAG) == 0 && count_char(_key, '.') == 2 && ends_with(_key, SIZE_TAG);
}
// starts with appender, has two dots
// and ends with BAC_IDX tag
bool ConfigLexer::is_appender_bidx() {
return _key.find(APPENDER_TAG) == 0 && count_char(_key, '.') == 2 && ends_with(_key, BACK_IDX_TAG);
}
void ConfigLexer::format_error(const char* msg) {
stringstream str;
str << "Error in line " << _line << ": " << msg << endl;
_error = str.str();
}
string ConfigLexer::key() {
return _key;
}
string ConfigLexer::value() {
return _value;
}
string ConfigLexer::error() {
return _error;
}
int ConfigLexer::line() {
return _line;
}
TOKEN ConfigLexer::next_token() {
string str;
while (getline(*in, str)) {
_line++;
repast::str_trim(str);
if (str.length() > 0 && str[0] != '#') {
size_t pos = str.find_first_of("=");
if (pos == string::npos) {
format_error("'=' is missing.");
return ERRORT;
}
_key = str.substr(0, pos);
repast::str_trim(_key);
if (_key.length() == 0) {
format_error("key is missing.");
return ERRORT;
}
_value = "";
if (str.length() > pos) {
_value = str.substr(pos + 1, str.length());
}
repast::str_trim(_value);
if (_value.length() == 0) {
format_error("value is missing.");
return ERRORT;
}
if (is_root())
return ROOT;
if (is_logger())
return LOGGER;
if (is_appender())
return APPENDER;
if (is_appender_file())
return APPENDER_FILE;
if (is_appender_size())
return APPENDER_SIZE;
if (is_appender_bidx())
return APPENDER_BIDX;
format_error("unexpected token");
return ERRORT;
}
}
return END;
}
void ConfigLexer::reset() {
in->seekg(0, ios_base::beg);
}
Appender::Appender(const string name) :
_name(name) {
}
Appender::~Appender() {
}
class CoutAppender: public Appender {
public:
CoutAppender();
~CoutAppender() {
}
;
void write(const string& line);
};
class CerrAppender: public Appender {
public:
CerrAppender();
~CerrAppender() {
}
void write(const string& line);
};
CerrAppender::CerrAppender() :
Appender("stderr") {
}
void CerrAppender::write(const string& line) {
cout << line;
}
CoutAppender::CoutAppender() :
Appender("stdout") {
}
void CoutAppender::write(const string& line) {
cout << line;
}
class RollingFileAppender: public Appender {
public:
RollingFileAppender(const string name, const string file_name, int max_backup, int max_size);
~RollingFileAppender();
virtual void write(const string& log_line);
virtual void close();
private:
MPI_File out;
string file_name;
int max_backup;
long max_size, cur_size;
bool isOpen;
void resize_check();
void init_cur_size();
};
RollingFileAppender::RollingFileAppender(const string name, const string file_name, int max_backup, int max_size) :
Appender(name), file_name(file_name), max_backup(max_backup), max_size(max_size), cur_size(-1), isOpen(false) {
}
RollingFileAppender::~RollingFileAppender() {
if (isOpen) {
MPI_File_sync(out);
MPI_File_close(&out);
}
}
void RollingFileAppender::close() {
if (isOpen) {
MPI_File_sync(out);
MPI_File_close(&out);
isOpen = false;
}
}
void RollingFileAppender::init_cur_size() {
// check to see if the file exists
ifstream fin(file_name.c_str(), ifstream::in);
if (fin.fail()) {
// file does not yet exist
cur_size = 0;
} else {
fin.seekg(0, ios_base::end);
// size in bytes
cur_size = fin.tellg();
fin.close();
}
}
void RollingFileAppender::resize_check() {
if (cur_size == -1)
init_cur_size();
if (cur_size > max_size) {
if (isOpen) {
// close the file
MPI_File_sync(out);
MPI_File_close(&out);
isOpen = false;
}
for (int i = max_backup - 1; i >= 0; i--) {
ostringstream from;
if (i == 0) {
from << file_name;
} else {
from << file_name << i;
}
ifstream fin(from.str().c_str(), ifstream::in);
if (!fin.fail()) {
fin.close();
ostringstream to;
to << file_name << (i + 1);
rename(from.str().c_str(), to.str().c_str());
}
}
cur_size = 0;
}
if (!isOpen) {
// reopen the mpi out
int mode = MPI_MODE_CREATE | MPI_MODE_WRONLY | MPI_MODE_APPEND;
fs::path filepath(file_name);
if (!fs::exists(filepath.parent_path())) {
fs::create_directories(filepath.parent_path());
}
//out = MPI::File::Open(MPI::COMM_SELF, file_name.c_str(), mode, MPI::INFO_NULL);
MPI_File_open(MPI_COMM_SELF, (char*)file_name.c_str(), mode, MPI_INFO_NULL, &out);
isOpen = true;
}
}
void RollingFileAppender::write(const string& log_line) {
resize_check();
int count = log_line.length();
MPI_Status status;
MPI_File_write(out, (void*)log_line.c_str(), count, MPI_CHAR, &status);
cur_size += count;
}
Logger::Logger(const string name, LOG_LEVEL level, int proc_id) :
name(name), level(level), proc_id(proc_id) {
}
void Logger::format_msg(LOG_LEVEL level, const string& msg, string& to_format) {
string ts;
repast::timestamp(ts);
ostringstream os;
os << ts << " [" << proc_id << "] " << LEVELS[level] << " " << name << " " << msg << endl;
to_format = os.str();
}
void Logger::log(LOG_LEVEL level, const std::string msg) {
string formatted_msg;
if (level >= this->level) {
formatted_msg = "";
format_msg(level, msg, formatted_msg);
for (vector<Appender*>::iterator iter = appenders.begin(); iter != appenders.end(); ++iter) {
Appender* app = *iter;
app->write(formatted_msg);
}
}
}
void Logger::close() {
for (vector<Appender*>::iterator iter = appenders.begin(); iter != appenders.end(); ++iter) {
Appender* app = *iter;
app->close();
}
}
void Logger::add_appender(Appender *appender) {
appenders.push_back(appender);
}
AppenderBuilder::AppenderBuilder(const string name) :
name(name) {
}
Appender* AppenderBuilder::build() {
if (name == "stdout") {
return new CoutAppender();
} else if (name == "stderr") {
return new CerrAppender();
} else {
return new RollingFileAppender(name, file_name, max_idx, max_size);
}
}
Log4CLConfigurator::Log4CLConfigurator() :
line(0) {
app_map["stdout"] = new AppenderBuilder("stdout");
app_map["stderr"] = new AppenderBuilder("stderr");
}
void Log4CLConfigurator::error_warn() {
cerr << "WARN: " << error << endl;
}
int Log4CLConfigurator::parse_level(const string& str) const {
for (int i = 0; i < LEVEL_COUNT; i++) {
if (str == LEVELS[i])
return i;
}
return -1;
}
void Log4CLConfigurator::create_root_logger(const string& value) {
create_named_logger("root", value);
}
void Log4CLConfigurator::create_logger(const string& key, const string& value) {
string name = key.substr(LOGGER_TAG.length());
if (name.length() == 0) {
ostringstream os;
os << "Error in line " << line << ", logger is missing a name";
error = os.str();
error_warn();
return;
}
create_named_logger(name, value);
}
void Log4CLConfigurator::create_appender(const string& key, const string& value) {
string name = key.substr(APPENDER_TAG.length());
if (name.length() == 0) {
ostringstream os;
os << "Error in line " << line << ", appender is missing a name";
error = os.str();
error_warn();
return;
}
if (app_map.find(name) == app_map.end()) {
// add an appender builder for this appender name
AppenderBuilder* builder = new AppenderBuilder(name);
app_map[name] = builder;
builder->max_idx = 1;
// megabyte
builder->max_size = 1024 * 1024 * 10;
}
}
AppenderBuilder* Log4CLConfigurator::get_appender_builder(const string& key) {
size_t start_pos = APPENDER_TAG.length();
size_t end_pos = key.rfind(".", key.length());
if (start_pos == end_pos) {
ostringstream os;
os << "Error in line " << line << ", appender is missing a name";
error = os.str();
error_warn();
return NULL;
}
ostringstream stream;
for (size_t i = start_pos; i < end_pos; i++) {
stream << key[i];
}
string name = stream.str();
AppenderBuilder *builder;
map<string, AppenderBuilder*>::const_iterator item = app_map.find(name);
if (item == app_map.end()) {
builder = new AppenderBuilder(name);
app_map[name] = builder;
builder->max_idx = 1;
// megabyte
builder->max_size = 1024 * 1024 * 10;
} else {
builder = item->second;
}
return builder;
}
void Log4CLConfigurator::create_appender_file(const string& key, const string& value) {
AppenderBuilder *builder = get_appender_builder(key);
if (builder != NULL) {
// split file_name on last "." and append a _proc_id to it
// if no "." then just append "_"
string file_name = value;
string parent_path;
size_t pos = value.find_last_of('/');
if (pos != string::npos) {
file_name = value.substr(pos + 1);
parent_path = value.substr(0, pos + 1);
}
pos = file_name.find_last_of('.');
ostringstream os;
if (pos != string::npos) {
os << file_name.substr(0, pos) << "_" << proc_id << file_name.substr(pos, file_name.length());
} else {
os << file_name << "_" << proc_id;
}
file_name = os.str();
builder->file_name = parent_path + file_name;
}
}
void Log4CLConfigurator::create_appender_size(const string& key, const string& value) {
AppenderBuilder* builder = get_appender_builder(key);
if (builder != NULL) {
// given in K but we store in bytes
builder->max_size = atol(value.c_str()) * 1024;
}
}
void Log4CLConfigurator::create_appender_bidx(const string& key, const string& value) {
AppenderBuilder* builder = get_appender_builder(key);
if (builder != NULL) {
builder->max_idx = atoi(value.c_str());
}
}
void Log4CLConfigurator::create_named_logger(const string& name, const string& value) {
string token;
istringstream stream(value);
int level = -1;
bool do_level = true;
while (getline(stream, token, ',')) {
repast::str_trim(token);
if (do_level) {
transform(token.begin(), token.end(), token.begin(), ::toupper);
level = parse_level(token);
do_level = false;
} else {
// its an appender name
if (app_map.find(token) == app_map.end()) {
// add an appender builder for this appender name
AppenderBuilder* builder = new AppenderBuilder(token);
app_map[token] = builder;
}
vector<string> *v;
map<string, vector<string>*>::const_iterator item = logger_app_map.find(name);
if (item == logger_app_map.end()) {
v = new vector<string> ();
logger_app_map[name] = v;
} else {
v = item->second;
}
v->push_back(token);
}
}
if (level == -1) {
error = "Invalid log level for " + name + " logger";
error_warn();
return;
}
Logger* logger = new Logger(name, (LOG_LEVEL) level, proc_id);
logger_map[name] = logger;
}
Log4CL* Log4CLConfigurator::configure(const string& config_file, int proc_id, boost::mpi::communicator* comm, int maxConfigFileSize) {
ConfigLexer lexer(config_file, comm, maxConfigFileSize);
this->proc_id = proc_id;
TOKEN tok;
while (((tok = lexer.next_token()) != END)) {
line = lexer.line();
switch (tok) {
case ROOT:
create_root_logger(lexer.value());
break;
case LOGGER:
create_logger(lexer.key(), lexer.value());
break;
case APPENDER:
create_appender(lexer.key(), lexer.value());
break;
case APPENDER_FILE:
create_appender_file(lexer.key(), lexer.value());
break;
case APPENDER_SIZE:
create_appender_size(lexer.key(), lexer.value());
break;
case APPENDER_BIDX:
create_appender_bidx(lexer.key(), lexer.value());
break;
case ERRORT:
error = lexer.error();
error_warn();
break;
default:
error_warn();
}
}
return create_log4cl();
}
Log4CL* Log4CLConfigurator::create_log4cl() {
Log4CL* log4CL = new Log4CL();
// create the appenders
map<string, Appender*> amap;
for (map<string, AppenderBuilder*>::const_iterator iter = app_map.begin(); iter != app_map.end(); ++iter) {
AppenderBuilder *builder = iter->second;
Appender *appender = builder->build();
amap[iter->first] = appender;
log4CL->appenders.push_back(appender);
}
for (map<string, Logger*>::const_iterator iter = logger_map.begin(); iter != logger_map.end(); ++iter) {
Logger* logger = iter->second;
log4CL->logger_map[iter->first] = logger;
vector<string>* app_list = logger_app_map[iter->first];
for (vector<string>::const_iterator siter = app_list->begin(); siter != app_list->end(); ++siter) {
string app_name = *siter;
logger->add_appender(amap[app_name]);
}
}
// make sure there is a root logger and if not make one.
if (logger_map.find("root") == logger_map.end()) {
Logger *root = new Logger("root", WARN, proc_id);
log4CL->logger_map["root"] = root;
if (amap.find("stdout") == amap.end()) {
Appender* out = new CoutAppender();
root->add_appender(out);
log4CL->appenders.push_back(out);
} else {
root->add_appender(amap["stdout"]);
}
}
for (map<string, AppenderBuilder*>::const_iterator iter = app_map.begin(); iter != app_map.end(); ++iter) {
AppenderBuilder *builder = iter->second;
delete builder;
}
app_map.clear();
for (map<string, Logger*>::const_iterator iter = logger_map.begin(); iter != logger_map.end(); ++iter) {
vector<string>* app_list = logger_app_map[iter->first];
delete app_list;
}
logger_map.clear();
return log4CL;
}
Logger& Log4CL::get_logger(std::string logger_name) {
map<string, Logger*>::const_iterator item = logger_map.find(logger_name);
if (item == logger_map.end()) {
cerr << "Unable to find logger '" << logger_name << "'. Returning root logger." << endl;
return *logger_map["root"];
}
return *(item->second);
}
Log4CL::Log4CL() {
}
Log4CL::~Log4CL() {
for (map<string, Logger*>::iterator iter = logger_map.begin(); iter != logger_map.end(); ++iter) {
Logger *logger = iter->second;
logger->close();
delete logger;
}
for (vector<Appender *>::iterator iter = appenders.begin(); iter != appenders.end(); ++iter) {
Appender *appender = *iter;
delete appender;
}
delete _instance;
}
Log4CL* Log4CL::_instance = 0;
Log4CL* Log4CL::instance() {
return _instance;
}
void Log4CL::configure(int proc_id, const std::string& config_file, boost::mpi::communicator* comm, int maxConfigFileSize) {
try {
Log4CLConfigurator configurator;
_instance = configurator.configure(config_file, proc_id, comm, maxConfigFileSize);
} catch (invalid_argument& ex) {
cerr << "ERROR opening logging config file " << ex.what() << endl;
delete _instance;
_instance = NULL;
return;
}
}
void Log4CL::configure(int proc_id) {
_instance = new Log4CL();
Logger *root = new Logger("root", WARN, proc_id);
_instance->logger_map["root"] = root;
CoutAppender *out = new CoutAppender();
root->add_appender(out);
_instance->appenders.push_back(out);
}
void Log4CL::close() {
for (map<string, Logger*>::iterator iter = logger_map.begin(); iter != logger_map.end(); ++iter) {
Logger *logger = iter->second;
logger->close();
}
}
}
/*
int main(int argc, char **argv) {
MPI::Init(argc, argv);
int proc_id = MPI::COMM_WORLD.Get_rank();
Log4CL::configure(proc_id, "../config.props");
Logger& logger = Log4CL::instance()->get_logger("root");
logger.log(ERROR, "root msg\n");
Logger& logger2 = Log4CL::instance()->get_logger("debug.log");
logger2.log(ERROR, "logger msg\n");
Log4CL::instance()->close();
MPI::Finalize();
}
*/
|
#include "drape/oglcontext.hpp"
#include "drape/gl_functions.hpp"
#include "base/macros.hpp"
namespace dp
{
namespace
{
glConst DecodeTestFunction(TestFunction depthFunction)
{
switch (depthFunction)
{
case TestFunction::Never: return gl_const::GLNever;
case TestFunction::Less: return gl_const::GLLess;
case TestFunction::Equal: return gl_const::GLEqual;
case TestFunction::LessOrEqual: return gl_const::GLLessOrEqual;
case TestFunction::Greater: return gl_const::GLGreat;
case TestFunction::NotEqual: return gl_const::GLNotEqual;
case TestFunction::GreaterOrEqual: return gl_const::GLGreatOrEqual;
case TestFunction::Always: return gl_const::GLAlways;
}
ASSERT(false, ());
}
glConst DecodeStencilFace(StencilFace stencilFace)
{
switch (stencilFace)
{
case StencilFace::Front: return gl_const::GLFront;
case StencilFace::Back: return gl_const::GLBack;
case StencilFace::FrontAndBack: return gl_const::GLFrontAndBack;
}
ASSERT(false, ());
}
glConst DecodeStencilAction(StencilAction stencilAction)
{
switch (stencilAction)
{
case StencilAction::Keep: return gl_const::GLKeep;
case StencilAction::Zero: return gl_const::GLZero;
case StencilAction::Replace: return gl_const::GLReplace;
case StencilAction::Increment: return gl_const::GLIncr;
case StencilAction::IncrementWrap: return gl_const::GLIncrWrap;
case StencilAction::Decrement: return gl_const::GLDecr;
case StencilAction::DecrementWrap: return gl_const::GLDecrWrap;
case StencilAction::Invert: return gl_const::GLInvert;
}
ASSERT(false, ());
}
} // namespace
void OGLContext::Init(ApiVersion apiVersion)
{
GLFunctions::Init(apiVersion);
GLFunctions::glPixelStore(gl_const::GLUnpackAlignment, 1);
GLFunctions::glClearDepthValue(1.0);
GLFunctions::glDepthFunc(gl_const::GLLessOrEqual);
GLFunctions::glDepthMask(true);
GLFunctions::glFrontFace(gl_const::GLClockwise);
GLFunctions::glCullFace(gl_const::GLBack);
GLFunctions::glEnable(gl_const::GLCullFace);
GLFunctions::glEnable(gl_const::GLScissorTest);
}
ApiVersion OGLContext::GetApiVersion() const
{
return GLFunctions::CurrentApiVersion;
}
std::string OGLContext::GetRendererName() const
{
return GLFunctions::glGetString(gl_const::GLRenderer);
}
std::string OGLContext::GetRendererVersion() const
{
return GLFunctions::glGetString(gl_const::GLVersion);
}
void OGLContext::DebugSynchronizeWithCPU()
{
GLFunctions::glFinish();
}
void OGLContext::SetClearColor(dp::Color const & color)
{
GLFunctions::glClearColor(color.GetRedF(), color.GetGreenF(), color.GetBlueF(), color.GetAlphaF());
}
void OGLContext::Clear(uint32_t clearBits, uint32_t storeBits)
{
UNUSED_VALUE(storeBits);
glConst glBits = 0;
if (clearBits & ClearBits::ColorBit)
glBits |= gl_const::GLColorBit;
if (clearBits & ClearBits::DepthBit)
glBits |= gl_const::GLDepthBit;
if (clearBits & ClearBits::StencilBit)
glBits |= gl_const::GLStencilBit;
GLFunctions::glClear(glBits);
}
void OGLContext::Flush()
{
GLFunctions::glFlush();
}
void OGLContext::SetViewport(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
{
GLCHECK(GLFunctions::glViewport(x, y, w, h));
GLCHECK(GLFunctions::glScissor(x, y, w, h));
}
void OGLContext::SetDepthTestEnabled(bool enabled)
{
if (enabled)
GLFunctions::glEnable(gl_const::GLDepthTest);
else
GLFunctions::glDisable(gl_const::GLDepthTest);
}
void OGLContext::SetDepthTestFunction(TestFunction depthFunction)
{
GLFunctions::glDepthFunc(DecodeTestFunction(depthFunction));
};
void OGLContext::SetStencilTestEnabled(bool enabled)
{
if (enabled)
GLFunctions::glEnable(gl_const::GLStencilTest);
else
GLFunctions::glDisable(gl_const::GLStencilTest);
}
void OGLContext::SetStencilFunction(StencilFace face, TestFunction stencilFunction)
{
GLFunctions::glStencilFuncSeparate(DecodeStencilFace(face), DecodeTestFunction(stencilFunction), 1, 1);
}
void OGLContext::SetStencilActions(StencilFace face, StencilAction stencilFailAction, StencilAction depthFailAction,
StencilAction passAction)
{
GLFunctions::glStencilOpSeparate(DecodeStencilFace(face),
DecodeStencilAction(stencilFailAction),
DecodeStencilAction(depthFailAction),
DecodeStencilAction(passAction));
}
} // namespace dp
|
/** \file
*
* \author M. Maggi - INFN Bari
*/
#include "Geometry/GEMGeometryBuilder/plugins/GEMGeometryESModule.h"
#include "Geometry/GEMGeometryBuilder/src/GEMGeometryBuilderFromDDD.h"
#include "Geometry/GEMGeometryBuilder/src/GEMGeometryBuilderFromCondDB.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/MuonNumbering/interface/MuonDDDConstants.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "Geometry/Records/interface/GEMRecoGeometryRcd.h"
#include "CondFormats/GeometryObjects/interface/RecoIdealGeometry.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESTransientHandle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include <memory>
using namespace edm;
GEMGeometryESModule::GEMGeometryESModule(const edm::ParameterSet & p)
{
useDDD = p.getParameter<bool>("useDDD");
setWhatProduced(this);
}
GEMGeometryESModule::~GEMGeometryESModule(){}
std::shared_ptr<GEMGeometry>
GEMGeometryESModule::produce(const MuonGeometryRecord & record)
{
if( useDDD ) {
edm::ESTransientHandle<DDCompactView> cpv;
record.getRecord<IdealGeometryRecord>().get(cpv);
edm::ESHandle<MuonDDDConstants> mdc;
record.getRecord<MuonNumberingRecord>().get(mdc);
GEMGeometryBuilderFromDDD builder;
return std::shared_ptr<GEMGeometry>(builder.build(&(*cpv), *mdc));
} else {
edm::ESHandle<RecoIdealGeometry> riggem;
record.getRecord<GEMRecoGeometryRcd>().get(riggem);
GEMGeometryBuilderFromCondDB builder;
return std::shared_ptr<GEMGeometry>(builder.build(*riggem));
}
}
DEFINE_FWK_EVENTSETUP_MODULE(GEMGeometryESModule);
|
#include "lower_scatter_workspace.h"
#include <vector>
#include <set>
#include <map>
#include <string>
#include "loops.h"
#include "lower_tensor_utils.h"
#include "indexvar.h"
#include "ir.h"
#include "ir_visitor.h"
#include "ir_printer.h"
#include "ir_codegen.h"
#include "substitute.h"
#include "path_expressions.h"
#include "util/util.h"
#include "util/collections.h"
using namespace std;
namespace simit {
namespace ir {
typedef vector<IndexVar> IndexTuple;
typedef map<IndexTuple, vector<const IndexedTensor *>> IndexTupleUses;
typedef map<IndexVar, vector<IndexVar>> IndexVarGraph;
inline ostream &operator<<(ostream &os, const IndexVarGraph &ivGraph) {
os << "Index Variable Graph:" << endl;
for (auto &ij : ivGraph) {
auto i = ij.first;
os << i;
if (ij.second.size() > 0) {
os << " -> ";
os << util::join(ij.second, ",");
}
os << endl;
}
return os;
}
/// Build a map from index variable tuples to the IndexTensors they access:
/// - B+C (i,j) -> B(i,j), C(i,j)
/// - B+C' (i,j) -> B(i,j)
/// (j,i) -> C(j,i)
/// - B*C: (i,k) -> B(i,k)
/// (k,j) -> C(k,j)
static IndexTupleUses getIndexTupleUses(const IndexExpr *indexExpr) {
struct GetIndexTupleUsesVisitor : public IRVisitor {
IndexTupleUses indexTupleUses;
void visit(const IndexedTensor *indexedTensor) {
indexTupleUses[indexedTensor->indexVars].push_back(indexedTensor);
}
};
GetIndexTupleUsesVisitor visitor;
indexExpr->accept(&visitor);
return visitor.indexTupleUses;
}
/// Build a map from index variables to index variables they can reach through
/// a usage. This map encodes a directed index variable graph where vertices
/// are index variables, and where there exist an edge (i,j) if i and j are
/// ever used together to index a tensor that has an index from i to j. For now
/// we will assume we always have available all indices, but we may later want
/// to optimize for memory by computing a minimum set of indices we need.
/// - B+C: i -> j and j -> i
/// - B*C: i -> k and k -> i
/// k -> j and j -> k
static IndexVarGraph createIndexVarGraph(const IndexExpr *indexExpression) {
IndexTupleUses indexTupleUses = getIndexTupleUses(indexExpression);
IndexVarGraph indexVarGraph;
for (auto &itu : indexTupleUses) {
IndexTuple indexTuple = itu.first;
for (auto& index : indexTuple) {
indexVarGraph.insert({index, vector<IndexVar>()});
}
// Add edges between all index variables present in the same tuple
for (size_t i=0; i < indexTuple.size() - 1; ++i) {
for (size_t j=i+1; j < indexTuple.size(); ++j) {
indexVarGraph.at(indexTuple[i]).push_back(indexTuple[j]);
indexVarGraph.at(indexTuple[j]).push_back(indexTuple[i]);
}
}
}
return indexVarGraph;
}
static void createLoopNest(const IndexVarGraph &ivGraph,
const IndexVariableLoop &linkedLoop,
set<IndexVar> *visited,
vector<IndexVariableLoop> *loops) {
simit_iassert(util::contains(ivGraph, linkedLoop.getIndexVar()));
for (const IndexVar &sink : ivGraph.at(linkedLoop.getIndexVar())) {
if (!util::contains(*visited, sink)) {
visited->insert(sink);
loops->push_back(IndexVariableLoop(sink, linkedLoop));
createLoopNest(ivGraph, sink, visited, loops);
}
}
}
/// Order the index variables into one loop per index variable, by traversing
/// the index variable graph
static
vector<IndexVariableLoop> createLoopNest(const IndexVarGraph &ivGraph,
const vector<IndexVar> &sources){
vector<IndexVariableLoop> loops;
set<IndexVar> visited;
for (auto &source : sources) {
if (!util::contains(visited, source)) {
visited.insert(source);
IndexVariableLoop loop(source);
loops.push_back(loop);
createLoopNest(ivGraph, loop, &visited, &loops);
}
}
return loops;
}
static vector<IndexVariableLoop> createLoopNest(const IndexExpr *indexExpr) {
IndexVarGraph indexVariableGraph = createIndexVarGraph(indexExpr);
return createLoopNest(indexVariableGraph, indexExpr->resultVars);
}
static Expr compareToNextIndexLocation(const TensorIndexVar &inductionVar) {
return Lt::make(inductionVar.getCoordVar(),
inductionVar.loadCoord(1));
}
/// Create sparse while loop condition. Sparse while loops simultaneously
/// iterate over the coordinate variables of one or more tensors
static Expr subsetLoopCondition(const vector<TensorIndexVar> &inductionVars) {
auto it = inductionVars.begin();
auto end = inductionVars.end();
Expr condition = compareToNextIndexLocation(*it++);
for (; it != end; ++it) {
condition = And::make(condition, compareToNextIndexLocation(*it));
}
return condition;
}
static
Stmt updateSinkInductionVars(const vector<TensorIndexVar> &tensorIndexVars) {
vector<Stmt> initSinkInductionVarStmts;
for (const TensorIndexVar &tensorIndexVar : tensorIndexVars) {
initSinkInductionVarStmts.push_back(tensorIndexVar.initSinkVar());
}
return Block::make(initSinkInductionVarStmts);
}
static
Stmt
createFastForwardLoop(const TensorIndexVar &tensorIndexVar, Var inductionVar) {
Var sinkVar = tensorIndexVar.getSinkVar();
Expr fastForwardCondition = Lt::make(sinkVar, inductionVar);
Expr fastForwardLoopCondition =
And::make(fastForwardCondition,
compareToNextIndexLocation(tensorIndexVar));
Stmt incrementCoordVar = increment(tensorIndexVar.getCoordVar());
Stmt initSinkVar = tensorIndexVar.initSinkVar();
Stmt stepCoordAndSinkVars = Block::make(incrementCoordVar, initSinkVar);
// Poor man's do-while loop
Stmt fastForwardLoop = Block::make(stepCoordAndSinkVars,
While::make(fastForwardLoopCondition,
stepCoordAndSinkVars));
return Comment::make("fastforward "+sinkVar.getName(), fastForwardLoop);
}
/// @param body A statement that is evaluated for every inductionVar value
/// of the intersection between the tensorIndexVars.
static Stmt createSubsetLoopStmt(const Var &inductionVar,
const vector<TensorIndexVar> &tensorIndexVars,
Stmt body) {
simit_iassert(tensorIndexVars.size() > 0);
Stmt loop;
// Only one TensorIndexVar so we emit a for loop over a range.
if (tensorIndexVars.size() == 1) {
const TensorIndexVar& tensorIndexVar = tensorIndexVars[0];
body = Block::make(tensorIndexVars[0].initSinkVar(inductionVar), body);
loop = ForRange::make(tensorIndexVar.getCoordVar(),
tensorIndexVar.loadCoord(),
tensorIndexVar.loadCoord(1),
body);
}
// Two or more TensorIndexVars so we merge their iteration space with a while
else {
// Emit the code to execute at the intersection
Stmt intersectionStmt;
// Init induction variable (at the intersection all sink vars are the same)
Var firstSinkVar = tensorIndexVars[0].getSinkVar();
Stmt initInductionVar = AssignStmt::make(inductionVar, firstSinkVar);
intersectionStmt = Block::make(intersectionStmt, initInductionVar);
// Append caller-provided loop body
intersectionStmt = Block::make(intersectionStmt, body);
// Increment each coordinate var
for (auto& tensorIndexVar : tensorIndexVars) {
Stmt incrementCoordVar = increment(tensorIndexVar.getCoordVar());
intersectionStmt = Block::make(intersectionStmt, incrementCoordVar);
}
// Update the sink induction variables
Stmt updateSinkVars = updateSinkInductionVars(tensorIndexVars);
intersectionStmt = Block::make(intersectionStmt, updateSinkVars);
// Emit the code to execute outside the intersection
Stmt notIntersectionStmt;
function<Expr(TensorIndexVar)> getSinkVarFunc =
[](const TensorIndexVar &t){return t.getSinkVar();};
vector<Expr> sinkVars = util::map(tensorIndexVars, getSinkVarFunc);
// The loop induction variable is the min of the tensor index variables
initInductionVar = max(inductionVar, sinkVars);
notIntersectionStmt = Block::make(notIntersectionStmt, initInductionVar);
// Emit one fast forward loop per tensor index variable
if (tensorIndexVars.size() == 2) {
Var sinkVar0 = tensorIndexVars[0].getSinkVar();
Expr fastForwardCondition = Lt::make(sinkVar0, inductionVar);
Stmt fastForwardSinkVar0 = createFastForwardLoop(tensorIndexVars[0],
inductionVar);
Stmt fastForwardSinkVar1 = createFastForwardLoop(tensorIndexVars[1],
inductionVar);
Stmt fastForwardIfLess = IfThenElse::make(fastForwardCondition,
fastForwardSinkVar0,
fastForwardSinkVar1);
notIntersectionStmt = Block::make(notIntersectionStmt, fastForwardIfLess);
}
else {
vector<Stmt> fastForwardLoops;
for (auto& tensorIndexVar : tensorIndexVars) {
Var sinkVar = tensorIndexVar.getSinkVar();
Expr fastForwardCondition = Lt::make(sinkVar, inductionVar);
Stmt fastForwardSinkVar = createFastForwardLoop(tensorIndexVar,
inductionVar);
Stmt fastForwardIfLess = IfThenElse::make(fastForwardCondition,
fastForwardSinkVar);
fastForwardLoops.push_back(fastForwardIfLess);
}
Stmt fastForwardLoopsStmt = Block::make(fastForwardLoops);
notIntersectionStmt = Block::make(notIntersectionStmt,
fastForwardLoopsStmt);
}
// Check whether we are at the intersection of the tensor index sink vars
Expr intersectionCondition = compare(sinkVars);
// Create the loop body
Stmt loopBody = IfThenElse::make(intersectionCondition,
intersectionStmt, notIntersectionStmt);
vector<Stmt> declAndInitStmts;
// Declare and initialize coordinate induction variables
for (auto &inductionVar : tensorIndexVars) {
declAndInitStmts.push_back(VarDecl::make(inductionVar.getCoordVar()));
declAndInitStmts.push_back(inductionVar.initCoordVar());
}
// Declare and initialize sink induction variables
for (auto &inductionVar : tensorIndexVars) {
declAndInitStmts.push_back(VarDecl::make(inductionVar.getSinkVar()));
declAndInitStmts.push_back(inductionVar.initSinkVar());
}
Stmt initCoordAndSinkVars = Block::make(declAndInitStmts);
// Create sparse while loop
Expr loopCondition = subsetLoopCondition(tensorIndexVars);
loop = Block::make(initCoordAndSinkVars, While::make(loopCondition,loopBody));
}
simit_iassert(loop.defined());
return loop;
}
static
Stmt createSubsetLoopStmt(const Var& target, const Var& inductionVar,
Expr blockSize, const SubsetLoop& subsetLoop,
Environment* environment) {
Stmt computeStmt = Store::make(target, inductionVar,
subsetLoop.getComputeExpression(),
subsetLoop.getCompoundOperator());
simit_iassert(target.getType().isTensor());
Type blockType = target.getType().toTensor()->getBlockType();
const TensorType* btype = blockType.toTensor();
if (btype->order() > 0) {
vector<Var> inductionVars;
inductionVars.push_back(inductionVar);
for (auto& tiv : subsetLoop.getTensorIndexVars()) {
inductionVars.push_back(tiv.getCoordVar());
}
computeStmt = rewriteToBlocked(computeStmt, inductionVars, blockSize);
}
return createSubsetLoopStmt(inductionVar, subsetLoop.getTensorIndexVars(),
computeStmt);
}
static string tensorSliceString(const vector<IndexVar> &vars,
const IndexVar &sliceVar) {
unsigned sliceDimension = util::locate(vars, sliceVar);
string result = "(";
for (size_t i=0; i < vars.size(); ++i) {
result += (i == sliceDimension) ? ":" : toString(vars[i]);
if (i < vars.size()-1) {
result += ",";
}
}
result += ")";
return result;
}
static string tensorSliceString(const Expr &expr, const IndexVar &sliceVar) {
class SlicePrinter : public IRPrinter {
public:
SlicePrinter(const IndexVar &sliceVar) : IRPrinter(ss), sliceVar(sliceVar){}
string toString(const Expr &expr) {
skipTopExprParenthesis();
print(expr);
return ss.str();
}
private:
stringstream ss;
const IndexVar &sliceVar;
void visit(const IndexedTensor *indexedTensor) {
ss << indexedTensor->tensor
<< tensorSliceString(indexedTensor->indexVars, sliceVar);
}
};
return SlicePrinter(sliceVar).toString(expr);;
}
static Stmt copyFromWorkspace(Var target, Expr targetIndex,
Var workspace, Expr workspaceIndex) {
ScalarType workspaceCType = workspace.getType().toTensor()->getComponentType();
Stmt copyFromWorkspace = Store::make(target, targetIndex,
Load::make(workspace, workspaceIndex));
Expr resetVal = Literal::make(TensorType::make(workspaceCType));
Stmt resetWorkspace = Store::make(workspace, workspaceIndex, resetVal);
return Block::make(copyFromWorkspace, resetWorkspace);
}
Stmt lowerScatterWorkspace(Var target, const IndexExpr* indexExpression,
Environment* environment, Storage* storage) {
simit_iassert(target.getType().isTensor());
const TensorType* type = target.getType().toTensor();
simit_tassert(type->order() <= 2)
<< "lowerScatterWorkspace does not support higher-order tensors";
Type blockType = type->getBlockType();
const TensorType* btype = blockType.toTensor();
Expr blockSize = (int)btype->size();
// Create loops
vector<IndexVariableLoop> loops = createLoopNest(indexExpression);
// Emit loops
Stmt loopNest;
for (IndexVariableLoop &loop : util::reverse(loops)) {
IndexVar indexVar = loop.getIndexVar();
Var inductionVar = loop.getInductionVar();
// Dense loops
if (!loop.isLinked()) {
const IndexSet &indexSet = indexVar.getDomain().getIndexSets()[0];
loopNest = For::make(inductionVar, indexSet, loopNest);
}
// Sparse/linked loops
else {
IndexVar linkedIndexVar = loop.getLinkedLoop().getIndexVar();
Var linkedInductionVar = loop.getLinkedLoop().getInductionVar();
vector<SubsetLoop> subsetLoops =
createSubsetLoops(indexExpression, loop, environment, storage);
// Create workspace on target
ScalarType workspaceCType = type->getComponentType();
Var workspace;
if (type->order() < 2) {
workspace = target;
}
else {
// Sparse output
IndexDomain workspaceDomain = type->getDimensions()[1]; // Row workspace
Type workspaceType = TensorType::make(workspaceCType,{workspaceDomain});
workspace = environment->createTemporary(workspaceType,
INTERNAL_PREFIX("workspace"));
environment->addTemporary(workspace);
storage->add(workspace, TensorStorage::Kind::Dense);
}
simit_iassert(workspace.defined());
vector<Stmt> loopStatements;
// Create induction var decl
Stmt inductionVarDecl = VarDecl::make(inductionVar);
loopStatements.push_back(inductionVarDecl);
// Create each subset loop and add their results to the workspace
for (const SubsetLoop& subsetLoop : subsetLoops) {
Stmt loopStmt = createSubsetLoopStmt(workspace, inductionVar, blockSize,
subsetLoop, environment);
string comment = workspace.getName() + " " +
util::toString(subsetLoop.getCompoundOperator())+"= " +
tensorSliceString(subsetLoop.getIndexExpression(), indexVar);
loopStatements.push_back(Comment::make(comment, loopStmt, false, true));
}
simit_iassert(loops.size() > 0);
// Create the loop that copies the workspace to the target
auto& resultVars = indexExpression->resultVars;
TensorStorage& ts = storage->getStorage(target);
TensorIndex ti;
if (!ts.hasTensorIndex() && environment->hasExtern(target.getName())) {
ts.setTensorIndex(target);
ti = ts.getTensorIndex();
environment->addExternMapping(target, ti.getRowptrArray());
environment->addExternMapping(target, ti.getColidxArray());
}
else {
ti = ts.getTensorIndex();
}
TensorIndexVar resultIndexVar(inductionVar.getName(), target.getName(),
linkedInductionVar, ti);
Stmt body;
body = copyFromWorkspace(target, resultIndexVar.getCoordVar(),
workspace, inductionVar);
if (btype->order() > 0) {
const Var& coordVar = resultIndexVar.getCoordVar();
body = rewriteToBlocked(body, {inductionVar, coordVar}, blockSize);
}
Stmt loopStmt = createSubsetLoopStmt(inductionVar, {resultIndexVar},body);
string comment = toString(target)
+ tensorSliceString(resultVars, loop.getIndexVar())
+ " = " + workspace.getName();
loopStatements.push_back(Comment::make(comment, loopStmt, false, true));
loopNest = Block::make(loopStatements);
}
}
stringstream comment;
comment << util::toString(target)
<< "(" + util::join(indexExpression->resultVars, ",") << ") = ";
IRPrinter printer(comment);
printer.skipTopExprParenthesis();
printer.print(indexExpression->value);
return Comment::make(comment.str(), loopNest, true);
}
}}
|
/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include "test/core/end2end/end2end_tests.h"
#include <stdio.h>
#include <string.h>
#include <grpc/byte_buffer.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/time.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/transport/static_metadata.h"
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/tests/cancel_test_helpers.h"
static void* tag(intptr_t t) { return reinterpret_cast<void*>(t); }
static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config,
const char* test_name,
grpc_channel_args* client_args,
grpc_channel_args* server_args) {
grpc_end2end_test_fixture f;
gpr_log(GPR_INFO, "Running test: %s/%s", test_name, config.name);
f = config.create_fixture(client_args, server_args);
config.init_server(&f, server_args);
config.init_client(&f, client_args);
return f;
}
static gpr_timespec n_seconds_from_now(int n) {
return grpc_timeout_seconds_to_deadline(n);
}
static gpr_timespec five_seconds_from_now(void) {
return n_seconds_from_now(5);
}
static void drain_cq(grpc_completion_queue* cq) {
grpc_event ev;
do {
ev = grpc_completion_queue_next(cq, five_seconds_from_now(), nullptr);
} while (ev.type != GRPC_QUEUE_SHUTDOWN);
}
static void shutdown_server(grpc_end2end_test_fixture* f) {
if (!f->server) return;
grpc_server_shutdown_and_notify(f->server, f->shutdown_cq, tag(1000));
GPR_ASSERT(grpc_completion_queue_pluck(f->shutdown_cq, tag(1000),
grpc_timeout_seconds_to_deadline(5),
nullptr)
.type == GRPC_OP_COMPLETE);
grpc_server_destroy(f->server);
f->server = nullptr;
}
static void shutdown_client(grpc_end2end_test_fixture* f) {
if (!f->client) return;
grpc_channel_destroy(f->client);
f->client = nullptr;
}
static void end_test(grpc_end2end_test_fixture* f) {
shutdown_server(f);
shutdown_client(f);
grpc_completion_queue_shutdown(f->cq);
drain_cq(f->cq);
grpc_completion_queue_destroy(f->cq);
grpc_completion_queue_destroy(f->shutdown_cq);
}
// Tests that receiving a message commits the call.
// - 1 retry allowed for ABORTED status
// - first attempt receives a message and therefore does not retry even
// though the final status is ABORTED
static void test_retry_recv_message(grpc_end2end_test_config config) {
grpc_call* c;
grpc_call* s;
grpc_op ops[6];
grpc_op* op;
grpc_metadata_array initial_metadata_recv;
grpc_metadata_array trailing_metadata_recv;
grpc_metadata_array request_metadata_recv;
grpc_call_details call_details;
grpc_slice request_payload_slice = grpc_slice_from_static_string("foo");
grpc_slice response_payload_slice = grpc_slice_from_static_string("bar");
grpc_byte_buffer* request_payload =
grpc_raw_byte_buffer_create(&request_payload_slice, 1);
grpc_byte_buffer* response_payload =
grpc_raw_byte_buffer_create(&response_payload_slice, 1);
grpc_byte_buffer* request_payload_recv = nullptr;
grpc_byte_buffer* response_payload_recv = nullptr;
grpc_status_code status;
grpc_call_error error;
grpc_slice details;
int was_cancelled = 2;
char* peer;
grpc_arg arg;
arg.type = GRPC_ARG_STRING;
arg.key = const_cast<char*>(GRPC_ARG_SERVICE_CONFIG);
arg.value.string = const_cast<char*>(
"{\n"
" \"methodConfig\": [ {\n"
" \"name\": [\n"
" { \"service\": \"service\", \"method\": \"method\" }\n"
" ],\n"
" \"retryPolicy\": {\n"
" \"maxAttempts\": 2,\n"
" \"initialBackoff\": \"1s\",\n"
" \"maxBackoff\": \"120s\",\n"
" \"backoffMultiplier\": 1.6,\n"
" \"retryableStatusCodes\": [ \"ABORTED\" ]\n"
" }\n"
" } ]\n"
"}");
grpc_channel_args client_args = {1, &arg};
grpc_end2end_test_fixture f =
begin_test(config, "retry_recv_message", &client_args, nullptr);
cq_verifier* cqv = cq_verifier_create(f.cq);
gpr_timespec deadline = five_seconds_from_now();
c = grpc_channel_create_call(f.client, nullptr, GRPC_PROPAGATE_DEFAULTS, f.cq,
grpc_slice_from_static_string("/service/method"),
nullptr, deadline, nullptr);
GPR_ASSERT(c);
peer = grpc_call_get_peer(c);
GPR_ASSERT(peer != nullptr);
gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer);
gpr_free(peer);
grpc_metadata_array_init(&initial_metadata_recv);
grpc_metadata_array_init(&trailing_metadata_recv);
grpc_metadata_array_init(&request_metadata_recv);
grpc_call_details_init(&call_details);
grpc_slice status_details = grpc_slice_from_static_string("xyz");
memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
op++;
op->op = GRPC_OP_SEND_MESSAGE;
op->data.send_message.send_message = request_payload;
op++;
op->op = GRPC_OP_RECV_MESSAGE;
op->data.recv_message.recv_message = &response_payload_recv;
op++;
op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;
op++;
op->op = GRPC_OP_RECV_INITIAL_METADATA;
op->data.recv_initial_metadata.recv_initial_metadata = &initial_metadata_recv;
op++;
op->op = GRPC_OP_RECV_STATUS_ON_CLIENT;
op->data.recv_status_on_client.trailing_metadata = &trailing_metadata_recv;
op->data.recv_status_on_client.status = &status;
op->data.recv_status_on_client.status_details = &details;
op++;
error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(1),
nullptr);
GPR_ASSERT(GRPC_CALL_OK == error);
error =
grpc_server_request_call(f.server, &s, &call_details,
&request_metadata_recv, f.cq, f.cq, tag(101));
GPR_ASSERT(GRPC_CALL_OK == error);
CQ_EXPECT_COMPLETION(cqv, tag(101), true);
cq_verify(cqv);
peer = grpc_call_get_peer(s);
GPR_ASSERT(peer != nullptr);
gpr_log(GPR_DEBUG, "server_peer=%s", peer);
gpr_free(peer);
peer = grpc_call_get_peer(c);
GPR_ASSERT(peer != nullptr);
gpr_log(GPR_DEBUG, "client_peer=%s", peer);
gpr_free(peer);
memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 0;
op++;
op->op = GRPC_OP_SEND_MESSAGE;
op->data.send_message.send_message = response_payload;
op++;
op->op = GRPC_OP_SEND_STATUS_FROM_SERVER;
op->data.send_status_from_server.trailing_metadata_count = 0;
op->data.send_status_from_server.status = GRPC_STATUS_ABORTED;
op->data.send_status_from_server.status_details = &status_details;
op++;
op->op = GRPC_OP_RECV_CLOSE_ON_SERVER;
op->data.recv_close_on_server.cancelled = &was_cancelled;
op++;
error = grpc_call_start_batch(s, ops, static_cast<size_t>(op - ops), tag(103),
nullptr);
GPR_ASSERT(GRPC_CALL_OK == error);
CQ_EXPECT_COMPLETION(cqv, tag(103), true);
CQ_EXPECT_COMPLETION(cqv, tag(1), true);
cq_verify(cqv);
GPR_ASSERT(status == GRPC_STATUS_ABORTED);
GPR_ASSERT(0 == grpc_slice_str_cmp(details, "xyz"));
GPR_ASSERT(0 == grpc_slice_str_cmp(call_details.method, "/service/method"));
GPR_ASSERT(0 == call_details.flags);
GPR_ASSERT(was_cancelled == 0);
grpc_slice_unref(details);
grpc_metadata_array_destroy(&initial_metadata_recv);
grpc_metadata_array_destroy(&trailing_metadata_recv);
grpc_metadata_array_destroy(&request_metadata_recv);
grpc_call_details_destroy(&call_details);
grpc_byte_buffer_destroy(request_payload);
grpc_byte_buffer_destroy(response_payload);
grpc_byte_buffer_destroy(request_payload_recv);
grpc_byte_buffer_destroy(response_payload_recv);
grpc_call_unref(c);
grpc_call_unref(s);
cq_verifier_destroy(cqv);
end_test(&f);
config.tear_down_data(&f);
}
void retry_recv_message(grpc_end2end_test_config config) {
GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL);
test_retry_recv_message(config);
}
void retry_recv_message_pre_init(void) {}
|
/*
* PROGRAM: JRD Access Method
* MODULE: why.cpp
* DESCRIPTION: Universal Y-valve
*
* The contents of this file are subject to the Interbase Public
* License Version 1.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.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
* or implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
* Copyright (C) Inprise Corporation.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*
* Dmitry Yemanov
* Sean Leyne
* Alex Peshkoff
* Adriano dos Santos Fernandes
*
*/
#include "firebird.h"
#define FB_UsedInYValve true
#include "firebird/Interface.h"
#include "memory_routines.h"
#include "gen/iberror.h"
#include "gen/msg_facs.h"
#include "../yvalve/YObjects.h"
#include "firebird/impl/sqlda_pub.h"
#include "../common/gdsassert.h"
#include "../common/db_alias.h"
#include "../common/StatementMetadata.h"
#include "../common/StatusHolder.h"
#include "../common/ThreadStart.h"
#include "../common/isc_proto.h"
#include "../common/isc_f_proto.h"
#include "../common/utils_proto.h"
#include "../common/IntlParametersBlock.h"
#include "../common/os/isc_i_proto.h"
#include "../common/os/path_utils.h"
#include "../common/classes/alloc.h"
#include "../common/classes/array.h"
#include "../common/classes/stack.h"
#include "../common/classes/fb_string.h"
#include "../common/classes/fb_atomic.h"
#include "../common/classes/init.h"
#include "../common/classes/rwlock.h"
#include "../common/classes/semaphore.h"
#include "../common/classes/ClumpletWriter.h"
#include "../common/classes/FpeControl.h"
#include "../common/classes/GenericMap.h"
#include "../common/classes/GetPlugins.h"
#include "../common/classes/fb_tls.h"
#include "../common/status.h"
#include "../common/classes/InternalMessageBuffer.h"
#include "../yvalve/utl_proto.h"
#include "../yvalve/why_proto.h"
#include "../yvalve/MasterImplementation.h"
#include "../yvalve/PluginManager.h"
#include "../jrd/acl.h"
#include "../jrd/align.h"
#include "firebird/impl/blr.h"
#include "../common/msg_encode.h"
#include "firebird/impl/inf_pub.h"
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#include <functional>
using namespace Firebird;
using namespace Why;
static void badHandle(ISC_STATUS code);
static bool isNetworkError(const IStatus* status);
static void nullCheck(const FB_API_HANDLE* ptr, ISC_STATUS code);
//static void saveErrorString(ISC_STATUS* status);
static void badSqldaVersion(const short version);
static int sqldaTruncateString(char* buffer, FB_SIZE_T size, const char* s);
static void sqldaDescribeParameters(XSQLDA* sqlda, IMessageMetadata* parameters);
static ISC_STATUS openOrCreateBlob(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId,
USHORT bpbLength, const UCHAR* bpb, bool createFlag);
//-------------------------------------
static const USHORT PREPARE_BUFFER_SIZE = 32768; // size of buffer used in isc_dsql_prepare call
static const USHORT DESCRIBE_BUFFER_SIZE = 1024; // size of buffer used in isc_dsql_describe_xxx call
namespace Why {
class StatusVector;
extern UtilInterface utilInterface;
};
namespace {
// Class-wrapper around external SQLDA.
// Can be used as local variable, but do it with care
class SQLDAMetadata FB_FINAL :
public RefCntIface<IMessageMetadataImpl<SQLDAMetadata, CheckStatusWrapper> >
{
friend class SQLDAMetadataLauncher;
private:
int detach(); // is called from launcher class when it goes off
// Fool-proof requested by Alex
// Private memory operators to be sure that this class is used in heap only with launcher
#ifdef DEBUG_GDS_ALLOC
void* operator new (size_t s, const char* file, int line) { return MemoryPool::globalAlloc(s, file, line); }
void operator delete (void* mem, const char* file, int line) { MemoryPool::globalFree(mem); }
#else
void* operator new (size_t s) { return MemoryPool::globalAlloc(s); }
#endif
void operator delete (void* mem) { MemoryPool::globalFree(mem); }
public:
typedef UCharBuffer DataBuffer;
SQLDAMetadata(const XSQLDA* aSqlda);
~SQLDAMetadata() { delete[] offsets; }
unsigned getCount(CheckStatusWrapper* status);
const char* getField(CheckStatusWrapper* status, unsigned index);
const char* getRelation(CheckStatusWrapper* status, unsigned index);
const char* getOwner(CheckStatusWrapper* status, unsigned index);
const char* getAlias(CheckStatusWrapper* status, unsigned index);
unsigned getType(CheckStatusWrapper* status, unsigned index);
FB_BOOLEAN isNullable(CheckStatusWrapper* status, unsigned index);
int getSubType(CheckStatusWrapper* status, unsigned index);
unsigned getLength(CheckStatusWrapper* status, unsigned index);
int getScale(CheckStatusWrapper* status, unsigned index);
unsigned getCharSet(CheckStatusWrapper* status, unsigned index);
unsigned getOffset(CheckStatusWrapper* status, unsigned index);
unsigned getNullOffset(CheckStatusWrapper* status, unsigned index);
IMetadataBuilder* getBuilder(CheckStatusWrapper* status);
unsigned getMessageLength(CheckStatusWrapper* status);
unsigned getAlignment(CheckStatusWrapper* status);
unsigned getAlignedLength(CheckStatusWrapper* status);
void gatherData(DataBuffer& to); // Copy data from SQLDA into target buffer.
void scatterData(DataBuffer& from);
private:
void assign(); // copy metadata from sqlda and calculate length and offsets
const XSQLDA* sqlda;
unsigned count;
// Internal structure to copy metadata from sqlda
struct OffsetItem
{
unsigned type;
int subType;
unsigned length;
int scale;
unsigned charSet;
unsigned offset;
unsigned indOffset;
} *offsets;
unsigned length, alignment;
bool speedHackEnabled; // May be user by stupid luck use right buffer format even with SQLDA interface?..
};
// Initial owner for SQLDAMetadata. It must not live longer that XSQLDA it is created for is know to be valid and fixed.
// Mostly it means that instance of this class has to be a local variable at the same or nested level with the original XSQLDA*.
// When launcher is dying, the rocket must either die too or switch to internal sources and take off
// Using of this class brings overhead of dynamic memory and pointers, but with current architecture (reference counted interfaces
// only plain buffers) - inevitable.
class SQLDAMetadataLauncher
{
public:
SQLDAMetadata* metadata;
explicit SQLDAMetadataLauncher(const XSQLDA* sqlda) : metadata(NULL)
{
if (sqlda)
{
metadata = FB_NEW SQLDAMetadata(sqlda);
metadata->addRef();
}
}
~SQLDAMetadataLauncher()
{
if (metadata)
metadata->detach();
}
UCHAR* getBuffer(); // Provide empty data buffer with the same live time
void gatherData(SQLDAMetadata::DataBuffer& to)
{
if (metadata)
metadata->gatherData(to);
else
to.clear();
}
void scatterData()
{
if (metadata)
metadata->scatterData(buffer);
}
private:
// Private operator new prevents this class from being allocated in heap, so it can be used only as stack or static variable
void* operator new (size_t);
SQLDAMetadata::DataBuffer buffer;
};
SQLDAMetadata::SQLDAMetadata(const XSQLDA* aSqlda)
: sqlda(aSqlda), count(0), offsets(NULL), length(0), alignment(0), speedHackEnabled(false)
{
if (sqlda && sqlda->version != SQLDA_VERSION1)
{
badSqldaVersion(sqlda->version);
}
}
unsigned SQLDAMetadata::getCount(CheckStatusWrapper* status)
{
if (sqlda)
return sqlda->sqld;
return count;
}
const char* SQLDAMetadata::getField(CheckStatusWrapper* status, unsigned index)
{
if (sqlda)
{
fb_assert(sqlda->sqld > (int)index);
return sqlda->sqlvar[index].sqlname;
}
// we are in free fly. It is only possible for input sqlda which usually have no names inside
return ""; // Old conversion sqlda->BLR->metadata dropped them anyway
}
const char* SQLDAMetadata::getRelation(CheckStatusWrapper* status, unsigned index)
{
if (sqlda)
{
fb_assert(sqlda->sqld > (int)index);
return sqlda->sqlvar[index].relname;
}
return "";
}
const char* SQLDAMetadata::getOwner(CheckStatusWrapper* status, unsigned index)
{
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
return sqlda->sqlvar[index].ownname;
}
return "";
}
const char* SQLDAMetadata::getAlias(CheckStatusWrapper* status, unsigned index)
{
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
return sqlda->sqlvar[index].aliasname;
}
return "";
}
unsigned SQLDAMetadata::getType(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].type & ~1;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
return sqlda->sqlvar[index].sqltype & ~1;
}
fb_assert(false);
return 0;
}
FB_BOOLEAN SQLDAMetadata::isNullable(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].type & 1;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
return sqlda->sqlvar[index].sqltype & 1;
}
fb_assert(false);
return FB_FALSE;
}
int SQLDAMetadata::getSubType(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].subType;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
ISC_SHORT sqltype = sqlda->sqlvar[index].sqltype & ~1;
if (sqltype == SQL_VARYING || sqltype == SQL_TEXT)
return sqlda->sqlvar[index].sqlsubtype == CS_BINARY ? fb_text_subtype_binary : fb_text_subtype_text;
return sqlda->sqlvar[index].sqlsubtype;
}
fb_assert(false);
return 0;
}
unsigned SQLDAMetadata::getLength(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].length;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
return sqlda->sqlvar[index].sqllen;
}
fb_assert(false);
return 0;
}
int SQLDAMetadata::getScale(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].scale;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
if ((sqlda->sqlvar[index].sqltype & ~1) == SQL_BLOB)
return 0;
return sqlda->sqlvar[index].sqlscale;
}
fb_assert(false);
return 0;
}
unsigned SQLDAMetadata::getCharSet(CheckStatusWrapper* status, unsigned index)
{
if (offsets)
{
fb_assert(count > index);
return offsets[index].charSet;
}
if (sqlda)
{
fb_assert(sqlda->sqld > (int) index);
switch (sqlda->sqlvar[index].sqltype & ~1)
{
case SQL_TEXT:
case SQL_VARYING:
return sqlda->sqlvar[index].sqlsubtype;
case SQL_BLOB:
return sqlda->sqlvar[index].sqlscale;
default:
return 0;
}
}
fb_assert(false);
return 0;
}
unsigned SQLDAMetadata::getOffset(CheckStatusWrapper* status, unsigned index)
{
if (!offsets)
assign();
fb_assert(count > index);
return offsets[index].offset;
}
unsigned SQLDAMetadata::getNullOffset(CheckStatusWrapper* status, unsigned index)
{
if (!offsets)
assign();
fb_assert(count > index);
return offsets[index].indOffset;
}
// ATTENTION!!! Keep this method in sync with MsgMetadata::MakeOffsets()
void SQLDAMetadata::assign()
{
if (offsets)
return; // already assigned
if (sqlda->sqld <= 0) // malformed sqlda?
return;
count = (USHORT) sqlda->sqld;
speedHackEnabled = true; // May be we are lucky...
ISC_SCHAR* const base = sqlda->sqlvar[0].sqldata;
offsets = FB_NEW OffsetItem[count];
for (unsigned i = 0; i < count; i++)
{
const XSQLVAR& var = sqlda->sqlvar[i];
OffsetItem& it = offsets[i];
it.type = var.sqltype;
it.subType = var.sqlsubtype;
it.length = var.sqllen;
it.scale = var.sqlscale;
switch (var.sqltype & ~1)
{
case SQL_TEXT:
case SQL_VARYING:
it.charSet = var.sqlsubtype;
it.subType = 0;
break;
case SQL_BLOB:
it.charSet = var.sqlscale;
it.scale = 0;
break;
default:
it.charSet = 0;
}
// No matter how good or bad is the way data is placed in message buffer, it cannot be changed
// because changing of it on current codebase will completely kill remote module and may be the engine as well
unsigned dtype;
length = fb_utils::sqlTypeToDsc(length, var.sqltype, var.sqllen,
&dtype, NULL /*length*/, &it.offset, &it.indOffset);
if (it.offset != var.sqldata - base || it.indOffset != ((ISC_SCHAR*) (var.sqlind)) - base)
speedHackEnabled = false; // No luck
if (dtype < DTYPE_TYPE_MAX)
alignment = MAX(alignment, type_alignments[dtype]);
}
}
unsigned SQLDAMetadata::getMessageLength(CheckStatusWrapper* status)
{
if (!offsets)
assign();
return length;
}
unsigned SQLDAMetadata::getAlignment(CheckStatusWrapper* status)
{
if (!offsets)
assign();
return alignment;
}
unsigned SQLDAMetadata::getAlignedLength(CheckStatusWrapper* status)
{
if (!offsets)
assign();
return FB_ALIGN(length, alignment);
}
void SQLDAMetadata::gatherData(DataBuffer& to)
{
fb_assert(sqlda); // Ensure that data is gathered before take off because later they can be already changed
if (sqlda->sqld <= 0)
{
to.clear();
return;
}
const unsigned l = getMessageLength(NULL);
if (speedHackEnabled)
{
to.assign(reinterpret_cast<UCHAR*>(sqlda->sqlvar[0].sqldata), l);
return;
}
UCHAR* result = to.getBuffer(l, false);
for (unsigned i = 0; i < count; i++)
{
SSHORT* nullInd = (SSHORT*)(result + offsets[i].indOffset);
UCHAR* data = result + offsets[i].offset;
const XSQLVAR& var = sqlda->sqlvar[i];
unsigned len = var.sqllen;
if ((var.sqltype & ~1) == SQL_VARYING)
len += sizeof(USHORT);
if (var.sqltype & 1)
{
// Make sure user has specified a location for null indicator.
if (!var.sqlind)
{
(Arg::Gds(isc_dsql_sqlda_value_err) <<
Arg::Gds(isc_dsql_no_sqlind) <<
Arg::Gds(isc_dsql_sqlvar_index) << Arg::Num(i)
).raise();
}
*nullInd = *var.sqlind;
}
else
*nullInd = 0;
// Make sure user has specified a data location (unless NULL).
if (!var.sqldata && !*nullInd && (var.sqltype & ~1) != SQL_NULL)
{
(Arg::Gds(isc_dsql_sqlda_value_err) <<
Arg::Gds(isc_dsql_no_sqldata) <<
Arg::Gds(isc_dsql_sqlvar_index) << Arg::Num(i)
).raise();
}
// This is assertion instead of error check because such situation is next to impossible: buffer size is calculated a routine above
fb_assert(data + len < result + length);
// Copy data - unless known to be NULL.
if (!*nullInd)
memcpy(data, var.sqldata, len);
}
}
void SQLDAMetadata::scatterData(DataBuffer& from)
{
fb_assert(sqlda);
///fb_assert(offsets); // Not reliable, but still check that input buffer can come from this metadata
if (speedHackEnabled)
return; // Data is already in user's buffer
fb_assert(length == from.getCount());
for (unsigned i = 0; i < count; i++)
{
const XSQLVAR& var = sqlda->sqlvar[i];
if ((var.sqltype & ~1) != SQL_NULL)
{
unsigned len = var.sqllen;
// Make sure user has specified a data location.
if (!var.sqldata)
{
(Arg::Gds(isc_dsql_sqlda_value_err) <<
Arg::Gds(isc_dsql_no_sqldata) <<
Arg::Gds(isc_dsql_sqlvar_index) << Arg::Num(i)
).raise();
}
if ((var.sqltype & ~1) == SQL_VARYING)
len += sizeof(SSHORT);
memcpy(var.sqldata, from.begin() + offsets[i].offset, len);
}
if (var.sqltype & 1)
{
// Make sure user has specified a location for null indicator.
if (!var.sqlind)
{
(Arg::Gds(isc_dsql_sqlda_value_err) <<
Arg::Gds(isc_dsql_no_sqlind) <<
Arg::Gds(isc_dsql_sqlvar_index) << Arg::Num(i)
).raise();
}
*var.sqlind = *reinterpret_cast<ISC_SHORT*>(from.begin() + offsets[i].indOffset);
}
}
}
UCHAR* SQLDAMetadataLauncher::getBuffer()
{
if (metadata)
{
// ASF: It's important to call getMessageLength before check speedHackEnabled.
unsigned length = metadata->getMessageLength(NULL);
if (metadata->speedHackEnabled)
return reinterpret_cast<UCHAR*>(metadata->sqlda->sqlvar[0].sqldata);
return buffer.getBuffer(length, false);
}
else
{
buffer.clear();
return NULL;
}
}
IMetadataBuilder* SQLDAMetadata::getBuilder(CheckStatusWrapper* status)
{
// no way to construct SQLDA
fb_assert(false);
return NULL;
}
int SQLDAMetadata::detach()
{
// This code can lead to unnecessary work but not to segfault
if (refCounter.value() > 1)
{
if (!offsets) // in current codebase this is never true because offsets are allocated on buffer size calculation
assign();
}
sqlda = NULL;
speedHackEnabled = false;
return release();
}
GlobalPtr<RWLock> handleMappingLock;
GlobalPtr<GenericMap<Pair<NonPooled<isc_svc_handle, YService*> > > > services;
GlobalPtr<GenericMap<Pair<NonPooled<isc_db_handle, YAttachment*> > > > attachments;
GlobalPtr<GenericMap<Pair<NonPooled<FB_API_HANDLE, YEvents*> > > > events;
GlobalPtr<GenericMap<Pair<NonPooled<isc_tr_handle, YTransaction*> > > > transactions;
GlobalPtr<GenericMap<Pair<NonPooled<isc_stmt_handle, IscStatement*> > > > statements;
GlobalPtr<GenericMap<Pair<NonPooled<isc_req_handle, YRequest*> > > > requests;
GlobalPtr<GenericMap<Pair<NonPooled<isc_blob_handle, YBlob*> > > > blobs;
bool shutdownStarted = false;
//-------------------------------------
// CVC: I'm following types_pub.h here. If there's a better solution, commit it, please.
#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(_WIN64)
inline FB_API_HANDLE ULONG_TO_FB_API_HANDLE(ULONG h) { return static_cast<FB_API_HANDLE>(h); }
inline ULONG FB_API_HANDLE_TO_ULONG(FB_API_HANDLE h) { return h; }
#else
inline FB_API_HANDLE ULONG_TO_FB_API_HANDLE(ULONG h) { return reinterpret_cast<FB_API_HANDLE>(h); }
inline ULONG FB_API_HANDLE_TO_ULONG(FB_API_HANDLE h) { return reinterpret_cast<ULONG>(h); }
#endif
template <typename T>
void makeHandle(GenericMap<Pair<NonPooled<FB_API_HANDLE, T*> > >* map, T* obj, FB_API_HANDLE& h)
{
static ULONG sequenceNumber = 0;
WriteLockGuard sync(handleMappingLock, FB_FUNCTION);
if (h) // Avoid 2 different handles for same object
return;
ULONG handle = 0;
// Loop until we find an empty handle slot. This is to care of case when counter rolls over.
do
{
// Generate handle number using rolling counter.
// This way we tend to give out unique handle numbers and closed
// handles do not appear as valid to our clients.
handle = ++sequenceNumber;
// Avoid generating NULL handle when sequence number wraps
if (!handle)
handle = ++sequenceNumber;
} while (map->put(ULONG_TO_FB_API_HANDLE(handle), obj));
h = ULONG_TO_FB_API_HANDLE(handle);
}
template <typename T>
void removeHandle(GenericMap<Pair<NonPooled<FB_API_HANDLE, T*> > >* map, FB_API_HANDLE& handle)
{
if (handle)
{
WriteLockGuard sync(handleMappingLock, FB_FUNCTION);
bool removed = map->remove(handle);
fb_assert(removed);
(void) removed; // avoid warning in prod build
handle = 0;
}
}
template <typename T>
RefPtr<T> translateHandle(GlobalPtr<GenericMap<Pair<NonPooled<FB_API_HANDLE, T*> > > >& map,
FB_API_HANDLE* handle)
{
if (!handle)
status_exception::raise(Arg::Gds(T::ERROR_CODE));
ReadLockGuard sync(handleMappingLock, FB_FUNCTION);
T** obj = map->get(*handle);
if (!obj)
status_exception::raise(Arg::Gds(T::ERROR_CODE));
return RefPtr<T>(*obj);
}
//-------------------------------------
const int SHUTDOWN_TIMEOUT = 10000; // 10 sec
class ShutdownInit
{
public:
explicit ShutdownInit(MemoryPool&)
{
InstanceControl::registerShutdown(atExitShutdown);
}
private:
static void atExitShutdown()
{
if (MasterInterfacePtr()->getProcessExiting())
InstanceControl::cancelCleanup();
else
fb_shutdown(SHUTDOWN_TIMEOUT, fb_shutrsn_exit_called);
}
};
#ifdef UNIX
int killed;
bool procInt, procTerm;
SignalSafeSemaphore* shutdownSemaphore = NULL;
THREAD_ENTRY_DECLARE shutdownThread(THREAD_ENTRY_PARAM)
{
for (;;)
{
killed = 0;
try
{
if (shutdownSemaphore)
shutdownSemaphore->enter();
}
catch (status_exception& e)
{
TEXT buffer[BUFFER_LARGE];
const ISC_STATUS* vector = e.value();
if (! (vector && fb_interpret(buffer, sizeof(buffer), &vector)))
strcpy(buffer, "Unknown failure in shutdown thread in shutdownSemaphore->enter()");
fb_utils::logAndDie(buffer);
}
if (!killed)
break;
// perform shutdown
if (fb_shutdown(SHUTDOWN_TIMEOUT, fb_shutrsn_signal) == FB_SUCCESS)
{
InstanceControl::registerShutdown(0);
break; //exit(0);
}
}
return 0;
}
void handler(int sig)
{
if (!killed && shutdownSemaphore)
{
killed = sig;
shutdownSemaphore->release();
}
}
void handlerInt(void*)
{
handler(SIGINT);
}
void handlerTerm(void*)
{
handler(SIGTERM);
}
class CtrlCHandler : public ShutdownInit
{
public:
SignalSafeSemaphore semaphore;
explicit CtrlCHandler(MemoryPool& p)
: ShutdownInit(p)
{
Thread::start(shutdownThread, 0, 0, &handle);
procInt = ISC_signal(SIGINT, handlerInt, 0);
procTerm = ISC_signal(SIGTERM, handlerTerm, 0);
shutdownSemaphore = &semaphore;
}
~CtrlCHandler()
{
ISC_signal_cancel(SIGINT, handlerInt, 0);
ISC_signal_cancel(SIGTERM, handlerTerm, 0);
if (!killed)
{
// Must be done to let shutdownThread close.
shutdownSemaphore->release();
shutdownSemaphore = NULL;
Thread::waitForCompletion(handle);
}
}
private:
Thread::Handle handle;
};
#endif // UNIX
void signalInit()
{
#ifdef UNIX
static GlobalPtr<CtrlCHandler> ctrlCHandler;
#else
static GlobalPtr<ShutdownInit> shutdownInit;
#endif // UNIX
}
} // anonymous namespace
//-------------------------------------
namespace Why
{
// StatusVector: Provides correct status vector for operation and init() it.
class StatusVector : public AutoIface<BaseStatus<StatusVector> >
{
public:
explicit StatusVector(ISC_STATUS* v = NULL) throw()
: localVector(v ? v : localStatus)
{ }
operator const ISC_STATUS*()
{
merge();
return localVector;
}
~StatusVector()
{
merge();
#ifdef DEV_BUILD
checkStatusVector(localVector);
#endif
}
// IStatus implementation
void dispose()
{ }
#ifdef DEV_BUILD
// Validate that a status vector looks valid.
static void checkStatusVector(const ISC_STATUS* status)
{
#define SV_MSG(x) \
do { \
gds__log ("%s %d check_status_vector: %s", __FILE__, __LINE__, (x)); BREAKPOINT (__LINE__); \
} while (false)
const ISC_STATUS* s = status;
if (!s)
{
SV_MSG("Invalid status vector");
return;
}
if (*s != isc_arg_gds)
{
SV_MSG("Must start with isc_arg_gds");
return;
}
// Vector [2] could either end the vector, or start a warning
// in either case the status vector is a success.
if (s[1] == FB_SUCCESS && s[2] != isc_arg_end && s[2] != isc_arg_gds &&
s[2] != isc_arg_warning)
{
SV_MSG("Bad success vector format");
}
ULONG length;
while (*s != isc_arg_end)
{
const ISC_STATUS code = *s++;
switch (code)
{
case isc_arg_warning:
case isc_arg_gds:
// The next element must either be 0 (indicating no error) or a
// valid isc error message, let's check.
if (*s && (*s & ISC_MASK) != ISC_MASK)
{
if (code == isc_arg_warning)
SV_MSG("warning code not a valid ISC message");
else
SV_MSG("error code not a valid ISC message");
}
// If the error code is valid, then I better be able to retrieve a
// proper facility code from it ... let's find out.
if (*s && (*s & ISC_MASK) == ISC_MASK)
{
bool found = false;
const _facilities* facs = facilities;
const int fac_code = GET_FACILITY(*s);
while (facs->facility)
{
if (facs->fac_code == fac_code)
{
found = true;
break;
}
++facs;
}
if (!found)
{
if (code == isc_arg_warning)
SV_MSG("warning code does not contain a valid facility");
else
SV_MSG("error code does not contain a valid facility");
}
}
++s;
break;
case isc_arg_interpreted:
case isc_arg_string:
case isc_arg_sql_state:
length = static_cast<ULONG>(strlen((const char*) *s));
// This check is heuristic, not deterministic.
if (length > 1024 - 1)
SV_MSG("suspect length value");
if (*((const UCHAR*) *s) == 0xCB)
SV_MSG("string in freed memory");
++s;
break;
case isc_arg_cstring:
length = (ULONG) *s;
++s;
// This check is heuristic, not deterministic.
// Note: This can never happen anyway, as the length is coming from a byte value.
if (length > 1024 - 1)
SV_MSG("suspect length value");
if (*((const UCHAR*) *s) == 0xCB)
SV_MSG("string in freed memory");
++s;
break;
case isc_arg_number:
case isc_arg_vms:
case isc_arg_unix:
case isc_arg_win32:
++s;
break;
default:
SV_MSG("invalid status code");
return;
}
if (s - status >= ISC_STATUS_LENGTH)
SV_MSG("vector too long");
}
#undef SV_MSG
}
#endif
private:
void merge()
{
fb_utils::mergeStatus(localVector, FB_NELEM(localStatus), this);
makePermanentVector(localVector);
}
ISC_STATUS_ARRAY localStatus;
ISC_STATUS* localVector;
};
class ShutChain : public GlobalStorage
{
private:
ShutChain(ShutChain* link, FB_SHUTDOWN_CALLBACK cb, const int m, void* a)
: next(link),
callBack(cb),
mask(m),
arg(a)
{
}
private:
static ShutChain* list;
static GlobalPtr<Mutex> shutdownCallbackMutex;
ShutChain* next;
FB_SHUTDOWN_CALLBACK callBack;
int mask;
void* arg;
public:
static void add(FB_SHUTDOWN_CALLBACK cb, const int m, void* a)
{
MutexLockGuard guard(shutdownCallbackMutex, FB_FUNCTION);
for (ShutChain* chain = list; chain; chain = chain->next)
{
if (chain->callBack == cb && chain->arg == a)
{
if (m)
chain->mask |= m;
else
chain->mask = 0;
return;
}
}
list = FB_NEW ShutChain(list, cb, m, a);
}
static int run(const int m, const int reason)
{
int rc = FB_SUCCESS;
MutexLockGuard guard(shutdownCallbackMutex, FB_FUNCTION);
for (ShutChain* chain = list; chain; chain = chain->next)
{
if ((chain->mask & m) && (chain->callBack(reason, m, chain->arg) != FB_SUCCESS))
rc = FB_FAILURE;
}
return rc;
}
};
ShutChain* ShutChain::list = NULL;
GlobalPtr<Mutex> ShutChain::shutdownCallbackMutex;
template <typename T, typename CleanupRoutine> // T = YAttachment or YTransaction
class CleanupCallbackImpl : public CleanupCallback
{
public:
CleanupCallbackImpl(T* aObject, CleanupRoutine* aRoutine, void* aArg)
: object(aObject),
routine(aRoutine),
arg(aArg)
{
}
virtual void cleanupCallbackFunction()
{
call(routine);
delete this;
}
private:
void call(AttachmentCleanupRoutine* routine)
{
routine(&object->getHandle(), arg);
}
void call(TransactionCleanupRoutine* routine)
{
routine(object->getHandle(), arg);
}
private:
T* object;
CleanupRoutine* routine;
void* arg;
};
static AtomicCounter dispCounter;
enum CHECK_ENTRY { CHECK_NONE, CHECK_ALL, CHECK_WARN_ZERO_HANDLE };
template <typename Y>
class YEntry : public FpeControl //// TODO: move FpeControl to the engine
{
public:
YEntry(CheckStatusWrapper* aStatus, Y* object, CHECK_ENTRY checkAttachment = CHECK_ALL)
: ref(object->attachment.get()), nextRef(NULL)
{
aStatus->init();
init(object->next);
if (checkAttachment != CHECK_NONE && !(nextRef.hasData()))
nextIsEmpty(aStatus, checkAttachment);
if (checkAttachment != CHECK_NONE && ref && ref->savedStatus.getError())
{
const IStatus* err = ref->savedStatus.value();
fini();
status_exception::raise(err);
}
}
~YEntry()
{
fini();
}
void init(typename Y::NextInterface* nxt)
{
signalInit();
if (ref)
{
MutexLockGuard guard(ref->enterMutex, FB_FUNCTION);
++ref->enterCount;
nextRef = nxt;
}
else
{
++dispCounter;
nextRef = nxt;
}
if (shutdownStarted)
{
fini();
Arg::Gds(isc_att_shutdown).raise();
}
}
void fini()
{
if (ref)
{
MutexLockGuard guard(ref->enterMutex, FB_FUNCTION);
nextRef = NULL;
--ref->enterCount;
}
else
{
nextRef = NULL;
--dispCounter;
}
}
typename Y::NextInterface* next()
{
return nextRef;
}
private:
YEntry(const YEntry&); // prohibit copy constructor
void nextIsEmpty(CheckStatusWrapper* aStatus, CHECK_ENTRY check)
{
if (check == CHECK_WARN_ZERO_HANDLE)
Arg::Warning(Y::ERROR_CODE).appendTo(aStatus);
else
{
fini();
Arg::Gds(Y::ERROR_CODE).raise();
}
}
private:
RefPtr<typename Y::YRef> ref;
RefPtr<typename Y::NextInterface> nextRef;
};
class IscStatement : public RefCounted, public GlobalStorage, public YObject
{
public:
static const ISC_STATUS ERROR_CODE = isc_bad_stmt_handle;
explicit IscStatement(YAttachment* aAttachment)
: attachment(aAttachment),
cursorName(getPool()),
statement(NULL),
userHandle(NULL),
pseudoOpened(false),
delayedFormat(false)
{ }
~IscStatement() override;
isc_stmt_handle& getHandle();
void destroy(unsigned);
void openCursor(CheckStatusWrapper* status, isc_tr_handle* traHandle,
IMessageMetadata* inMetadata, UCHAR* buffer, IMessageMetadata* outMetadata);
void closeCursor(CheckStatusWrapper* status, bool raise);
void closeStatement(CheckStatusWrapper* status);
void execute(CheckStatusWrapper* status, isc_tr_handle* traHandle,
IMessageMetadata* inMetadata, UCHAR* inBuffer, IMessageMetadata* outMetadata, UCHAR* outBuffer);
FB_BOOLEAN fetch(CheckStatusWrapper* status, IMessageMetadata* outMetadata, UCHAR* outBuffer);
void checkPrepared(ISC_STATUS code = isc_unprepared_stmt) const
{
if (!statement)
Arg::Gds(code).raise();
}
void checkCursorOpened() const
{
if (!statement || !statement->cursor)
Arg::Gds(isc_dsql_cursor_not_open).raise();
}
void checkCursorClosed() const
{
if (statement && statement->cursor)
Arg::Gds(isc_dsql_cursor_open_err).raise();
}
IStatement* getInterface()
{
fb_assert(statement);
statement->addRef();
return statement;
}
AtomicAttPtr attachment;
string cursorName;
YStatement* statement;
isc_stmt_handle* userHandle;
bool pseudoOpened, delayedFormat;
};
template <>
YEntry<YAttachment>::YEntry(CheckStatusWrapper* aStatus, YAttachment* aAttachment, CHECK_ENTRY checkAttachment)
: ref(aAttachment), nextRef(NULL)
{
aStatus->init();
init(aAttachment->next);
if (checkAttachment != CHECK_NONE && !(nextRef.hasData()))
nextIsEmpty(aStatus, checkAttachment);
if (checkAttachment != CHECK_NONE && aAttachment->savedStatus.getError())
{
fini();
status_exception::raise(aAttachment->savedStatus.value());
}
}
template <>
YEntry<YService>::YEntry(CheckStatusWrapper* aStatus, YService* aService, CHECK_ENTRY checkService)
: ref(aService), nextRef(NULL)
{
aStatus->init();
init(aService->next);
if (checkService != CHECK_NONE && !nextRef.hasData())
nextIsEmpty(aStatus, checkService);
}
class DispatcherEntry : public FpeControl //// TODO: move FpeControl to the engine
{
public:
explicit DispatcherEntry(CheckStatusWrapper* aStatus, bool p_shutdownMode = false)
: shutdownMode(p_shutdownMode)
{
aStatus->init();
signalInit();
if (!shutdownMode)
{
++dispCounter;
if (shutdownStarted)
{
--dispCounter;
Arg::Gds(isc_att_shutdown).raise();
}
}
}
~DispatcherEntry()
{
if (!shutdownMode)
{
--dispCounter;
}
}
private:
DispatcherEntry(const DispatcherEntry&); // prohibit copy constructor
bool shutdownMode;
};
template <class Y>
void done(CheckStatusWrapper* status, YEntry<Y>& entry, Y* y, std::function<void()> newClose, std::function<void()> oldClose)
{
if (entry.next())
newClose();
if (!(status->getState() & IStatus::STATE_ERRORS))
y->destroy(Y::DF_RELEASE | Y::DF_KEEP_NEXT);
else if (status->getErrors()[1] == isc_interface_version_too_old)
{
status->init();
if (entry.next())
oldClose();
if (!(status->getState() & IStatus::STATE_ERRORS))
y->destroy(Y::DF_RELEASE);
}
}
} // namespace Why
struct TEB
{
isc_db_handle* teb_database;
int teb_tpb_length;
const UCHAR* teb_tpb;
};
//-------------------------------------
static void badHandle(ISC_STATUS code)
{
status_exception::raise(Arg::Gds(code));
}
static bool isNetworkError(const IStatus* status)
{
ISC_STATUS code = status->getErrors()[1];
return fb_utils::isNetworkError(code);
}
static void nullCheck(const FB_API_HANDLE* ptr, ISC_STATUS code)
{
// This function is called for incoming API handles, proposed to be created by the call.
if (!ptr || *ptr)
badHandle(code);
}
static void badSqldaVersion(const short version)
{
(Arg::Gds(isc_dsql_sqlda_value_err) <<
Arg::Gds(isc_dsql_invalid_sqlda_version) <<
Arg::Num(SQLDA_VERSION1) << Arg::Num(SQLDA_VERSION1) << Arg::Num(version)
).raise();
}
// Set charset info in SQLVAR according to legacy rules
static void setTextType(XSQLVAR* var, unsigned charSet)
{
switch(var->sqltype & ~1)
{
case SQL_VARYING:
case SQL_TEXT:
var->sqlsubtype = charSet;
break;
case SQL_BLOB:
var->sqlscale = charSet;
break;
}
}
static int sqldaTruncateString(char* buffer, FB_SIZE_T size, const char* s)
{
int ret = fb_utils::snprintf(buffer, size, "%s", s);
return MIN(ret, size - 1);
}
// Describe parameters metadata in an sqlda.
static void sqldaDescribeParameters(XSQLDA* sqlda, IMessageMetadata* parameters)
{
if (!sqlda)
return;
if (sqlda->version != SQLDA_VERSION1)
badSqldaVersion(sqlda->version);
StatusVector status(NULL);
CheckStatusWrapper statusWrapper(&status);
unsigned parametersCount = parameters->getCount(&statusWrapper);
status.check();
sqlda->sqld = (USHORT) parametersCount;
// If necessary, inform the application that more sqlda items are needed.
if (sqlda->sqld > sqlda->sqln)
return;
for (unsigned i = 0; i < parametersCount; ++i)
{
XSQLVAR* var = &sqlda->sqlvar[i];
const char* s;
var->sqltype = parameters->getType(&statusWrapper, i);
status.check();
var->sqltype |= (parameters->isNullable(&statusWrapper, i) ? 1 : 0);
status.check();
var->sqlsubtype = parameters->getSubType(&statusWrapper, i);
status.check();
var->sqllen = parameters->getLength(&statusWrapper, i);
status.check();
var->sqlscale = parameters->getScale(&statusWrapper, i);
status.check();
unsigned charSet = parameters->getCharSet(&statusWrapper, i);
status.check();
setTextType(var, charSet);
s = parameters->getField(&statusWrapper, i);
status.check();
var->sqlname_length = sqldaTruncateString(var->sqlname, sizeof(var->sqlname), s);
s = parameters->getRelation(&statusWrapper, i);
status.check();
var->relname_length = sqldaTruncateString(var->relname, sizeof(var->relname), s);
s = parameters->getOwner(&statusWrapper, i);
status.check();
var->ownname_length = sqldaTruncateString(var->ownname, sizeof(var->ownname), s);
s = parameters->getAlias(&statusWrapper, i);
status.check();
var->aliasname_length = sqldaTruncateString(var->aliasname, sizeof(var->aliasname), s);
}
}
// Open or create an existing blob (extended edition).
static ISC_STATUS openOrCreateBlob(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId,
USHORT bpbLength, const UCHAR* bpb, bool createFlag)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
nullCheck(blobHandle, isc_bad_segstr_handle);
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
YBlob* blob = createFlag ?
attachment->createBlob(&statusWrapper, transaction, blobId, bpbLength, bpb) :
attachment->openBlob(&statusWrapper, transaction, blobId, bpbLength, bpb);
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
*blobHandle = blob->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
//-------------------------------------
static TLS_DECLARE(ICryptKeyCallback*, legacyCryptCallback);
ISC_STATUS API_ROUTINE fb_database_crypt_callback(ISC_STATUS* userStatus, void* cb)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
TLS_SET(legacyCryptCallback, (ICryptKeyCallback*) cb);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
//-------------------------------------
Firebird::IAttachment* handleToIAttachment(CheckStatusWrapper* status, isc_db_handle* handle)
{
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
attachment->addRef();
return attachment;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
Firebird::ITransaction* handleToITransaction(CheckStatusWrapper* status, isc_tr_handle* handle)
{
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, handle));
transaction->addRef();
return transaction;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
//-------------------------------------
// Attach a database through the first subsystem that recognizes it.
ISC_STATUS API_ROUTINE isc_attach_database(ISC_STATUS* userStatus, SSHORT fileLength,
const TEXT* filename, isc_db_handle* publicHandle, SSHORT dpbLength, const SCHAR* dpb)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
nullCheck(publicHandle, isc_bad_db_handle);
if (!filename)
status_exception::raise(Arg::Gds(isc_bad_db_format) << Arg::Str(""));
PathName pathName(filename, fileLength ? fileLength : fb_strlen(filename));
RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher);
dispatcher->setDbCryptCallback(&statusWrapper, TLS_GET(legacyCryptCallback));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
YAttachment* attachment = dispatcher->attachDatabase(&statusWrapper, pathName.c_str(),
dpbLength, reinterpret_cast<const UCHAR*>(dpb));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
*publicHandle = attachment->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Provide information on blob object.
ISC_STATUS API_ROUTINE isc_blob_info(ISC_STATUS* userStatus, isc_blob_handle* blobHandle,
SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
blob->getInfo(&statusWrapper, itemLength, reinterpret_cast<const UCHAR*>(items),
bufferLength, reinterpret_cast<UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Abort a partially completed blob.
ISC_STATUS API_ROUTINE isc_cancel_blob(ISC_STATUS* userStatus, isc_blob_handle* blobHandle)
{
if (!*blobHandle)
{
if (userStatus)
fb_utils::init_status(userStatus);
return FB_SUCCESS;
}
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
blob->cancel(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*blobHandle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Try to cancel an event.
ISC_STATUS API_ROUTINE isc_cancel_events(ISC_STATUS* userStatus, isc_db_handle* handle, SLONG* id)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
RefPtr<YEvents> event;
try
{
// This cast appears awful, but as long as handles are 32-bit entities it's OK.
event = translateHandle(events, (FB_API_HANDLE*) id);
}
catch (const status_exception& ex)
{
if (ex.value()[1] == isc_bad_events_handle)
{
// Ignore invalid handle/ID in cancelation call for backward compatibility
return status[1];
}
throw;
}
if (event->attachment.get() != attachment)
Arg::Gds(isc_bad_events_handle).raise();
event->cancel(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*id = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Try to cancel an operation.
ISC_STATUS API_ROUTINE fb_cancel_operation(ISC_STATUS* userStatus, isc_db_handle* handle,
USHORT option)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
attachment->cancelOperation(&statusWrapper, option);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Close a blob opened either for reading or writing (creation).
ISC_STATUS API_ROUTINE isc_close_blob(ISC_STATUS* userStatus, isc_blob_handle* blobHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
blob->close(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*blobHandle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Commit a transaction.
ISC_STATUS API_ROUTINE isc_commit_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->commit(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*traHandle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Do a commit retaining.
// N.B., the transaction cleanup handlers are NOT called here since, conceptually, the transaction
// is still running.
ISC_STATUS API_ROUTINE isc_commit_retaining(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->commitRetaining(&statusWrapper);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
ISC_STATUS API_ROUTINE isc_compile_request(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_req_handle* reqHandle, ISC_USHORT blrLength, const ISC_SCHAR* blr)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
YRequest* request = NULL;
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
nullCheck(reqHandle, isc_bad_stmt_handle);
request = attachment->compileRequest(&statusWrapper, blrLength,
reinterpret_cast<const UCHAR*>(blr));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
*reqHandle = request->getHandle();
}
catch (const Exception& e)
{
if (request)
{
*reqHandle = 0;
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
request->free(&tempCheckStatusWrapper);
}
e.stuffException(&statusWrapper);
}
return status[1];
}
ISC_STATUS API_ROUTINE isc_compile_request2(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_req_handle* reqHandle, USHORT blrLength, const SCHAR* blr)
{
ISC_STATUS rc = isc_compile_request(userStatus, dbHandle, reqHandle, blrLength, blr);
if (rc)
return rc;
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->userHandle = reqHandle;
return 0;
}
catch (const Exception& e)
{
ISC_STATUS_ARRAY temp;
isc_release_request(temp, reqHandle);
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
e.stuffException(&statusWrapper);
return status[1];
}
}
// Open an existing blob.
ISC_STATUS API_ROUTINE isc_create_blob(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId)
{
return openOrCreateBlob(userStatus, dbHandle, traHandle, blobHandle, blobId, 0, NULL, true);
}
// Create a new blob.
ISC_STATUS API_ROUTINE isc_create_blob2(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId,
SSHORT bpbLength, const SCHAR* bpb)
{
return openOrCreateBlob(userStatus, dbHandle, traHandle, blobHandle, blobId,
bpbLength, reinterpret_cast<const UCHAR*>(bpb), true);
}
// Create a nice, squeaky clean database, uncorrupted by user data.
ISC_STATUS API_ROUTINE isc_create_database(ISC_STATUS* userStatus, USHORT fileLength,
const TEXT* filename, isc_db_handle* publicHandle, USHORT dpbLength, const SCHAR* dpb,
USHORT /*db_type*/)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
nullCheck(publicHandle, isc_bad_db_handle);
if (!filename)
status_exception::raise(Arg::Gds(isc_bad_db_format) << Arg::Str(""));
PathName pathName(filename, fileLength ? fileLength : fb_strlen(filename));
RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher);
dispatcher->setDbCryptCallback(&statusWrapper, TLS_GET(legacyCryptCallback));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
ClumpletWriter newDpb(ClumpletReader::dpbList, MAX_DPB_SIZE, reinterpret_cast<const UCHAR*>(dpb), dpbLength);
if (!newDpb.find(isc_dpb_sql_dialect))
{
newDpb.insertInt(isc_dpb_sql_dialect, 1); // legacy behavior in legacy interface
dpb = reinterpret_cast<const SCHAR*>(newDpb.getBuffer());
dpbLength = newDpb.getBufferLength();
}
YAttachment* attachment = dispatcher->createDatabase(&statusWrapper, pathName.c_str(),
dpbLength, reinterpret_cast<const UCHAR*>(dpb));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
*publicHandle = attachment->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Register an attachment specific cleanup handler.
ISC_STATUS API_ROUTINE isc_database_cleanup(ISC_STATUS* userStatus, isc_db_handle* handle,
AttachmentCleanupRoutine* routine, void* arg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
AutoPtr<CleanupCallbackImpl<YAttachment, AttachmentCleanupRoutine> > callback(
FB_NEW CleanupCallbackImpl<YAttachment, AttachmentCleanupRoutine>(attachment, routine, arg));
attachment->addCleanupHandler(&statusWrapper, callback);
if (!(status.getState() & IStatus::STATE_ERRORS))
callback.release();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Provide information on database object.
ISC_STATUS API_ROUTINE isc_database_info(ISC_STATUS* userStatus, isc_db_handle* handle,
SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
attachment->getInfo(&statusWrapper, itemLength, reinterpret_cast<const UCHAR*>(items),
bufferLength, reinterpret_cast<UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Do meta-data update.
ISC_STATUS API_ROUTINE isc_ddl(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, SSHORT length, const SCHAR* dyn)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
attachment->executeDyn(&statusWrapper, transaction, length, reinterpret_cast<const UCHAR*>(dyn));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Close down an attachment.
ISC_STATUS API_ROUTINE isc_detach_database(ISC_STATUS* userStatus, isc_db_handle* handle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
attachment->detach(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*handle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Disable access to a specific subsystem. If no subsystem has been explicitly disabled, all are
// available.
int API_ROUTINE gds__disable_subsystem(TEXT* /*subsystem*/)
{
return FALSE;
}
// Close down a database and then purge it.
ISC_STATUS API_ROUTINE isc_drop_database(ISC_STATUS* userStatus, isc_db_handle* handle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
attachment->dropDatabase(&statusWrapper);
if ((!(status.getState() & IStatus::STATE_ERRORS)) ||
status[1] == isc_drdb_completed_with_errs)
{
*handle = 0;
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
ISC_STATUS API_ROUTINE isc_dsql_alloc_statement(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_stmt_handle* stmtHandle)
{
return isc_dsql_allocate_statement(userStatus, dbHandle, stmtHandle);
}
// Allocate a statement handle.
ISC_STATUS API_ROUTINE isc_dsql_alloc_statement2(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_stmt_handle* stmtHandle)
{
ISC_STATUS rc = isc_dsql_alloc_statement(userStatus, dbHandle, stmtHandle);
if (rc)
return rc;
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->userHandle = stmtHandle;
return 0;
}
catch (const Exception& e)
{
ISC_STATUS_ARRAY temp;
isc_dsql_free_statement(temp, stmtHandle, DSQL_drop);
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
e.stuffException(&statusWrapper);
return status[1];
}
}
// Allocate a statement handle.
ISC_STATUS API_ROUTINE isc_dsql_allocate_statement(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_stmt_handle* stmtHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
IscStatement* statement = NULL;
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
nullCheck(stmtHandle, isc_bad_stmt_handle);
statement = FB_NEW IscStatement(attachment);
statement->addRef();
attachment->childIscStatements.add(statement);
*stmtHandle = statement->getHandle();
}
catch (const Exception& e)
{
if (statement)
{
*stmtHandle = 0;
statement->release();
}
e.stuffException(&statusWrapper);
}
return status[1];
}
// Describe output parameters (columns) for a prepared statement.
ISC_STATUS API_ROUTINE isc_dsql_describe(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
USHORT /*dialect*/, XSQLDA* sqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->checkPrepared(isc_info_unprepared_stmt);
RefPtr<IMessageMetadata> columns(REF_NO_INCR,
statement->statement->next->getOutputMetadata(&statusWrapper));
status.check();
sqldaDescribeParameters(sqlda, columns);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Describe input parameters for a prepared statement.
ISC_STATUS API_ROUTINE isc_dsql_describe_bind(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
USHORT /*dialect*/, XSQLDA* sqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->checkPrepared(isc_info_unprepared_stmt);
RefPtr<IMessageMetadata> parameters(REF_NO_INCR,
statement->statement->next->getInputMetadata(&statusWrapper));
status.check();
sqldaDescribeParameters(sqlda, parameters);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Execute a non-SELECT dynamic SQL statement.
ISC_STATUS API_ROUTINE isc_dsql_execute(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT dialect, const XSQLDA* sqlda)
{
return isc_dsql_execute2(userStatus, traHandle, stmtHandle, dialect, sqlda, NULL);
}
// Execute a non-SELECT dynamic SQL statement.
ISC_STATUS API_ROUTINE isc_dsql_execute2(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT dialect, const XSQLDA* inSqlda, const XSQLDA* outSqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->checkPrepared();
const unsigned flags = statement->statement->getFlags(&statusWrapper);
if (status.getState() & IStatus::STATE_ERRORS)
{
return status[1];
}
SQLDAMetadataLauncher inMessage(inSqlda);
SQLDAMetadata::DataBuffer inMsgBuffer;
inMessage.gatherData(inMsgBuffer);
if ((flags & IStatement::FLAG_HAS_CURSOR) && !outSqlda)
{
statement->checkCursorClosed();
statement->openCursor(&statusWrapper, traHandle,
inMessage.metadata, inMsgBuffer.begin(), DELAYED_OUT_FORMAT);
if (status.getState() & IStatus::STATE_ERRORS)
{
return status[1];
}
fb_assert(statement->statement->cursor);
}
else
{
SQLDAMetadataLauncher outMessage(outSqlda);
statement->execute(&statusWrapper, traHandle,
inMessage.metadata, inMsgBuffer.begin(), outMessage.metadata, outMessage.getBuffer());
if (!(status.getState() & IStatus::STATE_ERRORS))
outMessage.scatterData();
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Execute a non-SELECT dynamic SQL statement.
ISC_STATUS API_ROUTINE isc_dsql_execute_m(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT blrLength, const SCHAR* blr,
USHORT msgType, USHORT msgLength, SCHAR* msg)
{
return isc_dsql_execute2_m(userStatus, traHandle, stmtHandle, blrLength, blr,
msgType, msgLength, msg, 0, NULL, 0, 0, NULL);
}
// Execute a non-SELECT dynamic SQL statement.
ISC_STATUS API_ROUTINE isc_dsql_execute2_m(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT inBlrLength, const SCHAR* inBlr, USHORT inMsgType,
USHORT inMsgLength, const SCHAR* inMsg, USHORT outBlrLength,
SCHAR* outBlr, USHORT /*outMsgType*/, USHORT outMsgLength, SCHAR* outMsg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
if (((SSHORT) inMsgType) == -1) // dirty hack to support old esql code
{
statement->pseudoOpened = true;
return status[1];
}
statement->checkPrepared();
InternalMessageBuffer inMsgBuffer(inBlrLength, (const UCHAR*) inBlr, inMsgLength, (UCHAR*) inMsg);
InternalMessageBuffer outMsgBuffer(outBlrLength, (const UCHAR*) outBlr, outMsgLength, (UCHAR*) outMsg);
const unsigned flags = statement->statement->getFlags(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
{
if ((flags & IStatement::FLAG_HAS_CURSOR) && (outMsgLength == 0))
{
statement->openCursor(&statusWrapper, traHandle,
inMsgBuffer.metadata, inMsgBuffer.buffer,
(outBlrLength ? outMsgBuffer.metadata : DELAYED_OUT_FORMAT));
}
else
{
statement->execute(&statusWrapper, traHandle,
inMsgBuffer.metadata, inMsgBuffer.buffer, outMsgBuffer.metadata, outMsgBuffer.buffer);
}
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Is this really API function? Where is it declared?
ISC_STATUS API_ROUTINE isc_dsql_exec_immediate(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
const XSQLDA* sqlda)
{
return isc_dsql_execute_immediate(userStatus, dbHandle, traHandle, stmtLength, sqlStmt,
dialect, sqlda);
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
const XSQLDA* sqlda)
{
return isc_dsql_exec_immed2(userStatus, dbHandle, traHandle, stmtLength, sqlStmt,
dialect, sqlda, NULL);
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
const XSQLDA* inSqlda, const XSQLDA* outSqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
if (!sqlStmt)
Arg::Gds(isc_command_end_err).raise();
FB_BOOLEAN stmtIsCrDb = FB_FALSE;
YAttachment* att = utilInterface.executeCreateDatabase(&statusWrapper, stmtLength,
sqlStmt, dialect, &stmtIsCrDb);
if (stmtIsCrDb)
{
if (!(status.getState() & IStatus::STATE_ERRORS))
*dbHandle = att->getHandle();
return status[1];
}
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
SQLDAMetadata::DataBuffer inMessageBuffer;
SQLDAMetadataLauncher inMessage(inSqlda), outMessage(outSqlda);
inMessage.gatherData(inMessageBuffer);
attachment->execute(&statusWrapper, traHandle, stmtLength, sqlStmt,
dialect, inMessage.metadata, inMessageBuffer.begin(),
outMessage.metadata, outMessage.getBuffer());
if (!(status.getState() & IStatus::STATE_ERRORS))
{
outMessage.scatterData();
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Is this really API function? Where is it declared?
ISC_STATUS API_ROUTINE isc_dsql_exec_immediate_m(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
USHORT blrLength, USHORT msgType, USHORT msgLength, SCHAR* blr, SCHAR* msg)
{
return isc_dsql_execute_immediate_m(userStatus, dbHandle, traHandle, stmtLength, sqlStmt,
dialect, blrLength, blr, msgType, msgLength, msg);
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate_m(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
USHORT blrLength, SCHAR* blr, USHORT msgType, USHORT msgLength, SCHAR* msg)
{
return isc_dsql_exec_immed2_m(userStatus, dbHandle, traHandle, stmtLength, sqlStmt, dialect,
blrLength, blr, msgType, msgLength, msg, 0, NULL, 0, 0, NULL);
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2_m(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
USHORT inBlrLength, SCHAR* inBlr, USHORT inMsgType, USHORT inMsgLength, const SCHAR* inMsg,
USHORT outBlrLength, SCHAR* outBlr, USHORT outMsgType, USHORT outMsgLength, SCHAR* outMsg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
FB_BOOLEAN stmtIsCrDb = FB_FALSE;
YAttachment* att = utilInterface.executeCreateDatabase(&statusWrapper, stmtLength,
sqlStmt, dialect, &stmtIsCrDb);
if (stmtIsCrDb)
{
if (!(status.getState() & IStatus::STATE_ERRORS))
*dbHandle = att->getHandle();
return status[1];
}
return isc_dsql_exec_immed3_m(userStatus, dbHandle, traHandle, stmtLength, sqlStmt, dialect,
inBlrLength, inBlr, inMsgType, inMsgLength, inMsg,
outBlrLength, outBlr, outMsgType, outMsgLength, outMsg);
}
// Execute statement immediately.
ISC_STATUS API_ROUTINE isc_dsql_exec_immed3_m(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
USHORT inBlrLength, const SCHAR* inBlr, USHORT inMsgType, USHORT inMsgLength, const SCHAR* inMsg,
USHORT outBlrLength, SCHAR* outBlr, USHORT /*outMsgType*/, USHORT outMsgLength, SCHAR* outMsg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
InternalMessageBuffer inMsgBuffer(inBlrLength, reinterpret_cast<const unsigned char*>(inBlr),
inMsgLength, reinterpret_cast<UCHAR*>(const_cast<SCHAR*>(inMsg)));
InternalMessageBuffer outMsgBuffer(outBlrLength, reinterpret_cast<unsigned char*>(outBlr),
outMsgLength, reinterpret_cast<unsigned char*>(outMsg));
attachment->execute(&statusWrapper, traHandle, stmtLength, sqlStmt,
dialect, inMsgBuffer.metadata, inMsgBuffer.buffer,
outMsgBuffer.metadata, outMsgBuffer.buffer);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Fetch next record from a dynamic SQL cursor
ISC_STATUS API_ROUTINE isc_dsql_fetch(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
USHORT dialect, const XSQLDA* sqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
if (!sqlda)
status_exception::raise(Arg::Gds(isc_dsql_sqlda_err) << Arg::Gds(isc_dsql_no_output_sqlda));
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
SQLDAMetadataLauncher outMessage(sqlda);
if (statement->fetch(&statusWrapper, outMessage.metadata, outMessage.getBuffer()))
outMessage.scatterData();
else if (!(status.getState() & IStatus::STATE_ERRORS))
return 100;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Fetch next record from a dynamic SQL cursor
ISC_STATUS API_ROUTINE isc_dsql_fetch_m(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
USHORT blrLength, SCHAR* blr, USHORT /*msgType*/, USHORT msgLength, SCHAR* msg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
InternalMessageBuffer msgBuffer(blrLength, reinterpret_cast<UCHAR*>(blr), msgLength, reinterpret_cast<UCHAR*>(msg));
if (!msgBuffer.metadata)
{
(Arg::Gds(isc_sqlerr) << Arg::Num(-502) <<
Arg::Gds(isc_dsql_cursor_open_err)).raise();
}
if (!statement->fetch(&statusWrapper, msgBuffer.metadata, reinterpret_cast<UCHAR*>(msg)) &&
!(status.getState() & IStatus::STATE_ERRORS))
{
return 100;
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Release request for an sql statement
ISC_STATUS API_ROUTINE isc_dsql_free_statement(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
USHORT option)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
if (option & DSQL_drop)
{
// Release everything
statement->closeCursor(&statusWrapper, false);
statement->closeStatement(&statusWrapper);
// statement->userHandle is not erased here because this routine can be called
// against a copy of original variable.
// This call must release statement and clean handles
statement->destroy(0);
*stmtHandle = 0;
}
else if (option & DSQL_unprepare)
{
// Release everything but the request itself
statement->closeCursor(&statusWrapper, false);
statement->closeStatement(&statusWrapper);
}
else if (option & DSQL_close)
{
// Only close the cursor
statement->closeCursor(&statusWrapper, true);
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Insert a BLOB into a dynamic SQL cursor. (deprecated)
ISC_STATUS API_ROUTINE isc_dsql_insert(ISC_STATUS* userStatus, isc_stmt_handle* /*stmtHandle*/,
USHORT /*dialect*/, XSQLDA* /*sqlda*/)
{
(Arg::Gds(isc_feature_removed) << Arg::Str("isc_dsql_insert")).copyTo(userStatus);
return userStatus[1];
}
// Insert a BLOB into a dynamic SQL cursor. (deprecated)
ISC_STATUS API_ROUTINE isc_dsql_insert_m(ISC_STATUS* userStatus, isc_stmt_handle* /*stmtHandle*/,
USHORT /*blrLength*/, const SCHAR* /*blr*/,
USHORT /*msgType*/, USHORT /*msgLength*/, const SCHAR* /*msg*/)
{
(Arg::Gds(isc_feature_removed) << Arg::Str("isc_dsql_insert")).copyTo(userStatus);
return userStatus[1];
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_prepare(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
XSQLDA* sqlda)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
RefPtr<YTransaction> transaction;
if (statement->statement)
{
statement->closeStatement(&statusWrapper);
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
}
statement->cursorName = "";
if (traHandle && *traHandle)
transaction = translateHandle(transactions, traHandle);
statement->statement = statement->attachment.get()->prepare(&statusWrapper, transaction,
stmtLength, sqlStmt, dialect, IStatement::PREPARE_PREFETCH_METADATA);
if (!(status.getState() & IStatus::STATE_ERRORS))
{
StatusVector tempStatus(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&tempStatus);
RefPtr<IMessageMetadata> parameters(REF_NO_INCR,
statement->statement->next->getOutputMetadata(&tempCheckStatusWrapper));
tempStatus.check();
sqldaDescribeParameters(sqlda, parameters);
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Prepare a statement for execution.
ISC_STATUS API_ROUTINE isc_dsql_prepare_m(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
isc_stmt_handle* stmtHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
USHORT itemLength, const SCHAR* items, USHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
RefPtr<YTransaction> transaction;
if (statement->statement)
{
statement->closeStatement(&statusWrapper);
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
}
statement->cursorName = "";
if (traHandle && *traHandle)
transaction = translateHandle(transactions, traHandle);
unsigned flags = StatementMetadata::buildInfoFlags(
itemLength, reinterpret_cast<const UCHAR*>(items));
statement->statement = statement->attachment.get()->prepare(&statusWrapper, transaction,
stmtLength, sqlStmt, dialect, flags);
if (!(status.getState() & IStatus::STATE_ERRORS))
{
StatusVector tempStatus(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&tempStatus);
statement->statement->getInfo(&tempCheckStatusWrapper,
itemLength, reinterpret_cast<const UCHAR*>(items),
bufferLength, reinterpret_cast<UCHAR*>(buffer));
tempStatus.check();
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Set a cursor name for a dynamic request.
ISC_STATUS API_ROUTINE isc_dsql_set_cursor_name(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
const SCHAR* cursorName, USHORT /*cursorType*/)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
if (statement->cursorName.hasData() && statement->cursorName != cursorName)
{
(Arg::Gds(isc_dsql_decl_err) <<
Arg::Gds(isc_dsql_cursor_redefined) << statement->cursorName).raise();
}
statement->cursorName = cursorName;
if (statement->statement)
statement->statement->setCursorName(&statusWrapper, cursorName);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Set statement timeout.
ISC_STATUS API_ROUTINE fb_dsql_set_timeout(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
ULONG timeout)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
if (statement->statement)
statement->statement->setTimeout(&statusWrapper, timeout);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get interface by legacy handle
/*ISC_STATUS API_ROUTINE fb_get_statement_interface(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
void** stmtIface)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->checkPrepared();
fb_assert(statement->statement);
IStatement* rc = statement->statement;
rc->addRef();
*stmtIface = rc;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
*/
// Provide information on sql statement.
ISC_STATUS API_ROUTINE isc_dsql_sql_info(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle,
SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle));
statement->checkPrepared(isc_info_unprepared_stmt);
statement->statement->getInfo(&statusWrapper,
USHORT(itemLength), reinterpret_cast<const UCHAR*>(items),
USHORT(bufferLength), reinterpret_cast<UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Enable access to a specific subsystem. If no subsystem has been explicitly enabled, all are
// available.
int API_ROUTINE gds__enable_subsystem(TEXT* /*subsystem*/)
{
return FALSE;
}
namespace
{
class WaitCallback FB_FINAL :
public RefCntIface<IEventCallbackImpl<WaitCallback, CheckStatusWrapper> >
{
public:
explicit WaitCallback(UCHAR* aBuffer)
: buffer(aBuffer)
{
}
// IEventCallback implementation
virtual void eventCallbackFunction(unsigned int length, const UCHAR* events)
{
try
{
memcpy(buffer, events, length);
sem.release();
}
catch (const Exception&)
{ }
}
UCHAR* buffer;
Semaphore sem;
};
}
// Que request for event notification.
ISC_STATUS API_ROUTINE isc_wait_for_event(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
USHORT length, const UCHAR* eventsData, UCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
YEvents* events = NULL;
RefPtr<WaitCallback> callback(FB_NEW WaitCallback(buffer));
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
events = attachment->queEvents(&statusWrapper, callback, length, eventsData);
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
callback->sem.enter();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
if (events)
{
events->release();
}
return status[1];
}
namespace
{
class QueCallback FB_FINAL : public RefCntIface<IEventCallbackImpl<QueCallback, CheckStatusWrapper> >
{
public:
QueCallback(FPTR_EVENT_CALLBACK aAst, void* aArg)
: ast(aAst),
arg(aArg),
events(NULL)
{
mtx.enter(FB_FUNCTION);
}
void setEvents(YEvents* e)
{
fb_assert(!events);
events = e;
mtx.leave();
}
// IEventCallback implementation
virtual void eventCallbackFunction(unsigned int length, const UCHAR* list)
{
RefPtr<YEvents> tmp;
try
{
MutexLockGuard g(mtx, FB_FUNCTION);
if (events)
{
ast(arg, length, list);
tmp = events;
events = NULL;
}
}
catch (const Exception&)
{ }
if (tmp)
{
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);
tmp->cancel(&statusWrapper);
}
}
Mutex mtx;
FPTR_EVENT_CALLBACK ast;
void* arg;
YEvents* events;
};
}
// Que request for event notification.
ISC_STATUS API_ROUTINE isc_que_events(ISC_STATUS* userStatus, isc_db_handle* dbHandle, SLONG* id,
USHORT length, const UCHAR* eventsData, FPTR_EVENT_CALLBACK ast, void* arg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
RefPtr<YEvents> events;
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<QueCallback> callback(FB_NEW QueCallback(ast, arg));
events = attachment->queEvents(&statusWrapper, callback, length, eventsData);
if (events)
*id = FB_API_HANDLE_TO_ULONG(events->getHandle());
callback->setEvents(events); // should be called in case of NULL events too
if (status.getState() & IStatus::STATE_ERRORS)
{
return status[1];
}
}
catch (const Exception& e)
{
if (events)
{
*id = 0;
events->release();
}
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get a segment from a blob opened for reading.
ISC_STATUS API_ROUTINE isc_get_segment(ISC_STATUS* userStatus, isc_blob_handle* blobHandle,
USHORT* returnLength, USHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
unsigned int length;
int cc = blob->getSegment(&statusWrapper, bufferLength, reinterpret_cast<UCHAR*>(buffer), &length);
if (!(status.getState() & IStatus::STATE_ERRORS))
*returnLength = length;
// Raise pseudo errors
switch (cc)
{
case IStatus::RESULT_NO_DATA:
Arg::Gds(isc_segstr_eof).raise();
break;
case IStatus::RESULT_SEGMENT:
Arg::Gds(isc_segment).raise();
break;
}
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Snatch a slice of an array.
ISC_STATUS API_ROUTINE isc_get_slice(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, ISC_QUAD* arrayId, USHORT sdlLength, const UCHAR* sdl,
USHORT paramLength, const SLONG* param, SLONG sliceLength, void* slice, SLONG* returnLength)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
int length = attachment->getSlice(&statusWrapper, transaction, arrayId, sdlLength, sdl,
paramLength, reinterpret_cast<const UCHAR*>(param), sliceLength, reinterpret_cast<UCHAR*>(slice));
if (!(status.getState() & IStatus::STATE_ERRORS) && returnLength)
*returnLength = length;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Clean up a dangling transaction handle.
ISC_STATUS API_ROUTINE fb_disconnect_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->disconnect(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*traHandle = 0; // ASF: Previous versions wasn't cleaning the handle.
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Open an existing blob.
ISC_STATUS API_ROUTINE isc_open_blob(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId)
{
return openOrCreateBlob(userStatus, dbHandle, traHandle, blobHandle, blobId, 0, 0, false);
}
// Open an existing blob (extended edition).
ISC_STATUS API_ROUTINE isc_open_blob2(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, isc_blob_handle* blobHandle, ISC_QUAD* blobId,
ISC_USHORT bpbLength, const UCHAR* bpb)
{
return openOrCreateBlob(userStatus, dbHandle, traHandle, blobHandle, blobId,
bpbLength, bpb, false);
}
// Prepare a transaction for commit. First phase of a two phase commit.
ISC_STATUS API_ROUTINE isc_prepare_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
return isc_prepare_transaction2(userStatus, traHandle, 0, NULL);
}
// Prepare a transaction for commit. First phase of a two phase commit.
ISC_STATUS API_ROUTINE isc_prepare_transaction2(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
USHORT msgLength, const UCHAR* msg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->prepare(&statusWrapper, msgLength, msg);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Put a segment in a blob opened for writing (creation).
ISC_STATUS API_ROUTINE isc_put_segment(ISC_STATUS* userStatus, isc_blob_handle* blobHandle,
USHORT bufferLength, const SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
blob->putSegment(&statusWrapper, bufferLength, reinterpret_cast<const UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Put a slice in an array.
ISC_STATUS API_ROUTINE isc_put_slice(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, ISC_QUAD* arrayId, USHORT sdlLength, const SCHAR* sdl,
USHORT paramLength, const SLONG* param, SLONG sliceLength, void* slice)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
attachment->putSlice(&statusWrapper, transaction, arrayId, sdlLength, reinterpret_cast<const UCHAR*>(sdl),
paramLength, reinterpret_cast<const UCHAR*>(param), sliceLength, static_cast<UCHAR*>(slice));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Send a record to the host program.
ISC_STATUS API_ROUTINE isc_receive(ISC_STATUS* userStatus, isc_req_handle* reqHandle, USHORT msgType,
USHORT msgLength, void* msg, SSHORT level)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->receive(&statusWrapper, level, msgType, msgLength, reinterpret_cast<UCHAR*>(msg));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Connect to a transaction in limbo.
ISC_STATUS API_ROUTINE isc_reconnect_transaction(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT length, const SCHAR* id)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
nullCheck(traHandle, isc_bad_trans_handle);
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
YTransaction* transaction = attachment->reconnectTransaction(&statusWrapper, length,
reinterpret_cast<const UCHAR*>(id));
if (status.getState() & IStatus::STATE_ERRORS)
status_exception::raise(status);
*traHandle = transaction->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Release a request.
ISC_STATUS API_ROUTINE isc_release_request(ISC_STATUS* userStatus, isc_req_handle* reqHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->free(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*reqHandle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Provide information on blob object.
ISC_STATUS API_ROUTINE isc_request_info(ISC_STATUS* userStatus, isc_req_handle* reqHandle,
SSHORT level, SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->getInfo(&statusWrapper, level, itemLength, reinterpret_cast<const UCHAR*>(items),
bufferLength, reinterpret_cast<UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// API to be used to tell Firebird to reset it's FPE handler - eg: client has an FPE of it's own
// and just changed it. Returns prior setting of the FPE reset flag.
#if defined (SOLARIS) || defined (WIN_NT)
extern "C"
#endif
SLONG API_ROUTINE isc_reset_fpe(USHORT /*fpe_status*/)
{
// A client-only API call, isc_reset_fpe() is deprecated - we do not use
// the FPE handler anymore, it can't be used in multithreaded library.
// Parameter is ignored, it always returns FPE_RESET_ALL_API_CALL,
// this is the most close code to what we are doing now.
//static const USHORT FPE_RESET_INIT_ONLY = 0x0; // Don't reset FPE after init
//static const USHORT FPE_RESET_NEXT_API_CALL = 0x1; // Reset FPE on next gds call
static const USHORT FPE_RESET_ALL_API_CALL = 0x2; // Reset FPE on all gds call
return FPE_RESET_ALL_API_CALL;
}
// Abort a transaction, but keep all cursors open.
ISC_STATUS API_ROUTINE isc_rollback_retaining(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->rollbackRetaining(&statusWrapper);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Abort a transaction.
ISC_STATUS API_ROUTINE isc_rollback_transaction(ISC_STATUS* userStatus, isc_tr_handle* traHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->rollback(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*traHandle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Seek a blob.
ISC_STATUS API_ROUTINE isc_seek_blob(ISC_STATUS* userStatus, isc_blob_handle* blobHandle,
SSHORT mode, SLONG offset, SLONG* result)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
unsigned int pos = blob->seek(&statusWrapper, mode, offset);
if (!(status.getState() & IStatus::STATE_ERRORS) && result)
*result = pos;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get a record from the host program.
ISC_STATUS API_ROUTINE isc_send(ISC_STATUS* userStatus, isc_req_handle* reqHandle, USHORT msgType,
USHORT msgLength, const void* msg, SSHORT level)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->send(&statusWrapper, level, msgType,
msgLength, static_cast<const UCHAR*>(msg));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Attach a service through the first subsystem that recognizes it.
ISC_STATUS API_ROUTINE isc_service_attach(ISC_STATUS* userStatus, USHORT serviceLength,
const TEXT* serviceName, isc_svc_handle* publicHandle, USHORT spbLength, const SCHAR* spb)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
YService* service = NULL;
try
{
nullCheck(publicHandle, isc_bad_svc_handle);
if (!serviceName)
status_exception::raise(Arg::Gds(isc_service_att_err) << Arg::Gds(isc_svc_name_missing));
string svcName(serviceName, serviceLength ? serviceLength : fb_strlen(serviceName));
RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher);
dispatcher->setDbCryptCallback(&statusWrapper, TLS_GET(legacyCryptCallback));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
service = dispatcher->attachServiceManager(&statusWrapper, svcName.c_str(),
spbLength, reinterpret_cast<const UCHAR*>(spb));
if (status.getState() & IStatus::STATE_ERRORS)
return status[1];
*publicHandle = service->getHandle();
}
catch (const Exception& e)
{
if (service)
{
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
service->detach(&tempCheckStatusWrapper);
}
e.stuffException(&statusWrapper);
}
return status[1];
}
// Close down a service.
ISC_STATUS API_ROUTINE isc_service_detach(ISC_STATUS* userStatus, isc_svc_handle* handle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YService> service(translateHandle(services, handle));
service->detach(&statusWrapper);
if (!(status.getState() & IStatus::STATE_ERRORS))
*handle = 0;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Provide information on service object.
// NOTE: The parameter RESERVED must not be used for any purpose as there are networking issues
// involved (as with any handle that goes over the network). This parameter will be implemented at
// a later date.
ISC_STATUS API_ROUTINE isc_service_query(ISC_STATUS* userStatus, isc_svc_handle* handle,
isc_resv_handle* /*reserved*/, USHORT sendItemLength, const SCHAR* sendItems, USHORT recvItemLength,
const SCHAR* recvItems, USHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YService> service(translateHandle(services, handle));
service->query(&statusWrapper, sendItemLength, reinterpret_cast<const unsigned char*>(sendItems),
recvItemLength, reinterpret_cast<const unsigned char*>(recvItems),
bufferLength, reinterpret_cast<unsigned char*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Starts a service thread.
// NOTE: The parameter RESERVED must not be used for any purpose as there are networking issues
// involved (as with any handle that goes over the network). This parameter will be implemented at
// a later date.
ISC_STATUS API_ROUTINE isc_service_start(ISC_STATUS* userStatus, isc_svc_handle* handle,
isc_resv_handle* /*reserved*/, USHORT spbLength, const SCHAR* spb)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YService> service(translateHandle(services, handle));
service->start(&statusWrapper, spbLength, reinterpret_cast<const unsigned char*>(spb));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get a record from the host program.
ISC_STATUS API_ROUTINE isc_start_and_send(ISC_STATUS* userStatus, isc_req_handle* reqHandle,
isc_tr_handle* traHandle, USHORT msgType, USHORT msgLength, const void* msg, SSHORT level)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
request->startAndSend(&statusWrapper, transaction, level, msgType,
msgLength, reinterpret_cast<const UCHAR*>(msg));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get a record from the host program.
ISC_STATUS API_ROUTINE isc_start_request(ISC_STATUS* userStatus, isc_req_handle* reqHandle,
isc_tr_handle* traHandle, SSHORT level)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
request->start(&statusWrapper, transaction, level);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Start a transaction.
ISC_STATUS API_ROUTINE isc_start_multiple(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
SSHORT count, void* vec)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
TEB* vector = (TEB*) vec;
YTransaction* multiTrans = NULL;
try
{
nullCheck(traHandle, isc_bad_trans_handle);
if (count <= 0 || !vector)
status_exception::raise(Arg::Gds(isc_bad_teb_form));
if (count == 1)
{
RefPtr<YAttachment> attachment(translateHandle(attachments, vector->teb_database));
YTransaction* transaction = attachment->startTransaction(&statusWrapper,
vector->teb_tpb_length, vector->teb_tpb);
if (transaction)
*traHandle = transaction->getHandle();
return status[1];
}
DtcStart* ds = MasterImplementation::dtc->startBuilder(&statusWrapper);
if (statusWrapper.getState() & IStatus::STATE_ERRORS)
return status[1];
for (SSHORT i = 0; i < count; ++i, ++vector)
{
RefPtr<YAttachment> attachment(translateHandle(attachments, vector->teb_database));
ds->addWithTpb(&statusWrapper, attachment, vector->teb_tpb_length,
reinterpret_cast<const unsigned char*>(vector->teb_tpb));
if (statusWrapper.getState() & IStatus::STATE_ERRORS)
{
ds->dispose();
return status[1];
}
}
multiTrans = ds->start(&statusWrapper);
if (!multiTrans)
{
ds->dispose();
return status[1];
}
*traHandle = multiTrans->getHandle();
}
catch (const Exception& e)
{
if (multiTrans)
multiTrans->release();
e.stuffException(&statusWrapper);
}
return status[1];
}
// Start a transaction..
ISC_STATUS API_ROUTINE_VARARG isc_start_transaction(ISC_STATUS* userStatus,
isc_tr_handle* traHandle, SSHORT count, ...)
{
try
{
HalfStaticArray<TEB, 16> tebs;
TEB* teb = tebs.getBuffer(count);
const TEB* const end = teb + count;
va_list ptr;
va_start(ptr, count);
for (TEB* teb_iter = teb; teb_iter < end; teb_iter++)
{
teb_iter->teb_database = va_arg(ptr, isc_db_handle*);
teb_iter->teb_tpb_length = va_arg(ptr, int);
teb_iter->teb_tpb = va_arg(ptr, UCHAR *);
}
va_end(ptr);
return isc_start_multiple(userStatus, traHandle, count, teb);
}
catch (const Exception& e)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
e.stuffException(&statusWrapper);
return status[1];
}
}
// Execute a procedure.
ISC_STATUS API_ROUTINE isc_transact_request(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
isc_tr_handle* traHandle, USHORT blrLength, SCHAR* blr, USHORT inMsgLength, SCHAR* inMsg,
USHORT outMsgLength, SCHAR* outMsg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
attachment->transactRequest(&statusWrapper, transaction,
blrLength, reinterpret_cast<unsigned char*>(blr),
inMsgLength, reinterpret_cast<unsigned char*>(inMsg),
outMsgLength, reinterpret_cast<unsigned char*>(outMsg));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Register a transaction specific cleanup handler.
ISC_STATUS API_ROUTINE gds__transaction_cleanup(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
TransactionCleanupRoutine* routine, void* arg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
AutoPtr<CleanupCallbackImpl<YTransaction, TransactionCleanupRoutine> > callback(
FB_NEW CleanupCallbackImpl<YTransaction, TransactionCleanupRoutine>(transaction, routine, arg));
transaction->addCleanupHandler(&statusWrapper, callback);
if (!(status.getState() & IStatus::STATE_ERRORS))
callback.release();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Provide information on transaction object.
ISC_STATUS API_ROUTINE isc_transaction_info(ISC_STATUS* userStatus, isc_tr_handle* traHandle,
SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle));
transaction->getInfo(&statusWrapper, itemLength, reinterpret_cast<const UCHAR*>(items),
bufferLength, reinterpret_cast<UCHAR*>(buffer));
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Unwind a running request. This is potentially nasty since it can be called asynchronously.
ISC_STATUS API_ROUTINE isc_unwind_request(ISC_STATUS* userStatus, isc_req_handle* reqHandle,
SSHORT level)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YRequest> request(translateHandle(requests, reqHandle));
request->unwind(&statusWrapper, level);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Shutdown firebird.
int API_ROUTINE fb_shutdown(unsigned int timeout, const int reason)
{
StatusVector status(NULL);
CheckStatusWrapper statusWrapper(&status);
RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher);
dispatcher->shutdown(&statusWrapper, timeout, reason);
return (status.getState() & IStatus::STATE_ERRORS) ? FB_FAILURE : FB_SUCCESS;
}
// Register client callback to be called when FB is going down.
ISC_STATUS API_ROUTINE fb_shutdown_callback(ISC_STATUS* userStatus, FB_SHUTDOWN_CALLBACK callBack,
const int mask, void* arg)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
ShutChain::add(callBack, mask, arg);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Check the attachment handle for persistent errors.
ISC_STATUS API_ROUTINE fb_ping(ISC_STATUS* userStatus, isc_db_handle* dbHandle)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
RefPtr<YAttachment> attachment(translateHandle(attachments, dbHandle));
attachment->ping(&statusWrapper);
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get the legacy handle of a database.
ISC_STATUS API_ROUTINE fb_get_database_handle(ISC_STATUS* userStatus, isc_db_handle* handle,
void* obj)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
if (!obj)
status_exception::raise(Arg::Gds(isc_bad_db_handle));
// Must first cast to the base interface.
YAttachment* yObject = static_cast<YAttachment*>(static_cast<IAttachment*>(obj));
*handle = yObject->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get the legacy handle of a transaction.
ISC_STATUS API_ROUTINE fb_get_transaction_handle(ISC_STATUS* userStatus, isc_tr_handle* handle,
void* obj)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
if (!obj)
status_exception::raise(Arg::Gds(isc_bad_trans_handle));
// Must first cast to the base interface.
YTransaction* yObject = static_cast<YTransaction*>(static_cast<ITransaction*>(obj));
*handle = yObject->getHandle();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get transaction interface by legacy handle
ISC_STATUS API_ROUTINE fb_get_transaction_interface(ISC_STATUS* userStatus, void* iPtr,
isc_tr_handle* hndlPtr)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
ITransaction** tra = (ITransaction**) iPtr;
if (*tra)
(Arg::Gds(isc_random) << "Interface must be null").raise();
RefPtr<YTransaction> transaction(translateHandle(transactions, hndlPtr));
transaction->addRef();
*tra = transaction;
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
// Get statement interface by legacy handle
ISC_STATUS API_ROUTINE fb_get_statement_interface(ISC_STATUS* userStatus, void* iPtr,
isc_stmt_handle* hndlPtr)
{
StatusVector status(userStatus);
CheckStatusWrapper statusWrapper(&status);
try
{
IStatement** stmt = (IStatement**) iPtr;
if (*stmt)
(Arg::Gds(isc_random) << "Interface must be null").raise();
RefPtr<IscStatement> statement(translateHandle(statements, hndlPtr));
statement->checkPrepared(isc_info_unprepared_stmt);
*stmt = statement->getInterface();
}
catch (const Exception& e)
{
e.stuffException(&statusWrapper);
}
return status[1];
}
//-------------------------------------
namespace Why {
IAttachment* MasterImplementation::registerAttachment(IProvider* provider, IAttachment* attachment)
{
IAttachment* rc = FB_NEW YAttachment(provider, attachment, "");
rc->addRef();
attachment->addRef();
return rc;
}
ITransaction* MasterImplementation::registerTransaction(IAttachment* attachment,
ITransaction* transaction)
{
ITransaction* rc = FB_NEW YTransaction(static_cast<YAttachment*>(attachment), transaction);
rc->addRef();
transaction->addRef();
return rc;
}
//-------------------------------------
YEvents::YEvents(YAttachment* aAttachment, IEvents* aNext, IEventCallback* aCallback)
: YHelper(aNext), attachment(aAttachment), callback(aCallback)
{
attachment.get()->childEvents.add(this);
}
FB_API_HANDLE& YEvents::getHandle()
{
if (!handle)
makeHandle(&events, this, handle);
return handle;
}
void YEvents::destroy(unsigned dstrFlags)
{
YAttachment* att = attachment.release();
if (att)
att->childEvents.remove(this);
removeHandle(&events, handle);
if (!(dstrFlags & DF_RELEASE))
{
const bool allowCancel = destroyed.compareExchange(0, 1);
if (!allowCancel)
return;
}
destroy2(dstrFlags);
}
void YEvents::cancel(CheckStatusWrapper* status)
{
const bool allowCancel = destroyed.compareExchange(0, 1);
if (!allowCancel)
return;
try
{
YEntry<YEvents> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{
entry.next()->cancel(status);
if (status->getErrors()[1] == isc_att_shutdown)
status->init();
}, [&]{entry.next()->deprecatedCancel(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YEvents::deprecatedCancel(CheckStatusWrapper* status)
{
cancel(status);
}
//-------------------------------------
YRequest::YRequest(YAttachment* aAttachment, IRequest* aNext)
: YHelper(aNext),
attachment(aAttachment),
userHandle(NULL)
{
attachment.get()->childRequests.add(this);
}
isc_req_handle& YRequest::getHandle()
{
if (!handle)
makeHandle(&requests, this, handle);
return handle;
}
void YRequest::destroy(unsigned dstrFlags)
{
if (userHandle)
{
*userHandle = 0;
userHandle = NULL;
}
YAttachment* att = attachment.release();
if (att)
att->childRequests.remove(this);
removeHandle(&requests, handle);
destroy2(dstrFlags);
}
void YRequest::receive(CheckStatusWrapper* status, int level, unsigned int msgType,
unsigned int length, void* message)
{
try
{
YEntry<YRequest> entry(status, this);
entry.next()->receive(status, level, msgType, length, message);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::send(CheckStatusWrapper* status, int level, unsigned int msgType,
unsigned int length, const void* message)
{
try
{
YEntry<YRequest> entry(status, this);
entry.next()->send(status, level, msgType, length, message);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::getInfo(CheckStatusWrapper* status, int level, unsigned int itemsLength,
const unsigned char* items, unsigned int bufferLength, unsigned char* buffer)
{
try
{
YEntry<YRequest> entry(status, this);
entry.next()->getInfo(status, level, itemsLength, items, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::start(CheckStatusWrapper* status, ITransaction* transaction, int level)
{
try
{
YEntry<YRequest> entry(status, this);
NextTransaction trans;
attachment.get()->getNextTransaction(status, transaction, trans);
entry.next()->start(status, trans, level);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::startAndSend(CheckStatusWrapper* status, ITransaction* transaction, int level,
unsigned int msgType, unsigned int length, const void* message)
{
try
{
YEntry<YRequest> entry(status, this);
NextTransaction trans;
attachment.get()->getNextTransaction(status, transaction, trans);
entry.next()->startAndSend(status, trans, level, msgType, length, message);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::unwind(CheckStatusWrapper* status, int level)
{
try
{
YEntry<YRequest> entry(status, this);
entry.next()->unwind(status, level);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::free(CheckStatusWrapper* status)
{
try
{
YEntry<YRequest> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->free(status);}, [&]{entry.next()->deprecatedFree(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YRequest::deprecatedFree(CheckStatusWrapper* status)
{
free(status);
}
//-------------------------------------
YBlob::YBlob(YAttachment* aAttachment, YTransaction* aTransaction, IBlob* aNext)
: YHelper(aNext),
attachment(aAttachment),
transaction(aTransaction)
{
aAttachment->childBlobs.add(this);
aTransaction->childBlobs.add(this);
}
isc_blob_handle& YBlob::getHandle()
{
if (!handle)
makeHandle(&blobs, this, handle);
return handle;
}
void YBlob::destroy(unsigned dstrFlags)
{
YAttachment* att = attachment.release();
if (att)
att->childBlobs.remove(this);
YTransaction* tra = transaction.release();
if (tra)
tra->childBlobs.remove(this);
removeHandle(&blobs, handle);
destroy2(dstrFlags);
}
void YBlob::getInfo(CheckStatusWrapper* status, unsigned int itemsLength,
const unsigned char* items, unsigned int bufferLength, unsigned char* buffer)
{
try
{
YEntry<YBlob> entry(status, this);
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
int YBlob::getSegment(CheckStatusWrapper* status, unsigned int bufferLength,
void* buffer, unsigned int* segmentLength)
{
try
{
YEntry<YBlob> entry(status, this);
return entry.next()->getSegment(status, bufferLength, buffer, segmentLength);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YBlob::putSegment(CheckStatusWrapper* status, unsigned int length, const void* buffer)
{
try
{
YEntry<YBlob> entry(status, this);
entry.next()->putSegment(status, length, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBlob::cancel(CheckStatusWrapper* status)
{
try
{
YEntry<YBlob> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->cancel(status);}, [&]{entry.next()->deprecatedCancel(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBlob::deprecatedCancel(CheckStatusWrapper* status)
{
cancel(status);
}
void YBlob::close(CheckStatusWrapper* status)
{
try
{
YEntry<YBlob> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->close(status);}, [&]{entry.next()->deprecatedClose(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBlob::deprecatedClose(CheckStatusWrapper* status)
{
close(status);
}
int YBlob::seek(CheckStatusWrapper* status, int mode, int offset)
{
try
{
YEntry<YBlob> entry(status, this);
return entry.next()->seek(status, mode, offset);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
//-------------------------------------
YStatement::YStatement(YAttachment* aAttachment, IStatement* aNext)
: YHelper(aNext),
attachment(aAttachment), cursor(NULL), input(true), output(false)
{
attachment.get()->childStatements.add(this);
}
void YStatement::destroy(unsigned dstrFlags)
{
{ // scope
MutexLockGuard guard(statementMutex, FB_FUNCTION);
if (cursor)
{
cursor->destroy(DF_RELEASE);
cursor = NULL;
}
}
YAttachment* att = attachment.release();
if (att)
att->childStatements.remove(this);
destroy2(dstrFlags);
}
void YStatement::getInfo(CheckStatusWrapper* status, unsigned int itemsLength,
const unsigned char* items, unsigned int bufferLength, unsigned char* buffer)
{
try
{
YEntry<YStatement> entry(status, this);
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
unsigned YStatement::getType(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return entry.next()->getType(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
unsigned YStatement::getFlags(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return entry.next()->getFlags(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
const char* YStatement::getPlan(CheckStatusWrapper* status, FB_BOOLEAN detailed)
{
try
{
YEntry<YStatement> entry(status, this);
return entry.next()->getPlan(status, detailed);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
IMessageMetadata* YMetadata::get(IStatement* next, YStatement* statement)
{
if (!flag)
{
MutexLockGuard guard(statement->statementMutex, FB_FUNCTION);
if (!flag)
{
RefPtr<IMessageMetadata> nextMeta(REF_NO_INCR, statement->getMetadata(input, next));
metadata = FB_NEW MsgMetadata(nextMeta);
flag = true;
}
}
metadata->addRef();
return metadata;
}
IMessageMetadata* YStatement::getMetadata(bool in, IStatement* next)
{
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);
IMessageMetadata* rc = in ?
next->getInputMetadata(&statusWrapper) : next->getOutputMetadata(&statusWrapper);
if (status.getState() & IStatus::STATE_ERRORS)
status_exception::raise(&status);
return rc;
}
IMessageMetadata* YStatement::getInputMetadata(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return input.get(entry.next(), this);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
IMessageMetadata* YStatement::getOutputMetadata(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return output.get(entry.next(), this);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
ISC_UINT64 YStatement::getAffectedRecords(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return entry.next()->getAffectedRecords(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
ITransaction* YStatement::execute(CheckStatusWrapper* status, ITransaction* transaction,
IMessageMetadata* inMetadata, void* inBuffer, IMessageMetadata* outMetadata, void* outBuffer)
{
try
{
YEntry<YStatement> entry(status, this);
NextTransaction trans;
if (transaction)
attachment.get()->getNextTransaction(status, transaction, trans);
ITransaction* newTrans = entry.next()->execute(status, trans, inMetadata, inBuffer,
outMetadata, outBuffer);
if (newTrans == trans)
newTrans = transaction;
else
{
if (transaction)
{
if (trans)
trans->addRef(); // Will be decremented by release on next line
transaction->release();
transaction = NULL; // Get ready for correct return in OOM case
}
if (newTrans)
{
newTrans = FB_NEW YTransaction(attachment.get(), newTrans);
newTrans->addRef();
}
}
return newTrans;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return transaction;
}
IResultSet* YStatement::openCursor(CheckStatusWrapper* status, ITransaction* transaction,
IMessageMetadata* inMetadata, void* inBuffer, IMessageMetadata* outMetadata, unsigned int flags)
{
try
{
YEntry<YStatement> entry(status, this);
NextTransaction trans;
if (transaction)
attachment.get()->getNextTransaction(status, transaction, trans);
IResultSet* rs = entry.next()->openCursor(status, trans, inMetadata, inBuffer, outMetadata, flags);
if (status->getState() & IStatus::STATE_ERRORS)
{
return NULL;
}
fb_assert(rs);
YTransaction* const yTra = attachment.get()->getTransaction(transaction);
YResultSet* r = FB_NEW YResultSet(attachment.get(), yTra, this, rs);
r->addRef();
return r;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
void YStatement::free(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->free(status);}, [&]{entry.next()->deprecatedFree(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YStatement::deprecatedFree(CheckStatusWrapper* status)
{
free(status);
}
YBatch* YStatement::createBatch(CheckStatusWrapper* status, IMessageMetadata* inMetadata, unsigned parLength,
const unsigned char* par)
{
try
{
YEntry<YStatement> entry(status, this);
IBatch* batch = entry.next()->createBatch(status, inMetadata, parLength, par);
if (status->getState() & IStatus::STATE_ERRORS)
{
return NULL;
}
YBatch* newBatch = FB_NEW YBatch(attachment.get(), batch);
newBatch->addRef();
return newBatch;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
//-------------------------------------
IscStatement::~IscStatement()
{
if (userHandle)
{
*userHandle = 0;
userHandle = nullptr;
}
removeHandle(&statements, handle);
}
void IscStatement::destroy(unsigned)
{
YAttachment* att = attachment.release();
if (att)
att->childIscStatements.remove(this);
release();
}
isc_stmt_handle& IscStatement::getHandle()
{
if (!handle)
makeHandle(&statements, this, handle);
return handle;
}
void IscStatement::openCursor(CheckStatusWrapper* status, isc_tr_handle* traHandle,
IMessageMetadata* inMetadata, UCHAR* buffer, IMessageMetadata* outMetadata)
{
checkCursorClosed();
// Transaction is not optional for statement returning result set
RefPtr<YTransaction> transaction = translateHandle(transactions, traHandle);
statement->openCursor(status, transaction, inMetadata, buffer, outMetadata, 0);
if (status->getState() & IStatus::STATE_ERRORS)
return;
fb_assert(statement->cursor);
delayedFormat = (outMetadata == DELAYED_OUT_FORMAT);
}
void IscStatement::closeCursor(CheckStatusWrapper* status, bool raise)
{
if (statement && statement->cursor)
{
fb_assert(!pseudoOpened);
statement->cursor->close(status);
if (status->getState() & IStatus::STATE_ERRORS)
status_exception::raise(status);
statement->cursor = NULL;
}
else if (pseudoOpened)
pseudoOpened = false;
else if (raise)
Arg::Gds(isc_dsql_cursor_close_err).raise();
}
void IscStatement::closeStatement(CheckStatusWrapper* status)
{
if (statement)
{
statement->free(status);
if (status->getState() & IStatus::STATE_ERRORS)
status_exception::raise(status);
statement = NULL;
}
}
void IscStatement::execute(CheckStatusWrapper* status, isc_tr_handle* traHandle,
IMessageMetadata* inMetadata, UCHAR* inBuffer, IMessageMetadata* outMetadata,
UCHAR* outBuffer)
{
checkCursorClosed();
RefPtr<YTransaction> transaction;
if (traHandle && *traHandle)
transaction = translateHandle(transactions, traHandle);
ITransaction* newTrans = statement->execute(status, transaction,
inMetadata, inBuffer, outMetadata, outBuffer);
if (!(status->getState() & IStatus::STATE_ERRORS))
{
if (transaction && !newTrans)
{
transaction->destroy(0);
*traHandle = 0;
}
else if (!transaction && newTrans)
{
// in this case we know for sure that newTrans points to YTransaction
if (traHandle)
*traHandle = static_cast<YTransaction*>(newTrans)->getHandle();
}
}
}
FB_BOOLEAN IscStatement::fetch(CheckStatusWrapper* status, IMessageMetadata* outMetadata, UCHAR* outBuffer)
{
checkCursorOpened();
if (delayedFormat)
{
statement->cursor->setDelayedOutputFormat(status, outMetadata);
if (status->getState() & IStatus::STATE_ERRORS)
return FB_FALSE;
delayedFormat = false;
}
return statement->cursor->fetchNext(status, outBuffer) == IStatus::RESULT_OK;
}
unsigned int YStatement::getTimeout(CheckStatusWrapper* status)
{
try
{
YEntry<YStatement> entry(status, this);
return entry.next()->getTimeout(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YStatement::setTimeout(CheckStatusWrapper* status, unsigned int timeOut)
{
try
{
YEntry<YStatement> entry(status, this);
entry.next()->setTimeout(status, timeOut);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
//-------------------------------------
YResultSet::YResultSet(YAttachment* anAttachment, YTransaction* aTransaction, IResultSet* aNext)
: YHelper(aNext),
attachment(anAttachment),
transaction(aTransaction),
statement(NULL)
{
fb_assert(aTransaction && aNext);
aTransaction->childCursors.add(this);
}
YResultSet::YResultSet(YAttachment* anAttachment, YTransaction* aTransaction,
YStatement* aStatement, IResultSet* aNext)
: YHelper(aNext),
attachment(anAttachment),
transaction(aTransaction),
statement(aStatement)
{
fb_assert(aTransaction && aNext);
aTransaction->childCursors.add(this);
MutexLockGuard guard(statement->statementMutex, FB_FUNCTION);
if (statement->cursor)
Arg::Gds(isc_cursor_already_open).raise();
statement->cursor = this;
}
void YResultSet::destroy(unsigned dstrFlags)
{
if (statement)
{
MutexLockGuard guard(statement->statementMutex, FB_FUNCTION);
fb_assert(!statement->cursor || statement->cursor == this);
statement->cursor = NULL;
}
YTransaction* tra = transaction.release();
if (tra)
tra->childCursors.remove(this);
destroy2(dstrFlags);
}
void YStatement::setCursorName(CheckStatusWrapper* status, const char* name)
{
try
{
YEntry<YStatement> entry(status, this);
entry.next()->setCursorName(status, name);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YResultSet::setDelayedOutputFormat(CheckStatusWrapper* status, IMessageMetadata* format)
{
try
{
YEntry<YResultSet> entry(status, this);
entry.next()->setDelayedOutputFormat(status, format);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
int YResultSet::fetchNext(CheckStatusWrapper* status, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchNext(status, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
int YResultSet::fetchPrior(CheckStatusWrapper* status, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchPrior(status, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
int YResultSet::fetchFirst(CheckStatusWrapper* status, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchFirst(status, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
int YResultSet::fetchLast(CheckStatusWrapper* status, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchLast(status, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
int YResultSet::fetchAbsolute(CheckStatusWrapper* status, int position, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchAbsolute(status, position, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
int YResultSet::fetchRelative(CheckStatusWrapper* status, int offset, void* buffer)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->fetchRelative(status, offset, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
FB_BOOLEAN YResultSet::isEof(CheckStatusWrapper* status)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->isEof(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
FB_BOOLEAN YResultSet::isBof(CheckStatusWrapper* status)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->isBof(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return FB_FALSE;
}
IMessageMetadata* YResultSet::getMetadata(CheckStatusWrapper* status)
{
try
{
YEntry<YResultSet> entry(status, this);
return entry.next()->getMetadata(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
void YResultSet::close(CheckStatusWrapper* status)
{
try
{
YEntry<YResultSet> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->close(status);}, [&]{entry.next()->deprecatedClose(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YResultSet::deprecatedClose(CheckStatusWrapper* status)
{
close(status);
}
//-------------------------------------
YBatch::YBatch(YAttachment* anAttachment, IBatch* aNext)
: YHelper(aNext),
attachment(anAttachment)
{ }
void YBatch::destroy(unsigned dstrFlags)
{
destroy2(dstrFlags);
}
void YBatch::add(CheckStatusWrapper* status, unsigned count, const void* inBuffer)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->add(status, count, inBuffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBatch::addBlob(CheckStatusWrapper* status, unsigned length, const void* inBuffer, ISC_QUAD* blobId,
unsigned parLength, const unsigned char* par)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->addBlob(status, length, inBuffer, blobId, parLength, par);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBatch::appendBlobData(CheckStatusWrapper* status, unsigned length, const void* inBuffer)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->appendBlobData(status, length, inBuffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBatch::addBlobStream(CheckStatusWrapper* status, unsigned length, const void* inBuffer)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->addBlobStream(status, length, inBuffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
unsigned YBatch::getBlobAlignment(CheckStatusWrapper* status)
{
try
{
YEntry<YBatch> entry(status, this);
return entry.next()->getBlobAlignment(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YBatch::setDefaultBpb(CheckStatusWrapper* status, unsigned parLength, const unsigned char* par)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->setDefaultBpb(status, parLength, par);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
IMessageMetadata* YBatch::getMetadata(CheckStatusWrapper* status)
{
try
{
YEntry<YBatch> entry(status, this);
return entry.next()->getMetadata(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YBatch::registerBlob(CheckStatusWrapper* status, const ISC_QUAD* existingBlob, ISC_QUAD* blobId)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->registerBlob(status, existingBlob, blobId);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
IBatchCompletionState* YBatch::execute(CheckStatusWrapper* status, ITransaction* transaction)
{
try
{
YEntry<YBatch> entry(status, this);
return entry.next()->execute(status, transaction);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
void YBatch::cancel(CheckStatusWrapper* status)
{
try
{
YEntry<YBatch> entry(status, this);
entry.next()->cancel(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBatch::close(CheckStatusWrapper* status)
{
try
{
YEntry<YBatch> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->close(status);}, [&]{entry.next()->deprecatedClose(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YBatch::deprecatedClose(CheckStatusWrapper* status)
{
close(status);
}
//-------------------------------------
YReplicator::YReplicator(YAttachment* anAttachment, IReplicator* aNext)
: YHelper(aNext),
attachment(anAttachment)
{ }
void YReplicator::destroy(unsigned dstrFlags)
{
destroy2(dstrFlags);
}
void YReplicator::process(CheckStatusWrapper* status, unsigned length, const unsigned char* data)
{
try
{
YEntry<YReplicator> entry(status, this);
entry.next()->process(status, length, data);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YReplicator::close(CheckStatusWrapper* status)
{
try
{
YEntry<YReplicator> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->close(status);}, [&]{entry.next()->deprecatedClose(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YReplicator::deprecatedClose(CheckStatusWrapper* status)
{
close(status);
}
//-------------------------------------
YTransaction::YTransaction(YAttachment* aAttachment, ITransaction* aNext)
: YHelper(aNext),
attachment(aAttachment),
childBlobs(getPool()),
childCursors(getPool()),
cleanupHandlers(getPool())
{
if (aAttachment)
aAttachment->childTransactions.add(this);
}
isc_tr_handle& YTransaction::getHandle()
{
// Not assigning handle in ctor is essential for correct operation
// of YTransaction::destroy - change it when changing handle behavior.
if (!handle)
makeHandle(&transactions, this, handle);
return handle;
}
void YTransaction::destroy(unsigned dstrFlags)
{
for (CleanupCallback** handler = cleanupHandlers.begin();
handler != cleanupHandlers.end();
++handler)
{
(*handler)->cleanupCallbackFunction();
}
cleanupHandlers.clear();
// If handle is not null then application works with ISC API and
// can't release cursors by itself. See also CORE-6067.
const bool releaseCursors = handle;
childBlobs.destroy(dstrFlags & ~(DF_RELEASE | DF_KEEP_NEXT));
childCursors.destroy((releaseCursors ? dstrFlags : dstrFlags & ~DF_RELEASE) & ~DF_KEEP_NEXT);
YAttachment* att = attachment.release();
if (att)
att->childTransactions.remove(this);
removeHandle(&transactions, handle);
destroy2(dstrFlags);
}
void YTransaction::getInfo(CheckStatusWrapper* status, unsigned int itemsLength,
const unsigned char* items, unsigned int bufferLength, unsigned char* buffer)
{
Array<unsigned char> newItemsBuffer;
try
{
YEntry<YTransaction> entry(status, this);
fb_utils::getDbPathInfo(itemsLength, items, bufferLength, buffer,
newItemsBuffer, attachment.get()->dbPath);
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::prepare(CheckStatusWrapper* status, unsigned int msgLength,
const unsigned char* message)
{
try
{
YEntry<YTransaction> entry(status, this);
entry.next()->prepare(status, msgLength, message);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::commit(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this);
done(status, entry, this, [&]{entry.next()->commit(status);}, [&]{entry.next()->deprecatedCommit(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::commitRetaining(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this);
entry.next()->commitRetaining(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::rollback(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{
entry.next()->rollback(status);
if (isNetworkError(status))
status->init();
}, [&]{entry.next()->deprecatedRollback(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::rollbackRetaining(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this);
entry.next()->rollbackRetaining(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::disconnect(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this);
/*** ASF: We must call the provider, but this makes the shutdown to crash currently.
for (YTransaction* i = this; i; i = i->sub)
{
if (i->next)
{
i->next->disconnect(status);
if (status->getState() & IStatus::STATE_ERRORS)
return;
i->next = NULL;
}
}
***/
destroy(DF_RELEASE);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YTransaction::deprecatedCommit(CheckStatusWrapper* status)
{
commit(status);
}
void YTransaction::deprecatedRollback(CheckStatusWrapper* status)
{
rollback(status);
}
void YTransaction::deprecatedDisconnect(CheckStatusWrapper* status)
{
disconnect(status);
}
void YTransaction::addCleanupHandler(CheckStatusWrapper* status, CleanupCallback* callback)
{
try
{
YEntry<YTransaction> entry(status, this);
cleanupHandlers.add(callback);
}
catch (const Exception& ex)
{
ex.stuffException(status);
}
}
void YTransaction::selfCheck()
{
if (!next)
Arg::Gds(isc_bad_trans_handle).raise();
}
ITransaction* YTransaction::join(CheckStatusWrapper* status, ITransaction* transaction)
{
try
{
YEntry<YTransaction> entry(status, this);
return DtcInterfacePtr()->join(status, this, transaction);
}
catch (const Exception& ex)
{
ex.stuffException(status);
}
return NULL;
}
ITransaction* YTransaction::validate(CheckStatusWrapper* status, IAttachment* testAtt)
{
try
{
YEntry<YTransaction> entry(status, this);
// Do not raise error in status - just return NULL if attachment does not match
if (attachment.get() == testAtt)
return this;
return entry.next()->validate(status, testAtt);
}
catch (const Exception& ex)
{
ex.stuffException(status);
}
return NULL;
}
YTransaction* YTransaction::enterDtc(CheckStatusWrapper* status)
{
try
{
YEntry<YTransaction> entry(status, this);
YTransaction* copy = FB_NEW YTransaction(this);
// copy is created with zero handle
copy->addRef();
copy->addRef();
next->addRef(); // We use NoIncr in YTransaction ctor
YAttachment* att = attachment.release();
if (att)
att->childTransactions.remove(this);
removeHandle(&transactions, handle);
next = NULL;
release();
return copy;
}
catch (const Exception& ex)
{
ex.stuffException(status);
}
return NULL;
}
//-------------------------------------
YAttachment::YAttachment(IProvider* aProvider, IAttachment* aNext, const PathName& aDbPath)
: YHelper(aNext),
provider(aProvider),
dbPath(getPool(), aDbPath),
childBlobs(getPool()),
childEvents(getPool()),
childRequests(getPool()),
childStatements(getPool()),
childIscStatements(getPool()),
childTransactions(getPool()),
cleanupHandlers(getPool())
{
provider->addRef();
makeHandle(&attachments, this, handle);
}
isc_db_handle& YAttachment::getHandle()
{
fb_assert(handle);
return handle;
}
YAttachment::~YAttachment()
{
if (provider)
PluginManagerInterfacePtr()->releasePlugin(provider);
}
void YAttachment::destroy(unsigned dstrFlags)
{
for (CleanupCallback** handler = cleanupHandlers.begin();
handler != cleanupHandlers.end();
++handler)
{
(*handler)->cleanupCallbackFunction();
}
cleanupHandlers.clear();
unsigned childFlags = dstrFlags & ~(DF_KEEP_NEXT | DF_RELEASE);
childRequests.destroy(childFlags);
childStatements.destroy(childFlags);
childIscStatements.destroy(childFlags);
childBlobs.destroy(childFlags);
childEvents.destroy(childFlags);
childTransactions.destroy(childFlags);
removeHandle(&attachments, handle);
destroy2(dstrFlags);
}
void YAttachment::shutdown()
{
if (provider)
{
destroy(0);
PluginManagerInterfacePtr()->releasePlugin(provider);
provider = NULL;
}
}
void YAttachment::getInfo(CheckStatusWrapper* status, unsigned int itemsLength,
const unsigned char* items, unsigned int bufferLength, unsigned char* buffer)
{
try
{
YEntry<YAttachment> entry(status, this);
entry.next()->getInfo(status, itemsLength, items, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
YStatement* YAttachment::prepare(CheckStatusWrapper* status, ITransaction* transaction,
unsigned int stmtLength, const char* sqlStmt, unsigned int dialect, unsigned int flags)
{
try
{
YEntry<YAttachment> entry(status, this);
if (!sqlStmt)
Arg::Gds(isc_command_end_err).raise();
NextTransaction trans;
if (transaction)
getNextTransaction(status, transaction, trans);
IStatement* st = entry.next()->prepare(status, trans, stmtLength, sqlStmt, dialect, flags);
if (!(status->getState() & IStatus::STATE_ERRORS))
{
YStatement* r = FB_NEW YStatement(this, st);
r->addRef();
return r;
}
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
YTransaction* YAttachment::startTransaction(CheckStatusWrapper* status, unsigned int tpbLength,
const unsigned char* tpb)
{
try
{
YEntry<YAttachment> entry(status, this);
ITransaction* transaction = entry.next()->startTransaction(status, tpbLength, tpb);
if (transaction)
{
YTransaction* r = FB_NEW YTransaction(this, transaction);
r->addRef();
return r;
}
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
YTransaction* YAttachment::reconnectTransaction(CheckStatusWrapper* status, unsigned int length,
const unsigned char* id)
{
try
{
YEntry<YAttachment> entry(status, this);
ITransaction* transaction = entry.next()->reconnectTransaction(status, length, id);
if (transaction)
{
YTransaction* r = FB_NEW YTransaction(this, transaction);
r->addRef();
return r;
}
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
YRequest* YAttachment::compileRequest(CheckStatusWrapper* status, unsigned int blrLength,
const unsigned char* blr)
{
try
{
YEntry<YAttachment> entry(status, this);
IRequest* request = entry.next()->compileRequest(status, blrLength, blr);
YRequest* r = NULL;
if (request != NULL)
{
r = FB_NEW YRequest(this, request);
r->addRef();
}
return r;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
void YAttachment::transactRequest(CheckStatusWrapper* status, ITransaction* transaction,
unsigned int blrLength, const unsigned char* blr,
unsigned int inMsgLength, const unsigned char* inMsg,
unsigned int outMsgLength, unsigned char* outMsg)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
getNextTransaction(status, transaction, trans);
entry.next()->transactRequest(status, trans, blrLength, blr, inMsgLength, inMsg,
outMsgLength, outMsg);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
YBlob* YAttachment::createBlob(CheckStatusWrapper* status, ITransaction* transaction, ISC_QUAD* id,
unsigned int bpbLength, const unsigned char* bpb)
{
try
{
YEntry<YAttachment> entry(status, this);
YTransaction* yTra = getTransaction(transaction);
NextTransaction nextTra(yTra->next);
IBlob* blob = entry.next()->createBlob(status, nextTra, id, bpbLength, bpb);
YBlob* r = NULL;
if (blob != NULL)
{
r = FB_NEW YBlob(this, yTra, blob);
r->addRef();
}
return r;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
YBlob* YAttachment::openBlob(CheckStatusWrapper* status, ITransaction* transaction, ISC_QUAD* id,
unsigned int bpbLength, const unsigned char* bpb)
{
try
{
YEntry<YAttachment> entry(status, this);
YTransaction* yTra = getTransaction(transaction);
NextTransaction nextTra(yTra->next);
IBlob* blob = entry.next()->openBlob(status, nextTra, id, bpbLength, bpb);
YBlob* r = NULL;
if (blob != NULL)
{
r = FB_NEW YBlob(this, yTra, blob);
r->addRef();
}
return r;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
int YAttachment::getSlice(CheckStatusWrapper* status, ITransaction* transaction, ISC_QUAD* id,
unsigned int sdlLength, const unsigned char* sdl, unsigned int paramLength,
const unsigned char* param, int sliceLength, unsigned char* slice)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
getNextTransaction(status, transaction, trans);
return entry.next()->getSlice(status, trans, id, sdlLength, sdl, paramLength, param,
sliceLength, slice);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YAttachment::putSlice(CheckStatusWrapper* status, ITransaction* transaction, ISC_QUAD* id,
unsigned int sdlLength, const unsigned char* sdl, unsigned int paramLength,
const unsigned char* param, int sliceLength, unsigned char* slice)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
getNextTransaction(status, transaction, trans);
entry.next()->putSlice(status, trans, id, sdlLength, sdl, paramLength, param, sliceLength, slice);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YAttachment::executeDyn(CheckStatusWrapper* status, ITransaction* transaction, unsigned int length,
const unsigned char* dyn)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
getNextTransaction(status, transaction, trans);
return entry.next()->executeDyn(status, trans, length, dyn);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
IResultSet* YAttachment::openCursor(CheckStatusWrapper* status, ITransaction* transaction,
unsigned int length, const char* string, unsigned int dialect,
IMessageMetadata* inMetadata, void* inBuffer, IMessageMetadata* outMetadata,
const char* cursorName, unsigned int cursorFlags)
{
IResultSet* rs = NULL;
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
if (transaction)
getNextTransaction(status, transaction, trans);
rs = entry.next()->openCursor(status, trans, length, string, dialect,
inMetadata, inBuffer, outMetadata, cursorName, cursorFlags);
if (status->getState() & IStatus::STATE_ERRORS)
{
return NULL;
}
fb_assert(rs);
YTransaction* const yTra = getTransaction(transaction);
YResultSet* r = FB_NEW YResultSet(this, yTra, rs);
r->addRef();
return r;
}
catch (const Exception& e)
{
if (rs)
rs->close(status);
e.stuffException(status);
}
return NULL;
}
ITransaction* YAttachment::execute(CheckStatusWrapper* status, ITransaction* transaction,
unsigned int length, const char* string, unsigned int dialect,
IMessageMetadata* inMetadata, void* inBuffer, IMessageMetadata* outMetadata, void* outBuffer)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
if (transaction)
getNextTransaction(status, transaction, trans);
ITransaction* newTrans = entry.next()->execute(status, trans, length, string, dialect,
inMetadata, inBuffer, outMetadata, outBuffer);
if (newTrans == trans)
newTrans = transaction;
else
{
if (transaction)
{
if (trans)
trans->addRef(); // Will be decremented by release on next line
transaction->release();
transaction = NULL; // Get ready for correct return in OOM case
}
if (newTrans)
{
newTrans = FB_NEW YTransaction(this, newTrans);
newTrans->addRef();
}
}
return newTrans;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return transaction;
}
void YAttachment::execute(CheckStatusWrapper* status, isc_tr_handle* traHandle,
unsigned int stmtLength, const char* sqlStmt, unsigned int dialect,
IMessageMetadata* inMetadata, void* inBuffer,
IMessageMetadata* outMetadata, void* outBuffer)
{
RefPtr<YTransaction> transaction;
if (traHandle && *traHandle)
transaction = translateHandle(transactions, traHandle);
ITransaction* newTrans = execute(status, transaction, stmtLength, sqlStmt,
dialect, inMetadata, inBuffer, outMetadata, outBuffer);
if (!(status->getState() & IStatus::STATE_ERRORS))
{
if (transaction && !newTrans)
{
transaction->destroy(0);
*traHandle = 0;
}
else if (!transaction && newTrans)
{
// in this case we know for sure that newTrans points to YTransaction
if (traHandle)
*traHandle = static_cast<YTransaction*>(newTrans)->getHandle();
}
}
}
YEvents* YAttachment::queEvents(CheckStatusWrapper* status, IEventCallback* callback,
unsigned int length, const unsigned char* eventsData)
{
try
{
YEntry<YAttachment> entry(status, this);
IEvents* events = entry.next()->queEvents(status, callback, length, eventsData);
YEvents* r = NULL;
if (events != NULL)
{
r = FB_NEW YEvents(this, events, callback);
r->addRef();
}
return r;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
void YAttachment::cancelOperation(CheckStatusWrapper* status, int option)
{
try
{
YEntry<YAttachment> entry(status, this);
// Mutex will be locked here for a really long time.
MutexLockGuard guard(enterMutex, FB_FUNCTION);
if (enterCount > 1 || option != fb_cancel_raise)
entry.next()->cancelOperation(status, option);
else
status_exception::raise(Arg::Gds(isc_nothing_to_cancel));
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YAttachment::ping(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this);
entry.next()->ping(status);
if (status->getState() & IStatus::STATE_ERRORS)
{
if (!savedStatus.getError())
savedStatus.save(status);
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
entry.next()->detach(&tempCheckStatusWrapper);
next = NULL;
status_exception::raise(savedStatus.value());
}
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YAttachment::detach(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this, CHECK_NONE);
done(status, entry, this, [&]{
entry.next()->detach(status);
if (isNetworkError(status))
status->init();
}, [&]{entry.next()->deprecatedDetach(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YAttachment::deprecatedDetach(CheckStatusWrapper* status)
{
detach(status);
}
void YAttachment::dropDatabase(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this);
done(status, entry, this, [&]{entry.next()->dropDatabase(status);}, [&]{entry.next()->deprecatedDropDatabase(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YAttachment::deprecatedDropDatabase(CheckStatusWrapper* status)
{
dropDatabase(status);
}
void YAttachment::addCleanupHandler(CheckStatusWrapper* status, CleanupCallback* callback)
{
try
{
YEntry<YAttachment> entry(status, this);
cleanupHandlers.add(callback);
}
catch (const Exception& ex)
{
ex.stuffException(status);
}
}
YTransaction* YAttachment::getTransaction(ITransaction* tra)
{
if (!tra)
Arg::Gds(isc_bad_trans_handle).raise();
// If validation is successfull, this means that this attachment and valid transaction
// use same provider. I.e. the following cast is safe.
FbLocalStatus status;
YTransaction* yt = static_cast<YTransaction*>(tra->validate(&status, this));
status.check();
if (!yt)
Arg::Gds(isc_bad_trans_handle).raise();
yt->selfCheck();
return yt;
}
void YAttachment::getNextTransaction(CheckStatusWrapper* status, ITransaction* tra,
NextTransaction& next)
{
next = getTransaction(tra)->next;
if (!next.hasData())
Arg::Gds(isc_bad_trans_handle).raise();
}
unsigned int YAttachment::getIdleTimeout(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this);
return entry.next()->getIdleTimeout(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YAttachment::setIdleTimeout(CheckStatusWrapper* status, unsigned int timeOut)
{
try
{
YEntry<YAttachment> entry(status, this);
entry.next()->setIdleTimeout(status, timeOut);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
unsigned int YAttachment::getStatementTimeout(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this);
return entry.next()->getStatementTimeout(status);
}
catch (const Exception& e)
{
e.stuffException(status);
}
return 0;
}
void YAttachment::setStatementTimeout(CheckStatusWrapper* status, unsigned int timeOut)
{
try
{
YEntry<YAttachment> entry(status, this);
entry.next()->setStatementTimeout(status, timeOut);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
YBatch* YAttachment::createBatch(CheckStatusWrapper* status, ITransaction* transaction,
unsigned stmtLength, const char* sqlStmt, unsigned dialect,
IMessageMetadata* inMetadata, unsigned parLength, const unsigned char* par)
{
try
{
YEntry<YAttachment> entry(status, this);
NextTransaction trans;
if (transaction)
getNextTransaction(status, transaction, trans);
IBatch* batch = entry.next()->createBatch(status, trans, stmtLength, sqlStmt, dialect,
inMetadata, parLength, par);
if (status->getState() & IStatus::STATE_ERRORS)
{
return NULL;
}
YBatch* newBatch = FB_NEW YBatch(this, batch);
newBatch->addRef();
return newBatch;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
YReplicator* YAttachment::createReplicator(CheckStatusWrapper* status)
{
try
{
YEntry<YAttachment> entry(status, this);
IReplicator* replicator = entry.next()->createReplicator(status);
if (status->getState() & IStatus::STATE_ERRORS)
{
return NULL;
}
YReplicator* newReplicator = FB_NEW YReplicator(this, replicator);
newReplicator->addRef();
return newReplicator;
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
//-------------------------------------
YService::YService(IProvider* aProvider, IService* aNext, bool utf8)
: YHelper(aNext),
provider(aProvider),
utf8Connection(utf8)
{
provider->addRef();
makeHandle(&services, this, handle);
}
isc_svc_handle& YService::getHandle()
{
fb_assert(handle);
return handle;
}
YService::~YService()
{
if (provider)
PluginManagerInterfacePtr()->releasePlugin(provider);
}
void YService::destroy(unsigned dstrFlags)
{
removeHandle(&services, handle);
destroy2(dstrFlags);
}
void YService::shutdown()
{
if (provider)
{
destroy(0);
PluginManagerInterfacePtr()->releasePlugin(provider);
provider = NULL;
}
}
void YService::detach(CheckStatusWrapper* status)
{
try
{
YEntry<YService> entry(status, this, CHECK_WARN_ZERO_HANDLE);
done(status, entry, this, [&]{entry.next()->detach(status);}, [&]{entry.next()->deprecatedDetach(status);});
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YService::deprecatedDetach(CheckStatusWrapper* status)
{
detach(status);
}
void YService::query(CheckStatusWrapper* status, unsigned int sendLength, const unsigned char* sendItems,
unsigned int receiveLength, const unsigned char* receiveItems,
unsigned int bufferLength, unsigned char* buffer)
{
try
{
YEntry<YService> entry(status, this);
entry.next()->query(status, sendLength, sendItems,
receiveLength, receiveItems, bufferLength, buffer);
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
void YService::start(CheckStatusWrapper* status, unsigned int spbLength, const unsigned char* spbItems)
{
try
{
ClumpletWriter spb(ClumpletReader::SpbStart, MAX_DPB_SIZE, spbItems, spbLength);
if (!utf8Connection)
{
IntlSpbStart().toUtf8(spb);
}
YEntry<YService> entry(status, this);
entry.next()->start(status, spb.getBufferLength(), spb.getBuffer());
}
catch (const Exception& e)
{
e.stuffException(status);
}
}
//-------------------------------------
// Attach a database through the first subsystem that recognizes it.
YAttachment* Dispatcher::attachDatabase(CheckStatusWrapper* status, const char* filename,
unsigned int dpbLength, const unsigned char* dpb)
{
return attachOrCreateDatabase(status, false, filename, dpbLength, dpb);
}
// Create new database using the first subsystem that can do it.
YAttachment* Dispatcher::createDatabase(CheckStatusWrapper* status, const char* filename,
unsigned int dpbLength, const unsigned char* dpb)
{
return attachOrCreateDatabase(status, true, filename, dpbLength, dpb);
}
YAttachment* Dispatcher::attachOrCreateDatabase(CheckStatusWrapper* status, bool createFlag,
const char* filename, unsigned int dpbLength, const unsigned char* dpb)
{
try
{
DispatcherEntry entry(status);
if (!filename)
status_exception::raise(Arg::Gds(isc_bad_db_format) << Arg::Str(""));
if (dpbLength > 0 && !dpb)
status_exception::raise(Arg::Gds(isc_bad_dpb_form));
ClumpletWriter newDpb(ClumpletReader::dpbList, MAX_DPB_SIZE, dpb, dpbLength);
bool utfData = newDpb.find(isc_dpb_utf8_filename);
// Take care about DPB
setLogin(newDpb, false);
if (!newDpb.find(isc_dpb_session_time_zone))
{
const char* defaultTimeZone = Config::getDefaultTimeZone();
if (defaultTimeZone && defaultTimeZone[0])
newDpb.insertString(isc_dpb_session_time_zone, defaultTimeZone);
}
if (!utfData)
IntlDpb().toUtf8(newDpb);
// Take care about filename
PathName orgFilename(filename);
if (utfData)
{
ISC_utf8ToSystem(orgFilename);
}
orgFilename.rtrim();
PathName expandedFilename;
RefPtr<const Config> config;
if (expandDatabaseName(orgFilename, expandedFilename, &config))
{
expandedFilename = orgFilename;
}
if (newDpb.find(isc_dpb_config))
{
string dpb_config;
newDpb.getString(dpb_config);
Config::merge(config, &dpb_config);
}
// Convert to UTF8
ISC_systemToUtf8(orgFilename);
ISC_systemToUtf8(expandedFilename);
// Add original filename to DPB
if (orgFilename != expandedFilename && !newDpb.find(isc_dpb_org_filename))
newDpb.insertString(isc_dpb_org_filename, orgFilename);
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
CheckStatusWrapper* currentStatus = status;
for (GetPlugins<IProvider> providerIterator(IPluginManager::TYPE_PROVIDER, config);
providerIterator.hasData();
providerIterator.next())
{
IProvider* provider = providerIterator.plugin();
if (cryptCallback)
{
provider->setDbCryptCallback(currentStatus, cryptCallback);
if (currentStatus->getState() & IStatus::STATE_ERRORS)
continue;
}
IAttachment* attachment = createFlag ?
provider->createDatabase(currentStatus, expandedFilename.c_str(),
newDpb.getBufferLength(), newDpb.getBuffer()) :
provider->attachDatabase(currentStatus, expandedFilename.c_str(),
newDpb.getBufferLength(), newDpb.getBuffer());
if (!(currentStatus->getState() & IStatus::STATE_ERRORS))
{
if (createFlag)
{
config->notify();
#ifdef WIN_NT
// Now we can expand, the file exists
ISC_utf8ToSystem(orgFilename);
if (expandDatabaseName(orgFilename, expandedFilename, NULL))
{
expandedFilename = orgFilename;
}
ISC_systemToUtf8(expandedFilename);
#endif
}
if (status != currentStatus)
{
status->setErrors(currentStatus->getErrors());
status->setWarnings(currentStatus->getWarnings());
}
YAttachment* r = FB_NEW YAttachment(provider, attachment, expandedFilename);
r->addRef();
return r;
}
switch (currentStatus->getErrors()[1])
{
case isc_io_error:
case isc_lock_dir_access:
case isc_no_priv:
case isc_wrong_ods:
currentStatus = &tempCheckStatusWrapper;
// fall down...
case isc_unavailable:
break;
default:
return NULL;
}
currentStatus->init();
}
if (status->getErrors()[1] == 0)
Arg::Gds(isc_unavailable).raise();
}
catch (const Exception& e)
{
e.stuffException(status);
}
return NULL;
}
// Attach a service through the first subsystem that recognizes it.
YService* Dispatcher::attachServiceManager(CheckStatusWrapper* status, const char* serviceName,
unsigned int spbLength, const unsigned char* spb)
{
IService* service = NULL;
status->init();
try
{
DispatcherEntry entry(status);
if (!serviceName)
status_exception::raise(Arg::Gds(isc_service_att_err) << Arg::Gds(isc_svc_name_missing));
if (spbLength > 0 && !spb)
status_exception::raise(Arg::Gds(isc_bad_spb_form) <<
Arg::Gds(isc_null_spb));
PathName svcName(serviceName);
svcName.trim();
ClumpletWriter spbWriter(ClumpletReader::spbList, MAX_DPB_SIZE, spb, spbLength);
bool utfData = spbWriter.find(isc_spb_utf8_filename);
// Take care about SPB
setLogin(spbWriter, true);
if (!utfData)
{
IntlSpb().toUtf8(spbWriter);
}
// Build correct config
RefPtr<const Config> config(Config::getDefaultConfig());
if (spbWriter.find(isc_spb_config))
{
string spb_config;
spbWriter.getString(spb_config);
Config::merge(config, &spb_config);
}
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
CheckStatusWrapper* currentStatus = status;
for (GetPlugins<IProvider> providerIterator(IPluginManager::TYPE_PROVIDER, config);
providerIterator.hasData();
providerIterator.next())
{
IProvider* p = providerIterator.plugin();
if (cryptCallback)
{
p->setDbCryptCallback(currentStatus, cryptCallback);
if (currentStatus->getState() & IStatus::STATE_ERRORS)
continue;
}
service = p->attachServiceManager(currentStatus, svcName.c_str(),
spbWriter.getBufferLength(), spbWriter.getBuffer());
if (!(currentStatus->getState() & IStatus::STATE_ERRORS))
{
if (status != currentStatus)
{
status->setErrors(currentStatus->getErrors());
status->setWarnings(currentStatus->getWarnings());
}
YService* r = FB_NEW YService(p, service, utfData);
r->addRef();
return r;
}
switch (currentStatus->getErrors()[1])
{
case isc_service_att_err:
currentStatus = &tempCheckStatusWrapper;
// fall down...
case isc_unavailable:
break;
default:
return NULL;
}
currentStatus->init();
}
if (!(status->getState() & IStatus::STATE_ERRORS))
{
(Arg::Gds(isc_service_att_err) <<
Arg::Gds(isc_no_providers)).copyTo(status);
}
}
catch (const Exception& e)
{
if (service)
{
StatusVector temp(NULL);
CheckStatusWrapper tempCheckStatusWrapper(&temp);
service->detach(&tempCheckStatusWrapper);
}
e.stuffException(status);
}
return NULL;
}
void Dispatcher::shutdown(CheckStatusWrapper* userStatus, unsigned int timeout, const int reason)
{
// set "process exiting" state
if (reason == fb_shutrsn_emergency)
abortShutdown();
// can't syncronize with already killed threads, just exit
if (MasterInterfacePtr()->getProcessExiting())
return;
try
{
DispatcherEntry entry(userStatus, true);
static GlobalPtr<Mutex> singleShutdown;
MutexLockGuard guard(singleShutdown, FB_FUNCTION);
if (shutdownStarted)
return;
StatusVector status(NULL);
CheckStatusWrapper statusWrapper(&status);
#ifdef DEV_BUILD
// Make timeout huge in debug build: hard to debug something during 5-10 sec
if (timeout)
timeout = 10 * 3600 * 1000; // 10 hours
#endif
// In some cases it's OK to stop plugin manager even now.
if (reason == fb_shutrsn_exit_called)
PluginManager::shutdown();
const Arg::Gds error(isc_att_shutdown); //// TODO: review
// Ask clients about shutdown confirmation.
if (ShutChain::run(fb_shut_confirmation, reason) != FB_SUCCESS)
{
userStatus->setErrors(error.value());
return; // Do not perform former shutdown
}
// Shut known components, internal for libfbclient
PluginManager::shutdown();
shutdownTimers();
// Shutdown clients before providers
if (ShutChain::run(fb_shut_preproviders, reason) != FB_SUCCESS)
userStatus->setErrors(error.value());
// Shutdown yValve
// Since this moment no new thread will be able to enter yValve.
// Existing threads continue to run inside it - later do our best to close them.
shutdownStarted = true;
// Shutdown providers (if any present).
for (GetPlugins<IProvider> providerIterator(IPluginManager::TYPE_PROVIDER);
providerIterator.hasData();
providerIterator.next())
{
IProvider* provider = providerIterator.plugin();
StatusVector status2(NULL);
CheckStatusWrapper statusWrapper2(&status2);
provider->shutdown(&statusWrapper2, timeout, reason);
if (status2[1])
userStatus->setErrors(error.value());
}
// Close all known interfaces from providers...
for (bool hasThreads = true; hasThreads; )
{
Thread::yield();
if (dispCounter.value() > 0)
{
continue;
}
hasThreads = false;
Stack<YService*, 64> svcStack;
{
WriteLockGuard sync(handleMappingLock, FB_FUNCTION);
GenericMap<Pair<NonPooled<isc_svc_handle, YService*> > >::Accessor accessor(&services);
if (accessor.getFirst())
{
do
{
YService* service = accessor.current()->second;
if (service->enterCount)
hasThreads = true;
else
{
service->addRef();
svcStack.push(service);
}
} while (accessor.getNext());
}
}
while (svcStack.hasData())
{
YService* service = svcStack.pop();
service->shutdown();
service->release();
}
if (hasThreads)
continue;
Stack<YAttachment*, 64> attStack;
{
WriteLockGuard sync(handleMappingLock, FB_FUNCTION);
GenericMap<Pair<NonPooled<isc_db_handle, YAttachment*> > >::Accessor accessor(&attachments);
if (accessor.getFirst())
{
do
{
YAttachment* attachment = accessor.current()->second;
if (attachment->enterCount)
hasThreads = true;
else
{
attachment->addRef();
attStack.push(attachment);
}
} while (accessor.getNext());
}
}
while (attStack.hasData())
{
YAttachment* attachment = attStack.pop();
attachment->shutdown();
attachment->release();
}
}
// ... and wait for all providers to go away
PluginManager::waitForType(IPluginManager::TYPE_PROVIDER);
// Shutdown clients after providers.
if (ShutChain::run(fb_shut_postproviders, reason) != FB_SUCCESS)
userStatus->setErrors(error.value());
// Finish shutdown.
if (ShutChain::run(fb_shut_finish, reason) != FB_SUCCESS)
userStatus->setErrors(error.value());
// At this step callbacks are welcome to exit (or take actions to make main thread do it).
if (ShutChain::run(fb_shut_exit, reason) != FB_SUCCESS)
userStatus->setErrors(error.value());
}
catch (const Exception& e)
{
e.stuffException(userStatus);
iscLogStatus(NULL, userStatus);
}
}
void Dispatcher::setDbCryptCallback(CheckStatusWrapper* status, ICryptKeyCallback* callback)
{
status->init();
cryptCallback = callback;
}
} // namespace Why
|
/**************************************************************************/
/* */
/* WWIV Version 5 */
/* Copyright (C)2018-2020, WWIV Software Services */
/* */
/* 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 "sdk/ansi/makeansi.h"
#include <string>
#include <vector>
namespace wwiv::sdk::ansi {
static void addto(std::string* ansi_str, int num) {
if (ansi_str->empty()) {
ansi_str->append("\x1b[");
} else {
ansi_str->append(";");
}
ansi_str->append(std::to_string(num));
}
std::string makeansi(int attr, int current_attr) {
static const std::vector<int> kAnsiColorMap = {'0', '4', '2', '6', '1', '5', '3', '7'};
if (current_attr == attr) {
return "";
}
int catr = current_attr;
std::string out;
if ((catr & 0x88) ^ (attr & 0x88)) {
addto(&out, 0);
addto(&out, 30 + kAnsiColorMap[attr & 0x07] - '0');
addto(&out, 40 + kAnsiColorMap[(attr & 0x70) >> 4] - '0');
catr = (attr & 0x77);
}
if ((catr & 0x07) != (attr & 0x07)) {
addto(&out, 30 + kAnsiColorMap[attr & 0x07] - '0');
}
if ((catr & 0x70) != (attr & 0x70)) {
addto(&out, 40 + kAnsiColorMap[(attr & 0x70) >> 4] - '0');
}
if ((catr & 0x08) != (attr & 0x08)) {
addto(&out, 1);
}
if ((catr & 0x80) != (attr & 0x80)) {
// Italics will be generated
addto(&out, 3);
}
if (!out.empty()) {
out += "m";
}
return out;
}
} // namespace wwiv
|
#pragma once
#include "Outline.hpp"
namespace pf {
struct DashState {
bool isOn() const noexcept;
Contour output;
std::size_t currentIndex;
float distanceLeft;
};
struct Dash {
Outline output;
};
struct OutlineDash {
Outline output;
DashState state;
};
struct ContourDash {
};
};
|
#include <memory>
#include <iostream>
#include "CondTools/SiPixel/test/SiPixelCondObjOfflineBuilder.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/CommonTopologies/interface/PixelTopology.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "CLHEP/Random/RandGauss.h"
#include "CLHEP/Random/RandFlat.h"
namespace cms {
SiPixelCondObjOfflineBuilder::SiPixelCondObjOfflineBuilder(const edm::ParameterSet& iConfig)
: conf_(iConfig),
appendMode_(conf_.getUntrackedParameter<bool>("appendMode", true)),
SiPixelGainCalibration_(nullptr),
SiPixelGainCalibrationService_(iConfig),
recordName_(iConfig.getParameter<std::string>("record")),
meanPed_(conf_.getParameter<double>("meanPed")),
rmsPed_(conf_.getParameter<double>("rmsPed")),
meanGain_(conf_.getParameter<double>("meanGain")),
rmsGain_(conf_.getParameter<double>("rmsGain")),
meanPedFPix_(conf_.getUntrackedParameter<double>("meanPedFPix", meanPed_)),
rmsPedFPix_(conf_.getUntrackedParameter<double>("rmsPedFPix", rmsPed_)),
meanGainFPix_(conf_.getUntrackedParameter<double>("meanGainFPix", meanGain_)),
rmsGainFPix_(conf_.getUntrackedParameter<double>("rmsGainFPix", rmsGain_)),
deadFraction_(conf_.getParameter<double>("deadFraction")),
noisyFraction_(conf_.getParameter<double>("noisyFraction")),
secondRocRowGainOffset_(conf_.getParameter<double>("secondRocRowGainOffset")),
secondRocRowPedOffset_(conf_.getParameter<double>("secondRocRowPedOffset")),
numberOfModules_(conf_.getParameter<int>("numberOfModules")),
fromFile_(conf_.getParameter<bool>("fromFile")),
fileName_(conf_.getParameter<std::string>("fileName")),
generateColumns_(conf_.getUntrackedParameter<bool>("generateColumns", true)) {
::putenv((char*)"CORAL_AUTH_USER=me");
::putenv((char*)"CORAL_AUTH_PASSWORD=test");
}
void SiPixelCondObjOfflineBuilder::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
using namespace edm;
unsigned int run = iEvent.id().run();
int nmodules = 0;
uint32_t nchannels = 0;
// int mycol = 415;
// int myrow = 159;
edm::LogInfo("SiPixelCondObjOfflineBuilder")
<< "... creating dummy SiPixelGainCalibration Data for Run " << run << "\n " << std::endl;
//
// Instantiate Gain calibration offset and define pedestal/gain range
//
// note: the hard-coded range values are also used in random generation. That is why they're defined here
float minped = 0.;
float maxped = 100.;
float mingain = 0.;
float maxgain = 10.;
SiPixelGainCalibration_ = new SiPixelGainCalibrationOffline(minped, maxped, mingain, maxgain);
edm::ESHandle<TrackerGeometry> pDD;
iSetup.get<TrackerDigiGeometryRecord>().get(pDD);
edm::LogInfo("SiPixelCondObjOfflineBuilder") << " There are " << pDD->dets().size() << " detectors" << std::endl;
for (TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++) {
if (dynamic_cast<PixelGeomDetUnit const*>((*it)) != nullptr) {
uint32_t detid = ((*it)->geographicalId()).rawId();
// Stop if module limit reached
nmodules++;
if (nmodules > numberOfModules_)
break;
const PixelGeomDetUnit* pixDet = dynamic_cast<const PixelGeomDetUnit*>((*it));
const PixelTopology& topol = pixDet->specificTopology();
// Get the module sizes.
int nrows = topol.nrows(); // rows in x
int ncols = topol.ncolumns(); // cols in y
//std::cout << " ---> PIXEL DETID " << detid << " Cols " << ncols << " Rows " << nrows << std::endl;
double meanPedWork = meanPed_;
double rmsPedWork = rmsPed_;
double meanGainWork = meanGain_;
double rmsGainWork = rmsGain_;
DetId detId(detid);
if (detId.subdetId() == 2) { // FPIX
meanPedWork = meanPedFPix_;
rmsPedWork = rmsPedFPix_;
meanGainWork = meanGainFPix_;
rmsGainWork = rmsGainFPix_;
}
PixelIndices pIndexConverter(ncols, nrows);
std::vector<char> theSiPixelGainCalibration;
// Loop over columns and rows of this DetID
for (int i = 0; i < ncols; i++) {
float totalGain = 0.0;
for (int j = 0; j < nrows; j++) {
nchannels++;
bool isDead = false;
bool isNoisy = false;
float ped = 0.0, gain = 0.0;
if (fromFile_) {
// Use calibration from a file
int chipIndex = 0, colROC = 0, rowROC = 0;
pIndexConverter.transformToROC(i, j, chipIndex, colROC, rowROC);
int chanROC = PixelIndices::pixelToChannelROC(rowROC, colROC); // use ROC coordinates
// float pp0=0, pp1=0;
std::map<int, CalParameters, std::less<int> >::const_iterator it = calmap_.find(chanROC);
CalParameters theCalParameters = (*it).second;
ped = theCalParameters.p0;
gain = theCalParameters.p1;
} else {
if (deadFraction_ > 0) {
double val = CLHEP::RandFlat::shoot();
if (val < deadFraction_) {
isDead = true;
// std::cout << "dead pixel " << detid << " " << i << "," << j << " " << val << std::endl;
}
}
if (deadFraction_ > 0 && !isDead) {
double val = CLHEP::RandFlat::shoot();
if (val < noisyFraction_) {
isNoisy = true;
// std::cout << "noisy pixel " << detid << " " << i << "," << j << " " << val << std::endl;
}
}
if (rmsPedWork > 0) {
ped = CLHEP::RandGauss::shoot(meanPedWork, rmsPedWork);
while (ped < minped || ped > maxped)
ped = CLHEP::RandGauss::shoot(meanPedWork, rmsPedWork);
} else
ped = meanPedWork;
if (rmsGainWork > 0) {
gain = CLHEP::RandGauss::shoot(meanGainWork, rmsGainWork);
while (gain < mingain || gain > maxgain)
gain = CLHEP::RandGauss::shoot(meanGainWork, rmsGainWork);
} else
gain = meanGainWork;
}
// if(i==mycol && j==myrow) {
// std::cout << " Col "<<i<<" Row "<<j<<" Ped "<<ped<<" Gain "<<gain<<std::endl;
// }
// gain = 2.8;
// ped = 28.2;
//if in the second row of rocs (i.e. a 2xN plaquette) add an offset (if desired) for testing
if (j >= 80) {
ped += secondRocRowPedOffset_;
gain += secondRocRowGainOffset_;
if (gain > maxgain)
gain = maxgain;
else if (gain < mingain)
gain = mingain;
if (ped > maxped)
ped = maxped;
else if (ped < minped)
ped = minped;
}
totalGain += gain;
if (!isDead && !isNoisy) {
SiPixelGainCalibration_->setDataPedestal(ped, theSiPixelGainCalibration);
} else if (isDead) // dead pixel
// std::cout << "filling pixel as dead for detid " << detid <<", col " << i << ", row" << j << std::endl;
SiPixelGainCalibration_->setDeadPixel(theSiPixelGainCalibration);
else if (isNoisy) // dead pixel
// std::cout << "filling pixel as dead for detid " << detid <<", col " << i << ", row" << j << std::endl;
SiPixelGainCalibration_->setNoisyPixel(theSiPixelGainCalibration);
if ((j + 1) % 80 == 0) // fill the column average after ever ROC!
{
float averageGain = totalGain / static_cast<float>(80);
if (generateColumns_) {
averageGain = gain;
}
//std::cout << "Filling gain " << averageGain << " for col: " << i << " row: " << j << std::endl;
SiPixelGainCalibration_->setDataGain(averageGain, 80, theSiPixelGainCalibration);
totalGain = 0;
}
}
}
SiPixelGainCalibrationOffline::Range range(theSiPixelGainCalibration.begin(), theSiPixelGainCalibration.end());
if (!SiPixelGainCalibration_->put(detid, range, ncols))
edm::LogError("SiPixelCondObjOfflineBuilder")
<< "[SiPixelCondObjOfflineBuilder::analyze] detid already exists" << std::endl;
}
}
std::cout << " ---> PIXEL Modules " << nmodules << std::endl;
std::cout << " ---> PIXEL Channels " << nchannels << std::endl;
// // Try to read object
// int mynmodules =0;
// for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
// if( dynamic_cast<PixelGeomDetUnit const*>((*it))!=0){
// uint32_t mydetid=((*it)->geographicalId()).rawId();
// mynmodules++;
// if( mynmodules > numberOfModules_) break;
// SiPixelGainCalibration::Range myrange = SiPixelGainCalibration_->getRange(mydetid);
// float mypedestal = SiPixelGainCalibration_->getPed (mycol,myrow,myrange,416);
// float mygain = SiPixelGainCalibration_->getGain(mycol,myrow,myrange,416);
// //std::cout<<" PEDESTAL "<< mypedestal<<" GAIN "<<mygain<<std::endl;
// }
// }
// Write into DB
edm::LogInfo("SiPixelCondOfflineBuilder") << "writing to DB, record = \"" << recordName_ << "\"";
edm::Service<cond::service::PoolDBOutputService> mydbservice;
if (!mydbservice.isAvailable()) {
edm::LogError("SiPixelCondOfflineBuilder") << " db service unavailable";
return;
} else {
edm::LogInfo("SiPixelCondOfflineBuilder") << " DB service OK";
}
try {
if (mydbservice->isNewTagRequest(recordName_)) {
mydbservice->createNewIOV<SiPixelGainCalibrationOffline>(
SiPixelGainCalibration_, mydbservice->beginOfTime(), mydbservice->endOfTime(), recordName_);
} else {
mydbservice->appendSinceTime<SiPixelGainCalibrationOffline>(
SiPixelGainCalibration_, mydbservice->currentTime(), recordName_);
}
edm::LogInfo(" --- all OK");
} catch (const cond::Exception& er) {
edm::LogError("SiPixelCondObjOfflineBuilder") << er.what() << std::endl;
} catch (const std::exception& er) {
edm::LogError("SiPixelCondObjOfflineBuilder") << "caught std::exception " << er.what() << std::endl;
} catch (...) {
edm::LogError("SiPixelCondObjOfflineBuilder") << "Funny error" << std::endl;
}
}
// ------------ method called once each job just before starting event loop ------------
void SiPixelCondObjOfflineBuilder::beginJob() {
if (fromFile_) {
if (loadFromFile()) {
edm::LogInfo("SiPixelCondObjOfflineBuilder") << " Calibration loaded: Map size " << calmap_.size() << " max "
<< calmap_.max_size() << " " << calmap_.empty() << std::endl;
}
}
}
// ------------ method called once each job just after ending the event loop ------------
void SiPixelCondObjOfflineBuilder::endJob() {}
bool SiPixelCondObjOfflineBuilder::loadFromFile() {
float par0, par1; //,par2,par3;
int colid, rowid; //rocid
std::string name;
std::ifstream in_file; // data file pointer
in_file.open(fileName_.c_str(), std::ios::in); // in C++
if (in_file.bad()) {
edm::LogError("SiPixelCondObjOfflineBuilder") << "Input file not found" << std::endl;
}
if (in_file.eof() != 0) {
edm::LogError("SiPixelCondObjOfflineBuilder") << in_file.eof() << " " << in_file.gcount() << " " << in_file.fail()
<< " " << in_file.good() << " end of file " << std::endl;
return false;
}
//Load file header
char line[500];
for (int i = 0; i < 3; i++) {
in_file.getline(line, 500, '\n');
edm::LogInfo("SiPixelCondObjOfflineBuilder") << line << std::endl;
}
//Loading calibration constants from file, loop on pixels
for (int i = 0; i < (52 * 80); i++) {
in_file >> par0 >> par1 >> name >> colid >> rowid;
std::cout << " Col " << colid << " Row " << rowid << " P0 " << par0 << " P1 " << par1 << std::endl;
CalParameters onePix;
onePix.p0 = par0;
onePix.p1 = par1;
// Convert ROC pixel index to channel
int chan = PixelIndices::pixelToChannelROC(rowid, colid);
calmap_.insert(std::pair<int, CalParameters>(chan, onePix));
}
bool flag;
if (calmap_.size() == 4160) {
flag = true;
} else {
flag = false;
}
return flag;
}
} // namespace cms
|
// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=b720082955a366e530d9bf5ee3515f532d226acf$
//
#include "libcef_dll/ctocpp/x509cert_principal_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/transfer_util.h"
// VIRTUAL METHODS - Body may be edited by hand.
NO_SANITIZE("cfi-icall")
CefString CefX509CertPrincipalCToCpp::GetDisplayName() {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_display_name))
return CefString();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_string_userfree_t _retval = _struct->get_display_name(_struct);
// Return type: string
CefString _retvalStr;
_retvalStr.AttachToUserFree(_retval);
return _retvalStr;
}
NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetCommonName() {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_common_name))
return CefString();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_string_userfree_t _retval = _struct->get_common_name(_struct);
// Return type: string
CefString _retvalStr;
_retvalStr.AttachToUserFree(_retval);
return _retvalStr;
}
NO_SANITIZE("cfi-icall")
CefString CefX509CertPrincipalCToCpp::GetLocalityName() {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_locality_name))
return CefString();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_string_userfree_t _retval = _struct->get_locality_name(_struct);
// Return type: string
CefString _retvalStr;
_retvalStr.AttachToUserFree(_retval);
return _retvalStr;
}
NO_SANITIZE("cfi-icall")
CefString CefX509CertPrincipalCToCpp::GetStateOrProvinceName() {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_state_or_province_name))
return CefString();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_string_userfree_t _retval = _struct->get_state_or_province_name(_struct);
// Return type: string
CefString _retvalStr;
_retvalStr.AttachToUserFree(_retval);
return _retvalStr;
}
NO_SANITIZE("cfi-icall")
CefString CefX509CertPrincipalCToCpp::GetCountryName() {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_country_name))
return CefString();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
cef_string_userfree_t _retval = _struct->get_country_name(_struct);
// Return type: string
CefString _retvalStr;
_retvalStr.AttachToUserFree(_retval);
return _retvalStr;
}
NO_SANITIZE("cfi-icall")
void CefX509CertPrincipalCToCpp::GetStreetAddresses(
std::vector<CefString>& addresses) {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_street_addresses))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Translate param: addresses; type: string_vec_byref
cef_string_list_t addressesList = cef_string_list_alloc();
DCHECK(addressesList);
if (addressesList)
transfer_string_list_contents(addresses, addressesList);
// Execute
_struct->get_street_addresses(_struct, addressesList);
// Restore param:addresses; type: string_vec_byref
if (addressesList) {
addresses.clear();
transfer_string_list_contents(addressesList, addresses);
cef_string_list_free(addressesList);
}
}
NO_SANITIZE("cfi-icall")
void CefX509CertPrincipalCToCpp::GetOrganizationNames(
std::vector<CefString>& names) {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_organization_names))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Translate param: names; type: string_vec_byref
cef_string_list_t namesList = cef_string_list_alloc();
DCHECK(namesList);
if (namesList)
transfer_string_list_contents(names, namesList);
// Execute
_struct->get_organization_names(_struct, namesList);
// Restore param:names; type: string_vec_byref
if (namesList) {
names.clear();
transfer_string_list_contents(namesList, names);
cef_string_list_free(namesList);
}
}
NO_SANITIZE("cfi-icall")
void CefX509CertPrincipalCToCpp::GetOrganizationUnitNames(
std::vector<CefString>& names) {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_organization_unit_names))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Translate param: names; type: string_vec_byref
cef_string_list_t namesList = cef_string_list_alloc();
DCHECK(namesList);
if (namesList)
transfer_string_list_contents(names, namesList);
// Execute
_struct->get_organization_unit_names(_struct, namesList);
// Restore param:names; type: string_vec_byref
if (namesList) {
names.clear();
transfer_string_list_contents(namesList, names);
cef_string_list_free(namesList);
}
}
NO_SANITIZE("cfi-icall")
void CefX509CertPrincipalCToCpp::GetDomainComponents(
std::vector<CefString>& components) {
shutdown_checker::AssertNotShutdown();
cef_x509cert_principal_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_domain_components))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Translate param: components; type: string_vec_byref
cef_string_list_t componentsList = cef_string_list_alloc();
DCHECK(componentsList);
if (componentsList)
transfer_string_list_contents(components, componentsList);
// Execute
_struct->get_domain_components(_struct, componentsList);
// Restore param:components; type: string_vec_byref
if (componentsList) {
components.clear();
transfer_string_list_contents(componentsList, components);
cef_string_list_free(componentsList);
}
}
// CONSTRUCTOR - Do not edit by hand.
CefX509CertPrincipalCToCpp::CefX509CertPrincipalCToCpp() {}
// DESTRUCTOR - Do not edit by hand.
CefX509CertPrincipalCToCpp::~CefX509CertPrincipalCToCpp() {
shutdown_checker::AssertNotShutdown();
}
template <>
cef_x509cert_principal_t* CefCToCppRefCounted<
CefX509CertPrincipalCToCpp,
CefX509CertPrincipal,
cef_x509cert_principal_t>::UnwrapDerived(CefWrapperType type,
CefX509CertPrincipal* c) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
template <>
CefWrapperType CefCToCppRefCounted<CefX509CertPrincipalCToCpp,
CefX509CertPrincipal,
cef_x509cert_principal_t>::kWrapperType =
WT_X509CERT_PRINCIPAL;
|
/****************************************************************************************
* @author: kzvd4729 created: Feb/02/2021 16:32
* solution_verdict: Accepted language: GNU C++14
* run_time: 62 ms memory_used: 15800 KB
* problem: https://codeforces.com/contest/1477/problem/C
****************************************************************************************/
#include<bits/stdc++.h>
#define long long long
using namespace std;
const int N=1e6,inf=1e9;
const double eps=1e-9,pi=acos(-1.0);
int sgn(double d)
{
if(fabs(d)<eps)return 0;return d<0.0?-1:1;
}
struct point
{
double x,y;
point(){};point(double _x,double _y):x(_x),y(_y){}
point operator+(point p){return point(x+p.x,y+p.y);}
point operator-(point p){return point(x-p.x,y-p.y);}
point operator*(double d){return point(x*d,y*d);}
point operator/(double d){return point(x/d,y/d);}
bool operator==(point p){return x==p.x&&y==p.y;}
bool operator<(const point &p)const{return x<p.x||(x==p.x&&y<p.y);}
double value(){return sqrt(x*x+y*y);}
double dist(point p){return sqrt((x-p.x)*(x-p.x)+(y-p.y)*(y-p.y));}
point unitVector()
{
//invalid if vector is (0,0)
double v=value();return point(x/v,y/v);
}
double operator*(point p)
{
return x*p.x+y*p.y;//0 if vectors are perpendicular;
}
double operator^(point p)
{
return x*p.y-y*p.x;//0 if two vectors are same
//signed area of the parallelogram by two vector
//positive if p is ccw to the vector
}
point rotateCCW(double a)//radian
{
return point(x*cos(a)-y*sin(a),x*sin(a)+y*cos(a));
}
point rotateCCW90(){return point(-y,x);}
point rotateCCW180(){return point(-x,-y);}
point rotateCCW270(){return point(y,-x);}
};
double radToDeg(double r){return r*180.0/pi;}
double degToRed(double d){return d*pi/180.0;}
double modifiedatan2(point p)//counter-clockwise full angle with positive x axis
{
double ang=atan2(p.y,p.x);if(ang<0)ang+=pi+pi;//carefull
return radToDeg(ang);//deg return
}
bool ck(point a,point b,point c)
{
a=a-b,b=c-b;
double ang=acos(a*b/(a.value()*b.value()));
return radToDeg(ang)<90.0-eps;
}
point p[N+2];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);
int n;cin>>n;vector<int>v={1,2};
for(int i=1;i<=n;i++)cin>>p[i].x>>p[i].y;
for(int i=3;i<=n;i++)
{
int g=0;
for(int j=i-1;j>=0;j--)
{
bool f1=0,f2=0,f3=0;
if(j-2<0)f1=1;
else f1=ck(p[v[j-2]],p[v[j-1]],p[i]);
if(j-1<0||j>=(int)(v.size()))f2=1;
else f2=ck(p[v[j-1]],p[i],p[v[j]]);
if(j+1>=(int)v.size())f3=1;
else f3=ck(p[i],p[v[j]],p[v[j+1]]);
if(f1&&f2&&f3)
{
g=1;
v.insert(v.begin()+j,i);
break;
}
}
if(g==0)assert(0);
}
for(auto x:v)cout<<x<<" ";cout<<endl;
return 0;
}
|
#include "cpu.h"
#include "gtest/gtest.h"
#include "utils.h"
class StackTest : public ::testing::Test {
protected:
StackTest() {}
~StackTest() {}
};
TEST(StackTest, PushPop16) {
const uint16_t EXPECTED_HL = 0x1234;
CPU* cpu = getTestingCPU();
cpu->Set16Bit(Register_HL, EXPECTED_HL);
cpu->Push16Bit(cpu->Get16Bit(Register_HL));
uint16_t popped = cpu->Pop16Bit();
EXPECT_EQ(popped, EXPECTED_HL);
EXPECT_EQ(popped, cpu->Get16Bit(Register_HL));
}
TEST(StackTest, PushPop8) {
const uint8_t EXPECTED_H = 0x12;
CPU* cpu = getTestingCPU();
cpu->Set8Bit(Register_H, EXPECTED_H);
cpu->Push8Bit(cpu->Get8Bit(Register_H));
uint8_t popped = cpu->Pop8Bit();
EXPECT_EQ(popped, EXPECTED_H);
EXPECT_EQ(popped, cpu->Get8Bit(Register_H));
}
TEST(StackTest, PushDownwards) {
CPU* cpu = getTestingCPU();
uint16_t initial_sp = cpu->Get16Bit(Register_SP);
cpu->Push16Bit(0x12);
uint16_t new_sp = cpu->Get16Bit(Register_SP);
ASSERT_EQ(new_sp + 2, initial_sp);
}
TEST(StackTest, PushLSBMSB) {
CPU* cpu = getTestingCPU();
uint16_t initial_sp = cpu->Get16Bit(Register_SP);
cpu->Push16Bit(0x1234);
cpu->Set16Bit(Register_HL, initial_sp - 2);
ASSERT_EQ(cpu->Get8Bit(Address_HL), 0x34);
cpu->Set16Bit(Register_HL, initial_sp - 1);
ASSERT_EQ(cpu->Get8Bit(Address_HL), 0x12);
}
TEST(StackTest, PushBC) {
const uint8_t PUSH_BC = 0xC5;
CPU* cpu = getTestingCPUWithInstructions(vector<uint8_t>{PUSH_BC});
uint16_t initial_sp = cpu->Get16Bit(Register_SP);
uint16_t BC = 0xABCD;
cpu->Set16Bit(Register_BC, BC);
cpu->Step();
cpu->Set16Bit(Register_HL, initial_sp - 1);
ASSERT_EQ(cpu->Get8Bit(Address_HL), HIGHER8(BC));
cpu->Set16Bit(Register_HL, initial_sp - 2);
ASSERT_EQ(cpu->Get8Bit(Address_HL), LOWER8(BC));
}
TEST(StackTest, PopBC) {
const uint8_t POP_BC = 0xC1;
CPU* cpu = getTestingCPUWithInstructions(vector<uint8_t>{POP_BC});
uint16_t expected = 0xFEED;
cpu->Push16Bit(expected);
cpu->Step();
ASSERT_EQ(expected, cpu->Get16Bit(Register_BC));
}
TEST(StackTest, PushPopDE) {
const uint8_t PUSH_DE = 0xD5;
const uint8_t POP_DE = 0xD1;
CPU* cpu = getTestingCPUWithInstructions(vector<uint8_t>{PUSH_DE, POP_DE});
uint16_t expected = 0xFEED;
cpu->Set16Bit(Register_DE, expected);
cpu->Step();
cpu->Set16Bit(Register_DE, ~expected);
ASSERT_NE(expected, cpu->Get16Bit(Register_DE));
cpu->Step();
ASSERT_EQ(expected, cpu->Get16Bit(Register_DE));
}
|
// Copyright (c) 2019, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#include "mamba/version.hpp"
#include "mamba/core/fetch.hpp"
#include "mamba/core/context.hpp"
#include "mamba/core/thread_utils.hpp"
#include "mamba/core/util.hpp"
#include "mamba/core/url.hpp"
#include <string_view>
#include <thread>
#include <regex>
namespace mamba
{
void init_curl_ssl()
{
auto& ctx = Context::instance();
if (!ctx.curl_initialized)
{
if (ctx.ssl_verify == "<false>")
{
LOG_DEBUG << "'ssl_verify' not activated, skipping cURL SSL init";
ctx.curl_initialized = true;
return;
}
#ifdef LIBMAMBA_STATIC_DEPS
CURLsslset sslset_res;
const curl_ssl_backend** available_backends;
if (on_linux)
{
sslset_res
= curl_global_sslset(CURLSSLBACKEND_OPENSSL, nullptr, &available_backends);
}
else if (on_mac)
{
sslset_res = curl_global_sslset(
CURLSSLBACKEND_SECURETRANSPORT, nullptr, &available_backends);
}
else if (on_win)
{
sslset_res
= curl_global_sslset(CURLSSLBACKEND_SCHANNEL, nullptr, &available_backends);
}
if (sslset_res == CURLSSLSET_TOO_LATE)
{
LOG_ERROR << "cURL SSL init called too late, that is a bug.";
}
else if (sslset_res == CURLSSLSET_UNKNOWN_BACKEND
|| sslset_res == CURLSSLSET_NO_BACKENDS)
{
LOG_WARNING
<< "Could not use preferred SSL backend (Linux: OpenSSL, OS X: SecureTransport, Win: SChannel)"
<< std::endl;
LOG_WARNING << "Please check the cURL library configuration that you are using."
<< std::endl;
}
CURL* handle = curl_easy_init();
if (handle)
{
const struct curl_tlssessioninfo* info = NULL;
CURLcode res = curl_easy_getinfo(handle, CURLINFO_TLS_SSL_PTR, &info);
if (info && !res)
{
if (info->backend == CURLSSLBACKEND_OPENSSL)
{
LOG_INFO << "Using OpenSSL backend";
}
else if (info->backend == CURLSSLBACKEND_SECURETRANSPORT)
{
LOG_INFO << "Using macOS SecureTransport backend";
}
else if (info->backend == CURLSSLBACKEND_SCHANNEL)
{
LOG_INFO << "Using Windows Schannel backend";
}
else if (info->backend != CURLSSLBACKEND_NONE)
{
LOG_INFO << "Using an unknown (to mamba) SSL backend";
}
else if (info->backend == CURLSSLBACKEND_NONE)
{
LOG_WARNING
<< "No SSL backend found! Please check how your cURL library is configured.";
}
}
curl_easy_cleanup(handle);
}
#endif
if (!ctx.ssl_verify.size() && std::getenv("REQUESTS_CA_BUNDLE") != nullptr)
{
ctx.ssl_verify = std::getenv("REQUESTS_CA_BUNDLE");
LOG_INFO << "Using REQUESTS_CA_BUNDLE " << ctx.ssl_verify;
}
else if (ctx.ssl_verify == "<system>" && on_linux)
{
std::array<std::string, 6> cert_locations{
"/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc.
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL 6
"/etc/ssl/ca-bundle.pem", // OpenSUSE
"/etc/pki/tls/cacert.pem", // OpenELEC
"/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", // CentOS/RHEL 7
"/etc/ssl/cert.pem", // Alpine Linux
};
bool found = false;
for (const auto& loc : cert_locations)
{
if (fs::exists(loc))
{
ctx.ssl_verify = loc;
found = true;
}
}
if (!found)
{
LOG_ERROR << "No CA certificates found on system";
throw std::runtime_error("Aborting.");
}
}
ctx.curl_initialized = true;
}
}
/*********************************
* DownloadTarget implementation *
*********************************/
DownloadTarget::DownloadTarget(const std::string& name,
const std::string& url,
const std::string& filename)
: m_name(name)
, m_filename(filename)
, m_url(unc_url(url))
{
m_handle = curl_easy_init();
init_curl_ssl();
init_curl_target(m_url);
}
void DownloadTarget::init_curl_handle(CURL* handle, const std::string& url)
{
curl_easy_setopt(handle, CURLOPT_URL, url.c_str());
curl_easy_setopt(handle, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
// DO NOT SET TIMEOUT as it will also take into account multi-start time and
// it's just wrong curl_easy_setopt(m_handle, CURLOPT_TIMEOUT,
// Context::instance().read_timeout_secs);
// TODO while libcurl in conda now _has_ http2 support we need to fix mamba to
// work properly with it this includes:
// - setting the cache stuff correctly
// - fixing how the progress bar works
curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
// if the request is slower than 30b/s for 60 seconds, cancel.
curl_easy_setopt(handle, CURLOPT_LOW_SPEED_TIME, 60L);
curl_easy_setopt(handle, CURLOPT_LOW_SPEED_LIMIT, 30L);
curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT, Context::instance().connect_timeout_secs);
std::string ssl_no_revoke_env
= std::getenv("MAMBA_SSL_NO_REVOKE") ? std::getenv("MAMBA_SSL_NO_REVOKE") : "0";
if (Context::instance().ssl_no_revoke || ssl_no_revoke_env != "0")
{
curl_easy_setopt(handle, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NO_REVOKE);
}
std::string& ssl_verify = Context::instance().ssl_verify;
if (ssl_verify.size())
{
if (ssl_verify == "<false>")
{
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);
}
else if (ssl_verify == "<system>")
{
#ifdef LIBMAMBA_STATIC_DEPS
curl_easy_setopt(handle, CURLOPT_CAINFO, nullptr);
#endif
}
else
{
if (!fs::exists(ssl_verify))
{
throw std::runtime_error("ssl_verify does not contain a valid file path.");
}
else
{
curl_easy_setopt(handle, CURLOPT_CAINFO, ssl_verify.c_str());
}
}
}
}
void DownloadTarget::init_curl_target(const std::string& url)
{
init_curl_handle(m_handle, url);
curl_easy_setopt(m_handle, CURLOPT_ERRORBUFFER, m_errbuf);
curl_easy_setopt(m_handle, CURLOPT_HEADERFUNCTION, &DownloadTarget::header_callback);
curl_easy_setopt(m_handle, CURLOPT_HEADERDATA, this);
curl_easy_setopt(m_handle, CURLOPT_WRITEFUNCTION, &DownloadTarget::write_callback);
curl_easy_setopt(m_handle, CURLOPT_WRITEDATA, this);
m_headers = nullptr;
if (ends_with(url, ".json"))
{
curl_easy_setopt(
m_handle, CURLOPT_ACCEPT_ENCODING, "gzip, deflate, compress, identity");
m_headers = curl_slist_append(m_headers, "Content-Type: application/json");
}
static std::string user_agent
= std::string("User-Agent: mamba/" LIBMAMBA_VERSION_STRING " ") + curl_version();
m_headers = curl_slist_append(m_headers, user_agent.c_str());
curl_easy_setopt(m_handle, CURLOPT_HTTPHEADER, m_headers);
curl_easy_setopt(m_handle, CURLOPT_VERBOSE, Context::instance().verbosity >= 2);
}
bool DownloadTarget::can_retry()
{
return m_retries < size_t(Context::instance().max_retries) && http_status >= 500
&& !starts_with(m_url, "file://");
}
CURL* DownloadTarget::retry()
{
auto now = std::chrono::steady_clock::now();
if (now >= m_next_retry)
{
if (fs::exists(m_filename))
{
fs::remove(m_filename);
}
init_curl_target(m_url);
if (m_has_progress_bar)
{
curl_easy_setopt(
m_handle, CURLOPT_XFERINFOFUNCTION, &DownloadTarget::progress_callback);
curl_easy_setopt(m_handle, CURLOPT_XFERINFODATA, this);
}
m_retry_wait_seconds = m_retry_wait_seconds * Context::instance().retry_backoff;
m_next_retry = now + std::chrono::seconds(m_retry_wait_seconds);
m_retries++;
return m_handle;
}
else
{
return nullptr;
}
}
DownloadTarget::~DownloadTarget()
{
curl_easy_cleanup(m_handle);
curl_slist_free_all(m_headers);
}
size_t DownloadTarget::write_callback(char* ptr, size_t size, size_t nmemb, void* self)
{
auto* s = reinterpret_cast<DownloadTarget*>(self);
if (!s->m_file.is_open())
{
s->m_file = std::ofstream(s->m_filename, std::ios::binary);
if (!s->m_file)
{
LOG_ERROR << "Could not open file for download " << s->m_filename << ": "
<< strerror(errno);
exit(1);
}
}
s->m_file.write(ptr, size * nmemb);
if (!s->m_file)
{
LOG_ERROR << "Could not write to file " << s->m_filename << ": " << strerror(errno);
exit(1);
}
return size * nmemb;
}
size_t DownloadTarget::header_callback(char* buffer, size_t size, size_t nitems, void* self)
{
auto* s = reinterpret_cast<DownloadTarget*>(self);
std::string_view header(buffer, size * nitems);
auto colon_idx = header.find(':');
if (colon_idx != std::string_view::npos)
{
std::string_view key, value;
key = header.substr(0, colon_idx);
colon_idx++;
// remove spaces
while (std::isspace(header[colon_idx]))
{
++colon_idx;
}
// remove \r\n header ending
value = header.substr(colon_idx, header.size() - colon_idx - 2);
// http headers are case insensitive!
std::string lkey = to_lower(key);
if (lkey == "etag")
{
s->etag = value;
}
else if (lkey == "cache-control")
{
s->cache_control = value;
}
else if (lkey == "last-modified")
{
s->mod = value;
}
}
return nitems * size;
}
int DownloadTarget::progress_callback(
void*, curl_off_t total_to_download, curl_off_t now_downloaded, curl_off_t, curl_off_t)
{
if (Context::instance().quiet || Context::instance().json)
{
return 0;
}
auto now = std::chrono::steady_clock::now();
if (now - m_progress_throttle_time < std::chrono::milliseconds(150))
{
return 0;
}
m_progress_throttle_time = now;
if (total_to_download != 0 && now_downloaded == 0 && m_expected_size != 0)
{
now_downloaded = total_to_download;
total_to_download = m_expected_size;
}
if ((total_to_download != 0 || m_expected_size != 0) && now_downloaded != 0)
{
std::stringstream postfix;
postfix << std::setw(6);
to_human_readable_filesize(postfix, now_downloaded);
postfix << " / ";
postfix << std::setw(6);
to_human_readable_filesize(postfix, total_to_download);
postfix << " (";
postfix << std::setw(6);
to_human_readable_filesize(postfix, get_speed(), 2);
postfix << "/s)";
m_progress_bar.set_progress(now_downloaded, total_to_download);
m_progress_bar.set_postfix(postfix.str());
}
if (now_downloaded == 0 && total_to_download != 0)
{
std::stringstream postfix;
to_human_readable_filesize(postfix, total_to_download);
postfix << " / ?? (";
to_human_readable_filesize(postfix, get_speed(), 2);
postfix << "/s)";
m_progress_bar.set_progress(SIZE_MAX, SIZE_MAX);
m_progress_bar.set_postfix(postfix.str());
}
return 0;
}
void DownloadTarget::set_mod_etag_headers(const nlohmann::json& mod_etag)
{
auto to_header = [](const std::string& key, const std::string& value) {
return std::string(key + ": " + value);
};
if (mod_etag.find("_etag") != mod_etag.end())
{
m_headers = curl_slist_append(m_headers,
to_header("If-None-Match", mod_etag["_etag"]).c_str());
}
if (mod_etag.find("_mod") != mod_etag.end())
{
m_headers = curl_slist_append(m_headers,
to_header("If-Modified-Since", mod_etag["_mod"]).c_str());
}
}
void DownloadTarget::set_progress_bar(ProgressProxy progress_proxy)
{
m_has_progress_bar = true;
m_progress_bar = progress_proxy;
curl_easy_setopt(m_handle, CURLOPT_XFERINFOFUNCTION, &DownloadTarget::progress_callback);
curl_easy_setopt(m_handle, CURLOPT_XFERINFODATA, this);
curl_easy_setopt(m_handle, CURLOPT_NOPROGRESS, 0L);
}
void DownloadTarget::set_expected_size(std::size_t size)
{
m_expected_size = size;
}
const std::string& DownloadTarget::name() const
{
return m_name;
}
static size_t discard(char* ptr, size_t size, size_t nmemb, void*)
{
return size * nmemb;
}
bool DownloadTarget::resource_exists()
{
auto handle = curl_easy_init();
init_curl_ssl();
init_curl_handle(handle, m_url);
curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1L);
curl_easy_setopt(handle, CURLOPT_NOBODY, 1L);
if (curl_easy_perform(handle) == CURLE_OK)
return true;
long response_code;
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &response_code);
if (response_code == 405)
{
// Method not allowed
// Some servers don't support HEAD, try a GET if the HEAD fails
curl_easy_setopt(handle, CURLOPT_NOBODY, 0L);
// Prevent output of data
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, &discard);
return curl_easy_perform(handle) == CURLE_OK;
}
else
return false;
}
bool DownloadTarget::perform()
{
LOG_INFO << "Downloading to filename: " << m_filename;
result = curl_easy_perform(m_handle);
set_result(result);
return m_finalize_callback ? m_finalize_callback() : true;
}
CURL* DownloadTarget::handle()
{
return m_handle;
}
curl_off_t DownloadTarget::get_speed()
{
curl_off_t speed;
CURLcode res = curl_easy_getinfo(m_handle, CURLINFO_SPEED_DOWNLOAD_T, &speed);
return res == CURLE_OK ? speed : 0;
}
void DownloadTarget::set_result(CURLcode r)
{
result = r;
if (r != CURLE_OK)
{
char* effective_url = nullptr;
curl_easy_getinfo(m_handle, CURLINFO_EFFECTIVE_URL, &effective_url);
std::stringstream err;
err << "Download error (" << result << ") " << curl_easy_strerror(result) << " ["
<< effective_url << "]\n";
if (m_errbuf[0] != '\0')
{
err << m_errbuf;
}
LOG_INFO << err.str();
m_next_retry
= std::chrono::steady_clock::now() + std::chrono::seconds(m_retry_wait_seconds);
if (m_has_progress_bar)
{
m_progress_bar.set_progress(0, 1);
m_progress_bar.set_postfix(curl_easy_strerror(result));
}
if (!m_ignore_failure && !can_retry())
{
throw std::runtime_error(err.str());
}
}
}
bool DownloadTarget::finalize()
{
char* effective_url = nullptr;
auto cres = curl_easy_getinfo(m_handle, CURLINFO_SPEED_DOWNLOAD_T, &avg_speed);
if (cres != CURLE_OK)
{
avg_speed = 0;
}
curl_easy_getinfo(m_handle, CURLINFO_RESPONSE_CODE, &http_status);
curl_easy_getinfo(m_handle, CURLINFO_EFFECTIVE_URL, &effective_url);
curl_easy_getinfo(m_handle, CURLINFO_SIZE_DOWNLOAD_T, &downloaded_size);
LOG_INFO << "Transfer finalized, status: " << http_status << " [" << effective_url << "] "
<< downloaded_size << " bytes";
if (http_status >= 500 && can_retry())
{
// this request didn't work!
m_next_retry
= std::chrono::steady_clock::now() + std::chrono::seconds(m_retry_wait_seconds);
std::stringstream msg;
msg << "Failed (" << http_status << "), retry in " << m_retry_wait_seconds << "s";
m_progress_bar.set_progress(0, downloaded_size);
m_progress_bar.set_postfix(msg.str());
return false;
}
m_file.close();
final_url = effective_url;
if (m_finalize_callback)
{
return m_finalize_callback();
}
else
{
if (m_has_progress_bar)
{
m_progress_bar.mark_as_completed("Downloaded " + m_name);
}
}
return true;
}
/**************************************
* MultiDownloadTarget implementation *
**************************************/
MultiDownloadTarget::MultiDownloadTarget()
{
m_handle = curl_multi_init();
curl_multi_setopt(
m_handle, CURLMOPT_MAX_TOTAL_CONNECTIONS, Context::instance().max_parallel_downloads);
}
MultiDownloadTarget::~MultiDownloadTarget()
{
curl_multi_cleanup(m_handle);
}
void MultiDownloadTarget::add(DownloadTarget* target)
{
if (!target)
return;
CURLMcode code = curl_multi_add_handle(m_handle, target->handle());
if (code != CURLM_CALL_MULTI_PERFORM)
{
if (code != CURLM_OK)
{
throw std::runtime_error(curl_multi_strerror(code));
}
}
m_targets.push_back(target);
}
bool MultiDownloadTarget::check_msgs(bool failfast)
{
int msgs_in_queue;
CURLMsg* msg;
while ((msg = curl_multi_info_read(m_handle, &msgs_in_queue)))
{
// TODO maybe refactor so that `msg` is passed to current target?
DownloadTarget* current_target = nullptr;
for (const auto& target : m_targets)
{
if (target->handle() == msg->easy_handle)
{
current_target = target;
break;
}
}
if (!current_target)
{
throw std::runtime_error("Could not find target associated with multi request");
}
current_target->set_result(msg->data.result);
if (msg->data.result != CURLE_OK)
{
if (current_target->can_retry())
{
curl_multi_remove_handle(m_handle, current_target->handle());
m_retry_targets.push_back(current_target);
continue;
}
}
if (msg->msg == CURLMSG_DONE)
{
LOG_INFO << "Transfer done ...";
// We are only interested in messages about finished transfers
curl_multi_remove_handle(m_handle, current_target->handle());
// flush file & finalize transfer
if (!current_target->finalize())
{
// transfer did not work! can we retry?
if (current_target->can_retry())
{
LOG_INFO << "Adding target to retry!";
m_retry_targets.push_back(current_target);
}
else
{
if (failfast && current_target->ignore_failure() == false)
{
throw std::runtime_error("Multi-download failed.");
}
}
}
}
}
return true;
}
bool MultiDownloadTarget::download(bool failfast)
{
LOG_INFO << "Starting to download targets";
int still_running, repeats = 0;
const long max_wait_msecs = 1000;
do
{
CURLMcode code = curl_multi_perform(m_handle, &still_running);
if (code != CURLM_OK)
{
throw std::runtime_error(curl_multi_strerror(code));
}
check_msgs(failfast);
if (!m_retry_targets.empty())
{
auto it = m_retry_targets.begin();
while (it != m_retry_targets.end())
{
CURL* curl_handle = (*it)->retry();
if (curl_handle != nullptr)
{
curl_multi_add_handle(m_handle, curl_handle);
it = m_retry_targets.erase(it);
still_running = 1;
}
else
{
++it;
}
}
}
long curl_timeout = -1; // NOLINT(runtime/int)
code = curl_multi_timeout(m_handle, &curl_timeout);
if (code != CURLM_OK)
{
throw std::runtime_error(curl_multi_strerror(code));
}
if (curl_timeout == 0) // No wait
continue;
if (curl_timeout < 0 || curl_timeout > max_wait_msecs) // Wait no more than 1s
curl_timeout = max_wait_msecs;
int numfds;
code = curl_multi_wait(m_handle, NULL, 0, curl_timeout, &numfds);
if (code != CURLM_OK)
{
throw std::runtime_error(curl_multi_strerror(code));
}
if (!numfds)
{
repeats++; // count number of repeated zero numfds
if (repeats > 1)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
}
else
{
repeats = 0;
}
} while ((still_running || !m_retry_targets.empty()) && !is_sig_interrupted());
if (is_sig_interrupted())
{
Console::print("Download interrupted");
curl_multi_cleanup(m_handle);
return false;
}
return true;
}
} // namespace mamba
|
/***************************************************//**
* @file OBPIntegrationTimeExchange.cpp
* @date January 2011
* @author Ocean Optics, Inc.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2014, Ocean Optics Inc
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject
* to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************/
#include "common/globals.h"
#include "vendors/OceanOptics/protocols/obp/exchanges/OBPIntegrationTimeExchange.h"
#include "vendors/OceanOptics/protocols/obp/hints/OBPControlHint.h"
#include "vendors/OceanOptics/protocols/obp/constants/OBPMessageTypes.h"
#include "vendors/OceanOptics/protocols/obp/exchanges/OBPMessage.h"
using namespace seabreeze;
using namespace oceanBinaryProtocol;
OBPIntegrationTimeExchange::OBPIntegrationTimeExchange(
unsigned long intTimeBase_usec) {
this->integrationTimeBase_usec = intTimeBase_usec;
this->messageType = OBPMessageTypes::OBP_SET_ITIME_USEC;
this->hints->push_back(new OBPControlHint());
this->payload.resize(sizeof(unsigned int));
/* In case the caller does not specify an integration time, pick something
* relatively innocuous. 100ms is fast enough that the overhead to change
* to something else is relatively low, while still being well inside the
* supported range.
*/
this->integrationTime_usec = 100000;
}
OBPIntegrationTimeExchange::~OBPIntegrationTimeExchange() {
}
void OBPIntegrationTimeExchange::setIntegrationTimeMicros(
unsigned long intTime_usec) {
/* Scale this so that it is in the units that the given device
* expects.
*/
this->integrationTime_usec = intTime_usec / this->integrationTimeBase_usec;
this->payload[0] = (byte) (this->integrationTime_usec & 0x00FF);
this->payload[1] = (byte) ((this->integrationTime_usec >> 8) & 0x00FF);
this->payload[2] = (byte) ((this->integrationTime_usec >> 16) & 0x00FF);
this->payload[3] = (byte) ((this->integrationTime_usec >> 24) & 0x00FF);
}
|
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor licenses this file to you under the OpenPegasus Open
// Source License; you may not use this file except in compliance with the
// License.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//////////////////////////////////////////////////////////////////////////
//
//%/////////////////////////////////////////////////////////////////////////
#include "UNIX_ElementsLinkedProvider.h"
UNIX_ElementsLinkedProvider::UNIX_ElementsLinkedProvider()
{
}
UNIX_ElementsLinkedProvider::~UNIX_ElementsLinkedProvider()
{
}
CIMInstance UNIX_ElementsLinkedProvider::constructInstance(
const CIMName &className,
const CIMNamespaceName &nameSpace,
const UNIX_ElementsLinked &_p)
{
CIMProperty p;
CIMInstance inst(className);
// Set path
inst.setPath(CIMObjectPath(String(""), // hostname
nameSpace,
CIMName("UNIX_ElementsLinked"),
constructKeyBindings(_p)));
//CIM_Dependency Properties
if (_p.getAntecedent(p)) inst.addProperty(p);
if (_p.getDependent(p)) inst.addProperty(p);
//CIM_ElementsLinked Properties
return inst;
}
Array<CIMKeyBinding> UNIX_ElementsLinkedProvider::constructKeyBindings(const UNIX_ElementsLinked& _p)
{
Array<CIMKeyBinding> keys;
keys.append(CIMKeyBinding(
PROPERTY_ANTECEDENT,
CIMValue(_p.getAntecedent()).toString(),
CIMKeyBinding::REFERENCE));
keys.append(CIMKeyBinding(
PROPERTY_DEPENDENT,
CIMValue(_p.getDependent()).toString(),
CIMKeyBinding::REFERENCE));
return keys;
}
#define UNIX_PROVIDER UNIX_ElementsLinkedProvider
#define UNIX_PROVIDER_NAME "UNIX_ElementsLinkedProvider"
#define CLASS_IMPLEMENTATION UNIX_ElementsLinked
#define CLASS_IMPLEMENTATION_NAME "UNIX_ElementsLinked"
#define BASE_CLASS_NAME "CIM_ElementsLinked"
#define NUMKEYS_CLASS_IMPLEMENTATION 0
#include "UNIXProviderBase.hpp"
|
// Copyright (c) 2013 The Chromium Embedded Framework 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 <sstream>
#include "include/base/cef_bind.h"
#include "include/cef_task.h"
#include "include/cef_v8.h"
#include "include/wrapper/cef_closure_task.h"
#include "tests/ceftests/test_handler.h"
#include "tests/gtest/include/gtest/gtest.h"
#include "tests/shared/browser/client_app_browser.h"
#include "tests/shared/renderer/client_app_renderer.h"
using client::ClientAppBrowser;
using client::ClientAppRenderer;
// How to add a new test:
// 1. Add a new value to the V8TestMode enumeration.
// 2. Add a method that implements the test in V8RendererTest.
// 3. Add a case for the new enumeration value in V8RendererTest::RunTest.
// 4. Add a line for the test in the "Define the tests" section at the bottom of
// the file.
namespace {
// Unique values for V8 tests.
const char kV8TestUrl[] = "http://tests/V8Test.Test";
const char kV8BindingTestUrl[] = "http://tests/V8Test.BindingTest";
const char kV8ContextParentTestUrl[] = "http://tests/V8Test.ContextParentTest";
const char kV8ContextChildTestUrl[] = "http://tests/V8Test.ContextChildTest";
const char kV8NavTestUrl[] = "http://tests/V8Test.NavTest";
const char kV8ContextEvalCspBypassUnsafeEval[] =
"http://tests/V8Test.ContextEvalCspBypassUnsafeEval";
const char kV8ContextEvalCspBypassSandbox[] =
"http://tests/V8Test.ContextEvalCspBypassSandbox";
const char kV8OnUncaughtExceptionTestUrl[] =
"http://tests/V8Test.OnUncaughtException";
const char kV8HandlerCallOnReleasedContextUrl[] =
"http://tests/V8Test.HandlerCallOnReleasedContext/main.html";
const char kV8HandlerCallOnReleasedContextChildUrl[] =
"http://tests/V8Test.HandlerCallOnReleasedContext/child.html";
const char kV8TestMsg[] = "V8Test.Test";
const char kV8TestCmdKey[] = "v8-test";
const char kV8RunTestMsg[] = "V8Test.RunTest";
enum V8TestMode {
V8TEST_NONE = 0,
V8TEST_NULL_CREATE,
V8TEST_BOOL_CREATE,
V8TEST_INT_CREATE,
V8TEST_UINT_CREATE,
V8TEST_DOUBLE_CREATE,
V8TEST_DATE_CREATE,
V8TEST_STRING_CREATE,
V8TEST_EMPTY_STRING_CREATE,
V8TEST_ARRAY_CREATE,
V8TEST_ARRAY_VALUE,
V8TEST_ARRAY_BUFFER,
V8TEST_ARRAY_BUFFER_VALUE,
V8TEST_OBJECT_CREATE,
V8TEST_OBJECT_USERDATA,
V8TEST_OBJECT_ACCESSOR,
V8TEST_OBJECT_ACCESSOR_EXCEPTION,
V8TEST_OBJECT_ACCESSOR_FAIL,
V8TEST_OBJECT_ACCESSOR_READONLY,
V8TEST_OBJECT_INTERCEPTOR,
V8TEST_OBJECT_INTERCEPTOR_FAIL,
V8TEST_OBJECT_INTERCEPTOR_EXCEPTION,
V8TEST_OBJECT_INTERCEPTOR_AND_ACCESSOR,
V8TEST_OBJECT_VALUE,
V8TEST_OBJECT_VALUE_READONLY,
V8TEST_OBJECT_VALUE_ENUM,
V8TEST_OBJECT_VALUE_DONTENUM,
V8TEST_OBJECT_VALUE_DELETE,
V8TEST_OBJECT_VALUE_DONTDELETE,
V8TEST_OBJECT_VALUE_EMPTYKEY,
V8TEST_FUNCTION_CREATE,
V8TEST_FUNCTION_HANDLER,
V8TEST_FUNCTION_HANDLER_EXCEPTION,
V8TEST_FUNCTION_HANDLER_FAIL,
V8TEST_FUNCTION_HANDLER_NO_OBJECT,
V8TEST_FUNCTION_HANDLER_WITH_CONTEXT,
V8TEST_FUNCTION_HANDLER_EMPTY_STRING,
V8TEST_CONTEXT_EVAL,
V8TEST_CONTEXT_EVAL_EXCEPTION,
V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL,
V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX,
V8TEST_CONTEXT_ENTERED,
V8TEST_BINDING,
V8TEST_STACK_TRACE,
V8TEST_ON_UNCAUGHT_EXCEPTION,
V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS,
V8TEST_EXTENSION,
V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT,
};
// Renderer side.
class V8RendererTest : public ClientAppRenderer::Delegate,
public CefLoadHandler {
public:
V8RendererTest() : test_mode_(V8TEST_NONE) {}
// Run a test when the process message is received from the browser.
void RunTest() {
switch (test_mode_) {
case V8TEST_NULL_CREATE:
RunNullCreateTest();
break;
case V8TEST_BOOL_CREATE:
RunBoolCreateTest();
break;
case V8TEST_INT_CREATE:
RunIntCreateTest();
break;
case V8TEST_UINT_CREATE:
RunUIntCreateTest();
break;
case V8TEST_DOUBLE_CREATE:
RunDoubleCreateTest();
break;
case V8TEST_DATE_CREATE:
RunDateCreateTest();
break;
case V8TEST_STRING_CREATE:
RunStringCreateTest();
break;
case V8TEST_EMPTY_STRING_CREATE:
RunEmptyStringCreateTest();
break;
case V8TEST_ARRAY_CREATE:
RunArrayCreateTest();
break;
case V8TEST_ARRAY_VALUE:
RunArrayValueTest();
break;
case V8TEST_ARRAY_BUFFER:
RunArrayBufferTest();
break;
case V8TEST_ARRAY_BUFFER_VALUE:
RunArrayBufferValueTest();
break;
case V8TEST_OBJECT_CREATE:
RunObjectCreateTest();
break;
case V8TEST_OBJECT_USERDATA:
RunObjectUserDataTest();
break;
case V8TEST_OBJECT_ACCESSOR:
RunObjectAccessorTest();
break;
case V8TEST_OBJECT_ACCESSOR_EXCEPTION:
RunObjectAccessorExceptionTest();
break;
case V8TEST_OBJECT_ACCESSOR_FAIL:
RunObjectAccessorFailTest();
break;
case V8TEST_OBJECT_ACCESSOR_READONLY:
RunObjectAccessorReadOnlyTest();
break;
case V8TEST_OBJECT_INTERCEPTOR:
RunObjectInterceptorTest();
break;
case V8TEST_OBJECT_INTERCEPTOR_FAIL:
RunObjectInterceptorFailTest();
break;
case V8TEST_OBJECT_INTERCEPTOR_EXCEPTION:
RunObjectInterceptorExceptionTest();
break;
case V8TEST_OBJECT_INTERCEPTOR_AND_ACCESSOR:
RunObjectInterceptorAndAccessorTest();
break;
case V8TEST_OBJECT_VALUE:
RunObjectValueTest();
break;
case V8TEST_OBJECT_VALUE_READONLY:
RunObjectValueReadOnlyTest();
break;
case V8TEST_OBJECT_VALUE_ENUM:
RunObjectValueEnumTest();
break;
case V8TEST_OBJECT_VALUE_DONTENUM:
RunObjectValueDontEnumTest();
break;
case V8TEST_OBJECT_VALUE_DELETE:
RunObjectValueDeleteTest();
break;
case V8TEST_OBJECT_VALUE_DONTDELETE:
RunObjectValueDontDeleteTest();
break;
case V8TEST_OBJECT_VALUE_EMPTYKEY:
RunObjectValueEmptyKeyTest();
break;
case V8TEST_FUNCTION_CREATE:
RunFunctionCreateTest();
break;
case V8TEST_FUNCTION_HANDLER:
RunFunctionHandlerTest();
break;
case V8TEST_FUNCTION_HANDLER_EXCEPTION:
RunFunctionHandlerExceptionTest();
break;
case V8TEST_FUNCTION_HANDLER_FAIL:
RunFunctionHandlerFailTest();
break;
case V8TEST_FUNCTION_HANDLER_NO_OBJECT:
RunFunctionHandlerNoObjectTest();
break;
case V8TEST_FUNCTION_HANDLER_WITH_CONTEXT:
RunFunctionHandlerWithContextTest();
break;
case V8TEST_FUNCTION_HANDLER_EMPTY_STRING:
RunFunctionHandlerEmptyStringTest();
break;
case V8TEST_CONTEXT_EVAL:
RunContextEvalTest();
break;
case V8TEST_CONTEXT_EVAL_EXCEPTION:
RunContextEvalExceptionTest();
break;
case V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL:
RunContextEvalCspBypassUnsafeEval();
break;
case V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX:
RunContextEvalCspBypassSandbox();
break;
case V8TEST_CONTEXT_ENTERED:
RunContextEnteredTest();
break;
case V8TEST_BINDING:
RunBindingTest();
break;
case V8TEST_STACK_TRACE:
RunStackTraceTest();
break;
case V8TEST_ON_UNCAUGHT_EXCEPTION:
RunOnUncaughtExceptionTest();
break;
case V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT:
break;
default:
// Was a startup test.
EXPECT_TRUE(startup_test_success_);
DestroyTest();
break;
}
}
// Run a test on render process startup.
void RunStartupTest() {
switch (test_mode_) {
case V8TEST_EXTENSION:
RunExtensionTest();
break;
default:
break;
}
}
void RunNullCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateNull();
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsNull());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunBoolCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateBool(true);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsBool());
EXPECT_EQ(true, value->GetBoolValue());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunIntCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateInt(12);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsInt());
EXPECT_TRUE(value->IsUInt());
EXPECT_TRUE(value->IsDouble());
EXPECT_EQ(12, value->GetIntValue());
EXPECT_EQ((uint32)12, value->GetUIntValue());
EXPECT_EQ(12, value->GetDoubleValue());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunUIntCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateUInt(12);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsInt());
EXPECT_TRUE(value->IsUInt());
EXPECT_TRUE(value->IsDouble());
EXPECT_EQ(12, value->GetIntValue());
EXPECT_EQ((uint32)12, value->GetUIntValue());
EXPECT_EQ(12, value->GetDoubleValue());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunDoubleCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateDouble(12.1223);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsDouble());
EXPECT_EQ(12.1223, value->GetDoubleValue());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunDateCreateTest() {
CefRefPtr<CefV8Context> context = GetContext();
CefTime date;
date.year = 2200;
date.month = 4;
#if !defined(OS_MACOSX)
date.day_of_week = 5;
#endif
date.day_of_month = 11;
date.hour = 20;
date.minute = 15;
date.second = 42;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateDate(date);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsDate());
EXPECT_EQ(date.GetTimeT(), value->GetDateValue().GetTimeT());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsObject());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunStringCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateString("My string");
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsString());
EXPECT_STREQ("My string", value->GetStringValue().ToString().c_str());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
DestroyTest();
}
void RunEmptyStringCreateTest() {
CefRefPtr<CefV8Value> value = CefV8Value::CreateString(CefString());
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsString());
EXPECT_STREQ("", value->GetStringValue().ToString().c_str());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsObject());
DestroyTest();
}
void RunArrayCreateTest() {
CefRefPtr<CefV8Context> context = GetContext();
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateArray(2);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsArray());
EXPECT_TRUE(value->IsObject());
EXPECT_EQ(2, value->GetArrayLength());
EXPECT_FALSE(value->HasValue(0));
EXPECT_FALSE(value->HasValue(1));
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunArrayValueTest() {
CefRefPtr<CefV8Context> context = GetContext();
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateArray(0);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsArray());
EXPECT_EQ(0, value->GetArrayLength());
// Test addng values.
EXPECT_FALSE(value->HasValue(0));
EXPECT_FALSE(value->HasValue(1));
EXPECT_TRUE(value->SetValue(0, CefV8Value::CreateInt(10)));
EXPECT_FALSE(value->HasException());
EXPECT_TRUE(value->HasValue(0));
EXPECT_FALSE(value->HasValue(1));
EXPECT_TRUE(value->GetValue(0)->IsInt());
EXPECT_EQ(10, value->GetValue(0)->GetIntValue());
EXPECT_FALSE(value->HasException());
EXPECT_EQ(1, value->GetArrayLength());
EXPECT_TRUE(value->SetValue(1, CefV8Value::CreateInt(43)));
EXPECT_FALSE(value->HasException());
EXPECT_TRUE(value->HasValue(0));
EXPECT_TRUE(value->HasValue(1));
EXPECT_TRUE(value->GetValue(1)->IsInt());
EXPECT_EQ(43, value->GetValue(1)->GetIntValue());
EXPECT_FALSE(value->HasException());
EXPECT_EQ(2, value->GetArrayLength());
EXPECT_TRUE(value->DeleteValue(0));
EXPECT_FALSE(value->HasValue(0));
EXPECT_TRUE(value->HasValue(1));
EXPECT_EQ(2, value->GetArrayLength());
EXPECT_TRUE(value->DeleteValue(1));
EXPECT_FALSE(value->HasValue(0));
EXPECT_FALSE(value->HasValue(1));
EXPECT_EQ(2, value->GetArrayLength());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunArrayBufferTest() {
class TestArrayBufferReleaseCallback
: public CefV8ArrayBufferReleaseCallback {
public:
TestArrayBufferReleaseCallback(bool* destructorCalled,
bool* releaseBufferCalled)
: destructorCalled_(destructorCalled),
releaseBufferCalled_(releaseBufferCalled) {}
~TestArrayBufferReleaseCallback() { *destructorCalled_ = true; }
void ReleaseBuffer(void* buffer) override {
*releaseBufferCalled_ = true;
}
IMPLEMENT_REFCOUNTING(TestArrayBufferReleaseCallback);
private:
bool* destructorCalled_;
bool* releaseBufferCalled_;
};
CefRefPtr<CefV8Context> context = GetContext();
bool destructorCalled = false;
bool releaseBufferCalled = false;
bool neuteredDestructorCalled = false;
bool neuteredReleaseBufferCalled = false;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
{
int static_data[16];
CefRefPtr<CefV8Value> value;
CefRefPtr<TestArrayBufferReleaseCallback> release_callback =
new TestArrayBufferReleaseCallback(&destructorCalled,
&releaseBufferCalled);
CefRefPtr<CefV8Value> neuteredValue;
CefRefPtr<TestArrayBufferReleaseCallback> neuteredReleaseCallback =
new TestArrayBufferReleaseCallback(&neuteredDestructorCalled,
&neuteredReleaseBufferCalled);
value = CefV8Value::CreateArrayBuffer(static_data, sizeof(static_data),
release_callback);
neuteredValue = CefV8Value::CreateArrayBuffer(
static_data, sizeof(static_data), neuteredReleaseCallback);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsArrayBuffer());
EXPECT_TRUE(value->IsObject());
EXPECT_FALSE(value->HasValue(0));
EXPECT_FALSE(destructorCalled);
EXPECT_TRUE(value->GetArrayBufferReleaseCallback().get() != nullptr);
EXPECT_TRUE(((TestArrayBufferReleaseCallback*)value
->GetArrayBufferReleaseCallback()
.get()) == release_callback);
EXPECT_TRUE(neuteredValue->NeuterArrayBuffer());
}
// Exit the V8 context.
EXPECT_TRUE(destructorCalled);
EXPECT_TRUE(releaseBufferCalled);
EXPECT_TRUE(neuteredDestructorCalled);
EXPECT_FALSE(neuteredReleaseBufferCalled);
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunArrayBufferValueTest() {
class TestArrayBufferReleaseCallback
: public CefV8ArrayBufferReleaseCallback {
public:
TestArrayBufferReleaseCallback() {}
~TestArrayBufferReleaseCallback() {}
void ReleaseBuffer(void* buffer) override {}
IMPLEMENT_REFCOUNTING(TestArrayBufferReleaseCallback);
};
CefRefPtr<CefV8Context> context = GetContext();
// Enter the V8 context.
CefRefPtr<CefV8Value> value;
CefRefPtr<TestArrayBufferReleaseCallback> owner =
new TestArrayBufferReleaseCallback();
EXPECT_TRUE(context->Enter());
int static_data[16];
static_data[0] = 3;
value =
CefV8Value::CreateArrayBuffer(static_data, sizeof(static_data), owner);
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
object->SetValue("arr", value, V8_PROPERTY_ATTRIBUTE_NONE);
std::string test =
"let data = new Int32Array(window.arr); data[0] += data.length";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test, CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
EXPECT_TRUE(static_data[0] == 19);
EXPECT_TRUE(value->GetArrayBufferReleaseCallback().get() != nullptr);
EXPECT_TRUE(value->NeuterArrayBuffer());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectCreateTest() {
CefRefPtr<CefV8Context> context = GetContext();
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateObject(nullptr, nullptr);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsObject());
EXPECT_FALSE(value->GetUserData().get());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsFunction());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsString());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectUserDataTest() {
CefRefPtr<CefV8Context> context = GetContext();
class UserData : public CefBaseRefCounted {
public:
explicit UserData(int value) : value_(value) {}
int value_;
IMPLEMENT_REFCOUNTING(UserData);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateObject(nullptr, nullptr);
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->SetUserData(new UserData(10)));
CefRefPtr<CefBaseRefCounted> user_data = value->GetUserData();
EXPECT_TRUE(user_data.get());
UserData* user_data_impl = static_cast<UserData*>(user_data.get());
EXPECT_EQ(10, user_data_impl->value_);
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectAccessorTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
static const int kValue = 20;
class Accessor : public CefV8Accessor {
public:
Accessor() : value_(0) {}
bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_STREQ(kName, name.ToString().c_str());
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_FALSE(retval.get());
EXPECT_TRUE(exception.empty());
got_get_.yes();
retval = CefV8Value::CreateInt(value_);
EXPECT_EQ(kValue, retval->GetIntValue());
return true;
}
bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) override {
EXPECT_STREQ(kName, name.ToString().c_str());
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_TRUE(value.get());
EXPECT_TRUE(exception.empty());
got_set_.yes();
value_ = value->GetIntValue();
EXPECT_EQ(kValue, value_);
return true;
}
CefRefPtr<CefV8Value> object_;
int value_;
TrackCallback got_get_;
TrackCallback got_set_;
IMPLEMENT_REFCOUNTING(Accessor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Accessor* accessor = new Accessor;
CefRefPtr<CefV8Accessor> accessorPtr(accessor);
CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr);
EXPECT_TRUE(object.get());
accessor->object_ = object;
EXPECT_FALSE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_set_);
EXPECT_EQ(kValue, accessor->value_);
CefRefPtr<CefV8Value> val = object->GetValue(kName);
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(val.get());
EXPECT_TRUE(accessor->got_get_);
EXPECT_TRUE(val->IsInt());
EXPECT_EQ(kValue, val->GetIntValue());
accessor->object_ = nullptr;
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectAccessorExceptionTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
static const char* kGetException = "My get exception";
static const char* kSetException = "My set exception";
static const char* kGetExceptionMsg = "Uncaught Error: My get exception";
static const char* kSetExceptionMsg = "Uncaught Error: My set exception";
class Accessor : public CefV8Accessor {
public:
Accessor() {}
bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
got_get_.yes();
exception = kGetException;
return true;
}
bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) override {
got_set_.yes();
exception = kSetException;
return true;
}
TrackCallback got_get_;
TrackCallback got_set_;
IMPLEMENT_REFCOUNTING(Accessor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Exception> exception;
Accessor* accessor = new Accessor;
CefRefPtr<CefV8Accessor> accessorPtr(accessor);
CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr);
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->HasValue(kName));
EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(accessor->got_set_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kSetExceptionMsg, exception->GetMessage().ToString().c_str());
EXPECT_TRUE(object->ClearException());
EXPECT_FALSE(object->HasException());
CefRefPtr<CefV8Value> val = object->GetValue(kName);
EXPECT_FALSE(val.get());
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(accessor->got_get_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kGetExceptionMsg, exception->GetMessage().ToString().c_str());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectAccessorFailTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
class Accessor : public CefV8Accessor {
public:
Accessor() {}
bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
got_get_.yes();
return false;
}
bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) override {
got_set_.yes();
return false;
}
TrackCallback got_get_;
TrackCallback got_set_;
IMPLEMENT_REFCOUNTING(Accessor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Exception> exception;
Accessor* accessor = new Accessor;
CefRefPtr<CefV8Accessor> accessorPtr(accessor);
CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr);
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_set_);
CefRefPtr<CefV8Value> val = object->GetValue(kName);
EXPECT_TRUE(val.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_get_);
EXPECT_TRUE(val->IsUndefined());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectAccessorReadOnlyTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
class Accessor : public CefV8Accessor {
public:
Accessor() {}
bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
got_get_.yes();
return true;
}
bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) override {
got_set_.yes();
return true;
}
TrackCallback got_get_;
TrackCallback got_set_;
IMPLEMENT_REFCOUNTING(Accessor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Exception> exception;
Accessor* accessor = new Accessor;
CefRefPtr<CefV8Accessor> accessorPtr(accessor);
CefRefPtr<CefV8Value> object = CefV8Value::CreateObject(accessor, nullptr);
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_READONLY));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->HasValue(kName));
EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_FALSE(accessor->got_set_);
CefRefPtr<CefV8Value> val = object->GetValue(kName);
EXPECT_TRUE(val.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_get_);
EXPECT_TRUE(val->IsUndefined());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectInterceptorTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName1 = "val1";
static const char* kName2 = "val2";
static const char* kName3 = "val3";
static const int kValue1 = 20;
static const uint32 kValue2 = 30u;
static const char* kValue3 = "40";
static const int kArray[] = {50, 60, 70};
class Interceptor : public CefV8Interceptor {
public:
Interceptor() : value1_(0), value2_(0u), array_() {}
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
EXPECT_TRUE(name.ToString() == kName1 || name.ToString() == kName2 ||
name.ToString() == kName3);
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_FALSE(retval.get());
EXPECT_TRUE(exception.empty());
got_get_byname_.yes();
if (name.ToString() == kName1) {
retval = CefV8Value::CreateInt(value1_);
EXPECT_EQ(kValue1, retval->GetIntValue());
} else if (name.ToString() == kName2) {
retval = CefV8Value::CreateUInt(value2_);
EXPECT_EQ(kValue2, retval->GetUIntValue());
} else if (name.ToString() == kName3) {
retval = CefV8Value::CreateString(value3_);
EXPECT_STREQ(kValue3, retval->GetStringValue().ToString().c_str());
}
return true;
}
virtual bool Get(int index,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
EXPECT_TRUE(index >= 0 && index < 3);
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_FALSE(retval.get());
EXPECT_TRUE(exception.empty());
got_get_byindex_.yes();
retval = CefV8Value::CreateInt(array_[index]);
EXPECT_EQ(kArray[index], retval->GetIntValue());
return true;
}
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
EXPECT_TRUE(name.ToString() == kName1 || name.ToString() == kName2 ||
name.ToString() == kName3);
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_TRUE(value.get());
EXPECT_TRUE(exception.empty());
got_set_byname_.yes();
if (name.ToString() == kName1) {
value1_ = value->GetIntValue();
EXPECT_EQ(kValue1, value1_);
} else if (name.ToString() == kName2) {
value2_ = value->GetUIntValue();
EXPECT_EQ(kValue2, value2_);
} else if (name.ToString() == kName3) {
value3_ = value->GetStringValue();
EXPECT_STREQ(kValue3, value3_.ToString().c_str());
}
return true;
}
virtual bool Set(int index,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
EXPECT_TRUE(index >= 0 && index < 3);
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_TRUE(value.get());
EXPECT_TRUE(exception.empty());
got_set_byindex_.yes();
array_[index] = value->GetIntValue();
EXPECT_EQ(array_[index], kArray[index]);
return true;
}
CefRefPtr<CefV8Value> object_;
int value1_;
unsigned int value2_;
CefString value3_;
int array_[3];
TrackCallback got_get_byname_;
TrackCallback got_get_byindex_;
TrackCallback got_set_byname_;
TrackCallback got_set_byindex_;
IMPLEMENT_REFCOUNTING(Interceptor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Interceptor* interceptor = new Interceptor;
CefRefPtr<CefV8Interceptor> interceptorPtr(interceptor);
CefRefPtr<CefV8Value> object =
CefV8Value::CreateObject(nullptr, interceptor);
EXPECT_TRUE(object.get());
interceptor->object_ = object;
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->SetValue(kName1, CefV8Value::CreateInt(kValue1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byname_);
interceptor->got_set_byname_.reset();
EXPECT_TRUE(object->SetValue(kName2, CefV8Value::CreateUInt(kValue2),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byname_);
interceptor->got_set_byname_.reset();
EXPECT_TRUE(object->SetValue(kName3, CefV8Value::CreateString(kValue3),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byname_);
interceptor->got_set_byname_.reset();
EXPECT_EQ(kValue1, interceptor->value1_);
EXPECT_EQ(kValue2, interceptor->value2_);
EXPECT_STREQ(kValue3, interceptor->value3_.ToString().c_str());
for (int i = 0; i < 3; ++i) {
EXPECT_TRUE(object->SetValue(i, CefV8Value::CreateInt(kArray[i])));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byindex_);
interceptor->got_set_byindex_.reset();
EXPECT_EQ(kArray[i], interceptor->array_[i]);
}
CefRefPtr<CefV8Value> val1 = object->GetValue(kName1);
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(val1.get());
EXPECT_TRUE(interceptor->got_get_byname_);
interceptor->got_get_byname_.reset();
EXPECT_TRUE(val1->IsInt());
EXPECT_EQ(kValue1, val1->GetIntValue());
CefRefPtr<CefV8Value> val2 = object->GetValue(kName2);
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(val2.get());
EXPECT_TRUE(interceptor->got_get_byname_);
interceptor->got_get_byname_.reset();
EXPECT_TRUE(val2->IsUInt());
EXPECT_EQ(kValue2, val2->GetUIntValue());
CefRefPtr<CefV8Value> val3 = object->GetValue(kName3);
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(val3.get());
EXPECT_TRUE(interceptor->got_get_byname_);
interceptor->got_get_byname_.reset();
EXPECT_TRUE(val3->IsString());
EXPECT_STREQ(kValue3, val3->GetStringValue().ToString().c_str());
for (int i = 0; i < 3; ++i) {
CefRefPtr<CefV8Value> val = object->GetValue(i);
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(val.get());
EXPECT_TRUE(interceptor->got_get_byindex_);
interceptor->got_get_byname_.reset();
EXPECT_EQ(kArray[i], val->GetIntValue());
}
interceptor->object_ = nullptr;
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectInterceptorFailTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
static const int kIndex = 0;
static const int kValue1 = 20;
static const int kValue2 = 30;
class Interceptor : public CefV8Interceptor {
typedef std::map<int, int> IntMap;
typedef std::map<std::string, int> StringMap;
public:
Interceptor() {}
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_byname_.yes();
StringMap::iterator it = string_map_.find(name.ToString());
if (it != string_map_.end()) {
retval = CefV8Value::CreateInt(it->second);
}
return true;
}
virtual bool Get(int index,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_byindex_.yes();
IntMap::iterator it = int_map_.find(index);
if (it != int_map_.end()) {
retval = CefV8Value::CreateInt(it->second);
}
return true;
}
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
EXPECT_TRUE(value->IsInt());
got_set_byname_.yes();
string_map_[name.ToString()] = value->GetIntValue();
return true;
}
virtual bool Set(int index,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
EXPECT_TRUE(value->IsInt());
got_set_byindex_.yes();
int_map_[index] = value->GetIntValue();
return true;
}
IntMap int_map_;
StringMap string_map_;
TrackCallback got_get_byname_;
TrackCallback got_get_byindex_;
TrackCallback got_set_byname_;
TrackCallback got_set_byindex_;
IMPLEMENT_REFCOUNTING(Interceptor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Interceptor* interceptor = new Interceptor;
CefRefPtr<CefV8Interceptor> interceptorPtr(interceptor);
CefRefPtr<CefV8Value> object =
CefV8Value::CreateObject(nullptr, interceptor);
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->HasValue(kName));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byname_);
interceptor->got_get_byname_.reset();
CefRefPtr<CefV8Value> val1 = object->GetValue(kName);
EXPECT_TRUE(val1.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byname_);
EXPECT_TRUE(val1->IsUndefined());
interceptor->got_get_byname_.reset();
EXPECT_TRUE(object->SetValue(kName, CefV8Value::CreateInt(kValue1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byname_);
val1 = object->GetValue(kName);
EXPECT_TRUE(val1.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byname_);
EXPECT_EQ(kValue1, val1->GetIntValue());
EXPECT_FALSE(object->HasValue(kIndex));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byindex_);
interceptor->got_get_byindex_.reset();
CefRefPtr<CefV8Value> val2 = object->GetValue(kIndex);
EXPECT_TRUE(val2.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byindex_);
EXPECT_TRUE(val2->IsUndefined());
interceptor->got_get_byindex_.reset();
EXPECT_TRUE(object->SetValue(kIndex, CefV8Value::CreateInt(kValue2)));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byindex_);
val2 = object->GetValue(kIndex);
EXPECT_TRUE(val2.get());
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byindex_);
EXPECT_EQ(kValue2, val2->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectInterceptorExceptionTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "val";
static const int kIndex = 1;
static const char* kGetByNameException = "My get_byname exception";
static const char* kGetByIndexException = "My get_byindex exception";
static const char* kSetByNameException = "My set_byname exception";
static const char* kSetByIndexException = "My set_byindex exception";
static const char* kGetByNameExceptionMsg =
"Uncaught Error: My get_byname exception";
static const char* kGetByIndexExceptionMsg =
"Uncaught Error: My get_byindex exception";
static const char* kSetByNameExceptionMsg =
"Uncaught Error: My set_byname exception";
static const char* kSetByIndexExceptionMsg =
"Uncaught Error: My set_byindex exception";
class Interceptor : public CefV8Interceptor {
public:
Interceptor() {}
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_byname_.yes();
exception = kGetByNameException;
return true;
}
virtual bool Get(int index,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_byindex_.yes();
exception = kGetByIndexException;
return true;
}
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
got_set_byname_.yes();
exception = kSetByNameException;
return true;
}
virtual bool Set(int index,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
got_set_byindex_.yes();
exception = kSetByIndexException;
return true;
}
TrackCallback got_get_byname_;
TrackCallback got_get_byindex_;
TrackCallback got_set_byname_;
TrackCallback got_set_byindex_;
IMPLEMENT_REFCOUNTING(Interceptor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Exception> exception;
Interceptor* interceptor = new Interceptor;
CefRefPtr<CefV8Interceptor> interceptorPtr(interceptor);
CefRefPtr<CefV8Value> object =
CefV8Value::CreateObject(nullptr, interceptor);
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->SetValue(kName, CefV8Value::CreateInt(1),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byname_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kSetByNameExceptionMsg,
exception->GetMessage().ToString().c_str());
EXPECT_TRUE(object->ClearException());
EXPECT_FALSE(object->HasException());
CefRefPtr<CefV8Value> val1 = object->GetValue(kName);
EXPECT_FALSE(val1.get());
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byname_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kGetByNameExceptionMsg,
exception->GetMessage().ToString().c_str());
EXPECT_TRUE(object->ClearException());
EXPECT_FALSE(object->HasException());
EXPECT_FALSE(object->SetValue(kIndex, CefV8Value::CreateInt(1)));
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(interceptor->got_set_byindex_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kSetByIndexExceptionMsg,
exception->GetMessage().ToString().c_str());
EXPECT_TRUE(object->ClearException());
EXPECT_FALSE(object->HasException());
CefRefPtr<CefV8Value> val2 = object->GetValue(kIndex);
EXPECT_FALSE(val2.get());
EXPECT_TRUE(object->HasException());
EXPECT_TRUE(interceptor->got_get_byindex_);
exception = object->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kGetByIndexExceptionMsg,
exception->GetMessage().ToString().c_str());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectInterceptorAndAccessorTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kInterceptorName = "val1";
static const char* kAccessorName = "val2";
static const int kInterceptorValue = 20;
static const int kAccessorValue = 30;
class Interceptor : public CefV8Interceptor {
public:
Interceptor() {}
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
EXPECT_FALSE(retval.get());
got_get_byname_.yes();
if (name.ToString() == kInterceptorName) {
retval = CefV8Value::CreateInt(kInterceptorValue);
}
return true;
}
virtual bool Get(int index,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_byindex_.yes();
return true;
}
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
got_set_byname_.yes();
return true;
}
virtual bool Set(int index,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
got_set_byindex_.yes();
return true;
}
TrackCallback got_get_byname_;
TrackCallback got_get_byindex_;
TrackCallback got_set_byname_;
TrackCallback got_set_byindex_;
IMPLEMENT_REFCOUNTING(Interceptor);
};
class Accessor : public CefV8Accessor {
public:
Accessor() {}
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval,
CefString& exception) OVERRIDE {
got_get_.yes();
retval = CefV8Value::CreateInt(kAccessorValue);
return true;
}
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value,
CefString& exception) OVERRIDE {
got_set_.yes();
return true;
}
TrackCallback got_get_;
TrackCallback got_set_;
IMPLEMENT_REFCOUNTING(Accessor);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Interceptor* interceptor = new Interceptor;
CefRefPtr<CefV8Interceptor> interceptorPtr(interceptor);
Accessor* accessor = new Accessor;
CefRefPtr<CefV8Accessor> accessorPtr(accessor);
CefRefPtr<CefV8Value> object =
CefV8Value::CreateObject(accessor, interceptor);
EXPECT_TRUE(object.get());
// We register both names for accessor.
EXPECT_TRUE(object->SetValue(kAccessorName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->SetValue(kInterceptorName, V8_ACCESS_CONTROL_DEFAULT,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(object->SetValue(kAccessorName,
CefV8Value::CreateInt(kAccessorValue),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_set_);
accessor->got_set_.reset();
EXPECT_TRUE(interceptor->got_set_byname_);
interceptor->got_set_byname_.reset();
EXPECT_TRUE(object->SetValue(kInterceptorName,
CefV8Value::CreateInt(kInterceptorValue),
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_FALSE(object->HasException());
EXPECT_TRUE(accessor->got_set_);
accessor->got_set_.reset();
EXPECT_TRUE(interceptor->got_set_byname_);
interceptor->got_set_byname_.reset();
// When interceptor returns nothing, accessor's getter is called.
CefRefPtr<CefV8Value> val1 = object->GetValue(kAccessorName);
EXPECT_TRUE(val1.get());
EXPECT_TRUE(interceptor->got_get_byname_);
interceptor->got_get_byname_.reset();
EXPECT_TRUE(accessor->got_get_);
accessor->got_get_.reset();
EXPECT_EQ(kAccessorValue, val1->GetIntValue());
// When interceptor returns value, accessor's getter is not called.
CefRefPtr<CefV8Value> val2 = object->GetValue(kInterceptorName);
EXPECT_TRUE(val2.get());
EXPECT_TRUE(interceptor->got_get_byname_);
EXPECT_FALSE(accessor->got_get_);
EXPECT_EQ(kInterceptorValue, val2->GetIntValue());
EXPECT_FALSE(interceptor->got_get_byindex_);
EXPECT_FALSE(interceptor->got_set_byindex_);
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "test_arg";
static const int kVal1 = 13;
static const int kVal2 = 65;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
object->SetValue(kName, CefV8Value::CreateInt(kVal1),
V8_PROPERTY_ATTRIBUTE_NONE);
std::stringstream test;
test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n"
<< "window." << kName << " = " << kVal2 << ";";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = object->GetValue(kName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(kVal2, newval->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueReadOnlyTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "test_arg";
static const int kVal1 = 13;
static const int kVal2 = 65;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
object->SetValue(kName, CefV8Value::CreateInt(kVal1),
V8_PROPERTY_ATTRIBUTE_READONLY);
std::stringstream test;
test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n"
<< "window." << kName << " = " << kVal2 << ";";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = object->GetValue(kName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(kVal1, newval->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueEnumTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kObjName = "test_obj";
static const char* kArgName = "test_arg";
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
CefRefPtr<CefV8Value> obj1 = CefV8Value::CreateObject(nullptr, nullptr);
object->SetValue(kObjName, obj1, V8_PROPERTY_ATTRIBUTE_NONE);
obj1->SetValue(kArgName, CefV8Value::CreateInt(0),
V8_PROPERTY_ATTRIBUTE_NONE);
std::stringstream test;
test << "for (var i in window." << kObjName
<< ") {\n"
"window."
<< kObjName
<< "[i]++;\n"
"}";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = obj1->GetValue(kArgName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(1, newval->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueDontEnumTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kObjName = "test_obj";
static const char* kArgName = "test_arg";
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
CefRefPtr<CefV8Value> obj1 = CefV8Value::CreateObject(nullptr, nullptr);
object->SetValue(kObjName, obj1, V8_PROPERTY_ATTRIBUTE_NONE);
obj1->SetValue(kArgName, CefV8Value::CreateInt(0),
V8_PROPERTY_ATTRIBUTE_DONTENUM);
std::stringstream test;
test << "for (var i in window." << kObjName
<< ") {\n"
"window."
<< kObjName
<< "[i]++;\n"
"}";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = obj1->GetValue(kArgName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(0, newval->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueDeleteTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "test_arg";
static const int kVal1 = 13;
static const int kVal2 = 65;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
object->SetValue(kName, CefV8Value::CreateInt(kVal1),
V8_PROPERTY_ATTRIBUTE_NONE);
std::stringstream test;
test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n"
<< "window." << kName << " = " << kVal2
<< ";\n"
"delete window."
<< kName << ";";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = object->GetValue(kName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsUndefined());
EXPECT_FALSE(newval->IsInt());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueDontDeleteTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "test_arg";
static const int kVal1 = 13;
static const int kVal2 = 65;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
object->SetValue(kName, CefV8Value::CreateInt(kVal1),
V8_PROPERTY_ATTRIBUTE_DONTDELETE);
std::stringstream test;
test << "if (window." << kName << " != " << kVal1 << ") throw 'Fail';\n"
<< "window." << kName << " = " << kVal2
<< ";\n"
"delete window."
<< kName << ";";
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval(test.str(), CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
CefRefPtr<CefV8Value> newval = object->GetValue(kName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(kVal2, newval->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunObjectValueEmptyKeyTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kName = "";
static const int kVal = 13;
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
EXPECT_FALSE(object->HasValue(kName));
object->SetValue(kName, CefV8Value::CreateInt(kVal),
V8_PROPERTY_ATTRIBUTE_NONE);
EXPECT_TRUE(object->HasValue(kName));
CefRefPtr<CefV8Value> newval = object->GetValue(kName);
EXPECT_TRUE(newval.get());
EXPECT_TRUE(newval->IsInt());
EXPECT_EQ(kVal, newval->GetIntValue());
EXPECT_TRUE(object->DeleteValue(kName));
EXPECT_FALSE(object->HasValue(kName));
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunFunctionCreateTest() {
CefRefPtr<CefV8Context> context = GetContext();
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
return false;
}
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> value = CefV8Value::CreateFunction("f", new Handler);
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsFunction());
EXPECT_TRUE(value->IsObject());
EXPECT_FALSE(value->IsUndefined());
EXPECT_FALSE(value->IsArray());
EXPECT_FALSE(value->IsBool());
EXPECT_FALSE(value->IsDate());
EXPECT_FALSE(value->IsDouble());
EXPECT_FALSE(value->IsInt());
EXPECT_FALSE(value->IsUInt());
EXPECT_FALSE(value->IsNull());
EXPECT_FALSE(value->IsString());
DestroyTest();
}
void RunFunctionHandlerTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kFuncName = "myfunc";
static const int kVal1 = 32;
static const int kVal2 = 41;
static const int kRetVal = 8;
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_STREQ(kFuncName, name.ToString().c_str());
EXPECT_TRUE(object->IsSame(object_));
EXPECT_EQ((size_t)2, arguments.size());
EXPECT_TRUE(arguments[0]->IsInt());
EXPECT_EQ(kVal1, arguments[0]->GetIntValue());
EXPECT_TRUE(arguments[1]->IsInt());
EXPECT_EQ(kVal2, arguments[1]->GetIntValue());
EXPECT_TRUE(exception.empty());
retval = CefV8Value::CreateInt(kRetVal);
EXPECT_TRUE(retval.get());
EXPECT_EQ(kRetVal, retval->GetIntValue());
got_execute_.yes();
return true;
}
CefRefPtr<CefV8Value> object_;
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler);
EXPECT_TRUE(func.get());
CefRefPtr<CefV8Value> obj = CefV8Value::CreateObject(nullptr, nullptr);
EXPECT_TRUE(obj.get());
handler->object_ = obj;
CefV8ValueList args;
args.push_back(CefV8Value::CreateInt(kVal1));
args.push_back(CefV8Value::CreateInt(kVal2));
CefRefPtr<CefV8Value> retval = func->ExecuteFunction(obj, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_TRUE(retval.get());
EXPECT_FALSE(func->HasException());
EXPECT_TRUE(retval->IsInt());
EXPECT_EQ(kRetVal, retval->GetIntValue());
handler->object_ = nullptr;
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunFunctionHandlerExceptionTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kException = "My error";
static const char* kExceptionMsg = "Uncaught Error: My error";
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
exception = kException;
got_execute_.yes();
return true;
}
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler);
EXPECT_TRUE(func.get());
CefV8ValueList args;
CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_FALSE(retval.get());
EXPECT_TRUE(func->HasException());
CefRefPtr<CefV8Exception> exception = func->GetException();
EXPECT_TRUE(exception.get());
EXPECT_STREQ(kExceptionMsg, exception->GetMessage().ToString().c_str());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunFunctionHandlerFailTest() {
CefRefPtr<CefV8Context> context = GetContext();
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
got_execute_.yes();
return false;
}
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler);
EXPECT_TRUE(func.get());
CefV8ValueList args;
CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_TRUE(retval.get());
EXPECT_FALSE(func->HasException());
EXPECT_TRUE(retval->IsUndefined());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunFunctionHandlerNoObjectTest() {
CefRefPtr<CefV8Context> context = GetContext();
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_TRUE(object.get());
CefRefPtr<CefV8Context> context = CefV8Context::GetCurrentContext();
EXPECT_TRUE(context.get());
CefRefPtr<CefV8Value> global = context->GetGlobal();
EXPECT_TRUE(global.get());
EXPECT_TRUE(global->IsSame(object));
got_execute_.yes();
return true;
}
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler);
EXPECT_TRUE(func.get());
CefV8ValueList args;
CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_TRUE(retval.get());
EXPECT_FALSE(func->HasException());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunFunctionHandlerWithContextTest() {
CefRefPtr<CefV8Context> context = GetContext();
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
CefRefPtr<CefV8Context> context = CefV8Context::GetCurrentContext();
EXPECT_TRUE(context.get());
EXPECT_TRUE(context->IsSame(context_));
got_execute_.yes();
return true;
}
CefRefPtr<CefV8Context> context_;
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
handler->context_ = context;
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler);
EXPECT_TRUE(func.get());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
CefV8ValueList args;
CefRefPtr<CefV8Value> retval =
func->ExecuteFunctionWithContext(context, nullptr, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_TRUE(retval.get());
EXPECT_FALSE(func->HasException());
handler->context_ = nullptr;
DestroyTest();
}
void RunFunctionHandlerEmptyStringTest() {
CefRefPtr<CefV8Context> context = GetContext();
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_TRUE(object.get());
CefRefPtr<CefV8Context> context = CefV8Context::GetCurrentContext();
EXPECT_TRUE(context.get());
CefRefPtr<CefV8Value> global = context->GetGlobal();
EXPECT_TRUE(global.get());
EXPECT_TRUE(global->IsSame(object));
EXPECT_EQ((size_t)1, arguments.size());
EXPECT_TRUE(arguments[0]->IsString());
EXPECT_STREQ("", arguments[0]->GetStringValue().ToString().c_str());
retval = CefV8Value::CreateString(CefString());
got_execute_.yes();
return true;
}
TrackCallback got_execute_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction("myfunc", handler);
EXPECT_TRUE(func.get());
CefV8ValueList args;
args.push_back(CefV8Value::CreateString(CefString()));
CefRefPtr<CefV8Value> retval = func->ExecuteFunction(nullptr, args);
EXPECT_TRUE(handler->got_execute_);
EXPECT_TRUE(retval.get());
EXPECT_FALSE(func->HasException());
EXPECT_TRUE(retval->IsString());
EXPECT_STREQ("", retval->GetStringValue().ToString().c_str());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunContextEvalTest() {
CefRefPtr<CefV8Context> context = GetContext();
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(context->Eval("1+2", CefString(), 0, retval, exception));
EXPECT_TRUE(retval.get());
EXPECT_TRUE(retval->IsInt());
EXPECT_EQ(3, retval->GetIntValue());
EXPECT_FALSE(exception.get());
DestroyTest();
}
void RunContextEvalExceptionTest() {
CefRefPtr<CefV8Context> context = GetContext();
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_FALSE(
context->Eval("\n\n\n1+foo", CefString(), 0, retval, exception));
EXPECT_FALSE(retval.get());
EXPECT_TRUE(exception.get());
EXPECT_EQ(4, exception->GetLineNumber());
DestroyTest();
}
void RunContextEvalCspBypassUnsafeEval() {
CefRefPtr<CefV8Context> context = GetContext();
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
bool success =
context->Eval("(document.getElementById('result').innerHTML)",
CefString(), 0, retval, exception);
if (exception.get()) {
ADD_FAILURE() << exception->GetMessage().c_str();
EXPECT_FALSE(success);
}
EXPECT_TRUE(success);
EXPECT_TRUE(retval.get());
if (retval.get()) {
EXPECT_TRUE(retval->IsString());
EXPECT_EQ(CefString("CSP_BYPASSED"), retval->GetStringValue());
}
DestroyTest();
}
void RunContextEvalCspBypassSandbox() {
CefRefPtr<CefV8Context> context = GetContext();
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
bool success =
context->Eval("(document.getElementById('result').innerHTML)",
CefString(), 0, retval, exception);
if (exception.get()) {
ADD_FAILURE() << exception->GetMessage().c_str();
EXPECT_FALSE(success);
}
EXPECT_TRUE(success);
EXPECT_TRUE(retval.get());
if (retval.get()) {
EXPECT_TRUE(retval->IsString());
EXPECT_EQ(CefString("CSP_BYPASSED"), retval->GetStringValue());
}
DestroyTest();
}
void RunContextEnteredTest() {
CefRefPtr<CefV8Context> context = GetContext();
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
// Test value defined in OnContextCreated
EXPECT_TRUE(context->Eval(
"document.getElementById('f').contentWindow.v8_context_entered_test()",
CefString(), 0, retval, exception));
if (exception.get())
ADD_FAILURE() << exception->GetMessage().c_str();
EXPECT_TRUE(retval.get());
EXPECT_TRUE(retval->IsInt());
EXPECT_EQ(21, retval->GetIntValue());
DestroyTest();
}
void RunBindingTest() {
CefRefPtr<CefV8Context> context = GetContext();
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
// Test value defined in OnContextCreated
CefRefPtr<CefV8Value> value = object->GetValue("v8_binding_test");
EXPECT_TRUE(value.get());
EXPECT_TRUE(value->IsInt());
EXPECT_EQ(12, value->GetIntValue());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunStackTraceTest() {
CefRefPtr<CefV8Context> context = GetContext();
static const char* kFuncName = "myfunc";
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_STREQ(kFuncName, name.ToString().c_str());
stack_trace_ = CefV8StackTrace::GetCurrent(10);
retval = CefV8Value::CreateInt(3);
got_execute_.yes();
return true;
}
TrackCallback got_execute_;
CefRefPtr<CefV8StackTrace> stack_trace_;
IMPLEMENT_REFCOUNTING(Handler);
};
// Enter the V8 context.
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler);
EXPECT_TRUE(func.get());
CefRefPtr<CefV8Value> obj = context->GetGlobal();
EXPECT_TRUE(obj.get());
obj->SetValue(kFuncName, func, V8_PROPERTY_ATTRIBUTE_NONE);
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(
context->Eval("function jsfunc() { return window.myfunc(); }\n"
"jsfunc();",
CefString(), 0, retval, exception));
EXPECT_TRUE(retval.get());
EXPECT_TRUE(retval->IsInt());
EXPECT_EQ(3, retval->GetIntValue());
EXPECT_FALSE(exception.get());
EXPECT_TRUE(handler->stack_trace_.get());
EXPECT_EQ(2, handler->stack_trace_->GetFrameCount());
CefRefPtr<CefV8StackFrame> frame;
frame = handler->stack_trace_->GetFrame(0);
EXPECT_TRUE(frame->GetScriptName().empty());
EXPECT_TRUE(frame->GetScriptNameOrSourceURL().empty());
EXPECT_STREQ("jsfunc", frame->GetFunctionName().ToString().c_str());
EXPECT_EQ(1, frame->GetLineNumber());
EXPECT_EQ(35, frame->GetColumn());
EXPECT_TRUE(frame.get());
EXPECT_FALSE(frame->IsEval());
EXPECT_FALSE(frame->IsConstructor());
frame = handler->stack_trace_->GetFrame(1);
EXPECT_TRUE(frame->GetScriptName().empty());
EXPECT_TRUE(frame->GetScriptNameOrSourceURL().empty());
EXPECT_TRUE(frame->GetFunctionName().empty());
EXPECT_EQ(2, frame->GetLineNumber());
EXPECT_EQ(1, frame->GetColumn());
EXPECT_TRUE(frame.get());
EXPECT_FALSE(frame->IsEval());
EXPECT_FALSE(frame->IsConstructor());
// Exit the V8 context.
EXPECT_TRUE(context->Exit());
DestroyTest();
}
void RunOnUncaughtExceptionTest() {
test_context_ = browser_->GetMainFrame()->GetV8Context();
browser_->GetMainFrame()->ExecuteJavaScript(
"window.setTimeout(test, 0)", browser_->GetMainFrame()->GetURL(), 0);
}
// Test execution of a native function when the extension is loaded.
void RunExtensionTest() {
std::string code =
"native function v8_extension_test();"
"v8_extension_test();";
class Handler : public CefV8Handler {
public:
Handler(TrackCallback* callback) : callback_(callback) {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_STREQ("v8_extension_test", name.ToString().c_str());
callback_->yes();
return true;
}
TrackCallback* callback_;
IMPLEMENT_REFCOUNTING(Handler);
};
CefRegisterExtension("v8/test-extension", code,
new Handler(&startup_test_success_));
}
void OnBrowserCreated(CefRefPtr<ClientAppRenderer> app,
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefDictionaryValue> extra_info) override {
if (extra_info->HasKey(kV8TestCmdKey)) {
test_mode_ = static_cast<V8TestMode>(extra_info->GetInt(kV8TestCmdKey));
}
if (test_mode_ > V8TEST_NONE)
RunStartupTest();
if (test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL ||
test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX) {
browser_ = browser;
}
}
CefRefPtr<CefLoadHandler> GetLoadHandler(
CefRefPtr<ClientAppRenderer> app) override {
if (test_mode_ == V8TEST_NONE)
return nullptr;
return this;
}
void OnLoadEnd(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
int httpStatusCode) override {
if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS &&
browser->IsPopup()) {
DevToolsLoadHook(browser);
}
}
void OnContextCreated(CefRefPtr<ClientAppRenderer> app,
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefV8Context> context) override {
if (test_mode_ == V8TEST_NONE)
return;
if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS) {
if (!browser->IsPopup()) {
app_ = app;
browser_ = browser;
test_context_ = context;
}
return;
}
app_ = app;
browser_ = browser;
std::string url = frame->GetURL();
if (url == kV8ContextChildTestUrl) {
// For V8TEST_CONTEXT_ENTERED
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
// context for the sub-frame
CefRefPtr<CefV8Context> context = CefV8Context::GetCurrentContext();
EXPECT_TRUE(context.get());
// entered context should be the same as the main frame context
CefRefPtr<CefV8Context> entered = CefV8Context::GetEnteredContext();
EXPECT_TRUE(entered.get());
EXPECT_TRUE(entered->IsSame(context_));
context_ = nullptr;
retval = CefV8Value::CreateInt(21);
return true;
}
CefRefPtr<CefV8Context> context_;
IMPLEMENT_REFCOUNTING(Handler);
};
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
// main frame context
handler->context_ = GetContext();
// Function that will be called from the parent frame context.
CefRefPtr<CefV8Value> func =
CefV8Value::CreateFunction("v8_context_entered_test", handler);
EXPECT_TRUE(func.get());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->SetValue("v8_context_entered_test", func,
V8_PROPERTY_ATTRIBUTE_NONE));
} else if (url == kV8ContextParentTestUrl) {
// For V8TEST_CONTEXT_ENTERED. Do nothing.
return;
} else if (url == kV8BindingTestUrl) {
// For V8TEST_BINDING
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->SetValue("v8_binding_test", CefV8Value::CreateInt(12),
V8_PROPERTY_ATTRIBUTE_NONE));
} else if (url == kV8HandlerCallOnReleasedContextUrl) {
// For V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT
class Handler : public CefV8Handler {
public:
Handler(CefRefPtr<V8RendererTest> renderer_test)
: renderer_test_(renderer_test) {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
if (name == "notify_test_done") {
CefPostDelayedTask(
TID_RENDERER,
base::Bind(&V8RendererTest::DestroyTest, renderer_test_.get()),
1000);
return true;
}
return false;
}
private:
CefRefPtr<V8RendererTest> renderer_test_;
IMPLEMENT_REFCOUNTING(Handler);
};
Handler* handler = new Handler(this);
CefRefPtr<CefV8Handler> handlerPtr(handler);
// Function that will be called from the parent frame context.
CefRefPtr<CefV8Value> func =
CefV8Value::CreateFunction("notify_test_done", handler);
EXPECT_TRUE(func.get());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->SetValue("notify_test_done", func,
V8_PROPERTY_ATTRIBUTE_NONE));
} else if (url == kV8HandlerCallOnReleasedContextChildUrl) {
// For V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
if (name == "v8_context_is_alive") {
retval = CefV8Value::CreateBool(true);
return true;
}
return false;
}
IMPLEMENT_REFCOUNTING(Handler);
};
Handler* handler = new Handler;
CefRefPtr<CefV8Handler> handlerPtr(handler);
// Function that will be called from the parent frame context.
CefRefPtr<CefV8Value> func =
CefV8Value::CreateFunction("v8_context_is_alive", handler);
EXPECT_TRUE(func.get());
CefRefPtr<CefV8Value> object = context->GetGlobal();
EXPECT_TRUE(object.get());
EXPECT_TRUE(object->SetValue("v8_context_is_alive", func,
V8_PROPERTY_ATTRIBUTE_NONE));
}
}
void OnUncaughtException(CefRefPtr<ClientAppRenderer> app,
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefRefPtr<CefV8Context> context,
CefRefPtr<CefV8Exception> exception,
CefRefPtr<CefV8StackTrace> stackTrace) override {
if (test_mode_ == V8TEST_NONE)
return;
if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION ||
test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS) {
EXPECT_TRUE(test_context_->IsSame(context));
EXPECT_STREQ("Uncaught ReferenceError: asd is not defined",
exception->GetMessage().ToString().c_str());
std::ostringstream stackFormatted;
for (int i = 0; i < stackTrace->GetFrameCount(); ++i) {
stackFormatted << "at "
<< stackTrace->GetFrame(i)->GetFunctionName().ToString()
<< "() in "
<< stackTrace->GetFrame(i)->GetScriptName().ToString()
<< " on line "
<< stackTrace->GetFrame(i)->GetLineNumber() << "\n";
}
const char* stackFormattedShouldBe =
"at test2() in http://tests/V8Test.OnUncaughtException on line 3\n"
"at test() in http://tests/V8Test.OnUncaughtException on line 2\n";
EXPECT_STREQ(stackFormattedShouldBe, stackFormatted.str().c_str());
DestroyTest();
}
}
bool OnProcessMessageReceived(CefRefPtr<ClientAppRenderer> app,
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefProcessId source_process,
CefRefPtr<CefProcessMessage> message) override {
if (test_mode_ == V8TEST_NONE)
return false;
const std::string& message_name = message->GetName();
if (message_name == kV8RunTestMsg) {
// Run the test asynchronously.
CefPostTask(TID_RENDERER, base::Bind(&V8RendererTest::RunTest, this));
return true;
}
return false;
}
void DevToolsLoadHook(CefRefPtr<CefBrowser> browser) {
EXPECT_TRUE(browser->IsPopup());
CefRefPtr<CefFrame> frame = browser->GetMainFrame();
CefRefPtr<CefV8Context> context = frame->GetV8Context();
static const char* kFuncName = "DevToolsLoaded";
class Handler : public CefV8Handler {
public:
Handler() {}
bool Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception) override {
EXPECT_STREQ(kFuncName, name.ToString().c_str());
if (name == kFuncName) {
EXPECT_TRUE(exception.empty());
retval = CefV8Value::CreateNull();
EXPECT_TRUE(retval.get());
renderer_test_->DevToolsLoaded(browser_);
return true;
}
return false;
}
CefRefPtr<V8RendererTest> renderer_test_;
CefRefPtr<CefBrowser> browser_;
IMPLEMENT_REFCOUNTING(Handler);
};
EXPECT_TRUE(context->Enter());
Handler* handler = new Handler;
handler->renderer_test_ = this;
handler->browser_ = browser;
CefRefPtr<CefV8Handler> handlerPtr(handler);
CefRefPtr<CefV8Value> func = CefV8Value::CreateFunction(kFuncName, handler);
EXPECT_TRUE(func.get());
EXPECT_TRUE(context->GetGlobal()->SetValue(kFuncName, func,
V8_PROPERTY_ATTRIBUTE_NONE));
EXPECT_TRUE(context->Exit());
// Dismiss the DevTools window after 500ms. It would be better to hook the
// DevTools JS to receive notification of when loading is complete but that
// is no longer possible.
CefPostDelayedTask(
TID_RENDERER,
base::Bind(&CefFrame::ExecuteJavaScript, frame.get(),
"window.DevToolsLoaded()", frame->GetURL(), 0),
500);
}
void DevToolsLoaded(CefRefPtr<CefBrowser> browser) {
EXPECT_TRUE(browser->IsPopup());
// |browser_| will be nullptr if the DevTools window is opened in a separate
// render process.
const int other_browser_id =
(browser_.get() ? browser_->GetIdentifier() : -1);
EXPECT_NE(browser->GetIdentifier(), other_browser_id);
// Close the DevTools window. This will trigger OnBeforeClose in the browser
// process.
CefRefPtr<CefV8Value> retval;
CefRefPtr<CefV8Exception> exception;
EXPECT_TRUE(browser->GetMainFrame()->GetV8Context()->Eval(
"window.close()", CefString(), 0, retval, exception));
}
protected:
// Return from the test.
void DestroyTest() {
EXPECT_TRUE(CefCurrentlyOn(TID_RENDERER));
// Check if the test has failed.
bool result = !TestFailed();
// Return the result to the browser process.
CefRefPtr<CefProcessMessage> return_msg =
CefProcessMessage::Create(kV8TestMsg);
EXPECT_TRUE(return_msg->GetArgumentList()->SetBool(0, result));
browser_->GetMainFrame()->SendProcessMessage(PID_BROWSER, return_msg);
app_ = nullptr;
browser_ = nullptr;
test_context_ = nullptr;
test_object_ = nullptr;
}
// Return the V8 context.
CefRefPtr<CefV8Context> GetContext() {
CefRefPtr<CefV8Context> context = browser_->GetMainFrame()->GetV8Context();
EXPECT_TRUE(context.get());
return context;
}
CefRefPtr<ClientAppRenderer> app_;
CefRefPtr<CefBrowser> browser_;
V8TestMode test_mode_;
CefRefPtr<CefV8Context> test_context_;
CefRefPtr<CefV8Value> test_object_;
// Used by startup tests to indicate success.
TrackCallback startup_test_success_;
IMPLEMENT_REFCOUNTING(V8RendererTest);
};
// Browser side.
class V8TestHandler : public TestHandler {
public:
V8TestHandler(V8TestMode test_mode, const char* test_url)
: test_mode_(test_mode), test_url_(test_url) {}
void RunTest() override {
CefRefPtr<CefDictionaryValue> extra_info = CefDictionaryValue::Create();
extra_info->SetInt(kV8TestCmdKey, test_mode_);
// Nested script tag forces creation of the V8 context.
if (test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL ||
test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX) {
std::string url;
ResourceContent::HeaderMap headers;
if (test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL) {
url = kV8ContextEvalCspBypassUnsafeEval;
headers.insert(std::pair<std::string, std::string>(
"Content-Security-Policy", "script-src 'self'"));
} else if (test_mode_ == V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX) {
url = kV8ContextEvalCspBypassSandbox;
headers.insert(std::pair<std::string, std::string>(
"Content-Security-Policy", "sandbox"));
} else {
NOTREACHED();
}
AddResource(url,
"<html><body>" + url +
"<p id='result' style='display:none'>CSP_BYPASSED</p>"
"</body></html>",
"text/html", headers);
CreateBrowser(test_url_, nullptr, extra_info);
} else if (test_mode_ == V8TEST_CONTEXT_ENTERED) {
AddResource(kV8ContextParentTestUrl,
"<html><body>"
"<script>var i = 0;</script><iframe src=\"" +
std::string(kV8ContextChildTestUrl) +
"\" id=\"f\"></iframe></body>"
"</html>",
"text/html");
AddResource(kV8ContextChildTestUrl,
"<html><body>"
"<script>var i = 0;</script>CHILD</body></html>",
"text/html");
CreateBrowser(kV8ContextParentTestUrl, nullptr, extra_info);
} else if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION ||
test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS) {
AddResource(kV8OnUncaughtExceptionTestUrl,
"<html><body>"
"<h1>OnUncaughtException</h1>"
"<script>\n"
"function test(){ test2(); }\n"
"function test2(){ asd(); }\n"
"</script>\n"
"</body></html>\n",
"text/html");
CreateBrowser(kV8OnUncaughtExceptionTestUrl, nullptr, extra_info);
} else if (test_mode_ == V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT) {
AddResource(kV8HandlerCallOnReleasedContextUrl,
"<html><body onload='createFrame()'>"
"(main)"
"<script>"
"function createFrame() {"
" var el = document.createElement('iframe');"
" el.id = 'child';"
" el.src = '" +
std::string(kV8HandlerCallOnReleasedContextChildUrl) +
"';"
" el.onload = function() {"
" setTimeout(function() {"
" try {"
" el.contentWindow.removeMe();"
" window.notify_test_done();"
" } catch (e) { alert('Unit test error.\\n' + e); }"
" }, 1000);"
" };"
" document.body.appendChild(el);"
"}"
""
"function removeFrame(id) {"
" var el = document.getElementById(id);"
" if (el) { el.parentElement.removeChild(el); }"
" else { alert('Error in test. No element \"' + id + "
"'\" found.'); }"
"}"
"</script>"
"</body></html>",
"text/html");
AddResource(kV8HandlerCallOnReleasedContextChildUrl,
"<html><body>"
"(child)"
"<script>"
"try {"
" if (!window.v8_context_is_alive()) {"
" throw 'v8_context_is_alive returns non-true value.';"
" }"
"} catch (e) {"
" alert('Unit test error.\\n' + e);"
"}"
""
"function removeMe() {"
" var w = window;"
" w.parent.removeFrame('child');"
" return w.v8_context_is_alive();"
"}"
"</script>"
"</body></html>",
"text/html");
CreateBrowser(kV8HandlerCallOnReleasedContextUrl, nullptr, extra_info);
} else {
EXPECT_TRUE(test_url_ != nullptr);
AddResource(test_url_,
"<html><body>"
"<script>var i = 0;</script>TEST</body></html>",
"text/html");
CreateBrowser(test_url_, nullptr, extra_info);
}
// Time out the test after a reasonable period of time.
SetTestTimeout();
}
void OnBeforeClose(CefRefPtr<CefBrowser> browser) override {
if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS &&
browser->IsPopup()) {
// Generate the uncaught exception in the main browser. Use a 200ms delay
// because there's a bit of a lag between destroying the DevToolsAgent and
// re-registering for uncaught exceptions.
GetBrowser()->GetMainFrame()->ExecuteJavaScript(
"window.setTimeout(test, 200);",
GetBrowser()->GetMainFrame()->GetURL(), 0);
}
TestHandler::OnBeforeClose(browser);
}
void OnLoadEnd(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
int httpStatusCode) override {
if (test_mode_ == V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS) {
if (!browser->IsPopup()) {
// Create the DevTools window.
CefWindowInfo windowInfo;
CefBrowserSettings settings;
#if defined(OS_WIN)
windowInfo.SetAsPopup(browser->GetHost()->GetWindowHandle(),
"DevTools");
#endif
browser->GetHost()->ShowDevTools(windowInfo, this, settings,
CefPoint());
}
return;
}
const std::string& url = frame->GetURL();
if (url != kV8NavTestUrl && url != kV8ContextParentTestUrl &&
url.find("http://tests/") != std::string::npos) {
// Run the test.
CefRefPtr<CefProcessMessage> return_msg =
CefProcessMessage::Create(kV8RunTestMsg);
frame->SendProcessMessage(PID_RENDERER, return_msg);
}
}
bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
CefProcessId source_process,
CefRefPtr<CefProcessMessage> message) override {
EXPECT_TRUE(browser.get());
EXPECT_TRUE(frame.get());
EXPECT_TRUE(frame->IsMain());
EXPECT_EQ(PID_RENDERER, source_process);
EXPECT_TRUE(message.get());
EXPECT_TRUE(message->IsReadOnly());
const std::string& message_name = message->GetName();
EXPECT_STREQ(kV8TestMsg, message_name.c_str());
got_message_.yes();
if (message->GetArgumentList()->GetBool(0))
got_success_.yes();
// Test is complete.
DestroyTest();
return true;
}
V8TestMode test_mode_;
const char* test_url_;
TrackCallback got_message_;
TrackCallback got_success_;
IMPLEMENT_REFCOUNTING(V8TestHandler);
};
} // namespace
// Entry point for creating V8 renderer test objects.
// Called from client_app_delegates.cc.
void CreateV8RendererTests(ClientAppRenderer::DelegateSet& delegates) {
delegates.insert(new V8RendererTest);
}
// Helpers for defining V8 tests.
#define V8_TEST_EX(name, test_mode, test_url) \
TEST(V8Test, name) { \
CefRefPtr<V8TestHandler> handler = new V8TestHandler(test_mode, test_url); \
handler->ExecuteTest(); \
EXPECT_TRUE(handler->got_message_); \
EXPECT_TRUE(handler->got_success_); \
ReleaseAndWaitForDestructor(handler); \
}
#define V8_TEST(name, test_mode) V8_TEST_EX(name, test_mode, kV8TestUrl)
// Define the tests.
V8_TEST(NullCreate, V8TEST_NULL_CREATE)
V8_TEST(BoolCreate, V8TEST_BOOL_CREATE)
V8_TEST(IntCreate, V8TEST_INT_CREATE)
V8_TEST(UIntCreate, V8TEST_UINT_CREATE)
V8_TEST(DoubleCreate, V8TEST_DOUBLE_CREATE)
V8_TEST(DateCreate, V8TEST_DATE_CREATE)
V8_TEST(StringCreate, V8TEST_STRING_CREATE)
V8_TEST(EmptyStringCreate, V8TEST_EMPTY_STRING_CREATE)
V8_TEST(ArrayCreate, V8TEST_ARRAY_CREATE)
V8_TEST(ArrayValue, V8TEST_ARRAY_VALUE)
V8_TEST(ArrayBuffer, V8TEST_ARRAY_BUFFER)
V8_TEST(ArrayBufferValue, V8TEST_ARRAY_BUFFER_VALUE)
V8_TEST(ObjectCreate, V8TEST_OBJECT_CREATE)
V8_TEST(ObjectUserData, V8TEST_OBJECT_USERDATA)
V8_TEST(ObjectAccessor, V8TEST_OBJECT_ACCESSOR)
V8_TEST(ObjectAccessorException, V8TEST_OBJECT_ACCESSOR_EXCEPTION)
V8_TEST(ObjectAccessorFail, V8TEST_OBJECT_ACCESSOR_FAIL)
V8_TEST(ObjectAccessorReadOnly, V8TEST_OBJECT_ACCESSOR_READONLY)
V8_TEST(ObjectInterceptor, V8TEST_OBJECT_INTERCEPTOR)
V8_TEST(ObjectInterceptorFail, V8TEST_OBJECT_INTERCEPTOR_FAIL)
V8_TEST(ObjectInterceptorException, V8TEST_OBJECT_INTERCEPTOR_EXCEPTION)
V8_TEST(ObjectInterceptorAndAccessor, V8TEST_OBJECT_INTERCEPTOR_AND_ACCESSOR)
V8_TEST(ObjectValue, V8TEST_OBJECT_VALUE)
V8_TEST(ObjectValueReadOnly, V8TEST_OBJECT_VALUE_READONLY)
V8_TEST(ObjectValueEnum, V8TEST_OBJECT_VALUE_ENUM)
V8_TEST(ObjectValueDontEnum, V8TEST_OBJECT_VALUE_DONTENUM)
V8_TEST(ObjectValueDelete, V8TEST_OBJECT_VALUE_DELETE)
V8_TEST(ObjectValueDontDelete, V8TEST_OBJECT_VALUE_DONTDELETE)
V8_TEST(ObjectValueEmptyKey, V8TEST_OBJECT_VALUE_EMPTYKEY)
V8_TEST(FunctionCreate, V8TEST_FUNCTION_CREATE)
V8_TEST(FunctionHandler, V8TEST_FUNCTION_HANDLER)
V8_TEST(FunctionHandlerException, V8TEST_FUNCTION_HANDLER_EXCEPTION)
V8_TEST(FunctionHandlerFail, V8TEST_FUNCTION_HANDLER_FAIL)
V8_TEST(FunctionHandlerNoObject, V8TEST_FUNCTION_HANDLER_NO_OBJECT)
V8_TEST(FunctionHandlerWithContext, V8TEST_FUNCTION_HANDLER_WITH_CONTEXT)
V8_TEST(FunctionHandlerEmptyString, V8TEST_FUNCTION_HANDLER_EMPTY_STRING)
V8_TEST(ContextEval, V8TEST_CONTEXT_EVAL)
V8_TEST(ContextEvalException, V8TEST_CONTEXT_EVAL_EXCEPTION)
V8_TEST_EX(ContextEvalCspBypassUnsafeEval,
V8TEST_CONTEXT_EVAL_CSP_BYPASS_UNSAFE_EVAL,
kV8ContextEvalCspBypassUnsafeEval)
V8_TEST_EX(ContextEvalCspBypassSandbox,
V8TEST_CONTEXT_EVAL_CSP_BYPASS_SANDBOX,
kV8ContextEvalCspBypassSandbox)
V8_TEST_EX(ContextEntered, V8TEST_CONTEXT_ENTERED, nullptr)
V8_TEST_EX(Binding, V8TEST_BINDING, kV8BindingTestUrl)
V8_TEST(StackTrace, V8TEST_STACK_TRACE)
V8_TEST(OnUncaughtException, V8TEST_ON_UNCAUGHT_EXCEPTION)
V8_TEST(OnUncaughtExceptionDevTools, V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS)
V8_TEST(Extension, V8TEST_EXTENSION)
V8_TEST_EX(HandlerCallOnReleasedContext,
V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT,
kV8HandlerCallOnReleasedContextUrl)
|
// Copyright (c) 2018-2019 The BIGKEYCOIN Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <cstdio> // for fileno(), stdin
#ifdef WIN32
#include <windows.h> // for SetStdinEcho()
#include <io.h> // for isatty()
#else
#include <termios.h> // for SetStdinEcho()
#include <unistd.h> // for SetStdinEcho(), isatty()
#include <poll.h> // for StdinReady()
#endif
#include <compat/stdin.h>
// https://stackoverflow.com/questions/1413445/reading-a-password-from-stdcin
void SetStdinEcho(bool enable)
{
#ifdef WIN32
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
DWORD mode;
GetConsoleMode(hStdin, &mode);
if (!enable) {
mode &= ~ENABLE_ECHO_INPUT;
} else {
mode |= ENABLE_ECHO_INPUT;
}
SetConsoleMode(hStdin, mode);
#else
struct termios tty;
tcgetattr(STDIN_FILENO, &tty);
if (!enable) {
tty.c_lflag &= ~ECHO;
} else {
tty.c_lflag |= ECHO;
}
(void)tcsetattr(STDIN_FILENO, TCSANOW, &tty);
#endif
}
bool StdinTerminal()
{
#ifdef WIN32
return _isatty(_fileno(stdin));
#else
return isatty(fileno(stdin));
#endif
}
bool StdinReady()
{
if (!StdinTerminal()) {
return true;
}
#ifdef WIN32
return false;
#else
struct pollfd fds;
fds.fd = 0; /* this is STDIN */
fds.events = POLLIN;
return poll(&fds, 1, 0) == 1;
#endif
}
NoechoInst::NoechoInst() { SetStdinEcho(false); }
NoechoInst::~NoechoInst() { SetStdinEcho(true); }
|
#include <cstdio>
int main(){
int t; scanf("%d", &t);
while(t--){
int n, p; scanf("%d %d", &n, &p);
int m = 2 * n + p;
for(int a = 1; a <= n; a++){
for(int b = a + 1; b <= n; b++){
printf("%d %d\n", a, b);
--m;
if(m <= 0){break;}
}
if(m <= 0){break;}
}
}
return 0;
}
|
#include "ray.hpp"
Ray::Ray(const Vec2& p, const Vec2& v) : origin(p), direction(v)
{
direction.normalize();
}
Vec2 Ray::getOrigin() const
{
return origin;
}
Vec2 Ray::getDirection() const
{
return direction;
}
void Ray::setOrigin(const Vec2& p)
{
origin = p;
}
void Ray::setDirection(const Vec2& v)
{
direction = v;
direction.normalize();
}
|
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/ISerializable.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/FloatLink.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/NamedTrackIndex.hpp>
namespace RED4ext
{
namespace anim { struct IAnimNodeSourceChannel_Quat; }
namespace anim {
struct AnimNodeSourceChannel_WeightedQuat : ISerializable
{
static constexpr const char* NAME = "animAnimNodeSourceChannel_WeightedQuat";
static constexpr const char* ALIAS = NAME;
Handle<anim::IAnimNodeSourceChannel_Quat> channel; // 30
float weight; // 40
uint8_t unk44[0x48 - 0x44]; // 44
anim::FloatLink weightLink; // 48
anim::NamedTrackIndex weightFloatTrack; // 68
};
RED4EXT_ASSERT_SIZE(AnimNodeSourceChannel_WeightedQuat, 0x80);
} // namespace anim
} // namespace RED4ext
|
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <queue>
// explicit queue(container_type&& c);
#include <queue>
#include <cassert>
#include "MoveOnly.h"
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
template <class C>
C
make(int n)
{
C c;
for (int i = 0; i < n; ++i)
c.push_back(MoveOnly(i));
return c;
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
int main()
{
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
std::queue<MoveOnly> q(make<std::deque<MoveOnly> >(5));
assert(q.size() == 5);
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
}
|
// system includes
#include <map>
#include <vector>
#include <algorithm>
// user includes
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/Common/interface/DetSetVectorNew.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Phase2TrackerCluster/interface/Phase2TrackerCluster1D.h"
#include "DataFormats/Phase2TrackerDigi/interface/Phase2TrackerDigi.h"
#include "DataFormats/SiPixelDigi/interface/PixelDigi.h"
#include "RecoLocalTracker/Phase2TrackerRecHits/interface/Phase2StripCPE.h"
#include "SimDataFormats/TrackerDigiSimLink/interface/PixelDigiSimLink.h"
#include "SimDataFormats/Track/interface/SimTrackContainer.h"
#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "CommonTools/Utils/interface/TFileDirectory.h"
#include "DataFormats/TrackerRecHit2D/interface/VectorHit.h"
#include "DataFormats/TrackerRecHit2D/interface/OmniClusterRef.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticle.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
#include "SimTracker/TrackerHitAssociation/interface/ClusterTPAssociation.h"
#include "Geometry/CommonDetUnit/interface/StackGeomDet.h"
#include "DataFormats/Phase2TrackerDigi/interface/Phase2TrackerDigi.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
#include "RecoLocalTracker/Records/interface/TkPhase2OTCPERecord.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
// ROOT includes
#include <TH1F.h>
#include <TH2D.h>
#include <TGraph.h>
#include <THStack.h>
#include <TCanvas.h>
#include <TTree.h>
#include <TArrow.h>
struct VHHistos {
THStack* numberVHsMixed;
TH1F* numberVHsPS;
TH1F* numberVHs2S;
TGraph* globalPosXY[3];
TGraph* localPosXY[3];
TH1F* deltaXVHSimHits[3];
TH1F* deltaYVHSimHits[3];
TH1F* deltaXVHSimHits_P[3];
TH1F* deltaYVHSimHits_P[3];
TH1F* digiEfficiency[3];
TH1F* totalSimHits;
TH1F* primarySimHits;
TH1F* otherSimHits;
TH1F* curvature;
TH1F* width;
TH1F* deltaXlocal;
};
class VectorHitsBuilderValidation : public edm::one::EDAnalyzer<edm::one::SharedResources> {
public:
typedef edm::Ref<edmNew::DetSetVector<Phase2TrackerCluster1D>, Phase2TrackerCluster1D> Phase2TrackerCluster1DRef;
typedef std::map<unsigned int, std::vector<PSimHit> > SimHitsMap;
typedef std::map<unsigned int, SimTrack> SimTracksMap;
explicit VectorHitsBuilderValidation(const edm::ParameterSet&);
~VectorHitsBuilderValidation();
void beginJob();
void analyze(const edm::Event&, const edm::EventSetup&);
static void fillDescriptions(edm::ConfigurationDescriptions&);
private:
std::map<unsigned int, VHHistos>::iterator createLayerHistograms(unsigned int);
void CreateVHsXYGraph(const std::vector<Global3DPoint>, const std::vector<Global3DVector>);
void CreateVHsRZGraph(const std::vector<Global3DPoint>, const std::vector<Global3DVector>);
void CreateWindowCorrGraph();
unsigned int getLayerNumber(const DetId&);
unsigned int getModuleNumber(const DetId& detid);
void printCluster(const GeomDetUnit* geomDetUnit, const OmniClusterRef cluster);
std::pair<bool, uint32_t> isTrue(const VectorHit vh,
const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >& siphase2SimLinks,
DetId& detId) const;
std::vector<std::pair<uint32_t, EncodedEventId> > getSimTrackIds(
const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >&, const DetId&, uint32_t) const;
unsigned int getSimTrackId(const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >& pixelSimLinks,
const DetId& detId,
unsigned int channel) const;
const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> geomEsToken_;
const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> topoEsToken_;
const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magFieldEsToken_;
const edm::ESGetToken<ClusterParameterEstimator<Phase2TrackerCluster1D>, TkPhase2OTCPERecord> cpeEsToken_;
edm::EDGetTokenT<edmNew::DetSetVector<Phase2TrackerCluster1D> > srcClu_;
edm::EDGetTokenT<VectorHitCollection> VHacc_;
edm::EDGetTokenT<VectorHitCollection> VHrej_;
edm::EDGetTokenT<edm::DetSetVector<PixelDigiSimLink> > siphase2OTSimLinksToken_;
edm::EDGetTokenT<edm::PSimHitContainer> simHitsToken_;
edm::EDGetTokenT<edm::SimTrackContainer> simTracksToken_;
edm::EDGetTokenT<edm::SimVertexContainer> simVerticesToken_;
edm::EDGetTokenT<TrackingParticleCollection> trackingParticleToken_;
const TrackerGeometry* tkGeom_;
const TrackerTopology* tkTopo_;
const MagneticField* magField_;
const ClusterParameterEstimator<Phase2TrackerCluster1D>* cpe_;
TTree* tree_;
TGraph* trackerLayoutRZ_[3];
TGraph* trackerLayoutXY_[3];
TGraph* trackerLayoutXYBar_;
TGraph* trackerLayoutXYEC_;
TGraph* localPosXvsDeltaX_[3];
TGraph* localPosYvsDeltaY_[3];
TCanvas* VHXY_;
TCanvas* VHRZ_;
std::vector<TArrow*> arrowVHs_;
TH2D* ParallaxCorrectionRZ_;
TH1F* VHaccLayer_;
TH1F* VHrejLayer_;
TH1F* VHaccTrueLayer_;
TH1F* VHrejTrueLayer_;
TH1F* VHaccTrue_signal_Layer_;
TH1F* VHrejTrue_signal_Layer_;
std::map<unsigned int, VHHistos> histograms_;
};
VectorHitsBuilderValidation::VectorHitsBuilderValidation(const edm::ParameterSet& conf)
: geomEsToken_(esConsumes()),
topoEsToken_(esConsumes()),
magFieldEsToken_(esConsumes()),
cpeEsToken_(esConsumes(conf.getParameter<edm::ESInputTag>("CPE"))) {
srcClu_ =
consumes<edmNew::DetSetVector<Phase2TrackerCluster1D> >(edm::InputTag(conf.getParameter<std::string>("src")));
VHacc_ = consumes<VectorHitCollection>(edm::InputTag(conf.getParameter<edm::InputTag>("VH_acc")));
VHrej_ = consumes<VectorHitCollection>(edm::InputTag(conf.getParameter<edm::InputTag>("VH_rej")));
siphase2OTSimLinksToken_ = consumes<edm::DetSetVector<PixelDigiSimLink> >(conf.getParameter<edm::InputTag>("links"));
simHitsToken_ = consumes<edm::PSimHitContainer>(edm::InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"));
simTracksToken_ = consumes<edm::SimTrackContainer>(edm::InputTag("g4SimHits"));
simVerticesToken_ = consumes<edm::SimVertexContainer>(edm::InputTag("g4SimHits"));
trackingParticleToken_ =
consumes<TrackingParticleCollection>(conf.getParameter<edm::InputTag>("trackingParticleSrc"));
}
VectorHitsBuilderValidation::~VectorHitsBuilderValidation() = default;
void VectorHitsBuilderValidation::beginJob() {
edm::Service<TFileService> fs;
fs->file().cd("/");
TFileDirectory td = fs->mkdir("Common");
//Create common ntuple
tree_ = td.make<TTree>("VectorHits", "VectorHits");
// Create common graphs
TFileDirectory tdGloPos = td.mkdir("GlobalPositions");
trackerLayoutRZ_[0] = tdGloPos.make<TGraph>();
trackerLayoutRZ_[0]->SetName("RVsZ_Mixed");
trackerLayoutRZ_[1] = tdGloPos.make<TGraph>();
trackerLayoutRZ_[1]->SetName("RVsZ_Pixel");
trackerLayoutRZ_[2] = tdGloPos.make<TGraph>();
trackerLayoutRZ_[2]->SetName("RVsZ_Strip");
trackerLayoutXY_[0] = tdGloPos.make<TGraph>();
trackerLayoutXY_[0]->SetName("YVsX_Mixed");
trackerLayoutXY_[1] = tdGloPos.make<TGraph>();
trackerLayoutXY_[1]->SetName("YVsX_Pixel");
trackerLayoutXY_[2] = tdGloPos.make<TGraph>();
trackerLayoutXY_[2]->SetName("YVsX_Strip");
trackerLayoutXYBar_ = tdGloPos.make<TGraph>();
trackerLayoutXYBar_->SetName("YVsXBar");
trackerLayoutXYEC_ = tdGloPos.make<TGraph>();
trackerLayoutXYEC_->SetName("YVsXEC");
TFileDirectory tdLocPos = td.mkdir("LocalPositions");
localPosXvsDeltaX_[0] = tdLocPos.make<TGraph>();
localPosXvsDeltaX_[0]->SetName("localPosXvsDeltaX_Mixed");
localPosXvsDeltaX_[1] = tdLocPos.make<TGraph>();
localPosXvsDeltaX_[1]->SetName("localPosXvsDeltaX_Pixel");
localPosXvsDeltaX_[2] = tdLocPos.make<TGraph>();
localPosXvsDeltaX_[2]->SetName("localPosXvsDeltaX_Strip");
localPosYvsDeltaY_[0] = tdLocPos.make<TGraph>();
localPosYvsDeltaY_[0]->SetName("localPosYvsDeltaY_Mixed");
localPosYvsDeltaY_[1] = tdLocPos.make<TGraph>();
localPosYvsDeltaY_[1]->SetName("localPosYvsDeltaY_Pixel");
localPosYvsDeltaY_[2] = tdLocPos.make<TGraph>();
localPosYvsDeltaY_[2]->SetName("localPosYvsDeltaY_Strip");
//drawing VHs arrows
TFileDirectory tdArr = td.mkdir("Directions");
TFileDirectory tdWid = td.mkdir("CombinatorialStudies");
ParallaxCorrectionRZ_ =
tdWid.make<TH2D>("ParallaxCorrectionRZ", "ParallaxCorrectionRZ", 100, 0., 300., 100., 0., 120.);
ParallaxCorrectionRZ_->SetName("ParallaxCorrectionFactor");
VHaccLayer_ = tdWid.make<TH1F>("VHacceptedLayer", "VHacceptedLayer", 250, 0., 250.);
VHaccLayer_->SetName("VHaccepted");
VHrejLayer_ = tdWid.make<TH1F>("VHrejectedLayer", "VHrejectedLayer", 250, 0., 250.);
VHrejLayer_->SetName("VHrejected");
VHaccTrueLayer_ = tdWid.make<TH1F>("VHaccTrueLayer", "VHaccTrueLayer", 250, 0., 250.);
VHaccTrueLayer_->SetName("VHaccepted_true");
VHrejTrueLayer_ = tdWid.make<TH1F>("VHrejTrueLayer", "VHrejTrueLayer", 250, 0., 250.);
VHrejTrueLayer_->SetName("VHrejected_true");
VHaccTrue_signal_Layer_ = tdWid.make<TH1F>("VHaccTrueSignalLayer", "VHaccTrueSignalLayer", 250, 0., 250.);
VHaccTrue_signal_Layer_->SetName("VHaccepted_true_signal");
VHrejTrue_signal_Layer_ = tdWid.make<TH1F>("VHrejTrueSignalLayer", "VHrejTrueSignalLayer", 250, 0., 250.);
VHrejTrue_signal_Layer_->SetName("VHrejected_true_signal");
}
void VectorHitsBuilderValidation::analyze(const edm::Event& event, const edm::EventSetup& eventSetup) {
// Get the needed objects
// Get the clusters
edm::Handle<Phase2TrackerCluster1DCollectionNew> clusters;
event.getByToken(srcClu_, clusters);
// Get the vector hits
edm::Handle<VectorHitCollection> vhsAcc;
event.getByToken(VHacc_, vhsAcc);
edm::Handle<VectorHitCollection> vhsRej;
event.getByToken(VHrej_, vhsRej);
// load the cpe via the eventsetup
cpe_ = &eventSetup.getData(cpeEsToken_);
// Get the Phase2 DigiSimLink
edm::Handle<edm::DetSetVector<PixelDigiSimLink> > siphase2SimLinks;
event.getByToken(siphase2OTSimLinksToken_, siphase2SimLinks);
// Get the SimHits
edm::Handle<edm::PSimHitContainer> simHitsRaw;
event.getByToken(simHitsToken_, simHitsRaw);
// Get the SimTracks
edm::Handle<edm::SimTrackContainer> simTracksRaw;
event.getByToken(simTracksToken_, simTracksRaw);
// Get the SimVertex
edm::Handle<edm::SimVertexContainer> simVertices;
event.getByToken(simVerticesToken_, simVertices);
// Get the geometry
tkGeom_ = &eventSetup.getData(geomEsToken_);
// Get the Topology
tkTopo_ = &eventSetup.getData(topoEsToken_);
// Get the MagneticField
magField_ = &eventSetup.getData(magFieldEsToken_);
//Tracking Particle collection
edm::Handle<TrackingParticleCollection> TPCollectionH;
event.getByToken(trackingParticleToken_, TPCollectionH);
auto clusterTPList = std::make_unique<ClusterTPAssociation>(TPCollectionH);
std::map<std::pair<size_t, EncodedEventId>, TrackingParticleRef> mapping;
for (TrackingParticleCollection::size_type itp = 0; itp < TPCollectionH.product()->size(); ++itp) {
TrackingParticleRef trackingParticle(TPCollectionH, itp);
EncodedEventId eid(trackingParticle->eventId());
for (std::vector<SimTrack>::const_iterator itrk = trackingParticle->g4Track_begin();
itrk != trackingParticle->g4Track_end();
++itrk) {
std::pair<uint32_t, EncodedEventId> trkid(itrk->trackId(), eid);
LogTrace("VectorHitsBuilderValidation")
<< "creating map for id: " << trkid.first << " with tp: " << trackingParticle.key();
mapping.insert(std::make_pair(trkid, trackingParticle));
}
}
//set up for tree
int eventNum;
int layer;
int module_id;
int module_number;
int module_type; //1: pixel, 2: strip
int VHacc = 0.0;
int VHrej = 0.0;
int vh_isTrue;
float x_global, y_global, z_global;
float vh_x_local, vh_y_local;
float vh_x_le, vh_y_le;
float curvature, phi;
float QOverPT, QOverP;
float chi2;
int low_tp_id, upp_tp_id;
float vh_sim_trackPt;
float sim_x_local, sim_y_local;
float sim_x_global, sim_y_global, sim_z_global;
float low_x_global, low_y_global, low_z_global;
float upp_x_global, upp_y_global, upp_z_global;
float low_xx_global_err, low_yy_global_err, low_zz_global_err;
float low_xy_global_err, low_zx_global_err, low_zy_global_err;
float upp_xx_global_err, upp_yy_global_err, upp_zz_global_err;
float upp_xy_global_err, upp_zx_global_err, upp_zy_global_err;
float deltaXVHSimHits, deltaYVHSimHits;
int multiplicity;
float width, deltaXlocal;
unsigned int processType(99);
tree_->Branch("event", &eventNum, "eventNum/I");
tree_->Branch("accepted", &VHacc, "VHacc/I");
tree_->Branch("rejected", &VHrej, "VHrej/I");
tree_->Branch("layer", &layer, "layer/I");
tree_->Branch("module_id", &module_id, "module_id/I");
tree_->Branch("module_type", &module_type, "module_type/I");
tree_->Branch("module_number", &module_number, "module_number/I");
tree_->Branch("vh_isTrue", &vh_isTrue, "vh_isTrue/I");
tree_->Branch("x_global", &x_global, "x_global/F");
tree_->Branch("y_global", &y_global, "y_global/F");
tree_->Branch("z_global", &z_global, "z_global/F");
tree_->Branch("vh_x_local", &vh_x_local, "vh_x_local/F");
tree_->Branch("vh_y_local", &vh_y_local, "vh_y_local/F");
tree_->Branch("vh_x_lError", &vh_x_le, "vh_x_le/F");
tree_->Branch("vh_y_lError", &vh_y_le, "vh_y_le/F");
tree_->Branch("curvature", &curvature, "curvature/F");
tree_->Branch("chi2", &chi2, "chi2/F");
tree_->Branch("phi", &phi, "phi/F");
tree_->Branch("QOverP", &QOverP, "QOverP/F");
tree_->Branch("QOverPT", &QOverPT, "QOverPT/F");
tree_->Branch("low_tp_id", &low_tp_id, "low_tp_id/I");
tree_->Branch("upp_tp_id", &upp_tp_id, "upp_tp_id/I");
tree_->Branch("vh_sim_trackPt", &vh_sim_trackPt, "vh_sim_trackPt/F");
tree_->Branch("sim_x_local", &sim_x_local, "sim_x_local/F");
tree_->Branch("sim_y_local", &sim_y_local, "sim_y_local/F");
tree_->Branch("sim_x_global", &sim_x_global, "sim_x_global/F");
tree_->Branch("sim_y_global", &sim_y_global, "sim_y_global/F");
tree_->Branch("sim_z_global", &sim_z_global, "sim_z_global/F");
tree_->Branch("low_x_global", &low_x_global, "low_x_global/F");
tree_->Branch("low_y_global", &low_y_global, "low_y_global/F");
tree_->Branch("low_z_global", &low_z_global, "low_z_global/F");
tree_->Branch("low_xx_global_err", &low_xx_global_err, "low_xx_global_err/F");
tree_->Branch("low_yy_global_err", &low_yy_global_err, "low_yy_global_err/F");
tree_->Branch("low_zz_global_err", &low_zz_global_err, "low_zz_global_err/F");
tree_->Branch("low_xy_global_err", &low_xy_global_err, "low_xy_global_err/F");
tree_->Branch("low_zx_global_err", &low_zx_global_err, "low_zx_global_err/F");
tree_->Branch("low_zy_global_err", &low_zy_global_err, "low_zy_global_err/F");
tree_->Branch("upp_x_global", &upp_x_global, "upp_x_global/F");
tree_->Branch("upp_y_global", &upp_y_global, "upp_y_global/F");
tree_->Branch("upp_z_global", &upp_z_global, "upp_z_global/F");
tree_->Branch("upp_xx_global_err", &upp_xx_global_err, "upp_xx_global_err/F");
tree_->Branch("upp_yy_global_err", &upp_yy_global_err, "upp_yy_global_err/F");
tree_->Branch("upp_zz_global_err", &upp_zz_global_err, "upp_zz_global_err/F");
tree_->Branch("upp_xy_global_err", &upp_xy_global_err, "upp_xy_global_err/F");
tree_->Branch("upp_zx_global_err", &upp_zx_global_err, "upp_zx_global_err/F");
tree_->Branch("upp_zy_global_err", &upp_zy_global_err, "upp_zy_global_err/F");
tree_->Branch("deltaXVHSimHits", &deltaXVHSimHits, "deltaXVHSimHits/F");
tree_->Branch("deltaYVHSimHits", &deltaYVHSimHits, "deltaYVHSimHits/F");
tree_->Branch("multiplicity", &multiplicity, "multiplicity/I");
tree_->Branch("width", &width, "width/F");
tree_->Branch("deltaXlocal", &deltaXlocal, "deltaXlocal/F");
tree_->Branch("processType", &processType, "processType/i");
// Rearrange the simTracks for ease of use <simTrackID, simTrack>
SimTracksMap simTracks;
for (const auto& simTrackIt : *simTracksRaw.product())
simTracks.emplace(std::pair<unsigned int, SimTrack>(simTrackIt.trackId(), simTrackIt));
// Rearrange the simHits by detUnit for ease of use
SimHitsMap simHitsDetUnit;
SimHitsMap simHitsTrackId;
for (const auto& simHitIt : *simHitsRaw.product()) {
SimHitsMap::iterator simHitsDetUnitIt(simHitsDetUnit.find(simHitIt.detUnitId()));
if (simHitsDetUnitIt == simHitsDetUnit.end()) {
std::pair<SimHitsMap::iterator, bool> newIt(simHitsDetUnit.insert(
std::pair<unsigned int, std::vector<PSimHit> >(simHitIt.detUnitId(), std::vector<PSimHit>())));
simHitsDetUnitIt = newIt.first;
}
simHitsDetUnitIt->second.push_back(simHitIt);
SimHitsMap::iterator simHitsTrackIdIt(simHitsTrackId.find(simHitIt.trackId()));
if (simHitsTrackIdIt == simHitsTrackId.end()) {
std::pair<SimHitsMap::iterator, bool> newIt(simHitsTrackId.insert(
std::pair<unsigned int, std::vector<PSimHit> >(simHitIt.trackId(), std::vector<PSimHit>())));
simHitsTrackIdIt = newIt.first;
}
simHitsTrackIdIt->second.push_back(simHitIt);
}
//Printout outer tracker clusters in the event
for (const auto& DSViter : *clusters) {
unsigned int rawid(DSViter.detId());
DetId detId(rawid);
const GeomDetUnit* geomDetUnit(tkGeom_->idToDetUnit(detId));
const PixelGeomDetUnit* theGeomDet = dynamic_cast<const PixelGeomDetUnit*>(geomDetUnit);
for (const auto& clustIt : DSViter) {
auto&& lparams = cpe_->localParameters(clustIt, *theGeomDet);
Global3DPoint gparams = theGeomDet->surface().toGlobal(lparams.first);
LogTrace("VectorHitsBuilderValidation") << "phase2 OT clusters: " << gparams << " DetId: " << rawid;
}
}
for (const auto& DSViter : *vhsAcc) {
for (const auto& vhIt : DSViter) {
LogTrace("VectorHitsBuilderValidation") << "accepted VH: " << vhIt;
}
}
for (const auto& DSViter : *vhsRej) {
for (const auto& vhIt : DSViter) {
LogTrace("VectorHitsBuilderValidation") << "rejected VH: " << vhIt;
}
}
// Validation
eventNum = event.id().event();
unsigned int nVHsTot(0), nVHsPSTot(0), nVHs2STot(0);
std::vector<Global3DPoint> glVHs;
std::vector<Global3DVector> dirVHs;
std::vector<int> detIds;
// Loop over modules
for (const auto DSViter : *vhsAcc) {
// Get the detector unit's id
unsigned int rawid(DSViter.detId());
module_id = rawid;
DetId detId(rawid);
module_number = getModuleNumber(detId);
layer = getLayerNumber(detId);
LogDebug("VectorHitsBuilderValidation") << "Layer: " << layer << " det id" << rawid << std::endl;
// Get the geometry of the tracker
const GeomDet* geomDet(tkGeom_->idToDet(detId));
if (!geomDet)
break;
// Create histograms for the layer if they do not yet exist
std::map<unsigned int, VHHistos>::iterator histogramLayer(histograms_.find(layer));
if (histogramLayer == histograms_.end())
histogramLayer = createLayerHistograms(layer);
// Number of clusters
unsigned int nVHsPS(0), nVHs2S(0);
LogDebug("VectorHitsBuilderValidation") << "DSViter size: " << DSViter.size();
// Loop over the vhs in the detector unit
for (const auto& vhIt : DSViter) {
// vh variables
if (vhIt.isValid()) {
LogDebug("VectorHitsBuilderValidation") << " vh analyzing ...";
chi2 = vhIt.chi2();
LogTrace("VectorHitsBuilderValidation") << "VH chi2 " << chi2 << std::endl;
Local3DPoint localPosVH = vhIt.localPosition();
vh_x_local = localPosVH.x();
vh_y_local = localPosVH.y();
LogTrace("VectorHitsBuilderValidation") << "local VH position " << localPosVH << std::endl;
LocalError localErrVH = vhIt.localPositionError();
vh_x_le = localErrVH.xx();
vh_y_le = localErrVH.yy();
LogTrace("VectorHitsBuilderValidation") << "local VH error " << localErrVH << std::endl;
Global3DPoint globalPosVH = geomDet->surface().toGlobal(localPosVH);
x_global = globalPosVH.x();
y_global = globalPosVH.y();
z_global = globalPosVH.z();
glVHs.push_back(globalPosVH);
LogTrace("VectorHitsBuilderValidation") << " global VH position " << globalPosVH << std::endl;
Local3DVector localDirVH = vhIt.localDirection();
LogTrace("VectorHitsBuilderValidation") << "local VH direction " << localDirVH << std::endl;
VectorHit vh = vhIt;
Global3DVector globalDirVH = vh.globalDirectionVH();
dirVHs.push_back(globalDirVH);
LogTrace("VectorHitsBuilderValidation") << "global VH direction " << globalDirVH << std::endl;
// Fill the position histograms
trackerLayoutRZ_[0]->SetPoint(nVHsTot, globalPosVH.z(), globalPosVH.perp());
trackerLayoutXY_[0]->SetPoint(nVHsTot, globalPosVH.x(), globalPosVH.y());
if (layer < 100)
trackerLayoutXYBar_->SetPoint(nVHsTot, globalPosVH.x(), globalPosVH.y());
else
trackerLayoutXYEC_->SetPoint(nVHsTot, globalPosVH.x(), globalPosVH.y());
histogramLayer->second.localPosXY[0]->SetPoint(nVHsTot, vh_x_local, vh_y_local);
histogramLayer->second.globalPosXY[0]->SetPoint(nVHsTot, globalPosVH.x(), globalPosVH.y());
localPosXvsDeltaX_[0]->SetPoint(nVHsTot, vh_x_local, localDirVH.x());
localPosYvsDeltaY_[0]->SetPoint(nVHsTot, vh_y_local, localDirVH.y());
// Pixel module
const StackGeomDet* stackDet = dynamic_cast<const StackGeomDet*>(geomDet);
const PixelGeomDetUnit* geomDetLower = dynamic_cast<const PixelGeomDetUnit*>(stackDet->lowerDet());
DetId lowerDetId = stackDet->lowerDet()->geographicalId();
DetId upperDetId = stackDet->upperDet()->geographicalId();
TrackerGeometry::ModuleType mType = tkGeom_->getDetectorType(lowerDetId);
module_type = 0;
if (mType == TrackerGeometry::ModuleType::Ph2PSP) {
module_type = 1;
trackerLayoutRZ_[1]->SetPoint(nVHsPSTot, globalPosVH.z(), globalPosVH.perp());
trackerLayoutXY_[1]->SetPoint(nVHsPSTot, globalPosVH.x(), globalPosVH.y());
histogramLayer->second.localPosXY[1]->SetPoint(nVHsPSTot, vh_x_local, vh_y_local);
histogramLayer->second.globalPosXY[1]->SetPoint(nVHsPSTot, globalPosVH.x(), globalPosVH.y());
localPosXvsDeltaX_[1]->SetPoint(nVHsPSTot, vh_x_local, localDirVH.x());
localPosYvsDeltaY_[1]->SetPoint(nVHsPSTot, vh_y_local, localDirVH.y());
++nVHsPS;
++nVHsPSTot;
}
// Strip module
else if (mType == TrackerGeometry::ModuleType::Ph2SS) {
module_type = 2;
trackerLayoutRZ_[2]->SetPoint(nVHs2STot, globalPosVH.z(), globalPosVH.perp());
trackerLayoutXY_[2]->SetPoint(nVHs2STot, globalPosVH.x(), globalPosVH.y());
histogramLayer->second.localPosXY[2]->SetPoint(nVHs2STot, vh_x_local, vh_y_local);
histogramLayer->second.globalPosXY[2]->SetPoint(nVHs2STot, globalPosVH.x(), globalPosVH.y());
localPosXvsDeltaX_[2]->SetPoint(nVHs2STot, vh_x_local, localDirVH.x());
localPosYvsDeltaY_[2]->SetPoint(nVHs2STot, vh_y_local, localDirVH.y());
++nVHs2S;
++nVHs2STot;
} else if (mType == TrackerGeometry::ModuleType::Ph2PSS) {
edm::LogError("VectorHitsBuilderValidation") << "module type " << module_type << " should never happen!";
}
LogTrace("VectorHitsBuilderValidation") << "module type " << module_type << std::endl;
// get the geomDetUnit of the clusters
low_x_global = vhIt.lowerGlobalPos().x();
low_y_global = vhIt.lowerGlobalPos().y();
low_z_global = vhIt.lowerGlobalPos().z();
upp_x_global = vhIt.upperGlobalPos().x();
upp_y_global = vhIt.upperGlobalPos().y();
upp_z_global = vhIt.upperGlobalPos().z();
low_xx_global_err = vhIt.lowerGlobalPosErr().cxx();
low_yy_global_err = vhIt.lowerGlobalPosErr().cyy();
low_zz_global_err = vhIt.lowerGlobalPosErr().czz();
low_xy_global_err = vhIt.lowerGlobalPosErr().cyx();
low_zx_global_err = vhIt.lowerGlobalPosErr().czx();
low_zy_global_err = vhIt.lowerGlobalPosErr().czy();
upp_xx_global_err = vhIt.upperGlobalPosErr().cxx();
upp_yy_global_err = vhIt.upperGlobalPosErr().cyy();
upp_zz_global_err = vhIt.upperGlobalPosErr().czz();
upp_xy_global_err = vhIt.upperGlobalPosErr().cyx();
upp_zx_global_err = vhIt.upperGlobalPosErr().czx();
upp_zy_global_err = vhIt.upperGlobalPosErr().czy();
LogDebug("VectorHitsBuilderValidation") << "print Clusters into the VH:" << std::endl;
printCluster(geomDetLower, vhIt.lowerClusterRef());
LogTrace("VectorHitsBuilderValidation") << "\t global pos lower " << vhIt.lowerGlobalPos() << std::endl;
LogTrace("VectorHitsBuilderValidation")
<< "\t global posErr lower " << vhIt.lowerGlobalPosErr().cxx() << std::endl;
const GeomDetUnit* geomDetUpper = stackDet->upperDet();
printCluster(geomDetUpper, vhIt.upperClusterRef());
LogTrace("VectorHitsBuilderValidation") << "\t global pos upper " << vhIt.upperGlobalPos() << std::endl;
//comparison with SIM hits
LogDebug("VectorHitsBuilderValidation") << "comparison Clusters with sim hits ... " << std::endl;
std::vector<unsigned int> clusterSimTrackIds;
std::vector<unsigned int> clusterSimTrackIdsUpp;
std::set<std::pair<uint32_t, EncodedEventId> > simTkIds;
const GeomDetUnit* geomDetUnit_low(tkGeom_->idToDetUnit(lowerDetId));
LogTrace("VectorHitsBuilderValidation") << " lowerDetID : " << lowerDetId.rawId();
const GeomDetUnit* geomDetUnit_upp(tkGeom_->idToDetUnit(upperDetId));
LogTrace("VectorHitsBuilderValidation") << " upperDetID : " << upperDetId.rawId();
for (unsigned int istr(0); istr < (*(vhIt.lowerClusterRef().cluster_phase2OT())).size(); ++istr) {
uint32_t channel =
Phase2TrackerDigi::pixelToChannel((*(vhIt.lowerClusterRef().cluster_phase2OT())).firstRow() + istr,
(*(vhIt.lowerClusterRef().cluster_phase2OT())).column());
unsigned int LowerSimTrackId(getSimTrackId(siphase2SimLinks, lowerDetId, channel));
std::vector<std::pair<uint32_t, EncodedEventId> > trkid(
getSimTrackIds(siphase2SimLinks, lowerDetId, channel));
if (trkid.size() == 0)
continue;
clusterSimTrackIds.push_back(LowerSimTrackId);
simTkIds.insert(trkid.begin(), trkid.end());
LogTrace("VectorHitsBuilderValidation") << "LowerSimTrackId " << LowerSimTrackId << std::endl;
}
// In the case of PU, we need the TPs to find the proper SimTrackID
for (const auto& iset : simTkIds) {
auto ipos = mapping.find(iset);
if (ipos != mapping.end()) {
LogTrace("VectorHitsBuilderValidation") << "lower cluster in detid: " << lowerDetId.rawId()
<< " from tp: " << ipos->second.key() << " " << iset.first;
LogTrace("VectorHitsBuilderValidation") << "with pt(): " << (*ipos->second).pt();
low_tp_id = ipos->second.key();
vh_sim_trackPt = (*ipos->second).pt();
}
}
simTkIds.clear();
for (unsigned int istr(0); istr < (*(vhIt.upperClusterRef().cluster_phase2OT())).size(); ++istr) {
uint32_t channel =
Phase2TrackerDigi::pixelToChannel((*(vhIt.upperClusterRef().cluster_phase2OT())).firstRow() + istr,
(*(vhIt.upperClusterRef().cluster_phase2OT())).column());
unsigned int UpperSimTrackId(getSimTrackId(siphase2SimLinks, upperDetId, channel));
std::vector<std::pair<uint32_t, EncodedEventId> > trkid(
getSimTrackIds(siphase2SimLinks, upperDetId, channel));
if (trkid.size() == 0)
continue;
clusterSimTrackIdsUpp.push_back(UpperSimTrackId);
simTkIds.insert(trkid.begin(), trkid.end());
LogTrace("VectorHitsBuilderValidation") << "UpperSimTrackId " << UpperSimTrackId << std::endl;
}
// In the case of PU, we need the TPs to find the proper SimTrackID
for (const auto& iset : simTkIds) {
auto ipos = mapping.find(iset);
if (ipos != mapping.end()) {
LogTrace("VectorHitsBuilderValidation")
<< "upper cluster in detid: " << upperDetId.rawId() << " from tp: " << ipos->second.key() << " "
<< iset.first << std::endl;
upp_tp_id = ipos->second.key();
}
}
//compute if the vhits is 'true' or 'false' and save sim pT
std::pair<bool, uint32_t> istrue = isTrue(vhIt, siphase2SimLinks, detId);
vh_isTrue = 0;
if (istrue.first) {
vh_isTrue = 1;
}
// loop over all simHits
unsigned int totalSimHits(0);
unsigned int primarySimHits(0);
unsigned int otherSimHits(0);
for (const auto& hitIt : *simHitsRaw) {
if (hitIt.detUnitId() == geomDetLower->geographicalId()) {
//check clusters track id compatibility
if (std::find(clusterSimTrackIds.begin(), clusterSimTrackIds.end(), hitIt.trackId()) !=
clusterSimTrackIds.end()) {
Local3DPoint localPosHit(hitIt.localPosition());
sim_x_local = localPosHit.x();
sim_y_local = localPosHit.y();
deltaXVHSimHits = vh_x_local - sim_x_local;
deltaYVHSimHits = vh_y_local - sim_y_local;
Global3DPoint globalPosHit = geomDetLower->surface().toGlobal(localPosHit);
sim_x_global = globalPosHit.x();
sim_y_global = globalPosHit.y();
sim_z_global = globalPosHit.z();
histogramLayer->second.deltaXVHSimHits[0]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits[0]->Fill(vh_y_local - sim_y_local);
// Pixel module
if (layer == 1 || layer == 2 || layer == 3) {
histogramLayer->second.deltaXVHSimHits[1]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits[1]->Fill(vh_y_local - sim_y_local);
}
// Strip module
else if (layer == 4 || layer == 5 || layer == 6) {
histogramLayer->second.deltaXVHSimHits[2]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits[2]->Fill(vh_y_local - sim_y_local);
}
++totalSimHits;
std::map<unsigned int, SimTrack>::const_iterator simTrackIt(simTracks.find(hitIt.trackId()));
if (simTrackIt == simTracks.end())
continue;
// Primary particles only
processType = hitIt.processType();
if (simTrackIt->second.vertIndex() == 0 and
(processType == 2 || processType == 7 || processType == 9 || processType == 11 || processType == 13 ||
processType == 15)) {
histogramLayer->second.deltaXVHSimHits_P[0]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits_P[0]->Fill(vh_y_local - sim_y_local);
// Pixel module
if (layer == 1 || layer == 2 || layer == 3) {
histogramLayer->second.deltaXVHSimHits_P[1]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits_P[1]->Fill(vh_y_local - sim_y_local);
}
// Strip module
else if (layer == 4 || layer == 5 || layer == 6) {
histogramLayer->second.deltaXVHSimHits_P[2]->Fill(vh_x_local - sim_x_local);
histogramLayer->second.deltaYVHSimHits_P[2]->Fill(vh_y_local - sim_y_local);
}
++primarySimHits;
}
otherSimHits = totalSimHits - primarySimHits;
histogramLayer->second.totalSimHits->Fill(totalSimHits);
histogramLayer->second.primarySimHits->Fill(primarySimHits);
histogramLayer->second.otherSimHits->Fill(otherSimHits);
}
}
} // loop simhits
nVHsTot++;
//******************************
//combinatorial studies : not filling if more than 1 VH has been produced
//******************************
multiplicity = DSViter.size();
if (DSViter.size() > 1) {
LogTrace("VectorHitsBuilderValidation") << " not filling if more than 1 VH has been produced";
width = -100;
deltaXlocal = -100;
tree_->Fill();
continue;
}
//curvature
GlobalPoint center(0.0, 0.0, 0.0);
curvature = vh.curvature();
phi = vh.phi();
QOverPT = vh.transverseMomentum(magField_->inTesla(center).z());
QOverP = vh.momentum(magField_->inTesla(center).z());
histogramLayer->second.curvature->Fill(curvature);
//stub width
auto&& lparamsUpp = cpe_->localParameters(*vhIt.upperClusterRef().cluster_phase2OT(), *geomDetUnit_upp);
LogTrace("VectorHitsBuilderValidation") << " upper local pos (in its system of reference):" << lparamsUpp.first;
Global3DPoint gparamsUpp = geomDetUnit_upp->surface().toGlobal(lparamsUpp.first);
LogTrace("VectorHitsBuilderValidation") << " upper global pos :" << gparamsUpp;
Local3DPoint lparamsUppInLow = geomDetUnit_low->surface().toLocal(gparamsUpp);
LogTrace("VectorHitsBuilderValidation") << " upper local pos (in low system of reference):" << lparamsUppInLow;
auto&& lparamsLow = cpe_->localParameters(*vhIt.lowerClusterRef().cluster_phase2OT(), *geomDetUnit_low);
LogTrace("VectorHitsBuilderValidation") << " lower local pos (in its system of reference):" << lparamsLow.first;
Global3DPoint gparamsLow = geomDetUnit_low->surface().toGlobal(lparamsLow.first);
LogTrace("VectorHitsBuilderValidation") << " lower global pos :" << gparamsLow;
deltaXlocal = lparamsUppInLow.x() - lparamsLow.first.x();
histogramLayer->second.deltaXlocal->Fill(deltaXlocal);
LogTrace("VectorHitsBuilderValidation") << " deltaXlocal : " << deltaXlocal;
double parallCorr = 0.0;
Global3DPoint origin(0, 0, 0);
GlobalVector gV = gparamsLow - origin;
LocalVector lV = geomDetUnit_low->surface().toLocal(gV);
LocalVector lV_norm = lV / lV.z();
parallCorr = lV_norm.x() * lparamsUppInLow.z();
LogTrace("VectorHitsBuilderValidation") << " parallalex correction:" << parallCorr;
double lpos_upp_corr = 0.0;
double lpos_low_corr = 0.0;
if (lparamsUpp.first.x() > lparamsLow.first.x()) {
if (lparamsUpp.first.x() > 0) {
lpos_low_corr = lparamsLow.first.x();
lpos_upp_corr = lparamsUpp.first.x() - fabs(parallCorr);
}
if (lparamsUpp.first.x() < 0) {
lpos_low_corr = lparamsLow.first.x() + fabs(parallCorr);
lpos_upp_corr = lparamsUpp.first.x();
}
} else if (lparamsUpp.first.x() < lparamsLow.first.x()) {
if (lparamsUpp.first.x() > 0) {
lpos_low_corr = lparamsLow.first.x() - fabs(parallCorr);
lpos_upp_corr = lparamsUpp.first.x();
}
if (lparamsUpp.first.x() < 0) {
lpos_low_corr = lparamsLow.first.x();
lpos_upp_corr = lparamsUpp.first.x() + fabs(parallCorr);
}
} else {
if (lparamsUpp.first.x() > 0) {
lpos_upp_corr = lparamsUpp.first.x() - fabs(parallCorr);
lpos_low_corr = lparamsLow.first.x();
}
if (lparamsUpp.first.x() < 0) {
lpos_upp_corr = lparamsUpp.first.x() + fabs(parallCorr);
lpos_low_corr = lparamsLow.first.x();
}
}
LogDebug("VectorHitsBuilderValidation") << " \t local pos upper corrected (x):" << lpos_upp_corr << std::endl;
LogDebug("VectorHitsBuilderValidation") << " \t local pos lower corrected (x):" << lpos_low_corr << std::endl;
width = lpos_low_corr - lpos_upp_corr;
histogramLayer->second.width->Fill(width);
LogTrace("VectorHitsBuilderValidation") << " width:" << width;
tree_->Fill();
} // vh valid
} // loop vhs
if (nVHsPS)
histogramLayer->second.numberVHsPS->Fill(nVHsPS);
if (nVHs2S)
histogramLayer->second.numberVHs2S->Fill(nVHs2S);
LogTrace("VectorHitsBuilderValidation")
<< "nVHsPS for this layer : " << nVHsPS << ", nVHs2S for this layer : " << nVHs2S << std::endl;
}
CreateVHsXYGraph(glVHs, dirVHs);
CreateVHsRZGraph(glVHs, dirVHs);
int VHaccTrue = 0.0;
int VHaccFalse = 0.0;
int VHrejTrue = 0.0;
int VHrejFalse = 0.0;
int VHaccTrue_signal = 0.0;
int VHrejTrue_signal = 0.0;
// Loop over modules
for (const auto& DSViter : *vhsAcc) {
unsigned int rawid(DSViter.detId());
DetId detId(rawid);
int layerAcc = getLayerNumber(detId);
LogTrace("VectorHitsBuilderValidation") << "acc Layer: " << layerAcc << " det id" << rawid << std::endl;
for (const auto& vhIt : DSViter) {
if (vhIt.isValid()) {
VHaccLayer_->Fill(layerAcc);
VHacc++;
//compute if the vhits is 'true' or 'false'
std::pair<bool, uint32_t> istrue = isTrue(vhIt, siphase2SimLinks, detId);
if (istrue.first) {
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is a 'true' vhit.";
VHaccTrueLayer_->Fill(layerAcc);
VHaccTrue++;
//saving info of 'signal' track
std::map<unsigned int, SimTrack>::const_iterator simTrackIt(simTracks.find(istrue.second));
if (simTrackIt == simTracks.end())
continue;
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is associated with SimTrackId: " << istrue.second;
LogTrace("VectorHitsBuilderValidation") << "the SimTrack has pt: " << simTrackIt->second.momentum().pt();
if (simTrackIt->second.momentum().pt() > 1) {
VHaccTrue_signal_Layer_->Fill(layerAcc);
LogTrace("VectorHitsBuilderValidation") << "the vectorhit belongs to signal";
VHaccTrue_signal++;
}
} else {
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is a 'false' vhit.";
VHaccFalse++;
}
}
}
}
for (const auto& DSViter : *vhsRej) {
unsigned int rawid(DSViter.detId());
DetId detId(rawid);
int layerRej = getLayerNumber(detId);
LogTrace("VectorHitsBuilderValidation") << "rej Layer: " << layerRej << " det id" << rawid << std::endl;
for (const auto& vhIt : DSViter) {
VHrejLayer_->Fill(layerRej);
VHrej++;
//compute if the vhits is 'true' or 'false'
std::pair<bool, uint32_t> istrue = isTrue(vhIt, siphase2SimLinks, detId);
if (istrue.first) {
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is a 'true' vhit.";
VHrejTrueLayer_->Fill(layerRej);
VHrejTrue++;
//saving info of 'signal' track
std::map<unsigned int, SimTrack>::const_iterator simTrackIt(simTracks.find(istrue.second));
if (simTrackIt == simTracks.end())
continue;
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is associated with SimTrackId: " << istrue.second;
LogTrace("VectorHitsBuilderValidation") << "the SimTrack has pt: " << simTrackIt->second.momentum().pt();
if (simTrackIt->second.momentum().pt() > 1) {
VHrejTrue_signal_Layer_->Fill(layerRej);
LogTrace("VectorHitsBuilderValidation") << "the vectorhit belongs to signal";
VHrejTrue_signal++;
}
} else {
LogTrace("VectorHitsBuilderValidation") << "this vectorhit is a 'false' vhit.";
VHrejFalse++;
}
}
}
int VHtot = VHacc + VHrej;
LogTrace("VectorHitsBuilderValidation")
<< "VH total: " << VHtot << " with " << VHacc << " VHs accepted and " << VHrej << " VHs rejected.";
LogTrace("VectorHitsBuilderValidation")
<< "of the VH accepted, there are " << VHaccTrue << " true and " << VHaccFalse << " false.";
LogTrace("VectorHitsBuilderValidation")
<< "of the VH rejected, there are " << VHrejTrue << " true and " << VHrejFalse << " false.";
LogTrace("VectorHitsBuilderValidation")
<< "of the true VH , there are " << VHaccTrue_signal << " accepted belonging to signal and "
<< VHrejTrue_signal << " rejected belonging to signal.";
// CreateWindowCorrGraph();
}
// Check if the vector hit is true (both clusters are formed from the same SimTrack
std::pair<bool, uint32_t> VectorHitsBuilderValidation::isTrue(
const VectorHit vh, const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >& siphase2SimLinks, DetId& detId) const {
const GeomDet* geomDet(tkGeom_->idToDet(detId));
const StackGeomDet* stackDet = dynamic_cast<const StackGeomDet*>(geomDet);
const GeomDetUnit* geomDetLower = stackDet->lowerDet();
const GeomDetUnit* geomDetUpper = stackDet->upperDet();
std::vector<unsigned int> lowClusterSimTrackIds;
for (unsigned int istr(0); istr < (*(vh.lowerClusterRef().cluster_phase2OT())).size(); ++istr) {
uint32_t channel = Phase2TrackerDigi::pixelToChannel((*(vh.lowerClusterRef().cluster_phase2OT())).firstRow() + istr,
(*(vh.lowerClusterRef().cluster_phase2OT())).column());
DetId detIdCluster = geomDetLower->geographicalId();
unsigned int simTrackId(getSimTrackId(siphase2SimLinks, detIdCluster, channel));
LogTrace("VectorHitsBuilderValidation") << "LowerSimTrackId " << simTrackId << std::endl;
std::vector<std::pair<uint32_t, EncodedEventId> > trkid(getSimTrackIds(siphase2SimLinks, detIdCluster, channel));
if (trkid.size() == 0)
continue;
lowClusterSimTrackIds.push_back(simTrackId);
}
std::vector<unsigned int>::iterator it_simTrackUpper;
for (unsigned int istr(0); istr < (*(vh.upperClusterRef().cluster_phase2OT())).size(); ++istr) {
uint32_t channel = Phase2TrackerDigi::pixelToChannel((*(vh.upperClusterRef().cluster_phase2OT())).firstRow() + istr,
(*(vh.upperClusterRef().cluster_phase2OT())).column());
DetId detIdCluster = geomDetUpper->geographicalId();
unsigned int simTrackId(getSimTrackId(siphase2SimLinks, detIdCluster, channel));
LogTrace("VectorHitsBuilderValidation") << "UpperSimTrackId " << simTrackId << std::endl;
std::vector<std::pair<uint32_t, EncodedEventId> > trkid(getSimTrackIds(siphase2SimLinks, detIdCluster, channel));
if (trkid.size() == 0)
continue;
it_simTrackUpper = std::find(lowClusterSimTrackIds.begin(), lowClusterSimTrackIds.end(), simTrackId);
if (it_simTrackUpper != lowClusterSimTrackIds.end()) {
LogTrace("VectorHitsBuilderValidation") << " UpperSimTrackId found in lowClusterSimTrackIds ";
return std::make_pair(true, simTrackId);
}
}
return std::make_pair(false, 0);
}
// Create the histograms
std::map<unsigned int, VHHistos>::iterator VectorHitsBuilderValidation::createLayerHistograms(unsigned int ival) {
std::ostringstream fname1, fname2;
edm::Service<TFileService> fs;
fs->file().cd("/");
std::string tag;
unsigned int id;
if (ival < 100) {
id = ival;
fname1 << "Barrel";
fname2 << "Layer_" << id;
tag = "_layer_";
} else {
int side = ival / 100;
id = ival - side * 100;
fname1 << "EndCap_Side_" << side;
fname2 << "Disc_" << id;
tag = "_disc_";
}
TFileDirectory td1 = fs->mkdir(fname1.str().c_str());
TFileDirectory td = td1.mkdir(fname2.str().c_str());
VHHistos local_histos;
std::ostringstream histoName;
/*
* Number of clusters
*/
histoName.str("");
histoName << "Number_VHs_PS" << tag.c_str() << id;
local_histos.numberVHsPS = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 20, 0., 20.);
local_histos.numberVHsPS->SetFillColor(kAzure + 7);
histoName.str("");
histoName << "Number_VHs_2S" << tag.c_str() << id;
local_histos.numberVHs2S = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 20, 0., 20.);
local_histos.numberVHs2S->SetFillColor(kOrange - 3);
histoName.str("");
histoName << "Number_VHs_Mixed" << tag.c_str() << id;
local_histos.numberVHsMixed = td.make<THStack>(histoName.str().c_str(), histoName.str().c_str());
local_histos.numberVHsMixed->Add(local_histos.numberVHsPS);
local_histos.numberVHsMixed->Add(local_histos.numberVHs2S);
/*
* Local and Global positions
*/
histoName.str("");
histoName << "Local_Position_XY_Mixed" << tag.c_str() << id;
local_histos.localPosXY[0] = td.make<TGraph>();
local_histos.localPosXY[0]->SetName(histoName.str().c_str());
histoName.str("");
histoName << "Local_Position_XY_PS" << tag.c_str() << id;
local_histos.localPosXY[1] = td.make<TGraph>();
local_histos.localPosXY[1]->SetName(histoName.str().c_str());
histoName.str("");
histoName << "Local_Position_XY_2S" << tag.c_str() << id;
local_histos.localPosXY[2] = td.make<TGraph>();
local_histos.localPosXY[2]->SetName(histoName.str().c_str());
histoName.str("");
histoName << "Global_Position_XY_Mixed" << tag.c_str() << id;
local_histos.globalPosXY[0] = td.make<TGraph>();
local_histos.globalPosXY[0]->SetName(histoName.str().c_str());
histoName.str("");
histoName << "Global_Position_XY_PS" << tag.c_str() << id;
local_histos.globalPosXY[1] = td.make<TGraph>();
local_histos.globalPosXY[1]->SetName(histoName.str().c_str());
histoName.str("");
histoName << "Global_Position_XY_2S" << tag.c_str() << id;
local_histos.globalPosXY[2] = td.make<TGraph>();
local_histos.globalPosXY[2]->SetName(histoName.str().c_str());
/*
* Delta positions with SimHits
*/
histoName.str("");
histoName << "Delta_X_VH_SimHits_Mixed" << tag.c_str() << id;
local_histos.deltaXVHSimHits[0] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_X_VH_SimHits_PS" << tag.c_str() << id;
local_histos.deltaXVHSimHits[1] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_X_VH_SimHits_2S" << tag.c_str() << id;
local_histos.deltaXVHSimHits[2] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_Mixed" << tag.c_str() << id;
local_histos.deltaYVHSimHits[0] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_PS" << tag.c_str() << id;
local_histos.deltaYVHSimHits[1] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_2S" << tag.c_str() << id;
local_histos.deltaYVHSimHits[2] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
/*
* Delta position with simHits for primary tracks only
*/
histoName.str("");
histoName << "Delta_X_VH_SimHits_Mixed_P" << tag.c_str() << id;
local_histos.deltaXVHSimHits_P[0] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_X_VH_SimHits_PS_P" << tag.c_str() << id;
local_histos.deltaXVHSimHits_P[1] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_X_VH_SimHits_2S_P" << tag.c_str() << id;
local_histos.deltaXVHSimHits_P[2] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_Mixed_P" << tag.c_str() << id;
local_histos.deltaYVHSimHits_P[0] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_PS_P" << tag.c_str() << id;
local_histos.deltaYVHSimHits_P[1] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
histoName.str("");
histoName << "Delta_Y_VH_SimHits_2S_P" << tag.c_str() << id;
local_histos.deltaYVHSimHits_P[2] = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 100, 0., 0.);
/*
* Information on the Digis per cluster
*/
histoName.str("");
histoName << "Total_Digis" << tag.c_str() << id;
local_histos.totalSimHits = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 10, 0., 10.);
histoName.str("");
histoName << "Primary_Digis" << tag.c_str() << id;
local_histos.primarySimHits = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 10, 0., 10.);
histoName.str("");
histoName << "Other_Digis" << tag.c_str() << id;
local_histos.otherSimHits = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 10, 0., 10.);
/*
* Study on the clusters combinatorial problem
*/
histoName.str("");
histoName << "DeltaXlocal_clusters" << tag.c_str() << id;
local_histos.deltaXlocal = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 200, -0.4, 0.4);
histoName.str("");
histoName << "Width" << tag.c_str() << id;
local_histos.width = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 200, -0.4, 0.4);
histoName.str("");
histoName << "Curvature" << tag.c_str() << id;
local_histos.curvature = td.make<TH1F>(histoName.str().c_str(), histoName.str().c_str(), 200, -0.4, 0.4);
std::pair<std::map<unsigned int, VHHistos>::iterator, bool> insertedIt(
histograms_.insert(std::make_pair(ival, local_histos)));
fs->file().cd("/");
return insertedIt.first;
}
void VectorHitsBuilderValidation::CreateVHsXYGraph(const std::vector<Global3DPoint> glVHs,
const std::vector<Global3DVector> dirVHs) {
if (glVHs.size() != dirVHs.size()) {
std::cout << "Cannot fullfil the graphs for this event. Return." << std::endl;
return;
}
// opening canvas and drawing XY TGraph
for (unsigned int nVH = 0; nVH < glVHs.size(); nVH++) {
//same r
if ((fabs(dirVHs.at(nVH).x()) < 10e-5) && (fabs(dirVHs.at(nVH).y()) < 10e-5)) {
continue;
} else {
}
}
return;
}
void VectorHitsBuilderValidation::CreateVHsRZGraph(const std::vector<Global3DPoint> glVHs,
const std::vector<Global3DVector> dirVHs) {
if (glVHs.size() != dirVHs.size()) {
std::cout << "Cannot fullfil the graphs for this event. Return." << std::endl;
return;
}
return;
}
void VectorHitsBuilderValidation::CreateWindowCorrGraph() {
//FIXME: This function is not working properly, yet.
//return if we are not using Phase2 OT
if (!tkGeom_->isThere(GeomDetEnumerators::P2OTB) && !tkGeom_->isThere(GeomDetEnumerators::P2OTEC))
return;
for (auto det : tkGeom_->detsTOB()) {
ParallaxCorrectionRZ_->Fill(det->position().z(), det->position().perp(), 5.);
}
for (auto det : tkGeom_->detsTID()) {
ParallaxCorrectionRZ_->Fill(det->position().z(), det->position().perp(), 10.);
}
ParallaxCorrectionRZ_->Fill(0., 0., 5.);
return;
}
unsigned int VectorHitsBuilderValidation::getLayerNumber(const DetId& detid) {
if (detid.det() == DetId::Tracker) {
if (detid.subdetId() == StripSubdetector::TOB)
return (tkTopo_->layer(detid));
else if (detid.subdetId() == StripSubdetector::TID)
return (100 * tkTopo_->side(detid) + tkTopo_->layer(detid));
else
return 999;
}
return 999;
}
unsigned int VectorHitsBuilderValidation::getModuleNumber(const DetId& detid) { return (tkTopo_->module(detid)); }
std::vector<std::pair<uint32_t, EncodedEventId> > VectorHitsBuilderValidation::getSimTrackIds(
const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >& simLinks, const DetId& detId, uint32_t channel) const {
std::vector<std::pair<uint32_t, EncodedEventId> > simTrkId;
auto isearch = simLinks->find(detId);
if (isearch != simLinks->end()) {
// Loop over DigiSimLink in this det unit
edm::DetSet<PixelDigiSimLink> link_detset = (*isearch);
for (const auto& it : link_detset.data) {
if (channel == it.channel())
simTrkId.push_back(std::make_pair(it.SimTrackId(), it.eventId()));
}
}
return simTrkId;
}
unsigned int VectorHitsBuilderValidation::getSimTrackId(
const edm::Handle<edm::DetSetVector<PixelDigiSimLink> >& pixelSimLinks,
const DetId& detId,
unsigned int channel) const {
edm::DetSetVector<PixelDigiSimLink>::const_iterator DSViter(pixelSimLinks->find(detId));
if (DSViter == pixelSimLinks->end())
return 0;
for (const auto& it : DSViter->data) {
if (channel == it.channel())
return it.SimTrackId();
}
return 0;
}
void VectorHitsBuilderValidation::printCluster(const GeomDetUnit* geomDetUnit, const OmniClusterRef cluster) {
if (!geomDetUnit)
return;
const PixelGeomDetUnit* theGeomDet = dynamic_cast<const PixelGeomDetUnit*>(geomDetUnit);
const PixelTopology& topol = theGeomDet->specificTopology();
unsigned int layer = getLayerNumber(geomDetUnit->geographicalId());
unsigned int module = getModuleNumber(geomDetUnit->geographicalId());
LogTrace("VectorHitsBuilderValidation") << "Layer:" << layer << std::endl;
if (topol.ncolumns() == 32)
LogTrace("VectorHitsBuilderValidation") << "Pixel cluster with detId:" << geomDetUnit->geographicalId().rawId()
<< "(module:" << module << ") " << std::endl;
else if (topol.ncolumns() == 2)
LogTrace("VectorHitsBuilderValidation") << "Strip cluster with detId:" << geomDetUnit->geographicalId().rawId()
<< "(module:" << module << ") " << std::endl;
else
std::cout << "no module?!" << std::endl;
LogTrace("VectorHitsBuilderValidation")
<< "with pitch:" << topol.pitch().first << " , " << topol.pitch().second << std::endl;
LogTrace("VectorHitsBuilderValidation") << " and width:" << theGeomDet->surface().bounds().width()
<< " , lenght:" << theGeomDet->surface().bounds().length() << std::endl;
auto&& lparams = cpe_->localParameters(*cluster.cluster_phase2OT(), *theGeomDet);
LogTrace("VectorHitsBuilderValidation")
<< "\t local pos " << lparams.first << "with err " << lparams.second << std::endl;
return;
}
void VectorHitsBuilderValidation::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
desc.add<std::string>("src", "siPhase2Clusters");
desc.add<edm::InputTag>("links", edm::InputTag("simSiPixelDigis", "Tracker"));
desc.add<edm::InputTag>("VH_acc", edm::InputTag("siPhase2VectorHits", "accepted"));
desc.add<edm::InputTag>("VH_rej", edm::InputTag("siPhase2VectorHits", "rejected"));
desc.add<edm::ESInputTag>("CPE", edm::ESInputTag("phase2StripCPEESProducer", "Phase2StripCPE"));
desc.add<edm::InputTag>("trackingParticleSrc", edm::InputTag("mix", "MergedTrackTruth"));
descriptions.add("vectorHitsBuilderValidation", desc);
}
DEFINE_FWK_MODULE(VectorHitsBuilderValidation);
|
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file apCLEvent.cpp
///
//==================================================================================
//------------------------------ apCLEvent.cpp ------------------------------
// Infra:
#include <AMDTOSWrappers/Include/osChannel.h>
// Local:
#include <AMDTAPIClasses/Include/apCLEvent.h>
// ---------------------------------------------------------------------------
// Name: apCLEvent::apCLEvent
// Description: Constructor
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
apCLEvent::apCLEvent(oaCLEventHandle eventHandle, oaCLCommandQueueHandle queueHandle, bool retainedBySpy)
: _eventHandle(eventHandle), _controllingQueueHandle(queueHandle), _referenceCount(1), _isRetainedBySpy(retainedBySpy)
{
}
// ---------------------------------------------------------------------------
// Name: apCLEvent::~apCLEvent
// Description: Destructor
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
apCLEvent::~apCLEvent()
{
}
// ---------------------------------------------------------------------------
// Name: apCLEvent::type
// Description: Returns my transferable object type.
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
osTransferableObjectType apCLEvent::type() const
{
return OS_TOBJ_ID_CL_EVENT;
}
// ---------------------------------------------------------------------------
// Name: apCLEvent::writeSelfIntoChannel
// Description: Writes this class into an IPC channel.
// Return Val: bool - Success / failure.
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
bool apCLEvent::writeSelfIntoChannel(osChannel& ipcChannel) const
{
bool retVal = apAllocatedObject::writeSelfIntoChannel(ipcChannel);
ipcChannel << (gtUInt64)_eventHandle;
ipcChannel << (gtUInt64)_controllingQueueHandle;
ipcChannel << (gtUInt32)_commandType;
ipcChannel << (gtUInt32)_referenceCount;
ipcChannel << _isRetainedBySpy;
ipcChannel << _eventName;
return retVal;
}
// ---------------------------------------------------------------------------
// Name: apCLEvent::readSelfFromChannel
// Description: Reads this class from an IPC channel.
// Return Val: bool - Success / failure.
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
bool apCLEvent::readSelfFromChannel(osChannel& ipcChannel)
{
bool retVal = apAllocatedObject::readSelfFromChannel(ipcChannel);
gtUInt64 eventHandleAsUInt64 = (gtUInt64)OA_CL_NULL_HANDLE;
ipcChannel >> eventHandleAsUInt64;
_eventHandle = (oaCLEventHandle)eventHandleAsUInt64;
gtUInt64 controllingQueueHandleAsUInt64 = (gtUInt64)OA_CL_NULL_HANDLE;
ipcChannel >> controllingQueueHandleAsUInt64;
_controllingQueueHandle = (oaCLCommandQueueHandle)controllingQueueHandleAsUInt64;
gtUInt32 commandTypeAsUInt32 = (gtUInt32)CL_NONE;
ipcChannel >> commandTypeAsUInt32;
_commandType = (cl_command_type)commandTypeAsUInt32;
gtUInt32 referenceCountAsUInt32 = 1;
ipcChannel >> referenceCountAsUInt32;
_referenceCount = (unsigned int)referenceCountAsUInt32;
ipcChannel >> _isRetainedBySpy;
ipcChannel >> _eventName;
return retVal;
}
// ---------------------------------------------------------------------------
// Name: apCLEvent::displayReferenceCount
// Description: Returns this event's external reference count (minus the 1 we
// add for measurement).
// Author: AMD Developer Tools Team
// Date: 21/1/2010
// ---------------------------------------------------------------------------
unsigned int apCLEvent::displayReferenceCount() const
{
unsigned int retVal = _referenceCount;
// If we added to this object's reference count, substract 1:
if (_isRetainedBySpy && (_referenceCount > 0))
{
retVal--;
}
return retVal;
}
|
/*
Copyright (c) 2015, Advanced Micro Devices, 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.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef GROUPDOMAIN_HH_
#define GROUPDOMAIN_HH_
#include "FaultDomain.hh"
class GroupDomain : public FaultDomain
{
public:
GroupDomain( const char *name);
virtual void setFIT(){};
virtual void init(){};
virtual void update(){};
};
#endif /* GROUPDOMAIN_HH_ */
|
#include "stdafx.h"
#include "CustomZone.h"
//#include "xrRender/KinematicsAnimated.h"
#include "xrRender/KinematicsAnimated.h"
#include "ZoneVisual.h"
#include "xrServer_Objects_ALife_Monsters.h"
//#include "xrRender/KinematicsAnimated.h"
#include "xrRender/RenderVisual.h"
CVisualZone::CVisualZone() {}
CVisualZone::~CVisualZone() {}
BOOL CVisualZone::net_Spawn(CSE_Abstract* DC) {
if (!inherited::net_Spawn(DC))
return (FALSE);
CSE_Abstract* e = (CSE_Abstract*)(DC);
CSE_ALifeZoneVisual* Z = smart_cast<CSE_ALifeZoneVisual*>(e);
IKinematicsAnimated* SA = smart_cast<IKinematicsAnimated*>(Visual());
m_attack_animation = SA->ID_Cycle_Safe(Z->attack_animation);
R_ASSERT2(m_attack_animation.valid(),
make_string("object[%s]: cannot find attack animation[%s] in model[%s]",
cName().c_str(), Z->attack_animation.c_str(), cNameVisual().c_str()));
m_idle_animation = SA->ID_Cycle_Safe(Z->startup_animation);
R_ASSERT2(m_idle_animation.valid(),
make_string("object[%s]: cannot find startup animation[%s] in model[%s]",
cName().c_str(), Z->startup_animation.c_str(), cNameVisual().c_str()));
SA->PlayCycle(m_idle_animation);
setVisible(TRUE);
return (TRUE);
}
void CVisualZone::SwitchZoneState(EZoneState new_state) {
if (m_eZoneState == eZoneStateBlowout && new_state != eZoneStateBlowout) {
// IKinematicsAnimated* SA=smart_cast<IKinematicsAnimated*>(Visual());
smart_cast<IKinematicsAnimated*>(Visual())->PlayCycle(m_idle_animation);
}
inherited::SwitchZoneState(new_state);
}
void CVisualZone::Load(LPCSTR section) {
inherited::Load(section);
m_dwAttackAnimaionStart = pSettings->r_u32(section, "attack_animation_start");
m_dwAttackAnimaionEnd = pSettings->r_u32(section, "attack_animation_end");
VERIFY2(m_dwAttackAnimaionStart < m_dwAttackAnimaionEnd,
"attack_animation_start must be less then attack_animation_end");
}
void CVisualZone::UpdateBlowout() {
inherited::UpdateBlowout();
if (m_dwAttackAnimaionStart >= (u32)m_iPreviousStateTime &&
m_dwAttackAnimaionStart < (u32)m_iStateTime)
smart_cast<IKinematicsAnimated*>(Visual())->PlayCycle(m_attack_animation);
if (m_dwAttackAnimaionEnd >= (u32)m_iPreviousStateTime &&
m_dwAttackAnimaionEnd < (u32)m_iStateTime)
smart_cast<IKinematicsAnimated*>(Visual())->PlayCycle(m_idle_animation);
}
|
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define LET(x, a) __typeof(a) x(a)
#define foreach(it, v) for(LET(it, v.begin()); it != v.end(); it++)
#define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define __ freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
#define tr(x) cout<<x<<endl;
#define tr2(x,y) cout<<x<<" "<<y<<endl;
#define tr3(x,y,z) cout<<x<<" "<<y<<" "<<z<<endl;
#define tr4(w,x,y,z) cout<<w<<" "<<x<<" "<<y<<" "<<z<<endl;
#define tr5(v,w,x,y,z) cout<<v<<" "<<w<<" "<<x<<" "<<y<<" "<<z<<endl;
#define tr6(u,v,w,x,y,z) cout<<u<<" "<<v<<" "<<w<<" "<<x<<" "<<y<<" "<<z<<endl;
using namespace std;
int main(){
return 0;
}
|
#include "game.h"
#include "menu.h"
Menu::Menu() {
_activeMenu = 0;
_gameTypeMenu = new MenuSet(43, 100, 90, 5, 1, 0, "Game Type");
_gameTypeMenu->addOption("Practice", Game::GAME_TYPE_PRACTICE);
_gameTypeMenu->addOption("Easy", Game::GAME_TYPE_EASY);
_gameTypeMenu->addOption("Medium" , Game::GAME_TYPE_MEDIUM);
_gameTypeMenu->addOption("Hard", Game::GAME_TYPE_HARD);
_gameTypeMenu->addOption("2 Player", Game::GAME_TYPE_2_PLAYER);
_speedMenu = new MenuSet(23, 70, 28, 2, 5, 1, "Speed");
_speedMenu->addOption("0", 0);
_speedMenu->addOption("1", 1);
_speedMenu->addOption("2", 2);
_speedMenu->addOption("3", 3);
_speedMenu->addOption("4", 4);
_speedMenu->addOption("5", 5);
_speedMenu->addOption("6", 6);
_speedMenu->addOption("7", 7);
_speedMenu->addOption("8", 8);
_speedMenu->addOption("9", 9);
_heightMenu = new MenuSet(81, 56, 28, 2, 3, 2, "Height");
_heightMenu->addOption("0", 0);
_heightMenu->addOption("1", 1);
_heightMenu->addOption("2", 2);
_heightMenu->addOption("3", 3);
_heightMenu->addOption("4", 4);
_heightMenu->addOption("5", 5);
_coloursMenu = new MenuSet(139, 42, 14, 1, 3, 3, "Egg Colours");
_coloursMenu->addOption("4", 4);
_coloursMenu->addOption("5", 5);
_coloursMenu->addOption("6", 6);
}
Menu::~Menu() {
delete _gameTypeMenu;
delete _speedMenu;
delete _heightMenu;
delete _coloursMenu;
}
void Menu::render() {
WoopsiGfx::Graphics* gfx = Hardware::getTopGfx();
if (_activeMenu == 0) {
_gameTypeMenu->render(true, &_font, gfx);
} else {
_speedMenu->render(_activeMenu == 1, &_font, gfx);
_heightMenu->render(_activeMenu == 2, &_font, gfx);
_coloursMenu->render(_activeMenu == 3, &_font, gfx);
}
}
void Menu::drawBackground() {
Hardware::getTopGfx()->drawBitmap(0, 0, _backgroundBmp.getWidth(), _backgroundBmp.getHeight(), &_backgroundBmp, 0, 0);
Hardware::getTopBuffer()->buffer();
}
void Menu::reset() {
drawBackground();
_activeMenu = 0;
}
void Menu::iterate() {
const Pad& pad = Hardware::getPad();
if (pad.isANewPress()) {
if (_activeMenu < 4) {
++_activeMenu;
if (_activeMenu == 1) {
drawBackground();
}
}
SoundPlayer::playMenuSelect();
} else if (pad.isBNewPress()) {
if (_activeMenu > 0) {
--_activeMenu;
if (_activeMenu == 0) {
drawBackground();
}
SoundPlayer::playMenuBack();
}
} else if (pad.isStartNewPress()) {
// Jump to the end of the menu
_activeMenu = 4;
SoundPlayer::playMenuSelect();
}
switch (_activeMenu) {
case 0:
_gameTypeMenu->iterate();
break;
case 1:
_speedMenu->iterate();
break;
case 2:
_heightMenu->iterate();
break;
case 3:
_coloursMenu->iterate();
break;
}
render();
}
s32 Menu::getGameType() const {
return _gameTypeMenu->getSelectedValue();
}
s32 Menu::getSpeed() const {
return _speedMenu->getSelectedValue();
}
s32 Menu::getHeight() const {
return _heightMenu->getSelectedValue();
}
s32 Menu::getColours() const {
return _coloursMenu->getSelectedValue();
}
bool Menu::isRunning() const {
return _activeMenu < 4;
}
void Menu::setActiveMenu(s32 menu) {
_activeMenu = menu;
}
|
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
//
//*********************************************************
#include "pch.h"
#include "Scenario2_OvenClientWRL.xaml.h"
#include "MainPage.xaml.h"
#include "..\Server\Microsoft.SDKSamples.Kitchen.h"
using namespace SDKTemplate::WRLInProcessWinRTComponent;
using namespace Microsoft::SDKSamples::Kitchen;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
OvenClientWRL::OvenClientWRL()
{
InitializeComponent();
}
void OvenClientWRL::Start_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IOven> spMyOven;
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IOvenFactory> spMyOvenFactory;
// Component Creation: Get the activation factory
HRESULT hr = Windows::Foundation::GetActivationFactory(Microsoft::WRL::Wrappers::HStringReference(RuntimeClass_Microsoft_SDKSamples_Kitchen_Oven).Get(), &spMyOvenFactory);
if (SUCCEEDED(hr))
{
ABI::Microsoft::SDKSamples::Kitchen::Dimensions dimensions;
dimensions.Width = 2;
dimensions.Height = 2;
dimensions.Depth = 2;
// Component Creation: Call the factory method to produce an oven object
hr = spMyOvenFactory->CreateOven(dimensions, &spMyOven);
}
if (SUCCEEDED(hr))
{
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IAppliance> spMyAppliance;
hr = spMyOven.As(&spMyAppliance);
if (SUCCEEDED(hr))
{
// Getters and setters are accessed using the get_ or put_ methods
double volume;
hr = spMyAppliance->get_Volume(&volume);
if (SUCCEEDED(hr))
{
// To append to the output text a C++\CX call is made. This call can throw an exception.
// Catch any Windows Rutnime exceptions and turn them back into HRESULTS
try
{
OvenClientWRLOutput->Text += "Oven volume is: " + volume.ToString() + "\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
}
}
// Declare handlers for event callbacks
auto spHandler1 = Microsoft::WRL::Callback<ABI::Windows::Foundation::ITypedEventHandler<
ABI::Microsoft::SDKSamples::Kitchen::Oven*,
ABI::Microsoft::SDKSamples::Kitchen::Bread*>>(
[this](ABI::Microsoft::SDKSamples::Kitchen::IOven *pOven, ABI::Microsoft::SDKSamples::Kitchen::IBread *pBread)->HRESULT
{
HRESULT hr = S_OK;
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IOven> spOven(pOven);
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IBread> spBread(pBread);
Microsoft::WRL::ComPtr<ABI::Microsoft::SDKSamples::Kitchen::IAppliance> spAppliance;
try
{
// To append to the output text a C++\CX call is made. Catch any Windows Rutnime exceptions and turn them into HRESULTS.
OvenClientWRLOutput->Text += "Event Handler 1: Invoked\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
if (SUCCEEDED(hr))
{
hr = spOven.As(&spAppliance);
}
if (SUCCEEDED(hr))
{
double volume;
hr = spAppliance->get_Volume(&volume);
if (SUCCEEDED(hr))
{
try
{
// To append to the output text a C++\CX call is made. Catch any Windows Rutnime exceptions and turn them into HRESULTS.
OvenClientWRLOutput->Text += "Event Handler 1: Oven volume is: " + volume.ToString() + "\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
}
}
HSTRING hstrBreadFlavor;
hr = spBread->get_Flavor(&hstrBreadFlavor);
if (SUCCEEDED(hr))
{
try
{
// To append to the output text a C++\CX call is made. Catch any Windows Rutnime exceptions and turn them into HRESULTS.
OvenClientWRLOutput->Text += "Event Handler 1: Bread flavor is: " + ref new Platform::String(hstrBreadFlavor) + "\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
}
return hr;
});
auto spHandler2 = Microsoft::WRL::Callback<ABI::Windows::Foundation::ITypedEventHandler<
ABI::Microsoft::SDKSamples::Kitchen::Oven*,
ABI::Microsoft::SDKSamples::Kitchen::Bread*>>(
[this](ABI::Microsoft::SDKSamples::Kitchen::IOven *pCurOven, ABI::Microsoft::SDKSamples::Kitchen::IBread *pCurBread)->HRESULT
{
HRESULT hr = S_OK;
try
{
// To append to the output text a C++\CX call is made. Catch any Windows Rutnime exceptions and turn them into HRESULTS.
OvenClientWRLOutput->Text += "Event Handler 2: Invoked\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
return hr;
});
auto spHandler3 = Microsoft::WRL::Callback<ABI::Windows::Foundation::ITypedEventHandler<
ABI::Microsoft::SDKSamples::Kitchen::Oven*,
ABI::Microsoft::SDKSamples::Kitchen::Bread*>>(
[this](ABI::Microsoft::SDKSamples::Kitchen::IOven *pCurOven, ABI::Microsoft::SDKSamples::Kitchen::IBread *pCurBread)->HRESULT
{
// Event handler 3 was removed and will not be invoked
HRESULT hr = S_OK;
try
{
// To append to the output text a C++\CX call is made. Catch any Windows Rutnime exceptions and turn them into HRESULTS.
OvenClientWRLOutput->Text += "Event Handler 3: Invoked\n";
}
catch (Platform::COMException^ e)
{
hr = e->HResult;
}
return hr;
});
// Registering event listeners
::EventRegistrationToken regBread1;
::EventRegistrationToken regBread2;
::EventRegistrationToken regBread3;
if (SUCCEEDED(hr))
{
hr = spMyOven->add_BreadBaked(spHandler1.Get(), ®Bread1);
}
if (SUCCEEDED(hr))
{
hr = spMyOven->add_BreadBaked(spHandler2.Get(), ®Bread2);
}
if (SUCCEEDED(hr))
{
hr = spMyOven->add_BreadBaked(spHandler3.Get(), ®Bread3);
}
// Unregister from an event using the registration token
if (SUCCEEDED(hr))
{
hr = spMyOven->remove_BreadBaked(regBread3);
}
// Bake a loaf of bread. This will trigger the BreadBaked event.
if (SUCCEEDED(hr))
{
hr = spMyOven->BakeBread(Microsoft::WRL::Wrappers::HStringReference(L"Sourdough").Get());
}
// Trigger the event again with a different preheat time
if (SUCCEEDED(hr))
{
hr = spMyOven->ConfigurePreheatTemperature(ABI::Microsoft::SDKSamples::Kitchen::OvenTemperature_High);
}
if (SUCCEEDED(hr))
{
hr = spMyOven->BakeBread(Microsoft::WRL::Wrappers::HStringReference(L"Wheat").Get());
}
}
}
|
// Copyright 2019, The maxGUI Contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MAXGUI_FORM_HPP
#define MAXGUI_FORM_HPP
#include <max/Compiling/Bitmask.hpp>
#include <maxGUI/Control.hpp>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
namespace maxGUI
{
enum class FormStyles {
None = 0,
DialogBox = 1,
FixedSize = 2,
};
} // namespace maxGUI
MAX_BITMASKABLE_ENUM_CLASS(maxGUI::FormStyles);
namespace maxGUI
{
class Form {
public:
explicit Form(HWND window_handle) noexcept;
virtual ~Form() noexcept = default;
virtual void OnCreated() noexcept;
virtual void OnResized(int new_height, int new_width) noexcept;
virtual void OnClosed() noexcept;
virtual LRESULT OnWindowMessage(UINT message, WPARAM wparam, LPARAM lparam) noexcept;
// TODO: Can this be templated so the factories don't need to be templated?
Control* AddControl(const ControlFactory* control_factory) noexcept;
HWND window_handle_;
std::vector<std::unique_ptr<Control>> controls_;
};
class FormContainer {
public:
explicit FormContainer(HINSTANCE instance_handle) noexcept;
template <typename FormFactoryType>
bool CreateForm(FormFactoryType& form_factory, int height, int width, std::string title) noexcept {
return CreateForm(form_factory, std::move(height), std::move(width), std::move(title), FormStyles::None);
}
template <typename FormFactoryType>
bool CreateForm(FormFactoryType& form_factory, int height, int width, std::string title, FormStyles styles) noexcept {
form_factory.form_container_ = this;
return form_factory.CreateForm(instance_handle_, std::move(height), std::move(width), std::move(title), std::move(styles));
}
std::vector<std::unique_ptr<Form>> forms_;
HINSTANCE instance_handle_;
};
class FormFactoryImplementationDetails {
public:
bool CreateForm(HINSTANCE instance_handle, int height, int width, std::string title, FormStyles styles) noexcept;
virtual std::unique_ptr<Form> AllocateForm(HWND window_handle) noexcept = 0;
// This is set by FormContainer::CreateForm() and needs to remain set until WM_CREATE is received
FormContainer* form_container_ = nullptr;
};
template <typename FormType>
class FormFactory : public FormFactoryImplementationDetails {
public:
virtual ~FormFactory() noexcept = default;
std::unique_ptr<Form> AllocateForm(HWND window_handle) noexcept override {
// TODO: Use allocator
return std::make_unique<FormType>(window_handle);
}
// TODO: Add allocator
};
} // namespace maxGUI
#endif // #ifndef MAXGUI_FORM_HPP
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.