blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2 values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 905 values | visit_date timestamp[us]date 2015-08-09 11:21:18 2023-09-06 10:45:07 | revision_date timestamp[us]date 1997-09-14 05:04:47 2023-09-17 19:19:19 | committer_date timestamp[us]date 1997-09-14 05:04:47 2023-09-06 06:22:19 | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us]date 2012-06-07 00:51:45 2023-09-14 21:58:39 ⌀ | gha_created_at timestamp[us]date 2008-03-27 23:40:48 2023-08-21 23:17:38 ⌀ | gha_language stringclasses 141 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 10.4M | extension stringclasses 115 values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00fa483854d2e0bc465a6d35cfdf7f79537b4897 | c3896990a874b05ca87d191e8184d168baf4a0f9 | /GRObservations/GRObservations/GRLocation.h | 0368cdb14880590c877c9f0d3b98a4199015a5e6 | [
"MIT"
] | permissive | maxitg/GammaRays | 5e3acaa3149612f21bdd61d6cd674e4b26a73a58 | ca391ee1dd7d44c7cfb425555286c9642f94a3b3 | refs/heads/master | 2021-01-13T02:11:27.185238 | 2019-02-05T17:17:38 | 2019-02-05T17:17:38 | 13,683,020 | 3 | 0 | MIT | 2019-02-05T17:17:39 | 2013-10-18T16:20:39 | Mathematica | UTF-8 | C++ | false | false | 905 | h | //
// GRCelestialSpherePoint.h
// GRObservations
//
// Created by Maxim Piskunov on 24.03.2013.
// Copyright (c) 2013 Maxim Piskunov. All rights reserved.
//
#ifndef __Gamma_Rays__GRCelestialSpherePoint__
#define __Gamma_Rays__GRCelestialSpherePoint__
#include <iostream>
#include <string>
#include <vector>
using namespace std;
enum GRCoordinateSystem {
GRCoordinateSystemJ2000 = 0,
GRCoordinateSystemGalactic = 1
};
class GRLocation {
public:
float ra;
float dec;
float error;
public:
GRLocation(GRCoordinateSystem system, float ra, float dec, float error);
GRLocation(GRCoordinateSystem system, float ra, float dec);
GRLocation();
double operator==(GRLocation location);
float separation(GRLocation location);
bool isSeparated(GRLocation location);
string description();
};
#endif /* defined(__Gamma_Rays__GRCelestialSpherePoint__) */
| [
"maxitg@gmail.com"
] | maxitg@gmail.com |
47e7936f2c30609741a90fe2cc750580c890ed51 | 32056891abf90fbc6c158ade4a714db8ed164cac | /Algorithm/Sources/Extra/Solutions/Programmers/[1차] 뉴스 클러스터링.cpp | fd8a2ae2f831b6335271eb95651e4551511a923a | [] | no_license | sfy1020/AlgorithmTutorial | 543454579b63ea5afc4c134cef78a60c4b8f154a | 3b6190b682ecf80086f4cfeb07b167f23c39c8b4 | refs/heads/master | 2023-05-07T07:44:30.874307 | 2021-06-02T18:45:43 | 2021-06-02T18:45:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,120 | cpp |
// [1차] 뉴스 클러스터링
// https://programmers.co.kr/learn/courses/30/lessons/17677
// 시행착오
// 1. a.size() == 0 && b.size() == 0 인 경우 예외처리 시에도 65536를 곱해줘야 함.
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
//#include "Utility.h"
//#include "Print.h"
using namespace std;
struct Utility
{
static void ToLowercase(std::string& str)
{
for (char& c : str)
{
if (IsUppercase(c))
{
c = GetLowercase(c);
}
}
}
static void ToUppercase(std::string& str)
{
for (char& c : str)
{
if (IsLowercase(c))
{
GetUppercase(c);
}
}
}
static bool IsLowercase(char c)
{
return 'a' <= c && c <= 'z';
}
static bool IsUppercase(char c)
{
return 'A' <= c && c <= 'Z';
}
static char GetLowercase(char c)
{
return c - 'A' + 'a';
}
static char GetUppercase(char c)
{
return c - 'a' + 'A';
}
};
vector<string> MakeSet(string str)
{
vector<string> vec;
for (int i = 0; i < str.size() - 1; ++i)
{
if (Utility::IsLowercase(str[i]) &&
Utility::IsLowercase(str[i + 1]))
{
string s = "";
s += str[i];
s += str[i + 1];
vec.push_back(s);
}
}
return vec;
}
int solution(string str1, string str2)
{
Utility::ToLowercase(str1);
Utility::ToLowercase(str2);
vector<string> v1 = MakeSet(str1);
vector<string> v2 = MakeSet(str2);
sort(begin(v1), end(v1));
sort(begin(v2), end(v2));
vector<string> a;
set_intersection(begin(v1), end(v1), begin(v2), end(v2), back_inserter(a));
vector<string> b;
set_union(begin(v1), end(v1), begin(v2), end(v2), back_inserter(b));
float val = 0.0f;
if (a.size() == 0 && b.size() == 0)
{
val = 1;
}
else
{
val = (float)a.size() / (float)b.size();
}
val *= 65536;
return val;
} | [
"insooneelife@naver.com"
] | insooneelife@naver.com |
ad7673608a51c8e68f342514dda2a999623e0b17 | 18d5ba86957e3e3bdcf5ee144d6cdce307409949 | /android_webview/browser/child_frame.cc | f51b7455f0836643cd814240da1db905b53489b1 | [
"BSD-3-Clause"
] | permissive | MichaelMiao/chromium | cf5021e77c7df85905eb9e6a5c5bfa9329c5f4ff | 00c406052433085e22fa4f73d990c8e4ff3320b3 | refs/heads/master | 2023-01-16T06:47:36.223098 | 2016-03-28T20:00:29 | 2016-03-28T20:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,099 | cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/browser/child_frame.h"
#include <utility>
#include "cc/output/compositor_frame.h"
namespace android_webview {
ChildFrame::ChildFrame(uint32_t output_surface_id,
scoped_ptr<cc::CompositorFrame> frame,
uint32_t compositor_id,
bool viewport_rect_for_tile_priority_empty,
const gfx::Transform& transform_for_tile_priority,
bool offscreen_pre_raster,
bool is_layer)
: output_surface_id(output_surface_id),
frame(std::move(frame)),
compositor_id(compositor_id),
viewport_rect_for_tile_priority_empty(
viewport_rect_for_tile_priority_empty),
transform_for_tile_priority(transform_for_tile_priority),
offscreen_pre_raster(offscreen_pre_raster),
is_layer(is_layer) {}
ChildFrame::~ChildFrame() {
}
} // namespace webview
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6ab6d63a045332c8ad001e80491d1753de2520f5 | a4ccd04572bbf659ac3c0a57a983fdedc7ef6933 | /src/qt/bitcoinunits.cpp | f355fe3e825cab2763672ff4d731ea534978f244 | [
"MIT"
] | permissive | mammix2/MaiaCoin | 43ef05c0e39fc7013e3570028bec5bf959190460 | 09dd6a855a17967a2babf5de9c1842f86bc67020 | refs/heads/master | 2021-06-29T15:11:24.517927 | 2016-03-21T22:44:00 | 2016-03-21T22:44:00 | 21,301,700 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,287 | cpp | #include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBTC);
unitlist.append(uBTC);
return unitlist;
}
bool BitcoinUnits::valid(int unit)
{
switch(unit)
{
case BTC:
case mBTC:
case uBTC:
return true;
default:
return false;
}
}
QString BitcoinUnits::name(int unit)
{
switch(unit)
{
case BTC: return QString("MAIA");
case mBTC: return QString("mMAIA");
case uBTC: return QString::fromUtf8("μMAIA");
default: return QString("???");
}
}
QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case BTC: return QString("MaiaCoins");
case mBTC: return QString("Milli-MaiaCoins (1 / 1,000)");
case uBTC: return QString("Micro-MaiaCoins (1 / 1,000,000)");
default: return QString("???");
}
}
qint64 BitcoinUnits::factor(int unit)
{
switch(unit)
{
case BTC: return 100000000;
case mBTC: return 100000;
case uBTC: return 100;
default: return 100000000;
}
}
int BitcoinUnits::amountDigits(int unit)
{
switch(unit)
{
case BTC: return 8; // 21,000,000 (# digits, without commas)
case mBTC: return 11; // 21,000,000,000
case uBTC: return 14; // 21,000,000,000,000
default: return 0;
}
}
int BitcoinUnits::decimals(int unit)
{
switch(unit)
{
case BTC: return 8;
case mBTC: return 5;
case uBTC: return 2;
default: return 0;
}
}
QString BitcoinUnits::format(int unit, qint64 n, bool fPlus)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
if(!valid(unit))
return QString(); // Refuse to format invalid unit
qint64 coin = factor(unit);
int num_decimals = decimals(unit);
qint64 n_abs = (n > 0 ? n : -n);
qint64 quotient = n_abs / coin;
qint64 remainder = n_abs % coin;
QString quotient_str = QString::number(quotient);
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
// Right-trim excess zeros after the decimal point
int nTrim = 0;
for (int i = remainder_str.size()-1; i>=2 && (remainder_str.at(i) == '0'); --i)
++nTrim;
remainder_str.chop(nTrim);
if (n < 0)
quotient_str.insert(0, '-');
else if (fPlus && n > 0)
quotient_str.insert(0, '+');
return quotient_str + QString(".") + remainder_str;
}
QString BitcoinUnits::formatWithUnit(int unit, qint64 amount, bool plussign)
{
return format(unit, amount, plussign) + QString(" ") + name(unit);
}
bool BitcoinUnits::parse(int unit, const QString &value, qint64 *val_out)
{
if(!valid(unit) || value.isEmpty())
return false; // Refuse to parse invalid unit or empty string
int num_decimals = decimals(unit);
QStringList parts = value.split(".");
if(parts.size() > 2)
{
return false; // More than one dot
}
QString whole = parts[0];
QString decimals;
if(parts.size() > 1)
{
decimals = parts[1];
}
if(decimals.size() > num_decimals)
{
return false; // Exceeds max precision
}
bool ok = false;
QString str = whole + decimals.leftJustified(num_decimals, '0');
if(str.size() > 18)
{
return false; // Longer numbers will exceed 63 bits
}
qint64 retvalue = str.toLongLong(&ok);
if(val_out)
{
*val_out = retvalue;
}
return ok;
}
int BitcoinUnits::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return unitlist.size();
}
QVariant BitcoinUnits::data(const QModelIndex &index, int role) const
{
int row = index.row();
if(row >= 0 && row < unitlist.size())
{
Unit unit = unitlist.at(row);
switch(role)
{
case Qt::EditRole:
case Qt::DisplayRole:
return QVariant(name(unit));
case Qt::ToolTipRole:
return QVariant(description(unit));
case UnitRole:
return QVariant(static_cast<int>(unit));
}
}
return QVariant();
}
| [
"unknown"
] | unknown |
680488cff216ae0cb090d1381f3eb93edcc8e918 | 8cf763c4c29db100d15f2560953c6e6cbe7a5fd4 | /src/qt/qtbase/src/gui/accessible/qaccessiblebridge.cpp | 21cb0ef35ca96e4d3992169f96aebe5d50bc9c17 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"GFDL-1.3-only",
"Qt-LGPL-exception-1.1",
"LicenseRef-scancode-digia-qt-commercial",
"LGPL-3.0-only",
"GPL-3.0-only",
"LicenseRef-scancode-digia-qt-preview",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | chihlee/phantomjs | 69d6bbbf1c9199a78e82ae44af072aca19c139c3 | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | refs/heads/master | 2021-01-19T13:49:41.265514 | 2018-06-15T22:48:11 | 2018-06-15T22:48:11 | 82,420,380 | 0 | 0 | BSD-3-Clause | 2018-06-15T22:48:12 | 2017-02-18T22:34:48 | C++ | UTF-8 | C++ | false | false | 4,286 | cpp | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qaccessiblebridge.h"
#ifndef QT_NO_ACCESSIBILITY
QT_BEGIN_NAMESPACE
/*!
\class QAccessibleBridge
\brief The QAccessibleBridge class is the base class for
accessibility back-ends.
\internal
\ingroup accessibility
\inmodule QtWidgets
Qt supports Microsoft Active Accessibility (MSAA), Mac OS X
Accessibility, and the Unix/X11 AT-SPI standard. By subclassing
QAccessibleBridge, you can support other backends than the
predefined ones.
Currently, custom bridges are only supported on Unix. We might
add support for them on other platforms as well if there is
enough demand.
\sa QAccessible, QAccessibleBridgePlugin
*/
/*!
\fn QAccessibleBridge::~QAccessibleBridge()
Destroys the accessibility bridge object.
*/
/*!
\fn void QAccessibleBridge::setRootObject(QAccessibleInterface *object)
This function is called by Qt at application startup to set the
root accessible object of the application to \a object. All other
accessible objects in the application can be reached by the
client using object navigation.
*/
/*!
\fn void QAccessibleBridge::notifyAccessibilityUpdate(QAccessibleEvent *event)
This function is called by Qt to notify the bridge about a change
in the accessibility information. The \a event specifies the interface,
object, reason and child element that has changed.
\sa QAccessible::updateAccessibility()
*/
/*!
\class QAccessibleBridgePlugin
\brief The QAccessibleBridgePlugin class provides an abstract
base for accessibility bridge plugins.
\internal
\ingroup plugins
\ingroup accessibility
\inmodule QtWidgets
Writing an accessibility bridge plugin is achieved by subclassing
this base class, reimplementing the pure virtual function create(),
and exporting the class with the Q_PLUGIN_METADATA() macro.
\sa QAccessibleBridge, QAccessiblePlugin, {How to Create Qt Plugins}
*/
/*!
Constructs an accessibility bridge plugin with the given \a
parent. This is invoked automatically by the plugin loader.
*/
QAccessibleBridgePlugin::QAccessibleBridgePlugin(QObject *parent)
: QObject(parent)
{
}
/*!
Destroys the accessibility bridge plugin.
You never have to call this explicitly. Qt destroys a plugin
automatically when it is no longer used.
*/
QAccessibleBridgePlugin::~QAccessibleBridgePlugin()
{
}
/*!
\fn QAccessibleBridge *QAccessibleBridgePlugin::create(const QString &key)
Creates and returns the QAccessibleBridge object corresponding to
the given \a key. Keys are case sensitive.
\sa keys()
*/
QT_END_NAMESPACE
#endif // QT_NO_ACCESSIBILITY
| [
"ariya.hidayat@gmail.com"
] | ariya.hidayat@gmail.com |
c91e06eddce708a08c128fd85840125ee4fba603 | 84eae8f15c2fe136b4e6599e3a4d23259cd0248b | /Classes/ImGUI/imgui_impl_glfw_win32.cpp | 3af101bb4e913da02e5189580ccd76438ab3c9c5 | [
"MIT"
] | permissive | maxkidd/HonoursProject | feb2d87eb0b61b09d8e655a78cc00ac92ac08e75 | cf478f100f56f41ffa9b30501ebe4afbf175f79a | refs/heads/master | 2021-06-18T01:38:59.686474 | 2017-04-24T12:44:46 | 2017-04-24T12:44:46 | 75,409,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,179 | cpp | // ImGui GLFW binding with OpenGL
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// https://github.com/ocornut/imgui
#include <ImGUI\imgui.h>
#include "imgui_impl_glfw.h"
#include "cocos2d.h" // opengl method
USING_NS_CC;
// GLFW
#include <glfw3.h>
#ifdef _WIN32
#undef APIENTRY
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WGL
#include <glfw3native.h>
#endif
// Data
static GLFWwindow* g_Window = NULL;
static double g_Time = 0.0f;
static bool g_MousePressed[3] = { false, false, false };
static float g_MouseWheel = 0.0f;
static GLuint g_FontTexture = 0;
static int g_ShaderHandle = 0, g_VertHandle = 0, g_FragHandle = 0;
static int g_AttribLocationTex = 0, g_AttribLocationProjMtx = 0;
static int g_AttribLocationPosition = 0, g_AttribLocationUV = 0, g_AttribLocationColor = 0;
static unsigned int g_VboHandle = 0, g_VaoHandle = 0, g_ElementsHandle = 0;
// This is the main rendering function that you have to implement and provide to ImGui (via setting up 'RenderDrawListsFn' in the ImGuiIO structure)
// If text or lines are blurry when integrating ImGui in your engine:
// - in your Render function, try translating your projection matrix by (0.5f,0.5f) or (0.375f,0.375f)
void ImGui_ImplGlfw_RenderDrawLists(ImDrawData* draw_data)
{
// Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates)
ImGuiIO& io = ImGui::GetIO();
int fb_width = (int)(io.DisplaySize.x * io.DisplayFramebufferScale.x);
int fb_height = (int)(io.DisplaySize.y * io.DisplayFramebufferScale.y);
if (fb_width == 0 || fb_height == 0)
return;
draw_data->ScaleClipRects(io.DisplayFramebufferScale);
// Backup GL state
GLint last_program; glGetIntegerv(GL_CURRENT_PROGRAM, &last_program);
GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
GLint last_array_buffer; glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer);
GLint last_element_array_buffer; glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &last_element_array_buffer);
GLint last_vertex_array; glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
GLint last_blend_src; glGetIntegerv(GL_BLEND_SRC, &last_blend_src);
GLint last_blend_dst; glGetIntegerv(GL_BLEND_DST, &last_blend_dst);
GLint last_blend_equation_rgb; glGetIntegerv(GL_BLEND_EQUATION_RGB, &last_blend_equation_rgb);
GLint last_blend_equation_alpha; glGetIntegerv(GL_BLEND_EQUATION_ALPHA, &last_blend_equation_alpha);
GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport);
GLboolean last_enable_blend = glIsEnabled(GL_BLEND);
GLboolean last_enable_cull_face = glIsEnabled(GL_CULL_FACE);
GLboolean last_enable_depth_test = glIsEnabled(GL_DEPTH_TEST);
GLboolean last_enable_scissor_test = glIsEnabled(GL_SCISSOR_TEST);
// Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
glEnable(GL_SCISSOR_TEST);
glActiveTexture(GL_TEXTURE0);
// Setup viewport, orthographic projection matrix
glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height);
const float ortho_projection[4][4] =
{
{ 2.0f / io.DisplaySize.x, 0.0f, 0.0f, 0.0f },
{ 0.0f, 2.0f / -io.DisplaySize.y, 0.0f, 0.0f },
{ 0.0f, 0.0f, -1.0f, 0.0f },
{ -1.0f, 1.0f, 0.0f, 1.0f },
};
glUseProgram(g_ShaderHandle);
glUniform1i(g_AttribLocationTex, 0);
glUniformMatrix4fv(g_AttribLocationProjMtx, 1, GL_FALSE, &ortho_projection[0][0]);
glBindVertexArray(g_VaoHandle);
for (int n = 0; n < draw_data->CmdListsCount; n++)
{
const ImDrawList* cmd_list = draw_data->CmdLists[n];
const ImDrawIdx* idx_buffer_offset = 0;
glBindBuffer(GL_ARRAY_BUFFER, g_VboHandle);
glBufferData(GL_ARRAY_BUFFER, (GLsizeiptr)cmd_list->VtxBuffer.size() * sizeof(ImDrawVert), (GLvoid*)&cmd_list->VtxBuffer.front(), GL_STREAM_DRAW);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, g_ElementsHandle);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)cmd_list->IdxBuffer.size() * sizeof(ImDrawIdx), (GLvoid*)&cmd_list->IdxBuffer.front(), GL_STREAM_DRAW);
for (const ImDrawCmd* pcmd = cmd_list->CmdBuffer.begin(); pcmd != cmd_list->CmdBuffer.end(); pcmd++)
{
if (pcmd->UserCallback)
{
pcmd->UserCallback(cmd_list, pcmd);
}
else
{
glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId);
glScissor((int)pcmd->ClipRect.x, (int)(fb_height - pcmd->ClipRect.w), (int)(pcmd->ClipRect.z - pcmd->ClipRect.x), (int)(pcmd->ClipRect.w - pcmd->ClipRect.y));
glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset);
}
idx_buffer_offset += pcmd->ElemCount;
}
}
// Restore modified GL state
glUseProgram(last_program);
glBindTexture(GL_TEXTURE_2D, last_texture);
glBindVertexArray(last_vertex_array);
glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, last_element_array_buffer);
glBlendEquationSeparate(last_blend_equation_rgb, last_blend_equation_alpha);
glBlendFunc(last_blend_src, last_blend_dst);
if (last_enable_blend) glEnable(GL_BLEND); else glDisable(GL_BLEND);
if (last_enable_cull_face) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE);
if (last_enable_depth_test) glEnable(GL_DEPTH_TEST); else glDisable(GL_DEPTH_TEST);
if (last_enable_scissor_test) glEnable(GL_SCISSOR_TEST); else glDisable(GL_SCISSOR_TEST);
glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]);
}
static const char* ImGui_ImplGlfw_GetClipboardText()
{
return glfwGetClipboardString(g_Window);
}
static void ImGui_ImplGlfw_SetClipboardText(const char* text)
{
glfwSetClipboardString(g_Window, text);
}
void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow*, int button, int action, int /*mods*/)
{
if (action == GLFW_PRESS && button >= 0 && button < 3)
g_MousePressed[button] = true;
}
void ImGui_ImplGlfw_ScrollCallback(GLFWwindow*, double /*xoffset*/, double yoffset)
{
g_MouseWheel += (float)yoffset; // Use fractional mouse wheel, 1.0 unit 5 lines.
}
void ImGui_ImplGlFw_KeyCallback(GLFWwindow*, int key, int, int action, int mods)
{
ImGuiIO& io = ImGui::GetIO();
if (action == GLFW_PRESS)
io.KeysDown[key] = true;
if (action == GLFW_RELEASE)
io.KeysDown[key] = false;
(void)mods; // Modifiers are not reliable across systems
io.KeyCtrl = io.KeysDown[GLFW_KEY_LEFT_CONTROL] || io.KeysDown[GLFW_KEY_RIGHT_CONTROL];
io.KeyShift = io.KeysDown[GLFW_KEY_LEFT_SHIFT] || io.KeysDown[GLFW_KEY_RIGHT_SHIFT];
io.KeyAlt = io.KeysDown[GLFW_KEY_LEFT_ALT] || io.KeysDown[GLFW_KEY_RIGHT_ALT];
}
void ImGui_ImplGlfw_CharCallback(GLFWwindow*, unsigned int c)
{
ImGuiIO& io = ImGui::GetIO();
if (c > 0 && c < 0x10000)
io.AddInputCharacter((unsigned short)c);
}
bool ImGui_ImplIOS_CreateFontsTexture()
{
// Build texture atlas
ImGuiIO& io = ImGui::GetIO();
unsigned char* pixels;
int width, height;
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bits for OpenGL3 demo because it is more likely to be compatible with user's existing shader.
// Upload texture to graphics system
GLint last_texture;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGenTextures(1, &g_FontTexture);
glBindTexture(GL_TEXTURE_2D, g_FontTexture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
// Store our identifier
io.Fonts->TexID = (void *)(intptr_t)g_FontTexture;
// Restore state
glBindTexture(GL_TEXTURE_2D, last_texture);
return true;
}
bool ImGui_ImplGlfw_CreateDeviceObjects()
{
// Backup GL state
GLint last_texture, last_array_buffer, last_vertex_array;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer);
glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
const GLchar *vertex_shader =
"#version 330\n"
"uniform mat4 ProjMtx;\n"
"in vec2 Position;\n"
"in vec2 UV;\n"
"in vec4 Color;\n"
"out vec2 Frag_UV;\n"
"out vec4 Frag_Color;\n"
"void main()\n"
"{\n"
" Frag_UV = UV;\n"
" Frag_Color = Color;\n"
" gl_Position = ProjMtx * vec4(Position.xy,0,1);\n"
"}\n";
const GLchar* fragment_shader =
"#version 330\n"
"uniform sampler2D Texture;\n"
"in vec2 Frag_UV;\n"
"in vec4 Frag_Color;\n"
"out vec4 Out_Color;\n"
"void main()\n"
"{\n"
" Out_Color = Frag_Color * texture( Texture, Frag_UV.st);\n"
"}\n";
g_ShaderHandle = glCreateProgram();
g_VertHandle = glCreateShader(GL_VERTEX_SHADER);
g_FragHandle = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(g_VertHandle, 1, &vertex_shader, 0);
glShaderSource(g_FragHandle, 1, &fragment_shader, 0);
glCompileShader(g_VertHandle);
glCompileShader(g_FragHandle);
glAttachShader(g_ShaderHandle, g_VertHandle);
glAttachShader(g_ShaderHandle, g_FragHandle);
glLinkProgram(g_ShaderHandle);
g_AttribLocationTex = glGetUniformLocation(g_ShaderHandle, "Texture");
g_AttribLocationProjMtx = glGetUniformLocation(g_ShaderHandle, "ProjMtx");
g_AttribLocationPosition = glGetAttribLocation(g_ShaderHandle, "Position");
g_AttribLocationUV = glGetAttribLocation(g_ShaderHandle, "UV");
g_AttribLocationColor = glGetAttribLocation(g_ShaderHandle, "Color");
glGenBuffers(1, &g_VboHandle);
glGenBuffers(1, &g_ElementsHandle);
glGenVertexArrays(1, &g_VaoHandle);
glBindVertexArray(g_VaoHandle);
glBindBuffer(GL_ARRAY_BUFFER, g_VboHandle);
glEnableVertexAttribArray(g_AttribLocationPosition);
glEnableVertexAttribArray(g_AttribLocationUV);
glEnableVertexAttribArray(g_AttribLocationColor);
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
glVertexAttribPointer(g_AttribLocationPosition, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)OFFSETOF(ImDrawVert, pos));
glVertexAttribPointer(g_AttribLocationUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)OFFSETOF(ImDrawVert, uv));
glVertexAttribPointer(g_AttribLocationColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)OFFSETOF(ImDrawVert, col));
#undef OFFSETOF
ImGui_ImplIOS_CreateFontsTexture();
// Restore modified GL state
glBindTexture(GL_TEXTURE_2D, last_texture);
glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer);
glBindVertexArray(last_vertex_array);
return true;
}
void ImGui_ImplGlfw_InvalidateDeviceObjects()
{
if (g_VaoHandle) glDeleteVertexArrays(1, &g_VaoHandle);
if (g_VboHandle) glDeleteBuffers(1, &g_VboHandle);
if (g_ElementsHandle) glDeleteBuffers(1, &g_ElementsHandle);
g_VaoHandle = g_VboHandle = g_ElementsHandle = 0;
glDetachShader(g_ShaderHandle, g_VertHandle);
glDeleteShader(g_VertHandle);
g_VertHandle = 0;
glDetachShader(g_ShaderHandle, g_FragHandle);
glDeleteShader(g_FragHandle);
g_FragHandle = 0;
glDeleteProgram(g_ShaderHandle);
g_ShaderHandle = 0;
if (g_FontTexture)
{
glDeleteTextures(1, &g_FontTexture);
ImGui::GetIO().Fonts->TexID = 0;
g_FontTexture = 0;
}
}
bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks)
{
g_Window = window;
ImGuiIO& io = ImGui::GetIO();
io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB; // Keyboard mapping. ImGui will use those indices to peek into the io.KeyDown[] array.
io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT;
io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT;
io.KeyMap[ImGuiKey_UpArrow] = GLFW_KEY_UP;
io.KeyMap[ImGuiKey_DownArrow] = GLFW_KEY_DOWN;
io.KeyMap[ImGuiKey_PageUp] = GLFW_KEY_PAGE_UP;
io.KeyMap[ImGuiKey_PageDown] = GLFW_KEY_PAGE_DOWN;
io.KeyMap[ImGuiKey_Home] = GLFW_KEY_HOME;
io.KeyMap[ImGuiKey_End] = GLFW_KEY_END;
io.KeyMap[ImGuiKey_Delete] = GLFW_KEY_DELETE;
io.KeyMap[ImGuiKey_Backspace] = GLFW_KEY_BACKSPACE;
io.KeyMap[ImGuiKey_Enter] = GLFW_KEY_ENTER;
io.KeyMap[ImGuiKey_Escape] = GLFW_KEY_ESCAPE;
io.KeyMap[ImGuiKey_A] = GLFW_KEY_A;
io.KeyMap[ImGuiKey_C] = GLFW_KEY_C;
io.KeyMap[ImGuiKey_V] = GLFW_KEY_V;
io.KeyMap[ImGuiKey_X] = GLFW_KEY_X;
io.KeyMap[ImGuiKey_Y] = GLFW_KEY_Y;
io.KeyMap[ImGuiKey_Z] = GLFW_KEY_Z;
io.RenderDrawListsFn = ImGui_ImplGlfw_RenderDrawLists; // Alternatively you can set this to NULL and call ImGui::GetDrawData() after ImGui::Render() to get the same ImDrawData pointer.
io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText;
io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText;
#ifdef _WIN32
io.ImeWindowHandle = glfwGetWin32Window(g_Window);
#endif
if (install_callbacks)
{
glfwSetMouseButtonCallback(window, ImGui_ImplGlfw_MouseButtonCallback);
glfwSetScrollCallback(window, ImGui_ImplGlfw_ScrollCallback);
glfwSetKeyCallback(window, ImGui_ImplGlFw_KeyCallback);
glfwSetCharCallback(window, ImGui_ImplGlfw_CharCallback);
}
return true;
}
void ImGui_ImplGlfw_Shutdown()
{
ImGui_ImplGlfw_InvalidateDeviceObjects();
ImGui::Shutdown();
}
void ImGui_ImplGlfw_NewFrame()
{
if (!g_FontTexture)
ImGui_ImplGlfw_CreateDeviceObjects();
ImGuiIO& io = ImGui::GetIO();
// Setup display size (every frame to accommodate for window resizing)
int w, h;
int display_w, display_h;
glfwGetWindowSize(g_Window, &w, &h);
glfwGetFramebufferSize(g_Window, &display_w, &display_h);
io.DisplaySize = ImVec2((float)w, (float)h);
io.DisplayFramebufferScale = ImVec2(w > 0 ? ((float)display_w / w) : 0, h > 0 ? ((float)display_h / h) : 0);
// Setup time step
double current_time = glfwGetTime();
io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f);
g_Time = current_time;
// Setup inputs
// (we already got mouse wheel, keyboard keys & characters from glfw callbacks polled in glfwPollEvents())
if (glfwGetWindowAttrib(g_Window, GLFW_FOCUSED))
{
double mouse_x, mouse_y;
glfwGetCursorPos(g_Window, &mouse_x, &mouse_y);
io.MousePos = ImVec2((float)mouse_x, (float)mouse_y); // Mouse position in screen coordinates (set to -1,-1 if no mouse / on another screen, etc.)
}
else
{
io.MousePos = ImVec2(-1,-1);
}
for (int i = 0; i < 3; i++)
{
io.MouseDown[i] = g_MousePressed[i] || glfwGetMouseButton(g_Window, i) != 0; // If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame.
g_MousePressed[i] = false;
}
io.MouseWheel = g_MouseWheel;
g_MouseWheel = 0.0f;
// Hide OS mouse cursor if ImGui is drawing it
glfwSetInputMode(g_Window, GLFW_CURSOR, io.MouseDrawCursor ? GLFW_CURSOR_HIDDEN : GLFW_CURSOR_NORMAL);
// Start the frame
ImGui::NewFrame();
}
| [
"max.kidd@hotmail.co.uk"
] | max.kidd@hotmail.co.uk |
1476e5c3e3ba6799d0c44645bdcbbc22f4dd34e1 | 9d56d75237e73860b3dbfdcfe84ae9f150d6551d | /src/ORBmatcher.h | 5d6c4936ed63eefdd1f452e2f2d75ffd4a76037b | [] | no_license | nonlinear1/gslam_orbslam | c8232807fef7a074421aa7d26c55bf223bd192fe | 8dcb97c49463105876dd2a79ede7f07c650ce674 | refs/heads/master | 2021-02-14T13:32:37.027288 | 2019-10-11T12:04:08 | 2019-10-11T12:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,723 | h | /**
* This file is part of ORB-SLAM.
*
* Copyright (C) 2014 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <http://webdiis.unizar.es/~raulmur/orbslam/>
*
* ORB-SLAM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ORB-SLAM 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 ORB-SLAM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ORBMATCHER_H
#define ORBMATCHER_H
#include <vector>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include "MapPoint.h"
#include "KeyFrame.h"
#include "Frame.h"
namespace ORB_SLAM {
class ORBmatcher
{
public:
ORBmatcher(float nnratio=0.6, bool checkOri=true);
// Computes the Hamming distance between two ORB descriptors
static int DescriptorDistance(const cv::Mat &a, const cv::Mat &b);
// Search matches between Frame keypoints and projected MapPoints. Returns number of matches
// Used to track the local map (Tracking)
int SearchByProjection(Frame &F, const std::vector<MapPoint*> &vpMapPoints, const float th=3);
// Project MapPoints tracked in last frame into the current frame and search matches.
// Used to track from previous frame (Tracking)
int SearchByProjection(Frame &CurrentFrame, const Frame &LastFrame, float th);
// Project MapPoints seen in KeyFrame into the Frame and search matches.
// Used in relocalisation (Tracking)
int SearchByProjection(Frame &CurrentFrame, KeyFrame* pKF, const std::set<MapPoint*> &sAlreadyFound, float th, int ORBdist);
// Project MapPoints using a Similarity Transformation and search matches.
// Used in loop detection (Loop Closing)
int SearchByProjection(KeyFrame* pKF, cv::Mat Scw, const std::vector<MapPoint*> &vpPoints, std::vector<MapPoint*> &vpMatched, int th);
// Search matches between MapPoints in a KeyFrame and ORB in a Frame.
// Brute force constrained to ORB that belong to the same vocabulary node (at a certain level)
// Used in Relocalisation and Loop Detection
int SearchByBoW(KeyFrame *pKF, Frame &F, std::vector<MapPoint*> &vpMapPointMatches);
int SearchByBoW(KeyFrame *pKF1, KeyFrame* pKF2, std::vector<MapPoint*> &vpMatches12);
// Search MapPoints tracked in Frame1 in Frame2 in a window centered at their position in Frame1
int WindowSearch(Frame &F1, Frame &F2, int windowSize, std::vector<MapPoint *> &vpMapPointMatches2, int minOctave=-1, int maxOctave=INT_MAX);
// Refined matching when we have a guess of Frame 2 pose
int SearchByProjection(Frame &F1, Frame &F2, int windowSize, std::vector<MapPoint *> &vpMapPointMatches2);
// Matching for the Map Initialization
int SearchForInitialization(Frame &F1, Frame &F2, std::vector<cv::Point2f> &vbPrevMatched, std::vector<int> &vnMatches12, int windowSize=10);
// Matching to triangulate new MapPoints. Check Epipolar Constraint
int SearchForTriangulation(KeyFrame *pKF1, KeyFrame* pKF2, cv::Mat F12,
std::vector<cv::KeyPoint> &vMatchedKeys1, std::vector<cv::KeyPoint> &vMatchedKeys2,
std::vector<pair<size_t, size_t> > &vMatchedPairs);
// Search matches between MapPoints seen in KF1 and KF2 transforming by a Sim3 [s12*R12|t12]
int SearchBySim3(KeyFrame* pKF1, KeyFrame* pKF2, std::vector<MapPoint *> &vpMatches12, const float &s12, const cv::Mat &R12, const cv::Mat &t12, float th);
// Project MapPoints into KeyFrame and search for duplicated MapPoints.
int Fuse(KeyFrame* pKF, std::vector<MapPoint *> &vpMapPoints, float th=2.5);
// Project MapPoints into KeyFrame using a given Sim3 and search for duplicated MapPoints.
int Fuse(KeyFrame* pKF, cv::Mat Scw, const std::vector<MapPoint*> &vpPoints, float th=2.5);
public:
static const int TH_LOW;
static const int TH_HIGH;
static const int HISTO_LENGTH;
protected:
bool CheckDistEpipolarLine(const cv::KeyPoint &kp1, const cv::KeyPoint &kp2, const cv::Mat &F12, const KeyFrame *pKF);
float RadiusByViewingCos(const float &viewCos);
void ComputeThreeMaxima(std::vector<int>* histo, const int L, int &ind1, int &ind2, int &ind3);
float mfNNratio;
bool mbCheckOrientation;
};
}// namespace ORB_SLAM
#endif // ORBMATCHER_H
| [
"zd5945@126.com"
] | zd5945@126.com |
f6fa8afabd9d41a5e84bae33737aaecf4181fbbd | cdf414dba10e4a75007d90952630b9d381a165e4 | /emulators/gxemul/patches/patch-src_devices_dev__dreamcast__gdrom.cc | cf7c2bc433c276992d252ecaa785eae8a1e33bbc | [] | no_license | TyrfingMjolnir/pkgsrc | f46b8214ab27ad7f825b1b0f7232c3f9c8ba1b1c | 133d044ecb88b1de6cd08426b89ed5b3a058bd56 | refs/heads/trunk | 2020-12-28T09:30:15.386908 | 2014-10-05T22:23:08 | 2014-10-05T22:23:08 | 28,958,817 | 1 | 0 | null | 2015-01-08T09:31:08 | 2015-01-08T09:31:08 | null | UTF-8 | C++ | false | false | 2,465 | cc | $NetBSD: patch-src_devices_dev__dreamcast__gdrom.cc,v 1.1 2012/07/26 22:10:28 abs Exp $
Fake up a much more complete TOC based on real CD image.
Now works with NetBSD 4, 5 & 6 which would have previously failed.
Comment out some unusual sector subtractions which handled values in the
multigigabyte range.
--- src/devices/dev_dreamcast_gdrom.cc.orig 2010-02-14 09:33:52.000000000 +0000
+++ src/devices/dev_dreamcast_gdrom.cc
@@ -109,12 +109,37 @@ static void handle_command(struct cpu *c
}
alloc_data(d);
- /* TODO: Fill TOC in a better way */
- d->data[99*4] = 1; /* First track */
- d->data[100*4] = 2; /* Last track */
+ /*
+ TOC from test booted real CD image on NetBSD/dreamcast
+ 01000096,41002e4c,ffffffff * 97,01010000,41020000,6100e641,
+ */
+ memset(d->data, 0xff, d->cnt); /* Default data to 0xff */
+
+ d->data[0*4] = 0x10; /* Track 1 */
+ d->data[0*4+1] = 0;
+ d->data[0*4+2] = 0;
+ d->data[0*4+3] = 0x96;
+
+ d->data[1*4] = 0x41; /* Track 2 */
+ d->data[1*4+1] = 0;
+ d->data[1*4+2] = 0x2e;
+ d->data[1*4+3] = 0x4c;
+
+ d->data[99*4] = 0x01; /* First track */
+ d->data[99*4+1] = 0x01;
+ d->data[99*4+2] = 0;
+ d->data[99*4+3] = 0;
+
+ d->data[100*4] = 0x41; /* Last track */
+ d->data[100*4+1] = 0x02;
+ d->data[100*4+2] = 0;
+ d->data[100*4+3] = 0;
+
+ d->data[101*4] = 0x61; /* Leadout */
+ d->data[101*4+1] = 0;
+ d->data[101*4+2] = 0xe6;
+ d->data[101*4+3] = 0x41;
- d->data[0*4] = 0x10; /* Track 1 */
- d->data[1*4] = 0x10; /* Track 2 */
break;
case 0x30:
@@ -126,6 +151,7 @@ static void handle_command(struct cpu *c
}
sector_nr = d->cmd[2] * 65536 + d->cmd[3] * 256 + d->cmd[4];
sector_count = d->cmd[8] * 65536 + d->cmd[9] * 256 + d->cmd[10];
+
if (d->cnt == 0)
d->cnt = 65536;
alloc_data(d);
@@ -136,9 +162,17 @@ static void handle_command(struct cpu *c
}
{
+
+/* Definitely not needed for NetBSD - unknown if needed for anything else? */
+#if 0
if (sector_nr >= 1376810)
sector_nr -= 1376810;
+#endif
+
sector_nr -= 150;
+
+/* Definitely not needed for NetBSD - unknown if needed for anything else? */
+#if 0
if (sector_nr > 1048576)
sector_nr -= 1048576;
/* printf("sector nr = %i\n", (int)sector_nr); */
@@ -146,6 +180,7 @@ if (sector_nr > 1048576)
if (sector_nr < 1000)
sector_nr += (diskimage_get_baseoffset(cpu->machine, 0, DISKIMAGE_IDE)
/ 2048);
+#endif
}
res = diskimage_access(cpu->machine, 0, DISKIMAGE_IDE,
| [
"abs"
] | abs |
32c4f6ba6ea4b55ab18c6d7226b6512a7381677e | cb31cdec03dea46e1e88ceaef48bff842a2adbc4 | /src/service/gemma_service.h | 406fc232b72b2bf71abc6a2f9e84f0820ae421c2 | [
"MIT"
] | permissive | baoxingsong/mlmm | d8b5882c7a211f7ad1dd65dd10caa45a68725f5a | 253de26654f7a107929045b80b415768cc180ca0 | refs/heads/master | 2021-01-25T14:55:25.747511 | 2018-09-26T11:42:54 | 2018-09-26T11:42:54 | 123,733,752 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | h | //
// Created by song on 5/29/18.
//
#ifndef MLMM_CPP_GEMMA_SERVICE_H
#define MLMM_CPP_GEMMA_SERVICE_H
#include "../impl/impl.h"
#include "../model/model.h"
#include <map>
void gemma_test ( phenotype_impl & pi, Kinship_matrix_impl & k_i, Genotype & genotype, const double & man_l, const double & man_u );
void gemma_test ( const std::string & phenotype_path, const std::string & genotype_path, const std::string & kinship_file, const double & maf);
#endif //MLMM_CPP_GEMMA_SERVICE_H
| [
"songbaoxing168@163.com"
] | songbaoxing168@163.com |
f4d51128a8513dc10310bfa15a791698253205fd | 34e85672fad576629ad0531af9ee452861710428 | /src/GlobalConfig.cpp | 9a8819705e7db8e5f4680108683eccde90295a49 | [] | no_license | Boosting/stereo-gaze-tracker | d61b2a3ac490a231e7b8681937dd13c016188418 | eee2b7fed271fbec20cf12ecd913b869fab31cf3 | refs/heads/master | 2021-01-20T17:34:14.031358 | 2014-03-30T01:42:04 | 2014-03-30T01:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,026 | cpp | #include "wxprec.h"
#include "GlobalConfig.h"
#include "Parameter.h"
#include "GazeTracker.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
GlobalConfig* GlobalConfig::pInstance = 0;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
GlobalConfig::GlobalConfig() :
m_pFileConfig(NULL),
m_extrValid(false)
{
}
GlobalConfig::~GlobalConfig()
{
CleanUp();
}
void GlobalConfig::Destroy()
{
if (pInstance != NULL)
{
delete pInstance;
pInstance = NULL;
}
}
GlobalConfig& GlobalConfig::GetInstance()
{
if (pInstance == 0)
Create();
return *pInstance;
}
void GlobalConfig::Create()
{
pInstance = new GlobalConfig();
}
ParametersGroupPtr& GlobalConfig::operator[](wxString key)
{
if (groupHash.find(key) == groupHash.end())
wxFAIL_MSG("Not found");
return groupHash[key];
}
const wxString& GlobalConfig::GetAlgoName(const wxString& groupName) const
{
AlgoHash::const_iterator i = algoHash.find(groupName);
if (i != algoHash.end())
return (i->second)->GetSelected();
else
return m_Empty;
}
SizeData * GlobalConfig::GetSizeData()
{
return &m_SizeData;
}
int GlobalConfig::Read(const wxString& fileName)
{
if ( !wxFileExists(fileName) )
return -1;
wxFileInputStream fileStream(fileName);
CleanUp();
m_pFileConfig = new wxFileConfig(fileStream);
// enumeration variables
wxString groupName, paramName, entryName;
long dummy1;
bool bMoreGroups;
CreateAlgorithms();
CreateIntrinsics();
CreateExtrinsics();
// enumerate all user groups
m_pFileConfig->SetPath("/UserParameters");
bMoreGroups = m_pFileConfig->GetFirstGroup(groupName, dummy1);
while ( bMoreGroups )
{
m_pFileConfig->SetPath("/UserParameters/" + groupName);
CreateParameters(groupName);
m_pFileConfig->SetPath("/UserParameters");
bMoreGroups = m_pFileConfig->GetNextGroup(groupName, dummy1);
}
m_pFileConfig->SetPath("/");
return 1;
}
int GlobalConfig::Write()
{
return 1;
}
int GlobalConfig::Write(const wxString& fileName)
{
wxFileOutputStream fileStream(fileName);
PrepareConfig();
m_pFileConfig->Save(fileStream);
return 1;
}
int GlobalConfig::PrepareConfig()
{
if (m_pFileConfig == NULL)
m_pFileConfig = new wxFileConfig();
double d; long l;
ParametersGroup* pg;
Parameter* parameter;
// values retrieved from config in memory
wxString key;
// param value to be written in config file
wxString paramVal;
// let's iterate through all param groups
GroupHash::iterator i = groupHash.begin();
while (i != groupHash.end())
{
// every group will be stored in another "directory"
m_pFileConfig->SetPath("/UserParameters/" + i->first);
pg = i->second;
while (pg->HasNext() )
{
pg->GetNext(parameter, key);
// set path to parameter
m_pFileConfig->SetPath("/UserParameters/" + i->first + "/" + parameter->GetName());
if (parameter->IsPercentModification())
{
m_pFileConfig->DeleteEntry("value");
m_pFileConfig->Write("percValue", parameter->GetPercValue());
}
else
{
m_pFileConfig->DeleteEntry("percValue");
if (parameter->GetType() == Parameter::LONG)
{
l = *(long *)parameter->GetValue();
m_pFileConfig->Write("value", l);
}
else
{
d = *(double *)parameter->GetValue();
m_pFileConfig->Write("value", d);
}
}
}
i++;
}
AlgoHash::iterator j = algoHash.begin();
while (j != algoHash.end())
{
m_pFileConfig->SetPath("/Algorithms/" + j->first);
m_pFileConfig->Write("selected", j->second->GetSelected());
j++;
}
m_pFileConfig->SetPath("/");
return 1;
}
void GlobalConfig::CreateParameter(const wxString& groupName,
const wxString& paramName,
const wxString& type,
const wxString& value,
const wxString& min,
const wxString& max,
const wxString& percValue,
const wxString& percType,
const wxString& step,
const wxString& info)
{
ParameterPtr pParam;
double temp;
if (type.IsEmpty())
return;
if (type.IsSameAs("double"))
pParam = new DoubleParameter();
else if (type.IsSameAs("long"))
pParam = new LongParameter();
else
wxFAIL_MSG("Unknown parameter type");
pParam->SetActive(false);
pParam->SetName(paramName);
pParam->SetInfo(info);
pParam->SetSizeData(GetSizeData());
pParam->SetPercType(percType);
pParam->SetValue(value);
pParam->SetMin(min);
pParam->SetMax(max);
pParam->SetStep(step);
if (percValue.ToDouble(&temp))
pParam->SetPercValue(temp);
(*this)[groupName]->AddParam(pParam);
}
void GlobalConfig::CreateParameters(const wxString& groupName)
{
long dummy2, dummy3;
bool bMoreParams, bMoreEntries;
wxString val, temp;
wxString paramName, entryName;
wxString type, value, min, max, percType, percValue, step, info;
// we are in a parameters group
// create group if needed
if (groupHash.find(groupName) == groupHash.end())
{
GroupHash::value_type t(groupName, new ParametersGroup(groupName));
groupHash.insert(t);
}
// enum all params inside
bMoreParams = m_pFileConfig->GetFirstGroup(paramName, dummy3);
while (bMoreParams)
{
m_pFileConfig->SetPath("/UserParameters/" + groupName + "/" + paramName);
bMoreEntries = m_pFileConfig->GetFirstEntry(entryName, dummy2);
// param starts
type = value = min = max = percType = percValue = step = info = "";
while ( bMoreEntries )
{
m_pFileConfig->Read(entryName, &val);
if (entryName.IsSameAs("type"))
{
type = val;
}
else if (entryName.IsSameAs("value"))
{
value = val;
}
else if (entryName.IsSameAs("min"))
{
min = val;
}
else if (entryName.IsSameAs("max"))
{
max = val;
}
else if (entryName.IsSameAs("percType"))
{
percType = val;
}
else if (entryName.IsSameAs("percValue"))
{
percValue = val;
}
else if (entryName.IsSameAs("step"))
{
step = val;
}
else if (entryName.IsSameAs("info"))
{
info = val;
}
bMoreEntries = m_pFileConfig->GetNextEntry(entryName, dummy2);
}
// parameter info ends
CreateParameter(groupName,
paramName,
type,
value,
min,
max,
percValue,
percType,
step,
info);
m_pFileConfig->SetPath("/UserParameters/" + groupName);
bMoreParams = m_pFileConfig->GetNextGroup(paramName, dummy3);
}
}
void GlobalConfig::CreateAlgorithms()
{
wxString stepName;
bool bMoreSteps;
long dummy3;
wxString available, selected;
wxString algoName;
m_pFileConfig->SetPath("/Algorithms");
// enum all steps
bMoreSteps = m_pFileConfig->GetFirstGroup(stepName, dummy3);
while (bMoreSteps)
{
m_pFileConfig->SetPath("/Algorithms/" + stepName);
AlgorithmsGroup * group = new AlgorithmsGroup(stepName);
m_pFileConfig->Read("available", &available);
m_pFileConfig->Read("selected", &selected);
do
{
algoName = available.BeforeFirst(' ');
available = available.AfterFirst(' ');
group->AddAvailable(algoName);
} while (!available.IsEmpty());
group->SetSelected(selected);
algoHash[stepName] = group;
m_pFileConfig->SetPath("/Algorithms");
bMoreSteps = m_pFileConfig->GetNextGroup(stepName, dummy3);
}
m_pFileConfig->SetPath("/");
}
void GlobalConfig::CleanUp()
{
GroupHash::iterator i = groupHash.begin();
while (i != groupHash.end())
{
delete i->second;
i++;
}
groupHash.clear();
AlgoHash::iterator j = algoHash.begin();
while (j != algoHash.end())
{
delete j->second;
j++;
}
algoHash.clear();
if (m_pFileConfig != NULL)
{
delete m_pFileConfig;
m_pFileConfig = NULL;
}
}
wxArrayString GlobalConfig::GetAlgosGroupsNames() const
{
wxArrayString names;
AlgoHash::const_iterator i = algoHash.begin();
while (i != algoHash.end())
{
names.Add(i->first);
i++;
}
return names;
}
AlgorithmsGroup* GlobalConfig::GetAlgoGroup(const wxString& groupName) const
{
AlgoHash::const_iterator i = algoHash.find(groupName);
if (i != algoHash.end())
return i->second;
else
return NULL;
}
void GlobalConfig::DeactivateParameters()
{
Parameter *p;
GroupHash::iterator i = groupHash.begin();
while (i != groupHash.end())
{
while (i->second->HasNext())
{
i->second->GetNext(p);
p->SetActive(false);
}
i++;
}
}
void GlobalConfig::CreateIntrinsics()
{
wxString camIntrFile1, camIntrFile2;
long width, height;
m_pFileConfig->SetPath("/CameraCalibration");
m_pFileConfig->Read("camIntrFile1", &camIntrFile1);
m_pFileConfig->Read("camIntrFile2", &camIntrFile2);
m_pFileConfig->Read("camIntrResW", &width);
m_pFileConfig->Read("camIntrResH", &height);
m_camIntr[0].Create(width, height, GetSizeData());
m_camIntr[1].Create(width, height, GetSizeData());
int ret1 = m_camIntr[0].Read(camIntrFile1.c_str());
int ret2 = m_camIntr[1].Read(camIntrFile2.c_str());
if ((ret1 < 0) || (ret2 < 0))
wxFAIL_MSG("Error reading camera intrinsics");
m_pFileConfig->SetPath("/");
}
void GlobalConfig::CreateExtrinsics()
{
bool ok1 = LoadCamExtrinsics(0, m_camExtr[0]);
bool ok2 = LoadCamExtrinsics(1, m_camExtr[1]);
if (ok1 && ok2)
m_extrValid = true;
else
m_extrValid = false;
}
Cv3dTrackerCameraIntrinsics& GlobalConfig::GetCam1Intrinsics()
{
return m_camIntr[0].Get();
}
Cv3dTrackerCameraIntrinsics& GlobalConfig::GetCam2Intrinsics()
{
return m_camIntr[1].Get();
}
void GlobalConfig::SaveCamExtrinsics(int camNum, const Cv3dTrackerCameraInfo &camInfo)
{
if (camNum > 1)
return;
wxString matrixString, tempString, paramString;
for (int i = 0; i < 4; i++)
for (int j = 0; j < 4; j++)
{
tempString.Printf("%.3g ", camInfo.mat[i][j]);
matrixString.Append(tempString);
}
paramString.Printf("camExtrMatrix%d", camNum);
m_pFileConfig->Write("CameraCalibration/" + paramString, matrixString);
m_extrValid = true;
}
bool GlobalConfig::LoadCamExtrinsics(int camNum, Cv3dTrackerCameraInfo &camInfo)
{
double value;
bool bConv;
if (camNum > 1)
return false;
wxString matrixString;
m_pFileConfig->Read(wxString::Format("CameraCalibration/camExtrMatrix%d", camNum), &matrixString);
wxStringTokenizer tkz(matrixString, wxT(" "));
if (tkz.CountTokens() < 16)
return false;
for (int i = 0; i < 4; i++)
for (int j = 0; j < 4; j++)
{
bConv = tkz.GetNextToken().ToDouble(&value);
if (!bConv) return false;
camInfo.mat[i][j] = value;
}
camInfo.principal_point = m_camIntr[camNum].Get().principal_point;
camInfo.valid = 1;
return true;
}
Cv3dTrackerCameraInfo * GlobalConfig::GetCam1Extrinsics()
{
return &m_camExtr[0];
}
Cv3dTrackerCameraInfo * GlobalConfig::GetCam2Extrinsics()
{
return &m_camExtr[1];
} | [
"krzysztof.jelski@pragmatists.pl"
] | krzysztof.jelski@pragmatists.pl |
f3ead1a1fc5a97164dca90312f3bd20721705781 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /ash/common/wm/maximize_mode/maximize_mode_event_handler.h | 1e7b1aaba0afcd276c9f39642531943eac8b6e63 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_
#define ASH_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_
#include "base/macros.h"
namespace ui {
class TouchEvent;
}
namespace ash {
namespace wm {
// MaximizeModeEventHandler handles toggling fullscreen when appropriate.
// MaximizeModeEventHandler installs event handlers in an environment specific
// way, e.g. EventHandler for aura.
class MaximizeModeEventHandler {
public:
MaximizeModeEventHandler();
virtual ~MaximizeModeEventHandler();
protected:
// Subclasses call this to toggle fullscreen. If a toggle happened returns
// true.
bool ToggleFullscreen(const ui::TouchEvent& event);
private:
DISALLOW_COPY_AND_ASSIGN(MaximizeModeEventHandler);
};
} // namespace wm
} // namespace ash
#endif // ASH_COMMON_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_EVENT_HANDLER_H_
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
f63ea6bbab36d7bc65b8be5eb439f4eca4ee34f5 | 74af32d04639d5c442f0e94b425beb68a2544b3c | /LeetCode/Normal/900-999/974.cpp | 1c654144c0b3d22337ed7713f7b80e7e593936e1 | [] | no_license | dlvguo/NoobOJCollection | 4e4bd570aa2744dfaa2924bacc34467a9eae8c9d | 596f6c578d18c7beebdb00fa3ce6d6d329647360 | refs/heads/master | 2023-05-01T07:42:33.479091 | 2023-04-20T11:09:15 | 2023-04-20T11:09:15 | 181,868,933 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | cpp | #include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
int subarraysDivByK(vector<int> &A, int K)
{
int sum = 0;
int ans = 0;
vector<int> nums(K, 0);
for (auto num : A)
{
sum = (sum + num) % K;
sum = sum < 0 ? sum + K : sum;
nums[sum] += 1;
}
for (auto num : nums)
{
if (num > 1)
ans += num * (num - 1) / 2;
}
return ans + nums[0];
}
}; | [
"dlvguo@qq.com"
] | dlvguo@qq.com |
f72d7568941a0d49617b7cb7ea31eb5f0349a8a8 | 7d1a96565a1b46eaa38770bc592f0f508ba659b3 | /NorthernSubregional2014/B.cpp | 1f5c8d75d877b05b0371e4fa8a09a3159ca5fb5c | [] | no_license | RubenAshughyan/Programming-olympiads | f09dff286677d65da19f0ba4c288aa6e97ba9fd5 | 2bc85f5e6dc6879105353d90e8417b73c0be2389 | refs/heads/master | 2021-09-26T17:18:47.100625 | 2021-09-13T09:58:41 | 2021-09-13T09:58:41 | 73,565,659 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,361 | cpp | #include<bits/stdc++.h>
//#include "rubo.h"
#define MP make_pair
#define PB push_back
#define in int
#define ll long long
#define ull unsigned long long
#define vc vector
#define SQ(j) (j)*(j)
//#define i first
//#define j second
//#define ld long double
#define dbl double
#define pll pair<long long,long long>
#define pii pair<int,int>
#define all(j) j.begin(), j.end()
#define loop(xxx, yyy) for(int xxx = 0; xxx < yyy; xxx++)
//#define printf(fmt, ...) (0)
//#define HOME
//#define y0 ngacaleiebinvoaeu
//#define y1 gnarpipipaigare
#define j1 adsfndnasfafoasp
//#define printf(...) (0)
#define db(x) cout << #x << " = " << x << endl
#define dbCont(x) cout << #x << ": "; for(auto shun: x) cout << shun << ' '; cout<<endl;
using namespace std;
const int N = 100*1000+5;
ll b,k, n, m;
pll a[N];
ll suffA[N];
pll c[N];
ll suffC[N];
int main(){
cin >> b >> k >> n >> m;
for(int i = 1; i <= n; i++){
cin >> a[i].first;
a[i].second = i;
}
sort(a + 1, a + 1 + n);
suffA[n] = a[n].first;
for(int i = n - 1; i >= 1; i--){
suffA[i] = suffA[i + 1] + a[i].first;
}
for(int i = 1; i <= m; i++){
cin >> c[i].first;
c[i].second = i;
}
sort(c + 1, c + 1 + m);
suffC[m] = c[m].first;
for(int i = m - 1; i >= 1; i--){
suffC[i] = suffC[i + 1] + c[i].first;
}
if(k >= m+n){
cout << n << ' ' << m << endl;
for(int i = 0; i < n; i++){
cout <<i+1 << ' ';
} cout << endl;
for(int i = 0; i < m; i++){
cout <<i+1 << ' ';
} cout << endl;
exit(0);
}
int k1,k2;
ll best = 0;
ll best_k1 = 0;
ll best_k2 = 0;
for(k1 = 0; k1 <= n; k1++){
k2 = k-k1;
if(min(k1,k2) < 0) continue;
ll sumA = k1 > 0 ? suffA[n+1-k1] : 0;
ll sumC = k2 > 0 ? suffC[m+1-k2] : 0;
ll curAns = (b+sumA)*(100+sumC);
if(curAns > best){
best_k1 = k1;
best_k2 = k2;
best = curAns;
}
}
cout << best_k1 << ' ' << best_k2 << endl;
for(int i = n; i > n-best_k1; i--){
cout << a[i].second << ' ';
}
cout << endl;
for(int i = m; i > m-best_k2; i--){
cout << c[i].second << ' ';
}
cout << endl;
return 0;
}
/*
70 3 2 2
40 30
50 40
1 2 3 4
6 6 5
8 10 7 9
*/ | [
"ruben.ashughyan@gmail.com"
] | ruben.ashughyan@gmail.com |
776ff96e84d2e5fc96bb539d97adbc1a644f13d2 | 35582bebdf88791210a59a8a90e1bc41c953c833 | /src/ivaOnvif/OnvifMan.cpp | 6be6728e5f655252ae659c9eca235fa758b4404e | [] | no_license | layerfsd/iva_4_tk1 | 57cd4ba26cc318084e2bf898c5778d90cd071d21 | 1cb888dc83b2814ff0d28e163b5ca9b30a157576 | refs/heads/master | 2021-04-28T16:19:48.962452 | 2017-09-05T02:58:30 | 2017-09-05T02:58:30 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 21,137 | cpp | #include "OnvifMan.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <assert.h>
#include "oal_log.h"
#include "oal_time.h"
#include "mq_master.h"
#include "libonvif2.h"
#include "dahua3dposition.h"
#include "hik3dposition.h"
#include "uniview3dposition.h"
#include "tiandy3dposition.h"
#include "proxy3dposition.h"
void * SynTime2CameraThreadFunc(void * /*args*/)
{
time_t sLastSysTime = 0;
int iNeedNow = 1;
LOG_DEBUG_FMT("SynTime2CameraThread is running...");
while(OnvifManager::GetInstance()->m_bExitThread == false)
{
OnvifTimeSyn tSynCfg = {0};
OnvifManager::GetInstance()->GetTimeSynInfo(tSynCfg);
if (!tSynCfg.bEnable)
{
sleep(1);
iNeedNow = 1;
continue;
}
// 该通道是否使能
VISource tSource = {0};
OnvifManager::GetInstance()->GetDevInfo(tSynCfg.iSynChnID, tSource);
if (!tSource.bEnable)
{
sleep(1);
iNeedNow = 1;
continue;
}
// 是否达到同步周期
time_t tNow = time(NULL);
if (iNeedNow == 0 && (tNow - sLastSysTime < tSynCfg.uInterval && tNow > String2Time("20100101000000",eYMDHMS2)))
{
//LOG_DEBUG_FMT("tNow=%ld sLastSysTime=%ld uInterval=%u", tNow,sLastSysTime,tSynCfg.uInterval);
sleep(1);
continue;
}
sLastSysTime = tNow;
iNeedNow = 0;
// onvif获取系统时间
time_t tOnvifTime;
int iRet = OnvifManager::GetInstance()->Onvif_GetLocalTime(tSynCfg.iSynChnID, tOnvifTime);
if (iRet != 0)
{
LOG_DEBUG_FMT("Can not get channel%d`s onvif time",tSynCfg.iSynChnID);
sleep(1);
continue;
}
tNow = time(NULL);
char buf1[24] = {0};
char buf2[24] = {0};
TimeFormatString(tOnvifTime, buf1, sizeof(buf1),eYMDHMS1);
TimeFormatString(tNow, buf2, sizeof(buf2),eYMDHMS1);
time_t iDeta = (tNow > tOnvifTime) ? (tNow - tOnvifTime) : (tOnvifTime - tNow);
if(iDeta >= TIME_SYN_PRECISION)
{
LOG_DEBUG_FMT("============TIME CHECK==========");
LOG_DEBUG_FMT("Time in SynChn%d = %s",tSynCfg.iSynChnID, buf1);
LOG_DEBUG_FMT("Time in System = %s",buf2);
MQ_Master_SetSysTime(tOnvifTime);
}
sleep(1);
}
return NULL;
}
static void * OnvifManagerageThread(void * p)
{
static VISource s_tOldSource[MAX_CHANNEL_NUM] = {0};
while(OnvifManager::GetInstance()->m_bExitThread == false)
{
for (int i = 0; i < MAX_CHANNEL_NUM; i++)
{
VISource tNewIPC = {0};
if(OnvifManager::GetInstance()->GetDevInfo(i, tNewIPC) == 0)
{
if( s_tOldSource[i].bEnable != tNewIPC.bEnable ||
s_tOldSource[i].iStreamType != tNewIPC.iStreamType ||
strcmp(s_tOldSource[i].szIP, tNewIPC.szIP) != 0 ||
strcmp(s_tOldSource[i].szUser, tNewIPC.szUser) != 0||
strcmp(s_tOldSource[i].szPass, tNewIPC.szPass) != 0)
{
LOG_INFOS_FMT("Channel%d Video Source Change ",i);
LOG_INFOS_FMT("[New Soucre] Enable:%d IP:%s User:%s Pass:%s StreamType:%d",
tNewIPC.bEnable,tNewIPC.szIP, tNewIPC.szUser,tNewIPC.szPass,tNewIPC.iStreamType);
memcpy(&s_tOldSource[i], &tNewIPC, sizeof(VISource));
// 如果视频源配置改变,断掉原来的流
OnvifManager::GetInstance()->OnvifClose(i);
}
}
// 通道使能 如果断了,重连
bool bDisConnected = OnvifManager::GetInstance()->m_bDisconnected[i];
if(tNewIPC.bEnable && bDisConnected)
{
OnvifManager::GetInstance()->m_bDisconnected[i] = false;
OnvifManager::GetInstance()->OnvifLogin(i);
}
else if (!tNewIPC.bEnable && !bDisConnected)
{
OnvifManager::GetInstance()->OnvifClose(i);
}
sleep(1);
}
}
pthread_exit(p);
return p;
}
OnvifManager* OnvifManager::m_pInstance = NULL;
OnvifManager* OnvifManager::GetInstance()
{
return m_pInstance;
}
int OnvifManager::Initialize()
{
//libOnvif2Debug(1);
libOnvif2SetTimeOut(5, 10, 2);
if( NULL == m_pInstance)
{
m_pInstance = new OnvifManager();
assert(m_pInstance);
m_pInstance->Run();
}
return (m_pInstance == NULL ? -1 : 0);
}
void OnvifManager::UnInitialize()
{
if (m_pInstance)
{
delete m_pInstance;
m_pInstance = NULL;
}
libOnvif2ControlCleanup();
}
OnvifManager::OnvifManager()
{
pthread_mutex_init(&m_mutex, NULL);
pthread_mutex_lock(&m_mutex);
memset(m_tDevs, 0, MAX_CHANNEL_NUM * sizeof(VISource));
memset(m_tProxy, 0, MAX_CHANNEL_NUM * sizeof(ClickZoomProxy));
memset(m_tProfileInfos, 0, MAX_CHANNEL_NUM * sizeof(OnvifProfileInfo));
for (int i = 0; i < MAX_CHANNEL_NUM; i++)
{
m_bDisconnected[i] = true;
m_tProfileInfos[i].hSession = -1;
}
m_tTimeSynInfo.bEnable = false;
m_tTimeSynInfo.iSynChnID = 0;
m_tTimeSynInfo.uInterval = 300;
pthread_mutex_unlock(&m_mutex);
m_bExitThread = false;
}
OnvifManager::~OnvifManager()
{
m_bExitThread = true;
pthread_join(m_manage_thread,NULL);
pthread_join(m_timesyn_thread,NULL);
}
int OnvifManager::Run()
{
m_bExitThread = false;
pthread_create(&m_manage_thread, NULL, OnvifManagerageThread, this);
pthread_create(&m_timesyn_thread, NULL, SynTime2CameraThreadFunc, this);
return 0;
}
int OnvifManager::SetDevInfo( int iChnID, const VISource* ptSource )
{
if(ptSource == NULL || iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
pthread_mutex_lock(&m_mutex);
memcpy(&m_tDevs[iChnID], ptSource, sizeof(VISource));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::GetDevInfo( int iChnID, VISource& tSource )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
pthread_mutex_lock(&m_mutex);
memcpy(&tSource, &m_tDevs[iChnID],sizeof(VISource));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::SetClickZoomProxy( int iChnID, const ClickZoomProxy* ptProxy )
{
if(ptProxy == NULL || iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
pthread_mutex_lock(&m_mutex);
memcpy(&m_tProxy[iChnID], ptProxy, sizeof(ClickZoomProxy));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::GetClickZoomProxy( int iChnID, ClickZoomProxy &tProxy )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
pthread_mutex_lock(&m_mutex);
memcpy(&tProxy, &m_tDevs[iChnID],sizeof(ClickZoomProxy));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::SetTimeSynInfo( const OnvifTimeSyn* pTimeSyn )
{
if(pTimeSyn == NULL)
{
LOG_ERROR_FMT("Input error");
return -1;
}
pthread_mutex_lock(&m_mutex);
memcpy(&m_tTimeSynInfo, pTimeSyn, sizeof(OnvifTimeSyn));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::GetTimeSynInfo( OnvifTimeSyn & tTimeSyn )
{
pthread_mutex_lock(&m_mutex);
memcpy(&tTimeSyn, &m_tTimeSynInfo,sizeof(OnvifTimeSyn));
pthread_mutex_unlock(&m_mutex);
return 0;
}
int OnvifManager::GetChnSolution( int iChnID, int &width, int &height )
{
int max = 0,min = 0;
for(int i = 0; i < m_tProfileInfos[iChnID].iStreamCnt; i++)
{
if(m_tProfileInfos[iChnID].tStreamInfo[i].width > m_tProfileInfos[iChnID].tStreamInfo[max].width)
max = i;
if(m_tProfileInfos[iChnID].tStreamInfo[i].width < m_tProfileInfos[iChnID].tStreamInfo[min].width)
min = i;
}
if (m_tDevs[iChnID].iStreamType == STREAM_TYPE_SUB)
{
width = m_tProfileInfos[iChnID].tStreamInfo[min].width;
height = m_tProfileInfos[iChnID].tStreamInfo[min].height;
}
else
{
width = m_tProfileInfos[iChnID].tStreamInfo[max].width;
height = m_tProfileInfos[iChnID].tStreamInfo[max].height;
}
return 0;
}
int OnvifManager::OnvifLogin(int iChnID)
{
VISource tDevInfo;
int iRet = GetDevInfo(iChnID, tDevInfo);
if(iRet != 0)
{
LOG_ERROR_FMT("GetDevInfo %d error",iChnID);
return -1;
}
// 关闭已有链接
if(m_tProfileInfos[iChnID].hSession > 0)
{
OnvifClose(iChnID);
}
int hSession = libOnvif2ControlCreate(tDevInfo.szIP);
if(hSession < 0)
{
LOG_ERROR_FMT("libOnvif2ControlCreate failed, Channel=%d ip=%s\n",iChnID, tDevInfo.szIP);
return -1;
}
pthread_mutex_lock(&m_mutex);
m_tProfileInfos[iChnID].hSession = hSession;
pthread_mutex_unlock(&m_mutex);
iRet = libOnvif2DeviceLogin(hSession, tDevInfo.szUser, tDevInfo.szPass);
if(iRet != 0)
{
LOG_ERROR_FMT("libOnvif2DeviceLogin failed, Channel=%d ip=%s\n",iChnID, tDevInfo.szIP);
return -1;
}
int iBestIndex = libOnvif2ReportAfterLogin(hSession);
if(iBestIndex < 0)
{
LOG_ERROR_FMT("libOnvif2ReportAfterLogin failed, Channel=%d ip=%s\n",iChnID, tDevInfo.szIP);
return -1;
}
pthread_mutex_lock(&m_mutex);
m_bDisconnected[iChnID] = false;
pthread_mutex_unlock(&m_mutex);
PTZInfo tPtzInfo = {0};
libOnvif2GetPTZInfo(hSession, iBestIndex, &tPtzInfo);
pthread_mutex_lock(&m_mutex);
memcpy(&m_tProfileInfos[iChnID].tPtzLoginInfo, &tPtzInfo, sizeof(PTZInfo));
pthread_mutex_unlock(&m_mutex);
// 获取视频URL
pthread_mutex_lock(&m_mutex);
m_tProfileInfos[iChnID].iStreamCnt = 0;
memset(&m_tProfileInfos[iChnID].tStreamInfo, 0, MAX_STREAM_NUM*sizeof(StreamInfo));
pthread_mutex_unlock(&m_mutex);
int iCnt = libOnvif2GetProfileSize(hSession);
for(int i = 0; i < iCnt && m_tProfileInfos[iChnID].iStreamCnt < MAX_STREAM_NUM; i++)
{
StreamInfo tStreamInfo = {0};
int iret = libOnvif2GetStreamInfo(hSession, i, &tStreamInfo);
if(iret != 0 || strlen(tStreamInfo.URI) < 1)
{
continue;
}
pthread_mutex_lock(&m_mutex);
memcpy(m_tProfileInfos[iChnID].tStreamInfo+m_tProfileInfos[iChnID].iStreamCnt, &tStreamInfo, sizeof(StreamInfo));
m_tProfileInfos[iChnID].iStreamCnt++;
pthread_mutex_unlock(&m_mutex);
}
// 登录成功以后,获取TPZCAP通知MASTER
PTZCap tPtzCap;
pthread_mutex_lock(&m_mutex);
tPtzCap.bSptPtz = (m_tProfileInfos[iChnID].tPtzLoginInfo.bSupport==1);
tPtzCap.bSptAbsMove = (m_tProfileInfos[iChnID].tPtzLoginInfo.bSupportAbsMove==1);
tPtzCap.bSptClickZoom = true;
tPtzCap.iMaxPresetNum = MAX_PRESET_ID;
pthread_mutex_unlock(&m_mutex);
MQ_Master_SetPtzCap(iChnID, &tPtzCap);
// 登录成功以后,获取主码流和子码流的RTSP通知MASTER/VIDEOIN
RtspInfo tMainRtsp = {0};
RtspInfo tSubRtsp = {0};
int max = 0,min = 0;
pthread_mutex_lock(&m_mutex);
for(int i = 0; i < m_tProfileInfos[iChnID].iStreamCnt; i++)
{
if(m_tProfileInfos[iChnID].tStreamInfo[i].width >m_tProfileInfos[iChnID].tStreamInfo[max].width)
max = i;
if(m_tProfileInfos[iChnID].tStreamInfo[i].width < m_tProfileInfos[iChnID].tStreamInfo[min].width)
min = i;
}
strcpy(tMainRtsp.szUrl,m_tProfileInfos[iChnID].tStreamInfo[max].URI);
tMainRtsp.iWidth = m_tProfileInfos[iChnID].tStreamInfo[max].width;
tMainRtsp.iHeight= m_tProfileInfos[iChnID].tStreamInfo[max].height;
strcpy(tSubRtsp.szUrl,m_tProfileInfos[iChnID].tStreamInfo[min].URI);
tSubRtsp.iWidth = m_tProfileInfos[iChnID].tStreamInfo[min].width;
tSubRtsp.iHeight= m_tProfileInfos[iChnID].tStreamInfo[min].height;
pthread_mutex_unlock(&m_mutex);
// 发送给VideoIn
if (m_tDevs[iChnID].iStreamType == STREAM_TYPE_SUB)
{
MQ_VideoIn_SetRtspInfo(iChnID, &tSubRtsp);
}
else
{
MQ_VideoIn_SetRtspInfo(iChnID, &tMainRtsp);
}
// 发送给Master
MQ_Master_SetRtspInfo(iChnID, STREAM_TYPE_MAIN,&tMainRtsp);
MQ_Master_SetRtspInfo(iChnID, STREAM_TYPE_SUB,&tSubRtsp);
return 0;
}
int OnvifManager::OnvifClose(int iChnID)
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession > 0)
{
libOnvif2ControlDelete(m_tProfileInfos[iChnID].hSession);
}
pthread_mutex_lock(&m_mutex);
m_tProfileInfos[iChnID].hSession = -1;
memset(&m_tProfileInfos[iChnID].tPtzLoginInfo, 0, sizeof(PTZInfo));
m_tProfileInfos[iChnID].iStreamCnt = 0;
memset(&m_tProfileInfos[iChnID].tStreamInfo, 0, MAX_STREAM_NUM*sizeof(StreamInfo));
m_bDisconnected[iChnID] = true;
pthread_mutex_unlock(&m_mutex);
// 关闭以后通知不能用了
RtspInfo tRtsp = {0};
MQ_VideoIn_SetRtspInfo(iChnID, &tRtsp);
MQ_Master_SetRtspInfo(iChnID, STREAM_TYPE_MAIN,&tRtsp);
MQ_Master_SetRtspInfo(iChnID, STREAM_TYPE_SUB,&tRtsp);
return 0;
}
int OnvifManager::Onvif_Ptz_Move(int iChnID, int iAction, int iSpeed)
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2PTZStartMove(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken, (PTZ_ACTION)iAction, iSpeed);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_Ptz_Stop(int iChnID)
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2PTZStopMove(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_Aperture_Move( int iChnID, int /*iAction*/, int /*iSpeed*/ )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
LOG_WARNS_FMT("Aperture is not implemented");
return 0;
}
int OnvifManager::Onvif_Aperture_Stop( int iChnID )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
LOG_WARNS_FMT("Aperture is not implemented");
return 0;
}
int OnvifManager::Onvif_Focus_Move( int iChnID, int iAction,int iSpeed )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2FocusMove(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,(FOCUS_ACTION)iAction,iSpeed);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_Focus_Stop( int iChnID )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2FocusStop(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_GetPresets( int iChnID, PresetArray *ptPresets )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM || ptPresets == NULL)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
LIST_Preset tPresetList;
int iRet = libOnvif2GetPresets(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken, &tPresetList);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
else
{
ptPresets->iPresetNum = 0;
LIST_Preset::iterator iter = tPresetList.begin();
for(;iter != tPresetList.end() && ptPresets->iPresetNum < MAX_PRESET_NUM; iter++)
{
if(strncmp(iter->Name, ONVIF2_PRESET_NAME, strlen(ONVIF2_PRESET_NAME)) == 0)
{
int iPresetID = atoi(iter->Name+strlen(ONVIF2_PRESET_NAME));
if(iPresetID >= MIN_PRESET_ID && iPresetID <= MAX_PRESET_ID)
{
ptPresets->arPresets[ptPresets->iPresetNum].iPresetID = iPresetID;
strcpy(ptPresets->arPresets[ptPresets->iPresetNum].szName, iter->Name);
ptPresets->iPresetNum++;
}
}
}
}
return iRet;
}
int OnvifManager::Onvif_SetPreset( int iChnID, int iPresetID )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2CreatePreset(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,iPresetID);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_DelPreset( int iChnID, int iPresetID )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2DelPreset(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,iPresetID);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_GoToPreset( int iChnID, int iPresetID )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int iRet = libOnvif2GotoPreset(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,iPresetID);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_GetAbsPos( int iChnID, AbsPosition &tPos )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
PTZAbsPosition pos = {0};
int iRet = libOnvif2PTZGetAbsolutePosition(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,&pos);
if(iRet != 0 && iRet != -2)
{
m_bDisconnected[iChnID] = true;
}
if(pos._Pan == 0 && pos._Tilt == 0 && pos._Zoom == 0 && m_tProfileInfos[iChnID].tPtzLoginInfo.bSupportAbsMove == false)
{
LOG_WARNS_FMT("IPC is not Support Abs Move\n");
return -2;
}
tPos.fPan = pos._Pan;
tPos.fTilt = pos._Tilt;
tPos.fZoom = pos._Zoom;
return iRet;
}
int OnvifManager::Onvif_AbsMove( int iChnID, const AbsPosition* ptPos )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM || ptPos == NULL)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
PTZAbsPosition pos = {0};
pos._Pan = ptPos->fPan;
pos._Tilt = ptPos->fTilt;
pos._Zoom = ptPos->fZoom;
int iRet = libOnvif2PTZAbsoluteMove(m_tProfileInfos[iChnID].hSession, m_tProfileInfos[iChnID].tPtzLoginInfo.ProfileToken,&pos,100,100);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
return iRet;
}
int OnvifManager::Onvif_ClickZoom( int iChnID, const ClickArea * ptArea )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM || ptArea == NULL)
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
int width = 0, height = 0;
if (GetChnSolution(iChnID, width, height) != 0 || width == 0 || height == 0)
{
LOG_WARNS_FMT("Haven't solution");
return -1;
}
int iRet = -1;
// 长宽归一化到1920*1080
int x0 = ptArea->StartPoint.x * 1920 / width;
int y0 = ptArea->StartPoint.y * 1080 / height;
int x1 = ptArea->EndPoint.x * 1920 / width;
int y1 = ptArea->EndPoint.y * 1080 / height;
if(m_tProxy[iChnID].iModel == CLICK_ZOOM_PROXY)
{
Proxy3DPosition::GetInstance()->SetDevInfo(iChnID, m_tDevs[iChnID].szIP, m_tDevs[iChnID].szUser, m_tDevs[iChnID].szPass, m_tDevs[iChnID].iManuCode);
Proxy3DPosition::GetInstance()->SetProxyInfo(iChnID, m_tProxy[iChnID].szAddr, m_tProxy[iChnID].iPort);
iRet = Proxy3DPosition::GetInstance()->ClickZoomIn(iChnID, x0, y0, x1, y1);
}
else//私有协议
{
if(m_tDevs[iChnID].iManuCode == M_HIK)
{
Hik3DPosition::GetInstance()->SetDevInfo(iChnID, m_tDevs[iChnID].szIP, m_tDevs[iChnID].szUser, m_tDevs[iChnID].szPass);
iRet = Hik3DPosition::GetInstance()->ClickZoomIn(iChnID, x0, y0, x1, y1);
}
else if(m_tDevs[iChnID].iManuCode == M_DH)
{
DaHua3DPosition::GetInstance()->SetDevInfo(iChnID, m_tDevs[iChnID].szIP, m_tDevs[iChnID].szUser, m_tDevs[iChnID].szPass);
iRet = DaHua3DPosition::GetInstance()->ClickZoomIn(iChnID, x0, y0, x1, y1);
}
else if(m_tDevs[iChnID].iManuCode == M_TIANDY)
{
Tiandy3DPosition::GetInstance()->SetDevInfo(iChnID, m_tDevs[iChnID].szIP, m_tDevs[iChnID].szUser, m_tDevs[iChnID].szPass);
iRet = Tiandy3DPosition::GetInstance()->ClickZoomIn(iChnID, x0, y0, x1, y1);
}
else if(m_tDevs[iChnID].iManuCode == M_UNIVIEW)
{
Uniview3DPosition::GetInstance()->SetDevInfo(iChnID, m_tDevs[iChnID].szIP, m_tDevs[iChnID].szUser, m_tDevs[iChnID].szPass);
iRet = Uniview3DPosition::GetInstance()->ClickZoomIn(iChnID, x0, y0, x1, y1);
}
else
{
LOG_WARNS_FMT("not support clickzoom, unknown company");
iRet = -1;
}
}
return iRet;
}
int OnvifManager::Onvif_GetLocalTime( int iChnID, time_t & tNow )
{
if(iChnID < 0 || iChnID >= MAX_CHANNEL_NUM )
{
LOG_ERROR_FMT("Input error");
return -1;
}
if(m_tProfileInfos[iChnID].hSession < 0)
{
LOG_WARNS_FMT("Haven't login successfully");
return -1;
}
char szDataTime[128] = {0};
int iRet = libOnvif2GetDateTime(m_tProfileInfos[iChnID].hSession, szDataTime);
if(iRet != 0)
{
m_bDisconnected[iChnID] = true;
}
tNow = String2Time(szDataTime, eYMDHMS1);
return iRet;
}
| [
"libozjw@163.com"
] | libozjw@163.com |
19bdad378d977dd9e39b562d047f6438a2bcabb3 | f91f8fe4675dbc940b2388357e453eecb4441892 | /src/Chapter08/ch8-09-Geometry-Normal/RenderSystem.h | d7dd9b2315867d1395f8c1be778fc603f3334b9a | [] | no_license | byhj/OpenGL-Bluebook | a144b27bce9a1a1484b9dd19aa9bf6e617764d5d | e9137600d7ec15360cbf051420545dbec8deaddb | refs/heads/master | 2016-09-15T11:39:37.106518 | 2016-04-01T14:17:02 | 2016-04-01T14:17:02 | 33,667,598 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | #ifndef RENDERSYSTEM_H
#define RENDERSYSTEM_H
#include "ogl/App.h"
#include "Geometry.h"
namespace byhj
{
class RenderSystem : public ogl::App
{
public:
RenderSystem();
~RenderSystem();
public:
void v_InitInfo();
void v_Init();
void v_Render();
void v_Shutdown();
private:
byhj::Geometry m_Geometry;
};
}
#endif | [
"476652422@qq.com"
] | 476652422@qq.com |
93893ece7152dbce535009ef37176e7991465212 | 395a3e5731ff6a2a4c97f2c215f27666ac0ad590 | /some test/stdafx.cpp | 7509bf034bab835fe31fc490e48df0bb16505513 | [] | no_license | Tronf92/some_test | 6adf24de55808301d27d0ccf56a3b2886c5787af | be2945c7bfffbcac03ed11fdde87ccc3f02a159c | refs/heads/master | 2021-08-22T23:27:35.010154 | 2017-12-01T17:07:19 | 2017-12-01T17:07:19 | 112,765,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | // stdafx.cpp : source file that includes just the standard includes
// some test.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| [
"ady.niko51@gmail.com"
] | ady.niko51@gmail.com |
366dd2274cfbb52e43f4b97743d403550f3b56f7 | 094a3ce6199e6860f8a0ab512ba91042f8cfb4e6 | /sorts/partial_quicksort.cpp | b249446cfc76e6702dd08702fa6e3898bb4b3143 | [] | no_license | dziubamiol/sort_benchmark | b6193ee602df534c22e20b522e1697f97f5ef15e | 6da087b360c1709391981be5102490afd14417ac | refs/heads/master | 2022-06-01T21:31:10.546750 | 2020-05-05T09:14:52 | 2020-05-05T09:14:52 | 259,651,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31 | cpp | #include "partial_quicksort.h"
| [
"dziubamiol@gmail.com"
] | dziubamiol@gmail.com |
ac5c275e0a5d4c2af453e90de025dd863b3b4180 | 87b7ca8c59faf32b439d9050919cb80e9d867758 | /Android1/libs/tina/Classes/widget/GridCell.h | 265074fd8e7f1f634efc29c604c0466b133f1658 | [] | no_license | wjezxujian/Android_VS | 7e6e23d165032e21a141a63563eba05e3827bbed | 38f5f178a3b966f24f1c137e414448b5b51a6d2f | refs/heads/master | 2021-01-10T02:21:27.082548 | 2016-01-16T10:57:50 | 2016-01-16T10:57:50 | 49,628,674 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,222 | h | #pragma once
/****************************************************************************
功 能:GridView组件
============================================================================
Copyright (c) 2015 Tungway
创建者:董伟
创建日期:2015-03-08
最后修改者:董伟
最后修改日期:2015-03-08
****************************************************************************/
#include "include/tinaMacros.h"
#include "node/TiNode.h"
TINA_NS_BEGIN
class WidgetReader;
class GridView;
class GridCell : public TiNode
{
public:
enum class FocusBlurEffect
{
NONE = 0,
SCALE
};
public:
static GridCell* create(const std::string& file = "");
GridCell()
: m_selected(false)
{};
~GridCell(){};
void setFocusBlurEffect(FocusBlurEffect effect);
void setSelected(bool selected);
virtual void onFocus();
virtual void onBlur();
virtual void onClick(){};
virtual void onLongPress(){};
virtual void onSelected(bool selected){};
bool isSelected(){ return m_selected; };
protected:
virtual bool initWithTxml(const std::string& file) override;
protected:
bool m_selected;
FocusBlurEffect m_effect = FocusBlurEffect::NONE;
};
TINA_NS_END | [
"jian.xu@dena.com"
] | jian.xu@dena.com |
d276cd931696c634eb4c93711f4eca893ecfce56 | a6dd54cb560dddccef0b2233fa2990f25e818c7b | /Live Archive/5756.cpp | 223e66c547f16bed5ba4aa128e5efb59eed11a44 | [] | no_license | renzov/Red_Crown | ec11106389196aac03d04167ad6703acc62aaef6 | 449fe413dbbd67cb0ca673af239f7d616249599a | refs/heads/master | 2021-07-08T04:56:22.617893 | 2021-05-14T18:41:06 | 2021-05-14T18:41:06 | 4,538,198 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,131 | cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <set>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <map>
#include <string>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <cmath>
#include <climits>
#define repn( i , a , b ) for( int i = ( int ) a ; i < ( int ) b ; i ++ )
#define rep( i , n ) repn( i , 0 , n )
#define all( x ) x.begin() , x.end()
#define rall( x ) x.rbegin() , x.rend()
#define mp make_pair
#define fst first
#define snd second
using namespace std;
typedef long long int64;
typedef long double ldouble;
typedef pair< int , int > pii;
typedef pair< pii, int > piii;
const int MAXN = 100005;
int C[ MAXN ];
set<piii> S;
set<pii> cost;
void insert( int a, int b, int c, int idx ){
//printf("insert %d: %d %d %d\n", idx, a, b, c);
set<piii>::iterator it;
// search for the first element that have first coord greater than a
it = S.upper_bound( piii( pii( a, INT_MAX ), idx ) );
if ( it != S.end() && it->first.second >= b ){
//printf("outdated by first rule\n");
return; //new element is outdated
}
if ( it == S.begin() ){ // we can insert element
//printf("insert the element - 1r\n");
S.insert( piii( pii(a,b), idx ) );
cost.insert( pii(c, idx) );
}
else { // we have to remove the elements we dominate
set<piii>::iterator prev = it;
prev--;
while ( a == prev->first.first && prev->first.second < b || a > prev->first.first && prev->first.second <= b ){
//printf("prev (%d, %d)\n", prev->first.first, prev->first.second);
it = prev;
prev--;
cost.erase( pii( C[it->second] , it->second ) );
S.erase(it);
}
if ( a == prev->first.first && b < prev->first.second ) return; // newly element is outdated
if ( a == prev->first.first && b == prev->first.second ){ // special case, we can only insert if cost is lower
if ( C[ prev->second ] > c ){ // erase the element that is equal but higher price
cost.erase( pii( C[prev->second], prev->second ) );
S.erase( prev );
S.insert( piii( pii(a,b), idx ) );
cost.insert( pii(c, idx) );
}
}
else { // we are sure that a > prev->first.first and b > prev->first.second
S.insert( piii( pii(a,b), idx ) );
cost.insert( pii(c, idx) );
}
}
}
int toint( char *c ){
int res = 0;
int cnt = 0;
bool point = false;
for ( int i=0; c[i]; ++i ){
if (point) cnt++;
if ( isdigit(c[i]) ) res *= 10, res += (c[i] - '0');
else point = true;
}
while ( cnt < 6 ) res *= 10, cnt++;
return res;
}
int main(){
char op;
int runs;
int a, b, c;
char x[30];
int N;
bool first;
scanf("%d", &runs);
while ( runs-- ){
scanf("%d", &N);
// insert dummy element in S and cost
S.insert( piii( pii(-1, INT_MAX) , -1 ) ); cost.insert( pii( INT_MAX , -1 ) );
first = true;
for ( int i=1; i <= N; ++i ){
scanf(" %c", &op);
if ( op == 'P' ){
scanf("%d %s %d", &a, &x, &c);
b = toint(x);
C[i] = c;
insert( a, b, c, i );
}
else {
if ( !first ) putchar(' ');
else first = false;
printf("%d", cost.begin()->second);
}
}
puts("");
S.clear();
cost.clear();
}
return 0;
}
| [
"gomez.renzo@gmail.com"
] | gomez.renzo@gmail.com |
6e30830b4f4335e66c09eb0f4b1b897a926a0ac8 | 2e86b13ef98923eb45ee4da540b10f69f0f2f453 | /test/unit-src/eq_ilas.cc | 722c897c4a5e7746d44e9cf762489dd19e302e4f | [
"MIT"
] | permissive | pramodsu/ILA-Tools | 1dfd7e2282382a9f6870bf85deb77c460047b112 | e76bd90cf356ada8dd6f848fb377f57c83322c71 | refs/heads/master | 2020-03-18T21:16:35.249306 | 2018-08-17T07:23:59 | 2018-08-17T07:23:59 | 135,271,196 | 1 | 3 | MIT | 2018-08-13T06:47:10 | 2018-05-29T09:14:21 | C | UTF-8 | C++ | false | false | 7,625 | cc | /// \file
/// Source for constructing equivalent ILAs.
#include "../unit-include/eq_ilas.h"
namespace ila {
// Flat ILA 1:
// - no child-ILA
// - every computation is done in an increaing order of the index/address
InstrLvlAbsPtr EqIlaGen::GetIlaFlat1() {
auto ila = InstrLvlAbs::New("Flat_1");
// input variables.
auto start = ila->NewBoolInput("start");
auto opcode = ila->NewBvInput("opcode", 3);
// state variables.
std::vector<ExprPtr> regs;
for (auto i = 0; i < reg_num_; i++) {
auto reg_name = "reg_" + std::to_string(i);
auto reg = ila->NewBvState(reg_name, 8);
regs.push_back(reg);
}
auto addr = ila->NewBvState("address", 8);
auto cnt = ila->NewBvState("counter", 8);
auto mem = ila->NewMemState("memory", 8, 8);
// valid
ila->SetValid(ExprFuse::BoolConst(true));
// Instruction 1: (start == 1 && opcode = 1)
// * copy the value of %reg n-1 to %reg n (for all n = [1:15])
auto instr_1 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(1, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_1->SetDecode(decode);
}
{ // updates
instr_1->AddUpdate(regs[0], regs[0]);
for (auto i = 1; i < reg_num_; i++) {
instr_1->AddUpdate(regs[i], regs[i - 1]);
}
}
// Instruction 2: (start == 1 && opcode == 2)
// * copy the value of %reg n-1 to %reg n (n = %counter).
// * if (%counter == 0) then copy %reg 15 to %reg 0
auto instr_2 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(2, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_2->SetDecode(decode);
}
{ // updates
for (auto i = 0; i < reg_num_; i++) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
ExprPtr next_i = NULL;
if (i == 0) {
next_i = ExprFuse::Ite(cnd_i, regs[reg_num_ - 1], regs[0]);
} else {
next_i = ExprFuse::Ite(cnd_i, regs[i - 1], regs[i]);
}
instr_2->AddUpdate(regs[i], next_i);
}
}
// Instruction 3: (start == 1 && opcode == 3)
// - swap the value stored in %memory, pointed by %address, with %register n.
// - (n == %counter)
auto instr_3 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(3, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_3->SetDecode(decode);
}
{ // updates
auto mem_val = ExprFuse::Load(mem, addr);
for (auto i = 0; i < reg_num_; i++) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
auto next_i = ExprFuse::Ite(cnd_i, mem_val, regs[i]);
instr_3->AddUpdate(regs[i], next_i);
}
auto reg_val = regs[0];
for (auto i = 1; i < reg_num_; i++) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
reg_val = ExprFuse::Ite(cnd_i, regs[i], reg_val);
}
auto mem_next = ExprFuse::Store(mem, addr, reg_val);
instr_3->AddUpdate(mem, mem_next);
}
// Instruction 4: (start == 1 && opcode == 4)
// - sum up the value in %register [0-14] and store to %register 15.
auto instr_4 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(4, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_4->SetDecode(decode);
}
{ // updates
auto sum = regs[0];
for (auto i = 1; i < reg_num_; i++) {
sum = ExprFuse::Add(sum, regs[i]);
}
instr_4->AddUpdate(regs[reg_num_ - 1], sum);
}
return ila;
}
// Flat ILA 2:
// - no child-ILA
// - every computation is done in a decreasing order of the index/address
InstrLvlAbsPtr EqIlaGen::GetIlaFlat2() {
auto ila = InstrLvlAbs::New("Flat_2");
// input variables.
auto start = ila->NewBoolInput("start");
auto opcode = ila->NewBvInput("opcode", 3);
// state variables.
std::vector<ExprPtr> regs;
for (auto i = 0; i < reg_num_; i++) {
auto reg_name = "reg_" + std::to_string(i);
auto reg = ila->NewBvState(reg_name, 8);
regs.push_back(reg);
}
auto addr = ila->NewBvState("address", 8);
auto cnt = ila->NewBvState("counter", 8);
auto mem = ila->NewMemState("memory", 8, 8);
// valid
ila->SetValid(ExprFuse::BoolConst(true));
// Instruction 1: (start == 1 && opcode = 1)
// * copy the value of %reg n-1 to %reg n (for all n = [1:15])
auto instr_1 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(1, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_1->SetDecode(decode);
}
{ // updates
instr_1->AddUpdate(regs[0], regs[0]);
for (auto i = 1; i < reg_num_; i++) {
instr_1->AddUpdate(regs[i], regs[i - 1]);
}
}
// Instruction 2: (start == 1 && opcode == 2)
// * copy the value of %reg n-1 to %reg n (n = %counter).
// * if (%counter == 0) then copy %reg 15 to %reg 0
auto instr_2 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(2, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_2->SetDecode(decode);
}
{ // updates
for (auto i = 0; i < reg_num_; i++) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
ExprPtr next_i = NULL;
if (i == 0) {
next_i = ExprFuse::Ite(cnd_i, regs[reg_num_ - 1], regs[0]);
} else {
next_i = ExprFuse::Ite(cnd_i, regs[i - 1], regs[i]);
}
instr_2->AddUpdate(regs[i], next_i);
}
}
// Instruction 3: (start == 1 && opcode == 3)
// - swap the value stored in %memory, pointed by %address, with %register n.
// - (n == %counter)
auto instr_3 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(3, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_3->SetDecode(decode);
}
{ // updates
auto mem_val = ExprFuse::Load(mem, addr);
for (auto i = 0; i < reg_num_; i++) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
auto next_i = ExprFuse::Ite(cnd_i, mem_val, regs[i]);
instr_3->AddUpdate(regs[i], next_i);
}
auto reg_val = regs[reg_num_ - 1];
for (auto i = reg_num_ - 2; i >= 0; i--) {
auto cnd_i = ExprFuse::Eq(cnt, ExprFuse::BvConst(i, 8));
reg_val = ExprFuse::Ite(cnd_i, regs[i], reg_val);
}
auto mem_next = ExprFuse::Store(mem, addr, reg_val);
instr_3->AddUpdate(mem, mem_next);
}
// Instruction 4: (start == 1 && opcode == 4)
// - sum up the value in %register [0-14] and store to %register 15.
auto instr_4 = ila->NewInstr();
{ // decode
auto decode_start = ExprFuse::Eq(start, ExprFuse::BoolConst(true));
auto decode_opcode = ExprFuse::Eq(opcode, ExprFuse::BvConst(4, 3));
auto decode = ExprFuse::And(decode_start, decode_opcode);
instr_4->SetDecode(decode);
}
{ // updates
auto sum = regs[reg_num_ - 2];
for (auto i = reg_num_ - 3; i >= 0; i--) {
sum = ExprFuse::Add(sum, regs[i]);
}
instr_4->AddUpdate(regs[reg_num_ - 1], sum);
}
return ila;
}
} // namespace ila
| [
"byhuang1992@gmail.com"
] | byhuang1992@gmail.com |
a3166c44c22db495c1397ec958f65ddafa88a755 | d4c1fd70ef2f545d238bdbf34fac6fb8e45e2509 | /network_macro.h | eb32ad960b31478b555d1feda4113cbdb3f5ed0a | [] | no_license | fourseaLee/network | dcedc67615321b90a0d9ddee991b22610cf1240e | ff5d58558304b905d6e27ef126a132fc38272299 | refs/heads/master | 2020-08-20T06:12:43.277990 | 2019-10-18T09:36:39 | 2019-10-18T09:36:39 | 215,990,366 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,519 | h | #ifndef CONFIG_NETWORK_H
#define CONFIG_NETWORK_H
#include <stddef.h>
#include <stdint.h>
#include <string>
//! total number of buckets for tried addresses
#define ADDRMAN_TRIED_BUCKET_COUNT_LOG2 8
//! total number of buckets for new addresses
#define ADDRMAN_NEW_BUCKET_COUNT_LOG2 10
//! maximum allowed number of entries in buckets for new and tried addresses
#define ADDRMAN_BUCKET_SIZE_LOG2 6
//! over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread
#define ADDRMAN_TRIED_BUCKETS_PER_GROUP 8
//! over how many buckets entries with new addresses originating from a single group are spread
#define ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP 64
//! in how many buckets for entries with new addresses a single address may occur
#define ADDRMAN_NEW_BUCKETS_PER_ADDRESS 8
//! how old addresses can maximally be
#define ADDRMAN_HORIZON_DAYS 30
//! after how many failed attempts we give up on a new node
#define ADDRMAN_RETRIES 3
//! how many successive failures are allowed ...
#define ADDRMAN_MAX_FAILURES 10
//! ... in at least this many days
#define ADDRMAN_MIN_FAIL_DAYS 7
//! the maximum percentage of nodes to return in a getaddr call
#define ADDRMAN_GETADDR_MAX_PCT 23
//! the maximum number of nodes to return in a getaddr call
#define ADDRMAN_GETADDR_MAX 2500
//! Convenience
#define ADDRMAN_TRIED_BUCKET_COUNT (1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2)
#define ADDRMAN_NEW_BUCKET_COUNT (1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2)
#define ADDRMAN_BUCKET_SIZE (1 << ADDRMAN_BUCKET_SIZE_LOG2)
//extern limitedmap<uint256, int64_t> mapAlreadyAskedFor;
// Dump addresses to peers.dat and banlist.dat every 15 minutes (900s)
#define DUMP_ADDRESSES_INTERVAL 900
// We add a random period time (0 to 1 seconds) to feeler connections to prevent synchronization.
#define FEELER_SLEEP_WINDOW 1
#if !defined(HAVE_MSG_NOSIGNAL)
#define MSG_NOSIGNAL 0
#endif
// MSG_DONTWAIT is not available on some platforms, if it doesn't exist define it as 0
#if !defined(HAVE_MSG_DONTWAIT)
#define MSG_DONTWAIT 0
#endif
// Fix for ancient MinGW versions, that don't have defined these in ws2tcpip.h.
// Todo: Can be removed when our pull-tester is upgraded to a modern MinGW version.
#ifdef WIN32
#ifndef PROTECTION_LEVEL_UNRESTRICTED
#define PROTECTION_LEVEL_UNRESTRICTED 10
#endif
#ifndef IPV6_PROTECTION_LEVEL
#define IPV6_PROTECTION_LEVEL 23
#endif
#endif
//CCriticalSection cs_mapLocalHost;
//#define HAVE_DECL_STRNLEN 1;
#endif // CONFIG_NETWORK_H
| [
"913357989@qq.com"
] | 913357989@qq.com |
ab1ee89f2285c50d52353a294f2b80408088beb1 | 85e7114ea63a080c1b9b0579e66c7a2d126cffec | /SDK/SoT_ALK_ThirdPerson_Male_Thin_classes.hpp | 1f60a59039557036775fcb3c393d18ce27f7810a | [] | no_license | EO-Zanzo/SeaOfThieves-Hack | 97094307d943c2b8e2af071ba777a000cf1369c2 | d8e2a77b1553154e1d911a3e0c4e68ff1c02ee51 | refs/heads/master | 2020-04-02T14:18:24.844616 | 2018-10-24T15:02:43 | 2018-10-24T15:02:43 | 154,519,316 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 748 | hpp | #pragma once
// Sea of Thieves (1.2.6) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SoT_ALK_ThirdPerson_Male_Thin_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass ALK_ThirdPerson_Male_Thin.ALK_ThirdPerson_Male_Thin_C
// 0x0000 (0x0028 - 0x0028)
class UALK_ThirdPerson_Male_Thin_C : public UAnimationDataStoreId
{
public:
static UClass* StaticClass()
{
static auto ptr = UObject::FindObject<UClass>("BlueprintGeneratedClass ALK_ThirdPerson_Male_Thin.ALK_ThirdPerson_Male_Thin_C");
return ptr;
}
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
7ae6b8914c15c3e41d0ae5bed7d4093afbe6c3b6 | e11b3e40cd7f202a23e8d5567693e2a9de57abc1 | /中本's 後期課題/XFileDraw/Slider.cpp | 6b9d2f4e1ccdf347ef029fdd8987f686d2e72ee0 | [] | no_license | Kasugai0083/Library | b6525c905a74f0d85373e9507c20f8e69ebdd340 | 857543da88dfe12c86c9735893f1b0bbd82f16f1 | refs/heads/master | 2020-12-28T16:24:41.531527 | 2020-02-18T12:56:15 | 2020-02-18T12:56:15 | 238,405,104 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,785 | cpp | #include "Slider.h"
void UpdateSliderNextValue(float next_value, Slider& out_slider)
{
// 値を更新する
out_slider.NextValue = max(out_slider.MinValue, min(next_value, out_slider.MaxValue));
// 今の値と新しい値の差を出して、速度を算出する
float distance = fabsf(out_slider.CurrentValue - out_slider.NextValue);
// 移動にかかるフレーム数
float moev_frame = 60.0f;
out_slider.MoveSpeed = distance / moev_frame;
}
void UpdateSliderCurrentValue(Slider& out_slider)
{
// NextValueとCurrentValueに差があればMoveSpeedで演算する
if (out_slider.CurrentValue <= out_slider.NextValue)
{
out_slider.CurrentValue = min(out_slider.CurrentValue + out_slider.MoveSpeed, out_slider.NextValue);
}
else
{
out_slider.CurrentValue = max(out_slider.CurrentValue - out_slider.MoveSpeed, out_slider.NextValue);
}
}
void ReverseMove(float rate, float size, float& out_pos, float& out_tex_pos, float& out_size)
{
// 比率から描画開始位置をずらす
out_pos = (out_pos + size) - (rate * size);
// サイズも比率で変更する
out_size *= rate;
// テクスチャの座標も比率の分だけずらす
out_tex_pos += (1.0f - rate) * size;
}
void DrawSliderRectVersion(const Slider& slider)
{
}
void DrawSliderUVMappingVersion(const Slider& slider)
{
D3DXMATRIX world, trans;
D3DXMatrixIdentity(&world);
D3DXMatrixIdentity(&trans);
// 移動
D3DXMatrixTranslation(&trans, slider.X, slider.Y, 0.0f);
world = trans;
GetD3DDevice()->SetTransform(D3DTS_WORLD, &world);
TEXTURE_DATA* tex_data = GetTexture(slider.Texture);
// 変更される情報をsliderとtexture_dataから取得する
float pos_x = slider.X;
float pos_y = slider.Y;
float tex_x = 0.0f;
float tex_y = 0.0f;
float tex_width = tex_data->m_Width;
float tex_height = tex_data->m_Height;
// 現状の値を比率として算出する
float rate = (slider.CurrentValue - slider.MinValue) / (slider.MaxValue - slider.MinValue);
// 各進行方向による処理を実装する
if (slider.Dir == Direction::LeftToRight)
{
// 横幅に比率を掛けてサイズを調整する
tex_width *= rate;
}
else if (slider.Dir == Direction::RightToLeft)
{
// 最小 => 最大の方向とX軸の最小 => 最大が逆なので反転させる
ReverseMove(rate, tex_width, pos_x, tex_x, tex_width);
}
else if (slider.Dir == Direction::UpToDown)
{
// 縦幅に比率を掛けてサイズを調整する
tex_height *= rate;
}
else if (slider.Dir == Direction::DownToUp)
{
// 最小 => 最大の方向とY軸の最小 => 最大が逆なので反転させる
ReverseMove(rate, tex_height, pos_y, tex_y, tex_height);
}
DrawUVMappingTexture(
pos_x,
pos_y,
tex_data,
tex_x,
tex_y,
tex_width,
tex_height
);
}
| [
"kasugai0083@gmail.com"
] | kasugai0083@gmail.com |
de2cb9f0c57efbc07fe20d735cc547d894ebf6e7 | e223dd342629b52d71c0c822fa84c97e437d48a8 | /libnhttp/nhttp/server/extensions/http_vpath.hpp | 827b01c3591f1429335551b29ebc86b287ff9ac0 | [
"MIT",
"Unlicense"
] | permissive | jay94ks/libnhttp | e43d3ce46fc8c0d7ac3c302cf658f2af01448c69 | a244eb2d04c339454ef4831b43d1ab270ee7d13d | refs/heads/main | 2023-04-12T22:48:27.319614 | 2021-04-17T14:54:23 | 2021-04-17T14:54:23 | 356,216,874 | 5 | 1 | MIT | 2021-04-17T14:54:23 | 2021-04-09T09:39:31 | HTML | UTF-8 | C++ | false | false | 1,880 | hpp | #pragma once
#include "http_extension.hpp"
#include "../http_context.hpp"
#include "../http_link.hpp"
#include <stack>
namespace nhttp {
namespace server {
class http_vpath;
using http_vpath_ptr = std::shared_ptr<http_vpath>;
/**
* class http_path_tag.
* tag for marking the request is handled by.
*/
class NHTTP_API http_vpath_tag {
public:
std::stack<http_vpath*> vpaths;
std::stack<std::string> subpaths;
};
/**
* class http_vpath.
* handles the HTTP path.
* @note path-related extensions should override this class.
*/
class NHTTP_API http_vpath : public http_extendable_extension {
private:
std::string base_path;
public:
http_vpath() { }
http_vpath(std::string path);
virtual ~http_vpath() { }
private:
virtual bool on_collect(std::shared_ptr<http_context> context) override;
protected:
/* called before calling the on_handle method, test if it can be handled. */
virtual bool on_enter(std::shared_ptr<http_context> context) override;
/* called after calling the on_handle method, clean states if needed. */
virtual void on_leave(std::shared_ptr<http_context> context) override;
protected:
/* called for handling a context. */
virtual bool on_handle(std::shared_ptr<http_context> context, extended_t) override { return false; }
};
/* get current scoped vpath instance. */
inline http_vpath* vpath_of(std::shared_ptr<http_context> context) {
http_vpath_tag* tag = context->link->get_tag_ptr<http_vpath_tag>();
if (tag && tag->vpaths.size())
return tag->vpaths.top();
return nullptr;
}
/* get current scoped sub-path. */
inline const std::string& subpath_of(std::shared_ptr<http_context> context) {
http_vpath_tag* tag = context->link->get_tag_ptr<http_vpath_tag>();
if (tag && tag->subpaths.size())
return tag->subpaths.top();
return context->request->get_target().get_path();
}
}
} | [
"jay94ks@gmail.com"
] | jay94ks@gmail.com |
879c342bdbd2e5cfb0e6839b68d8427d3e8a5ec3 | a665c2ef9dd3301155a044332318c685e5f610d8 | /test/storage.cpp | 7b26a8889c8b5e833266d9ca6bbb2e0b2a2589d4 | [] | no_license | Semisonic/IQOptionTestTask | 2054a70189cc494ceaf801d28c973a59edb691f2 | a0cfd2a25583b9e25708a21d958248f00fc14fca | refs/heads/master | 2021-05-05T15:17:12.277989 | 2018-02-13T16:32:20 | 2018-02-13T16:32:20 | 117,302,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,203 | cpp | #include "storage.h"
#include <list>
#include <map>
#include <random>
#include <set>
#include <iostream>
#include "name_generator.h"
struct FullUserDataEx : public FullUserData {
bool ratingReceived {false};
std::list<monetary_t> winningsHistory;
std::list<std::string> nameList;
};
constexpr int historyLength = 6;
using FullUserDataPtr = std::unique_ptr<FullUserDataEx>;
struct ValidationReport {
int incomingRatings {0};
int incomingErrors {0};
int validRatings {0};
int validErrors {0};
struct {
int outdatedWinnings {0};
} almostValidRatings;
struct {
int ratingFullyMessed {0};
int ratingSizeWrong {0};
int userNotFound {0};
int userPositionWrong {0};
int topPositionsWrong {0};
int surroundingsWrong {0};
} invalidRatings;
int failures {0};
};
// --------------------------------------------------------------------- //
/*
* UserDataStorage::Impl class
*/
// --------------------------------------------------------------------- //
class UserDataStorage::Impl {
using UserDataMap = std::map<id_t, FullUserDataPtr>;
// 0 - active, connected
// 1 - active, disconnected
// 2 - silent, connected
// 3 - silent, disconnected
using UserArray = std::array<UserDataMap, 4>;
using RatingVector = std::vector<FullUserData*>;
using MapIndexSet = std::set<int>; // indexes are from the map array
using IndexMap = std::map<id_t, FullUserDataEx*>;
using RatingMultimap = std::multimap<monetary_t, FullUserData*, std::greater<monetary_t>>;
public:
Impl () : m_gen {std::random_device{}()} {}
void setNextMinuteData (const Impl& newData) {
publishValidationReport();
// deep copy of user data and build the index
{
m_index.clear();
auto itMapTo = m_users.begin();
for (const auto& itMapFrom : newData.m_users) {
itMapTo->clear();
for (const auto& user : itMapFrom) {
auto newUser = itMapTo->emplace(user.first, std::make_unique<FullUserDataEx>(*user.second.get()));
m_index.emplace(newUser.first->first, newUser.first->second.get());
}
++itMapTo;
}
}
// that works, but I'd never do stuff like that in production code =)
memset(&m_report, 0, sizeof(ValidationReport));
// rebuilding rating
recalculateRating();
}
id_t getRandomUser (unsigned int userFlags) {
MapIndexSet maps {0, 1, 2, 3};
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::CONNECTED))) {
maps.erase(0);
maps.erase(2);
}
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::DISCONNECTED))) {
maps.erase(1);
maps.erase(3);
}
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::ACTIVE))) {
maps.erase(0);
maps.erase(1);
}
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::SILENT))) {
maps.erase(2);
maps.erase(3);
}
auto userCount = getCumulativeSize(maps);
std::uniform_int_distribution<> dis(0, userCount - 1);
auto index = dis(m_gen);
return getUserByIndex(maps, index);
}
int getUserGroupSize (unsigned int userFlags) const {
MapIndexSet maps {0, 1, 2, 3};
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::CONNECTED))) {
maps.erase(0);
maps.erase(2);
}
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::DISCONNECTED))) {
maps.erase(1);
maps.erase(3);
}
if (!(userFlags & static_cast<unsigned int>(UserDataStorage::UserFlags::ACTIVE))) {
maps.erase(0);
maps.erase(1);
}
return getCumulativeSize(maps);
}
id_t getFakeUserId () const {
static int count {0};
return UserDataConstants::invalidId + count--;
}
BasicUserData* generateNewUser () {
static id_t newUserId {0};
FullUserDataPtr newUser {new FullUserDataEx};
auto userData = newUser.get();
userData->id = newUserId;
userData->name = NameGenerator::newName();
m_users[3].emplace(newUserId, std::move(newUser));
m_index.emplace(newUserId++, userData);
return userData;
}
void importNewUser (BasicUserData* ud) {
FullUserDataPtr newUser {new FullUserDataEx};
auto userData = newUser.get();
userData->id = ud->id;
userData->name = ud->name;
m_users[3].emplace(ud->id, std::move(newUser));
m_index.emplace(ud->id, userData);
}
BasicUserData* renameUser (id_t id, const std::string& newName) {
auto userData = m_index.find(id);
assert(userData != m_index.end());
userData->second->nameList.push_back(userData->second->name);
if (userData->second->nameList.size() > historyLength) {
userData->second->nameList.pop_front();
}
userData->second->name = newName;
return userData->second;
}
BasicUserData* connectUser (id_t id, unsigned char second) {
auto userData = m_index.find(id);
assert(userData != m_index.end());
userData->second->secondConnected = second;
if (userData->second->winnings) {
findAndMigrate(m_users[1], m_users[0], id);
} else {
findAndMigrate(m_users[3], m_users[2], id);
}
return userData->second;
}
BasicUserData* disconnectUser (id_t id) {
auto userData = m_index.find(id);
assert(userData != m_index.end());
userData->second->secondConnected = UserDataConstants::invalidSecond;
if (userData->second->winnings) {
findAndMigrate(m_users[0], m_users[1], id);
userData->second->ratingReceived = false; // to prevent false positive unsolicited ratings received warnings
} else {
findAndMigrate(m_users[2], m_users[3], id);
}
return userData->second;
}
FullUserData* fixUserWinnings (id_t id, monetary_t winnings) {
auto userData = m_index.find(id);
assert(userData != m_index.end());
if (userData->second->winnings == 0) {
if (userData->second->secondConnected == UserDataConstants::invalidSecond) {
findAndMigrate(m_users[3], m_users[1], id);
} else {
findAndMigrate(m_users[2], m_users[0], id);
}
}
userData->second->winningsHistory.push_back(userData->second->winnings);
if (userData->second->winningsHistory.size() > historyLength) {
userData->second->winningsHistory.pop_front();
}
userData->second->winnings += winnings;
}
void validateError (const ErrorPtr& error) {
using ProtocolError = IpcProto::ProtocolConstants::ProtocolError;
++m_report.incomingErrors;
switch (error->getErrorCode()) {
case ProtocolError::MULTIPLE_REGISTRATION:
{
IpcProto::MultipleRegistrationError* e = static_cast<IpcProto::MultipleRegistrationError*>(error.get());
++m_report.failures;
std::cout << "--- Unexpected multiple registration error: id = " << e->getUserId() << std::endl;
break;
}
case ProtocolError::USER_UNRECOGNIZED:
{
IpcProto::UserUnrecognizedError* e = static_cast<IpcProto::UserUnrecognizedError*>(error.get());
if (e->getUserId() < 0) {
// fake user id, no wonder it didn't get recognized
++m_report.validErrors;
break;
}
auto user = m_index.find(e->getUserId());
++m_report.failures;
std::cout << "--- Unexpected user unrecognized error: id = " << e->getUserId() << std::endl;
if (user == m_index.end()) {
std::cout << "~~~~~ WTF! I don't recognize this user either!!" << std::endl;
}
break;
}
default: assert(false);
}
}
void validateRating (const IpcProto::RatingPackMessage& rating, connect_time_t currentSecond) {
bool failure {false};
++m_report.incomingRatings;
using RatingDimensions = IpcProto::ProtocolConstants::RatingDimensions;
// 1) checking user id validity
if (rating.getUserId() < 0 || rating.getUserId() >= m_index.size()) {
++m_report.invalidRatings.ratingFullyMessed;
std::cout << "!!! Rating error: complete mess (user id = " << rating.getUserId() << ")" << std::endl;
++m_report.failures;
// can't expect to trust other sections of the rating, no point in continuing
return;
}
auto userData = m_index.find(rating.getUserId());
// 2) checking rating size
if (rating.getRatingLength() != m_rating.size()) {
failure = true;
++m_report.invalidRatings.ratingSizeWrong;
std::cout << "! Rating error: wrong rating size ("
<< rating.getRatingLength() << " instead of " << m_rating.size() << ")" << std::endl;
}
// 3) checking the user's place
if (userData != m_index.end()) {
userData->second->ratingReceived = true;
if (userData->second->rating != UserDataConstants::invalidRating) {
// user wasn't added after the rating had been recalculated
if (userData->second->rating != rating.getRatingPos()) {
failure = true;
++m_report.invalidRatings.userPositionWrong;
std::cout << "! Rating error: wrong user position ("
<< rating.getRatingPos() << " instead of " << userData->second->rating << ")" << std::endl;
}
} else {
if (rating.getRatingPos() != rating.getRatingLength()) {
failure = true;
++m_report.invalidRatings.userPositionWrong;
std::cout << "! Rating error: wrong user position ("
<< rating.getRatingPos() << " instead of " << m_rating.size() << ")" << std::endl;
}
}
} else {
failure = true;
++m_report.invalidRatings.userNotFound;
std::cout << "! Rating error: user not found (id = "
<< rating.getUserId() << ")" << std::endl;
}
// 4) check top positions
{
const IpcProto::RatingPackMessage::rating_pack_t& ratings = rating.getRatings();
auto topPosCount = std::min(static_cast<int>(ratings.size()), RatingDimensions::topPositions);
for (auto i = 0; i < topPosCount; ++i) {
auto result = validateSingleRating(ratings[i], i);
if (result) {
failure = true;
++m_report.invalidRatings.topPositionsWrong;
//reportSingleRating(ratings[i], i, result, "top user");
}
}
}
// 5) check surroundings
if (rating.getRatingLength() > RatingDimensions::topPositions) {
const IpcProto::RatingPackMessage::rating_pack_t& ratings = rating.getRatings();
auto expectedPlace = std::max(RatingDimensions::topPositions, rating.getRatingPos() - RatingDimensions::competitionDistance);
for (auto i = RatingDimensions::topPositions; i < ratings.size(); ++i, ++expectedPlace) {
auto result = validateSingleRating(ratings[i], expectedPlace);
if (result) {
failure = true;
++m_report.invalidRatings.surroundingsWrong;
//reportSingleRating(ratings[i], expectedPlace, result, "surrounding user");
}
}
}
if (failure) {
++m_report.failures;
} else {
++m_report.validRatings;
}
}
private:
void recalculateRating () {
RatingMultimap ratingBuilder;
auto proc = [&ratingBuilder](FullUserData* ud) { ratingBuilder.emplace(ud->winnings, ud); };
forEachInMaps(MapIndexSet {0, 1}, proc);
m_rating.resize(ratingBuilder.size());
auto ratingPlace {0};
for (auto user : ratingBuilder) {
m_rating[ratingPlace] = user.second;
user.second->rating = ratingPlace++;
}
// ratingPlace by now is a rating length
auto proc2 = [](FullUserData* ud) { ud->rating = UserDataConstants::invalidRating; };
forEachInMaps(MapIndexSet {2, 3}, proc2);
}
void publishValidationReport () {
auto unsolicitedRatingsReceived {0};
auto requestedRatingsMissed {0};
auto proc1 = [&requestedRatingsMissed](const FullUserDataEx* ud) { if (!ud->ratingReceived) ++requestedRatingsMissed; };
auto proc2 = [&unsolicitedRatingsReceived](const FullUserDataEx* ud) { if (ud->ratingReceived) ++unsolicitedRatingsReceived; };
forEachInMaps(MapIndexSet{0}, proc1);
forEachInMaps(MapIndexSet{1,3}, proc2);
std::cout << "********************** Minutely validation report **********************" << std::endl
<< "* Incoming ratings: " << m_report.incomingRatings << std::endl
<< "* Valid ratings: " << m_report.validRatings << std::endl
<< "* Incoming errors: " << m_report.incomingErrors << std::endl
<< "* Valid errors: " << m_report.validErrors << std::endl
<< "** Almost valid ratings **" << std::endl
<< "* Winnings outdated but correct: " << m_report.almostValidRatings.outdatedWinnings << std::endl
<< "*********** !!! Failures !!! ***********" << std::endl
<< "* Invalid ratings: " << m_report.incomingRatings - m_report.validRatings << std::endl
<< "* Invalid errors: " << m_report.incomingErrors - m_report.validErrors << std::endl
<< "* Unsolicited ratings received: " << unsolicitedRatingsReceived << std::endl
<< "* Requested ratings missed: " << requestedRatingsMissed << std::endl
<< "* Failures overall: " << m_report.failures << std::endl
<< "***** Invalid rating details *****" << std::endl
<< "* Total mess: " << m_report.invalidRatings.ratingFullyMessed << std::endl
<< "* Rating size wrong: " << m_report.invalidRatings.ratingSizeWrong << std::endl
<< "* User not found: " << m_report.invalidRatings.userNotFound << std::endl
<< "* User position wrong: " << m_report.invalidRatings.userPositionWrong << std::endl
<< "* Top positions wrong: " << m_report.invalidRatings.topPositionsWrong << std::endl
<< "* Surroundings wrong: " << m_report.invalidRatings.surroundingsWrong << std::endl
<< "********************** Report end **********************" << std::endl;
}
private:
id_t getUserByIndex (const MapIndexSet& mapIndexes, int userIndex) const {
for (auto mi : mapIndexes) {
if (userIndex >= m_users[mi].size()) {
userIndex -= m_users[mi].size();
continue;
}
for (const auto& user : m_users[mi]) {
if (!userIndex--) {
return user.first;
}
}
}
assert(false);
}
int getCumulativeSize (const MapIndexSet& mapIndexes) const {
int result {0};
for (auto mi : mapIndexes) {
result += m_users[mi].size();
}
return result;
}
static void findAndMigrate (UserDataMap& mapFrom, UserDataMap& mapTo, id_t id) {
auto user = mapFrom.find(id);
assert(user != mapFrom.end());
mapTo.insert(mapFrom.extract(user));
}
template <typename Processor>
void forEachInMaps (const MapIndexSet& mapIndexes, Processor proc) {
for (auto mi : mapIndexes) {
for (auto& user : m_users[mi]) {
proc(user.second.get());
}
}
}
// 0 - OK
// 1 - user not found
// 2 - wrong position
// 4 - wrong winnings
// 8 - wrong name
int validateSingleRating (const IpcProto::RatingPackMessage::RatingEntry& rating, int expectedPlace) {
auto userData = m_index.find(rating.id);
auto result {0};
if (userData == m_index.end()) {
return 1;
}
if (userData->second->rating != expectedPlace) {
result |= 2;
}
if (userData->second->winnings != rating.winnings) {
auto history = std::find(userData->second->winningsHistory.rbegin(), userData->second->winningsHistory.rend(), rating.winnings);
if (history != userData->second->winningsHistory.rend()) {
// winnings were found in the history, might be not a total error after all
++m_report.almostValidRatings.outdatedWinnings;
result &= ~2;
} else {
result |= 4;
}
}
#ifdef PASS_NAMES_AROUND
std::string newName {(char*)rating.name.data(), rating.name.size()};
if (userData->second->name != newName) {
auto history = std::find(userData->second->nameList.rbegin(), userData->second->nameList.rend(), newName);
if (history == userData->second->nameList.rend()) {
result |= 8;
}
}
#endif
return result;
}
void reportSingleRating (const IpcProto::RatingPackMessage::RatingEntry& rating, int expectedPlace, int validationResult,
const std::string& positionMoniker) {
if (validationResult & 1) {
std::cout << "! Rating error: " << positionMoniker << " not found (id = "
<< rating.id << ")" << std::endl;
}
if (validationResult & 2) {
std::cout << "! Rating error: " << positionMoniker << " position wrong (" << expectedPlace << " instead of "
<< m_index.find(rating.id)->second->rating << ")" << std::endl;
}
if (validationResult & 4) {
std::cout << "! Rating error: " << positionMoniker << " winnings wrong (" << rating.winnings << " instead of "
<< m_index.find(rating.id)->second->winnings << ")" << std::endl;
}
#ifdef PASS_NAMES_AROUND
if (validationResult & 8) {
std::cout << "! Rating error: " << positionMoniker << " name wrong (\"" << std::string((char*)rating.name.data(), rating.name.size())
<< "\" instead of \"" << m_index.find(rating.id)->second->name << "\")" << std::endl;
}
#endif
}
private:
UserArray m_users;
IndexMap m_index;
RatingVector m_rating;
ValidationReport m_report;
int m_userPromise {0};
std::mt19937 m_gen;
};
// --------------------------------------------------------------------- //
/*
* UserDataStorage methods
*/
// --------------------------------------------------------------------- //
UserDataStorage::UserDataStorage () : m_impl {std::make_unique<UserDataStorage::Impl>()} {}
UserDataStorage::~UserDataStorage () {}
void UserDataStorage::setNextMinuteData (const UserDataStorage& uds) {
m_impl->setNextMinuteData(*uds.m_impl.get());
}
id_t UserDataStorage::getRandomUser (unsigned int userFlags) const {
m_impl->getRandomUser(userFlags);
}
int UserDataStorage::getUserGroupSize (unsigned int userFlags) const {
m_impl->getUserGroupSize(userFlags);
}
id_t UserDataStorage::getFakeUserId () const {
return m_impl->getFakeUserId();
}
BasicUserData* UserDataStorage::generateNewUser () {
return m_impl->generateNewUser();
}
void UserDataStorage::importNewUser (BasicUserData *ud) {
m_impl->importNewUser(ud);
}
BasicUserData* UserDataStorage::renameUser (id_t id, const std::string& newName) {
return m_impl->renameUser(id, newName);
}
BasicUserData* UserDataStorage::connectUser (id_t id, unsigned char second) {
return m_impl->connectUser(id, second);
}
BasicUserData* UserDataStorage::disconnectUser (id_t id) {
return m_impl->disconnectUser(id);
}
FullUserData* UserDataStorage::fixUserWinnings (id_t id, monetary_t winnings) {
return m_impl->fixUserWinnings(id, winnings);
}
void UserDataStorage::validateError (const ErrorPtr& error) {
m_impl->validateError(error);
}
void UserDataStorage::validateRating (const IpcProto::RatingPackMessage& rating, connect_time_t currentSecond) {
m_impl->validateRating(rating, currentSecond);
} | [
"Semisonic.Tovaroved@gmail.com"
] | Semisonic.Tovaroved@gmail.com |
728952189693c42c993518566838e6af9951a3c1 | 40e716042bcb224a7e8cddfe5aac31fcfd23a64a | /cocos2dx_lizi_1/游戏完成/Classes/MagicMatrixSprite.h | beb79d0d9761505dca9274d7385cccac2657830f | [] | no_license | wuxuanjian/cocos2d | 23e27f109cf6044c323904adddf7b2c6f224380d | d79784550e3889b8fbe024f20b5ae03d820bdde5 | refs/heads/master | 2021-01-25T05:22:02.509034 | 2014-03-13T05:47:11 | 2014-03-13T05:47:11 | 17,437,864 | 4 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | h | #ifndef __MAGICMATRIX_SPRITE_H__
#define __MAGICMATRIX_SPRITE_H__
#include "cocos2d.h"
#include "DefenderGameLayer.h"
//此类是魔法矩阵
class MagicMatrixSprite:public cocos2d::CCNode{
public:
MagicMatrixSprite();
~MagicMatrixSprite();
CC_SYNTHESIZE(float,hurt,Hurt);// 伤害值
CC_SYNTHESIZE(bool,avail,Avail);//是否可用
CC_PROPERTY(bool,activation,Activation);// 是否激活魔法阵
// 注意一点图片必须放在缓存里面
static MagicMatrixSprite* createWithPic(char* pMagicPic,char* pMagicPicBg); // 第一个参数CD 的比较暗淡的图片 第二个是比亮的图片
CC_SYNTHESIZE(float,mana,Mana);// 消耗魔法值
void runMagicCDAnimation();// 执行魔法CD 动画
CC_SYNTHESIZE(char*,speciaPicName,SpeciaPicName);// 图片的名字
CC_SYNTHESIZE(char*,speciaFileName,SpeciaFileName);// plist 文件的名字
CC_SYNTHESIZE(char*,speciaName,SpeciaName);//特效的通用名字
CC_SYNTHESIZE(int,speciaCount,SpeciaCount);//特效的图片的张数
CC_SYNTHESIZE(cocos2d::CCPoint,anchorPo,AnchorPo);// 当前魔法特效的相对位置
CC_SYNTHESIZE(cocos2d::CCRect,hurtRect,HurtRect);//收到的魔法攻击范围
void runSpecial(DefenderGameLayer* layer,cocos2d::CCPoint point);//执行播放当前技能特效的动画
void initialization();// 重新初始当前的魔法阵
private:
bool setUpdateView(char* pMagicPic,char* pMagicPicBg );
cocos2d::CCProgressTimer *ptss;// 魔法阵的CD 动画
void runMagicCDAnimationCallBack(cocos2d::CCNode* pSed);
void runSpecialCallBack(cocos2d::CCNode* pSend);
void detectMagic(float ti);// 检测当前魔法是否够用
};
#endif
| [
"xuanj_love@163.com"
] | xuanj_love@163.com |
f7b3e4d4acce9354965865b5c34349fa43f368fc | ec17c220a74fa60bf0e0bd1e6adbb618906f2033 | /Pre-Launch/src/util.h | 014a8384e112e6b0af4ee7d2cf7cb7a0ef4aeb8b | [
"MIT"
] | permissive | RedOakCoin/RedOakTestNet | bcd4781d48bdfba4e11f0a569c3301015f3a47d6 | 4dab88e391c15be6c3a8d66d5b5e6f6ec57acd0b | refs/heads/master | 2021-04-12T04:30:07.089007 | 2014-10-11T21:03:37 | 2014-10-11T21:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,498 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 redoakcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_H
#define BITCOIN_UTIL_H
#include "uint256.h"
#ifndef WIN32
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#else
typedef int pid_t; /* define for windows compatiblity */
#endif
#include <map>
#include <vector>
#include <string>
#include <boost/thread.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <openssl/sha.h>
#include <openssl/ripemd.h>
#include "netbase.h" // for AddTimeData
typedef long long int64;
typedef unsigned long long uint64;
static const int64 COIN = 100000000;
static const int64 CENT = 1000000;
#define loop for (;;)
#define BEGIN(a) ((char*)&(a))
#define END(a) ((char*)&((&(a))[1]))
#define UBEGIN(a) ((unsigned char*)&(a))
#define UEND(a) ((unsigned char*)&((&(a))[1]))
#define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0]))
#define printf OutputDebugStringF
#ifndef PRI64d
#if defined(_MSC_VER) || defined(__MSVCRT__)
#define PRI64d "I64d"
#define PRI64u "I64u"
#define PRI64x "I64x"
#else
#define PRI64d "lld"
#define PRI64u "llu"
#define PRI64x "llx"
#endif
#endif
// This is needed because the foreach macro can't get over the comma in pair<t1, t2>
#define PAIRTYPE(t1, t2) std::pair<t1, t2>
// Align by increasing pointer, must have extra space at end of buffer
template <size_t nBytes, typename T>
T* alignup(T* p)
{
union
{
T* ptr;
size_t n;
} u;
u.ptr = p;
u.n = (u.n + (nBytes-1)) & ~(nBytes-1);
return u.ptr;
}
#ifdef WIN32
#define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0
#ifndef S_IRUSR
#define S_IRUSR 0400
#define S_IWUSR 0200
#endif
#define unlink _unlink
#else
#define _vsnprintf(a,b,c,d) vsnprintf(a,b,c,d)
#define strlwr(psz) to_lower(psz)
#define _strlwr(psz) to_lower(psz)
#define MAX_PATH 1024
inline void Sleep(int64 n)
{
/*Boost has a year 2038 problem— if the request sleep time is past epoch+2^31 seconds the sleep returns instantly.
So we clamp our sleeps here to 10 years and hope that boost is fixed by 2028.*/
boost::thread::sleep(boost::get_system_time() + boost::posix_time::milliseconds(n>315576000000LL?315576000000LL:n));
}
#endif
extern std::map<std::string, std::string> mapArgs;
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
extern bool fDebug;
extern bool fDebugNet;
extern bool fPrintToConsole;
extern bool fPrintToDebugger;
extern bool fRequestShutdown;
extern bool fShutdown;
extern bool fDaemon;
extern bool fServer;
extern bool fCommandLine;
extern std::string strMiscWarning;
extern bool fTestNet;
extern bool fNoListen;
extern bool fLogTimestamps;
extern bool fReopenDebugLog;
void RandAddSeed();
void RandAddSeedPerfmon();
int OutputDebugStringF(const char* pszFormat, ...);
int my_snprintf(char* buffer, size_t limit, const char* format, ...);
/* It is not allowed to use va_start with a pass-by-reference argument.
(C++ standard, 18.7, paragraph 3). Use a dummy argument to work around this, and use a
macro to keep similar semantics.
*/
std::string real_strprintf(const std::string &format, int dummy, ...);
#define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
std::string vstrprintf(const std::string &format, va_list ap);
bool error(const char *format, ...);
void LogException(std::exception* pex, const char* pszThread);
void PrintException(std::exception* pex, const char* pszThread);
void PrintExceptionContinue(std::exception* pex, const char* pszThread);
void ParseString(const std::string& str, char c, std::vector<std::string>& v);
std::string FormatMoney(int64 n, bool fPlus=false);
bool ParseMoney(const std::string& str, int64& nRet);
bool ParseMoney(const char* pszIn, int64& nRet);
std::vector<unsigned char> ParseHex(const char* psz);
std::vector<unsigned char> ParseHex(const std::string& str);
bool IsHex(const std::string& str);
std::vector<unsigned char> DecodeBase64(const char* p, bool* pfInvalid = NULL);
std::string DecodeBase64(const std::string& str);
std::string EncodeBase64(const unsigned char* pch, size_t len);
std::string EncodeBase64(const std::string& str);
std::vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid = NULL);
std::string DecodeBase32(const std::string& str);
std::string EncodeBase32(const unsigned char* pch, size_t len);
std::string EncodeBase32(const std::string& str);
void ParseParameters(int argc, const char*const argv[]);
bool WildcardMatch(const char* psz, const char* mask);
bool WildcardMatch(const std::string& str, const std::string& mask);
void FileCommit(FILE *fileout);
int GetFilesize(FILE* file);
bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest);
boost::filesystem::path GetDefaultDataDir();
const boost::filesystem::path &GetDataDir(bool fNetSpecific = true);
boost::filesystem::path GetConfigFile();
boost::filesystem::path GetPidFile();
void CreatePidFile(const boost::filesystem::path &path, pid_t pid);
void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map<std::string, std::vector<std::string> >& mapMultiSettingsRet);
#ifdef WIN32
boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true);
#endif
void ShrinkDebugFile();
int GetRandInt(int nMax);
uint64 GetRand(uint64 nMax);
uint256 GetRandHash();
int64 GetTime();
void SetMockTime(int64 nMockTimeIn);
int64 GetAdjustedTime();
std::string FormatFullVersion();
std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
void AddTimeData(const CNetAddr& ip, int64 nTime);
void runCommand(std::string strCommand);
inline std::string i64tostr(int64 n)
{
return strprintf("%"PRI64d, n);
}
inline std::string itostr(int n)
{
return strprintf("%d", n);
}
inline int64 atoi64(const char* psz)
{
#ifdef _MSC_VER
return _atoi64(psz);
#else
return strtoll(psz, NULL, 10);
#endif
}
inline int64 atoi64(const std::string& str)
{
#ifdef _MSC_VER
return _atoi64(str.c_str());
#else
return strtoll(str.c_str(), NULL, 10);
#endif
}
inline int atoi(const std::string& str)
{
return atoi(str.c_str());
}
inline int roundint(double d)
{
return (int)(d > 0 ? d + 0.5 : d - 0.5);
}
inline int64 roundint64(double d)
{
return (int64)(d > 0 ? d + 0.5 : d - 0.5);
}
inline int64 abs64(int64 n)
{
return (n >= 0 ? n : -n);
}
template<typename T>
std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)
{
std::vector<char> rv;
static char hexmap[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
rv.reserve((itend-itbegin)*3);
for(T it = itbegin; it < itend; ++it)
{
unsigned char val = (unsigned char)(*it);
if(fSpaces && it != itbegin)
rv.push_back(' ');
rv.push_back(hexmap[val>>4]);
rv.push_back(hexmap[val&15]);
}
return std::string(rv.begin(), rv.end());
}
inline std::string HexStr(const std::vector<unsigned char>& vch, bool fSpaces=false)
{
return HexStr(vch.begin(), vch.end(), fSpaces);
}
template<typename T>
void PrintHex(const T pbegin, const T pend, const char* pszFormat="%s", bool fSpaces=true)
{
printf(pszFormat, HexStr(pbegin, pend, fSpaces).c_str());
}
inline void PrintHex(const std::vector<unsigned char>& vch, const char* pszFormat="%s", bool fSpaces=true)
{
printf(pszFormat, HexStr(vch, fSpaces).c_str());
}
inline int64 GetPerformanceCounter()
{
int64 nCounter = 0;
#ifdef WIN32
QueryPerformanceCounter((LARGE_INTEGER*)&nCounter);
#else
timeval t;
gettimeofday(&t, NULL);
nCounter = (int64) t.tv_sec * 1000000 + t.tv_usec;
#endif
return nCounter;
}
inline int64 GetTimeMillis()
{
return (boost::posix_time::ptime(boost::posix_time::microsec_clock::universal_time()) -
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_milliseconds();
}
inline std::string DateTimeStrFormat(const char* pszFormat, int64 nTime)
{
time_t n = nTime;
struct tm* ptmTime = gmtime(&n);
char pszTime[200];
strftime(pszTime, sizeof(pszTime), pszFormat, ptmTime);
return pszTime;
}
template<typename T>
void skipspaces(T& it)
{
while (isspace(*it))
++it;
}
inline bool IsSwitchChar(char c)
{
#ifdef WIN32
return c == '-' || c == '/';
#else
return c == '-';
#endif
}
/**
* Return string argument or default value
*
* @param strArg Argument to get (e.g. "-foo")
* @param default (e.g. "1")
* @return command-line argument or default value
*/
std::string GetArg(const std::string& strArg, const std::string& strDefault);
/**
* Return integer argument or default value
*
* @param strArg Argument to get (e.g. "-foo")
* @param default (e.g. 1)
* @return command-line argument (0 if invalid number) or default value
*/
int64 GetArg(const std::string& strArg, int64 nDefault);
/**
* Return boolean argument or default value
*
* @param strArg Argument to get (e.g. "-foo")
* @param default (true or false)
* @return command-line argument or default value
*/
bool GetBoolArg(const std::string& strArg, bool fDefault=false);
/**
* Set an argument if it doesn't already have a value
*
* @param strArg Argument to set (e.g. "-foo")
* @param strValue Value (e.g. "1")
* @return true if argument gets set, false if it already had a value
*/
bool SoftSetArg(const std::string& strArg, const std::string& strValue);
/**
* Set a boolean argument if it doesn't already have a value
*
* @param strArg Argument to set (e.g. "-foo")
* @param fValue Value (e.g. false)
* @return true if argument gets set, false if it already had a value
*/
bool SoftSetBoolArg(const std::string& strArg, bool fValue);
// Randomize the stack to help protect against buffer overrun exploits
#define IMPLEMENT_RANDOMIZE_STACK(ThreadFn) \
{ \
static char nLoops; \
if (nLoops <= 0) \
nLoops = GetRand(20) + 1; \
if (nLoops-- > 1) \
{ \
ThreadFn; \
return; \
} \
}
template<typename T1>
inline uint256 Hash(const T1 pbegin, const T1 pend)
{
static unsigned char pblank[1];
uint256 hash1;
SHA256((pbegin == pend ? pblank : (unsigned char*)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char*)&hash1);
uint256 hash2;
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
return hash2;
}
class CHashWriter
{
private:
SHA256_CTX ctx;
public:
int nType;
int nVersion;
void Init() {
SHA256_Init(&ctx);
}
CHashWriter(int nTypeIn, int nVersionIn) : nType(nTypeIn), nVersion(nVersionIn) {
Init();
}
CHashWriter& write(const char *pch, size_t size) {
SHA256_Update(&ctx, pch, size);
return (*this);
}
// invalidates the object
uint256 GetHash() {
uint256 hash1;
SHA256_Final((unsigned char*)&hash1, &ctx);
uint256 hash2;
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
return hash2;
}
template<typename T>
CHashWriter& operator<<(const T& obj) {
// Serialize to this stream
::Serialize(*this, obj, nType, nVersion);
return (*this);
}
};
template<typename T1, typename T2>
inline uint256 Hash(const T1 p1begin, const T1 p1end,
const T2 p2begin, const T2 p2end)
{
static unsigned char pblank[1];
uint256 hash1;
SHA256_CTX ctx;
SHA256_Init(&ctx);
SHA256_Update(&ctx, (p1begin == p1end ? pblank : (unsigned char*)&p1begin[0]), (p1end - p1begin) * sizeof(p1begin[0]));
SHA256_Update(&ctx, (p2begin == p2end ? pblank : (unsigned char*)&p2begin[0]), (p2end - p2begin) * sizeof(p2begin[0]));
SHA256_Final((unsigned char*)&hash1, &ctx);
uint256 hash2;
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
return hash2;
}
template<typename T1, typename T2, typename T3>
inline uint256 Hash(const T1 p1begin, const T1 p1end,
const T2 p2begin, const T2 p2end,
const T3 p3begin, const T3 p3end)
{
static unsigned char pblank[1];
uint256 hash1;
SHA256_CTX ctx;
SHA256_Init(&ctx);
SHA256_Update(&ctx, (p1begin == p1end ? pblank : (unsigned char*)&p1begin[0]), (p1end - p1begin) * sizeof(p1begin[0]));
SHA256_Update(&ctx, (p2begin == p2end ? pblank : (unsigned char*)&p2begin[0]), (p2end - p2begin) * sizeof(p2begin[0]));
SHA256_Update(&ctx, (p3begin == p3end ? pblank : (unsigned char*)&p3begin[0]), (p3end - p3begin) * sizeof(p3begin[0]));
SHA256_Final((unsigned char*)&hash1, &ctx);
uint256 hash2;
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
return hash2;
}
template<typename T>
uint256 SerializeHash(const T& obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
{
CHashWriter ss(nType, nVersion);
ss << obj;
return ss.GetHash();
}
inline uint160 Hash160(const std::vector<unsigned char>& vch)
{
uint256 hash1;
SHA256(&vch[0], vch.size(), (unsigned char*)&hash1);
uint160 hash2;
RIPEMD160((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
return hash2;
}
/** Median filter over a stream of values.
* Returns the median of the last N numbers
*/
template <typename T> class CMedianFilter
{
private:
std::vector<T> vValues;
std::vector<T> vSorted;
unsigned int nSize;
public:
CMedianFilter(unsigned int size, T initial_value):
nSize(size)
{
vValues.reserve(size);
vValues.push_back(initial_value);
vSorted = vValues;
}
void input(T value)
{
if(vValues.size() == nSize)
{
vValues.erase(vValues.begin());
}
vValues.push_back(value);
vSorted.resize(vValues.size());
std::copy(vValues.begin(), vValues.end(), vSorted.begin());
std::sort(vSorted.begin(), vSorted.end());
}
T median() const
{
int size = vSorted.size();
assert(size>0);
if(size & 1) // Odd number of elements
{
return vSorted[size/2];
}
else // Even number of elements
{
return (vSorted[size/2-1] + vSorted[size/2]) / 2;
}
}
int size() const
{
return vValues.size();
}
std::vector<T> sorted () const
{
return vSorted;
}
};
// Note: It turns out we might have been able to use boost::thread
// by using TerminateThread(boost::thread.native_handle(), 0);
#ifdef WIN32
typedef HANDLE pthread_t;
inline pthread_t CreateThread(void(*pfn)(void*), void* parg, bool fWantHandle=false)
{
DWORD nUnused = 0;
HANDLE hthread =
CreateThread(
NULL, // default security
0, // inherit stack size from parent
(LPTHREAD_START_ROUTINE)pfn, // function pointer
parg, // argument
0, // creation option, start immediately
&nUnused); // thread identifier
if (hthread == NULL)
{
printf("Error: CreateThread() returned %d\n", GetLastError());
return (pthread_t)0;
}
if (!fWantHandle)
{
CloseHandle(hthread);
return (pthread_t)-1;
}
return hthread;
}
inline void SetThreadPriority(int nPriority)
{
SetThreadPriority(GetCurrentThread(), nPriority);
}
#else
inline pthread_t CreateThread(void(*pfn)(void*), void* parg, bool fWantHandle=false)
{
pthread_t hthread = 0;
int ret = pthread_create(&hthread, NULL, (void*(*)(void*))pfn, parg);
if (ret != 0)
{
printf("Error: pthread_create() returned %d\n", ret);
return (pthread_t)0;
}
if (!fWantHandle)
{
pthread_detach(hthread);
return (pthread_t)-1;
}
return hthread;
}
#define THREAD_PRIORITY_LOWEST PRIO_MAX
#define THREAD_PRIORITY_BELOW_NORMAL 2
#define THREAD_PRIORITY_NORMAL 0
#define THREAD_PRIORITY_ABOVE_NORMAL 0
inline void SetThreadPriority(int nPriority)
{
// It's unclear if it's even possible to change thread priorities on Linux,
// but we really and truly need it for the generation threads.
#ifdef PRIO_THREAD
setpriority(PRIO_THREAD, 0, nPriority);
#else
setpriority(PRIO_PROCESS, 0, nPriority);
#endif
}
inline void ExitThread(size_t nExitCode)
{
pthread_exit((void*)nExitCode);
}
#endif
void RenameThread(const char* name);
inline uint32_t ByteReverse(uint32_t value)
{
value = ((value & 0xFF00FF00) >> 8) | ((value & 0x00FF00FF) << 8);
return (value<<16) | (value>>16);
}
#endif
| [
"RedOakCoin@Gmail.Com"
] | RedOakCoin@Gmail.Com |
261e42d0f28c43820f53505b5fb5c90f49492c65 | aa724c497cde712c028cfa5da379b928fcf7c476 | /modules/html/element/HTMLPreElement.cpp | f85935112cdafb5e8d3cd143315e4e252094657f | [] | no_license | Softnius/Newtoo | 9368cfe197cbc26b75bd3b6b33b145c1f4c83695 | e1562adbb5e59af088163c336292821686b11ef0 | refs/heads/master | 2020-03-30T07:50:07.324762 | 2018-09-29T14:29:37 | 2018-09-29T14:29:37 | 150,969,651 | 8 | 1 | null | 2018-09-30T13:28:14 | 2018-09-30T13:28:13 | null | UTF-8 | C++ | false | false | 835 | cpp | #include "HTMLPreElement.h"
namespace Newtoo
{
HTMLPreElement::HTMLPreElement()
{}
HTMLPreElement::HTMLPreElement(DOMString aNamespace, DOMString qualifiedName, DOMString aPrefix)
:HTMLElement(aNamespace, qualifiedName, aPrefix)
{}
CSSStyleDeclaration HTMLPreElement::userAgentStyle()
{
CSSStyleDeclaration st;
st.setProperty("display", "block", UAPropertyPriority);
st.setProperty("font-family", "\"Courier New\"", UAPropertyPriority);
st.setProperty("margin-bottom", "0.5em", UAPropertyPriority);
st.setProperty("margin-top", "0.5em", UAPropertyPriority);
st.setProperty("white-space", "pre", UAPropertyPriority);
return st;
}
Node* HTMLPreElement::cloneNode(bool deep)
{
return new HTMLPreElement(*this, deep);
}
}
| [
"flightblaze@gmail.com"
] | flightblaze@gmail.com |
9790698a0ee9ee80ca016b0b08fed62e475ae853 | 85c9c3d2738191d0674265940b207a5d42b57070 | /src/tcp_server_win.cpp | 4fce836fb794786c8da0988d625c4319d6bf4742 | [] | no_license | Sophie-Williams/hexagon-game-bot | 0ed7aecd0276e8f53afd465a8dd7aa2d12c32d39 | 1724e971630d21a91f167d65558b6d0d27096a1a | refs/heads/master | 2020-05-19T15:39:03.568627 | 2017-12-23T00:42:37 | 2017-12-23T00:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | #include "winsock2.h"
#include "windows.h"
#include "conio.h"
#include "iostream"
#include "hexagon_bot.h"
#pragma comment(lib,"wsock32.lib")
void tcp_server(int **hexag, int port) {
setlocale(LC_ALL, "RUSSIAN");
WSADATA WsaData;
SOCKADDR_IN serverAddr;
SOCKET Socket;
char msgStr[32] = "You are connected to the PC";
char recvBuffer[HEXAGON_MAP_SIZE];
printf("Connecting...\n");
if (WSAStartup(0x0101, &WsaData) == SOCKET_ERROR) {
printf("WSAStartup() failed: %ld\n", GetLastError());
getch();
return;
}
Socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
serverAddr.sin_family = AF_INET;
serverAddr.sin_port = htons(port);
serverAddr.sin_addr.s_addr = inet_addr("127.0.0.1");
printf("IP:\n%s :: %d\n", inet_ntoa(serverAddr.sin_addr), htons(serverAddr.sin_port));
connect(Socket, (SOCKADDR *)& serverAddr, sizeof(serverAddr));
send(Socket, msgStr, strlen(msgStr), MSG_DONTROUTE);
strcpy(msgStr, "");
if (recv(Socket, msgStr, sizeof(msgStr), 0) != SOCKET_ERROR) {
printf("\nServer: %s", msgStr);
}
else {
printf("Socket error\n");
getch();
return;
}
while (recv(Socket, recvBuffer, sizeof(recvBuffer), 0) != SOCKET_ERROR) {
int colRed = 0;
int colBlue = 0;
printf("\nServer: ");
for (int i = 0; i < HEXAGON_MAP_SIZE; i++) {
printf("%i", recvBuffer[i]);
hexag[i][0] = (int)recvBuffer[i];
if ((int)recvBuffer[i] == RED) colRed++;
if ((int)recvBuffer[i] == BLUE) colBlue++;
}
printf("\n");
send(Socket, botStart(hexag, colRed, colBlue), sizeof(char[HEXAGON_MAP_SIZE]), MSG_DONTROUTE);
}
WSACleanup();
} | [
"sfaxi19@gmail.com"
] | sfaxi19@gmail.com |
ceee68d313245a21f0c9515d07512a083a578aaa | c53b534cab860ace88dafe46b645af5d9b1cde1b | /firstWidgetsApp/mainwindow.cpp | 1d35740acc81f4986f6c5cb34c626ad47af036f5 | [] | no_license | lmd-luxoft/labwork-dmitrii-od-ua | 9fb1f7a9f8ddca7d74ea54bcfd2c277ffd5139d7 | 109fd8fdc17df162e0d4c5ec68db78047c9f9926 | refs/heads/main | 2023-03-08T12:16:18.403401 | 2021-02-18T07:50:12 | 2021-02-18T07:50:12 | 339,017,972 | 0 | 0 | null | 2021-02-15T08:57:48 | 2021-02-15T08:57:44 | null | UTF-8 | C++ | false | false | 223 | cpp | #include "mainwindow.hpp"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
| [
"dmelnichenko@luxoft.com"
] | dmelnichenko@luxoft.com |
e26cec26055f20b51d00053f4cee90d1da1529e9 | b4803e8dbacb16bde18818a51cc57bfa1341779c | /src/OclExample.cpp | 6dde1aa447fef9c705704b212db5daac93f3b55e | [] | no_license | HustStevenZ/OclExample | 97dbec79c72bb7042f31d37c3f4befd944b1fd83 | 3aa4f47a0d5ab0d8eda1915d8c1bde945f0d05ae | refs/heads/master | 2020-04-06T09:03:56.023997 | 2016-08-31T11:39:21 | 2016-08-31T11:39:21 | 63,135,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | //
// Created by Sanqian on 16/7/7.
//
#include <cstdio>
#include <QApplication>
#include <QWidget>
#include <src/gui/ImageFilterExampleWidget.h>
#include <src/gui/MainWidget.h>
int main(int argc, char **argv) {
QApplication app(argc, argv);
// ImageFilterExampleWidget widget;
// widget.show();
QSurfaceFormat format;
format.setDepthBufferSize(24);
QSurfaceFormat::setDefaultFormat(format);
MainWidget mainWindow;
mainWindow.show();
return app.exec();
}
| [
"sanqianzhao@gmail.com"
] | sanqianzhao@gmail.com |
4ba8665bfcd202eee58e1491c0aa5020f6f48dd1 | fe5dab7a18950f46410cdf986e7b98343cf2b6c3 | /Source/UE4Shooter/Public/Pickup/PickupSniperRifle.h | c258efad28bc048a1b6cc67db619e08cc7008ba8 | [] | no_license | horinoh/UE4Shooter | 4330c79bfb6aa09aa9f2ebae9a9e7bc55dd22a92 | 0a90049147f3a8eed8a3291f9b6dd6e35d327b73 | refs/heads/master | 2021-07-12T05:59:56.219967 | 2021-04-11T14:07:19 | 2021-04-11T14:07:19 | 43,068,291 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Pickup/ShooterPickup_Ammo.h"
#include "PickupSniperRifle.generated.h"
/**
*
*/
UCLASS()
class UE4SHOOTER_API APickupSniperRifle : public AShooterPickup_Ammo
{
GENERATED_BODY()
public:
APickupSniperRifle();
};
| [
"development@horino.sakura.ne.jp"
] | development@horino.sakura.ne.jp |
f7d803cf971e16844b4e19040f1f08e051a43294 | ca8db0d7d14682f86d7e639c2e3a6728b8d64b36 | /Finalexam/Finalexam/LIGHT.h | 8a4c5ef627b1ae1e48ab3d571f5a9273f8b565de | [] | no_license | ClanguageBronze/SecondComputerGrapics | f7808408736f50eeaa3ecc65f5750ae34170beba | 785b25079463e191358d0530b971e45c9628987e | refs/heads/master | 2021-08-30T13:37:14.566908 | 2017-12-18T05:12:28 | 2017-12-18T05:12:28 | 111,249,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | #pragma once
#include"define.h"
class LIGHT {
float xPos;
float yPos;
float zPos;
float Alpha;
GLfloat Ambient_light[4];
GLfloat Diffuse_light[4];
GLfloat Specular_light[4];
GLfloat Light_Pos[4];
GLfloat specref[4];
public:
LIGHT(float, float, float, float);
~LIGHT();
void Init();
void M_FLIGHTING();
void Update();
}; | [
"leedongsu97@gmail.com"
] | leedongsu97@gmail.com |
836d055bd7961a10661e9e332b98b1244663a4ad | 31287dccda1fa0be67d87c61175fc7e9206134e8 | /QtBook/Paint/NinePatchPainter/Widget.cpp | 6a4f8f496293011b2d6b2fce41ce9d9a2a37a9e4 | [] | no_license | xtuer/Qt | 83c9407f92cef8f0d1b702083bb51ea29d69f18a | 01d3862353f88a64e3c4ea76d4ecdd1d98ab1806 | refs/heads/master | 2022-06-02T02:32:56.694458 | 2022-05-29T13:06:48 | 2022-05-29T13:06:48 | 55,279,709 | 15 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | #include "Widget.h"
#include "NinePatchPainter.h"
#include <QPixmap>
#include <QPainter>
Widget::Widget(QWidget *parent) : QWidget(parent) {
pixmap.load(":/rounded-rectangle.png"); // 加载背景图
ninePatchPainter = new NinePatchPainter(pixmap, 25, 25, 25, 25);
}
Widget::~Widget() {
delete ninePatchPainter;
}
void Widget::paintEvent(QPaintEvent *) {
QPainter painter(this);
painter.drawPixmap(20, 20, 300, 200, pixmap); // 普通的拉伸绘制
ninePatchPainter->paint(&painter, QRect(340, 20, 300, 200)); // 九宫格绘制
}
| [
"biao.mac@icloud.com"
] | biao.mac@icloud.com |
d09535735cb6a9581a373cb43cf99b386b7ff2f1 | cb28c1f3444ea3535cfdde13b395ff43647278d0 | /lab7.1/lab7.1/stdafx.cpp | 59fb78ef54b619d8b06e982592a4e85134b8afda | [] | no_license | Artikx9/OOP | d042724ab0f98c1d951665b4cc2608a8bcd5632a | c7ee5db6bf26e07320b6f69da830f6d7585fb7f4 | refs/heads/master | 2020-07-02T10:42:52.255015 | 2016-11-25T17:04:57 | 2016-11-25T17:04:57 | 67,342,580 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 570 | cpp | // stdafx.cpp: исходный файл, содержащий только стандартные включаемые модули
// lab7.1.pch будет предкомпилированным заголовком
// stdafx.obj будет содержать предварительно откомпилированные сведения о типе
#include "stdafx.h"
// TODO: Установите ссылки на любые требующиеся дополнительные заголовки в файле STDAFX.H
// , а не в данном файле
| [
"artikx9@bk.ru"
] | artikx9@bk.ru |
83dbe324ea9def813b8c44f9c634b8796ef0a19e | 572f4d54e9dfee60e7d342a7a70cf91f4bc70649 | /homework/project/1_4/countdown.cpp | 85a70df4dbb92d125703e8e663e59fdb713a7865 | [] | no_license | Sergei39/TP-homework-AlandSD | bad5f90d89d65ca567fa8665df0250c74d8e0a6a | 99201a4ee2cee43ce3ed3cc495e69e451b33dd81 | refs/heads/master | 2023-06-11T01:10:59.853828 | 2021-07-07T11:37:44 | 2021-07-07T11:37:44 | 303,781,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | #include "countdown.h"
int interaction_user(){
int num = 0;
int kill = 0;
std::cout << "Input number people and k: " << std::endl;
std::cin >> num >> kill;
if (num == 0)
return 0;
std::cout << "Result: " << std::endl;
std::cout << found_number(num, kill);
}
int found_number(int number_people, int number_kill){
list *first = (list*)malloc(sizeof(list));
list *tec = first;
tec->point = first;
tec->value = 1;
for (int i = 2; i <= number_people; i++) {
tec->point = (list*)malloc(sizeof(list));
tec = tec->point;
tec->value = i;
tec->point = first;
}
tec = first;
while (tec->point != tec) {
for(int i = 0; i < number_kill - 2; i++)
tec = tec->point;
list *del = tec->point;
tec->point = del->point;
tec = tec->point;
free(del);
}
int res = tec->value;
free(tec);
return res;
}
| [
"3shishkin39@mail.ru"
] | 3shishkin39@mail.ru |
b1587e6d9ce783e3b5df6bc2278be76d6715f1f9 | d939ea588d1b215261b92013e050993b21651f9a | /iotvideo/src/v20201215/model/EditFirmwareRequest.cpp | cc29293e67d0e9282f6a903d3b71d79c6c8aeae9 | [
"Apache-2.0"
] | permissive | chenxx98/tencentcloud-sdk-cpp | 374e6d1349f8992893ded7aa08f911dd281f1bda | a9e75d321d96504bc3437300d26e371f5f4580a0 | refs/heads/master | 2023-03-27T05:35:50.158432 | 2021-03-26T05:18:10 | 2021-03-26T05:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,894 | cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 <tencentcloud/iotvideo/v20201215/model/EditFirmwareRequest.h>
#include <tencentcloud/core/utils/rapidjson/document.h>
#include <tencentcloud/core/utils/rapidjson/writer.h>
#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
using namespace TencentCloud::Iotvideo::V20201215::Model;
using namespace rapidjson;
using namespace std;
EditFirmwareRequest::EditFirmwareRequest() :
m_productIDHasBeenSet(false),
m_firmwareVersionHasBeenSet(false),
m_firmwareNameHasBeenSet(false),
m_firmwareDescriptionHasBeenSet(false)
{
}
string EditFirmwareRequest::ToJsonString() const
{
Document d;
d.SetObject();
Document::AllocatorType& allocator = d.GetAllocator();
if (m_productIDHasBeenSet)
{
Value iKey(kStringType);
string key = "ProductID";
iKey.SetString(key.c_str(), allocator);
d.AddMember(iKey, Value(m_productID.c_str(), allocator).Move(), allocator);
}
if (m_firmwareVersionHasBeenSet)
{
Value iKey(kStringType);
string key = "FirmwareVersion";
iKey.SetString(key.c_str(), allocator);
d.AddMember(iKey, Value(m_firmwareVersion.c_str(), allocator).Move(), allocator);
}
if (m_firmwareNameHasBeenSet)
{
Value iKey(kStringType);
string key = "FirmwareName";
iKey.SetString(key.c_str(), allocator);
d.AddMember(iKey, Value(m_firmwareName.c_str(), allocator).Move(), allocator);
}
if (m_firmwareDescriptionHasBeenSet)
{
Value iKey(kStringType);
string key = "FirmwareDescription";
iKey.SetString(key.c_str(), allocator);
d.AddMember(iKey, Value(m_firmwareDescription.c_str(), allocator).Move(), allocator);
}
StringBuffer buffer;
Writer<StringBuffer> writer(buffer);
d.Accept(writer);
return buffer.GetString();
}
string EditFirmwareRequest::GetProductID() const
{
return m_productID;
}
void EditFirmwareRequest::SetProductID(const string& _productID)
{
m_productID = _productID;
m_productIDHasBeenSet = true;
}
bool EditFirmwareRequest::ProductIDHasBeenSet() const
{
return m_productIDHasBeenSet;
}
string EditFirmwareRequest::GetFirmwareVersion() const
{
return m_firmwareVersion;
}
void EditFirmwareRequest::SetFirmwareVersion(const string& _firmwareVersion)
{
m_firmwareVersion = _firmwareVersion;
m_firmwareVersionHasBeenSet = true;
}
bool EditFirmwareRequest::FirmwareVersionHasBeenSet() const
{
return m_firmwareVersionHasBeenSet;
}
string EditFirmwareRequest::GetFirmwareName() const
{
return m_firmwareName;
}
void EditFirmwareRequest::SetFirmwareName(const string& _firmwareName)
{
m_firmwareName = _firmwareName;
m_firmwareNameHasBeenSet = true;
}
bool EditFirmwareRequest::FirmwareNameHasBeenSet() const
{
return m_firmwareNameHasBeenSet;
}
string EditFirmwareRequest::GetFirmwareDescription() const
{
return m_firmwareDescription;
}
void EditFirmwareRequest::SetFirmwareDescription(const string& _firmwareDescription)
{
m_firmwareDescription = _firmwareDescription;
m_firmwareDescriptionHasBeenSet = true;
}
bool EditFirmwareRequest::FirmwareDescriptionHasBeenSet() const
{
return m_firmwareDescriptionHasBeenSet;
}
| [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
350bb22845424a92f260aff8ef1d528ae75234f8 | 2a7e77565c33e6b5d92ce6702b4a5fd96f80d7d0 | /fuzzedpackages/anomaly/src/pruner_mean.cpp | dc72ffa2bdb87dfabaf925f374c99868a624c4c1 | [] | no_license | akhikolla/testpackages | 62ccaeed866e2194652b65e7360987b3b20df7e7 | 01259c3543febc89955ea5b79f3a08d3afe57e95 | refs/heads/master | 2023-02-18T03:50:28.288006 | 2021-01-18T13:23:32 | 2021-01-18T13:23:32 | 329,981,898 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | #include "Functions_mean.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
namespace anomalymv
{
void pruner_mean(struct orderedobservationlist_mean *list, int ii, int p, int l, int minseglength, int maxseglength, double totalpenalty)
{
double threshold;
threshold = totalpenalty + list[ii].optimalcost;
struct orderedobservationlist_mean* current = NULL;
current = list[0].next;
int destroy = 1;
if (maxseglength < ii - current->numberofobservation + 2)
{
current->previous->next = current->next;
current->next->previous = current->previous;
current = current->next;
}
while (current->numberofobservation < ii - minseglength - l + 2)
{
if (current->costofstartingsegment > threshold)
{
if (current->destruction > ii + minseglength + l)
{
current->destruction = ii + minseglength + l;
}
}
if (destroy == 1)
{
destroy = 0;
if (current->destruction < ii + 1 )
{
current->previous->next = current->next;
current->next->previous = current->previous;
destroy = 1;
}
}
current = current->next;
}
}
} // namespace anomalymv
| [
"akhilakollasrinu424jf@gmail.com"
] | akhilakollasrinu424jf@gmail.com |
18e54b56b33b48b8172bab9bfa83e4667facce9a | 182bf23e20184ca21698de955dd3c6c2f87f8db0 | /HololensBuild/Il2CppOutputProject/Source/il2cppOutput/Microsoft.MixedReality.Toolkit.Demos.UX.Interactables_Attr.cpp | 89e04a03d3b9d1ad518c73b3d7d5e548cf362c01 | [] | no_license | DreVinciCode/Naruto_Rasenshuriken | d86ac7dd42a1cd07b166710822a061e1903fbc46 | a5e9b0e41f85aeb54321b82ff048be818c31db0b | refs/heads/main | 2023-07-05T10:48:23.515643 | 2021-08-05T01:28:45 | 2021-08-05T01:28:45 | 392,864,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,131 | cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Type[]
struct TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755;
// UnityEngine.AddComponentMenu
struct AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100;
// System.Reflection.AssemblyCopyrightAttribute
struct AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC;
// System.Reflection.AssemblyFileVersionAttribute
struct AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F;
// System.Reflection.AssemblyProductAttribute
struct AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA;
// System.Reflection.Binder
struct Binder_t2BEE27FD84737D1E79BC47FD67F6D3DD2F2DDA30;
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF;
// System.Runtime.CompilerServices.CompilerGeneratedAttribute
struct CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C;
// System.Diagnostics.DebuggableAttribute
struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B;
// System.Diagnostics.DebuggerHiddenAttribute
struct DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88;
// System.Runtime.CompilerServices.IteratorStateMachineAttribute
struct IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830;
// System.Reflection.MemberFilter
struct MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81;
// System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80;
// System.String
struct String_t;
// System.Type
struct Type_t;
// System.Void
struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5;
IL2CPP_EXTERN_C const RuntimeType* U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_0_0_0_var;
IL2CPP_EXTERN_C const RuntimeType* U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_0_0_0_var;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
// System.Attribute
struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 : public RuntimeObject
{
public:
public:
};
// System.Reflection.MemberInfo
struct MemberInfo_t : public RuntimeObject
{
public:
public:
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com
{
};
// UnityEngine.AddComponentMenu
struct AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String UnityEngine.AddComponentMenu::m_AddComponentMenu
String_t* ___m_AddComponentMenu_0;
// System.Int32 UnityEngine.AddComponentMenu::m_Ordering
int32_t ___m_Ordering_1;
public:
inline static int32_t get_offset_of_m_AddComponentMenu_0() { return static_cast<int32_t>(offsetof(AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100, ___m_AddComponentMenu_0)); }
inline String_t* get_m_AddComponentMenu_0() const { return ___m_AddComponentMenu_0; }
inline String_t** get_address_of_m_AddComponentMenu_0() { return &___m_AddComponentMenu_0; }
inline void set_m_AddComponentMenu_0(String_t* value)
{
___m_AddComponentMenu_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_AddComponentMenu_0), (void*)value);
}
inline static int32_t get_offset_of_m_Ordering_1() { return static_cast<int32_t>(offsetof(AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100, ___m_Ordering_1)); }
inline int32_t get_m_Ordering_1() const { return ___m_Ordering_1; }
inline int32_t* get_address_of_m_Ordering_1() { return &___m_Ordering_1; }
inline void set_m_Ordering_1(int32_t value)
{
___m_Ordering_1 = value;
}
};
// System.Reflection.AssemblyCopyrightAttribute
struct AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String System.Reflection.AssemblyCopyrightAttribute::m_copyright
String_t* ___m_copyright_0;
public:
inline static int32_t get_offset_of_m_copyright_0() { return static_cast<int32_t>(offsetof(AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC, ___m_copyright_0)); }
inline String_t* get_m_copyright_0() const { return ___m_copyright_0; }
inline String_t** get_address_of_m_copyright_0() { return &___m_copyright_0; }
inline void set_m_copyright_0(String_t* value)
{
___m_copyright_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_copyright_0), (void*)value);
}
};
// System.Reflection.AssemblyFileVersionAttribute
struct AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String System.Reflection.AssemblyFileVersionAttribute::_version
String_t* ____version_0;
public:
inline static int32_t get_offset_of__version_0() { return static_cast<int32_t>(offsetof(AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F, ____version_0)); }
inline String_t* get__version_0() const { return ____version_0; }
inline String_t** get_address_of__version_0() { return &____version_0; }
inline void set__version_0(String_t* value)
{
____version_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____version_0), (void*)value);
}
};
// System.Reflection.AssemblyProductAttribute
struct AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.String System.Reflection.AssemblyProductAttribute::m_product
String_t* ___m_product_0;
public:
inline static int32_t get_offset_of_m_product_0() { return static_cast<int32_t>(offsetof(AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA, ___m_product_0)); }
inline String_t* get_m_product_0() const { return ___m_product_0; }
inline String_t** get_address_of_m_product_0() { return &___m_product_0; }
inline void set_m_product_0(String_t* value)
{
___m_product_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_product_0), (void*)value);
}
};
// System.Boolean
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Int32 System.Runtime.CompilerServices.CompilationRelaxationsAttribute::m_relaxations
int32_t ___m_relaxations_0;
public:
inline static int32_t get_offset_of_m_relaxations_0() { return static_cast<int32_t>(offsetof(CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF, ___m_relaxations_0)); }
inline int32_t get_m_relaxations_0() const { return ___m_relaxations_0; }
inline int32_t* get_address_of_m_relaxations_0() { return &___m_relaxations_0; }
inline void set_m_relaxations_0(int32_t value)
{
___m_relaxations_0 = value;
}
};
// System.Runtime.CompilerServices.CompilerGeneratedAttribute
struct CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// System.Diagnostics.DebuggerHiddenAttribute
struct DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
public:
};
// System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52
{
public:
public:
};
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com
{
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
struct RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Boolean System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::m_wrapNonExceptionThrows
bool ___m_wrapNonExceptionThrows_0;
public:
inline static int32_t get_offset_of_m_wrapNonExceptionThrows_0() { return static_cast<int32_t>(offsetof(RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80, ___m_wrapNonExceptionThrows_0)); }
inline bool get_m_wrapNonExceptionThrows_0() const { return ___m_wrapNonExceptionThrows_0; }
inline bool* get_address_of_m_wrapNonExceptionThrows_0() { return &___m_wrapNonExceptionThrows_0; }
inline void set_m_wrapNonExceptionThrows_0(bool value)
{
___m_wrapNonExceptionThrows_0 = value;
}
};
// System.Runtime.CompilerServices.StateMachineAttribute
struct StateMachineAttribute_tA6E77C77F821508E405473BA1C4C08A69FDA0AC3 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Type System.Runtime.CompilerServices.StateMachineAttribute::<StateMachineType>k__BackingField
Type_t * ___U3CStateMachineTypeU3Ek__BackingField_0;
public:
inline static int32_t get_offset_of_U3CStateMachineTypeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(StateMachineAttribute_tA6E77C77F821508E405473BA1C4C08A69FDA0AC3, ___U3CStateMachineTypeU3Ek__BackingField_0)); }
inline Type_t * get_U3CStateMachineTypeU3Ek__BackingField_0() const { return ___U3CStateMachineTypeU3Ek__BackingField_0; }
inline Type_t ** get_address_of_U3CStateMachineTypeU3Ek__BackingField_0() { return &___U3CStateMachineTypeU3Ek__BackingField_0; }
inline void set_U3CStateMachineTypeU3Ek__BackingField_0(Type_t * value)
{
___U3CStateMachineTypeU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CStateMachineTypeU3Ek__BackingField_0), (void*)value);
}
};
// System.Void
struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5
{
public:
union
{
struct
{
};
uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1];
};
public:
};
// System.Reflection.BindingFlags
struct BindingFlags_tAAAB07D9AC588F0D55D844E51D7035E96DF94733
{
public:
// System.Int32 System.Reflection.BindingFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(BindingFlags_tAAAB07D9AC588F0D55D844E51D7035E96DF94733, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Runtime.CompilerServices.IteratorStateMachineAttribute
struct IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 : public StateMachineAttribute_tA6E77C77F821508E405473BA1C4C08A69FDA0AC3
{
public:
public:
};
// System.RuntimeTypeHandle
struct RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9
{
public:
// System.IntPtr System.RuntimeTypeHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
// System.Diagnostics.DebuggableAttribute/DebuggingModes
struct DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8
{
public:
// System.Int32 System.Diagnostics.DebuggableAttribute/DebuggingModes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebuggingModes_t279D5B9C012ABA935887CB73C5A63A1F46AF08A8, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Diagnostics.DebuggableAttribute
struct DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71
{
public:
// System.Diagnostics.DebuggableAttribute/DebuggingModes System.Diagnostics.DebuggableAttribute::m_debuggingModes
int32_t ___m_debuggingModes_0;
public:
inline static int32_t get_offset_of_m_debuggingModes_0() { return static_cast<int32_t>(offsetof(DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B, ___m_debuggingModes_0)); }
inline int32_t get_m_debuggingModes_0() const { return ___m_debuggingModes_0; }
inline int32_t* get_address_of_m_debuggingModes_0() { return &___m_debuggingModes_0; }
inline void set_m_debuggingModes_0(int32_t value)
{
___m_debuggingModes_0 = value;
}
};
// System.Type
struct Type_t : public MemberInfo_t
{
public:
// System.RuntimeTypeHandle System.Type::_impl
RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 ____impl_9;
public:
inline static int32_t get_offset_of__impl_9() { return static_cast<int32_t>(offsetof(Type_t, ____impl_9)); }
inline RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 get__impl_9() const { return ____impl_9; }
inline RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 * get_address_of__impl_9() { return &____impl_9; }
inline void set__impl_9(RuntimeTypeHandle_tC33965ADA3E041E0C94AF05E5CB527B56482CEF9 value)
{
____impl_9 = value;
}
};
struct Type_t_StaticFields
{
public:
// System.Reflection.MemberFilter System.Type::FilterAttribute
MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * ___FilterAttribute_0;
// System.Reflection.MemberFilter System.Type::FilterName
MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * ___FilterName_1;
// System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * ___FilterNameIgnoreCase_2;
// System.Object System.Type::Missing
RuntimeObject * ___Missing_3;
// System.Char System.Type::Delimiter
Il2CppChar ___Delimiter_4;
// System.Type[] System.Type::EmptyTypes
TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* ___EmptyTypes_5;
// System.Reflection.Binder System.Type::defaultBinder
Binder_t2BEE27FD84737D1E79BC47FD67F6D3DD2F2DDA30 * ___defaultBinder_6;
public:
inline static int32_t get_offset_of_FilterAttribute_0() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_0)); }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * get_FilterAttribute_0() const { return ___FilterAttribute_0; }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 ** get_address_of_FilterAttribute_0() { return &___FilterAttribute_0; }
inline void set_FilterAttribute_0(MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * value)
{
___FilterAttribute_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterAttribute_0), (void*)value);
}
inline static int32_t get_offset_of_FilterName_1() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_1)); }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * get_FilterName_1() const { return ___FilterName_1; }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 ** get_address_of_FilterName_1() { return &___FilterName_1; }
inline void set_FilterName_1(MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * value)
{
___FilterName_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterName_1), (void*)value);
}
inline static int32_t get_offset_of_FilterNameIgnoreCase_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_2)); }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * get_FilterNameIgnoreCase_2() const { return ___FilterNameIgnoreCase_2; }
inline MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 ** get_address_of_FilterNameIgnoreCase_2() { return &___FilterNameIgnoreCase_2; }
inline void set_FilterNameIgnoreCase_2(MemberFilter_t48D0AA10105D186AF42428FA532D4B4332CF8B81 * value)
{
___FilterNameIgnoreCase_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterNameIgnoreCase_2), (void*)value);
}
inline static int32_t get_offset_of_Missing_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_3)); }
inline RuntimeObject * get_Missing_3() const { return ___Missing_3; }
inline RuntimeObject ** get_address_of_Missing_3() { return &___Missing_3; }
inline void set_Missing_3(RuntimeObject * value)
{
___Missing_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Missing_3), (void*)value);
}
inline static int32_t get_offset_of_Delimiter_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_4)); }
inline Il2CppChar get_Delimiter_4() const { return ___Delimiter_4; }
inline Il2CppChar* get_address_of_Delimiter_4() { return &___Delimiter_4; }
inline void set_Delimiter_4(Il2CppChar value)
{
___Delimiter_4 = value;
}
inline static int32_t get_offset_of_EmptyTypes_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_5)); }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* get_EmptyTypes_5() const { return ___EmptyTypes_5; }
inline TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755** get_address_of_EmptyTypes_5() { return &___EmptyTypes_5; }
inline void set_EmptyTypes_5(TypeU5BU5D_t85B10489E46F06CEC7C4B1CCBD0E01FAB6649755* value)
{
___EmptyTypes_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___EmptyTypes_5), (void*)value);
}
inline static int32_t get_offset_of_defaultBinder_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___defaultBinder_6)); }
inline Binder_t2BEE27FD84737D1E79BC47FD67F6D3DD2F2DDA30 * get_defaultBinder_6() const { return ___defaultBinder_6; }
inline Binder_t2BEE27FD84737D1E79BC47FD67F6D3DD2F2DDA30 ** get_address_of_defaultBinder_6() { return &___defaultBinder_6; }
inline void set_defaultBinder_6(Binder_t2BEE27FD84737D1E79BC47FD67F6D3DD2F2DDA30 * value)
{
___defaultBinder_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___defaultBinder_6), (void*)value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Void System.Diagnostics.DebuggableAttribute::.ctor(System.Diagnostics.DebuggableAttribute/DebuggingModes)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550 (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * __this, int32_t ___modes0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::set_WrapNonExceptionThrows(System.Boolean)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * __this, int32_t ___relaxations0, const RuntimeMethod* method);
// System.Void System.Reflection.AssemblyFileVersionAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AssemblyFileVersionAttribute__ctor_mF855AEBC51CB72F4FF913499256741AE57B0F13D (AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F * __this, String_t* ___version0, const RuntimeMethod* method);
// System.Void System.Reflection.AssemblyProductAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AssemblyProductAttribute__ctor_m26DF1EBC1C86E7DA4786C66B44123899BE8DBCB8 (AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA * __this, String_t* ___product0, const RuntimeMethod* method);
// System.Void System.Reflection.AssemblyCopyrightAttribute::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AssemblyCopyrightAttribute__ctor_mB0B5F5C1A7A8B172289CC694E2711F07A37CE3F3 (AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC * __this, String_t* ___copyright0, const RuntimeMethod* method);
// System.Void UnityEngine.AddComponentMenu::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AddComponentMenu__ctor_m34CE7BDF93FA607429964AEF1D23436963EE8549 (AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100 * __this, String_t* ___menuName0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.IteratorStateMachineAttribute::.ctor(System.Type)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IteratorStateMachineAttribute__ctor_m019CD62C4E5301F55EDF4723107B608AE8F12481 (IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 * __this, Type_t * ___stateMachineType0, const RuntimeMethod* method);
// System.Void System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35 (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * __this, const RuntimeMethod* method);
// System.Void System.Diagnostics.DebuggerHiddenAttribute::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3 (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * __this, const RuntimeMethod* method);
static void Microsoft_MixedReality_Toolkit_Demos_UX_Interactables_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B * tmp = (DebuggableAttribute_tA8054EBD0FC7511695D494B690B5771658E3191B *)cache->attributes[0];
DebuggableAttribute__ctor_m7FF445C8435494A4847123A668D889E692E55550(tmp, 2LL, NULL);
}
{
RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * tmp = (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 *)cache->attributes[1];
RuntimeCompatibilityAttribute__ctor_m551DDF1438CE97A984571949723F30F44CF7317C(tmp, NULL);
RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline(tmp, true, NULL);
}
{
CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF * tmp = (CompilationRelaxationsAttribute_t661FDDC06629BDA607A42BD660944F039FE03AFF *)cache->attributes[2];
CompilationRelaxationsAttribute__ctor_mAC3079EBC4EEAB474EED8208EF95DB39C922333B(tmp, 8LL, NULL);
}
{
AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F * tmp = (AssemblyFileVersionAttribute_tCC1036D0566155DC5688D9230EF3C07D82A1896F *)cache->attributes[3];
AssemblyFileVersionAttribute__ctor_mF855AEBC51CB72F4FF913499256741AE57B0F13D(tmp, il2cpp_codegen_string_new_wrapper("\x32\x2E\x37\x2E\x32\x2E\x30"), NULL);
}
{
AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA * tmp = (AssemblyProductAttribute_t6BB0E0F76C752E14A4C26B4D1E230019068601CA *)cache->attributes[4];
AssemblyProductAttribute__ctor_m26DF1EBC1C86E7DA4786C66B44123899BE8DBCB8(tmp, il2cpp_codegen_string_new_wrapper("\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\xC2\xAE\x20\x4D\x69\x78\x65\x64\x20\x52\x65\x61\x6C\x69\x74\x79\x20\x54\x6F\x6F\x6C\x6B\x69\x74\x20\x45\x78\x61\x6D\x70\x6C\x65\x73"), NULL);
}
{
AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC * tmp = (AssemblyCopyrightAttribute_tA6A09319EF50B48D962810032000DEE7B12904EC *)cache->attributes[5];
AssemblyCopyrightAttribute__ctor_mB0B5F5C1A7A8B172289CC694E2711F07A37CE3F3(tmp, il2cpp_codegen_string_new_wrapper("\x43\x6F\x70\x79\x72\x69\x67\x68\x74\x20\xC2\xA9\x20\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x20\x43\x6F\x72\x70\x6F\x72\x61\x74\x69\x6F\x6E"), NULL);
}
}
static void CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100 * tmp = (AddComponentMenu_t3477A931DC56E9A4F67FFA5745D657ADD2931100 *)cache->attributes[0];
AddComponentMenu__ctor_m34CE7BDF93FA607429964AEF1D23436963EE8549(tmp, il2cpp_codegen_string_new_wrapper("\x53\x63\x72\x69\x70\x74\x73\x2F\x4D\x52\x54\x4B\x2F\x45\x78\x61\x6D\x70\x6C\x65\x73\x2F\x43\x75\x73\x74\x6F\x6D\x49\x6E\x74\x65\x72\x61\x63\x74\x61\x62\x6C\x65\x73\x52\x65\x63\x65\x69\x76\x65\x72"), NULL);
}
}
static void CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator_CustomInteractablesReceiver_ClickTimer_mA608CF8651445896827732A3057447A00B68473D(CustomAttributesCache* cache)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_0_0_0_var);
s_Il2CppMethodInitialized = true;
}
{
IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 * tmp = (IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 *)cache->attributes[0];
IteratorStateMachineAttribute__ctor_m019CD62C4E5301F55EDF4723107B608AE8F12481(tmp, il2cpp_codegen_type_get_object(U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_0_0_0_var), NULL);
}
}
static void CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator_CustomInteractablesReceiver_VoiceTimer_m4958CB46DCD28AAE1F4C981E413D446E82CD07A4(CustomAttributesCache* cache)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_0_0_0_var);
s_Il2CppMethodInitialized = true;
}
{
IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 * tmp = (IteratorStateMachineAttribute_t6C72F3EC15FB34D08D47727AA7A86AB7FEA27830 *)cache->attributes[0];
IteratorStateMachineAttribute__ctor_m019CD62C4E5301F55EDF4723107B608AE8F12481(tmp, il2cpp_codegen_type_get_object(U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_0_0_0_var), NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0];
CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14__ctor_mA564C634EDD8D9FBD4FB88D243822EB82958DF73(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_IDisposable_Dispose_mBBFB8A397146F266E2229D1720554E6509D4EEBA(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m6B6A75E569E52C48FCD9B25B01179363B97CFE80(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_m04D8BBAEECCDCE47754D22609F0B4DF3102E60D2(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_m5C98DD989A1137420FAFD5F23D2788D95AE8A400(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator(CustomAttributesCache* cache)
{
{
CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C * tmp = (CompilerGeneratedAttribute_t39106AB982658D7A94C27DEF3C48DB2F5F7CD75C *)cache->attributes[0];
CompilerGeneratedAttribute__ctor_m9DC3E4E2DA76FE93948D44199213E2E924DCBE35(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15__ctor_m1890DBA32C47F33F70E3BD45CE0E4DCFA2FC3E0E(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_mFCFDA08142DBB6D9117F88CEF3FE1E06A44A8F48(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mAC51057C265FEDCDB0F90B7E7E3B299B95A43792(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_mBD696BA5E3D144E5EA3938B4BE410EAAD1E6D6EE(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
static void U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m5DE7A3B46150E529C688CD4041474C5811653E54(CustomAttributesCache* cache)
{
{
DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 * tmp = (DebuggerHiddenAttribute_tD84728997C009D6F540FB29D88F032350E046A88 *)cache->attributes[0];
DebuggerHiddenAttribute__ctor_mB40799BB5DAFE439BEFE895836CF792B8DBEA7F3(tmp, NULL);
}
}
IL2CPP_EXTERN_C const CustomAttributesCacheGenerator g_Microsoft_MixedReality_Toolkit_Demos_UX_Interactables_AttributeGenerators[];
const CustomAttributesCacheGenerator g_Microsoft_MixedReality_Toolkit_Demos_UX_Interactables_AttributeGenerators[16] =
{
CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator,
CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator_CustomInteractablesReceiver_ClickTimer_mA608CF8651445896827732A3057447A00B68473D,
CustomInteractablesReceiver_t62E8B87DE0ECC141007E19353FCDA5AACE9B1B11_CustomAttributesCacheGenerator_CustomInteractablesReceiver_VoiceTimer_m4958CB46DCD28AAE1F4C981E413D446E82CD07A4,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14__ctor_mA564C634EDD8D9FBD4FB88D243822EB82958DF73,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_IDisposable_Dispose_mBBFB8A397146F266E2229D1720554E6509D4EEBA,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m6B6A75E569E52C48FCD9B25B01179363B97CFE80,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_m04D8BBAEECCDCE47754D22609F0B4DF3102E60D2,
U3CClickTimerU3Ed__14_tCA803D7E7D2098E119F9CD168007D09244547D5F_CustomAttributesCacheGenerator_U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_m5C98DD989A1137420FAFD5F23D2788D95AE8A400,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15__ctor_m1890DBA32C47F33F70E3BD45CE0E4DCFA2FC3E0E,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_mFCFDA08142DBB6D9117F88CEF3FE1E06A44A8F48,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mAC51057C265FEDCDB0F90B7E7E3B299B95A43792,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_mBD696BA5E3D144E5EA3938B4BE410EAAD1E6D6EE,
U3CVoiceTimerU3Ed__15_tC5977722497533CE35F260AE4E7F33B45811914B_CustomAttributesCacheGenerator_U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m5DE7A3B46150E529C688CD4041474C5811653E54,
Microsoft_MixedReality_Toolkit_Demos_UX_Interactables_CustomAttributesCacheGenerator,
};
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void RuntimeCompatibilityAttribute_set_WrapNonExceptionThrows_m8562196F90F3EBCEC23B5708EE0332842883C490_inline (RuntimeCompatibilityAttribute_tFF99AB2963098F9CBCD47A20D9FD3D51C17C1C80 * __this, bool ___value0, const RuntimeMethod* method)
{
{
bool L_0 = ___value0;
__this->set_m_wrapNonExceptionThrows_0(L_0);
return;
}
}
| [
"dre.vivero@gmail.com"
] | dre.vivero@gmail.com |
edd3c242b4233e5527a4d7ddc4dd622eb1d6a85c | b97d3f30ec8a3ddf3cb1ba45b7b32f811732dc67 | /client_src/Client_manager.h | 76ed22c8c34310efe82a7b373112785307c15115 | [] | no_license | DamianGanopolsky/Taller-Pages | 5fca64412a46ce30f8c37c3e6f64bd490cb2ad15 | dfed425e78ad32e844c4b046824f1e7d53715210 | refs/heads/main | 2023-01-18T18:10:04.526930 | 2020-11-23T23:00:45 | 2020-11-23T23:00:45 | 309,974,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | h | #ifndef CLIENT_SRC_CLIENT_MANAGER_H_
#define CLIENT_SRC_CLIENT_MANAGER_H_
#include <string>
#include "../common_src/Socket.h"
class Client_Manager{
private:
const char* ip;
const char* port;
Socket socket;
public:
Client_Manager(const char* ip_argv,const char* port_argv):\
ip(ip_argv),port(port_argv){
}
void enviar_al_server();
void recibir_del_server();
~Client_Manager();
};
#endif
| [
"damian98dgg@gmail.com"
] | damian98dgg@gmail.com |
37fb3c76b90a3b86a85d2c4ca9829a218e661e9f | 24004e1c3b8005af26d5890091d3c207427a799e | /Win32/NXOPEN/NXOpen/Weld_WeldPointExitBuilder.hxx | d62fb11793c111a9fe2ddfcf35536f8df724359e | [] | no_license | 15831944/PHStart | 068ca6f86b736a9cc857d7db391b2f20d2f52ba9 | f79280bca2ec7e5f344067ead05f98b7d592ae39 | refs/heads/master | 2022-02-20T04:07:46.994182 | 2019-09-29T06:15:37 | 2019-09-29T06:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,123 | hxx | #ifndef NXOpen_WELD_WELDPOINTEXITBUILDER_HXX_INCLUDED
#define NXOpen_WELD_WELDPOINTEXITBUILDER_HXX_INCLUDED
//--------------------------------------------------------------------------
// Header for C++ interface to JA API
//--------------------------------------------------------------------------
//
// Source File:
// Weld_WeldPointExitBuilder.ja
//
// Generated by:
// apiwrap
//
// WARNING:
// This file is automatically generated - do not edit by hand
//
#ifdef _MSC_VER
#pragma once
#endif
#include <NXOpen/NXDeprecation.hxx>
#include <vector>
#include <NXOpen/NXString.hxx>
#include <NXOpen/Callback.hxx>
#include <NXOpen/GeometricUtilities_IComponentBuilder.hxx>
#include <NXOpen/TaggedObject.hxx>
#include <NXOpen/Weld_WeldPointExitBuilder.hxx>
#include <NXOpen/libnxopencpp_weld_exports.hxx>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4996)
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
namespace NXOpen
{
namespace Weld
{
class WeldPointExitBuilder;
}
namespace Features
{
class Feature;
}
namespace GeometricUtilities
{
class IComponentBuilder;
}
namespace Weld
{
class _WeldPointExitBuilderBuilder;
class WeldPointExitBuilderImpl;
/** Represents a @link Weld::WeldPointExitBuilder Weld::WeldPointExitBuilder@endlink class used to pass welding object from the Weld Point command to a user callback. This object is not used on edit.
<br> Created in NX8.0.2. <br>
*/
class NXOPENCPP_WELDEXPORT WeldPointExitBuilder : public TaggedObject, public virtual GeometricUtilities::IComponentBuilder
{
/** The command name used for the newly created features. */
public: enum CommandName
{
CommandNameNone/** No command. Used to initialize value. */,
CommandNameWeldPoint/** Weld Point command */,
CommandNameDatumLocator/** Datum Locator command */,
CommandNameMeasurementLocator/** Measurement Locator command */
};
/** The method use to create the features. */
public: enum MethodUsed
{
MethodUsedNone/** No method specified. Used to initialize value. */,
MethodUsedMirror/** Feature was created using the mirror method. */,
MethodUsedTranslate/** Feature was created using the translate method. */
};
/** @brief Structure used to identify newly created features.
*/
public:
struct FeatureInfo
{
public: /** the newly created or edited feature */NXOpen::Features::Feature * Feature;
public: /** the method used to create the feature */NXOpen::Weld::WeldPointExitBuilder::MethodUsed MethodUsed;
public: /** the parent if method used was mirror or translate */NXOpen::Features::Feature * Parent;
public: /** true if a new feature, false if an existing feature was edited. */bool IsNewlyCreated;
public: FeatureInfo() :
Feature(),
MethodUsed((NXOpen::Weld::WeldPointExitBuilder::MethodUsed)0),
Parent(),
IsNewlyCreated()
{
}
/** Constructor for the FeatureInfo struct. */
public: FeatureInfo(NXOpen::Features::Feature * featureInitial /** the newly created or edited feature */,
NXOpen::Weld::WeldPointExitBuilder::MethodUsed methodUsedInitial /** the method used to create the feature */,
NXOpen::Features::Feature * parentInitial /** the parent if method used was mirror or translate */,
bool isNewlyCreatedInitial /** true if a new feature, false if an existing feature was edited. */) :
Feature(featureInitial),
MethodUsed(methodUsedInitial),
Parent(parentInitial),
IsNewlyCreated(isNewlyCreatedInitial)
{
}
};
private: WeldPointExitBuilderImpl * m_weldpointexitbuilder_impl;
private: friend class _WeldPointExitBuilderBuilder;
protected: WeldPointExitBuilder();
public: ~WeldPointExitBuilder();
/**Returns the command name that was last used to create features. This callback is not called on edit.
<br> Created in NX8.0.2. <br>
<br> License requirements : ugweld ("UG WELD") */
public: NXOpen::Weld::WeldPointExitBuilder::CommandName CommandUsed
(
);
/** Gets the information for the newly created features.
<br> Created in NX8.0.2. <br>
<br> License requirements : ugweld ("UG WELD") */
public: void GetFeatureInformation
(
std::vector<NXOpen::Weld::WeldPointExitBuilder::FeatureInfo> & features /** features created */
);
/** Validate whether the inputs to the component are sufficient for
commit to be called. If the component is not in a state to commit
then an exception is thrown. For example, if the component requires
you to set some property, this method will throw an exception if
you haven't set it. This method throws a not-yet-implemented
NXException for some components.
@return Was self validation successful
<br> Created in NX3.0.1. <br>
<br> License requirements : None */
public: virtual bool Validate
(
);
};
}
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#ifdef __GNUC__
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#endif
#endif
#undef EXPORTLIBRARY
#endif
| [
"1075087594@qq.com"
] | 1075087594@qq.com |
2adb521435c10a45264173d185703325abc08a5c | 93e7d91bb1d8e7a77ac746d13e79c7da07bd5ee4 | /src/wallet/init.cpp | abcf23e5e9e7d78c3429f74f62579a571b603c44 | [
"MIT"
] | permissive | escudonavacense/escudonavacense | a2eb699db715ef45010cba2707bc65b21a605eea | 2ec2abd9e3b4545e8a3bc2ec87d797d021459141 | refs/heads/master | 2020-12-29T19:37:40.480469 | 2020-02-06T16:00:32 | 2020-02-06T16:00:32 | 238,708,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,776 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2020 The EscudoNavacense Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/init.h>
#include <net.h>
#include <util.h>
#include <utilmoneystr.h>
#include <validation.h>
#include <wallet/rpcwallet.h>
#include <wallet/wallet.h>
#include <wallet/walletutil.h>
std::string GetWalletHelpString(bool showDebug)
{
std::string strUsage = HelpMessageGroup(_("Wallet options:"));
strUsage += HelpMessageOpt("-addresstype", strprintf("What type of addresses to use (\"legacy\", \"p2sh-segwit\", or \"bech32\", default: \"%s\")", FormatOutputType(OUTPUT_TYPE_DEFAULT)));
strUsage += HelpMessageOpt("-changetype", "What type of change to use (\"legacy\", \"p2sh-segwit\", or \"bech32\"). Default is same as -addresstype, except when -addresstype=p2sh-segwit a native segwit output is used when sending to a native segwit address)");
strUsage += HelpMessageOpt("-disablewallet", _("Do not load the wallet and disable wallet RPC calls"));
strUsage += HelpMessageOpt("-keypool=<n>", strprintf(_("Set key pool size to <n> (default: %u)"), DEFAULT_KEYPOOL_SIZE));
strUsage += HelpMessageOpt("-fallbackfee=<amt>", strprintf(_("A fee rate (in %s/kB) that will be used when fee estimation has insufficient data (default: %s)"),
CURRENCY_UNIT, FormatMoney(DEFAULT_FALLBACK_FEE)));
strUsage += HelpMessageOpt("-discardfee=<amt>", strprintf(_("The fee rate (in %s/kB) that indicates your tolerance for discarding change by adding it to the fee (default: %s). "
"Note: An output is discarded if it is dust at this rate, but we will always discard up to the dust relay fee and a discard fee above that is limited by the fee estimate for the longest target"),
CURRENCY_UNIT, FormatMoney(DEFAULT_DISCARD_FEE)));
strUsage += HelpMessageOpt("-mintxfee=<amt>", strprintf(_("Fees (in %s/kB) smaller than this are considered zero fee for transaction creation (default: %s)"),
CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MINFEE)));
strUsage += HelpMessageOpt("-paytxfee=<amt>", strprintf(_("Fee (in %s/kB) to add to transactions you send (default: %s)"),
CURRENCY_UNIT, FormatMoney(payTxFee.GetFeePerK())));
strUsage += HelpMessageOpt("-rescan", _("Rescan the block chain for missing wallet transactions on startup"));
strUsage += HelpMessageOpt("-salvagewallet", _("Attempt to recover private keys from a corrupt wallet on startup"));
strUsage += HelpMessageOpt("-spendzeroconfchange", strprintf(_("Spend unconfirmed change when sending transactions (default: %u)"), DEFAULT_SPEND_ZEROCONF_CHANGE));
strUsage += HelpMessageOpt("-txconfirmtarget=<n>", strprintf(_("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)"), DEFAULT_TX_CONFIRM_TARGET));
strUsage += HelpMessageOpt("-walletrbf", strprintf(_("Send transactions with full-RBF opt-in enabled (RPC only, default: %u)"), DEFAULT_WALLET_RBF));
strUsage += HelpMessageOpt("-upgradewallet", _("Upgrade wallet to latest format on startup"));
strUsage += HelpMessageOpt("-wallet=<file>", _("Specify wallet file (within data directory)") + " " + strprintf(_("(default: %s)"), DEFAULT_WALLET_DAT));
strUsage += HelpMessageOpt("-walletbroadcast", _("Make the wallet broadcast transactions") + " " + strprintf(_("(default: %u)"), DEFAULT_WALLETBROADCAST));
strUsage += HelpMessageOpt("-walletdir=<dir>", _("Specify directory to hold wallets (default: <datadir>/wallets if it exists, otherwise <datadir>)"));
strUsage += HelpMessageOpt("-walletnotify=<cmd>", _("Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)"));
strUsage += HelpMessageOpt("-zapwallettxes=<mode>", _("Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup") +
" " + _("(1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta data)"));
if (showDebug)
{
strUsage += HelpMessageGroup(_("Wallet debugging/testing options:"));
strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush wallet database activity from memory to disk log every <n> megabytes (default: %u)", DEFAULT_WALLET_DBLOGSIZE));
strUsage += HelpMessageOpt("-flushwallet", strprintf("Run a thread to flush wallet periodically (default: %u)", DEFAULT_FLUSHWALLET));
strUsage += HelpMessageOpt("-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)", DEFAULT_WALLET_PRIVDB));
strUsage += HelpMessageOpt("-walletrejectlongchains", strprintf(_("Wallet will not create transactions that violate mempool chain limits (default: %u)"), DEFAULT_WALLET_REJECT_LONG_CHAINS));
}
return strUsage;
}
bool WalletParameterInteraction()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
for (const std::string& wallet : gArgs.GetArgs("-wallet")) {
LogPrintf("%s: parameter interaction: -disablewallet -> ignoring -wallet=%s\n", __func__, wallet);
}
return true;
}
gArgs.SoftSetArg("-wallet", DEFAULT_WALLET_DAT);
const bool is_multiwallet = gArgs.GetArgs("-wallet").size() > 1;
if (gArgs.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY) && gArgs.SoftSetBoolArg("-walletbroadcast", false)) {
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -walletbroadcast=0\n", __func__);
}
if (gArgs.GetBoolArg("-salvagewallet", false)) {
if (is_multiwallet) {
return InitError(strprintf("%s is only allowed with a single wallet file", "-salvagewallet"));
}
// Rewrite just private keys: rescan to find transactions
if (gArgs.SoftSetBoolArg("-rescan", true)) {
LogPrintf("%s: parameter interaction: -salvagewallet=1 -> setting -rescan=1\n", __func__);
}
}
bool zapwallettxes = gArgs.GetBoolArg("-zapwallettxes", false);
// -zapwallettxes implies dropping the mempool on startup
if (zapwallettxes && gArgs.SoftSetBoolArg("-persistmempool", false)) {
LogPrintf("%s: parameter interaction: -zapwallettxes enabled -> setting -persistmempool=0\n", __func__);
}
// -zapwallettxes implies a rescan
if (zapwallettxes) {
if (is_multiwallet) {
return InitError(strprintf("%s is only allowed with a single wallet file", "-zapwallettxes"));
}
if (gArgs.SoftSetBoolArg("-rescan", true)) {
LogPrintf("%s: parameter interaction: -zapwallettxes enabled -> setting -rescan=1\n", __func__);
}
}
if (is_multiwallet) {
if (gArgs.GetBoolArg("-upgradewallet", false)) {
return InitError(strprintf("%s is only allowed with a single wallet file", "-upgradewallet"));
}
}
if (gArgs.GetBoolArg("-sysperms", false))
return InitError("-sysperms is not allowed in combination with enabled wallet functionality");
if (gArgs.GetArg("-prune", 0) && gArgs.GetBoolArg("-rescan", false))
return InitError(_("Rescans are not possible in pruned mode. You will need to use -reindex which will download the whole blockchain again."));
if (::minRelayTxFee.GetFeePerK() > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-minrelaytxfee") + " " +
_("The wallet will avoid paying less than the minimum relay fee."));
if (gArgs.IsArgSet("-mintxfee"))
{
CAmount n = 0;
if (!ParseMoney(gArgs.GetArg("-mintxfee", ""), n) || 0 == n)
return InitError(AmountErrMsg("mintxfee", gArgs.GetArg("-mintxfee", "")));
if (n > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-mintxfee") + " " +
_("This is the minimum transaction fee you pay on every transaction."));
CWallet::minTxFee = CFeeRate(n);
}
if (gArgs.IsArgSet("-fallbackfee"))
{
CAmount nFeePerK = 0;
if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK))
return InitError(strprintf(_("Invalid amount for -fallbackfee=<amount>: '%s'"), gArgs.GetArg("-fallbackfee", "")));
if (nFeePerK > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-fallbackfee") + " " +
_("This is the transaction fee you may pay when fee estimates are not available."));
CWallet::fallbackFee = CFeeRate(nFeePerK);
}
if (gArgs.IsArgSet("-discardfee"))
{
CAmount nFeePerK = 0;
if (!ParseMoney(gArgs.GetArg("-discardfee", ""), nFeePerK))
return InitError(strprintf(_("Invalid amount for -discardfee=<amount>: '%s'"), gArgs.GetArg("-discardfee", "")));
if (nFeePerK > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-discardfee") + " " +
_("This is the transaction fee you may discard if change is smaller than dust at this level"));
CWallet::m_discard_rate = CFeeRate(nFeePerK);
}
if (gArgs.IsArgSet("-paytxfee"))
{
CAmount nFeePerK = 0;
if (!ParseMoney(gArgs.GetArg("-paytxfee", ""), nFeePerK))
return InitError(AmountErrMsg("paytxfee", gArgs.GetArg("-paytxfee", "")));
if (nFeePerK > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-paytxfee") + " " +
_("This is the transaction fee you will pay if you send a transaction."));
payTxFee = CFeeRate(nFeePerK, 1000);
if (payTxFee < ::minRelayTxFee)
{
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"),
gArgs.GetArg("-paytxfee", ""), ::minRelayTxFee.ToString()));
}
}
if (gArgs.IsArgSet("-maxtxfee"))
{
CAmount nMaxFee = 0;
if (!ParseMoney(gArgs.GetArg("-maxtxfee", ""), nMaxFee))
return InitError(AmountErrMsg("maxtxfee", gArgs.GetArg("-maxtxfee", "")));
if (nMaxFee > HIGH_MAX_TX_FEE)
InitWarning(_("-maxtxfee is set very high! Fees this large could be paid on a single transaction."));
maxTxFee = nMaxFee;
if (CFeeRate(maxTxFee, 1000) < ::minRelayTxFee)
{
return InitError(strprintf(_("Invalid amount for -maxtxfee=<amount>: '%s' (must be at least the minrelay fee of %s to prevent stuck transactions)"),
gArgs.GetArg("-maxtxfee", ""), ::minRelayTxFee.ToString()));
}
}
nTxConfirmTarget = gArgs.GetArg("-txconfirmtarget", DEFAULT_TX_CONFIRM_TARGET);
bSpendZeroConfChange = gArgs.GetBoolArg("-spendzeroconfchange", DEFAULT_SPEND_ZEROCONF_CHANGE);
fWalletRbf = gArgs.GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF);
g_address_type = ParseOutputType(gArgs.GetArg("-addresstype", ""));
if (g_address_type == OUTPUT_TYPE_NONE) {
return InitError(strprintf("Unknown address type '%s'", gArgs.GetArg("-addresstype", "")));
}
// If changetype is set in config file or parameter, check that it's valid.
// Default to OUTPUT_TYPE_NONE if not set.
g_change_type = ParseOutputType(gArgs.GetArg("-changetype", ""), OUTPUT_TYPE_NONE);
if (g_change_type == OUTPUT_TYPE_NONE && !gArgs.GetArg("-changetype", "").empty()) {
return InitError(strprintf("Unknown change type '%s'", gArgs.GetArg("-changetype", "")));
}
return true;
}
void RegisterWalletRPC(CRPCTable &t)
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
return;
}
RegisterWalletRPCCommands(t);
}
bool VerifyWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
return true;
}
if (gArgs.IsArgSet("-walletdir")) {
fs::path wallet_dir = gArgs.GetArg("-walletdir", "");
if (!fs::exists(wallet_dir)) {
return InitError(strprintf(_("Specified -walletdir \"%s\" does not exist"), wallet_dir.string()));
} else if (!fs::is_directory(wallet_dir)) {
return InitError(strprintf(_("Specified -walletdir \"%s\" is not a directory"), wallet_dir.string()));
} else if (!wallet_dir.is_absolute()) {
return InitError(strprintf(_("Specified -walletdir \"%s\" is a relative path"), wallet_dir.string()));
}
}
LogPrintf("Using wallet directory %s\n", GetWalletDir().string());
uiInterface.InitMessage(_("Verifying wallet(s)..."));
// Keep track of each wallet absolute path to detect duplicates.
std::set<fs::path> wallet_paths;
for (const std::string& walletFile : gArgs.GetArgs("-wallet")) {
if (boost::filesystem::path(walletFile).filename() != walletFile) {
return InitError(strprintf(_("Error loading wallet %s. -wallet parameter must only specify a filename (not a path)."), walletFile));
}
if (SanitizeString(walletFile, SAFE_CHARS_FILENAME) != walletFile) {
return InitError(strprintf(_("Error loading wallet %s. Invalid characters in -wallet filename."), walletFile));
}
fs::path wallet_path = fs::absolute(walletFile, GetWalletDir());
if (fs::exists(wallet_path) && (!fs::is_regular_file(wallet_path) || fs::is_symlink(wallet_path))) {
return InitError(strprintf(_("Error loading wallet %s. -wallet filename must be a regular file."), walletFile));
}
if (!wallet_paths.insert(wallet_path).second) {
return InitError(strprintf(_("Error loading wallet %s. Duplicate -wallet filename specified."), walletFile));
}
std::string strError;
if (!CWalletDB::VerifyEnvironment(walletFile, GetWalletDir().string(), strError)) {
return InitError(strError);
}
if (gArgs.GetBoolArg("-salvagewallet", false)) {
// Recover readable keypairs:
CWallet dummyWallet;
std::string backup_filename;
if (!CWalletDB::Recover(walletFile, (void *)&dummyWallet, CWalletDB::RecoverKeysOnlyFilter, backup_filename)) {
return false;
}
}
std::string strWarning;
bool dbV = CWalletDB::VerifyDatabaseFile(walletFile, GetWalletDir().string(), strWarning, strError);
if (!strWarning.empty()) {
InitWarning(strWarning);
}
if (!dbV) {
InitError(strError);
return false;
}
}
return true;
}
bool OpenWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
LogPrintf("Wallet disabled!\n");
return true;
}
for (const std::string& walletFile : gArgs.GetArgs("-wallet")) {
CWallet * const pwallet = CWallet::CreateWalletFromFile(walletFile);
if (!pwallet) {
return false;
}
vpwallets.push_back(pwallet);
}
return true;
}
void StartWallets(CScheduler& scheduler) {
for (CWalletRef pwallet : vpwallets) {
pwallet->postInitProcess(scheduler);
}
}
void FlushWallets() {
for (CWalletRef pwallet : vpwallets) {
pwallet->Flush(false);
}
}
void StopWallets() {
for (CWalletRef pwallet : vpwallets) {
pwallet->Flush(true);
}
}
void CloseWallets() {
for (CWalletRef pwallet : vpwallets) {
delete pwallet;
}
vpwallets.clear();
}
| [
"achury.daniel1@gmail.com"
] | achury.daniel1@gmail.com |
4ba8ff5ec2521be57a34586c96f60fee37ec53a5 | 30150c1a4a99608aab496570e172bdce4c53449e | /012_datatypes_floating.cpp | 1c4d39df41f264960712c6cc89b4512915eafa6a | [] | no_license | gergokutu/cplusplus-tutorials | 88334ba9b1aa8108109796d69ab5e8dd94da62c6 | 11e9c15f6c4e06b8e97ce77a732aec460d0251eb | refs/heads/master | 2020-09-04T17:46:03.954635 | 2020-01-14T11:44:15 | 2020-01-14T11:44:15 | 219,837,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | #include <iostream>
// how many significant digits a datatype is trustworthy to
#include <float.h>
using std::cout;
using std::endl;
int main()
{
// 3 types of floating-point numbers in c++
// use at least 1 place the floating-point number (10.0)
// not to have integer division
// 2.5 instead of 2!!!
float a = 10.0 / 4; // 2.5
float a2 = 10 / 4; // 2
float a3 = a * 10000000000; // 2.5e+10
// you can trust more significant digits
// with double than float
// 2.499999948...
double b = 7.7E4; // 7.7E4 >> scientific, 7.7 x 10^4, 77000
long double c;
cout << a << endl;
cout << a2 << endl;
cout << a3 << endl;
// not to have the scientific notation
cout << std::fixed << a3 << endl;
// 7.7 * 10000 needs less memory space
// than >> 77000 or 77000.00000
cout << endl << b << endl << endl; // 77000
// because of <float.h> I can use FLT_DIG...
cout << FLT_DIG << endl;
cout << DBL_DIG << endl;
cout << LDBL_DIG << endl;
// e.g you work with money
// there is libraries to work with exact precesion
// you can trust the whole number...
// tips for money
// dollar vs cent, 1 dollar = 100 cents
// using 100 cents instead of 1.00 dollar
int cents = 100;
// more precise
double cents_precise = 100;
// use float instead of double if you need to spare memory
} | [
"gergo.kutu@gmail.com"
] | gergo.kutu@gmail.com |
0b55931041e381b14fe62e98a313e3081cbfec71 | fab545b4ed9ec1459d60bc45fcab24257c53d9a2 | /GV__simpleObjectFindings.cpp | 345da080dbbf9bc2284a1c4cd7f4138f23603e55 | [] | no_license | pcsrk/Glyph-Visualization | 3475bbeb6b136005afd80222d233a154ca978193 | 0d6e72b561f643263af802d0f4114c9369be15dd | refs/heads/master | 2021-01-18T07:59:04.889090 | 2015-02-26T14:21:23 | 2015-02-26T14:21:23 | 30,707,909 | 0 | 0 | null | 2015-02-26T14:21:23 | 2015-02-12T15:10:55 | C | UTF-8 | C++ | false | false | 10,872 | cpp | /*
* GV__simpleObjectFindings.cpp
* sampleDBobjectViewer
*
* Created by mue on 17.10.06.
* Copyright 2006 __MyCompanyName__. All rights reserved.
*
*/
#include "GV__simpleObjectFindings.h"
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
GV__simpleObjectFindings::GV__simpleObjectFindings ( GVfindings *findings, QGLContext *cx) {
this->findings = findings;
this->cx = cx;
gq = gluNewQuadric();
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
GLuint GV__simpleObjectFindings::makeBase () {
// cx->makeCurrent();
GLuint dltemp = glGenLists(1);
glNewList(dltemp, GL_COMPILE);
generateBase (0.08, nodataT, false);
glEndList();
return dltemp;
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
GLuint GV__simpleObjectFindings::generateObject ( int elementIndex, int level) {
// qDebug ("hello in GV__simpleObjectSampleDB::generateObject -> RENDERING ELEMENT %d", elementIndex);
// qDebug ("sampleDB->el.count() = %d", sampleDB->el.count());
// first generate eh pBuffers
// cx->makeCurrent();
GLint slices = 15;
GLint stack = 15;
float transparency = 0.8;
float sockel_h = 0.15;
float marginb = 0.02;
float box = 0.90;
float boxh = 0.5;
float boxdelta = 0.05;
float height;
float black[4]={0,0,0,0};
int n = 2;
float nv = 2;
float sv;
int MstagingIndex = 2;
int NstagingIndex = 2;
int GIndex = 2;
int yearsSurvived;
int survivalIndex = 1;
if (yearsSurvived < 5) survivalIndex = 1;
if (yearsSurvived >=5) survivalIndex = 2;
if (yearsSurvived >=10) survivalIndex = 3;
if (yearsSurvived >=15) survivalIndex = 4;
survivalIndex = 3;
GLuint dltemp = glGenLists(1);
glNewList(dltemp, GL_COMPILE);
glEnable(GL_BLEND); // Turn Blending On
glColorMaterial ( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE);
GLfloat mat_ambient[] = { 1.0f, 1.0f, 1.0f, 1.0f };
GLfloat mat_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
glMaterialfv( GL_FRONT, GL_DIFFUSE, mat_diffuse );
glMaterialfv( GL_FRONT, GL_AMBIENT, mat_ambient );
QString mainColorAttribute = GVfindingsObject::visu2attribute["MAIN-COL-DISC"];
int mainColorIndex = findings->el[elementIndex]->value[mainColorAttribute];
GLuint texture = 0;
generateBase (sockel_h, 0, true);
float boxwidthf;
boxwidthf = 1.0;
box = 0.6;
float boxw;
float boxStart;
float boxEnd;
boxwidthf = 1.0;
boxw = box *boxwidthf;
#ifdef LEVEL3XX
boxStart = 0;
boxEnd = boxStart + boxw;
#else
boxStart = (1 - boxw) / 2;
boxEnd = boxStart + boxw;
#endif
float zStart = sockel_h;
float zEnd = sockel_h + box/2;
QColor glyphColor = QColor (200,200,200);
nv = 0;
if (mainColorIndex==0) {
glColor4f ( 0.8, 0.8, 0.8, 1.0);
glyphColor = QColor (200,200,200);
}
if (mainColorIndex==1) {
glColor4f ( 0.0, 0.4+nv, 0.0, 1.0);
glyphColor = QColor (0,100,00);
}
if (mainColorIndex == 2) {
glColor4f ( 0.3, 0.4+nv, 0.4+nv, 1.0);
glyphColor = QColor (70,100,100);
}
if (mainColorIndex == 3) {
glColor4f ( 0.4+nv, 0.4+nv, 0.0, 1.0);
glyphColor = QColor (100,100,0);
}
if (mainColorIndex == 4) {
glColor4f ( 0.4+nv, 0.0, 0.0, 1.0);
glyphColor = QColor (100,0,0);
}
zEnd = zStart + box/2 * survivalIndex ;
glColor4f ( glyphColor.redF(), glyphColor.greenF(), glyphColor.blueF(), 1.0);
generateBOX ( boxStart, boxStart, zStart, boxEnd, boxEnd, zEnd, glyphColor);
zStart = zEnd;
zEnd = zStart + 0.1 ;
QColor topC = glyphColor;
topC = glyphColor.darker(200);
generateBOX ( boxStart+0.1, boxStart+0.1, zStart, boxEnd-0.1, boxEnd-0.1, zEnd, topC);
zStart = sockel_h;
zEnd = zStart + 0.6 ;
//grading
#if 0
float smallBoxW = 0.3;
float borderMINW = 0.1;
if (GIndex > 1)
zEnd = zStart + box/2 * survivalIndex * 0.8;
else
zEnd = zStart + 0.2 ;
glColor4f(0.0, 0.0, 0.0, 1.0);
if (GIndex == 2) glColor4f(0.0, 0.4, 0.0, 1.0);
if (GIndex == 3) glColor4f(0.3, 0.4, 0.4, 1.0);
if (GIndex == 4) glColor4f(0.4, 0.4, 0.0, 1.0);
if (GIndex == 5) glColor4f(0.4, 0.0, 0.0, 1.0);
generateBOX (borderMINW, borderMINW, zStart, smallBoxW, smallBoxW, zEnd, false);
zStart = zEnd;
zEnd = zStart + 0.05 ;
generateBOX (borderMINW+0.05, borderMINW+0.05, zStart, smallBoxW-0.05, smallBoxW-0.05, zEnd, false);
zStart = sockel_h;;
#endif
// N STAGGING
#if 0
if (NstagingIndex > 1)
zEnd = zStart + box/2 * survivalIndex * 0.8;
else
zEnd = zStart + 0.2 ;
glColor4f(0.3, 0.3, 0.3, 1.0);
if (NstagingIndex == 2) glColor4f(0.0, 0.4, 0.0, 1.0);
if (NstagingIndex == 3) glColor4f(0.3, 0.4, 0.4, 1.0);
if (NstagingIndex == 4) glColor4f(0.4, 0.4, 0.0, 1.0);
if (NstagingIndex == 5) glColor4f(0.4, 0.0, 0.0, 1.0);
generateBOX (1-smallBoxW, borderMINW, zStart, 1-borderMINW, smallBoxW, zEnd, false);
zStart = zEnd+0.01;
zEnd = zStart + 0.03 ;
generateBOX (1-smallBoxW, borderMINW, zStart, 1-borderMINW, smallBoxW, zEnd, false);
zStart = sockel_h;;
if (MstagingIndex > 1)
zEnd = zStart + box/2 * survivalIndex * 0.8;
else
zEnd = zStart + 0.2 ;
glColor4f(0.3, 0.3, 0.3, 1.0);
if (MstagingIndex == 2) glColor4f(0.0, 0.4, 0.0, 1.0);
if (MstagingIndex == 3) glColor4f(0.3, 0.4, 0.4, 1.0);
if (MstagingIndex == 4) glColor4f(0.4, 0.4, 0.0, 1.0);
if (MstagingIndex == 5) glColor4f(0.4, 0.0, 0.0, 1.0);
generateBOX (borderMINW, 1-smallBoxW, zStart, smallBoxW, 1-borderMINW, zEnd, false);
#endif
glDisable ( GL_TEXTURE_2D);
bool yearInd = false;
// if (findings->el.value(elementIndex)->year %2) yearInd = true;
glEndList();
return dltemp;
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
void GV__simpleObjectFindings::generateBase (float height, GLuint textureID, bool borderHighlight)
{
// cx->makeCurrent();
#if 1
float xmin = 0.0; float ymin = 0.0; float zmin = 0.0;
float xmax = 1.0; float ymax = 1.0; float zmax = height;
glBegin(GL_QUADS);
glNormal3i (0, -1, 0);
glVertex3f(xmin, ymin, zmin);
glVertex3f(xmax, ymin, zmin);
glVertex3f(xmax, ymin, zmax);
glVertex3f(xmin, ymin, zmax);
glEnd( );
glBegin(GL_QUADS);
glNormal3i (-1, 0, 0);
glVertex3f(xmin, ymax, zmax);
glVertex3f(xmin, ymax, zmin);
glVertex3f(xmin, ymin, zmin);
glVertex3f(xmin, ymin, zmax);
glEnd( );
if (textureID) {
glEnable ( GL_TEXTURE_2D);
glBindTexture ( GL_TEXTURE_2D, textureID);
glEnable ( GL_BLEND);
glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE );
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
}
glBegin(GL_QUADS);
glNormal3i (0, 0, 1);
glTexCoord2d (0, 0); glVertex3f(xmin, ymin, zmax);
glTexCoord2d (1, 0); glVertex3f(xmax, ymin, zmax);
glTexCoord2d (1, 1); glVertex3f(xmax, ymax, zmax);
glTexCoord2d (0, 1); glVertex3f(xmin, ymax, zmax);
glEnd( );
glDisable ( GL_TEXTURE_2D);
#endif
}
//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
void GV__simpleObjectFindings::generateBOX (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, QColor topcolor)
{
// cx->makeCurrent();
// der Boden
#if 0
glBegin(GL_QUADS);
glNormal3i (0, 0, -1);
glTexCoord2d (0, 0); glVertex3f(xmin, ymax, zmin);
glTexCoord2d (1, 0); glVertex3f(xmax, ymax, zmin);
glTexCoord2d (1, 1); glVertex3f(xmax, ymin, zmin);
glTexCoord2d (0, 1); glVertex3f(xmin, ymin, zmin);
glEnd( );
#endif
#if 0
glBegin(GL_QUADS);
glNormal3i (0, 1, 0);
glTexCoord2d (0, 0); glVertex3f(xmin, ymax, zmin);
glTexCoord2d (1, 0); glVertex3f(xmin, ymax, zmax);
glTexCoord2d (1, 0.5); glVertex3f(xmax, ymax, zmax);
glTexCoord2d (0, 0.5); glVertex3f(xmax, ymax, zmin);
glEnd( );
#endif
glBegin(GL_QUADS);
glNormal3i (1, 0, 0);
glTexCoord2d (0, 0); glVertex3f(xmax, ymin, zmax);
glTexCoord2d (1, 0); glVertex3f(xmax, ymin, zmin);
glTexCoord2d (1, 1); glVertex3f(xmax, ymax, zmin);
glTexCoord2d (0, 1); glVertex3f(xmax, ymax, zmax);
glEnd( );
// rechts vorne
glBegin(GL_QUADS);
glNormal3i (0, -1, 0);
glTexCoord2d (0, 0); glVertex3f(xmin, ymin, zmin);
glTexCoord2d (1, 0); glVertex3f(xmax, ymin, zmin);
glTexCoord2d (1, 0.5); glVertex3f(xmax, ymin, zmax);
glTexCoord2d (0, 0.5); glVertex3f(xmin, ymin, zmax);
glEnd( );
// links vorne
glBegin(GL_QUADS);
glNormal3i (-1, 0, 0);
glTexCoord2d (0, 1); glVertex3f(xmin, ymax, zmax);
glTexCoord2d (0.5, 1); glVertex3f(xmin, ymax, zmin);
glTexCoord2d (0.5, 0); glVertex3f(xmin, ymin, zmin);
glTexCoord2d (0, 0); glVertex3f(xmin, ymin, zmax);
glEnd( );
glColor4f ( topcolor.redF(), topcolor.greenF(),topcolor.blueF(),1);
glBegin(GL_QUADS);
glNormal3i (0, 0, 1);
glTexCoord2d (0, 0); glVertex3f(xmin, ymin, zmax);
glTexCoord2d (1, 0); glVertex3f(xmax, ymin, zmax);
glTexCoord2d (1, 1); glVertex3f(xmax, ymax, zmax);
glTexCoord2d (0, 1); glVertex3f(xmin, ymax, zmax);
glEnd( );
}
| [
"mue@Heimos-MacBook-Pro-4.local"
] | mue@Heimos-MacBook-Pro-4.local |
1b8a4d3aea7809042aab285f09642e23c105da92 | 082441fee234fed91c508ed42bc03d666c3c9000 | /Client.Console/Client.Console.cpp | d0375c465b25f972312915e058aebc8e2c3392e6 | [] | no_license | JuntaoWu/InterlockProtocol | 35d92f85b82fc9b5c568da7f471247a624d6fffd | ad9c7b18e7858f66a8975b9c26222af649d6ed86 | refs/heads/master | 2021-01-10T15:56:34.752783 | 2016-01-11T23:03:00 | 2016-01-11T23:03:00 | 49,389,528 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | cpp | // Client.Console.cpp : Defines the entry point for the console application.
//
#include "LoggingClient.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Press Enter to start." << endl;
cin.get(); //get enter key.
u_short logger_port = argc > 1 ? atoi(argv[1]) : 0;
const char *logger_host = argc > 2 ? argv[2] : ACE_DEFAULT_SERVER_HOST;
int result;
ACE_INET_Addr server_addr;
if (logger_port != 0) {
result = server_addr.set(logger_port, logger_host);
}
else {
result = server_addr.set(7777, logger_host);
}
if (result == -1) {
ACE_ERROR_RETURN((LM_ERROR, "lookup %s, %p\n", logger_port == 0 ? "ace_logger" : argv[1], logger_host), 1);
}
ACE_SOCK_Connector connector;
LoggingClient client;
if (connector.connect(client.peer(), server_addr) < 0) {
ACE_ERROR_RETURN((LM_ERROR, "%p\n", "connect()"), 1);
}
cin.width(ACE_Log_Record::MAXLOGMSGLEN);
while (true) {
string user_input;
getline(cin, user_input, '\n');
if (!cin || cin.eof()) {
break;
}
ACE_Time_Value now(ACE_OS::gettimeofday());
ACE_Log_Record record(LM_INFO, now, ACE_OS::getpid());
record.msg_data(user_input.c_str());
if (client.send(record) == -1) {
ACE_ERROR_RETURN((LM_ERROR, "%p\n", "client.send()"), 1);
}
}
return 0;
}
| [
"wujuntaocn@live.cn"
] | wujuntaocn@live.cn |
72b75e4e44204bf02476d5a7618a3522db05a400 | 29215cb70bf3134e039b7beed34380121b934415 | /lib/Infer/ConstantSynthesis.cpp | 73a321ed7285ceff4c20f566179e21d4ac3609b1 | [
"Apache-2.0"
] | permissive | jmcabandara/souper | e64e7b7a6a42b86d4818f5d3fabc8e2ba06311ee | c490eff970bcf9f447cf2e344a139024719e8f18 | refs/heads/master | 2020-05-09T17:38:01.384643 | 2019-04-12T02:02:26 | 2019-04-12T02:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,721 | cpp | // Copyright 2019 The Souper 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.
#define DEBUG_TYPE "souper"
#include "llvm/ADT/APInt.h"
#include "llvm/Support/CommandLine.h"
#include "souper/Infer/ConstantSynthesis.h"
extern unsigned DebugLevel;
namespace souper {
std::error_code
ConstantSynthesis::synthesize(SMTLIBSolver *SMTSolver,
const BlockPCs &BPCs,
const std::vector<InstMapping> &PCs,
InstMapping Mapping, std::set<Inst *> &ConstSet,
std::map <Inst *, llvm::APInt> &ResultMap,
InstContext &IC, unsigned MaxTries, unsigned Timeout) {
Inst *TrueConst = IC.getConst(llvm::APInt(1, true));
Inst *FalseConst = IC.getConst(llvm::APInt(1, false));
// generalization by substitution
Inst *SubstAnte = TrueConst;
Inst *TriedAnte = TrueConst;
std::error_code EC;
for (int I = 0 ; I < MaxTries; I ++) {
std::map<Inst *, Inst *> InstCache;
std::map<Block *, Block *> BlockCache;
bool IsSat;
std::vector<Inst *> ModelInstsFirstQuery;
std::vector<llvm::APInt> ModelValsFirstQuery;
// TriedAnte /\ SubstAnte
Inst *FirstQueryAnte = IC.getInst(Inst::And, 1, {SubstAnte, TriedAnte});
std::string Query = BuildQuery(IC, BPCs, PCs, InstMapping(Mapping.LHS, Mapping.RHS),
&ModelInstsFirstQuery, FirstQueryAnte, true);
if (Query.empty())
return std::make_error_code(std::errc::value_too_large);
EC = SMTSolver->isSatisfiable(Query, IsSat, ModelInstsFirstQuery.size(),
&ModelValsFirstQuery, Timeout);
if (EC) {
llvm::report_fatal_error("ConstantSynthesis: solver returns error on first query");
}
if (!IsSat) {
// no constant found
if (DebugLevel > 3) {
llvm::errs() << "first query is UNSAT-- no more guesses\n";
}
return std::error_code();
}
if (DebugLevel > 3) {
llvm::errs() << "first query is SAT, returning the model:\n";
}
Inst* TriedAnteLocal = FalseConst;
std::map<Inst *, llvm::APInt> ConstMap;
for (unsigned J = 0; J != ModelInstsFirstQuery.size(); ++J) {
if (ConstSet.find(ModelInstsFirstQuery[J]) != ConstSet.end()) {
if (DebugLevel > 3) {
llvm::errs() << ModelInstsFirstQuery[J]->Name;
llvm::errs() << ": ";
llvm::errs() << ModelValsFirstQuery[J];
llvm::errs() << "\n";
}
Inst *Const = IC.getConst(ModelValsFirstQuery[J]);
ConstMap.insert(std::pair<Inst *, llvm::APInt>(ModelInstsFirstQuery[J], Const->Val));
Inst *Ne = IC.getInst(Inst::Ne, 1, {ModelInstsFirstQuery[J], Const});
if (ConstSet.size() == 1) {
TriedAnteLocal = Ne;
} else {
TriedAnteLocal = IC.getInst(Inst::Or, 1, {TriedAnteLocal, Ne});
}
}
}
TriedAnte = IC.getInst(Inst::And, 1, {TriedAnte, TriedAnteLocal});
BlockPCs BPCsCopy;
std::vector<InstMapping> PCsCopy;
Inst *SecondQueryAnte = getInstCopy(Mapping.RHS, IC, InstCache, BlockCache, &ConstMap, false);
// check if the constant is valid for all inputs
std::vector<Inst *> ModelInstsSecondQuery;
std::vector<llvm::APInt> ModelValsSecondQuery;
Query = BuildQuery(IC, BPCs, PCs, InstMapping(Mapping.LHS, SecondQueryAnte),
&ModelInstsSecondQuery, 0);
if (Query.empty())
return std::make_error_code(std::errc::value_too_large);
EC = SMTSolver->isSatisfiable(Query, IsSat, ModelInstsSecondQuery.size(),
&ModelValsSecondQuery, Timeout);
if (EC) {
llvm::report_fatal_error("ConstantSynthesis: solver returns error on second query");
}
if (!IsSat) {
if (DebugLevel > 3) {
llvm::errs() << "second query is UNSAT-- this guess works\n";
}
ResultMap = std::move(ConstMap);
return EC;
} else {
if (DebugLevel > 3) {
llvm::errs() << "second query is SAT-- constant doesn't work\n";
}
std::map<Inst *, llvm::APInt> SubstConstMap;
for (unsigned J = 0; J != ModelInstsSecondQuery.size(); ++J) {
Inst* Var = ModelInstsSecondQuery[J];
if (ConstSet.find(Var) == ConstSet.end()) {
SubstConstMap.insert(std::pair<Inst *, llvm::APInt>(Var, ModelValsSecondQuery[J]));
}
}
std::map<Inst *, Inst *> InstCache;
std::map<Block *, Block *> BlockCache;
SubstAnte = IC.getInst(Inst::And, 1,
{IC.getInst(Inst::Eq, 1, {getInstCopy(Mapping.LHS, IC, InstCache,
BlockCache, &SubstConstMap, true),
getInstCopy(Mapping.RHS, IC, InstCache,
BlockCache, &SubstConstMap, true)}),
SubstAnte});
}
}
if (DebugLevel > 3) {
llvm::errs() << "number of constant synthesis tries exceeds MaxTries(";
llvm::errs() << MaxTries;
llvm::errs() << "\n";
}
return EC;
}
}
| [
"regehr@cs.utah.edu"
] | regehr@cs.utah.edu |
e56589c9bce74d7be5754177359e4648c6024ede | f4931003612c8cdfa12777c771de5e26c3a40010 | /lyrebird-vis/polygon.h | cac5980424b53ed4d2ac2aaed4609bfd2937d435 | [
"BSD-2-Clause"
] | permissive | simonsobs/lyrebird | f5b7f6be2d62f00f51ad6139e0c8bb77ebe1d944 | e504ad73a5e4f144ff31d1177d03c2c2ec9ea8c8 | refs/heads/master | 2023-02-11T08:27:41.802476 | 2022-05-17T14:06:24 | 2022-05-17T14:06:24 | 145,595,127 | 0 | 1 | NOASSERTION | 2022-03-11T16:53:10 | 2018-08-21T17:09:45 | C++ | UTF-8 | C++ | false | false | 692 | h | #pragma once
#include <vector>
#include "glm/glm.hpp"
class Triangle{
public:
Triangle(glm::vec2 p0,
glm::vec2 p1,
glm::vec2 p2
);
void get_AABB(glm::vec2 & min_aabb, glm::vec2 & max_aabb);
void apply_transform(glm::mat4 trans);
bool is_inside(glm::vec2 p);
private:
void set_AABB();
glm::vec2 ps[3];
glm::vec2 min_AABB;
glm::vec2 max_AABB;
};
class Polygon{
public:
Polygon(std::vector<glm::vec2> points);
void get_AABB(glm::vec2 & min_aabb, glm::vec2 & max_aabb);
void apply_transform(glm::mat4 trans);
bool is_inside(glm::vec2 p);
private:
std::vector<Triangle> tris;
glm::vec2 min_AABB;
glm::vec2 max_AABB;
void set_AABB();
};
| [
"you@example.com"
] | you@example.com |
848e2b122780a5d5663f76135a87b2c673764472 | d8525d3811d22c90f69baa2c7654de19f4d39dd6 | /src/Util.cpp | 29097f19cff477edb433994749cd049e1996031b | [] | no_license | No0ot/Game2005-A3-Tulip-Chizhov | f454a152bf7a91cdea715996b48853ea2e994757 | 9f3a0cfae62b9ce16dbbe287b747338c87563ec2 | refs/heads/master | 2023-01-22T10:07:47.007414 | 2020-11-28T01:23:39 | 2020-11-28T01:23:39 | 312,340,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,747 | cpp | #include "Util.h"
#include <glm/gtc/constants.hpp>
#include <glm/gtx/norm.hpp>
#include <SDL.h>
#include "Renderer.h"
const float Util::EPSILON = glm::epsilon<float>();
const float Util::Deg2Rad = glm::pi<float>() / 180.0f;
const float Util::Rad2Deg = 180.0f / glm::pi<float>();
Util::Util()
= default;
Util::~Util()
= default;
/**
* Returns -1.0 if the value is less than 0 and 1.0 if the value is greater than 0
*/
float Util::sign(const float value)
{
return (value < 0.0f) ? -1.0f : 1.0f;
}
/**
* This method confines the value provided between min and max and returns the result
*
*/
float Util::clamp(float value, const float min, const float max)
{
if (value < min) {
value = min;
}
else if (value > max) {
value = max;
}
return value;
}
/**
* Clamps a value between 0 and 1 and returns the result
*
*/
float Util::clamp01(const float value)
{
auto result = 0.0f;
if (value < 0.0f) {
result = 0.0f;
}
else if (value > 1.0f) {
result = 1.0f;
}
else {
result = value;
}
return result;
}
/**
* Returns the Euclidean distance of vecA and vecB
*/
float Util::distance(const glm::vec2 vecA, const glm::vec2 vecB)
{
const auto x = vecB.x - vecA.x;
const auto y = vecB.y - vecA.y;
return sqrt((x * x) + (y * y));
}
/**
* Returns the Squared Euclidean distance of vecA and vecB
* No Square Root
*/
float Util::squaredDistance(const glm::vec2 vecA, const glm::vec2 vecB)
{
const auto x = vecB.x - vecA.x;
const auto y = vecB.y - vecA.y;
return (x * x) + (y * y);
}
/**
* Returns the magnitude of a vec2
*
*/
float Util::magnitude(const glm::vec2 vec)
{
const auto x = vec.x;
const auto y = vec.y;
return sqrt((x * x) + (y * y));
}
/**
* Returns the squared Magnitude of a vec2
* No Square Root
*/
float Util::squaredMagnitude(glm::vec2 vec)
{
const auto x = vec.x;
const auto y = vec.y;
return (x * x) + (y * y);
}
/**
* @brief
*
* @param vector
* @param magnitude
* @return glm::vec2
*/
glm::vec2 Util::limitMagnitude(glm::vec2 vector, const float magnitude)
{
const auto length = Util::magnitude(vector);
if (length > magnitude) {
const auto limiter = magnitude / length;
vector.x *= limiter;
vector.y *= limiter;
return vector;
}
else {
return vector;
}
}
/**
* Performs Linear Interpolation between and b
* at some t value between 0 and 1
*
*/
float Util::lerp(const float a, const float b, const float t)
{
return a + (b - a) * Util::clamp01(t);
}
/**
* Lerps between a and b at some t value - unclamped.
*
*/
float Util::lerpUnclamped(const float a, const float b, const float t)
{
return a + (b - a) * t;
}
/**
* Same as Lerp but makes sure the values interpolate correctly when they wrap around 360 degrees.
*
*/
float Util::lerpAngle(const float a, const float b, const float t)
{
auto num = Util::repeat(b - a, 360.0);
if (num > 180.0f) {
num -= 360.0f;
}
return a + num * Util::clamp01(t);
}
/**
* Loops the value t, so that it is never larger than length and never smaller than 0.
*
*/
float Util::repeat(float t, float length)
{
return Util::clamp(t - glm::floor(t / length) * length, 0.0f, length);
}
float Util::RandomRange(const float min, const float max)
{
return min + static_cast <float> (rand()) / (static_cast <float> (RAND_MAX / (max - min)));
}
/**
* This Utility function checks to see if a number is very small (close to EPSILON)
* If so, it changes the value to 0.0;
*/
float Util::Sanitize(float value)
{
if ((value >= -Util::EPSILON) && (value <= Util::EPSILON)) {
value = 0.0;
}
return value;
}
/**
* This method computes the minimum values for x and y from vecA and vecB
* and returns them in dest or returns the result in a new vec2
*
*/
glm::vec2 Util::min(const glm::vec2 vecA, const glm::vec2 vecB)
{
glm::vec2 dest;
dest.x = glm::min(vecA.x, vecB.x);
dest.y = glm::min(vecA.y, vecB.y);
return dest;
}
float Util::min(float a, float b)
{
return a < b ? a : b;
}
/**
* This method computes the maximum values of x and y from vecA and vecB
* and returns the result in dest or returns the result as a new vec2
*
*/
glm::vec2 Util::max(const glm::vec2 vecA, const glm::vec2 vecB)
{
glm::vec2 dest;
dest.x = glm::max(vecA.x, vecB.x);
dest.y = glm::max(vecA.y, vecB.y);
return dest;
}
float Util::max(float a, float b)
{
return a > b ? a : b;
}
/**
* Negates the x and y components of a vec2 and returns them in a new vec2 object
*
*/
glm::vec2 Util::negate(const glm::vec2 vec)
{
glm::vec2 dest;
dest.x = -vec.x;
dest.y = -vec.y;
return dest;
}
/**
* Returns the inverse x and y components of src vec2 and returns them in a new vec2 object
*
*/
glm::vec2 Util::inverse(const glm::vec2 vec)
{
glm::vec2 dest;
dest.x = 1.0 / vec.x;
dest.y = 1.0 / vec.y;
return dest;
}
/**
* Normalizes vec2 and stores the result in a new vec2 object
*
*/
glm::vec2 Util::normalize(const glm::vec2 vec)
{
glm::vec2 dest;
auto x = vec.x;
auto y = vec.y;
auto length = (x * x) + (y * y);
if (length > 0) {
length = 1.0 / sqrt(length);
dest.x = vec.x * length;
dest.y = vec.y * length;
}
return dest;
}
/**
* Returns the angle in degrees between from and to.
*/
float Util::angle(const glm::vec2 from, const glm::vec2 to)
{
return acos(Util::clamp(Util::dot(Util::normalize(from), Util::normalize(to)), -1.0f, 1.0f)) * 57.29578f;
}
/**
* Dot Product of two vectors.
*/
float Util::dot(const glm::vec2 lhs, const glm::vec2 rhs)
{
return lhs.x * rhs.x + lhs.y * rhs.y;
}
float Util::signedAngle(const glm::vec2 from, const glm::vec2 to)
{
const auto unsigned_angle = Util::angle(from, to);
const auto sign = Util::sign(from.x * to.y - from.y * to.x);
return unsigned_angle * sign;
}
glm::vec2 Util::rotateVector(glm::vec2 origin, float angle)
{
glm::vec2 final;
float cosQ = cos(angle);
float sinQ = sin(angle);
final.x = origin.x * cosQ + origin.y * -sinQ;
final.y = origin.x * sinQ + origin.y * cosQ;
return Util::normalize(final);
}
glm::vec2 Util::getVector(float angle)
{
glm::vec2 final;
float angleinRads = angle * Util::Deg2Rad;
final.x = cos(angleinRads);
final.y = sin(angleinRads);
return final;
}
glm::vec2 Util::lerpVector(glm::vec2 from, glm::vec2 to, float t)
{
glm::vec2 final;
float angle = Util::signedAngle(from, to);
angle = Util::lerpAngle(0, angle, t);
final = Util::rotateVector(from, angle);
return final;
}
void Util::DrawLine(glm::vec2 start, glm::vec2 end, glm::vec4 colour)
{
int r = floor(colour.r * 255.0f);
int g = floor(colour.g * 255.0f);
int b = floor(colour.b * 255.0f);
int a = floor(colour.a * 255.0f);
const auto renderer = /* TheGame::Instance()->getRenderer()*/ Renderer::Instance()->getRenderer();
SDL_SetRenderDrawColor(renderer, r, g, b, a);
SDL_RenderDrawLine(renderer, start.x, start.y, end.x, end.y);
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
}
void Util::DrawRect(glm::vec2 position, int width, int height, glm::vec4 colour)
{
int r = floor(colour.r * 255.0f);
int g = floor(colour.g * 255.0f);
int b = floor(colour.b * 255.0f);
int a = floor(colour.a * 255.0f);
SDL_Rect rectangle;
rectangle.x = position.x;
rectangle.y = position.y;
rectangle.w = width;
rectangle.h = height;
const auto renderer = /* TheGame::Instance()->getRenderer()*/ Renderer::Instance()->getRenderer();
SDL_SetRenderDrawColor(renderer, r, g, b, a);
SDL_RenderFillRect(renderer, &rectangle);
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
}
void Util::DrawCircle(glm::vec2 centre, int radius, glm::vec4 colour, ShapeType type)
{
int r = floor(colour.r * 255.0f);
int g = floor(colour.g * 255.0f);
int b = floor(colour.b * 255.0f);
int a = floor(colour.a * 255.0f);
const auto renderer = /* TheGame::Instance()->getRenderer()*/ Renderer::Instance()->getRenderer();
SDL_SetRenderDrawColor(renderer, r, g, b, a);
int diameter = floor(radius * 2.0f);
int x = (radius - 1);
int y = 0;
int tx = 1;
int ty = 1;
int error = (tx - diameter);
while (x >= y)
{
switch (type)
{
case SEMI_CIRCLE_TOP:
// Each of the following renders an octant of the circle
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y - x);
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y - x);
break;
case SEMI_CIRCLE_BOTTOM:
// Each of the following renders an octant of the circle
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y + y); // bottom right
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y + y); // bottom left
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y + x); // bottom right
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y + x); // bottom left
break;
case SEMI_CIRCLE_LEFT:
// Each of the following renders an octant of the circle
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y + y);
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y - x);
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y + x);
break;
case SEMI_CIRCLE_RIGHT:
// Each of the following renders an octant of the circle
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y + y);
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y - x);
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y + x);
break;
case SYMMETRICAL:
// Each of the following renders an octant of the circle
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x + x, centre.y + y);
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y - y);
SDL_RenderDrawPoint(renderer, centre.x - x, centre.y + y);
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y - x);
SDL_RenderDrawPoint(renderer, centre.x + y, centre.y + x);
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y - x);
SDL_RenderDrawPoint(renderer, centre.x - y, centre.y + x);
break;
}
if (error <= 0)
{
++y;
error += ty;
ty += 2;
}
if (error > 0)
{
--x;
tx += 2;
error += (tx - diameter);
}
}
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
}
void Util::DrawCapsule(glm::vec2 position, int width, int height, glm::vec4 colour)
{
int diameter;
int radius;
int halfWidth = floor(width * 0.5f);
int halfHeight = floor(height * 0.5f);
if (width > height)
{
// Horizontal Capsule
diameter = height;
radius = halfHeight * 0.5f;
DrawCircle(glm::vec2(position.x - halfWidth + halfHeight, position.y), halfHeight, colour, SEMI_CIRCLE_LEFT);
DrawCircle(glm::vec2(position.x + halfWidth - halfHeight, position.y), halfHeight, colour, SEMI_CIRCLE_RIGHT);
DrawLine(glm::vec2(position.x - halfWidth + halfHeight, position.y - halfHeight), glm::vec2(position.x + halfWidth - halfHeight, position.y - halfHeight));
DrawLine(glm::vec2(position.x - halfWidth + halfHeight, position.y + halfHeight), glm::vec2(position.x + halfWidth - halfHeight, position.y + halfHeight));
}
else if (width < height)
{
// Vertical Capsule
diameter = width;
radius = halfWidth * 0.5f;
DrawCircle(glm::vec2(position.x, position.y - halfHeight + radius), radius, colour, SEMI_CIRCLE_TOP);
DrawCircle(glm::vec2(position.x, position.y + halfHeight - radius), radius, colour, SEMI_CIRCLE_BOTTOM);
DrawLine(glm::vec2(position.x - radius, position.y - halfHeight + radius), glm::vec2(position.x - halfWidth * 0.5f, position.y + halfHeight * 0.5f));
DrawLine(glm::vec2(position.x + radius, position.y - halfHeight + radius), glm::vec2(position.x + halfWidth * 0.5f, position.y + halfHeight * 0.5f));
}
else
{
// Circle
diameter = floor(height * 2.0f);
radius = width;
DrawCircle(position, radius = halfWidth, colour);
}
}
| [
"tulip.chris@gmail.com"
] | tulip.chris@gmail.com |
3a8e2cf82616406948dfc002c680ff3d7b114dfa | e7f58e9244ed038cb0f5f2a2275ba9c38388c747 | /src/Sort.cpp | 4b20f989283dde7baea51bf2ac8010b064d40b23 | [
"MIT"
] | permissive | cwbriones/sort | c5aa3e963e3a9dd76ae95297fa1eecad64feae81 | 1f7042d821ecb3eeec9d8b703c17369f6019b8c8 | refs/heads/master | 2020-04-21T19:36:25.937347 | 2013-08-30T23:41:43 | 2013-08-30T23:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,089 | cpp | /*
* Copyright (C) 2013 Christian Briones
*
* 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 "Sort.h"
#include "SortingTester.h"
//==============================================================================
// Sort
//==============================================================================
Sort::Sort() {}
Sort::Sort(std::string name) : name_(name) {}
void Sort::set_tester(SortingTester* tester) { tester_ = tester; }
std::string Sort::name() { return name_; }
void Sort::swap(int& a, int& b){
if (tester_){
tester_->increment_swaps();
}
if (a == b){
return;
}
a ^= b;
b ^= a;
a ^= b;
}
int Sort::compare(int a, int b){
if (tester_){
tester_->increment_comparisons();
}
if (a > b){
return 1;
}
else if (a < b){
return -1;
}
return 0;
}
//==============================================================================
// Quicksort
//==============================================================================
QuickSort::QuickSort() : Sort("QuickSort") {}
size_t QuickSort::partition(int* items, size_t lo, size_t hi){
int i = lo;
int j = hi + 1;
// Randomly choose a partition element
int pivot = randint(lo, hi);
// Move the pivot to the front
swap(items[pivot], items[lo]);
while (true){
// Increase first pointer until elem greater than pivot
// and second pointer until elem less than pivot
while (compare(items[++i], items[lo]) < 0 && i != hi);
while (compare(items[lo], items[--j]) < 0 && j != lo);
if (i >= j){
break;
}
// Swap the smaller item with the larger item
swap(items[i], items[j]);
}
// Move the pivot back
swap(items[lo], items[j]);
return j;
}
void QuickSort::_quick_sort(int* items, int lo, int hi){
if (hi <= lo){
// Arrays of length <= 1 are sorted
return;
}
// Partition the array
int j = partition(items, lo, hi);
// Recursively sort subarrays
_quick_sort(items, lo, j-1);
_quick_sort(items, j+1, hi);
}
void QuickSort::operator()(int* items, size_t size){
_quick_sort(items, 0, size - 1);
}
//==============================================================================
// Mergesort
//==============================================================================
MergeSort::MergeSort() : Sort("MergeSort") {}
void MergeSort::_merge(int* items, int left, int right, int* scratch){
if (right == left + 1){
// Base case
return;
}
int i = 0;
int len = right - left;
int mid = len/2;
// Recurse
_merge(items, left, left + mid, scratch);
_merge(items, left + mid, right, scratch);
int il = left;
int ir = left + mid;
// Each half is now sorted. We merge.
for (int i = 0; i < len; i++){
if (il < left + mid && (ir == right || (compare(items[il], items[ir]) < 0))){
scratch[i] = items[il];
il++;
} else {
scratch[i] = items[ir];
ir++;
}
}
// Copy back
for(i = left; i < right; i++){
items[i] = scratch[i - left];
}
}
void MergeSort::operator()(int* items, size_t size){
// Only a single array allocation is necessary
int* scratch = new int[size];
_merge(items, 0, size, scratch);
delete scratch;
return;
}
//==============================================================================
// Bubble sort
//==============================================================================
BubbleSort::BubbleSort() : Sort("BubbleSort") {}
void BubbleSort::operator()(int* items, size_t size){
for (int i = size; i > 1; i--){
for (int j = 1; j < i; j++){
if (compare(items[j], items[j-1]) < 0){
swap(items[j], items[j-1]);
}
}
}
}
//==============================================================================
// Cocktail sort
//==============================================================================
CocktailSort::CocktailSort() : Sort("CocktailSort") {}
void CocktailSort::operator()(int* items, size_t size){
int left = 0;
int right = size - 2;
while (left < right){
// Go up the list
for (int i = left; i <= right; i++){
if (compare(items[i], items[i + 1]) > 0){
swap(items[i], items[i + 1]);
}
}
left++;
// Go down the list
for (int i = right; i >= left; i--){
if (compare(items[i-1], items[i]) > 0 ){
swap(items[i-1], items[i]);
}
}
right--;
}
}
//==============================================================================
// Insertion sort
//==============================================================================
InsertionSort::InsertionSort() : Sort("InsertionSort") {}
void InsertionSort::operator()(int* items, size_t size){
for (int i = 0; i < size; i++){
int tmp = items[i];
int j = i;
while (--j >= 0 && compare(items[j], tmp) > 0){
items[j + 1] = items[j];
// Essentially we are swapping each element above
// the inserted position up one space
if (tester_){
tester_->increment_swaps();
}
}
items[j + 1] = tmp;
}
}
//==============================================================================
// Heapsort
//==============================================================================
HeapSort::HeapSort() : Sort("HeapSort") {}
void HeapSort::operator()(int* items, size_t size){
// Create the heap
MinHeap<int> heap(items, size);
// Pop off the heap and populate the array
int i = 0;
while (!heap.is_empty()){
items[i++] = heap.pop_min();
}
}
//==============================================================================
// Radix Sort
//==============================================================================
#include <vector>
#include <list>
RadixSort::RadixSort() : Sort("RadixSort") {}
void RadixSort::operator()(int * items, size_t size){
if (size <= 1){
return;
}
// Base of the modulo operation
int m = 10;
int n = 1;
std::vector< std::list<int> > buckets(10);
// Find the largest item
int max = items[0];
for (int i = 1; i < size; i++){
if (items[i] > max){
max = items[i];
}
}
while (n < max){
// Move into respective list
for (int i = 0; i < size; i++){
int j = (items[i] % m) / n;
buckets[j].push_back(items[i]);
}
// Pop off and copy back into array
int k = 0;
for (int i = 0; i < 10; i++){
while (!buckets[i].empty()){
int top = buckets[i].front();
buckets[i].pop_front();
items[k++] = top;
}
}
// Iterate
m *= 10;
n *= 10;
}
}
| [
"cwbriones@gmail.com"
] | cwbriones@gmail.com |
825082dbdbd7093d6ec04614651c4baca2a2ed65 | 0c848a59f3feb3bcef685d889224630ba674a04d | /Connect 4/src/Program/State.h | 11e7a2a0a1dce30bc9c4fc84280b50ec27b9c886 | [] | no_license | josephcwalker/NEA-Coursework | 168ea06ad85f90f739ec6acb3c1814a22d044653 | bfdb7175c44b238d8f759d7d86014ee6a945c355 | refs/heads/master | 2023-04-02T03:32:39.010745 | 2021-04-15T14:06:32 | 2021-04-15T14:06:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,194 | h | #pragma once
#include <SFML/Graphics.hpp>
namespace Connect
{
class Button;
// Abstract State class used to allow for polymorphism
// to store all states in a single data structure easily
class State
{
public:
State() {};
virtual ~State() {};
public:
// Used to initialize any values that need to be created a single time
// Cannot take parameters so the construcutor of the base class must be used
virtual void Initialize() = 0;
// Used to update any values that may need to change based on the user
// Perhaps an optimization can be made to only run this when something has actually changed
virtual void Execute() = 0;
// Used to draw all the objects in the state will be run every frame
// Unless there is an optimization but this will be hard to communicate with main.cpp
virtual void Draw() = 0;
// Used to give this state the handle to the window to draw stuff
inline void SetWindow(sf::RenderWindow* window) { m_Window = window; }
// Common Button Functions
protected:
void PopState();
void RemoveAllStates();
void PushConfirmExitState();
protected:
static sf::RenderWindow* m_Window;
public:
Button* recentButton = nullptr;
};
} | [
"josephwalker2010@hotmail.co.uk"
] | josephwalker2010@hotmail.co.uk |
9a3564ff84f9cd853dd711be1118d4998c49f62f | 5d4ff76a00fcf8919786ac4f0f3196a0c3aa1885 | /Vs_2/Turtle_Cnt_Arduino_vs2.ino | c9c2b9108e7e7bbaec768b3c978afe732620bc45 | [] | no_license | DiegoGiFo/Turtle_Cnt_Arduino | 2147f2a8d94445d41913f4e3a5d0512b503e9239 | 21f816c807d62372a03a87a8ba433a57291ec47f | refs/heads/master | 2021-01-25T13:35:28.682218 | 2018-03-12T11:43:47 | 2018-03-12T11:43:47 | 123,588,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | ino | #include <LiquidCrystal.h>
#include <ros.h>
#include <turtlesim/Pose.h>
#include <geometry_msgs/Twist.h>
ros::NodeHandle nh; // allows to create publisher/subscriber
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
geometry_msgs::Twist movements;
const int BtPin1 = 6;
const int BtPin2 = 7;
const int BtPin3 = 8;
const int BtPin4 = 9;
int RGT = 0;
int LFT = 0;
int FWD = 0;
int BEH = 0;
void turt_cb( const turtlesim::Pose &turt_msg){
lcd.setCursor(0,0);
lcd.print("X position :");
lcd.print(turt_msg.x);
lcd.setCursor(0,1);
lcd.print("Y position :");
lcd.print(turt_msg.y);
}
ros::Subscriber<turtlesim::Pose> sub("/turtle1/pose", &turt_cb);
ros::Publisher pub("/turtle1/cmd_vel", &movements);
void setup() {
nh.initNode(); // initialize ROS node
nh.subscribe(sub);
nh.advertise(pub);
pinMode(BtPin1, INPUT);
pinMode(BtPin2, INPUT);
pinMode(BtPin3, INPUT);
pinMode(BtPin4, INPUT);
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
}
void loop() {
RGT = digitalRead(BtPin1);
LFT = digitalRead(BtPin2);
FWD = digitalRead(BtPin3);
BEH = digitalRead(BtPin4);
if (RGT == HIGH) {
movements.linear.x = 0;
movements.angular.z= 1.57;
pub.publish( &movements );
delay(1000);
movements.linear.x = 2;
movements.angular.z= 0;
pub.publish( &movements );
}
else if(LFT == HIGH) {
movements.linear.x = 0;
movements.angular.z= -1.57;
pub.publish( &movements );
delay(1000);
movements.linear.x = 2.0;
movements.angular.z= 0;
pub.publish( &movements );
}
else if (FWD == HIGH){
movements.linear.x = 2.0;
movements.angular.z= 0;
pub.publish( &movements );
}
else if (BEH == HIGH){
movements.linear.x = -2.0;
movements.angular.z= 0;
pub.publish( &movements );
}
nh.spinOnce();
}
| [
"diego.gibellofoglio@gmail.com"
] | diego.gibellofoglio@gmail.com |
ef99789da9553c6ef0ea5ec8814e5ee566ee890c | a85bcd9a3332c6ae187453e32a9d234ae8532dc5 | /application/HTTPDownloader.hpp | 802cc741241a4ef99daee1835a293c5c0c24c0cb | [] | no_license | vinnoplexus/Crawler_Test | f3ba9298fd94a40b17ce2d3d7c48b1b7b8590cdf | 1ef1449bff2efd313d7ce80a492337dd3c2ac301 | refs/heads/master | 2021-01-20T14:22:35.428550 | 2017-05-11T13:18:36 | 2017-05-11T13:18:36 | 90,595,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | hpp | #include <string>
/**
* A non-threadsafe simple libcURL-easy based HTTP downloader
*/
class HTTPDownloader {
public:
HTTPDownloader();
~HTTPDownloader();
/**
* Download a file using HTTP GET and store in in a std::string
* @param url The URL to download
* @return The download result
*/
std::string download(const std::string& url);
private:
void* curl;
};
| [
"vinay.sable@innoplexus.com"
] | vinay.sable@innoplexus.com |
054855fd222da0ca5bf35f2a29b64067de553e60 | 7248fece394bb45defc21b18fd7aaa18bba73cad | /Problem 10/Problem 10/main.cpp | af249730666b0c6928a2e9cf2110306fcb2380fe | [] | no_license | drsoxen/Project-Euler | eff25fb15eba322b19a2a5f8b669d695799ea67a | 1676d680ce66ad56e44362ba81b95d3fa3c84c50 | refs/heads/master | 2016-09-03T06:31:25.504019 | 2012-09-27T02:54:55 | 2012-09-27T02:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | #include <iostream>
#include <vector>
using namespace std;
void PrimeNumbers(unsigned long long numberOfPrimeNumbers);
vector<unsigned long long>PrimeNumberVec;
unsigned long long sum = 0;
int main()
{
PrimeNumbers(2000000);
for(int i =0;i<PrimeNumberVec.size();i++)
sum += PrimeNumberVec[i];
cout<<sum<<endl;
system("PAUSE");
return 0;
}
void PrimeNumbers(unsigned long long numberOfPrimeNumbers)
{
unsigned long long j;
for (unsigned long long i = 2; i< numberOfPrimeNumbers; i++ )
{
for ( j = 2; j <= i/2; j++ )
{
if ( ! ( i % j ) )
break;
}
if ( j > i / 2 )
{
PrimeNumberVec.push_back(i);
//cout<<i<<endl;
}
}
} | [
"stargateno1fan@Chriss-MacBook.local"
] | stargateno1fan@Chriss-MacBook.local |
87a2717b06352054d1e196774fc1458a6777143d | 0b5ca79064d0f6049c943704b9066d18cf0dfb70 | /src/Controls.h | 6bdc9e164621cf034978cc8f51600056b5727b70 | [] | no_license | aspirkin/Andrumeda | 9cef4723204bc032fae73826e0a5cf1712fac161 | 0f2c3b86a5dac3c04d0ddf2dbbec82809cf2836b | refs/heads/master | 2023-01-19T15:27:41.558937 | 2020-11-30T11:57:32 | 2020-11-30T11:57:32 | 218,037,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,918 | h | #ifndef Controls_h_
#define Controls_h_
#include <EncoderHandler.h>
#include <SensorHandler.h>
#include <vector>
#include <menus/MenuBranch.h>
#include <menus/MenuLeaf.h>
#include <parameters/AbstractParameter.h>
#include <parameters/StatefulParameter.h>
#include <parameters/StatelessParameter.h>
#include <EncoderHandler.h>
#include <displays/ST7735_DisplayHandler.h>
class Controls
{
protected:
int _numberOfMusicNodes;
int _numberOfEncoders;
std::vector <SensorHandler*> _ptrMusicSensorHandlers;
std::vector <EncoderHandler*> _ptrEncoderHandlers;
MenuBranch* _rootMenu;
MenuBranch* _currentMenu;
AbstractDisplayHandler* _displayHandler;
AbstractParameter* _parameterMock = new AbstractParameter();
AbstractParameter* _configurableParameter;
StatelessParameter* _navigationParameter = new StatelessParameter(
std::bind(&Controls::selectNextChild, this),
std::bind(&Controls::selectPreviousChild, this)
);
StatelessParameter* _configurationParameter = new StatelessParameter(
std::bind(&Controls::increaseParameter, this),
std::bind(&Controls::decreaseParameter, this)
);
EncoderHandler* _configurationEncoderHandler;
EncoderHandler* _navigationEncoderHandler;
void setConfigurableParameter(MenuItem* item);
public:
Controls(int numberOfMusicNodes, int numberOfEncoders, MenuBranch* rootMenu, AbstractDisplayHandler* displayHandler);
SensorHandler* getMusicSensorHandler(int index);
EncoderHandler* getEncoderHandler(int index);
void addMusicSensor(int pin);
void addNavigationEncoder(int pinA, int pinB, int pinS);
void addConfigurationEncoder(int pinA, int pinB, int pinS);
EncoderHandler* addCommonEncoder(int pinA, int pinB, int pinS);
void update();
void enterCurrentChild();
void escapeToParent();
void selectNextChild();
void selectPreviousChild();
void increaseParameter();
void decreaseParameter();
};
#endif //Controls_h_ | [
"aleksey.spirkin@gmail.com"
] | aleksey.spirkin@gmail.com |
190a7cd719ab64812936aa144e9579b45b6de7c1 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/62/6fd89b84cf582b/main.cpp | 5a2058f961e3926fa90025c5967f9c302c999ee3 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | #include <iostream>
#include <string.h>
void copyString(char stringToCopyTo[], char stringToCopy[]);
int main(){
char string1[] = "Hello World!";
char string2[80];
copyString(string2, string1);
std::cout << "String1: " << string1 << "\n";
std::cout << "String2: " << string2 << "\n";
return 0;
}
void copyString(char stringToCopyTo[], char stringToCopy[]){
stringToCopyTo = stringToCopy;
} | [
"francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df"
] | francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df |
98bb432970da87ff9085ef08eb64cfdb9a7f22be | 30f17239efb0852b4d645b6b4a61e019e7d4ad66 | /extensions/MolSimAPI/plugin/TpsSimulationPluginMolSimAPI.cpp | c97ede358274c76c540aa5fac418a0a8ff967b8c | [] | no_license | mfhossam1992/libtps | ac0a2de9857f968d7155419d510510f610748126 | 983d4651455b8f99c1e24f19756f0fea2c5eac50 | refs/heads/master | 2020-11-26T07:20:02.857443 | 2013-01-24T18:31:25 | 2013-01-24T18:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,141 | cpp | /*
LibTPS -- A Transition Path Sampling Library
(LibTPS) Open Source Software License Copyright 2012 The Regents of the
University of Michigan All rights reserved.
LibTPS may contain modifications ("Contributions") provided, and to which
copyright is held, by various Contributors who have granted The Regents of the
University of Michigan the right to modify and/or distribute such Contributions.
You may redistribute, use, and create derivate works of LibTPS, in source
and binary forms, provided you abide by the following conditions:
* Redistributions of source code must retain the above copyright notice, this
list of conditions, and the following disclaimer both in the code and
prominently in any materials provided with the distribution.
* 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.
* Apart from the above required attributions, neither the name of the copyright
holder nor the names of LibTPS's contributors may be used to endorse or
promote products derived from this software without specific prior written
permission.
Disclaimer
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR ANY
WARRANTIES THAT THIS SOFTWARE IS FREE OF INFRINGEMENT 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.
*/
/*
* TpsSimulationPluginEtomica.cpp
* tpsapi
*
* Created by askeys on 7/1/09.
* Copyright 2009 The Regents of the University of Michigan. All rights reserved.
*
*/
#include "TpsSimulationPluginAtomicMolSimAPI.h"
#include <cassert>
#include <sstream>
#include <fstream>
#include <iostream>
TpsSimulationPluginAtomicMolSimAPI::TpsSimulationPluginAtomicMolSimAPI(
IAPISimulation* sim, IAPIIntegrator* integrator,
IAPIPotentialMaster* potenential_master, int dim)
:
_sim(sim),
_integrator(integrator),
_potential_master(potenential_master),
_box_id(0),
_dimensions(dim),
_temperature(1.0),
_restart_mode(RAM)
{
}
TpsSimulationPluginAtomicMolSimAPI::~TpsSimulationPluginAtomicMolSimAPI()
{
}
#pragma mark REIMPLEMENTED FROM TPSSIMULATIONPLUGIN
void TpsSimulationPluginAtomicMolSimAPI::run(int nsteps)
{
for (int i=0; i<nsteps; i++) {
_integrator->doStep();
}
}
/**
\bug this function doesn't work yet, so we can't do many types of shooting moves
\todo figure out a way to compute the kinetic + potential energy and return the
expected temperature using the API
*/
double TpsSimulationPluginAtomicMolSimAPI::computeHamiltonian()
{
return 0.0;// _potential_master->getTotalEnergy();
}
/**
\bug this function doesn't work yet, so we can't do many types of shooting moves
\todo get the expected temperature from the API or require this information be
passed to the plugin on construction
*/
double TpsSimulationPluginAtomicMolSimAPI::getExpectedTemperature()
{
return _temperature;
}
void TpsSimulationPluginAtomicMolSimAPI::freeRestart(const char* filename)
{
if (_restart_mode & DISK) {
if (remove(filename) == -1) {
std::cerr << "Error: could not delete file " << filename << "\n";
}
}
else {
if (_mem_timeslice.find(filename) != _mem_timeslice.end()) {
_mem_timeslice.erase(filename);
}
}
}
void TpsSimulationPluginAtomicMolSimAPI::copyRestart(
const char* src_file, const char* dest_file)
{
if (_restart_mode & DISK) {
std::ostringstream os;
os << "cp " << src_file << " " << dest_file;
system(os.str().c_str());
}
else {
_mem_timeslice[dest_file] = _mem_timeslice[src_file];
}
}
void conv1dto2d(
double* x1d, std::vector< std::vector<double> >& x2d, int n, int dim)
{
x2d.resize(n);
for (int i=0; i<n; i++) {
x2d[i].resize(dim);
for (int j=0; j<dim; j++) {
x2d[i][j] = x1d[i*dim + j];
}
}
}
void conv2dto1d(
std::vector< std::vector<double> >& x2d, double* x1d, int n, int dim)
{
for (int i=0; i<n; i++) {
for (int j=0; j<dim; j++) {
x1d[i*dim + j] = x2d[i][j];
}
}
}
void TpsSimulationPluginAtomicMolSimAPI::writeRestart(const char* filename)
{
if (_restart_mode & DISK) {
if (_restart_mode & BINARY) {
std::ofstream os(filename, std::ios::binary);
_MemoryMappedTimesliceAtomic m;
copyPositionsTo(m.x);
copyVelocitiesTo(m.v);
callbackCopyExtraRestartInfoTo(m.extra);
int ndim = getDimensions();
int n;
n = m.x.size()*ndim;
os.write((char*)&n, sizeof(int));
double x[n];
conv2dto1d(m.x, x, m.x.size(), ndim);
os.write((char*)x, n*sizeof(int));
n = m.v.size()*ndim;
os.write((char*)&n, sizeof(int));
double v[n];
conv2dto1d(m.v, v, m.v.size(), ndim);
os.write((char*)&n, sizeof(int));
os.write((char*)v, n*sizeof(double));
n = m.extra.size();
os.write((char*)&n, sizeof(int));
os.write((char*)&m.extra[0], n*sizeof(int));
os.close();
}
else {
std::ofstream os(filename);
_MemoryMappedTimesliceAtomic m;
copyPositionsTo(m.x);
copyVelocitiesTo(m.v);
callbackCopyExtraRestartInfoTo(m.extra);
int ndim = getDimensions();
int n;
n = m.x.size()*ndim;
os << n << "\t";
double x[n];
conv2dto1d(m.x, x, m.x.size(), ndim);
for (int i=0; i<n; i++) {
os << x[i] << "\t";
}
os << "\n";
n = m.v.size()*ndim;
os << n << "\t";
double v[n];
conv2dto1d(m.v, v, m.v.size(), ndim);
for (int i=0; i<n; i++) {
os << v[i] << "\t";
}
os << "\n";
n = m.extra.size();
os << n << "\t";
for (int i=0; i<n; i++) {
os << m.extra[i] << "\t";
}
os << "\n";
os.close();
}
}
else {
_MemoryMappedTimesliceAtomic m;
copyPositionsTo(m.x);
copyVelocitiesTo(m.v);
callbackCopyExtraRestartInfoTo(m.extra);
_mem_timeslice[filename] = m;
}
}
void TpsSimulationPluginAtomicMolSimAPI::readRestart(const char* filename)
{
if (_restart_mode & DISK) {
if (_restart_mode & BINARY) {
std::ifstream is(filename, std::ios::binary);
if (is.fail()) {
std::cerr << "TpsSimulationPluginAtomicMolSimAPI: ";
std::cerr << "could not find restart file " << filename;
std::cerr << "\n";
exit(1);
}
int ndim = getDimensions();
std::vector< std::vector<double> > x, v;
int n;
is.read((char*)&n, sizeof(int));
double x1d[n];
is.read((char*)x1d, n*sizeof(double));
conv1dto2d(x1d, x, n/ndim, ndim);
setPositions(x);
is.read((char*)&n, sizeof(int));
double v1d[n];
is.read((char*)v1d, n*sizeof(double));
conv1dto2d(v1d, v, n/ndim, ndim);
setVelocities(v);
is.read((char*)&n, sizeof(int));
std::vector<double> extra(n);
is.read((char*)&extra[0], n*sizeof(double));
callbackSetExtraRestartInfo(extra);
is.close();
}
else {
std::ifstream is(filename);
if (is.fail()) {
std::cerr << "TpsSimulationPluginAtomicMolSimAPI: ";
std::cerr << "could not find restart file " << filename;
std::cerr << "\n";
exit(1);
}
int ndim = getDimensions();
std::vector< std::vector<double> > x, v;
int n;
is >> n;
double x1d[n];
for (int i=0; i<n; i++) {
double tmp;
is >> tmp;
x1d[i] = tmp;
}
conv1dto2d(x1d, x, n/ndim, ndim);
setPositions(x);
is >> n;
double v1d[n];
for (int i=0; i<n; i++) {
double tmp;
is >> tmp;
v1d[i] = tmp;
}
conv1dto2d(v1d, v, n/ndim, ndim);
setVelocities(v);
is >> n;
std::vector<double> extra(n);
for (int i=0; i<n; i++) {
double tmp;
is >> tmp;
extra[i] = tmp;
}
callbackSetExtraRestartInfo(extra);
is.close();
}
}
else {
if (_mem_timeslice.find(filename) == _mem_timeslice.end()) {
std::cerr << "TpsSimulationPluginAtomicMolSimAPI: ";
std::cerr << "could not find memory mapped file " << filename;
std::cerr << "\n";
exit(1);
}
_MemoryMappedTimesliceAtomic& m = _mem_timeslice[filename];
setPositions(m.x);
setVelocities(m.v);
callbackSetExtraRestartInfo(m.extra);
}
}
#pragma mark REIMPLEMENTED FROM TPSSIMULATIONPLUGINATOMIC
void TpsSimulationPluginAtomicMolSimAPI::setVelocities(
std::vector< std::vector<double> >& v)
{
int natom = v.size();
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
for (int i=0; i<natom; i++) {
IAPIAtomKinetic *atom = dynamic_cast<IAPIAtomKinetic*>(al->getAtom(i));
atom->getVelocity()->E(&v[i][0]);
}
}
void TpsSimulationPluginAtomicMolSimAPI::setPositions(
std::vector< std::vector<double> >&x)
{
int natom = x.size();
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
for (int i=0; i<natom; i++) {
IAPIAtomKinetic *atom = dynamic_cast<IAPIAtomKinetic*>(al->getAtom(i));
atom->getPosition()->E(&x[i][0]);
}
}
void TpsSimulationPluginAtomicMolSimAPI
::copyPositionsTo(std::vector< std::vector<double> >& x_copy)
{
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
int natom = getNumberOfAtoms();
int dim = getDimensions();
x_copy.resize(natom);
for (int i=0; i<natom; i++) {
x_copy[i].resize(dim);
IAPIAtomPositioned *atom =
dynamic_cast<IAPIAtomPositioned*>(al->getAtom(i));
IAPIVector* x = atom->getPosition();
for (int k=0; k<dim; k++) {
x_copy[i][k] = x->x(k);
}
}
}
void TpsSimulationPluginAtomicMolSimAPI
::copyVelocitiesTo(std::vector< std::vector<double> >& v_copy)
{
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
int natom = getNumberOfAtoms();
int dim = getDimensions();
v_copy.resize(natom);
for (int i=0; i<natom; i++) {
v_copy[i].resize(dim);
IAPIAtomKinetic *atom = dynamic_cast<IAPIAtomKinetic*>(al->getAtom(i));
IAPIVector* v = atom->getVelocity();
for (int k=0; k<dim; k++) {
v_copy[i][k] = v->x(k);
}
}
}
void TpsSimulationPluginAtomicMolSimAPI::copyTypesTo(std::vector<int>& types)
{
int natom = getNumberOfAtoms();
types.resize(natom);
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
for (int i=0; i<natom; i++) {
types[i] = al->getAtom(i)->getType()->getIndex();
}
}
int TpsSimulationPluginAtomicMolSimAPI::getNumberOfAtoms()
{
return _sim->getBox(_box_id)->getLeafList()->getAtomCount();
}
/**
\note not yet working for boxes not centered at the origin
*/
void TpsSimulationPluginAtomicMolSimAPI::copyBoxTo(BoxInfo& box)
{
int d = getDimensions();
box.period.resize(d);
box.periodic.resize(d);
box.boxlo.resize(d);
box.boxhi.resize(d);
//get dimensions = get box dimensions
IAPIVector* p = _sim->getBox(_box_id)->getBoundary()->getDimensions();
for (int i=0; i<d; i++) {
box.period[i] = p->x(i);
box.periodic[i] = _sim->getBox(_box_id)->getBoundary()->getPeriodicity(i);
box.boxlo[i] = -0.5*p->x(i);
box.boxhi[i] = 0.5*p->x(i);
}
}
/**
\brief Invert the velocities for time reversal
\warning Function does not check if underlying integrator is not time-reversible
\note Does not yet work for extended system models (i.e., thermostats and
barostats with positions/velocities). One problem is that this is
nearly impossible to generalize. Current solution: add a callback
for user-defined reading writing or extra restart info, such as extended
system x, v, f, etc.
*/
void TpsSimulationPluginAtomicMolSimAPI::invertVelocities()
{
int natom = getNumberOfAtoms();
int dim = getDimensions();
std::vector< std::vector<double> > v;
copyVelocitiesTo(v);
//first the easy part:
for(int i=0; i<natom; i++) {
for (int j=0; j<dim; j++) {
v[i][j] = -1.0 * v[i][j];
}
}
setVelocities(v);
callbackOnInvertVelocities();
}
/**
\brief A callback that is called every time invertVelocities() is called
\note possibly avoid this by use IAPIAtoms to contain extended system info
This function is typically re-implemented if velocities other than the particle
velocities need to be inverted (e.g., extended system velocities)
*/
void TpsSimulationPluginAtomicMolSimAPI::callbackOnInvertVelocities()
{
//override this function to do something if necessary
}
/**
\brief computes the kinetic energy
\note would be better to compute this from the API to generalize linear
and angular contributions (we assume linear only for now)
The kinetic energy is used for two things
-# Computing the total Hamiltonian in the case that velocities are changed
during a trial move
-# Ensuring that the total energy is conserved in a constant energy trial
move (often used for NVE simulations)
*/
double TpsSimulationPluginAtomicMolSimAPI::computeKinetic()
{
std::vector <std::vector<double> > v;
copyVelocitiesTo(v);
int natom = getNumberOfAtoms();
int dim = getDimensions();
IAPIAtomList *al = _sim->getBox(_box_id)->getLeafList();
double ke = 0.0;
for (int i=0; i<natom; i++) {
double e = 0.0;
for (int j=0; j<dim; j++) {
e += v[i][j]*v[i][j];
}
ke += al->getAtom(i)->getType()->getMass() * e;
}
return 0.5*ke;
}
/**
\returns the dimensionality of space
\note this information is currently passed on construction, but it could be
possible to get it from the API
*/
int TpsSimulationPluginAtomicMolSimAPI::getDimensions()
{
return _dimensions;
}
/**
\brief sets the integration timestep (if applicable)
\note had to add non-API methods here
*/
void TpsSimulationPluginAtomicMolSimAPI::setTimestep(double timestep)
{
if (_integrator->stepSizeIsMutable()) {
IAPIIntegratorMD* i = dynamic_cast<IAPIIntegratorMD*>(_integrator);
i->setTimestep(timestep);
}
}
/**
\brief sets the integration timestep (if applicable)
\note had to add non-API methods here
*/
double TpsSimulationPluginAtomicMolSimAPI::getTimestep()
{
if (_integrator->stepSizeIsMutable()) {
IAPIIntegratorMD* i = dynamic_cast<IAPIIntegratorMD*>(_integrator);
return i->getTimestep();
}
else return 0.0;
}
#pragma mark MolSimAPI-SPECIFIC FUNCTIONS
/**
\brief a callback to copy additional restart information to a vector
*/
void TpsSimulationPluginAtomicMolSimAPI::callbackCopyExtraRestartInfoTo(std::vector<double>& info)
{
}
/**
\brief a callback to load additional restart information into the simulation
*/
void TpsSimulationPluginAtomicMolSimAPI::callbackSetExtraRestartInfo(std::vector<double>& info)
{
}
/**
\return a pointer to the underlying MolSimAPI simulation
\warning manipulating the MolSimAPI object may produce unexpected plugin behavior
For some applications it is necessary to get a pointer to the MolSimAPI simulation
to manipulate MolSimAPI directly. For example, for custom analysis codes or
to read/write custom restart information.
*/
IAPISimulation* TpsSimulationPluginAtomicMolSimAPI::getIAPISimulation()
{
return _sim;
}
/**
\brief save restart information to memory
*/
void TpsSimulationPluginAtomicMolSimAPI::setRestartMode(int i)
{
_restart_mode = i;
}
| [
"aaron.s.keys@gmail.com"
] | aaron.s.keys@gmail.com |
9d765ced88134e529d5f6196b68ba4eda6e0820c | 6d7eae0eda05945f2d95448b647cdc9217b592a7 | /RC/Projeto/shared/src/error.cpp | fd66a10052c5f5045f4524942d781660c4b7b8f9 | [] | no_license | oitgg/EC-UFPB | dcac2c7349e30d78cb04f042d2cd742306f9b033 | 972a2cb2233ac03ded577bb5a6ff47f94e8944d8 | refs/heads/master | 2020-05-21T01:16:09.884537 | 2019-05-20T22:00:39 | 2019-05-20T22:00:39 | 185,852,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | #include "error.h"
void socket_error()
{
perror("Erro ao criar um socket");
exit(1);
}
void connect_error()
{
perror("Erro ao solicitar uma conexão");
exit(1);
}
void recv_error()
{
perror("Erro ao receber uma mensagem");
exit(1);
}
void send_error()
{
perror("Erro ao enviar uma mensagem");
exit(1);
}
void bind_error()
{
perror("Erro ao associar uma porta ao socket (bind)");
exit(1);
}
void listen_error()
{
perror("Erro ao abrir a escuta");
exit(1);
}
void gethostbyname_error()
{
perror("gethostbyname");
exit(1);
}
void reuse_address_error()
{
perror("setsockopt(SO_REUSEADDR) failed");
exit(1);
}
| [
"37004066+oitgg@users.noreply.github.com"
] | 37004066+oitgg@users.noreply.github.com |
4c0d9b6be2779e60b889286b7dda5705a99c0688 | bd1fea86d862456a2ec9f56d57f8948456d55ee6 | /000/067/735/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_listen_socket_34.cpp | 9f721f4312ed3106f7706082fc702018c2e934c5 | [] | no_license | CU-0xff/juliet-cpp | d62b8485104d8a9160f29213368324c946f38274 | d8586a217bc94cbcfeeec5d39b12d02e9c6045a2 | refs/heads/master | 2021-03-07T15:44:19.446957 | 2020-03-10T12:45:40 | 2020-03-10T12:45:40 | 246,275,244 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,535 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_listen_socket_34.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml
Template File: sources-sinks-34.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: listen_socket Read data using a listen socket (server side)
* GoodSource: Larger than zero but less than 10
* Sinks:
* GoodSink: Ensure the array index is valid
* BadSink : Improperly check the array index by not checking the upper bound
* Flow Variant: 34 Data flow: use of a union containing two methods of accessing the same data (within the same function)
*
* */
#include "std_testcase.h"
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <direct.h>
#pragma comment(lib, "ws2_32") /* include ws2_32.lib when linking */
#define CLOSE_SOCKET closesocket
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1
#define CLOSE_SOCKET close
#define SOCKET int
#endif
#define TCP_PORT 27015
#define LISTEN_BACKLOG 5
#define CHAR_ARRAY_SIZE (3 * sizeof(data) + 2)
namespace CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_listen_socket_34
{
typedef union
{
int unionFirst;
int unionSecond;
} unionType;
#ifndef OMITBAD
void bad()
{
int data;
unionType myUnion;
/* Initialize data */
data = -1;
{
#ifdef _WIN32
WSADATA wsaData;
int wsaDataInit = 0;
#endif
int recvResult;
struct sockaddr_in service;
SOCKET listenSocket = INVALID_SOCKET;
SOCKET acceptSocket = INVALID_SOCKET;
char inputBuffer[CHAR_ARRAY_SIZE];
do
{
#ifdef _WIN32
if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR)
{
break;
}
wsaDataInit = 1;
#endif
/* POTENTIAL FLAW: Read data using a listen socket */
listenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (listenSocket == INVALID_SOCKET)
{
break;
}
memset(&service, 0, sizeof(service));
service.sin_family = AF_INET;
service.sin_addr.s_addr = INADDR_ANY;
service.sin_port = htons(TCP_PORT);
if (bind(listenSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR)
{
break;
}
if (listen(listenSocket, LISTEN_BACKLOG) == SOCKET_ERROR)
{
break;
}
acceptSocket = accept(listenSocket, NULL, NULL);
if (acceptSocket == SOCKET_ERROR)
{
break;
}
/* Abort on error or the connection was closed */
recvResult = recv(acceptSocket, inputBuffer, CHAR_ARRAY_SIZE - 1, 0);
if (recvResult == SOCKET_ERROR || recvResult == 0)
{
break;
}
/* NUL-terminate the string */
inputBuffer[recvResult] = '\0';
/* Convert to int */
data = atoi(inputBuffer);
}
while (0);
if (listenSocket != INVALID_SOCKET)
{
CLOSE_SOCKET(listenSocket);
}
if (acceptSocket != INVALID_SOCKET)
{
CLOSE_SOCKET(acceptSocket);
}
#ifdef _WIN32
if (wsaDataInit)
{
WSACleanup();
}
#endif
}
myUnion.unionFirst = data;
{
int data = myUnion.unionSecond;
{
int i;
int * buffer = new int[10];
/* initialize buffer */
for (i = 0; i < 10; i++)
{
buffer[i] = 0;
}
/* POTENTIAL FLAW: Attempt to write to an index of the array that is above the upper bound
* This code does check to see if the array index is negative */
if (data >= 0)
{
buffer[data] = 1;
/* Print the array values */
for(i = 0; i < 10; i++)
{
printIntLine(buffer[i]);
}
}
else
{
printLine("ERROR: Array index is negative.");
}
delete[] buffer;
}
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B() uses the GoodSource with the BadSink */
static void goodG2B()
{
int data;
unionType myUnion;
/* Initialize data */
data = -1;
/* FIX: Use a value greater than 0, but less than 10 to avoid attempting to
* access an index of the array in the sink that is out-of-bounds */
data = 7;
myUnion.unionFirst = data;
{
int data = myUnion.unionSecond;
{
int i;
int * buffer = new int[10];
/* initialize buffer */
for (i = 0; i < 10; i++)
{
buffer[i] = 0;
}
/* POTENTIAL FLAW: Attempt to write to an index of the array that is above the upper bound
* This code does check to see if the array index is negative */
if (data >= 0)
{
buffer[data] = 1;
/* Print the array values */
for(i = 0; i < 10; i++)
{
printIntLine(buffer[i]);
}
}
else
{
printLine("ERROR: Array index is negative.");
}
delete[] buffer;
}
}
}
/* goodB2G() uses the BadSource with the GoodSink */
static void goodB2G()
{
int data;
unionType myUnion;
/* Initialize data */
data = -1;
{
#ifdef _WIN32
WSADATA wsaData;
int wsaDataInit = 0;
#endif
int recvResult;
struct sockaddr_in service;
SOCKET listenSocket = INVALID_SOCKET;
SOCKET acceptSocket = INVALID_SOCKET;
char inputBuffer[CHAR_ARRAY_SIZE];
do
{
#ifdef _WIN32
if (WSAStartup(MAKEWORD(2,2), &wsaData) != NO_ERROR)
{
break;
}
wsaDataInit = 1;
#endif
/* POTENTIAL FLAW: Read data using a listen socket */
listenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (listenSocket == INVALID_SOCKET)
{
break;
}
memset(&service, 0, sizeof(service));
service.sin_family = AF_INET;
service.sin_addr.s_addr = INADDR_ANY;
service.sin_port = htons(TCP_PORT);
if (bind(listenSocket, (struct sockaddr*)&service, sizeof(service)) == SOCKET_ERROR)
{
break;
}
if (listen(listenSocket, LISTEN_BACKLOG) == SOCKET_ERROR)
{
break;
}
acceptSocket = accept(listenSocket, NULL, NULL);
if (acceptSocket == SOCKET_ERROR)
{
break;
}
/* Abort on error or the connection was closed */
recvResult = recv(acceptSocket, inputBuffer, CHAR_ARRAY_SIZE - 1, 0);
if (recvResult == SOCKET_ERROR || recvResult == 0)
{
break;
}
/* NUL-terminate the string */
inputBuffer[recvResult] = '\0';
/* Convert to int */
data = atoi(inputBuffer);
}
while (0);
if (listenSocket != INVALID_SOCKET)
{
CLOSE_SOCKET(listenSocket);
}
if (acceptSocket != INVALID_SOCKET)
{
CLOSE_SOCKET(acceptSocket);
}
#ifdef _WIN32
if (wsaDataInit)
{
WSACleanup();
}
#endif
}
myUnion.unionFirst = data;
{
int data = myUnion.unionSecond;
{
int i;
int * buffer = new int[10];
/* initialize buffer */
for (i = 0; i < 10; i++)
{
buffer[i] = 0;
}
/* FIX: Properly validate the array index and prevent a buffer overflow */
if (data >= 0 && data < (10))
{
buffer[data] = 1;
/* Print the array values */
for(i = 0; i < 10; i++)
{
printIntLine(buffer[i]);
}
}
else
{
printLine("ERROR: Array index is out-of-bounds");
}
delete[] buffer;
}
}
}
void good()
{
goodG2B();
goodB2G();
}
#endif /* OMITGOOD */
} /* close namespace */
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
#ifdef INCLUDEMAIN
using namespace CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_listen_socket_34; /* so that we can use good and bad easily */
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| [
"frank@fischer.com.mt"
] | frank@fischer.com.mt |
834bb6e62e11f31ed489977231e17b6cff199969 | 040ae0bfa0218a30383ee5a24b2ba4d2e5fefbb5 | /AntiyMonitor-MFC/EventSink.cpp | 8ccef81f1d4db9cca62e4662cd59bd1424bb4386 | [] | no_license | fengjixuchui/NetMon-2 | f6df5d794992f2ed85fbaf046a03fdfc62768b62 | 1a2f22e1e8ab65d2062f10455b91550cb6838b39 | refs/heads/main | 2023-02-05T03:56:41.900497 | 2020-12-22T15:48:26 | 2020-12-22T15:48:26 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 9,208 | cpp | #include <stdio.h>
#include <iostream>
#include <comutil.h>
#include <string.h>
#include <stdlib.h>
#include "AntiyEtw.h"
#include "AntiyWmi.h"
using namespace std;
EventSink::EventSink()
{
InitListEntry(&m_ListHeader);
InitializeCriticalSection(&m_WmiEventLock);
}
EventSink::~EventSink()
{
}
ULONG EventSink::AddRef()
{
return InterlockedIncrement(&m_lRef);
}
ULONG EventSink::Release()
{
LONG lRef = InterlockedDecrement(&m_lRef);
if (lRef == 0)
delete this;
return lRef;
}
HRESULT EventSink::QueryInterface(REFIID riid, void** ppv)
{
if (riid == IID_IUnknown || riid == IID_IWbemObjectSink)
{
*ppv = (IWbemObjectSink *)this;
AddRef();
return WBEM_S_NO_ERROR;
}
else return E_NOINTERFACE;
}
void CopyUnicodeString(PUNICODE_STRING *Desc, WCHAR *Source)
{
*Desc = (PUNICODE_STRING)malloc(sizeof(UNICODE_STRING));
ULONG dwLen = wcslen(Source) + 1;
(*Desc)->Buffer = (WCHAR *)malloc(dwLen * sizeof(WCHAR));
memset((*Desc)->Buffer, 0, dwLen);
(*Desc)->Length = dwLen;
wcsncpy_s((*Desc)->Buffer, dwLen,Source, dwLen);
}
LARGE_INTEGER EventSink::GetTimeStampValue(WCHAR *szTime)
{
LARGE_INTEGER llValue;
WCHAR *p = NULL;
llValue.QuadPart = 0;
p = szTime;
while (*p != '\0')
{
llValue.QuadPart *= 10;
llValue.QuadPart += (*p);
llValue.QuadPart -= '0';
++p;
}
return llValue;
}
void EventSink::SetWmiEventData(WMI_EVENT_DATA *pWmiEventData ,WCHAR *pKey, WCHAR *pValue)
{
if (_wcsicmp(pKey, L"__CLASS") == 0)
{
CopyUnicodeString(&pWmiEventData->szClassName, pValue);
}
else if (_wcsicmp(pKey, L"__SUPERCLASS") == 0)
{
CopyUnicodeString(&pWmiEventData->szSuperClassName, pValue);
}
else if (_wcsicmp(pKey, L"__SERVER") == 0)
{
CopyUnicodeString(&pWmiEventData->szServerName, pValue);
}
else if (_wcsicmp(pKey, L"__NAMESPACE") == 0)
{
CopyUnicodeString(&pWmiEventData->szNameSpace, pValue);
}
else if (_wcsicmp(pKey, L"TIME_CREATED") == 0)
{
pWmiEventData->llTimeCreate = GetTimeStampValue(pValue);
}
}
WMI_EVENT_DATA *EventSink::EnumClassData(IWbemClassObject *pClass)
{
VARIANT varWmiDatas;
LONG Ubound = 0;
LONG Lbound = 0;
SAFEARRAY *pSafeArray = NULL;
BSTR bWmiString = NULL;
LONG rgIndices = 0;
CIMTYPE CimType;
IWbemQualifierSet *pQualifierSet = NULL;
HRESULT hr;
VARIANT varIant;
VARIANT varValue;
LIST_ENTRY *pList = NULL;
WMI_EVENT_DATA *pWmiEventData = NULL;
BOOL bSuccess = FALSE;
if (!pClass)
return pWmiEventData;
pWmiEventData = (WMI_EVENT_DATA *)malloc(sizeof(WMI_EVENT_DATA));
memset(pWmiEventData, 0, sizeof(WMI_EVENT_DATA));
while (pClass->GetNames(NULL, WBEM_FLAG_ALWAYS, &varWmiDatas, &pSafeArray) == S_OK)
{
if(SafeArrayGetLBound(pSafeArray,1u,&Lbound) || SafeArrayGetUBound(pSafeArray, 1u, &Ubound) || Ubound < 0)
break;
if (Lbound <= Ubound)
{
rgIndices = Lbound;
}
do
{
if(SafeArrayGetElement(pSafeArray,&rgIndices,&bWmiString) || pClass->Get(bWmiString,0,0,&CimType,NULL))
break;
VariantInit(&varIant);
hr = pClass->Get(bWmiString,0,&varIant,NULL,NULL);
do
{
if(FAILED(hr))
break;
bSuccess = TRUE;
VariantInit(&varValue);
switch (varIant.vt)
{
case CIM_STRING:
{
//printf("%ws=%ws\n",bWmiString,varIant.bstrVal);
hr = pClass->GetQualifierSet(&pQualifierSet);
if (hr == S_OK)
{
SetWmiEventData(pWmiEventData,bWmiString, varIant.bstrVal);
}
}
break;
case CIM_UINT64:
{
printf("%ws=%d\n", bWmiString,varIant.llVal);
}
}
VariantClear(&varIant);
VariantClear(&varValue);
} while (0);
++rgIndices;
} while (rgIndices <= Ubound);
VariantClear(&varWmiDatas);
SafeArrayDestroy(pSafeArray);
pSafeArray = NULL;
varWmiDatas.lVal++;
break;
}
if (!bSuccess)
{
free(pWmiEventData);
return NULL;
}
EnterCriticalSection(&m_WmiEventLock);
InsertHeaderList(&m_ListHeader, &pWmiEventData->List);
LeaveCriticalSection(&m_WmiEventLock);
return pWmiEventData;
}
BOOL GetWmiQueryInfo(PWMI_EVENT_DATA pWmiEventData, OLECHAR *szObjectText)
{
BOOL bResult = FALSE;
ULONG dwNameOffset = 0;
ULONG dwNameLen;
ULONG i = 0;
ULONG dwEnd;
OLECHAR *rp = NULL;//read pointer
const OLECHAR *cps[4] = {L"Name = ",L"Query = ",L"QueryLanguage = ",L"TargetInstance = "};//compare pointer
ULONG cpcount;
const OLECHAR *cp = NULL;
const OLECHAR *p = NULL;
WCHAR *tmpstr = NULL;
const OLECHAR *pName = NULL;
do
{
rp = szObjectText;
for (cpcount = 0; cpcount < 4; ++cpcount)
{
cp = cps[cpcount];
dwNameLen = wcslen(cp);
dwEnd = 0;
//while (rp[i] != '\0')
{
p = wcsstr(rp, cp);
if (p)
{
pName = p + dwNameLen;
while (pName[dwEnd] != '\0')
{
if (pName[dwEnd] == ';')
{
break;
}
++dwEnd;
}
if(dwEnd == 0)
break;
tmpstr = (WCHAR *)malloc((dwEnd + 1) * sizeof(WCHAR));
memset(tmpstr, 0, (dwEnd + 1) * sizeof(WCHAR));
CopyMemory(tmpstr, pName,dwEnd * sizeof(WCHAR));
if (_wcsicmp(cp, L"Name = ") == 0)
{
pWmiEventData->szName = (UNICODE_STRING *)malloc(sizeof(UNICODE_STRING));
CopyUnicodeString(&pWmiEventData->szName, tmpstr);
}
else if (_wcsicmp(cp, L"Query = ") == 0)
{
pWmiEventData->szQuery = (UNICODE_STRING *)malloc(sizeof(UNICODE_STRING));
CopyUnicodeString(&pWmiEventData->szQuery, tmpstr);
}
else if (_wcsicmp(cp, L"QueryLanguage = ") == 0)
{
pWmiEventData->szQueryLanguage = (UNICODE_STRING *)malloc(sizeof(UNICODE_STRING));
CopyUnicodeString(&pWmiEventData->szQueryLanguage, tmpstr);
}
else if (_wcsicmp(cp, L"TargetInstance = ") == 0)
{
WCHAR *startstr = tmpstr;
WCHAR *endstr = NULL;
while (*startstr && *(startstr + 1))
{
//if (*startstr == '_' && *(startstr + 1) == '_')
{
startstr += wcslen(L"instance of ");
endstr = startstr;
while (*endstr)
{
if (*endstr == '{')
{
break;
}
++endstr;
}
break;
}
++startstr;
}
if (endstr)
{
WCHAR tmpBuffer[0x30] = { 0 };
CopyMemory(tmpBuffer, startstr, (endstr - startstr) * sizeof(WCHAR));
CopyUnicodeString(&pWmiEventData->szEventName, tmpBuffer);
}
}
if (tmpstr)
{
free(tmpstr);
tmpstr = NULL;
}
}
++i;
}
}
} while (0);
return bResult;
}
HRESULT EventSink::Indicate(long lObjectCount,
IWbemClassObject **apObjArray)
{
ULONG dwResult = 0;
IWbemClassObject *pClassObj = NULL;
IWbemQualifierSet *pQualifierSet = NULL;
SAFEARRAY *pNames = NULL;
HRESULT hr;
char pByteBuffer[0x1fe] = { 0 };
void *pVBuffer_1;
ULONG dwCurrentIndex = 0;
VARIANT varClass;
OLECHAR *bstr;
OLECHAR **pBstr = NULL;
void **pPAddress = NULL;
ULONG ProcessId = 0;
PWMI_EVENT_DATA pWmiEventData = NULL;
if (lObjectCount <= 0)
return WBEM_S_FALSE;
do
{
pBstr = &bstr;
bstr = NULL;
pVBuffer_1 = NULL;
pClassObj = *(apObjArray + dwCurrentIndex);
do
{
if ( (hr = pClassObj->GetObjectText(0, &bstr)) < 0 || !bstr)
break;
pVBuffer_1 = NULL;
pPAddress = (void **)&varClass;
//printf("ÊÕµ½Wmiʼþ:%ws\n", bstr);
pWmiEventData = EnumClassData(pClassObj);
if(!pWmiEventData)
break;
GetWmiQueryInfo(pWmiEventData, bstr);
}while (0);
if (bstr)
SysFreeString(bstr);
++dwCurrentIndex;
} while (FALSE);
return WBEM_S_NO_ERROR;
}
HRESULT EventSink::SetStatus(
/* [in] */ LONG lFlags,
/* [in] */ HRESULT hResult,
/* [in] */ BSTR strParam,
/* [in] */ IWbemClassObject __RPC_FAR *pObjParam
)
{
if (lFlags == WBEM_STATUS_COMPLETE)
{
printf("Call complete. hResult = 0x%X\n", hResult);
}
else if (lFlags == WBEM_STATUS_PROGRESS)
{
printf("Call in progress.\n");
}
return WBEM_S_NO_ERROR;
} // end of EventSink.cpp
void FreeUnicodeString(PUNICODE_STRING *uString)
{
if (*uString == NULL || (*uString)->Buffer == NULL || (*uString)->Length == 0)
return;
free((*uString)->Buffer);
(*uString)->Buffer = NULL;
(*uString)->Length = 0;
free(*uString);
*uString = NULL;
}
void EventSink::FreeWmiData(void)
{
LIST_ENTRY *pList = NULL;
LIST_ENTRY *pFreeList = NULL;
PWMI_EVENT_DATA pWmiEventData = NULL;
if (IsEmptyList(&m_ListHeader))
return;
EnterCriticalSection(&m_WmiEventLock);
pList = m_ListHeader.Flink;
pFreeList = &m_ListHeader;
while (pList != &m_ListHeader)
{
do
{
pWmiEventData = CONTAINING_RECORD(pList,WMI_EVENT_DATA,List);
if (!pWmiEventData)
{
pList = pList->Flink;
break;
}
FreeUnicodeString(&pWmiEventData->szClassName);
FreeUnicodeString(&pWmiEventData->szSuperClassName);
FreeUnicodeString(&pWmiEventData->szNameSpace);
FreeUnicodeString(&pWmiEventData->szServerName);
FreeUnicodeString(&pWmiEventData->szName);
FreeUnicodeString(&pWmiEventData->szQuery);
FreeUnicodeString(&pWmiEventData->szQueryLanguage);
FreeUnicodeString(&pWmiEventData->szEventName);
pFreeList = pList;
pList = pList->Flink;
RemoveHeaderList(pFreeList);
free(pWmiEventData);
pWmiEventData = NULL;
} while (0);
}
LeaveCriticalSection(&m_WmiEventLock);
} | [
"p0sixb1ackcat@gmail.com"
] | p0sixb1ackcat@gmail.com |
7baafef6b3e1620bc5ae4a140047401dbe179e7f | 82815230eeaf24d53f38f2a3f144dd8e8d4bc6b5 | /Airfoil/wingMotion/wingMotion2D_pimpleFoam/2.06/meshPhi | fd44635cca8bbb2b0c89a17675dddafa1daa1d0a | [
"MIT"
] | permissive | ishantja/KUHPC | 6355c61bf348974a7b81b4c6bf8ce56ac49ce111 | 74967d1b7e6c84fdadffafd1f7333bf533e7f387 | refs/heads/main | 2023-01-21T21:57:02.402186 | 2020-11-19T13:10:42 | 2020-11-19T13:10:42 | 312,429,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287,012 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "2.06";
object meshPhi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
oriented oriented;
internalField nonuniform List<scalar>
25162
(
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.134033707e-09
7.277683075e-08
-8.14948328e-07
0
-1.11919464e-08
6.928401526e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.858341131e-08
-1.284012219e-06
2.657212544e-06
8.076569353e-06
-1.039892351e-05
-7.021347164e-05
2.429416756e-05
9.911507373e-05
-1.287817656e-05
-0.0001842921726
2.165554288e-05
0.0002070286887
2.748698254e-06
-0.0002423933659
-6.002324255e-06
0.0002408682181
1.309748673e-05
-0.000195552572
-2.395543365e-05
0.0001690153526
6.077344458e-06
-7.576359446e-05
-1.616835908e-05
4.721295819e-05
0
-1.388193258e-06
-3.946308736e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.399888965e-06
-2.919414e-06
7.332077814e-06
2.05940012e-05
-5.39397988e-05
-0.0001751095184
8.513728529e-05
0.0002491654738
-9.433122724e-05
-0.000496927258
0.0001233519831
0.0005793317563
-4.968144146e-05
-0.0007944064686
5.654490691e-05
0.0008489907613
3.02664672e-05
-0.0009408718148
-4.40355945e-05
0.0009441867436
7.605956858e-05
-0.0008652802494
-9.958834675e-05
0.0008098097573
6.788179638e-05
-0.000572166131
-9.02833718e-05
0.0004774294013
2.710130188e-05
-0.0001992132317
-4.333186656e-05
0.0001233927847
0
-3.011832943e-06
-1.103881245e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.610716941e-07
1.178907507e-06
-6.384104521e-05
-0.0001393413583
9.487121143e-05
0.0002359913441
-0.0002062089404
-0.0006138808972
0.000250517968
0.0007559480824
-0.0002077061457
-0.001175544967
0.0002307162277
0.001301785229
-6.280837865e-05
-0.001603455324
6.032042783e-05
0.001673459457
9.69295128e-05
-0.00178714049
-0.0001149842624
0.001793555107
0.0001829843134
-0.001713897251
-0.0002125958449
0.001651046731
0.0001672346157
-0.001343154893
-0.0001952366736
0.001203264157
0.0001190388411
-0.0007509657032
-0.0001410522963
0.0005895807605
2.742668747e-05
-0.0001751413186
-4.091157136e-05
8.649605078e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.496435618e-05
-1.745634727e-05
2.48562809e-05
7.465151768e-05
-0.0002088532127
-0.0004428886112
0.0002476839799
0.0006126347781
-0.0003905683731
-0.001203118525
0.0004158950078
0.001407387136
-0.0002757929906
-0.001906624165
0.0003033168027
0.002013156271
-4.65566765e-05
-0.002250687219
4.507303318e-05
0.002284317041
0.0001525973005
-0.002318969057
-0.000156201296
0.002320144824
0.0003023064486
-0.002305890465
-0.0003241515369
0.002274640046
0.0003431760319
-0.002095824065
-0.0003698429265
0.001953465246
0.0001834308227
-0.001371732549
-0.0002023657249
0.001157712349
8.212351564e-05
-0.0005262014463
-9.464277438e-05
0.000349674317
-2.348511052e-05
3.160467831e-06
-5.426912392e-06
3.578128306e-07
0
0
0
0
0
0
0
0
0
0
0
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.049990004e-07
1.36835207e-08
5.247820377e-07
-5.901986941e-05
-9.131259089e-05
7.209510671e-05
0.0002044883917
-0.0003549156787
-0.0007464196002
0.0003715413777
0.0009913465793
-0.0004787952491
-0.001697286402
0.0004944566188
0.001909087234
-0.000297572982
-0.002394504986
0.0002694813406
0.002500191373
-7.759688864e-05
-0.002594447531
9.268914891e-05
4.501383198e-05
0.001246433207
0.001287908232
-0.0012389514
7.234465607e-05
-7.265125673e-05
0.001239258
-0.001278306266
0.0004121970622
0.002576928503
-0.001309870785
-0.0001925619141
-0.0002083865997
-0.002451859601
0.0004002906678
-0.0004242705183
0.002363347485
0.0002604624548
-0.001863394643
-0.0002812202698
0.001638245552
0.0001261994137
-0.0008805787985
-0.0001343863428
0.0006461282932
-0.0001281513685
2.206696146e-05
-2.787864851e-05
4.05109085e-05
0
0
0
0
0
0
0
0
0
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.698723431e-06
0
3.639874046e-06
4.944045848e-06
7.62373436e-06
-9.969930603e-05
-0.0001607897711
0.000103087918
0.0003142652598
-0.0004292999521
-0.0009938483509
0.0004364731936
0.001261881282
-0.0005150195573
-0.002041110767
0.0005158986589
0.002259188753
-0.0002380572384
-0.002667062249
0.0002309316027
0.002700190956
-2.818032593e-05
-0.001363550844
3.044727136e-05
0.001361283898
-0.001350723795
0.0001736084171
-0.0001715439363
0.001348659315
-0.002679461702
0.0004730542753
-0.0004827487645
0.002628648805
0.000311935615
-0.002171464005
-0.0003186466957
0.001938381434
0.000152703956
-0.001129437174
-0.0001567975244
0.0008627747535
-0.0002353004579
4.048416741e-05
-4.582827513e-05
0.0001028833653
0
0
0
0
0
0
0
0
0
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.725210031e-06
0
5.973625835e-06
1.406104535e-05
1.599391752e-05
-0.0001202660594
-0.0002092544508
0.000123938518
0.000385264547
-0.0004603682216
-0.001133480962
0.0004651928695
0.001421805901
-0.0005191894303
-0.002239433644
0.0005199289882
0.002458243279
-0.0002217013429
-0.002826999979
0.0002204907894
0.002840023375
-2.28339642e-05
-0.001416046973
2.282859137e-05
0.001416052346
-0.001424319065
0.0001673274108
-0.0001665869293
0.001423578584
-0.002851422878
0.0004954937453
-0.0004974094509
0.002818196865
0.0003431422499
-0.002391074773
-0.0003482463018
0.002157347364
0.0001678087773
-0.001313870904
-0.0001706143869
0.001024882227
-0.000304694335
5.209467597e-05
-5.412938764e-05
0.0001480076292
0
0
0
0
0
0
0
0
0
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.19630978e-06
0
8.881271218e-06
2.212546833e-05
2.485069083e-05
-0.000133091124
-0.0002464429103
0.0001367954853
0.0004398469336
-0.0004772128656
-0.001243021486
0.0004819065378
0.00154795058
-0.0005220490288
-0.002400568399
0.0005227328004
0.002624385469
-0.0002180049033
-0.002985176542
0.0002173055195
0.002992816293
-2.261989554e-05
-0.001490678126
2.309336386e-05
0.000743540607
0.0007466640502
-0.001499675609
0.0001643465026
-0.0001637994128
0.001499128519
-0.003000604916
0.0004931567411
-0.0004900646564
0.002958788965
0.0003451991459
-0.002491709963
-0.0003432688353
0.002243051475
0.000168791375
-0.001357831815
-0.0001680826853
0.001058076103
-0.0003136021513
5.267832201e-05
-5.205105311e-05
0.0001517531545
0
0
0
0
0
0
0
0
0
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.072283113e-05
0
1.284651962e-05
3.41914877e-05
3.778590528e-05
-0.0001483928435
-0.0002924367567
0.0001524795894
0.0005053358362
-0.0004961029925
-0.001367608356
0.0005009606154
0.001689711323
-0.0005245294823
-0.002576429823
0.0005250471246
0.002804087252
-0.0002151102282
-0.003151608873
0.0002145371456
0.003154904688
-2.278318122e-05
-0.001572242252
2.29104105e-05
0.0007847321435
0.0007873828792
-0.00157792606
0.00016206516
-0.0001615086214
0.001577369521
-0.003145550659
0.0004718092072
-0.000462810945
0.003068112274
0.000321583267
-0.002486553241
-0.0003225620531
0.002228297747
0.000155727709
-0.001295596782
-0.0001527425775
0.0009903186255
-0.0002597450248
4.265667265e-05
-4.047847895e-05
0.0001117357657
0
0
0
0
0
0
0
0
0
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.543323099e-05
0
1.63992994e-05
5.107752399e-05
5.328420066e-05
-0.0001658352704
-0.0003468849965
0.000171058049
0.000580443423
-0.0005162477093
-0.001502295849
0.0005220043619
0.00184079067
-0.0005263182889
-0.002757149804
0.000526609509
0.002986712654
-0.0002132328156
-0.003314246762
0.0002132508637
0.00331449493
-2.313561638e-05
-0.001652242227
2.311104117e-05
0.000824573981
0.0008276928209
-0.001652598359
0.0001594685218
-0.0001592950039
0.001652424841
-0.00324338351
0.0004354417442
-0.0004237523589
0.00311434025
0.000293584702
-0.002428255094
-0.0002708576489
0.002117826659
0.0001359937484
-0.001137442264
-0.000126675278
0.0008361087179
-0.000175899557
2.841038203e-05
-2.466535642e-05
5.747247588e-05
0
0
0
0
0
0
0
0
0
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.319397344e-05
0
3.094446065e-05
8.117599665e-05
9.337796247e-05
-0.0001863211416
-0.0004208562509
0.0002000750937
0.0006734194161
-0.0005410556373
-0.001661306223
0.000546427027
0.00201547152
-0.0005267754043
-0.002956356025
0.0005338590292
0.003181263769
-0.0002129382514
-0.003474726068
0.0002140128402
0.001731886558
0.00174176492
-1.293719633e-05
-0.0008638215921
1.317388424e-05
0.0008635849042
2.573739442e-05
-0.0004304483112
-2.495815485e-05
0.0008609297056
-0.000431260634
-0.001724309531
0.0001585009421
-0.000328994405
0.003459287622
-0.001733709442
0.0001692248142
0.0003934427998
-0.003266068257
-0.0003698586975
0.003067600324
0.0002352474368
-0.002254234794
-0.0002258359765
0.001924162803
0.0001070229591
-0.0009336819567
-0.0001021274873
0.0006468960228
-7.393136373e-05
1.069139611e-05
-8.502717783e-06
7.303649991e-06
0
0
0
0
0
0
0
0
0
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.476567779e-05
0
2.841551516e-05
0.0001126398376
0.0001039775782
-0.0002208816445
-0.0005081295533
0.0002137688426
0.0007945628607
-0.0005676539738
-0.001858848351
0.0005589332303
0.002231114999
-0.0005187353615
-0.003181536363
0.0005191321273
0.003398173318
-0.0002075998659
-0.003636295595
0.0002075998659
0.001813558021
0.001822737573
-1.07104319e-05
-0.001813558021
1.858044791e-05
-7.870016009e-06
0.0009051042311
0.0009084537901
7.231781763e-05
-0.0009051042868
-7.231773406e-05
0.001813558021
-0.000908453818
-0.003636295595
0.0003369479598
-0.0003337230315
0.003625047806
0.0003304020248
-0.003188641877
-0.0003193145973
0.002943792568
0.0001986236184
-0.001981904677
-0.0001784592171
0.001631707452
7.939902032e-05
-0.0006625153397
-7.47031713e-05
0.0004252661649
-1.0381686e-05
1.750596303e-06
-8.008982619e-07
0
0
0
0
0
0
0
0
0
0
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.747021403e-05
0
6.312956002e-06
5.321456802e-05
3.351585545e-05
-0.0001642444477
-0.00037567548
0.0001409623702
0.0006341408082
-0.000491395927
-0.001663195981
0.0004557129974
0.002041401514
-0.000509696733
-0.003063090378
0.000498393478
0.003322435338
-0.0002273805799
-0.003759418256
0.0002429125445
0.003795123473
-1.85804479e-05
-0.00379758834
2.579929933e-05
0.00379758834
-7.218851451e-06
0.0001559974118
-0.00379758834
-0.0001559974118
0.00379758834
0.0003103257207
-0.003724245849
-0.0002963125245
0.003614951871
0.0002674281979
-0.0029674851
-0.0002498000457
0.002662162911
0.0001402499828
-0.001616160942
-0.0001312239469
0.0012657468
4.916104035e-05
-0.0003890364039
-3.955455365e-05
0.0002032748631
0
0
0
0
0
0
0
0
0
0
0
0
0
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.526915479e-07
0
0
2.98768146e-07
0
-6.678005704e-05
-0.0001305535094
4.495634891e-05
0.000294574965
-0.0003187475125
-0.001095659908
0.0002674925836
0.001427559644
-0.000424986894
-0.002431446601
0.0003869180192
0.002728234337
-0.0002627189266
-0.003396048114
0.0002574403616
0.003537539574
-3.743303839e-05
-0.003757553114
4.353487896e-05
0.003778946095
0.0001445055716
-0.003723191085
-0.0001319616944
0.003659242201
0.0002353091394
-0.003278623127
-0.000209869979
0.003080694407
0.0001870674647
-0.002295356481
-0.0001646548022
0.001988565832
9.695302234e-05
-0.001051994318
-8.365153132e-05
0.000767817978
1.799716249e-05
-0.0001416295192
-1.111196355e-05
3.892715688e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.340922797e-06
-2.999847384e-07
6.95560297e-07
2.267102867e-05
-0.0001218365735
-0.000396317761
8.214547848e-05
0.0006051424975
-0.0002462112096
-0.00135307447
0.0001967270367
0.001608737286
-0.0002058285642
-0.00227409519
0.0001793644266
0.002442989207
-5.625156307e-05
-0.002754058392
5.654485971e-05
0.002791022888
7.905709686e-05
-0.002706597839
-6.079401894e-05
0.00261522892
0.0001293744481
-0.00216707332
-0.0001042645779
0.001967664682
9.92095796e-05
-0.001279055743
-7.910347623e-05
0.001039621136
4.142159611e-05
-0.0003945546039
-2.807019994e-05
0.0002308054161
1.744780898e-07
-9.954007194e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.70893e-06
-1.031576311e-05
1.311683052e-06
4.804982208e-05
-6.933485912e-05
-0.0003359095212
3.953498993e-05
0.0004678492127
-9.104317331e-05
-0.000873291905
6.387961659e-05
0.0009910533734
-4.235397997e-05
-0.00122998952
3.378365496e-05
0.001263174476
1.923020315e-05
-0.001213145163
-1.119028134e-05
0.001149360944
4.350191894e-05
-0.000847558102
-2.900597482e-05
0.0007218129514
2.808217892e-05
-0.000334453135
-1.556084907e-05
0.0002207300573
1.579235547e-06
-1.273441325e-05
-4.520495361e-09
1.373747427e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.998178526e-07
0
0
1.736946076e-06
-8.338092361e-06
-4.765137924e-05
1.297334608e-06
7.385281922e-05
-8.123528742e-06
-0.0001437901924
2.76051178e-06
0.0001560299704
9.583850322e-07
-0.0001446246378
-2.24971096e-07
0.0001260397931
3.006185101e-06
-5.000979176e-05
-2.549812877e-07
2.755806859e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-0.001408111609
0.00140817941
-2.290176516e-05
-0.0001579226593
0.00141193916
0.0001587052104
-0.0007088578733
-0.0007038638382
0.00017053408
-0.001356491493
-0.0001647663818
-0.001480742063
-2.229019339e-05
0.0007393692036
0.0007410431568
-0.0001523883994
0.001491363289
0.0001531411807
-0.0007472147565
-0.0007449013139
-0.0001555209217
-0.0007147317121
-0.0007119890906
-0.001562076658
-2.258376888e-05
0.0007798677467
0.0007820094988
-0.000150777813
0.001566556774
0.0001497789233
-0.0007837302057
-0.0007818276789
-0.0001518461363
-0.0007504078528
-0.000749810019
-0.001641766688
-2.285492836e-05
0.0008195681437
0.0008219178561
-0.0001467806039
0.001641881855
0.000147891943
-0.001642993195
-0.001578685028
-0.0001500188448
-0.0008621218582
0.0008621269043
-1.294224242e-05
0.0004306410384
-1.20730242e-05
1.220416508e-05
-0.0004307721793
-0.0004300044625
0.0008596465181
2.673637723e-05
-0.0001457958528
0.001716471297
0.0001457622459
-0.00171643769
-0.00165301398
-0.0001463649819
-0.000903437022
0.000903437022
-1.07104319e-05
0.0009034371769
-3.189828028e-05
3.189865736e-05
-0.000903437554
-0.0004309426284
-1.1578707e-05
0.001803529143
-0.000824525377
-9.810867771e-06
6.562096168e-06
-0.0002588772687
0.003552267819
-0.001798190487
-0.001777748568
0.0001367402358
0.0001458082691
-0.001724257156
-0.0001458482275
-0.001353018695
0.001352363458
-2.752508814e-05
5.987602993e-05
-0.001239329009
-5.949842074e-05
0.00134714494
0.0001682596979
-0.001344870558
0.0001790523864
-0.001267964282
-0.0001893943704
-2.879065901e-05
0.0003479842131
2.894427438e-05
-0.0003481378285
0.0006842094975
6.642074921e-05
-0.0006860782364
-6.455201036e-05
0.001411375475
0.0001678910959
-0.0004800387048
0.002806253318
0.0004835592324
-0.002810542434
0.0004842247916
-0.002694040291
-0.0004801069912
-0.002944282516
0.002953037967
-0.0002186832529
3.387862146e-05
-3.382518216e-05
-0.001480795502
-3.404116242e-05
-0.001415908703
3.390289239e-05
-3.196167864e-05
0.0003640903172
3.170648725e-05
-0.0003638351258
2.83256514e-05
0.0003557520863
-0.0003556095353
-2.846820234e-05
0.001490969516
0.000164740276
-0.0004753574402
0.002966857885
0.0004767267015
-0.002968385058
-0.00285308974
-0.00047864185
-0.003110781526
0.00311503106
-0.0002157392512
3.38772104e-05
-3.38244787e-05
-0.001562129389
-0.001490730788
3.393128358e-05
2.291711752e-05
-0.001522619592
-2.286062743e-05
0.0007598861378
0.0007626769639
-6.585405101e-06
0.0003817027511
6.553863279e-06
-0.0007626891835
0.0003810179742
6.701657948e-06
0.0003709054821
-0.0007432679812
-6.417996465e-06
0.0003720788376
-2.763263726e-05
0.0003838899619
2.778921261e-05
-0.0003840465373
2.984447731e-05
0.0003742035085
-0.0003734087378
-3.063924794e-05
0.001566646981
0.0001619749537
-0.0004652012761
0.00310888448
0.0004694932333
-0.003119161724
-0.00300269234
-0.000473791227
-0.003272983425
0.003273945564
-0.000213413523
3.398178369e-05
-3.393273791e-05
-0.001641815734
-0.001572219952
3.385491072e-05
2.240276019e-05
-0.001602383092
-2.272348612e-05
0.0008002104393
0.0008024933786
-3.747000589e-06
0.0004015066549
3.835377517e-06
-0.0004015950319
6.200593578e-06
0.0003919733959
-0.0007847392993
-6.265851905e-06
0.0003928311618
-5.240932639e-05
0.0008034762945
5.271811289e-05
-0.000803785081
5.395885085e-05
0.0007880485388
-5.225822993e-05
-0.0003955894124
-0.0003941597473
-0.003434877277
-0.0002133233861
0.001712626915
0.001722635497
3.426662254e-05
0.0008603341443
-3.403201558e-05
-0.00172269061
-0.001652292928
3.403248457e-05
1.290605048e-05
-0.0008428686527
0.0008429540058
-1.299140357e-05
-5.610654529e-06
0.0004225185654
5.16869183e-06
-0.0004220766027
4.668437394e-06
0.0004112779005
-0.0004114626777
-4.483660194e-06
-0.0004248704518
-1.547697948e-05
0.0004236084476
1.673898371e-05
-5.060122418e-05
0.0008422762124
5.037557308e-05
-0.0008420505613
5.174301197e-05
0.0008253980386
-0.0008254075436
-5.173350692e-05
-0.003532971752
-0.0002058742111
0.001727716954
0.001803529143
2.994366598e-05
0.0009000921211
-2.994366597e-05
-0.001803529143
0.0008680205736
-0.001731827789
3.425224601e-05
1.291445256e-05
-0.0008822591373
0.0008821785898
-1.283390503e-05
-3.992860923e-06
0.000438388376
5.181838982e-06
-0.000439577354
6.348593367e-06
0.0004293385665
-0.0004298995227
-5.787637174e-06
-0.001883750853
0.001883750853
-1.85804479e-05
0.001883750853
-6.095536437e-05
6.095536437e-05
-0.001883750853
-0.0009051044971
-3.189807001e-05
9.461269746e-06
-0.0006897052311
-8.909296112e-06
0.0003438489706
0.000345304287
-9.968666478e-06
-0.0007047737351
9.872668582e-06
0.0003526234285
0.0003522463045
-0.0006847257404
-3.245638475e-06
4.714137466e-06
0.0006832572414
-0.0006891026431
0.0006896274223
8.936490592e-06
0.00035531891
2.816865663e-05
-0.0003551619153
0.0003476135328
-0.0003479197285
-2.848446331e-05
0.000161112398
0.00138756502
-0.0001596230149
-0.0006970802952
-0.000691974108
6.268329353e-05
-0.0003473134197
-6.144024576e-05
0.0006936839048
-2.924103699e-05
0.000355399995
2.915995199e-05
0.000370141313
7.050830323e-06
-0.0007407723932
0.0003702819078
0.0007244767806
6.755267198e-06
-0.0007245466632
-6.685384542e-06
-2.260071869e-05
-0.001452457373
2.265770559e-05
0.001452400386
9.646093e-06
-9.16107432e-06
0.0003617765597
0.0003622152022
-4.524307054e-06
0.0003701378914
4.527728651e-06
-0.0007063724647
-9.639392938e-06
0.0003526265633
0.0003534166279
-0.00072270604
9.528112824e-06
0.0003613289466
0.0003614950736
0.0003729277104
2.897620165e-05
-0.0003720594347
0.0003658385392
-0.0003653360195
-3.246419833e-05
7.865755812e-05
0.0007311209141
-0.0007312728939
-7.850557828e-05
3.218657254e-05
-3.231801376e-05
0.0003659699804
-2.990166909e-05
0.0003734411943
2.938818518e-05
-2.928527569e-05
0.000355796325
0.0003643331603
3.194372941e-05
0.0007275868019
7.866706912e-05
-0.0007275963129
0.0003911315406
6.507606929e-06
-0.0007817959197
0.0003903573658
0.0003826939093
-0.0007658335043
-6.881908644e-06
0.0003834360985
-0.00153321955
2.254700206e-05
0.0007656819603
0.0007679077056
4.808075817e-06
-4.892100759e-06
0.0003827779342
-4.06545375e-06
0.0003910431133
4.153881044e-06
-4.447875674e-06
0.0003708290507
0.0003818846105
4.626216468e-06
0.0007845301644
5.379850688e-05
-0.0003924976121
-0.0003918722084
0.0003843540689
-0.0003842607575
-2.772594868e-05
0.0001499036758
0.001536992158
-0.0001500879468
-0.0007690523435
-0.0007677555439
5.744814987e-05
-0.000383867538
-5.683982979e-05
0.0007676132869
-5.660115995e-05
0.0007844233038
5.670802053e-05
-3.040655214e-05
0.0003747083915
-0.0003827009061
0.0007658455268
2.853599136e-05
2.965749973e-05
0.001527702793
0.0001512470224
-0.0007656228055
-0.000763423334
0.0004106626141
4.770846856e-06
-0.0004107650236
0.0004020584056
-0.0004020733813
-3.732024928e-06
-0.00161120143
2.290342667e-05
0.0008044752996
0.0008062254636
4.716577896e-06
-4.459556397e-06
0.0004018013841
-6.156355315e-06
0.0004103790372
6.439932225e-06
-4.056284476e-06
0.0003919642266
0.0004013995531
4.823679766e-06
0.0008234516206
5.181965323e-05
-0.0008235282619
0.0008065299817
-0.0008065353353
-5.240397278e-05
0.0004305755551
6.709775547e-06
-0.0004309367373
0.000422343714
-0.0004225087344
-5.445634114e-06
-0.0008451409216
1.289982308e-05
0.000845147149
1.221078374e-05
0.0004224700936
-0.000421039988
-1.364088936e-05
7.14131405e-06
-6.867602275e-06
0.0004220700022
-6.599468567e-06
0.0004298260565
7.348967106e-06
-5.788048166e-06
0.0004109095934
0.0004228192346
6.84064484e-06
1.460200156e-05
-0.0004272616696
-9.864775701e-05
0.001715732173
9.833235828e-05
-0.0008584090703
-0.0008570077045
0.0008440115796
-0.0008437469273
-5.086587645e-05
-1.546549085e-05
0.000422458605
0.0009109814579
-6.63224072e-06
-0.0009067651415
3.430574615e-08
2.381618625e-06
0.0004389931143
-0.0004396777792
-3.30819601e-06
-0.0008844384217
1.307974987e-05
0.0008842731244
1.650196282e-05
0.0008733435722
-0.0008739396266
-1.590590847e-05
2.543846035e-06
-2.138846266e-06
0.0004385881145
-1.197610093e-05
0.0009110698753
3.048159633e-06
8.839523916e-06
-5.836201629e-06
0.0004285752995
3.39902621e-06
0.0004375331958
0.0008715215236
1.76308607e-05
-0.0008726504215
-0.002787428358
0.002803409737
-0.0002238808363
-3.41768129e-05
-0.001407975959
-3.895321765e-05
-0.001361704026
3.710639969e-05
2.45018473e-05
-0.001376711397
0.001376583637
-2.43740877e-05
-6.394398142e-06
6.306590067e-06
-0.0006890148351
2.80639694e-06
-0.0006867429149
-7.892224235e-07
-6.031970937e-05
0.0003390191309
3.099045844e-06
-0.0002817984674
0.0003513336332
3.153996254e-05
-0.0003562080694
-2.666552631e-05
-0.00144322991
0.001443374379
-2.27451874e-05
6.760906469e-06
-0.0007227116793
6.731551773e-06
-0.0007063733855
-6.730630928e-06
-0.0001258304059
0.0004013027736
5.399686539e-05
-0.0003294692332
0.001641371532
0.0001599788453
-0.000443415373
0.003226358908
0.0004511505699
-0.003273995578
-0.003159351428
-0.0004624576143
-0.0001235728069
0.0004183681657
4.83205967e-05
-0.0003431159556
-3.937312547e-05
0.0008327209694
3.99056664e-05
-0.0004168892651
-0.0004163642453
2.048672148e-05
0.0004124941163
-0.000412424434
-2.055640372e-05
-2.251080846e-05
0.0008709810564
2.305127569e-05
-0.000106783178
0.001749027429
0.0001031259108
-0.001745370161
0.001723909759
-9.910368484e-05
-0.0008625949292
-0.0008608589018
6.72603553e-06
-0.0007047682189
-0.0006897425127
-6.357116618e-06
-0.00137832012
2.360524193e-05
0.001379216725
7.88655786e-06
-0.000348390631
-8.526742536e-06
0.0003490308156
-0.0003531653991
-3.563830781e-06
-1.194073483e-06
0.0003579233034
-0.0003451288577
-5.608598063e-06
0.000345574909
5.162546778e-06
7.337719063e-05
-6.772483174e-05
0.0006785571386
-0.0003461574227
0.0006926801129
6.414481644e-05
0.001376698367
0.0001585123181
-0.0006886789638
-0.0006854193228
0.0004125962639
2.081775063e-05
-0.0004129272931
2.511940552e-05
0.0004085910902
-0.0004097920971
-2.391839857e-05
0.0001491661624
0.001612972167
-0.001613548493
-0.0001485898364
5.578311414e-05
-5.548649193e-05
0.0008062333595
-5.486052315e-05
0.000823239076
5.507306774e-05
-5.607329675e-05
0.0007875206756
0.0008034806231
5.577878554e-05
0.001605349203
0.0001493632564
-0.001605546297
1.660212969e-05
0.0004278649996
-0.0004293724626
-1.509466669e-05
-0.0004320358747
-1.420524757e-05
0.0004320278338
1.421328846e-05
-1.929643502e-05
0.0008660573503
1.961458162e-05
-0.0004330169562
-0.0004333585407
0.0006385265059
2.82545864e-05
-0.000638522919
-2.82581733e-05
-0.00137534002
-8.9196955e-06
2.401005796e-05
8.57941453e-06
0.0006691917497
0.0006824784936
-0.0006761435023
0.0006900072897
-1.710942588e-05
0.0006801689201
6.737495253e-05
-0.0006811231234
0.001345856659
0.0001557794231
-0.0006756907814
-0.0006470714449
-7.887340602e-05
-0.0001000004493
4.408609089e-05
-4.499436727e-05
0.0006394347823
0.0004314114361
-0.0004917311455
6.101916868e-05
0.0006896410135
-5.962641325e-05
-0.0003455590923
-0.0003454746767
3.10377318e-05
5.184184973e-05
0.0003485318546
2.838800048e-05
-2.595076608e-05
0.0003488963988
0.000347220575
2.283628766e-05
0.0006847624564
5.893080817e-05
-0.0003421423784
-0.0003405317175
2.815830914e-05
0.0003601559194
-0.0003602057728
-2.810845574e-05
0.0003600871806
2.826225575e-05
-0.0003601911272
2.719535258e-05
0.0003803309833
-0.0003801851443
-2.734119158e-05
0.0003808514942
2.77369424e-05
-0.000381393084
0.0004014848583
-2.511999904e-05
2.226134938e-05
-0.0003986262087
0.0004080411504
-0.0005184170457
-1.545451055e-05
5.319678674e-05
0.0007958175717
-0.0007958100917
-5.320426667e-05
2.933115008e-05
-2.371832623e-05
0.0004024283266
-2.563041262e-05
0.0004022779319
2.483733909e-05
2.630903377e-05
-5.349294551e-05
0.0003896148596
-0.0003624309479
0.0003990611608
3.157276291e-05
0.000793963447
5.328961331e-05
-0.0003972106061
-0.0003968456674
0.0004169813518
2.933223773e-06
-0.000417166428
-2.748147555e-06
-2.101765588e-06
-0.0008345253631
2.175759667e-06
0.000834451369
2.164709859e-06
-0.0008428148107
0.0008428969696
-2.246868754e-06
-3.791707891e-05
0.0008418987184
3.817887159e-05
-0.0008421605111
0.0008348965707
-3.878954148e-05
-0.0004181783486
-0.0004173018061
-0.0005396506124
-9.916578938e-06
0.0004259943844
9.136866989e-07
0.0004358167224
-0.0004364629117
-2.674974297e-07
-2.603480931e-06
-0.0008743386747
2.682412625e-06
0.0008742597431
2.682513894e-06
-0.0008820978572
-2.271402781e-06
0.00044048995
0.0004411967961
-2.369959211e-06
-0.0008634405947
2.608104446e-06
0.0008632024495
-0.0008717562785
0.0008716772546
-2.524457008e-06
0.0004339101924
1.736316064e-06
-0.0004347328218
-0.000354081403
4.911632752e-06
-9.720821126e-05
0.0004463779815
-0.0003462823894
8.213281634e-06
0.0003459556656
-9.124979998e-06
-0.0006965685271
9.398048054e-06
0.0003473174263
0.0003489780328
-8.687269789e-06
9.421384715e-06
-0.0003470165043
8.908876702e-06
-0.0003503941396
-1.25961401e-05
-1.32482099e-05
3.451682859e-05
-0.0003532814352
0.0003320128165
-0.0003489244551
-8.153445626e-06
-0.0006996919586
-9.888532947e-06
0.0003503255166
0.000350129995
-7.343088338e-06
-0.0006921682694
0.0006926173926
6.893965148e-06
-7.563070865e-06
7.949167282e-06
-0.0003455149541
-1.166670784e-05
-0.0003424251314
9.264401479e-07
0.0003494507451
7.530141642e-06
-0.0003480720101
0.0003452935955
-0.0003453177121
-7.538954242e-06
-0.0006891363197
-7.786423811e-06
0.0006895796552
-7.822111911e-06
0.0003475071094
0.0003489171153
5.445262624e-06
2.937259176e-05
0.0003520882735
-0.0003513029863
-3.015787901e-05
0.0003505961083
2.945016309e-05
-0.0003506736796
-4.605193484e-06
-0.0003662485613
0.0003663327285
4.521026273e-06
7.818487479e-06
-0.0003610226659
-7.765024532e-06
0.000360969203
-0.0003670153325
-4.611573774e-06
0.0003670217128
-9.846659403e-06
-0.0007141182605
9.534943499e-06
0.0003568392379
0.0003575907385
-8.640054778e-06
8.622046309e-06
-0.0003566786546
0.0003566966631
-0.0003519864565
-9.780080343e-06
0.0003485183269
8.001935441e-06
-0.0003606663126
0.0003604828647
-0.0003569872048
-8.520345577e-06
0.0003568674956
-0.0007157069606
-9.763381943e-06
0.0003577666055
0.0003578570776
2.594109097e-05
0.00037048864
-0.0003703563862
-2.607334481e-05
0.0003700804389
2.606380367e-05
-0.0003702031516
-2.760148611e-05
0.000369882828
2.779909699e-05
-6.694950186e-05
0.0007374867
6.711929653e-05
-0.0007376564947
6.740703589e-05
0.0007316438166
-0.0007317251234
-6.732572907e-05
-6.664580468e-05
0.0007474456352
6.671760073e-05
-0.0007475174312
0.0007405510635
-0.0007406369294
-6.686363593e-05
-2.758239012e-05
0.000370469544
-2.902673472e-05
0.0003599517197
2.91621956e-05
-6.770296304e-05
0.0007187507243
6.777923087e-05
-0.0007188269921
6.808816369e-05
0.0007123977534
-0.0007124754812
-6.80104359e-05
0.000727823359
6.748181382e-05
-0.0007278981369
0.0007209520352
-0.0007210062516
-6.764874663e-05
-2.906443247e-05
0.0003601936172
-4.548411748e-06
-0.0003864019806
0.0003863204531
4.629939262e-06
-0.0003872547871
-4.529297399e-06
0.0003872356727
-4.263104638e-06
-0.0003763907219
0.0003763140136
4.339812963e-06
-0.0003770863378
-4.257650326e-06
0.0003770808835
2.789826629e-05
0.0003889566967
-0.0003890845672
-2.777039584e-05
0.0003838838261
1.951742042e-05
-0.0003770922128
0.0003882585692
2.818690908e-05
-0.000388547212
-3.611383036e-06
-0.0004069296763
0.0004069415463
3.599512992e-06
-0.0004077488485
-3.981637961e-06
0.0004081191034
-5.568052359e-06
-0.0003968372862
0.0003970309463
5.37439229e-06
-0.0003972977769
-5.579182138e-06
0.0003973089067
-0.0004025315727
-2.654341146e-05
0.0004034445715
-0.0004090058104
-2.389008823e-05
0.0004081932373
2.470266131e-05
-5.198887219e-05
0.000814039048
5.24047658e-05
-0.0008144549416
2.63440825e-05
-0.0004102304874
-0.00040006487
-2.758670166e-05
2.495872367e-06
0.0004267969881
-0.0004271676595
-2.12520101e-06
-2.387065762e-06
-0.0008555813234
2.463118165e-06
0.000855505271
-0.0008620636265
0.0008620681661
-2.37449888e-06
-0.0008451654675
2.161005536e-06
0.0008451691718
-0.0008523605445
0.0008524428557
-2.469376982e-06
0.0004258258551
2.956636684e-06
-0.0004262866194
0.0004271735976
1.776105924e-05
-0.0004283325272
-2.873593926e-06
0.0004252463558
3.453093146e-06
-2.218666593e-06
0.0004261420608
-3.326126188e-06
-0.0004165028498
0.0004161288322
3.700143812e-06
-2.956446011e-06
0.0004166116716
4.483918525e-05
-0.0005844897976
-1.526717047e-05
0.0004264606601
1.598010797e-05
-3.713532332e-05
0.000851272658
3.750151253e-05
-0.0008516388472
0.0008432866527
-0.0008429859003
-3.821783139e-05
-0.0008841080181
3.015215261e-06
0.0004415754745
0.0004421998422
3.658783686e-05
-0.000978081893
-1.587425342e-05
0.0004592971735
0.0004980711361
0.0005027074397
1.464687073e-05
-3.837989872e-06
-0.0005135163206
0.0001160271644
-1.754538293e-05
0.0004042256582
0.0004446566001
-1.014574637e-06
7.825113188e-07
-0.0004444245368
6.684738186e-06
0.0004404767767
-0.0004413558797
-5.805635221e-06
-9.804027581e-07
0.0004328894296
2.001165644e-06
-0.0001153796555
4.025577988e-05
-0.0003569119991
0.0004398811957
7.928630224e-06
-0.0004411250878
0.0004420802146
-0.0005553691915
-2.09067859e-06
1.492061466e-07
0.0004346871135
0.0008683451366
-0.0008685348375
-1.910673411e-05
-1.11503176e-05
0.0004390252846
-5.422826515e-06
0.0004386352948
6.668727434e-06
0.000410192374
2.402007863e-05
-0.0004342124526
-2.530274409e-05
0.0004145315136
2.509976611e-05
-0.0004143285356
1.622102744e-05
0.0004122161687
-0.0004111991751
-1.723802105e-05
-0.003748776933
0.003756600709
-0.0002125517064
7.124998711e-05
-0.003756604871
0.001872854018
-4.130632114e-05
-2.994366597e-05
-0.001813558021
2.994366598e-05
1.858044789e-05
-0.001843639998
0.001843639998
-1.85804479e-05
0.001843639998
-1.550581172e-05
1.550581173e-05
-0.001843639998
0.0009084709525
-0.0009067792097
-8.32398345e-06
0.003756604871
-0.001872854018
7.231772205e-05
8.367968979e-05
0.003731861322
-0.0002854675818
0.0002910611162
-0.003756043969
-0.0002923431459
-0.001822737573
-0.001780092144
-0.0003840224794
-3.7084143e-05
-6.795331917e-05
0.0004890599415
0.0004145391784
2.002452521e-05
-0.0004183426761
1.110400676e-05
0.0004129402937
-0.0004087594855
-1.528481496e-05
-3.643673421e-05
0.0008582093827
3.667755747e-05
-0.000858450206
0.0008528047129
-0.0008529551193
-3.698491693e-05
-1.439035447e-05
0.0004269881836
-0.0001064047455
0.001769022756
9.809337445e-05
-0.001760711385
0.001758324502
-0.001752425703
-0.0001126819776
-2.187997579e-05
0.0008727127395
0.0006478653043
1.59510157e-05
-0.0006537122065
-1.288066503e-05
2.776551548e-06
-1.780809377e-05
-0.0006989645622
1.368734752e-05
0.0007030853084
-0.0003580537856
0.0003581467708
-3.656815995e-06
0.0003528155341
3.443618312e-05
-0.0003557117547
0.0006893406171
7.799474599e-05
-0.0006739051392
-9.343022388e-05
5.140738164e-05
0.0006568115527
-3.290136438e-05
-2.745226562e-05
3.007401443e-05
0.0003615666408
-0.0003606716106
-3.096904459e-05
2.427980956e-05
-2.424481386e-05
0.0003551382742
-0.0003551732699
-2.408323752e-05
0.00035802934
2.435191392e-05
-0.0003582980164
-2.864948976e-05
0.000357989528
2.862762153e-05
-0.0003579676598
2.897734297e-05
0.000381779791
-0.0003814383095
-2.931882447e-05
3.140354677e-05
-0.0003797576921
-3.244720227e-05
0.0003808013476
-2.252994979e-05
-0.0003888396898
0.0003868454641
2.452417547e-05
2.394454379e-05
-2.364420357e-05
0.0003713900932
-0.0003716904334
-5.398038481e-05
0.0003761122394
2.949517056e-05
-0.0003516270251
-3.171285971e-05
0.0003759573193
3.198432095e-05
-0.0003762287805
4.195951789e-06
-0.0003972924521
-4.201276685e-06
-1.764951963e-06
-0.0007952037015
1.836916749e-06
0.0007951317367
1.830396254e-06
-0.0008025767215
0.0008025789747
-1.832649436e-06
-1.77277877e-06
-0.0007847381485
1.771003459e-06
0.0007847399239
-0.0007926222647
0.000792624525
-1.767212317e-06
4.028564235e-06
-0.0003966698987
-1.959074088e-06
-0.0008245836567
2.032888757e-06
0.000824509842
-0.0008328726195
0.0008328755653
-2.104711414e-06
3.121299205e-06
-0.0004166909252
0.0004447143817
4.473826224e-06
-0.0004434992002
-5.689007724e-06
1.560076386e-06
-0.0004412906946
-1.917519523e-06
0.0004416481378
-1.827577524e-06
-0.0004410249871
0.0004407618446
2.090720015e-06
-1.200340082e-05
0.0009084982524
-2.68683409e-05
0.001843639998
2.686834091e-05
0.001843639999
-6.095536409e-05
6.095536327e-05
-0.001843639998
2.935700461e-05
0.0003523019793
-0.0003531857105
-2.847327343e-05
2.883646135e-05
-0.0004364075274
5.225695937e-05
0.0003553141067
0.0003542267004
2.125435269e-05
-0.0003512012435
-2.957882003e-05
0.0003503704205
2.980450783e-05
-6.840326926e-05
0.0006982355705
6.873339908e-05
-0.0006985657003
6.877275542e-05
0.0006940084313
-0.0006938651499
-6.891603683e-05
0.0007092566732
6.82244797e-05
-0.0007093929892
0.0007030732286
-0.0007031345009
-6.834199703e-05
-2.982892601e-05
0.0003523383795
2.712043966e-05
0.0003713716892
-0.0003708457138
-2.764641502e-05
2.22022479e-05
-2.31886084e-05
0.0003694737779
-0.0003684874174
0.0003701598374
2.291906317e-05
-0.0003691343568
-3.046202359e-05
0.0003689079359
3.182423702e-05
-0.0003702701494
6.485082732e-06
0.000388161458
-0.0007753612547
-6.540073082e-06
-1.706525966e-06
-0.0007753645959
1.705249328e-06
0.0007753658725
-0.0007819431587
0.0007818721089
-1.701728875e-06
-5.381180476e-06
0.0003903434412
5.619844685e-06
-0.0003905821054
0.0003888338893
6.614257272e-06
-0.0003892124524
-6.235694206e-06
4.342880656e-06
-0.0003896152889
-4.254980357e-06
0.0003895273886
-0.0003814000865
-2.439909068e-05
0.0003832692274
-0.0003805418325
-3.219682716e-05
0.0003830086113
2.973004833e-05
-2.873802744e-05
0.0003851896084
2.84751913e-05
-0.0003849267723
-5.64549142e-05
-0.0003868741449
0.0007745595917
5.702803654e-05
0.0007737635105
-6.507421107e-05
6.552644822e-05
-0.0007742157477
6.579655772e-05
0.0007676476349
-0.0007676613861
-6.578280654e-05
-2.730435262e-05
0.0003799184224
2.823742435e-05
-6.663954027e-05
0.0007569355532
6.65442464e-05
-0.0007568402593
0.0007501186855
-0.0007502547317
-6.650975854e-05
0.0007660903349
6.575796574e-05
-0.0007660517429
0.0007595238768
-0.0007602955574
-6.586785971e-05
-2.700951438e-05
0.000380036145
3.288924175e-06
-0.0004075623507
-3.475421905e-06
-1.819443828e-06
-0.0008149476921
1.739422029e-06
0.0008150277139
-0.0008217749239
0.0008217779023
-1.962052409e-06
-0.0008044839641
1.827899392e-06
0.000804486461
-0.0008125183831
0.000812596736
-1.897796769e-06
3.128644995e-06
-0.0004067693971
-4.057790372e-06
-0.0004026568055
0.0004025470589
4.167537009e-06
-5.71635342e-06
0.000401461879
6.118134764e-06
-0.0004018636603
6.987202307e-06
0.000401041559
-0.0004012813108
-6.747450552e-06
-6.42061748e-06
6.572140901e-06
-0.0004097180855
0.000409566562
3.507966474e-05
-0.0004103820985
-1.058411657e-05
0.0003858865504
6.331406311e-06
-0.000409651388
-6.62828522e-06
0.0004099482669
-4.175028812e-06
-0.0003941862818
0.0003942984008
4.062909871e-06
-4.509163564e-06
0.0003950993947
4.400975204e-06
-0.0003949912064
0.0003912733381
-0.0003916586865
-4.995832135e-06
0.000400491055
7.301987892e-06
-0.0004008058406
0.0003986141645
8.174140268e-06
-0.0003989306874
-7.857617342e-06
5.291282313e-06
-0.0003997020147
-5.111324936e-06
0.0003995220573
0.0008157019135
-0.0008157742056
-5.191658006e-05
-2.318155683e-05
0.0004078825588
-4.211040168e-05
-0.0004122614292
0.0008238806883
4.308740657e-05
4.900489851e-05
0.0005441176682
-0.0005931225668
-1.589596488e-05
0.0004255879195
1.665936822e-05
-0.0004263513228
-5.342169198e-06
-0.0004220702864
0.0004215021164
5.91033924e-06
2.92892088e-06
-0.0004334943772
-5.76839376e-06
0.00043633385
-4.823462722e-06
-0.000413838772
0.0004135420653
5.120169369e-06
-5.447476773e-06
5.592868366e-06
-0.0004125704719
0.0004124250803
-0.0004100145755
-5.885668986e-06
0.000409479627
-3.327933577e-06
-0.0004232014618
4.228946067e-05
0.0003842399347
2.877280557e-06
-0.0004206452905
-4.010154818e-06
0.0004217781647
0.0001238612501
0.0004304618498
-0.0005440523931
-1.027070681e-05
0.0006079485206
-0.0004952434798
-9.805817005e-05
-0.0008389216396
-6.575833374e-07
0.0004655795113
0.0004105875485
-0.0009034372231
1.877398246e-07
0.0009025959264
6.535569055e-07
-0.0004413176018
-1.476142048e-06
0.0004409661663
-7.478943507e-07
-0.000444186161
0.0004440852103
8.488450063e-07
0.0004419558511
-6.570750973e-07
1.592458266e-06
-0.0004428912342
-4.088099366e-06
0.0004391420496
-3.366997742e-06
-0.0004350102185
0.0008831445659
-1.107496206e-07
-7.7461933e-06
0.0008784540663
1.154044242e-05
-0.0008822483154
-9.53411591e-07
1.211319367e-06
0.0004416979433
-0.0001074715154
0.0004376734421
2.249474903e-05
-0.0003526966757
0.0009034542339
-2.139241502e-05
2.225557638e-05
-0.0009043173952
0.0004329896518
-0.000431712101
-2.292125452e-06
0.000723975685
-3.864549633e-06
-0.0004334773157
0.000432799553
4.542312309e-06
0.0001096256478
-3.337364456e-05
0.0003684623785
2.56280214e-05
0.0003537304436
-0.0003501310431
-2.922742185e-05
5.061992339e-05
-7.879554984e-07
0.0003603604061
0.0003513951667
2.270244909e-05
-0.0003484695944
8.4221136e-06
0.0003854067374
-1.83302425e-05
-0.0003754986085
0.0003949377962
-3.589091733e-05
-0.0003506247653
-2.282268405e-05
0.0004176057671
2.326098412e-05
-0.0004180440671
0.0004165296046
-0.0004183583194
-2.347402929e-05
4.34647245e-05
0.0005362288404
-0.0005796935648
-1.446404971e-06
-0.0003498693244
7.007512716e-06
0.0003443082166
-0.0003554031528
3.185170986e-05
0.0003221050379
-6.658189474e-06
-0.0003521803456
0.0003530882541
5.750281024e-06
-2.394297835e-05
8.994470389e-05
-0.0003480459814
0.0002820442559
-2.422752494e-05
-0.0003672959773
7.501022902e-06
-0.0003481906295
3.496285277e-05
0.0002892847984
-0.0003539815713
-4.877164055e-06
0.0003522005459
-0.0004074122119
1.434131802e-05
-1.85409915e-05
0.0004116118854
-0.0004182403851
-1.923660237e-05
0.0004138987851
2.357820228e-05
-2.204258265e-05
0.0004103211763
2.286590863e-05
-0.0004111445023
0.0001230335591
-0.0005301699374
-3.963658472e-05
-1.208342482e-05
-0.0003556922024
-0.0004276672683
6.779963975e-06
-1.101605285e-05
0.0004319033572
-0.0004253259755
-1.280380659e-05
0.0004275198918
1.060989034e-05
-1.342943747e-05
0.0004277531656
1.335418754e-05
-0.0004276779157
-8.622200597e-06
1.515629105e-06
-0.000418219404
-4.461115779e-05
-3.11960382e-05
-0.0003518600723
-1.314819054e-05
0.0004344315983
1.388405052e-05
-0.0004351674583
0.0004226257164
-0.00041477854
-1.646937697e-05
-0.0001092740159
0.0004337366784
2.711523681e-05
-0.0003515778993
-9.153142945e-06
0.0004342547708
9.691894373e-06
-0.0004347935223
0.000433859094
-0.0004341310793
-1.287620526e-05
-1.010652667e-05
0.000432908245
1.037643966e-05
-0.000433178158
0.0004343980913
-0.0004347649117
-8.786322517e-06
-0.0005483654457
3.567461684e-06
0.0004355239681
0.0004360193322
5.900495079e-05
-0.000495024283
-2.406076088e-05
0.0003470685579
2.461477881e-05
-0.0003476225758
2.477629912e-05
0.0003452594274
-0.0003458295928
-2.420613373e-05
-2.325056729e-05
0.0003479537657
2.665820788e-05
-0.0003513614063
0.0003459188181
-0.0003463909096
-2.358866938e-05
0.0003433533779
2.732170146e-05
-0.0003458987802
2.710901475e-05
0.0003413354321
-0.000342305463
-2.613898378e-05
3.03653464e-05
-2.585338561e-05
0.0003492184828
2.405715369e-05
-2.319057842e-05
0.0003612805321
-0.0003621471074
0.000438483397
5.19157665e-05
-0.0004903991635
0.0003614536993
2.905931096e-05
-0.0003604389958
0.0003579188373
-0.0003580003234
-2.856800366e-05
-2.430995886e-05
0.00035814652
-0.0003579197986
0.0003605887333
2.401428446e-05
-0.000360545864
-0.0003749925147
2.152589958e-05
-2.408053996e-05
0.0003775471551
-0.0003748658775
0.0003774823731
2.878705118e-05
0.0003802710127
2.878529809e-05
-0.0003800789679
-2.894365858e-05
2.365435847e-05
-0.0003695765774
1.896972088e-05
-2.06042976e-05
-0.000373357938
-1.819163164e-05
1.748421453e-05
-0.0003881322727
-5.431935697e-05
-0.0003543819937
0.0003789304335
1.337476254e-05
-0.0003733354752
0.0003775164714
-0.0003787104828
-3.051884833e-05
-0.0001236812115
0.0003830370121
-0.0003133361855
0.0003808862622
1.95700709e-05
2.905423364e-05
0.0004025696676
-0.0004039425163
-2.768138493e-05
0.0003985972398
2.439603708e-05
-0.0003939390432
-2.761739429e-05
0.0004013201278
2.48945063e-05
-2.495109803e-05
0.0004019216514
2.523852587e-05
-0.0004022090792
2.687618656e-05
0.0003975910127
-0.0003984750845
-2.599211477e-05
-1.699315713e-05
0.0003971216992
1.480925416e-05
-2.58417188e-05
0.0003953938848
2.607329214e-05
-0.0003956254581
2.620605192e-05
0.0003941808529
-0.0003938672631
-2.651964167e-05
0.000397322383
2.718351114e-05
-0.0003976297076
0.0003950528126
-0.0003947555986
-2.613893286e-05
-2.253271564e-05
0.000390946296
-0.0004210037389
-2.351716596e-05
0.0004212835169
2.323738802e-05
-1.993131625e-05
0.0004197801302
2.049180107e-05
-0.0004203406151
0.000418723946
-0.0004197299674
-2.18166626e-05
5.053479858e-07
-0.0004367363084
-5.868568826e-07
0.0004368178173
-0.0004388652703
0.0004394733817
9.519649462e-07
0.0004449267741
1.584111899e-06
-0.0004420370598
0.0004340272597
3.800884505e-06
-0.0004346889761
-3.139168124e-06
1.113915058e-06
-0.0004356026184
-1.020295355e-06
0.0004355089987
-0.0004357031847
0.0004354519966
7.565360579e-07
-1.022736413e-05
-0.0003439111764
1.428735835e-05
0.0003398511822
-0.0003437454329
-9.703433558e-06
0.0003432215023
1.226919209e-05
-0.0003449119164
-1.110270863e-05
8.619633475e-06
-0.0003469089132
-8.235898795e-06
0.0003465251785
-7.095726502e-06
-0.0003487995443
0.0003483980602
7.497210641e-06
6.04113595e-06
-0.0003445766777
-7.692342646e-06
0.0003462278844
-0.0003469335037
0.000346774811
8.778326265e-06
1.376059611e-05
-0.0003454025804
5.564730102e-06
-0.0003554158404
-5.552042437e-06
6.940860953e-06
-0.0003521223899
-7.653184378e-06
0.0003528347133
-9.588138771e-06
-0.0003525352893
0.0003528995025
9.22392554e-06
-0.0003502833342
-6.897664354e-06
0.0003500852721
-0.0003503165137
0.0003505978671
6.659507568e-06
6.510498509e-06
-0.0003508150928
0.0003424038739
1.15622933e-05
-0.000344336595
-9.629572218e-06
7.015656211e-06
-0.0003453919521
-7.091734178e-06
0.00034546803
-0.0003451554161
0.0003450265884
6.169963731e-06
-1.401249176e-05
-0.0003430080632
0.0003410606861
1.595986888e-05
-1.059826219e-05
0.0003389896443
-0.0003479483738
2.522419979e-05
-2.681840568e-05
0.0003495425797
-0.0003526807449
0.0003530137091
2.850349713e-05
0.0003509978917
3.010738766e-05
-0.0003517482747
-5.84496742e-05
2.8213051e-05
-0.0003224441217
2.040843736e-05
-2.461708832e-05
-0.0003437397229
-0.0004948572016
-2.989401945e-05
0.0003452715742
2.715774292e-05
-0.0003425352977
0.0003476698086
-0.0003487041537
-2.221622224e-05
0.0003488584128
1.109938769e-06
-0.0003295599142
0.0003498728015
-0.0003492390303
-3.052779059e-05
2.903437083e-05
0.0003506042184
-0.0003503440296
-2.929455958e-05
3.013471358e-05
-2.930067473e-05
0.0003490387626
0.00034950657
2.457604264e-05
6.455318087e-06
-0.0003664577419
-2.105388947e-06
0.0003621078127
6.044139195e-06
-0.0003662627532
-6.385784525e-06
0.0003666043986
-9.623165029e-06
-0.0003673787859
0.0003683613538
8.640597136e-06
6.453582618e-06
-0.0003616675639
-6.190488386e-06
0.0003614044697
-0.000364681384
0.0003647633675
5.962155719e-06
6.862344186e-06
-0.000364034053
0.0003636270269
9.563130575e-06
-0.0003692728104
-9.413244279e-06
0.0003691229242
-8.817907944e-06
-0.0003698199659
0.0003696651155
8.972758381e-06
-0.0003676390425
-9.978685784e-06
0.0003679945633
-0.000368735527
0.0003685206926
9.77796497e-06
9.08276248e-06
-0.0003539714206
-8.960591114e-06
0.0003538492492
8.808449405e-06
-0.0003547898423
-8.600529838e-06
0.0003545819227
-7.917503919e-06
-0.0003574731073
0.0003572700624
8.120548835e-06
-0.0003525650089
-9.593149419e-06
0.0003525700196
-0.00035475529
0.0003544825379
9.081201527e-06
9.281311682e-06
-0.0003535970718
0.0003533985226
7.828565124e-06
-0.0003592902213
-7.829843294e-06
0.0003592914995
7.115237582e-06
-0.00035995351
-6.914089252e-06
0.0003597523616
-0.0003613062428
0.0003611763075
6.58351797e-06
-0.0003576414373
-7.650060217e-06
0.0003573739936
-0.0003584591188
0.0003583246768
7.249679542e-06
8.223407159e-06
-0.0003577975514
0.0003574027094
2.256407299e-05
-2.176952774e-05
0.0003702388098
-0.0003710333551
0.0003702816059
2.266815159e-05
-0.0003707475096
0.0003715906261
2.66229022e-05
-0.0003710930887
0.0003696951717
-0.0003717368951
-2.842030026e-05
1.996717136e-05
0.0004741305398
-0.0004940977112
0.0003693458559
2.199315785e-05
-0.0003687749408
9.257818556e-06
-0.0003837685299
-9.017566617e-06
0.0003835282779
-8.224372981e-06
-0.0003856256717
0.0003853839908
8.466053873e-06
1.039822959e-05
-0.0003836116091
-1.052945072e-05
0.0003837428302
-0.0003835210507
0.0003832003467
9.578522539e-06
7.124434344e-06
-6.888488931e-06
0.0003885979439
-5.948620511e-06
0.0003900245191
6.267542609e-06
-0.0003865381955
-7.910801847e-06
0.0003862246243
-0.0003884968654
0.0003882608754
7.36042431e-06
7.73977523e-06
-0.0003740297083
-7.362351961e-06
0.0003736522851
-6.503744572e-06
-0.0003759055587
0.0003755951156
6.814187656e-06
-0.0003704349079
-8.586349584e-06
0.0003702033496
-0.0003733360662
0.0003730294249
8.046416541e-06
5.216202663e-06
-0.0003806545469
-5.323700262e-06
0.0003807620445
-0.0003839722627
0.0003854397255
8.930766805e-06
-0.0003766061672
-6.192552542e-06
0.0003762949752
-0.0003791578449
0.0003788733136
5.500734041e-06
-2.8560349e-05
0.0003919957097
3.024974814e-05
-0.0003936851089
2.435778593e-05
0.0003884259707
-0.0003861864318
-2.659732489e-05
0.0003920249443
2.556817164e-05
-0.000391387064
0.000393219014
-0.0003962002361
-2.557912684e-05
3.426000642e-05
0.0005104785399
-0.0005447385463
-3.217443937e-05
2.875848965e-05
-0.0003771258828
-0.0003775667908
-2.202492739e-05
0.0003915782395
2.586215416e-05
-0.0003930826077
0.0003843149404
-0.0003826396597
-3.384972003e-05
0.0004058623688
-3.683537032e-06
4.459469514e-06
-0.0004066383013
0.0004026784556
-0.0004030853684
-5.309440609e-06
-0.0004040321212
-3.79829802e-06
0.0004037726289
5.475865713e-06
-5.481652762e-06
0.0004026842426
-4.46107129e-06
4.934881431e-06
0.0004053885586
6.381119343e-06
-6.324567224e-06
0.0004009850069
6.069893221e-06
0.0004008678515
-0.0004076696662
1.351616013e-06
0.0004018569789
-0.0004092226377
0.0004099738091
5.580234902e-06
0.0001071970324
-0.0004127484241
0.0003406310565
-0.0004084545166
-2.898686665e-06
0.0003978728318
-9.638319501e-06
9.506765424e-06
-0.0003977412778
0.0003982061782
-0.0003969487704
-5.766571387e-06
-0.000394908051
-4.533980861e-06
0.0003952670031
3.808103741e-06
-3.968767584e-06
0.0003983668421
-1.124542559e-05
3.480203213e-05
0.0003743162253
-5.620452306e-06
0.0003909451699
0.0003943251977
4.582300757e-06
6.90959718e-06
-6.776094386e-06
0.0003984806617
6.512469014e-06
0.0004003597053
-0.0003968243989
-7.599770826e-06
0.0003931787441
-0.0003979915328
7.045793144e-06
0.0003978553368
-0.0003990025666
0.0003988249998
5.46884911e-06
8.493735377e-06
-0.0003983111279
-0.0003972265449
-9.236173473e-06
0.0005282667434
-0.0005679033282
2.475256041e-05
0.0004049410191
-0.0004039744878
-2.571909174e-05
7.218082468e-06
-2.260368601e-05
0.0003940584879
-0.0003786728843
0.0004169383054
0.0001256697561
0.0004024980534
-3.933092384e-05
-0.0003559490471
0.0004053346503
2.539809214e-05
-0.0004059801821
0.0005493176491
-0.0005939288069
0.0004255197617
-0.00042495866
-1.645706654e-05
-4.842815169e-06
0.0004167447922
-0.0003628970786
0.0004347606137
0.0001213369994
-0.0004222890768
-4.768465167e-06
0.0004217153728
-0.0004320330017
0.0004333846522
1.577270404e-06
-4.63657051e-06
4.782269129e-06
-0.0004153090235
0.0004151633249
-0.0004132739126
-5.226614302e-06
0.0004130530501
-0.0004144651758
-4.449284499e-06
0.0004140909976
-0.0004183722963
0.000418666397
2.583179926e-06
3.156319567e-06
-0.0004174057038
0.0004109214507
-0.0004157091799
-4.641898702e-06
0.0004157145081
4.793737232e-05
-0.0003450798611
0.0004432770275
-0.0004446021542
6.680515209e-07
-0.0004449965877
-8.280630929e-07
0.0004450767565
-6.362558529e-06
-0.0004976194751
0.000500843327
3.13870666e-06
0.0004244196257
-8.07416363e-05
3.024845983e-05
-0.0003739264493
0.0004440336726
-0.0005539069845
2.401796502e-06
1.214245216e-06
0.0004411093707
2.398693603e-05
-0.0001077263885
0.0004399011554
-0.0003561617029
-6.523483459e-06
0.0004409330651
3.263860411e-06
-1.917401523e-06
0.00044238184
2.521649006e-06
-0.0004429860875
-3.271424709e-06
0.0004334341348
5.622027978e-05
-0.0006045857255
8.530234693e-06
0.0004409991935
-0.0004410241191
-8.505309092e-06
0.0004349448263
-5.354585918e-05
-0.0003574120311
0.0004410313827
1.059700012e-05
-0.0004430981481
0.0005560348939
-1.482471961e-06
0.001348616378
0.0001721369797
0.002649628547
0.0004828641305
-0.002669746039
0.0004177266238
-0.002502553034
-0.0004356271468
3.394449004e-06
-1.98353819e-05
0.0003975759207
-0.0003811349878
-4.368208552e-05
0.0004070635622
-0.0003599870276
0.001716724228
0.0001582480115
0.003273767187
-0.0004086391591
0.0004178592213
-0.003379295139
-0.003306028991
-0.0004344801072
0.0005314014115
-0.0005750834971
0.0004276388974
-0.000428260391
-1.280794389e-05
-1.66864946e-05
0.0004265084044
-1.391694671e-05
0.0004328233234
1.552522159e-05
-5.47753866e-05
0.000825312902
-0.0001113535926
0.001680586363
0.0001123304634
-0.0008392870214
0.001680124329
-0.0001463999792
0.0001463254594
-0.001680049809
0.0003252667792
1.17259591e-05
-0.0003331432225
-3.849515806e-06
-3.042477018e-05
-0.0003427891799
3.448276052e-05
0.0003387311895
-0.0003717645688
0.0003598231906
-2.514276484e-05
0.0003593817591
6.007818225e-05
-0.0003954398627
0.0003433833472
4.302702321e-05
-0.0003373992471
-4.901112331e-05
3.10635497e-05
-3.510179899e-05
0.0003293050285
0.000184384293
0.001303485252
-0.001314721899
-0.0001731476461
0.0001719639535
-0.0001607925695
0.001334685275
0.0006814783531
7.206775765e-05
0.000343481641
2.978697295e-05
-0.0003430331557
-3.02354583e-05
2.44182106e-05
-2.390034493e-05
0.0003454009524
-2.594693793e-05
0.0003483191606
2.558154307e-05
6.535378094e-06
0.0003776462571
-0.00075473795
-6.530022951e-06
-1.716055497e-06
-0.0007547382767
1.715016653e-06
0.0007547393156
1.711878673e-06
-0.0007626805286
0.0007626815738
-1.712923821e-06
-0.0007434064767
-1.650411827e-06
1.649373015e-06
0.0007434075155
-0.000752233155
0.0007521641702
-1.647070647e-06
0.000375764499
6.542464849e-06
-0.0007521623076
-1.68182429e-05
0.0004213969949
1.720744705e-05
-0.0004217861991
0.0004204546144
-0.0004214924506
-1.889347997e-05
-1.858927242e-05
0.0004255339563
-0.0004130347356
-4.210145659e-05
0.0008255199067
-4.205641736e-05
0.000832406778
4.237060879e-05
-5.107930108e-05
0.0008317431917
5.122264254e-05
-0.0008318865332
1.715808515e-06
-0.0004306889661
-1.547276552e-06
0.0004305204341
-0.0004351321444
0.0004350410204
1.205039062e-06
4.544571108e-06
-0.0004342210023
-2.611717037e-05
0.0003478400411
0.0003468297801
2.857650774e-05
0.0003491781441
2.878938775e-05
-0.000348933161
-0.0007657581599
1.710834971e-06
0.0007657592036
-0.00077221042
0.000772211934
-1.708039997e-06
0.0003855022011
6.716571044e-06
-0.0007721356701
-4.892430855e-06
-0.0003841116915
0.0003841101227
4.893999689e-06
-8.925897371e-06
9.225627467e-06
-0.0003838207808
9.267263216e-06
-0.0003832776904
-9.601181901e-06
8.234906617e-06
-0.0003829399061
5.345337536e-06
-0.0003802597468
-5.740137667e-06
4.256730834e-06
-0.000379678144
-4.34678362e-06
0.0003797681968
3.436729257e-06
-0.0004317369598
-5.194146559e-06
1.275447282e-06
-0.0004301161251
-1.450708094e-06
0.0004302913859
-0.0004310246759
0.000431107719
1.632765378e-06
-9.870551203e-06
3.931552403e-06
-0.0004151009892
0.00041835454
-0.0004115908575
-1.663423375e-05
0.0004212407714
-1.652712074e-05
9.053258161e-06
-5.31832226e-06
0.0004260911206
-0.0004319842556
3.451616128e-05
0.0004065213524
7.415343085e-06
-0.0004320506315
-0.0004245624438
1.399693672e-05
0.0004251675086
-0.0001166088511
3.409873299e-05
-0.0003420523257
-0.0005399389683
-1.618153437e-05
0.000425215744
1.655370983e-05
-1.585169308e-05
0.000423949978
1.601045839e-05
-0.0004241087433
0.0004215165653
-0.0004215443355
-1.679047279e-05
-1.390325901e-06
-0.0004394299247
0.0004386814043
0.0004293045119
-5.308877324e-06
-0.0004298318362
4.010710117e-06
-3.508961653e-06
0.0004288027634
0.0004272676874
7.771553123e-06
-0.0004394168382
0.0004350443112
-5.685025155e-05
0.000339094858
-0.0002791455606
2.631245215e-05
0.0003901027131
-0.0003624182998
2.377202731e-05
-2.37083343e-05
0.0004183044727
-0.0004073714091
1.690530318e-05
0.0004142381333
9.451104454e-06
-0.0003685019169
1.935705455e-05
-1.976891614e-05
0.0004126280303
-2.363261437e-05
0.0004147653658
2.339876218e-05
-2.017770955e-05
0.0004145887175
2.002202607e-05
-0.000414433034
-0.000348289572
-8.480377058e-06
0.0003482432065
0.0006911666483
6.908505554e-05
-0.0006914789485
7.086618066e-05
0.0006844822706
-0.000683552497
-7.179595432e-05
6.446858819e-05
-6.232660117e-05
0.0006874990265
0.0004102004498
-0.0004110254473
-2.121758517e-05
-1.902055206e-05
0.0004127242434
0.0004137830712
2.011316169e-05
-4.683044931e-05
-2.982086518e-05
0.0004302609675
-0.0003536096531
0.0005518325054
-0.0005986629547
0.0005526086387
4.892419947e-05
-0.0006015328382
0.0001137522325
-7.117456993e-08
0.0004389275808
0.000433058521
-0.0003491271537
8.192020011e-05
0.0006665229379
-0.000678050205
-7.039293301e-05
8.490299267e-05
-7.943069878e-05
0.0006838683232
0.0003477364811
3.346705346e-05
0.0003439140194
-6.070180748e-06
-0.000286001989
2.457413579e-05
-2.620549702e-05
0.0003455453807
2.532835156e-05
0.0003477776388
6.224422192e-05
0.0004352055559
-0.0004974497779
0.0003428152535
2.568279406e-05
-0.0003062538256
-0.0004036473862
2.262648402e-05
0.0004032822516
-1.721202392e-05
1.411635676e-05
-0.000400551719
-0.0003917011295
-2.413710315e-05
3.622931702e-05
-0.0005546463627
0.0004005263685
-8.469337018e-06
-0.0003558277145
-1.792172597e-05
0.000402993584
0.0004022627021
-2.437986529e-05
2.446698774e-05
-0.0004023498245
0.0004016847574
-0.0004018296772
-2.480617824e-05
-2.742938813e-05
0.0004023816615
0.0003995064579
-0.0001242212811
-0.0003287781223
3.029391864e-05
-2.792397828e-05
0.0003971365175
2.74164086e-05
0.0003924923697
0.0004195153007
-0.0004137990601
-1.56328195e-05
1.923738819e-05
-2.060673849e-05
0.000420884651
0.0004215234383
-3.59380985e-05
-0.0003508954279
0.0002896253152
-3.374922051e-05
0.000480127202
-0.00034421041
9.126331068e-06
0.0003432973606
-0.000345081754
1.029272865e-05
-9.099147611e-06
9.957290539e-06
-0.0003459398969
-8.312611685e-06
-0.0003478030403
-0.0003564136626
9.774863059e-05
0.0002931818606
-1.205658906e-05
1.060595595e-05
-0.0003549630295
-1.204906289e-05
-0.0003532889614
-7.668141293e-06
-0.0003495689255
0.0003488845643
-7.10905744e-06
-0.0003494436482
-7.558453294e-06
6.543598451e-06
-0.0003451408934
-7.105227068e-06
0.000345702522
-0.0003460750125
0.0003459611656
7.129503111e-06
1.278981166e-05
-0.0003442355815
0.000353630963
-1.36423103e-05
-0.0003478107646
4.439364484e-06
-9.812969874e-05
0.0004473212972
0.00034520634
6.740133805e-06
9.810033496e-07
0.0003141868914
-0.0003419937132
7.802662692e-06
0.0003351720538
7.959555783e-06
-0.0003445080063
-0.0004642643611
-3.16442445e-05
0.0004959086056
-9.978187653e-05
5.914465945e-06
-0.0003703969505
-3.414835961e-05
-0.0003696461223
0.0003040126054
-7.31608782e-06
7.542562268e-06
-0.0003612491404
0.0003613829767
-7.078210645e-06
-0.0003616208539
-7.504177597e-06
0.0003611221298
-8.430174793e-06
8.47691837e-06
-0.0003695875825
0.0003695408389
-8.45813296e-06
-0.0003695806949
0.0003696086531
-1.225395382e-05
-0.000368219696
0.0003463252902
-9.03735062e-06
-0.0003675933223
0.0003643767191
-0.0003558230283
8.498374424e-06
0.0003559467001
-9.50737163e-06
9.750566633e-06
-0.0003560662233
-9.212567982e-06
-0.0003569734583
-1.163469371e-05
-0.0003524008257
0.0003522380127
-1.107840134e-05
-0.0003527943051
-9.175531001e-06
0.0003516334634
-0.0003606417788
8.114118041e-06
0.0003605295962
-7.763775303e-06
7.983209861e-06
-0.0003608612134
-0.0003608875257
-9.052906967e-06
-0.0003571468658
0.0003570245915
-8.829521983e-06
-0.0003572479765
-8.471075046e-06
0.000356975321
-7.772360769e-06
8.081026585e-06
-0.0003859343375
-0.0003840719786
-8.622448682e-06
-0.0003845408763
-4.729108446e-06
0.0003843775539
-0.0003892028484
0.0003891172414
4.428487726e-06
6.920208867e-06
-0.000388802817
-0.0003867752137
-7.535342583e-06
-5.945952812e-06
6.226913033e-06
-0.0003761865189
6.927352444e-06
-0.0003742392557
-6.717805074e-06
4.360496969e-06
-0.000374512913
-4.352972228e-06
0.0003745053882
-7.335704132e-06
7.465740457e-06
-0.0003746583811
0.0003745283448
-7.133638954e-06
-0.0003753517259
0.0003751496607
-7.836613226e-06
-0.0003698958962
0.0003692743764
-7.913525556e-06
-0.0003711328808
0.0003712097932
-3.483218611e-05
-0.0004839671178
0.0005187993039
-7.069997178e-06
-0.0003759080907
0.0003758444489
-0.0003766104284
-6.859123998e-06
0.0003763995553
-0.0003789758782
0.0003790516743
4.180934769e-06
5.344371498e-06
-0.0003791568789
-0.0003768160046
-5.736115468e-06
1.987564316e-05
-2.748252535e-05
0.0003798488602
-0.000372241978
1.017149283e-05
0.0003812714109
-0.0003715672606
2.268228e-05
0.0003886179547
-0.000383497669
1.756597227e-05
0.0003886139767
9.26615243e-06
-0.000373246401
-3.207176164e-05
0.0003914349276
-0.0003491916732
0.0005064379877
-0.0005385097493
0.0003861477499
-0.0003862447721
-2.864100522e-05
-3.313443273e-05
0.000385252546
-2.659769987e-05
0.0003899101639
2.826577545e-05
9.362561055e-07
-0.0004274382667
-9.342805788e-07
0.0004274362911
-0.000429406403
0.000429659721
1.022129227e-06
2.230829032e-06
-0.0004308271015
4.423098817e-06
-0.0004227497413
-3.962434393e-06
1.271087137e-06
-0.0004232755456
-1.187521463e-06
0.00042319198
-0.0004268105837
0.000426727229
1.019610804e-06
3.919441776e-06
-3.241862385e-06
0.0004245687764
-0.0004242155942
0.0004236222305
4.512805457e-06
-0.0004248742281
4.111727055e-06
0.0004274115144
-1.661200649e-06
-0.0004279689804
2.46973832e-06
-1.430405036e-06
0.0004263721811
0.0004253699367
-8.477477223e-06
-0.0003604823977
-0.0004655641733
0.0004632728631
-1.54667976e-06
-3.256187288e-06
9.259590592e-07
-0.000463233945
-1.040999761e-05
-0.0005063625102
0.0004570809432
5.135674383e-05
-0.000508437687
-2.565540605e-06
0.0004482930208
0.0004418002034
-0.0004417021865
-2.015418412e-06
-5.555568664e-06
0.0004430657578
-1.237185785e-05
0.0004263474088
1.044407476e-05
2.544858321e-06
-1.472897852e-06
0.0004318174691
-0.0004329134237
3.024838264e-06
0.0004324334437
2.678618643e-06
-0.0004335908767
-4.385586e-07
0.0004160275954
-0.0003753332569
5.033479572e-05
-0.0006057039872
0.0004324830378
-2.723453258e-05
-0.0003549137095
-8.840505894e-06
0.0004392328651
0.0004371154405
1.275071962e-06
-0.0004382413063
5.869359453e-07
5.431646563e-06
0.000431096858
0.0004338011516
-9.988792993e-06
0.0004391994807
1.182069498e-05
0.0004360452329
-6.866922912e-06
6.99804432e-06
-0.0004361763543
0.0004346301735
-0.0004362077632
-8.528936962e-06
5.072543252e-05
-0.0001247699792
0.0004151481091
-0.0003411035624
0.0004019286194
-0.0003710385688
-1.204313072e-05
7.907517772e-06
0.0004060708051
-2.053801514e-05
-2.152089066e-05
0.0004103536747
2.073373172e-05
-0.0003597806455
0.0002710935946
1.70331866e-05
0.0004720267549
-0.0004554866966
0.0004762204283
-0.0004142667498
2.07390091e-05
0.000413552266
-0.0001209662532
4.736811401e-05
-0.0003406686107
-1.0433702e-05
-4.130449044e-05
-0.0003570212931
0.0004049447704
-0.0003680103583
0.0004103989645
4.350301664e-05
0.0003428771713
-0.0003477159536
-3.866423438e-05
5.784831028e-05
-6.229491212e-05
0.000347829949
0.0003565125252
5.348915726e-05
4.478634378e-06
-2.293855349e-05
0.0003608964453
-0.0003424365262
-5.4085014e-05
0.0003595885402
-0.0003010248918
2.57747283e-05
-2.498694127e-05
0.0003639007154
-0.0003646885024
0.0003619199401
-0.0003590837653
0.0003560149035
-2.458950716e-05
-0.0003556702102
2.71241323e-05
-2.74202879e-05
0.0003563110591
2.688870034e-05
0.0003553737062
2.738674354e-05
-2.737347579e-05
0.0003580160723
-0.0003574655856
0.0003574320412
-0.0003577031788
0.0003712855155
-2.465199009e-05
-0.000370277729
2.888307563e-05
-3.057972581e-05
0.0003729821657
2.804255673e-05
0.0003722306121
3.210769478e-05
-3.245983802e-05
0.0003764643826
-0.0003721038407
0.0003736318097
-0.0003672606602
0.0003559381176
-2.226718028e-06
-0.0003014544402
2.646257795e-05
-2.56828891e-05
0.0003551584288
2.780300663e-05
0.000353973678
2.631377477e-05
0.000354801626
-0.0003543972829
0.0003550281686
-0.0003353696483
0.0003707283586
-2.294811826e-05
-0.0003709688488
2.579415607e-05
-2.629615984e-05
0.0003712303624
2.514624341e-05
0.0003701216906
2.709672694e-05
0.0003711056672
-0.0003706118014
0.0003714123685
-0.0003706408565
2.630734871e-05
-2.916538605e-05
0.0003666650058
-0.0003638069684
0.0003643300732
-0.0003630096657
5.200021476e-05
-0.0001219356807
0.0003716573852
-0.0003017219193
0.0003687674589
-0.0003459326302
-0.0004013255178
0.0004010105057
6.433146872e-06
-5.538944231e-06
-0.0004017138855
5.927311969e-06
-5.145153847e-06
-0.0004022574507
-0.0004094382261
6.913566457e-06
0.0004090968005
-8.059389988e-06
8.564886615e-06
-0.0004099437227
-7.718259935e-06
-0.0004100592155
-9.057695814e-06
9.017660789e-06
-0.0004103420635
0.000409479186
-0.0004099719952
0.0004058086359
5.623017993e-06
-4.40779135e-05
-0.000373135962
-4.783369071e-05
-0.0003616442805
0.0001191404465
-4.71620655e-06
0.0004296934283
0.0004236349608
-0.0003485724278
-5.234161013e-06
5.392506361e-06
-0.0004214145691
0.0004212562238
-4.773002986e-06
-0.0004210014578
0.0004205402997
-5.740727669e-06
9.731350702e-06
-0.000421486732
0.0004174961089
-0.0004212924319
0.0004209442105
-0.0005458224117
-4.422568026e-05
0.000590048092
0.0004349651256
-0.0004333181762
0.0001097631272
0.0003597181596
2.745654996e-07
-0.0004118684883
5.738577262e-06
0.0004117227794
-6.397942555e-06
6.887929241e-06
-0.000412358475
-5.985212177e-06
-0.0004129832023
-7.302014157e-06
-0.0004104308212
0.000411015473
-0.0004114295579
0.0004108683813
-3.470247636e-05
0.0001085953287
-0.0004255068687
0.0003516140163
-0.0004227660479
0.0003977949222
-1.097819284e-06
1.118378282e-06
-0.0004232220208
0.0005339675083
-0.0004264699989
0.0005762569689
4.072141559e-05
-0.0005847738087
0.0004235307926
-0.000348710644
0.0004272570225
-0.0005877726591
-0.0004727868015
-6.926228039e-06
0.000473350471
4.99089967e-07
-0.0004490792407
0.0004498848876
-1.304736881e-06
0.0004680272482
9.386880244e-06
-2.100748716e-05
-0.0004564066413
-0.0004419017238
0.0004409599847
2.534197348e-06
-1.833955115e-06
2.66582801e-06
-0.0004427335967
-1.012679468e-06
-0.0004437125099
0.0004407809782
-5.562515611e-05
0.000434738151
-0.0003566182458
0.0005593167208
-0.0006149418769
8.155201544e-06
0.0004978182874
-3.794624076e-05
-2.046316123e-05
0.0004585560381
2.809107954e-05
-0.0004661839564
0.0003915080813
-0.0004726269442
3.77226622e-07
3.254125733e-06
-3.174612917e-06
0.0004327200402
-0.0004311188416
0.0004308640056
-0.0004318854066
-0.0004419216416
0.0004163195502
-4.011670298e-05
-4.701195013e-05
-0.00026300239
0.0004364332828
-0.0004765499858
0.0003503556094
0.0004550167574
-0.0004558047129
3.940881518e-05
5.03007408e-05
0.0003653072014
0.0003621946205
3.757460075e-05
4.029100768e-05
0.0004241453631
-0.0004644363708
0.0003410111019
-0.0002504193534
0.000384418661
-0.0003764364514
0.0005131035951
-0.0005489945124
0.0004119684638
-0.0003590526349
1.170617989e-05
0.0004171675871
0.000423165041
-0.0003476186502
0.0003461457859
-0.0004508764587
0.0004827281685
-0.0003568365455
-8.705447228e-06
-1.719488926e-06
-0.000354725978
-3.910785412e-07
1.006007729e-06
-0.0003507714781
-3.593704881e-05
9.689416699e-05
-0.0003506875556
0.0002897304374
-6.244900401e-06
-0.0003425131463
0.0003128209979
2.248576577e-06
-0.0003494331984
0.0004558540071
-0.0003567112636
0.0004908168599
4.911296001e-05
0.0004124937144
-0.0003385731153
-0.0005714744278
0.0004030401838
-0.0003660106486
-0.0005445266424
0.0001143749409
0.0004316673306
5.134767982e-05
-0.0005958743222
-3.063220688e-06
-0.0003638085035
0.0004289674379
-0.0003457885353
-0.0004378131081
1.742391359e-05
0.0004342732451
-5.087803901e-06
0.0001191072011
-9.994294627e-06
-4.227843483e-05
-0.0003755633259
0.0004278614764
-0.0003510327101
0.000428816013
4.989726434e-06
-5.711030239e-06
0.0004344579822
-0.0004312309657
0.0004361495176
-0.0003551915295
0.000428369674
-0.0004193075025
-5.49470984e-06
5.235803108e-06
-8.569755483e-06
0.0004317036264
0.000435048741
2.873464367e-05
5.584402237e-05
0.0003514406662
-0.0003434528184
0.000345981965
-0.0002905180483
-0.0003453810356
2.51568098e-05
0.0003468824337
-2.93613339e-05
2.679555179e-05
5.448281571e-05
-1.223945739e-06
0.0003396694419
-0.0003127627021
0.0003464059897
-0.0002917859131
0.0003602620482
-2.611996865e-05
-0.000357332658
2.594939389e-05
-2.540608327e-05
0.0003597187376
2.672014536e-05
0.0003605097806
2.527378193e-05
0.0003591246011
-0.000358947412
0.0003588151107
-0.0003331516142
0.0003589867167
-2.451741738e-05
-0.0003587792581
2.730816718e-05
-2.724748172e-05
0.0003589260312
0.0003580812114
2.686119724e-05
0.0003604476814
-0.00036029836
0.0003599120755
-0.0003608014929
0.0003750713427
-0.0003726738477
-2.647803496e-05
2.565455768e-05
0.0003771400001
-2.772321507e-05
2.385897441e-05
0.0003793427383
2.249765934e-05
0.0003731179737
-0.0003719612746
-0.0003707804859
-0.0005009551943
0.0001245751145
0.0003938642943
3.025460839e-05
-0.0005312098027
-1.027467073e-05
-0.0003476029936
0.000388167737
-0.0003179119795
-2.710350605e-05
0.0003841476465
-0.0003436693779
0.0004920345395
-0.0005191380455
0.0003875232837
-1.916995565e-05
2.996839719e-05
-2.530627305e-05
0.0003828611595
0.0003805455713
2.325434017e-05
0.0003814908965
-0.0003845477617
0.0003824958288
-0.0001249361968
5.256007188e-05
-0.0003315663914
0.0004097781791
-0.0005205980192
0.0004047232782
3.812138313e-05
-0.0005587194023
7.780440796e-06
-2.298166647e-05
-0.0003764999038
-0.0003546498951
-0.0003915458684
0.0003980201795
-2.32376922e-05
-0.0003767775132
-0.0003646166635
2.282010536e-05
0.0003963307642
-2.202917044e-05
-0.0004036915682
0.0003985876952
-0.0003460801131
0.0003244293729
-0.0003435912022
0.0003430140997
-7.915028986e-06
6.509872389e-06
-0.0003540106838
0.0003586798705
-0.0003559889436
-0.000348666605
-6.582940023e-06
-0.0003491927224
-0.0003508881604
3.75801897e-05
-1.465166705e-05
0.0003181321634
-0.0003483947582
0.0002878452491
-0.0003460771996
3.551887988e-05
0.0003034425598
0.0004828401771
0.0003401894761
-0.0003428281825
9.206475177e-06
0.0003387856636
0.0003335444525
0.0003514115713
-2.794629692e-05
-0.0003502836801
2.800214078e-05
-2.828024201e-05
0.0003516896726
0.0003505477921
2.699692842e-05
2.831134382e-05
0.0003525053719
-0.0003526641397
0.0003526952415
-0.0003521069395
2.496627536e-05
-0.0003488601638
-0.0003499344931
-0.000341164025
2.430541417e-05
0.0003440163538
-2.398834674e-05
1.920966516e-05
-0.0003363853434
-3.061905308e-05
-0.0003359045914
1.023412195e-06
-0.0002952447502
0.0003432841346
-0.0003230510573
0.0003453733265
-5.326797472e-05
0.0003525609596
-0.0002981830461
-6.140372177e-05
-0.0003184543617
0.0004389597916
-0.0005003635134
0.0003551640263
-5.727583933e-06
6.137516608e-06
-0.0003668676745
0.0003693604279
-0.0003691735459
0.0003356107944
-0.0003621590778
0.0003615172444
-6.602054757e-06
-0.0003626352337
-0.0003644985911
-8.527465008e-06
8.581729593e-06
-0.000368827567
0.0003687733025
-0.0003693794096
0.0003693288629
-8.717962008e-06
-0.000367704626
0.0003673852374
-0.000368283813
0.0003681475806
-9.993042904e-06
1.023267617e-05
-0.0003542110539
0.0003545964978
-0.000354838974
0.0003541342811
-0.0003532906112
0.0003533963919
-1.074442775e-05
-0.0003536245848
-0.0003541088234
-8.073611033e-06
8.240345109e-06
-0.0003594569554
0.0003604702882
-0.0003605606894
0.000360754563
-0.0003571178835
0.0003568702156
-8.538943523e-06
-0.000357408462
-0.0003580961498
0.0003690417555
-2.271036558e-05
-0.0003681009177
2.38851877e-05
-2.445133153e-05
0.0003696078994
2.391296684e-05
0.0003702110307
2.483230188e-05
0.0003705955475
-0.000369989106
0.0003703700763
-0.0003700313199
0.0003738707152
-1.564543729e-05
-0.0003382581065
2.270728474e-05
-2.226630666e-05
0.0003734297371
0.0003749021438
2.318069668e-05
0.0003700781261
-0.0003696044907
0.0003705188807
-0.0003632567701
0.000383931442
-8.85096561e-06
-0.000384098043
7.753659865e-06
-7.626073714e-06
0.0003838038559
7.955859619e-06
0.0003833260782
7.420417821e-06
-7.21629723e-06
0.0003851798702
-0.000384403048
0.0003841973921
-0.0003847879598
0.0003828460574
-9.986612586e-06
-0.0003833888955
1.189858462e-05
-8.281676618e-06
0.0003792291494
3.468880124e-05
0.0003609526136
8.169902951e-06
0.0003829863034
-0.000383112532
0.0003830007583
-0.000383520622
0.0003889319908
-6.579492585e-06
-0.0003892409871
6.786173382e-06
-6.73244945e-06
0.0003888782668
6.841204307e-06
0.000388542913
6.458461336e-06
-6.176143842e-06
0.0003897422016
-0.0003892612929
0.0003889873048
-0.0003895732429
0.0003871406134
-7.669422424e-06
-0.0003873819928
7.084364e-06
-7.094445537e-06
0.0003871506949
0.0003860926911
7.040382789e-06
0.000388061697
-0.0003878478246
0.0003877937618
-0.0003881568227
-7.525147021e-06
-0.0003734813298
7.724932645e-06
0.0003732815441
-0.0003740356632
0.0003739762567
0.0003743457613
-7.053824032e-06
-0.0003746542892
8.019196111e-06
-7.709098066e-06
8.19015142e-06
7.39765158e-06
-7.154261812e-06
-0.0003749698276
-0.0003752094639
-7.786088118e-06
-0.0003720999508
0.0003719725134
-0.0003727195369
0.0003726583815
-6.850590334e-07
-0.0003799892163
6.003077086e-06
0.0003746711982
-0.0003838889332
0.000348371688
0.0003837996539
-6.654735796e-06
-0.0003824686183
4.628247869e-06
-4.717527164e-06
5.401076085e-06
0.0001025612016
0.0003175673251
-0.0003861234434
-0.0003838474123
0.0003768669838
-5.880453278e-06
-0.000377179083
6.767377279e-06
-6.510821955e-06
6.01626265e-06
0.000378258127
-0.000377684023
0.0003771894637
-0.0003780637423
-6.547826729e-06
0.0003768781665
0.0003777133773
5.431544786e-05
-0.0001245865213
0.0003964574539
-0.0003261863805
0.00038565001
-0.0003588170875
0.0003927660738
-0.0003492399149
1.556592412e-05
0.0003947661219
0.0004014579427
-0.0003754854005
2.554599958e-05
0.0003786978905
-2.308827788e-05
2.168106034e-05
-0.0003740781829
-2.899085952e-05
-0.0003712233011
-1.908067277e-05
-0.0003687607887
0.0003747910691
-0.0003721906815
0.0003783121413
-0.0003983995456
3.117813617e-05
0.0003930835636
-1.784874463e-05
0.0001258871867
-1.94964247e-05
-5.508704083e-05
-0.0003565434784
0.0003922605792
-0.0003214604333
0.0003895889953
-0.0004052923476
4.894635996e-06
0.0004048571811
-3.95486043e-06
4.349671861e-06
-0.000405687159
-3.658079828e-06
-0.0004069350819
-4.747983091e-06
-0.0004034825392
0.0004043232814
-0.0004047215926
0.0004039084768
-5.332625721e-06
0.0004037594497
0.0004044594368
-6.419454339e-06
-0.0004012160513
0.0004013109385
0.0004006609446
3.91532493e-05
-0.0004117092355
0.0003739076022
-0.0005180314782
0.0005571847275
-0.0004138091156
2.974669725e-06
-7.48861154e-06
4.999682761e-06
-0.0004113201868
-0.0004112193749
-3.681396609e-06
-0.0004084311998
0.0004116332524
-0.0004103149663
0.0005016871778
-0.0001050525151
-0.0004006034303
-3.688116708e-05
0.0005385683448
-2.787768788e-07
0.0003617644519
-0.0003997785867
0.0003295281038
0.0003918132591
-5.269685394e-06
-0.000392164026
6.10683275e-06
-5.794215623e-06
0.0003915006419
0.0003908758588
5.324582082e-06
0.0003887218388
-0.0003925956342
0.0003921260006
-0.0003932830188
-6.643959384e-06
-0.0003993136621
0.0003991815271
-0.0003999402023
0.000399808712
-7.340721844e-06
-0.0003969377166
0.0003966786676
-0.0003974509603
0.0003971560316
0.0003979861332
-5.263231229e-05
-0.0003679575069
2.416125717e-05
-2.932600051e-05
0.0004031508765
1.713457401e-05
0.0004010851711
2.821179991e-05
0.0004120093527
-2.328284729e-05
-0.0004100154295
0.0004089012289
-0.0003369779857
5.235446385e-05
-0.0001249855404
0.0004063636909
-0.0003337326143
0.0003953860323
-0.000366013235
1.363478307e-05
0.0004059978443
-0.0005237844187
0.0004124336613
-0.0005631153425
0.000412080945
-4.470722927e-05
-0.0003722165309
1.095990617e-05
-1.8954141e-05
0.0004200751799
0.0004229884919
1.964035526e-05
0.0004304622963
-1.53420379e-05
-0.0004249440723
0.0004256302866
-0.0003483143022
-3.740884626e-06
3.901626519e-06
0.0004234614886
-3.4982657e-06
0.0004243261575
-4.300489574e-06
-0.0004212081047
0.0004207355913
-0.0004222110534
0.0004218121903
3.09025008e-07
0.0004333501927
-0.0004296044956
0.0004284831155
-0.0004296884258
4.136728809e-06
2.283035321e-06
0.0004220633514
0.0003932612412
-3.079636453e-06
0.0004249513075
0.00042557558
-0.0004145255092
5.004985107e-06
0.0004143027932
-4.747529523e-06
5.16073504e-06
-0.0004149387147
-4.41053301e-06
-0.00041564602
-5.573077645e-06
-0.0004136860471
0.0004138995509
-0.0004143118935
0.0004136779217
-0.0004152482165
4.551781458e-06
0.0004138527546
-2.228548185e-06
3.398588459e-06
-0.0004164182568
-0.0004185158737
-3.912980726e-06
-0.0004162067322
0.0004157311777
-0.0004162455699
0.0004156410604
0.0004089293218
-0.0003694694267
-5.550506076e-07
-0.000445059783
0.0004504384563
-0.0004500675479
0.0004495598281
-0.0004130595153
3.078052959e-06
0.0004402299222
-9.277618134e-05
1.801800793e-05
-0.0003383013419
-9.621687412e-06
5.632202438e-05
-0.0006102290089
0.0004265281071
-0.0003521880748
0.0004320079565
0.0004482085327
0.0004463090066
5.281325622e-06
4.986927206e-06
0.0004449367462
-3.614666803e-06
3.802207834e-06
0.0004410858748
0.0004333376147
-0.0004339304208
3.099468528e-06
0.0004332629845
0.0004333589904
-0.0003635257813
2.486859777e-05
-0.0001095167507
0.0004368206666
-0.0003521725136
-5.244832138e-05
0.0004338242187
-0.0003565072995
-2.733417853e-06
0.000441480452
-0.0005552893542
0.0004430391856
-0.0006088352134
0.0005560284021
-0.0006084767235
-0.0004361467609
0.0004379032551
-0.0001115376741
-0.0003518436193
1.392579799e-06
-4.728103675e-05
0.0006033159306
-0.0004412219745
0.0003993725843
-0.0004414293745
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.032469285e-07
0
2.34481652e-05
6.858721763e-06
-7.989656454e-07
-1.080789887e-05
0
0
0
3.984235249e-05
-2.327263775e-06
9.482140647e-05
1.441890266e-05
-6.079600773e-06
-7.703565655e-05
0
0
0
0.0001102916753
-5.933833414e-06
0.0001339451088
1.529712997e-06
-1.075846012e-06
-0.000130544894
0
-6.879430469e-07
2.330158138e-08
0.0001322988413
1.025602727e-06
9.930694393e-05
-1.224309766e-05
5.422669467e-06
-0.0001144620903
0
-7.744988443e-08
-5.885383941e-09
8.119771252e-05
5.483178326e-06
2.471545058e-05
-9.066175571e-06
2.155217464e-06
-4.212815852e-05
0
0
0
1.133302739e-05
7.70401023e-07
0
-3.450167583e-08
0
-1.283573782e-07
0
0
0
0
0
0
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.940795743e-06
0
0.0001017228252
3.626298303e-05
-1.672862198e-05
-5.507622656e-05
0
3.815246782e-07
0.0001581981931
-2.93987944e-05
0.0003588560618
9.175875305e-05
-6.271822936e-05
-0.0002893406352
-4.398808552e-05
1.942285997e-05
0.0004278155607
-6.727386353e-05
0.0006108232354
6.707465878e-05
-5.303532951e-05
-0.0005557130673
-0.0001577651345
2.563984352e-05
0.0006576732902
-4.101095241e-05
0.0007355982928
-1.172788249e-05
4.974466822e-06
-0.00072119622
-0.0002369030478
1.128989514e-06
0.0007373043346
1.937006782e-05
0.0006639025461
-7.020083444e-05
5.090866015e-05
-0.0007013513676
-0.0002169845279
-2.198267245e-05
0.0006143091133
5.547964671e-05
0.0004092734086
-7.434643877e-05
5.337550001e-05
-0.0004847357171
-0.000107116019
-2.026981173e-05
0.0003306259125
4.772235705e-05
0.000113483236
-3.870512875e-05
2.281941117e-05
-0.0001787557464
-8.52611218e-06
-2.490935546e-06
6.047184198e-05
1.370050345e-05
0
-1.401094553e-06
0
-4.241943702e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
8.595104796e-05
3.255909163e-05
-1.616735411e-05
-3.140875544e-05
0
1.07511572e-06
0.0001629906155
-3.890708864e-05
0.0004871925506
0.0001770281699
-0.0001347446001
-0.0003676593184
-0.0001101198174
6.304610777e-05
0.0006130706172
-0.0001627943035
0.0009943317568
0.0002251867338
-0.0001923178381
-0.0008699073026
-0.0004127658559
0.000124069944
0.001112149389
-0.0001814214672
0.001401832608
0.0001049668132
-9.935907439e-05
-0.001317858985
-0.0007301001491
8.00030676e-05
0.001471402603
-6.32005211e-05
0.001587217878
-6.175533697e-05
4.700536566e-05
-0.001564466248
-0.0009233131258
-2.12277007e-05
0.001593741813
7.827292837e-05
0.001510828127
-0.0001716707949
0.0001440122616
-0.001556155366
-0.0009064610937
-9.247620267e-05
0.00144693845
0.0001537115942
0.001145279548
-0.0001791762716
0.0001504560768
-0.001263236101
-0.0006611398969
-9.772745018e-05
0.001012824854
0.000140249374
0.0005726611143
-0.0001230123518
9.739336031e-05
-0.0007202262191
-0.0002865059502
-5.692968693e-05
0.0004481469478
8.12993776e-05
0.0001090652301
-4.659015942e-05
3.298948665e-05
-0.0002030157923
-2.222900701e-05
-6.570440905e-06
4.394636102e-05
1.572532841e-05
0
0
0
0
0
0
-6.279429557e-06
4.650821617e-05
-7.407338503e-06
0.0003618231099
0.0001473856376
-0.0001151134057
-0.0002289797281
-6.937235983e-05
5.700154261e-05
0.0005162633974
-0.0001711301482
0.001072547158
0.0003705945875
-0.000331282454
-0.0008832396826
-0.0004771747535
0.0002219864627
0.001262099694
-0.0003465417466
0.001722154558
0.0003324038919
-0.0003044776827
-0.001576345818
-0.00104032598
0.000255298483
0.001852995544
-0.0002648794873
0.002121077092
0.0001042912068
-0.0001060103351
-0.002052127585
-0.001517543893
0.0001077390654
0.002171744774
-5.135857345e-05
0.002237709565
-0.0001064407062
9.974935572e-05
-0.002226982164
-0.00176508016
-7.628025312e-05
0.002240422194
0.0001439481738
0.002201523439
-0.0002774904845
0.0002507360722
-0.002221797121
-0.001757863662
-0.0001991321002
0.002160322008
0.0002732302
0.001910676934
-0.000330831647
0.0002794616058
-0.002008261945
-0.001465509634
-0.0002090673867
0.001798090927
0.0002778665919
0.001221391446
-0.0002128873088
0.0001980202471
-0.001425368594
-0.0008898912812
-0.0001728824179
0.001016239642
0.0001647582024
0.0004323555053
-0.0001064136885
9.230724122e-05
-0.0006135752085
-0.0002912908074
-6.153317709e-05
0.0002754500306
6.893768786e-05
-1.499250395e-05
1.096656319e-05
8.430776359e-06
-6.049235978e-05
-2.523913601e-06
-9.658738805e-07
-6.857130534e-05
0.0001675836227
-4.54739792e-05
0.0006867542682
0.000265689576
-0.0002447202219
-0.0004867775063
-0.0002927883039
0.0001808611159
0.0009034412475
-0.0003196599433
0.001579841688
0.0004840678308
-0.0004584002666
-0.001358022619
-0.0009933197839
0.0003968321693
0.001789412501
-0.0004598957587
0.002315741294
0.0003540728063
-0.000376105043
-0.002157727434
-0.001775643754
0.0003665551419
0.00242556845
-0.0003126850857
0.002492363661
0.000142658921
-0.0001153614358
-0.002518149788
-0.002199226629
0.0001062364692
0.002469137544
-5.4370772e-05
0.001229090777
6.004580575e-05
-0.001229260553
-0.002314810272
-0.0001088862754
0.001229179488
7.225594509e-05
0.002503527304
0.0003282843889
-0.002484459827
-0.0001682994798
-0.002317984649
-0.0002966167373
0.002524983431
0.0003897979575
0.002376376321
0.0004071761391
-0.002452685703
-0.002168302713
-0.0004007879401
0.002273190754
0.0003774145476
0.001758685972
-0.0003026684493
0.000277028415
-0.001960080183
-0.00157419454
-0.0002339296999
0.001531662618
0.0002392976941
0.0007941373218
-0.0001570857434
0.0001397777865
-0.001035730188
-0.0007255780681
-0.0001196688495
0.000571090897
0.0001176562293
-4.571553558e-05
9.78296545e-05
3.754300678e-05
-0.0002159853383
-9.449131063e-05
-2.159890723e-05
-0.0001495404706
0.0002962221902
-9.308781776e-05
0.0009506230479
0.0003492040616
-0.0003364453233
-0.0007052513653
-0.0005389297201
0.0002939236964
0.001210307902
-0.0004159625781
0.001973241659
0.000535574043
-0.0005274322991
-0.001731386456
-0.001472620702
0.0005147110916
0.002193536845
-0.0005140600195
0.002630154339
0.0003171752786
-0.0003232997167
-0.00253515746
-0.002257855633
0.0003368752918
0.002672899836
-0.0002446260595
-3.765557101e-05
-0.001354316342
-0.00257562532
0.0001238367096
4.868330775e-05
-0.001306303367
0.001296463179
-3.884312012e-05
5.138585745e-05
0.001309370138
-2.27534716e-05
-0.001338002524
0.00125140637
-1.673027986e-06
-0.001244415838
-5.31750402e-06
-0.001269282659
-5.151014985e-05
0.001284280856
8.059804342e-05
0.001308487896
0.0001407101378
-0.001293418611
0.001250197803
0.0001197477375
-0.001244054615
-0.0001258909253
-0.001303991746
-0.0001824254892
0.001291364956
0.0001950522792
0.0004121633505
-0.0004017995884
0.002560668064
-0.001285028158
-0.001286003668
0.002531481509
0.000455065134
0.002584232345
0.0004665264268
0.002110821554
-0.0003617171572
0.0003509230277
-0.002308614434
-0.002070846672
-0.0003244365108
0.001880280042
0.0003016299213
0.001084868337
-0.000183992631
0.0001786340586
-0.001356040867
-0.001132530803
-0.000163872865
0.0008237428132
0.0001477793995
-6.79254907e-05
0.0002064145452
6.428945382e-05
-0.0003752011085
-0.0002620624137
-5.307851066e-05
-0.0001982384269
0.0003690007398
-0.0001154336774
0.001100994771
0.0003813727503
-0.0003744984878
-0.0008298915657
-0.0007397252556
0.0003559194032
0.00138464635
-0.0004539351502
0.002194207379
0.0005494725962
-0.0005469746604
-0.00194285847
-0.001796276476
0.0005400091416
0.002412780017
-0.000518358996
0.0003043746205
-0.0003066778814
-0.002715851
-0.002582036496
0.0003131769521
0.00273769499
0.0002262900353
-0.002712782277
-0.0001742377472
0.0001713950614
0.00137576389
0.001364773786
0.001349766713
-0.0001772373126
0.001353441188
0.001360199229
2.620194564e-05
-0.001355953904
-2.829418836e-05
1.833368702e-05
0.0006833115635
0.0006868481671
0.001357410836
-2.442112571e-05
-0.0001690028825
0.001376879991
0.0001688212576
-0.0002036368039
0.00137167305
0.0002060609396
-0.001374097186
0.001350472177
0.0002068639405
-0.001351288706
-0.0002060474112
0.002766032739
0.0004974423959
0.002334274335
-0.0003952654755
0.000392111815
-0.002527016078
-0.002369078015
-0.0003695468161
0.002102024931
0.000340351756
0.001271540793
-0.0002026965149
0.0002012957232
-0.001559216622
-0.001405813535
-0.0001876229536
0.000989112187
0.0001667888255
-8.056924003e-05
0.0002899507152
7.975722657e-05
-0.0004876014354
-0.0004153169755
-7.38432516e-05
-0.0002366730698
0.0004257507478
-0.0001300773512
0.00121560232
0.0003993706605
-0.0003951837702
-0.0009256404157
-0.0008571988305
0.0003865994207
0.001516463299
-0.0004732809798
0.002360136434
0.0005563643911
-0.0005546992114
-0.002100999644
-0.001986557532
0.0005514324214
0.002582440703
-0.0005213754077
0.0002988653206
-0.0003000755656
-0.002880815287
-0.002758382291
0.0003026386313
0.002876635583
0.0002195565402
-0.002865320961
-0.0001682935803
0.0001686279878
0.001443102736
0.001433198439
0.001415739833
-0.0001683610429
0.001424351005
0.001424675377
2.268841845e-05
-0.001424535204
-1.176856942e-05
1.136808961e-05
0.0007139285569
0.0007111472994
-1.118204337e-05
0.0007064407898
0.0007090250297
-0.0001656963792
0.001452470457
0.0001658633505
-0.0007250506264
-0.0001993527692
0.001451741564
0.000199596335
-0.001451985129
0.0002005545028
0.001422712619
-0.00142306472
-0.000200202402
0.002928659899
0.0004963545349
0.002470804492
-0.0003974495867
0.000401181269
-0.002675262962
-0.00258388846
-0.0004004387533
0.002224977256
0.0003491468487
0.001350650382
-0.0002040985542
0.0002066537197
-0.001653005666
-0.001607255432
-0.0002061031932
0.001054018838
0.0001709763362
-8.11558372e-05
0.0003160466856
8.292392607e-05
-0.0005258221065
-0.0005091409897
-8.273594023e-05
-0.0002805100841
0.0004885319575
-0.000144536164
0.001336310059
0.0004198848391
-0.0004148309442
-0.001027637307
-0.0009487309951
0.0004044528334
0.001654252962
-0.0004914425591
0.002532721236
0.00056344161
-0.0005616885762
-0.002265264037
-0.002139037048
0.000558168484
0.002759583745
-0.0005240373879
0.0002921986151
-0.0002938851184
-0.00305488097
-0.002922966468
0.0002972697257
0.003034140255
0.000216502155
-0.003027608884
-0.0001688881626
0.000168454665
0.001522474792
0.00151209896
-0.000168545241
0.001490885555
0.001501587816
2.280263962e-05
-0.001501591862
0.0007496541995
0.0007522283863
4.428706321e-06
-4.500503153e-06
-0.0007521613582
-4.366940963e-06
-0.0007434735529
4.434017153e-06
-0.0001627207531
0.001527086491
0.0001633370547
-0.000196883044
0.001526685012
0.0001968724529
-0.001526674421
0.0001979129601
0.001498383009
-0.001498583022
-0.0001977129473
0.003043532456
0.0004789127674
0.002504050434
-0.0003716389224
0.0003802980223
-0.002735128921
-0.002699246591
-0.0003952349618
0.002234855425
0.0003291216768
0.001311267513
-0.0001884325978
0.0001935904117
-0.001626091804
-0.001663400945
-0.0002031435823
0.001006866602
0.0001599356384
-7.029940576e-05
0.0002730038824
7.385616469e-05
-0.0004769832848
-0.00052479159
-8.049238881e-05
-0.0003353374572
0.0005646862563
-0.0001633819033
0.001473560572
0.0004421393628
-0.0004382216713
-0.00114602131
-0.001054338371
0.0004252140787
0.00180775615
-0.0005123423106
0.002713268213
0.000570188047
-0.0005680078044
-0.002440764414
-0.002307018421
0.0005651039845
0.0029409742
-0.000525218389
0.0002843930563
-0.0002867007997
-0.003226633189
-0.003097912999
0.0002903905373
0.003194695285
0.0002139043604
-0.003192136504
-0.000168286926
0.0001680576766
0.00160228686
0.001592637674
-0.0001682226052
0.00157229855
0.001582541817
2.281850582e-05
-0.001582559352
0.000790035736
0.0007926155209
4.534327362e-06
-4.537569354e-06
-0.0007926190227
-4.472786826e-06
-0.0007848082069
4.542845147e-06
-0.0001608030761
0.001605166473
0.0001609858066
-0.0001937564439
0.001603220616
0.0001947708046
-0.001604234977
0.0001959122031
0.00157438582
-0.001574947286
-0.0001953507373
0.003112077586
0.0004475577509
0.002430643927
-0.0003215619047
0.0003404944106
-0.002704697409
-0.002730692177
-0.000357451717
0.002154211702
0.0002933896757
0.001192681
-0.000166410723
0.0001707790067
-0.001513327293
-0.001612023588
-0.0001846468485
0.0008887958802
0.0001399776532
-5.39155922e-05
0.000194901848
5.727850649e-05
-0.0003795819649
-0.0004615042673
-6.778119175e-05
-0.0004043048803
0.000656543141
-0.0001865938512
0.001631536712
0.0004771653316
-0.0004661318931
-0.001283423842
-0.001170372137
0.0004485509668
0.001981740718
-0.0005371247419
0.002910064004
0.0005769227597
-0.0005750123452
-0.002634519823
-0.002481595824
0.0005718511289
0.003135850953
-0.0005259104385
0.0002745191318
-0.0002768600087
-0.00340367309
-0.003271405508
0.000282079261
0.0002133373839
-0.003353619682
0.001671465515
0.001682118317
7.836449234e-05
0.001682291663
-7.845312756e-05
-0.001682203027
-0.000168293335
0.001652302391
0.001662400059
7.8313054e-05
8.977276177e-05
2.254320047e-05
-0.001662571211
0.0008303545347
0.0008327845173
4.695939447e-06
-4.701344871e-06
-0.000832867214
-4.715181162e-06
-0.000824579197
4.710721519e-06
-0.0001591992853
0.00168016545
0.0001591581645
0.0003762600805
-0.0003747423077
0.003349181985
-0.001679804679
-0.001670895079
0.0003768444424
0.003312319981
-0.00166087043
-0.001652033913
0.003105815925
0.0004045573437
0.002309070797
-0.0002801551441
0.0002874899912
-0.0026138622
-0.002704149411
-0.0003162458316
0.001978979819
0.0002572353401
0.0009838260784
-0.0001340064622
0.0001434106738
-0.001303872747
-0.001459930385
-0.0001563195331
0.0006927643008
0.0001153710975
-3.048724426e-05
9.48247639e-05
3.714757401e-05
-0.0002390183316
-0.0003417682729
-4.931372346e-05
-0.00048494446
0.0007577252786
-0.0002162921982
0.001775074827
0.0005026742278
-0.0004993227586
-0.001416309796
-0.001291090588
0.0004783682501
0.002133905185
-0.000565646369
0.003064368468
0.0005769796992
-0.0005795190097
-0.002792540053
-0.00267722241
0.0005744208769
0.003281851067
-0.0005223504831
0.0002599126816
-0.0002621227267
-0.003518580679
-0.0034471935
0.0002720834706
0.0002238513457
-0.003525641085
0.001751812102
0.001763990478
7.834740817e-05
0.001763569885
-7.834207343e-05
-0.00176357522
-7.83366147e-05
0.001731808052
-0.00173180886
7.833742224e-05
1.292140805e-05
-0.000871985138
0.0008719065644
-1.284283438e-05
5.172305623e-06
-5.094871844e-06
-0.0008718337123
-5.027962318e-06
-0.0008634353955
5.022763114e-06
-2.461348919e-05
0.0008663026567
2.436818275e-05
-3.589112073e-05
0.0008662225172
3.643220125e-05
-0.0008667635978
0.0008609516996
-0.0008609424237
-3.644601003e-05
0.003553901232
0.000334004473
0.003228134277
-0.0003535049094
0.0003760829642
-0.003421029816
-0.003395336888
-0.0003956916511
0.002992696422
0.0003466316913
0.002041505293
-0.0002175798082
0.0002357359318
-0.002386486976
-0.002563817453
-0.0002688929098
0.00171659679
0.0001988304216
0.0007364158301
-0.000103663935
0.000109114795
-0.001039493502
-0.001250785683
-0.0001283250471
0.0004726083008
8.442072394e-05
-1.160691045e-05
2.337644441e-05
1.725067185e-05
-0.0001130615842
-0.0002073733853
-2.67610483e-05
-0.0004253104123
0.0006968193893
-0.0001847676833
0.001750181811
0.0004227432101
-0.0004529164187
-0.001373865587
-0.0014846965
0.0004932456829
0.002130182984
-0.0005207028702
0.003134883416
0.0005460703834
-0.0005600583815
-0.002836966419
-0.002906842043
0.0005745403673
0.003380490942
-0.0005159603348
0.000303204946
-0.0002891826365
-0.003688814256
-0.00362556678
0.0002645201716
0.003677251117
0.0002076809513
-0.00367726141
0.0001621462033
0.001843639998
-8.675241243e-05
-7.539379083e-05
0.00183361112
-7.539379084e-05
0.001813558021
-0.001813558021
7.539379084e-05
1.85804479e-05
-0.001822737573
0.0009101163412
0.0009126212322
2.188936328e-06
0.0009126212322
-2.188936331e-06
-0.0009126212322
-2.189003404e-06
0.0009051042982
-0.0009051042311
2.188936325e-06
-7.231772232e-05
0.001843639998
7.231772312e-05
-0.0001064047455
0.001843639998
0.0001064047455
-0.001843639998
0.001813558021
-0.001813558021
-0.0001064047455
0.003652469243
0.0003211879155
0.003060907463
-0.0002953266332
0.000311339015
-0.003313351769
-0.003377749421
-0.0003445416402
0.002763386644
0.0002825005795
0.00171360733
-0.0001688925253
0.0001780984632
-0.002077032949
-0.002329107111
-0.0002089038446
0.001360878056
0.0001592620129
0.0004588626592
-6.833231208e-05
8.037859222e-05
-0.0007207777916
-0.0009564816497
-9.330823229e-05
0.0002588877629
5.882405583e-05
-1.449674854e-06
0
3.037467485e-06
-2.012129137e-05
-8.361482847e-05
-8.479497898e-06
-0.000191684689
0.0003852792613
-9.092423204e-05
0.001263619426
0.0002546715952
-0.0003013207956
-0.0009329202057
-0.001292051219
0.0003867272163
0.001613933766
-0.0003682273836
0.002640636184
0.0004272831918
-0.0004668610455
-0.002315814649
-0.002755601045
0.0005262627099
0.002933343215
-0.0004564643549
0.003559099397
0.0003182405799
-0.0003234917632
-0.003395206348
-0.0036717184
0.0003147981601
0.003680340697
-0.0002616869678
0.003846828101
9.036722245e-05
-8.338478556e-05
-0.003817000938
-0.00379758834
7.124998708e-05
0.003860034225
-3.148634653e-05
0.003824134448
-0.0001040614391
0.0001096436213
-0.003849723374
-0.00379758834
-0.0001105481794
4.959281507e-05
0.003778514951
0.0001526758207
0.0034578529
-0.000226301735
0.0002464603465
-0.003600851266
-0.003780739863
-0.0002760657085
0.003274957272
0.0002585689933
0.002505075096
-0.0002081055921
0.0002322624853
-0.002794195321
-0.00323299167
-0.0002764539644
0.002192863016
0.0002090702057
0.001212754868
-0.0001182859952
0.0001325118332
-0.001536303009
-0.001974337042
-0.0001580499806
0.0009069349779
0.000109422879
0.0002034321618
-3.599775512e-05
4.525146978e-05
-0.000392002066
-0.0006399783858
-6.165194034e-05
7.291748761e-05
2.538732203e-05
0
0
0
0
-7.119285737e-06
-1.412195692e-07
-8.696447072e-06
6.618483525e-05
-1.286440913e-05
0.0005608050462
8.153581712e-05
-0.0001192774121
-0.0003490636834
-0.0007876968551
0.0002075728934
0.0008071046297
-0.0001671344465
0.001643492057
0.0002278032928
-0.000280389025
-0.00135964259
-0.002108418509
0.0003820328196
0.001918491863
-0.0002957922513
0.002611572648
0.0002312985764
-0.0002615302331
-0.002408555397
-0.003214080623
0.0003059381729
0.002781793967
-0.0002283754427
0.003087245998
9.642999781e-05
-9.900210323e-05
-0.003019385217
-0.003713328624
9.560322055e-05
0.003122296539
-5.362341371e-05
0.003037346127
-5.149056623e-05
6.681264559e-05
-0.003097002945
-0.003762385311
-9.43791803e-05
0.002946417389
9.79136578e-05
0.002490601042
-0.0001260300015
0.0001519775406
-0.002671927315
-0.003440240725
-0.0002032131144
0.002283034663
0.0001559454074
0.001547139928
-0.0001111895711
0.0001344257568
-0.001805745959
-0.002584309908
-0.0001833671847
0.001284276865
0.0001203701658
0.0005496865813
-5.661750318e-05
7.225018679e-05
-0.0007771520445
-0.001357041259
-0.000103358573
0.0003511415536
5.55165771e-05
1.215443619e-05
-3.775999628e-06
9.580630356e-06
-7.46178564e-05
-0.0003029973584
-2.65498051e-05
0
1.93166437e-06
0
0
0
0
0
0
0
0
0
5.245837571e-05
1.814364928e-06
-9.741510713e-06
-9.990594986e-06
-0.0002243267894
5.00537571e-05
0.0001339113206
-2.478973939e-05
0.000546491976
5.370311785e-05
-8.815227429e-05
-0.0003884100375
-0.001093915424
0.0001768908423
0.0007144946354
-0.0001064272127
0.001202831383
9.321950732e-05
-0.0001267733134
-0.001049509125
-0.002075788584
0.0001976075737
0.001339163041
-0.000120395246
0.001608599495
5.852174623e-05
-7.129012633e-05
-0.001544742119
-0.002683766904
9.080698276e-05
0.001644494228
-4.939355021e-05
0.001583176469
-6.173182335e-06
1.367958637e-05
-0.001631217259
-0.002766776482
-3.687430288e-05
0.001509356045
3.026319433e-05
0.001158047883
-4.177896895e-05
5.8712285e-05
-0.001293656154
-0.002343502205
-0.0001013049316
0.001009202366
6.096219001e-05
0.000533553236
-3.451876155e-05
5.069197238e-05
-0.0006913760961
-0.001517987467
-8.929904149e-05
0.0003846800836
4.318045578e-05
5.858562075e-05
-6.202840672e-06
1.537086316e-05
-0.0001403741895
-0.0005893811359
-4.148676439e-05
1.264051001e-05
7.042423495e-06
0
0
0
0
-2.807188637e-05
-8.100451921e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.024496799e-05
0
-1.411107942e-06
-6.77944713e-07
-0.000217238794
2.745622318e-05
3.096558159e-05
-4.840253583e-06
0.0001597299143
6.114503384e-06
-1.870757629e-05
-0.0001102442422
-0.0007430919215
6.314971783e-05
0.0002096847364
-2.150523833e-05
0.0003256650886
9.609766359e-06
-1.937953557e-05
-0.0002956504682
-0.001172379695
4.490112111e-05
0.0003442939072
-1.567441115e-05
0.0003251427051
1.153743928e-06
-1.528600024e-06
-0.0003439254015
-0.001254284451
-1.445843039e-06
0.0002953462537
2.633278148e-06
0.000162126343
-3.542745054e-06
9.010961152e-06
-0.0002109936331
-0.0009633750442
-2.794022309e-05
0.000113508812
8.77483337e-06
1.194709786e-05
-1.686833027e-07
3.083924958e-06
-3.391818282e-05
-0.0004598311345
-2.087424203e-05
1.227605524e-06
1.059490008e-06
0
0
0
0
-5.349375001e-05
-1.131041828e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.556120269e-05
4.54032626e-07
0
0
0
0
0
0
-0.0001247047707
3.01162203e-06
0
0
0
0
0
0
-0.0001564235733
4.813517213e-07
0
0
0
0
0
0
-7.609706193e-05
-5.853840374e-07
0
0
0
0
0
0
-2.410161795e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.092593795e-05
0.0007047041507
0.0007032191541
-0.001398970258
0.0006993823615
-1.163749762e-05
0.0007002994562
-2.303059294e-05
-0.00139884143
0.0001576553951
0.001407785884
-0.0007035907879
-0.0007031452806
7.134403183e-05
-7.141203807e-05
0.0007031412349
-7.087970998e-05
0.0007091844916
7.095189164e-05
-0.0001480784091
0.0001550792875
-0.000682424023
-0.0006810683489
0.001366760087
-0.0006841023966
-7.918141689e-05
-0.0006769115975
-7.464308488e-05
-0.0001630359133
0.001365029618
0.0007409097196
-4.36943327e-06
-0.0007409072273
0.0007347756783
-4.374721659e-06
-0.0007347739153
4.372958623e-06
-2.244250039e-05
-0.001471896372
0.000734839819
0.0007372088604
7.942513097e-05
0.001483117809
-0.0007430515137
-0.0007405195082
7.416926273e-05
6.983574874e-05
-6.968703103e-05
0.0007404023457
-6.944496298e-05
0.0007473680258
6.952257237e-05
-7.074122401e-05
0.0007122592674
-7.052644683e-05
0.0007186860855
7.059108558e-05
-7.762514034e-05
0.001434796162
-0.0007188137784
-0.0007162677232
-7.761044188e-05
-4.475533239e-06
-0.0007819404123
-4.483285385e-06
-0.0007753623377
4.481027237e-06
-2.288887085e-05
-0.001552849572
0.0007752872136
0.0007778674605
0.0001504229214
0.001555097818
-0.0007792508611
-0.0007764909548
6.83173577e-05
-0.0007766441463
-6.802370786e-05
0.0007763504964
-6.653712954e-05
-0.0007843015353
0.0007831650308
6.767363406e-05
-6.929099306e-05
0.0007499647156
-7.025061569e-05
0.0007574369884
6.974918044e-05
-0.0001506070237
0.001508497725
-0.0007569989573
-0.0007527378805
-4.643337519e-06
-0.0008218467676
-4.579920782e-06
-0.000814943445
4.575673672e-06
-2.295526971e-05
-0.001632056839
0.0008148635835
0.0008172935966
-0.001633589331
0.0001486838709
0.001632797403
-0.0001368748859
0.0001368611756
-0.00163357562
-0.0001363566955
-0.001643511385
-0.0001382257012
-0.000788037233
-0.0007905083388
7.154911531e-05
0.001585021255
-0.0007937650008
-0.0001381277275
-0.0007913542279
-0.0001494828442
0.001584485254
-4.953178385e-06
-0.0008621384104
-5.046804883e-06
-0.0008554970208
4.96250231e-06
-1.303811484e-05
-0.0008554009493
1.295398512e-05
0.0008554850791
-0.0004304692538
1.266895637e-05
-1.293377741e-05
1.372658789e-05
-0.0004312620643
-0.0004313173908
-1.238856589e-05
2.971714254e-05
0.0008589988301
-2.906945452e-05
-0.0008564802895
0.0008563773842
2.982004779e-05
2.727171577e-05
-0.0004293767306
0.001689373408
-0.001689291924
-0.0001464814626
-0.0008456526599
-0.000110858635
0.001689169282
-0.0001127201808
0.001716178087
0.0001122742671
-0.0001368887597
-0.001652481916
0.001661402904
-0.001662326769
-0.0001359648952
0.00166109485
-0.0001460569277
-2.188889537e-06
-0.000903437337
-5.285405937e-06
-0.0008358252099
2.188976222e-06
-1.499381814e-05
-0.0008319007187
1.071043189e-05
0.0008361841049
0.0008818148063
-0.0008884452262
-1.115773383e-06
-0.0004659869758
-2.601667959e-05
0.0009216263095
-2.422512034e-05
0.0009034435139
2.423584029e-05
-1.284217385e-05
0.0004327843211
-9.144182209e-06
0.0004335578889
9.841064099e-06
-2.071612197e-05
0.0008631257179
1.084910414e-05
1.163918962e-05
-0.0004329234506
-0.0004319744391
8.36796898e-05
0.001803529143
-8.367968978e-05
0.001748976787
7.9395268e-05
-0.0008708185263
-0.0008738738388
1.549560639e-05
-1.059090162e-05
0.0008769101015
0.0001453855217
0.001758067281
-0.001758179358
-0.0001452734455
0.0001158007388
-0.0001131990283
0.001755722792
-0.0001177649485
0.00177236147
0.000114426234
-0.0001132644772
0.001724454055
0.001748770151
0.0001160580163
0.001750337271
0.0001454972038
-0.001750448953
-6.96940129e-07
-0.0006726401652
-0.001345220534
2.126637081e-05
-0.001322599032
5.627511309e-05
0.001315007226
-0.0004104901831
0.0003199477604
-2.695393582e-06
9.323781633e-05
-4.001039438e-05
-1.756044208e-05
-0.0003529193467
-0.0004064074735
0.0003663970791
1.216679876e-05
-1.042131402e-05
0.001249660885
0.001289785731
1.066471093e-05
-1.312779593e-05
5.446720814e-05
-0.001282367485
-0.0003303131561
0.0004271737563
6.309709277e-05
-0.000159957693
4.554454396e-05
-5.590993973e-05
-0.00133475277
0.001335895353
0.0001671171148
-0.0001645990651
-0.001339682818
0.0001695291131
-0.0006804089631
-0.0006739813727
0.000145842587
-0.0001459679086
0.001250323124
0.001321120261
0.0001593315894
0.0001920757988
-0.001311683252
-0.0003471283283
2.991517992e-05
-2.733897285e-05
2.818995643e-05
-0.0003479793119
-2.701496097e-05
-0.0003484618403
-6.942272744e-05
7.072070957e-05
-0.0006873762185
0.0006873911918
-0.0003449788505
-6.214834941e-05
-0.0003496867194
-6.113140375e-05
0.0006839705852
0.001411216477
0.0002003189199
-0.001410980894
0.00138338642
-0.0013855082
-0.0002015150247
-0.0001683478692
0.001386910007
-0.002779263321
0.0004841713137
0.002776274597
-0.0004423031462
0.0004394606044
-0.001393034359
-0.000435951817
-0.001405677287
-0.0004377098329
0.000447385491
-0.001353243772
0.002734084069
-0.001360660247
0.002732803544
-0.0001683468615
0.001480942568
0.00147189702
-0.002914668633
0.001452394995
0.001462554765
-0.002904609226
-3.386894068e-05
-0.00145244246
3.385402829e-05
-6.748870179e-05
6.747303096e-05
0.001452410666
6.741521112e-05
0.001480895263
-6.736790702e-05
-6.755160469e-05
6.747404743e-05
0.00141581739
0.001443187376
-6.75733414e-05
-3.387993329e-05
-0.001443218918
-0.000362120801
3.145214938e-05
0.0003623751389
-3.043091628e-05
3.02300554e-05
-3.036532665e-05
-2.773444949e-05
2.74986203e-05
0.000356493624
-2.791701441e-05
-2.857402871e-05
0.0003565994504
0.001489895622
0.0001983832165
-0.001490365878
0.001462296968
-0.001462615474
-0.0001990342626
-0.0001649067436
0.001463318384
-0.0007329871052
-0.002932141068
0.0004777481074
0.002931082232
-0.0004304752437
0.000432011638
-0.001471380495
-0.0004277160648
-0.001481248615
-0.0004331855751
-0.001433143363
0.002893089562
-0.001442521936
0.002892141478
-0.000167944607
0.001562131828
0.001552621234
-0.00307500717
0.001533065501
0.001542451727
-0.003069637292
-3.38830037e-05
-0.001533201184
3.38646368e-05
-6.74075204e-05
6.7312802e-05
0.00153316022
6.731846904e-05
0.001562082542
-6.726918348e-05
6.753619292e-05
0.001490764573
0.001522564412
-6.74971402e-05
-3.396966311e-05
-0.001522532932
4.492093715e-06
-4.493630181e-06
-0.0007626789922
-0.0007548067582
4.497187847e-06
-0.001512102055
0.0007547344742
0.0007573095928
-0.0007598970861
6.53183749e-06
0.0003802409679
-3.841659217e-06
3.766627973e-06
-0.0007598220548
-3.848206463e-06
-0.0007626826363
-3.843478313e-06
-0.000743338488
3.913985146e-06
0.0007467368288
-0.0007466691927
-3.911114446e-06
0.0003738150214
-6.549552146e-06
0.000373053363
-0.0003837588224
2.884712896e-05
-2.783095974e-05
2.974377264e-05
-0.0003856716353
-2.689581315e-05
-0.0003849816839
-3.050612871e-05
2.932800303e-05
0.0003742440621
-3.176802509e-05
-3.15279511e-05
0.0003751327653
0.001564466323
0.0001965824961
-0.001565136615
0.001536384726
-0.001536470994
-0.0001967967763
-0.0001627035346
0.00153697494
-0.00308187687
0.0004723010191
0.003076045676
-0.0004259152114
0.0004250832085
-0.001544660141
-0.00042658784
-0.001554022773
-0.0004254654465
-0.001506559949
0.003046767282
-0.001520464508
0.003043914733
-0.0001682083172
0.001641825745
0.001632034801
-0.003233495959
0.001611399877
0.001621945441
-0.003231675895
-3.385854947e-05
-0.001611249859
3.390697844e-05
-6.730256682e-05
6.735337056e-05
0.001611349074
6.72919762e-05
0.001641844754
-6.731098542e-05
6.736819599e-05
0.001572248823
0.001602309722
-6.732542845e-05
-3.388209439e-05
-0.001602359547
4.520653689e-06
-4.524610504e-06
-0.0008025727647
-0.0007952007058
4.531331727e-06
-0.001592731195
0.0007951227483
0.0007977034665
4.026648356e-06
-0.0003997160939
-4.012569119e-06
-3.760106355e-06
3.690338687e-06
-0.0008001467019
0.0003997965289
0.0004004199407
-3.830338258e-06
-0.0008025792455
0.0004010498701
0.0004015996073
-3.677985536e-06
3.679404171e-06
-0.000784740718
0.0007873992522
-0.0007873929391
-3.684298635e-06
-6.44351754e-06
0.000393390636
-0.0008031487843
5.262794894e-05
0.0008032389483
-4.931814256e-05
4.897953214e-05
-0.0004011254165
-4.966998536e-05
-0.0004011705362
2.6580775e-05
-2.66399663e-05
0.0003942400442
-2.595820871e-05
0.0003950762211
2.627587238e-05
-5.267879589e-05
0.0007910715986
-0.0003949620743
-0.0003956889583
0.001722725406
-7.842685958e-05
-0.001722635161
0.001692080651
-0.001692070437
7.835427858e-05
-0.003393987703
0.001692059997
0.001701941704
-3.379590536e-05
0.0008467777485
-0.001692130376
3.40076109e-05
-6.729985489e-05
6.728979463e-05
0.001692090711
6.718597219e-05
0.001722735185
-6.719575188e-05
6.727247055e-05
0.001652321897
0.001682229616
-6.723780809e-05
-3.436947449e-05
-0.001682268279
0.0008399731956
4.831484222e-06
-4.836692824e-06
-0.0008428096021
-0.00083459834
4.768916285e-06
-0.001670875815
0.0008345914543
0.0008360031402
9.670680548e-06
1.315374051e-05
2.859338215e-06
-0.0004199165602
-3.588068525e-06
2.733130167e-06
-0.000839535627
0.0004195614365
0.0004207276082
-2.132421404e-06
-1.354126408e-06
-1.359346829e-06
-0.0004218016174
0.000421804712
1.35625229e-06
-3.312523765e-06
3.556050656e-06
-0.0008243549946
0.0004116339646
0.0004124775031
-0.0008276271399
-3.297610606e-06
0.0004134960445
0.0004141161823
-3.766664625e-06
4.031503958e-06
-0.0004141036113
1.759811344e-05
-1.651422551e-05
0.0004225245596
-0.0004246022258
0.0004232530718
1.894726746e-05
1.730426649e-05
0.0008343714083
-0.0008343433979
-5.110731142e-05
-4.152491416e-05
0.0008343650675
-4.09370119e-05
0.0008418256259
4.101010439e-05
-4.848298752e-05
4.833306846e-05
-0.0008252576246
0.0008287719851
-0.0008290129362
-4.824203645e-05
0.0008283208218
-5.128234362e-05
0.001803529143
-7.539379085e-05
-0.001803529143
0.00178478235
-0.001784867439
7.84324968e-05
-0.003615826168
0.001787772971
0.001846030331
-3.44022142e-05
0.0008889994034
-0.001785183551
4.614794036e-05
-6.718475212e-05
6.685947372e-05
0.001785107629
6.403113566e-05
0.001803529143
-6.403113565e-05
6.718279527e-05
0.001731811229
0.001763566573
-6.718143948e-05
0.0008808120134
-3.382861659e-05
-0.001763644748
5.167467191e-06
-5.086150221e-06
-0.0008821791742
-0.0008743362802
5.169911112e-06
-0.0008743272423
1.291855842e-05
0.0008743300919
-0.0004399328137
5.697814544e-06
-4.895251508e-06
5.185329253e-06
-0.0004402228915
-4.160379928e-06
-0.0004403122256
-4.484593058e-06
4.846996003e-06
-0.0004302619256
0.0004304109565
-0.0004307879278
-4.107621694e-06
-5.208516876e-06
0.001883750853
-1.550581174e-05
1.550581173e-05
-0.001883750853
0.001853668876
-0.001853668876
-1.550581172e-05
-0.001853668876
1.858044788e-05
0.001853668876
0.001853668876
-0.001853668876
-6.095536431e-05
-2.68683409e-05
0.001853668876
-2.68683409e-05
0.001883750853
2.68683409e-05
-0.000905953438
-2.33793759e-05
0.0009051076936
-0.0009126214239
-2.337631683e-05
0.0009126214486
2.337629204e-05
-6.095536119e-05
0.001822737582
2.905725448e-05
3.189809787e-05
-0.0009126212322
-0.0009101163412
-9.667120701e-06
-0.0006926379826
0.0003464477142
0.000346948093
-7.116312435e-06
7.192388904e-06
-0.0003470095802
5.250023257e-06
-0.0003431885043
-6.638196727e-06
-7.826286828e-06
7.63662559e-06
-0.000352345628
6.47559178e-06
-0.0003518341944
-6.763787254e-06
9.121762697e-06
-0.0007036112627
0.0003516055848
0.0003527565837
0.0006904516587
-3.023431964e-06
-0.0006827140893
2.670152595e-06
-8.861171697e-06
0.0006966426778
0.000692055693
-6.128298997e-06
1.133426788e-05
0.0003449016623
-6.513900825e-06
-0.0006879801042
9.031120722e-06
0.0003448912993
8.114197772e-06
-0.0006871578114
-0.0003552334759
2.8106457e-05
0.0003552956756
-2.713833098e-05
2.693302367e-05
-2.696177321e-05
-0.0003479729163
0.0003471602663
-0.0003468148298
-2.730720975e-05
-2.863761671e-05
7.202022341e-05
-7.146979578e-05
0.0006934580037
0.0006983599852
7.121961709e-05
0.001393665434
-0.0006987544081
-0.0006968786455
0.0006965960159
-6.148271714e-05
-0.0003473754004
6.473532897e-05
-6.465365315e-05
0.0006965143401
6.50743187e-05
0.0006933449151
6.314421052e-05
-6.234156271e-05
0.0007096587892
-0.0003553922351
-0.0003550692019
0.0007051507185
6.315700988e-05
-0.0003537280173
-0.0003514355006
3.037779806e-05
-2.96789327e-05
0.0003516031139
6.777731945e-06
0.0003676311421
-0.0007346419665
-6.782240033e-06
-1.586644756e-06
1.585373601e-06
0.0007347769494
0.0007409110042
-1.651696438e-06
-0.000724613511
-1.523515729e-06
1.589715418e-06
0.0007245473113
-0.000732542274
0.000732474869
-1.519239761e-06
0.0003658997088
7.039732383e-06
-0.0007324102705
-0.001462758608
0.0007304350469
0.0007325387667
-4.376232195e-06
-0.0007325407635
-1.135362913e-05
0.0007274568669
4.51362645e-06
7.170010493e-06
-9.173367504e-06
-0.0007275973971
0.0003630377227
0.0003645719677
-5.910973622e-06
5.747024828e-06
-0.0003645174352
6.019611078e-06
-0.0003617000571
-5.987117893e-06
-7.753205906e-06
7.883836496e-06
-0.0003699505965
8.39776168e-06
-0.0003694641542
-8.206417925e-06
4.614611014e-06
-0.0003695817595
-4.607085814e-06
0.0003695742343
-9.950618307e-06
-0.0007091477729
0.0003545251763
0.000354933822
-7.478342786e-06
7.649017305e-06
-0.0003549259645
-0.0003525559284
-7.835367378e-06
6.189565585e-06
-0.0003614761973
6.433461112e-06
-0.0003600578835
-6.329087596e-06
9.278884972e-06
-0.0007207970592
0.0003600065378
0.0003610397492
-0.0003723433187
2.826206429e-05
0.000373057456
-2.837423552e-05
2.744328535e-05
-3.137127298e-05
0.0003667991492
-3.150541643e-05
-3.245739552e-05
0.0003667923464
7.024444033e-05
-7.008861352e-05
0.0007314879898
0.0007374694725
6.985297621e-05
0.0007369492378
7.848971452e-05
-0.0007360138213
-3.070430947e-05
0.0003679113585
3.170088692e-05
-3.187979039e-05
0.0003667508716
3.150512378e-05
-0.000366376205
3.164691087e-05
0.0003659618755
-0.0003660008504
-3.160793606e-05
6.10577616e-05
-6.124387917e-05
0.0007475565548
-0.0003737109886
-0.0003736594487
0.0007451691754
6.096126413e-05
-0.0003730497638
-0.0003720229141
2.818153493e-05
-2.859486096e-05
0.0003717850152
-2.932478079e-05
0.0003579442911
2.937001769e-05
6.241768518e-05
-6.207870123e-05
0.0007151418359
-0.000357893919
-0.0003575869009
0.0007125853769
-0.0003566446974
-0.0003558645571
0.0003644994507
3.161400074e-05
-0.0003644665406
0.0003624239902
3.083067839e-05
-0.0003618034328
-3.145123577e-05
3.050527443e-05
-3.11598545e-05
0.0003622212208
0.000720262475
-0.0007192029977
-7.868461763e-05
-7.045429513e-05
0.0007208798835
0.0007277546304
7.031316896e-05
-0.0007797992658
6.740907762e-06
0.000389950676
-3.755634189e-06
3.760048814e-06
-0.0007798036804
-0.0007818721498
-3.921699649e-06
-0.0007657600111
0.0007679842659
-0.0007679854584
-3.920507183e-06
-7.016575793e-06
0.0003840072415
-0.001542390579
0.0007697716743
0.0007722770359
-4.48579089e-06
-0.0007722079145
-0.0007656849589
4.418892705e-06
0.0003835222961
-4.97829828e-06
6.283446304e-06
-6.369100211e-06
0.00038360795
6.161852274e-06
0.0003828995282
4.657715577e-06
-4.551022421e-06
0.0003909364201
-0.0003902708882
0.0003901636036
4.76500025e-06
4.240358591e-06
0.0003737402012
4.435317171e-06
7.136173272e-06
-0.0003735448871
-0.0003705692115
-7.618902312e-06
5.788452689e-06
0.0003822580101
-0.000381123363
0.0003815799107
5.331905003e-06
4.52082765e-06
2.810338828e-05
0.0007828605859
-0.0003925264016
-0.0003914659257
2.682685998e-05
2.801416105e-05
-2.67191984e-05
0.0003919240513
0.0003923001165
2.630560282e-05
-2.724850539e-05
-0.0003839080653
0.0003834910828
-0.0003827781859
-2.796140229e-05
-2.810240384e-05
6.85970974e-05
-6.858963818e-05
0.0007676401757
0.0007736831855
6.839768271e-05
0.001546022093
-0.0007736360326
-0.0007720510859
0.0007694006308
-0.0003839833134
-5.706753879e-05
6.009039431e-05
-6.002574157e-05
0.0007693359781
6.01702803e-05
0.0007675334009
-6.475732494e-05
6.492979898e-05
-0.0007844740094
-0.0007772519832
-6.446637408e-05
-0.0003888728036
-5.647633327e-05
0.0007778509194
-3.078578205e-05
0.0003757972936
3.094580769e-05
6.092396761e-05
-6.068502082e-05
0.0007506887265
-0.0003757234999
-0.0003752041735
0.000750242176
-0.0003757109742
-0.0003748511134
6.012824288e-05
0.0007658875642
0.0007637490375
6.029438288e-05
-0.0003820754805
-0.0003818396969
2.871621482e-05
-2.886054562e-05
0.0003819241218
0.001521109517
-0.0007615642271
-0.0007589052918
-6.950162707e-05
0.0007587748882
0.0007659922516
6.869518071e-05
4.668471183e-06
-0.0004094631383
-4.856720796e-06
-3.79318478e-06
3.709059453e-06
-0.000819355183
0.0004093783247
0.0004100609836
-0.0008217781491
0.000410695324
0.0004108456909
-3.901780346e-06
-0.0008044120645
0.0004020792144
0.0004024042921
-0.0008058626299
-3.297403969e-06
0.0004023548473
0.0004029034062
-3.312117438e-06
3.478132556e-06
-0.0004028228206
-0.001621964485
0.000809402957
0.0008125096849
-4.58389485e-06
-0.000812514409
-0.000804479764
4.516453541e-06
0.000402126998
-4.351521784e-06
-0.0004022350327
5.430251414e-06
-5.144903838e-06
0.0004018416505
5.639877283e-06
0.0004015917582
7.803629507e-06
-7.483807822e-06
-0.0004103253225
8.1852293e-06
6.629816291e-06
-0.0004105152066
0.0003927507448
-3.975867482e-06
4.376732592e-06
-4.36110447e-06
0.0003927351167
0.0003917899368
5.923484848e-06
0.0004011159455
-0.0004007734284
0.0004004902477
6.206665521e-06
4.930511216e-06
-0.0004008802598
-0.0008202578818
5.182554858e-05
0.0008202519864
-4.841738132e-05
4.850342158e-05
-0.000820343922
-0.0008236125747
-4.9212989e-05
-0.0004033614914
-0.0004036308402
0.0008081079376
-0.0008076807227
-4.964020392e-05
-5.259841308e-05
0.0008083023779
-0.0004317572847
6.416428686e-06
-5.017214797e-06
4.736274592e-06
-0.0004314763445
-0.0004311069561
-0.0004224300894
-1.436949284e-06
0.0004225076918
-0.0004230457094
0.0004229636928
1.353103689e-06
4.799712932e-06
-0.0004224469005
-0.0008524157726
0.0008524227326
-1.304507484e-05
-4.972668566e-06
-0.0008524346808
-0.0008452386731
4.904689876e-06
0.0004220451622
-6.395167507e-06
-0.0004225175969
7.371067526e-06
-6.618337226e-06
7.954337778e-06
0.0004119103493
-5.493334743e-06
-0.0004122050627
7.005035658e-06
-6.524244222e-06
8.007524523e-06
-0.0004237654472
6.26610302e-06
5.612458151e-06
-0.0004225372605
5.123818516e-05
0.001707606416
-0.0008545040735
-0.0008529095775
4.690140795e-05
4.015811291e-05
-4.011713359e-05
0.0008527637336
-4.024286185e-05
0.0008582997349
4.015250963e-05
-4.130806743e-05
0.0008436577083
0.0008506574239
4.077334703e-05
0.0008503939572
5.086099458e-05
-0.0008500167666
0.0004222268919
-1.645161132e-05
1.605422449e-05
-1.614614726e-05
0.0004223188147
0.0004219986039
0.000466375009
-0.0004596578541
2.669725319e-06
-0.000450552766
-3.148455584e-07
0.0004513667016
-0.0009042667928
-4.653108751e-06
1.143641781e-06
1.011118185e-06
-3.415799239e-06
-0.0004404223599
0.0004402039233
-0.0004409538946
-0.0009713618793
0.0009729557974
-1.658773631e-05
-5.520022526e-06
-0.0009778472764
-0.0008841912585
5.250707586e-06
-1.0548864e-05
1.175124067e-05
-0.0008751420032
0.0008757437671
-0.0008782565434
-8.036087699e-06
-1.372019916e-05
0.0008735580578
0.0009068625846
-1.737971073e-05
9.568821184e-06
1.201818023e-05
0.0004557456583
-0.0004633579691
-1.285085045e-05
-1.284954605e-06
0.0004758151652
-0.0008718157243
1.831586656e-05
0.0008711307184
-1.340828752e-05
1.365687316e-05
-0.000435871895
-0.0004361924149
-0.0008743074684
-0.0001706157969
0.001407558498
0.001398105993
-0.002764698418
0.001377855178
0.001387622505
-0.002746068402
-3.466208946e-05
-0.001378031888
3.43738572e-05
-6.814443897e-05
6.815770281e-05
0.001377841914
0.001407765144
-6.775825086e-05
-6.690079595e-05
6.772789544e-05
0.001348939613
0.001376066484
-6.844703316e-05
-3.481514164e-05
-0.001376558344
-1.515423301e-05
0.0006892400253
1.564705861e-05
0.0006868507861
-0.001367931745
0.0006834150038
0.0006876961952
-0.001366103887
4.802594992e-06
-0.0006880109159
-5.927998834e-06
-2.993856245e-06
2.430069277e-06
0.0006839787907
2.46428396e-06
0.0006889472431
-2.171501735e-06
0.0006843092173
0.000683112533
-1.925030286e-05
5.195346951e-06
4.044041258e-06
0.0006827654659
-2.447758639e-06
2.488703218e-06
-0.0006898543776
-3.003917867e-05
3.602572977e-05
0.0003555221918
-2.025416906e-05
-2.145395459e-05
0.0003503106201
-1.136110366e-05
0.0007227118053
0.000720670048
-0.001433133361
0.000715714453
0.0007174258941
-0.00143319013
6.778067996e-06
-0.0007157130936
-6.771935005e-06
-1.527321769e-06
1.526552881e-06
0.0007157152219
0.0007227128195
-1.524529898e-06
-1.59428316e-06
1.65983383e-06
0.0007063752392
0.0007140612023
-1.659967127e-06
6.784449144e-06
-0.0007141246417
0.003274021785
-0.001641223302
-0.001632461319
0.0001822707293
0.0001942365491
0.001612949135
-0.001612777674
-0.0001939279053
-0.0001605266557
0.001612695747
-0.0032330912
0.0004578458487
0.003198654818
-0.0004221999992
0.0004235102597
-0.001621478832
-0.0004228869894
-0.0004257715794
-0.001585781869
0.003194999775
-0.001594040479
0.003172142906
0.0008302460321
2.029880746e-05
-0.0004159678897
-0.0004148489931
-2.262858817e-05
0.0004155255784
-2.107470937e-05
0.0004171489063
2.153157014e-05
-2.015665108e-05
2.042520532e-05
-0.0004126929883
0.0004133579068
-0.0004130053484
-2.050920951e-05
-2.023323247e-05
0.0008719587463
-3.632810442e-05
3.628668626e-05
-0.0008719173282
0.0008677639342
-0.0008674806308
-3.61744241e-05
-2.37750444e-05
0.0008675066918
-0.001738470369
0.0001000294795
0.0017415668
-8.604351692e-05
8.444615005e-05
-0.0008691090678
-8.832742733e-05
-0.0008711275046
-4.010910481e-05
0.0008608179425
0.001731633738
-0.0008654224408
3.995594124e-05
4.450142887e-05
0.001732559533
6.529077734e-06
-0.0006996321361
-6.58890032e-06
-1.784037499e-06
1.65709729e-06
0.0006995093017
0.0007047039479
-1.59408034e-06
-0.0006892287565
2.093765132e-06
0.0006895992753
-0.0006963928645
0.0006964544259
-1.845598821e-06
6.471701288e-06
-0.0006965111507
0.001388590217
-0.001388015568
-1.342380263e-05
0.0006939836574
0.0006922112249
0.0003502935143
-4.356853912e-06
-0.0003471307339
-4.361497046e-06
-2.777820256e-06
0.0003574328316
0.0003574851982
-3.923391871e-06
9.801896474e-06
-0.0003481584793
7.272820211e-06
4.494856696e-06
-0.0003474907893
0.0006841121178
6.511892675e-05
7.057303035e-05
-0.0006838092463
7.842693072e-05
-0.0006813646774
-7.94862763e-05
6.607339422e-05
0.0006916810374
-0.0006896789862
0.0006879921358
6.77602447e-05
-0.0003454048969
6.33523681e-05
0.001366218359
-0.0006844160441
-0.0006863259099
-7.905817628e-05
0.00068435903
0.0006898496188
7.333725292e-05
-0.0004125454945
2.110181587e-05
-2.079065419e-05
2.123246791e-05
-0.0004129873082
-0.0004132927419
-2.439126766e-05
2.569422011e-05
-0.0004110950496
0.0004098268759
-0.0004100700195
-2.414812407e-05
-2.343851178e-05
0.0004093469891
-0.0001368179495
-0.0008056329897
0.0001366282948
-0.0008077258491
0.001622917715
-0.001622874489
0.001623011749
-5.515916235e-05
0.0008137816877
5.541652255e-05
-0.0001243312826
-0.0008134511511
-0.0008103431937
6.092862663e-05
6.432251201e-05
6.448784963e-05
-0.0008059022463
-6.421859298e-05
0.0001242200104
-0.0001242408508
-0.0008228871794
-0.0008206033651
-0.0008178533564
-0.0008158335362
-5.507513808e-05
0.0008156178892
-5.594952909e-05
0.0007938645018
5.60484742e-05
-6.479693357e-05
6.506850374e-05
-0.0007940365709
-0.0007876240119
-6.517054612e-05
0.0008035289219
6.44244259e-05
-0.0008034654981
0.0007961433338
-0.0007960965583
-6.484370914e-05
-5.608252931e-05
0.0007959505719
-0.001594579181
0.001594459593
-0.0001372808738
-0.0007992827005
-0.0008026699543
-1.563636047e-05
1.725706911e-05
-0.0004309931713
0.0004292252789
-0.0004300524669
-1.480917247e-05
-1.41821637e-05
0.0004283127759
1.343959837e-05
-1.416162617e-05
0.0004327498616
-0.000424746174
0.0004296160169
0.0008657261607
-0.0004335160255
-0.0004333116755
-8.425718532e-06
0.0004336796276
-8.852424907e-06
0.0004327988685
8.96180139e-06
-0.0006441802415
1.925569394e-05
-1.563601563e-05
0.0006405605632
-0.0006834037104
0.0006679991232
-2.403506624e-06
0.0006457289627
2.514655618e-05
-0.0006549245032
8.971970037e-07
-0.0006625815736
0.0006714887958
-9.80441921e-06
3.072656138e-05
-3.128145909e-05
-0.0006828488127
1.119836797e-05
-0.000655967664
5.890546074e-07
-7.768988963e-06
0.0003491347055
3.525287625e-06
-0.0007146114975
-0.0006908592332
2.262123242e-05
-0.0006702023463
6.247747067e-06
0.0006648517963
-0.0006820143195
6.845684805e-05
0.000680932424
-7.487445333e-05
7.455529251e-05
-0.0006816951586
-0.0006852768672
-0.0006448816201
5.596952274e-05
-5.457221392e-05
0.0006434843113
-0.0006764905353
0.0006838096396
7.75838884e-05
0.0006819753165
8.25947552e-05
-0.0006826498716
0.000647532603
4.960374135e-05
6.421931357e-05
-0.0006627151029
5.385936304e-05
-0.0006417942126
-5.694677054e-05
2.795472039e-05
-2.819015849e-05
0.0003454948655
0.0003462563409
2.52304276e-05
-3.007229785e-05
0.0006892469957
-0.0003447754005
-0.0003442387377
0.0003552110708
2.654944229e-05
2.91456378e-05
-0.0003470154735
7.249507514e-05
-0.0003509758903
-0.0003437924685
-2.888607412e-05
-3.621686066e-05
2.314403182e-05
0.0003494048948
-0.0003420750845
0.0003450162701
2.020284625e-05
1.985606114e-05
-0.0006903799351
0.0006881793396
-0.0003450559748
-2.902320523e-05
-3.711367244e-05
0.0003412000728
3.010802548e-05
-2.691750793e-05
2.72215157e-05
0.0003597382047
-2.693697506e-05
-2.827865875e-05
0.0003599084077
-0.0003596285775
2.845793828e-05
0.000359432895
-2.747806991e-05
2.776156794e-05
-2.690790637e-05
2.606550043e-05
0.0003785446683
-2.831257463e-05
-2.81619701e-05
0.0003793654468
-0.0003807495595
2.896353777e-05
0.0003795229641
-2.61633129e-05
2.790958224e-05
-5.120773585e-05
2.599022213e-05
-0.0003992195104
2.621794504e-05
0.0008004344278
-0.0004007409802
0.0007998581101
0.0004016472005
-2.237194278e-05
2.675652106e-05
-2.557039238e-05
0.0004004610718
2.936785692e-05
0.0003998169907
2.505715772e-05
0.000402449732
-2.522895789e-05
-0.0004025350198
0.0004018687249
2.572345264e-05
2.558457089e-05
3.022045878e-05
0.0003982085589
-0.0003935073078
0.0003955279763
2.819979034e-05
2.816816813e-05
0.0007919685283
-0.0003961747484
-0.0003951829625
-2.603671083e-05
0.0003951313147
0.0003969848701
2.632773506e-05
-3.338055051e-06
-0.000834451845
3.268294469e-06
0.0004171771647
0.000417344441
-0.0008357118849
0.0004171185206
0.0004179884394
2.498851116e-06
-0.0004180118092
0.0008358629128
2.171983632e-06
-0.0008358591367
5.55903749e-07
-4.048758399e-07
5.554277579e-07
4.090322351e-07
-4.910281547e-07
0.0004211773481
-0.0008395314706
-0.0008396063558
-0.0008401851955
3.807753493e-05
0.0008402865321
-3.537933933e-05
1.834061232e-05
-0.0004214653839
1.877352983e-05
-3.478963045e-05
-0.0004213532251
-2.027261374e-05
0.0004179218503
0.0004192250603
1.889568225e-05
0.0008378863375
-0.0004195331598
-0.0004190651843
-7.354001525e-07
1.004403309e-06
-0.0004367319148
0.0004384169097
-0.0004381409441
-1.011365733e-06
-9.189408541e-08
0.0008763524673
3.008236902e-06
-0.0008766782916
-3.080963101e-07
-5.272642808e-07
0.000437838239
4.84318616e-07
-3.970143364e-07
0.0004376123527
-6.975639716e-07
7.853587138e-07
-0.0004411127819
-0.0004410358162
-7.821426798e-07
-0.0008811444482
0.0004408716
0.0004410096823
0.0008682807035
2.526040203e-06
-0.0008681986392
-4.486632803e-07
5.649590697e-08
0.0004335407265
7.618574022e-07
0.0004313029627
2.572853956e-07
0.0004353197702
-0.0008708717106
0.0004355828735
-0.0008708701274
-0.0004343334051
2.478844507e-06
-1.459297818e-06
1.9222779e-06
-0.0004347963852
-0.0004351877163
-6.401576027e-06
6.566686801e-06
-0.0003489646551
-0.0003470649554
-6.960270302e-06
-0.0006941571661
0.000347141954
0.0003467461394
-1.157960938e-05
9.374737428e-06
-0.0003481892677
0.0003490875076
-0.0003477903483
-1.287676866e-05
-1.440406043e-05
-0.0007002311849
0.0003493470131
0.0003501174016
6.231734664e-06
-0.0003500726566
-0.0003504429685
-6.241941756e-06
1.048413733e-05
0.000345563294
-8.121861756e-06
0.000344691823
-0.0006897034505
0.0006913264161
-0.0006858329173
3.238276514e-06
-0.0003502240724
-6.995775382e-06
1.126490299e-05
0.0003460157348
0.0003472141376
-4.603783581e-06
-8.564575636e-06
0.0003450440219
7.062870498e-06
-6.882796791e-06
0.0003446314251
0.0003491977403
5.109324401e-06
0.0003513551359
0.0003496696482
-6.382714245e-07
-0.0003483037977
-0.0003453546622
8.376797483e-06
-7.766813837e-06
7.163804067e-06
-0.0003447516524
-0.0003464640865
-8.418751841e-06
-0.0003456759885
8.777028174e-06
0.0003441816864
-0.0003437246214
-8.875816866e-06
-1.116803238e-05
0.0006893192796
-0.0006889915056
8.132234533e-06
0.0003441431532
0.0003444491346
-3.040670569e-05
2.96515115e-05
0.0003510683055
-2.978533861e-05
-3.090584916e-05
0.0003518162756
-0.000350425846
3.007200884e-05
0.0003498040002
-2.89640409e-05
2.876396845e-05
-0.0003502257735
-0.000349986209
-8.187932861e-06
7.564312659e-06
-0.0003667551657
-0.0003658834779
-6.290248933e-06
-5.08520272e-06
-4.648249654e-06
-0.0007311340929
0.000365624087
0.0003660700907
-0.000368948608
0.0003689488194
4.614399612e-06
8.511810534e-06
-0.0003688495758
-0.0003673868291
-8.440146255e-06
-6.9176936e-06
7.022842608e-06
-0.0003575782563
-0.0003549646743
-7.303510775e-06
-0.0007110730361
0.0003550562606
0.0003556011007
-0.0007172866101
0.0003580225705
0.0003587795426
6.604500849e-06
-0.0003586301585
-0.0003577466056
-6.81252526e-06
-2.458369601e-05
2.443834052e-05
0.0003700482643
-2.502406094e-05
-2.628987268e-05
0.0003702647922
-0.0003702564043
2.673321432e-05
0.0003695869936
-2.431331503e-05
2.457579149e-05
6.153865553e-05
0.0007378171497
-6.106872461e-05
-0.0003696379601
-0.0003686491205
0.0007352966753
3.028118794e-05
-0.0003681683027
-0.0003677506954
-2.942738409e-05
0.0003684182464
-0.0007350639537
6.715807256e-05
0.0007350251777
-6.425195003e-05
6.448467157e-05
-6.4091295e-05
-6.436797651e-05
6.507661372e-05
-0.0003664718851
0.0007334667028
-0.0003665991361
0.0007332990462
-0.0007450626235
6.671954978e-05
0.0007450606744
-6.38578293e-05
6.396438119e-05
-6.38187057e-05
-6.40119824e-05
-0.000740716242
0.0007434280003
-0.0007434756015
0.0007432839141
0.0003718462279
2.792593319e-05
6.087948279e-05
-0.0003719096159
-0.0003714842042
-0.0003704682695
-0.0003704372143
6.223114912e-05
0.0007189683377
-6.191606696e-05
-0.0003598999046
-0.0003593835153
0.0007165474426
-0.0003585202067
-0.000357874788
-2.930489476e-05
0.0003578989513
-0.0007165009295
6.785986015e-05
0.0007164203002
-6.499739717e-05
6.504391026e-05
-6.485605157e-05
-6.516034441e-05
6.527024019e-05
0.0007150254018
0.000714874826
-0.0007253356007
6.753261969e-05
0.0007252847949
-6.471989841e-05
6.433285436e-05
-0.0003625245665
-0.0003630419709
-6.479558627e-05
-0.0007210667169
0.0007237393574
-0.0007242020893
0.0007236232305
0.000362180619
2.977835472e-05
6.241877424e-05
-3.199941089e-05
-0.000362713564
-0.0003610772103
-0.0003603388145
-0.0003602251952
5.803200782e-06
-5.697035187e-06
0.0003862142875
-0.0003854101083
0.0003852313993
5.981909866e-06
4.722032061e-06
0.0003880778284
-4.445667731e-06
5.517382136e-06
-5.41066797e-06
0.0003879711142
0.0003870560197
4.954032848e-06
-4.93616286e-06
0.0003762961436
-0.0003757576352
0.0003756695456
5.042122436e-06
4.346676763e-06
0.0003775696044
-4.180997656e-06
4.779204144e-06
-4.765642673e-06
0.0003775560429
0.0003769239247
-2.729468781e-05
0.0003891229587
0.0003909671664
2.904270441e-05
0.000389687379
2.781982974e-05
-0.0003894038205
-0.0003872341542
2.854691835e-05
-2.83875311e-05
2.919318599e-05
-0.0003880398091
-0.0003890237085
-2.791103454e-05
3.795180755e-06
-3.788716308e-06
-0.000405959349
4.067370714e-06
3.617668461e-06
-0.0004059775044
0.0004091606227
-4.723892171e-06
-0.0004084183685
4.100812751e-06
-5.255156361e-06
6.88891601e-06
-7.194349513e-06
0.0003973363798
-0.0003966004653
0.0003972822297
6.207151623e-06
4.925608203e-06
-0.0003961516812
0.0003978237314
-5.56711464e-06
-0.0003978357989
7.278494507e-06
-7.099191505e-06
0.0003976444284
0.0003973930517
-2.461585856e-05
0.0004046904126
2.526009626e-05
-4.773518845e-05
-0.0004044901209
-0.0004037683822
2.410875403e-05
2.420421487e-05
-0.0004035353388
-2.420601796e-05
4.690781882e-05
0.0008147986618
-4.611802955e-05
-0.0004079229876
-0.0004076654635
0.0008108192324
-0.0004066472112
-0.0004049993908
-2.487457739e-05
0.0004051997379
-0.0008106118401
0.0008104181928
-4.943281163e-05
-4.908909136e-05
-0.0004085540443
2.657438754e-05
0.0004083237392
-2.747308546e-05
2.782027006e-05
-2.881594084e-05
0.0004050241794
-2.747642939e-05
-2.721608152e-05
0.0004046535593
-1.916030451e-06
2.017777426e-06
-0.0004272694065
0.0004281498276
-0.0004282300052
-1.835852791e-06
-1.944353794e-06
0.0008580939351
2.457413071e-06
-0.00085808823
9.279222343e-08
-1.824030062e-07
0.0004287771429
1.243047667e-08
0.000428147366
5.155255085e-07
0.0004312898221
-0.0008604430111
0.0004306600085
-0.0008603600969
0.0008464929293
2.314813988e-06
-0.0008466467377
7.276617163e-07
-4.909064271e-07
0.0004232104646
0.000422975716
-1.432314563e-07
0.000425787934
-0.0008484389742
0.0004245292907
-0.0008485935372
-0.0004254171848
3.499593387e-06
-2.366292593e-06
2.559515515e-06
-0.0004256104077
-0.0004266351345
-0.0004260745264
1.784312376e-05
0.0004259924619
-1.938683826e-05
1.894259841e-05
4.267818175e-06
-3.785006034e-06
-0.000415421277
4.750380505e-06
4.074868272e-06
-0.0004157960015
0.000416802712
-2.675653051e-06
-0.000417083505
3.380066589e-06
-2.822924466e-06
3.014123279e-05
0.0008520762887
-3.019527061e-05
-0.0004260823179
-0.000425939933
0.0008495310948
1.495729104e-05
-0.0004253889949
-0.0004248098512
-1.590941285e-05
0.0004252476401
-0.0008492866194
3.761445973e-05
0.0008491736722
-3.422473935e-05
3.446921468e-05
-3.378729794e-05
-3.474488255e-05
-0.0004215140828
0.0008466560156
-0.0004229817054
0.0008460526439
3.595845326e-06
-0.000888588966
0.0004437317454
0.0004442765905
-8.702802667e-08
1.758622856e-07
-0.0004442749953
-0.0004415727599
-4.424059071e-07
-3.16274874e-06
1.550143022e-06
-0.0004960068694
-0.0004449105839
-1.730318948e-07
-0.0009054548885
0.0004449050524
0.0004482714281
-0.0004358619132
1.634206011e-06
-3.489976077e-06
4.253708201e-06
-0.0004366256453
-0.0004277348263
-2.017968657e-05
-6.904854649e-06
6.634849733e-06
0.0004432946728
-5.262781207e-06
-3.994872553e-06
0.0004414839101
-0.0004416352279
9.259936036e-06
0.0004403039221
-6.990213996e-06
8.394171736e-06
-1.554707996e-05
-0.0004363235577
9.113548778e-06
0.0008701284454
-0.0004359734193
0.0008693375778
0.0004394964907
-1.141394322e-05
1.248665629e-05
-1.130711608e-05
0.0004383169505
0.0004373503147
-8.148465933e-06
-0.0004382512149
-0.0004380324013
4.698396892e-06
5.426216814e-06
-0.000436869601
-5.86921689e-06
-8.410951398e-06
0.0004394213519
-0.0004081498962
0.0004117287717
-2.675929195e-05
-2.593971845e-05
-0.0001621462033
0.003756604871
0.0001631842177
-0.00371736663
0.00371736663
-0.003717794241
-2.994366596e-05
-0.001853668876
2.994366595e-05
0.0001166975658
-6.403113566e-05
0.001853668876
0.001863697754
-5.266643017e-05
0.0001166975658
6.403113567e-05
0.001813558021
0.001843639998
-6.403113567e-05
-2.994366597e-05
-0.001843639998
-7.21885145e-06
0.001843639998
7.218851441e-06
-0.00183361112
0.00183361112
-5.029915114e-06
-0.00183361112
-0.00183361112
9.173160029e-06
0.001833611212
6.332559235e-06
-4.143803728e-06
6.514795568e-07
3.492324162e-06
-4.143803733e-06
-6.516603796e-07
0.0009059436984
0.0009126212322
6.514795619e-07
0.0009126216945
9.172697772e-06
-0.0009126212322
0.0002014471333
0.003756604871
-0.0002014471333
0.00371736663
9.504238782e-05
-0.001863697754
-0.001853668876
-7.23177221e-05
0.001853668876
-0.00371736663
0.0002923431459
0.003713237176
-0.0002468959758
0.0002468959758
-0.000246768954
-0.0001177649485
0.001813558021
0.003677251117
-0.00183361112
0.0001177649485
0.0001291310273
0.003677251117
-0.0008565216777
3.639483074e-05
0.0008568044044
-3.354010711e-05
3.339581362e-05
-3.299148299e-05
-3.39335363e-05
-0.0008528088809
0.0008550465309
-0.0008555842535
0.0008544564447
0.0008549559019
-0.0004275226061
1.3562703e-05
1.402888258e-05
2.919169614e-05
-0.0004270263491
-0.0004267861063
-0.001785136381
0.00011408249
0.001769147266
-0.000137860146
0.0001017005516
-9.504238782e-05
-9.276783231e-05
-0.001747985298
0.001762282564
-0.001753349845
0.001763683076
0.0008747301583
1.921951438e-05
7.344091583e-05
-0.0008736445205
-0.0008737509719
-0.0008727863017
-0.0008724797462
3.43935615e-05
-0.0006647682186
8.187272958e-06
-1.081658512e-06
3.950397626e-06
-0.0003529342764
0.0003344210512
-1.191154504e-05
0.0003255113098
1.336370496e-05
-0.0003271490557
1.847480707e-05
-0.0006965350891
0.0003347269158
0.0003379615204
1.905919338e-05
2.146330576e-05
-3.413752286e-05
-0.0003402600593
-2.119649156e-06
3.571532912e-05
4.721409838e-06
-2.896485312e-05
-0.0003670272406
-0.0003371342808
1.580840669e-05
-0.000347843419
1.273220265e-05
0.0003535860234
-0.0003488870768
3.290636075e-05
0.0003504168992
-3.433229129e-05
3.973086311e-05
-0.0003542856486
-0.0003540183162
-0.0006613336707
7.17885036e-05
-4.791251978e-05
-3.644745228e-05
-0.0003379282591
0.0003529764311
4.280013829e-05
0.000692092456
-4.957807641e-05
-0.0003519000864
-0.0003405415004
0.0003276178742
2.895698525e-05
3.589563818e-05
-0.0003307968741
7.740675408e-05
-3.418403105e-05
-4.774484107e-05
-3.00667083e-05
2.898363787e-05
0.0003610597924
0.0003615428972
-0.0003575236184
0.0003575772113
-2.800859161e-05
-2.796017911e-05
-3.072012516e-05
-0.0003811963513
3.047816702e-05
0.0003825260749
-0.0003835024274
0.0003820543793
0.0003853573583
-2.963682352e-05
3.192133031e-05
-3.00663994e-05
3.152632655e-05
2.698638847e-05
-2.512260821e-05
-0.0003887516463
-0.0003745493952
0.0003750057651
-3.268561064e-05
-3.245000854e-05
-3.767990033e-06
-0.0007951325157
3.768175861e-06
0.0003972932026
0.0003978391272
-0.0007976394806
0.0003984698266
0.0003990920027
4.112861683e-06
-0.0003990887799
0.0007977131844
1.76067982e-06
-0.0007976369474
1.000869971e-06
-9.271661827e-07
1.000090952e-06
9.274517662e-07
-9.277226064e-07
-0.0008001464163
-0.0008002183859
0.0007873913901
1.76898488e-06
-0.0007873893716
9.94932e-07
-9.964809216e-07
9.941378955e-07
9.982973592e-07
0.0007926263186
-0.0007899707179
0.0007899725343
-0.0007899689453
-0.0007899785989
0.0003955979963
-3.921103018e-06
-3.049862907e-06
-3.690363235e-06
0.0003960413594
0.0003966627718
0.0008276288999
2.030186762e-06
-0.0008276261979
6.377263826e-07
-6.359664158e-07
7.925737993e-07
6.341834637e-07
0.0008327968096
-0.0008303673902
0.0008303656072
-0.0008304419148
-0.0004147315741
-3.500266299e-06
-3.205468189e-06
0.0004148245295
0.0004154489353
0.0004160768665
0.0004167827694
-4.902851935e-06
-0.0004424564948
3.860146503e-06
0.0004419128348
-0.0004416303575
0.0004414382218
-2.176872708e-06
-0.0004411788686
3.513020805e-06
-3.705156426e-06
2.704663762e-06
3.608326664e-06
-3.15870765e-06
-0.0004403197212
-0.0004404058739
-1.201367508e-05
0.0009126221702
1.201319941e-05
-2.053570262e-05
2.05361783e-05
-0.0009126218995
-0.000906804598
-2.0541255e-05
3.823069858e-05
0.001843639998
-3.823069858e-05
-0.001833611404
0.001833611311
1.769508841e-05
1.48544742e-05
-0.00183361112
0.001833611122
-4.959281506e-05
2.621668984e-05
-4.959281508e-05
-2.736261153e-05
2.815057903e-05
0.0003547288409
0.0003543620245
6.381201487e-05
0.0006994235247
-6.341820956e-05
-0.0003505020563
-0.0003493152737
-0.00069961034
0.0006987687017
-0.0003499851601
-2.943825592e-05
-3.106542264e-05
-0.000697919241
6.919288954e-05
0.0006974597506
-6.672571897e-05
6.75751796e-05
-6.586789458e-05
-6.697047956e-05
6.645024471e-05
0.0006971190401
0.0006973958928
-0.0007048480231
6.834946537e-05
0.0007047230374
-6.553604012e-05
6.583873553e-05
-6.560854643e-05
-0.000703393849
0.0007035203279
-0.0007032901388
0.0007035277963
0.0003510202053
3.035548442e-05
6.222935458e-05
-0.0003511945726
-0.0003511679109
-0.0003523475103
-0.0003522351937
-2.66993992e-05
2.597537594e-05
0.0003719742485
0.0003725898978
-0.0003684450802
0.0003678119217
-3.118303777e-05
-2.979580194e-05
-3.836569753e-06
-0.0007753654262
3.840741207e-06
0.0007778703381
-0.000777946859
0.0003888683243
0.000777947317
1.703494192e-06
-0.0007779455618
9.945133938e-07
-9.940554255e-07
9.949597325e-07
9.940969835e-07
-0.0007798036388
-0.0007798018735
-0.0003899547589
6.001360751e-06
-5.214702103e-06
5.423546738e-06
-4.86038737e-06
-5.631933013e-06
-0.0003894202565
5.839737109e-06
0.0003894753206
-0.0003896837068
0.0003899360543
5.017347662e-06
5.124479767e-06
0.0003810377869
-2.712473624e-05
2.576144609e-05
-2.750184518e-05
2.896331796e-05
0.0003843526887
-3.030739532e-05
-0.0003813032026
0.0003827646754
-0.0003836105259
-2.880725281e-05
-2.938133645e-05
5.990698692e-05
0.0007743742689
-5.972166405e-05
-0.0007726784371
0.0007725596825
-0.0003865701895
-0.0007723841881
6.569131599e-05
0.0007722193203
-6.272983676e-05
6.290533116e-05
-6.257131558e-05
-6.291955332e-05
6.279156808e-05
0.0007693217559
0.0007692302654
5.961480749e-05
0.0007571054929
-5.978805895e-05
-0.0003791033646
-0.0003778288769
0.00075233675
-0.0003769494796
-0.0003764574837
-3.01614304e-05
0.0003768921198
-0.0007518755642
6.641936479e-05
0.0007520004458
-6.314173507e-05
6.360292092e-05
-6.287650141e-05
-6.38312614e-05
0.0007504603861
0.0007503699923
-0.000763886274
6.584223066e-05
0.000763802009
-6.262738937e-05
6.249015287e-05
-6.208385859e-05
-0.0007610882002
0.0007624084933
-0.000762002199
0.0007623828642
0.0003805498268
2.843740077e-05
5.943792545e-05
-0.0003807995503
-0.0003803461913
-0.000380846467
-0.0003805918668
-3.76205755e-06
-0.0008151078995
3.519235455e-06
0.00040739794
0.0004079527815
-0.0008170826701
0.0004083578892
0.0004086717827
4.298228655e-06
-0.0004088523952
0.0008170775666
1.812915873e-06
-0.0008171510604
8.604816928e-07
-8.65585198e-07
7.802961562e-07
7.923269952e-07
-0.0008194284412
-0.0008195775777
0.0008059375052
1.825158008e-06
-0.0008059347638
8.533260797e-07
-7.784507897e-07
7.789956539e-07
0.0008125980365
-0.0008093385339
0.0008093390788
-0.0008094111727
-0.0004040470024
-3.297236291e-06
-3.216412111e-06
0.0004040521818
0.0004052059051
0.000406059104
0.0004068417559
4.85798747e-06
-4.568379305e-06
-0.0004020008019
-0.0004021847867
-6.238607403e-06
6.549054869e-06
0.000401530355
0.0004101537046
-0.0004101521736
8.366938747e-06
7.973142105e-06
4.378464864e-06
0.0003946702579
-4.750322053e-06
-0.0003934776784
0.0003934950388
-0.0003935686434
4.686599748e-06
-4.540883381e-06
4.467278766e-06
-4.861831818e-06
-4.729137096e-06
0.0003924732584
-0.0004001803352
7.542120781e-06
-6.859159797e-06
7.169072286e-06
-7.478993494e-06
-0.0003992403482
7.788654268e-06
0.0003996291587
-0.0003999390799
0.0004001473045
-0.0004003281182
6.414890143e-06
6.696599287e-06
-4.876759426e-05
-0.0008160957027
0.0008184397068
-0.0008187038795
0.0008183486753
-2.174768652e-05
0.0004097844195
2.228444339e-05
4.60804105e-05
-4.559002975e-05
-0.0004097625441
-0.0004094317161
-0.0004085450888
-0.000407588233
4.536240969e-05
-4.509429617e-05
-0.0008205715421
-0.0004113199938
2.228862153e-05
-0.0004235489393
0.0004236811868
-1.654821219e-05
-1.320610671e-05
6.112025525e-06
-5.611366907e-06
-0.0004219208808
-0.0004224057091
6.119462047e-06
-5.560598964e-06
-0.0004127632572
-0.0004131364225
0.0004237811041
-0.0004221788008
3.577208268e-06
2.13335224e-06
-2.856457813e-05
-0.0004770888993
0.0003437163623
-0.0003844775995
1.219665911e-05
0.0001837617588
6.189643347e-05
0.0008967509712
1.788092367e-07
-0.0008975873638
-1.010528134e-06
0.0004468003166
1.406847728e-06
4.750943659e-07
-0.0004714485557
-4.500994533e-06
1.822878277e-06
-3.493744669e-06
-0.0009009247551
0.0004511843392
-0.0009000923889
0.0004415849599
-1.203558101e-06
-0.0004418575439
2.614901225e-06
-1.983835847e-06
1.435992503e-06
-1.063292038e-06
-0.00044328144
-0.0004436361531
-1.221372038e-07
0.0004406080298
1.895947435e-06
5.953807446e-06
-4.100783126e-06
-0.0004402671384
-0.0004398424293
-0.0004398991665
-0.0004374374952
2.069706013e-06
0.0008866484113
-5.573551387e-06
-0.0008822455608
0.0008802144837
-0.0004416860185
1.007774287e-06
-0.0008775724271
0.0008753926703
-5.394031118e-06
-9.939351804e-07
-0.0009026809988
2.398116602e-05
0.0009009554092
-2.110014156e-05
1.614549406e-05
-0.0004563467903
1.436609734e-05
-1.855495221e-05
-1.17336756e-05
0.000390869899
0.0004534097303
2.129180184e-05
-1.471517757e-06
0.0001316941458
0.0007221037452
-0.0004517176668
-0.0003766275404
5.339398719e-05
-0.0002540726671
0.000325407349
-0.0001247286691
0.0003716072192
-0.0002668564882
-0.0003494207514
0.0003506692459
-2.866381854e-05
-0.0004167612392
2.29042207e-05
0.0004171180027
-2.427792785e-05
2.175482188e-05
-2.401752223e-05
-2.113299685e-05
0.0004177894122
0.0004172196036
5.452498207e-06
-3.135722222e-06
-0.0003520513
-0.0003506578729
3.943316759e-06
-1.375409587e-05
0.0003609850698
0.0003498068181
-0.0003501891254
3.683747128e-07
0.0004086137029
-2.41145106e-05
2.276601148e-05
-2.42223281e-05
2.359230287e-05
0.0004122707726
-2.196429033e-05
-0.0004119574061
0.0004113273808
-0.0004106703675
0.0004100977644
-2.349111077e-05
-2.236484048e-05
0.0004300858501
-1.213446499e-05
1.443185196e-05
-1.439846878e-05
1.349968875e-05
0.0004279528289
-1.393262584e-05
-0.000430142756
0.0004292439759
-0.0004283505823
-1.391577881e-05
-1.364086561e-05
-0.0004357749082
1.103012061e-05
0.0004344366819
-8.082062668e-06
8.456672107e-06
-8.417602686e-06
-1.106685287e-05
0.0004363174
0.0004344713154
-0.0004317791342
9.020512431e-06
0.0004331350615
-1.157287164e-05
9.409754276e-06
-1.200116802e-05
-8.133773443e-06
0.0004329796072
0.0004332137971
-0.0003478762349
2.393968678e-05
0.0003485513269
-2.639552471e-05
2.450125486e-05
-2.257743435e-05
-2.337097577e-05
2.531902183e-05
0.0003466756598
0.0003464092128
-2.256235425e-05
0.0003439026394
0.0003454707798
-0.000348199439
2.820502612e-05
0.0003473161143
-2.882513643e-05
2.564196754e-05
-2.547555804e-05
-0.0003455686664
2.873876142e-05
0.0003429899325
-0.000342823523
0.0003443582849
2.173760823e-05
2.53874246e-05
-0.0003595473787
0.0003603280309
-2.766924309e-05
-2.787929116e-05
0.000358808308
0.0003586982426
2.976563207e-05
0.0003792430676
-0.00037542699
0.000377469407
-0.0003787990991
0.0003794224271
-2.964226675e-05
-3.061492007e-05
0.0003801558217
0.0003786005111
2.61617676e-05
0.0004021224679
-2.696410773e-05
-0.000400542743
0.0004011341182
-0.0004011144496
2.561199532e-05
-2.59746408e-05
2.59943094e-05
-2.60612521e-05
-2.68557514e-05
2.819765762e-05
0.0003995996298
-0.0003964261883
2.643682964e-05
0.0003960626508
-2.567871299e-05
2.784021995e-05
-2.497340687e-05
-2.885617051e-05
2.748127705e-05
0.0003961205669
0.0003960377549
-0.0003965362304
2.688660067e-05
0.0003968331408
-2.877650893e-05
2.776825484e-05
-2.612440646e-05
-0.000393604599
0.0003952102788
-0.0003935664304
0.0003959579466
0.0003900541135
2.468747346e-05
2.361768965e-05
0.0004209581895
-2.329236225e-05
-0.0004165338903
0.0004195448415
-0.0004200706498
2.09235493e-05
0.0004196389015
-2.243915875e-05
2.191335047e-05
-2.182158435e-05
-2.222405132e-05
0.0004205739501
0.0004196808368
0.0004377882085
-7.62712677e-07
7.273654782e-07
-1.080101052e-06
8.132679228e-07
1.798686751e-06
0.0004403793587
-0.0004380274913
0.000438746077
-0.0004399371567
-2.202445435e-06
-2.468646926e-06
-0.0004352360027
3.015673495e-06
0.0004345907444
-0.0004351371134
0.0004354908913
-9.283131301e-07
1.782934003e-06
-1.429156162e-06
2.055929985e-06
1.077548242e-06
-0.0004351479931
-1.087802087e-05
-0.0003458877137
1.185381821e-05
0.0003444011822
-0.0003453219125
0.0003460443866
-7.836895041e-06
-0.0003464433904
9.760822085e-06
-9.038347918e-06
1.03982869e-05
8.374726583e-06
-7.779706658e-06
-0.0003466035182
-0.0003469432026
0.0003467594483
-8.629777017e-06
-0.000345822014
9.724937095e-06
-1.075583706e-05
7.763553873e-06
1.085283065e-05
0.0003463202672
-0.0003467318475
0.0003468288411
-0.0003465832982
-0.0003467235774
-1.277150499e-05
0.0003544155191
-8.491665985e-06
-0.0003535770374
8.203838375e-06
-9.777262872e-06
7.027867819e-06
1.085938608e-05
-1.124884498e-05
-0.0003538809063
-0.0003531486467
0.0003498014992
-6.658232352e-06
-0.0003500409312
7.263360062e-06
-6.905508986e-06
6.737574483e-06
-0.0003493606569
-0.0003493593817
-6.583762472e-06
-0.0003448377867
7.084954186e-06
0.0003440809572
-0.0003435009156
0.0003443184689
-6.518903701e-06
6.944678924e-06
-6.127125695e-06
7.574922253e-06
6.326055743e-06
-0.0003445527224
-0.0003518175791
0.0003510191176
-2.890767622e-05
-2.896420405e-05
-0.0003497471465
2.836732088e-05
0.0003492077109
-0.0003494079465
0.0003516814555
-2.581810391e-05
2.988392322e-05
-2.761041419e-05
2.917553938e-05
2.651728939e-05
-0.0003513188983
0.0003679500488
-7.422000039e-06
-0.0003669138333
6.149165145e-06
-7.372662195e-06
5.885889184e-06
9.329388582e-06
-1.061415711e-05
-0.0003684402241
-0.000367221627
0.0003619129814
-6.067156382e-06
-0.0003620363134
6.667046486e-06
-6.374919047e-06
6.822375794e-06
6.150665522e-06
-0.0003628594872
-0.0003629644879
0.0003695335448
-9.193674673e-06
-0.0003697531144
9.744564232e-06
-9.590429016e-06
1.003992134e-05
9.43844114e-06
-9.354020604e-06
-0.0003697395703
-0.0003699604866
0.0003678332793
-9.908301286e-06
-0.0003679036638
1.083928984e-05
-1.059933286e-05
1.027680092e-05
-0.0003680271579
-0.0003681574943
0.0003551439627
-8.393015147e-06
-0.0003553514774
9.597102302e-06
-9.292113667e-06
9.96797114e-06
8.988723592e-06
-8.692119449e-06
-0.0003563696133
-0.0003566420797
0.0003531566955
-9.348187812e-06
-0.0003534016571
1.107965108e-05
-1.071726064e-05
1.03416856e-05
-0.0003540001599
-0.0003542671461
0.0003607853884
-6.781501073e-06
-0.0003609179766
7.49036346e-06
-7.265664474e-06
7.785769714e-06
7.11115759e-06
-0.0003610157202
-0.0003612137033
0.0003575395913
-7.516384981e-06
-0.0003576732666
8.464991655e-06
-8.173376818e-06
8.014296672e-06
-0.0003575675421
-0.0003578342476
-0.0003708238501
0.0003711568796
-2.547783473e-05
-2.663055316e-05
0.0003713749754
0.0003696878895
0.000371441004
-8.351710627e-06
-0.000371675643
9.046567195e-06
-8.738444004e-06
8.500039403e-06
-0.0003723383554
-0.0003726436495
-0.0003877380723
2.924012722e-05
0.0003887476933
-3.108324649e-05
2.899518412e-05
-2.831090147e-05
-2.441144556e-05
0.0003844325987
0.000387075401
-0.000391033802
2.485619122e-05
0.0003917457824
-2.471216778e-05
2.229234253e-05
-2.305319489e-05
0.0003940052696
0.0003932823339
0.0004049325115
-0.000405113141
4.27828958e-06
6.727576343e-06
-0.0004098477668
-0.0004089914241
-0.0003983852081
8.113386821e-06
-8.456739264e-06
7.353760818e-06
-8.861637242e-06
-5.948302345e-06
-0.0003958622999
0.0003982566148
-0.0003968511564
0.0003959896236
5.345618861e-06
6.901392828e-06
0.0003986202063
-0.000398281883
0.0003980840844
-0.0003983801486
-0.0003977783146
8.82108972e-06
-8.097732634e-06
8.403502387e-06
-8.695130456e-06
0.0003973528003
-2.539694958e-05
2.250763286e-05
0.000405574197
0.0004064294928
-0.0004074825271
0.0004056645377
-2.252529514e-05
-1.517627484e-05
0.0004238415034
0.0004252275607
0.0004228023467
-0.0004234590849
5.104098801e-06
0.0004147171615
-0.0004150915777
5.155648507e-06
2.283875479e-06
-0.0004169573058
-0.0004170497789
0.0004491989753
-1.527586511e-06
-0.0004484994519
1.046318574e-06
-1.914891125e-06
4.298440916e-06
-9.817624173e-06
-0.0004608503952
-0.0004592392751
4.751428237e-06
0.0004427827855
-6.601148591e-06
-0.000443283337
0.0004444200984
-0.0004435231054
0.0004420498819
-4.365788222e-06
-4.569090232e-06
-5.807320623e-06
0.0004394075177
0.0004401621446
0.001339672917
0.0002069901234
-0.0013397991
0.002622325522
-0.001314966145
-0.001293062766
-0.0002058949199
-0.0002102012788
-0.0001731513369
0.0012942111
-0.00262920301
0.0004588226044
0.002616759866
-0.0004492698947
0.0004405201817
-0.001331964278
-0.000433821953
0.0004363895326
0.002557804836
0.002529303845
0.0003750678497
0.003423413456
-0.0003745647249
-0.00171684749
-0.001707512758
0.003386655267
-0.001697349645
-0.00168898008
-0.0001590830562
0.001689257179
-0.003361796103
0.0004278365765
0.003271414898
-0.0004102471767
0.0004146191084
-0.0004010233551
-0.0004202259629
0.003332958827
0.0032599864
-1.390251768e-05
-0.0004279987389
0.0004295157181
-0.0004296916479
0.0004295993011
-1.746978267e-05
1.542296033e-05
-1.551530716e-05
1.444868747e-05
-1.294275485e-05
-0.000432328684
-5.412997194e-05
0.0008316347338
5.423842986e-05
0.0001244985314
-0.0001241963974
-0.0008322120141
-0.0008304168886
-0.0008273096182
-0.0008249146174
0.0001241720989
0.001680425749
-0.000124011485
-0.001671160419
0.00167113612
-0.0008364642359
5.787571707e-05
4.2472269e-06
-0.0003332942676
-4.096181823e-06
0.000328626792
-0.0003419400072
0.0003220818826
0.0003559209097
2.564855769e-05
-0.0003470867069
-1.290167767e-05
2.688258021e-05
-7.46475573e-06
-2.955109626e-05
-0.0003555878627
-0.0003550820699
-0.0003642046557
5.631626889e-05
0.000367966569
7.491876772e-06
5.547722388e-05
-0.000387947986
-5.009352143e-05
-0.0003372411243
4.993539859e-05
0.0003572994153
-0.0003519157128
0.0003646045608
0.0003325246276
4.370600758e-05
3.576991181e-05
0.001336389695
-7.412131743e-05
-0.0006742419944
-6.684363576e-05
0.0001669785473
-0.0001543546107
0.001323765758
0.001320294371
0.0001813694503
7.893152158e-05
-0.0006809135539
-0.0006769442492
-0.0006667470345
-7.430171548e-05
-7.604442955e-05
-7.042712929e-05
0.0006628287498
-2.84185274e-05
-0.0003446869261
0.0003457251753
-0.0003459537462
0.0003459389455
-2.436851059e-05
2.576862671e-05
-2.578342744e-05
2.648265302e-05
2.566727317e-05
-2.58099529e-05
-0.0003480954661
-3.83655088e-06
-0.0007547393726
3.83797346e-06
0.0007572458003
-0.0007573157232
0.0003782717366
0.0007573151594
1.713978721e-06
-0.0007573141214
1.063222365e-06
-1.063786182e-06
1.063165334e-06
1.064840213e-06
-1.065902695e-06
-0.0007598210008
-0.0007598199459
0.0007466691328
1.717653063e-06
-0.0007467374129
1.06323459e-06
-1.063294434e-06
1.132262075e-06
1.063107567e-06
0.000752164228
-0.0007496592698
0.0007496590829
-0.0007495886873
-0.0007495878622
0.000375067862
-3.839893771e-06
-0.0004220787328
1.793295479e-05
-1.740472704e-05
1.857906605e-05
-1.666636645e-05
-2.020350384e-05
-0.0004231105311
0.0004224259091
-0.0004240503469
0.0004259720166
2.086893714e-05
0.0008286977214
-4.231509134e-05
-0.0004138953691
4.483201404e-05
-4.514722885e-05
4.526056832e-05
0.0008320405715
-4.489436187e-05
-0.0008303015496
0.000830414889
0.0004311349817
-1.37929552e-06
2.948171389e-06
-2.601117561e-06
3.20667992e-06
2.328992396e-06
0.000434767958
-0.00043336647
0.0004330943448
-0.0004325493523
-3.562629192e-06
0.0003462473613
-2.699120513e-05
2.594282811e-05
-2.65102966e-05
2.765934389e-05
0.0003483459756
-0.0003456016564
0.0003467507037
-0.0003472236294
-2.778013546e-05
0.0007679854141
1.638137674e-06
-0.0007679127168
1.066710125e-06
-1.066754357e-06
1.066799176e-06
0.0007721400946
-0.0007696356235
0.0007696356683
-0.0007697055258
-0.0007695603268
0.0003847194457
-3.845165696e-06
6.284428096e-06
0.000384014864
-6.189169441e-06
-0.0003839229429
0.0003838382708
-0.0003837349113
9.43991677e-06
-7.905781323e-06
8.009140799e-06
-7.711698096e-06
-8.066930091e-06
7.688767903e-06
0.0003835501607
-0.000382369097
6.756591279e-06
-7.006871901e-06
6.217685587e-06
-5.546940888e-06
-0.0003799577387
5.244932817e-06
0.0003814521647
-0.00038078142
0.0003804150119
4.965496919e-06
4.775954984e-06
-3.919658858e-06
-0.0004308196831
3.002382148e-06
0.0004320958941
-0.0004312792784
0.0004308368162
-1.627515803e-06
2.583708009e-06
-3.026170131e-06
2.055410736e-06
3.207442905e-06
-0.0004312950717
1.5901957e-05
0.0004247814432
-1.546765621e-05
-0.0004237832853
0.000423539095
-0.0004232234739
1.62522268e-05
-1.562999097e-05
1.59456121e-05
-1.621209797e-05
0.0004220523288
0.0004122731203
-2.168836171e-05
2.035172664e-05
-2.108395475e-05
2.02867687e-05
2.172158877e-05
0.0004146732055
-2.162942846e-05
-0.0004134391721
0.0004140768062
-0.0004141065755
-2.053897888e-05
-0.0006870395564
6.992346421e-05
0.0006862011477
-6.665233365e-05
6.760491305e-05
0.0006902727627
6.744059648e-05
0.0006905924109
0.0006845217721
7.04178509e-05
-2.151739911e-05
-0.0004118728887
0.0004114357631
-0.0004117206943
0.000411772159
-2.039374661e-05
2.11129356e-05
-2.106147083e-05
2.077709797e-05
-0.000413271681
-8.260211618e-05
-0.0006844882022
8.904011332e-05
0.0006726204841
-0.0006806673078
0.0006706843991
0.0006862396001
-7.357784293e-05
8.758012603e-05
-8.200783366e-05
8.696024706e-05
7.692748912e-05
-0.0003460589681
-0.000343650313
-0.0006867755032
-0.0003431806732
-3.760049788e-05
-3.669500374e-05
-0.0004013928134
2.468926495e-05
-2.463788032e-05
2.51137918e-05
-2.453797281e-05
-2.568667333e-05
-0.000402204256
0.0004012423298
-0.0004018152113
0.0004028784609
2.678670224e-05
0.0003440099318
-6.666024334e-06
7.946165793e-06
-7.660855383e-06
7.972699356e-06
7.913848568e-06
0.0003456222393
-0.000344606632
0.0003448596252
-0.0003444554203
-8.471611949e-06
-0.0003850956378
8.388704621e-06
-7.097038618e-06
7.232800083e-06
-6.817088598e-06
-7.509541836e-06
-0.0003842741348
0.0003843317871
-0.0003846085289
0.0003847123693
6.08575035e-06
5.231126463e-06
0.0003890105947
-0.0003888511443
0.0003886716028
-0.0003883914601
7.154846279e-06
-6.047514782e-06
6.32765749e-06
-6.536282607e-06
0.0003877624891
-0.0003754901229
6.507572007e-06
-5.560732731e-06
5.740155394e-06
-5.451108053e-06
-5.919173065e-06
-0.0003743481782
6.028095525e-06
0.0003748645223
-0.0003750435399
0.0003750615665
5.060149003e-06
5.21735905e-06
4.76136746e-06
0.0003790662618
-0.0003782716737
0.0003782673985
-0.0003781807937
5.461422887e-06
-5.154315705e-06
5.240920558e-06
-5.343187892e-06
0.0003774537756
-2.95698741e-05
-0.0003860562345
0.0003866642763
-0.0003870409644
0.0003878936301
-3.143906755e-05
3.111108381e-05
-3.02584181e-05
2.838795569e-05
-2.750150033e-05
-0.0003899102715
0.0004281483991
-9.353135949e-07
1.434961429e-06
-1.516567599e-06
1.601846093e-06
1.696433294e-06
0.0004300186985
-0.0004288639585
0.0004290438242
-0.0004294019506
-2.193979113e-06
-2.911103595e-06
-0.0004230196356
3.180997908e-06
0.0004239219259
-0.0004242735139
0.0004243665563
-1.024787091e-06
1.959332859e-06
-1.866290497e-06
2.131677254e-06
1.693940521e-06
-0.0004257827577
-3.920539319e-06
-0.0004423507374
0.0004420672309
-0.000441734062
0.0004330839286
-6.631540765e-06
5.88612819e-06
-1.453626157e-05
7.119450719e-06
-8.506868163e-06
-0.0004440424562
1.048907351e-05
0.0004375319458
-8.821538633e-06
-0.0004383100069
0.0004374919643
-0.0004370112031
8.035828154e-06
-8.877571366e-06
9.358332604e-06
-7.521979872e-06
-1.085861654e-05
0.0004368166665
-4.882672745e-05
-0.0003484673025
0.0003489385468
-0.0003580344111
0.0003596936239
-5.738397514e-05
5.151412509e-05
-4.985491238e-05
5.087677159e-05
4.006880981e-05
-0.0003640717512
0.0004001737212
-1.236897432e-06
-0.0004058630518
1.355605251e-05
2.140069222e-06
-5.560367745e-06
0.0004514905766
3.954678761e-06
-0.0004442586822
0.0004408383837
-0.0004406665148
0.0006034207864
1.236852801e-05
7.452463324e-06
3.360466856e-05
0.0004795737141
-1.53600952e-05
-0.0007011253981
0.0004806573996
-0.0004639428278
0.0001340426148
0.0003579912925
-3.470484093e-05
5.141941276e-05
-2.131508326e-05
-0.0001106414124
0.0002661853493
0.0004006051907
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.821573069e-08
0
8.957962815e-09
0
2.166794821e-07
1.296749746e-06
0
9.541931406e-06
-6.607842516e-06
1.513588506e-06
-2.780890857e-08
1.430707864e-06
1.22551872e-05
3.850274683e-07
1.422159315e-05
-1.485866386e-05
-2.565386097e-07
3.537912982e-08
-9.020984545e-07
1.239150432e-05
3.921824696e-07
3.773974535e-06
-6.725509574e-06
-1.118957187e-06
0
-6.693778946e-07
1.341746036e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.570498551e-05
-1.387071131e-05
1.221833482e-05
-7.427876443e-06
2.132667028e-05
6.616225367e-05
-9.011096747e-07
2.254559277e-05
0.0001849626827
-0.0001430205645
4.35379478e-05
-2.708351722e-05
4.534230196e-05
0.0002266356837
-1.309503171e-05
0.0001288892792
0.0003325342874
-0.0003019734895
3.136046788e-05
-1.56211697e-05
2.140290137e-05
0.0003566347519
-9.81847829e-06
0.000224920758
0.00038033246
-0.0003812211066
-1.137545139e-05
1.2763529e-05
-2.121546892e-05
0.000370344766
6.875263355e-06
0.0002323397674
0.0002890928859
-0.0003239116404
-3.808898136e-05
2.446286689e-05
-3.941320224e-05
0.0002484424911
1.290198039e-05
0.0001389526491
0.0001129098082
-0.0001577972649
-3.028318183e-05
1.143719538e-05
-2.42358118e-05
7.218772955e-05
3.108727026e-06
2.400787935e-05
3.046099749e-06
-1.481035763e-05
-4.386768804e-06
0
-9.110353443e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.38986082e-05
-1.650233371e-05
1.990883672e-05
-2.122752032e-05
4.179834382e-05
0.0001103350389
-7.675763003e-06
5.747830661e-05
0.0003569601191
-0.0002653579202
0.0001218989334
-0.0001039425745
0.000141939825
0.0004537335088
-7.035123768e-05
0.0003293323854
0.0007465133015
-0.0006511773994
0.0001528674498
-0.0001148797928
0.0001386620245
0.000836412832
-9.05151948e-05
0.0006577781502
0.001052495694
-0.0009912037907
6.112988751e-05
-3.042686088e-05
2.894234141e-05
0.001101163562
-2.945600327e-05
0.0008923915671
0.001161064445
-0.001156252229
-6.028790504e-05
6.444001619e-05
-8.433676904e-05
0.001149970696
4.704149053e-05
0.0009328103616
0.001018738921
-0.001078723221
-0.0001256603394
0.0001029737414
-0.0001295547575
0.0009434333528
7.889298994e-05
0.0007411821178
0.0006438290925
-0.0007532975626
-0.0001145012361
8.094019458e-05
-0.0001037348747
0.0005297381014
5.972740312e-05
0.0003807821791
0.0002073710591
-0.0003064298798
-6.134833073e-05
2.96688771e-05
-4.571364064e-05
0.0001234087077
1.602828804e-05
6.325184735e-05
2.575856227e-06
-2.058416051e-05
-6.648403847e-06
0
-9.243585652e-07
0
0
0
0
0
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.147622083e-06
-4.021812391e-07
0
0
0
8.138387184e-06
2.811906057e-06
0
-7.074478864e-06
1.61301017e-05
4.736864384e-05
-1.54226597e-06
1.999954536e-05
0.000329841105
-0.0002113016876
0.0001363741648
-0.0001404326501
0.0001878965924
0.0004550631262
-0.0001015274225
0.0003496572182
0.0009055928059
-0.0007491829361
0.0002954604056
-0.000266193662
0.0003062536624
0.001061899808
-0.0002247429058
0.0008993340233
0.001490070489
-0.001357826052
0.0002495916418
-0.0001956283193
0.0002076167806
0.001607819424
-0.0001799198937
0.001416489851
0.00186155605
-0.001794254255
5.629092259e-05
-1.24767036e-05
5.128477434e-06
0.00191204871
-1.941604831e-05
0.001727280557
0.00197220229
-0.001966584256
-0.0001310842569
0.0001494896534
-0.0001689483103
0.001963525735
0.0001280372856
0.001784002013
0.001839721031
-0.001898836685
-0.000242137232
0.000218898805
-0.0002505955698
0.001760297774
0.0001881212543
0.00156831786
0.001411991529
-0.001552252847
-0.0002309347112
0.0001793781778
-0.000222356119
0.001260294698
0.0001527222838
0.001049643255
0.0007263030132
-0.0009182892948
-0.0001505450429
0.0001062731384
-0.0001220215185
0.0005513751059
9.008622092e-05
0.0004322353564
0.0001410909518
-0.0002534335288
-5.503557445e-05
2.214399618e-05
-3.376026717e-05
5.975713149e-05
1.203044645e-05
2.818054989e-05
0
9.583991288e-07
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.061559138e-05
-1.37421726e-05
-1.224727795e-05
-3.29808033e-08
5.039972832e-06
0.0001063870614
3.541570638e-05
-3.046574823e-05
-6.316756429e-05
8.224885198e-05
0.0002168054013
-4.510174395e-05
0.00016817485
0.0007120872511
-0.0005258696712
0.0002849659342
-0.0003099124384
0.0003490745319
0.0009109126283
-0.0002694530097
0.000797702515
0.001530691637
-0.001324161307
0.0004381466542
-0.0004440332915
0.0004357125239
0.001756882104
-0.0004159836756
0.001608472579
0.002176524529
-0.002070416817
0.0003217847905
-0.0002284861183
0.0002338122133
0.002263860917
-0.0002271995518
0.002120436515
0.002366426495
-0.002353849024
4.670134781e-05
1.095298363e-05
-8.314072611e-06
0.002368817912
7.541410754e-06
0.00230462597
0.002369386153
-0.002369365162
-0.0001563918312
0.0002038282619
-0.0002071243915
0.002371297815
0.0001967240931
0.002319110711
0.002378101198
-0.00238012969
-0.0003560769988
0.0003435563815
-0.0003972241379
0.002369625225
0.000312248826
0.002227278527
0.002065760208
-0.002224712603
-0.0003648067355
0.0003097066032
-0.000324590236
0.001899448995
0.0003075721924
0.001766519846
0.001290373515
-0.001511751819
-0.0002205836908
0.0001727014188
-0.0001885792597
0.001061645079
0.0001564865287
0.0009392930389
0.0004263048115
-0.0006205249329
-0.0001070955325
7.018342413e-05
-7.795763604e-05
0.000253512075
5.800726381e-05
0.0002039822092
2.526889856e-05
1.600278934e-05
0
0
-2.198386486e-07
-2.748392194e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.887229939e-06
3.584496774e-06
4.411964464e-05
-4.007357501e-05
-5.045659003e-05
-2.187274256e-05
2.778255775e-05
0.0002399798831
8.373655002e-05
-0.0001136327048
-0.0001355814422
0.0001521485032
0.0004054822044
-0.0001165072542
0.0003558271381
0.001062690978
-0.0008247940803
0.0003965389232
-0.0004347073441
0.0004596114155
0.001307154062
-0.0004155584747
0.00123232498
0.002024601422
-0.001808309811
0.0005020248336
-0.00046031127
0.0004789186832
0.0022014855
-0.0004499733775
0.002095837197
0.002543531028
-0.002465796548
0.0002515725292
-0.0001985864285
0.0001803292912
0.002576792728
-0.0002181333166
0.002552150763
0.001250009413
-0.001248776125
-7.388454415e-05
9.446493944e-05
-9.758748785e-05
0.001253131961
0.001242810935
9.09120043e-05
0.002454702353
-0.000449946382
0.0004040200142
-0.0004353277892
0.002338897865
0.0003741658089
0.002238039357
0.00173342472
-0.001969639098
-0.0002906019124
0.0002387471915
-0.0002458847799
0.001478301363
0.0002176028152
0.00138958918
0.0007151254742
-0.0009600000644
-0.0001417883032
0.0001071398831
-0.0001140910786
0.0004936283932
9.89976265e-05
0.00043705798
8.513536141e-05
3.729907404e-05
3.257570068e-06
0
-6.809051807e-06
-1.607971922e-05
-1.105246613e-05
-6.063111067e-06
-2.111026277e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.01940382e-05
1.183372112e-05
5.762481544e-05
-5.432464714e-05
-7.760446486e-05
-5.613718332e-05
4.620013667e-05
0.0003337333811
0.0001133961936
-0.0001749088645
-0.0001790330376
0.0001922353094
0.0005342950078
-0.0001743597526
0.0005099910479
0.001300419372
-0.001027268965
0.0004502364876
-0.0004983959022
0.0005097515484
0.001576959509
-0.000491410438
0.00153294116
0.002315577493
-0.002095278619
0.0005169160591
-0.0004662918523
0.0004634513381
0.002497821345
-0.0004723431101
0.002445097605
0.001364416148
-0.0001709304655
0.0001845773478
-0.0001813097402
0.00136114854
0.0001836303476
0.001349606315
0.002692183205
-0.0004954766776
0.0004564103662
-0.0004694138988
0.002597442273
0.0004480095748
0.002523283623
0.002032105446
-0.002260657096
-0.0003333674706
0.0002693669966
-0.0002832634377
0.001774384293
0.0002639456117
0.001679443678
0.0009344592315
-0.001213898204
-0.0001645775809
0.0001296044104
-0.0001356441347
0.0006727355029
0.0001249827043
0.0006170118509
0.0001391585428
5.134335962e-05
1.246212236e-05
0
-1.448886727e-05
-4.152948441e-05
-3.798022757e-05
-3.214167584e-05
-2.368418834e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.78754215e-05
1.984451381e-05
6.662105386e-05
-6.449912157e-05
-9.938131959e-05
-8.383336826e-05
6.0180425e-05
0.0003992181804
0.0001270280562
-0.000218676637
-0.0002054398339
0.000209276735
0.0006230420499
-0.0002008855798
0.0006042933577
0.001454352981
-0.001161829891
0.0004693119707
-0.0005228676194
0.0005262982344
0.001746375242
-0.0005187396909
0.001710138051
0.002499994459
-0.00228036157
0.0005206628201
-0.0004629100494
0.0004627267388
0.002675291603
-0.0004632329108
0.00263371758
0.001434107707
-0.0001658984742
0.0001777525234
-0.0001774569565
0.00143381214
0.0001780403979
0.001423290709
0.002859892507
-0.0004978244632
0.0004809293943
-0.0004820633264
0.002769030841
0.0004770952028
0.00272807977
0.002191348166
-0.002427808942
-0.000350221172
0.0002959268334
-0.0002976717197
0.001923391035
0.0002912166453
0.001892462362
0.001046549336
-0.00133863611
-0.0001716396333
0.0001398066557
-0.0001406662934
0.000771135701
0.0001373878529
0.0007527131168
0.0001546041364
5.433477558e-05
1.661941529e-05
0
-1.492829963e-05
-4.833280789e-05
-5.049680298e-05
-4.962402649e-05
-4.563918707e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2.779020873e-05
3.085776326e-05
7.759603917e-05
-7.480274186e-05
-0.000125747682
-0.0001051668303
6.925186724e-05
0.0004557759785
0.0001407397507
-0.0002575515489
-0.0002212915144
0.0002260973703
0.0006981656618
-0.0002167487329
0.0006772288158
0.001582941
-0.001273638684
0.0004867704424
-0.0005369635621
0.0005411268066
0.001889517621
-0.0005330214469
0.001850851487
0.00266935106
-0.002444438248
0.0005234359983
-0.0004621437027
0.0004616646748
0.002846215033
-0.0004623991796
0.002800984938
0.001507698614
-0.0001630003013
0.0001753868023
-0.0001750582423
0.001507370054
0.0001756660971
0.001498849224
0.002994641794
-0.0004846653263
0.0004742020027
-0.0004672002638
0.002883578427
0.000477059879
0.002857015542
0.002220999668
-0.002481943508
-0.0003298588981
0.0002902940636
-0.0002930079078
0.001955535827
0.0002930889598
0.001962321182
0.001048854007
-0.001348215326
-0.0001655593575
0.0001374508835
-0.0001351590353
0.0007681568137
0.0001381340061
0.0007764210062
0.0001214965323
4.589949437e-05
1.308311404e-05
0
-8.029644222e-06
-2.910190256e-05
-3.696011943e-05
-4.366231867e-05
-4.616266937e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4.279823794e-05
4.730996786e-05
9.047797406e-05
-8.877353276e-05
-0.0001603810997
-0.0001331233363
8.057919081e-05
0.0005227668419
0.0001565747291
-0.0003048684733
-0.0002402630801
0.0002451447736
0.000785446731
-0.0002353501137
0.0007628752297
0.001726211831
-0.001399887495
0.0005057327814
-0.0005528910141
0.0005568570763
0.002047239961
-0.0005488728921
0.002007251406
0.002848945329
-0.002620658909
0.0005255275446
-0.00046029439
0.0004597370276
0.00302483331
-0.0004608236388
0.002980414035
0.001584187481
-0.0001612108483
0.0001721798979
-0.000172763723
0.001584771306
0.0001730773211
0.001576472098
0.003084572787
-0.0004550971616
0.0004415338652
-0.0004321984898
0.002934724496
0.0004534061165
0.002927731924
0.002186319976
-0.002477052406
-0.0002985465321
0.0002660774259
-0.0002513506481
0.001875406039
0.0002717805588
0.001927713569
0.0009612635415
-0.001263417548
-0.0001480740427
0.0001233361945
-0.000118874691
0.0006833827213
0.0001260901712
0.0007085769282
6.849903206e-05
3.120262519e-05
5.068770643e-06
0
-1.442292835e-06
-6.240083032e-06
-1.21262451e-05
-1.9365658e-05
-2.404099679e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6.118206975e-05
7.262340672e-05
0.0001073331006
-0.0001064217267
-0.0002070259645
-0.0001678907636
9.440326852e-05
0.000596356867
0.0001687802138
-0.0003568465383
-0.0002622633737
0.0002713366534
0.0008859284653
-0.000256123007
0.000858791837
0.001881592115
-0.00153918106
0.0005280530624
-0.0005700948806
0.0005749424119
0.002215670205
-0.0005654649367
0.002171839254
0.003033368226
-0.002803955441
0.0005267982955
-0.0004572607577
0.0004561748822
0.003205930495
-0.0004582673066
0.003160658399
0.0016609538
-0.0001591539544
0.0001710280317
-0.0001709446608
0.0001714189591
0.00312254975
-0.0004166488785
0.0004034593666
-0.0003868588924
0.002924568573
0.0004089948085
0.002938023482
0.002071671503
-0.002389257788
-0.0002577986212
0.0002267413995
-0.0002155503413
0.001739418551
0.0002402546058
0.001790963065
0.00078226303
-0.0010814455
-0.0001193029084
9.986294339e-05
-9.296761887e-05
0.0005183083065
0.000108265207
0.0005675667026
1.538889499e-05
1.520007138e-05
2.49211266e-08
0
0
0
-4.233228777e-08
-9.727430505e-07
-3.327213475e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.0001032456862
0.0001075907219
0.0001336941932
-0.0001299035941
-0.000265223457
-0.0002205034652
0.0001174466659
0.0007190556087
0.0002090551199
-0.0004540548849
-0.00029467685
0.0003055793666
0.001026249612
-0.000277828443
0.0009675198056
0.002068817255
-0.00171513729
0.0005585266365
-0.0005873729548
0.000597960427
0.002409588225
-0.00058515376
0.002358955681
0.003240494183
-0.00299922868
0.0005247803036
-0.000451882197
0.0004483426605
0.003406143268
-0.0004534164103
0.003348059109
0.0008681851582
1.300929969e-05
-1.030764862e-05
1.030311298e-05
0.0008681896938
-1.023290371e-05
0.0008635101593
0.0008632234553
-2.505589216e-05
2.909066478e-05
-2.890279074e-05
0.0008630355812
0.0008609509159
0.00349388121
-0.000330035748
-0.001742502596
0.0003735046127
-0.0003711611584
0.003481219772
0.003454919728
0.003062346882
-0.00326919286
-0.0003595077706
0.0003466122429
-0.000326876653
0.002806310987
0.0003589262993
0.002839870858
0.001829041451
-0.002174740858
-0.0002047636155
0.0001899302674
-0.0001876106557
0.001512509433
0.0001973400898
0.00158536663
0.0005981427579
-0.0008753465744
-9.576262901e-05
7.660755945e-05
-7.05010345e-05
0.0003630213317
8.132723458e-05
0.0004012989434
0
3.944124354e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
9.033057563e-05
7.284485766e-05
9.189617457e-05
-0.0001067801527
-0.0002144772867
-0.0002776158092
0.0001283221872
0.0007783527122
0.0002015422698
-0.0004929555352
-0.0003100988071
0.000295360124
0.001109133348
-0.0003186027663
0.001124784288
0.002225247464
-0.001848612445
0.000543271847
-0.0005964164988
0.0005831264595
0.002584728257
-0.0006036433589
0.002585496708
0.003415643213
-0.003192418242
0.0005186191304
-0.0004425581845
0.0004468240264
0.003573040155
-0.0004393847811
0.003548050447
0.001822737573
-7.231772519e-05
8.367968978e-05
-8.367968979e-05
0.001822737573
0.001813558021
0.003651103183
-0.0003291559607
0.0003521579529
-0.0003446228484
0.003555644213
0.0003640418104
0.003548955498
0.002890314621
-0.003169060809
-0.0002945245774
0.0003064253198
-0.0002714369929
0.00257208593
0.000302543349
0.002664680041
0.001554776122
-0.001901727104
-0.0001765852676
0.0001475348786
-0.0001364357607
0.001207290843
0.0001610401973
0.001282888916
0.0003667769041
-0.0005997305537
-6.443505784e-05
4.905884287e-05
-4.062891432e-05
0.0001806871798
5.495068522e-05
0.0002241888155
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.636519197e-05
4.678868676e-06
2.714218669e-05
-4.19461231e-05
-6.313982635e-05
-0.0001794202456
7.54249098e-05
0.000559045816
0.0001160988387
-0.0003180225879
-0.000220257768
0.0001882464267
0.0008535678195
-0.0002495568087
0.0009440167044
0.001924012679
-0.001551045303
0.0004143322933
-0.0005047427454
0.0004658116363
0.002292261328
-0.0005374057564
0.002410591471
0.003229520718
-0.002956834439
0.0004808898779
-0.0004495412685
0.0004412452345
0.003451790101
-0.0004521502258
0.003526408736
0.003803145864
-0.003735748803
0.0002547882038
-0.0001757087612
0.0001894380762
0.003831313674
0.003797415064
0.00383680795
-0.003836573618
2.616738014e-05
1.964961547e-05
-1.964961549e-05
0.00383680795
0.00379758834
4.143803737e-06
0.003831905645
-0.003836463973
-0.0001559406094
0.0002013496778
-0.00019871356
0.003815214069
0.003796805985
0.003540965363
-0.00367852243
-0.0002790295953
0.0003025166195
-0.0002823018091
0.00335386183
0.0003197484893
0.003450583085
0.002531875414
-0.002842732172
-0.0002301653661
0.0002190563199
-0.0002017922772
0.002196571993
0.0002346006919
0.00232721868
0.001159264845
-0.00149807689
-0.0001208988052
0.0001069238015
-9.784069771e-05
0.0008438823622
0.0001147390699
0.0009361401372
0.0001535935764
-0.0003304758852
-3.271428509e-05
1.946901629e-05
-1.436336314e-05
4.160661702e-05
2.736521438e-05
7.121145295e-05
0
0
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.704696973e-08
-1.924891797e-06
0
-3.160278454e-05
1.502180914e-05
0.0002075079413
2.665342353e-05
-7.651345341e-05
-9.014040281e-05
6.173451975e-05
0.0003972582183
-0.0001216833637
0.0005167896556
0.00122596098
-0.0009177379555
0.000216319921
-0.0003197602999
0.0002660711735
0.001549293676
-0.0003720762656
0.001769649226
0.002486030284
-0.00219060944
0.000343339048
-0.0003742459533
0.0003383097664
0.002752798352
-0.0004037862789
0.002990803871
0.003336308022
-0.003179818244
0.0002458522609
-0.000204313554
0.0001989953872
0.00345599451
-0.0002043328516
0.003641726543
0.003624239467
-0.003596764334
4.916451056e-05
5.835143035e-06
2.006424952e-06
0.003626100948
1.255469333e-05
0.003780373142
0.003476034246
-0.003553513088
-0.0001160134508
0.0001634859528
-0.0001441787651
0.003367984954
0.000179571049
0.003566238131
0.00284615994
-0.003053184114
-0.0001831010842
0.0002078941397
-0.0001806768802
0.002608744599
0.0002344071212
0.002848005121
0.001764801167
-0.002061463428
-0.0001422961241
0.0001442570571
-0.0001244745086
0.001463553602
0.000163973822
0.001672607759
0.0006251851002
-0.0008840937893
-6.974016416e-05
6.420303662e-05
-5.155450473e-05
0.0003997616372
7.631412388e-05
0.0005148232003
1.411524523e-05
-8.611533343e-05
-5.476148848e-06
2.222899132e-06
-4.274108592e-07
0
5.146428834e-06
1.074317263e-06
0
0
0
0
0
0
0
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.287841036e-06
0
0
-7.121555194e-06
1.448007572e-06
3.768610687e-05
-1.930347494e-05
9.757359665e-05
0.0004201411252
-0.0002519276823
4.945296915e-05
-0.0001164998327
7.679805311e-05
0.00061821821
-0.000162445035
0.0008411276574
0.001297200202
-0.001066272014
0.0001494583575
-0.0002070515043
0.0001619674523
0.00152095015
-0.0002528427353
0.001852100422
0.002080664633
-0.001918124604
0.0001503657126
-0.0001541650367
0.0001320536679
0.002214261815
-0.0001733187328
0.00257996122
0.002424931721
-0.002387169842
5.424406685e-05
-2.290254134e-05
2.627782566e-05
0.00243018436
-1.72836883e-05
0.002795095847
0.002256984765
-0.002345268979
-4.425595453e-05
7.970565706e-05
-6.026997253e-05
0.002140113221
0.0001009435911
0.002493672689
0.00164363924
-0.001830117271
-8.129867771e-05
0.0001027008103
-8.01503075e-05
0.001441980978
0.0001273427498
0.001749558374
0.0008028821761
-0.001015228771
-6.031915444e-05
6.74567053e-05
-5.017460063e-05
0.0006006057448
8.580557243e-05
0.0008071115469
0.0001300369795
-0.000256483631
-1.62694314e-05
1.554011402e-05
-6.863439673e-06
4.400618356e-05
2.65175393e-05
0.0001061347043
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.061485451e-06
0
0
-6.469879202e-06
6.222018411e-07
3.684528719e-05
-2.111652146e-05
0.0001190199589
0.000266079292
-0.0001715948731
1.789891876e-05
-5.033395663e-05
2.598978972e-05
0.000370096974
-8.192609272e-05
0.0006058653562
0.0006785299203
-0.0005818918587
4.030425889e-05
-6.074268533e-05
3.986490118e-05
0.0007627846351
-8.397082852e-05
0.001091905237
0.000910111734
-0.0008807777879
2.455672501e-05
-2.176730811e-05
1.669522668e-05
0.0009182155879
-2.547140751e-05
0.001271240138
0.0008185587819
-0.0008713341996
-5.834512432e-06
1.900959769e-05
-1.122803686e-05
0.0007488894893
2.967107268e-05
0.001065146496
0.0004699157365
-0.0005708240348
-1.744342532e-05
2.799343267e-05
-1.623399927e-05
0.0003670026402
4.263108181e-05
0.0005908357657
9.843320204e-05
-0.0001756796553
-6.284374107e-06
9.845442106e-06
-2.712103924e-06
4.129390832e-05
2.070674638e-05
0.0001249421236
0
-3.61199937e-08
0
0
0
0
1.882018411e-08
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.330840658e-06
1.06172976e-05
1.204743602e-05
-4.836995889e-06
0
-2.1908731e-06
1.315993984e-10
2.047658643e-05
-9.77754741e-06
0.0001005670369
4.305265384e-05
-3.745308736e-05
1.857155654e-07
-2.148673996e-06
1.791279924e-07
4.516009881e-05
-6.00639376e-06
0.0001603537766
3.027782244e-05
-3.814080327e-05
-3.966716905e-09
6.621737762e-07
-7.700630499e-09
2.140326188e-05
2.528030037e-06
0.0001024118619
8.121076678e-07
-5.552345344e-06
0
4.002569718e-08
0
0
1.995927329e-06
1.199858241e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.023889742e-05
0.0008621328981
-0.0008603415794
0.000860348985
-1.024630303e-05
-1.294967755e-05
-0.001709035812
0.0001463162061
0.001708481852
-0.0001337757306
0.0001340083924
-0.001709268474
-0.000134206809
-0.001716006612
-7.870578903e-06
0.0009034375849
-0.0009000921211
0.0009000921211
-7.870578903e-06
-1.07104319e-05
-0.0007754878043
-1.713891529e-05
-2.905983324e-05
0.0001536670443
-0.0009000950154
-0.0009034389515
-2.905843566e-05
-1.146242117e-05
-0.0004318687731
0.0004312001514
-0.0004318134684
-0.0001343732128
-0.001724090752
0.001733607135
-0.001733126951
-0.0001348533964
-0.0001459505349
-1.869273865e-05
0.001346635071
-0.001336599515
0.001347012907
-2.910613104e-05
-3.871922107e-05
-0.001325405382
-4.493908997e-05
-0.001241377669
4.698774979e-05
0.001249599691
-0.001252880186
-4.16585959e-05
-5.86748545e-05
0.0001783405839
0.001411075289
-0.00140849804
0.001408565058
0.0001782735663
0.0001671789393
-0.001471949371
-3.377218314e-05
4.496614606e-05
-4.498252667e-05
-0.001471932991
4.501615999e-05
-0.001480845516
4.518944584e-05
-4.520070781e-05
-0.001415897441
0.001424524463
4.511212549e-05
-0.001424447142
3.389215131e-05
0.0001759321218
0.001490703491
-0.001482384747
0.001481912917
0.0001764039517
0.0001654733384
-0.001552757367
-3.391668375e-05
4.502306029e-05
-4.504513204e-05
-0.001552735295
4.500000899e-05
-0.001562106338
4.506881992e-05
-0.001490783448
0.001501646681
-0.001501630256
4.50523947e-05
3.398610328e-05
0.0001733986471
0.001566325655
-0.001554540282
0.001554137944
0.0001738009852
0.0001625324899
-0.001632030809
-3.39587674e-05
4.505262364e-05
-4.500211368e-05
-0.001632081319
4.50282396e-05
-0.00164179135
4.50509669e-05
-0.00157227091
0.001582610317
-0.001582585777
4.50264271e-05
3.390587553e-05
-0.0004009695897
3.924707358e-06
-2.886609573e-06
2.966890014e-06
-2.882034145e-06
-0.001713043487
0.000858071116
-3.446059363e-05
4.495838764e-05
-4.51274902e-05
-0.001712874385
4.493810019e-05
-0.001722670322
4.500336581e-05
-0.001652268054
0.001662466925
-0.001662441069
4.497750991e-05
3.392819815e-05
-0.0004218761185
4.507549836e-06
-3.703115922e-06
3.260576052e-06
-0.0004214335786
-3.885712229e-06
-0.0004218940064
-3.078021115e-06
3.249308006e-06
0.0004124684028
-3.068920865e-06
-4.220320128e-06
-0.0008396735765
5.076212819e-05
-4.724624732e-05
4.786622776e-05
-0.000840293557
-4.745878852e-05
-0.0008418380201
-0.00173408745
0.00089758723
-2.534416489e-05
4.130632113e-05
-4.045340874e-05
-0.001734940362
4.130632115e-05
-0.001803529143
4.492868709e-05
-0.001731818376
0.001741852869
-0.001741844218
4.492003661e-05
0.0008706911366
3.342884012e-05
-1.028958299e-05
1.028870858e-05
0.0008821794642
-0.0008809769476
0.0008810599998
-1.037263516e-05
-1.299883925e-05
3.005761751e-05
-3.004985758e-05
-0.000355210432
3.019884762e-05
2.924519558e-05
-0.0007394434191
6.848684241e-06
0.0003700638057
-3.984026649e-06
3.916355411e-06
-0.0007393757479
-0.0007408424347
-3.912334195e-06
3.913265857e-06
-0.0007245475949
0.0007275941207
-0.0007275261207
-3.980334261e-06
-6.688660939e-06
5.508099133e-06
-5.493034554e-06
0.0003701228268
-0.0003702050279
0.0003701899426
5.523184405e-06
4.60460859e-06
0.0003666976476
-3.222331494e-05
3.183807025e-05
-3.172777988e-05
0.0003665873572
3.176466653e-05
0.0003660433841
2.97086484e-05
-2.997844267e-05
-0.0003734962077
2.954540739e-05
2.894943351e-05
0.0003566792454
-2.936507064e-05
3.011808965e-05
-3.008354169e-05
3.166267932e-05
0.0003644351475
-0.0003627156522
0.0003628825237
3.14958078e-05
3.160321611e-05
0.0003720740017
-4.443039733e-06
5.338268033e-06
-5.321715331e-06
0.000372057449
0.0003706742842
5.932122846e-05
-5.937025943e-05
0.0007844723348
-0.0007824066992
0.0007821599171
5.956801058e-05
5.716190719e-05
0.0003755296928
-3.080347965e-05
3.012116452e-05
-3.030244595e-05
-0.0004106075359
4.863176234e-06
-3.329975308e-06
3.417763424e-06
-2.876200977e-06
0.000402399341
-2.87124984e-06
-3.567716601e-06
-3.886776331e-06
-0.0004225076703
0.0004227150205
-0.0004228899966
-3.711800307e-06
-5.248210485e-06
0.0008467065539
1.297101777e-05
-1.019712947e-05
1.019089967e-05
0.0008467127837
0.0008451545545
-1.020453495e-05
-4.748354894e-05
-0.0008437221669
0.0008456603917
-0.0008454728527
-4.767108793e-05
-5.085814461e-05
0.0008885049659
1.357418742e-05
-1.037092606e-05
1.037074484e-05
0.0008885051471
0.0008841909069
-0.001398708398
-3.430984507e-05
4.533757524e-05
-4.547280875e-05
-0.001398573165
-0.001407839091
4.665300011e-05
-4.92242283e-05
-0.001359132798
0.001354195911
4.614611235e-05
-0.001353689023
3.534840676e-05
-0.0006869915925
6.140371181e-06
-3.523594857e-06
3.437520005e-06
-0.0006869055177
-3.585476676e-06
-0.0006889529532
-2.062996879e-06
-3.707007611e-07
0.0006803812816
6.682545898e-07
-3.122030126e-06
-0.0007207361845
6.700031811e-06
-3.914695536e-06
3.916119425e-06
-0.0007207376084
-0.000722713109
-3.925970456e-06
3.926891625e-06
-0.0007063743067
0.0007090883162
-0.0007090899865
-3.924300183e-06
-6.790087647e-06
0.0001715671887
-0.001632479933
0.0001715858037
0.0001602963147
2.852531862e-05
-2.888393827e-05
0.0008713396761
-0.0008704022963
0.0008702992906
2.862832426e-05
2.377969786e-05
-0.0007034103232
6.525096093e-06
-3.861943889e-06
3.863097065e-06
-0.0007034114764
-0.0007047032711
-3.62510587e-06
-0.0006897028835
0.0006924521456
-0.000692393493
-3.683758448e-06
-6.54295358e-06
0.0006829205076
-6.667475408e-05
6.98321315e-05
-7.414277159e-05
0.0006872311476
6.908092665e-05
0.0006793083435
0.0008082691398
-5.545325384e-05
5.858743793e-05
-5.841131537e-05
0.0008080930173
5.871994943e-05
0.000806100848
5.811628807e-05
-5.776439144e-05
-0.0008203928258
5.790574878e-05
5.493222833e-05
0.0007910997483
-5.610144651e-05
5.934642459e-05
-5.902734912e-05
0.0007907806729
0.0007874968408
5.872835705e-05
0.0008034722155
-0.0008030477328
0.0008029484232
5.882766669e-05
5.597000103e-05
-9.67932066e-06
-0.0006419713943
0.0006412805873
-0.000642067614
-8.892293933e-06
0.0006408531963
-2.783078229e-05
-2.360137639e-05
0.0007074803671
-0.0006956458681
0.0006851245677
-1.308007595e-05
-2.533118561e-05
-0.0006874241084
0.0006420722593
-4.621343035e-05
5.308228333e-05
-5.732729102e-05
0.000646317267
0.0006410069158
0.0003514420949
-2.708224084e-05
2.728041883e-05
-2.681421427e-05
3.238434906e-05
-2.430752454e-06
2.441489117e-06
0.0004171812341
-2.26754563e-06
-2.650418432e-06
-0.0003472328581
7.691236165e-06
-8.717558916e-06
7.632271457e-06
-0.0003461475707
-0.0003454554849
-5.562695333e-06
0.0003473190116
-3.683966618e-06
1.114717895e-06
5.409676512e-06
-5.522187611e-06
0.0003664452396
-0.0003657724854
0.0003660969592
0.000367706786
-4.687217667e-06
5.618243567e-06
-5.629674091e-06
0.0003677182165
0.0003671177688
2.922876575e-05
-2.898389788e-05
-0.0003689512045
2.953084976e-05
2.843488606e-05
0.0003703825336
-2.770013153e-05
2.895156817e-05
-2.903730407e-05
2.992903251e-05
-2.98772174e-05
-0.0003594221276
2.996764485e-05
2.917296293e-05
0.0003601766515
-2.93326762e-05
2.990879537e-05
-3.007095842e-05
-2.769915554e-05
-0.0003892964462
0.0003888737311
-0.000388799507
-2.777337958e-05
-2.776946837e-05
0.0004044187716
-2.630862378e-05
2.533322282e-05
-2.496281567e-05
0.0004040483644
0.0004035488364
2.344590758e-05
-2.317565786e-05
-0.0004079582695
2.373871359e-05
2.506813103e-05
1.506807745e-05
-1.46897352e-05
-0.0004258051535
1.4933298e-05
1.616741638e-05
5.037344281e-06
-4.653264343e-06
-0.0004390461293
6.051072279e-06
7.926520268e-06
4.130632114e-05
-0.001813558021
0.001822737573
-0.001822737573
4.130632115e-05
2.994366597e-05
-5.489792661e-06
-0.0009059425258
0.00090845146
-0.0009076086934
-6.332559239e-06
0.0009092986027
-9.171126123e-06
0.0004274851244
1.448765791e-05
0.0008725771417
-2.089905969e-05
2.86509449e-05
-2.886010491e-05
-5.521344148e-06
0.0003597447231
-0.0003494034929
0.0003600044964
-1.612234763e-05
-3.925603456e-06
-3.059099739e-06
3.059850302e-06
0.0003978397738
-3.059746292e-06
-4.197301761e-06
-0.00039604422
-3.052723448e-06
-0.0004159855002
3.310797917e-06
-2.533333309e-06
2.624699546e-06
0.0009093063385
-1.201113668e-05
1.569745059e-05
-1.485450155e-05
0.0009084633895
0.0009068159922
3.021044416e-05
-3.034208002e-05
-0.0003485430854
0.000352285625
-3.029827536e-05
3.023889418e-05
-3.030077951e-05
2.842898376e-05
-2.761392594e-05
-0.000378567921
2.916802792e-05
2.919246745e-05
0.0003802532314
-2.789729893e-05
2.816964767e-05
-2.876288324e-05
-2.79128785e-06
2.626877166e-06
0.0004081285388
-2.967045139e-06
-3.765251545e-06
-0.0004060581465
3.209287061e-06
-2.699235935e-06
2.700193418e-06
0.0004088376898
-2.267225753e-05
2.288133204e-05
-2.2588731e-05
0.000440269082
-2.873271275e-06
2.94870997e-06
-2.578794428e-06
6.308431024e-07
-0.0004525226307
0.0003365849554
-0.0003374256301
0.0001869320704
0.001345314655
-0.001335948335
0.0001886244829
0.001334255923
0.0001720839977
0.0008277288187
-5.418338344e-05
5.736610684e-05
-5.694690637e-05
-0.00167084234
0.001671110872
-0.0001356711153
-0.0001352951754
-0.0001769486217
0.0001825210944
0.001316346249
0.001310315718
6.794178419e-05
0.0006826174955
-0.0006772642184
7.171293661e-05
0.0006734930659
7.573596325e-05
-0.0008300700128
0.0008300103118
-4.789716025e-05
-4.774312191e-05
-6.774662903e-05
6.871590418e-05
0.0006904506949
0.0006885782048
3.406186201e-05
-0.0003471889489
0
0
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.392787039e-06
0
0
-3.793191524e-07
0
3.373471786e-06
8.83106546e-08
0
3.383333492e-06
0
0
-4.045244314e-06
5.8262966e-05
-8.588004639e-06
1.629323805e-05
-2.562656861e-05
-1.219042133e-06
3.531514776e-05
5.448882258e-06
-7.12824583e-07
1.460148647e-05
0
3.693361381e-06
-4.848652377e-06
0.0001225072811
-4.41678531e-05
5.133205513e-05
-5.602506162e-05
-4.125982241e-07
5.786482365e-05
3.230872715e-06
-1.063935201e-06
6.047280162e-06
4.379589629e-08
1.413884062e-05
3.068450761e-06
0.000125729436
-5.656719396e-05
5.229387506e-05
-4.53391173e-05
1.369872698e-06
3.645803466e-05
-4.504341893e-06
1.267353148e-06
-9.956262606e-06
-2.463997689e-08
9.687146951e-06
4.903531587e-06
6.160781285e-05
-2.654604466e-05
1.68926614e-05
-8.886150425e-06
1.029208803e-08
3.496988356e-06
-3.663257093e-06
2.10842055e-07
-1.139701117e-05
0
5.793435361e-08
9.309464727e-08
3.553487839e-06
-4.16042743e-07
0
0
0
0
0
0
-8.79501377e-07
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.320554786e-06
2.1412502e-05
0
3.905419164e-06
-1.887407707e-05
-4.833635729e-06
4.73279018e-05
6.728921992e-06
-9.089015908e-07
2.003797567e-05
0
2.850111533e-06
-4.248591858e-05
0.0002216509506
-8.634927086e-05
0.0001331834097
-0.0001851787548
-3.82567271e-05
0.0002399926654
5.422349896e-05
-3.0570364e-05
8.362976867e-05
1.348780888e-05
0.0001026864269
-6.688315195e-05
0.0004941150582
-0.0002953557969
0.0003492964946
-0.000399820023
-3.88591223e-05
0.0004452756647
6.222412226e-05
-4.391642217e-05
8.141901645e-05
2.768742359e-05
0.0002661507383
-2.627711215e-05
0.0006949173554
-0.0004839907896
0.0005146437614
-0.0005359901739
8.372670864e-07
0.0005471407401
1.093383054e-05
-1.06900616e-05
8.9756341e-06
8.799340119e-06
0.0003731000936
3.259896475e-05
0.0007259405315
-0.0005473758257
0.0005364638348
-0.0005143027488
3.482525621e-05
0.0004815047153
-4.283790055e-05
2.884831519e-05
-6.004383138e-05
-1.796214305e-05
0.0003513137909
5.761764242e-05
0.0005539676871
-0.0004388814877
0.0003880004973
-0.0003307797246
3.520641424e-05
0.0002698165241
-5.655367634e-05
3.817028738e-05
-7.785662187e-05
-2.301433275e-05
0.000203855846
4.059783284e-05
0.0002525045259
-0.0002080141013
0.0001487613768
-9.547216768e-05
1.034853467e-05
5.161888856e-05
-3.198438006e-05
1.726990791e-05
-4.966110024e-05
-6.535945073e-06
3.853704014e-05
5.977361909e-06
2.316599375e-05
-2.031610438e-05
4.181558533e-06
0
0
0
-1.308719013e-06
0
-6.75312951e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-2.607548758e-08
3.809780151e-06
0
6.577578137e-08
0
-1.020832026e-05
-5.736985282e-06
4.474897905e-05
3.524845058e-06
-4.912591124e-07
1.082036028e-05
0
1.293926823e-06
-6.882001025e-05
0.0002582623792
-0.0001020068557
0.0001779578172
-0.0002685983644
-9.627219345e-05
0.0003701883534
0.0001022176428
-6.847873198e-05
0.00014081144
4.078741105e-05
0.0001820127
-0.0001827797826
0.0007417812015
-0.0004791467842
0.0005921859858
-0.0007061698225
-0.0001581180544
0.0008182267013
0.0001931299677
-0.0001546281327
0.0002314358178
0.0001175897577
0.0005527031398
-0.0001606923238
0.001220740647
-0.00092554197
0.001025650766
-0.001116322381
-9.094202625e-05
0.001195675206
0.0001329919067
-0.0001178148924
0.0001452297899
0.0001003087014
0.0009185931539
-2.510688758e-05
0.001525735881
-0.001262146275
0.001314654016
-0.001352254662
3.318506869e-05
0.001374308031
-1.160731361e-05
2.508527819e-06
-2.210736765e-05
4.499873262e-06
0.001136043516
0.0001058671056
0.001583601591
-0.001380258016
0.001369550178
-0.001341813461
0.0001173290159
0.001296548206
-0.0001275063572
0.000102968666
-0.0001526736402
-8.025973393e-05
0.001122520254
0.0001581218699
0.001364276435
-0.001233685876
0.001153572701
-0.001057234609
0.0001232225512
0.0009465137433
-0.0001563634012
0.0001280984461
-0.0001861280551
-0.0001018299947
0.0008541657087
0.0001277437597
0.0008695682497
-0.0008243232217
0.0006945188025
-0.0005618152818
7.664383391e-05
0.0004315567161
-0.0001129230696
9.070269141e-05
-0.0001362471016
-6.946229834e-05
0.0004155787485
6.428243973e-05
0.000317044055
-0.0003098214704
0.0002022377332
-0.0001220879502
1.803334089e-05
5.740258922e-05
-5.26984816e-05
3.068166252e-05
-6.878027171e-05
-1.68137659e-05
5.880588364e-05
4.626390196e-06
8.356267192e-06
-1.558242062e-05
8.117298553e-07
0
0
0
-3.078610518e-07
0
-2.697235559e-06
0
0
0
-2.908050927e-05
0.0001223480523
-2.372069327e-05
8.134332534e-05
-9.974347574e-07
-0.000169999634
-8.65739891e-05
0.0002874717479
6.601323836e-05
-4.429577705e-05
9.074034077e-05
2.653793335e-05
0.0001184197555
-0.0002330613194
0.0006929305943
-0.0004287625399
0.0005790139623
-0.0007453172897
-0.0002722196083
0.0009012602196
0.0002857955225
-0.0002322401813
0.0003219255496
0.0001834484746
0.0005986194911
-0.0003494455302
0.00141833471
-0.001066496517
0.001229989095
-0.001389902701
-0.0002816857938
0.00153924705
0.0003328193237
-0.0003014892321
0.0003735346561
0.0002679743749
0.001214020947
-0.0002170661913
0.001962132181
-0.001673816566
0.00179026175
-0.001888854235
-0.0001079099145
0.001968414372
0.0001620397886
-0.0001594641184
0.0001639446767
0.0001540717881
0.001709637248
1.822115379e-06
0.002206004306
-0.002029496418
0.002073593819
-0.002102667894
8.933778641e-05
0.002118741441
-5.176601673e-05
4.323313533e-05
-5.778623149e-05
-3.297678851e-05
0.001946742329
0.000185032837
0.00223517128
-0.00212300712
0.002115579441
-0.002095385643
0.000225402313
0.002061104341
-0.0002203602329
0.0002003180309
-0.0002378450373
-0.0001774267692
0.001939577063
0.0002880399488
0.002094947265
-0.002010494886
0.001946717857
-0.001849883119
0.0002447920088
0.001732305145
-0.0002857393191
0.000258722654
-0.0003187185017
-0.0002172790375
0.001672595702
0.0002794097916
0.001628662967
-0.00160221676
0.001459834114
-0.001275846213
0.0001914433698
0.001068634331
-0.0002452696096
0.0002180818412
-0.0002513634562
-0.0001662831654
0.001102314814
0.0001394038464
0.0008111048494
-0.0008699802958
0.0006800816264
-0.0005010513604
7.717943283e-05
0.000340375546
-0.0001156258494
9.938256773e-05
-0.0001309276005
-8.316154465e-05
0.0003919601703
4.592227927e-05
0.0001497972685
-0.0002050475986
0.0001010671475
-3.269793968e-05
3.697100271e-06
2.476682518e-06
-2.469229481e-05
1.542816389e-05
-3.469876153e-05
-7.722247543e-06
1.279599477e-05
1.921609378e-08
-9.6038002e-05
0.000304060327
-0.0001370435814
0.0002628147468
-4.674249588e-05
-0.0004245364595
-0.0002136926032
0.0006080274689
0.000169861423
-0.0001436072312
0.0001880331132
0.0001169972055
0.0003585985816
-0.0003844853873
0.001129608171
-0.0008096037877
0.00102274965
-0.001239957506
-0.0004286410641
0.001454529637
0.0004325419736
-0.0003986146771
0.0004614105617
0.0003604949963
0.001116040945
-0.0004412624583
0.00198258917
-0.00166171206
0.001862987058
-0.00205825852
-0.0003844280725
0.002216147835
0.0004102018889
-0.0004219356618
0.0004045329747
0.0004047696659
0.001932113689
-0.0002341843442
0.00249467508
-0.002334181983
0.002409205465
-0.002425600681
-0.0001045257844
0.00242803247
0.000191156445
-0.0001673263186
0.0001850681232
0.0001618950126
0.002317441559
-2.627409732e-06
0.001242762792
5.357834332e-06
0.0012219713
-0.002422248414
0.002411306932
-0.002409304212
0.0001086120165
0.002408893864
-6.015494462e-05
-4.804672362e-05
5.992463309e-05
-3.554640141e-05
-2.237551143e-05
0.001234147156
2.078243448e-05
-6.067190502e-05
0.002369458489
0.001239021928
0.0001154416072
-0.001234715798
-0.002409631386
0.002421505215
-0.0001139689029
-0.0001050293173
-8.490316876e-05
-7.222618473e-05
-0.00242793012
0.0003143366667
0.00244020298
-0.0002701463957
0.0002637214902
-0.0001461816314
-0.001223560076
-0.0002543627357
0.002376077287
0.0004531139782
0.002509641815
-0.002461159455
0.002475538246
-0.00241512042
0.0004164374278
0.002299961207
-0.0004442656379
0.0004308935754
-0.0003690069288
0.002335991951
0.0003488854636
0.002134379901
-0.002172727581
0.002024018604
-0.001844862334
0.0002555124673
0.001639165153
-0.0003143012229
0.0002905129786
-0.0003383567846
-0.0002671457668
0.001716572598
0.000207115805
0.001276955704
-0.001413657123
0.001179137286
-0.0009417190355
0.0001336950539
0.0007000950899
-0.0001742919739
0.0001590978492
-0.0001890047128
-0.0001451403154
0.0008347599005
9.046637862e-05
0.0003755163255
-0.0004954725662
0.0003119498564
-0.000169432527
2.905877863e-05
6.849729844e-05
-6.297010678e-05
5.312233582e-05
-7.204551776e-05
-4.502586988e-05
0.00012900051
4.225040018e-05
-0.0001652309717
0.000484104976
-0.0002725220115
0.0004512895183
-0.0001341733753
-0.0006628980909
-0.0003178918751
0.0008988069726
0.0002494503926
-0.0002331558114
0.0002607334156
0.0002122876522
0.0006030468891
-0.0004785356891
0.001474034153
-0.001149810939
0.001406175955
-0.001658414613
-0.0005146225332
0.001897379911
0.0005167701684
-0.0005001181955
0.0005282269322
0.0004780949206
0.001550151966
-0.0004828524426
0.002388178161
-0.002109910903
0.002298517644
-0.002443178523
-0.0003288463811
0.002545468208
0.0004062938119
-0.0004060361719
0.0003985834283
0.0004028085522
0.002350543704
-0.0001783523729
0.002675033001
-0.002599501507
0.00260630962
-7.82212849e-05
-0.001304067865
5.969011822e-05
0.0001370314572
-0.0001354898619
0.001300368245
0.00130439978
0.001321800459
0.001354490499
6.887270543e-05
0.0001649251737
0.002606230625
0.001290466861
5.507582182e-05
-0.00129380456
0.001270848026
2.030624248e-07
6.521478562e-05
-0.001323853681
-3.516566396e-05
5.394168799e-05
-0.001326729426
0.0001060578174
0.001301099046
-6.901664472e-05
-0.00126527538
0.00127374571
-0.001258561881
-0.001280491166
0.0001341100083
0.001287091295
-0.0001210603129
0.0001143148569
-5.741035491e-05
-0.0001086287493
0.0001073850699
0.001258818069
0.001267037152
0.000443779848
0.002466283086
-0.002546007132
0.002417645315
-0.002249496262
0.0003435280299
0.002043125236
-0.0003977816883
0.0003889679774
-0.0004084759467
-0.0003650848974
0.002176705958
0.0002555113958
0.001625045556
-0.00181134182
0.001558005811
-0.001293636786
0.0001717611167
0.001028595342
-0.0002142837423
0.0002058182241
-0.0002209624958
-0.0001969364829
0.00121804029
0.0001197580966
0.0005842597874
-0.0007746193114
0.0005428450468
-0.0003430082299
5.932560076e-05
0.0001838185207
-9.206924848e-05
8.68000262e-05
-9.613218894e-05
-8.010365581e-05
0.0003050587311
0.0001573954363
-0.0001948498501
0.00058250254
-0.0003568847983
0.0005666638587
-0.0001899981432
-0.0008102041879
-0.0003709258687
0.001077382369
0.0002845788061
-0.0002813698996
0.000291325218
0.0002664896775
0.000768455649
-0.0005132644547
0.001669156838
-0.001357048047
0.00163762805
-0.001907427642
-0.0005446251317
0.0021553762
0.0005454963737
-0.0005423893011
0.0005495154493
0.000534202586
0.001845604261
-0.0004637407935
0.002589164996
-0.002371183145
0.00254607297
-0.002672712588
-0.00030856159
0.0003902333137
-0.0003909936657
0.0003886575551
0.0003948573743
0.002631994366
0.0001797572059
0.001376300241
-0.0001791774551
-0.001364109151
0.001362556617
-0.001359639448
0.0002050401407
-0.0001931666025
0.0001960837708
-0.0001909635474
0.0004752434836
0.002672510147
-0.00273268145
0.002637692097
-0.00249309656
0.0003840369623
0.00230214306
-0.0004387605613
0.0004304802907
-0.0004419347384
-0.0004170702593
0.002451449131
0.000288940835
0.001839985494
-0.002071943269
0.001811983772
-0.001533434397
0.0001978690408
0.001248054492
-0.0002419983789
0.0002374881964
-0.0002438162694
-0.0002252098803
0.001497837107
0.0001367141526
0.0007239553617
-0.0009677642617
0.0007047430903
-0.0004719911452
7.749078549e-05
0.0002784594203
-0.000108136614
0.0001060909861
-0.0001089354948
-0.0001071070647
0.0004478305306
0.0002603052978
-0.0002130391841
0.0006586428461
-0.0004124284297
0.0006407822902
-0.000227626613
-0.0009031426462
-0.0003909259407
0.001188618631
0.0003049044445
-0.0003007061789
0.0003090124795
0.0002964199956
0.0008807952541
-0.0005297288563
0.001815783391
-0.0014853493
0.001780932718
-0.002063115459
-0.0005530932507
0.002320122331
0.0005578578641
-0.0005552666138
0.0005603774884
0.0005525896303
0.002025557746
-0.0004625694377
0.002758501353
-0.00254106843
0.002716719373
-0.002839690308
-0.0003012887943
0.0003857448916
-0.0003866299309
0.0003849803463
0.0003875228221
0.002798817037
0.0001772194769
0.001452158503
-0.0001769075228
-0.001443361697
0.001443124217
-0.0007231343454
-0.001442758261
0.0001998326597
-0.0001883264414
0.0001886923977
-0.0001881530678
-0.0001889914331
0.000189217422
0.001433513105
0.0004805983367
0.002830126404
-0.002896951358
0.002803099653
-0.002653506045
0.000402276849
0.002454375311
-0.0004470835707
0.0004483817216
-0.0004432346706
-0.0004467569647
0.002623064791
0.0002967326649
0.00194843408
-0.002213815103
0.001942044724
-0.001650304023
0.000207364446
0.001350798673
-0.0002485597489
0.0002494025724
-0.0002456238018
-0.0002478348377
0.001635170414
0.0001400909296
0.0007751769002
-0.001056128324
0.0007785087017
-0.0005295756227
8.348551901e-05
0.0003197598496
-0.0001113399977
0.000111969177
-0.000109512091
-0.0001111855971
0.000524148822
0.0003160725522
-0.0002306995702
0.0007410821943
-0.0004722164459
0.0007197652399
-0.0002690336275
-0.001001377636
-0.0004097744015
0.001305330896
0.0003243395743
-0.0003193109931
0.0003294140825
0.0003140024582
0.0009745928818
-0.0005450238935
0.001968298587
-0.001619005777
0.001929395067
-0.002223544881
-0.0005600054269
0.002489192599
0.0005692444943
-0.0005663703923
0.000572113138
0.0005633761753
0.002180793566
-0.0004612636141
0.002936078945
-0.002715072964
0.002891692947
-0.003011578784
-0.0002955499516
0.0003815440534
-0.0003827208319
0.0003802511272
0.0003839284802
0.002967324142
-0.0007496564645
-4.432725956e-06
7.218041805e-06
-7.220306845e-06
7.285069943e-06
7.292378272e-06
-7.225324163e-06
0.0007467361217
0.0001747380059
0.001526810462
-0.000174461977
-0.001521446271
0.001521126034
-0.001520762907
0.0001971708523
-0.0001859418217
0.000186304949
-0.0001858057802
-0.0001865729584
0.0001868391607
0.001507102044
0.0004612181196
0.002917261014
-0.003019677531
0.002902418346
-0.002728655947
0.0003758754654
0.002508594784
-0.0004264281722
0.0004326957514
-0.0004183725004
-0.0004407195195
0.002715628488
0.0002775639688
0.001938903094
-0.002247030097
0.001953376404
-0.001645153641
0.0001999293525
0.001332875051
-0.0002328491595
0.000239391008
-0.0002264441742
-0.0002442375796
0.001654240788
0.0001300961738
0.0007249399361
-0.00102965891
0.0007478178512
-0.0004985863701
7.83469149e-05
0.0002917354393
-0.0001019373668
0.0001066335444
-9.822102702e-05
-0.0001088223056
0.0005177669547
0.0003079304417
-0.0002530352656
0.0008387708354
-0.0005422958373
0.0008093865425
-0.0003196683818
-0.001109996975
-0.0004305157827
0.001431849017
0.0003482593649
-0.0003400585522
0.0003518722412
0.0003347480591
0.001081925463
-0.0005618338093
0.002134656464
-0.00176163751
0.00208574618
-0.002390613012
-0.0005667648478
0.002663466883
0.0005810095407
-0.0005778710457
0.0005839854475
0.0005750052806
0.0023496222
-0.0004582906225
0.003114418632
-0.002892646734
0.003068383155
-0.003182975866
-0.0002885034055
0.0003757498409
-0.0003776040214
0.000374467843
0.0003789370779
0.003140846251
-0.0007899661913
-4.540323386e-06
7.313079299e-06
-7.243534553e-06
7.309577538e-06
7.247505163e-06
-7.323568547e-06
0.0007873868498
0.0001725739224
-0.000172175386
0.001604767936
-0.001594234551
0.001594044751
0.0004247549588
0.002935680909
-0.003101265385
0.002944072268
-0.002732415073
0.0003473055732
0.002475494004
-0.0003865805414
0.0003942763563
-0.0003677939831
-0.0004045509673
0.002729095169
0.0002474121921
0.001837870182
-0.002184054256
0.001869453411
-0.001544873205
0.0001886074538
0.001223628554
-0.0002059227257
0.0002084161208
-0.0002005855511
-0.0002209215897
0.001555280974
0.0001118054693
0.0006141314112
-0.0009192521637
0.0006435906249
-0.0004066481011
6.381857713e-05
0.000217434381
-8.448110471e-05
9.106789841e-05
-8.109984675e-05
-9.542456724e-05
0.0004408655866
0.0002441347003
-0.0002801105967
0.0009536109771
-0.0006117681693
0.0009167611667
-0.0003721272893
-0.001237635943
-0.0004553426789
0.001577763842
0.000376938835
-0.0003653829944
0.0003720956334
0.0003584277196
0.001202657154
-0.0005816362339
0.002320819756
-0.001923284792
0.002259957363
-0.002573821364
-0.0005735695206
0.002851385791
0.0005945081356
-0.0005905770577
0.000597476134
0.0005872321998
0.002527488425
-0.0004538624354
0.003302719344
-0.003081002728
0.003252462642
-0.003358317982
-0.0002796673787
0.0003675676281
-0.0003705632947
0.0003659793082
0.0003726435033
0.003314323417
-0.0008303599878
-4.783271926e-06
7.46345073e-06
-7.468903794e-06
7.380753945e-06
7.474831138e-06
-7.480047143e-06
0.0008276987483
0.0003705829511
0.002882509947
-0.003116628434
0.002901769539
-0.002638913563
0.000303303866
0.002337670454
-0.000331415132
0.0003473783933
-0.0003222430145
-0.0003606945891
0.002677171224
0.00020912776
0.001640044274
-0.00203542193
0.001701757482
-0.001366955
0.0001479264674
0.001043909057
-0.0001744623093
0.0001794266635
-0.0001641505009
-0.0001889461425
0.001405017328
8.920612388e-05
0.000441175836
-0.0007463802205
0.0004856216254
-0.0002725526642
4.333607438e-05
0.0001234861125
-6.289964394e-05
6.649702089e-05
-5.539618009e-05
-7.306609953e-05
0.0003000596209
0.0001515678215
-0.0003138689449
0.001072479377
-0.0007565618117
0.001075025786
-0.0004811944124
-0.001423505908
-0.0004910170653
0.0017876959
0.0004119610756
-0.0004032957386
0.0004162643169
0.0003910603367
0.001362854274
-0.0006032604437
0.002477897916
-0.00215276865
0.002503720072
-0.002826041993
-0.0005792663591
0.003106622278
0.0006079176441
-0.0006048855578
0.0006066970809
0.0005968398074
0.002723926347
-0.0004435206384
0.003435509902
-0.003333650424
0.00349752546
-0.003591658631
-0.0002697856543
0.0003523602245
-0.0003594687578
0.0003482922522
0.0003633411112
0.003502138228
-1.029952576e-05
0.0008719101575
1.029593259e-05
-0.0008708576019
0.0008708611892
-0.0008708659359
-5.099063303e-06
7.607848447e-06
-7.612595194e-06
7.684293674e-06
7.6978408e-06
-7.623076991e-06
0.0008682749394
2.863981706e-05
0.0008665650775
-2.890223784e-05
-0.0008650384513
0.0008647754776
-0.0008648619557
3.587171613e-05
-3.288674827e-05
3.280027018e-05
-3.308526855e-05
-3.298299086e-05
0.0008628528605
0.0008622785666
0.0003671468509
0.003510667416
-0.0035294729
0.003502665246
-0.001767436893
-0.003409858878
0.0003925985177
0.0032418735
-0.000386389328
0.0003918397906
-0.0004041084028
-0.0003951560037
0.003408211107
0.0003124234775
0.002710129698
-0.003026946357
0.002755103543
-0.002465541641
0.0002459153699
0.002129828662
-0.0002887471563
0.0002897932341
-0.0002629421139
-0.0003096082646
0.002506561963
0.0001667676962
0.001371344424
-0.001782012783
0.00143658999
-0.001102495798
0.0001212981887
0.0007960193168
-0.0001364443748
0.0001502444248
-0.0001295617018
-0.0001582136523
0.001183810876
6.406370348e-05
0.0002672226856
-0.0005268948336
0.0003172211156
-0.0001485359394
2.224401223e-05
4.123406867e-05
-3.874399931e-05
4.539018555e-05
-3.104228533e-05
-5.096999959e-05
0.0001802060847
5.828830821e-05
-0.0002749205448
0.001017592857
-0.0007455233891
0.001073249188
-0.0004650307234
-0.001434125888
-0.0004765710521
0.001812489296
0.0003677498367
-0.0003906181584
0.0003389951878
0.0004069345553
0.00147110675
-0.000563521029
0.002497561359
-0.002191857614
0.002555846527
-0.002889026022
-0.0005692020487
0.003177745817
0.0005769037587
-0.0005918909001
0.0005560627738
0.0006016313056
0.002911684441
-0.0004506341475
0.003566322486
-0.003410939911
0.003580743644
-0.003683013104
-0.000274986146
0.0003721097386
-0.0003624944295
0.0003806347477
0.0003539416245
0.003659716868
5.029915109e-06
-5.029915113e-06
0.0009084537901
5.029915122e-06
0.0009084537901
2.188936331e-06
8.367968979e-05
0.001843639998
-8.367968978e-05
-0.00183361112
0.00183361112
-9.504238782e-05
0.001822737573
-9.504238782e-05
-0.0001064047455
0.001822737573
0.0003338078574
0.00351235459
-0.00366298702
0.003546539603
-0.003365973869
0.0003240413016
0.003126986133
-0.0003297512178
0.0003421205121
-0.0003139931696
-0.0003564662851
0.003393697209
0.0002479299356
0.002431368553
-0.002838216214
0.002513162115
-0.002161878749
0.0001990500516
0.00179932606
-0.0002120342982
0.0002340766873
-0.0002008012333
-0.0002443174492
0.002246657945
0.0001288024581
0.001025121673
-0.001453205694
0.001121626294
-0.0008126590375
8.750806375e-05
0.0005392312782
-0.0001040469797
0.0001116623602
-9.120540586e-05
-0.0001181193167
0.000886386951
3.397083605e-05
0.0001071879743
-0.0003121022913
0.0001409166812
-3.549857811e-05
4.819976704e-06
1.544833651e-07
-1.45851402e-05
1.902426874e-05
-1.009782731e-05
-2.585117056e-05
5.782411905e-05
3.410574671e-06
-0.0001548870489
0.0006359038325
-0.0004750226477
0.000749882677
-0.0002555995968
-0.001068514245
-0.0003458456039
0.001417261941
0.0002275633745
-0.0002676458015
0.0001865619928
0.0003052406171
0.001189047031
-0.0004212329495
0.001969349062
-0.00178123718
0.002145271374
-0.002494855422
-0.0004999503494
0.002817058667
0.0004550678269
-0.0004951432218
0.0004093496369
0.0005288721002
0.002640914798
-0.0004261603938
0.003186317838
-0.003101421222
0.003340610706
-0.003530876128
-0.0003220411063
0.003672285329
0.0003800887775
-0.0003862202199
0.0003667817126
0.0003859495272
0.003620275772
-0.0001992227957
0.003764001965
-0.003768610505
0.003826876683
-0.003856481671
-7.506049095e-05
0.003867754285
0.000139289619
-0.0001291852933
0.0001462487206
0.0001177693673
0.003835255913
1.737173511e-05
0.003860757266
-0.00387010093
0.003869858141
-0.00386683596
0.0001106017638
0.003858209149
-6.428380503e-05
6.509903949e-05
-5.978342282e-05
-6.509903949e-05
3.823069858e-05
0.00383680795
0.0001914841182
0.003706187183
-0.003835808578
0.003789730565
-0.003710789471
0.0002631208091
0.003591999007
-0.0002235518929
0.0002355460673
-0.0002073939956
-0.0002432979248
0.003768078353
0.0002594270053
0.003052677507
-0.003429447268
0.003222574483
-0.002973996742
0.0002552473723
0.002689114839
-0.0002499675783
0.0002736559553
-0.0002246886757
-0.0002951586411
0.003119351305
0.0001832802831
0.001866582859
-0.002375621547
0.002042917974
-0.001701609645
0.000145842293
0.001363064615
-0.000157274439
0.0001730451034
-0.0001406971413
-0.0001876740508
0.001847969289
8.759032012e-05
0.0006298073352
-0.001038961958
0.0007409535543
-0.0004803366919
5.3898721e-05
0.000267654266
-6.629152269e-05
7.573695008e-05
-5.592961328e-05
-8.407856913e-05
0.0005638979782
9.399821189e-06
7.73194911e-06
-0.0001123192446
2.217282441e-05
0
0
0
-1.364884852e-06
3.140745252e-06
-2.206189122e-07
-5.322983357e-06
6.305635321e-07
0
-3.776270671e-05
0.0001815518911
-0.000129608988
0.0002835548191
-3.43457537e-05
-0.0004891712701
-0.0001618495428
0.0007372511137
7.452955183e-05
-0.0001084154038
4.602142898e-05
0.0001462817666
0.0006374868291
-0.0002129518503
0.001077148393
-0.001016898302
0.001316229706
-0.001623112568
-0.0003324848223
0.001925906818
0.0002519717049
-0.0003060477294
0.0001990044902
0.00035913659
0.001874867657
-0.0002972641179
0.002175851348
-0.002214207756
0.00247939351
-0.002714985318
-0.000286797642
0.002916825239
0.0002852885134
-0.0003186433677
0.0002475496177
0.0003461422376
0.002985104323
-0.0001885133975
0.002917780707
-0.003082948312
0.003213230052
-0.003308870546
-9.862455702e-05
0.003371728829
0.0001446087391
-0.0001491415746
0.0001361117637
0.0001496388438
0.00354169359
-1.003455881e-05
0.003125377431
-0.003403666601
0.003406021744
-0.003379300522
8.155610389e-05
0.003323174843
-3.04860647e-05
4.187819636e-05
-1.903721202e-05
-5.201559463e-05
0.003602851578
0.0001228755803
0.002824381511
-0.003236760237
0.003119092352
-0.00296967453
0.0001780846675
0.002788968348
-0.0001410062738
0.000165081516
-0.0001166466966
-0.0001875967082
0.003227342559
0.0001535627549
0.002053075999
-0.002578733256
0.002342215182
-0.0020841139
0.0001586363757
0.001810459143
-0.0001459392775
0.0001719936304
-0.000120913385
-0.0001984635956
0.002345209492
0.0001049027612
0.001024870984
-0.001528415007
0.001245996047
-0.0009718382317
8.793707256e-05
0.0007149838593
-8.875295791e-05
0.0001061987469
-7.150872181e-05
-0.0001235877148
0.001166797786
3.879087289e-05
0.0001900681947
-0.0004846190773
0.000289852681
-0.000139440833
1.74909792e-05
4.140860694e-05
-2.287648349e-05
3.371717486e-05
-1.319565725e-05
-4.492987958e-05
0.0002171850539
0
0
-2.255349971e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
7.233376675e-06
0
-4.865664182e-05
-2.589560429e-05
0.0001349288804
1.881721133e-06
-9.169618609e-06
0
2.399281616e-05
0.000122066807
-4.470561124e-05
0.0002482774344
-0.000260254754
0.0004173572215
-0.0005979728895
-0.0001297127124
0.0007933247854
6.675323313e-05
-0.0001046105539
3.689173924e-05
0.0001492470608
0.0008368144456
-0.000119651807
0.0008845912292
-0.0009946430214
0.001193610652
-0.001382725417
-0.0001621573446
0.001555589847
0.0001265925019
-0.0001662363504
9.013211525e-05
0.0002072203765
0.001729980104
-0.0001082099645
0.001454200961
-0.001707035284
0.001833131169
-0.001931122714
-8.228245065e-05
0.001999270142
9.13809489e-05
-0.0001087883288
7.278372125e-05
0.0001239781403
0.002316807893
-2.711249183e-05
0.001651954182
-0.002036673704
0.002043123579
-0.002018978528
2.402400777e-05
0.001965114155
5.726618388e-06
2.058923489e-07
8.977884842e-06
-8.648510734e-06
0.00240337595
4.344974128e-05
0.001411913829
-0.001882926127
0.001774376176
-0.001642056946
7.865963674e-05
0.00148924805
-5.294257996e-05
7.174201737e-05
-3.720920542e-05
-9.322245889e-05
0.001996849737
6.005926613e-05
0.0008518711017
-0.00131994003
0.00113884608
-0.000951337604
6.904204998e-05
0.0007633847698
-5.647317957e-05
7.584741153e-05
-3.950873748e-05
-9.742454302e-05
0.00123049003
3.440045737e-05
0.0002513535557
-0.0005814789532
0.0004125010464
-0.0002636086207
2.746556673e-05
0.0001420875241
-2.488079648e-05
3.904772142e-05
-1.307746046e-05
-5.479471031e-05
0.0004159038418
1.685557006e-06
2.003541872e-08
-5.512878522e-05
9.57599249e-06
0
0
0
-2.98661625e-09
1.409040156e-06
0
-5.663487957e-06
5.025271624e-06
0
0
0
0
0
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.163559019e-06
-2.249181864e-05
-9.989907126e-06
6.12289571e-05
9.261059237e-08
-3.747392803e-06
0
1.580331868e-05
9.3093663e-05
-9.586102924e-06
6.571939684e-05
-0.0001180000721
0.000187178952
-0.0002631138858
-3.794899271e-05
0.0003404035933
1.451713974e-05
-3.298842845e-05
3.556623501e-06
5.850102353e-05
0.0004773311277
-2.255503105e-05
0.0002561116658
-0.000414117429
0.0004799628438
-0.0005344130114
-3.148396466e-05
0.000574768285
2.178929521e-05
-3.678542036e-05
1.020846825e-05
5.417915107e-05
0.0008310855697
-1.113400051e-05
0.0003504726338
-0.0005991803207
0.0006066523072
-0.0005970097167
-9.08673956e-07
0.0005708655624
6.257749121e-06
-8.598050681e-06
3.57414509e-06
9.756493271e-06
0.0009050443086
5.90143561e-06
0.000256446276
-0.0005295783598
0.0004752079363
-0.0004104700398
1.708088897e-05
0.0003386875993
-8.060116543e-06
1.501479399e-05
-3.40566729e-06
-2.462604218e-05
0.0006651592935
7.494235806e-06
6.927000871e-05
-0.0002637353904
0.0001899888034
-0.000122244881
1.020306692e-05
6.564497411e-05
-5.448928548e-06
1.369764451e-05
-8.722211116e-07
-2.516786317e-05
0.0002671151376
1.123367131e-07
0
-2.557400636e-05
5.523532249e-06
0
0
0
0
5.625631803e-07
0
-4.610977503e-06
1.005079556e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.820665636e-08
5.164390595e-07
0
0
0
2.118837898e-09
-7.143571339e-07
-1.224121684e-07
2.026262149e-06
0
-3.73479075e-08
0
2.815224571e-06
2.937715262e-05
0
0
-3.15826541e-06
3.625439219e-06
-3.252487674e-06
-4.091286599e-08
2.178734543e-06
0
-1.161847172e-07
0
1.329073619e-06
4.342010499e-05
0
0
-8.534760238e-07
2.255320709e-08
0
0
0
0
4.20521128e-10
0
-7.711547652e-07
1.29564326e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.0007033938278
-7.127806961e-05
7.448429656e-05
-7.468125669e-05
7.448025086e-05
7.414823545e-05
-7.382161716e-05
-0.0007043968595
0.0007432021634
-6.960528029e-05
7.256433807e-05
-7.241368841e-05
7.244717558e-05
7.233703584e-05
-7.218376661e-05
-0.0007449779665
0.0007148004847
-7.066688273e-05
7.355144038e-05
-7.348266775e-05
7.340588781e-05
-7.353358064e-05
-0.0007163445031
-0.0007797991265
-4.478280216e-06
7.254482125e-06
-7.18586199e-06
7.261216294e-06
-7.336340431e-06
0.0007779428148
0.0007797217075
-0.0007796981247
-6.80472907e-05
7.133271123e-05
-7.086186476e-05
7.119225287e-05
0.0007504240753
-6.934507606e-05
7.202906995e-05
-7.201284748e-05
7.234617784e-05
-7.190814675e-05
-0.0007524045502
-0.0008195733524
-4.647562887e-06
7.408958652e-06
-7.414167346e-06
7.343520333e-06
-7.42338188e-06
0.0008172229496
-0.0008602751341
-5.038141186e-06
7.628589338e-06
-7.554738397e-06
7.638632364e-06
-0.0008554908265
-7.644826658e-06
0.0008581638689
-0.0008580799749
0.0008580754235
-1.025085439e-05
-1.025660182e-05
-0.0001349505391
-0.001689636561
0.001698366088
-0.001699308235
0.001698200832
0.001699340651
-0.000111463903
-0.0008483414262
0.0001244787637
-0.0001244463472
0.0001252980406
-0.0001251265653
-0.00170841678
-0.000900092436
-2.188842429e-06
5.02966719e-06
-5.02998215e-06
5.02998215e-06
-0.0008363566829
-4.49850917e-06
0.00089758723
-0.00089758723
0.00089758723
-7.870578901e-06
-8.043156856e-06
1.701365361e-05
-0.000906452815
0.0009276889394
-0.0007570082415
0.0009094342507
0.0007211762401
-2.508917453e-05
-9.599943067e-06
-2.62320583e-05
2.622499871e-05
-2.622043634e-05
-0.000900102075
0.0004329691531
-1.134001158e-05
1.202720682e-05
-1.087152213e-05
9.908226783e-06
-9.273788476e-06
-0.0004329377345
0.0008890324813
2.477605126e-05
2.781231402e-05
0.001763068347
-0.0001125842987
0.0001271674955
-0.0001300085204
0.001765909372
0.0001251475633
0.001757742724
0.0001367678877
-0.0001625969046
-0.001770989201
0.001733767867
-0.0001144728118
0.0001247632625
-0.0001241223467
0.0001240102002
0.001749907514
-0.001743152005
0.001743039858
-2.79996763e-06
-0.000676159021
8.756642259e-06
1.349762825e-05
-3.881299267e-05
0.0006834863865
0.0006888418849
0.0006681495944
0.0006727328015
2.884795991e-05
-0.001320126806
0.001333727477
-0.001343692509
0.0006746263647
1.498594149e-05
0.001342711426
-0.001325155534
-3.008721395e-05
-3.520679333e-05
0.001256909531
-1.232751568e-05
-0.00125500333
2.239580503e-05
-1.836645915e-05
3.067902145e-05
1.950083421e-05
0.001284732758
-3.249492693e-06
-0.001269185221
0.001270319596
-0.001262769527
-3.410852736e-05
-1.248756003e-05
0.001271239319
-0.0001501700755
0.0001553388437
-0.0001682410994
0.001284141574
0.001259480337
0.0001814075255
0.001321082185
-0.001296252809
0.001309419235
-0.00131013168
0.0002006994236
0.001301508055
-0.0001919200282
0.0001912075833
-0.001407846191
0.0002024878248
-0.0001893118172
0.0001900306837
-0.0001899927232
-0.001386479024
0.001392061559
-0.001392023598
0.001392496504
0.000178746472
4.500184429e-05
-4.501454679e-05
-0.001452429758
0.001462676763
-0.001462657446
-5.619492725e-05
5.624467498e-05
-0.001471914632
-5.621328598e-05
-6.738551902e-05
-0.001433177912
4.50323942e-05
-0.001433098181
-0.00144320107
-0.001481650653
0.0001987852545
-0.0001871767738
0.0001874390372
-0.0001877622628
-0.001463006279
0.001471629503
-0.001471952729
0.001472144195
-0.0007346283628
0.0001765954184
4.506451793e-05
-0.001533181071
-4.508463074e-05
0.001542442626
-0.00154242324
0.001542401406
6.736312243e-05
-5.621415124e-05
5.61923177e-05
-5.62350022e-05
-5.617219485e-05
5.614839882e-05
-0.001552715173
0.001501678713
6.744529601e-05
-5.62258005e-05
5.627425724e-05
-5.625487359e-05
0.001522584284
-0.001512047116
0.0015120665
-0.001512085615
4.503327958e-05
-0.0007598179265
-4.495649584e-06
7.27800686e-06
-7.209795566e-06
7.275978559e-06
7.212785897e-06
0.0007573125832
-0.001553795328
0.000196355051
-0.0001848710281
0.0001852136435
-0.0001836819891
-0.0001855175649
-0.001536759209
0.001545101866
-0.001545405787
0.001545851048
0.0001742462464
4.502839953e-05
-0.001611300438
-4.49778206e-05
0.001622016274
-0.001621989988
0.00162204175
6.725706143e-05
-5.610279676e-05
5.615455879e-05
-5.60541606e-05
-5.605411703e-05
5.610752197e-05
-0.001631980877
0.001582562709
6.734730449e-05
-5.612631156e-05
5.610324312e-05
-5.607919311e-05
0.001602334754
-0.00159265955
0.0015926836
-0.001592707414
4.500261363e-05
-0.0008002153805
-4.527615864e-06
7.296913686e-06
-7.301854914e-06
7.217527579e-06
7.23161999e-06
0.0007976332316
-2.970850726e-06
3.051285655e-06
0.00040041598
0.0003958926856
-2.649489696e-05
2.657434499e-05
-2.627107182e-05
2.665464184e-05
2.611640392e-05
-2.600225714e-05
-0.0003958436262
4.498697813e-05
-0.001692107375
-4.500997878e-05
0.001701755057
-0.001701895569
0.0008488863014
0.001701883042
6.719919255e-05
-0.00170179244
-5.608334939e-05
5.607082246e-05
-5.610001334e-05
-5.598481118e-05
5.604967439e-05
-0.001712788373
-0.001712784933
0.001662420062
6.725246738e-05
-5.616136486e-05
5.614035768e-05
-5.611835764e-05
0.00168224796
-0.001671347879
0.001671369879
-0.00167133322
-0.001671317091
4.50302978e-05
-0.0008396018737
-4.841174939e-06
7.517848173e-06
-7.445613095e-06
-0.0008396741087
7.589821247e-06
-0.0008428815751
7.37386824e-06
0.0008359313954
-2.728864759e-06
2.373741109e-06
0.0004212593195
2.386526068e-06
-2.475820488e-06
-0.0004211794739
-0.0004133252387
-2.898115114e-06
-2.885544159e-06
-4.792777702e-05
-0.0008341587428
0.0008368094192
-0.0008368709684
0.0008369571966
-4.059577334e-05
4.468803719e-05
-4.460180898e-05
4.419450278e-05
-4.420689693e-05
-0.0008407008632
4.508650888e-05
-0.001785351807
-4.491825341e-05
0.001858682296
-0.001854049196
0.0009081241925
0.001851426475
6.466851474e-05
-0.001849235516
-5.571670007e-05
5.309397914e-05
-5.596087798e-05
-5.266643016e-05
5.266643017e-05
-0.001734512813
-0.001733875434
0.001741842192
6.718256855e-05
-0.001741841965
-5.604252733e-05
5.604050096e-05
-5.603953556e-05
0.00176364523
-0.001751641486
0.001751642451
-0.001751640357
-0.001751644716
0.0008769176977
4.491777155e-05
-0.0008810616247
-5.168973772e-06
7.75984049e-06
-7.761465348e-06
7.76013052e-06
7.680966696e-06
-0.0008743329533
0.0008766773543
-0.0008767578529
0.0008768374168
-1.029307126e-05
-4.143803724e-06
-0.001853668876
0.001863697754
-0.001863697754
-4.143803725e-06
0.001863697754
-1.550581172e-05
0.001863697754
1.85804479e-05
-0.001863697754
-7.218851445e-06
7.218851449e-06
-4.959281507e-05
-0.001853668876
0.001863697754
-0.001863697754
-4.959281507e-05
-6.095536435e-05
0.001863697754
0.001863697754
-2.686834091e-05
3.823069858e-05
-3.823069859e-05
0.0009084548722
-0.0009084572392
-2.337700891e-05
2.621793869e-05
0.0009084542725
-2.621733906e-05
0.0009051051959
-0.0003465106738
7.119764501e-06
-5.952553443e-06
5.889593781e-06
-6.014040677e-06
-5.853434547e-06
0.0003453404462
-0.0003527860068
7.273985673e-06
-6.347937158e-06
6.185358873e-06
-6.44726073e-06
-5.875103588e-06
5.646494008e-06
0.000353066839
0.0006973336734
-7.140757634e-05
7.473235189e-05
-7.447897376e-05
7.621624753e-05
7.408582795e-05
-0.0006972717913
0.0003539282874
3.039911768e-05
3.056673106e-05
-3.917042919e-06
-0.0007347095707
3.984647079e-06
0.0007372139881
-0.0007372146756
0.0003683318243
0.0007372141415
1.584348204e-06
-0.0007372131161
1.199770606e-06
-1.200304772e-06
1.267149399e-06
1.200831637e-06
-0.000739375221
-0.0007394425692
0.0007274578867
1.58869557e-06
1.197129101e-06
-1.265363045e-06
1.196845527e-06
1.266102355e-06
0.000732475916
-0.0007307123238
0.0007307130631
-0.000730642868
-0.0007307830215
-4.050292617e-06
-0.0003631092728
5.891809759e-06
-5.524884325e-06
5.453334159e-06
-5.470351867e-06
-5.536914896e-06
5.613417481e-06
0.0003621316215
-0.0003700884114
8.011761283e-06
-6.697424307e-06
6.798955491e-06
-6.525194013e-06
-6.830092764e-06
-0.0003695612995
6.92723809e-06
0.000369947771
-0.0003699789083
0.0003700613285
5.605604613e-06
5.618539359e-06
-0.0003544348746
7.816745776e-06
-6.289974986e-06
6.380276684e-06
-6.282117482e-06
-6.376625839e-06
0.0003534202787
-0.0003612491305
6.224992741e-06
-5.63229372e-06
5.712109846e-06
-5.729787607e-06
5.678441977e-06
0.0003610220714
0.0007332218575
-7.001142482e-05
7.28944053e-05
-7.281017447e-05
0.0007331376267
7.296482052e-05
0.0007314175746
7.273128962e-05
0.0007371853585
-0.0007348667291
0.0007347878443
3.137647359e-05
0.0003672603744
-3.072548951e-05
-0.0003672894937
0.0003669381874
-0.0003666134503
3.151943804e-05
-3.116535735e-05
3.149009443e-05
-3.151706853e-05
3.155960228e-05
0.0003665603831
0.0003729444704
2.944011397e-05
2.920221508e-05
3.008828424e-05
-3.003791216e-05
-0.0003575821583
-0.0003630326981
3.160472787e-05
-3.152820923e-05
3.137803487e-05
-3.133362068e-05
-0.000362469223
0.0003623710744
-0.0003623266602
0.0003619862588
3.115540642e-05
3.090740423e-05
0.0007234896597
-7.032072437e-05
7.326205406e-05
-7.318869555e-05
0.0007234163012
0.0007206083569
7.304688589e-05
0.000727672565
-0.0007252772394
0.0007251354298
-0.0007697035
-4.487816707e-06
7.267219038e-06
-7.199044702e-06
7.272979897e-06
0.0007679816408
5.234857726e-06
0.0003737227026
-0.0003730456405
0.0003729587829
-0.0003728512044
7.343728189e-06
-6.205911032e-06
6.31348946e-06
-6.420121364e-06
0.0003719508171
0.0003926997963
-2.613666078e-05
2.667305704e-05
-2.649966229e-05
2.713118267e-05
2.64571462e-05
-0.0003919147244
0.0007691382812
-6.849765398e-05
7.139360657e-05
-7.13076689e-05
7.127823836e-05
7.123940583e-05
-0.000772119349
-0.0007820246671
6.487520633e-05
0.0007820792598
-6.201213601e-05
6.214738601e-05
-6.201381061e-05
-6.209857527e-05
-0.0007777247236
0.0007792892925
-0.0007792404817
0.0007792679393
-0.0003888949864
5.95954682e-05
3.035852629e-05
-3.028473252e-05
-0.0003751480931
0.0003817298251
2.93118443e-05
2.939626914e-05
0.0007618717602
-6.899052301e-05
7.203855031e-05
-7.173101721e-05
7.164768444e-05
-0.0007635066667
-3.333028917e-06
3.248215281e-06
0.0004101457181
-0.0004022743707
-2.790773283e-06
-2.710187684e-06
-0.0008093322966
-4.662770947e-06
7.428105939e-06
-7.357445548e-06
7.213063152e-06
0.0008060810812
0.0004229747292
-1.435962472e-06
2.47579894e-06
-2.391066338e-06
2.301545415e-06
0.0004227938247
-0.0004231276058
0.0004230380849
-0.0004228542067
-3.52792205e-06
-1.034216053e-05
0.0008525082913
-0.0008488122444
0.0008486609835
-0.0008486669558
-4.899249909e-06
7.571216161e-06
-7.577188511e-06
7.505702633e-06
0.0008466412978
0.0008542790161
-3.993970503e-05
4.366605533e-05
-4.389111271e-05
4.352021147e-05
4.388160814e-05
-4.399094347e-05
-0.000857017209
0.0008457135012
-4.096892472e-05
4.427135558e-05
-4.403070708e-05
4.383619724e-05
0.0008503414381
-0.0008489780945
0.0008487835847
-0.0008483385762
-4.722607947e-05
2.46965724e-06
-0.000454675048
0.0004561745489
-0.0004536705859
0.0004612258928
0.0004520131354
-6.463323248e-07
-1.023036875e-05
0.0009751430093
-0.0009051106436
0.0009052510197
-0.000905807373
-5.167538029e-06
7.202776291e-06
-7.759129648e-06
7.759778968e-06
0.0008885057964
-1.377160758e-05
-0.0004709014448
0.0004571794605
-0.0004613822469
0.0004629890979
1.044637484e-05
4.560199429e-05
-4.568342807e-05
-0.001377950454
0.001387951556
-0.00138782237
-0.001365570622
4.59282313e-05
-0.001365352741
-0.001376313541
-2.815962744e-06
-0.0006850603174
-1.346357015e-07
0.0006887791333
-0.000688157576
0.000687930359
2.195905478e-06
4.632670143e-07
-6.904840388e-07
-6.18259683e-07
7.208118522e-07
-7.265220004e-07
-0.0006868751899
-2.97070522e-06
0.0006851179115
-0.0006884444497
0.0006906690915
-0.0006864662442
4.871101832e-06
-3.917793408e-06
-0.0007157152659
3.919965709e-06
0.0007173585133
-0.0007173601872
0.0007173601484
1.592298593e-06
1.196725549e-06
-1.196764363e-06
1.196681533e-06
1.196556057e-06
-0.0007207378167
0.000709090668
1.59419558e-06
1.132442488e-06
-1.131760984e-06
1.133374972e-06
1.131074428e-06
0.0007141268094
-0.0007110815279
0.0007110808413
-0.0007110786746
-3.922133411e-06
0.001622781408
0.0001721073173
0.001622259895
0.001612627678
0.0004164042402
-2.181322481e-05
2.095284315e-05
-2.05164926e-05
2.004438988e-05
-1.978474865e-05
-0.000416836348
-0.0008706589327
3.58181144e-05
-3.381590938e-05
3.345626727e-05
-3.359778436e-05
-0.000866968115
0.0008694653775
-0.0008696068946
0.0008693422313
2.8363661e-05
0.0008621254031
4.403190272e-05
-3.800086875e-06
-0.0006995710792
3.739030024e-06
0.0007002949891
-0.0007002319789
0.000700233628
1.72292551e-06
1.072223737e-06
-1.070574644e-06
1.010446221e-06
1.134051747e-06
-0.0007033479993
0.0006923343486
1.970641435e-06
8.30130183e-07
-8.892745768e-07
9.493768001e-07
0.0006965154953
-0.0006941087
0.0006941688022
-0.0006942284184
-3.743374622e-06
7.085588399e-05
0.0006836740848
-0.0006866235122
0.0006833366246
-0.0006803205444
7.39819772e-05
-6.858074262e-05
7.159682288e-05
-7.225532251e-05
7.019898858e-05
0.000686572648
0.0006844625184
-7.494248993e-05
7.660996477e-05
-7.656349041e-05
7.738690254e-05
-0.0006845959107
5.837304758e-05
-5.804251093e-05
-0.0008103814615
-6.139971381e-05
6.159831549e-05
0.0008076219301
0.0008182057656
5.825815791e-05
5.846813796e-05
0.0007941645999
-5.876823602e-05
-0.000791915556
0.0007913563449
-0.0007912835464
6.499782217e-05
-6.196857306e-05
6.204137154e-05
-6.184054411e-05
-6.214098169e-05
0.0007906810627
-0.0008028435474
6.459801904e-05
-6.160503287e-05
6.170990859e-05
-6.188735299e-05
-0.0007960497494
0.0007995283906
-0.000799705835
0.0007997455818
5.886741354e-05
0.0004336353429
-8.847264289e-06
8.905836356e-06
-8.786518984e-06
8.895461075e-06
-0.0004332495986
0.0006431976315
-7.12726707e-06
-0.0006517063801
1.389839116e-05
-1.276837365e-05
1.019922556e-05
0.0006556802485
-0.0006483785651
0.0006458094171
-0.0006579093388
-0.0006458601414
0.0006431759153
-8.943018265e-06
-0.0006670852775
-2.210552048e-05
2.49058468e-05
-0.0006727608836
-1.923024066e-05
2.574053913e-05
-0.000683683505
-0.0006822528289
-6.623804634e-06
0.0003445585021
2.021806043e-06
8.499327973e-07
1.050369934e-05
-0.0006756223934
0.0006805376613
-0.0006691840292
0.0006805788771
-0.0006996623156
-1.685228049e-06
-1.245582518e-05
0.0006569955088
-6.43664957e-05
-0.000647201227
6.099748845e-05
-7.969276109e-05
8.835216463e-05
0.000682417722
-0.0006730537273
0.0006817131308
-0.0006598363346
-0.0006705206452
-8.880796372e-05
6.893310795e-05
0.0006560062491
-0.0006465662263
0.0006581720432
-0.0006550788095
5.946178845e-05
-6.50796499e-05
6.817288365e-05
-6.980394158e-05
0.0006446862091
0.0003453506885
-2.713163424e-05
3.016657226e-05
-3.037497599e-05
3.018676103e-05
2.796359342e-05
-0.0003466501203
2.688089602e-05
0.0003537175994
-0.0003501364473
0.0003502031291
-0.0003494271557
-3.544088731e-05
2.924445541e-05
-0.0003403104673
0.0003960821259
-2.616089015e-05
2.605390492e-05
-2.61465274e-05
2.599220901e-05
-0.0003969999858
-0.0004172013462
-2.350371255e-06
0.0004187352378
-1.932701467e-05
1.916470438e-05
-1.860781521e-05
1.846543037e-05
-0.0004192075691
-0.0004404073266
7.868113478e-07
2.382081971e-07
-1.555847425e-07
3.222224371e-07
3.201023741e-07
0.0004411742
-0.0003471735232
6.797007335e-06
-5.653652816e-06
5.797555934e-06
-5.64027512e-06
-5.937042012e-06
0.0003466066534
-0.0003493517785
6.22413146e-06
-5.691239026e-06
5.686473583e-06
-5.757727086e-06
0.0003500587415
-5.352744382e-06
1.144406743e-06
0.0003494936647
7.561236385e-06
-0.0003431901179
-0.0003501814265
-2.510257228e-06
-0.0003664904286
6.833114208e-06
-6.424089463e-06
6.030620037e-06
-6.734015508e-06
-5.729742742e-06
0.000366370968
5.695762013e-06
0.0003688715968
-0.0003682590063
0.0003683250942
-0.0003682495149
8.603831193e-06
-6.949259014e-06
7.024838282e-06
-7.00307589e-06
0.0003677399789
-0.0003568160217
7.196784621e-06
-6.024417794e-06
6.047634029e-06
-6.011935586e-06
-6.190531187e-06
0.0003554582035
-0.0003579385382
6.708791514e-06
-5.827826115e-06
5.911858356e-06
-5.991935675e-06
0.0003577770003
0.0003686953915
3.005793855e-05
2.913882702e-05
-0.0003713826813
0.0003585663108
3.00137489e-05
3.037445926e-05
-0.0003607737094
0.000388436996
-2.865628276e-05
2.767498784e-05
-2.803749885e-05
2.790647731e-05
0.0003901918717
-0.0003891341149
0.0003890030934
-0.000388844625
-2.761491123e-05
2.41151877e-05
-2.391489598e-05
-0.0004046160102
-2.452447516e-05
0.0004036326433
0.0004066230464
2.371454885e-05
0.0004254855642
1.502986727e-05
-0.0004437283467
2.680558804e-07
4.962840117e-07
-4.928853618e-07
4.978792879e-07
3.249370319e-07
0.0004420318939
-0.0004583089191
6.197870529e-07
1.699333517e-06
-7.11079105e-07
3.763600183e-06
4.923477743e-07
0.0004480526967
-6.63916579e-06
-0.0004377524151
0.000436635415
-0.0004385761839
0.0004396777135
7.152601851e-06
0.001822737573
-0.001822737573
6.403113567e-05
-5.266643016e-05
5.266643018e-05
-0.00183361112
4.130632114e-05
-0.00183361112
4.130632114e-05
-0.001843639998
0.0009084537901
-6.516603827e-07
3.492572086e-06
-2.647475381e-06
3.492324164e-06
0.0009126212322
-0.0009101161604
0.0009109610092
-0.0009101163412
-0.0009109610092
0.0009109625808
-6.332559233e-06
2.889795178e-05
-0.000873713125
-3.82034854e-07
0.0003273383304
-0.0003271627951
0.0003256991017
-0.0003351239425
-0.0003245687461
0.000325051786
3.906907125e-06
-0.0003335461362
5.902189378e-06
3.603650531e-06
-0.0003648796175
-1.916730545e-05
2.103661342e-05
-2.591173456e-05
1.395208564e-05
-0.0003474827159
0.0003504456057
-0.0003624052546
0.0003533651013
-2.516250088e-05
5.195311629e-05
-0.0003365009039
-0.0003301482179
3.356165608e-05
0.00032982613
-0.0003265565057
0.0003272167974
-0.0003284366108
-4.896465449e-05
-0.0003984645887
-3.054508375e-06
-2.792588782e-06
0.0004152810461
1.48544179e-05
0.0009126222265
-0.0009109646435
0.0009109645599
-0.0009109631778
2.138186527e-05
0.0009101174909
-1.769541535e-05
1.769679739e-05
-1.8543558e-05
0.0009076166289
3.039236379e-05
-0.0003510763266
0.0003776315482
2.985009647e-05
2.91465456e-05
-0.0003799625289
-0.000408458447
-3.067602873e-06
-2.705008295e-06
0.0004052010903
2.231049686e-05
-0.0004097099502
-2.105444253e-06
0.000409888952
1.348665647e-06
-0.0004410725581
0.0003963426998
-7.471184696e-06
7.015959983e-05
-1.124253012e-05
1.605816093e-05
-0.0003718119096
0.001309248379
0.0001829067166
0.0001840550498
5.729843678e-05
-0.0008300653582
0.0006759932331
7.07619205e-05
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-7.728565584e-09
0
0
0
3.806374913e-06
-1.023338137e-05
1.423659842e-07
-1.327118271e-06
0
5.652246541e-05
-3.306113765e-05
8.857156559e-06
-1.198926585e-05
5.83154085e-06
0.0001199138514
-4.923357398e-05
2.099873739e-05
-2.360308243e-05
1.697395392e-05
0.0001556528925
-5.485111561e-05
2.75263458e-05
-2.81302933e-05
2.585922431e-05
0.000147564076
-5.007383554e-05
2.586128683e-05
-2.429815865e-05
2.63472259e-05
0.0001014441939
-3.706963787e-05
1.694158784e-05
-1.460697986e-05
1.850296022e-05
4.409790521e-05
-2.020381352e-05
7.016482063e-06
-4.933618697e-06
9.023084065e-06
3.196810258e-06
-6.128737013e-06
6.828452761e-07
-1.795072595e-07
1.294852835e-06
0
-3.794216913e-08
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-0.0001767834254
0.001298565732
-1.013210431e-05
-0.0008401355325
-7.218851442e-06
0.001883750853
-0.001872854018
0.001872854018
-0.001872854018
-4.959281506e-05
-0.001872854018
-0.001883750853
-2.905773687e-05
0.0009084537901
-7.563493915e-05
7.577961981e-05
0.0007330589738
-7.555628621e-05
-7.843370968e-05
-0.0007250598921
7.867633485e-05
-7.585587189e-05
7.593140956e-05
0.0001691015522
-0.001707857026
0.0001694458208
0.000158872837
-0.001219338472
0.001219229334
-4.776647455e-05
-0.001219618722
-0.001230039277
8.611575908e-05
0.001233975733
-0.001219259094
0.001220471684
-0.001321304762
-4.175619077e-05
4.905007156e-05
-4.855437498e-05
-6.547304013e-05
-0.001296637572
7.375203178e-06
0.001260117771
0.0001903918478
-0.001288173735
-0.0002029812681
0.0002012988765
0.001354251043
-0.001594649564
0.0001953798893
-0.0001837434006
0.0001831385875
-0.0001832104407
-0.0001821571767
0.001585752717
-0.001671473294
8.976498316e-05
8.968027305e-05
0.0001707246577
-0.0001703638872
-0.001671115082
-0.001751644901
-7.833752889e-05
8.975658189e-05
-8.958938132e-05
9.017183938e-05
8.966653271e-05
-8.958883405e-05
0.001741842072
8.675241244e-05
-8.675241243e-05
0.001822737573
-0.0009101163412
5.02991512e-06
-0.00183361112
-9.504238784e-05
-0.0007394410448
-4.370957742e-06
7.089394675e-06
-7.161235837e-06
7.163490643e-06
-7.097586864e-06
0.0007372111152
7.098394048e-05
-0.0007817056031
-0.000135747538
0.0001353109044
0.001766902069
-0.001742955928
-0.0001347694658
-0.0006780920893
-1.002895929e-05
2.780644644e-07
-1.022055931e-05
0.001462642277
-5.622845498e-05
-5.624754691e-05
0.00142436738
6.745767179e-05
-5.635641385e-05
5.627665213e-05
-5.64364642e-05
-5.626124113e-05
-0.00143308277
-0.001712786922
-7.842486982e-05
8.958849783e-05
-8.974850575e-05
8.966983289e-05
0.001701863031
-0.001732516277
-7.675294765e-05
8.675241244e-05
-9.155173539e-05
9.307737143e-05
0.001847555967
-0.001872854018
0.001872854018
-4.143803727e-06
3.823069857e-05
-0.001872854018
2.621690625e-05
-0.000910116774
-0.0007305054737
7.099583645e-06
-0.0007345723579
-7.53407999e-05
-7.620508263e-05
0.0007231426281
0.00138775517
6.802503775e-05
-5.677799647e-05
5.671079642e-05
-5.688653646e-05
-5.651041146e-05
-0.00139837278
0.00135240003
6.876905352e-05
-5.86795213e-05
5.739052792e-05
-5.713359348e-05
-0.001365095806
-0.0001833604361
0.001621170188
-2.465053441e-05
-0.00067340136
9.974593012e-06
0.0006732228459
4.130632114e-05
0.001863697754
-5.266643016e-05
-0.00183361112
0.001863697754
8.367968977e-05
0.001822737573
0.0001291310273
-0.001330869075
-0.000206814431
0.001697990613
0.000170086789
-0.0006693515666
-7.190293019e-05
0
0
0
0
0
0
0
0
0
0
0
0
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.78005883e-06
-7.89736889e-06
1.568328214e-06
-3.526196526e-07
3.370862106e-06
1.340259885e-08
9.131622989e-07
3.330486599e-06
-1.246566364e-05
-4.243264633e-05
-3.451704141e-05
9.978497421e-06
-7.834326861e-06
1.168691804e-05
5.48952975e-06
3.234858687e-05
1.474918915e-05
-7.17540823e-05
-7.284558838e-05
-5.313245979e-05
1.653835878e-05
-1.597748478e-05
1.818834363e-05
1.258472214e-05
6.457490793e-05
2.525507599e-05
-0.0001318006153
-9.415903007e-05
-6.236649924e-05
2.173331116e-05
-2.058061572e-05
2.289855268e-05
1.947371717e-05
8.911627684e-05
2.770577165e-05
-0.0001577915451
-0.000118743435
-7.207469653e-05
2.751785443e-05
-2.595532325e-05
2.913376539e-05
2.436682762e-05
0.0001118235423
2.096789305e-05
-0.0001356398619
-0.00015078419
-8.358823041e-05
3.587574197e-05
-3.267599785e-05
3.686454042e-05
3.088490762e-05
0.0001408781648
1.064725474e-05
-8.388091312e-05
-0.000185927553
-9.279103729e-05
4.7045639e-05
-3.834491469e-05
4.827031402e-05
3.930081244e-05
0.0001732668951
2.868690842e-06
-2.907677e-05
-0.0002603665292
-0.000124153459
6.312956792e-05
-5.923732727e-05
6.554460681e-05
5.464652941e-05
0.0002424171707
0
-6.686905679e-07
-0.0002436141797
-0.0001191710206
4.827339077e-05
-5.611396385e-05
3.914366429e-05
6.202737181e-05
0.0002650234096
0
0
-0.0001006915412
-5.841007506e-05
1.200213596e-05
-2.014932274e-05
5.883750903e-06
2.948551156e-05
0.0001405093408
0
0
-1.06113537e-06
-6.480215103e-06
0
-2.542039839e-07
0
2.186029709e-06
9.955366729e-06
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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.478690011e-05
-0.001220378223
-0.001222087372
-0.0001066450049
5.137620174e-05
0.001307221607
2.231330704e-05
0.0007009346327
0.0004375321738
-2.768451228e-05
2.768553426e-05
0.0004376134861
-2.151107487e-05
2.142976258e-05
-1.661998604e-05
1.662070607e-05
0.0004389180409
-2.801443868e-05
0.0004392477632
-2.18407971e-05
-1.686736102e-05
0.0003471643339
2.668712385e-05
-2.482064212e-05
0.0003456836071
2.076236973e-05
-1.928164294e-05
1.610932236e-05
-1.501534726e-05
-0.0002774667424
7.1649143e-05
-7.598086794e-05
-0.0002741410729
5.532479093e-05
-5.865046042e-05
4.268312572e-05
-4.524613467e-05
-0.0003293963203
6.774479132e-05
-6.781770419e-05
-0.000329396714
5.19248993e-05
-5.192450561e-05
3.980145098e-05
-3.980142032e-05
0.0003446707975
2.797199196e-05
0.0003437716677
2.166149955e-05
1.681617284e-05
-0.0005833372125
-8.689607279e-05
8.574348762e-05
-0.000582414752
-6.666405665e-05
6.574159624e-05
-5.117428066e-05
5.04825885e-05
-0.000355540851
0.0001023648203
-0.0001037359683
-0.0003546545781
7.8601805e-05
-7.948807789e-05
6.02831686e-05
-6.108967845e-05
0.0003987413732
-1.838548848e-05
2.386977349e-05
0.0003945742496
-1.431348984e-05
1.848061348e-05
-1.104962769e-05
1.430523169e-05
-0.0004846476374
6.456563494e-05
-0.0004791967058
4.987385932e-05
3.848802716e-05
-0.0004056616309
0.0001389599065
-0.0001675107282
-0.0003836966779
0.000107098546
-0.000129063499
8.250959262e-05
-9.940247239e-05
0.0004099490656
-2.142496825e-05
2.104246471e-05
0.0004102549602
-1.67542908e-05
1.644839617e-05
-1.29764222e-05
1.274686821e-05
0.0003861905098
2.066218232e-05
-2.096614172e-05
0.0003863422462
1.606784031e-05
-1.621957672e-05
1.244236631e-05
-1.267062171e-05
0.0004099384433
-2.188378457e-05
0.0004101676835
-1.698353105e-05
-1.320571497e-05
0.0004123480709
-2.180655198e-05
2.188356136e-05
0.0004122712188
-1.698332214e-05
1.706017424e-05
-1.320553164e-05
1.320543195e-05
0.0003843177105
2.344121025e-05
-2.351898608e-05
0.0003844734375
1.815072586e-05
-1.830645283e-05
1.413980911e-05
-1.421748056e-05
-0.0005919526889
-9.325479234e-05
9.20849145e-05
-0.0005910955839
-7.147079736e-05
7.061369235e-05
-5.489659967e-05
5.419455877e-05
0.0003672367785
-2.727360079e-05
2.849920081e-05
0.00036633804
-2.118244227e-05
2.208118072e-05
-1.637376655e-05
1.710924925e-05
0.0006686638312
2.261287549e-05
1.776995205e-05
0.0004415300072
-2.817215938e-05
2.834009543e-05
0.0004413619275
-2.183445066e-05
2.200253043e-05
-1.694437953e-05
1.711206581e-05
-0.0003531133822
0.0001119517893
-0.0001115350829
-0.0003532809495
8.58316181e-05
-8.566405079e-05
6.588811997e-05
-6.572128333e-05
-0.0003494922363
6.880386213e-06
-8.589393388e-06
-0.0003482425433
5.516673362e-06
-6.766366437e-06
4.357143756e-06
-5.34295184e-06
-0.0003535266791
5.233795438e-06
-0.0003522094917
4.199485917e-06
3.434853506e-06
-0.0003564489532
-3.762366069e-07
-1.472826655e-06
-0.0003550618974
-2.507706357e-08
-1.36197869e-06
6.880208645e-08
-1.191643822e-06
-0.0003685161619
-3.716580535e-05
3.654761045e-05
-0.0003680355752
-2.839072452e-05
2.791013781e-05
-2.176304411e-05
2.128201645e-05
-0.0003677350106
3.277827285e-05
-3.35306797e-05
-0.0003672564997
2.503153656e-05
-2.551004739e-05
1.90893544e-05
-1.95683601e-05
-0.0003701752142
-3.868102455e-05
-0.0003690731559
-2.949278287e-05
-2.258956732e-05
-0.0003510740018
-4.150700375e-05
4.095398045e-05
-0.0003506596835
-3.169787154e-05
3.128355321e-05
-2.424369481e-05
2.389769096e-05
0.0003211968533
2.320882379e-05
-2.230063912e-05
0.0003204832545
1.805682913e-05
-1.734323036e-05
1.404859149e-05
-1.346464452e-05
0.0003439841654
2.353287501e-05
0.000343789639
1.82513555e-05
1.424272578e-05
-0.0003513104238
9.576544332e-05
-9.631509185e-05
-0.0003508388435
7.343233219e-05
-7.390391252e-05
5.63870032e-05
-5.670127089e-05
-0.0003506169218
0.0001010862906
-0.0001020472681
-0.000349734843
7.748135831e-05
-7.83634371e-05
5.956435756e-05
-6.004424208e-05
-0.0003505526515
-6.607154075e-05
6.599942702e-05
-0.0003504796687
-5.068910132e-05
5.061611854e-05
-3.885610092e-05
3.878394285e-05
-0.000374843129
-6.672702026e-05
-0.0003744808691
-5.10513613e-05
-3.914720268e-05
-0.0003553924818
7.734025332e-05
-7.76399739e-05
-0.000355091844
5.923089565e-05
-5.953153345e-05
4.548547432e-05
-4.563501773e-05
0.0003383857328
-3.020824506e-05
3.167369442e-05
0.0003373025438
-2.345099933e-05
2.453418839e-05
-1.815795006e-05
1.904993805e-05
0.0003418809043
-2.886764698e-05
0.0003409237021
-2.249379716e-05
-1.73919486e-05
0.000374242335
-1.870628579e-05
1.87801761e-05
0.0003742424639
-1.463824327e-05
1.463811441e-05
-1.138936039e-05
1.138936689e-05
0.0004003597565
-1.863223701e-05
1.863218581e-05
0.0004003597158
-1.448964544e-05
1.448968611e-05
-1.131549272e-05
1.131545254e-05
0.0003984806586
1.87063799e-05
-1.870637686e-05
0.0003984806026
1.456423772e-05
-1.456418172e-05
1.138956052e-05
-1.138961626e-05
0.0003932527155
-1.878025715e-05
0.0003931787268
-1.45642546e-05
-1.138954972e-05
0.0003978553338
1.870638293e-05
0.0003977813273
1.463824421e-05
1.131555429e-05
0.0003410111713
2.02820675e-05
0.0003412393048
1.583970682e-05
1.22904915e-05
0.0004018570854
2.020585146e-05
-2.020595793e-05
0.0004017814569
1.576352122e-05
-1.568789274e-05
1.221441366e-05
-1.22145849e-05
0.0004009102605
-1.855749062e-05
0.0004009850174
-1.456440237e-05
-1.124073004e-05
0.0004016174837
-2.01316075e-05
1.938197527e-05
0.0004022171814
-1.568888782e-05
1.508919007e-05
-1.214002144e-05
1.176536229e-05
0.0004052376079
2.035680223e-05
0.0004052376922
1.576343689e-05
1.236550875e-05
0.0004028341509
-2.028151576e-05
0.0004029842632
-1.583900014e-05
-1.236538361e-05
0.0004150087104
-2.157509995e-05
2.172971444e-05
0.0004149312459
-1.675147952e-05
1.682894401e-05
-1.305116367e-05
1.312840717e-05
0.0004130532678
-2.180676969e-05
0.0004129762117
-1.690626602e-05
-1.320561138e-05
-0.0003445393827
-8.851263926e-05
8.797216091e-05
-0.0003441535163
-6.789567957e-05
6.750981312e-05
-5.209778636e-05
5.178904159e-05
0.0004155596428
-2.142023468e-05
0.0004155597046
-1.675154129e-05
-1.29738167e-05
0.0004117764403
2.258622059e-05
0.0004123979905
1.752917566e-05
1.359554647e-05
-0.0003623492409
-9.380263005e-05
-0.0003618792359
-7.194080231e-05
-5.520940254e-05
-0.0005929843865
9.482102287e-05
-0.0005922762238
7.272416957e-05
5.583636212e-05
0.0004414143992
-2.847718783e-05
0.000441721614
-2.214166553e-05
-1.717210462e-05
-0.0004934802378
-1.403670048e-05
1.265973674e-05
-0.0004924302289
-1.103190611e-05
9.981897209e-06
-8.624191085e-06
7.7723437e-06
-0.0003420456446
-2.173660139e-05
2.004252308e-05
-0.0003408722077
-1.683977107e-05
1.566633417e-05
-1.312694151e-05
1.214960915e-05
-0.0003215944076
-1.488641456e-05
-0.0003210061635
-1.162015024e-05
-9.082314577e-06
-0.0003281275701
-2.316894557e-05
-0.0003269561225
-1.801121865e-05
-1.403773978e-05
-0.0003590168354
-6.147941075e-06
4.618912453e-06
-0.0003577541779
-4.60193479e-06
3.339277247e-06
-3.314755671e-06
2.449744218e-06
-0.000356727911
-1.568124277e-06
-0.0003557350909
-1.017897136e-06
-6.591481789e-07
-0.0003606836841
-7.611364384e-06
-0.0003596858716
-5.599747202e-06
-4.244990866e-06
-0.0003694013554
2.718896186e-05
-2.882096152e-05
-0.0003681771225
2.073688396e-05
-2.196111685e-05
1.581759481e-05
-1.67690776e-05
-0.0003692462532
3.127701647e-05
-0.0003680861212
2.387140449e-05
1.827049457e-05
-0.0003673463453
2.576036641e-05
-0.0003661900718
1.958061048e-05
1.500118343e-05
-0.0003125055913
-4.233759787e-05
-0.0003118825792
-3.23208837e-05
-2.47274625e-05
-0.0003711094119
-4.622775791e-05
4.400169466e-05
-0.0003693704945
-3.537749057e-05
3.363857312e-05
-2.709001063e-05
2.576818602e-05
-0.0003537533725
5.05486512e-05
-5.117727243e-05
-0.000353193803
3.865292716e-05
-3.921249666e-05
2.9598241e-05
-3.00180911e-05
-0.000371481067
-4.810462885e-05
-0.0003700913086
-3.6767249e-05
-2.820199653e-05
-0.0003683882445
4.936031835e-05
-0.0003674799627
3.774464528e-05
2.896991712e-05
-0.0005676788063
7.711573147e-05
-0.0005676050463
5.915713565e-05
4.533545526e-05
-0.0003419751342
8.990315573e-05
-8.998034717e-05
-0.0003418977075
6.889918351e-05
-6.897661025e-05
5.286976353e-05
-5.302570617e-05
0.0004261713497
2.477830493e-05
-2.4858534e-05
0.0004262516115
1.925063238e-05
-1.933089417e-05
1.492574492e-05
-1.508624899e-05
0.0004064413423
2.485831508e-05
0.0004063612106
1.933076407e-05
1.500575067e-05
0.0004283923949
-2.598324157e-05
0.0004292761079
-2.021460716e-05
-1.564859485e-05
0.0004300072709
-2.718774905e-05
0.0004308905477
-2.109788397e-05
-1.629086458e-05
0.0004359448013
2.678504417e-05
0.0004365176235
2.085694046e-05
1.621149789e-05
0.0004395028891
-2.883592344e-05
0.0004399955399
-2.233344789e-05
-1.736014092e-05
0.0003470846899
-2.366212554e-05
0.0003461835421
-1.838049513e-05
-1.43074017e-05
-0.0006007347308
-0.0001003666427
9.956853532e-05
-0.0006000960101
-7.700246709e-05
7.636374643e-05
-5.908418997e-05
5.860547321e-05
-0.0002750385883
-8.008784024e-05
-0.0002718782057
-6.1810843e-05
-4.767066202e-05
-0.0003621276966
6.745418815e-05
-0.0003618362703
5.163347295e-05
3.95828183e-05
0.0003124495387
3.86316599e-05
-3.68943072e-05
0.0003111038605
2.993346495e-05
-2.858778676e-05
2.314337218e-05
-2.212020644e-05
0.0003331424998
4.066121397e-05
0.0003315857315
3.149023327e-05
2.434746813e-05
0.0004778477255
-3.461483066e-05
0.0004761001368
-2.684019802e-05
-2.077143375e-05
0.0002881469486
-3.313646407e-05
0.0002870491201
-2.574236952e-05
-1.987672667e-05
0.0003429122182
2.835713439e-05
0.0003425270276
2.204669015e-05
1.700867127e-05
-0.0003597142789
-8.766419158e-05
-0.00035909948
-6.727885551e-05
-5.163529749e-05
0.0004324657148
2.598038888e-05
-2.662863462e-05
0.0004331142174
2.013148758e-05
-2.077999018e-05
1.556583939e-05
-1.605212157e-05
0.0004329198876
2.549394496e-05
0.0004332441706
1.98072046e-05
1.532264813e-05
-0.0003754930729
0.0001025246363
-0.0003756531595
7.876189158e-05
6.036285552e-05
0.0004340440481
-2.687153116e-05
0.000434124558
-2.08605001e-05
-1.621410938e-05
0.0004311785226
-2.695319579e-05
0.0004311786843
-2.086066171e-05
-1.621418165e-05
-0.0003549135198
-0.0001053461063
0.0001053459167
-0.0003549948589
-8.077633048e-05
8.085766952e-05
-6.205592693e-05
6.205579759e-05
0.00044494166
2.722113434e-05
0.0004422801408
2.114213262e-05
1.635018637e-05
-0.0005375843401
-5.781024101e-05
5.688483173e-05
-0.000536872008
-4.422214531e-05
4.350981325e-05
-3.389860041e-05
3.340074018e-05
-0.0005543533183
-6.811074863e-05
-0.0005541338985
-5.214392542e-05
-3.994765967e-05
-0.0003547291658
-6.920929728e-05
-0.000353776154
-5.309693725e-05
-4.068039788e-05
0.0002524005205
-0.0001177407338
0.0001364338079
0.0002380197764
-9.077991629e-05
0.0001051606604
-6.994735888e-05
8.101466467e-05
0.0004091731072
2.096615799e-05
0.0004093257753
1.62957281e-05
1.274677625e-05
0.0004058086521
0.0004058848035
0.0004108682039
-2.188360718e-05
0.0004109448553
-1.706018254e-05
-1.328228426e-05
0.0004117227336
0.0004117227253
-0.0005837699492
-8.95164988e-05
-0.0005830758119
-6.858981684e-05
-5.271588576e-05
-0.0003483239871
-0.0003480146204
0.0005761788322
-2.344084934e-05
0.0005761007261
-1.822834669e-05
-1.421761891e-05
0.0003596381926
2.493828215e-05
0.0003596382925
1.933066414e-05
1.500574515e-05
0.0005900482414
2.493813271e-05
0.0005900481531
1.933075248e-05
1.50854607e-05
0.0004319141851
2.694536476e-05
-2.61395097e-05
0.0004312696342
2.101676357e-05
-2.037221262e-05
1.620979848e-05
-1.580696539e-05
0.0004306216213
0.0004305405009
0.0004158309935
0.0004155054917
0.0004402851502
0.0004399542327
-0.0006124056182
-0.0001113807126
0.0001088444539
-0.0006104419165
-8.550653358e-05
8.354283194e-05
-6.564422815e-05
6.408956904e-05
-0.0003560471691
-0.0003557220846
-0.0003332687326
-1.069030908e-05
-0.0003316274734
-8.407625606e-06
-6.656087918e-06
-0.0002994850126
-0.000297910741
-0.0003539562141
3.51979931e-06
-0.0003527036046
2.946876414e-06
2.31504699e-06
-0.0003556562062
-0.0003540713085
-0.0003690644566
3.497121056e-05
-0.0003678993792
2.674506042e-05
2.045997157e-05
-0.0003695283179
-0.0003682933049
-0.0003686253373
-4.033341624e-05
-0.0003673866356
-3.073148458e-05
-2.355326356e-05
-0.000366640096
-0.0003660880274
0.0003460165353
0.0003458873957
-0.0003456310367
-9.647259038e-05
-0.0003455525523
-7.398239696e-05
-5.685931193e-05
-0.0003544718816
-0.0003539929904
-0.000435387327
0.0001185425206
-0.0004196867249
9.139794397e-05
7.042843118e-05
-0.0004524144621
9.721302992e-05
-0.0001092349385
-0.0004431673154
7.498714008e-05
-8.423428686e-05
5.780776996e-05
-6.492067687e-05
-0.0002553369272
8.954756707e-05
-0.000249439232
6.908944491e-05
5.327330669e-05
-0.0003757092835
-0.0003751271719
-0.0003651850918
-7.846553067e-05
-0.0003645091822
-6.020744304e-05
-4.616052197e-05
-0.0005712484942
7.906542401e-05
-7.929135765e-05
-0.0005710984778
6.065742679e-05
-6.08074432e-05
4.653568803e-05
-4.661063768e-05
-0.000337973222
-0.0003375232382
0.0003299862972
-4.367258122e-05
4.723073649e-05
0.000327250277
-3.380387418e-05
3.653989435e-05
-2.612660764e-05
2.823524828e-05
0.0003357742963
0.0003334606554
0.0004781609171
-5.19343168e-05
5.661357686e-05
0.0004745657815
-4.015510653e-05
4.375024207e-05
-3.101230291e-05
3.378507731e-05
0.0003157254891
4.963741077e-05
0.0003138705796
3.83948039e-05
2.965773673e-05
0.0002855483431
0.0002837880405
0.0003229666033
0.0003217584221
0.0003425035871
0.0003420564801
0.0003295282514
1.878002848e-05
0.0003295282343
1.463813146e-05
1.138953295e-05
0.000399808904
1.86319938e-05
0.0003997344143
1.456417582e-05
1.131541237e-05
0.000399107144
0.0003991071381
0.0003966048003
-1.870638986e-05
0.0003966047448
-1.456419916e-05
-1.138960491e-05
0.0003971560246
0.0003972300697
0.0003738318735
-2.013022924e-05
0.0003738318592
-1.568787842e-05
-1.221460662e-05
0.0004014605589
-1.870711105e-05
0.0004015354023
-1.463924577e-05
-1.131557077e-05
0.0004013358088
0.0004017857531
0.0004045349614
2.028127765e-05
0.0004043840536
1.591434464e-05
1.229006394e-05
0.0004037592116
0.0004038345561
0.0004143027628
2.172974487e-05
0.0004142254878
1.690621896e-05
1.312844348e-05
0.0004136008968
0.0004136008498
-0.0003691614574
-0.0003689304998
0.0004158738732
-2.165304743e-05
0.0004160293511
-1.69070192e-05
-1.305124883e-05
0.0004147859278
0.0004154080843
-0.0003479225759
9.442929658e-05
-0.0003476089989
7.241059261e-05
5.560139466e-05
-0.0003715898644
-0.0003711200741
0.0004328749734
-2.565549265e-05
0.0004324715468
-1.996878604e-05
-1.548429119e-05
0.0004331014368
0.0004329398553
-0.0003640085155
0.0001030073705
-0.0003643302345
7.908361052e-05
6.068492077e-05
0.0004002692375
-2.784984899e-05
0.0004010842957
-2.167571982e-05
-1.678480363e-05
-0.0003516810854
-0.0001055086403
-0.0003515186134
-8.093880243e-05
-6.213712427e-05
0.0004469524792
0.0004459529463
-0.0003471920238
1.730005382e-05
-0.0003450376096
1.351191995e-05
1.051716059e-05
-0.0003464465246
-0.0003445547548
-0.0002962342347
-2.511775696e-05
-0.0002946755907
-1.956986269e-05
-1.51431574e-05
-0.0003592091684
3.026587936e-06
-0.0003580148041
2.14491291e-06
1.454628088e-06
-0.0003573207945
-0.0003561937787
-0.0003561994928
-8.744529552e-06
-0.0003552663192
-6.532920832e-06
-4.911813716e-06
-0.0003320178322
-9.878311572e-06
-0.0003312173572
-7.333395776e-06
-5.578805663e-06
-0.0003671477073
-2.977417195e-05
-0.0003663989544
-2.270986971e-05
-1.73141965e-05
-0.0003685284754
-0.0003673669406
-0.0003623756597
2.487925595e-05
-0.0003616975355
1.890248634e-05
1.445840402e-05
-0.0003372411129
2.386226228e-05
-0.0003364956987
1.815707215e-05
1.384872839e-05
-0.0003428359429
4.316825966e-05
-0.0003421406908
3.294332109e-05
2.52821577e-05
-0.0003175612326
-5.152801937e-05
-0.0003173509208
-3.942280838e-05
-3.015811939e-05
-0.0003702935858
-4.859152893e-05
-0.0003698755337
-3.718530112e-05
-2.848057105e-05
-0.0003711924852
-0.000370633141
-0.0003314194136
7.19944701e-05
-7.214144789e-05
-0.0003313463729
5.514860029e-05
-5.522164099e-05
4.229287788e-05
-4.244026143e-05
-0.0003636634228
7.104122934e-05
-0.000363004022
5.448919952e-05
4.177980776e-05
-0.0003749455811
-0.0003735533189
-0.0005747046507
-8.193521002e-05
8.155636365e-05
-0.0005745543031
-6.277103758e-05
6.262068996e-05
-4.812056018e-05
4.796954381e-05
-0.0003596078124
-8.23144253e-05
-0.0003592276899
-6.315116008e-05
-4.84246591e-05
0.0003258219301
0.0002171049161
-0.0001765297671
0.0002946100307
0.0001672128629
-0.0001360009635
0.000128748545
-0.0001047391373
7.916689029e-05
0.0002311758422
6.834313353e-05
0.0001780366197
0.0001370746948
-4.855883198e-05
0.0002238247344
-4.290432884e-05
0.0001723821166
0.0001327251861
0.0003317526333
-1.996097259e-05
2.022115587e-05
0.0003315572034
-1.552309469e-05
1.571852459e-05
-1.209967855e-05
1.222982835e-05
0.0003484526667
-1.989531239e-05
0.0003483871613
-1.545758928e-05
-1.209958211e-05
0.0003559693819
-1.693333022e-05
1.766061144e-05
0.0003555067331
-1.328565696e-05
1.374830569e-05
-1.032296303e-05
1.071947921e-05
-0.0003428091468
8.543667884e-05
-0.0003425791351
6.551158456e-05
5.032937434e-05
-0.0003532910014
-9.917004963e-05
9.885139797e-05
-0.000353052217
-7.604462009e-05
7.580583571e-05
-5.844656683e-05
5.820711659e-05
-0.000348728668
-0.0003484095417
-0.0003760101413
-6.304028206e-05
6.195821057e-05
-0.0003752163049
-4.823333424e-05
4.743949789e-05
-3.705147867e-05
3.632941066e-05
-0.0003606991142
-6.477211573e-05
-0.000359328184
-4.960426447e-05
-3.806202041e-05
0.0003605500851
-1.606574853e-05
1.599852815e-05
0.0003605499598
-1.255166631e-05
1.255179158e-05
-9.789082015e-06
9.72190716e-06
0.0003566026232
-1.666845789e-05
0.0003563374275
-1.302046128e-05
-1.012407861e-05
0.0003703681332
-1.709956942e-05
1.634008929e-05
0.0003709203805
-1.337830655e-05
1.28260593e-05
-1.040945283e-05
9.926098305e-06
0.0003463936749
1.592829554e-05
-1.599668017e-05
0.0003464617672
1.248259686e-05
-1.255068916e-05
9.720412454e-06
-9.720392366e-06
0.0003611036141
-1.620015965e-05
0.0003611706717
-1.261872392e-05
-9.856364078e-06
0.0003041483497
1.579255123e-05
0.0003042844811
1.234646547e-05
9.584276541e-06
0.0003700333303
-1.78585233e-05
0.0003705853701
-1.393034632e-05
-1.082331989e-05
0.0003752195736
-1.848366332e-05
1.841375038e-05
0.0003752894729
-1.441643592e-05
1.434653667e-05
-1.116999275e-05
1.117024685e-05
0.0003758444512
-1.848366559e-05
0.0003759145765
-1.448656125e-05
-1.116991136e-05
-0.000540123338
-6.732605305e-05
9.901170402e-05
-0.0005644484033
-5.164950752e-05
7.597457282e-05
-3.972398684e-05
5.830728786e-05
-0.0004937019431
-4.429536718e-05
4.05475324e-05
-0.0004908127077
-3.428455326e-05
3.139531793e-05
-2.64935945e-05
2.428151209e-05
-0.0003710689078
5.873573792e-05
-5.923409074e-05
-0.0003707128082
4.493333922e-05
-4.52894388e-05
3.446824719e-05
-3.475294923e-05
-0.0003482661762
-0.0003475549823
0.0002725649063
0.0001001057274
-9.06263779e-05
0.0002652722544
7.721367371e-05
-6.99210218e-05
5.952084936e-05
-5.39138013e-05
0.000458585422
0.0004450191794
-0.0003409516871
-8.421422523e-05
8.406234996e-05
-0.0003407224354
-6.459498411e-05
6.436573236e-05
-4.956477571e-05
4.948903277e-05
-0.0005876948865
-9.005811974e-05
-0.000587617084
-6.905441277e-05
-5.302526631e-05
0.0003977164277
-2.328430363e-05
2.336279816e-05
0.0003976382304
-1.815023241e-05
1.822842966e-05
-1.413966037e-05
1.406116004e-05
-0.0003614885127
-9.021388756e-05
-0.0003614110656
-6.913185987e-05
-5.310303129e-05
0.0004174176249
-2.320581958e-05
0.0004174176077
-1.815021528e-05
-1.398266411e-05
0.0004211708965
-2.38366977e-05
2.320610091e-05
0.0004217225855
-1.862375462e-05
1.807206565e-05
-1.437681745e-05
1.398273453e-05
-0.0003571672398
-0.0001076997952
0.0001074550038
-0.0003570041027
-8.264338819e-05
8.248025115e-05
-6.351760871e-05
6.327211934e-05
-0.0003403409318
-4.549111698e-05
-3.540427124e-05
-0.0003550170442
-0.0003541176005
-0.0003634782355
-1.637703392e-05
1.5166767e-05
-0.0003624696493
-1.242531819e-05
1.141673196e-05
-9.465185365e-06
8.658216051e-06
-0.0004883252615
-1.195221353e-05
-0.0004866530838
-9.005573482e-06
-6.783205108e-06
-0.0002995539624
-1.342314294e-05
-0.0002984168859
-1.014264994e-05
-7.652216521e-06
-0.0003609902516
-1.839644804e-05
-0.0003595097753
-1.390579444e-05
-1.060959901e-05
-0.0004929479646
2.271251569e-05
-0.0004920683324
1.727743996e-05
1.317193934e-05
-0.0003004392727
2.142986915e-05
-0.000299494502
1.633266924e-05
1.24294505e-05
-0.0003558007848
-7.450692977e-05
7.435866749e-05
-0.0003556512179
-5.706972549e-05
5.692015861e-05
-4.377026246e-05
4.369615045e-05
0.0002803929656
-8.173454506e-05
0.0002735556265
-6.308368274e-05
-4.864627754e-05
0.0003080208552
-5.999454941e-05
6.479469214e-05
0.0003043233028
-4.63544963e-05
5.005204866e-05
-3.577970904e-05
3.862299057e-05
0.0003528734672
-1.838696909e-05
1.891202449e-05
0.0003524136879
-1.427673528e-05
1.473651458e-05
-1.118157578e-05
1.144418109e-05
0.0003536521262
-1.818984611e-05
0.0003535208255
-1.414543455e-05
-1.105050814e-05
-0.0005791580878
-8.474970226e-05
-0.0005788530657
-6.490000624e-05
-4.987068433e-05
-0.0005434479066
6.030810441e-05
-6.159874408e-05
-0.0005425889075
4.629328716e-05
-4.715228625e-05
3.539739864e-05
-3.611371024e-05
0.0003000615872
0.000297457333
0.0003589569728
1.706836182e-05
-1.673383515e-05
0.0003586894127
1.335394278e-05
-1.308638267e-05
1.032380124e-05
-1.025700195e-05
0.000357668827
1.680224419e-05
0.0003578687146
1.315405522e-05
1.025769662e-05
0.0003688418189
1.606483085e-05
-1.613334729e-05
0.0003688418607
1.261926953e-05
-1.261931138e-05
9.788509447e-06
-9.788470144e-06
0.0003680790113
1.613340014e-05
0.0003681475694
1.255071145e-05
9.788545748e-06
0.0003633562185
-1.646845109e-05
1.673925949e-05
0.0003631531561
-1.28874158e-05
1.309047821e-05
-1.005793749e-05
1.019326797e-05
0.0003615663771
-1.592701545e-05
0.0003611601536
-1.248119232e-05
-9.719494557e-06
0.0003727277712
-1.820489913e-05
1.813550939e-05
0.0003728665557
-1.427689333e-05
1.413810881e-05
-1.103087273e-05
1.103094393e-05
0.0003734207588
-1.834411376e-05
0.0003734205955
-1.427673007e-05
-1.110043028e-05
0.0003746006472
1.869440102e-05
-1.862384996e-05
0.0003746710661
1.455674588e-05
-1.462716478e-05
1.131030799e-05
-1.131027479e-05
0.0003777134274
1.869435096e-05
0.0003777837862
1.448638709e-05
1.131033526e-05
0.0005573365657
0.0005574883941
0.0004248719126
2.517658565e-05
-2.509719071e-05
0.0004247926095
1.956939822e-05
-1.949009517e-05
1.5244294e-05
-1.516483011e-05
0.0003931815153
2.501785864e-05
0.0003931017087
1.941055906e-05
1.508543317e-05
0.0004242470387
2.525570443e-05
0.0004241677953
1.964864167e-05
1.524408685e-05
0.0004217604438
-2.486155023e-05
0.0004224699435
-1.933325435e-05
-1.492850642e-05
-0.000603625623
-0.0006029054496
-0.0003560211097
0.0001067247728
-0.0001072109626
-0.0003555339891
8.183049863e-05
-8.231761919e-05
6.278525215e-05
-6.319129359e-05
-0.000607260591
-0.0006063688948
-0.0004894594241
5.174168629e-05
-5.730654516e-05
-0.0004851841866
4.000738875e-05
-4.428262628e-05
3.08991393e-05
-3.419137403e-05
-0.0002887476946
4.870346783e-05
-0.0002864099683
3.766966244e-05
2.910018083e-05
-0.0005183073837
-0.0005176849463
-0.0003253265682
5.944829218e-05
-0.000324608981
4.557569996e-05
3.489612771e-05
-0.0003755391377
-7.347119417e-05
7.251042809e-05
-0.0003747995034
-5.633038455e-05
5.559075021e-05
-4.317869327e-05
4.266164266e-05
-0.0003779278068
-7.525200733e-05
-0.0003773316615
-5.766587081e-05
-4.429245924e-05
-0.0003652739972
-7.421043195e-05
-0.0003647574122
-5.684696957e-05
-4.362208806e-05
0.0004319307957
0.0004010904925
-0.0003398380858
8.072583877e-05
-0.0003390820867
6.186469085e-05
4.751743551e-05
-0.0003801469573
-8.330245577e-05
-0.0003794639761
-6.383414124e-05
-4.90327799e-05
0.0002925313092
2.087170734e-05
0.000292010653
1.623918079e-05
1.268547161e-05
0.0004812992367
0.0004801951872
0.000351240331
-1.950217999e-05
0.00035097827
-1.519552829e-05
-1.183787417e-05
0.0003554176462
1.818966535e-05
0.0003549546868
1.421126508e-05
1.105021466e-05
-0.0003682730419
8.520780382e-05
-0.000368120756
6.535929874e-05
5.009924599e-05
-0.0005980281378
9.821658111e-05
-0.0005975521668
7.532986465e-05
5.789030211e-05
-0.000467090259
-0.0004598116571
-0.0003731024952
6.181430475e-05
-0.0003729590627
4.729606538e-05
3.62578834e-05
-0.0003277675409
-6.578269707e-05
-0.0003269729429
-5.039886253e-05
-3.863903675e-05
-0.0005487777825
-0.0005485605264
0.0003603289063
1.619921808e-05
0.0003601952477
1.268545019e-05
9.922697274e-06
0.0003569091033
-1.660224021e-05
0.0003568429772
-1.295433513e-05
-1.005788037e-05
0.0003697475894
1.61333388e-05
0.000369954344
1.261930462e-05
9.857258819e-06
0.0003643765856
-1.599654664e-05
0.0003643766722
-1.255077572e-05
-9.788577229e-06
0.0003614592074
-1.653723727e-05
0.0003617290681
-1.288858457e-05
-9.990976904e-06
0.0004960449978
1.565615904e-05
0.0004961810651
1.221039817e-05
9.516312028e-06
0.0003713480538
-1.799678398e-05
0.0003714863374
-1.406862986e-05
-1.096162129e-05
0.0003745980375
1.834405761e-05
0.0003745980429
1.434653134e-05
1.11004297e-05
0.0005188697377
-1.876474801e-05
1.869431416e-05
0.0005189403127
-1.469798234e-05
1.462740739e-05
-1.138086301e-05
1.138077782e-05
0.0003175674082
-1.876483107e-05
0.0003175674285
-1.469800266e-05
-1.138081109e-05
0.00037646966
-1.855377032e-05
0.0003764697661
-1.448666738e-05
-1.12400926e-05
0.0003899600626
1.834308493e-05
-1.856094587e-05
0.0003902507778
1.427420524e-05
-1.456492046e-05
1.117095673e-05
-1.124341492e-05
0.0003892778109
1.805257881e-05
0.0003894954344
1.405658176e-05
1.102569873e-05
0.0003860207362
-1.848420664e-05
1.855616152e-05
0.000385948773
-1.441654624e-05
1.448850947e-05
-1.124087366e-05
1.124088704e-05
0.0003868623028
-1.819581458e-05
0.0003867181432
-1.427238656e-05
-1.109677742e-05
0.0003608105462
-1.862276364e-05
0.0003606685822
-1.455603867e-05
-1.130967336e-05
0.0003788026414
-1.819625569e-05
0.0003785183558
-1.427175299e-05
-1.10251644e-05
0.0003852516744
1.848435727e-05
0.0003853236497
1.441653424e-05
1.124106438e-05
0.0003844121294
1.826962004e-05
0.0003845550477
1.427361586e-05
1.109775777e-05
0.0003909485624
-1.863364946e-05
0.0003908756895
-1.449204759e-05
-1.131626515e-05
0.0003915008172
-1.863382469e-05
0.000391573813
-1.456504346e-05
-1.131629568e-05
-0.0006040940388
-0.0006027244472
-0.0003474922861
0.0001082026482
-0.0003545691788
8.305146556e-05
6.380914343e-05
-0.0002822920493
6.085569527e-05
-0.0002794409978
4.702280785e-05
3.629672385e-05
-0.0003041098789
-4.643931393e-05
-0.0003024676323
-3.59267998e-05
-2.775648031e-05
-0.0002922307411
3.753352334e-05
-0.0002899200314
2.90846082e-05
2.249361679e-05
-0.0003202280527
3.471051882e-05
-0.0003180382203
2.689477581e-05
2.084577461e-05
-0.0003463377605
5.286344532e-05
-5.412867837e-05
-0.0003453533721
4.047679139e-05
-4.146117983e-05
3.107273783e-05
-3.177496291e-05
-0.0005298743767
-0.0005288203937
-0.0003722424353
-5.923363337e-05
-0.0003721708484
-4.536102571e-05
-3.475250434e-05
-0.0003683388105
-5.45506566e-05
-0.0003680575108
-4.174247951e-05
-3.198573051e-05
-0.0003720500005
-5.469133762e-05
-0.0003719088983
-4.188358177e-05
-3.212725743e-05
-0.0003529354855
-0.0002025232286
-0.0003260034136
-0.000155995571
-0.0001201200485
-0.0003566440606
-7.966859008e-05
-0.0003564179389
-6.103356498e-05
-4.683701209e-05
-0.0003669531096
-0.0003661219838
-0.0003702786746
-0.0003697470835
0.0003515359651
0.0003515360481
-0.0003725130377
-9.083681179e-05
-0.0003719673271
-6.967757049e-05
-5.34925258e-05
-0.0003473243251
-0.0003463882033
0.0004208657532
-2.312736219e-05
0.0004207087755
-1.799323764e-05
-1.398278454e-05
0.0004213349625
0.0004214137905
0.0006039652824
0.0006043707433
-0.0006087534522
0.0001073732426
-0.0006086718137
8.239861267e-05
6.327247093e-05
-0.0003582116392
1.429464085e-05
-0.0003576077377
1.081283051e-05
8.12141737e-06
-0.0003415650283
-0.0003408948477
-0.0003621236831
-2.007973332e-05
-0.0003607771274
-1.525235017e-05
-1.155195345e-05
-0.0003445824944
-0.0003435021753
0.0002835248631
7.100026649e-05
0.0002787532968
5.482361491e-05
4.229437278e-05
0.0004800825814
0.0004718225135
0.0003528062364
0.0003523472227
0.0003541341003
0.0003541999309
-0.0003585945333
-0.0003581352408
-0.0003747702408
-9.734463898e-05
9.655155388e-05
-0.0003742153569
-7.469622799e-05
7.414134417e-05
-5.725510752e-05
5.685908446e-05
-0.000350160768
-0.0003495271313
-0.0003636500152
9.639306554e-05
-0.0003634912543
7.39825833e-05
5.685942943e-05
-0.000595953847
-0.0005959536607
-0.0002411117713
-0.0002339481142
-0.0003490243543
-0.0003488805752
0.0003602199459
0.0003598190134
0.0003570702196
0.0003572699397
0.0003693288544
0.0003693288477
0.0003675220909
0.0003675220266
0.0003617192666
0.0003619211603
0.000335339938
0.0003350691439
0.0003721112388
0.0003721807178
0.0003739762005
0.0003740460018
0.0003484421522
0.0003484423948
0.0003770187471
0.0003770184668
0.0003885429275
-1.790770142e-05
1.790768689e-05
0.0003885427778
-1.39839884e-05
1.398413809e-05
-1.088067822e-05
1.088050845e-05
0.0003890231442
0.0003890957376
0.0003879896221
1.79797618e-05
0.0003879175526
1.405620752e-05
1.088066603e-05
0.000387577709
0.00038736153
0.0003829863541
1.791186729e-05
-1.791191805e-05
0.0003829863936
1.398718882e-05
-1.398722826e-05
1.088314418e-05
-1.088317412e-05
0.0003827163699
0.0003824318058
0.0003833975106
-1.798335048e-05
0.0003834690895
-1.405880715e-05
-1.095474835e-05
0.0003840901254
0.0003843049342
0.0003887950027
1.863371265e-05
-1.870687658e-05
0.0003888680778
1.456510347e-05
-1.463817862e-05
1.131616162e-05
-1.131626435e-05
0.0003921258886
0.0003921259486
0.0003617642039
-1.870662863e-05
0.0003617643369
-1.463831155e-05
-1.138938316e-05
0.0005386417447
0.0005386415646
0.0004254960764
-2.501768715e-05
0.0004254961238
-1.949014253e-05
-1.516497604e-05
0.0004220635229
0.0004219839394
0.000423461217
2.525597608e-05
0.000423461235
1.96486237e-05
1.52441552e-05
0.0004222066162
0.0004225219855
-0.0003520102336
-0.0003519292401
-0.0006107762536
-0.0001109878381
-0.0006112251583
-8.521514611e-05
-6.544820635e-05
-0.0003549732647
-0.0003571369452
-0.0002869688982
-0.0002842287166
-0.0003104985482
-0.0003087556855
-0.0003342205878
-3.270628129e-05
3.102227775e-05
-0.0003329254862
-2.534311753e-05
2.40480159e-05
-1.961837807e-05
1.858268015e-05
-0.0003343811059
-0.0003328294476
-0.0003161204631
2.86883792e-05
-0.00031436882
2.229637282e-05
1.728439395e-05
-0.0004967928912
-0.000494066381
-0.0003586024287
-0.0003583877544
-0.0003703040436
5.539839006e-05
-5.631764761e-05
-0.0003695970193
4.244925459e-05
-4.315627887e-05
3.25515706e-05
-3.304624812e-05
-0.0003733711305
-0.0003728054577
-0.0003561182801
-5.674284591e-05
-0.0003558351076
-4.343945144e-05
-3.325836988e-05
-0.0003213184474
-0.0003212480856
-0.0003543546854
7.221521841e-05
-0.0003540595629
5.529562769e-05
4.243999068e-05
-0.0005586456318
-0.0005585716451
-0.0003363820252
7.651977101e-05
-0.0003358599455
5.863505588e-05
4.496280089e-05
-0.0003666897432
-0.0003657205581
-0.0003336596911
-7.42833551e-05
-0.0003335111275
-5.699553322e-05
-4.369616302e-05
-0.0005630400302
-0.0005631154048
-0.0001386561872
-0.0001222696416
)
;
boundaryField
{
topAndBottom
{
type calculated;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
wing
{
type calculated;
value nonuniform List<scalar>
378
(
-0.0001356508525
0.0004376127661
0.0004394951382
0.000344589632
-0.000271578064
-0.0003293967447
0.0003430648172
-0.0005817230599
-0.0003538480683
0.0003913186456
-0.0004750016073
-0.0003668037982
0.0004104845142
0.0003865705016
0.0004103969763
0.0004122713185
0.0003845511089
-0.000590393543
0.0003656025573
0.0006398442515
0.0004411942412
-0.0003534477861
-0.0003472567352
-0.0003512872014
-0.0003539390557
-0.0003675545475
-0.000366777494
-0.0003682466327
-0.0003503136796
0.0003198993075
0.0003435955047
-0.0003505245758
-0.0003492549585
-0.0003504075107
-0.0003741897673
-0.0003549423006
0.0003364105558
0.0003401577006
0.0003742424574
0.000400359756
0.0003984806584
0.0003931789162
0.0003978553335
0.0003413911796
0.0004017816282
0.0004009102548
0.0004025918406
0.0004050865971
0.0004032096254
0.0004148540024
0.0004129762914
-0.0003438447715
0.0004154823576
0.0004129422532
-0.000361566433
-0.0005917255828
0.0004419493391
-0.0004915783815
-0.0003398948753
-0.00032054804
-0.0003260453242
-0.0003568891664
-0.0003550071406
-0.0003587556364
-0.0003672256397
-0.0003672672613
-0.0003653736605
-0.0003113988115
-0.0003680486699
-0.0003527739529
-0.0003689793227
-0.0003668516388
-0.0005674550273
-0.0003417417648
0.0004264121156
0.0004062812049
0.0004298384538
0.0004315328174
0.0004369268316
0.0004404883198
0.0003454755965
-0.0005996172933
-0.0002694536784
-0.0003616176376
0.0003100806948
0.0003303816355
0.0004747513641
0.000286154413
0.0003423345292
-0.0003586384632
0.0004336004996
0.0004334873619
-0.0003757328464
0.0004342865458
0.0004311787565
-0.0003549947295
0.0004402351862
-0.0005363741478
-0.0005539876591
-0.0003530434158
0.0002269524706
0.0004093258673
0.0004059609581
0.0004110214246
0.000411645873
-0.0005824577125
-0.0003478607426
0.0005761008644
0.000359638298
0.0005899684376
0.0004308668011
0.0004304594348
0.0004153432231
0.0004397061576
-0.0006088872574
-0.0003554781928
-0.0003303143373
-0.0002967944852
-0.0003515837981
-0.0003529479053
-0.0003670773343
-0.0003674016934
-0.0003664229394
-0.0003657436
0.0003458227198
-0.0003453945113
-0.0003535128228
-0.0004076055635
-0.0004360544085
-0.0002449047687
-0.0003746915562
-0.000363983678
-0.0005710235281
-0.0003371480722
0.0003251416364
0.0003316815159
0.0004717930071
0.0003124480911
0.0002824334743
0.0003209316335
0.0003416732027
0.0003295280683
0.0003997344544
0.0003990329342
0.0003966048
0.0003971560191
0.0003738318809
0.000401610243
0.0004022355446
0.0004044594985
0.0004037592364
0.0004142254515
0.0004135236819
-0.0003687767557
0.0004161067832
0.0004159523819
-0.0003473740315
-0.000370728082
0.0004321488726
0.0004327782123
-0.0003646522997
0.0004016549176
-0.0003514374161
0.0004451310281
-0.000343405161
-0.0003431199088
-0.0002935701731
-0.0003570196879
-0.0003553982988
-0.0003545994963
-0.0003305503653
-0.0003658538355
-0.0003664106426
-0.0003611547561
-0.000335886023
-0.0003416546625
-0.0003172108926
-0.0003695969592
-0.000370143795
-0.0003311989893
-0.0003624909519
-0.000372453909
0.000102279261
-0.0005744032867
-0.0003589235909
0.000270600623
6.001698371e-05
-3.855482015e-05
0.0003314270536
0.0003483870649
0.000355110217
-0.0003424259209
-0.0003528127668
-0.0003482506353
-0.0003744942369
-0.0003583176422
0.0003606171346
0.0003561385431
0.000371403735
0.0003464617471
0.0003612379538
0.000304420617
0.0003709992371
0.0003752892188
0.0003759144951
-0.0005830317043
-0.0004886006253
-0.0003704281062
-0.0003469853356
0.0002596652064
0.0004345926699
-0.0003406466924
-0.0005876175238
0.0003977167307
-0.0003613333006
0.0004172606115
0.0004221166684
-0.0003567586133
-0.0003446606474
-0.0003535456402
-0.00036166268
-0.0004854486844
-0.0002975478745
-0.0003583653617
-0.0004913915433
-0.0002987520132
-0.0003555771059
0.0002682881027
0.0003014800213
0.0003521510826
0.0003533897579
-0.0005785471571
-0.0005418725959
0.0002954627012
0.0003586226134
0.0003579348192
0.0003688418214
0.0003681475331
0.0003630178256
0.0003608217107
0.0003728664845
0.0003734901531
0.0003746710329
0.0003777837589
0.000557564279
0.0004247131456
0.0003931017362
0.0004241680024
0.0004230216325
-0.0006022647709
-0.0003551279477
-0.0006057207669
-0.0004818919519
-0.0002846110098
-0.0005171302512
-0.0003241077101
-0.0003742824528
-0.0003768094647
-0.0003643140174
0.0003773660199
-0.0003386299784
-0.0003788558553
0.0002915550097
0.0004794160143
0.000350716562
0.0003546239514
-0.0003678906277
-0.0005972353523
-0.0004542090124
-0.0003728875354
-0.0003263959266
-0.0005484156203
0.0003599944575
0.0003567767789
0.0003700231835
0.000364444857
0.0003618636809
0.0004962490296
0.0003716246388
0.00037466786
0.0005189403979
0.0003175673766
0.0003765399474
0.000390323236
0.0003896406924
0.0003859487596
0.0003865740469
0.0003605974445
0.0003782338468
0.0003853234723
0.0003846983543
0.0003909485398
0.0003915738436
-0.000601758328
-0.0003600710344
-0.0002772496945
-0.0003012047465
-0.0002881321361
-0.0003163903782
-0.000344651147
-0.0005279057753
-0.0003721712933
-0.0003678467432
-0.0003717673713
-0.0003052858375
-0.0003561915644
-0.0003654415604
-0.0003692908306
0.0003513795893
-0.0003715778326
-0.0003456861703
0.000420708896
0.0004214137405
0.000604695189
-0.0006086721653
-0.0003570709391
-0.0003404256469
-0.000359834773
-0.0003426246782
0.0002750819146
0.0004654706088
0.0003519535296
0.0003541996374
-0.0003579066792
-0.0003738193339
-0.0003488919367
-0.0003634915993
-0.0005959535432
-0.0002284403599
-0.000348736402
0.0003594847087
0.0003574697559
0.0003693976363
0.0003675219952
0.0003621234513
0.0003348659613
0.0003722500404
0.0003740460012
0.0003485128979
0.0003770887095
0.0003885429476
0.0003892407581
0.000387917395
0.0003871454186
0.0003829864235
0.0003822897855
0.0003835406638
0.0003844479436
0.0003888681806
0.0003921258146
0.0003618374557
0.0005386417144
0.0004254962697
0.0004219043965
0.0004234611666
0.0004228376343
-0.0003518480628
-0.0006114982353
-0.0003587760081
-0.0002821233668
-0.000307411985
-0.0003318897883
-0.0003316020511
-0.0003130705338
-0.0004919251445
-0.000358244131
-0.0003691023418
-0.0003723811445
-0.0003556229858
-0.0003211057153
-0.0003538379109
-0.0005585719158
-0.0003354872911
-0.0003650502165
-0.0003334370525
-0.0005631154173
-0.0001096645039
-0.0002056240573
)
;
}
front
{
type empty;
value nonuniform 0();
}
back
{
type empty;
value nonuniform 0();
}
}
// ************************************************************************* //
| [
"ishantamrakat24@gmail.com"
] | ishantamrakat24@gmail.com | |
c44d259fa285d95aa20f441dafc997b46e802257 | 84a9cf5fd65066cd6c32b4fc885925985231ecde | /Plugins2/ElementalEngine/LightMapObject/PhotonMap.h | b9395a5f584497b4c526251109f58a95734049e9 | [] | no_license | acemon33/ElementalEngine2 | f3239a608e8eb3f0ffb53a74a33fa5e2a38e4891 | e30d691ed95e3811c68e748c703734688a801891 | refs/heads/master | 2020-09-22T06:17:42.037960 | 2013-02-11T21:08:07 | 2013-02-11T21:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,595 | h | ///============================================================================
/// \note Elemental Engine
/// Copyright (c) 2005-2008 Signature Devices, Inc.
///
/// This code is redistributable under the terms of the EE License.
///
/// This code is distributed without warranty or implied warranty of
/// merchantability or fitness for a particular purpose. See the
/// EE License for more details.
///
/// You should have received a copy of the EE License along with this
/// code; If not, write to Signature Devices, Inc.,
/// 3200 Bridge Parkway Suite 102, Redwood City, CA 94086 USA.
///============================================================================
#ifndef PHOTONMAP_H
#define PHOTONMAP_H
// Macros to pack/unpack directions
#define dirToPhoton(theta__,phi__,D__) { \
int t__,p__; \
t__ = (int) (acos(D__.z)*(256.0 / PI)); \
p__ = (int) (atan2(D__.y,D__.x)*(256.0 / (2.0*PI))); \
if (t__ > 255) \
theta__ = (unsigned char) 255; \
else \
theta__ = (unsigned char) t__; \
\
if (p__ > 255) \
phi__ = (unsigned char) 255; \
else if (p__ < 0) \
phi__ = (unsigned char) (p__ + 256); \
else \
phi__ = (unsigned char) p__; \
}
#define photonToDir(D__,theta__,phi__) { \
D__.x = sintheta[theta__]*cosphi[phi__]; \
D__.y = sintheta[theta__]*sinphi[phi__]; \
D__.z = costheta[theta__]; \
}
// Debug and build options
//#define PHOTON_DEBUG
//#define PHOTON_LOOKUP_CACHE
///////////////////////////////////////////////////////////////////////
// Class : CPhoton
// Description : A Photon
// Comments :
class CPhoton : public CTon {
public:
Vec3 C; // The intensity
unsigned char theta,phi; // Photon direction
};
///////////////////////////////////////////////////////////////////////
// Class : CPhotonRay
// Description : A Photon
// Comments :
class CPhotonRay {
public:
CPhotonRay( Ray &ray )
{
m_Ray = ray;
}
Ray m_Ray;
Vec3 intensity; // The intensity
float factor; // The product of all the factors (used for routian roulette)
};
///////////////////////////////////////////////////////////////////////
// Class : CPhotonMap
// Description : A Photon map
// Comments :
class CPhotonMap : public CMap<CPhoton> {
#ifdef PHOTON_LOOKUP_CACHE
class CPhotonSample {
public:
Vec3 C,P,N;
float dP;
CPhotonSample *next;
};
class CPhotonNode {
public:
Vec3 center;
float side;
CPhotonSample *samples;
CPhotonNode *children[8];
};
#endif
public:
CPhotonMap();
~CPhotonMap();
void attach() { refCount++; }
void detach() { refCount--; if (refCount == 0) delete this; }
void check() { if (refCount == 0) delete this; }
void reset();
void lookup(Vec3 &,const Vec3 &,int);
void lookup(Vec3 &,const Vec3 &,const Vec3 &,int);
void balance();
void store(const Vec3 &,const Vec3 &,const Vec3 &,const Vec3 &);
void bound(Vec3 &bmin,Vec3 &bmax);
#ifdef PHOTON_LOOKUP_CACHE
int probe(Vec3 &,const Vec3 &,const Vec3 &);
void insert(const Vec3 &,const Vec3 &,const Vec3 &,float);
CPhotonNode *root;
int maxDepth; // The maximum depth of the hierarchy
#endif
int refCount;
int modifying;
Matrix4x4 from,to;
float maxPower; // The maximum photon power
float searchRadius;
};
#endif // PHOTONMAP_H | [
"klhurley@yahoo.com"
] | klhurley@yahoo.com |
838948498508aace143eeeacd8a312dad133135d | 8def94d70dff30617a7644b2dff534fef7dc8281 | /IntXLib.Test/src/LessOpTest.h | 16db0987365d5b661e7d42bc9a42827af4cede03 | [
"MIT"
] | permissive | dendisuhubdy/IntXLib4CPP | e2a295d033a3a10155fdb68ea73082c7dd9a92ec | ba9869269bee5a25f8d9ab9bc84da6380e2eb315 | refs/heads/master | 2020-05-17T04:24:30.121236 | 2017-09-08T11:26:06 | 2017-09-08T11:26:06 | 183,508,780 | 1 | 0 | null | 2019-04-25T20:58:18 | 2019-04-25T20:58:17 | null | UTF-8 | C++ | false | false | 1,048 | h | #define BOOST_TEST_MODULE LessOpTest
#include "../IntX.h"
#include <vector>
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(LessOpTest)
BOOST_AUTO_TEST_CASE(Simple)
{
IntX int1 = IntX(7);
IntX int2 = IntX(8);
BOOST_CHECK(int1 < int2);
BOOST_CHECK(int1 < 8);
BOOST_CHECK(7 < int2);
}
BOOST_AUTO_TEST_CASE(SimpleFail)
{
IntX int1 = IntX(8);
BOOST_CHECK(!(int1 < 7));
}
BOOST_AUTO_TEST_CASE(Big)
{
IntX int1 = IntX(vector<UInt32>({ 1, 2 }), false);
IntX int2 = IntX(vector<UInt32>({ 1, 2, 3 }), true);
BOOST_CHECK(int2 < int1);
}
BOOST_AUTO_TEST_CASE(BigFail)
{
IntX int1 = IntX(vector<UInt32>({ 1, 2 }), false);
IntX int2 = IntX(vector<UInt32>({ 1, 2, 3 }), true);
BOOST_CHECK(!(int1 < int2));
}
BOOST_AUTO_TEST_CASE(EqualValues)
{
IntX int1 = IntX(vector<UInt32>({ 1, 2, 3 }), true);
IntX int2 = IntX(vector<UInt32>({ 1, 2, 3 }), true);
BOOST_CHECK(!(int1 < int2));
}
BOOST_AUTO_TEST_CASE(Neg)
{
IntX int1 = IntX(-10);
IntX int2 = IntX(-2);
BOOST_CHECK(int1 < int2);
}
BOOST_AUTO_TEST_SUITE_END()
| [
"ron2tele@gmail.com"
] | ron2tele@gmail.com |
905696cc0b60d3e56ef883fdbd7903c947165ebe | 563b013cfa9027136e2e1d0e3ac7c2879a04e2b2 | /Common/Ccpp/Common.h | 5c867a42cf248234afeb55eb8682a32c088cbca5 | [] | no_license | aloe-all/NPP_HexEdit | 8cb6263bb7fa00a70bdfc3781eefe8db80b39e96 | edf1d755d790b31ffac781493d0001106b8e0b0b | refs/heads/master | 2023-09-02T03:07:56.487088 | 2021-11-01T09:23:05 | 2021-11-01T09:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,467 | h | // This file is part of Notepad++ project
// Copyright (C)2021 Don HO <don.h@free.fr>
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// at your option any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#pragma once
#include <vector>
#include <string>
#include <sstream>
#include <windows.h>
#include <iso646.h>
#include <cstdint>
#include <unordered_set>
#include <algorithm>
const bool dirUp = true;
const bool dirDown = false;
#define NPP_CP_WIN_1252 1252
#define NPP_CP_DOS_437 437
#define NPP_CP_BIG5 950
#define LINKTRIGGERED WM_USER+555
#define BCKGRD_COLOR (RGB(255,102,102))
#define TXT_COLOR (RGB(255,255,255))
#define generic_strtol wcstol
#define generic_strncpy wcsncpy
#define generic_stricmp _wcsicmp //MODIFIED by HEXEDIT
#define generic_strncmp wcsncmp
#define generic_strnicmp wcsnicmp
#define generic_strncat wcsncat
#define generic_strchr wcschr
#define generic_atoi _wtoi
#define generic_itoa _itow
#define generic_atof _wtof
#define generic_strtok wcstok
#define generic_strftime wcsftime
#define generic_fprintf fwprintf
#define generic_sprintf swprintf
#define generic_sscanf swscanf
#define generic_fopen _wfopen
#define generic_fgets fgetws
#define COPYDATA_FILENAMES COPYDATA_FILENAMESW
#define NPP_INTERNAL_FUCTION_STR TEXT("Notepad++::InternalFunction")
typedef std::basic_string<TCHAR> generic_string;
typedef std::basic_stringstream<TCHAR> generic_stringstream;
//NOT USED by HEXEDIT generic_string folderBrowser(HWND parent, const generic_string & title = TEXT(""), int outputCtrlID = 0, const TCHAR *defaultStr = NULL);
//NOT USED by HEXEDIT generic_string getFolderName(HWND parent, const TCHAR *defaultDir = NULL);
void printInt(int int2print);
void printStr(const TCHAR *str2print);
generic_string commafyInt(size_t n);
void writeLog(const TCHAR *logFileName, const char *log2write);
int filter(unsigned int code, struct _EXCEPTION_POINTERS *ep);
generic_string purgeMenuItemString(const TCHAR * menuItemStr, bool keepAmpersand = false);
std::vector<generic_string> tokenizeString(const generic_string & tokenString, const char delim);
void ClientRectToScreenRect(HWND hWnd, RECT* rect);
void ScreenRectToClientRect(HWND hWnd, RECT* rect);
std::wstring string2wstring(const std::string & rString, UINT codepage);
std::string wstring2string(const std::wstring & rwString, UINT codepage);
bool isInList(const TCHAR *token, const TCHAR *list);
generic_string BuildMenuFileName(int filenameLen, unsigned int pos, const generic_string &filename);
std::string getFileContent(const TCHAR *file2read);
generic_string relativeFilePathToFullFilePath(const TCHAR *relativeFilePath);
void writeFileContent(const TCHAR *file2write, const char *content2write);
bool matchInList(const TCHAR *fileName, const std::vector<generic_string> & patterns);
bool allPatternsAreExclusion(const std::vector<generic_string> patterns);
class WcharMbcsConvertor final
{
public:
static WcharMbcsConvertor& getInstance() {
static WcharMbcsConvertor instance;
return instance;
}
const wchar_t * char2wchar(const char *mbStr, UINT codepage, int lenIn=-1, int *pLenOut=NULL, int *pBytesNotProcessed=NULL);
const wchar_t * char2wchar(const char *mbcs2Convert, UINT codepage, int *mstart, int *mend);
const char * wchar2char(const wchar_t *wcStr, UINT codepage, int lenIn = -1, int *pLenOut = NULL);
const char * wchar2char(const wchar_t *wcStr, UINT codepage, long *mstart, long *mend);
const char * encode(UINT fromCodepage, UINT toCodepage, const char *txt2Encode, int lenIn=-1, int *pLenOut=NULL, int *pBytesNotProcessed=NULL)
{
int lenWc = 0;
const wchar_t * strW = char2wchar(txt2Encode, fromCodepage, lenIn, &lenWc, pBytesNotProcessed);
return wchar2char(strW, toCodepage, lenWc, pLenOut);
}
protected:
WcharMbcsConvertor() = default;
~WcharMbcsConvertor() = default;
// Since there's no public ctor, we need to void the default assignment operator and copy ctor.
// Since these are marked as deleted does not matter under which access specifier are kept
WcharMbcsConvertor(const WcharMbcsConvertor&) = delete;
WcharMbcsConvertor& operator= (const WcharMbcsConvertor&) = delete;
// No move ctor and assignment
WcharMbcsConvertor(WcharMbcsConvertor&&) = delete;
WcharMbcsConvertor& operator= (WcharMbcsConvertor&&) = delete;
template <class T>
class StringBuffer final
{
public:
~StringBuffer() { if (_allocLen) delete[] _str; }
void sizeTo(size_t size)
{
if (_allocLen < size)
{
if (_allocLen)
delete[] _str;
_allocLen = max(size, initSize);
_str = new T[_allocLen];
}
}
void empty()
{
static T nullStr = 0; // routines may return an empty string, with null terminator, without allocating memory; a pointer to this null character will be returned in that case
if (_allocLen == 0)
_str = &nullStr;
else
_str[0] = 0;
}
operator T* () { return _str; }
operator const T* () const { return _str; }
protected:
static const int initSize = 1024;
size_t _allocLen = 0;
T* _str = nullptr;
};
StringBuffer<char> _multiByteStr;
StringBuffer<wchar_t> _wideCharStr;
};
#define MACRO_RECORDING_IN_PROGRESS 1
#define MACRO_RECORDING_HAS_STOPPED 2
#define REBARBAND_SIZE sizeof(REBARBANDINFO)
generic_string PathRemoveFileSpec(generic_string & path);
generic_string PathAppend(generic_string &strDest, const generic_string & str2append);
COLORREF getCtrlBgColor(HWND hWnd);
generic_string stringToUpper(generic_string strToConvert);
generic_string stringToLower(generic_string strToConvert);
generic_string stringReplace(generic_string subject, const generic_string& search, const generic_string& replace);
std::vector<generic_string> stringSplit(const generic_string& input, const generic_string& delimiter);
bool str2numberVector(generic_string str2convert, std::vector<size_t>& numVect);
generic_string stringJoin(const std::vector<generic_string>& strings, const generic_string& separator);
generic_string stringTakeWhileAdmissable(const generic_string& input, const generic_string& admissable);
double stodLocale(const generic_string& str, _locale_t loc, size_t* idx = NULL);
int OrdinalIgnoreCaseCompareStrings(LPCTSTR sz1, LPCTSTR sz2);
bool str2Clipboard(const generic_string &str2cpy, HWND hwnd);
generic_string GetLastErrorAsString(DWORD errorCode = 0);
generic_string intToString(int val);
generic_string uintToString(unsigned int val);
HWND CreateToolTip(int toolID, HWND hDlg, HINSTANCE hInst, const PTSTR pszText, bool isRTL);
HWND CreateToolTipRect(int toolID, HWND hWnd, HINSTANCE hInst, const PTSTR pszText, const RECT rc);
//NOT USED by HEXEDIT bool isCertificateValidated(const generic_string & fullFilePath, const generic_string & subjectName2check);
bool isAssoCommandExisting(LPCTSTR FullPathName);
std::wstring s2ws(const std::string& str);
std::string ws2s(const std::wstring& wstr);
bool deleteFileOrFolder(const generic_string& f2delete);
void getFilesInFolder(std::vector<generic_string>& files, const generic_string& extTypeFilter, const generic_string& inFolder);
template<typename T> size_t vecRemoveDuplicates(std::vector<T>& vec, bool isSorted = false, bool canSort = false)
{
if (!isSorted && canSort)
{
std::sort(vec.begin(), vec.end());
isSorted = true;
}
if (isSorted)
{
typename std::vector<T>::iterator it;
it = std::unique(vec.begin(), vec.end());
vec.resize(distance(vec.begin(), it)); // unique() does not shrink the vector
}
else
{
std::unordered_set<T> seen;
auto newEnd = std::remove_if(vec.begin(), vec.end(), [&seen](const T& value)
{
return !seen.insert(value).second;
});
vec.erase(newEnd, vec.end());
}
return vec.size();
}
void trim(generic_string& str);
bool endsWith(const generic_string& s, const generic_string& suffix);
int nbDigitsFromNbLines(size_t nbLines);
generic_string getDateTimeStrFrom(const generic_string& dateTimeFormat, const SYSTEMTIME& st);
| [
"christian.grasser@live.de"
] | christian.grasser@live.de |
c3d24abc36a85169270116fccc158fc79e0bf3b3 | 2c74e4ad6c5dd8258fe4e061b784add7099f099d | /Civ4 Reimagined/Source/CyPlayer.cpp | 9c7872973d7446b6e9f979ee0773770ab44a6f06 | [
"CC-BY-3.0"
] | permissive | nalyc/MCiv4Reimagined | 73bb0e925cf915111e78973bf3cf4dda1ba9aa63 | dc1d66420493892c4572a15b80f70528813f1592 | refs/heads/master | 2021-04-27T05:16:38.572025 | 2018-02-23T08:59:01 | 2018-02-23T08:59:01 | 122,595,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 60,018 | cpp | //
// Python wrapper class for CvPlayer
//
#include "CvGameCoreDLL.h"
#include "CyPlayer.h"
#include "CyUnit.h"
#include "CyCity.h"
#include "CyArea.h"
#include "CyPlot.h"
#include "CvPlayerAI.h"
//#include "CvEnums.h"
#include "CvCity.h"
#include "CvMap.h"
#include "CvPlot.h"
#include "CySelectionGroup.h"
#include "CvDLLPythonIFaceBase.h"
#include "CvGlobals.h"
CyPlayer::CyPlayer() : m_pPlayer(NULL)
{
}
CyPlayer::CyPlayer(CvPlayer* pPlayer) : m_pPlayer(pPlayer)
{
}
/************************************************************************************************/
/* CHANGE_PLAYER 08/27/08 jdog5000 */
/* */
/* */
/************************************************************************************************/
void CyPlayer::changeLeader( int /*LeaderHeadTypes*/ eNewLeader )
{
if( m_pPlayer )
m_pPlayer->changeLeader( (LeaderHeadTypes)eNewLeader );
}
void CyPlayer::changeCiv( int /*CivilizationTypes*/ eNewCiv )
{
if( m_pPlayer )
m_pPlayer->changeCiv( (CivilizationTypes)eNewCiv );
}
void CyPlayer::setIsHuman( bool bNewValue )
{
if( m_pPlayer )
m_pPlayer->setIsHuman( bNewValue );
}
/************************************************************************************************/
/* CHANGE_PLAYER END */
/************************************************************************************************/
int CyPlayer::startingPlotRange()
{
return m_pPlayer ? m_pPlayer->startingPlotRange() : -1;
}
bool CyPlayer::startingPlotWithinRange(CyPlot *pPlot, int /*PlayerTypes*/ ePlayer, int iRange, int iPass)
{
if (m_pPlayer && pPlot != NULL && !pPlot->isNone())
{
CvPlot *pcvPlot = pPlot->getPlot();
if (pPlot)
{
return m_pPlayer->startingPlotWithinRange(pcvPlot, (PlayerTypes)ePlayer, iRange, iPass);
}
}
return NULL;
}
CyPlot* CyPlayer::findStartingPlot(bool bRandomize)
{
return m_pPlayer ? new CyPlot(m_pPlayer->findStartingPlot(bRandomize)) : NULL;
}
CyCity* CyPlayer::initCity(int x, int y)
{
return m_pPlayer ? new CyCity(m_pPlayer->initCity(x, y, true, true)) : NULL;
}
void CyPlayer::acquireCity(CyCity* pCity, bool bConquest, bool bTrade)
{
if (m_pPlayer)
m_pPlayer->acquireCity(pCity->getCity(), bConquest, bTrade, true);
}
void CyPlayer::killCities()
{
if (m_pPlayer)
m_pPlayer->killCities();
}
std::wstring CyPlayer::getNewCityName()
{
return m_pPlayer ? m_pPlayer->getNewCityName() : std::wstring();
}
CyUnit* CyPlayer::initUnit(int /*UnitTypes*/ iIndex, int iX, int iY, UnitAITypes eUnitAI, DirectionTypes eFacingDirection)
{
return m_pPlayer ? new CyUnit(m_pPlayer->initUnit((UnitTypes) iIndex, iX, iY, eUnitAI, eFacingDirection)) : NULL;
}
void CyPlayer::disbandUnit(bool bAnnounce)
{
return m_pPlayer ? m_pPlayer->disbandUnit(bAnnounce) : NULL;
}
void CyPlayer::killUnits()
{
if (m_pPlayer)
m_pPlayer->killUnits();
}
bool CyPlayer::hasTrait(int /*TraitTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->hasTrait((TraitTypes) iIndex) : false;
}
bool CyPlayer::isHuman()
{
return m_pPlayer ? m_pPlayer->isHuman() : false;
}
bool CyPlayer::isBarbarian()
{
return m_pPlayer ? m_pPlayer->isBarbarian() : false;
}
std::wstring CyPlayer::getName()
{
return m_pPlayer ? m_pPlayer->getName() : std::wstring();
}
std::wstring CyPlayer::getNameForm(int iForm)
{
return m_pPlayer ? m_pPlayer->getName((uint)iForm) : std::wstring();
}
std::wstring CyPlayer::getNameKey()
{
return m_pPlayer ? m_pPlayer->getNameKey() : std::wstring();
}
std::wstring CyPlayer::getCivilizationDescription(int iForm)
{
return m_pPlayer ? m_pPlayer->getCivilizationDescription((uint)iForm) : std::wstring();
}
std::wstring CyPlayer::getCivilizationDescriptionKey()
{
return m_pPlayer ? m_pPlayer->getCivilizationDescriptionKey() : std::wstring();
}
std::wstring CyPlayer::getCivilizationShortDescription(int iForm)
{
return m_pPlayer ? m_pPlayer->getCivilizationShortDescription((uint)iForm) : std::wstring();
}
std::wstring CyPlayer::getCivilizationShortDescriptionKey()
{
return m_pPlayer ? m_pPlayer->getCivilizationShortDescriptionKey() : std::wstring();
}
std::wstring CyPlayer::getCivilizationAdjective(int iForm)
{
return m_pPlayer ? m_pPlayer->getCivilizationAdjective((uint)iForm) : std::wstring();
}
std::wstring CyPlayer::getCivilizationAdjectiveKey( )
{
return m_pPlayer ? m_pPlayer->getCivilizationAdjectiveKey() : std::wstring();
}
std::wstring CyPlayer::getFlagDecal( )
{
return m_pPlayer ? m_pPlayer->getFlagDecal() : std::wstring();
}
bool CyPlayer::isWhiteFlag()
{
return m_pPlayer ? m_pPlayer->isWhiteFlag() : false;
}
std::wstring CyPlayer::getStateReligionName(int iForm)
{
return m_pPlayer ? m_pPlayer->getStateReligionName((int)iForm) : std::wstring();
}
std::wstring CyPlayer::getStateReligionKey( )
{
return m_pPlayer ? m_pPlayer->getStateReligionKey() : std::wstring();
}
std::wstring CyPlayer::getBestAttackUnitName(int iForm)
{
return m_pPlayer ? m_pPlayer->getBestAttackUnitName((uint)iForm) : std::wstring();
}
std::wstring CyPlayer::getWorstEnemyName()
{
return m_pPlayer ? m_pPlayer->getWorstEnemyName() : std::wstring();
}
std::wstring CyPlayer::getBestAttackUnitKey()
{
return m_pPlayer ? m_pPlayer->getBestAttackUnitKey() : std::wstring();
}
int /*ArtStyleTypes*/ CyPlayer::getArtStyleType()
{
return m_pPlayer ? (int) m_pPlayer->getArtStyleType() : -1;
}
std::string CyPlayer::getUnitButton(int eUnit)
{
return m_pPlayer ? m_pPlayer->getUnitButton((UnitTypes)eUnit) : "";
}
int CyPlayer::findBestFoundValue( )
{
return m_pPlayer ? m_pPlayer->findBestFoundValue() : -1;
}
int CyPlayer::countReligionSpreadUnits(CyArea* pArea, int /*ReligionTypes*/ eReligion)
{
return m_pPlayer ? m_pPlayer->countReligionSpreadUnits(pArea->getArea(), (ReligionTypes) eReligion) : -1;
}
int CyPlayer::countNumCoastalCities()
{
return m_pPlayer ? m_pPlayer->countNumCoastalCities() : -1;
}
int CyPlayer::countNumCoastalCitiesByArea(CyArea* pArea)
{
return m_pPlayer ? m_pPlayer->countNumCoastalCitiesByArea(pArea->getArea()) : -1;
}
int CyPlayer::countTotalCulture()
{
return m_pPlayer ? m_pPlayer->countTotalCulture() : -1;
}
int CyPlayer::countOwnedBonuses(int /*BonusTypes*/ eBonus)
{
return m_pPlayer ? m_pPlayer->countOwnedBonuses((BonusTypes)eBonus) : NO_BONUS;
}
int CyPlayer::countUnimprovedBonuses(CyArea* pArea, CyPlot* pFromPlot)
{
return m_pPlayer ? m_pPlayer->countUnimprovedBonuses(pArea->getArea(), pFromPlot->getPlot()) : -1;
}
int CyPlayer::countCityFeatures(int /*FeatureTypes*/ eFeature)
{
return m_pPlayer ? m_pPlayer->countCityFeatures((FeatureTypes) eFeature) : -1;
}
int CyPlayer::countNumBuildings(int /*BuildingTypes*/ eBuilding)
{
return m_pPlayer ? m_pPlayer->countNumBuildings((BuildingTypes) eBuilding) : -1;
}
int CyPlayer::countNumCitiesConnectedToCapital()
{
return m_pPlayer ? m_pPlayer->countNumCitiesConnectedToCapital() : -1;
}
bool CyPlayer::canContact(int /*PlayerTypes*/ ePlayer)
{
return m_pPlayer ? m_pPlayer->canContact((PlayerTypes)ePlayer) : false;
}
void CyPlayer::contact(int /*PlayerTypes*/ ePlayer)
{
if (m_pPlayer)
m_pPlayer->contact((PlayerTypes)ePlayer);
}
bool CyPlayer::canTradeWith(int /*PlayerTypes*/ eWhoTo)
{
return m_pPlayer ? m_pPlayer->canTradeWith((PlayerTypes)eWhoTo) : false;
}
bool CyPlayer::canTradeItem(int /*PlayerTypes*/ eWhoTo, TradeData item, bool bTestDenial)
{
return m_pPlayer ? m_pPlayer->canTradeItem((PlayerTypes)eWhoTo, item, bTestDenial) : false;
}
DenialTypes CyPlayer::getTradeDenial(int /*PlayerTypes*/ eWhoTo, TradeData item)
{
return m_pPlayer ? m_pPlayer->getTradeDenial((PlayerTypes)eWhoTo, item) : NO_DENIAL;
}
bool CyPlayer::canTradeNetworkWith(int /*PlayerTypes*/ iPlayer)
{
return m_pPlayer ? m_pPlayer->canTradeNetworkWith((PlayerTypes)iPlayer) : false;
}
int CyPlayer::getNumAvailableBonuses(int /*BonusTypes*/ eBonus)
{
return m_pPlayer ? m_pPlayer->getNumAvailableBonuses((BonusTypes)eBonus) : NO_BONUS;
}
int CyPlayer::getNumTradeableBonuses(int /*BonusTypes*/ eBonus)
{
return m_pPlayer ? m_pPlayer->getNumTradeableBonuses((BonusTypes)eBonus) : NO_BONUS;
}
int CyPlayer::getNumTradeBonusImports(int /*PlayerTypes*/ ePlayer)
{
return m_pPlayer ? m_pPlayer->getNumTradeBonusImports((PlayerTypes) ePlayer) : -1;
}
bool CyPlayer::hasBonus(int /*BonusTypes*/ eBonus)
{
return m_pPlayer ? m_pPlayer->hasBonus((BonusTypes)eBonus) : NO_BONUS;
}
bool CyPlayer::canStopTradingWithTeam(int /*TeamTypes*/ eTeam)
{
return m_pPlayer ? m_pPlayer->canStopTradingWithTeam((TeamTypes) eTeam) : false;
}
void CyPlayer::stopTradingWithTeam(int /*TeamTypes*/ eTeam)
{
if (m_pPlayer)
m_pPlayer->stopTradingWithTeam((TeamTypes) eTeam);
}
void CyPlayer::killAllDeals()
{
if (m_pPlayer)
m_pPlayer->killAllDeals();
}
bool CyPlayer::isTurnActive()
{
return m_pPlayer ? m_pPlayer->isTurnActive() : false;
}
void CyPlayer::findNewCapital()
{
if (m_pPlayer)
m_pPlayer->findNewCapital();
}
int CyPlayer::getNumGovernmentCenters()
{
return m_pPlayer ? m_pPlayer->getNumGovernmentCenters() : -1;
}
bool CyPlayer::canRaze(CyCity* pCity)
{
return m_pPlayer ? m_pPlayer->canRaze(pCity->getCity()) : false;
}
void CyPlayer::raze(CyCity* pCity)
{
if (m_pPlayer)
m_pPlayer->raze(pCity->getCity());
}
void CyPlayer::disband(CyCity* pCity)
{
if (m_pPlayer)
m_pPlayer->disband(pCity->getCity());
}
bool CyPlayer::canReceiveGoody(CyPlot* pPlot, int /*GoodyTypes*/ iIndex, CyUnit* pUnit)
{
return m_pPlayer ? m_pPlayer->canReceiveGoody(pPlot->getPlot(), (GoodyTypes) iIndex, pUnit->getUnit()) : false;
}
void CyPlayer::receiveGoody(CyPlot* pPlot, int /*GoodyTypes*/ iIndex, CyUnit* pUnit)
{
if (m_pPlayer)
m_pPlayer->receiveGoody(pPlot->getPlot(), (GoodyTypes) iIndex, pUnit->getUnit());
}
void CyPlayer::doGoody(CyPlot* pPlot, CyUnit* pUnit)
{
if (m_pPlayer)
m_pPlayer->doGoody(pPlot->getPlot(), pUnit->getUnit());
}
bool CyPlayer::canFound(int iX, int iY)
{
return m_pPlayer ? m_pPlayer->canFound(iX, iY) : false;
}
void CyPlayer::found(int x, int y)
{
if (m_pPlayer)
m_pPlayer->found(x,y);
}
bool CyPlayer::canTrain(int /*UnitTypes*/ eUnit, bool bContinue, bool bTestVisible)
{
return m_pPlayer ? m_pPlayer->canTrain((UnitTypes)eUnit, bContinue, bTestVisible) : false;
}
bool CyPlayer::canConstruct(int /*BuildingTypes*/eBuilding, bool bContinue, bool bTestVisible, bool bIgnoreCost)
{
return m_pPlayer ? m_pPlayer->canConstruct((BuildingTypes)eBuilding, bContinue, bTestVisible, bIgnoreCost) : false;
}
bool CyPlayer::canCreate(int /*ProjectTypes*/ eProject, bool bContinue, bool bTestVisible)
{
return m_pPlayer ? m_pPlayer->canCreate((ProjectTypes)eProject, bContinue, bTestVisible) : false;
}
bool CyPlayer::canMaintain(int /*ProcessTypes*/ eProcess, bool bContinue)
{
return m_pPlayer ? m_pPlayer->canMaintain((ProcessTypes)eProcess, bContinue) : false;
}
bool CyPlayer::isProductionMaxedUnitClass(int /*UnitClassTypes*/ eUnitClass)
{
return m_pPlayer ? m_pPlayer->isProductionMaxedUnitClass((UnitClassTypes) eUnitClass) : false;
}
bool CyPlayer::isProductionMaxedBuildingClass(int /*BuildingClassTypes*/ eBuildingClass, bool bAcquireCity)
{
return m_pPlayer ? m_pPlayer->isProductionMaxedBuildingClass((BuildingClassTypes) eBuildingClass, bAcquireCity) : false;
}
bool CyPlayer::isProductionMaxedProject(int /*ProjectTypes*/ eProject)
{
return m_pPlayer ? m_pPlayer->isProductionMaxedProject((ProjectTypes) eProject) : false;
}
int CyPlayer::getUnitProductionNeeded(int /*UnitTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getProductionNeeded((UnitTypes) iIndex) : -1;
}
int CyPlayer::getBuildingProductionNeeded(int /*BuildingTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getProductionNeeded((BuildingTypes) iIndex) : -1;
}
int CyPlayer::getProjectProductionNeeded(int /*ProjectTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getProductionNeeded((ProjectTypes)iIndex) : -1;
}
int CyPlayer::getBuildingClassPrereqBuilding(int /*BuildingTypes*/ eBuilding, int /*BuildingClassTypes*/ ePrereqBuildingClass, int iExtra)
{
return m_pPlayer ? m_pPlayer->getBuildingClassPrereqBuilding((BuildingTypes) eBuilding, (BuildingClassTypes) ePrereqBuildingClass, iExtra) : -1;
}
void CyPlayer::removeBuildingClass(int /*BuildingClassTypes*/ eBuildingClass)
{
if (m_pPlayer)
m_pPlayer->removeBuildingClass((BuildingClassTypes)eBuildingClass);
}
bool CyPlayer::canBuild(CyPlot* pPlot, int /*BuildTypes*/ eBuild, bool bTestEra, bool bTestVisible)
{
return m_pPlayer ? m_pPlayer->canBuild(pPlot->getPlot(), (BuildTypes)eBuild, bTestEra, bTestVisible) : false;
}
int /*RouteTypes*/ CyPlayer::getBestRoute(CyPlot* pPlot) const
{
return m_pPlayer ? (int) m_pPlayer->getBestRoute(NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getImprovementUpgradeRate() const
{
return m_pPlayer ? m_pPlayer->getImprovementUpgradeRate() : -1;
}
int CyPlayer::calculateTotalYield(int /*YieldTypes*/ eYield)
{
return m_pPlayer ? m_pPlayer->calculateTotalYield((YieldTypes)eYield) : -1;
}
int CyPlayer::calculateTotalExports(int /*YieldTypes*/ eYield)
{
return m_pPlayer ? m_pPlayer->calculateTotalExports((YieldTypes)eYield) : -1;
}
int CyPlayer::calculateTotalImports(int /*YieldTypes*/ eYield)
{
return m_pPlayer ? m_pPlayer->calculateTotalImports((YieldTypes)eYield) : -1;
}
int CyPlayer::calculateTotalCityHappiness()
{
return m_pPlayer ? m_pPlayer->calculateTotalCityHappiness() : -1;
}
int CyPlayer::calculateTotalCityUnhappiness()
{
return m_pPlayer ? m_pPlayer->calculateTotalCityUnhappiness() : -1;
}
int CyPlayer::calculateTotalCityHealthiness()
{
return m_pPlayer ? m_pPlayer->calculateTotalCityHealthiness() : -1;
}
int CyPlayer::calculateTotalCityUnhealthiness()
{
return m_pPlayer ? m_pPlayer->calculateTotalCityUnhealthiness() : -1;
}
int CyPlayer::calculateUnitCost()
{
return m_pPlayer ? m_pPlayer->calculateUnitCost() : -1;
}
int CyPlayer::calculateUnitSupply()
{
return m_pPlayer ? m_pPlayer->calculateUnitSupply() : -1;
}
int CyPlayer::calculatePreInflatedCosts()
{
return m_pPlayer ? m_pPlayer->calculatePreInflatedCosts() : -1;
}
//int CyPlayer::calculateInflationRate()
int CyPlayer::getInflationRate()
{
return m_pPlayer ? m_pPlayer->getInflationRate() : -1;
}
int CyPlayer::calculateInflatedCosts()
{
return m_pPlayer ? m_pPlayer->calculateInflatedCosts() : -1;
}
int CyPlayer::calculateGoldRate()
{
return m_pPlayer ? m_pPlayer->calculateGoldRate() : -1;
}
int CyPlayer::calculateTotalCommerce()
{
return m_pPlayer ? m_pPlayer->calculateTotalCommerce() : -1;
}
int CyPlayer::calculateResearchRate(int /*TechTypes*/ eTech)
{
return m_pPlayer ? m_pPlayer->calculateResearchRate((TechTypes)eTech) : -1;
}
int CyPlayer::calculateResearchModifier(int /*TechTypes*/ eTech)
{
return m_pPlayer ? m_pPlayer->calculateResearchModifier((TechTypes)eTech) : -1;
}
/*
** K-Mod, 18/dec/10, karadoc
*/
int CyPlayer::calculatePollution(int iTypes) const
{
return m_pPlayer ? m_pPlayer->calculatePollution(iTypes) : 0;
}
int CyPlayer::getGwPercentAnger() const
{
return m_pPlayer ? m_pPlayer->getGwPercentAnger() : 0;
}
/*
** K-Mod end
*/
/* int CyPlayer::calculateBaseNetResearch()
{
return m_pPlayer ? m_pPlayer->calculateBaseNetResearch() : -1;
} */
bool CyPlayer::isResearch()
{
return m_pPlayer ? m_pPlayer->isResearch() : false;
}
bool CyPlayer::canEverResearch(int /*TechTypes*/ eTech)
{
return m_pPlayer ? m_pPlayer->canEverResearch((TechTypes)eTech) : false;
}
bool CyPlayer::canResearch(int /*TechTypes*/ eTech, bool bTrade)
{
return m_pPlayer ? m_pPlayer->canResearch((TechTypes)eTech, bTrade) : false;
}
int /* TechTypes */ CyPlayer::getCurrentResearch()
{
return m_pPlayer ? (int) m_pPlayer->getCurrentResearch() : (int) NO_TECH;
}
bool CyPlayer::isCurrentResearchRepeat()
{
return m_pPlayer ? m_pPlayer->isCurrentResearchRepeat() : false;
}
bool CyPlayer::isNoResearchAvailable()
{
return m_pPlayer ? m_pPlayer->isNoResearchAvailable() : false;
}
int CyPlayer::getResearchTurnsLeft(int /*TechTypes*/ eTech, bool bOverflow)
{
return m_pPlayer ? m_pPlayer->getResearchTurnsLeft((TechTypes)eTech, bOverflow) : -1;
}
// K-Mod
bool CyPlayer::canSeeResearch(int /*PlayerTypes*/ ePlayer) const
{
return m_pPlayer ? m_pPlayer->canSeeResearch((PlayerTypes)ePlayer) : false;
}
bool CyPlayer::canSeeDemographics(int /*PlayerTypes*/ ePlayer) const
{
return m_pPlayer ? m_pPlayer->canSeeDemographics((PlayerTypes)ePlayer) : false;
}
// K-Mod end
bool CyPlayer::isCivic(int /*CivicTypes*/ eCivic)
{
return m_pPlayer ? m_pPlayer->isCivic((CivicTypes)eCivic) : false;
}
bool CyPlayer::canDoCivics(int /*CivicTypes*/ eCivic)
{
return m_pPlayer ? m_pPlayer->canDoCivics((CivicTypes)eCivic) : false;
}
bool CyPlayer::canRevolution(int /*CivicTypes**/ paeNewCivics)
{
return m_pPlayer ? m_pPlayer->canRevolution((CivicTypes*)paeNewCivics) : false;
}
void CyPlayer::revolution(int /*CivicTypes**/ paeNewCivics, bool bForce)
{
if (m_pPlayer)
m_pPlayer->revolution((CivicTypes*)paeNewCivics, bForce);
}
int CyPlayer::getCivicPercentAnger(int /*CivicTypes*/ eCivic)
{
return m_pPlayer ? m_pPlayer->getCivicPercentAnger((CivicTypes) eCivic) : -1;
}
bool CyPlayer::canDoReligion(int /*ReligionTypes*/ eReligion)
{
return m_pPlayer ? m_pPlayer->canDoReligion((ReligionTypes) eReligion) : false;
}
bool CyPlayer::canChangeReligion()
{
return m_pPlayer ? m_pPlayer->canChangeReligion() : false;
}
bool CyPlayer::canConvert(int /*ReligionTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->canConvert((ReligionTypes)iIndex) : false;
}
void CyPlayer::convert(int /*ReligionTypes*/ iIndex)
{
if (m_pPlayer)
m_pPlayer->convert((ReligionTypes)iIndex);
}
bool CyPlayer::hasHolyCity(int /*ReligionTypes*/ eReligion)
{
return m_pPlayer ? m_pPlayer->hasHolyCity((ReligionTypes)eReligion) : false;
}
int CyPlayer::countHolyCities()
{
return m_pPlayer ? m_pPlayer->countHolyCities() : -1;
}
void CyPlayer::foundReligion(int /*ReligionTypes*/ iIndex, int /*ReligionTypes*/ iSlotReligion, bool bAward)
{
if (m_pPlayer)
m_pPlayer->foundReligion((ReligionTypes)iIndex, (ReligionTypes)iSlotReligion, bAward);
}
bool CyPlayer::hasHeadquarters(int /*CorporationTypes*/ eCorporation)
{
return m_pPlayer ? m_pPlayer->hasHeadquarters((CorporationTypes)eCorporation) : false;
}
int CyPlayer::countHeadquarters()
{
return m_pPlayer ? m_pPlayer->countHeadquarters() : -1;
}
int CyPlayer::countCorporations(int /*CorporationTypes*/ eCorporation)
{
return m_pPlayer ? m_pPlayer->countCorporations((CorporationTypes)eCorporation) : -1;
}
void CyPlayer::foundCorporation(int /*CorporationTypes*/ iIndex)
{
if (m_pPlayer)
m_pPlayer->foundCorporation((CorporationTypes)iIndex);
}
int CyPlayer::getCivicAnarchyLength(boost::python::list& /*CivicTypes**/ paeNewCivics)
{
int* pCivics = NULL;
gDLL->getPythonIFace()->putSeqInArray(paeNewCivics.ptr() /*src*/, &pCivics /*dst*/);
int iRet = m_pPlayer ? m_pPlayer->getCivicAnarchyLength((CivicTypes*)pCivics) : -1;
delete [] pCivics;
return iRet;
}
int CyPlayer::getReligionAnarchyLength()
{
return m_pPlayer ? m_pPlayer->getReligionAnarchyLength() : -1;
}
int CyPlayer::unitsRequiredForGoldenAge()
{
return m_pPlayer ? m_pPlayer->unitsRequiredForGoldenAge() : -1;
}
int CyPlayer::unitsGoldenAgeCapable()
{
return m_pPlayer ? m_pPlayer->unitsGoldenAgeCapable() : -1;
}
int CyPlayer::unitsGoldenAgeReady()
{
return m_pPlayer ? m_pPlayer->unitsGoldenAgeReady() : -1;
}
int CyPlayer::greatPeopleThreshold(bool bMilitary)
{
return m_pPlayer ? m_pPlayer->greatPeopleThreshold(bMilitary) : -1;
}
int CyPlayer::specialistYield(int /*SpecialistTypes*/ eSpecialist, int /*YieldTypes*/ eCommerce)
{
return m_pPlayer ? m_pPlayer->specialistYield((SpecialistTypes)eSpecialist, (YieldTypes)eCommerce) : -1;
}
int CyPlayer::specialistCommerce(int /*SpecialistTypes*/ eSpecialist, int /*CommerceTypes*/ eCommerce)
{
return m_pPlayer ? m_pPlayer->specialistCommerce((SpecialistTypes)eSpecialist, (CommerceTypes)eCommerce) : -1;
}
CyPlot* CyPlayer::getStartingPlot()
{
if (!m_pPlayer)
{
return NULL;
}
return new CyPlot(m_pPlayer->getStartingPlot());
}
void CyPlayer::setStartingPlot(CyPlot* pPlot, bool bUpdateStartDist)
{
if (!m_pPlayer)
{
return;
}
m_pPlayer->setStartingPlot(NULL != pPlot ? pPlot->getPlot() : NULL, bUpdateStartDist);
}
int CyPlayer::getTotalPopulation()
{
return m_pPlayer ? m_pPlayer->getTotalPopulation() : -1;
}
int CyPlayer::getAveragePopulation()
{
return m_pPlayer ? m_pPlayer->getAveragePopulation() : -1;
}
long CyPlayer::getRealPopulation()
{
return m_pPlayer ? m_pPlayer->getRealPopulation() : -1;
}
int CyPlayer::getTotalLand()
{
return m_pPlayer ? m_pPlayer->getTotalLand() : -1;
}
int CyPlayer::getTotalLandScored()
{
return m_pPlayer ? m_pPlayer->getTotalLandScored() : -1;
}
int CyPlayer::getGold()
{
return m_pPlayer ? m_pPlayer->getGold() : -1;
}
void CyPlayer::setGold(int iNewValue)
{
if (m_pPlayer)
m_pPlayer->setGold(iNewValue);
}
void CyPlayer::changeGold(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeGold(iChange);
}
int CyPlayer::getGoldPerTurn()
{
return m_pPlayer ? m_pPlayer->getGoldPerTurn() : -1;
}
int CyPlayer::getAdvancedStartPoints()
{
return m_pPlayer ? m_pPlayer->getAdvancedStartPoints() : -1;
}
void CyPlayer::setAdvancedStartPoints(int iNewValue)
{
if (m_pPlayer)
m_pPlayer->setAdvancedStartPoints(iNewValue);
}
void CyPlayer::changeAdvancedStartPoints(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeAdvancedStartPoints(iChange);
}
int CyPlayer::getAdvancedStartUnitCost(int /*UnitTypes*/ eUnit, bool bAdd, CyPlot* pPlot)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartUnitCost((UnitTypes) eUnit, bAdd, NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getAdvancedStartCityCost(bool bAdd, CyPlot* pPlot)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartCityCost(bAdd, NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getAdvancedStartPopCost(bool bAdd, CyCity* pCity)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartPopCost(bAdd, pCity->getCity()) : -1;
}
int CyPlayer::getAdvancedStartCultureCost(bool bAdd, CyCity* pCity)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartCultureCost(bAdd, pCity->getCity()) : -1;
}
int CyPlayer::getAdvancedStartBuildingCost(int /*BuildingTypes*/ eBuilding, bool bAdd, CyCity* pCity)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartBuildingCost((BuildingTypes) eBuilding, bAdd, pCity->getCity()) : -1;
}
int CyPlayer::getAdvancedStartImprovementCost(int /*ImprovementTypes*/ eImprovement, bool bAdd, CyPlot* pPlot)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartImprovementCost((ImprovementTypes) eImprovement, bAdd, NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getAdvancedStartRouteCost(int /*RouteTypes*/ eRoute, bool bAdd, CyPlot* pPlot)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartRouteCost((RouteTypes) eRoute, bAdd, NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getAdvancedStartTechCost(int /*TechTypes*/ eTech, bool bAdd)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartTechCost((TechTypes) eTech, bAdd) : -1;
}
int CyPlayer::getAdvancedStartVisibilityCost(bool bAdd, CyPlot* pPlot)
{
return m_pPlayer ? m_pPlayer->getAdvancedStartVisibilityCost(bAdd, NULL != pPlot ? pPlot->getPlot() : NULL) : -1;
}
int CyPlayer::getEspionageSpending(int /*TeamTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getEspionageSpending((TeamTypes) eIndex) : -1;
}
bool CyPlayer::canDoEspionageMission(int /*EspionageMissionTypes*/ eMission, int /*PlayerTypes*/ eTargetPlayer, CyPlot* pPlot, int iExtraData)
{
return m_pPlayer ? m_pPlayer->canDoEspionageMission((EspionageMissionTypes) eMission, (PlayerTypes) eTargetPlayer, NULL != pPlot ? pPlot->getPlot() : NULL, iExtraData, NULL) : false;
}
int CyPlayer::getEspionageMissionCost(int /*EspionageMissionTypes*/ eMission, int /*PlayerTypes*/ eTargetPlayer, CyPlot* pPlot, int iExtraData)
{
return m_pPlayer ? m_pPlayer->getEspionageMissionCost((EspionageMissionTypes) eMission, (PlayerTypes) eTargetPlayer, NULL != pPlot ? pPlot->getPlot() : NULL, iExtraData) : -1;
}
void CyPlayer::doEspionageMission(int /*EspionageMissionTypes*/ eMission, int /*PlayerTypes*/ eTargetPlayer, CyPlot* pPlot, int iExtraData, CyUnit* pUnit)
{
if (m_pPlayer)
m_pPlayer->doEspionageMission((EspionageMissionTypes) eMission, (PlayerTypes) eTargetPlayer, NULL != pPlot ? pPlot->getPlot() : NULL, iExtraData, pUnit->getUnit());
}
int CyPlayer::getEspionageSpendingWeightAgainstTeam(int /*TeamTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getEspionageSpendingWeightAgainstTeam((TeamTypes) eIndex) : -1;
}
void CyPlayer::setEspionageSpendingWeightAgainstTeam(int /*TeamTypes*/ eIndex, int iValue)
{
if (m_pPlayer)
m_pPlayer->setEspionageSpendingWeightAgainstTeam((TeamTypes) eIndex, iValue);
}
void CyPlayer::changeEspionageSpendingWeightAgainstTeam(int /*TeamTypes*/ eIndex, int iChange)
{
if (m_pPlayer)
m_pPlayer->changeEspionageSpendingWeightAgainstTeam((TeamTypes) eIndex, iChange);
}
int CyPlayer::getGoldenAgeTurns()
{
return m_pPlayer ? m_pPlayer->getGoldenAgeTurns() : -1;
}
int CyPlayer::getGoldenAgeLength()
{
return m_pPlayer ? m_pPlayer->getGoldenAgeLength() : -1;
}
bool CyPlayer::isGoldenAge()
{
return m_pPlayer ? m_pPlayer->isGoldenAge() : false;
}
void CyPlayer::changeGoldenAgeTurns(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeGoldenAgeTurns(iChange);
}
int CyPlayer::getNumUnitGoldenAges()
{
return m_pPlayer ? m_pPlayer->getNumUnitGoldenAges() : -1;
}
void CyPlayer::changeNumUnitGoldenAges(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeNumUnitGoldenAges(iChange);
}
int CyPlayer::getAnarchyTurns()
{
return m_pPlayer ? m_pPlayer->getAnarchyTurns() : -1;
}
bool CyPlayer::isAnarchy()
{
return m_pPlayer ? m_pPlayer->isAnarchy() : false;
}
void CyPlayer::changeAnarchyTurns(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeAnarchyTurns(iChange);
}
int CyPlayer::getStrikeTurns()
{
return m_pPlayer ? m_pPlayer->getStrikeTurns() : -1;
}
int CyPlayer::getMaxAnarchyTurns()
{
return m_pPlayer ? m_pPlayer->getMaxAnarchyTurns() : -1;
}
int CyPlayer::getAnarchyModifier()
{
return m_pPlayer ? m_pPlayer->getAnarchyModifier() : -1;
}
int CyPlayer::getGoldenAgeModifier()
{
return m_pPlayer ? m_pPlayer->getGoldenAgeModifier() : -1;
}
int CyPlayer::getHurryModifier()
{
return m_pPlayer ? m_pPlayer->getHurryModifier() : -1;
}
void CyPlayer::createGreatPeople(int eGreatPersonUnit, bool bIncrementThreshold, bool bIncrementExperience, int iX, int iY)
{
if (m_pPlayer)
{
m_pPlayer->createGreatPeople((UnitTypes)eGreatPersonUnit, bIncrementThreshold, bIncrementExperience, iX, iY);
}
}
int CyPlayer::getGreatPeopleCreated()
{
return m_pPlayer ? m_pPlayer->getGreatPeopleCreated() : -1;
}
int CyPlayer::getGreatGeneralsCreated()
{
return m_pPlayer ? m_pPlayer->getGreatGeneralsCreated() : -1;
}
int CyPlayer::getGreatPeopleThresholdModifier()
{
return m_pPlayer ? m_pPlayer->getGreatPeopleThresholdModifier() : -1;
}
int CyPlayer::getGreatGeneralsThresholdModifier()
{
return m_pPlayer ? m_pPlayer->getGreatGeneralsThresholdModifier() : -1;
}
int CyPlayer::getGreatPeopleRateModifier()
{
return m_pPlayer ? m_pPlayer->getGreatPeopleRateModifier() : -1;
}
int CyPlayer::getGreatGeneralRateModifier()
{
return m_pPlayer ? m_pPlayer->getGreatGeneralRateModifier() : -1;
}
int CyPlayer::getDomesticGreatGeneralRateModifier()
{
return m_pPlayer ? m_pPlayer->getDomesticGreatGeneralRateModifier() : -1;
}
int CyPlayer::getStateReligionGreatPeopleRateModifier()
{
return m_pPlayer ? m_pPlayer->getStateReligionGreatPeopleRateModifier() : -1;
}
int CyPlayer::getMaxGlobalBuildingProductionModifier()
{
return m_pPlayer ? m_pPlayer->getMaxGlobalBuildingProductionModifier() : -1;
}
int CyPlayer::getMaxTeamBuildingProductionModifier()
{
return m_pPlayer ? m_pPlayer->getMaxTeamBuildingProductionModifier() : -1;
}
int CyPlayer::getMaxPlayerBuildingProductionModifier()
{
return m_pPlayer ? m_pPlayer->getMaxPlayerBuildingProductionModifier() : -1;
}
int CyPlayer::getFreeExperience()
{
return m_pPlayer ? m_pPlayer->getFreeExperience() : -1;
}
int CyPlayer::getFeatureProductionModifier()
{
return m_pPlayer ? m_pPlayer->getFeatureProductionModifier() : -1;
}
int CyPlayer::getWorkerSpeedModifier()
{
return m_pPlayer ? m_pPlayer->getWorkerSpeedModifier() : -1;
}
int CyPlayer::getImprovementUpgradeRateModifier()
{
return m_pPlayer ? m_pPlayer->getImprovementUpgradeRateModifier() : -1;
}
int CyPlayer::getMilitaryProductionModifier()
{
return m_pPlayer ? m_pPlayer->getMilitaryProductionModifier() : -1;
}
int CyPlayer::getSpaceProductionModifier()
{
return m_pPlayer ? m_pPlayer->getSpaceProductionModifier() : -1;
}
int CyPlayer::getCityDefenseModifier()
{
return m_pPlayer ? m_pPlayer->getCityDefenseModifier() : -1;
}
int CyPlayer::getNumNukeUnits()
{
return m_pPlayer ? m_pPlayer->getNumNukeUnits() : -1;
}
int CyPlayer::getNumOutsideUnits()
{
return m_pPlayer ? m_pPlayer->getNumOutsideUnits() : -1;
}
int CyPlayer::getBaseFreeUnits()
{
return m_pPlayer ? m_pPlayer->getBaseFreeUnits() : -1;
}
int CyPlayer::getBaseFreeMilitaryUnits()
{
return m_pPlayer ? m_pPlayer->getBaseFreeMilitaryUnits() : -1;
}
int CyPlayer::getFreeUnitsPopulationPercent()
{
return m_pPlayer ? m_pPlayer->getFreeUnitsPopulationPercent() : -1;
}
int CyPlayer::getFreeMilitaryUnitsPopulationPercent()
{
return m_pPlayer ? m_pPlayer->getFreeMilitaryUnitsPopulationPercent() : -1;
}
int CyPlayer::getGoldPerUnit()
{
return m_pPlayer ? m_pPlayer->getGoldPerUnit() : -1;
}
int CyPlayer::getGoldPerMilitaryUnit()
{
return m_pPlayer ? m_pPlayer->getGoldPerMilitaryUnit() : -1;
}
int CyPlayer::getExtraUnitCost()
{
return m_pPlayer ? m_pPlayer->getExtraUnitCost() : -1;
}
int CyPlayer::getNumMilitaryUnits()
{
return m_pPlayer ? m_pPlayer->getNumMilitaryUnits() : -1;
}
int CyPlayer::getHappyPerMilitaryUnit()
{
return m_pPlayer ? m_pPlayer->getHappyPerMilitaryUnit() : -1;
}
bool CyPlayer::isMilitaryFoodProduction()
{
return m_pPlayer ? m_pPlayer->isMilitaryFoodProduction() : false;
}
int CyPlayer::getHighestUnitLevel()
{
return m_pPlayer ? m_pPlayer->getHighestUnitLevel() : -1;
}
int CyPlayer::getConscriptCount()
{
return m_pPlayer ? m_pPlayer->getConscriptCount() : -1;
}
void CyPlayer::setConscriptCount(int iNewValue)
{
if (m_pPlayer)
m_pPlayer->setConscriptCount(iNewValue);
}
void CyPlayer::changeConscriptCount(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeConscriptCount(iChange);
}
int CyPlayer::getMaxConscript()
{
return m_pPlayer ? m_pPlayer->getMaxConscript() : -1;
}
int CyPlayer::getOverflowResearch()
{
return m_pPlayer ? m_pPlayer->getOverflowResearch() : 0;
}
/*
** K-Mod, 27/dec/10, karadoc
** replaced NoUnhealthyPopulation with UnhealthyPopulationModifier
*/
/* original bts code
bool CyPlayer::isNoUnhealthyPopulation()
{
return m_pPlayer ? m_pPlayer->isNoUnhealthyPopulation() : false;
}*/
int CyPlayer::getUnhealthyPopulationModifier()
{
return m_pPlayer ? m_pPlayer->getUnhealthyPopulationModifier() : 0;
}
/*
** K-Mod end
*/
bool CyPlayer::getExpInBorderModifier()
{
return m_pPlayer ? m_pPlayer->getExpInBorderModifier() : false;
}
bool CyPlayer::isBuildingOnlyHealthy()
{
return m_pPlayer ? m_pPlayer->isBuildingOnlyHealthy() : false;
}
int CyPlayer::getDistanceMaintenanceModifier()
{
return m_pPlayer ? m_pPlayer->getDistanceMaintenanceModifier() : -1;
}
int CyPlayer::getNumCitiesMaintenanceModifier()
{
return m_pPlayer ? m_pPlayer->getNumCitiesMaintenanceModifier() : -1;
}
int CyPlayer::getCorporationMaintenanceModifier()
{
return m_pPlayer ? m_pPlayer->getCorporationMaintenanceModifier() : -1;
}
int CyPlayer::getTotalMaintenance()
{
return m_pPlayer ? m_pPlayer->getTotalMaintenance() : -1;
}
int CyPlayer::getUpkeepModifier()
{
return m_pPlayer ? m_pPlayer->getUpkeepModifier() : -1;
}
int CyPlayer::getLevelExperienceModifier() const
{
return m_pPlayer ? m_pPlayer->getLevelExperienceModifier() : -1;
}
int CyPlayer::getExtraHealth()
{
return m_pPlayer ? m_pPlayer->getExtraHealth() : -1;
}
int CyPlayer::getBuildingGoodHealth()
{
return m_pPlayer ? m_pPlayer->getBuildingGoodHealth() : -1;
}
int CyPlayer::getBuildingBadHealth()
{
return m_pPlayer ? m_pPlayer->getBuildingBadHealth() : -1;
}
int CyPlayer::getExtraHappiness()
{
return m_pPlayer ? m_pPlayer->getExtraHappiness() : -1;
}
void CyPlayer::changeExtraHappiness(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeExtraHappiness(iChange);
}
int CyPlayer::getBuildingHappiness()
{
return m_pPlayer ? m_pPlayer->getBuildingHappiness() : -1;
}
int CyPlayer::getLargestCityHappiness()
{
return m_pPlayer ? m_pPlayer->getLargestCityHappiness() : -1;
}
int CyPlayer::getWarWearinessPercentAnger()
{
return m_pPlayer ? m_pPlayer->getWarWearinessPercentAnger() : -1;
}
int CyPlayer::getWarWearinessModifier()
{
return m_pPlayer ? m_pPlayer->getWarWearinessModifier() : -1;
}
int CyPlayer::getFreeSpecialist()
{
return m_pPlayer ? m_pPlayer->getFreeSpecialist() : -1;
}
bool CyPlayer::isNoForeignTrade()
{
return m_pPlayer ? m_pPlayer->isNoForeignTrade() : false;
}
bool CyPlayer::isNoCorporations()
{
return m_pPlayer ? m_pPlayer->isNoCorporations() : false;
}
bool CyPlayer::isNoForeignCorporations()
{
return m_pPlayer ? m_pPlayer->isNoForeignCorporations() : false;
}
int CyPlayer::getCoastalTradeRoutes()
{
return m_pPlayer ? m_pPlayer->getCoastalTradeRoutes() : -1;
}
void CyPlayer::changeCoastalTradeRoutes(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeCoastalTradeRoutes(iChange);
}
int CyPlayer::getTradeRoutes()
{
return m_pPlayer ? m_pPlayer->getTradeRoutes() : -1;
}
int CyPlayer::getConversionTimer()
{
return m_pPlayer ? m_pPlayer->getConversionTimer() : -1;
}
int CyPlayer::getRevolutionTimer()
{
return m_pPlayer ? m_pPlayer->getRevolutionTimer() : -1;
}
bool CyPlayer::isStateReligion()
{
return m_pPlayer ? m_pPlayer->isStateReligion() : false;
}
bool CyPlayer::isNoNonStateReligionSpread()
{
return m_pPlayer ? m_pPlayer->isNoNonStateReligionSpread() : false;
}
int CyPlayer::getStateReligionHappiness()
{
return m_pPlayer ? m_pPlayer->getStateReligionHappiness() : -1;
}
int CyPlayer::getNonStateReligionHappiness()
{
return m_pPlayer ? m_pPlayer->getNonStateReligionHappiness() : -1;
}
int CyPlayer::getStateReligionUnitProductionModifier()
{
return m_pPlayer ? m_pPlayer->getStateReligionUnitProductionModifier() : -1;
}
void CyPlayer::changeStateReligionUnitProductionModifier(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeStateReligionUnitProductionModifier(iChange);
}
int CyPlayer::getStateReligionBuildingProductionModifier()
{
return m_pPlayer ? m_pPlayer->getStateReligionBuildingProductionModifier() : -1;
}
void CyPlayer::changeStateReligionBuildingProductionModifier(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeStateReligionBuildingProductionModifier(iChange);
}
int CyPlayer::getStateReligionFreeExperience()
{
return m_pPlayer ? m_pPlayer->getStateReligionFreeExperience() : -1;
}
CyCity* CyPlayer::getCapitalCity()
{
return m_pPlayer ? new CyCity(m_pPlayer->getCapitalCity()) : NULL;
}
int CyPlayer::getCitiesLost()
{
return m_pPlayer ? m_pPlayer->getCitiesLost() : -1;
}
int CyPlayer::getWinsVsBarbs()
{
return m_pPlayer ? m_pPlayer->getWinsVsBarbs() : -1;
}
int CyPlayer::getAssets()
{
return m_pPlayer ? m_pPlayer->getAssets() : -1;
}
void CyPlayer::changeAssets(int iChange)
{
if (m_pPlayer)
m_pPlayer->changeAssets(iChange);
}
int CyPlayer::getPower()
{
return m_pPlayer ? m_pPlayer->getPower() : -1;
}
int CyPlayer::getPopScore()
{
return m_pPlayer ? m_pPlayer->getPopScore() : -1;
}
int CyPlayer::getLandScore()
{
return m_pPlayer ? m_pPlayer->getLandScore() : -1;
}
int CyPlayer::getWondersScore()
{
return m_pPlayer ? m_pPlayer->getWondersScore() : -1;
}
int CyPlayer::getTechScore()
{
return m_pPlayer ? m_pPlayer->getTechScore() : -1;
}
int CyPlayer::getTotalTimePlayed()
{
return m_pPlayer ? m_pPlayer->getTotalTimePlayed() : -1;
}
bool CyPlayer::isMinorCiv()
{
return m_pPlayer ? m_pPlayer->isMinorCiv() : false;
}
bool CyPlayer::isAlive()
{
return m_pPlayer ? m_pPlayer->isAlive() : false;
}
bool CyPlayer::isEverAlive()
{
return m_pPlayer ? m_pPlayer->isEverAlive() : false;
}
bool CyPlayer::isExtendedGame()
{
return m_pPlayer ? m_pPlayer->isExtendedGame() : false;
}
bool CyPlayer::isFoundedFirstCity()
{
return m_pPlayer ? m_pPlayer->isFoundedFirstCity() : false;
}
bool CyPlayer::isStrike()
{
return m_pPlayer ? m_pPlayer->isStrike() : false;
}
int CyPlayer::getID()
{
return m_pPlayer ? m_pPlayer->getID() : -1;
}
int /* HandicapTypes */ CyPlayer::getHandicapType()
{
return m_pPlayer ? (int) m_pPlayer->getHandicapType() : -1;
}
int /* CivilizationTypes */ CyPlayer::getCivilizationType()
{
return m_pPlayer ? (int) m_pPlayer->getCivilizationType() : NO_CIVILIZATION;
}
int /*LeaderHeadTypes*/ CyPlayer::getLeaderType()
{
return m_pPlayer ? (int) m_pPlayer->getLeaderType() : -1;
}
int /*LeaderHeadTypes*/ CyPlayer::getPersonalityType()
{
return m_pPlayer ? (int) m_pPlayer->getPersonalityType() : -1;
}
void CyPlayer::setPersonalityType(int /*LeaderHeadTypes*/ eNewValue)
{
if (m_pPlayer)
m_pPlayer->setPersonalityType((LeaderHeadTypes) eNewValue);
}
int /*ErasTypes*/ CyPlayer::getCurrentEra()
{
return m_pPlayer ? (int) m_pPlayer->getCurrentEra() : NO_ERA;
}
void CyPlayer::setCurrentEra(int /*EraTypes*/ iNewValue)
{
if (m_pPlayer)
m_pPlayer->setCurrentEra((EraTypes) iNewValue);
}
int /*ReligonTypes*/ CyPlayer::getStateReligion()
{
return m_pPlayer ? (int) m_pPlayer->getStateReligion() : NO_RELIGION;
}
void CyPlayer::setLastStateReligion(int /*ReligionTypes*/ iNewReligion)
{
if (m_pPlayer)
m_pPlayer->setLastStateReligion((ReligionTypes) iNewReligion);
}
int CyPlayer::getTeam()
{
return m_pPlayer ? m_pPlayer->getTeam() : -1;
}
int /*PlayerColorTypes*/ CyPlayer::getPlayerColor()
{
return m_pPlayer ? (int) m_pPlayer->getPlayerColor() : NO_COLOR;
}
int CyPlayer::getPlayerTextColorR()
{
return m_pPlayer ? m_pPlayer->getPlayerTextColorR() : -1;
}
int CyPlayer::getPlayerTextColorG()
{
return m_pPlayer ? m_pPlayer->getPlayerTextColorG() : -1;
}
int CyPlayer::getPlayerTextColorB()
{
return m_pPlayer ? m_pPlayer->getPlayerTextColorB() : -1;
}
int CyPlayer::getPlayerTextColorA()
{
return m_pPlayer ? m_pPlayer->getPlayerTextColorA() : -1;
}
int CyPlayer::getSeaPlotYield(YieldTypes eIndex)
{
return m_pPlayer ? (int) m_pPlayer->getSeaPlotYield(eIndex) : NO_YIELD;
}
int CyPlayer::getYieldRateModifier(YieldTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getYieldRateModifier(eIndex) : NO_YIELD;
}
int CyPlayer::getCapitalYieldRateModifier(YieldTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getCapitalYieldRateModifier(eIndex) : NO_YIELD;
}
int CyPlayer::getExtraYieldThreshold(YieldTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getExtraYieldThreshold(eIndex) : NO_YIELD;
}
int CyPlayer::getTradeYieldModifier(YieldTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getTradeYieldModifier(eIndex) : NO_YIELD;
}
int CyPlayer::getFreeCityCommerce(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getFreeCityCommerce(eIndex) : NO_COMMERCE;
}
int CyPlayer::getCommercePercent(int /*CommerceTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getCommercePercent((CommerceTypes)eIndex) : NO_COMMERCE;
}
void CyPlayer::setCommercePercent(CommerceTypes eIndex, int iNewValue)
{
if (m_pPlayer)
m_pPlayer->setCommercePercent(eIndex, iNewValue);
}
void CyPlayer::changeCommercePercent(CommerceTypes eIndex, int iChange)
{
if (m_pPlayer)
m_pPlayer->changeCommercePercent(eIndex, iChange);
}
int CyPlayer::getCommerceRate(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getCommerceRate(eIndex) : -1;
}
int CyPlayer::getCommerceRateModifier(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getCommerceRateModifier(eIndex) : NO_COMMERCE;
}
int CyPlayer::getCapitalCommerceRateModifier(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getCapitalCommerceRateModifier(eIndex) : NO_COMMERCE;
}
int CyPlayer::getStateReligionBuildingCommerce(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getStateReligionBuildingCommerce(eIndex) : NO_COMMERCE;
}
int CyPlayer::getSpecialistExtraCommerce(CommerceTypes eIndex)
{
return m_pPlayer ? m_pPlayer->getSpecialistExtraCommerce(eIndex) : NO_COMMERCE;
}
bool CyPlayer::isCommerceFlexible(int /*CommerceTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isCommerceFlexible((CommerceTypes)eIndex) : false;
}
int CyPlayer::getGoldPerTurnByPlayer(int /*PlayerTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getGoldPerTurnByPlayer((PlayerTypes) eIndex) : -1;
}
bool CyPlayer::isFeatAccomplished(int /*FeatTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isFeatAccomplished((FeatTypes)eIndex) : false;
}
void CyPlayer::setFeatAccomplished(int /*FeatTypes*/ eIndex, bool bNewValue)
{
if (m_pPlayer)
m_pPlayer->setFeatAccomplished((FeatTypes)eIndex, bNewValue);
}
bool CyPlayer::isOption(int /*PlayerOptionTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isOption((PlayerOptionTypes)eIndex) : false;
}
void CyPlayer::setOption(int /*PlayerOptionTypes*/ eIndex, bool bNewValue)
{
if (m_pPlayer)
m_pPlayer->setOption((PlayerOptionTypes)eIndex, bNewValue);
}
bool CyPlayer::isLoyalMember(int /*VoteSourceTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isLoyalMember((VoteSourceTypes)eIndex) : false;
}
void CyPlayer::setLoyalMember(int /*VoteSourceTypes*/ eIndex, bool bNewValue)
{
if (m_pPlayer)
m_pPlayer->setLoyalMember((VoteSourceTypes)eIndex, bNewValue);
}
int CyPlayer::getVotes(int /*VoteTypes*/ eVote, int /*VoteSourceTypes*/ eVoteSource)
{
return m_pPlayer ? m_pPlayer->getVotes((VoteTypes)eVote, (VoteSourceTypes)eVoteSource) : -1;
}
bool CyPlayer::isFullMember(int /*VoteSourceTypes*/ eVoteSource) const
{
return m_pPlayer ? m_pPlayer->isFullMember((VoteSourceTypes)eVoteSource) : false;
}
bool CyPlayer::isVotingMember(int /*VoteSourceTypes*/ eVoteSource) const
{
return m_pPlayer ? m_pPlayer->isVotingMember((VoteSourceTypes)eVoteSource) : false;
}
bool CyPlayer::isPlayable()
{
return m_pPlayer ? m_pPlayer->isPlayable() : false;
}
void CyPlayer::setPlayable(bool bNewValue)
{
if (m_pPlayer)
m_pPlayer->setPlayable(bNewValue);
}
int CyPlayer::getBonusExport(int /*BonusTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getBonusExport((BonusTypes)iIndex) : -1;
}
int CyPlayer::getBonusImport(int /*BonusTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getBonusImport((BonusTypes)iIndex) : -1;
}
int CyPlayer::getImprovementCount(int /*ImprovementTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getImprovementCount((ImprovementTypes)iIndex) : -1;
}
bool CyPlayer::isBuildingFree(int /*BuildingTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->isBuildingFree((BuildingTypes)iIndex) : false;
}
int CyPlayer::getExtraBuildingHappiness(int /*BuildingTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getExtraBuildingHappiness((BuildingTypes)iIndex) : -1;
}
int CyPlayer::getExtraBuildingHealth(int /*BuildingTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getExtraBuildingHealth((BuildingTypes)iIndex) : -1;
}
int CyPlayer::getFeatureHappiness(int /*FeatureTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getFeatureHappiness((FeatureTypes)iIndex) : -1;
}
int CyPlayer::getUnitClassCount(int /*UnitClassTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getUnitClassCount((UnitClassTypes) eIndex) : NO_UNITCLASS;
}
bool CyPlayer::isUnitClassMaxedOut(int /*UnitClassTypes*/ eIndex, int iExtra)
{
return m_pPlayer ? m_pPlayer->isUnitClassMaxedOut((UnitClassTypes) eIndex, iExtra) : false;
}
int CyPlayer::getUnitClassMaking(int /*UnitClassTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getUnitClassMaking((UnitClassTypes) eIndex) : -1;
}
int CyPlayer::getUnitClassCountPlusMaking(int /*UnitClassTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getUnitClassCountPlusMaking((UnitClassTypes) eIndex) : -1;
}
int CyPlayer::getBuildingClassCount(int /*BuildingClassTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getBuildingClassCount((BuildingClassTypes)iIndex) : -1;
}
bool CyPlayer::isBuildingClassMaxedOut(int /*BuildingClassTypes*/ iIndex, int iExtra)
{
return m_pPlayer ? m_pPlayer->isBuildingClassMaxedOut((BuildingClassTypes)iIndex, iExtra) : false;
}
int CyPlayer::getBuildingClassMaking(int /*BuildingClassTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getBuildingClassMaking((BuildingClassTypes)iIndex) : -1;
}
int CyPlayer::getBuildingClassCountPlusMaking(int /*BuildingClassTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getBuildingClassCountPlusMaking((BuildingClassTypes)iIndex) : -1;
}
int CyPlayer::getHurryCount(int /*HurryTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getHurryCount((HurryTypes)eIndex) : (int) NO_HURRY;
}
bool CyPlayer::canHurry(int /*HurryTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->canHurry((HurryTypes)eIndex) : (int) NO_HURRY;
}
int CyPlayer::getSpecialBuildingNotRequiredCount(int /*SpecialBuildingTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getSpecialBuildingNotRequiredCount((SpecialBuildingTypes)eIndex) : -1;
}
bool CyPlayer::isSpecialBuildingNotRequired(int /*SpecialBuildingTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isSpecialBuildingNotRequired((SpecialBuildingTypes)eIndex) : -1;
}
bool CyPlayer::isHasCivicOption(int /*CivicOptionTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->isHasCivicOption((CivicOptionTypes) eIndex) : false;
}
bool CyPlayer::isNoCivicUpkeep(int /*CivicOptionTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->isNoCivicUpkeep((CivicOptionTypes)iIndex) : false;
}
int CyPlayer::getHasReligionCount(int /*ReligionTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getHasReligionCount((ReligionTypes)iIndex) : -1;
}
int CyPlayer::countTotalHasReligion()
{
return m_pPlayer ? m_pPlayer->countTotalHasReligion() : -1;
}
int CyPlayer::getHasCorporationCount(int /*CorporationTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getHasCorporationCount((CorporationTypes)iIndex) : -1;
}
int CyPlayer::countTotalHasCorporation()
{
return m_pPlayer ? m_pPlayer->countTotalHasCorporation() : -1;
}
int CyPlayer::findHighestHasReligionCount()
{
return m_pPlayer ? m_pPlayer->findHighestHasReligionCount() : -1;
}
int CyPlayer::getUpkeepCount(int /*UpkeepTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->getUpkeepCount((UpkeepTypes) eIndex) : -1;
}
bool CyPlayer::isSpecialistValid(int /*SpecialistTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->isSpecialistValid((SpecialistTypes)iIndex) : false;
}
bool CyPlayer::isResearchingTech(int /*TechTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->isResearchingTech((TechTypes)iIndex) : false;
}
int /* CivicTypes */ CyPlayer::getCivics(int /*CivicOptionTypes*/ iIndex)
{
return m_pPlayer ? m_pPlayer->getCivics((CivicOptionTypes)iIndex) : -1;
}
int CyPlayer::getSingleCivicUpkeep(int /*CivicTypes*/ eCivic, bool bIgnoreAnarchy)
{
return m_pPlayer ? m_pPlayer->getSingleCivicUpkeep((CivicTypes) eCivic, bIgnoreAnarchy) : -1;
}
int CyPlayer::getCivicUpkeep(boost::python::list& /*CivicTypes*/ paiCivics, bool bIgnoreAnarchy)
{
int* pCivics = NULL;
gDLL->getPythonIFace()->putSeqInArray(paiCivics.ptr() /*src*/, &pCivics /*dst*/);
int iRet = m_pPlayer ? m_pPlayer->getCivicUpkeep((CivicTypes*)pCivics, bIgnoreAnarchy) : -1;
delete [] pCivics;
return iRet;
}
void CyPlayer::setCivics(int /*CivicOptionTypes*/ eIndex, int /*CivicTypes*/ eNewValue)
{
if (m_pPlayer)
m_pPlayer->setCivics((CivicOptionTypes) eIndex, (CivicTypes) eNewValue);
}
// Civ4 Reimagined
int CyPlayer::getBonusValueModifier()
{
return m_pPlayer ? m_pPlayer->getBonusValueModifier() : -1;
}
// Civ4 Reimagined
int CyPlayer::getTechValue()
{
return m_pPlayer ? m_pPlayer->getTechValue() : -1;
}
// Civ4 Reimagined
int CyPlayer::getBonusRatio()
{
return m_pPlayer ? m_pPlayer->getBonusRatio() : -1;
}
// Civ4 Reimagined
int CyPlayer::getUniquePowerLevel()
{
return m_pPlayer ? m_pPlayer->getUniquePowerLevel() : -1;
}
// Civ4 Reimagined
long CyPlayer::getUniquePowerRequirement(int iLevel)
{
return m_pPlayer ? m_pPlayer->getUniquePowerRequirement(iLevel) : -1;
}
// Civ4 Reimagined
long CyPlayer::getAccumulatedCulture()
{
return m_pPlayer ? m_pPlayer->getAccumulatedCulture() : -1;
}
// Civ4 Reimagined
long CyPlayer::getUniquePowerRate()
{
return m_pPlayer ? m_pPlayer->getUniquePowerRate() : -1;
}
// Civ4 Reimagined
int CyPlayer::getMayaCalendar()
{
return m_pPlayer ? m_pPlayer->getMayaCalendar() : -1;
}
int CyPlayer::getCombatExperience() const
{
if (m_pPlayer)
{
return m_pPlayer->getCombatExperience();
}
return -1;
}
void CyPlayer::changeCombatExperience(int iChange)
{
if (m_pPlayer)
{
m_pPlayer->changeCombatExperience(iChange);
}
}
void CyPlayer::setCombatExperience(int iExperience)
{
if (m_pPlayer)
{
m_pPlayer->setCombatExperience(iExperience);
}
}
int CyPlayer::getSpecialistExtraYield(int /*SpecialistTypes*/ eIndex1, int /*YieldTypes*/ eIndex2)
{
return m_pPlayer ? m_pPlayer->getSpecialistExtraYield((SpecialistTypes) eIndex1, (YieldTypes) eIndex2) : -1;
}
int CyPlayer::findPathLength(int /*TechTypes*/ eTech, bool bCost)
{
return m_pPlayer ? m_pPlayer->findPathLength((TechTypes)eTech, bCost) : -1;
}
int CyPlayer::getQueuePosition( int /* TechTypes */ eTech )
{
if (m_pPlayer)
{
return m_pPlayer->getQueuePosition((TechTypes)eTech);
}
return -1;
}
void CyPlayer::clearResearchQueue()
{
if (m_pPlayer)
m_pPlayer->clearResearchQueue();
}
bool CyPlayer::pushResearch(int /*TechTypes*/ iIndex, bool bClear)
{
return m_pPlayer ? m_pPlayer->pushResearch((TechTypes)iIndex, bClear) : false;
}
void CyPlayer::popResearch(int /*TechTypes*/ eTech)
{
if (m_pPlayer)
m_pPlayer->popResearch((TechTypes) eTech);
}
int CyPlayer::getLengthResearchQueue()
{
return m_pPlayer ? m_pPlayer->getLengthResearchQueue() : -1;
}
void CyPlayer::addCityName(std::wstring szName)
{
if (m_pPlayer)
m_pPlayer->addCityName(szName);
}
int CyPlayer::getNumCityNames()
{
return m_pPlayer ? m_pPlayer->getNumCityNames() : -1;
}
std::wstring CyPlayer::getCityName(int iIndex)
{
return m_pPlayer ? m_pPlayer->getCityName(iIndex) : std::wstring();
}
// returns tuple of (CyCity, iterOut)
python::tuple CyPlayer::firstCity(bool bRev)
{
int iterIn = 0;
CvCity* pvObj = m_pPlayer ? m_pPlayer->firstCity(&iterIn, bRev) : NULL;
CyCity* pyObj = pvObj ? new CyCity(pvObj) : NULL;
python::tuple tup=python::make_tuple(pyObj, iterIn);
delete pyObj;
return tup;
}
// returns tuple of (CyCity, iterOut)
python::tuple CyPlayer::nextCity(int iterIn, bool bRev)
{
CvCity* pvObj = m_pPlayer ? m_pPlayer->nextCity(&iterIn, bRev) : NULL;
CyCity* pyObj = pvObj ? new CyCity(pvObj) : NULL;
python::tuple tup=python::make_tuple(pyObj, iterIn);
delete pyObj;
return tup;
}
int CyPlayer::getNumCities()
{
return m_pPlayer ? m_pPlayer->getNumCities() : -1;
}
CyCity* CyPlayer::getCity(int iID)
{
return m_pPlayer ? new CyCity(m_pPlayer->getCity(iID)) : NULL;
}
// returns tuple of (CyUnit, iterOut)
python::tuple CyPlayer::firstUnit(bool bRev)
{
int iterIn = 0;
CvUnit* pvUnit = m_pPlayer ? m_pPlayer->firstUnit(&iterIn, bRev) : NULL;
CyUnit* pyUnit = pvUnit ? new CyUnit(pvUnit) : NULL;
python::tuple tup=python::make_tuple(pyUnit, iterIn);
delete pyUnit;
return tup;
}
// returns tuple of (CyUnit, iterOut)
python::tuple CyPlayer::nextUnit(int iterIn, bool bRev)
{
CvUnit* pvObj = m_pPlayer ? m_pPlayer->nextUnit(&iterIn, bRev) : NULL;
CyUnit* pyObj = pvObj ? new CyUnit(pvObj) : NULL;
python::tuple tup=python::make_tuple(pyObj, iterIn);
delete pyObj;
return tup;
}
int CyPlayer::getNumUnits()
{
return m_pPlayer ? m_pPlayer->getNumUnits() : -1;
}
CyUnit* CyPlayer::getUnit(int iID)
{
return m_pPlayer ? new CyUnit(m_pPlayer->getUnit(iID)) : NULL;
}
// returns tuple of (CySelectionGroup, iterOut)
python::tuple CyPlayer::firstSelectionGroup(bool bRev)
{
int iterIn = 0;
CvSelectionGroup* pvObj = m_pPlayer ? m_pPlayer->firstSelectionGroup(&iterIn, bRev) : NULL;
CySelectionGroup* pyObj = pvObj ? new CySelectionGroup(pvObj) : NULL;
python::tuple tup=python::make_tuple(pyObj, iterIn);
delete pyObj;
return tup;
}
// returns tuple of (CySelectionGroup, iterOut)
python::tuple CyPlayer::nextSelectionGroup(int iterIn, bool bRev)
{
CvSelectionGroup* pvObj = m_pPlayer ? m_pPlayer->nextSelectionGroup(&iterIn, bRev) : NULL;
CySelectionGroup* pyObj = pvObj ? new CySelectionGroup(pvObj) : NULL;
python::tuple tup=python::make_tuple(pyObj, iterIn);
delete pyObj;
return tup;
}
int CyPlayer::getNumSelectionGroups()
{
return m_pPlayer ? m_pPlayer->getNumSelectionGroups() : -1;
}
CySelectionGroup* CyPlayer::getSelectionGroup(int iID)
{
return m_pPlayer ? new CySelectionGroup(m_pPlayer->getSelectionGroup(iID)) : NULL;
}
void CyPlayer::trigger(/*EventTriggerTypes*/int eEventTrigger)
{
if (m_pPlayer)
{
m_pPlayer->trigger((EventTriggerTypes)eEventTrigger);
}
}
const EventTriggeredData* CyPlayer::getEventOccured(int /*EventTypes*/ eEvent) const
{
return m_pPlayer ? m_pPlayer->getEventOccured((EventTypes)eEvent) : NULL;
}
void CyPlayer::resetEventOccured(int /*EventTypes*/ eEvent)
{
if (m_pPlayer)
{
m_pPlayer->resetEventOccured((EventTypes)eEvent);
}
}
EventTriggeredData* CyPlayer::getEventTriggered(int iID) const
{
return m_pPlayer ? m_pPlayer->getEventTriggered(iID) : NULL;
}
EventTriggeredData* CyPlayer::initTriggeredData(int /*EventTriggerTypes*/ eEventTrigger, bool bFire, int iCityId, int iPlotX, int iPlotY, int /*PlayerTypes*/ eOtherPlayer, int iOtherPlayerCityId, int /*ReligionTypes*/ eReligion, int /*CorporationTypes*/ eCorporation, int iUnitId, int /*BuildingTypes*/ eBuilding)
{
return m_pPlayer ? m_pPlayer->initTriggeredData((EventTriggerTypes)eEventTrigger, bFire, iCityId, iPlotX, iPlotY, (PlayerTypes)eOtherPlayer, iOtherPlayerCityId, (ReligionTypes)eReligion, (CorporationTypes)eCorporation, iUnitId, (BuildingTypes)eBuilding) : NULL;
}
int CyPlayer::getEventTriggerWeight(int /*EventTriggerTypes*/ eTrigger)
{
return m_pPlayer ? m_pPlayer->getEventTriggerWeight((EventTriggerTypes)eTrigger) : NULL;
}
void CyPlayer::AI_updateFoundValues(bool bStartingLoc)
{
if (m_pPlayer)
m_pPlayer->AI_updateFoundValues(bStartingLoc);
}
int CyPlayer::AI_foundValue(int iX, int iY, int iMinUnitRange/* = -1*/, bool bStartingLoc/* = false*/)
{
return m_pPlayer ? m_pPlayer->AI_foundValue(iX, iY, iMinUnitRange, bStartingLoc) : -1;
}
bool CyPlayer::AI_isFinancialTrouble()
{
return m_pPlayer ? m_pPlayer->AI_isFinancialTrouble() : false;
}
bool CyPlayer::AI_demandRebukedWar(int /*PlayerTypes*/ ePlayer)
{
return m_pPlayer ? m_pPlayer->AI_demandRebukedWar((PlayerTypes)ePlayer) : false;
}
AttitudeTypes CyPlayer::AI_getAttitude(int /*PlayerTypes*/ ePlayer)
{
return m_pPlayer ? m_pPlayer->AI_getAttitude((PlayerTypes)ePlayer) : NO_ATTITUDE;
}
int CyPlayer::AI_unitValue(int /*UnitTypes*/ eUnit, int /*UnitAITypes*/ eUnitAI, CyArea* pArea)
{
return m_pPlayer ? m_pPlayer->AI_unitValue((UnitTypes)eUnit, (UnitAITypes)eUnitAI, pArea->getArea()) : -1;
}
int CyPlayer::AI_civicValue(int /*CivicTypes*/ eCivic)
{
return m_pPlayer ? m_pPlayer->AI_civicValue((CivicTypes)eCivic) : -1;
}
int CyPlayer::AI_totalUnitAIs(int /*UnitAITypes*/ eUnitAI)
{
return m_pPlayer ? m_pPlayer->AI_totalUnitAIs((UnitAITypes)eUnitAI) : -1;
}
int CyPlayer::AI_totalAreaUnitAIs(CyArea* pArea, int /*UnitAITypes*/ eUnitAI)
{
return m_pPlayer ? m_pPlayer->AI_totalAreaUnitAIs(pArea->getArea(), (UnitAITypes)eUnitAI) : -1;
}
int CyPlayer::AI_totalWaterAreaUnitAIs(CyArea* pArea, int /*UnitAITypes*/ eUnitAI)
{
return m_pPlayer ? m_pPlayer->AI_totalWaterAreaUnitAIs(pArea->getArea(), (UnitAITypes)eUnitAI) : -1;
}
int CyPlayer::AI_getNumAIUnits(int /*UnitAITypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->AI_getNumAIUnits((UnitAITypes)eIndex) : NO_UNITAI;
}
int CyPlayer::AI_getAttitudeExtra(int /*PlayerTypes*/ eIndex)
{
return m_pPlayer ? m_pPlayer->AI_getAttitudeExtra((PlayerTypes)eIndex) : -1;
}
void CyPlayer::AI_setAttitudeExtra(int /*PlayerTypes*/ eIndex, int iNewValue)
{
if (m_pPlayer)
m_pPlayer->AI_setAttitudeExtra((PlayerTypes)eIndex, iNewValue);
}
void CyPlayer::AI_changeAttitudeExtra(int /*PlayerTypes*/ eIndex, int iChange)
{
if (m_pPlayer)
m_pPlayer->AI_changeAttitudeExtra((PlayerTypes)eIndex, iChange);
}
int CyPlayer::AI_getMemoryCount(int /*PlayerTypes*/ eIndex1, int /*MemoryTypes*/ eIndex2)
{
return m_pPlayer ? m_pPlayer->AI_getMemoryCount((PlayerTypes)eIndex1, (MemoryTypes)eIndex2) : -1;
}
void CyPlayer::AI_changeMemoryCount(int /*PlayerTypes*/ eIndex1, int /*MemoryTypes*/ eIndex2, int iChange)
{
if (m_pPlayer)
m_pPlayer->AI_changeMemoryCount((PlayerTypes)eIndex1, (MemoryTypes)eIndex2, iChange);
}
int CyPlayer::AI_getExtraGoldTarget() const
{
return m_pPlayer ? m_pPlayer->AI_getExtraGoldTarget() : -1;
}
void CyPlayer::AI_setExtraGoldTarget(int iNewValue)
{
if (m_pPlayer)
{
m_pPlayer->AI_setExtraGoldTarget(iNewValue);
}
}
int CyPlayer::getScoreHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getScoreHistory(iTurn) : 0);
}
int CyPlayer::getEconomyHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getEconomyHistory(iTurn) : 0);
}
int CyPlayer::getIndustryHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getIndustryHistory(iTurn) : 0);
}
int CyPlayer::getAgricultureHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getAgricultureHistory(iTurn) : 0);
}
int CyPlayer::getPowerHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getPowerHistory(iTurn) : 0);
}
int CyPlayer::getCultureHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getCultureHistory(iTurn) : 0);
}
int CyPlayer::getEspionageHistory(int iTurn) const
{
return (NULL != m_pPlayer ? m_pPlayer->getEspionageHistory(iTurn) : 0);
}
std::string CyPlayer::getScriptData() const
{
return m_pPlayer ? m_pPlayer->getScriptData() : "";
}
void CyPlayer::setScriptData(std::string szNewValue)
{
if (m_pPlayer)
m_pPlayer->setScriptData(szNewValue);
}
void CyPlayer::chooseTech(int iDiscover, std::wstring szText, bool bFront)
{
if ( m_pPlayer )
{
m_pPlayer->chooseTech(iDiscover, szText.c_str(), bFront);
}
}
int CyPlayer::AI_maxGoldTrade(int iPlayer)
{
CvPlayerAI* pPlayer = dynamic_cast<CvPlayerAI*>(m_pPlayer);
if (pPlayer)
{
return (pPlayer->AI_maxGoldTrade((PlayerTypes)iPlayer));
}
return 0;
}
int CyPlayer::AI_maxGoldPerTurnTrade(int iPlayer)
{
CvPlayerAI* pPlayer = dynamic_cast<CvPlayerAI*>(m_pPlayer);
if (pPlayer)
{
return (pPlayer->AI_maxGoldPerTurnTrade((PlayerTypes)iPlayer));
}
return 0;
}
bool CyPlayer::splitEmpire(int iAreaId)
{
if (m_pPlayer)
{
return m_pPlayer->splitEmpire(iAreaId);
}
return false;
}
bool CyPlayer::canSplitEmpire() const
{
if (m_pPlayer)
{
return m_pPlayer->canSplitEmpire();
}
return false;
}
bool CyPlayer::canSplitArea(int iAreaId) const
{
if (m_pPlayer)
{
return m_pPlayer->canSplitArea(iAreaId);
}
return false;
}
bool CyPlayer::canHaveTradeRoutesWith(int iPlayer)
{
return m_pPlayer ? m_pPlayer->canHaveTradeRoutesWith((PlayerTypes)iPlayer) : false;
}
void CyPlayer::forcePeace(int iPlayer)
{
if (m_pPlayer)
m_pPlayer->forcePeace((PlayerTypes)iPlayer);
}
// Civ4 Reimagined
int CyPlayer::getBuildingYieldChange(int /*BuildingClassTypes*/ eIndex1, int /*YieldTypes*/ eIndex2) const
{
FAssertMsg(eIndex1 >= 0, "eIndex1 is expected to be non-negative (invalid Index)");
FAssertMsg(eIndex1 < GC.getNumBuildingClassInfos(), "eIndex1 is expected to be within maximum bounds (invalid Index)");
FAssertMsg(eIndex2 >= 0, "eIndex2 is expected to be non-negative (invalid Index)");
FAssertMsg(eIndex2 < NUM_YIELD_TYPES, "eIndex2 is expected to be within maximum bounds (invalid Index)");
return m_pPlayer ? m_pPlayer->getBuildingYieldChange((BuildingClassTypes)eIndex1, (YieldTypes)eIndex2) : 0;
}
| [
"pierre@tupito.de"
] | pierre@tupito.de |
35793a6075f9168ae11ef40c90daa8e61dae9557 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_3288_httpd-2.2.34.cpp | e1542935750a5753e96b65d55e72e75da96158d5 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 121 | cpp | static int PTRCALL
big2_charMatches(const ENCODING *enc, const char *p, int c)
{
return BIG2_CHAR_MATCHES(enc, p, c);
} | [
"993273596@qq.com"
] | 993273596@qq.com |
16e0d5029094b90ef481fbce50faa89e5ea480b9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1485488_1/C++/xreborner/B.cpp | 7541b58d8f6b0ed44a016aaf5e3cda62176f0442 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,550 | cpp | #define _CRT_SECURE_NO_DEPRECATE
#pragma warning(disable: 4018)
#ifdef NDEBUG
#define _SECURE_SCL 0
#endif
#include <iostream>
#include <memory>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <functional>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cassert>
using namespace std;
const int Inf = 999999999;
const int XXs[4] = {0, 1, 0, -1};
const int YYs[4] = {1, 0, -1, 0};
struct item
{
int Time;
int X, Y;
item() {};
item(int Time, int X, int Y) : Time(Time), X(X), Y(Y) {}
};
bool operator<(const item& A, const item& B)
{
return A.Time > B.Time;
}
int NN, TT;
int N, M, InitLev;
int Ceils[100][100], Floors[100][100];
int EnableTimes[100][100];
bool Marks[100][100];
int P[100][100];
vector<item> Queue;
int main()
{
cin >> NN;
for (TT = 1; TT <= NN; TT++)
{
cin >> InitLev >> N >> M;
for (int X = 0; X < N; X++) for (int Y = 0; Y < M; Y++) cin >> Ceils[X][Y];
for (int X = 0; X < N; X++) for (int Y = 0; Y < M; Y++) cin >> Floors[X][Y];
for (int X = 0; X < N; X++) for (int Y = 0; Y < M; Y++)
{
if (Ceils[X][Y] - Floors[X][Y] < 50) EnableTimes[X][Y] = Inf;
else if (Ceils[X][Y] - InitLev >= 50) EnableTimes[X][Y] = 0;
else EnableTimes[X][Y] = (InitLev - (Ceils[X][Y] - 50));
}
for (int X = 0; X < N; X++) for (int Y = 0; Y < M; Y++) P[X][Y] = Inf, Marks[X][Y] = false;
P[0][0] = 0;
Queue.clear();
Queue.push_back(item(0, 0, 0));
while (!Queue.empty())
{
item Me = Queue[0];
pop_heap(Queue.begin(), Queue.end());
Queue.pop_back();
if (Marks[Me.X][Me.Y]) continue;
Marks[Me.X][Me.Y] = true;
for (int Dir = 0; Dir < 4; Dir++)
{
int X = Me.X + XXs[Dir];
int Y = Me.Y + YYs[Dir];
if (X < 0 || X >= N || Y < 0 || Y >= M) continue;
if (Ceils[Me.X][Me.Y] - Floors[X][Y] < 50) continue;
if (Ceils[X][Y] - Floors[Me.X][Me.Y] < 50) continue;
if (Ceils[X][Y] - Floors[X][Y] < 50) continue;
int Time = max(Me.Time, EnableTimes[X][Y]);
if (Time >= Inf) continue;
if (Time > 0)
{
if (InitLev - Time >= Floors[Me.X][Me.Y] + 20) Time += 10;
else Time += 100;
}
if (Time < P[X][Y])
{
P[X][Y] = Time;
Queue.push_back(item(Time, X, Y));
push_heap(Queue.begin(), Queue.end());
}
}
}
printf("Case #%d: %.1f\n", TT, (double)P[N - 1][M - 1] / 10);
}
return 0;
}
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d4a42fa5fb0c30fbae0b22f2c71628d6ab7b00ff | 5d49a7a63fe13383911c64f26623038e4abcd0c2 | /mapreduce-mapper.h | 894785341fbdcae1c8a29d70142b39ee1a37916f | [] | no_license | sfgorky/Map-Reduce | b34049bf678799d345de8c838433d1cb9bb2f81a | 0f33b2885fcdc002fc0ff043c49c85002c9812c0 | refs/heads/master | 2021-09-18T04:45:51.507696 | 2018-07-09T21:13:46 | 2018-07-09T21:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,364 | h | /**
* File: mapreduce-mapper.h
* ------------------------
* Defines the interface for the MapReduceMapper class,
* which knows how to configure itself (via its constructor) and
* feed input files to the supplied executable. Input files received
* from the map-reduce server should be .input files (that is, the file
* extension is expected to be ".input"), and the output files are of
* the form "<name>-00000.mapped", "<name>-00001.mapped","<name>-00002.mapped",
* and so forth. The 00000, 00001, etc, are five-digit numbers ranging from
* 0 up through but not including the split value.
*
* You'll need to extend the MapReduceMapper constructor to accept one more parameter
* (the size_t split value), add state to the MapReduceMapper, and extend the implementation
* of map to distribute the mapper executable's output across many, many files.
*
* See mapreduce-worker.h for more documentation on how the constructor
* should behave.
*/
#pragma once
#include "mapreduce-worker.h"
class MapReduceMapper: protected MapReduceWorker {
public:
MapReduceMapper(const std::string& serverHost, unsigned short serverPort,
const std::string& cwd, const std::string& executable,
const std::string& outputPath,
const size_t numHashCodes);
void map() const;
private:
size_t nHashCodes;
};
| [
"melmuhta@gmail.com"
] | melmuhta@gmail.com |
ecaec957f7973768feba2ca4f272120e0322a494 | 7975dc9f1c3550719c0f8f841ef5c533091ebbe8 | /src/sensorsbank.cpp | f4fe5625a51741e2dc488c5f8a6a692a8c8e8d01 | [
"Apache-2.0"
] | permissive | marc-despland/alarm | edb00a8b44c3905ddd0f10a475eb1b7ff1f0e140 | 06fa62a490b57e012402c2f3dfd9c4c54e624070 | refs/heads/master | 2021-03-19T14:50:07.513833 | 2017-07-30T13:52:32 | 2017-07-30T13:52:32 | 97,235,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,193 | cpp | #include "sensorsbank.h"
#include <ctime>
#include <curl/curl.h>
#include <sstream>
#include "log.h"
string SensorsBank::ApiKey="";
string SensorsBank::ApiUrl="";
string SensorsBank::toJson(std::map<string,double> sensors) {
time_t rawtime;
struct tm * timeinfo;
char responsedate [80];
time (&rawtime);
timeinfo = gmtime (&rawtime);
//2017-07-28T10:35:55.912Z
strftime (responsedate,80,"\"date\": \"%Y-%m-%dT%H:%M:%S.000Z\"",timeinfo);
std::stringstream json;
json << "{" <<endl;
json << " "<< responsedate<<","<<endl;
json << " \"sensors\": [" << endl;
for (std::map<string, double>::iterator it=sensors.begin();it!=sensors.end(); it++) {
if (it!=sensors.begin()) {
json << ","<<endl;
}
json << " {" <<endl;
json << " \"name\": \"" << it->first<< "\"," <<endl;
json << " \"value\": " << it->second <<endl;
json << " }";
}
json << endl << " ]" << endl;
json << "}" <<endl;
Log::logger->log("SENSORSBANK",DEBUG) << "Sensors data : " <<endl<< json.str() <<endl;
return json.str();
}
void SensorsBank::sendData(std::map<string,double> sensors) throw (CurlInitException, PostException) {
CURL *curl;
CURLcode res;
struct curl_slist *list = NULL;
curl = curl_easy_init();
if(curl) {
string apikey="ApiKey: "+SensorsBank::ApiKey;
list = curl_slist_append(list, apikey.c_str());
list = curl_slist_append(list, "Content-Type: application/json");
list = curl_slist_append(list, "Expect:");
string url=SensorsBank::ApiUrl+"/sensors";
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
string data=SensorsBank::toJson(sensors);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data.c_str());
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, data.length());
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
res = curl_easy_perform(curl);
if(res != CURLE_OK) {
Log::logger->log("SENSORSBANK",ERROR) << "Failed to send sensors data " << curl_easy_strerror(res) <<endl;
curl_easy_cleanup(curl);
throw PostException();
}
Log::logger->log("SENSORSBANK",DEBUG) << "Success" <<endl;
curl_easy_cleanup(curl);
} else {
Log::logger->log("SENSORSBANK",ERROR) << "Failed to init curl library " <<endl;
throw CurlInitException();
}
}
| [
"marc.despland@art122-5.net"
] | marc.despland@art122-5.net |
f4a62bf2941d984dd3f508164ff95b5962426fe8 | d2faaf968199d35d9df9b2c85e669294334e425f | /Classes/module/gamePlayingScene/Controller/archerController/archerController.h | 2f80757ea2f13f1974c07978691207c22c1b7f57 | [] | no_license | lifestory/CatapultGame | 374abd3937577998766d864870a7f2e8961712ec | 2e4235d7e0a2b0bcf92704638c248769b0dcca84 | refs/heads/master | 2021-01-20T18:01:50.216264 | 2016-06-28T08:48:55 | 2016-06-28T08:48:55 | 62,115,939 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,435 | h | #ifndef __ARCHER_CONTROLLER_H__
#define __ARCHER_CONTROLLER_H__
#include "cocos2d.h"
USING_NS_CC;
#include"../../Model/archer/archer.h"
#include"../../../../public/Constant/Constant.h"
#include"../../../../public/ParameterManager/ParameterManager.h"
#include"../../Model/archer/arrow.h"
#include"../../Model/archer/progressTime.h"
#include"../cameraController/CameraController.h"
#include"../../Model/Enemy/Enemy.h"
class ArcherController : public cocos2d::Layer{
public:
static ArcherController* getInstance();
virtual bool init();
CREATE_FUNC(ArcherController);
archer* getArcher();
progressTime* getProgressTime();
static void touchBegan(Vec2);
static void touchEnded(Vec2);
void updateTimeForProgressBar(float dt);
void updateTimeForAddExp(float dt);
void onKeyPressed(EventKeyboard::KeyCode keyCode, Event*event);
void onKeyReleased(EventKeyboard::KeyCode keyCode, Event*event);
void landGround();
void leaveGround();
void attacked(Node* aNode, int);
void setWeapon(int);
void gameEndedAndRemove();
void touchRope();
void leaveRope();
void createArrowRainTouch(Node* arrowRainNode);
private:
ArcherController();
~ArcherController();
static ArcherController* archerController;
static archer* archer_;
static progressTime* progressTime_;
static float totalTimeForProgressBar;
static bool moveLeftAngRightLock;
static bool moveUpAndDownLock;
static bool onAir;
static bool climbing;
};
#endif | [
"496756287@qq.com"
] | 496756287@qq.com |
00d580ed13b9609a6e985f72f4b3b8730e0cf31e | 942bfe7fbc326daa2f8a2701480758cee0854f5d | /Source/Wave/UI/HammerCountBarUI.cpp | 538aeeae04d8369a7136980386df66a64f919265 | [] | no_license | naryuu8/GameTaisyou2020 | 074930623a8b4367e4f40c8a64ec53b2f6ea117f | 880ec8552bb3f3f39a293291628aaf4d5e3121fd | refs/heads/master | 2023-01-31T11:08:03.539366 | 2020-06-14T14:30:46 | 2020-06-14T14:30:46 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 881 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "HammerCountBarUI.h"
#define GAUGE_SPEED (0.03f)//ゲージ徐々に減らすスピード
float UHammerCountBarUI::DownGauge(const float DamageX, const float HpX)
{
if (!IsDamageDown)
{//ゲージが初めて下がる時の差分を得る
NowHp = DamageX - HpX;
IsDamageDown = true;
}
//1フレームで減らす量を計算
//今は割合だが固定値にすれば一定の速さになる
float AddBar = NowHp * GAUGE_SPEED;
return DamageX - AddBar;
}
float UHammerCountBarUI::DownGaugeTime(const float DamageX, const float HpX, const float Speed)
{
if (!IsDamageDown)
{//ゲージが初めて下がる時の差分を得る
NowHp = DamageX - HpX;
IsDamageDown = true;
}
//1フレームで減らす量を計算
//float AddBar = NowHp * Speed;
return DamageX - Speed;
} | [
"orengi93@yahoo.co.jp"
] | orengi93@yahoo.co.jp |
99a1788b62cff717a1ad975a215cc2c4ee2bc7aa | e7dcf1b8325270e9ca908723a86e417e40d75614 | /chapter2/소스37.cpp | f97b8954e5103198345ecb90e16d51108ff9758e | [] | no_license | jojarim/cprog | 73f7b4ca733293b32baee3dcee982c2132e36521 | f3d1f9447919003a0a4550f244c65a297a48770a | refs/heads/master | 2020-07-28T16:50:48.407148 | 2019-12-12T05:15:13 | 2019-12-12T05:15:13 | 209,471,178 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 211 | cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void)
{
int a = 10;
int *p = &a;
int b = *p;
*p = 20;
int **pp = &p;
int c = **pp;
**pp = 30;
printf("%dÀÌ´Ù", a);
return 0;
} | [
"whwo2142@naver.com"
] | whwo2142@naver.com |
f60a861644cbbd5ac09e0febd4db3cad5e6df811 | c11f601574b36c77674a6aecbe64fca6333ef2f8 | /MT/MT_Robot/robot/SteeredRobot.h | dcf3b3850ff4dea0831144eecb23369196ddad8b | [
"MIT"
] | permissive | leonard-lab/MADTraC | 736afe84c51993d21864669aa4d9a42a3f76c723 | f1830c377a075aa5ddff9342c4851d0715cdd6a4 | refs/heads/master | 2020-05-19T17:39:43.278238 | 2013-02-17T01:05:05 | 2013-02-17T01:05:05 | 3,463,121 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,151 | h | #ifndef STEEREDROBOT_H
#define STEEREDROBOT_H
/************************************************************
* SteeredRobot.h
*
* Defines the MT_SteeredRobot class. This is a MT_MiaBotPro with
* only speed and turning rate controls (not direct wheel
* rate controls). This should suffice as a basic class
* to use for most MT_MiaBotPro applications while still guarding
* the low-level functionality of MT_MiaBotPro.
*
* - Modified from FishBot.h DTS 8/10/09
*
************************************************************/
// Inherits from the (more basic) MT_MiaBotPro class.
#include "MiaBotPro.h"
#include "RobotBase.h"
// Default length of the buffers
static const int MT_DEFAULT_TAIL_LENGTH_ROBOT = 500;
// Header for the MT_R3 class
#include "MT/MT_Core/primitives/R3.h"
// Header for the MT_ringbuffer class
#include "MT/MT_Core/primitives/ringbuffer.h"
const double SR_DEFAULT_MAX_SPEED = 0.35; // speeds in meters/sec
const double SR_DEFAULT_MAX_TURNING_RATE = 8.0; // turning rates in rad/sec (based on 7 cm wheelbase)
const double SR_MAX_ALLOWED_SPEED = 4.0; // max rates: see DTS notebook #2, 1/2-1/5 2009
const double SR_MAX_ALLOWED_TURNING_RATE = 114.3;
const double SR_DEFAULT_DEADBAND = 0.05;
class MT_SteeredRobot : public MT_MiaBotPro, public MT_RobotBase {
protected:
MT_R3 position;
float theta;
void init_buffers(const int length);
MT_ringbuffer<float>* xbuffer;
MT_ringbuffer<float>* ybuffer;
//! scaling factor: [world meters] = world_scale*[internal units]
double world_scale;
//! comega: control omega
double comega;
double cdtheta;
//! cspeed: control speed
double cspeed;
unsigned char Autonomous;
double m_dMaxTurningRate;
double m_dMaxSpeed;
double m_dSpeedDeadBand;
double m_dTurningRateDeadBand;
void init();
public:
// NOTE: there is no MT_SteeredRobot(comport, speed, omega) constructor
// as this seems like a bad idea (wait for the program to
// be in control of things to start the robot moving)
//! default constructor (use stdout)
MT_SteeredRobot();
//! constructor to specify com port
MT_SteeredRobot(const char* onComPort, const char* name);
//! constructor to specify com port and scaling factor
MT_SteeredRobot(const char* onComPort, double inscale, const char* name);
// dtor
virtual ~MT_SteeredRobot();
// function to display the name of this robot (and its port)
void spitup(const char* name) const;
//! Set kinematic speed
void SetSpeed(double inspd);
//! Set kinematic turning rate
void SetOmega(double inomega);
//! Set kinematic speed and turning rate
void SetSpeedOmega(double inspd, double inomega);
// flag autonomous mode on
void SetAutonomousOn(){ Autonomous = 1; };
// flag autonomous mode off
void SetAutonomousOff(){ Autonomous = 0; };
void Go(); //! Provide access to the go command
void Pause(); //! Provide access to the pause command
//! Do a donut and wow the audience :)
void Donut(double spd, double radius);
// functions to get counter values
void QueryCounters();
void QueryCounters(int* Left, int* Right);
// accessor functions
double GetX() const;
double GetY() const;
double GetTheta() const;
// Safe functions we can pass-through to MiaBot (or MT_ComIO)
virtual const char* getComPort() const {return MT_MiaBotPro::getComPort();};
virtual unsigned char IsConnected() const { return MT_MiaBotPro::IsConnected(); };
//! Calculation of Control
virtual void Update(){ Control(); };
virtual void Update(float inx, float iny, float intheta);
void Update(std::vector<double> state){Update(state[0], state[1], state[2]);};
//! Apply Control
virtual void Control();
void SafeStop(){SetSpeedOmega(0,0);};
void AutoIDResponse(){SetSpeedOmega(0.1, 0);};
void JoyStickControl(std::vector<double> js_axes, unsigned int js_buttons);
};
#endif // STEEREDROBOT_H
| [
"dan.t.swain@gmail.com"
] | dan.t.swain@gmail.com |
66b23b642a6d3a775c0822288c0d218c6ee9bf93 | da07d22c338f1c046b24eb9dfb4d2cc3a02c3a36 | /Atcoder/ARC/099/099-C.cpp | 8fdd340cc452d57e38e869594365b4c7a396a8d8 | [] | no_license | Umi-def/Atcoder | 7fa402baf8de3ca846a8e43289d34baecc9d40ab | dd354894097890b4ce40c3eb679bd04b78aae810 | refs/heads/main | 2023-08-19T06:33:19.716933 | 2021-10-14T04:47:34 | 2021-10-14T04:47:34 | 302,190,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,218 | cpp |
#include <iostream>
#include <cstdint>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <cassert>
#include <climits>
#include <string>
#include <bitset>
#include <cfloat>
#include <unordered_set>
#include <limits>
#include <math.h>
#include <utility>
#include <tuple>
#include <deque>
#include <unordered_map>
#pragma GCC optimize("Ofast")
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <iomanip>
using namespace boost::multiprecision;
typedef cpp_int BigNum;
typedef cpp_dec_float_100 PreciseFloat;
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<ll> vll;
typedef vector<pair<int, int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
typedef vector<vector<ll>> vvll;
#define rep(i, n) for (int i = 0; i < (ll)(n); ++i)
#define rrep(i, n) for (int i = 1; i <= (ll)(n); ++i)
#define irep(it, stl) for (auto it = stl.begin(); it != stl.end(); it++)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define CHOOSE3(a) CHOOSE4 a
#define CHOOSE4(a0, a1, a2, x, ...) x
#define mes_1(a) cout << (a) << endl
#define mes_2(a, b) cout << (a) << " " << (b) << endl
#define mes_3(a, b, c) cout << (a) << " " << (b) << " " << (c) << endl
#define mes(...) \
CHOOSE3((__VA_ARGS__, mes_3, mes_2, mes_1, ~)) \
(__VA_ARGS__)
#define CHOOSE(a) CHOOSE2 a
#define CHOOSE2(a0, a1, a2, a3, a4, x, ...) x
#define debug_1(x1) cout << #x1 << ": " << x1 << endl
#define debug_2(x1, x2) cout << #x1 << ": " << x1 << ", " #x2 << ": " << x2 << endl
#define debug_3(x1, x2, x3) cout << #x1 << ": " << x1 << ", " #x2 << ": " << x2 << ", " #x3 << ": " << x3 << endl
#define debug_4(x1, x2, x3, x4) cout << #x1 << ": " << x1 << ", " #x2 << ": " << x2 << ", " #x3 << ": " << x3 << ", " #x4 << ": " << x4 << endl
#define debug_5(x1, x2, x3, x4, x5) cout << #x1 << ": " << x1 << ", " #x2 << ": " << x2 << ", " #x3 << ": " << x3 << ", " #x4 << ": " << x4 << ", " #x5 << ": " << x5 << endl
#define debug(...) \
CHOOSE((__VA_ARGS__, debug_5, debug_4, debug_3, debug_2, debug_1, ~)) \
(__VA_ARGS__)
#define Ynmes(a) (a) ? mes("Yes") : mes("No")
#define YNmes(a) (a) ? mes("YES") : mes("NO")
#define ynmes(a) (a) ? mes("yes") : mes("no")
#define re0 return 0
#define mp(p, q) make_pair(p, q)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define Sort(a) sort(a.begin(), a.end())
#define rSort(a) sort(a.rbegin(), a.rend())
#define Rev(a) reverse(a.begin(), a.end())
#define MATHPI acos(-1)
#define itn int;
int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
template <class T>
inline bool chmax(T &a, T b)
{
if (a < b)
{
a = b;
return 1;
}
return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
if (a > b)
{
a = b;
return 1;
}
return 0;
}
struct io
{
io()
{
ios::sync_with_stdio(false);
cin.tie(0);
}
};
const int INF = INT_MAX;
const ll LLINF = 1LL << 60;
const ll MOD = 1000000007;
const double EPS = 1e-9;
ll fact_mod(ll n, ll mod)
{
ll f = 1;
for (ll i = 2; i <= n; i++)
f = f * (i % mod) % mod;
return f;
}
ll modpow(ll x, ll n, ll mod)
{
if (n == 0)
return 1;
ll res = modpow((x * x) % mod, n / 2, mod);
if (n & 1)
res = (res * x) % mod;
return res;
}
ll modncr(ll n, ll r, ll mod)
{
if (r > n - r)
r = n - r;
if (r == 0)
return 1;
ll a = 1;
rep(i, r) a = a * ((n - i) % mod) % mod;
ll b = modpow(fact_mod(r, mod), mod - 2, mod);
return (a % mod) * (b % mod) % mod;
}
ll gcd(ll a, ll b)
{
return b ? gcd(b, a % b) : a;
}
ll lcm(ll a, ll b)
{
return a / gcd(a, b) * b;
}
ll nlcm(vector<ll> numbers)
{
ll res;
res = numbers[0];
for (ll i = 1; i < (ll)numbers.size(); i++)
{
res = lcm(res, numbers[i]);
}
return res;
}
uintmax_t ncr(unsigned int n, unsigned int r)
{
if (r * 2 > n)
r = n - r;
uintmax_t dividend = 1;
uintmax_t divisor = 1;
for (unsigned int i = 1; i <= r; ++i)
{
dividend *= (n - i + 1);
divisor *= i;
}
return dividend / divisor;
}
signed main(void)
{
ll n, k, ans = 0;
cin >> n >> k;
vll a(n);
rep(i, n) cin >> a[i];
if (n == k)
{
mes(1);
re0;
}
if (k == 2)
{
mes(n - 1);
re0;
}
if (n % (k - 1) == 0 || (n - 1) % (k - 1) == 0)
{
mes(n / (k - 1));
}
else
{
mes(n / (k - 1) + 1);
}
}
| [
"yumi901ririi@icloud.com"
] | yumi901ririi@icloud.com |
9d40f5fec97fa61271abac741a07df0282bd4c5b | 8607bda716336606ea63a0d7f68ea114b9dc4ae2 | /project1/sectE/unused/RIS_model.h | 3360c1fb715f47423aa6f0469f2c7cdfb1e2d814 | [
"BSD-3-Clause"
] | permissive | wood-b/CompBook | 6a7c7f606c0a1b89a69f2ffa8974e6a262b00da3 | 5a0d5764d1d9ed97b54b7ce91048471b70dadb7d | refs/heads/master | 2021-01-17T12:10:58.853498 | 2016-06-03T21:22:20 | 2016-06-03T21:22:20 | 38,138,422 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | h | #ifndef RIS_MODEL_H
#define RIS_MODEL_H
#include <vector>
#include "matrix.h"
class RIS_params {
private:
matrix m_statWt;
//U is stat weight matrix
matrix m_eigenvec;
//A is eigenvector matrix
double m_eigenval;
//lamda is the largest eigenvalue
public:
RIS_params (/*const*/ std::vector<double>& U, /*const*/ std::vector<double>& A,
/*const*/ double& lamda);
matrix& statWtMatrix();
matrix& eigenvectors();
double& eigenvalue();
};
#endif
| [
"b.wood@berkeley.edu"
] | b.wood@berkeley.edu |
25b6cb76f1d3a71f993a5b53f089a41af22fb16f | b42facd15642a20b40ea668e36201784a2995a7d | /src/stan_files/AugBin2T1A.hpp | 60064694da5456f391e9ccf90581578cf5a6d575 | [] | no_license | studentmicky/trialr | 3e7cb46e690387c2c7462a5bde27e43599b617e9 | 83dad6f5c255d7f66a5bf87512e212e57c0feb8a | refs/heads/master | 2020-12-10T02:41:30.710821 | 2019-06-25T16:27:04 | 2019-06-25T16:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,347 | hpp | /*
trialr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
trialr 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 trialr. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MODELS_HPP
#define MODELS_HPP
#define STAN__SERVICES__COMMAND_HPP
#include <rstan/rstaninc.hpp>
// Code generated by Stan version 2.18.0
#include <stan/model/model_header.hpp>
namespace model_AugBin2T1A_namespace {
using std::istream;
using std::string;
using std::stringstream;
using std::vector;
using stan::io::dump;
using stan::math::lgamma;
using stan::model::prob_grad;
using namespace stan::math;
static int current_statement_begin__;
stan::io::program_reader prog_reader__() {
stan::io::program_reader reader;
reader.add_event(0, 0, "start", "model_AugBin2T1A");
reader.add_event(104, 102, "end", "model_AugBin2T1A");
return reader;
}
#include <meta_header.hpp>
class model_AugBin2T1A : public prob_grad {
private:
int N;
vector_d z0;
vector_d z1;
vector_d z2;
vector<int> d1;
vector<int> d2;
double alpha_mean;
double alpha_sd;
double beta_mean;
double beta_sd;
double gamma_mean;
double gamma_sd;
double sigma_mean;
double sigma_sd;
double omega_lkj_eta;
double alpha_d1_mean;
double alpha_d1_sd;
double gamma_d1_mean;
double gamma_d1_sd;
double alpha_d2_mean;
double alpha_d2_sd;
double gamma_d2_mean;
double gamma_d2_sd;
vector<vector_d> y;
public:
model_AugBin2T1A(stan::io::var_context& context__,
std::ostream* pstream__ = 0)
: prob_grad(0) {
ctor_body(context__, 0, pstream__);
}
model_AugBin2T1A(stan::io::var_context& context__,
unsigned int random_seed__,
std::ostream* pstream__ = 0)
: prob_grad(0) {
ctor_body(context__, random_seed__, pstream__);
}
void ctor_body(stan::io::var_context& context__,
unsigned int random_seed__,
std::ostream* pstream__) {
typedef double local_scalar_t__;
boost::ecuyer1988 base_rng__ =
stan::services::util::create_rng(random_seed__, 0);
(void) base_rng__; // suppress unused var warning
current_statement_begin__ = -1;
static const char* function__ = "model_AugBin2T1A_namespace::model_AugBin2T1A";
(void) function__; // dummy to suppress unused var warning
size_t pos__;
(void) pos__; // dummy to suppress unused var warning
std::vector<int> vals_i__;
std::vector<double> vals_r__;
local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
(void) DUMMY_VAR__; // suppress unused var warning
// initialize member variables
try {
current_statement_begin__ = 3;
context__.validate_dims("data initialization", "N", "int", context__.to_vec());
N = int(0);
vals_i__ = context__.vals_i("N");
pos__ = 0;
N = vals_i__[pos__++];
current_statement_begin__ = 5;
validate_non_negative_index("z0", "N", N);
context__.validate_dims("data initialization", "z0", "vector_d", context__.to_vec(N));
validate_non_negative_index("z0", "N", N);
z0 = vector_d(static_cast<Eigen::VectorXd::Index>(N));
vals_r__ = context__.vals_r("z0");
pos__ = 0;
size_t z0_i_vec_lim__ = N;
for (size_t i_vec__ = 0; i_vec__ < z0_i_vec_lim__; ++i_vec__) {
z0[i_vec__] = vals_r__[pos__++];
}
current_statement_begin__ = 6;
validate_non_negative_index("z1", "N", N);
context__.validate_dims("data initialization", "z1", "vector_d", context__.to_vec(N));
validate_non_negative_index("z1", "N", N);
z1 = vector_d(static_cast<Eigen::VectorXd::Index>(N));
vals_r__ = context__.vals_r("z1");
pos__ = 0;
size_t z1_i_vec_lim__ = N;
for (size_t i_vec__ = 0; i_vec__ < z1_i_vec_lim__; ++i_vec__) {
z1[i_vec__] = vals_r__[pos__++];
}
current_statement_begin__ = 7;
validate_non_negative_index("z2", "N", N);
context__.validate_dims("data initialization", "z2", "vector_d", context__.to_vec(N));
validate_non_negative_index("z2", "N", N);
z2 = vector_d(static_cast<Eigen::VectorXd::Index>(N));
vals_r__ = context__.vals_r("z2");
pos__ = 0;
size_t z2_i_vec_lim__ = N;
for (size_t i_vec__ = 0; i_vec__ < z2_i_vec_lim__; ++i_vec__) {
z2[i_vec__] = vals_r__[pos__++];
}
current_statement_begin__ = 9;
validate_non_negative_index("d1", "N", N);
context__.validate_dims("data initialization", "d1", "int", context__.to_vec(N));
validate_non_negative_index("d1", "N", N);
d1 = std::vector<int>(N,int(0));
vals_i__ = context__.vals_i("d1");
pos__ = 0;
size_t d1_limit_0__ = N;
for (size_t i_0__ = 0; i_0__ < d1_limit_0__; ++i_0__) {
d1[i_0__] = vals_i__[pos__++];
}
current_statement_begin__ = 10;
validate_non_negative_index("d2", "N", N);
context__.validate_dims("data initialization", "d2", "int", context__.to_vec(N));
validate_non_negative_index("d2", "N", N);
d2 = std::vector<int>(N,int(0));
vals_i__ = context__.vals_i("d2");
pos__ = 0;
size_t d2_limit_0__ = N;
for (size_t i_0__ = 0; i_0__ < d2_limit_0__; ++i_0__) {
d2[i_0__] = vals_i__[pos__++];
}
current_statement_begin__ = 14;
context__.validate_dims("data initialization", "alpha_mean", "double", context__.to_vec());
alpha_mean = double(0);
vals_r__ = context__.vals_r("alpha_mean");
pos__ = 0;
alpha_mean = vals_r__[pos__++];
current_statement_begin__ = 15;
context__.validate_dims("data initialization", "alpha_sd", "double", context__.to_vec());
alpha_sd = double(0);
vals_r__ = context__.vals_r("alpha_sd");
pos__ = 0;
alpha_sd = vals_r__[pos__++];
current_statement_begin__ = 16;
context__.validate_dims("data initialization", "beta_mean", "double", context__.to_vec());
beta_mean = double(0);
vals_r__ = context__.vals_r("beta_mean");
pos__ = 0;
beta_mean = vals_r__[pos__++];
current_statement_begin__ = 17;
context__.validate_dims("data initialization", "beta_sd", "double", context__.to_vec());
beta_sd = double(0);
vals_r__ = context__.vals_r("beta_sd");
pos__ = 0;
beta_sd = vals_r__[pos__++];
current_statement_begin__ = 18;
context__.validate_dims("data initialization", "gamma_mean", "double", context__.to_vec());
gamma_mean = double(0);
vals_r__ = context__.vals_r("gamma_mean");
pos__ = 0;
gamma_mean = vals_r__[pos__++];
current_statement_begin__ = 19;
context__.validate_dims("data initialization", "gamma_sd", "double", context__.to_vec());
gamma_sd = double(0);
vals_r__ = context__.vals_r("gamma_sd");
pos__ = 0;
gamma_sd = vals_r__[pos__++];
current_statement_begin__ = 20;
context__.validate_dims("data initialization", "sigma_mean", "double", context__.to_vec());
sigma_mean = double(0);
vals_r__ = context__.vals_r("sigma_mean");
pos__ = 0;
sigma_mean = vals_r__[pos__++];
current_statement_begin__ = 21;
context__.validate_dims("data initialization", "sigma_sd", "double", context__.to_vec());
sigma_sd = double(0);
vals_r__ = context__.vals_r("sigma_sd");
pos__ = 0;
sigma_sd = vals_r__[pos__++];
current_statement_begin__ = 23;
context__.validate_dims("data initialization", "omega_lkj_eta", "double", context__.to_vec());
omega_lkj_eta = double(0);
vals_r__ = context__.vals_r("omega_lkj_eta");
pos__ = 0;
omega_lkj_eta = vals_r__[pos__++];
current_statement_begin__ = 25;
context__.validate_dims("data initialization", "alpha_d1_mean", "double", context__.to_vec());
alpha_d1_mean = double(0);
vals_r__ = context__.vals_r("alpha_d1_mean");
pos__ = 0;
alpha_d1_mean = vals_r__[pos__++];
current_statement_begin__ = 26;
context__.validate_dims("data initialization", "alpha_d1_sd", "double", context__.to_vec());
alpha_d1_sd = double(0);
vals_r__ = context__.vals_r("alpha_d1_sd");
pos__ = 0;
alpha_d1_sd = vals_r__[pos__++];
current_statement_begin__ = 27;
context__.validate_dims("data initialization", "gamma_d1_mean", "double", context__.to_vec());
gamma_d1_mean = double(0);
vals_r__ = context__.vals_r("gamma_d1_mean");
pos__ = 0;
gamma_d1_mean = vals_r__[pos__++];
current_statement_begin__ = 28;
context__.validate_dims("data initialization", "gamma_d1_sd", "double", context__.to_vec());
gamma_d1_sd = double(0);
vals_r__ = context__.vals_r("gamma_d1_sd");
pos__ = 0;
gamma_d1_sd = vals_r__[pos__++];
current_statement_begin__ = 29;
context__.validate_dims("data initialization", "alpha_d2_mean", "double", context__.to_vec());
alpha_d2_mean = double(0);
vals_r__ = context__.vals_r("alpha_d2_mean");
pos__ = 0;
alpha_d2_mean = vals_r__[pos__++];
current_statement_begin__ = 30;
context__.validate_dims("data initialization", "alpha_d2_sd", "double", context__.to_vec());
alpha_d2_sd = double(0);
vals_r__ = context__.vals_r("alpha_d2_sd");
pos__ = 0;
alpha_d2_sd = vals_r__[pos__++];
current_statement_begin__ = 31;
context__.validate_dims("data initialization", "gamma_d2_mean", "double", context__.to_vec());
gamma_d2_mean = double(0);
vals_r__ = context__.vals_r("gamma_d2_mean");
pos__ = 0;
gamma_d2_mean = vals_r__[pos__++];
current_statement_begin__ = 32;
context__.validate_dims("data initialization", "gamma_d2_sd", "double", context__.to_vec());
gamma_d2_sd = double(0);
vals_r__ = context__.vals_r("gamma_d2_sd");
pos__ = 0;
gamma_d2_sd = vals_r__[pos__++];
// validate, data variables
current_statement_begin__ = 3;
check_greater_or_equal(function__,"N",N,1);
current_statement_begin__ = 5;
current_statement_begin__ = 6;
current_statement_begin__ = 7;
current_statement_begin__ = 9;
for (int k0__ = 0; k0__ < N; ++k0__) {
check_greater_or_equal(function__,"d1[k0__]",d1[k0__],0);
check_less_or_equal(function__,"d1[k0__]",d1[k0__],1);
}
current_statement_begin__ = 10;
for (int k0__ = 0; k0__ < N; ++k0__) {
check_greater_or_equal(function__,"d2[k0__]",d2[k0__],0);
check_less_or_equal(function__,"d2[k0__]",d2[k0__],1);
}
current_statement_begin__ = 14;
current_statement_begin__ = 15;
check_greater_or_equal(function__,"alpha_sd",alpha_sd,0);
current_statement_begin__ = 16;
current_statement_begin__ = 17;
check_greater_or_equal(function__,"beta_sd",beta_sd,0);
current_statement_begin__ = 18;
current_statement_begin__ = 19;
check_greater_or_equal(function__,"gamma_sd",gamma_sd,0);
current_statement_begin__ = 20;
current_statement_begin__ = 21;
check_greater_or_equal(function__,"sigma_sd",sigma_sd,0);
current_statement_begin__ = 23;
current_statement_begin__ = 25;
current_statement_begin__ = 26;
check_greater_or_equal(function__,"alpha_d1_sd",alpha_d1_sd,0);
current_statement_begin__ = 27;
current_statement_begin__ = 28;
check_greater_or_equal(function__,"gamma_d1_sd",gamma_d1_sd,0);
current_statement_begin__ = 29;
current_statement_begin__ = 30;
check_greater_or_equal(function__,"alpha_d2_sd",alpha_d2_sd,0);
current_statement_begin__ = 31;
current_statement_begin__ = 32;
check_greater_or_equal(function__,"gamma_d2_sd",gamma_d2_sd,0);
// initialize data variables
current_statement_begin__ = 36;
validate_non_negative_index("y", "N", N);
validate_non_negative_index("y", "2", 2);
y = std::vector<vector_d>(N,vector_d(static_cast<Eigen::VectorXd::Index>(2)));
stan::math::fill(y,DUMMY_VAR__);
current_statement_begin__ = 37;
for (int i = 1; i <= N; ++i) {
current_statement_begin__ = 38;
stan::model::assign(y,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(1), stan::model::nil_index_list())),
stan::math::log((get_base1(z1,i,"z1",1) / get_base1(z0,i,"z0",1))),
"assigning variable y");
current_statement_begin__ = 39;
stan::model::assign(y,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())),
stan::math::log((get_base1(z2,i,"z2",1) / get_base1(z0,i,"z0",1))),
"assigning variable y");
}
// validate transformed data
current_statement_begin__ = 36;
// validate, set parameter ranges
num_params_r__ = 0U;
param_ranges_i__.clear();
current_statement_begin__ = 44;
++num_params_r__;
current_statement_begin__ = 45;
++num_params_r__;
current_statement_begin__ = 46;
++num_params_r__;
current_statement_begin__ = 47;
validate_non_negative_index("Omega", "2", 2);
num_params_r__ += ((2 * (2 - 1)) / 2);
current_statement_begin__ = 48;
validate_non_negative_index("sigma", "2", 2);
num_params_r__ += 2;
current_statement_begin__ = 49;
++num_params_r__;
current_statement_begin__ = 50;
++num_params_r__;
current_statement_begin__ = 51;
++num_params_r__;
current_statement_begin__ = 52;
++num_params_r__;
} catch (const std::exception& e) {
stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
// Next line prevents compiler griping about no return
throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
}
}
~model_AugBin2T1A() { }
void transform_inits(const stan::io::var_context& context__,
std::vector<int>& params_i__,
std::vector<double>& params_r__,
std::ostream* pstream__) const {
stan::io::writer<double> writer__(params_r__,params_i__);
size_t pos__;
(void) pos__; // dummy call to supress warning
std::vector<double> vals_r__;
std::vector<int> vals_i__;
if (!(context__.contains_r("alpha")))
throw std::runtime_error("variable alpha missing");
vals_r__ = context__.vals_r("alpha");
pos__ = 0U;
context__.validate_dims("initialization", "alpha", "double", context__.to_vec());
double alpha(0);
alpha = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(alpha);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable alpha: ") + e.what());
}
if (!(context__.contains_r("beta")))
throw std::runtime_error("variable beta missing");
vals_r__ = context__.vals_r("beta");
pos__ = 0U;
context__.validate_dims("initialization", "beta", "double", context__.to_vec());
double beta(0);
beta = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(beta);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable beta: ") + e.what());
}
if (!(context__.contains_r("gamma")))
throw std::runtime_error("variable gamma missing");
vals_r__ = context__.vals_r("gamma");
pos__ = 0U;
context__.validate_dims("initialization", "gamma", "double", context__.to_vec());
double gamma(0);
gamma = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(gamma);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable gamma: ") + e.what());
}
if (!(context__.contains_r("Omega")))
throw std::runtime_error("variable Omega missing");
vals_r__ = context__.vals_r("Omega");
pos__ = 0U;
validate_non_negative_index("Omega", "2", 2);
validate_non_negative_index("Omega", "2", 2);
context__.validate_dims("initialization", "Omega", "matrix_d", context__.to_vec(2,2));
matrix_d Omega(static_cast<Eigen::VectorXd::Index>(2),static_cast<Eigen::VectorXd::Index>(2));
for (int j2__ = 0U; j2__ < 2; ++j2__)
for (int j1__ = 0U; j1__ < 2; ++j1__)
Omega(j1__,j2__) = vals_r__[pos__++];
try {
writer__.corr_matrix_unconstrain(Omega);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable Omega: ") + e.what());
}
if (!(context__.contains_r("sigma")))
throw std::runtime_error("variable sigma missing");
vals_r__ = context__.vals_r("sigma");
pos__ = 0U;
validate_non_negative_index("sigma", "2", 2);
context__.validate_dims("initialization", "sigma", "vector_d", context__.to_vec(2));
vector_d sigma(static_cast<Eigen::VectorXd::Index>(2));
for (int j1__ = 0U; j1__ < 2; ++j1__)
sigma(j1__) = vals_r__[pos__++];
try {
writer__.vector_lb_unconstrain(0,sigma);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable sigma: ") + e.what());
}
if (!(context__.contains_r("alphaD1")))
throw std::runtime_error("variable alphaD1 missing");
vals_r__ = context__.vals_r("alphaD1");
pos__ = 0U;
context__.validate_dims("initialization", "alphaD1", "double", context__.to_vec());
double alphaD1(0);
alphaD1 = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(alphaD1);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable alphaD1: ") + e.what());
}
if (!(context__.contains_r("gammaD1")))
throw std::runtime_error("variable gammaD1 missing");
vals_r__ = context__.vals_r("gammaD1");
pos__ = 0U;
context__.validate_dims("initialization", "gammaD1", "double", context__.to_vec());
double gammaD1(0);
gammaD1 = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(gammaD1);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable gammaD1: ") + e.what());
}
if (!(context__.contains_r("alphaD2")))
throw std::runtime_error("variable alphaD2 missing");
vals_r__ = context__.vals_r("alphaD2");
pos__ = 0U;
context__.validate_dims("initialization", "alphaD2", "double", context__.to_vec());
double alphaD2(0);
alphaD2 = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(alphaD2);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable alphaD2: ") + e.what());
}
if (!(context__.contains_r("gammaD2")))
throw std::runtime_error("variable gammaD2 missing");
vals_r__ = context__.vals_r("gammaD2");
pos__ = 0U;
context__.validate_dims("initialization", "gammaD2", "double", context__.to_vec());
double gammaD2(0);
gammaD2 = vals_r__[pos__++];
try {
writer__.scalar_unconstrain(gammaD2);
} catch (const std::exception& e) {
throw std::runtime_error(std::string("Error transforming variable gammaD2: ") + e.what());
}
params_r__ = writer__.data_r();
params_i__ = writer__.data_i();
}
void transform_inits(const stan::io::var_context& context,
Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
std::ostream* pstream__) const {
std::vector<double> params_r_vec;
std::vector<int> params_i_vec;
transform_inits(context, params_i_vec, params_r_vec, pstream__);
params_r.resize(params_r_vec.size());
for (int i = 0; i < params_r.size(); ++i)
params_r(i) = params_r_vec[i];
}
template <bool propto__, bool jacobian__, typename T__>
T__ log_prob(vector<T__>& params_r__,
vector<int>& params_i__,
std::ostream* pstream__ = 0) const {
typedef T__ local_scalar_t__;
local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
(void) DUMMY_VAR__; // suppress unused var warning
T__ lp__(0.0);
stan::math::accumulator<T__> lp_accum__;
try {
// model parameters
stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
local_scalar_t__ alpha;
(void) alpha; // dummy to suppress unused var warning
if (jacobian__)
alpha = in__.scalar_constrain(lp__);
else
alpha = in__.scalar_constrain();
local_scalar_t__ beta;
(void) beta; // dummy to suppress unused var warning
if (jacobian__)
beta = in__.scalar_constrain(lp__);
else
beta = in__.scalar_constrain();
local_scalar_t__ gamma;
(void) gamma; // dummy to suppress unused var warning
if (jacobian__)
gamma = in__.scalar_constrain(lp__);
else
gamma = in__.scalar_constrain();
Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,Eigen::Dynamic> Omega;
(void) Omega; // dummy to suppress unused var warning
if (jacobian__)
Omega = in__.corr_matrix_constrain(2,lp__);
else
Omega = in__.corr_matrix_constrain(2);
Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> sigma;
(void) sigma; // dummy to suppress unused var warning
if (jacobian__)
sigma = in__.vector_lb_constrain(0,2,lp__);
else
sigma = in__.vector_lb_constrain(0,2);
local_scalar_t__ alphaD1;
(void) alphaD1; // dummy to suppress unused var warning
if (jacobian__)
alphaD1 = in__.scalar_constrain(lp__);
else
alphaD1 = in__.scalar_constrain();
local_scalar_t__ gammaD1;
(void) gammaD1; // dummy to suppress unused var warning
if (jacobian__)
gammaD1 = in__.scalar_constrain(lp__);
else
gammaD1 = in__.scalar_constrain();
local_scalar_t__ alphaD2;
(void) alphaD2; // dummy to suppress unused var warning
if (jacobian__)
alphaD2 = in__.scalar_constrain(lp__);
else
alphaD2 = in__.scalar_constrain();
local_scalar_t__ gammaD2;
(void) gammaD2; // dummy to suppress unused var warning
if (jacobian__)
gammaD2 = in__.scalar_constrain(lp__);
else
gammaD2 = in__.scalar_constrain();
// transformed parameters
current_statement_begin__ = 56;
validate_non_negative_index("Mu", "2", 2);
validate_non_negative_index("Mu", "N", N);
vector<Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> > Mu(N, (Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> (static_cast<Eigen::VectorXd::Index>(2))));
stan::math::initialize(Mu, DUMMY_VAR__);
stan::math::fill(Mu,DUMMY_VAR__);
current_statement_begin__ = 57;
validate_non_negative_index("Sigma", "2", 2);
Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,Eigen::Dynamic> Sigma(static_cast<Eigen::VectorXd::Index>(2),static_cast<Eigen::VectorXd::Index>(2));
(void) Sigma; // dummy to suppress unused var warning
stan::math::initialize(Sigma, DUMMY_VAR__);
stan::math::fill(Sigma,DUMMY_VAR__);
current_statement_begin__ = 58;
validate_non_negative_index("ProbD", "2", 2);
validate_non_negative_index("ProbD", "N", N);
vector<Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> > ProbD(N, (Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> (static_cast<Eigen::VectorXd::Index>(2))));
stan::math::initialize(ProbD, DUMMY_VAR__);
stan::math::fill(ProbD,DUMMY_VAR__);
current_statement_begin__ = 60;
for (int i = 1; i <= N; ++i) {
current_statement_begin__ = 61;
stan::model::assign(Mu,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(1), stan::model::nil_index_list())),
(alpha + (gamma * get_base1(z0,i,"z0",1))),
"assigning variable Mu");
current_statement_begin__ = 62;
stan::model::assign(Mu,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())),
(beta + (gamma * get_base1(z0,i,"z0",1))),
"assigning variable Mu");
current_statement_begin__ = 63;
stan::model::assign(ProbD,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(1), stan::model::nil_index_list())),
inv_logit((alphaD1 + (gammaD1 * get_base1(z0,i,"z0",1)))),
"assigning variable ProbD");
current_statement_begin__ = 64;
stan::model::assign(ProbD,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())),
inv_logit((alphaD2 + (gammaD2 * get_base1(z1,i,"z1",1)))),
"assigning variable ProbD");
}
current_statement_begin__ = 67;
stan::math::assign(Sigma, quad_form_diag(Omega,sigma));
// validate transformed parameters
for (int i0__ = 0; i0__ < N; ++i0__) {
for (int i1__ = 0; i1__ < 2; ++i1__) {
if (stan::math::is_uninitialized(Mu[i0__](i1__))) {
std::stringstream msg__;
msg__ << "Undefined transformed parameter: Mu" << '[' << i0__ << ']' << '[' << i1__ << ']';
throw std::runtime_error(msg__.str());
}
}
}
for (int i0__ = 0; i0__ < 2; ++i0__) {
for (int i1__ = 0; i1__ < 2; ++i1__) {
if (stan::math::is_uninitialized(Sigma(i0__,i1__))) {
std::stringstream msg__;
msg__ << "Undefined transformed parameter: Sigma" << '[' << i0__ << ']' << '[' << i1__ << ']';
throw std::runtime_error(msg__.str());
}
}
}
for (int i0__ = 0; i0__ < N; ++i0__) {
for (int i1__ = 0; i1__ < 2; ++i1__) {
if (stan::math::is_uninitialized(ProbD[i0__](i1__))) {
std::stringstream msg__;
msg__ << "Undefined transformed parameter: ProbD" << '[' << i0__ << ']' << '[' << i1__ << ']';
throw std::runtime_error(msg__.str());
}
}
}
const char* function__ = "validate transformed params";
(void) function__; // dummy to suppress unused var warning
current_statement_begin__ = 56;
current_statement_begin__ = 57;
stan::math::check_cov_matrix(function__,"Sigma",Sigma);
current_statement_begin__ = 58;
// model body
{
current_statement_begin__ = 72;
validate_non_negative_index("d", "N", N);
Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> d(static_cast<Eigen::VectorXd::Index>(N));
(void) d; // dummy to suppress unused var warning
stan::math::initialize(d, DUMMY_VAR__);
stan::math::fill(d,DUMMY_VAR__);
current_statement_begin__ = 75;
lp_accum__.add(normal_log<propto__>(alpha, alpha_mean, alpha_sd));
current_statement_begin__ = 76;
lp_accum__.add(normal_log<propto__>(beta, beta_mean, beta_sd));
current_statement_begin__ = 77;
lp_accum__.add(normal_log<propto__>(gamma, gamma_mean, gamma_sd));
current_statement_begin__ = 81;
lp_accum__.add(normal_log<propto__>(sigma, sigma_mean, sigma_sd));
current_statement_begin__ = 84;
lp_accum__.add(lkj_corr_log<propto__>(Omega, omega_lkj_eta));
current_statement_begin__ = 87;
lp_accum__.add(normal_log<propto__>(alphaD1, alpha_d1_mean, alpha_d1_sd));
current_statement_begin__ = 88;
lp_accum__.add(normal_log<propto__>(gammaD1, gamma_d1_mean, gamma_d1_sd));
current_statement_begin__ = 89;
lp_accum__.add(normal_log<propto__>(alphaD2, alpha_d2_mean, alpha_d2_sd));
current_statement_begin__ = 90;
lp_accum__.add(normal_log<propto__>(gammaD2, gamma_d2_mean, gamma_d2_sd));
current_statement_begin__ = 93;
lp_accum__.add(multi_normal_log<propto__>(y, Mu, Sigma));
current_statement_begin__ = 96;
stan::math::assign(d, rep_vector(0,N));
current_statement_begin__ = 97;
for (int i = 1; i <= N; ++i) {
current_statement_begin__ = 98;
lp_accum__.add(bernoulli_log<propto__>(get_base1(d1,i,"d1",1), get_base1(get_base1(ProbD,i,"ProbD",1),1,"ProbD",2)));
current_statement_begin__ = 99;
if (as_bool(logical_eq(get_base1(d1,i,"d1",1),1))) {
current_statement_begin__ = 99;
stan::model::assign(d,
stan::model::cons_list(stan::model::index_uni(i), stan::model::nil_index_list()),
1,
"assigning variable d");
}
current_statement_begin__ = 100;
if (as_bool(logical_eq(get_base1(d,i,"d",1),0))) {
current_statement_begin__ = 100;
lp_accum__.add(bernoulli_log<propto__>(get_base1(d2,i,"d2",1), get_base1(get_base1(ProbD,i,"ProbD",1),2,"ProbD",2)));
}
}
}
} catch (const std::exception& e) {
stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
// Next line prevents compiler griping about no return
throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
}
lp_accum__.add(lp__);
return lp_accum__.sum();
} // log_prob()
template <bool propto, bool jacobian, typename T_>
T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
std::ostream* pstream = 0) const {
std::vector<T_> vec_params_r;
vec_params_r.reserve(params_r.size());
for (int i = 0; i < params_r.size(); ++i)
vec_params_r.push_back(params_r(i));
std::vector<int> vec_params_i;
return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
}
void get_param_names(std::vector<std::string>& names__) const {
names__.resize(0);
names__.push_back("alpha");
names__.push_back("beta");
names__.push_back("gamma");
names__.push_back("Omega");
names__.push_back("sigma");
names__.push_back("alphaD1");
names__.push_back("gammaD1");
names__.push_back("alphaD2");
names__.push_back("gammaD2");
names__.push_back("Mu");
names__.push_back("Sigma");
names__.push_back("ProbD");
}
void get_dims(std::vector<std::vector<size_t> >& dimss__) const {
dimss__.resize(0);
std::vector<size_t> dims__;
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dims__.push_back(2);
dims__.push_back(2);
dimss__.push_back(dims__);
dims__.resize(0);
dims__.push_back(2);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dimss__.push_back(dims__);
dims__.resize(0);
dims__.push_back(N);
dims__.push_back(2);
dimss__.push_back(dims__);
dims__.resize(0);
dims__.push_back(2);
dims__.push_back(2);
dimss__.push_back(dims__);
dims__.resize(0);
dims__.push_back(N);
dims__.push_back(2);
dimss__.push_back(dims__);
}
template <typename RNG>
void write_array(RNG& base_rng__,
std::vector<double>& params_r__,
std::vector<int>& params_i__,
std::vector<double>& vars__,
bool include_tparams__ = true,
bool include_gqs__ = true,
std::ostream* pstream__ = 0) const {
typedef double local_scalar_t__;
vars__.resize(0);
stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
static const char* function__ = "model_AugBin2T1A_namespace::write_array";
(void) function__; // dummy to suppress unused var warning
// read-transform, write parameters
double alpha = in__.scalar_constrain();
double beta = in__.scalar_constrain();
double gamma = in__.scalar_constrain();
matrix_d Omega = in__.corr_matrix_constrain(2);
vector_d sigma = in__.vector_lb_constrain(0,2);
double alphaD1 = in__.scalar_constrain();
double gammaD1 = in__.scalar_constrain();
double alphaD2 = in__.scalar_constrain();
double gammaD2 = in__.scalar_constrain();
vars__.push_back(alpha);
vars__.push_back(beta);
vars__.push_back(gamma);
for (int k_1__ = 0; k_1__ < 2; ++k_1__) {
for (int k_0__ = 0; k_0__ < 2; ++k_0__) {
vars__.push_back(Omega(k_0__, k_1__));
}
}
for (int k_0__ = 0; k_0__ < 2; ++k_0__) {
vars__.push_back(sigma[k_0__]);
}
vars__.push_back(alphaD1);
vars__.push_back(gammaD1);
vars__.push_back(alphaD2);
vars__.push_back(gammaD2);
// declare and define transformed parameters
double lp__ = 0.0;
(void) lp__; // dummy to suppress unused var warning
stan::math::accumulator<double> lp_accum__;
local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
(void) DUMMY_VAR__; // suppress unused var warning
try {
current_statement_begin__ = 56;
validate_non_negative_index("Mu", "2", 2);
validate_non_negative_index("Mu", "N", N);
vector<Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> > Mu(N, (Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> (static_cast<Eigen::VectorXd::Index>(2))));
stan::math::initialize(Mu, DUMMY_VAR__);
stan::math::fill(Mu,DUMMY_VAR__);
current_statement_begin__ = 57;
validate_non_negative_index("Sigma", "2", 2);
Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,Eigen::Dynamic> Sigma(static_cast<Eigen::VectorXd::Index>(2),static_cast<Eigen::VectorXd::Index>(2));
(void) Sigma; // dummy to suppress unused var warning
stan::math::initialize(Sigma, DUMMY_VAR__);
stan::math::fill(Sigma,DUMMY_VAR__);
current_statement_begin__ = 58;
validate_non_negative_index("ProbD", "2", 2);
validate_non_negative_index("ProbD", "N", N);
vector<Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> > ProbD(N, (Eigen::Matrix<local_scalar_t__,Eigen::Dynamic,1> (static_cast<Eigen::VectorXd::Index>(2))));
stan::math::initialize(ProbD, DUMMY_VAR__);
stan::math::fill(ProbD,DUMMY_VAR__);
current_statement_begin__ = 60;
for (int i = 1; i <= N; ++i) {
current_statement_begin__ = 61;
stan::model::assign(Mu,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(1), stan::model::nil_index_list())),
(alpha + (gamma * get_base1(z0,i,"z0",1))),
"assigning variable Mu");
current_statement_begin__ = 62;
stan::model::assign(Mu,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())),
(beta + (gamma * get_base1(z0,i,"z0",1))),
"assigning variable Mu");
current_statement_begin__ = 63;
stan::model::assign(ProbD,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(1), stan::model::nil_index_list())),
inv_logit((alphaD1 + (gammaD1 * get_base1(z0,i,"z0",1)))),
"assigning variable ProbD");
current_statement_begin__ = 64;
stan::model::assign(ProbD,
stan::model::cons_list(stan::model::index_uni(i), stan::model::cons_list(stan::model::index_uni(2), stan::model::nil_index_list())),
inv_logit((alphaD2 + (gammaD2 * get_base1(z1,i,"z1",1)))),
"assigning variable ProbD");
}
current_statement_begin__ = 67;
stan::math::assign(Sigma, quad_form_diag(Omega,sigma));
// validate transformed parameters
current_statement_begin__ = 56;
current_statement_begin__ = 57;
stan::math::check_cov_matrix(function__,"Sigma",Sigma);
current_statement_begin__ = 58;
// write transformed parameters
if (include_tparams__) {
for (int k_1__ = 0; k_1__ < 2; ++k_1__) {
for (int k_0__ = 0; k_0__ < N; ++k_0__) {
vars__.push_back(Mu[k_0__][k_1__]);
}
}
for (int k_1__ = 0; k_1__ < 2; ++k_1__) {
for (int k_0__ = 0; k_0__ < 2; ++k_0__) {
vars__.push_back(Sigma(k_0__, k_1__));
}
}
for (int k_1__ = 0; k_1__ < 2; ++k_1__) {
for (int k_0__ = 0; k_0__ < N; ++k_0__) {
vars__.push_back(ProbD[k_0__][k_1__]);
}
}
}
if (!include_gqs__) return;
// declare and define generated quantities
// validate generated quantities
// write generated quantities
} catch (const std::exception& e) {
stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
// Next line prevents compiler griping about no return
throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
}
}
template <typename RNG>
void write_array(RNG& base_rng,
Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
Eigen::Matrix<double,Eigen::Dynamic,1>& vars,
bool include_tparams = true,
bool include_gqs = true,
std::ostream* pstream = 0) const {
std::vector<double> params_r_vec(params_r.size());
for (int i = 0; i < params_r.size(); ++i)
params_r_vec[i] = params_r(i);
std::vector<double> vars_vec;
std::vector<int> params_i_vec;
write_array(base_rng,params_r_vec,params_i_vec,vars_vec,include_tparams,include_gqs,pstream);
vars.resize(vars_vec.size());
for (int i = 0; i < vars.size(); ++i)
vars(i) = vars_vec[i];
}
static std::string model_name() {
return "model_AugBin2T1A";
}
void constrained_param_names(std::vector<std::string>& param_names__,
bool include_tparams__ = true,
bool include_gqs__ = true) const {
std::stringstream param_name_stream__;
param_name_stream__.str(std::string());
param_name_stream__ << "alpha";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "beta";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gamma";
param_names__.push_back(param_name_stream__.str());
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= 2; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Omega" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
for (int k_0__ = 1; k_0__ <= 2; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "sigma" << '.' << k_0__;
param_names__.push_back(param_name_stream__.str());
}
param_name_stream__.str(std::string());
param_name_stream__ << "alphaD1";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gammaD1";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "alphaD2";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gammaD2";
param_names__.push_back(param_name_stream__.str());
if (!include_gqs__ && !include_tparams__) return;
if (include_tparams__) {
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= N; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Mu" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= 2; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Sigma" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= N; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "ProbD" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
}
if (!include_gqs__) return;
}
void unconstrained_param_names(std::vector<std::string>& param_names__,
bool include_tparams__ = true,
bool include_gqs__ = true) const {
std::stringstream param_name_stream__;
param_name_stream__.str(std::string());
param_name_stream__ << "alpha";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "beta";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gamma";
param_names__.push_back(param_name_stream__.str());
for (int k_0__ = 1; k_0__ <= ((2 * (2 - 1)) / 2); ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Omega" << '.' << k_0__;
param_names__.push_back(param_name_stream__.str());
}
for (int k_0__ = 1; k_0__ <= 2; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "sigma" << '.' << k_0__;
param_names__.push_back(param_name_stream__.str());
}
param_name_stream__.str(std::string());
param_name_stream__ << "alphaD1";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gammaD1";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "alphaD2";
param_names__.push_back(param_name_stream__.str());
param_name_stream__.str(std::string());
param_name_stream__ << "gammaD2";
param_names__.push_back(param_name_stream__.str());
if (!include_gqs__ && !include_tparams__) return;
if (include_tparams__) {
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= N; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Mu" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
for (int k_0__ = 1; k_0__ <= (2 + ((2 * (2 - 1)) / 2)); ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "Sigma" << '.' << k_0__;
param_names__.push_back(param_name_stream__.str());
}
for (int k_1__ = 1; k_1__ <= 2; ++k_1__) {
for (int k_0__ = 1; k_0__ <= N; ++k_0__) {
param_name_stream__.str(std::string());
param_name_stream__ << "ProbD" << '.' << k_0__ << '.' << k_1__;
param_names__.push_back(param_name_stream__.str());
}
}
}
if (!include_gqs__) return;
}
}; // model
}
typedef model_AugBin2T1A_namespace::model_AugBin2T1A stan_model;
#endif
| [
"kristian.brock@gmail.com"
] | kristian.brock@gmail.com |
528710aec7b101e17daa85088ea4027250982a0e | 76261a91107cdacb6046c1fdc106ffcb4368ad92 | /DragonBones/DragonBonesExample/DragonBones/objects/SkeletonData.h | 581763e1d4b9245fdddf7a662d5a79cffdabd421 | [] | no_license | KingNormac/CPlusPlus-Opengl-Dragonbones | f33c903682efd43497bca78c1548f4baa19f4534 | 305a11d68143ac9d15ddd9a0c767a3b00439e120 | refs/heads/master | 2020-04-10T07:56:08.589533 | 2013-08-10T18:39:53 | 2013-08-10T18:39:53 | 12,017,983 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 911 | h | #ifndef SKELETONDATA_H
#define SKELETONDATA_H
#include "ArmatureData.h"
#include <string>
#include <vector>
#include <map>
#include "../as3/Vector2D.h"
namespace DragonBones {
class SkeletonData {
private:
std::map<std::string, Vector2D*> _subTexturePivots;
std::vector<ArmatureData*> _armatureDataList;
public:
std::string name;
std::vector<std::string> getArmatureNames();
std::vector<ArmatureData*> getArmatureDataList();
SkeletonData();
~SkeletonData();
ArmatureData* getArmatureData(std::string armatureName);
void addArmatureData(ArmatureData* armatureData);
void removeArmatureData(ArmatureData* armatureData);
void removeArmatureDataByName(std::string armatureName);
Vector2D* getSubTexturePivot(std::string subTextureName);
Vector2D* addSubTexturePivot(float x, float y, std::string name);
void removeSubTexturePivot(std::string subTextureName);
};
};
#endif | [
"thedreamteamorganization@gmail.com"
] | thedreamteamorganization@gmail.com |
771a47c8ac7af2eb4ca5b159995adda7c8a43ef5 | f556d0c63551f3e3cd138f01b081dfd299c57225 | /IPlugExamples/filtertest/LinkwitzRiley.h | 051cb084457aa650a63cd5098524ad907fafa8c9 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | michaeldonovan/wdl-md | 78e0a2f59b32e8b0d7547bec7ca5815e5893a16c | 2148c1ef7a327dabcf9c6281c3bb425e0e064503 | refs/heads/master | 2021-01-15T16:14:47.438742 | 2016-04-20T00:01:00 | 2016-04-20T00:01:00 | 49,093,121 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,334 | h | //
// LinkwitzRiley.h
// MultibandDistortion
//
// Created by Michael on 3/9/16.
// Original from T. Lossius - ttblue project
//
#ifndef LinkwitzRiley_h
#define LinkwitzRiley_h
enum FilterType {
Lowpass = 0,
Highpass,
};
class LinkwitzRiley{
public:
LinkwitzRiley(float sampleRate, const int& type, double cutoffFreq){
sr = sampleRate;
filterType = type;
fc = cutoffFreq;
for (int i=0; i<4; i++) {
buffX[i]=0;
buffY[i]=0;
}
calcFilter();
};
// Process sample of audio
double process(double sample){
double tempx = sample;
double tempy = a0*tempx+a1*buffX[0]+a2*buffX[1]+a3*buffX[2]+a4*buffX[3]-b1*buffY[0]-b2*buffY[1]-b3*buffY[2]-b4*buffY[3];
buffX[3]=buffX[2];
buffX[2]=buffX[1];
buffX[1]=buffX[0];
buffX[0]=tempx;
buffY[3]=buffY[2];
buffY[2]=buffY[1];
buffY[1]=buffY[0];
buffY[0]=tempy;
return tempy;
}
// Set cutoff frequency (Hz)
void setCutoff(double freq){
fc = freq;
calcFilter();
}
private:
void calcFilter(){
double wc, wc2, wc3, wc4, k, k2, k3, k4, sqrt2, sq_tmp1, sq_tmp2, a_tmp;
wc=2*pi*fc;
wc2=wc*wc;
wc3=wc2*wc;
wc4=wc2*wc2;
k=wc/tan(pi*fc/sr);
k2=k*k;
k3=k2*k;
k4=k2*k2;
sqrt2=sqrt(2);
sq_tmp1=sqrt2*wc3*k;
sq_tmp2=sqrt2*wc*k3;
a_tmp=4*wc2*k2+2*sq_tmp1+k4+2*sq_tmp2+wc4;
b1=(4*(wc4+sq_tmp1-k4-sq_tmp2))/a_tmp;
b2=(6*wc4-8*wc2*k2+6*k4)/a_tmp;
b3=(4*(wc4-sq_tmp1+sq_tmp2-k4))/a_tmp;
b4=(k4-2*sq_tmp1+wc4-2*sq_tmp2+4*wc2*k2)/a_tmp;
if (filterType==Lowpass) {
a0=wc4/a_tmp;
a1=4*wc4/a_tmp;
a2=6*wc4/a_tmp;
a3=a1;
a4=a0;
}
else{
a0=k4/a_tmp;
a1=-4*k4/a_tmp;
a2=6*k4/a_tmp;
a3=a1;
a4=a0;
}
};
// Params
int filterType;
double fc;
double sr;
// Coefficients
double a0, a1, a2, a3, a4, b1, b2, b3, b4;
// Buffer
double buffX[4];
double buffY[4];
};
#endif /* LinkwitzRiley_h */
| [
"michael.donovan.audio@gmail.com"
] | michael.donovan.audio@gmail.com |
e88cd7ba1e58d352671df76c981e28ee5ba175c3 | ea90486b2c0174818e02ef7ba17e2c67c2eaaa00 | /motion/controllers/sweetie_bot_controller_cartesian/src/cartesian_trajectory_cache.hpp | 58863e66aecaa6dab57f4f4e8a36145b4db331d5 | [] | no_license | sweetie-bot-project/sweetie_bot_rt_control | f760df3e991c10cbeacb7f656e8825cf381a6fcc | ee523681773327ab7b1328e646779e828473e919 | refs/heads/master | 2021-06-14T19:48:26.210352 | 2020-01-04T16:47:09 | 2020-01-04T16:47:09 | 190,021,034 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,158 | hpp | #ifndef JOINT_TRAJECTORY_CACHE_HPP
#define JOINT_TRAJECTORY_CACHE_HPP
#include <sensor_msgs/typekit/JointState.h>
#include <sweetie_bot_kinematics_msgs/typekit/SupportState.h>
#include <sweetie_bot_kinematics_msgs/typekit/RigidBodyState.h>
#include <sweetie_bot_control_msgs/typekit/FollowStepSequenceAction.h>
namespace sweetie_bot {
namespace motion {
class RobotModel;
namespace controller {
/**
* @brief CartesianRobotState cache.
* Store supplied messages "as is" using shared pointer. Object includes time marker.
*
* TODO In future versions should also support:
* * messages appending
* * hermite interpolation if period does not match
* * restore velocity by spline
*
* TODO base link processing, cahin index access, limb name vector bufferizaion
**/
class CartesianTrajectoryCache
{
public:
typedef sweetie_bot_kinematics_msgs::RigidBodyState RigidBodyState;
typedef sweetie_bot_control_msgs::FollowStepSequenceGoal FollowStepSequenceGoal;
typedef sweetie_bot_kinematics_msgs::SupportState SupportState;
typedef boost::shared_ptr<const FollowStepSequenceGoal> FollowStepSequenceGoal_const_shared_ptr;
typedef std::list<FollowStepSequenceGoal_const_shared_ptr> StepSequenceList;
protected:
StepSequenceList step_sequence_list; /**< Contains trajectory chunks. */
int time_step; /**< Contains number of point in step_sequence_list.front(). Always valid. */
std::vector<int> limb_index_fullpose; /**< index of coresponding chain in fullpose */
std::vector<std::string> contact_name; /**< buffers default contact names from robot model */
public:
/**
* @brief Create new trajectory from sweetie_bot_control_msgs::FollowStepSequenceGoal message.
* Check message consistency and throw std::invalid_argument if check failed.
* @param trajectory Pointer to goal message. Shared pointer is used to minimize number of copy operations.
* @param robot_model Pointer to RobotModel.
* @param period Discretizaion period of trajectory.
**/
CartesianTrajectoryCache(FollowStepSequenceGoal_const_shared_ptr trajectory, RobotModel * robot_model, double period);
/**
* @brief Move time marker one period in future.
* Move time marker one period ahead.
* @return false if trajectory is finished
**/
bool step();
/**
* @brief Prepare message buffers.
* Set names, resize arrays.
* @param limbs Buffer to be prepared.
**/
void prepareEndEffectorStateBuffer(RigidBodyState& limbs) const;
/**
* @brief Return lists of required kinematics chains (according to RobotModel).
* @return List of kinematics chains.
**/
std::vector<std::string> getRequiredChains() const;
/**
* @brief Return lists of required kinematics chains (according to RobotModel).
* @return List of kinematics chains.
**/
double getTime() const {
return step_sequence_list.front()->time_from_start[time_step];
}
/**
* @brief Copy desired base state in buffer of proper size.
* Method does not check buffer size.
* @param base RigidBodyState buffer receiving new base. It size must be at least one.
* @return true if trajectory contains information about base position, false is returned otherwise.
**/
bool getBaseState(RigidBodyState& base) const;
/**
* @brief Copy desired end effector locations in buffer of proper size.
* Method does not check buffer size.
* @param limbs RigidBodyState buffer receiving new state represented in base link frame.
**/
void getEndEffectorState(RigidBodyState& limbs) const;
/*
* @brief Simplifies check of start conditions: check path tolerance at current time.
* @param joints_real_sorted Full pose in joint space sorted according to RobotModel.
* @return index of kinematic chain which violates tolerance, -1 otherwise
**/
int checkPathToleranceFullpose(const RigidBodyState& limbs_real_sorted) const;
/*
* @brief Check if given pose is within defined path tolerance.
* Check path_tolerance. Both poses must have the same layout as trajectory.
* @return index of kinematic chain which violates tolerance, -1 otherwise
**/
int checkPathTolerance(const RigidBodyState& joints_real, const RigidBodyState& joints_desired) const;
/*
* @brief Select kinematic chains from full robot pose.
* Method does not perform size checks and does not set kinematic chains' names. Use @c prepareEndEffectorStateBuffer() to prepare it.
* @param in_sorted Full pose sorted according to RobotModel.
* @param out Selected kinematic chains.
**/
void selectEndEffector(const RigidBodyState& in_sorted, RigidBodyState& out) const;
/**
* @brief Prepare SupportState message.
* Resize arrays, set names.
* @param support message buffer,
**/
void prepareSupportStateBuffer(SupportState& support) const;
/**
* @brief Get supports' state to buffer of proper size.
* Method does not check message
* @param supports Support state buffer receiving new state
**/
void getSupportState(SupportState& support) const;
};
} // namespace controller
} // namespace motion
} // namespace sweetie_bot
#endif /*JOINT_TRAJECTORY_CACHE_HPP*/
| [
"goncharovoi@yandex.ru"
] | goncharovoi@yandex.ru |
da1ecd209804e24782dd737c679f4adfc8f4f979 | 7d3ab1dd6e193bfba3eb23ac26159b7b1d5a95b8 | /sources/srm_c_cpp_sdk_4.1/src/include/Planetodetic.h | 81115aa272d25891c71712038544c1ed43f784d2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Geo4Win/sedris | 2aef810d56aff38bbd68835bc13e16b6392ed909 | f35768630212b22a5c2912fe2beb640c0511faa7 | refs/heads/master | 2021-07-07T10:40:40.583077 | 2017-10-03T19:14:13 | 2017-10-03T19:14:13 | 105,591,021 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,305 | h | /** @file Planetodetic.h
@author David Shen
@brief Planetodetic SRF.
*/
// SRM SDK Release 4.1.4 - July 1, 2011
// - SRM spec. 4.1
/*
* NOTICE
*
* This software is provided openly and freely for use in representing and
* interchanging environmental data & databases.
*
* This software was developed for use by the United States Government with
* unlimited rights. The software was developed under contract
* DASG60-02-D-0006 TO-193 by Science Applications International Corporation.
* The software is unclassified and is deemed as Distribution A, approved
* for Public Release.
*
* Use by others is permitted only upon the ACCEPTANCE OF THE TERMS AND
* CONDITIONS, AS STIPULATED UNDER THE FOLLOWING PROVISIONS:
*
* 1. Recipient may make unlimited copies of this software and give
* copies to other persons or entities as long as the copies contain
* this NOTICE, and as long as the same copyright notices that
* appear on, or in, this software remain.
*
* 2. Trademarks. All trademarks belong to their respective trademark
* holders. Third-Party applications/software/information are
* copyrighted by their respective owners.
*
* 3. Recipient agrees to forfeit all intellectual property and
* ownership rights for any version created from the modification
* or adaptation of this software, including versions created from
* the translation and/or reverse engineering of the software design.
*
* 4. Transfer. Recipient may not sell, rent, lease, or sublicense
* this software. Recipient may, however enable another person
* or entity the rights to use this software, provided that this
* AGREEMENT and NOTICE is furnished along with the software and
* /or software system utilizing this software.
*
* All revisions, modifications, created by the Recipient, to this
* software and/or related technical data shall be forwarded by the
* Recipient to the Government at the following address:
*
* SMDC
* Attention SEDRIS (TO193) TPOC
* P.O. Box 1500
* Huntsville, AL 35807-3801
*
* or via electronic mail to: se-mgmt@sedris.org
*
* 5. No Warranty. This software is being delivered to you AS IS
* and there is no warranty, EXPRESS or IMPLIED, as to its use
* or performance.
*
* The RECIPIENT ASSUMES ALL RISKS, KNOWN AND UNKNOWN, OF USING
* THIS SOFTWARE. The DEVELOPER EXPRESSLY DISCLAIMS, and the
* RECIPIENT WAIVES, ANY and ALL PERFORMANCE OR RESULTS YOU MAY
* OBTAIN BY USING THIS SOFTWARE OR DOCUMENTATION. THERE IS
* NO WARRANTY, EXPRESS OR, IMPLIED, AS TO NON-INFRINGEMENT OF
* THIRD PARTY RIGHTS, MERCHANTABILITY, OR FITNESS FOR ANY
* PARTICULAR PURPOSE. IN NO EVENT WILL THE DEVELOPER, THE
* UNITED STATES GOVERNMENT OR ANYONE ELSE ASSOCIATED WITH THE
* DEVELOPMENT OF THIS SOFTWARE BE HELD LIABLE FOR ANY CONSEQUENTIAL,
* INCIDENTAL OR SPECIAL DAMAGES, INCLUDING ANY LOST PROFITS
* OR LOST SAVINGS WHATSOEVER.
*/
// $Id: Planetodetic.h,v 1.6.1.4 2009-08-24 15:57:08-04 worleym Exp $
#ifndef _Planetodetic_h
#define _Planetodetic_h
#include "BaseSRF.h"
#include "Coord.h"
#include "Exception.h"
namespace srm
{
/** SRF_Planetodetic class declaration.
SRFs are allocated by the API, and when no longer needed they should be
released by calling the release() method.
@author David Shen
@see BaseSRF_WithEllipsoidalHeight
*/
class EXPORT_SRM_CPP_DLL SRF_Planetodetic: public BaseSRF_WithEllipsoidalHeight
{
public:
/** SRF_Planetodetic only constructor by ORM code
@exception This method throws srm::Exception
*/
static SRF_Planetodetic* create( SRM_ORM_Code orm,
SRM_RT_Code rt );
/** SRF_Planetodetic constructor by ORM parameters
@exception This method throws srm::Exception
*/
static SRF_Planetodetic* create( SRM_SRF_Parameters_Info srf_params )
{
return create( srf_params.value.srf_template.orm_code, srf_params.rt_code );
}
/** Returns a 3D coordinate object
*/
Coord3D* createCoordinate3D(SRM_Long_Float coord_comp1,
SRM_Long_Float coord_comp2,
SRM_Long_Float coord_comp3 );
/** Returns a surface coordinate object
*/
CoordSurf* createSurfaceCoordinate(SRM_Long_Float coord_surf_comp1,
SRM_Long_Float coord_surf_comp2 );
/** Returns true if this SRF is of the given class type
*/
virtual bool isA( SRF_ClassType type ) const;
/** Returns the class type of this SRF instance
*/
virtual SRF_ClassType getClassType() const
{
return BaseSRF::SRF_TYP_PD;
}
/** Returns true if the SRF parameters are equal
@note This method is deprecated. Use the equality operator instead.
*/
bool isEqual( const SRF_Planetodetic &srf ) const;
/** The equality operator
@note This operator returns true if the SRFs have identical parameter values.
*/
bool operator==( const SRF_Planetodetic &rhs ) const;
/** Returns a copy of this SRF object
@exception This method throws srm::Exception
*/
SRF_Planetodetic* makeCopy() const;
/** Returns char* of parameter names and their values
@exception This method throws srm::Exception
*/
const char* toString();
protected:
friend class BaseSRF;
SRF_Planetodetic( void *impl ) : BaseSRF_WithEllipsoidalHeight(impl) {} ///< No stack allocation
SRF_Planetodetic &operator =( const SRF_Planetodetic & ) { return *this; } ///< No copy constructor
virtual ~SRF_Planetodetic() {} ///< Use release()
};
inline bool SRF_Planetodetic::isA( SRF_ClassType type ) const
{
if (type == BaseSRF::SRF_TYP_PD)
return true;
else
return BaseSRF_WithEllipsoidalHeight::isA(type);
};
/// Shorthand version for SRF_Planetodetic
typedef SRF_Planetodetic SRF_PD;
/** A Coord3D for SRF_Planetodetic.
@author David Shen
@see SRF_Planetodetic
*/
class EXPORT_SRM_CPP_DLL Coord3D_Planetodetic: public Coord3D
{
public:
/** Constructor
*/
Coord3D_Planetodetic(SRF_Planetodetic *srf,
SRM_Long_Float longitude = 0.0,
SRM_Long_Float latitude = 0.0,
SRM_Long_Float ellipsoidal_height = 0.0 )
: Coord3D(srf)
{
setComponentValues(longitude, latitude, ellipsoidal_height);
}
/** Copy constructor
*/
Coord3D_Planetodetic( const Coord3D_Planetodetic &coord )
: Coord3D(coord._srf)
{
setComponentValues( coord._values[0], coord._values[1], coord._values[2] );
}
/** Copies component values to the coordinate
@note The coordinates must be associated with the same SRF instance.
@note This method is deprecated. Use the assignment operator.
@exception This method throws srm::Exception
*/
void copyTo( Coord3D_Planetodetic &coord ) const
{
if (coord._srf != _srf)
throw Exception( SRM_STATCOD_INVALID_SOURCE_COORDINATE, "copyTo: Coordinate associated with a difference SRF" );
coord._values[0] = _values[0];
coord._values[1] = _values[1];
coord._values[2] = _values[2];
}
/** Returns true if the coordinate component values are identical
@note This method is deprecated. Use the equality operator.
*/
bool isEqual( const Coord3D_Planetodetic &coord ) const
{
return (_srf == coord._srf &&
_values[0] == coord._values[0] &&
_values[1] == coord._values[1] &&
_values[2] == coord._values[2] );
}
/** Sets all coordinate component values
*/
void setComponentValues( SRM_Long_Float longitude, SRM_Long_Float latitude, SRM_Long_Float ellipsoidal_height )
{
_values[0] = longitude;
_values[1] = latitude;
_values[2] = ellipsoidal_height;
}
/** Returns the latitude value
*/
SRM_Long_Float get_latitude() const
{
return _values[1];
}
/** Returns the longitude value
*/
SRM_Long_Float get_longitude() const
{
return _values[0];
}
/** Returns the ellipsoidal_height value
*/
SRM_Long_Float get_ellipsoidal_height() const
{
return _values[2];
}
/** Sets the latitude value
*/
void set_latitude( SRM_Long_Float value )
{
_values[1] = value;
}
/** Sets the longitude value
*/
void set_longitude( SRM_Long_Float value )
{
_values[0] = value;
}
/** Sets the ellipsoidal_height value
*/
void set_ellipsoidal_height( SRM_Long_Float value )
{
_values[2] = value;
}
/** Returns true if this coordinate is of the given class type
*/
virtual bool isA( Coord_ClassType type ) const;
/** Returns true if this SRF is of the given class type
*/
virtual Coord_ClassType getClassType() const
{
return Coord::COORD_TYP_PD;
}
/** The equality operator
*/
bool operator==( const Coord3D_Planetodetic &rhs ) const;
/** Returns true if the coordinates are associated with SRFs with identical parameters.
@note This method should be used to evaluate coordinate compatibility before
calling the coordinate assignment operator to avoid raising runtime exception
when operating on incompatible coordinates.
*/
bool isCompatibleWith( const Coord3D_Planetodetic &rhs ) const {
return ((*(SRF_Planetodetic*)(this->_srf)) == (*(SRF_Planetodetic*)(rhs._srf)));
}
/** The assignment operator
@note This operator will check whether the coordinates are compatible.
@exception This method throws srm::Exception
*/
Coord3D_Planetodetic &operator= ( const Coord3D_Planetodetic &rhs )
{
if((*(SRF_Planetodetic*)(this->_srf)) == (*(SRF_Planetodetic*)(rhs._srf)))
{
_values[0] = rhs._values[0];
_values[1] = rhs._values[1];
_values[2] = rhs._values[2];
}
else
throw Exception(SRM_STATCOD_INVALID_TARGET_COORDINATE,
"Coord3D_Planetodetic op=: incompatible rhs coordinate");
return *this;
}
};
inline bool Coord3D_Planetodetic::isA( Coord_ClassType type ) const
{
if (type == Coord::COORD_TYP_PD)
return true;
else
return Coord3D::isA(type);
};
/// Shorthand version for Coord3D_Planetodetic
typedef Coord3D_Planetodetic Coord3D_PD;
/** A CoordSurf for SRF_Planetodetic.
@author David Shen
@see SRF_Planetodetic
*/
class EXPORT_SRM_CPP_DLL CoordSurf_Planetodetic: public CoordSurf
{
public:
/** Constructor
*/
CoordSurf_Planetodetic(SRF_Planetodetic *srf,
SRM_Long_Float longitude = 0.0,
SRM_Long_Float latitude = 0.0 )
: CoordSurf(srf)
{
setComponentValues(longitude, latitude);
}
/** Copy constructor
*/
CoordSurf_Planetodetic( const CoordSurf_Planetodetic &coord )
: CoordSurf(coord._srf)
{
setComponentValues( coord._values[0], coord._values[1] );
}
/** Copies component values to the coordinate
@note The coordinates must be associated with the same SRF instance.
@note This method is deprecated. Use the assignment operator.
@exception This method throws srm::Exception
*/
void copyTo( CoordSurf_Planetodetic &coord ) const
{
if (coord._srf != _srf)
throw Exception( SRM_STATCOD_INVALID_SOURCE_COORDINATE, "copyTo: Coordinate associated with a difference SRF" );
coord._values[0] = _values[0];
coord._values[1] = _values[1];
}
/** Returns true if the coordinate component values are identical
@note This method is deprecated. Use the equality operator.
*/
bool isEqual( const CoordSurf_Planetodetic &coord ) const
{
return (_srf == coord._srf &&
_values[0] == coord._values[0] &&
_values[1] == coord._values[1] );
}
/** Sets all coordinate component values
*/
void setComponentValues( SRM_Long_Float longitude, SRM_Long_Float latitude )
{
_values[0] = longitude;
_values[1] = latitude;
}
/** Returns the latitude value
*/
SRM_Long_Float get_latitude() const
{
return _values[1];
}
/** Returns the longitude value
*/
SRM_Long_Float get_longitude() const
{
return _values[0];
}
/** Sets the latitude value
*/
void set_latitude( SRM_Long_Float value )
{
_values[1] = value;
}
/** Sets the longitude value
*/
void set_longitude( SRM_Long_Float value )
{
_values[0] = value;
}
/** Returns true if this coordinate is of the given class type
*/
virtual bool isA( Coord_ClassType type ) const;
/** Returns true if this SRF is of the given class type
*/
virtual Coord_ClassType getClassType() const
{
return Coord::COORD_TYP_SURF_PD;
}
/** The equality operator
*/
bool operator==( const CoordSurf_Planetodetic &rhs ) const;
/** Returns true if the coordinates are associated with SRFs with identical parameters.
@note This method should be used to evaluate coordinate compatibility before
calling the coordinate assignment operator to avoid raising runtime exception
when operating on incompatible coordinates.
*/
bool isCompatibleWith( const CoordSurf_Planetodetic &rhs ) const
{
return ((*(SRF_Planetodetic*)(this->_srf)) == (*(SRF_Planetodetic*)(rhs._srf)));
}
/** The assignment operator
@note This operator will check whether the coordinates are compatible.
@exception This method throws srm::Exception
*/
CoordSurf_Planetodetic &operator= ( const CoordSurf_Planetodetic &rhs )
{
if((*(SRF_Planetodetic*)(this->_srf)) == (*(SRF_Planetodetic*)(rhs._srf)))
{
_values[0] = rhs._values[0];
_values[1] = rhs._values[1];
}
else
throw Exception(SRM_STATCOD_INVALID_TARGET_COORDINATE,
"CoordSurf_Planetodetic op=: incompatible rhs coordinate");
return *this;
}
};
inline bool CoordSurf_Planetodetic::isA( Coord_ClassType type ) const
{
if (type == Coord::COORD_TYP_SURF_PD)
return true;
else
return CoordSurf::isA(type);
};
/// Shorthand version for CoordSurf_Planetodetic
typedef CoordSurf_Planetodetic CoordSurf_PD;
} // namespace srm
#endif // _Planetodetic_h
| [
"sysbender@gmail.com"
] | sysbender@gmail.com |
7c2a4cae19275d82c6dc3dcce1844cc9f826cc84 | 723638405a3a0fa9bf4fcef914420c58f3daeb2d | /src/object/object_engine.h | dc901660735357023494ddf664ec77e898c4d468 | [
"MIT"
] | permissive | xuguozhi/mnn_example | c02b6a522236c8eec69b4fbf70b3f5519aa6a583 | 324f5ebc15c677270a614766dd9bb891b76c9505 | refs/heads/master | 2021-05-20T21:05:31.931058 | 2020-04-09T15:32:36 | 2020-04-09T15:32:36 | 252,416,589 | 0 | 1 | MIT | 2020-04-02T09:52:44 | 2020-04-02T09:52:44 | null | UTF-8 | C++ | false | false | 424 | h | #ifndef _OBJECTER_H_
#define _OBJECTER_H_
#include "../../common/common.h"
#include "./mobilenetssd/mobilenetssd.h"
namespace mirror {
class ObjectEngine {
public:
ObjectEngine();
~ObjectEngine();
int Init(const char* root_path);
int DetectObject(const cv::Mat& img_src, std::vector<ObjectInfo>* objects);
private:
bool initialized_;
MobilenetSSD* mobilenetssd_;
};
}
#endif // !_OBJECTER_H_
| [
"15671640320@163.com"
] | 15671640320@163.com |
6ed2c424cfc6178e2835bcc4412dd6ac48595b5e | 4cb0e906aefbfcbf7ab492551f90cae089fcdac5 | /Assignment 2/deleteMiddle.cpp | cb553e1e7189eaa1ee9dd2fe95f75bd6ca87e3af | [] | no_license | bhumesh1505/IOOM | a021af284ebd78a8e6cb50d400c35b4b9211a4d3 | 01dc10857ea7410c6ab6bbad0ca0d0726c96f6b8 | refs/heads/master | 2020-03-29T19:42:08.895324 | 2018-11-17T06:32:14 | 2018-11-17T06:32:14 | 150,276,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | #include "item.h"
#include "Stack.h"
void Stack::deleteMiddle()
{
try
{
if(!isEmpty())
{
Stack temp(MAX_SIZE);
item x;
int siz = Size / 2;
for(int i = 0 ; i < siz ; i++)
{
x = pop();
temp.push( x.getId() , x.getQuantity() , x.getLabel() );
}
pop();
for(int i = 0 ; i < siz ; i++)
{
x = temp.pop();
push( x.getId() , x.getQuantity() , x.getLabel() );
}
cout << "deleted successfully" << endl;
}
else
{
cout << "Stack already Empty" << endl;
}
}
catch(exception e)
{
cout << e.what() << endl;
}
}
| [
"bhumesh1505@gmail.com"
] | bhumesh1505@gmail.com |
42ddaa16d0039bb086a622c60d4c0194be68820c | c8958958e5802f3e04ce88bd4064eacb98ce2f97 | /图像渲染.cpp | d58225dfed6559616382cef3f559368fd19564c9 | [] | no_license | Kiids/OJ_Practice | 08e5ea99066421bfaf5b71e59eea24e282e39a24 | e7d36ddb1664635d27db3c37bec952970b77dcb0 | refs/heads/master | 2023-09-01T11:38:28.834187 | 2023-06-30T17:12:18 | 2023-06-30T17:12:18 | 217,068,695 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,903 | cpp | /*
有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 0 到 65535 之间。
给你一个坐标 (sr, sc) 表示图像渲染开始的像素值(行 ,列)和一个新的颜色值 newColor,让你重新上色这幅图像。
为了完成上色工作,从初始坐标开始,记录初始坐标的上下左右四个方向上像素值与初始坐标相同的相连像素点,接着再记录这四个方向上符合条件的像素点与他们对应四个方向上像素值与初始坐标相同的相连像素点,……,重复该过程。将所有有记录的像素点的颜色值改为新的颜色值。
最后返回经过上色渲染后的图像。
示例 1:
输入:
image = [[1,1,1],[1,1,0],[1,0,1]]
sr = 1, sc = 1, newColor = 2
输出: [[2,2,2],[2,2,0],[2,0,1]]
解析:
在图像的正中间,(坐标(sr,sc)=(1,1)),
在路径上所有符合条件的像素点的颜色都被更改成2。
注意,右下角的像素没有更改为2,
因为它不是在上下左右四个方向上与初始点相连的像素点。
注意:
image 和 image[0] 的长度在范围 [1, 50] 内。
给出的初始点将满足 0 <= sr < image.length 和 0 <= sc < image[0].length。
image[i][j] 和 newColor 表示的颜色值在范围 [0, 65535]内。
*/
class Solution {
public:
vector<vector<int>> floodFill(vector<vector<int>>& image, int sr, int sc, int newColor) {
int oldColor = image[sr][sc];
if (image[sr][sc] == newColor)
return image;
image[sr][sc] = newColor;
int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, 1, 0, -1};
for (int i = 0; i < 4; i++)
{
int x = sr + dx[i], y = sc + dy[i];
if (x >= 0 && y >= 0 && x < image.size() && y < image[0].size() && image[x][y] == oldColor)
floodFill(image, x, y, newColor);
}
return image;
}
};
| [
"1980774293@qq.com"
] | 1980774293@qq.com |
edab26a13467e30a0df5c4142fc9bf57a4247abd | 50b452728fcc521cd8e82ca1377bd1f6a7fa60ec | /CavemanNinja/GUILabel.cpp | 0afe6c8c694599281aaa07930f1ae69be361cad2 | [] | no_license | DorianHawkmoon/Caveman-Ninja | a7c6e8f38363278127a8c3a4af6e0e79265fa7e6 | c39dbd8be2234722bad3f2e5e53981d83ec3022c | refs/heads/master | 2021-01-10T17:10:45.342359 | 2016-04-11T00:41:40 | 2016-04-11T00:41:40 | 49,627,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,899 | cpp | #include "GUILabel.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleFonts.h"
namespace GUI {
GUILabel::GUILabel(const std::string& text, const SDL_Color& color, const std::string& font, const GUILocation& location, int size)
: GUI::GUITexture(), nameFont(font), text(text), size(size+1), color(color) {
transform.location = location;
setSize(size);
}
bool GUILabel::isSelectable() const {
return false;
}
void GUILabel::handleEvent(const SDL_Event&) {}
SDL_Color GUILabel::getColor() const {
return color;
}
void GUILabel::setColor(const SDL_Color & color) {
this->color = color;
createTexture();
}
std::string GUILabel::getText() const {
return text;
}
void GUILabel::setText(const std::string & text) {
this->text = text;
createTexture();
}
void GUILabel::setSize(unsigned int size) {
if (this->size != size) {
if (font != nullptr) {
App->fonts->unload(font, size);
}
this->size = size;
font = App->fonts->load(nameFont.c_str(), size);
createTexture();
}
}
unsigned int GUILabel::getSize() {
return size;
}
void GUILabel::createTexture() {
//Render text surface
SDL_Surface* textSurface = TTF_RenderText_Solid(font, text.c_str(), color);
if (textSurface == nullptr) {
LOG("Unable to render text surface! SDL_ttf Error: %s\n", TTF_GetError());
} else {
//Create texture from surface pixels
texture = SDL_CreateTextureFromSurface(App->renderer->renderer, textSurface);
if (texture == nullptr) {
LOG("Unable to create texture from rendered text! SDL Error: %s\n", SDL_GetError());
}
//Get rid of old surface
SDL_FreeSurface(textSurface);
}
// Establece el offset de acuerdo al alineamiento
if (transform.location == GUILocation::ABSOLUTE) {
return;
}
}
GUILabel::~GUILabel() {
if (font != nullptr) {
App->fonts->unload(font, size);
}
}
} | [
"dorian.cadenas@gmail.com"
] | dorian.cadenas@gmail.com |
c9464dcf08ea2bb98fd7e7465ada19ee4ad4cc9e | 13c599a48f0b596c314c7c570f47756fd97a2b92 | /device/geolocation/geolocation_service_context.cc | ffd69ff01be24ab609b9777b35bb47fe4bae89a2 | [
"BSD-3-Clause"
] | permissive | qichanna/chromium | a5e3d44bda4bd6511e090e25263f5de94dbfe492 | 458d956db161377610486b7c82a95fc485f60b9b | refs/heads/master | 2022-11-13T00:50:48.147260 | 2016-08-01T23:23:16 | 2016-08-01T23:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,790 | cc | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/geolocation/geolocation_service_context.h"
#include <utility>
#include "device/geolocation/geolocation_service_impl.h"
namespace device {
GeolocationServiceContext::GeolocationServiceContext() : paused_(false) {}
GeolocationServiceContext::~GeolocationServiceContext() {}
void GeolocationServiceContext::CreateService(
const base::Closure& update_callback,
mojo::InterfaceRequest<blink::mojom::GeolocationService> request) {
GeolocationServiceImpl* service =
new GeolocationServiceImpl(std::move(request), this, update_callback);
services_.push_back(service);
if (geoposition_override_)
service->SetOverride(*geoposition_override_.get());
else
service->StartListeningForUpdates();
}
void GeolocationServiceContext::ServiceHadConnectionError(
GeolocationServiceImpl* service) {
auto it = std::find(services_.begin(), services_.end(), service);
DCHECK(it != services_.end());
services_.erase(it);
}
void GeolocationServiceContext::PauseUpdates() {
paused_ = true;
for (auto* service : services_) {
service->PauseUpdates();
}
}
void GeolocationServiceContext::ResumeUpdates() {
paused_ = false;
for (auto* service : services_) {
service->ResumeUpdates();
}
}
void GeolocationServiceContext::SetOverride(
std::unique_ptr<Geoposition> geoposition) {
geoposition_override_.swap(geoposition);
for (auto* service : services_) {
service->SetOverride(*geoposition_override_.get());
}
}
void GeolocationServiceContext::ClearOverride() {
for (auto* service : services_) {
service->ClearOverride();
}
}
} // namespace device
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
cebd30dd44a9dfb5cc5970ca4971d28436f3c148 | 6b980d21531cabbaf6b718227b023aa233352d6d | /menu/rendermenu.hpp | 9eb18641f16943287b3f7fd441122e3b4608af53 | [] | no_license | younasiqw/affluence | 217a26eb45777e4822ddac91920c4eaaa5e317e1 | 1977307d865825a7c13540a20da01b5045f69a05 | refs/heads/master | 2020-03-18T14:30:18.150307 | 2018-05-25T09:18:49 | 2018-05-25T09:18:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | hpp | #pragma once
#include "../main/interfaces.hpp"
struct render_struct
{
const char* title;
float* value;
float min;
float max;
float step;
bool isTab;
};
class render_definitions
{
public:
int index = 0;
int items = 0;
float tab, tab2, tab3, tab4;
};
class render_menu
{
public:
render_struct frame[150];
};
extern render_menu g_rendermenu;
extern render_definitions g_renderdefinitions; | [
"headaimclub2@gmail.com"
] | headaimclub2@gmail.com |
976cc2295379f84b02a059a5efea47d1452874cd | 751bddd2cd3152c0f40165cd004ce450fe69e087 | /Source/Engine/Physics/Constraint.h | 3a47dd488a317c493565cafc916894ef4eeac05f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Zlib",
"LicenseRef-scancode-khronos",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sabotage3d/UrhoSSAO | a9ec4bd2dfe24b73d0e13a3a609a3feabbab070b | 66cd902dc96b41c10afd5b00e9e8c238d74978f5 | refs/heads/master | 2021-01-10T21:20:31.364517 | 2015-01-03T13:02:21 | 2015-01-03T13:02:21 | 28,743,920 | 13 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,644 | h | //
// Copyright (c) 2008-2014 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.
//
#pragma once
#include "Component.h"
#include "Vector3.h"
class btTypedConstraint;
namespace Urho3D
{
/// Supported constraint types.
enum ConstraintType
{
CONSTRAINT_POINT = 0,
CONSTRAINT_HINGE,
CONSTRAINT_SLIDER,
CONSTRAINT_CONETWIST
};
class PhysicsWorld;
class RigidBody;
/// Physics constraint component. Connects two rigid bodies together, or one rigid body to a static point.
class URHO3D_API Constraint : public Component
{
OBJECT(Constraint);
friend class RigidBody;
public:
/// Construct.
Constraint(Context* context);
/// Destruct.
~Constraint();
/// Register object factory.
static void RegisterObject(Context* context);
/// Handle attribute write access.
virtual void OnSetAttribute(const AttributeInfo& attr, const Variant& src);
/// Apply attribute changes that can not be applied immediately. Called after scene load or a network update.
virtual void ApplyAttributes();
/// Handle enabled/disabled state change.
virtual void OnSetEnabled();
/// Return the depended on nodes to order network updates.
virtual void GetDependencyNodes(PODVector<Node*>& dest);
/// Visualize the component as debug geometry.
virtual void DrawDebugGeometry(DebugRenderer* debug, bool depthTest);
/// Set constraint type and recreate the constraint.
void SetConstraintType(ConstraintType type);
/// Set other body to connect to. Set to null to connect to the static world.
void SetOtherBody(RigidBody* body);
/// Set constraint position relative to own body.
void SetPosition(const Vector3& position);
/// Set constraint rotation relative to own body.
void SetRotation(const Quaternion& rotation);
/// Set constraint rotation relative to own body by specifying the axis.
void SetAxis(const Vector3& axis);
/// Set constraint position relative to the other body. If connected to the static world, is a world space position.
void SetOtherPosition(const Vector3& position);
/// Set constraint rotation relative to the other body. If connected to the static world, is a world space rotation.
void SetOtherRotation(const Quaternion& rotation);
/// Set constraint rotation relative to the other body by specifying the axis.
void SetOtherAxis(const Vector3& axis);
/// Set constraint world space position. Resets both own and other body relative position, ie. zeroes the constraint error.
void SetWorldPosition(const Vector3& position);
/// Set high limit. Interpretation is constraint type specific.
void SetHighLimit(const Vector2& limit);
/// Set low limit. Interpretation is constraint type specific.
void SetLowLimit(const Vector2& limit);
/// Set constraint error reduction parameter. Zero = leave to default.
void SetERP(float erp);
/// Set constraint force mixing parameter. Zero = leave to default.
void SetCFM(float cfm);
/// Set whether to disable collisions between connected bodies.
void SetDisableCollision(bool disable);
/// Return physics world.
PhysicsWorld* GetPhysicsWorld() const { return physicsWorld_; }
/// Return Bullet constraint.
btTypedConstraint* GetConstraint() const { return constraint_; }
/// Return constraint type.
ConstraintType GetConstraintType() const { return constraintType_; }
/// Return rigid body in own scene node.
RigidBody* GetOwnBody() const { return ownBody_; }
/// Return the other rigid body. May be null if connected to the static world.
RigidBody* GetOtherBody() const { return otherBody_; }
/// Return constraint position relative to own body.
const Vector3& GetPosition() const { return position_; }
/// Return constraint rotation relative to own body.
const Quaternion& GetRotation() const { return rotation_; }
/// Return constraint position relative to other body.
const Vector3& GetOtherPosition() const { return otherPosition_; }
/// Return constraint rotation relative to other body.
const Quaternion& GetOtherRotation() const { return otherRotation_; }
/// Return constraint world position, calculated from own body.
Vector3 GetWorldPosition() const;
/// Return high limit.
const Vector2& GetHighLimit() const { return highLimit_; }
/// Return low limit.
const Vector2& GetLowLimit() const { return lowLimit_; }
/// Return constraint error reduction parameter.
float GetERP() const { return erp_; }
/// Return constraint force mixing parameter.
float GetCFM() const { return cfm_; }
/// Return whether collisions between connected bodies are disabled.
bool GetDisableCollision() const { return disableCollision_; }
/// Release the constraint.
void ReleaseConstraint();
/// Apply constraint frames.
void ApplyFrames();
protected:
/// Handle node being assigned.
virtual void OnNodeSet(Node* node);
/// Handle node transform being dirtied.
virtual void OnMarkedDirty(Node* node);
private:
/// Create the constraint.
void CreateConstraint();
/// Apply high and low constraint limits.
void ApplyLimits();
/// Physics world.
WeakPtr<PhysicsWorld> physicsWorld_;
/// Own rigid body.
WeakPtr<RigidBody> ownBody_;
/// Other rigid body.
WeakPtr<RigidBody> otherBody_;
/// Bullet constraint.
btTypedConstraint* constraint_;
/// Constraint type.
ConstraintType constraintType_;
/// Constraint position.
Vector3 position_;
/// Constraint rotation.
Quaternion rotation_;
/// Constraint other body position.
Vector3 otherPosition_;
/// Constraint other body axis.
Quaternion otherRotation_;
/// Cached world scale for determining if the constraint position needs update.
Vector3 cachedWorldScale_;
/// High limit.
Vector2 highLimit_;
/// Low limit.
Vector2 lowLimit_;
/// Error reduction parameter.
float erp_;
/// Constraint force mixing parameter.
float cfm_;
/// Other body node ID for pending constraint recreation.
int otherBodyNodeID_;
/// Disable collision between connected bodies flag.
bool disableCollision_;
/// Recreate constraint flag.
bool recreateConstraint_;
/// Coordinate frames dirty flag.
bool framesDirty_;
};
}
| [
"sabotage3d@gmail.com"
] | sabotage3d@gmail.com |
2b1d665ea8991195a81560ea9f24ea3bff74826c | 0e6a0119fa18a550c0e26a5b1b288e1d3951cfcc | /speed_leds.cpp | 794fc8535203d2fefd7ece81fce640126c86d381 | [] | no_license | jamesfowkes/asap-watercraft-user-board | 441f801dc498634bbc533d32923fb93d4f9e1229 | f74f91ab75cc439de6e7bfc705cd214fe2a42e19 | refs/heads/master | 2021-09-07T07:24:19.749089 | 2018-02-19T15:10:12 | 2018-02-19T15:10:12 | 85,165,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,779 | cpp | /*
* switches.cpp
*
* James Fowkes (jamesfowkes@gmail.com)
* for ASAP Watercrafts
*
* Created March 2017
*
* Modified from original file RTD-ASAP_Controller.c
* by Rapid Technology Development ltd.
*/
/*
* AVR Includes
*/
#include <avr/io.h>
/*
* C standard library Includes
*/
#include <stdint.h>
/*
* Application Includes
*/
#include "speed_leds.h"
#include "util.h"
/*
* Defines, Typedefs, Constants
*/
#define SPEED_LEDS_DDR DDRC
#define SPEED_LEDS_PORT PORTC
static const int BLINK_PERIOD = 250;
static const int SPEED_LED_ROW0 = (1<<0);
static const int SPEED_LED_ROW1 = (1<<1);
static const int SPEED_LED_ROW2 = (1<<2);
static const int SPEED_LED_ROW3 = (1<<3);
static const int SPEED_LED_MASK = 0x0F;
#define SPEED_LED_PWM_DDR DDRD
#define SPEED_LED_PWM_PORT PORTD
#define SPEED_LED_PWM_PIN (4)
/*
* Private Variables
*/
static uint32_t s_blink_timer = BLINK_PERIOD;
static bool s_blink = false;
static bool s_blink_state = false;
/*
* Public Functions
*/
void speed_leds_setup()
{
SPEED_LEDS_DDR |= ( SPEED_LED_ROW0 | SPEED_LED_ROW1 | SPEED_LED_ROW2 | SPEED_LED_ROW3 );
SPEED_LED_PWM_DDR |= (1 << SPEED_LED_PWM_PIN);
// Timer/Counter 1 initialization.
TCCR1A = (
(0 << COM1A1) | (0 << COM1A0) // Channel A not used
| (1 << COM1B1) | (1 << COM1B0) // Channel B in set-on-compare-match, clear at TOP mode
| (0 << FOC1A) | (0 << FOC1B) // Clear force output compare bits
| (0 << WGM11) | (1 << WGM10) // 8-bit PWM node (lower 2 bits)
);
TCCR1B = (
(1<<WGM12) // 8-bit PWM mode (upper bit)
| (0 << CS12) | (1 << CS11) | (1 << CS10) // (Fcpu/64 = 125kHz clock = ~490Hz PWM frequency)
);
TCNT1=0x00;
speed_leds_set_brightness(0);
speed_leds_set_level(0);
}
void speed_leds_set_brightness(uint8_t brightness)
{
uint16_t linearised_brightness = brightness * brightness;
linearised_brightness = (linearised_brightness & 0xFF00) >> 8;
OCR1B = 255-linearised_brightness;
}
void speed_leds_set_level(uint8_t level)
{
SPEED_LEDS_PORT &= ~SPEED_LED_MASK;
switch(level)
{
case 0:
break;
case 1:
SPEED_LEDS_PORT |= SPEED_LED_ROW0;
break;
case 2:
SPEED_LEDS_PORT |= SPEED_LED_ROW0 | SPEED_LED_ROW1;
break;
case 3:
SPEED_LEDS_PORT |= SPEED_LED_ROW0 | SPEED_LED_ROW1 | SPEED_LED_ROW2;
break;
case 4:
default:
SPEED_LEDS_PORT |= SPEED_LED_ROW0 | SPEED_LED_ROW1 | SPEED_LED_ROW2 | SPEED_LED_ROW3;
break;
}
}
void speed_leds_blink(bool blink)
{
s_blink = blink;
}
void speed_leds_tick(uint32_t tick_ms)
{
if (s_blink)
{
s_blink_timer = subtract_not_below_zero(s_blink_timer, tick_ms);
if (s_blink_timer == 0)
{
speed_leds_set_level(s_blink_state ? 4 : 0);
s_blink_state = !s_blink_state;
s_blink_timer = BLINK_PERIOD;
}
}
}
| [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
00b7884bca0eac926de97bc2ac5c026bdee59119 | 4e5603d18ddb236ea2b7cb7bf55b1020bb20c9c2 | /vijos/p1549.cpp | ddf566df7c6d58b4dd56dc2647f8131bb6348a77 | [
"Unlicense"
] | permissive | huanghongxun/ACM | 0c6526ea8e4aeab44d906444cada2870e4dfb137 | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | refs/heads/master | 2021-01-20T05:41:23.163401 | 2017-12-14T07:50:59 | 2017-12-14T07:50:59 | 101,464,800 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | #include <iostream>
#include <cstring>
#define N 100005
using namespace std;
typedef long long ll;
ll a[N];
ll cnt[2*N];
ll n, k, i, ki, sum, ans;
int main() {
memset(cnt, 0, sizeof(cnt));
cin>>n>>k;
for(i = 0; i < n; i++) {
cin>>a[i];
if(a[i] > k) a[i] = 1;
else if(a[i] == k) { a[i] = 0; ki = i; }
else a[i] = -1;
}
ans = 1; sum = 0;
for(i = ki - 1; i >= 0; i--) {
sum += a[i];
cnt[sum + N]++;
if(sum == 0) ans++;
}
sum = 0;
for(i = ki + 1; i < n; i++) {
sum += a[i];
ans += cnt[-sum + N];
if(sum == 0) ans++;
}
cout<<ans;
return 0;
} | [
"huanghongxun2008@126.com"
] | huanghongxun2008@126.com |
3996cb3362930a148e14eb83392721e72822f187 | eb2402919a6cd96eef93473c14cb946b2eaa5f7a | /source/d3d9/d3d9_runtime.cpp | 466132ad29e0cfe00b7b8dd4aa1d31a2399d1b89 | [
"BSD-3-Clause"
] | permissive | acourreges/reshade | f860f92b3432afd52557421afff9ea67115482ea | f2560b05b9cac0ea355fd63451f594d7e424fb11 | refs/heads/master | 2020-03-17T09:23:02.832200 | 2018-05-14T17:38:15 | 2018-05-14T17:38:15 | 133,472,624 | 18 | 4 | null | 2018-05-15T06:56:10 | 2018-05-15T06:56:10 | null | UTF-8 | C++ | false | false | 28,196 | cpp | /**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "log.hpp"
#include "d3d9_runtime.hpp"
#include "d3d9_effect_compiler.hpp"
#include "effect_lexer.hpp"
#include "input.hpp"
#include <imgui.h>
#include <algorithm>
const auto D3DFMT_INTZ = static_cast<D3DFORMAT>(MAKEFOURCC('I', 'N', 'T', 'Z'));
const auto D3DFMT_DF16 = static_cast<D3DFORMAT>(MAKEFOURCC('D', 'F', '1', '6'));
const auto D3DFMT_DF24 = static_cast<D3DFORMAT>(MAKEFOURCC('D', 'F', '2', '4'));
namespace reshade::d3d9
{
d3d9_runtime::d3d9_runtime(IDirect3DDevice9 *device, IDirect3DSwapChain9 *swapchain) :
runtime(0x9300), _device(device), _swapchain(swapchain)
{
assert(device != nullptr);
assert(swapchain != nullptr);
_device->GetDirect3D(&_d3d);
assert(_d3d != nullptr);
D3DCAPS9 caps;
D3DADAPTER_IDENTIFIER9 adapter_desc;
D3DDEVICE_CREATION_PARAMETERS creation_params;
_device->GetDeviceCaps(&caps);
_device->GetCreationParameters(&creation_params);
_d3d->GetAdapterIdentifier(creation_params.AdapterOrdinal, 0, &adapter_desc);
_vendor_id = adapter_desc.VendorId;
_device_id = adapter_desc.DeviceId;
_behavior_flags = creation_params.BehaviorFlags;
_num_samplers = caps.MaxSimultaneousTextures;
_num_simultaneous_rendertargets = std::min(caps.NumSimultaneousRTs, DWORD(8));
}
bool d3d9_runtime::init_backbuffer_texture()
{
// Get back buffer surface
HRESULT hr = _swapchain->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &_backbuffer);
assert(SUCCEEDED(hr));
if (_is_multisampling_enabled ||
(_backbuffer_format == D3DFMT_X8R8G8B8 || _backbuffer_format == D3DFMT_X8B8G8R8))
{
switch (_backbuffer_format)
{
case D3DFMT_X8R8G8B8:
_backbuffer_format = D3DFMT_A8R8G8B8;
break;
case D3DFMT_X8B8G8R8:
_backbuffer_format = D3DFMT_A8B8G8R8;
break;
}
hr = _device->CreateRenderTarget(_width, _height, _backbuffer_format, D3DMULTISAMPLE_NONE, 0, FALSE, &_backbuffer_resolved, nullptr);
if (FAILED(hr))
{
LOG(ERROR) << "Failed to create back buffer resolve texture! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
}
else
{
_backbuffer_resolved = _backbuffer;
}
// Create back buffer shader texture
hr = _device->CreateTexture(_width, _height, 1, D3DUSAGE_RENDERTARGET, _backbuffer_format, D3DPOOL_DEFAULT, &_backbuffer_texture, nullptr);
if (SUCCEEDED(hr))
{
_backbuffer_texture->GetSurfaceLevel(0, &_backbuffer_texture_surface);
}
else
{
LOG(ERROR) << "Failed to create back buffer texture! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
return true;
}
bool d3d9_runtime::init_default_depth_stencil()
{
// Create default depth stencil surface
HRESULT hr = _device->CreateDepthStencilSurface(_width, _height, D3DFMT_D24S8, D3DMULTISAMPLE_NONE, 0, FALSE, &_default_depthstencil, nullptr);
if (FAILED(hr))
{
LOG(ERROR) << "Failed to create default depth stencil! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
return true;
}
bool d3d9_runtime::init_fx_resources()
{
HRESULT hr = _device->CreateVertexBuffer(3 * sizeof(float), D3DUSAGE_WRITEONLY, 0, D3DPOOL_DEFAULT, &_effect_triangle_buffer, nullptr);
if (SUCCEEDED(hr))
{
float *data = nullptr;
hr = _effect_triangle_buffer->Lock(0, 3 * sizeof(float), reinterpret_cast<void **>(&data), 0);
assert(SUCCEEDED(hr));
for (unsigned int i = 0; i < 3; i++)
{
data[i] = static_cast<float>(i);
}
_effect_triangle_buffer->Unlock();
}
else
{
LOG(ERROR) << "Failed to create effect vertex buffer! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
const D3DVERTEXELEMENT9 declaration[] = {
{ 0, 0, D3DDECLTYPE_FLOAT1, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_TEXCOORD, 0 },
D3DDECL_END()
};
hr = _device->CreateVertexDeclaration(declaration, &_effect_triangle_layout);
if (FAILED(hr))
{
LOG(ERROR) << "Failed to create effect vertex declaration! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
return true;
}
bool d3d9_runtime::init_imgui_font_atlas()
{
int width, height, bits_per_pixel;
unsigned char *pixels;
ImGui::SetCurrentContext(_imgui_context);
ImGui::GetIO().Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &bits_per_pixel);
D3DLOCKED_RECT font_atlas_rect;
com_ptr<IDirect3DTexture9> font_atlas;
HRESULT hr = _device->CreateTexture(width, height, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &font_atlas, nullptr);
if (FAILED(hr) || FAILED(font_atlas->LockRect(0, &font_atlas_rect, nullptr, 0)))
{
LOG(ERROR) << "Failed to create font atlas texture! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
for (int y = 0; y < height; y++)
{
std::memcpy(static_cast<BYTE *>(font_atlas_rect.pBits) + font_atlas_rect.Pitch * y, pixels + (width * bits_per_pixel) * y, width * bits_per_pixel);
}
font_atlas->UnlockRect(0);
d3d9_tex_data obj = { };
obj.texture = font_atlas;
_imgui_font_atlas_texture = std::make_unique<d3d9_tex_data>(obj);
if (hr = _device->BeginStateBlock(); SUCCEEDED(hr))
{
_device->SetFVF(D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1);
_device->SetPixelShader(nullptr);
_device->SetVertexShader(nullptr);
_device->SetRenderState(D3DRS_ZENABLE, false);
_device->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
_device->SetRenderState(D3DRS_ALPHATESTENABLE, false);
_device->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
_device->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
_device->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
_device->SetRenderState(D3DRS_ALPHABLENDENABLE, true);
_device->SetRenderState(D3DRS_FOGENABLE, false);
_device->SetRenderState(D3DRS_STENCILENABLE, false);
_device->SetRenderState(D3DRS_CLIPPING, false);
_device->SetRenderState(D3DRS_LIGHTING, false);
_device->SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_RED | D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_BLUE | D3DCOLORWRITEENABLE_ALPHA);
_device->SetRenderState(D3DRS_SCISSORTESTENABLE, true);
_device->SetRenderState(D3DRS_BLENDOP, D3DBLENDOP_ADD);
_device->SetRenderState(D3DRS_SRGBWRITEENABLE, false);
_device->SetRenderState(D3DRS_BLENDOPALPHA, D3DBLENDOP_ADD);
_device->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE);
_device->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE);
_device->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE);
_device->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
_device->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);
_device->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE);
_device->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR);
_device->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR);
const D3DMATRIX identity_mat = {
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
};
const D3DMATRIX ortho_projection = {
2.0f / _width, 0.0f, 0.0f, 0.0f,
0.0f, -2.0f / _height, 0.0f, 0.0f,
0.0f, 0.0f, 0.5f, 0.0f,
-(_width + 1.0f) / _width, (_height + 1.0f) / _height, 0.5f, 1.0f
};
_device->SetTransform(D3DTS_WORLD, &identity_mat);
_device->SetTransform(D3DTS_VIEW, &identity_mat);
_device->SetTransform(D3DTS_PROJECTION, &ortho_projection);
hr = _device->EndStateBlock(&_imgui_state);
}
if (FAILED(hr))
{
LOG(ERROR) << "Failed to create state block! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
return true;
}
bool d3d9_runtime::on_init(const D3DPRESENT_PARAMETERS &pp)
{
_width = pp.BackBufferWidth;
_height = pp.BackBufferHeight;
_backbuffer_format = pp.BackBufferFormat;
_is_multisampling_enabled = pp.MultiSampleType != D3DMULTISAMPLE_NONE;
_input = input::register_window(pp.hDeviceWindow);
if (FAILED(_device->CreateStateBlock(D3DSBT_ALL, &_stateblock)))
{
return false;
}
if (!init_backbuffer_texture() ||
!init_default_depth_stencil() ||
!init_fx_resources() ||
!init_imgui_font_atlas())
{
return false;
}
return runtime::on_init();
}
void d3d9_runtime::on_reset()
{
if (!is_initialized())
{
return;
}
runtime::on_reset();
// Destroy resources
_stateblock.reset();
_backbuffer.reset();
_backbuffer_resolved.reset();
_backbuffer_texture.reset();
_backbuffer_texture_surface.reset();
_depthstencil.reset();
_depthstencil_replacement.reset();
_depthstencil_texture.reset();
_default_depthstencil.reset();
_effect_triangle_buffer.reset();
_effect_triangle_layout.reset();
_imgui_vertex_buffer.reset();
_imgui_index_buffer.reset();
_imgui_vertex_buffer_size = 0;
_imgui_index_buffer_size = 0;
_imgui_state.reset();
// Clear depth source table
for (auto &it : _depth_source_table)
{
it.first->Release();
}
_depth_source_table.clear();
}
void d3d9_runtime::on_present()
{
if (!is_initialized())
return;
// Begin post processing
if (FAILED(_device->BeginScene()))
return;
runtime::on_frame();
detect_depth_source();
// Capture device state
_stateblock->Capture();
BOOL software_rendering_enabled;
D3DVIEWPORT9 viewport;
com_ptr<IDirect3DSurface9> stateblock_rendertargets[8], stateblock_depthstencil;
_device->GetViewport(&viewport);
for (DWORD target = 0; target < _num_simultaneous_rendertargets; target++)
{
_device->GetRenderTarget(target, &stateblock_rendertargets[target]);
}
_device->GetDepthStencilSurface(&stateblock_depthstencil);
if ((_behavior_flags & D3DCREATE_MIXED_VERTEXPROCESSING) != 0)
{
software_rendering_enabled = _device->GetSoftwareVertexProcessing();
_device->SetSoftwareVertexProcessing(FALSE);
}
// Resolve back buffer
if (_backbuffer_resolved != _backbuffer)
{
_device->StretchRect(_backbuffer.get(), nullptr, _backbuffer_resolved.get(), nullptr, D3DTEXF_NONE);
}
// Apply post processing
if (is_effect_loaded())
{
_device->SetRenderTarget(0, _backbuffer_resolved.get());
_device->SetDepthStencilSurface(nullptr);
// Setup vertex input
_device->SetStreamSource(0, _effect_triangle_buffer.get(), 0, sizeof(float));
_device->SetVertexDeclaration(_effect_triangle_layout.get());
on_present_effect();
}
// Apply presenting
runtime::on_present();
// Copy to back buffer
if (_backbuffer_resolved != _backbuffer)
{
_device->StretchRect(_backbuffer_resolved.get(), nullptr, _backbuffer.get(), nullptr, D3DTEXF_NONE);
}
// Apply previous device state
_stateblock->Apply();
for (DWORD target = 0; target < _num_simultaneous_rendertargets; target++)
{
_device->SetRenderTarget(target, stateblock_rendertargets[target].get());
}
_device->SetDepthStencilSurface(stateblock_depthstencil.get());
_device->SetViewport(&viewport);
if ((_behavior_flags & D3DCREATE_MIXED_VERTEXPROCESSING) != 0)
{
_device->SetSoftwareVertexProcessing(software_rendering_enabled);
}
// End post processing
_device->EndScene();
}
void d3d9_runtime::on_draw_call(D3DPRIMITIVETYPE type, UINT vertices)
{
switch (type)
{
case D3DPT_LINELIST:
vertices *= 2;
break;
case D3DPT_LINESTRIP:
vertices += 1;
break;
case D3DPT_TRIANGLELIST:
vertices *= 3;
break;
case D3DPT_TRIANGLESTRIP:
case D3DPT_TRIANGLEFAN:
vertices += 2;
break;
}
_vertices += vertices;
_drawcalls += 1;
com_ptr<IDirect3DSurface9> depthstencil;
_device->GetDepthStencilSurface(&depthstencil);
if (depthstencil != nullptr)
{
if (depthstencil == _depthstencil_replacement)
{
depthstencil = _depthstencil;
}
const auto it = _depth_source_table.find(depthstencil.get());
if (it != _depth_source_table.end())
{
it->second.drawcall_count = _drawcalls;
it->second.vertices_count += vertices;
}
}
}
void d3d9_runtime::on_set_depthstencil_surface(IDirect3DSurface9 *&depthstencil)
{
if (_depth_source_table.find(depthstencil) == _depth_source_table.end())
{
D3DSURFACE_DESC desc;
depthstencil->GetDesc(&desc);
// Early rejection
if ( desc.MultiSampleType != D3DMULTISAMPLE_NONE ||
(desc.Width < _width * 0.95 || desc.Width > _width * 1.05) ||
(desc.Height < _height * 0.95 || desc.Height > _height * 1.05))
{
return;
}
depthstencil->AddRef();
// Begin tracking
const depth_source_info info = { desc.Width, desc.Height };
_depth_source_table.emplace(depthstencil, info);
}
if (_depthstencil_replacement != nullptr && depthstencil == _depthstencil)
{
depthstencil = _depthstencil_replacement.get();
}
}
void d3d9_runtime::on_get_depthstencil_surface(IDirect3DSurface9 *&depthstencil)
{
if (_depthstencil_replacement != nullptr && depthstencil == _depthstencil_replacement)
{
depthstencil->Release();
depthstencil = _depthstencil.get();
depthstencil->AddRef();
}
}
void d3d9_runtime::capture_frame(uint8_t *buffer) const
{
if (_backbuffer_format != D3DFMT_X8R8G8B8 &&
_backbuffer_format != D3DFMT_X8B8G8R8 &&
_backbuffer_format != D3DFMT_A8R8G8B8 &&
_backbuffer_format != D3DFMT_A8B8G8R8)
{
LOG(WARNING) << "Screenshots are not supported for back buffer format " << _backbuffer_format << ".";
return;
}
HRESULT hr;
com_ptr<IDirect3DSurface9> screenshot_surface;
hr = _device->CreateOffscreenPlainSurface(_width, _height, _backbuffer_format, D3DPOOL_SYSTEMMEM, &screenshot_surface, nullptr);
if (FAILED(hr))
{
return;
}
hr = _device->GetRenderTargetData(_backbuffer_resolved.get(), screenshot_surface.get());
if (FAILED(hr))
{
return;
}
D3DLOCKED_RECT mapped_rect;
hr = screenshot_surface->LockRect(&mapped_rect, nullptr, D3DLOCK_READONLY);
if (FAILED(hr))
{
return;
}
auto mapped_data = static_cast<BYTE *>(mapped_rect.pBits);
const UINT pitch = _width * 4;
for (UINT y = 0; y < _height; y++)
{
std::memcpy(buffer, mapped_data, std::min(pitch, static_cast<UINT>(mapped_rect.Pitch)));
for (UINT x = 0; x < pitch; x += 4)
{
buffer[x + 3] = 0xFF;
if (_backbuffer_format == D3DFMT_A8R8G8B8 || _backbuffer_format == D3DFMT_X8R8G8B8)
{
std::swap(buffer[x + 0], buffer[x + 2]);
}
}
buffer += pitch;
mapped_data += mapped_rect.Pitch;
}
screenshot_surface->UnlockRect();
}
bool d3d9_runtime::load_effect(const reshadefx::syntax_tree &ast, std::string &errors)
{
return d3d9_effect_compiler(this, ast, errors, false).run();
}
bool d3d9_runtime::update_texture(texture &texture, const uint8_t *data)
{
if (texture.impl_reference != texture_reference::none)
{
return false;
}
const auto texture_impl = texture.impl->as<d3d9_tex_data>();
assert(data != nullptr);
assert(texture_impl != nullptr);
D3DSURFACE_DESC desc;
texture_impl->texture->GetLevelDesc(0, &desc);
HRESULT hr;
com_ptr<IDirect3DTexture9> mem_texture;
hr = _device->CreateTexture(desc.Width, desc.Height, 1, 0, desc.Format, D3DPOOL_SYSTEMMEM, &mem_texture, nullptr);
if (FAILED(hr))
{
LOG(ERROR) << "Failed to create memory texture for texture updating! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
D3DLOCKED_RECT mapped_rect;
hr = mem_texture->LockRect(0, &mapped_rect, nullptr, 0);
if (FAILED(hr))
{
LOG(ERROR) << "Failed to lock memory texture for texture updating! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
const UINT size = std::min(texture.width * 4, static_cast<UINT>(mapped_rect.Pitch)) * texture.height;
auto mapped_data = static_cast<BYTE *>(mapped_rect.pBits);
switch (texture.format)
{
case texture_format::r8:
for (UINT i = 0; i < size; i += 4, mapped_data += 4)
mapped_data[0] = 0,
mapped_data[1] = 0,
mapped_data[2] = data[i],
mapped_data[3] = 0;
break;
case texture_format::rg8:
for (UINT i = 0; i < size; i += 4, mapped_data += 4)
mapped_data[0] = 0,
mapped_data[1] = data[i + 1],
mapped_data[2] = data[i],
mapped_data[3] = 0;
break;
case texture_format::rgba8:
for (UINT i = 0; i < size; i += 4, mapped_data += 4)
mapped_data[0] = data[i + 2],
mapped_data[1] = data[i + 1],
mapped_data[2] = data[i],
mapped_data[3] = data[i + 3];
break;
default:
std::memcpy(mapped_data, data, size);
break;
}
mem_texture->UnlockRect(0);
hr = _device->UpdateTexture(mem_texture.get(), texture_impl->texture.get());
if (FAILED(hr))
{
LOG(ERROR) << "Failed to update texture from memory texture! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
return true;
}
bool d3d9_runtime::update_texture_reference(texture &texture, texture_reference id)
{
com_ptr<IDirect3DTexture9> new_reference;
switch (id)
{
case texture_reference::back_buffer:
new_reference = _backbuffer_texture;
break;
case texture_reference::depth_buffer:
new_reference = _depthstencil_texture;
break;
default:
return false;
}
texture.impl_reference = id;
const auto texture_impl = texture.impl->as<d3d9_tex_data>();
assert(texture_impl != nullptr);
if (new_reference == texture_impl->texture)
{
return true;
}
texture_impl->surface.reset();
if (new_reference == nullptr)
{
texture_impl->texture.reset();
texture.width = texture.height = texture.levels = 0;
texture.format = texture_format::unknown;
}
else
{
texture_impl->texture = new_reference;
new_reference->GetSurfaceLevel(0, &texture_impl->surface);
D3DSURFACE_DESC desc;
texture_impl->surface->GetDesc(&desc);
texture.width = desc.Width;
texture.height = desc.Height;
texture.format = texture_format::unknown;
texture.levels = new_reference->GetLevelCount();
}
return true;
}
void d3d9_runtime::render_technique(const technique &technique)
{
bool is_default_depthstencil_cleared = false;
// Setup shader constants
if (technique.uniform_storage_index >= 0)
{
const auto uniform_storage_data = reinterpret_cast<const float *>(get_uniform_value_storage().data() + technique.uniform_storage_offset);
_device->SetVertexShaderConstantF(0, uniform_storage_data, static_cast<UINT>(technique.uniform_storage_index));
_device->SetPixelShaderConstantF(0, uniform_storage_data, static_cast<UINT>(technique.uniform_storage_index));
}
for (const auto &pass_object : technique.passes)
{
const d3d9_pass_data &pass = *pass_object->as<d3d9_pass_data>();
// Setup states
pass.stateblock->Apply();
// Save back buffer of previous pass
_device->StretchRect(_backbuffer_resolved.get(), nullptr, _backbuffer_texture_surface.get(), nullptr, D3DTEXF_NONE);
// Setup shader resources
for (DWORD sampler = 0; sampler < pass.sampler_count; sampler++)
{
_device->SetTexture(sampler, pass.samplers[sampler].texture->texture.get());
for (DWORD state = D3DSAMP_ADDRESSU; state <= D3DSAMP_SRGBTEXTURE; state++)
{
_device->SetSamplerState(sampler, static_cast<D3DSAMPLERSTATETYPE>(state), pass.samplers[sampler].states[state]);
}
}
// Setup render targets
for (DWORD target = 0; target < _num_simultaneous_rendertargets; target++)
{
_device->SetRenderTarget(target, pass.render_targets[target]);
}
D3DVIEWPORT9 viewport;
_device->GetViewport(&viewport);
const float texelsize[4] = { -1.0f / viewport.Width, 1.0f / viewport.Height };
_device->SetVertexShaderConstantF(255, texelsize, 1);
const bool is_viewport_sized = viewport.Width == _width && viewport.Height == _height;
_device->SetDepthStencilSurface(is_viewport_sized ? _default_depthstencil.get() : nullptr);
if (is_viewport_sized && !is_default_depthstencil_cleared)
{
is_default_depthstencil_cleared = true;
_device->Clear(0, nullptr, (pass.clear_render_targets ? D3DCLEAR_TARGET : 0) | D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL, 0, 1.0f, 0);
}
else if (pass.clear_render_targets)
{
_device->Clear(0, nullptr, D3DCLEAR_TARGET, 0, 0.0f, 0);
}
// Draw triangle
_device->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);
_vertices += 3;
_drawcalls += 1;
// Update shader resources
for (const auto target : pass.render_targets)
{
if (target == nullptr || target == _backbuffer_resolved)
{
continue;
}
com_ptr<IDirect3DBaseTexture9> texture;
if (SUCCEEDED(target->GetContainer(IID_PPV_ARGS(&texture))) && texture->GetLevelCount() > 1)
{
texture->SetAutoGenFilterType(D3DTEXF_LINEAR);
texture->GenerateMipSubLevels();
}
}
}
}
void d3d9_runtime::render_imgui_draw_data(ImDrawData *draw_data)
{
// Fixed-function vertex layout
struct vertex
{
float x, y, z;
D3DCOLOR col;
float u, v;
};
// Create and grow buffers if needed
if (_imgui_vertex_buffer == nullptr ||
_imgui_vertex_buffer_size < draw_data->TotalVtxCount)
{
_imgui_vertex_buffer.reset();
_imgui_vertex_buffer_size = draw_data->TotalVtxCount + 5000;
if (FAILED(_device->CreateVertexBuffer(_imgui_vertex_buffer_size * sizeof(vertex), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1, D3DPOOL_DEFAULT, &_imgui_vertex_buffer, nullptr)))
{
return;
}
}
if (_imgui_index_buffer == nullptr ||
_imgui_index_buffer_size < draw_data->TotalIdxCount)
{
_imgui_index_buffer.reset();
_imgui_index_buffer_size = draw_data->TotalIdxCount + 10000;
if (FAILED(_device->CreateIndexBuffer(_imgui_index_buffer_size * sizeof(ImDrawIdx), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, sizeof(ImDrawIdx) == 2 ? D3DFMT_INDEX16 : D3DFMT_INDEX32, D3DPOOL_DEFAULT, &_imgui_index_buffer, nullptr)))
{
return;
}
}
vertex *vtx_dst;
ImDrawIdx *idx_dst;
if (FAILED(_imgui_vertex_buffer->Lock(0, draw_data->TotalVtxCount * sizeof(vertex), reinterpret_cast<void **>(&vtx_dst), D3DLOCK_DISCARD)) ||
FAILED(_imgui_index_buffer->Lock(0, draw_data->TotalIdxCount * sizeof(ImDrawIdx), reinterpret_cast<void **>(&idx_dst), D3DLOCK_DISCARD)))
{
return;
}
for (int n = 0; n < draw_data->CmdListsCount; n++)
{
const ImDrawList *const cmd_list = draw_data->CmdLists[n];
for (auto vtx_src = cmd_list->VtxBuffer.begin(); vtx_src != cmd_list->VtxBuffer.end(); vtx_src++, vtx_dst++)
{
vtx_dst->x = vtx_src->pos.x;
vtx_dst->y = vtx_src->pos.y;
vtx_dst->z = 0.0f;
// RGBA --> ARGB for Direct3D 9
vtx_dst->col = (vtx_src->col & 0xFF00FF00) | ((vtx_src->col & 0xFF0000) >> 16) | ((vtx_src->col & 0xFF) << 16);
vtx_dst->u = vtx_src->uv.x;
vtx_dst->v = vtx_src->uv.y;
}
std::memcpy(idx_dst, &cmd_list->IdxBuffer.front(), cmd_list->IdxBuffer.size() * sizeof(ImDrawIdx));
idx_dst += cmd_list->IdxBuffer.size();
}
_imgui_vertex_buffer->Unlock();
_imgui_index_buffer->Unlock();
// Setup render state: fixed-pipeline, alpha-blending, no face culling, no depth testing
_device->SetRenderTarget(0, _backbuffer_resolved.get());
for (DWORD target = 1; target < _num_simultaneous_rendertargets; target++)
{
_device->SetRenderTarget(target, nullptr);
}
_device->SetDepthStencilSurface(nullptr);
_device->SetStreamSource(0, _imgui_vertex_buffer.get(), 0, sizeof(vertex));
_device->SetIndices(_imgui_index_buffer.get());
_imgui_state->Apply();
// Render command lists
UINT vtx_offset = 0, idx_offset = 0;
for (UINT i = 0; i < _num_samplers; i++)
_device->SetTexture(i, nullptr);
for (int n = 0; n < draw_data->CmdListsCount; n++)
{
const ImDrawList *const cmd_list = draw_data->CmdLists[n];
for (const ImDrawCmd *cmd = cmd_list->CmdBuffer.begin(); cmd != cmd_list->CmdBuffer.end(); idx_offset += cmd->ElemCount, cmd++)
{
const RECT scissor_rect = {
static_cast<LONG>(cmd->ClipRect.x),
static_cast<LONG>(cmd->ClipRect.y),
static_cast<LONG>(cmd->ClipRect.z),
static_cast<LONG>(cmd->ClipRect.w)
};
_device->SetTexture(0, static_cast<const d3d9_tex_data *>(cmd->TextureId)->texture.get());
_device->SetScissorRect(&scissor_rect);
_device->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, vtx_offset, 0, cmd_list->VtxBuffer.size(), idx_offset, cmd->ElemCount / 3);
}
vtx_offset += cmd_list->VtxBuffer.size();
}
}
void d3d9_runtime::detect_depth_source()
{
static int cooldown = 0, traffic = 0;
if (cooldown-- > 0)
{
traffic += g_network_traffic > 0;
return;
}
else
{
cooldown = 30;
if (traffic > 10)
{
traffic = 0;
create_depthstencil_replacement(nullptr);
return;
}
else
{
traffic = 0;
}
}
if (_is_multisampling_enabled || _depth_source_table.empty())
{
return;
}
depth_source_info best_info = { 0 };
IDirect3DSurface9 *best_match = nullptr;
for (auto it = _depth_source_table.begin(); it != _depth_source_table.end();)
{
const auto depthstencil = it->first;
auto &depthstencil_info = it->second;
if ((depthstencil->AddRef(), depthstencil->Release()) == 1)
{
depthstencil->Release();
it = _depth_source_table.erase(it);
continue;
}
else
{
++it;
}
if (depthstencil_info.drawcall_count == 0)
{
continue;
}
if ((depthstencil_info.vertices_count * (1.2f - float(depthstencil_info.drawcall_count) / _drawcalls)) >= (best_info.vertices_count * (1.2f - float(best_info.drawcall_count) / _drawcalls)))
{
best_match = depthstencil;
best_info = depthstencil_info;
}
depthstencil_info.drawcall_count = depthstencil_info.vertices_count = 0;
}
if (best_match != nullptr && _depthstencil != best_match)
{
create_depthstencil_replacement(best_match);
}
}
bool d3d9_runtime::create_depthstencil_replacement(IDirect3DSurface9 *depthstencil)
{
_depthstencil.reset();
_depthstencil_replacement.reset();
_depthstencil_texture.reset();
if (depthstencil != nullptr)
{
_depthstencil = depthstencil;
D3DSURFACE_DESC desc;
_depthstencil->GetDesc(&desc);
if (desc.Format != D3DFMT_INTZ && desc.Format != D3DFMT_DF16 && desc.Format != D3DFMT_DF24)
{
D3DDISPLAYMODE displaymode;
_swapchain->GetDisplayMode(&displaymode);
D3DDEVICE_CREATION_PARAMETERS creation_params;
_device->GetCreationParameters(&creation_params);
desc.Format = D3DFMT_UNKNOWN;
const D3DFORMAT formats[] = { D3DFMT_INTZ, D3DFMT_DF24, D3DFMT_DF16 };
for (const auto format : formats)
{
if (SUCCEEDED(_d3d->CheckDeviceFormat(creation_params.AdapterOrdinal, creation_params.DeviceType, displaymode.Format, D3DUSAGE_DEPTHSTENCIL, D3DRTYPE_TEXTURE, format)))
{
desc.Format = format;
break;
}
}
if (desc.Format == D3DFMT_UNKNOWN)
{
LOG(ERROR) << "Your graphics card is missing support for at least one of the 'INTZ', 'DF24' or 'DF16' texture formats. Cannot create depth replacement texture.";
return false;
}
const HRESULT hr = _device->CreateTexture(desc.Width, desc.Height, 1, D3DUSAGE_DEPTHSTENCIL, desc.Format, D3DPOOL_DEFAULT, &_depthstencil_texture, nullptr);
if (SUCCEEDED(hr))
{
_depthstencil_texture->GetSurfaceLevel(0, &_depthstencil_replacement);
// Update auto depth stencil
com_ptr<IDirect3DSurface9> current_depthstencil;
_device->GetDepthStencilSurface(¤t_depthstencil);
if (current_depthstencil != nullptr)
{
if (current_depthstencil == _depthstencil)
{
_device->SetDepthStencilSurface(_depthstencil_replacement.get());
}
}
}
else
{
LOG(ERROR) << "Failed to create depth replacement texture! HRESULT is '" << std::hex << hr << std::dec << "'.";
return false;
}
}
else
{
_depthstencil_replacement = _depthstencil;
_depthstencil_replacement->GetContainer(IID_PPV_ARGS(&_depthstencil_texture));
}
}
// Update effect textures
for (auto &texture : _textures)
{
if (texture.impl_reference == texture_reference::depth_buffer)
{
update_texture_reference(texture, texture_reference::depth_buffer);
}
}
return true;
}
}
| [
"crosiredev@gmail.com"
] | crosiredev@gmail.com |
62ea6ffdcf5728ac378b46f6dfb84cac43ebf77b | e18c44e6c2d33e4ed02fc12f17b4e6305bca6a28 | /Source/LD37/LooseWeapon.cpp | 25b200057b36c653cf0f9dda35f5b659449fa6ea | [] | no_license | Quadtree/LD37 | dbc68c74a090b35528180b6198d3758a25334322 | 4c43b3ebe1af0db64ac3469f9c89c6b1664300f3 | refs/heads/master | 2021-04-30T16:00:02.979074 | 2016-12-12T06:28:10 | 2016-12-12T06:28:10 | 76,097,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,868 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LD37.h"
#include "LD37Character.h"
#include "LooseWeapon.h"
// Sets default values
ALooseWeapon::ALooseWeapon()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
Root = CreateDefaultSubobject<USceneComponent>("Root");
Root->SetRelativeScale3D(FVector(0.056642f));
Mesh = CreateDefaultSubobject<UStaticMeshComponent>("Mesh");
Mesh->SetupAttachment(Root);
Mesh->SetNotifyRigidBodyCollision(true);
Mesh->OnComponentHit.AddDynamic(this, &ALooseWeapon::OnHit);
Mesh->SetSimulatePhysics(true);
RootComponent = Root;
LifeSpan = 99999;
}
// Called when the game starts or when spawned
void ALooseWeapon::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void ALooseWeapon::Tick( float DeltaTime )
{
Super::Tick( DeltaTime );
LifeSpan -= DeltaTime;
if (LifeSpan <= 0) Destroy();
}
void ALooseWeapon::SetWeaponType(ALD37Character* chrRef, int32 weaponType)
{
WeaponType = weaponType;
Mesh->SetStaticMesh(chrRef->WeaponDescriptions[weaponType].GunModel);
if (chrRef->WeaponDescriptions[weaponType].GunInheritMaterial) Mesh->SetMaterial(0, chrRef->WeaponMaterials[weaponType]);
}
void ALooseWeapon::OnHit(UPrimitiveComponent * HitComp, AActor * OtherActor, UPrimitiveComponent * OtherComp, FVector NormalImpulse, const FHitResult & Hit)
{
if (auto act = Cast<ALD37Character>(OtherActor))
{
if (act->Health > 0)
{
act->AmmoCounts[act->WeaponDescriptions[WeaponType].AmmoType] += Ammo;
if (!act->HasWeapon[WeaponType])
{
act->HasWeapon[WeaponType] = true;
act->WeaponMaterials[WeaponType] = Mesh->GetMaterial(0);
}
Destroy();
}
}
}
| [
"quadtree@gmail.com"
] | quadtree@gmail.com |
33cba41ce619abf4736995d078113bd309c63920 | 7a78522a78f7082f9517e0aa6af75db3f9de2357 | /Engine/source/EtPipeline/Assets/EditableAudioAsset.h | 8469ebc3c01cfb9d65c6d52b59e2a51563bfb811 | [
"MIT"
] | permissive | avpdiver/ETEngine | 86a511d5d1ca8f03d47579d0ce0b367180e9b55e | 8a51e77a59cdeef216d4b6c41e4b882677db9596 | refs/heads/master | 2023-03-21T21:57:22.190835 | 2022-07-14T01:09:49 | 2022-07-14T01:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | #pragma once
#include <EtFramework/Audio/AudioData.h>
#include <EtPipeline/Content/EditorAsset.h>
namespace et {
namespace pl {
//---------------------------------
// EditableAudioAsset
//
class EditableAudioAsset final : public EditorAsset<fw::AudioData>
{
DECLARE_FORCED_LINKING()
RTTR_ENABLE(EditorAsset<fw::AudioData>)
public:
// Construct destruct
//---------------------
EditableAudioAsset() : EditorAsset<fw::AudioData>() {}
virtual ~EditableAudioAsset() = default;
};
} // namespace pl
} // namespace et
| [
"illeahtion@gmail.com"
] | illeahtion@gmail.com |
c6b39db6d88e75a558aa9c0a2be56f9d4df2d5fa | 303c22dd001c3634bd2c80fe22b5468b82ae641f | /data_structures/graph/grid/bfs.cpp | e8878d27d2a9960cb10de4bfd9749293bf57b8d2 | [] | no_license | VaibhavSaraf/Algorithms | 8551b35f1fe7c0af1a67df43e532b6f481f5a2d7 | 72acf2e84267d4e6696e955bf0527e37a0063619 | refs/heads/master | 2023-06-05T23:09:41.735584 | 2021-07-05T08:21:27 | 2021-07-05T08:21:27 | 261,447,982 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,313 | cpp | #include <bits/stdc++.h>
using namespace std;
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
bool visited[1001][1001];
int dist[1001][1001];
int n, m;
bool isValid(int x, int y)
{
if (x < 1 || x > n || y < 1 || y > m)
return false;
if (visited[x][y] == true)
return false;
return true;
}
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
void bfs(int srcX, int srcY)
{
queue<pair<int, int>> q;
q.push({srcX, srcY});
visited[srcX][srcY] = true;
dist[srcX][srcY] = 0;
while (!q.empty())
{
int currX = q.front().first;
int currY = q.front().second;
q.pop();
for (int i = 0; i < 4; i++)
{
if (isValid(currX + dx[i], currY + dy[i]))
{
int newX = currX + dx[i];
int newY = currY + dy[i];
dist[newX][newY] = dist[currX][currY] + 1;
visited[newX][newY] = 1;
q.push({newX, newY});
}
}
}
}
int main()
{
OJ;
cin >> n >> m; // n=rows, m=cols
bfs(4, 2);
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= m; j++)
cout << dist[i][j] << " ";
cout << endl;
}
return 0;
} | [
"vaibhavgsaraf@gmail.com"
] | vaibhavgsaraf@gmail.com |
214e312b5fddc0c09482b257691853d363234c29 | 7d92c91d6ceae5e55d897f34f84a31b08b5d288c | /abc/117/A.cpp | 90dc1e440fb91696994f398d36c92b0b16a626a2 | [] | no_license | umaumax/atcoder | 68cd9f5dc10bf54a2b670522e5327051e8148043 | bf506ef04ad0592108ce231c379221c529ba88cc | refs/heads/master | 2020-05-03T04:46:03.061324 | 2019-04-15T14:07:21 | 2019-04-15T14:07:21 | 178,431,089 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
int main(int argc, char* argv[]) {
int T, X;
std::cin >> T >> X;
std::cout << (double)T / X << std::endl;
return 0;
}
| [
"umauma7083@gmail.com"
] | umauma7083@gmail.com |
daaffa4eb12a15fdf84694bea161200b160c6965 | 05e7a96c4390e9cc51c22ecc25229836a0f2c960 | /graphicsview-1/main.cpp | e912f67abd8b0c882e5b53fa6be2384fbe2fff17 | [] | no_license | chgans/leda-playground | cafe51fc9bb3f0e6652e63c57ef2e11736b994e5 | 61c1bde60b527978330e3855f7647245e729a603 | refs/heads/master | 2020-12-24T15:49:50.339734 | 2016-03-09T04:50:13 | 2016-03-09T04:50:13 | 30,560,286 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,233 | cpp | #include "mainwindow.h"
#include "mainview.h"
#include "scene.h"
#include <QApplication>
#include <QDebug>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QGraphicsPolygonItem>
#include <QGraphicsSimpleTextItem>
#include <QGraphicsItemGroup>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QColor>
#include <QRgb>
#include <QPen>
#include <QBrush>
#include <QFont>
#include <QtMath>
#include <QVector>
QVector<double> readPosition(const QJsonArray a)
{
double x = 0.0, y = 0.0, z = 0.0;
switch (a.size()) {
case 3:
z = a[2].toDouble();
case 2:
x = a[0].toDouble();
y = a[1].toDouble();
break;
default:
qDebug() << "Invalid position";
break;
}
QVector<double> pos;
pos << x << y << z;
return pos;
}
QPen readPen(const QJsonObject &obj)
{
QPen pen;
pen.setWidth(obj["width"].toDouble());
pen.setColor(QColor(obj["color"].toString()));
return pen;
}
QBrush readBrush(const QJsonObject &obj)
{
QBrush brush;
brush.setColor(obj["color"].toString());
brush.setStyle(Qt::SolidPattern);
return brush;
}
QFont readFont(const QJsonObject &obj)
{
QFont font;
font.setFamily(obj["family"].toString());
font.setPointSizeF(obj["size"].toDouble());
font.setWeight(QFont::Bold);
font.setBold(false);
font.setItalic(false);
font.setUnderline(false);
font.setStrikeOut(false);
return font;
}
QVector<QPointF> readPointList(const QJsonArray a)
{
QVector<QPointF> points;
foreach (QJsonValue val, a) {
points << QPointF(val.toArray()[0].toDouble(),
val.toArray()[1].toDouble());
}
return points;
}
// Apply a radial symetry to path using the mid-point of the segment [p0,pn] and return the result.
QPainterPath radialSymetricPath(const QPainterPath &path)
{
QPainterPath result;
int n = path.elementCount();
result = path.toReversed();
result.setElementPositionAt(0,
path.elementAt(0).x,
path.elementAt(0).y);
for (int i=1; i<(n-1); ++i) {
int to = i, ref = to - 1, from1 = n - i, from2 = from1 - 1;
qreal dx = path.elementAt(from2).x - path.elementAt(from1).x;
qreal dy = path.elementAt(from2).y - path.elementAt(from1).y;
result.setElementPositionAt(to,
result.elementAt(ref).x - dx,
result.elementAt(ref).y - dy);
}
result.setElementPositionAt(n-1,
path.elementAt(n-1).x,
path.elementAt(n-1).y);
return result;
}
// Apply an axial symetry to path using the axis (p0,pn) and return the result
QPainterPath axialSymetricPath(const QPainterPath &path)
{
QPainterPath result = path;
int n = result.elementCount();
QLineF axis(result.elementAt(0).x, result.elementAt(0).y,
result.elementAt(n-1).x, result.elementAt(n-1).y);
for (int i=1; i<(n-1); ++i) {
QLineF line(result.elementAt(0).x, result.elementAt(0).y,
result.elementAt(i).x, result.elementAt(i).y);
line.setAngle(axis.angle() + line.angleTo(axis));
result.setElementPositionAt(i, line.p2().x(), line.p2().y());
}
return result;
}
#include "pcbpalettesettingsdialog.h"
#include "pcbpalettemanager.h"
#include "pcbpalettemanagerdialog.h"
#include "designlayermanager.h"
#include <QDir>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("Libre EDA");
QCoreApplication::setOrganizationDomain("libreeda.org");
QCoreApplication::setApplicationName("graphicsview-1");
PcbPaletteManager *paletteManager = PcbPaletteManager::instance();
paletteManager->setPalettesPath(QDir::currentPath() + "/../graphicsview-1/");
paletteManager->loadPalettes();
DesignLayerManager *layerManager = DesignLayerManager::instance();
// layerManager->setProfilePath();
// layerManager->loadProfiles();
layerManager->loadFromDefaults();
PcbPalette *palette = paletteManager->activePalette();
foreach (DesignLayer *layer, layerManager->allLayers()) {
QColor color = palette->color(PcbPalette::ColorRole(layer->index() + 1));
layer->setColor(color);
}
Scene scene(-5000, -5000, 10000, 10000); // um
{
QString filename("../graphicsview-1/test.json");
QFile file(filename);
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << "Couldn't open" << filename;
return 1;
}
QJsonParseError error;
QJsonDocument doc = QJsonDocument::fromJson(file.readAll(), &error);
if (doc.isNull()) {
qDebug() << "Doc is null";
qDebug() << error.errorString() << error.offset;
return 1;
}
if (!doc.isObject()) {
qDebug() << "Doc is not an object!";
return 1;
}
// Header
QJsonObject obj = doc.object();
qDebug() << obj["producer"].toString()
<< obj["version"].toString()
<< obj["author"].toString()
<< obj["license"].toString();
// Graphical items
if (!obj.keys().contains("items")) {
qDebug() << "Document has no items";
return 1;
}
QJsonArray items = obj["items"].toArray();
foreach (QJsonValue val, items) {
if (!val.isObject()) {
qDebug() << "Item is not an object";
continue;
}
obj = val.toObject();
QString type = obj["type"].toString();
if (type.isNull()) {
qDebug() << "Item has no type";
continue;
}
QGraphicsItem *item;
QVector<double> pos = readPosition(obj["position"].toArray());
QVector<QPointF> points = readPointList(obj["points"].toArray());
int layerIndex = obj["layer"].toInt();
DesignLayer *layer = layerManager->layerAt(layerIndex);
QColor color = layer->color();
qDebug() << layer->defaultName() << layer->index() << layer->color();
if (type.toLower() == "rectangle") {
QGraphicsRectItem *ritem = new QGraphicsRectItem();
ritem->setRect(QRectF(points[0], points[1]));
QPen pen;
pen.setWidth(0);
QBrush brush(color);
ritem->setPen(pen);
ritem->setBrush(brush);
item = ritem;
}
else if (type.toLower() == "polyline") {
QGraphicsPolygonItem *pitem = new QGraphicsPolygonItem();
pitem->setPolygon(QPolygonF(points));
QPen pen;
pen.setWidth(obj["width"].toInt());
pen.setColor(color);
pen.setCapStyle(Qt::RoundCap);
pen.setJoinStyle(Qt::RoundJoin);
pitem->setPen(pen);
item = pitem;
}
else {
continue;
}
item->setPos(pos[0], pos[1]);
item->setZValue(pos[2]);
item->setOpacity(0.75);
item->setFlag(QGraphicsItem::ItemIsMovable, true);
item->setFlag(QGraphicsItem::ItemIsSelectable, true);
item->setParentItem(layer);
}
layerManager->enableOnlyUsedLayers();
}
MainWindow *w = new MainWindow;
w->setGraphicsScene(&scene);
w->show();
app.exec();
delete w;
return 0;
}
/*
QPainterPath: Element count=5
-> MoveTo(x=0, y=0)
-> CurveTo(x=40, y=50)
-> CurveToData(x=80, y=100)
-> CurveToData(x=130, y=100)
-> LineTo(x=180, y=30)
QPainterPath: Element count=5
-> MoveTo(x=180, y=30)
-> LineTo(x=130, y=100)
-> CurveTo(x=80, y=100)
-> CurveToData(x=40, y=50)
-> CurveToData(x=0, y=0)
QPainterPath: Element count=5
-> MoveTo(x=0, y=0)
-> LineTo(x=-40, y=-50)
-> CurveTo(x=-80, y=-100)
-> CurveToData(x=-130, y=-100)
-> CurveToData(x=-180, y=-30)
*/
| [
"chgans@gna.org"
] | chgans@gna.org |
453a0286d1a608e138d38a42dc63156c739687b4 | fd8bfa1ddc32ad1ee24b2f9ecc7ec860f5690443 | /Bcore/src/main/jni/Hook/UnixFileSystemHook.cpp | e7d70da1610c449be5468034107dc51c19f0001c | [
"Apache-2.0"
] | permissive | YunShiTiger/BlackDex | 247ee95c33426ab0b0270dadd674b83b0f19e18d | 095ad946e253b4fbdd182483d80cf594a796fbb8 | refs/heads/main | 2023-05-14T12:33:05.019390 | 2021-06-05T18:41:32 | 2021-06-05T18:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,263 | cpp | //
// Created by Milk on 4/9/21.
//
#include <IO.h>
#include "UnixFileSystemHook.h"
#import "JniHook/JniHook.h"
#include "BaseHook.h"
/*
* Class: java_io_UnixFileSystem
* Method: canonicalize0
* Signature: (Ljava/lang/String;)Ljava/lang/String;
*/
HOOK_JNI(jstring, canonicalize0, JNIEnv *env, jobject obj, jstring path) {
jstring redirect = IO::redirectPath(env, path);
return orig_canonicalize0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: getBooleanAttributes0
* Signature: (Ljava/lang/String;)I
*/
HOOK_JNI(jint, getBooleanAttributes0, JNIEnv *env, jobject obj, jstring abspath) {
jstring redirect = IO::redirectPath(env, abspath);
return orig_getBooleanAttributes0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: getLastModifiedTime0
* Signature: (Ljava/io/File;)J
*/
HOOK_JNI(jlong, getLastModifiedTime0, JNIEnv *env, jobject obj, jobject path) {
jobject redirect = IO::redirectPath(env, path);
return orig_getLastModifiedTime0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: setPermission0
* Signature: (Ljava/io/File;IZZ)Z
*/
HOOK_JNI(jboolean, setPermission0, JNIEnv *env, jobject obj, jobject file, jint access,
jboolean enable, jboolean owneronly) {
jobject redirect = IO::redirectPath(env, file);
return orig_setPermission0(env, obj, redirect, access, enable, owneronly);
}
/*
* Class: java_io_UnixFileSystem
* Method: createFileExclusively0
* Signature: (Ljava/lang/String;)Z
*/
HOOK_JNI(jboolean, createFileExclusively0, JNIEnv *env, jobject obj, jstring path) {
jstring redirect = IO::redirectPath(env, path);
return orig_createFileExclusively0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: list0
* Signature: (Ljava/io/File;)[Ljava/lang/String;
*/
HOOK_JNI(jobjectArray, list0, JNIEnv *env, jobject obj, jobject file) {
jobject redirect = IO::redirectPath(env, file);
return orig_list0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: createDirectory0
* Signature: (Ljava/io/File;)Z
*/
HOOK_JNI(jboolean, createDirectory0, JNIEnv *env, jobject obj, jobject path) {
jobject redirect = IO::redirectPath(env, path);
return orig_createDirectory0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: setLastModifiedTime0
* Signature: (Ljava/io/File;J)Z
*/
HOOK_JNI(jboolean, setLastModifiedTime0, JNIEnv *env, jobject obj, jobject file, jobject time) {
jobject redirect = IO::redirectPath(env, file);
return orig_setLastModifiedTime0(env, obj, redirect, time);
}
/*
* Class: java_io_UnixFileSystem
* Method: setReadOnly0
* Signature: (Ljava/io/File;)Z
*/
HOOK_JNI(jboolean, setReadOnly0, JNIEnv *env, jobject obj, jobject file) {
jobject redirect = IO::redirectPath(env, file);
return orig_setReadOnly0(env, obj, redirect);
}
/*
* Class: java_io_UnixFileSystem
* Method: getSpace0
* Signature: (Ljava/io/File;I)J
*/
HOOK_JNI(jboolean, getSpace0, JNIEnv *env, jobject obj, jobject file, jint t) {
jobject redirect = IO::redirectPath(env, file);
return orig_getSpace0(env, obj, redirect, t);
}
void UnixFileSystemHook::init(JNIEnv *env) {
const char *className = "java/io/UnixFileSystem";
JniHook::HookJniFun(env, className, "canonicalize0", "(Ljava/lang/String;)Ljava/lang/String;",
(void *) new_canonicalize0, (void **) (&orig_canonicalize0), false);
// JniHook::HookJniFun(env, className, "getBooleanAttributes0", "(Ljava/lang/String;)I",
// (void *) new_getBooleanAttributes0,
// (void **) (&orig_getBooleanAttributes0), false);
JniHook::HookJniFun(env, className, "getLastModifiedTime0", "(Ljava/io/File;)J",
(void *) new_getLastModifiedTime0, (void **) (&orig_getLastModifiedTime0),
false);
JniHook::HookJniFun(env, className, "setPermission0", "(Ljava/io/File;IZZ)Z",
(void *) new_setPermission0, (void **) (&orig_setPermission0), false);
JniHook::HookJniFun(env, className, "createFileExclusively0", "(Ljava/lang/String;)Z",
(void *) new_createFileExclusively0,
(void **) (&orig_createFileExclusively0), false);
JniHook::HookJniFun(env, className, "list0", "(Ljava/io/File;)[Ljava/lang/String;",
(void *) new_list0, (void **) (&orig_list0), false);
JniHook::HookJniFun(env, className, "createDirectory0", "(Ljava/io/File;)Z",
(void *) new_createDirectory0, (void **) (&orig_createDirectory0), false);
JniHook::HookJniFun(env, className, "setLastModifiedTime0", "(Ljava/io/File;J)Z",
(void *) new_setLastModifiedTime0, (void **) (&orig_setLastModifiedTime0),
false);
JniHook::HookJniFun(env, className, "setReadOnly0", "(Ljava/io/File;)Z",
(void *) new_setReadOnly0, (void **) (&orig_setReadOnly0), false);
JniHook::HookJniFun(env, className, "getSpace0", "(Ljava/io/File;I)J",
(void *) new_getSpace0, (void **) (&orig_getSpace0), false);
} | [
"1871357815@qq.com"
] | 1871357815@qq.com |
3d838de244e82d2997322c6c0385eee018c1ce17 | 997b0ac548c08f8ea3c57be423c946f946ecff40 | /Nutcracker/src/Nutcracker/Renderer/Texture.h | a5d701fdc76301793d8a43db40cde7ca1ffb13fc | [
"Apache-2.0"
] | permissive | DevShag/Nutcracker | 883e4158bcba847c8ef88f486e127d92dd1825ee | a5d90233b4b308db58872288a7d1637bf22e3050 | refs/heads/main | 2023-07-15T05:48:37.533974 | 2021-08-23T06:40:50 | 2021-08-23T06:40:50 | 318,091,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | h | #pragma once
#include <string>
#include "Nutcracker/Core/Core.h"
namespace Nutcracker {
class Texture {
public:
virtual ~Texture() = default;
virtual uint32_t GetWidth() const = 0;
virtual uint32_t GetHeight() const = 0;
virtual void SetData(void* data, uint32_t size) = 0;
virtual void Bind(uint32_t slot=0) const = 0;
};
class Texture2D : public Texture
{
public:
static Ref<Texture2D> Create(uint32_t width, uint32_t height);
static Ref<Texture2D> Create(const std::string& path);
};
}
| [
"alishaguftadev@gmail.com"
] | alishaguftadev@gmail.com |
23a1f70bb567882962fcd8275c76416fb371ac5e | 8d1ff170385e7b556ac7b8fdf67a00701a6b8a73 | /latentred/firmware/UART.h | 47ead4013f5381d48fd3c551b1cb21b1fce44ee6 | [
"BSD-3-Clause"
] | permissive | azonenberg/latentpacket | 92db28e3e61ff6e94cdbc90bdb58a87b55f484d2 | 9de75f116f3d6734547fea574ad9deece2825625 | refs/heads/master | 2023-08-17T03:33:40.458469 | 2023-08-14T08:06:28 | 2023-08-14T08:06:28 | 129,678,427 | 25 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 4,116 | h | /***********************************************************************************************************************
* *
* LATENTPACKET v0.1 *
* *
* Copyright (c) 2019 Andrew D. Zonenberg *
* 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 author nor the names of any contributors may be used to endorse or promote products *
* derived from this software without specific prior written permission. *
* *
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS "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 AUTHORS BE HELD 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 uart_h
#define uart_h
/**
@file
@author Andrew D. Zonenberg
@brief UART driver
*/
/**
@brief Driver for a UART
*/
class UART : public CharacterDevice
{
public:
UART(volatile usart_t* lane, uint32_t baud_div = 181)
: UART(lane, lane, baud_div)
{}
//we calculate 217 for 115.2 Kbps but experimentally we need 181, why??
//This is suggestive of APB1 being 20.8 MHz instead of 25.
UART(volatile usart_t* txlane, volatile usart_t* rxlane, uint32_t baud_div = 181);
//TX side
virtual void PrintBinary(char ch);
void Printf(const char* format, ...);
void WritePadded(const char* str, int minlen, char padding, int prepad);
protected:
volatile usart_t* m_txlane;
volatile usart_t* m_rxlane;
};
#endif
| [
"azonenberg@drawersteak.com"
] | azonenberg@drawersteak.com |
83ad6f621a61beb8e8688cb56b81f4496caccb47 | 488effd96f778ac24ec956a611b41282cfb6672d | /install/include/hpp/constraints/hybrid-solver.hh | 18a6bd0056e344f6210de61aed2db6628cffa754 | [] | no_license | 0000duck/hpp_source_code | c9f92ad813df2ae7d6ebfcd6331c2128b2b73d16 | e155580ba6a0dcfa0d552bd998fc4b7df97bfb3f | refs/heads/master | 2022-02-24T09:09:22.725116 | 2019-09-03T07:48:42 | 2019-09-03T07:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | hh | // Copyright (c) 2017, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-constraints.
// hpp-constraints is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later version.
//
// hpp-constraints 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 Lesser Public License for more details. You should have
// received a copy of the GNU Lesser General Public License along with
// hpp-constraints. If not, see <http://www.gnu.org/licenses/>.
#ifndef HPP_CONSTRAINTS_HYBRID_SOLVER_HH
# define HPP_CONSTRAINTS_HYBRID_SOLVER_HH
# warning "This file is deprecated include <hpp/constraints/solver/by-substitution> instead"
# include <hpp/constraints/solver/by-substitution.hh>
#endif // HPP_CONSTRAINTS_HYBRID_SOLVER_HH
| [
"352376886@qq.com"
] | 352376886@qq.com |
ec1d202fe3bd9ece445a473a12725f2c0cc58838 | cd70f8f1349310bfea59967d46373fac2ba4a65b | /course 1/Programming/semestr 1/lab2/8_bez_samoperetiniv/8.cpp | ee06ecaaa4747f6605cef353d2fe4b82699f8e79 | [] | no_license | SymphonyOfTranquility/Univ | 0a0ad37d4ff4b2d42c3ff6eb9785964f232f8ad7 | c1f9d7f7537547ca8f96fc422adee6b7bc9cacc8 | refs/heads/master | 2023-02-06T18:12:26.556651 | 2020-12-29T20:12:58 | 2020-12-29T20:12:58 | 325,336,012 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,215 | cpp | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
struct pt{
double x,y;
};
double formula(pt a, pt b, pt p)
{
return (p.x - a.x)*(b.y - a.y) - (p.y - a.y)*(b.x - a.x);
}
bool proverka(vector<pt> m, long i, long n)
{
double a = formula(m[i], m[(i-2+n)%n], m[(i-1+n)%n]);
double b = formula(m[i], m[(i-2+n)%n], m[(i-3+n)%n]);
if (a == 0 || b == 0 || (a < 0 && b < 0) || (a > 0 && b > 0))
return false;
return true;
}
bool global_prov(vector<pt> m, long i, long n)
{
if (i == n-1){
if (m[0].x == m[n-1].x && m[0].y == m[n-1].y)
return false;
if (i > 2 && (!proverka(m,i,n) || !proverka(m,0,n) || !proverka(m,1,n)))
return false;
}
if (i > 0 && m[i].x == m[i-1].x && m[i].y == m[i-1].y)
return false;
if (i == 2 && formula(m[2], m[0], m[1]) == 0)
return false;
if (i >= 3 && !proverka(m,i,n))
return false;
return true;
}
long double sum_next(pt a, pt b){
return ((a.x + b.x)*(a.y - b.y)/2.0);
}
long double plosh(vector<pt> a)
{
long n = a.size();
long double s = 0;
for (long i = 0;i < n; ++i)
s += sum_next(a[(i+1)%n],a[i]);
return abs(s);
}
long double len(pt a, pt b){
return sqrt((a.x - b.x)*(a.x - b.x) + (a.y - b.y)*(a.y - b.y));
}
long double perimetr(vector<pt> a)
{
long double p = 0;
long n = a.size();
for (long i = 0; i < n; ++i)
p += len(a[i],a[(i+1)%n]);
return p;
}
int main()
{
// принято что многоугольник выпуклый
long n;
bool err = false;
vector<pt> mas;
do{
if (err)
cout << "n less than 3\n";
err = true;
cin >> n;
}
while (n <= 2);
mas.resize(n);
for (long i = 0;i < mas.size(); ++i){
cin >> mas[i].x >> mas[i].y;
if (!global_prov(mas,i,n)){
--i;
cout << "mistake\nanother point, please:\n";
}
}
bool flag = true;
long double s = plosh(mas);
long double p = perimetr(mas);
cout << s << ' ' << p;
return 0;
}
| [
"mysechko01@gmail.com"
] | mysechko01@gmail.com |
92f8b43d068c2e82a3228cdccdb6a114df9b7212 | ee22fa7476a52f3fe2f9bc88d6c8f43f614cdba6 | /Codeforces/D2-256A.cpp | a640fad785667bb2bf692f9c83e95e850a733b4f | [] | no_license | Sillyplus/Solution | 704bff07a29709f64e3e1634946618170d426b72 | 48dcaa075852f8cda1db22ec1733600edea59422 | refs/heads/master | 2020-12-17T04:53:07.089633 | 2016-07-02T10:01:28 | 2016-07-02T10:01:28 | 21,733,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
const int MN = 10010;
int a1, a2, a3;
int b1, b2, b3;
int n, a, b, ans;
int main() {
cin >> a1 >> a2 >> a3;
cin >> b1 >> b2 >> b3;
cin >> n;
a = a1 + a2 + a3;
b = b1 + b2 + b3;
ans = 0;
ans = ans + (a % 5 == 0 ? (a/5): (a/5)+1);
ans = ans + (b % 10 == 0 ? (b/10): (b/10)+1);
if (ans <= n)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| [
"oi_boy@sina.cn"
] | oi_boy@sina.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.