blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5492282644a6f1b3d4f24ba8f8f53a415343219d | 7d3ce9efa25199f18f3103e09d11c33aa6424754 | /Assignment_05_Jason_Diaz/Lab5.cpp | 49b872c5b691ecc7e120568639fd32beb6bca9e4 | [] | no_license | Jason-Diaz/Hospital-System | f977e7bf9f75b1aced19612358090c77ea26e019 | 37b3dec35974b88ac077d4c58506dae7ca380da7 | refs/heads/master | 2020-06-14T19:28:44.292047 | 2019-07-03T18:02:35 | 2019-07-03T18:02:35 | 195,104,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,165 | cpp | // Lab5.cpp : Defines the entry point for the console application.
// Jason Diaz
#include "stdafx.h"
#include "PatientAccount.h"
#include "iostream"
using namespace std;
/* main: a menu that allows the user to enter a type of surgery,
* enter one or more types of medication, and check the patient out of the hospital.
* When the patient checks out, the total charges is displayed.
*/
int main()
{
PatientAccount account;
int userInput = 0;
bool looper = true;
do {
// Home menu
std::cout << " Group 3 Hospital" << std::endl;
std::cout << "Enter one of the following menu choices:" << std::endl;
std::cout << "1 - charge for surgery" << std::endl;
std::cout << "2 - charge for medication" << std::endl;
std::cout << "3 - check patient out" << std::endl;
std::cout << "0 - exit program\n" << std::endl;
std::cin >> userInput;
switch (userInput) {
case 1: // charge for surgery
cout << "\nEnter a corresponding value for one of the following surgeries:" << endl;
account.surgeriesToScreen();
cin >> userInput;
if (userInput > 0 && userInput < 6) {
account.chargeForSurgery(userInput);
}
break;
case 2: // charge for medication
do {
// sub-menu
cout << "\nEnter a corresponding value for one of the following medications:" << endl;
account.medicationsToScreen();
cin >> userInput;
if (userInput > 0 && userInput < 6) {
account.chargeForMedication(userInput);
cout << "Enter 1 if you would like to add another medication, otherwise 0" << endl;
cin >> userInput;
if (userInput == 0) {
looper = false;
userInput = 1; // to bring us back to the main menu
}
}
} while (looper);
break;
case 3: // check patient out
std::cout << "\nEnter how many days the patient has stayed in care?" << endl;
std::cin >> userInput;
account.setDaysStayed(userInput);
cout << "\nThe Patient has been checked out" << endl;
account.chargeToScreen();
userInput = 0;
}
} while (userInput != 0); // if 0 is entered, the program is exited
system("pause");
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
18781da776ddf98a231e9283f61e29107ddb61fe | 228b25458e74199b18bfcdd0d1dc400e39e4a651 | /old/1002/main.cpp | d1377a94428c1fa39a3b3ad03d6b040bd6c6ecd5 | [] | no_license | luxroot/baekjoon | 9146f18ea345d6998e471439117516f2ea26f22c | ed40287fd53ae1f41d2958c68e6e04d498d528b9 | refs/heads/master | 2023-06-27T05:50:41.303356 | 2021-08-06T04:18:33 | 2021-08-06T04:18:33 | 111,078,357 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | #include <iostream>
#include <cmath>
using namespace std;
double dist(double x1, double y1, double x2, double y2){
return sqrt( (double) (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) );
}
int main(){
int n;
int x1,x2,y1,y2,r1,r2;
cin >> n;
for(int i=0;i<n;i++){
cin >>x1>>y1>>r1>>x2>>y2>>r2;
if(x1==x2 && y1==y2){
if(r1==r2)
cout << -1 << endl;
else
cout << 0 << endl;
}
else{
double dis = dist(x1,y1,x2,y2);
if ((r1 + r2) > dis && abs(r1 - r2) < dis)
cout << 2 << endl;
else if ((r1 + r2) == dis || abs(r1-r2)==dis)
cout << 1 << endl;
else
cout << 0 << endl;
}
}
return 0;
} | [
"shinmg2520@gmail.com"
] | shinmg2520@gmail.com |
1d6b357ae4cad37028596ba5b9ef8a681155fb54 | 1168cf2a944e410be679ef793f48cf5e3e4ec8fa | /Simulado.cpp | 8c1e99e21ff8bcd8c083d2be2a0b26efe6d433d7 | [] | no_license | diogo762/CTFLMockExam | ac3daf278ea3610fea2ec1373e018d20e4adf970 | be59172b106c0cfe7b1743ef7b465b6b0e222583 | refs/heads/master | 2023-01-22T15:16:38.481266 | 2020-11-20T13:35:35 | 2020-11-20T13:35:35 | 314,562,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,028 | cpp | #include <iostream>
#include <string>
#include "base.h"
#include "capitulo1.h"
#include "capitulo2.h"
#include "capitulo3.h"
#include "capitulo4.h"
#include "capitulo5.h"
#include "capitulo6.h"
#include "real.h"
using namespace std;
int main() {
cout << "* * * * * ** * * ** * * * * " << endl;
cout << "*Pratctice Test ISQTB CTFL*" << endl;
cout << "* * * * * * * * * * * * * *" << endl;
cout << "Press Enter to start the quiz .. " << endl;
cin.get();
int opt;
cout << "Selecione uma opcao e pressione enter" << endl;
cout <<"1 = 25 Questions - chapter 1"<< endl;
cout <<"2 = 25 Questions - chapter 2"<< endl;
cout <<"3 = 25 Questions - chapter 3"<< endl;
cout <<"4 = 25 Questions - chapter 4"<< endl;
cout <<"5 = 25 Questions - chapter 5"<< endl;
cout <<"6 = 25 Questions - chapter 6 "<< endl;
cout <<"7 = 40 Questions - All Chapters "<< endl;
cin >> opt;
switch(opt){
case 1:{
cap1 *cp = new cap1();
cout << "Your Total Score is " << Total << "out of 100" << endl;
} break;
case 2: {
cap2 *cp2 = new cap2();
cout << "Your Total Score is " << Total << "out of 100" << endl;
}break;
case 3:{
cap3 *cp3 = new cap3();
cout << "Your Total Score is " << Total << "out of 100" << endl;
}break;
case 4:{
cap4 *cp4 = new cap4();
cout << "Your Total Score is " << Total << "out of 100" << endl;
} break;
case 5: {
cap5 *cp5 = new cap5();
cout << "Your Total Score is " << Total << "out of 100" << endl;
} break;
case 6: {
cap6 *cp6 = new cap6();
cout << "Your Total Score is " << Total << "out of 100" << endl;
}break;
case 7:{
cap7 *cp7 = new cap7();
cout << "Your Total Score is " << Total << "out of 100" << endl;
}break;
default:
cout << "Opcao invalida";
return 0;
}
if (Total >= 70)
{
cout << "Great you passed the quiz!" << endl;
cout << "&&&&&&&&&&&&" << endl;
cout << "& Congrats &" << endl;
cout << "&&&&&&&&&&&&" << endl;
}
else {
cout << "Oh no! you failed the quiz." << endl;
cout << "better luck next time" << endl;
}
return 0;
}
| [
"diogo762@hotmail.com"
] | diogo762@hotmail.com |
f383970d0cdc5a3c1a45d170c8532c9a99cdb4b9 | cfa625b06d4924a6b69d5b9add2c19da0ba4f92c | /PhysX_3.4/Samples/SampleFramework/renderer/include/RendererParticleSystemShape.h | 86aba09cb25e593e539333073e882b709a8698db | [] | no_license | ldotn/simple-physx | a731775fe27281b55b03d646f72dd275eaa4befa | a065a9c734c134074c63c80a9109a398b22d040c | refs/heads/master | 2022-03-22T20:49:42.997588 | 2019-12-01T15:45:01 | 2019-12-01T15:49:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,846 | h | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation and
// any modifications thereto. Any use, reproduction, disclosure, or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA Corporation is strictly prohibited.
//
// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
//
// Information and code furnished is believed to be accurate and reliable.
// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
// information or for any infringement of patents or other rights of third parties that may
// result from its use. No license is granted by implication or otherwise under any patent
// or patent rights of NVIDIA Corporation. Details are subject to change without notice.
// This code supersedes and replaces all information previously supplied.
// NVIDIA Corporation products are not authorized for use as critical
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.
#ifndef RENDERER_PARTICLE_SYSTEM_SHAPE_H
#define RENDERER_PARTICLE_SYSTEM_SHAPE_H
#include <RendererShape.h>
#include "gpu/PxGpu.h"
// fwd to avoid including cuda.h
#if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64)
typedef unsigned long long CUdeviceptr;
#else
typedef unsigned int CUdeviceptr;
#endif
namespace SampleRenderer
{
class RendererVertexBuffer;
class RendererInstanceBuffer;
class RendererIndexBuffer;
class RendererParticleSystemShape : public RendererShape
{
enum VertexBufferEnum
{
STATIC_VB,
DYNAMIC_POS_VB,
DYNAMIC_COL_VB,
NUM_VERTEX_BUFFERS
};
public:
RendererParticleSystemShape(Renderer &renderer,
physx::PxU32 num_vertices,
bool _mInstanced,
bool _mFading,
PxReal fadingPeriod = 1.0f,
PxReal debriScaleFactor = 1.0f,
PxCudaContextManager* ctxMgr=NULL
);
virtual ~RendererParticleSystemShape(void);
bool updateBillboard(PxU32 validParticleRange,
CUdeviceptr positions,
CUdeviceptr validParticleBitmap,
CUdeviceptr lifetimes,
PxU32 numParticles);
bool updateInstanced(PxU32 validParticleRange,
CUdeviceptr positions,
CUdeviceptr validParticleBitmap,
CUdeviceptr orientations,
PxU32 numParticles);
void updateBillboard(PxU32 validParticleRange,
const PxVec3* positions,
const PxU32* validParticleBitmap,
const PxReal* lifetime = NULL);
void updateInstanced(PxU32 validParticleRange,
const PxVec3* positions,
const PxU32* validParticleBitmap,
const PxMat33* orientation);
bool isInteropEnabled() { return mCtxMgr != NULL; }
private:
bool mInstanced;
bool mFading;
PxReal mFadingPeriod;
PxU32 mMaxParticles;
RendererVertexBuffer* mVertexBuffer[NUM_VERTEX_BUFFERS];
RendererInstanceBuffer* mInstanceBuffer;
RendererIndexBuffer* mIndexBuffer;
PxCudaContextManager* mCtxMgr;
void initializeVertexBuffer(PxU32 color);
void initializeBuffersAsSimpleConvex(PxU32 color, PxReal scaleFactor);
void initializeInstanceBuffer();
};
} // namespace SampleRenderer
#endif
| [
"pachesantiago@gmail.com"
] | pachesantiago@gmail.com |
6de8253083eeb8c9b1a14ea7592a156a8797ab19 | 54bd24a7ec00e2128e74704833035740926fe1a2 | /c3dEngine2/c3dEngine/c3dEngine/platform/win32/c3dProgramPlatformDepend.h | 2cec8641e00fa0dc17aba2564b915909fbf6a969 | [
"MIT"
] | permissive | qaz734913414/c3dEngine2 | 3739073d7d6f1046cdfce19ca7a5fdc9c7a9bada | 0c12d077d8f2bac8c12b8f720eccc5a2f3f3a7c1 | refs/heads/master | 2020-04-15T19:47:52.391730 | 2015-12-14T16:07:29 | 2015-12-14T16:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | h | //
// c3dProgramPlatformDepend.h
// HelloOpenGL
//
// Created by wantnon (yang chao) on 14-3-9.
//
//
#ifndef __HelloOpenGL__c3dProgramPlatformDepend__
#define __HelloOpenGL__c3dProgramPlatformDepend__
#include <iostream>
#include <string>
using namespace std;
#include "common/c3dGL.h"
GLuint createShader_plat(const char*shaderName,const char*ext);
#endif /* defined(__HelloOpenGL__c3dProgramPlatformDepend__) */
| [
"350479720@qq.com"
] | 350479720@qq.com |
fcb0849fce83fd44f1d843be194a1106c5ec70cc | e7cb4db8cec75d02a956325c5a56333c7012ded5 | /TESTS/operator_string_overload.cpp | 5b656ce7362d9a8a6f35b85a65f5431c12615d64 | [] | no_license | spaceface102/CS3A | de9c3a0821d6eb5561a65a874f165a8f21b4b8ce | 543ea00d494f96d0ab19fcabc8bb38e59439b1e3 | refs/heads/master | 2023-07-14T02:24:44.111161 | 2021-08-30T20:46:05 | 2021-08-30T20:46:05 | 385,648,333 | 0 | 1 | null | 2021-07-18T06:21:47 | 2021-07-13T15:17:39 | C++ | UTF-8 | C++ | false | false | 302 | cpp | #include <string>
#include <iostream>
bool operator>(const std::string& lhs, const std::string& rhs);
int main(void)
{
std::string lhs = "abc";
std::string rhs = "ABC";
std::cout << (lhs < rhs) << "\n";
return 0;
}
bool operator>(const std::string& lhs, const std::string& rhs)
{
} | [
"osbaldogonzalezislc@gmail.com"
] | osbaldogonzalezislc@gmail.com |
9e3381bab71ab232de7d0011788b91ff9400142e | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/tar/new_hunk_116.cpp | 1bf54d64aa07f8244cbe021433405f616c70a9a2 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | {
ts->tv_sec = s;
ts->tv_nsec = ns;
return decode_time_success;
}
}
return decode_time_bad_header;
}
static bool
decode_time (struct timespec *ts, char const *arg, char const *keyword)
{
switch (_decode_time (ts, arg, keyword))
{
case decode_time_success:
return true;
case decode_time_bad_header:
ERROR ((0, 0, _("Malformed extended header: invalid %s=%s"),
keyword, arg));
return false;
case decode_time_range:
out_of_range_header (keyword, arg, - (uintmax_t) TYPE_MINIMUM (time_t),
TYPE_MAXIMUM (time_t));
return false;
}
return true;
}
static void
code_num (uintmax_t value, char const *keyword, struct xheader *xhdr)
{
| [
"993273596@qq.com"
] | 993273596@qq.com |
60565730286d585d39830a7f0a4e3a957e22c6fc | d92304badb95993099633c5989f6cd8af57f9b1f | /Codeforces/318-A.cpp | b3af1c4a917453cbbcc08af318ace8d17bfa52f7 | [] | no_license | tajirhas9/Problem-Solving-and-Programming-Practice | c5e2b77c7ac69982a53d5320cebe874a7adec750 | 00c298233a9cde21a1cdca1f4a2b6146d0107e73 | refs/heads/master | 2020-09-25T22:52:00.716014 | 2019-12-05T13:04:40 | 2019-12-05T13:04:40 | 226,103,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | #include <stdio.h>
int main()
{
unsigned long long int n,k,i,c=1,p=0;
scanf("%llu %llu",&n,&k);
if(n%2==1)
{
if(k <= (n/2)+1)
{
p = 1+(k-1)*2;
}
else
{
p = 2+(k-((n/2)+1)-1)*2;
}
}
else
{
if(k <= (n/2))
{
p = 1+(k-1)*2;
}
else
{
p = 2+(k-((n/2))-1)*2;
}
}
printf("%llu",p);
return 0;
}
| [
"tajircuet@gmail.com"
] | tajircuet@gmail.com |
11e0e58894c0a1aacf2067708e479180ffcfa5d0 | fd647be74e295e63896b2b02aae63161dc2cdf65 | /src/qt/guiutil.h | 3e3d9ed306dc6cb769dacf9cedc24616c4ff6405 | [
"MIT"
] | permissive | UKC-Developer/UgandanKnucklesCoin | ac4397da624907b882fac78e02cf9fc8bdba3121 | 02d4701cf75430b11d969d342c0b49251ba52469 | refs/heads/master | 2021-09-06T17:36:35.846730 | 2018-02-09T04:44:36 | 2018-02-09T04:44:36 | 117,760,189 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,257 | h | #ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QString>
#include <QObject>
#include <QMessageBox>
class SendCoinsRecipient;
QT_BEGIN_NAMESPACE
class QFont;
class QLineEdit;
class QWidget;
class QDateTime;
class QUrl;
class QAbstractItemView;
QT_END_NAMESPACE
/** Utility functions used by the Bitcoin Qt UI.
*/
namespace GUIUtil
{
// Create human-readable string from date
QString dateTimeStr(const QDateTime &datetime);
QString dateTimeStr(qint64 nTime);
// Render Bitcoin addresses in monospace font
QFont bitcoinAddressFont();
// Set up widgets for address and amounts
void setupAddressWidget(QLineEdit *widget, QWidget *parent);
void setupAmountWidget(QLineEdit *widget, QWidget *parent);
// Parse "UgandanKnucklesCoin:" URI into recipient object, return true on successful parsing
// See Bitcoin URI definition discussion here: https://bitcointalk.org/index.php?topic=33490.0
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out);
bool parseBitcoinURI(QString uri, SendCoinsRecipient *out);
// HTML escaping for rich text controls
QString HtmlEscape(const QString& str, bool fMultiLine=false);
QString HtmlEscape(const std::string& str, bool fMultiLine=false);
/** Copy a field of the currently selected entry of a view to the clipboard. Does nothing if nothing
is selected.
@param[in] column Data column to extract from the model
@param[in] role Data role to extract from the model
@see TransactionView::copyLabel, TransactionView::copyAmount, TransactionView::copyAddress
*/
void copyEntryData(QAbstractItemView *view, int column, int role=Qt::EditRole);
/** Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix
when no suffix is provided by the user.
@param[in] parent Parent window (or 0)
@param[in] caption Window caption (or empty, for default)
@param[in] dir Starting directory (or empty, to default to documents directory)
@param[in] filter Filter specification such as "Comma Separated Files (*.csv)"
@param[out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0).
Can be useful when choosing the save file format based on suffix.
*/
QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(),
const QString &dir=QString(), const QString &filter=QString(),
QString *selectedSuffixOut=0);
/** Get connection type to call object slot in GUI thread with invokeMethod. The call will be blocking.
@returns If called from the GUI thread, return a Qt::DirectConnection.
If called from another thread, return a Qt::BlockingQueuedConnection.
*/
Qt::ConnectionType blockingGUIThreadConnection();
// Determine whether a widget is hidden behind other windows
bool isObscured(QWidget *w);
// Open debug.log
void openDebugLogfile();
/** Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text
representation if needed. This assures that Qt can word-wrap long tooltip messages.
Tooltips longer than the provided size threshold (in characters) are wrapped.
*/
class ToolTipToRichTextFilter : public QObject
{
Q_OBJECT
public:
explicit ToolTipToRichTextFilter(int size_threshold, QObject *parent = 0);
protected:
bool eventFilter(QObject *obj, QEvent *evt);
private:
int size_threshold;
};
bool GetStartOnSystemStartup();
bool SetStartOnSystemStartup(bool fAutoStart);
/** Help message for Bitcoin-Qt, shown with --help. */
class HelpMessageBox : public QMessageBox
{
Q_OBJECT
public:
HelpMessageBox(QWidget *parent = 0);
/** Show message box or print help message to standard output, based on operating system. */
void showOrPrint();
/** Print help message to console */
void printToConsole();
private:
QString header;
QString coreOptions;
QString uiOptions;
};
} // namespace GUIUtil
#endif // GUIUTIL_H
| [
"UgandanKnucklesCoinDev@gmail.com"
] | UgandanKnucklesCoinDev@gmail.com |
da9abc94c7fd0efc9312e150ca04d84d3169cc51 | 4612e46be4ccd2c05c67baa6359b7d0281fd5f1a | /util/net/ssl/detail/impl/schannel.ipp | 4ac56c56d4c3abced3e1d43c6487dc40c11d6108 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | RedBeard0531/mongo_utils | eed1e06c18cf6ff0e6f076fdfc8a71d5791bb95c | 402c2023df7d67609ce9da8e405bf13cdd270e20 | refs/heads/master | 2021-03-31T01:03:41.719260 | 2018-06-03T11:27:47 | 2018-06-03T11:27:47 | 124,802,061 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,333 | ipp | /**
* Copyright (C) 2018 MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <algorithm>
#include <cstddef>
#include <memory>
#include "asio/detail/assert.hpp"
#include "mongo/util/assert_util.h"
namespace asio {
namespace ssl {
namespace detail {
/**
* Start or continue SSL handshake.
*
* Must be called until HandshakeState::Done is returned.
*
* Return status code to indicate whether it needs more data or if data needs to be sent to the
* other side.
*/
ssl_want SSLHandshakeManager::nextHandshake(asio::error_code& ec, HandshakeState* pHandshakeState) {
ASIO_ASSERT(_mode != HandshakeMode::Unknown);
ec = asio::error_code();
*pHandshakeState = HandshakeState::Continue;
if (_state == State::HandshakeStart) {
ssl_want want;
if (_mode == HandshakeMode::Server) {
// ASIO will ask for the handshake to start when the input buffer is empty
// but we want data first so tell ASIO to give us data
if (_pInBuffer->empty()) {
return ssl_want::want_input_and_retry;
}
startServerHandshake(ec);
if (ec) {
return ssl_want::want_nothing;
}
want = doServerHandshake(ec, pHandshakeState);
if (ec) {
return want;
}
} else {
startClientHandshake(ec);
if (ec) {
return ssl_want::want_nothing;
}
want = doClientHandshake(ec);
if (ec) {
return want;
}
}
setState(State::NeedMoreHandshakeData);
return want;
} else if (_state == State::NeedMoreHandshakeData) {
return ssl_want::want_input_and_retry;
} else {
ssl_want want;
if (_mode == HandshakeMode::Server) {
want = doServerHandshake(ec, pHandshakeState);
} else {
want = doClientHandshake(ec);
}
if (ec) {
return want;
}
if (want == ssl_want::want_nothing || *pHandshakeState == HandshakeState::Done) {
setState(State::Done);
} else {
setState(State::NeedMoreHandshakeData);
}
return want;
}
}
/**
* Begin graceful SSL shutdown. Either:
* - respond to already received alert signalling connection shutdown on remote side
* - start SSL shutdown by signalling remote side
*/
ssl_want SSLHandshakeManager::beginShutdown(asio::error_code& ec) {
ASIO_ASSERT(_mode != HandshakeMode::Unknown);
_state = State::HandshakeStart;
return startShutdown(ec);
}
/*
* Injest data from ASIO that has been received.
*/
void SSLHandshakeManager::writeEncryptedData(const void* data, std::size_t length) {
// We have more data, it may not be enough to decode. We will decide if we have enough on
// the next nextHandshake call.
if (_state != State::HandshakeStart) {
setState(State::HaveEncryptedData);
}
_pInBuffer->append(data, length);
}
void SSLHandshakeManager::startServerHandshake(asio::error_code& ec) {
TimeStamp lifetime;
SECURITY_STATUS ss = AcquireCredentialsHandleW(NULL,
const_cast<LPWSTR>(UNISP_NAME),
SECPKG_CRED_INBOUND,
NULL,
_cred,
NULL,
NULL,
_phcred,
&lifetime);
if (ss != SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return;
}
}
void SSLHandshakeManager::startClientHandshake(asio::error_code& ec) {
TimeStamp lifetime;
SECURITY_STATUS ss = AcquireCredentialsHandleW(NULL,
const_cast<LPWSTR>(UNISP_NAME),
SECPKG_CRED_OUTBOUND,
NULL,
_cred,
NULL,
NULL,
_phcred,
&lifetime);
if (ss != SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return;
}
}
ssl_want SSLHandshakeManager::startShutdown(asio::error_code& ec) {
DWORD shutdownCode = SCHANNEL_SHUTDOWN;
std::array<SecBuffer, 1> inputBuffers;
inputBuffers[0].cbBuffer = sizeof(shutdownCode);
inputBuffers[0].BufferType = SECBUFFER_TOKEN;
inputBuffers[0].pvBuffer = &shutdownCode;
SecBufferDesc inputBufferDesc;
inputBufferDesc.ulVersion = SECBUFFER_VERSION;
inputBufferDesc.cBuffers = inputBuffers.size();
inputBufferDesc.pBuffers = inputBuffers.data();
SECURITY_STATUS ss = ApplyControlToken(_phctxt, &inputBufferDesc);
if (ss != SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
TimeStamp lifetime;
std::array<SecBuffer, 1> outputBuffers;
outputBuffers[0].cbBuffer = 0;
outputBuffers[0].BufferType = SECBUFFER_TOKEN;
outputBuffers[0].pvBuffer = NULL;
ContextBufferDeleter deleter(&outputBuffers[0].pvBuffer);
SecBufferDesc outputBufferDesc;
outputBufferDesc.ulVersion = SECBUFFER_VERSION;
outputBufferDesc.cBuffers = outputBuffers.size();
outputBufferDesc.pBuffers = outputBuffers.data();
if (_mode == HandshakeMode::Server) {
ULONG attribs = getServerFlags() | ASC_REQ_ALLOCATE_MEMORY;
SECURITY_STATUS ss = AcceptSecurityContext(
_phcred, _phctxt, NULL, attribs, 0, _phctxt, &outputBufferDesc, &attribs, &lifetime);
if (ss != SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
_pOutBuffer->reset();
_pOutBuffer->append(outputBuffers[0].pvBuffer, outputBuffers[0].cbBuffer);
if (SEC_E_OK == ss && outputBuffers[0].cbBuffer != 0) {
ec = asio::error::eof;
return ssl_want::want_output;
} else {
return ssl_want::want_nothing;
}
} else {
ULONG ContextAttributes;
DWORD sspiFlags = getClientFlags() | ISC_REQ_ALLOCATE_MEMORY;
ss = InitializeSecurityContextW(_phcred,
_phctxt,
const_cast<SEC_WCHAR*>(_serverName.c_str()),
sspiFlags,
0,
0,
NULL,
0,
_phctxt,
&outputBufferDesc,
&ContextAttributes,
&lifetime);
if (ss != SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
// TODO - I have not found a way to hit this code path
ASIO_ASSERT(false);
}
return ssl_want::want_nothing;
}
ssl_want SSLHandshakeManager::doServerHandshake(asio::error_code& ec,
HandshakeState* pHandshakeState) {
TimeStamp lifetime;
_pOutBuffer->resize(kDefaultBufferSize);
_alertBuffer.resize(1024);
std::array<SecBuffer, 2> outputBuffers;
outputBuffers[0].cbBuffer = _pOutBuffer->size();
outputBuffers[0].BufferType = SECBUFFER_TOKEN;
outputBuffers[0].pvBuffer = _pOutBuffer->data();
outputBuffers[1].cbBuffer = _alertBuffer.size();
outputBuffers[1].BufferType = SECBUFFER_ALERT;
outputBuffers[1].pvBuffer = _alertBuffer.data();
SecBufferDesc outputBufferDesc;
outputBufferDesc.ulVersion = SECBUFFER_VERSION;
outputBufferDesc.cBuffers = outputBuffers.size();
outputBufferDesc.pBuffers = outputBuffers.data();
std::array<SecBuffer, 2> inputBuffers;
inputBuffers[0].cbBuffer = _pInBuffer->size();
inputBuffers[0].BufferType = SECBUFFER_TOKEN;
inputBuffers[0].pvBuffer = _pInBuffer->data();
inputBuffers[1].cbBuffer = 0;
inputBuffers[1].BufferType = SECBUFFER_EMPTY;
inputBuffers[1].pvBuffer = NULL;
SecBufferDesc inputBufferDesc;
inputBufferDesc.ulVersion = SECBUFFER_VERSION;
inputBufferDesc.cBuffers = inputBuffers.size();
inputBufferDesc.pBuffers = inputBuffers.data();
ULONG attribs = getServerFlags();
ULONG retAttribs = 0;
SECURITY_STATUS ss = AcceptSecurityContext(_phcred,
SecIsValidHandle(_phctxt) ? _phctxt : NULL,
&inputBufferDesc,
attribs,
0,
_phctxt,
&outputBufferDesc,
&retAttribs,
&lifetime);
if (ss < SEC_E_OK) {
if (ss == SEC_E_INCOMPLETE_MESSAGE) {
// TODO: consider using SECBUFFER_MISSING and approriate optimizations
return ssl_want::want_input_and_retry;
}
ec = asio::error_code(ss, asio::error::get_ssl_category());
if ((retAttribs & ASC_RET_EXTENDED_ERROR) && (outputBuffers[1].cbBuffer > 0)) {
_pOutBuffer->resize(outputBuffers[0].cbBuffer);
// Tell ASIO we have something to send back the last data
return ssl_want::want_output;
}
return ssl_want::want_nothing;
}
// ASC_RET_EXTENDED_ERROR is not support on Windows 7/Windows 2008 R2.
// ASC_RET_MUTUAL_AUTH is not set since we do our own certificate validation later.
invariant(attribs == (retAttribs | ASC_RET_EXTENDED_ERROR | ASC_RET_MUTUAL_AUTH));
if (inputBuffers[1].BufferType == SECBUFFER_EXTRA) {
_pExtraEncryptedBuffer->reset();
_pExtraEncryptedBuffer->append(inputBuffers[1].pvBuffer, inputBuffers[1].cbBuffer);
}
// Next, figure out if we need to send any data out
bool needOutput{false};
// Did AcceptSecurityContext say we need to continue or is it done but left data in the
// output buffer then we need to sent the data out.
if (SEC_I_CONTINUE_NEEDED == ss || SEC_I_COMPLETE_AND_CONTINUE == ss ||
(SEC_E_OK == ss && outputBuffers[0].cbBuffer != 0)) {
needOutput = true;
}
// Tell the reusable buffer size of the data written.
_pOutBuffer->resize(outputBuffers[0].cbBuffer);
// Reset the input buffer
_pInBuffer->reset();
// Check if we have any additional encrypted data
if (!_pExtraEncryptedBuffer->empty()) {
_pInBuffer->swap(*_pExtraEncryptedBuffer);
_pExtraEncryptedBuffer->reset();
setState(State::HaveEncryptedData);
}
if (needOutput) {
// If AcceptSecurityContext returns SEC_E_OK, then the handshake is done
if (SEC_E_OK == ss && outputBuffers[0].cbBuffer != 0) {
*pHandshakeState = HandshakeState::Done;
// We have output, but no need to retry anymore
return ssl_want::want_output;
}
return ssl_want::want_output_and_retry;
}
return ssl_want::want_nothing;
}
ssl_want SSLHandshakeManager::doClientHandshake(asio::error_code& ec) {
DWORD sspiFlags = getClientFlags() | ISC_REQ_ALLOCATE_MEMORY;
std::array<SecBuffer, 3> outputBuffers;
outputBuffers[0].cbBuffer = 0;
outputBuffers[0].BufferType = SECBUFFER_TOKEN;
outputBuffers[0].pvBuffer = NULL;
ContextBufferDeleter deleter(&outputBuffers[0].pvBuffer);
outputBuffers[1].cbBuffer = 0;
outputBuffers[1].BufferType = SECBUFFER_ALERT;
outputBuffers[1].pvBuffer = NULL;
ContextBufferDeleter alertDeleter(&outputBuffers[1].pvBuffer);
outputBuffers[2].cbBuffer = 0;
outputBuffers[2].BufferType = SECBUFFER_EMPTY;
outputBuffers[2].pvBuffer = NULL;
SecBufferDesc outputBufferDesc;
outputBufferDesc.ulVersion = SECBUFFER_VERSION;
outputBufferDesc.cBuffers = outputBuffers.size();
outputBufferDesc.pBuffers = outputBuffers.data();
std::array<SecBuffer, 2> inputBuffers;
SECURITY_STATUS ss;
TimeStamp lifetime;
ULONG retAttribs;
// If the input buffer is empty, this is the start of the client handshake.
if (!_pInBuffer->empty()) {
inputBuffers[0].cbBuffer = _pInBuffer->size();
inputBuffers[0].BufferType = SECBUFFER_TOKEN;
inputBuffers[0].pvBuffer = _pInBuffer->data();
inputBuffers[1].cbBuffer = 0;
inputBuffers[1].BufferType = SECBUFFER_EMPTY;
inputBuffers[1].pvBuffer = NULL;
SecBufferDesc inputBufferDesc;
inputBufferDesc.ulVersion = SECBUFFER_VERSION;
inputBufferDesc.cBuffers = inputBuffers.size();
inputBufferDesc.pBuffers = inputBuffers.data();
ss = InitializeSecurityContextW(_phcred,
_phctxt,
const_cast<SEC_WCHAR*>(_serverName.c_str()),
sspiFlags,
0,
0,
&inputBufferDesc,
0,
_phctxt,
&outputBufferDesc,
&retAttribs,
&lifetime);
} else {
ss = InitializeSecurityContextW(_phcred,
NULL,
const_cast<SEC_WCHAR*>(_serverName.c_str()),
sspiFlags,
0,
0,
NULL,
0,
_phctxt,
&outputBufferDesc,
&retAttribs,
&lifetime);
}
if (ss < SEC_E_OK) {
if (ss == SEC_E_INCOMPLETE_MESSAGE) {
return ssl_want::want_input_and_retry;
}
ec = asio::error_code(ss, asio::error::get_ssl_category());
if ((retAttribs & ISC_RET_EXTENDED_ERROR) && (outputBuffers[1].cbBuffer > 0)) {
_pOutBuffer->reset();
_pOutBuffer->append(outputBuffers[0].pvBuffer, outputBuffers[0].cbBuffer);
// Tell ASIO we have something to send back the last data
return ssl_want::want_output;
}
return ssl_want::want_nothing;
}
// ASC_RET_EXTENDED_ERROR is not support on Windows 7/Windows 2008 R2
invariant(sspiFlags == (retAttribs | ASC_RET_EXTENDED_ERROR));
if (_pInBuffer->size()) {
// Locate (optional) extra buffer
if (inputBuffers[1].BufferType == SECBUFFER_EXTRA) {
_pExtraEncryptedBuffer->reset();
_pExtraEncryptedBuffer->append(inputBuffers[1].pvBuffer, inputBuffers[1].cbBuffer);
}
}
// Next, figure out if we need to send any data out
bool needOutput{false};
// Did AcceptSecurityContext say we need to continue or is it done but left data in the
// output buffer then we need to sent the data out.
if (SEC_I_CONTINUE_NEEDED == ss || SEC_I_COMPLETE_AND_CONTINUE == ss ||
(SEC_E_OK == ss && outputBuffers[0].cbBuffer != 0)) {
needOutput = true;
}
_pOutBuffer->reset();
_pOutBuffer->append(outputBuffers[0].pvBuffer, outputBuffers[0].cbBuffer);
// Reset the input buffer
_pInBuffer->reset();
// Check if we have any additional encrypted data
if (!_pExtraEncryptedBuffer->empty()) {
_pInBuffer->swap(*_pExtraEncryptedBuffer);
_pExtraEncryptedBuffer->reset();
setState(State::HaveEncryptedData);
}
if (needOutput) {
return ssl_want::want_output_and_retry;
}
return ssl_want::want_nothing;
}
/**
* Read decrypted data if encrypted data was provided via writeData and succesfully decrypted.
*/
ssl_want SSLReadManager::readDecryptedData(void* data,
std::size_t length,
asio::error_code& ec,
std::size_t& bytes_transferred,
DecryptState* pDecryptState) {
bytes_transferred = 0;
ec = asio::error_code();
*pDecryptState = DecryptState::Continue;
// Our last state was that we needed more encrypted data, so tell ASIO we still want some
if (_state == State::NeedMoreEncryptedData) {
return ssl_want::want_input_and_retry;
}
// If we have encrypted data, try to decrypt it
if (_state == State::HaveEncryptedData) {
ssl_want wantState = decryptBuffer(ec, pDecryptState);
if (ec) {
return wantState;
}
// If remote side started shutdown, bail
if (*pDecryptState != DecryptState::Continue) {
return ssl_want::want_nothing;
}
if (wantState == ssl_want::want_input_and_retry) {
setState(State::NeedMoreEncryptedData);
}
if (wantState != ssl_want::want_nothing) {
return wantState;
}
}
// We decrypted data in the past, hand it back to ASIO until we are out of decrypted data
ASIO_ASSERT(_state == State::HaveDecryptedData);
_pInBuffer->readInto(data, length, bytes_transferred);
// Have we read all the decrypted data?
if (_pInBuffer->empty()) {
// If we have some extra encrypted data, it needs to be checked if it is at least a
// valid SSL packet, so set the state machine to reflect that we have some encrypted
// data.
if (!_pExtraEncryptedBuffer->empty()) {
_pInBuffer->swap(*_pExtraEncryptedBuffer);
_pExtraEncryptedBuffer->reset();
setState(State::HaveEncryptedData);
} else {
// We are empty so reset our state to need encrypted data for the next call
setState(State::NeedMoreEncryptedData);
}
}
return ssl_want::want_nothing;
}
ssl_want SSLReadManager::decryptBuffer(asio::error_code& ec, DecryptState* pDecryptState) {
while (true) {
std::array<SecBuffer, 4> securityBuffers;
securityBuffers[0].cbBuffer = _pInBuffer->size();
securityBuffers[0].BufferType = SECBUFFER_DATA;
securityBuffers[0].pvBuffer = _pInBuffer->data();
securityBuffers[1].cbBuffer = 0;
securityBuffers[1].BufferType = SECBUFFER_EMPTY;
securityBuffers[1].pvBuffer = NULL;
securityBuffers[2].cbBuffer = 0;
securityBuffers[2].BufferType = SECBUFFER_EMPTY;
securityBuffers[2].pvBuffer = NULL;
securityBuffers[3].cbBuffer = 0;
securityBuffers[3].BufferType = SECBUFFER_EMPTY;
securityBuffers[3].pvBuffer = NULL;
SecBufferDesc bufferDesc;
bufferDesc.ulVersion = SECBUFFER_VERSION;
bufferDesc.cBuffers = securityBuffers.size();
bufferDesc.pBuffers = securityBuffers.data();
SECURITY_STATUS ss = DecryptMessage(_phctxt, &bufferDesc, 0, NULL);
if (ss < SEC_E_OK) {
if (ss == SEC_E_INCOMPLETE_MESSAGE) {
return ssl_want::want_input_and_retry;
} else {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
}
// Shutdown has been initiated at the client side
if (ss == SEC_I_CONTEXT_EXPIRED) {
*pDecryptState = DecryptState::Shutdown;
} else if (ss == SEC_I_RENEGOTIATE) {
*pDecryptState = DecryptState::Renegotiate;
// Fail the connection on SSL renegotiations
ec = asio::ssl::error::stream_truncated;
return ssl_want::want_nothing;
}
// The network layer may have read more then 1 SSL packet so remember the extra data.
if (securityBuffers[3].BufferType == SECBUFFER_EXTRA && securityBuffers[3].cbBuffer > 0) {
ASIO_ASSERT(_pExtraEncryptedBuffer->empty());
_pExtraEncryptedBuffer->append(securityBuffers[3].pvBuffer,
securityBuffers[3].cbBuffer);
}
// Check if we have application data
if (securityBuffers[1].cbBuffer > 0) {
_pInBuffer->resetPos(securityBuffers[1].pvBuffer, securityBuffers[1].cbBuffer);
setState(State::HaveDecryptedData);
return ssl_want::want_nothing;
} else {
// Sigh, this means that the remote side sent us an TLS record with just a encryption
// header/trailer but no actual data.
//
// If we have extra encrypted data, we may have a TLS record with some data, otherwise
// we need more data from the remote side
if (!_pExtraEncryptedBuffer->empty()) {
_pInBuffer->swap(*_pExtraEncryptedBuffer);
_pExtraEncryptedBuffer->reset();
continue;
}
return ssl_want::want_input_and_retry;
}
}
}
/**
* Encrypts data to be sent to the remote side.
*
* If the message is >= max packet size, it will return want_output_and_retry, and expects
* callers to continue to call it with the same parameters until want_output is returned.
*/
ssl_want SSLWriteManager::writeUnencryptedData(const void* pMessage,
std::size_t messageLength,
std::size_t& bytes_transferred,
asio::error_code& ec) {
ec = asio::error_code();
if (_securityTrailerLength == ULONG_MAX) {
SecPkgContext_StreamSizes secPkgContextStreamSizes;
SECURITY_STATUS ss =
QueryContextAttributes(_phctxt, SECPKG_ATTR_STREAM_SIZES, &secPkgContextStreamSizes);
if (ss < SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
_securityTrailerLength = secPkgContextStreamSizes.cbTrailer;
_securityMaxMessageLength = secPkgContextStreamSizes.cbMaximumMessage;
_securityHeaderLength = secPkgContextStreamSizes.cbHeader;
}
// Do we need to fragment the message out?
if (messageLength > _securityMaxMessageLength) {
// Since the message is too large for SSL, we have to write out fragments. We rely on
// the fact that ASIO will keep giving us the same buffer back as long as it is asked to
// retry.
std::size_t fragmentLength =
std::min(_securityMaxMessageLength, messageLength - _lastWriteOffset);
ssl_want want = encryptMessage(reinterpret_cast<const char*>(pMessage) + _lastWriteOffset,
fragmentLength,
bytes_transferred,
ec);
if (ec) {
return want;
}
_lastWriteOffset += fragmentLength;
// We have more data to give ASIO after this fragment
if (_lastWriteOffset < messageLength) {
return ssl_want::want_output_and_retry;
}
// We have consumed all the data given to us over multiple consecutive calls, reset
// position.
_lastWriteOffset = 0;
// ASIO's buffering of engine calls assumes that bytes_transfered refers to all the
// bytes we transfered total when want_output is returned. It ignores bytes_transfered
// when want_output_and_retry is returned;
bytes_transferred = messageLength;
return ssl_want::want_output;
} else {
// Reset fragmentation position
_lastWriteOffset = 0;
// Send message as is without fragmentation
return encryptMessage(pMessage, messageLength, bytes_transferred, ec);
}
}
ssl_want SSLWriteManager::encryptMessage(const void* pMessage,
std::size_t messageLength,
std::size_t& bytes_transferred,
asio::error_code& ec) {
ASIO_ASSERT(_pOutBuffer->empty());
_pOutBuffer->resize(_securityTrailerLength + _securityHeaderLength + messageLength);
std::array<SecBuffer, 4> securityBuffers;
securityBuffers[0].BufferType = SECBUFFER_STREAM_HEADER;
securityBuffers[0].cbBuffer = _securityHeaderLength;
securityBuffers[0].pvBuffer = _pOutBuffer->data();
memcpy_s(_pOutBuffer->data() + _securityHeaderLength,
_pOutBuffer->size() - _securityHeaderLength - _securityTrailerLength,
pMessage,
messageLength);
securityBuffers[1].BufferType = SECBUFFER_DATA;
securityBuffers[1].cbBuffer = messageLength;
securityBuffers[1].pvBuffer = _pOutBuffer->data() + _securityHeaderLength;
securityBuffers[2].cbBuffer = _securityTrailerLength;
securityBuffers[2].BufferType = SECBUFFER_STREAM_TRAILER;
securityBuffers[2].pvBuffer = _pOutBuffer->data() + _securityHeaderLength + messageLength;
securityBuffers[3].cbBuffer = 0;
securityBuffers[3].BufferType = SECBUFFER_EMPTY;
securityBuffers[3].pvBuffer = 0;
SecBufferDesc bufferDesc;
bufferDesc.ulVersion = SECBUFFER_VERSION;
bufferDesc.cBuffers = securityBuffers.size();
bufferDesc.pBuffers = securityBuffers.data();
SECURITY_STATUS ss = EncryptMessage(_phctxt, 0, &bufferDesc, 0);
if (ss < SEC_E_OK) {
ec = asio::error_code(ss, asio::error::get_ssl_category());
return ssl_want::want_nothing;
}
size_t size =
securityBuffers[0].cbBuffer + securityBuffers[1].cbBuffer + securityBuffers[2].cbBuffer;
_pOutBuffer->resize(size);
// Tell asio that all the clear text was transfered.
bytes_transferred = messageLength;
return ssl_want::want_output;
}
} // namespace detail
} // namespace ssl
} // namespace asio
| [
"redbeard0531@gmail.com"
] | redbeard0531@gmail.com |
c271c50b34508e418dee3564dcf1d7643901ed7e | 2eec9db7c8890de85eaa2140b59116e573dd0b53 | /src/test/mempool_tests.cpp | 6e9bda8c2fe824dc1290a01882957de6e32e20ae | [
"MIT"
] | permissive | Alonewolf-123/PaydayCoin-Core | 45bca042a8014f4486977f951bc2083728d8fb5e | d807d95550d955bfa9ffda2b39cad745422224e5 | refs/heads/master | 2023-01-13T15:33:54.226987 | 2019-12-16T04:54:53 | 2019-12-16T04:54:53 | 227,445,703 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,751 | cpp | // Copyright (c) 2011-2019 The PaydayCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/policy.h>
#include <txmempool.h>
#include <util/system.h>
#include <test/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <list>
#include <vector>
BOOST_FIXTURE_TEST_SUITE(mempool_tests, TestingSetup)
BOOST_AUTO_TEST_CASE(MempoolRemoveTest)
{
// Test CTxMemPool::remove functionality
TestMemPoolEntryHelper entry;
// Parent transaction with three children,
// and three grand-children:
CMutableTransaction txParent;
txParent.vin.resize(1);
txParent.vin[0].scriptSig = CScript() << OP_11;
txParent.vout.resize(3);
for (int i = 0; i < 3; i++)
{
txParent.vout[i].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
txParent.vout[i].nValue = 33000LL;
}
CMutableTransaction txChild[3];
for (int i = 0; i < 3; i++)
{
txChild[i].vin.resize(1);
txChild[i].vin[0].scriptSig = CScript() << OP_11;
txChild[i].vin[0].prevout.hash = txParent.GetHash();
txChild[i].vin[0].prevout.n = i;
txChild[i].vout.resize(1);
txChild[i].vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
txChild[i].vout[0].nValue = 11000LL;
}
CMutableTransaction txGrandChild[3];
for (int i = 0; i < 3; i++)
{
txGrandChild[i].vin.resize(1);
txGrandChild[i].vin[0].scriptSig = CScript() << OP_11;
txGrandChild[i].vin[0].prevout.hash = txChild[i].GetHash();
txGrandChild[i].vin[0].prevout.n = 0;
txGrandChild[i].vout.resize(1);
txGrandChild[i].vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
txGrandChild[i].vout[0].nValue = 11000LL;
}
CTxMemPool testPool;
LOCK2(cs_main, testPool.cs);
// Nothing in pool, remove should do nothing:
unsigned int poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txParent));
BOOST_CHECK_EQUAL(testPool.size(), poolSize);
// Just the parent:
testPool.addUnchecked(entry.FromTx(txParent));
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txParent));
BOOST_CHECK_EQUAL(testPool.size(), poolSize - 1);
// Parent, children, grandchildren:
testPool.addUnchecked(entry.FromTx(txParent));
for (int i = 0; i < 3; i++)
{
testPool.addUnchecked(entry.FromTx(txChild[i]));
testPool.addUnchecked(entry.FromTx(txGrandChild[i]));
}
// Remove Child[0], GrandChild[0] should be removed:
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txChild[0]));
BOOST_CHECK_EQUAL(testPool.size(), poolSize - 2);
// ... make sure grandchild and child are gone:
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txGrandChild[0]));
BOOST_CHECK_EQUAL(testPool.size(), poolSize);
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txChild[0]));
BOOST_CHECK_EQUAL(testPool.size(), poolSize);
// Remove parent, all children/grandchildren should go:
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txParent));
BOOST_CHECK_EQUAL(testPool.size(), poolSize - 5);
BOOST_CHECK_EQUAL(testPool.size(), 0U);
// Add children and grandchildren, but NOT the parent (simulate the parent being in a block)
for (int i = 0; i < 3; i++)
{
testPool.addUnchecked(entry.FromTx(txChild[i]));
testPool.addUnchecked(entry.FromTx(txGrandChild[i]));
}
// Now remove the parent, as might happen if a block-re-org occurs but the parent cannot be
// put into the mempool (maybe because it is non-standard):
poolSize = testPool.size();
testPool.removeRecursive(CTransaction(txParent));
BOOST_CHECK_EQUAL(testPool.size(), poolSize - 6);
BOOST_CHECK_EQUAL(testPool.size(), 0U);
}
template<typename name>
static void CheckSort(CTxMemPool &pool, std::vector<std::string> &sortedOrder) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
{
BOOST_CHECK_EQUAL(pool.size(), sortedOrder.size());
typename CTxMemPool::indexed_transaction_set::index<name>::type::iterator it = pool.mapTx.get<name>().begin();
int count=0;
for (; it != pool.mapTx.get<name>().end(); ++it, ++count) {
BOOST_CHECK_EQUAL(it->GetTx().GetHash().ToString(), sortedOrder[count]);
}
}
BOOST_AUTO_TEST_CASE(MempoolIndexingTest)
{
CTxMemPool pool;
LOCK2(cs_main, pool.cs);
TestMemPoolEntryHelper entry;
/* 3rd highest fee */
CMutableTransaction tx1 = CMutableTransaction();
tx1.vout.resize(1);
tx1.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx1.vout[0].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx1));
/* highest fee */
CMutableTransaction tx2 = CMutableTransaction();
tx2.vout.resize(1);
tx2.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx2.vout[0].nValue = 2 * COIN;
pool.addUnchecked(entry.Fee(20000LL).FromTx(tx2));
/* lowest fee */
CMutableTransaction tx3 = CMutableTransaction();
tx3.vout.resize(1);
tx3.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx3.vout[0].nValue = 5 * COIN;
pool.addUnchecked(entry.Fee(0LL).FromTx(tx3));
/* 2nd highest fee */
CMutableTransaction tx4 = CMutableTransaction();
tx4.vout.resize(1);
tx4.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx4.vout[0].nValue = 6 * COIN;
pool.addUnchecked(entry.Fee(15000LL).FromTx(tx4));
/* equal fee rate to tx1, but newer */
CMutableTransaction tx5 = CMutableTransaction();
tx5.vout.resize(1);
tx5.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx5.vout[0].nValue = 11 * COIN;
entry.nTime = 1;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx5));
BOOST_CHECK_EQUAL(pool.size(), 5U);
std::vector<std::string> sortedOrder;
sortedOrder.resize(5);
sortedOrder[0] = tx3.GetHash().ToString(); // 0
sortedOrder[1] = tx5.GetHash().ToString(); // 10000
sortedOrder[2] = tx1.GetHash().ToString(); // 10000
sortedOrder[3] = tx4.GetHash().ToString(); // 15000
sortedOrder[4] = tx2.GetHash().ToString(); // 20000
CheckSort<descendant_score>(pool, sortedOrder);
/* low fee but with high fee child */
/* tx6 -> tx7 -> tx8, tx9 -> tx10 */
CMutableTransaction tx6 = CMutableTransaction();
tx6.vout.resize(1);
tx6.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx6.vout[0].nValue = 20 * COIN;
pool.addUnchecked(entry.Fee(0LL).FromTx(tx6));
BOOST_CHECK_EQUAL(pool.size(), 6U);
// Check that at this point, tx6 is sorted low
sortedOrder.insert(sortedOrder.begin(), tx6.GetHash().ToString());
CheckSort<descendant_score>(pool, sortedOrder);
CTxMemPool::setEntries setAncestors;
setAncestors.insert(pool.mapTx.find(tx6.GetHash()));
CMutableTransaction tx7 = CMutableTransaction();
tx7.vin.resize(1);
tx7.vin[0].prevout = COutPoint(tx6.GetHash(), 0);
tx7.vin[0].scriptSig = CScript() << OP_11;
tx7.vout.resize(2);
tx7.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx7.vout[0].nValue = 10 * COIN;
tx7.vout[1].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx7.vout[1].nValue = 1 * COIN;
CTxMemPool::setEntries setAncestorsCalculated;
std::string dummy;
BOOST_CHECK_EQUAL(pool.CalculateMemPoolAncestors(entry.Fee(2000000LL).FromTx(tx7), setAncestorsCalculated, 100, 1000000, 1000, 1000000, dummy), true);
BOOST_CHECK(setAncestorsCalculated == setAncestors);
pool.addUnchecked(entry.FromTx(tx7), setAncestors);
BOOST_CHECK_EQUAL(pool.size(), 7U);
// Now tx6 should be sorted higher (high fee child): tx7, tx6, tx2, ...
sortedOrder.erase(sortedOrder.begin());
sortedOrder.push_back(tx6.GetHash().ToString());
sortedOrder.push_back(tx7.GetHash().ToString());
CheckSort<descendant_score>(pool, sortedOrder);
/* low fee child of tx7 */
CMutableTransaction tx8 = CMutableTransaction();
tx8.vin.resize(1);
tx8.vin[0].prevout = COutPoint(tx7.GetHash(), 0);
tx8.vin[0].scriptSig = CScript() << OP_11;
tx8.vout.resize(1);
tx8.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx8.vout[0].nValue = 10 * COIN;
setAncestors.insert(pool.mapTx.find(tx7.GetHash()));
pool.addUnchecked(entry.Fee(0LL).Time(2).FromTx(tx8), setAncestors);
// Now tx8 should be sorted low, but tx6/tx both high
sortedOrder.insert(sortedOrder.begin(), tx8.GetHash().ToString());
CheckSort<descendant_score>(pool, sortedOrder);
/* low fee child of tx7 */
CMutableTransaction tx9 = CMutableTransaction();
tx9.vin.resize(1);
tx9.vin[0].prevout = COutPoint(tx7.GetHash(), 1);
tx9.vin[0].scriptSig = CScript() << OP_11;
tx9.vout.resize(1);
tx9.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx9.vout[0].nValue = 1 * COIN;
pool.addUnchecked(entry.Fee(0LL).Time(3).FromTx(tx9), setAncestors);
// tx9 should be sorted low
BOOST_CHECK_EQUAL(pool.size(), 9U);
sortedOrder.insert(sortedOrder.begin(), tx9.GetHash().ToString());
CheckSort<descendant_score>(pool, sortedOrder);
std::vector<std::string> snapshotOrder = sortedOrder;
setAncestors.insert(pool.mapTx.find(tx8.GetHash()));
setAncestors.insert(pool.mapTx.find(tx9.GetHash()));
/* tx10 depends on tx8 and tx9 and has a high fee*/
CMutableTransaction tx10 = CMutableTransaction();
tx10.vin.resize(2);
tx10.vin[0].prevout = COutPoint(tx8.GetHash(), 0);
tx10.vin[0].scriptSig = CScript() << OP_11;
tx10.vin[1].prevout = COutPoint(tx9.GetHash(), 0);
tx10.vin[1].scriptSig = CScript() << OP_11;
tx10.vout.resize(1);
tx10.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx10.vout[0].nValue = 10 * COIN;
setAncestorsCalculated.clear();
BOOST_CHECK_EQUAL(pool.CalculateMemPoolAncestors(entry.Fee(200000LL).Time(4).FromTx(tx10), setAncestorsCalculated, 100, 1000000, 1000, 1000000, dummy), true);
BOOST_CHECK(setAncestorsCalculated == setAncestors);
pool.addUnchecked(entry.FromTx(tx10), setAncestors);
/**
* tx8 and tx9 should both now be sorted higher
* Final order after tx10 is added:
*
* tx3 = 0 (1)
* tx5 = 10000 (1)
* tx1 = 10000 (1)
* tx4 = 15000 (1)
* tx2 = 20000 (1)
* tx9 = 200k (2 txs)
* tx8 = 200k (2 txs)
* tx10 = 200k (1 tx)
* tx6 = 2.2M (5 txs)
* tx7 = 2.2M (4 txs)
*/
sortedOrder.erase(sortedOrder.begin(), sortedOrder.begin()+2); // take out tx9, tx8 from the beginning
sortedOrder.insert(sortedOrder.begin()+5, tx9.GetHash().ToString());
sortedOrder.insert(sortedOrder.begin()+6, tx8.GetHash().ToString());
sortedOrder.insert(sortedOrder.begin()+7, tx10.GetHash().ToString()); // tx10 is just before tx6
CheckSort<descendant_score>(pool, sortedOrder);
// there should be 10 transactions in the mempool
BOOST_CHECK_EQUAL(pool.size(), 10U);
// Now try removing tx10 and verify the sort order returns to normal
pool.removeRecursive(pool.mapTx.find(tx10.GetHash())->GetTx());
CheckSort<descendant_score>(pool, snapshotOrder);
pool.removeRecursive(pool.mapTx.find(tx9.GetHash())->GetTx());
pool.removeRecursive(pool.mapTx.find(tx8.GetHash())->GetTx());
}
BOOST_AUTO_TEST_CASE(MempoolAncestorIndexingTest)
{
CTxMemPool pool;
LOCK2(cs_main, pool.cs);
TestMemPoolEntryHelper entry;
/* 3rd highest fee */
CMutableTransaction tx1 = CMutableTransaction();
tx1.vout.resize(1);
tx1.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx1.vout[0].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx1));
/* highest fee */
CMutableTransaction tx2 = CMutableTransaction();
tx2.vout.resize(1);
tx2.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx2.vout[0].nValue = 2 * COIN;
pool.addUnchecked(entry.Fee(20000LL).FromTx(tx2));
uint64_t tx2Size = GetVirtualTransactionSize(CTransaction(tx2));
/* lowest fee */
CMutableTransaction tx3 = CMutableTransaction();
tx3.vout.resize(1);
tx3.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx3.vout[0].nValue = 5 * COIN;
pool.addUnchecked(entry.Fee(0LL).FromTx(tx3));
/* 2nd highest fee */
CMutableTransaction tx4 = CMutableTransaction();
tx4.vout.resize(1);
tx4.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx4.vout[0].nValue = 6 * COIN;
pool.addUnchecked(entry.Fee(15000LL).FromTx(tx4));
/* equal fee rate to tx1, but newer */
CMutableTransaction tx5 = CMutableTransaction();
tx5.vout.resize(1);
tx5.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx5.vout[0].nValue = 11 * COIN;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx5));
BOOST_CHECK_EQUAL(pool.size(), 5U);
std::vector<std::string> sortedOrder;
sortedOrder.resize(5);
sortedOrder[0] = tx2.GetHash().ToString(); // 20000
sortedOrder[1] = tx4.GetHash().ToString(); // 15000
// tx1 and tx5 are both 10000
// Ties are broken by hash, not timestamp, so determine which
// hash comes first.
if (tx1.GetHash() < tx5.GetHash()) {
sortedOrder[2] = tx1.GetHash().ToString();
sortedOrder[3] = tx5.GetHash().ToString();
} else {
sortedOrder[2] = tx5.GetHash().ToString();
sortedOrder[3] = tx1.GetHash().ToString();
}
sortedOrder[4] = tx3.GetHash().ToString(); // 0
CheckSort<ancestor_score>(pool, sortedOrder);
/* low fee parent with high fee child */
/* tx6 (0) -> tx7 (high) */
CMutableTransaction tx6 = CMutableTransaction();
tx6.vout.resize(1);
tx6.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx6.vout[0].nValue = 20 * COIN;
uint64_t tx6Size = GetVirtualTransactionSize(CTransaction(tx6));
pool.addUnchecked(entry.Fee(0LL).FromTx(tx6));
BOOST_CHECK_EQUAL(pool.size(), 6U);
// Ties are broken by hash
if (tx3.GetHash() < tx6.GetHash())
sortedOrder.push_back(tx6.GetHash().ToString());
else
sortedOrder.insert(sortedOrder.end()-1,tx6.GetHash().ToString());
CheckSort<ancestor_score>(pool, sortedOrder);
CMutableTransaction tx7 = CMutableTransaction();
tx7.vin.resize(1);
tx7.vin[0].prevout = COutPoint(tx6.GetHash(), 0);
tx7.vin[0].scriptSig = CScript() << OP_11;
tx7.vout.resize(1);
tx7.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx7.vout[0].nValue = 10 * COIN;
uint64_t tx7Size = GetVirtualTransactionSize(CTransaction(tx7));
/* set the fee to just below tx2's feerate when including ancestor */
CAmount fee = (20000/tx2Size)*(tx7Size + tx6Size) - 1;
pool.addUnchecked(entry.Fee(fee).FromTx(tx7));
BOOST_CHECK_EQUAL(pool.size(), 7U);
sortedOrder.insert(sortedOrder.begin()+1, tx7.GetHash().ToString());
CheckSort<ancestor_score>(pool, sortedOrder);
/* after tx6 is mined, tx7 should move up in the sort */
std::vector<CTransactionRef> vtx;
vtx.push_back(MakeTransactionRef(tx6));
pool.removeForBlock(vtx, 1);
sortedOrder.erase(sortedOrder.begin()+1);
// Ties are broken by hash
if (tx3.GetHash() < tx6.GetHash())
sortedOrder.pop_back();
else
sortedOrder.erase(sortedOrder.end()-2);
sortedOrder.insert(sortedOrder.begin(), tx7.GetHash().ToString());
CheckSort<ancestor_score>(pool, sortedOrder);
// High-fee parent, low-fee child
// tx7 -> tx8
CMutableTransaction tx8 = CMutableTransaction();
tx8.vin.resize(1);
tx8.vin[0].prevout = COutPoint(tx7.GetHash(), 0);
tx8.vin[0].scriptSig = CScript() << OP_11;
tx8.vout.resize(1);
tx8.vout[0].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx8.vout[0].nValue = 10*COIN;
// Check that we sort by min(feerate, ancestor_feerate):
// set the fee so that the ancestor feerate is above tx1/5,
// but the transaction's own feerate is lower
pool.addUnchecked(entry.Fee(5000LL).FromTx(tx8));
sortedOrder.insert(sortedOrder.end()-1, tx8.GetHash().ToString());
CheckSort<ancestor_score>(pool, sortedOrder);
}
BOOST_AUTO_TEST_CASE(MempoolSizeLimitTest)
{
CTxMemPool pool;
LOCK2(cs_main, pool.cs);
TestMemPoolEntryHelper entry;
CMutableTransaction tx1 = CMutableTransaction();
tx1.vin.resize(1);
tx1.vin[0].scriptSig = CScript() << OP_1;
tx1.vout.resize(1);
tx1.vout[0].scriptPubKey = CScript() << OP_1 << OP_EQUAL;
tx1.vout[0].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx1));
CMutableTransaction tx2 = CMutableTransaction();
tx2.vin.resize(1);
tx2.vin[0].scriptSig = CScript() << OP_2;
tx2.vout.resize(1);
tx2.vout[0].scriptPubKey = CScript() << OP_2 << OP_EQUAL;
tx2.vout[0].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(5000LL).FromTx(tx2));
pool.TrimToSize(pool.DynamicMemoryUsage()); // should do nothing
BOOST_CHECK(pool.exists(tx1.GetHash()));
BOOST_CHECK(pool.exists(tx2.GetHash()));
pool.TrimToSize(pool.DynamicMemoryUsage() * 3 / 4); // should remove the lower-feerate transaction
BOOST_CHECK(pool.exists(tx1.GetHash()));
BOOST_CHECK(!pool.exists(tx2.GetHash()));
pool.addUnchecked(entry.FromTx(tx2));
CMutableTransaction tx3 = CMutableTransaction();
tx3.vin.resize(1);
tx3.vin[0].prevout = COutPoint(tx2.GetHash(), 0);
tx3.vin[0].scriptSig = CScript() << OP_2;
tx3.vout.resize(1);
tx3.vout[0].scriptPubKey = CScript() << OP_3 << OP_EQUAL;
tx3.vout[0].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(20000LL).FromTx(tx3));
pool.TrimToSize(pool.DynamicMemoryUsage() * 3 / 4); // tx3 should pay for tx2 (CPFP)
BOOST_CHECK(!pool.exists(tx1.GetHash()));
BOOST_CHECK(pool.exists(tx2.GetHash()));
BOOST_CHECK(pool.exists(tx3.GetHash()));
pool.TrimToSize(GetVirtualTransactionSize(CTransaction(tx1))); // mempool is limited to tx1's size in memory usage, so nothing fits
BOOST_CHECK(!pool.exists(tx1.GetHash()));
BOOST_CHECK(!pool.exists(tx2.GetHash()));
BOOST_CHECK(!pool.exists(tx3.GetHash()));
CFeeRate maxFeeRateRemoved(25000, GetVirtualTransactionSize(CTransaction(tx3)) + GetVirtualTransactionSize(CTransaction(tx2)));
BOOST_CHECK_EQUAL(pool.GetMinFee(1).GetFeePerK(), maxFeeRateRemoved.GetFeePerK() + 1000);
CMutableTransaction tx4 = CMutableTransaction();
tx4.vin.resize(2);
tx4.vin[0].prevout.SetNull();
tx4.vin[0].scriptSig = CScript() << OP_4;
tx4.vin[1].prevout.SetNull();
tx4.vin[1].scriptSig = CScript() << OP_4;
tx4.vout.resize(2);
tx4.vout[0].scriptPubKey = CScript() << OP_4 << OP_EQUAL;
tx4.vout[0].nValue = 10 * COIN;
tx4.vout[1].scriptPubKey = CScript() << OP_4 << OP_EQUAL;
tx4.vout[1].nValue = 10 * COIN;
CMutableTransaction tx5 = CMutableTransaction();
tx5.vin.resize(2);
tx5.vin[0].prevout = COutPoint(tx4.GetHash(), 0);
tx5.vin[0].scriptSig = CScript() << OP_4;
tx5.vin[1].prevout.SetNull();
tx5.vin[1].scriptSig = CScript() << OP_5;
tx5.vout.resize(2);
tx5.vout[0].scriptPubKey = CScript() << OP_5 << OP_EQUAL;
tx5.vout[0].nValue = 10 * COIN;
tx5.vout[1].scriptPubKey = CScript() << OP_5 << OP_EQUAL;
tx5.vout[1].nValue = 10 * COIN;
CMutableTransaction tx6 = CMutableTransaction();
tx6.vin.resize(2);
tx6.vin[0].prevout = COutPoint(tx4.GetHash(), 1);
tx6.vin[0].scriptSig = CScript() << OP_4;
tx6.vin[1].prevout.SetNull();
tx6.vin[1].scriptSig = CScript() << OP_6;
tx6.vout.resize(2);
tx6.vout[0].scriptPubKey = CScript() << OP_6 << OP_EQUAL;
tx6.vout[0].nValue = 10 * COIN;
tx6.vout[1].scriptPubKey = CScript() << OP_6 << OP_EQUAL;
tx6.vout[1].nValue = 10 * COIN;
CMutableTransaction tx7 = CMutableTransaction();
tx7.vin.resize(2);
tx7.vin[0].prevout = COutPoint(tx5.GetHash(), 0);
tx7.vin[0].scriptSig = CScript() << OP_5;
tx7.vin[1].prevout = COutPoint(tx6.GetHash(), 0);
tx7.vin[1].scriptSig = CScript() << OP_6;
tx7.vout.resize(2);
tx7.vout[0].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
tx7.vout[0].nValue = 10 * COIN;
tx7.vout[1].scriptPubKey = CScript() << OP_7 << OP_EQUAL;
tx7.vout[1].nValue = 10 * COIN;
pool.addUnchecked(entry.Fee(7000LL).FromTx(tx4));
pool.addUnchecked(entry.Fee(1000LL).FromTx(tx5));
pool.addUnchecked(entry.Fee(1100LL).FromTx(tx6));
pool.addUnchecked(entry.Fee(9000LL).FromTx(tx7));
// we only require this to remove, at max, 2 txn, because it's not clear what we're really optimizing for aside from that
pool.TrimToSize(pool.DynamicMemoryUsage() - 1);
BOOST_CHECK(pool.exists(tx4.GetHash()));
BOOST_CHECK(pool.exists(tx6.GetHash()));
BOOST_CHECK(!pool.exists(tx7.GetHash()));
if (!pool.exists(tx5.GetHash()))
pool.addUnchecked(entry.Fee(1000LL).FromTx(tx5));
pool.addUnchecked(entry.Fee(9000LL).FromTx(tx7));
pool.TrimToSize(pool.DynamicMemoryUsage() / 2); // should maximize mempool size by only removing 5/7
BOOST_CHECK(pool.exists(tx4.GetHash()));
BOOST_CHECK(!pool.exists(tx5.GetHash()));
BOOST_CHECK(pool.exists(tx6.GetHash()));
BOOST_CHECK(!pool.exists(tx7.GetHash()));
pool.addUnchecked(entry.Fee(1000LL).FromTx(tx5));
pool.addUnchecked(entry.Fee(9000LL).FromTx(tx7));
std::vector<CTransactionRef> vtx;
SetMockTime(42);
SetMockTime(42 + CTxMemPool::ROLLING_FEE_HALFLIFE);
BOOST_CHECK_EQUAL(pool.GetMinFee(1).GetFeePerK(), maxFeeRateRemoved.GetFeePerK() + 1000);
// ... we should keep the same min fee until we get a block
pool.removeForBlock(vtx, 1);
SetMockTime(42 + 2*CTxMemPool::ROLLING_FEE_HALFLIFE);
BOOST_CHECK_EQUAL(pool.GetMinFee(1).GetFeePerK(), llround((maxFeeRateRemoved.GetFeePerK() + 1000)/2.0));
// ... then feerate should drop 1/2 each halflife
SetMockTime(42 + 2*CTxMemPool::ROLLING_FEE_HALFLIFE + CTxMemPool::ROLLING_FEE_HALFLIFE/2);
BOOST_CHECK_EQUAL(pool.GetMinFee(pool.DynamicMemoryUsage() * 5 / 2).GetFeePerK(), llround((maxFeeRateRemoved.GetFeePerK() + 1000)/4.0));
// ... with a 1/2 halflife when mempool is < 1/2 its target size
SetMockTime(42 + 2*CTxMemPool::ROLLING_FEE_HALFLIFE + CTxMemPool::ROLLING_FEE_HALFLIFE/2 + CTxMemPool::ROLLING_FEE_HALFLIFE/4);
BOOST_CHECK_EQUAL(pool.GetMinFee(pool.DynamicMemoryUsage() * 9 / 2).GetFeePerK(), llround((maxFeeRateRemoved.GetFeePerK() + 1000)/8.0));
// ... with a 1/4 halflife when mempool is < 1/4 its target size
SetMockTime(42 + 7*CTxMemPool::ROLLING_FEE_HALFLIFE + CTxMemPool::ROLLING_FEE_HALFLIFE/2 + CTxMemPool::ROLLING_FEE_HALFLIFE/4);
BOOST_CHECK_EQUAL(pool.GetMinFee(1).GetFeePerK(), 1000);
// ... but feerate should never drop below 1000
SetMockTime(42 + 8*CTxMemPool::ROLLING_FEE_HALFLIFE + CTxMemPool::ROLLING_FEE_HALFLIFE/2 + CTxMemPool::ROLLING_FEE_HALFLIFE/4);
BOOST_CHECK_EQUAL(pool.GetMinFee(1).GetFeePerK(), 0);
// ... unless it has gone all the way to 0 (after getting past 1000/2)
SetMockTime(0);
}
inline CTransactionRef make_tx(std::vector<CAmount>&& output_values, std::vector<CTransactionRef>&& inputs=std::vector<CTransactionRef>(), std::vector<uint32_t>&& input_indices=std::vector<uint32_t>())
{
CMutableTransaction tx = CMutableTransaction();
tx.vin.resize(inputs.size());
tx.vout.resize(output_values.size());
for (size_t i = 0; i < inputs.size(); ++i) {
tx.vin[i].prevout.hash = inputs[i]->GetHash();
tx.vin[i].prevout.n = input_indices.size() > i ? input_indices[i] : 0;
}
for (size_t i = 0; i < output_values.size(); ++i) {
tx.vout[i].scriptPubKey = CScript() << OP_11 << OP_EQUAL;
tx.vout[i].nValue = output_values[i];
}
return MakeTransactionRef(tx);
}
BOOST_AUTO_TEST_CASE(MempoolAncestryTests)
{
size_t ancestors, descendants;
CTxMemPool pool;
LOCK2(cs_main, pool.cs);
TestMemPoolEntryHelper entry;
/* Base transaction */
//
// [tx1]
//
CTransactionRef tx1 = make_tx(/* output_values */ {10 * COIN});
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx1));
// Ancestors / descendants should be 1 / 1 (itself / itself)
pool.GetTransactionAncestry(tx1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 1ULL);
/* Child transaction */
//
// [tx1].0 <- [tx2]
//
CTransactionRef tx2 = make_tx(/* output_values */ {495 * CENT, 5 * COIN}, /* inputs */ {tx1});
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx2));
// Ancestors / descendants should be:
// transaction ancestors descendants
// ============ =========== ===========
// tx1 1 (tx1) 2 (tx1,2)
// tx2 2 (tx1,2) 2 (tx1,2)
pool.GetTransactionAncestry(tx1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 2ULL);
pool.GetTransactionAncestry(tx2->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 2ULL);
BOOST_CHECK_EQUAL(descendants, 2ULL);
/* Grand-child 1 */
//
// [tx1].0 <- [tx2].0 <- [tx3]
//
CTransactionRef tx3 = make_tx(/* output_values */ {290 * CENT, 200 * CENT}, /* inputs */ {tx2});
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx3));
// Ancestors / descendants should be:
// transaction ancestors descendants
// ============ =========== ===========
// tx1 1 (tx1) 3 (tx1,2,3)
// tx2 2 (tx1,2) 3 (tx1,2,3)
// tx3 3 (tx1,2,3) 3 (tx1,2,3)
pool.GetTransactionAncestry(tx1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 3ULL);
pool.GetTransactionAncestry(tx2->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 2ULL);
BOOST_CHECK_EQUAL(descendants, 3ULL);
pool.GetTransactionAncestry(tx3->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 3ULL);
/* Grand-child 2 */
//
// [tx1].0 <- [tx2].0 <- [tx3]
// |
// \---1 <- [tx4]
//
CTransactionRef tx4 = make_tx(/* output_values */ {290 * CENT, 250 * CENT}, /* inputs */ {tx2}, /* input_indices */ {1});
pool.addUnchecked(entry.Fee(10000LL).FromTx(tx4));
// Ancestors / descendants should be:
// transaction ancestors descendants
// ============ =========== ===========
// tx1 1 (tx1) 4 (tx1,2,3,4)
// tx2 2 (tx1,2) 4 (tx1,2,3,4)
// tx3 3 (tx1,2,3) 4 (tx1,2,3,4)
// tx4 3 (tx1,2,4) 4 (tx1,2,3,4)
pool.GetTransactionAncestry(tx1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 4ULL);
pool.GetTransactionAncestry(tx2->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 2ULL);
BOOST_CHECK_EQUAL(descendants, 4ULL);
pool.GetTransactionAncestry(tx3->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 4ULL);
pool.GetTransactionAncestry(tx4->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 4ULL);
/* Make an alternate branch that is longer and connect it to tx3 */
//
// [ty1].0 <- [ty2].0 <- [ty3].0 <- [ty4].0 <- [ty5].0
// |
// [tx1].0 <- [tx2].0 <- [tx3].0 <- [ty6] --->--/
// |
// \---1 <- [tx4]
//
CTransactionRef ty1, ty2, ty3, ty4, ty5;
CTransactionRef* ty[5] = {&ty1, &ty2, &ty3, &ty4, &ty5};
CAmount v = 5 * COIN;
for (uint64_t i = 0; i < 5; i++) {
CTransactionRef& tyi = *ty[i];
tyi = make_tx(/* output_values */ {v}, /* inputs */ i > 0 ? std::vector<CTransactionRef>{*ty[i - 1]} : std::vector<CTransactionRef>{});
v -= 50 * CENT;
pool.addUnchecked(entry.Fee(10000LL).FromTx(tyi));
pool.GetTransactionAncestry(tyi->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, i+1);
BOOST_CHECK_EQUAL(descendants, i+1);
}
CTransactionRef ty6 = make_tx(/* output_values */ {5 * COIN}, /* inputs */ {tx3, ty5});
pool.addUnchecked(entry.Fee(10000LL).FromTx(ty6));
// Ancestors / descendants should be:
// transaction ancestors descendants
// ============ =================== ===========
// tx1 1 (tx1) 5 (tx1,2,3,4, ty6)
// tx2 2 (tx1,2) 5 (tx1,2,3,4, ty6)
// tx3 3 (tx1,2,3) 5 (tx1,2,3,4, ty6)
// tx4 3 (tx1,2,4) 5 (tx1,2,3,4, ty6)
// ty1 1 (ty1) 6 (ty1,2,3,4,5,6)
// ty2 2 (ty1,2) 6 (ty1,2,3,4,5,6)
// ty3 3 (ty1,2,3) 6 (ty1,2,3,4,5,6)
// ty4 4 (y1234) 6 (ty1,2,3,4,5,6)
// ty5 5 (y12345) 6 (ty1,2,3,4,5,6)
// ty6 9 (tx123, ty123456) 6 (ty1,2,3,4,5,6)
pool.GetTransactionAncestry(tx1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 5ULL);
pool.GetTransactionAncestry(tx2->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 2ULL);
BOOST_CHECK_EQUAL(descendants, 5ULL);
pool.GetTransactionAncestry(tx3->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 5ULL);
pool.GetTransactionAncestry(tx4->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 5ULL);
pool.GetTransactionAncestry(ty1->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 1ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
pool.GetTransactionAncestry(ty2->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 2ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
pool.GetTransactionAncestry(ty3->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 3ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
pool.GetTransactionAncestry(ty4->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 4ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
pool.GetTransactionAncestry(ty5->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 5ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
pool.GetTransactionAncestry(ty6->GetHash(), ancestors, descendants);
BOOST_CHECK_EQUAL(ancestors, 9ULL);
BOOST_CHECK_EQUAL(descendants, 6ULL);
}
BOOST_AUTO_TEST_SUITE_END()
| [
"alonewolf2ksk@gmail.com"
] | alonewolf2ksk@gmail.com |
4d7687e2b0632ddb7ae4395e055bf6787e47a5c3 | 385cfbb27ee3bcc219ec2ac60fa22c2aa92ed8a0 | /ThirdParty/fd/delegate/bind/bind10.hpp | 8e59faf655e7cefbe6130d1443c8c97c4f883b75 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | palestar/medusa | edbddf368979be774e99f74124b9c3bc7bebb2a8 | 7f8dc717425b5cac2315e304982993354f7cb27e | refs/heads/develop | 2023-05-09T19:12:42.957288 | 2023-05-05T12:43:35 | 2023-05-05T12:43:35 | 59,434,337 | 35 | 18 | MIT | 2018-01-21T01:34:01 | 2016-05-22T21:05:17 | C++ | UTF-8 | C++ | false | false | 174 | hpp | // FD.Bind Library.
#define FD_DELEGATE_NUM_ARGS 10
# include "../../delegate/detail/maybe_include.hpp"
# include "./detail/maybe_include.hpp"
#undef FD_DELEGATE_NUM_ARGS
| [
"rlyle@palestar.com"
] | rlyle@palestar.com |
a19a6b3f39358adc7de97719bb6876665673a0b3 | fafce52a38479e8391173f58d76896afcba07847 | /archive/olddraw/CtrlCore/Win32Proc.cpp | d91d8a7061e0d8feb9c80e35d6b79b2334ce668b | [
"BSD-2-Clause"
] | permissive | Sly14/upp-mirror | 253acac2ec86ad3a3f825679a871391810631e61 | ed9bc6028a6eed422b7daa21139a5e7cbb5f1fb7 | refs/heads/master | 2020-05-17T08:25:56.142366 | 2015-08-24T18:08:09 | 2015-08-24T18:08:09 | 41,750,819 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,010 | cpp | #include "CtrlCore.h"
#ifdef PLATFORM_WIN32
#include <winnls.h>
#endif
//#include "imm.h"
NAMESPACE_UPP
#define LLOG(x) // LOG(x)
#ifdef PLATFORM_WIN32
dword Ctrl::KEYtoK(dword chr) {
if(chr == VK_TAB)
chr = K_TAB;
else
if(chr == VK_SPACE)
chr = K_SPACE;
else
if(chr == VK_RETURN)
chr = K_RETURN;
else
chr = chr + K_DELTA;
if(chr == K_ALT_KEY || chr == K_CTRL_KEY || chr == K_SHIFT_KEY)
return chr;
if(GetCtrl()) chr |= K_CTRL;
if(GetAlt()) chr |= K_ALT;
if(GetShift()) chr |= K_SHIFT;
return chr;
}
class NilDrawFull : public NilDraw {
virtual bool IsPaintingOp(const Rect& r) const { return true; }
};
#ifdef PLATFORM_WINCE
bool GetShift() { return false; }
bool GetCtrl() { return false; }
bool GetAlt() { return false; }
bool GetCapsLock() { return false; }
bool wince_mouseleft;
bool wince_mouseright;
bool GetMouseLeft() { return wince_mouseleft; }
bool GetMouseRight() { return wince_mouseright; }
bool GetMouseMiddle() { return false; }
Point wince_mousepos = Null;
Point GetMousePos() {
return wince_mousepos;
}
void SetWinceMouse(HWND hwnd, LPARAM lparam)
{
Point p(lparam);
ClientToScreen(hwnd, p);
wince_mousepos = p;
}
#else
void SetWinceMouse(HWND hwnd, LPARAM lparam) {}
#endif
#ifdef _DEBUG
static String sPainting;
#endif
bool PassWindowsKey(int wParam);
LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) {
GuiLock __;
ASSERT_(IsNull(sPainting), "WindowProc invoked while in Paint routine");
// LLOG("Ctrl::WindowProc(" << message << ") in " << ::Name(this) << ", focus " << (void *)::GetFocus());
Ptr<Ctrl> _this = this;
HWND hwnd = GetHWND();
switch(message) {
case WM_PALETTECHANGED:
if((HWND)wParam == hwnd)
break;
#ifndef PLATFORM_WINCE
case WM_QUERYNEWPALETTE:
if(!SystemDraw::AutoPalette()) break;
{
HDC hDC = GetDC(hwnd);
HPALETTE hOldPal = SelectPalette(hDC, GetQlibPalette(), FALSE);
int i = RealizePalette(hDC);
SelectPalette(hDC, hOldPal, TRUE);
RealizePalette(hDC);
ReleaseDC(hwnd, hDC);
LLOG("Realized " << i << " colors");
if(i) InvalidateRect(hwnd, NULL, TRUE);
return i;
}
#endif
case WM_PAINT:
ASSERT(hwnd);
if(IsVisible() && hwnd) {
PAINTSTRUCT ps;
SyncScroll();
HDC dc = BeginPaint(hwnd, &ps);
fullrefresh = false;
SystemDraw draw(dc);
#ifndef PLATFORM_WINCE
HPALETTE hOldPal;
if(draw.PaletteMode() && SystemDraw::AutoPalette()) {
hOldPal = SelectPalette(dc, GetQlibPalette(), TRUE);
int n = RealizePalette(dc);
LLOG("In paint realized " << n << " colors");
}
#endif
#ifdef _DEBUG
sPainting = Name();
#endif
UpdateArea(draw, Rect(ps.rcPaint));
#ifdef _DEBUG
sPainting = Null;
#endif
#ifndef PLATFORM_WINCE
if(draw.PaletteMode() && SystemDraw::AutoPalette())
SelectPalette(dc, hOldPal, TRUE);
#endif
EndPaint(hwnd, &ps);
}
return 0L;
#ifndef PLATFORM_WINCE
case WM_NCHITTEST:
CheckMouseCtrl();
if(ignoremouse) return HTTRANSPARENT;
break;
#endif
case WM_LBUTTONDOWN:
#ifdef PLARFORM_WINCE
wince_mouseleft = true;
#endif
SetWinceMouse(hwnd, lParam);
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(LEFTDOWN, Point((dword)lParam), 0);
if(_this) PostInput();
return 0L;
case WM_LBUTTONUP:
if(ignoreclick)
EndIgnore();
else
DoMouse(LEFTUP, Point((dword)lParam), 0);
#ifdef PLATFORM_WINCE
wince_mouseleft = false;
#endif
#ifdef PLATFORM_WINCE
wince_mousepos = Point(-99999, -99999);
if(!ignoreclick)
if(_this) DoMouse(MOUSEMOVE, Point(-99999, -99999));
#endif
if(_this) PostInput();
return 0L;
case WM_LBUTTONDBLCLK:
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(LEFTDOUBLE, Point((dword)lParam), 0);
if(_this) PostInput();
return 0L;
case WM_RBUTTONDOWN:
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(RIGHTDOWN, Point((dword)lParam));
if(_this) PostInput();
return 0L;
case WM_RBUTTONUP:
if(ignoreclick)
EndIgnore();
else
DoMouse(RIGHTUP, Point((dword)lParam));
if(_this) PostInput();
return 0L;
case WM_RBUTTONDBLCLK:
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(RIGHTDOUBLE, Point((dword)lParam));
if(_this) PostInput();
return 0L;
case WM_MBUTTONDOWN:
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(MIDDLEDOWN, Point((dword)lParam));
if(_this) PostInput();
return 0L;
case WM_MBUTTONUP:
if(ignoreclick)
EndIgnore();
else
DoMouse(MIDDLEUP, Point((dword)lParam));
if(_this) PostInput();
return 0L;
case WM_MBUTTONDBLCLK:
ClickActivateWnd();
if(ignoreclick) return 0L;
DoMouse(MIDDLEDOUBLE, Point((dword)lParam));
if(_this) PostInput();
return 0L;
#ifndef PLATFORM_WINCE
case WM_NCLBUTTONDOWN:
case WM_NCRBUTTONDOWN:
case WM_NCMBUTTONDOWN:
ClickActivateWnd();
IgnoreMouseUp();
break;
#endif
case WM_MOUSEMOVE:
SetWinceMouse(hwnd, lParam);
LLOG("WM_MOUSEMOVE: ignoreclick = " << ignoreclick);
if(ignoreclick) {
EndIgnore();
return 0L;
}
if(_this)
DoMouse(MOUSEMOVE, Point((dword)lParam));
DoCursorShape();
return 0L;
case 0x20a: // WM_MOUSEWHEEL:
if(ignoreclick) {
EndIgnore();
return 0L;
}
if(_this)
DoMouse(MOUSEWHEEL, Point((dword)lParam), (short)HIWORD(wParam));
if(_this) PostInput();
return 0L;
case WM_SETCURSOR:
if((HWND)wParam == hwnd && LOWORD((dword)lParam) == HTCLIENT) {
if(hCursor) SetCursor(hCursor);
return TRUE;
}
break;
// case WM_MENUCHAR:
// return MAKELONG(0, MNC_SELECT);
case WM_KEYDOWN:
case WM_SYSKEYDOWN:
case WM_CHAR:
ignorekeyup = false;
case WM_KEYUP:
case WM_SYSKEYUP:
{
#if 0
String msgdump;
switch(message)
{
case WM_KEYDOWN: msgdump << "WM_KEYDOWN"; break;
case WM_KEYUP: msgdump << "WM_KEYUP"; break;
case WM_SYSKEYDOWN: msgdump << "WM_SYSKEYDOWN"; break;
case WM_SYSKEYUP: msgdump << "WM_SYSKEYUP"; break;
case WM_CHAR: msgdump << "WM_CHAR"; break;
}
msgdump << " wParam = 0x" << FormatIntHex(wParam, 8)
<< ", lParam = 0x" << FormatIntHex(lParam, 8)
<< ", ignorekeyup = " << (ignorekeyup ? "true" : "false");
LLOG(msgdump);
#endif
dword keycode = 0;
if(message == WM_KEYDOWN)
keycode = KEYtoK((dword)wParam);
else
if(message == WM_KEYUP)
keycode = KEYtoK((dword)wParam) | K_KEYUP;
else
if(message == WM_SYSKEYDOWN /*&& ((lParam & 0x20000000) || wParam == VK_F10)*/)
keycode = KEYtoK((dword)wParam);
else
if(message == WM_SYSKEYUP /*&& ((lParam & 0x20000000) || wParam == VK_F10)*/)
keycode = KEYtoK((dword)wParam) | K_KEYUP;
else
if(message == WM_CHAR && wParam != 127 && wParam > 32) {
#ifdef PLATFORM_WINCE
keycode = wParam;
#else
if(IsWindowUnicode(hwnd)) // TRC 04/10/17: ActiveX Unicode patch
keycode = (dword)wParam;
else {
char b[20];
::GetLocaleInfo(MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT),
LOCALE_IDEFAULTANSICODEPAGE, b, 20);
int codepage = atoi(b);
if(codepage >= 1250 && codepage <= 1258)
keycode = ToUnicode((dword)wParam, codepage - 1250 + CHARSET_WIN1250);
else
keycode = (dword)wParam;
}
#endif
}
bool b = false;
if(keycode) {
b = DispatchKey(keycode, LOWORD(lParam));
SyncCaret();
if(_this) PostInput();
}
// LOG("key processed = " << b);
if(b || (message == WM_SYSKEYDOWN || message == WM_SYSKEYUP)
&& wParam != VK_F4 && !PassWindowsKey((dword)wParam)) // 17.11.2003 Mirek -> invoke system menu
return 0L;
break;
}
break;
// case WM_GETDLGCODE:
// return wantfocus ? 0 : DLGC_STATIC;
case WM_ERASEBKGND:
return 1L;
case WM_DESTROY:
PreDestroy();
#ifndef PLATFORM_WINCE
break;
case WM_NCDESTROY:
#endif
if(!hwnd) break;
if(HasChildDeep(mouseCtrl) || this == ~mouseCtrl) mouseCtrl = NULL;
if(HasChildDeep(focusCtrl) || this == ~focusCtrl) focusCtrl = NULL;
if(HasChildDeep(focusCtrlWnd) || this == ~focusCtrlWnd) {
LLOG("WM_NCDESTROY: clearing focusCtrlWnd = " << ::Name(focusCtrlWnd));
focusCtrlWnd = NULL;
focusCtrl = NULL;
}
if(::GetFocus() == NULL) {
Ctrl *owner = GetOwner();
if(owner && (owner->IsForeground() || IsForeground()) && !owner->SetWantFocus())
IterateFocusForward(owner, owner);
}
#ifdef PLATFORM_WINCE
DefWindowProc(hwnd, message, wParam, lParam);
#else
if(IsWindowUnicode(hwnd)) // TRC 04/10/17: ActiveX unicode patch
DefWindowProcW(hwnd, message, wParam, lParam);
else
DefWindowProc(hwnd, message, wParam, lParam);
#endif
hwnd = NULL;
return 0L;
case WM_CANCELMODE:
if(this == ~captureCtrl || HasChildDeep(captureCtrl))
ReleaseCtrlCapture();
break;
case WM_SHOWWINDOW:
visible = (BOOL) wParam;
StateH(SHOW);
break;
#ifndef PLATFORM_WINCE
case WM_MOUSEACTIVATE:
LLOG("WM_MOUSEACTIVATE " << Name() << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
if(!IsEnabled()) {
if(lastActiveWnd && lastActiveWnd->IsEnabled()) {
LLOG("WM_MOUSEACTIVATE -> ::SetFocus for " << UPP::Name(lastActiveWnd));
::SetFocus(lastActiveWnd->GetHWND());
}
else
MessageBeep(MB_OK);
return MA_NOACTIVATEANDEAT;
}
if(IsPopUp()) return MA_NOACTIVATE;
break;
#endif
case WM_SIZE:
case WM_MOVE:
if(hwnd) {
Rect rect;
#ifndef PLATFORM_WINCE
if(activex) {
WINDOWPLACEMENT wp;
wp.length = sizeof(WINDOWINFO);
::GetWindowPlacement(hwnd, &wp);
rect = wp.rcNormalPosition;
}
else
#endif
rect = GetScreenClient(hwnd);
LLOG("WM_MOVE / WM_SIZE: screen client = " << rect);
if(GetRect() != rect)
SetWndRect(rect);
WndDestroyCaret();
caretCtrl = NULL;
SyncCaret();
}
return 0L;
case WM_HELP:
return TRUE;
case WM_ACTIVATE:
LLOG("WM_ACTIVATE " << Name() << ", wParam = " << (int)wParam << ", focusCtrlWnd = " << ::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
ignorekeyup = true;
break;
case WM_SETFOCUS:
LLOG("WM_SETFOCUS " << Name() << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
if(this != focusCtrlWnd)
if(IsEnabled()) {
LLOG("WM_SETFOCUS -> ActivateWnd: this != focusCtrlWnd, this = "
<< Name() << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd));
ActivateWnd();
}
else {
if(focusCtrlWnd && focusCtrlWnd->IsEnabled()) {
if(!IsEnabled())
MessageBeep(MB_OK);
LLOG("WM_SETFOCUS -> ::SetFocus for " << UPP::Name(focusCtrlWnd));
::SetFocus(focusCtrlWnd->GetHWND());
}
else
if(lastActiveWnd && lastActiveWnd->IsEnabled()) {
LLOG("WM_SETFOCUS -> ::SetFocus for " << UPP::Name(lastActiveWnd));
::SetFocus(lastActiveWnd->GetHWND());
}
else {
LLOG("WM_SETFOCUS - ::SetFocus(NULL)");
::SetFocus(NULL);
}
}
LLOG("//WM_SETFOCUS " << (void *)hwnd << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
return 0L;
case WM_KILLFOCUS:
LLOG("WM_KILLFOCUS " << (void *)(HWND)wParam << ", this = " << UPP::Name(this) << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
LLOG("Kill " << ::Name(CtrlFromHWND((HWND)wParam)));
if(!CtrlFromHWND((HWND)wParam)) {
LLOG("WM_KILLFOCUS -> KillFocusWnd: " << UPP::Name(this));
KillFocusWnd();
}
LLOG("//WM_KILLFOCUS " << (void *)(HWND)wParam << ", focusCtrlWnd = " << ::Name(focusCtrlWnd) << ", raw = " << (void *)::GetFocus());
return 0L;
case WM_ENABLE:
if(!!wParam != enabled) {
enabled = !!wParam;
RefreshFrame();
StateH(ENABLE);
}
return 0L;
#ifndef PLATFORM_WINCE
case WM_GETMINMAXINFO:
{
MINMAXINFO *mmi = (MINMAXINFO *)lParam;
Rect minr(Point(50, 50), GetMinSize());
Rect maxr(Point(50, 50), GetMaxSize());
dword style = ::GetWindowLong(hwnd, GWL_STYLE);
dword exstyle = ::GetWindowLong(hwnd, GWL_EXSTYLE);
AdjustWindowRectEx(minr, style, FALSE, exstyle);
AdjustWindowRectEx(maxr, style, FALSE, exstyle);
mmi->ptMinTrackSize = Point(minr.Size());
mmi->ptMaxTrackSize = Point(maxr.Size());
LLOG("WM_GETMINMAXINFO: MinTrackSize = " << Point(mmi->ptMinTrackSize) << ", MaxTrackSize = " << Point(mmi->ptMaxTrackSize));
LLOG("ptMaxSize = " << Point(mmi->ptMaxSize) << ", ptMaxPosition = " << Point(mmi->ptMaxPosition));
}
return 0L;
#endif
case WM_SETTINGCHANGE:
case 0x031A: // WM_THEMECHANGED
ChSync();
RefreshLayoutDeep();
RefreshFrame();
break;
/*
case WM_IME_COMPOSITION:
HIMC himc = ImmGetContext(hwnd);
if(!himc) break;
CANDIDATEFORM cf;
Rect r = GetScreenRect();
cf.dwIndex = 0;
cf.dwStyle = CFS_CANDIDATEPOS;
cf.ptCurrentPos.x = r.left + caretx;
cf.ptCurrentPos.y = r.top + carety + caretcy;
ImmSetCandidateWindow (himc, &cf);
break;
*/
}
if(hwnd)
#ifdef PLATFORM_WINCE
return DefWindowProc(hwnd, message, wParam, lParam);
#else
if(IsWindowUnicode(hwnd)) // TRC 04/10/17: ActiveX unicode patch
return DefWindowProcW(hwnd, message, wParam, lParam);
else
return DefWindowProc(hwnd, message, wParam, lParam);
#endif
return 0L;
}
void Ctrl::PreDestroy() {}
#endif
END_UPP_NAMESPACE
| [
"cxl@05275033-79c2-2956-22f4-0a99e774df92"
] | cxl@05275033-79c2-2956-22f4-0a99e774df92 |
203b50d31fcb7508ff38d5cc1d8abb4e0c0c1196 | a58ddf99c242a97d37580bc0fee602839fa947e3 | /Source/Private/HeliosSetterProxy_Bool.cpp | d76b4febeed3d37b950b247936b89639bdac232d | [
"MIT"
] | permissive | marshal-it/SimpleDataIntegrationPlugin | 63f209a8adb50466c7a9e97b9d73c5c6a31c7499 | db1a6aa2dca50d9d2e1b7b36840b8278f22d71cf | refs/heads/master | 2020-12-24T20:42:18.164823 | 2016-06-23T14:19:00 | 2016-06-23T14:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,429 | cpp | // Copyright 2016 Helios. All Rights Reserved.
#include "SimpleDataIntegrationPCH.h"
#include "HeliosSetterProxy_Bool.h"
UHeliosSetterProxy_Bool::UHeliosSetterProxy_Bool(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
// Empty.
}
void UHeliosSetterProxy_Bool::SendHeliosRequest(const FName HeliosClass, const FName ServerUrl, const bool InputValue)
{
TSharedRef<IHttpRequest> HttpRequest = FHttpModule::Get().CreateRequest();
HttpRequest->SetVerb("POST");
HttpRequest->SetURL(ServerUrl.ToString() + HeliosClass.ToString().ToLower());
HttpRequest->SetHeader("Content-Type", TEXT("application/json"));
json Content;
Content["value"] = InputValue;
FString ContentAsString(Content.dump().c_str());
HttpRequest->SetContentAsString(ContentAsString);
HttpRequest->OnProcessRequestComplete().BindUObject(this, &UHeliosSetterProxy_Bool::OnHeliosSetterRequestComplete);
HttpRequest->ProcessRequest();
}
void UHeliosSetterProxy_Bool::OnHeliosSetterRequestComplete(FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, bool bSucceeded) {
if (!bSucceeded) {
UE_LOG(LogTemp, Error, TEXT("Helios > request failed: %s"), *HttpRequest->GetURL());
OnFail.Broadcast(false);
return;
}
if (!HttpResponse.IsValid()) {
UE_LOG(LogTemp, Warning, TEXT("Helios > invalid response for request: %s"), *HttpRequest->GetURL());
OnFail.Broadcast(false);
return;
}
OnSuccess.Broadcast(true);
}
| [
"dddutz@gmail.com"
] | dddutz@gmail.com |
5a3838b487c5974b2fb6f07cfc09f1eb03157545 | be93b9ffb49ec6f73d2558cedd02cd50a4060858 | /Online judge solutions/Codeforces/1092C.cpp | 5861591e11c01af760d5051ec87b59e4eef8bb4f | [] | no_license | salonimohta/competitive-programming | ceec3c2c87eb8078b051166654c3faac5ce27d0b | 2639a14acf4beb453bb9277779ad5d705c6fa97a | refs/heads/master | 2020-08-09T02:12:27.005619 | 2019-10-14T08:07:46 | 2019-10-14T08:07:46 | 213,975,049 | 2 | 0 | null | 2019-10-09T16:59:36 | 2019-10-09T16:59:36 | null | UTF-8 | C++ | false | false | 2,956 | cpp | include<bits/stdc++.h>
using namespace std;
typedef long long ll;
bool cmp(pair<string, ll> &a, pair<string, ll> &b){
return a.first.length() < b.first.length();
}
int main(){
ll n;
cin >> n;
vector<pair<string, ll> > corpus(2*n - 2);
for(ll i = 0 ; i < 2*n - 2 ; i++){
cin >> corpus[i].first;
corpus[i].second = i;
}
sort(corpus.begin(), corpus.end(), cmp);
ll actual_index_from_sorted_index[2*n - 2];
for(ll i = 0 ; i < 2*n - 2 ; i++) actual_index_from_sorted_index[i] = corpus[i].second;
vector<char> ans1(2*n - 2), ans2(2*n - 2);
// length 1 -> 0, 1
// length 2 -> 2, 3
// length x -> 2*(x-1), 2*(x-1) + 1 => 2*x - 2, 2*x - 1
string suffix1 = corpus[2*n - 3].first;
set<ll> suffix_indices1;
/*
Find if possible suffixes competent with this suffix exist
Make string using one letter prefix and string
Make all the remaining strings prefixes of length 2 or more. see if the prefixes are valid
*/
suffix_indices1.insert(2*n - 3);
bool flag = true;
ll len = n-2;
for(ll i = 2*n - 5 ; i > 0 ; i -= 2, len--){
// comparison loop
if( corpus[i].first == corpus[i-1].first ){
string temp = corpus[i].first;
if( suffix1.compare(n-len-1, len, temp) == 0 ){
// cout << "corpus[" << i << "]: " << corpus[i].first << " matches\n";
suffix_indices1.insert(i);
}else{
flag = false;
break;
}
}else{
string temp1 = corpus[i].first;
string temp2 = corpus[i-1].first;
if( suffix1.compare(n-len-1, len, temp1) == 0){
suffix_indices1.insert(i);
}else if( suffix1.compare(n-len-1, len, temp2) == 0){
suffix_indices1.insert(i-1);
}else{
flag = false;
break;
}
}
}
if( flag ){
string first = (suffix_indices1.count(0) == 1)? (corpus[1].first):(corpus[0].first);
string str = first + suffix1;
ll len = 2;
for(ll i = 2 ; i < 2*n - 2 && i+1 < 2*n - 2; i+=2, len++){
string curr_prefix = (suffix_indices1.count(i) == 1)? (corpus[i+1].first):(corpus[i].first);
if( str.compare(0, len, curr_prefix) != 0 ){
flag = false;
break;
}
}
if( flag ){
for(ll i = 0 ; i < 2*n - 2 ; i++){
if( suffix_indices1.count(i) ){
ans1[actual_index_from_sorted_index[i]] = 'S';
}else{
ans1[actual_index_from_sorted_index[i]] = 'P';
}
}
for(ll i = 0 ; i < 2*n - 2; i++) cout << ans1[i];
cout << "\n";
return 0;
}
}
string suffix2 = corpus[2*n - 4].first;
set<ll> suffix_indices2;
suffix_indices2.insert(2*n - 4);
len = n - 2;
for(ll i = 2*n - 5 ; i > 0 ; i-=2, len--){
if( suffix2.compare(n-len-1, len, corpus[i].first) == 0){
suffix_indices2.insert(i);
}else{
suffix_indices2.insert(i-1);
}
}
for(ll i = 0 ; i < 2*n - 2; i++){
if( suffix_indices2.count(i) == 1 ){
ans2[actual_index_from_sorted_index[i]] = 'S';
}else{
ans2[actual_index_from_sorted_index[i]] = 'P';
}
}
//cout << "reached here5\n";
for(ll i = 0 ; i < 2*n - 2; i++) cout << ans2[i];
cout << "\n";
} | [
"avijuneja.cs@gmail.com"
] | avijuneja.cs@gmail.com |
78f3457384f4071ed8e41eed74de7b01f9beeed7 | 51ee1fcc238706ac8ce62b0cb944b492e7db095d | /unix/make/add.cpp | 50355144f4aceba7b95425c36db92f0a5c7a3db7 | [] | no_license | goneboy/source_code | 8ae8508cd61b63d590f19048fd4ab3607af9cd14 | 268ff2cee15f8f849aa777a5250a1b2f20c82f16 | refs/heads/master | 2020-04-02T03:59:40.939070 | 2018-12-22T14:40:45 | 2018-12-22T14:40:45 | 153,994,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | cpp | #include "add.h"
#include "main.h"
void showNumOne()
{
std::cout << "numOne = " << numOne << std::endl;
return;
}
int add2Num()
{
return numFive + numFour;
} | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
459a3af3b453b779409b0c02c247cac886f48a45 | 9a96452debe1985416e581a817eb6e82d87447d6 | /Oddity/Core/font_8x8.cpp | 447bcffdf11c23a02a53f3135fd5896825633b1e | [
"MIT"
] | permissive | ishani/Oddity | 8208458849e69e5f00cbbdded5063ea5482f9b98 | 5988fc82212e5397c0a5c51af5f61b8f61a93e22 | refs/heads/master | 2021-01-19T09:13:43.221551 | 2020-01-18T14:55:42 | 2020-01-18T14:55:42 | 5,840,595 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,983 | cpp | /**
* 8x8 monochrome bitmap fonts for rendering
* Author: Daniel Hepper <daniel@hepper.net>
*
* License: Public Domain
*
* Based on:
* // Summary: font8x8.h
* // 8x8 monochrome bitmap fonts for rendering
* //
* // Author:
* // Marcel Sondaar
* // International Business Machines (public domain VGA fonts)
* //
* // License:
* // Public Domain
*
* Fetched from: http://dimensionalrift.homelinux.net/combuster/mos3/?p=viewsource&file=/modules/gfx/font8_8.asm
**/
#ifdef _MSC_VER
#define __FLASH__
#else
#define __FLASH__ __attribute__((section (".USER_FLASH")))
#endif // _MSC_VER
// Constant: font8x8_basic
// Contains an 8x8 font map for unicode points U+0000 - U+007F (basic latin)
static const unsigned char font8x8_basic[128][8] __FLASH__ = {
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0000 (nul)
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0001
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0002
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0003
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0004
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0005
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0006
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0007
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0008
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0009
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000A
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000B
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000C
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000D
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000E
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+000F
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0010
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0011
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0012
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0013
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0014
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0015
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0016
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0017
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0018
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0019
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001A
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001B
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001C
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001D
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001E
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+001F
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0020 (space)
{ 0x18, 0x3C, 0x3C, 0x18, 0x18, 0x00, 0x18, 0x00}, // U+0021 (!)
{ 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0022 (")
{ 0x36, 0x36, 0x7F, 0x36, 0x7F, 0x36, 0x36, 0x00}, // U+0023 (#)
{ 0x0C, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x0C, 0x00}, // U+0024 ($)
{ 0x00, 0x63, 0x33, 0x18, 0x0C, 0x66, 0x63, 0x00}, // U+0025 (%)
{ 0x1C, 0x36, 0x1C, 0x6E, 0x3B, 0x33, 0x6E, 0x00}, // U+0026 (&)
{ 0x06, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0027 (')
{ 0x18, 0x0C, 0x06, 0x06, 0x06, 0x0C, 0x18, 0x00}, // U+0028 (()
{ 0x06, 0x0C, 0x18, 0x18, 0x18, 0x0C, 0x06, 0x00}, // U+0029 ())
{ 0x00, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x00, 0x00}, // U+002A (*)
{ 0x00, 0x0C, 0x0C, 0x3F, 0x0C, 0x0C, 0x00, 0x00}, // U+002B (+)
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x06}, // U+002C (,)
{ 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00, 0x00}, // U+002D (-)
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x00}, // U+002E (.)
{ 0x60, 0x30, 0x18, 0x0C, 0x06, 0x03, 0x01, 0x00}, // U+002F (/)
{ 0x3E, 0x63, 0x73, 0x7B, 0x6F, 0x67, 0x3E, 0x00}, // U+0030 (0)
{ 0x0C, 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x3F, 0x00}, // U+0031 (1)
{ 0x1E, 0x33, 0x30, 0x1C, 0x06, 0x33, 0x3F, 0x00}, // U+0032 (2)
{ 0x1E, 0x33, 0x30, 0x1C, 0x30, 0x33, 0x1E, 0x00}, // U+0033 (3)
{ 0x38, 0x3C, 0x36, 0x33, 0x7F, 0x30, 0x78, 0x00}, // U+0034 (4)
{ 0x3F, 0x03, 0x1F, 0x30, 0x30, 0x33, 0x1E, 0x00}, // U+0035 (5)
{ 0x1C, 0x06, 0x03, 0x1F, 0x33, 0x33, 0x1E, 0x00}, // U+0036 (6)
{ 0x3F, 0x33, 0x30, 0x18, 0x0C, 0x0C, 0x0C, 0x00}, // U+0037 (7)
{ 0x1E, 0x33, 0x33, 0x1E, 0x33, 0x33, 0x1E, 0x00}, // U+0038 (8)
{ 0x1E, 0x33, 0x33, 0x3E, 0x30, 0x18, 0x0E, 0x00}, // U+0039 (9)
{ 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x00}, // U+003A (:)
{ 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x0C, 0x0C, 0x06}, // U+003B (//)
{ 0x18, 0x0C, 0x06, 0x03, 0x06, 0x0C, 0x18, 0x00}, // U+003C (<)
{ 0x00, 0x00, 0x3F, 0x00, 0x00, 0x3F, 0x00, 0x00}, // U+003D (=)
{ 0x06, 0x0C, 0x18, 0x30, 0x18, 0x0C, 0x06, 0x00}, // U+003E (>)
{ 0x1E, 0x33, 0x30, 0x18, 0x0C, 0x00, 0x0C, 0x00}, // U+003F (?)
{ 0x3E, 0x63, 0x7B, 0x7B, 0x7B, 0x03, 0x1E, 0x00}, // U+0040 (@)
{ 0x0C, 0x1E, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x00}, // U+0041 (A)
{ 0x3F, 0x66, 0x66, 0x3E, 0x66, 0x66, 0x3F, 0x00}, // U+0042 (B)
{ 0x3C, 0x66, 0x03, 0x03, 0x03, 0x66, 0x3C, 0x00}, // U+0043 (C)
{ 0x1F, 0x36, 0x66, 0x66, 0x66, 0x36, 0x1F, 0x00}, // U+0044 (D)
{ 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x46, 0x7F, 0x00}, // U+0045 (E)
{ 0x7F, 0x46, 0x16, 0x1E, 0x16, 0x06, 0x0F, 0x00}, // U+0046 (F)
{ 0x3C, 0x66, 0x03, 0x03, 0x73, 0x66, 0x7C, 0x00}, // U+0047 (G)
{ 0x33, 0x33, 0x33, 0x3F, 0x33, 0x33, 0x33, 0x00}, // U+0048 (H)
{ 0x1E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00}, // U+0049 (I)
{ 0x78, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E, 0x00}, // U+004A (J)
{ 0x67, 0x66, 0x36, 0x1E, 0x36, 0x66, 0x67, 0x00}, // U+004B (K)
{ 0x0F, 0x06, 0x06, 0x06, 0x46, 0x66, 0x7F, 0x00}, // U+004C (L)
{ 0x63, 0x77, 0x7F, 0x7F, 0x6B, 0x63, 0x63, 0x00}, // U+004D (M)
{ 0x63, 0x67, 0x6F, 0x7B, 0x73, 0x63, 0x63, 0x00}, // U+004E (N)
{ 0x1C, 0x36, 0x63, 0x63, 0x63, 0x36, 0x1C, 0x00}, // U+004F (O)
{ 0x3F, 0x66, 0x66, 0x3E, 0x06, 0x06, 0x0F, 0x00}, // U+0050 (P)
{ 0x1E, 0x33, 0x33, 0x33, 0x3B, 0x1E, 0x38, 0x00}, // U+0051 (Q)
{ 0x3F, 0x66, 0x66, 0x3E, 0x36, 0x66, 0x67, 0x00}, // U+0052 (R)
{ 0x1E, 0x33, 0x07, 0x0E, 0x38, 0x33, 0x1E, 0x00}, // U+0053 (S)
{ 0x3F, 0x2D, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00}, // U+0054 (T)
{ 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x3F, 0x00}, // U+0055 (U)
{ 0x33, 0x33, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00}, // U+0056 (V)
{ 0x63, 0x63, 0x63, 0x6B, 0x7F, 0x77, 0x63, 0x00}, // U+0057 (W)
{ 0x63, 0x63, 0x36, 0x1C, 0x1C, 0x36, 0x63, 0x00}, // U+0058 (X)
{ 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x0C, 0x1E, 0x00}, // U+0059 (Y)
{ 0x7F, 0x63, 0x31, 0x18, 0x4C, 0x66, 0x7F, 0x00}, // U+005A (Z)
{ 0x1E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x1E, 0x00}, // U+005B ([)
{ 0x03, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x40, 0x00}, // U+005C (\)
{ 0x1E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1E, 0x00}, // U+005D (])
{ 0x08, 0x1C, 0x36, 0x63, 0x00, 0x00, 0x00, 0x00}, // U+005E (^)
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF}, // U+005F (_)
{ 0x0C, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+0060 (`)
{ 0x00, 0x00, 0x1E, 0x30, 0x3E, 0x33, 0x6E, 0x00}, // U+0061 (a)
{ 0x07, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3B, 0x00}, // U+0062 (b)
{ 0x00, 0x00, 0x1E, 0x33, 0x03, 0x33, 0x1E, 0x00}, // U+0063 (c)
{ 0x38, 0x30, 0x30, 0x3e, 0x33, 0x33, 0x6E, 0x00}, // U+0064 (d)
{ 0x00, 0x00, 0x1E, 0x33, 0x3f, 0x03, 0x1E, 0x00}, // U+0065 (e)
{ 0x1C, 0x36, 0x06, 0x0f, 0x06, 0x06, 0x0F, 0x00}, // U+0066 (f)
{ 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x1F}, // U+0067 (g)
{ 0x07, 0x06, 0x36, 0x6E, 0x66, 0x66, 0x67, 0x00}, // U+0068 (h)
{ 0x0C, 0x00, 0x0E, 0x0C, 0x0C, 0x0C, 0x1E, 0x00}, // U+0069 (i)
{ 0x30, 0x00, 0x30, 0x30, 0x30, 0x33, 0x33, 0x1E}, // U+006A (j)
{ 0x07, 0x06, 0x66, 0x36, 0x1E, 0x36, 0x67, 0x00}, // U+006B (k)
{ 0x0E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1E, 0x00}, // U+006C (l)
{ 0x00, 0x00, 0x33, 0x7F, 0x7F, 0x6B, 0x63, 0x00}, // U+006D (m)
{ 0x00, 0x00, 0x1F, 0x33, 0x33, 0x33, 0x33, 0x00}, // U+006E (n)
{ 0x00, 0x00, 0x1E, 0x33, 0x33, 0x33, 0x1E, 0x00}, // U+006F (o)
{ 0x00, 0x00, 0x3B, 0x66, 0x66, 0x3E, 0x06, 0x0F}, // U+0070 (p)
{ 0x00, 0x00, 0x6E, 0x33, 0x33, 0x3E, 0x30, 0x78}, // U+0071 (q)
{ 0x00, 0x00, 0x3B, 0x6E, 0x66, 0x06, 0x0F, 0x00}, // U+0072 (r)
{ 0x00, 0x00, 0x3E, 0x03, 0x1E, 0x30, 0x1F, 0x00}, // U+0073 (s)
{ 0x08, 0x0C, 0x3E, 0x0C, 0x0C, 0x2C, 0x18, 0x00}, // U+0074 (t)
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x33, 0x6E, 0x00}, // U+0075 (u)
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x1E, 0x0C, 0x00}, // U+0076 (v)
{ 0x00, 0x00, 0x63, 0x6B, 0x7F, 0x7F, 0x36, 0x00}, // U+0077 (w)
{ 0x00, 0x00, 0x63, 0x36, 0x1C, 0x36, 0x63, 0x00}, // U+0078 (x)
{ 0x00, 0x00, 0x33, 0x33, 0x33, 0x3E, 0x30, 0x1F}, // U+0079 (y)
{ 0x00, 0x00, 0x3F, 0x19, 0x0C, 0x26, 0x3F, 0x00}, // U+007A (z)
{ 0x38, 0x0C, 0x0C, 0x07, 0x0C, 0x0C, 0x38, 0x00}, // U+007B ({)
{ 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x00}, // U+007C (|)
{ 0x07, 0x0C, 0x0C, 0x38, 0x0C, 0x0C, 0x07, 0x00}, // U+007D (})
{ 0x6E, 0x3B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // U+007E (~)
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} // U+007F
};
// ---------------------------------------------------------------------------------------------------------------------
const unsigned char* getFontGlyphData8x8(char c)
{
if (c > 127)
return 0;
return font8x8_basic[c];
} | [
"harry.denholm@gmail.com"
] | harry.denholm@gmail.com |
207bf6f108835469de7bb28b4027f57c144e030e | 9fd121fa50715df41c2973641a4cf636754e2c25 | /SimpleShooter/Source/SimpleShooter/PlayerCharacter.cpp | 8a6e793af17768179e7f181e107eab615ba10f86 | [] | no_license | roccodimaio/ProjectEpsilon | e2e839294716af09b1c52b69b8baf74b40b15276 | 98c55903766ad645794f2e57e4e984556711c514 | refs/heads/master | 2023-02-18T22:39:27.902560 | 2021-01-20T02:32:02 | 2021-01-20T02:32:02 | 301,919,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,629 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "PlayerCharacter.h"
#include "Components/CapsuleComponent.h"
#include "SimpleShooterGameModeBase.h"
#include "Gun.h"
#include "BaseMeleeWeapon.h"
#include "BaseWeapon.h"
#include "BaseWeapon_Gun.h"
#include "BaseWeapon_Gun_Projectile.h"
#include "Blueprint/UserWidget.h"
#include "SimpleShooterPlayerController.h"
#include "Animation/AnimInstance.h"
#include "PlayerCharacterAnimInstance.h"
#include "Components/BoxComponent.h"
#include "Components/SphereComponent.h"
#include "BaseAICharacter.h"
#include "Kismet/GameplayStatics.h"
#include "Engine/SkeletalMeshSocket.h"
#include "ProjectileSkillBase.h"
#include "BaseMissile.h"
#include "TimerManager.h"
// Sets default values
APlayerCharacter::APlayerCharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
RightHandCollision = CreateDefaultSubobject<UBoxComponent>(TEXT("RightHandCollisionVolume"));
RightHandCollision->SetupAttachment(GetMesh(), "RightHandSocket");
LeftHandCollision = CreateDefaultSubobject<UBoxComponent>(TEXT("LeftHandCollision"));
LeftHandCollision->SetupAttachment(GetMesh(), "LeftHandSocket");
RightFootCollision = CreateDefaultSubobject<UBoxComponent>(TEXT("RightFootCollision"));
RightFootCollision->SetupAttachment(GetMesh(), "RightFootSocket");
LeftFootCollision = CreateDefaultSubobject<UBoxComponent>(TEXT("LeftFootCollision"));
LeftFootCollision->SetupAttachment(GetMesh(), "LeftFootSocket");
SkillOneSpawnPoint = CreateDefaultSubobject<USceneComponent>(TEXT("SkillOneSpawnPoint"));
SkillOneSpawnPoint->SetupAttachment(GetMesh());
SkillTwoSpawnPoint = CreateDefaultSubobject<USceneComponent>(TEXT("SkillTwoSpawnPoint"));
SkillTwoSpawnPoint->SetupAttachment(GetMesh());
RadarSphereCollisiion = CreateDefaultSubobject<USphereComponent>(TEXT("RadarSphereCollision"));
RadarSphereCollisiion->SetupAttachment(GetRootComponent());
}
// Called when the game starts or when spawned
void APlayerCharacter::BeginPlay()
{
Super::BeginPlay();
RightHandCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
LeftHandCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
RightFootCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
LeftFootCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
RadarSphereCollisiion->SetCollisionEnabled(ECollisionEnabled::NoCollision);
RightHandCollision->OnComponentBeginOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapBeginRightHand);
RightHandCollision->OnComponentEndOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapEndRightHand);
LeftHandCollision->OnComponentBeginOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapBeginLeftHand);
LeftHandCollision->OnComponentEndOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapEndLeftHand);
RightFootCollision->OnComponentBeginOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapBeginRightFoot);
RightFootCollision->OnComponentEndOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapEndRightFoot);
LeftFootCollision->OnComponentBeginOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapBeginLeftFoot);
LeftFootCollision->OnComponentEndOverlap.AddDynamic(this, &APlayerCharacter::OnOverlapEndLeftFoot);
Health = MaxHealth;
PlayerStance = EPlayerStance::EPS_Unarmed;
if (MainWeaponClass != NULL)
{
// Spawn MainWeapon
MainWeapon = GetWorld()->SpawnActor<ABaseWeapon>(MainWeaponClass);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("*** NO MAIN WEAPON CLASS SELECTED ***"));
}
if (MainWeapon != nullptr)
{
// Attach MainWeapon to the appropriate Socket
MainWeapon->UnequipWeapon(this);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("*** NO MAIN WEAPON ***"));
}
if (SecondaryWeaponClass != NULL)
{
// Spawn Secondary Weapon
SecondaryWeapon = GetWorld()->SpawnActor<ABaseWeapon>(SecondaryWeaponClass);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("*** NO SECONDARY WEAPON CLASS SELECTED ***"));
}
if (SecondaryWeapon != nullptr)
{
// Attach SecondaryWeapon to the appropriate Socket
SecondaryWeapon->UnequipWeapon(this);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("*** NO SECONDARY WEAPON ***"));
}
OwnerAnimInstance = GetMesh()->GetAnimInstance();
if (OwnerAnimInstance != nullptr)
{
UPlayerCharacterAnimInstance* VerifyAnimInstance = Cast<UPlayerCharacterAnimInstance>(OwnerAnimInstance);
if (VerifyAnimInstance)
{
PlayerAnimInstance = VerifyAnimInstance;
}
}
// Spawn blueprint of Gun.h
//EquippedGun = GetWorld()->SpawnActor<AGun>(GunClass);
//GunSocketName = EquippedGun->EquippedSocketName;
//Attach Gun to the specified socket on the character mesh
//EquippedGun->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepRelativeTransform, GunSocketName);
//EquippedMelee = GetWorld()->SpawnActor<ABaseMeleeWeapon>(MeleeClass);
//MeleeSocketName = EquippedMelee->EquippedSocketName;
// Attach Melee weapon to the specific socket on the character mesh
//EquippedMelee->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepRelativeTransform, MeleeSocketName);
}
// Called every frame
void APlayerCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
if ((bGetRadarInput == true) && (bProcessingRadarData == false))
{
//UE_LOG(LogTemp, Warning, TEXT("Tick -> bGetRadarInput"));
GetEnemiesWithinRadar();
}
}
// Called to bind functionality to input
void APlayerCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
PlayerInputComponent->BindAxis(TEXT("MoveForward"), this, &APlayerCharacter::MoveForward);
PlayerInputComponent->BindAxis(TEXT("LookUp"), this, &APawn::AddControllerPitchInput);
PlayerInputComponent->BindAxis(TEXT("MoveRight"), this, &APlayerCharacter::MoveRight);
PlayerInputComponent->BindAxis(TEXT("LookRight"), this, &APawn::AddControllerYawInput);
PlayerInputComponent->BindAxis(TEXT("LookUpRate"), this, &APlayerCharacter::LookUpRate);
PlayerInputComponent->BindAxis(TEXT("LookRightRate"), this, &APlayerCharacter::LookRightRate);
PlayerInputComponent->BindAction(TEXT("Jump"), IE_Pressed, this, &ACharacter::Jump);
PlayerInputComponent->BindAction(TEXT("SwapWeapon"), IE_Pressed, this, &APlayerCharacter::SwapWeapon);
PlayerInputComponent->BindAction(TEXT("PullTrigger"), IE_Pressed, this, &APlayerCharacter::PullTrigger);
PlayerInputComponent->BindAction(TEXT("PullTrigger"), IE_Released, this, &APlayerCharacter::ReleaseTrigger);
PlayerInputComponent->BindAction(TEXT("ActionButton"), IE_Pressed, this, &APlayerCharacter::ActionButtonPressed);
PlayerInputComponent->BindAction(TEXT("ActionButton"), IE_Released, this, &APlayerCharacter::ActionButtonReleased);
PlayerInputComponent->BindAction(TEXT("HeavyAttackButton"), IE_Pressed, this, &APlayerCharacter::HeavyAttackPressed);
PlayerInputComponent->BindAction(TEXT("HeavyAttackButton"), IE_Released, this, &APlayerCharacter::HeavyAttackReleased);
PlayerInputComponent->BindAction(TEXT("SkillButton"), IE_Pressed, this, &APlayerCharacter::SkillAttack);
PlayerInputComponent->BindAction(TEXT("Skill02Button"), IE_Pressed, this, &APlayerCharacter::Skill02ButtonPressed);
PlayerInputComponent->BindAction(TEXT("Skill02Button"), IE_Released, this, &APlayerCharacter::Skill02ButtonReleased);
}
float APlayerCharacter::TakeDamage(float DamageAmount, FDamageEvent const& DamageEvent, AController* EventInstigator, AActor* DamageCauser)
{
float DamageToApply = Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
if (Health - DamageToApply <= 0.f)
{
Health = 0;
bIsDead = true;
// Store reference to the SimpleShooterGameModeBase
ASimpleShooterGameModeBase* GameMode = GetWorld()->GetAuthGameMode<ASimpleShooterGameModeBase>();
if (GameMode != nullptr)
{
// GameMode will handle events after ShooterCharacter is killed (score, subtract lives, track wave numbers, etc.)
GameMode->PawnKilled(this);
}
// Remove controller from ShooterCharacter. Results in no longer being able to attack, mover, etc.
DetachFromControllerPendingDestroy();
// Turn off capsule collision
GetCapsuleComponent()->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
else
{
Health -= DamageToApply;
}
//UE_LOG(LogTemp, Warning, TEXT("Health left %f"), Health);
return DamageToApply;
}
bool APlayerCharacter::IsDead() const
{
return bIsDead;
}
float APlayerCharacter::GetHealthPercent() const
{
return Health / MaxHealth;
}
float APlayerCharacter::GetCurrentHealth() const
{
return Health;
}
float APlayerCharacter::GetMaxHealth() const
{
return MaxHealth;
}
void APlayerCharacter::PullTrigger()
{
ABaseWeapon_Gun_Projectile* GunWeapon = Cast<ABaseWeapon_Gun_Projectile>(ActiveWeapon);
//ABaseWeapon_Gun* GunWeapon = Cast<ABaseWeapon_Gun>(ActiveWeapon);
if (GunWeapon != nullptr)
{
GunWeapon->PullTrigger();
//GetWorld()->GetTimerManager().SetTimer(FireTimerHandle, this, &ABaseWeapon_Gun_Projectile::PullTrigger, 1 / ShotsPerSecond, true, -1.f);
}
}
void APlayerCharacter::ReleaseTrigger()
{
ABaseWeapon_Gun_Projectile* GunWeapon = Cast<ABaseWeapon_Gun_Projectile>(ActiveWeapon);
//ABaseWeapon_Gun* GunWeapon = Cast<ABaseWeapon_Gun>(ActiveWeapon);
UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->ReleaseTrigger"));
if (GunWeapon != nullptr)
{
GunWeapon->ReleaseTrigger();
}
}
void APlayerCharacter::ActionButtonPressed()
{
if (bIsAttacking == true)
{
UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->ActionButtonPressed()-> bIsAttacking == true"));
return;
}
switch (PlayerStance)
{
case EPlayerStance::EPS_Unarmed:
Attack(PunchMontage);
break;
case EPlayerStance::EPS_Katana:
Attack(KatanaMontage);
break;
case EPlayerStance::EPS_Rifle:
if (ActiveWeapon != nullptr)
{
ABaseWeapon_Gun_Projectile* EquippedGun = Cast<ABaseWeapon_Gun_Projectile>(ActiveWeapon);
//ABaseWeapon_Gun* EquippedGun = Cast<ABaseWeapon_Gun>(ActiveWeapon);
if (EquippedGun)
{
EquippedGun->PullTrigger();
}
}
break;
case EPlayerStance::EPS_Pistol:
break;
case EPlayerStance::EPS_MAX:
break;
default:
break;
}
/**
UAnimInstance* AnimInstance = GetMesh()->GetAnimInstance();
if (bCanAttack && bListeningForComboInput && ComboCount < ComboMax)
{
if (PunchMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(PunchMontage, 1.f);
if (MontageDuration > 0.f)
{
ComboCount += 1;
LightAttackNumber += 1;
FString AttackNumber = FString::FromInt(LightAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, PunchMontage);
}
}
}
else if (bCanAttack && bIsAttacking == false)
{
if (PunchMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(PunchMontage, 1.f);
if (MontageDuration > 0.f)
{
LightAttackNumber = 1;
HeavyAttackNumber = 1;
ComboCount = 0;
FString AttackNumber = FString::FromInt(LightAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, PunchMontage);
}
}
}
*/
}
void APlayerCharacter::ActionButtonReleased()
{
if (PlayerStance == EPlayerStance::EPS_Rifle)
{
ABaseWeapon_Gun_Projectile* GunWeapon = Cast<ABaseWeapon_Gun_Projectile>(ActiveWeapon);
//ABaseWeapon_Gun* GunWeapon = Cast<ABaseWeapon_Gun>(ActiveWeapon);
UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->ActionButtonReleased"));
if (GunWeapon != nullptr)
{
GunWeapon->ReleaseTrigger();
}
}
}
void APlayerCharacter::HeavyAttackPressed()
{
if (bIsAttacking == true)
{
return;
}
switch (PlayerStance)
{
case EPlayerStance::EPS_Unarmed:
HeavyAttack(KickMontage);
break;
case EPlayerStance::EPS_Katana:
HeavyAttack(HeavyKatanaMontage);
break;
case EPlayerStance::EPS_Rifle:
break;
case EPlayerStance::EPS_Pistol:
break;
case EPlayerStance::EPS_MAX:
break;
default:
break;
}
/**
UAnimInstance* AnimInstance = GetMesh()->GetAnimInstance();
if (bCanAttack && bListeningForComboInput && ComboCount < ComboMax)
{
if (KickMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(KickMontage, 1.f);
UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->HeavyAttackPressed()-> KickMontage, AnimInstance"));
if (MontageDuration > 0.f)
{
UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->HeavyAttackPressed()-> MontageDuration"));
ComboCount += 1;
HeavyAttackNumber += 1;
FString AttackNumber = FString::FromInt(HeavyAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, KickMontage);
}
}
}
else if (bCanAttack && bIsAttacking == false)
{
if (KickMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(KickMontage, 1.f);
if (MontageDuration > 0.f)
{
LightAttackNumber = 1;
HeavyAttackNumber = 1;
ComboCount = 0;
FString AttackNumber = FString::FromInt(HeavyAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, KickMontage);
}
}
}
*/
}
void APlayerCharacter::HeavyAttackReleased()
{
}
void APlayerCharacter::Attack(UAnimMontage* AttackMontage)
{
UAnimInstance* AnimInstance = GetMesh()->GetAnimInstance();
if (AttackMontage == nullptr)
{
return;
}
if (bCanAttack && bListeningForComboInput && ComboCount < ComboMax)
{
if (AttackMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(AttackMontage, 1.f);
if (MontageDuration > 0.f)
{
ComboCount += 1;
LightAttackNumber += 1;
FString AttackNumber = FString::FromInt(LightAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, AttackMontage);
}
}
}
else if (bCanAttack && bIsAttacking == false)
{
if (AttackMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(AttackMontage, 1.f);
if (MontageDuration > 0.f)
{
LightAttackNumber = 1;
HeavyAttackNumber = 1;
ComboCount = 0;
FString AttackNumber = FString::FromInt(LightAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, AttackMontage);
}
}
}
}
void APlayerCharacter::HeavyAttack(UAnimMontage* AttackMontage)
{
UAnimInstance* AnimInstance = GetMesh()->GetAnimInstance();
if (AttackMontage == nullptr)
{
return;
}
if (bCanAttack && bListeningForComboInput && ComboCount < ComboMax)
{
if (AttackMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(AttackMontage, 1.f);
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->HeavyAttackPressed()-> KickMontage, AnimInstance"));
if (MontageDuration > 0.f)
{
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->HeavyAttackPressed()-> MontageDuration"));
ComboCount += 1;
HeavyAttackNumber += 1;
FString AttackNumber = FString::FromInt(HeavyAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, AttackMontage);
}
}
}
else if (bCanAttack && bIsAttacking == false)
{
if (AttackMontage && AnimInstance)
{
float MontageDuration = AnimInstance->Montage_Play(AttackMontage, 1.f);
if (MontageDuration > 0.f)
{
LightAttackNumber = 1;
HeavyAttackNumber = 1;
ComboCount = 0;
FString AttackNumber = FString::FromInt(HeavyAttackNumber);
FName ConvertedAttackNumber(AttackNumber);
bIsAttacking = true;
AnimInstance->Montage_JumpToSection(ConvertedAttackNumber, AttackMontage);
}
}
}
}
void APlayerCharacter::SkillAttack()
{
if (ProjectileSkillClass)
{
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->SkillAttack->Class is valid"));
FVector ProjectileSkillSpawnLocation = SkillOneSpawnPoint->GetComponentLocation();
FRotator ProjectileSkillSpawnRotation = SkillOneSpawnPoint->GetComponentRotation();
FVector TargetLocation = FVector(0.f);
FVector AimDirection = FVector(0.f);
FActorSpawnParameters SpawnParams;
FCollisionQueryParams Params;
Params.AddIgnoredActor(GetOwner());
Params.AddIgnoredActor(MainWeapon);
Params.AddIgnoredActor(SecondaryWeapon);
//Params.AddIgnoredActor(this);
SpawnParams.Owner = this;
SpawnParams.Instigator = this;
AController* OwnerController = GetController();
OwnerController->GetPlayerViewPoint(ViewPointLocation, ViewPointRotation);
FHitResult Hit;
// Calculate end point of line trace (distance bullet can travel from the camera)
FVector End = ViewPointLocation + ViewPointRotation.Vector() * Skill01MaxRange;
GetWorld()->LineTraceSingleByChannel(Hit, ViewPointLocation, End, ECollisionChannel::ECC_GameTraceChannel1, Params);
if (Hit.bBlockingHit)
{
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->SkillAttack->Hit.bBlockingHit"));
TargetLocation = Hit.Location;
AimDirection = (TargetLocation - ProjectileSkillSpawnLocation).GetSafeNormal();
AimDirection.Normalize();
}
else
{
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->SkillAttack->Hit.bBlockingHit - ELSE"));
TargetLocation = Hit.TraceEnd;
AimDirection = (TargetLocation - ProjectileSkillSpawnLocation).GetSafeNormal();
AimDirection.Normalize();
}
bIsUsingSkill01 = true;
AProjectileSkillBase* TempProjectile = GetWorld()->SpawnActor<AProjectileSkillBase>(ProjectileSkillClass, ProjectileSkillSpawnLocation, ProjectileSkillSpawnRotation, SpawnParams);
if (TempProjectile->InitialParticleSystem)
{
UParticleSystemComponent* SpawnParticle = UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), TempProjectile->InitialParticleSystem, ProjectileSkillSpawnLocation, ProjectileSkillSpawnRotation, 1.f);
}
if (TempProjectile)
{
//UE_LOG(LogTemp, Warning, TEXT("PlayerCharacter->SkillAttack->TempProjectile"));
TempProjectile->SetOwner(this);
// Ignore the Owner of the Gun class when line tracing
TempProjectile->FireInDirection(AimDirection);
TempProjectile->SetActorRotation(ViewPointRotation);
}
}
}
void APlayerCharacter::OnOverlapBeginRightHand(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)
{
if (OtherActor != nullptr)
{
ABaseAICharacter* EnemyCharacter = Cast<ABaseAICharacter>(OtherActor);
if (EnemyCharacter)
{
const USkeletalMeshSocket* FistSocket = GetMesh()->GetSocketByName("FX_RightHand");
if (EnemyCharacter->ImpactParticleSystem && FistSocket)
{
FVector SocketLocation = FistSocket->GetSocketLocation(GetMesh());
UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), EnemyCharacter->ImpactParticleSystem, SocketLocation, FRotator(0.f), false);
}
AController* OwnerController = GetController();
OwnerController->GetPlayerViewPoint(ViewPointLocation, ViewPointRotation);
FPointDamageEvent DamageEvent(UnarmedDamage, SweepResult, -ViewPointRotation.Vector(), nullptr);
EnemyCharacter->TakeDamage(UnarmedDamage, FDamageEvent(), OwnerController, this);
}
}
}
void APlayerCharacter::OnOverlapEndRightHand(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex)
{
}
void APlayerCharacter::OnOverlapBeginLeftHand(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)
{
if (OtherActor != nullptr)
{
ABaseAICharacter* EnemyCharacter = Cast<ABaseAICharacter>(OtherActor);
if (EnemyCharacter)
{
AController* OwnerController = GetController();
OwnerController->GetPlayerViewPoint(ViewPointLocation, ViewPointRotation);
FPointDamageEvent DamageEvent(UnarmedDamage, SweepResult, -ViewPointRotation.Vector(), nullptr);
EnemyCharacter->TakeDamage(UnarmedDamage, FDamageEvent(), OwnerController, this);
}
}
}
void APlayerCharacter::OnOverlapEndLeftHand(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex)
{
}
void APlayerCharacter::OnOverlapBeginRightFoot(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)
{
if (OtherActor != nullptr)
{
ABaseAICharacter* EnemyCharacter = Cast<ABaseAICharacter>(OtherActor);
if (EnemyCharacter)
{
AController* OwnerController = GetController();
OwnerController->GetPlayerViewPoint(ViewPointLocation, ViewPointRotation);
FPointDamageEvent DamageEvent(UnarmedDamage, SweepResult, -ViewPointRotation.Vector(), nullptr);
EnemyCharacter->TakeDamage(UnarmedDamage, FDamageEvent(), OwnerController, this);
}
}
}
void APlayerCharacter::OnOverlapEndRightFoot(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex)
{
}
void APlayerCharacter::OnOverlapBeginLeftFoot(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)
{
if (OtherActor != nullptr)
{
ABaseAICharacter* EnemyCharacter = Cast<ABaseAICharacter>(OtherActor);
if (EnemyCharacter)
{
AController* OwnerController = GetController();
OwnerController->GetPlayerViewPoint(ViewPointLocation, ViewPointRotation);
FPointDamageEvent DamageEvent(UnarmedDamage, SweepResult, -ViewPointRotation.Vector(), nullptr);
EnemyCharacter->TakeDamage(UnarmedDamage, FDamageEvent(), OwnerController, this);
}
}
}
void APlayerCharacter::OnOverlapEndLeftFoot(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex)
{
}
void APlayerCharacter::EnableRightHandCollision()
{
RightHandCollision->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
}
void APlayerCharacter::DisableRightHandCollision()
{
RightHandCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
void APlayerCharacter::EnableLeftHandCollision()
{
LeftHandCollision->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
}
void APlayerCharacter::DisableLeftHandCollision()
{
LeftHandCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
void APlayerCharacter::EnableRightFootCollision()
{
RightFootCollision->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
}
void APlayerCharacter::DisableRightFootCollision()
{
RightFootCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
void APlayerCharacter::EnableLeftFootCollision()
{
LeftFootCollision->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
}
void APlayerCharacter::DisableLeftFootCollision()
{
LeftFootCollision->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
void APlayerCharacter::GetEnemiesWithinRadar()
{
bProcessingRadarData = true;
//UE_LOG(LogTemp, Warning, TEXT("GetEnemiesWithinRadar"));
RadarSphereCollisiion->SetSphereRadius(RadarSphereRadius);
TArray<AActor*> OverlappingActors;
TArray<ABaseAICharacter*> OverlappingBaseAIActors;
// Identify all actors within the RadarSphereCollision component and add to OverlappingActors array
RadarSphereCollisiion->GetOverlappingActors(OverlappingActors);
// Loop through OverlappingActors, cast to ABaseAICharacter and if successful add to OverlappingBaseAIActors
for (AActor* Actor : OverlappingActors)
{
ABaseAICharacter* BaseAICharacter = Cast<ABaseAICharacter>(Actor);
if (BaseAICharacter)
{
OverlappingBaseAIActors.Add(BaseAICharacter);
}
}
ABaseAICharacter* ClosestAICharacter = nullptr;
float currentClosestDistance = RadarSphereRadius;
FVector MyLocation = GetActorLocation();
// Loop through all OverlappingActors
for (ABaseAICharacter* TempBaseAICharacter : OverlappingBaseAIActors)
{
FVector DeltaVector = TempBaseAICharacter->GetActorLocation() - MyLocation;
FVector DistToTargetVector = DeltaVector;
float Delta = DeltaVector.Size();
float DotP = 0.f;
DistToTargetVector.Normalize();
DotP = FVector::DotProduct(GetActorForwardVector(), DistToTargetVector);
UE_LOG(LogTemp, Warning, TEXT("DotP = %f"), DotP);
if (Delta < currentClosestDistance && (DotP >= 0))
{
currentClosestDistance = Delta;
ClosestAICharacter = TempBaseAICharacter;
}
/**
float DotP = 0.f;
//FVector DistanceToTarget = Actor->GetActorLocation() - GetActorLocation();
float DistanceToTarget = FVector::Dist(GetActorLocation(), Actor->GetActorLocation());
//DistanceToTarget.Normalize();
//DotP = FVector::DotProduct(DistanceToTarget, GetActorForwardVector());
// if DotP is greater than 0 then Actor is in front of PlayerCharacter. (0 = to the side, -1 = behind)
if (DotP > 0)
{
UE_LOG(LogTemp, Warning, TEXT("DotP >0"));
float Distance = FVector::DistSquared(GetActorLocation(), Actor->GetActorLocation());
if (Distance < currentClosestDistance)
{
currentClosestDistance = Distance;
ClosestAICharacter = Actor;
}
}
*/
}
BaseAICharacterTarget = ClosestAICharacter;
bProcessingRadarData = false;
}
void APlayerCharacter::Skill02ButtonPressed()
{
//UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()"));
bGetRadarInput = true;
RadarSphereCollisiion->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
}
void APlayerCharacter::Skill02ButtonReleased()
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonReleased()"));
bGetRadarInput = false;
RadarSphereCollisiion->SetCollisionEnabled(ECollisionEnabled::NoCollision);
if (MissileClass != NULL)
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()->MissileClass NOT NULL"));
UWorld* const World = GetWorld();
if (World != NULL && bProcessingRadarData == false)
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()->World NOT NULL"));
FVector MissileSkillSpawnLocation = SkillTwoSpawnPoint->GetComponentLocation();
FRotator MissileSkillSpawnRotation = SkillTwoSpawnPoint->GetComponentRotation();
FActorSpawnParameters SpawnParams;
SpawnParams.Owner = this;
SpawnParams.Instigator = GetInstigator();
ABaseMissile* FiredMissile = World->SpawnActor<ABaseMissile>(MissileClass, MissileSkillSpawnLocation, MissileSkillSpawnRotation, SpawnParams);
if (BaseAICharacterTarget)
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()->Target is BaseAICharacter"));
FiredMissile->SetTarget(BaseAICharacterTarget);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()->Target is NOT BaseAICharacter"));
FiredMissile->SetTarget(nullptr);
}
if (FiredMissile != nullptr)
{
UE_LOG(LogTemp, Warning, TEXT("APlayerCharacter->Skill02ButtonPressed()->MissileFired!"));
FRotator MeshRot = FiredMissile->MissileMeshComponent->GetComponentRotation();
MeshRot.Roll = 0.f;
MeshRot.Pitch = 0.f;
MeshRot.Yaw = 0.f;
FiredMissile->MissileMeshComponent->SetRelativeRotation(MeshRot);
}
}
}
}
void APlayerCharacter::MoveForward(float AxisValue)
{
AddMovementInput(GetActorForwardVector() * AxisValue);
}
void APlayerCharacter::MoveRight(float AxisValue)
{
AddMovementInput(GetActorRightVector() * AxisValue);
}
void APlayerCharacter::LookUpRate(float AxisValue)
{
AddControllerPitchInput(AxisValue * RotationRateLookUp * GetWorld()->GetDeltaSeconds());
}
void APlayerCharacter::LookRightRate(float AxisValue)
{
AddControllerYawInput(AxisValue * RotationRateLookUp * GetWorld()->GetDeltaSeconds());
}
void APlayerCharacter::SwapWeapon()
{
LightAttackNumber = 1;
HeavyAttackNumber = 1;
ComboCount = 0;
bIsAttacking = false;
bCanAttack = true;
switch (WeaponEquippedStatus)
{
case EWeaponEquipedStatus::EWES_Unarmed:
MainWeapon->EquipWeapon(this);
SetWeaponEquippedStatus(EWeaponEquipedStatus::EWES_MainEquipped);
ActiveWeapon = MainWeapon;
ActiveWeapon->SetOwner(this);
break;
case EWeaponEquipedStatus::EWES_MainEquipped:
MainWeapon->UnequipWeapon(this);
SecondaryWeapon->EquipWeapon(this);
SetWeaponEquippedStatus(EWeaponEquipedStatus::EWES_SecondaryEquipped);
ActiveWeapon = SecondaryWeapon;
ActiveWeapon->SetOwner(this);
break;
case EWeaponEquipedStatus::EWES_SecondaryEquipped:
SecondaryWeapon->UnequipWeapon(this);
SetWeaponEquippedStatus(EWeaponEquipedStatus::EWES_Unarmed);
SetPlayerStance(EPlayerStance::EPS_Unarmed);
ActiveWeapon = nullptr;
//ActiveWeapon->SetOwner(nullptr);
break;
case EWeaponEquipedStatus::EWES_MAX:
break;
default:
break;
}
AController* OwnerController = GetController();
if (OwnerController != nullptr)
{
ASimpleShooterPlayerController* PlayerController = Cast<ASimpleShooterPlayerController>(OwnerController);
if (PlayerController)
{
PlayerController->DisplayWeaponHUD(ActiveWeapon);
}
}
}
void APlayerCharacter::SetPlayerStance(EPlayerStance Stance)
{
PlayerStance = Stance;
switch (Stance)
{
case EPlayerStance::EPS_Unarmed:
PlayerAnimInstance->bUnarmed = true;
PlayerAnimInstance->bRifleEquipped = false;
PlayerAnimInstance->bKatanaEquipped = false;
PlayerAnimInstance->bPistolEquipped = false;
break;
case EPlayerStance::EPS_Katana:
PlayerAnimInstance->bUnarmed = false;
PlayerAnimInstance->bRifleEquipped = false;
PlayerAnimInstance->bKatanaEquipped = true;
PlayerAnimInstance->bPistolEquipped = false;
break;
case EPlayerStance::EPS_Rifle:
PlayerAnimInstance->bUnarmed = false;
PlayerAnimInstance->bRifleEquipped = true;
PlayerAnimInstance->bKatanaEquipped = false;
PlayerAnimInstance->bPistolEquipped = false;
break;
case EPlayerStance::EPS_Pistol:
PlayerAnimInstance->bUnarmed = false;
PlayerAnimInstance->bRifleEquipped = false;
PlayerAnimInstance->bKatanaEquipped = false;
PlayerAnimInstance->bPistolEquipped = true;
break;
case EPlayerStance::EPS_MAX:
break;
default:
break;
}
}
EPlayerStance APlayerCharacter::GetPlayerStance()
{
return PlayerStance;
}
void APlayerCharacter::SetWeaponEquippedStatus(EWeaponEquipedStatus Status)
{
WeaponEquippedStatus = Status;
}
EWeaponEquipedStatus APlayerCharacter::GetWeaponEquippedStatus()
{
return WeaponEquippedStatus;
}
| [
"roccodimaio@yahoo.com"
] | roccodimaio@yahoo.com |
24e34a9160c187bae232e0768da84560618a508d | 4ccc93c43061a18de9064569020eb50509e75541 | /chrome/browser/task_management/providers/web_contents/background_contents_tag_browsertest.cc | c70fa3ba20559edf907c51e6896adbde98ac2f63 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | SaschaMester/delicium | f2bdab35d51434ac6626db6d0e60ee01911797d7 | b7bc83c3b107b30453998daadaeee618e417db5a | refs/heads/master | 2021-01-13T02:06:38.740273 | 2015-07-06T00:22:53 | 2015-07-06T00:22:53 | 38,457,128 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,339 | 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 "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/task_management/providers/task_provider_observer.h"
#include "chrome/browser/task_management/providers/web_contents/web_contents_tags_manager.h"
#include "chrome/browser/task_management/providers/web_contents/web_contents_task_provider.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/common/switches.h"
#include "ui/base/l10n/l10n_util.h"
namespace task_management {
// Defines a browser test for testing that BackgroundContents are tagged
// properly and the TagsManager records these tags. It is also used to test that
// the WebContentsTaskProvider will be able to provide the appropriate
// BackgroundContentsTask.
class BackgroundContentsTagTest
: public ExtensionBrowserTest,
public TaskProviderObserver {
public:
BackgroundContentsTagTest() {}
~BackgroundContentsTagTest() override {}
const extensions::Extension* LoadBackgroundExtension() {
auto extension = LoadExtension(
test_data_dir_.AppendASCII("app_process_background_instances"));
return extension;
}
base::string16 GetBackgroundTaskExpectedName(
const extensions::Extension* extension) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_BACKGROUND_PREFIX,
base::UTF8ToUTF16(extension->name()));
}
// task_management::Task_providerObserver:
void TaskAdded(Task* task) override {
CHECK(task);
ASSERT_FALSE(provided_tasks_.count(task));
provided_tasks_.insert(task);
}
void TaskRemoved(Task* task) override {
CHECK(task);
ASSERT_TRUE(provided_tasks_.count(task));
provided_tasks_.erase(task);
}
WebContentsTagsManager* tags_manager() const {
return WebContentsTagsManager::GetInstance();
}
const std::set<Task*>& provided_tasks() const { return provided_tasks_; }
protected:
// ExtensionApiTest:
void SetUpCommandLine(base::CommandLine* command_line) override {
// Pass flags to make testing apps easier.
ExtensionBrowserTest::SetUpCommandLine(command_line);
test_data_dir_ = test_data_dir_.AppendASCII("api_test");
base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kDisablePopupBlocking);
base::CommandLine::ForCurrentProcess()->AppendSwitch(
extensions::switches::kAllowHTTPBackgroundPage);
}
private:
std::set<Task*> provided_tasks_;
DISALLOW_COPY_AND_ASSIGN(BackgroundContentsTagTest);
};
// Tests that loading an extension that has a background contents will result in
// the tags manager recording a WebContentsTag.
IN_PROC_BROWSER_TEST_F(BackgroundContentsTagTest, TagsManagerRecordsATag) {
EXPECT_TRUE(provided_tasks().empty());
EXPECT_TRUE(tags_manager()->tracked_tags().empty());
EXPECT_TRUE(LoadBackgroundExtension());
EXPECT_FALSE(tags_manager()->tracked_tags().empty());
EXPECT_EQ(1U, tags_manager()->tracked_tags().size());
EXPECT_TRUE(provided_tasks().empty());
}
// Tests that background contents creation while the provider is being observed
// will also provide tasks.
IN_PROC_BROWSER_TEST_F(BackgroundContentsTagTest, TasksProvidedWhileObserving) {
EXPECT_TRUE(provided_tasks().empty());
EXPECT_TRUE(tags_manager()->tracked_tags().empty());
WebContentsTaskProvider provider;
provider.SetObserver(this);
// Still empty, no pre-existing tasks.
EXPECT_TRUE(provided_tasks().empty());
auto extension = LoadBackgroundExtension();
ASSERT_NE(nullptr, extension);
EXPECT_FALSE(tags_manager()->tracked_tags().empty());
EXPECT_EQ(1U, tags_manager()->tracked_tags().size());
EXPECT_FALSE(provided_tasks().empty());
EXPECT_EQ(1U, provided_tasks().size());
// Now check the provided task.
const Task* task = *provided_tasks().begin();
EXPECT_EQ(Task::RENDERER, task->GetType());
EXPECT_EQ(GetBackgroundTaskExpectedName(extension), task->title());
// Unload the extension.
UnloadExtension(extension->id());
EXPECT_TRUE(provided_tasks().empty());
EXPECT_TRUE(tags_manager()->tracked_tags().empty());
}
// Tests providing a pre-existing background task to the observing operation.
IN_PROC_BROWSER_TEST_F(BackgroundContentsTagTest, PreExistingTasksAreProvided) {
EXPECT_TRUE(provided_tasks().empty());
EXPECT_TRUE(tags_manager()->tracked_tags().empty());
auto extension = LoadBackgroundExtension();
ASSERT_NE(nullptr, extension);
EXPECT_FALSE(tags_manager()->tracked_tags().empty());
EXPECT_EQ(1U, tags_manager()->tracked_tags().size());
WebContentsTaskProvider provider;
provider.SetObserver(this);
// Pre-existing task will be provided to us.
EXPECT_FALSE(provided_tasks().empty());
EXPECT_EQ(1U, provided_tasks().size());
// Now check the provided task.
const Task* task = *provided_tasks().begin();
EXPECT_EQ(Task::RENDERER, task->GetType());
EXPECT_EQ(GetBackgroundTaskExpectedName(extension), task->title());
// Unload the extension.
UnloadExtension(extension->id());
EXPECT_TRUE(provided_tasks().empty());
EXPECT_TRUE(tags_manager()->tracked_tags().empty());
}
} // namespace task_management
| [
"g4jc@github.com"
] | g4jc@github.com |
f69a53c13fcf372aebd4cbab71bb658ca8df71c5 | 1fda6ed685e7aaae0fc1691f7d6b0e37f8f02d0d | /aivanov/mapped_file/mapped_file.cpp | c0da75bed80324777918c4ee1f100af0074be7e0 | [] | no_license | ohld/acroparallels2016 | f289f34ab2da4dd2ae6d8c3f0929ce2ccfa85bd9 | a7857860383eac86b0bdbee791c661d69767577c | refs/heads/master | 2020-12-03T07:58:19.297301 | 2016-04-28T15:28:39 | 2016-04-28T15:28:39 | 56,177,785 | 1 | 0 | null | 2016-04-16T15:41:04 | 2016-04-13T18:52:11 | C | UTF-8 | C++ | false | false | 2,339 | cpp | #include "MappedFile.h"
#include <mapped_file.h>
//#define _LOG_ENABLED
#define _LOG_FLUSH true
#include "log/log.h"
#include <string.h>
//#define LOGE(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
//#define LOGI(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
mf_handle_t mf_open(const char *pathname)
{
LOGI("Opening file %s", pathname);
CMappedFile* mapped_file = new CMappedFile(pathname);
if (!mapped_file || !mapped_file->isValid())
{
LOGE("Opening file failed");
return NULL;
}
LOGI("Opened file with handle %p", mapped_file);
return mapped_file;
}
int mf_close(mf_handle_t mf)
{
LOGI("Closing file %p", mf);
delete (CMappedFile*) mf;
LOGI("Closed file");
return 0;
}
ssize_t mf_read(mf_handle_t mf, void *buf, size_t size, off_t offset)
{
LOGI("Reading %lu bytes at offset %ld from file %p to address %p)", size, offset, mf, buf);
ssize_t bytes = ((CMappedFile*) mf)->read(offset, size, (uint8_t*) buf);
if (bytes < 0)
LOGE("Reading failed(%d): \"%s\"", errno, strerror(errno));
else
LOGI("Read %ld bytes", bytes);
return bytes;
}
ssize_t mf_write(mf_handle_t mf, const void *buf, size_t size, off_t offset)
{
LOGI("Writing %lu bytes from address %p to file %p at offset %ld)", size, buf, mf, offset);
ssize_t bytes = ((CMappedFile*) mf)->write(offset, size, (const uint8_t*) buf);
if (bytes < 0)
LOGE("Writing failed(%d): \"%s\"", errno, strerror(errno));
else
LOGI("Written %ld bytes", bytes);
return bytes;
}
void* mf_map(mf_handle_t mf, off_t offset, size_t size, mf_mapmem_handle_t *mapmem_handle)
{
LOGI("Mapping region of file %p of %lu bytes at offset %ld", mf, size, offset);
void* data = NULL;
*mapmem_handle = ((CMappedFile*) mf)->map(offset, size, &data);
if (!*mapmem_handle)
{
LOGE("Mapping failed(%d): \"%s\"", errno, strerror(errno));
return NULL;
}
LOGI("Mapped to address %p with handle %p", data, *mapmem_handle);
return data;
}
int mf_unmap(mf_handle_t, mf_mapmem_handle_t mm)
{
LOGI("Unmapping %p", mm);
CFileRegion* region = ((CFileRegion*) mm);
region->removeReference();
if (!region->isReferenced())
delete region;
LOGI("Unmapped region");
return 0;
}
off_t mf_file_size(mf_handle_t mf)
{
LOGI("Getting file size of %p", mf);
ssize_t size = ((CMappedFile*) mf)->getSize();
LOGI("Size is %lu", size);
return size;
}
| [
"eviom17@gmail.com"
] | eviom17@gmail.com |
dde6c934777fe1332637b66b76f5049281ccb579 | 0be327311682f58096cdc97a4ff9c86ed69f0d32 | /Tetrahedron.cpp | ca3206a17caf2e3472d8ac4bc526baaef7d1e021 | [] | no_license | ambroseled/cpp-raytracer | 755f151d6b482bf9f3920b21cb2d2ea4200af670 | e10a26e0404f9badefc386cc6dea7ab7db5ea1cf | refs/heads/master | 2020-05-22T19:47:17.867074 | 2019-05-29T22:57:07 | 2019-05-29T22:57:07 | 186,498,321 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | cpp | /*----------------------------------------------------------
* COSC363 Ray Tracer Assignment
*
* Tetrahedron class
* This is a subclass of Object, and hence implements the
* methods intersect() and normal().
-------------------------------------------------------------*/
#include "Tetrahedron.h"
#include <math.h>
/**
* Check if a point is inside the triangle plane
*/
bool Tetrahedron::isInside(glm::vec3 point) {
glm::vec3 norm = normal(point);
glm::vec3 uA = b - a;
glm::vec3 uB = c - b;
glm::vec3 uC = a - c;
glm::vec3 vA = point - a;
glm::vec3 vB = point - b;
glm::vec3 vC = point = c;
return glm::dot(glm::cross(uA, vA), norm) > 0 &&
glm::dot(glm::cross(uB, vB), norm) > 0 &&
glm::dot(glm::cross(uC, vC), norm) > 0;
}
/**
* Intersection check for a point with the traingle plane
*/
float Tetrahedron::intersect(glm::vec3 pos, glm::vec3 dir) {
glm::vec3 norm = normal(pos);
glm::vec3 vDif = a - pos;
float vDotN = glm::dot(dir, norm);
if (fabs(vDotN) < 0.001) return -1;
float t = glm::dot(vDif, norm) / vDotN;
if (fabs(t) < 0.001) return -1;
glm::vec3 q = pos + dir * t;
if (isInside(q)) return t;
else return -1;
}
/**
* Normal calculation for the plane
*/
glm::vec3 Tetrahedron::normal(glm::vec3 pos)
{
glm::vec3 n = glm::cross(b - a, c - a);
n = glm::normalize(n);
return n;
}
| [
"ajl190@uclive.ac.nz"
] | ajl190@uclive.ac.nz |
39a0c885d67bc18839785174a751fb628c1eccd2 | 50457fc28800b3cf2f25e06478f33981a1a626dc | /Codeforces/1492C.cpp | 8955fab670d392398acc70783640453d59615bec | [] | no_license | h-sinha/CP-codes | 5b1ef5021b7fd180b518270ffdb12997dc8d367b | 937174c73d1c80114de4535a6908122158366ad4 | refs/heads/master | 2021-07-20T18:47:00.500294 | 2021-07-06T05:11:57 | 2021-07-06T05:11:57 | 159,954,721 | 2 | 2 | null | 2020-01-07T18:57:28 | 2018-12-01T14:51:44 | C++ | UTF-8 | C++ | false | false | 2,225 | cpp | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define DEBUG
#ifdef DEBUG
#define debug(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
const char* comma = strchr(names + 1, ','); cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define debug(...)
#endif
#define FOR(i,a,b) for(int i=a;i<b;++i)
#define RFOR(i,a,b) for(int i=a;i>=b;--i)
#define ln "\n"
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define sz(a) ll(a.size())
#define F first
#define S second
#define all(c) c.begin(),c.end()
#define rall(c) c.rbegin(), c.rend()
#define trace(c,x) for(auto &x:c)
#define pii pair<ll,ll>
#define init(a, x) memset(a,x,sizeof(a))
typedef long long ll;
typedef long double ld;
typedef priority_queue<pii,std::vector<pii>,greater<pii> > revpr;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> pbds;
// ordered_set X
//K-th smallest
//*X.find_by_order(k-1)
//NO OF ELEMENTS < A
//X.order_of_key(A)
const int L=2e5+7;
map<ll,ll> counter;
ll fastexpo(ll x,ll y,ll m=1e9+7)
{
ll temp=1;
while(y>0)
{
if(y&1)temp = ((temp%m)*(x%m))%m;
x = ((x%m)*(x%m))%m;
y>>=1;
}return temp;
}
ll n, m;
string s, t;
ll dpl[L], dpr[L];
void fff()
{
cin >> n >> m;
cin >> s >> t;
int cur = m-1;
ll ans = 0, prv = n;
RFOR(i,n-1,0)
{
if(cur < 0)break;
if(s[i] == t[cur])
{
if(prv != n)ans = max(ans, prv - i);
dpr[m-cur] = i;
prv = i;
cur--;
}
}
cur = 0;
FOR(i,0,n)
{
if(cur >= m)break;
if(s[i] == t[cur])
{
if(prv != 0)ans = max(ans, i - prv);
dpl[cur+1] = i;
prv = i;
cur++;
}
}
FOR(i,1,m)
{
ans = max(ans, dpr[m-i] - dpl[i]);
}
cout << ans << ln;
}
int main()
{
#ifdef LOCAL_EXEC
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#else
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// int t;cin >> t;while(t--)
fff();
#endif
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
b0406765ae5ca2cbe6c6617f8ac9bf163a75ec8b | 645971b23528571acc0f876325753c9a82a02cb9 | /PadmeMC/include/StackingAction.hh | 19de46445302319461535fb0ba0f920ecf1edd9d | [] | no_license | isabellaoceano/padme-fw | 131203b80f1572384833289bc31399631e08f84d | 0b5f4bb4d1ae19aa54771dc35a82f5fd64ed169d | refs/heads/master | 2020-05-16T12:04:32.852580 | 2018-10-01T14:10:13 | 2018-10-01T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,513 | hh | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
//
/// \file B3StackingAction.hh
/// \brief Definition of the B3StackingAction class
#ifndef StackingAction_h
#define StackingAction_h 1
#include "G4UserStackingAction.hh"
#include "globals.hh"
/// Stacking action class : manage the newly generated particles
///
/// One wishes do not track secondary neutrino.Therefore one kills it
/// immediately, before created particles will put in a stack.
class StackingAction : public G4UserStackingAction
{
public:
StackingAction();
virtual ~StackingAction();
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*);
double GetNGenN() {return NGenN;};
//void SetNGenN(float value);
public:
G4double NGenN;
G4double NGenPI0;
G4double NGenPIC;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
| [
"mauro.raggi@lnf.infn.it"
] | mauro.raggi@lnf.infn.it |
97c512fac9863c9cbc8ad9fa5abc68eea2f8bbb5 | 516d0f7bf5f0c79d67e24c8778b783d9000c4bf1 | /arduino/samd/libraries/ArduinoJson-6.x/extras/tests/JsonVariant/as.cpp | c9956778b62e362b89b0a8b8bb9aa14711aab3a5 | [
"MIT",
"Apache-2.0"
] | permissive | sensebox/senseBoxMCU-core | b068eee39517d21840cf4ffe00b6f83f48344ea1 | 92c4244a94debf3b5e6c78b6acfd2d9530db8d8e | refs/heads/master | 2023-03-09T03:28:32.245820 | 2022-03-08T10:03:01 | 2022-03-08T10:03:01 | 137,878,137 | 2 | 9 | Apache-2.0 | 2023-03-04T03:03:14 | 2018-06-19T10:45:14 | C++ | UTF-8 | C++ | false | false | 7,148 | cpp | // ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
#include <ArduinoJson.h>
#include <stdint.h>
#include <catch.hpp>
namespace my {
using ARDUINOJSON_NAMESPACE::isinf;
} // namespace my
enum MY_ENUM { ONE = 1, TWO = 2 };
TEST_CASE("JsonVariant::as()") {
static const char* null = 0;
DynamicJsonDocument doc(4096);
JsonVariant variant = doc.to<JsonVariant>();
SECTION("not set") {
REQUIRE(false == variant.as<bool>());
REQUIRE(0 == variant.as<int>());
REQUIRE(0.0f == variant.as<float>());
REQUIRE(0 == variant.as<const char*>());
REQUIRE("null" == variant.as<std::string>());
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(4.2)") {
variant.set(4.2);
REQUIRE(variant.as<bool>());
REQUIRE(0 == variant.as<const char*>());
REQUIRE(variant.as<std::string>() == "4.2");
REQUIRE(variant.as<long>() == 4L);
REQUIRE(variant.as<unsigned>() == 4U);
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(0.0)") {
variant.set(0.0);
REQUIRE(variant.as<bool>() == false);
REQUIRE(variant.as<long>() == 0L);
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(false)") {
variant.set(false);
REQUIRE(false == variant.as<bool>());
REQUIRE(variant.as<double>() == 0.0);
REQUIRE(variant.as<long>() == 0L);
REQUIRE(variant.as<std::string>() == "false");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(true)") {
variant.set(true);
REQUIRE(variant.as<bool>());
REQUIRE(variant.as<double>() == 1.0);
REQUIRE(variant.as<long>() == 1L);
REQUIRE(variant.as<std::string>() == "true");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(42)") {
variant.set(42);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == 42.0);
REQUIRE(variant.as<int>() == 42);
REQUIRE(variant.as<unsigned int>() == 42U); // issue #1601
REQUIRE(variant.as<std::string>() == "42");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(42L)") {
variant.set(42L);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == 42.0);
REQUIRE(variant.as<std::string>() == "42");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(-42L)") {
variant.set(-42L);
REQUIRE(variant.as<double>() == -42.0);
REQUIRE(variant.as<std::string>() == "-42");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(42UL)") {
variant.set(42UL);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == 42.0);
REQUIRE(variant.as<std::string>() == "42");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(0L)") {
variant.set(0L);
REQUIRE(variant.as<bool>() == false);
REQUIRE(variant.as<double>() == 0.0);
REQUIRE(variant.as<std::string>() == "0");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(0UL)") {
variant.set(0UL);
REQUIRE(variant.as<bool>() == false);
REQUIRE(variant.as<double>() == 0.0);
REQUIRE(variant.as<std::string>() == "0");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(null)") {
variant.set(null);
REQUIRE(variant.as<bool>() == false);
REQUIRE(variant.as<double>() == 0.0);
REQUIRE(variant.as<long>() == 0L);
REQUIRE(variant.as<std::string>() == "null");
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(\"42\")") {
variant.set("42");
REQUIRE(variant.as<long>() == 42L);
REQUIRE(variant.as<JsonString>() == "42");
REQUIRE(variant.as<JsonString>().isLinked() == true);
}
SECTION("set(\"hello\")") {
variant.set("hello");
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<long>() == 0L);
REQUIRE(variant.as<const char*>() == std::string("hello"));
REQUIRE(variant.as<const char*>() == std::string("hello"));
REQUIRE(variant.as<std::string>() == std::string("hello"));
REQUIRE(variant.as<JsonString>() == "hello");
}
SECTION("set(std::string(\"4.2\"))") {
variant.set(std::string("4.2"));
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<long>() == 4L);
REQUIRE(variant.as<double>() == 4.2);
REQUIRE(variant.as<const char*>() == std::string("4.2"));
REQUIRE(variant.as<std::string>() == std::string("4.2"));
REQUIRE(variant.as<JsonString>() == "4.2");
REQUIRE(variant.as<JsonString>().isLinked() == false);
}
SECTION("set(\"true\")") {
variant.set("true");
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<int>() == 0);
REQUIRE(variant.as<JsonString>() == "true");
}
SECTION("set(-1e300)") {
variant.set(-1e300);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == -1e300);
REQUIRE(variant.as<float>() < 0);
REQUIRE(my::isinf(variant.as<float>()));
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(1e300)") {
variant.set(1e300);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == 1e300);
REQUIRE(variant.as<float>() > 0);
REQUIRE(my::isinf(variant.as<float>()));
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("set(1e-300)") {
variant.set(1e-300);
REQUIRE(variant.as<bool>() == true);
REQUIRE(variant.as<double>() == 1e-300);
REQUIRE(variant.as<float>() == 0);
REQUIRE(variant.as<JsonString>().isNull());
}
SECTION("to<JsonObject>()") {
JsonObject obj = variant.to<JsonObject>();
obj["key"] = "value";
SECTION("as<bool>()") {
REQUIRE(variant.as<bool>() == true);
}
SECTION("as<std::string>()") {
REQUIRE(variant.as<std::string>() == std::string("{\"key\":\"value\"}"));
}
SECTION("ObjectAsJsonObject") {
JsonObject o = variant.as<JsonObject>();
REQUIRE(o.size() == 1);
REQUIRE(o["key"] == std::string("value"));
}
}
SECTION("to<JsonArray>()") {
JsonArray arr = variant.to<JsonArray>();
arr.add(4);
arr.add(2);
SECTION("as<bool>()") {
REQUIRE(variant.as<bool>() == true);
}
SECTION("as<std::string>()") {
REQUIRE(variant.as<std::string>() == std::string("[4,2]"));
}
SECTION("as<JsonArray>()") {
JsonArray a = variant.as<JsonArray>();
REQUIRE(a.size() == 2);
REQUIRE(a[0] == 4);
REQUIRE(a[1] == 2);
}
}
#if ARDUINOJSON_USE_LONG_LONG
SECTION("Smallest int64 negative") {
variant.set("-9223372036854775808");
REQUIRE(variant.as<long long>() == -9223372036854775807 - 1);
}
SECTION("Biggerst int64 positive") {
variant.set("9223372036854775807");
REQUIRE(variant.as<long long>() == 9223372036854775807);
}
#endif
SECTION("should work on JsonVariantConst") {
variant.set("hello");
JsonVariantConst cvar = variant;
REQUIRE(cvar.as<bool>() == true);
REQUIRE(cvar.as<long>() == 0L);
REQUIRE(cvar.as<const char*>() == std::string("hello"));
REQUIRE(cvar.as<std::string>() == std::string("hello"));
}
SECTION("as<enum>()") {
variant.set(1);
REQUIRE(variant.as<MY_ENUM>() == ONE);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
af10d89580d61903d330b1e21fc5c964da369c7d | f6ab96101246c8764dc16073cbea72a188a0dc1a | /volume119/11903 - e-Friends.cpp | 8609f566f0638f00138dc0aa8c29c6e121a55e89 | [] | no_license | nealwu/UVa | c87ddc8a0bf07a9bd9cadbf88b7389790bc321cb | 10ddd83a00271b0c9c259506aa17d03075850f60 | refs/heads/master | 2020-09-07T18:52:19.352699 | 2019-05-01T09:41:55 | 2019-05-01T09:41:55 | 220,883,015 | 3 | 2 | null | 2019-11-11T02:14:54 | 2019-11-11T02:14:54 | null | UTF-8 | C++ | false | false | 1,636 | cpp | #include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
int dp[1<<12][12][12]; // dp[state][last][K] = ways
int main() {
int testcase, cases = 0;
int N, K, Q;
scanf("%d", &testcase);
while (testcase--) {
scanf("%d %d %d", &N, &K, &Q);
int em[16] = {};
for (int i = 0; i < N; i++) {
int t, x;
scanf("%d", &t);
for (int j = 0; j < t; j++) {
scanf("%d", &x), x--;
em[i] |= 1<<x;
}
}
vector< pair<int, int> > A;
for (int i = 0; i < (1<<N); i++)
A.push_back(make_pair(__builtin_popcount(i), i));
sort(A.begin(), A.end());
memset(dp, 0, sizeof(dp));
for (int i = 0; i < N; i++)
dp[1<<i][i][0] = 1;
for (int p = 0; p < A.size(); p++) {
int s = A[p].second, t = A[p].first;
for (int i = 0; i < N; i++) { // last
for (int j = 0; j < t; j++) { // dissatisfaction index
if (dp[s][i][j] == 0)
continue;
// printf("%d %d %d - %d\n", s, i, j, dp[s][i][j]);
for (int k = 0; k < N; k++) {
if ((s>>k)&1)
continue;
int tt = j;
if ((1<<i)&em[k]) tt++;
dp[s|(1<<k)][k][tt] += dp[s][i][j];
}
}
}
}
int preCalc[16] = {};
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
preCalc[j] += dp[(1<<N)-1][i][j];
}
}
printf("Case %d:\n", ++cases);
for (int i = 0; i < Q; i++) {
int x, ret = 0;
scanf("%d", &x);
if (K == 0) x = N;
else x /= K;
for (int j = 0; j <= x && j <= N; j++)
ret += preCalc[j];
printf("%d\n", ret);
}
}
return 0;
}
/*
2
5 50 3
2 2 4
2 1 5
1 1
1 5
1 3
60
10
20
2 10 2
1 2
0
10
5
*/
| [
"morris821028@gmail.com"
] | morris821028@gmail.com |
96b87687004db25d37af97c6575cc76bad00eeab | ba96d7f21540bd7504e61954f01a6d77f88dea6f | /build/Android/Debug/app/src/main/jni/_root.SplashPage.cpp | 540899685aace83bbca14bd3e200cbf5b4d649c8 | [] | no_license | GetSomefi/haslaamispaivakirja | 096ff35fe55e3155293e0030c91b4bbeafd512c7 | 9ba6766987da4af3b662e33835231b5b88a452b3 | refs/heads/master | 2020-03-21T19:54:24.148074 | 2018-11-09T06:44:18 | 2018-11-09T06:44:18 | 138,976,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,972 | cpp | // This file was generated based on '/Users/petervirtanen/OneDrive/Fuse projektit/Häsläämispäiväkirja/.uno/ux15/SplashPage.g.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#include <_root.Haslaamispaivak-35b71aea.h>
#include <_root.Haslaamispaivak-a8299899.h>
#include <_root.SplashPage.h>
#include <basicBtn.Button.h>
#include <Fuse.Animations.Animator.h>
#include <Fuse.Animations.Change-1.h>
#include <Fuse.Controls.DockPanel.h>
#include <Fuse.Controls.Grid.h>
#include <Fuse.Controls.Rectangle.h>
#include <Fuse.Controls.Shape.h>
#include <Fuse.Controls.StackPanel.h>
#include <Fuse.Controls.TextAlignment.h>
#include <Fuse.Controls.TextControl.h>
#include <Fuse.Controls.Video.h>
#include <Fuse.Drawing.Brush.h>
#include <Fuse.Drawing.StaticSolidColor.h>
#include <Fuse.Effects.Blur.h>
#include <Fuse.Elements.Alignment.h>
#include <Fuse.Elements.Element.h>
#include <Fuse.Elements.StretchMode.h>
#include <Fuse.Gestures.Clicked.h>
#include <Fuse.Gestures.ClickedHandler.h>
#include <Fuse.Layer.h>
#include <Fuse.Layouts.Dock.h>
#include <Fuse.Navigation.Router.h>
#include <Fuse.Reactive.Data.h>
#include <Fuse.Reactive.EventBinding.h>
#include <Fuse.Reactive.Expression.h>
#include <Fuse.Reactive.IExpression.h>
#include <Fuse.Reactive.JavaScript.h>
#include <Fuse.Triggers.Progres-182f6b55.h>
#include <Fuse.Triggers.Trigger.h>
#include <generaltext.Text.h>
#include <header.Text.h>
#include <Uno.Bool.h>
#include <Uno.Float.h>
#include <Uno.Float4.h>
#include <Uno.Int.h>
#include <Uno.IO.BundleFile.h>
#include <Uno.Object.h>
#include <Uno.String.h>
#include <Uno.UX.BundleFileSource.h>
#include <Uno.UX.FileSource.h>
#include <Uno.UX.NameTable.h>
#include <Uno.UX.Property1-1.h>
#include <Uno.UX.Selector.h>
#include <Uno.UX.Unit.h>
static uString* STRINGS[10];
static uType* TYPES[7];
namespace g{
// public partial sealed class SplashPage :2
// {
// static SplashPage() :14
static void SplashPage__cctor_4_fn(uType* __type)
{
SplashPage::__g_static_nametable1_ = uArray::Init<uString*>(::TYPES[0/*string[]*/], 3, ::STRINGS[0/*"router"*/], ::STRINGS[1/*"progressBar"*/], ::STRINGS[2/*"temp_eb7"*/]);
SplashPage::__selector0_ = ::g::Uno::UX::Selector__op_Implicit1(::STRINGS[3/*"Width"*/]);
SplashPage::__selector1_ = ::g::Uno::UX::Selector__op_Implicit1(::STRINGS[1/*"progressBar"*/]);
}
static void SplashPage_build(uType* type)
{
::STRINGS[0] = uString::Const("router");
::STRINGS[1] = uString::Const("progressBar");
::STRINGS[2] = uString::Const("temp_eb7");
::STRINGS[3] = uString::Const("Width");
::STRINGS[4] = uString::Const("goToFirstPage");
::STRINGS[5] = uString::Const("SplashPage.ux");
::STRINGS[6] = uString::Const("original video by Peter Virtanen");
::STRINGS[7] = uString::Const("The Mood");
::STRINGS[8] = uString::Const("How are we feeling today?");
::STRINGS[9] = uString::Const("Aloitetaan");
::TYPES[0] = ::g::Uno::String_typeof()->Array();
::TYPES[1] = ::g::Fuse::Animations::Change_typeof()->MakeType(::g::Uno::UX::Size_typeof(), NULL);
::TYPES[2] = ::g::Uno::Collections::ICollection_typeof()->MakeType(::g::Fuse::Node_typeof(), NULL);
::TYPES[3] = ::g::Uno::Collections::ICollection_typeof()->MakeType(::g::Fuse::Animations::Animator_typeof(), NULL);
::TYPES[4] = ::g::Fuse::Gestures::ClickedHandler_typeof();
::TYPES[5] = ::g::Uno::Collections::ICollection_typeof()->MakeType(::g::Fuse::Binding_typeof(), NULL);
::TYPES[6] = ::g::Uno::Collections::ICollection_typeof()->MakeType(uObject_typeof(), NULL);
type->SetDependencies(
::g::Haslaamispaivakirja_bundle_typeof());
type->SetInterfaces(
::g::Uno::Collections::IList_typeof()->MakeType(::g::Fuse::Binding_typeof(), NULL), offsetof(::g::Fuse::Controls::Panel_type, interface0),
::g::Fuse::Scripting::IScriptObject_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface1),
::g::Fuse::IProperties_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface2),
::g::Fuse::INotifyUnrooted_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface3),
::g::Fuse::ISourceLocation_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface4),
::TYPES[5/*Uno.Collections.ICollection<Fuse.Binding>*/], offsetof(::g::Fuse::Controls::Panel_type, interface5),
::g::Uno::Collections::IEnumerable_typeof()->MakeType(::g::Fuse::Binding_typeof(), NULL), offsetof(::g::Fuse::Controls::Panel_type, interface6),
::g::Uno::Collections::IList_typeof()->MakeType(::g::Fuse::Node_typeof(), NULL), offsetof(::g::Fuse::Controls::Panel_type, interface7),
::g::Uno::UX::IPropertyListener_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface8),
::g::Fuse::ITemplateSource_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface9),
::g::Uno::Collections::IEnumerable_typeof()->MakeType(::g::Fuse::Visual_typeof(), NULL), offsetof(::g::Fuse::Controls::Panel_type, interface10),
::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/], offsetof(::g::Fuse::Controls::Panel_type, interface11),
::g::Uno::Collections::IEnumerable_typeof()->MakeType(::g::Fuse::Node_typeof(), NULL), offsetof(::g::Fuse::Controls::Panel_type, interface12),
::g::Fuse::Triggers::Actions::IShow_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface13),
::g::Fuse::Triggers::Actions::IHide_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface14),
::g::Fuse::Triggers::Actions::ICollapse_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface15),
::g::Fuse::IActualPlacement_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface16),
::g::Fuse::Animations::IResize_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface17),
::g::Fuse::Drawing::ISurfaceDrawable_typeof(), offsetof(::g::Fuse::Controls::Panel_type, interface18));
type->SetFields(121,
::g::Fuse::Navigation::Router_typeof(), offsetof(SplashPage, router), 0,
::g::Uno::UX::Property1_typeof()->MakeType(::g::Uno::UX::Size_typeof(), NULL), offsetof(SplashPage, progressBar_Width_inst), 0,
::g::Fuse::Controls::Rectangle_typeof(), offsetof(SplashPage, progressBar), 0,
::g::Fuse::Reactive::EventBinding_typeof(), offsetof(SplashPage, temp_eb7), 0,
::g::Uno::UX::NameTable_typeof(), offsetof(SplashPage, __g_nametable1), 0,
::TYPES[0/*string[]*/], (uintptr_t)&SplashPage::__g_static_nametable1_, uFieldFlagsStatic,
::g::Uno::UX::Selector_typeof(), (uintptr_t)&SplashPage::__selector0_, uFieldFlagsStatic,
::g::Uno::UX::Selector_typeof(), (uintptr_t)&SplashPage::__selector1_, uFieldFlagsStatic);
}
::g::Fuse::Controls::Panel_type* SplashPage_typeof()
{
static uSStrong< ::g::Fuse::Controls::Panel_type*> type;
if (type != NULL) return type;
uTypeOptions options;
options.BaseDefinition = ::g::Fuse::Controls::Page_typeof();
options.FieldCount = 129;
options.InterfaceCount = 19;
options.DependencyCount = 1;
options.ObjectSize = sizeof(SplashPage);
options.TypeSize = sizeof(::g::Fuse::Controls::Panel_type);
type = (::g::Fuse::Controls::Panel_type*)uClassType::New("SplashPage", options);
type->fp_build_ = SplashPage_build;
type->fp_cctor_ = SplashPage__cctor_4_fn;
type->interface18.fp_Draw = (void(*)(uObject*, ::g::Fuse::Drawing::Surface*))::g::Fuse::Controls::Panel__FuseDrawingISurfaceDrawableDraw_fn;
type->interface18.fp_get_IsPrimary = (void(*)(uObject*, bool*))::g::Fuse::Controls::Panel__FuseDrawingISurfaceDrawableget_IsPrimary_fn;
type->interface18.fp_get_ElementSize = (void(*)(uObject*, ::g::Uno::Float2*))::g::Fuse::Controls::Panel__FuseDrawingISurfaceDrawableget_ElementSize_fn;
type->interface13.fp_Show = (void(*)(uObject*))::g::Fuse::Elements::Element__FuseTriggersActionsIShowShow_fn;
type->interface15.fp_Collapse = (void(*)(uObject*))::g::Fuse::Elements::Element__FuseTriggersActionsICollapseCollapse_fn;
type->interface14.fp_Hide = (void(*)(uObject*))::g::Fuse::Elements::Element__FuseTriggersActionsIHideHide_fn;
type->interface17.fp_SetSize = (void(*)(uObject*, ::g::Uno::Float2*))::g::Fuse::Elements::Element__FuseAnimationsIResizeSetSize_fn;
type->interface16.fp_get_ActualSize = (void(*)(uObject*, ::g::Uno::Float3*))::g::Fuse::Elements::Element__FuseIActualPlacementget_ActualSize_fn;
type->interface16.fp_add_Placed = (void(*)(uObject*, uDelegate*))::g::Fuse::Elements::Element__add_Placed_fn;
type->interface16.fp_remove_Placed = (void(*)(uObject*, uDelegate*))::g::Fuse::Elements::Element__remove_Placed_fn;
type->interface10.fp_GetEnumerator = (void(*)(uObject*, uObject**))::g::Fuse::Visual__UnoCollectionsIEnumerableFuseVisualGetEnumerator_fn;
type->interface11.fp_Clear = (void(*)(uObject*))::g::Fuse::Visual__UnoCollectionsICollectionFuseNodeClear_fn;
type->interface11.fp_Contains = (void(*)(uObject*, void*, bool*))::g::Fuse::Visual__UnoCollectionsICollectionFuseNodeContains_fn;
type->interface7.fp_RemoveAt = (void(*)(uObject*, int32_t*))::g::Fuse::Visual__UnoCollectionsIListFuseNodeRemoveAt_fn;
type->interface12.fp_GetEnumerator = (void(*)(uObject*, uObject**))::g::Fuse::Visual__UnoCollectionsIEnumerableFuseNodeGetEnumerator_fn;
type->interface11.fp_get_Count = (void(*)(uObject*, int32_t*))::g::Fuse::Visual__UnoCollectionsICollectionFuseNodeget_Count_fn;
type->interface7.fp_get_Item = (void(*)(uObject*, int32_t*, uTRef))::g::Fuse::Visual__UnoCollectionsIListFuseNodeget_Item_fn;
type->interface7.fp_Insert = (void(*)(uObject*, int32_t*, void*))::g::Fuse::Visual__Insert1_fn;
type->interface8.fp_OnPropertyChanged = (void(*)(uObject*, ::g::Uno::UX::PropertyObject*, ::g::Uno::UX::Selector*))::g::Fuse::Controls::Control__OnPropertyChanged2_fn;
type->interface9.fp_FindTemplate = (void(*)(uObject*, uString*, ::g::Uno::UX::Template**))::g::Fuse::Visual__FindTemplate_fn;
type->interface11.fp_Add = (void(*)(uObject*, void*))::g::Fuse::Visual__Add1_fn;
type->interface11.fp_Remove = (void(*)(uObject*, void*, bool*))::g::Fuse::Visual__Remove1_fn;
type->interface5.fp_Clear = (void(*)(uObject*))::g::Fuse::Node__UnoCollectionsICollectionFuseBindingClear_fn;
type->interface5.fp_Contains = (void(*)(uObject*, void*, bool*))::g::Fuse::Node__UnoCollectionsICollectionFuseBindingContains_fn;
type->interface0.fp_RemoveAt = (void(*)(uObject*, int32_t*))::g::Fuse::Node__UnoCollectionsIListFuseBindingRemoveAt_fn;
type->interface6.fp_GetEnumerator = (void(*)(uObject*, uObject**))::g::Fuse::Node__UnoCollectionsIEnumerableFuseBindingGetEnumerator_fn;
type->interface1.fp_SetScriptObject = (void(*)(uObject*, uObject*, ::g::Fuse::Scripting::Context*))::g::Fuse::Node__FuseScriptingIScriptObjectSetScriptObject_fn;
type->interface5.fp_get_Count = (void(*)(uObject*, int32_t*))::g::Fuse::Node__UnoCollectionsICollectionFuseBindingget_Count_fn;
type->interface0.fp_get_Item = (void(*)(uObject*, int32_t*, uTRef))::g::Fuse::Node__UnoCollectionsIListFuseBindingget_Item_fn;
type->interface1.fp_get_ScriptObject = (void(*)(uObject*, uObject**))::g::Fuse::Node__FuseScriptingIScriptObjectget_ScriptObject_fn;
type->interface1.fp_get_ScriptContext = (void(*)(uObject*, ::g::Fuse::Scripting::Context**))::g::Fuse::Node__FuseScriptingIScriptObjectget_ScriptContext_fn;
type->interface4.fp_get_SourceNearest = (void(*)(uObject*, uObject**))::g::Fuse::Node__FuseISourceLocationget_SourceNearest_fn;
type->interface3.fp_add_Unrooted = (void(*)(uObject*, uDelegate*))::g::Fuse::Node__FuseINotifyUnrootedadd_Unrooted_fn;
type->interface3.fp_remove_Unrooted = (void(*)(uObject*, uDelegate*))::g::Fuse::Node__FuseINotifyUnrootedremove_Unrooted_fn;
type->interface0.fp_Insert = (void(*)(uObject*, int32_t*, void*))::g::Fuse::Node__Insert_fn;
type->interface2.fp_get_Properties = (void(*)(uObject*, ::g::Fuse::Properties**))::g::Fuse::Node__get_Properties_fn;
type->interface4.fp_get_SourceLineNumber = (void(*)(uObject*, int32_t*))::g::Fuse::Node__get_SourceLineNumber_fn;
type->interface4.fp_get_SourceFileName = (void(*)(uObject*, uString**))::g::Fuse::Node__get_SourceFileName_fn;
type->interface5.fp_Add = (void(*)(uObject*, void*))::g::Fuse::Node__Add_fn;
type->interface5.fp_Remove = (void(*)(uObject*, void*, bool*))::g::Fuse::Node__Remove_fn;
return type;
}
// public SplashPage(Fuse.Navigation.Router router) :18
void SplashPage__ctor_8_fn(SplashPage* __this, ::g::Fuse::Navigation::Router* router1)
{
__this->ctor_8(router1);
}
// private void InitializeUX() :24
void SplashPage__InitializeUX_fn(SplashPage* __this)
{
__this->InitializeUX();
}
// public SplashPage New(Fuse.Navigation.Router router) :18
void SplashPage__New5_fn(::g::Fuse::Navigation::Router* router1, SplashPage** __retval)
{
*__retval = SplashPage::New5(router1);
}
uSStrong<uArray*> SplashPage::__g_static_nametable1_;
::g::Uno::UX::Selector SplashPage::__selector0_;
::g::Uno::UX::Selector SplashPage::__selector1_;
// public SplashPage(Fuse.Navigation.Router router) [instance] :18
void SplashPage::ctor_8(::g::Fuse::Navigation::Router* router1)
{
ctor_7();
router = router1;
InitializeUX();
}
// private void InitializeUX() [instance] :24
void SplashPage::InitializeUX()
{
__g_nametable1 = ::g::Uno::UX::NameTable::New1(NULL, SplashPage::__g_static_nametable1_);
progressBar = ::g::Fuse::Controls::Rectangle::New3();
progressBar_Width_inst = ::g::Haslaamispaivakirja_FuseElementsElement_Width_Property::New1(progressBar, SplashPage::__selector0_);
::g::Fuse::Reactive::Data* temp = ::g::Fuse::Reactive::Data::New1(::STRINGS[4/*"goToFirstPage"*/]);
::g::Fuse::Reactive::JavaScript* temp1 = ::g::Fuse::Reactive::JavaScript::New2(__g_nametable1);
::g::Fuse::Controls::DockPanel* temp2 = ::g::Fuse::Controls::DockPanel::New4();
::g::Fuse::Controls::Video* temp3 = ::g::Fuse::Controls::Video::New4();
::g::Fuse::Effects::Blur* temp4 = ::g::Fuse::Effects::Blur::New2();
::g::Fuse::Triggers::ProgressAnimation* temp5 = ::g::Fuse::Triggers::ProgressAnimation::New2();
::g::Fuse::Animations::Change* temp6 = (::g::Fuse::Animations::Change*)::g::Fuse::Animations::Change::New2(::TYPES[1/*Fuse.Animations.Change<Uno.UX.Size>*/], progressBar_Width_inst);
::g::Fuse::Drawing::StaticSolidColor* temp7 = ::g::Fuse::Drawing::StaticSolidColor::New2(::g::Uno::Float4__New2(1.0f, 1.0f, 1.0f, 1.0f));
::g::generaltext::Text* temp8 = ::g::generaltext::Text::New4();
::g::Fuse::Controls::Grid* temp9 = ::g::Fuse::Controls::Grid::New4();
::g::Fuse::Controls::StackPanel* temp10 = ::g::Fuse::Controls::StackPanel::New4();
::g::header::Text* temp11 = ::g::header::Text::New4();
::g::generaltext::Text* temp12 = ::g::generaltext::Text::New4();
::g::basicBtn::Button* temp13 = ::g::basicBtn::Button::New4();
temp_eb7 = ::g::Fuse::Reactive::EventBinding::New1((uObject*)temp);
SourceLineNumber(1);
SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp1->LineNumber(4);
temp1->FileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp1->SourceLineNumber(4);
temp1->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp1->File(::g::Uno::UX::BundleFileSource::New1(::g::Haslaamispaivakirja_bundle::SplashPage53ac0018()));
temp2->ClipToBounds(true);
temp2->SourceLineNumber(6);
temp2->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp3);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), progressBar);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp8);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp2->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp9);
temp3->IsLooping(true);
temp3->AutoPlay(true);
temp3->StretchMode(6);
temp3->Opacity(0.7f);
temp3->Layer(1);
temp3->SourceLineNumber(8);
temp3->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp3->File(::g::Uno::UX::BundleFileSource::New1(::g::Haslaamispaivakirja_bundle::retkelleoma398023dd()));
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp3->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp4);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp3->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp5);
temp4->Radius(3.75f);
temp4->SourceLineNumber(9);
temp4->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp5->SourceLineNumber(10);
temp5->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp5->Animators()), ::TYPES[3/*Uno.Collections.ICollection<Fuse.Animations.Animator>*/]), temp6);
::g::Fuse::Animations::Change__set_Value_fn(temp6, uCRef(::g::Uno::UX::Size__New1(100.0f, 1)));
uPtr(progressBar)->Width(::g::Uno::UX::Size__New1(0.0f, 4));
uPtr(progressBar)->Height(::g::Uno::UX::Size__New1(1.0f, 1));
uPtr(progressBar)->Opacity(0.2f);
uPtr(progressBar)->Name(SplashPage::__selector1_);
uPtr(progressBar)->SourceLineNumber(15);
uPtr(progressBar)->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Fuse::Controls::DockPanel::SetDock(progressBar, 2);
uPtr(progressBar)->Fill(temp7);
temp8->Value(::STRINGS[6/*"original vi...*/]);
temp8->FontSize(12.0f);
temp8->TextAlignment(1);
temp8->Margin(::g::Uno::Float4__New2(15.0f, 15.0f, 15.0f, 15.0f));
temp8->Opacity(0.5f);
temp8->SourceLineNumber(17);
temp8->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Fuse::Controls::DockPanel::SetDock(temp8, 3);
temp9->RowCount(2);
temp9->SourceLineNumber(19);
temp9->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp9->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp10);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp9->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp13);
temp10->SourceLineNumber(20);
temp10->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp10->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp11);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp10->Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp12);
temp11->Value(::STRINGS[7/*"The Mood"*/]);
temp11->FontSize(40.0f);
temp11->Alignment(2);
temp11->Margin(::g::Uno::Float4__New2(0.0f, 50.0f, 0.0f, 0.0f));
temp11->SourceLineNumber(21);
temp11->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp12->Value(::STRINGS[8/*"How are we ...*/]);
temp12->Alignment(2);
temp12->Opacity(0.5f);
temp12->SourceLineNumber(22);
temp12->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
temp13->Text(::STRINGS[9/*"Aloitetaan"*/]);
temp13->FontSize(18.0f);
temp13->Alignment(8);
temp13->Margin(::g::Uno::Float4__New2(50.0f, 0.0f, 50.0f, 0.0f));
temp13->SourceLineNumber(25);
temp13->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
::g::Fuse::Gestures::Clicked::AddHandler(temp13, uDelegate::New(::TYPES[4/*Fuse.Gestures.ClickedHandler*/], (void*)::g::Fuse::Reactive::EventBinding__OnEvent_fn, uPtr(temp_eb7)));
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(temp13->Bindings()), ::TYPES[5/*Uno.Collections.ICollection<Fuse.Binding>*/]), temp_eb7);
temp->SourceLineNumber(25);
temp->SourceFileName(::STRINGS[5/*"SplashPage.ux"*/]);
uPtr(__g_nametable1)->This(this);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(uPtr(__g_nametable1)->Objects()), ::TYPES[6/*Uno.Collections.ICollection<object>*/]), router);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(uPtr(__g_nametable1)->Objects()), ::TYPES[6/*Uno.Collections.ICollection<object>*/]), progressBar);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(uPtr(__g_nametable1)->Objects()), ::TYPES[6/*Uno.Collections.ICollection<object>*/]), temp_eb7);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp1);
::g::Uno::Collections::ICollection::Add_ex(uInterface(uPtr(Children()), ::TYPES[2/*Uno.Collections.ICollection<Fuse.Node>*/]), temp2);
}
// public SplashPage New(Fuse.Navigation.Router router) [static] :18
SplashPage* SplashPage::New5(::g::Fuse::Navigation::Router* router1)
{
SplashPage* obj1 = (SplashPage*)uNew(SplashPage_typeof());
obj1->ctor_8(router1);
return obj1;
}
// }
} // ::g
| [
"peyte.com@gmail.com"
] | peyte.com@gmail.com |
d04f8e8bbe3865bfdaf59b3599421d94d3e32890 | e33eb68ee9e53679c9d27890bd98edad4603954b | /CRC/crc.h | 47e1828f092cd8f2bbdc1bc4aa4e4cc8dfa7cd77 | [] | no_license | sebasqr22/TareaExtraclase-3 | ea34d68e779429f569eea851384cec2866a041d9 | 9e9e1e4bfb7479b193ae66efd15715ff80370f39 | refs/heads/main | 2023-05-10T05:50:53.326789 | 2021-06-10T03:57:22 | 2021-06-10T03:57:22 | 373,670,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,758 | h | #include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
class CRC
{
public:
//Function that converts an integer to binary string
string toBin(long long int num){
string binary = "";
while (num){
if (num & 1)
binary = "1" + binary;
else
binary = "0" + binary;
num = num>>1;
}
return binary;
}
//Function that converts a binary string to decimal
long long int toDec(string binary){
long long int num = 0;
for (int i=0; i<binary.length(); i++){
if (binary.at(i)=='1')
num += 1 << (binary.length() - i - 1);
}
return num;
}
//Function that calculates CRC and codeword
CRC(string dataword, string generator)
{
int l_gen = generator.length();
long long int gen = toDec(generator);
long long int dword = toDec(dataword);
//Add 0's the the dividend
long long int dividend = dword << (l_gen-1);
int shft = (int) ceill(log2l(dividend+1)) - l_gen;
long long int rem;
while ((dividend >= gen) || (shft >= 0)){
//The remainder is generated
rem = (dividend >> shft) ^ gen;
dividend = (dividend & ((1 << shft) - 1)) | (rem << shft);
//Change the shft variable
shft = (int) ceill(log2l(dividend + 1)) - l_gen;
}
//AND the initial dividend with the remainder
long long int codeword = (dword << (l_gen - 1)) | dividend;
cout << "Remainder: " << toBin(dividend) << endl;
cout << "Codeword : " << toBin(codeword) << endl;
}
}; | [
"quigonar@gmail.com"
] | quigonar@gmail.com |
0b41f9127ec2cc35311577b50b1626ecf0da7072 | 870d2a1fdb9ed7e2a6f98652fc88c7ce7ff2753b | /src/sys/mutex.hpp | 279067703f65acf7b6881cbea066c32710bde56f | [] | no_license | jiaolu/point-frag | 38602522086ecf29a3466a2709c9532e697f99fc | c8378f9cfea6308fc3dddd4d2119218e0bb93103 | refs/heads/master | 2021-01-18T18:43:13.560716 | 2012-07-19T07:02:44 | 2012-07-19T07:02:44 | 54,123,530 | 1 | 0 | null | 2016-03-17T14:16:14 | 2016-03-17T14:16:14 | null | UTF-8 | C++ | false | false | 2,586 | hpp | // ======================================================================== //
// Copyright 2009-2011 Intel Corporation //
// //
// 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. //
// ======================================================================== //
#ifndef __PF_MUTEX_H__
#define __PF_MUTEX_H__
#include "platform.hpp"
#include "atomic.hpp"
#include <xmmintrin.h>
namespace pf
{
class MutexSys {
friend class ConditionSys;
public:
MutexSys(void);
~MutexSys(void);
void lock(void);
void unlock(void);
protected:
void* mutex;
MutexSys(const MutexSys&); // don't implement
MutexSys& operator= (const MutexSys&); // don't implement
PF_CLASS(MutexSys);
};
/*! active mutex */
class MutexActive {
public:
INLINE MutexActive(void) : $lock(LOCK_IS_FREE) {}
INLINE void lock(void) {
PF_COMPILER_READ_BARRIER;
while (cmpxchg($lock, LOCK_IS_TAKEN, LOCK_IS_FREE) != LOCK_IS_FREE)
_mm_pause();
PF_COMPILER_READ_BARRIER;
}
INLINE void unlock(void) { $lock.storeRelease(LOCK_IS_FREE); }
protected:
enum ${ LOCK_IS_FREE = 0, LOCK_IS_TAKEN = 1 };
Atomic $lock;
MutexActive(const MutexActive&); // don't implement
MutexActive& operator=(const MutexActive&); // don't implement
PF_CLASS(MutexActive);
};
/*! safe mutex lock and unlock helper */
template<typename Mutex> class Lock {
public:
Lock (Mutex& mutex) : mutex(mutex) { mutex.lock(); }
~Lock() { mutex.unlock(); }
protected:
Mutex& mutex;
Lock(const Lock&); // don't implement
Lock& operator= (const Lock&); // don't implement
PF_CLASS(Lock);
};
}
#endif
| [
"segovia.benjamin@gmail.com"
] | segovia.benjamin@gmail.com |
6f71011a0c3b1dac4905ca706c921333229a88e7 | 94cfd13b97cd6dd00606d0c57838c0e1510426e8 | /BPMonDevice(NucleoF446RE)/Core/Inc/DspFilters/RootFinder.h | 13fb4ffdc0de403c87730bd20d37501c93af31ab | [] | no_license | lessismorecn/BPMonV2 | b7647fa830b091267fb6cc39ab3be62a90a3acc7 | b3e97e6e9ba9b5ee8bd7d0de56b39cf3c740d09a | refs/heads/master | 2022-12-23T03:40:36.320624 | 2020-09-27T20:50:38 | 2020-09-27T20:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,585 | h | /*******************************************************************************
"A Collection of Useful C++ Classes for Digital Signal Processing"
By Vinnie Falco
Official project location:
https://github.com/vinniefalco/DSPFilters
See Documentation.cpp for contact information, notes, and bibliography.
--------------------------------------------------------------------------------
License: MIT License (http://www.opensource.org/licenses/mit-license.php)
Copyright (c) 2009 by Vinnie Falco
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*******************************************************************************/
#ifndef DSPFILTERS_ROOTFINDER_H
#define DSPFILTERS_ROOTFINDER_H
#include "DspFilters/Common.h"
#include "DspFilters/Types.h"
namespace Dsp {
//
// Finds the complex roots of the given polynomial with
// complex-valued coefficients using a numerical method.
//
class RootFinderBase
{
public:
struct Array
{
Array (int max, complex_t* values)
// : m_max (max)
// , m_values (values)
{
}
//complex_t& operator[] (int index)
//{
//};
};
//
// Find roots of polynomial f(x)=a[0]+a[1]*x+a[2]*x^2...+a[degree]*x^degree
// The input coefficients are set using coef()[].
// The solutions are placed in roots.
//
void solve (int degree,
bool polish = true,
bool doSort = true);
// Evaluates the polynomial at x
complex_t eval (int degree,
const complex_t& x);
// Direct access to the input coefficient array of size degree+1.
complex_t* coef()
{
return m_a;
}
// Direct access to the resulting roots array of size degree
complex_t* root()
{
return m_root;
}
// sort the roots by descending imaginary part
void sort (int degree);
private:
// Improves x as a root using Laguerre's method.
// The input coefficient array has degree+1 elements.
void laguerre (int degree,
complex_t a[],
complex_t& x,
int& its);
protected:
int m_maxdegree;
complex_t* m_a; // input coefficients (m_maxdegree+1 elements)
complex_t* m_ad; // copy of deflating coefficients
complex_t* m_root; // array of roots (maxdegree elements)
};
//------------------------------------------------------------------------------
template<int maxdegree>
struct RootFinder : RootFinderBase
{
RootFinder()
{
m_maxdegree = maxdegree;
m_a = m_a0;
m_ad = m_ad0;
m_root = m_r;
}
private:
complex_t m_a0 [maxdegree+1];
complex_t m_ad0[maxdegree+1];
complex_t m_r [maxdegree];
};
}
#endif
| [
"tim.hewitt@live.co.uk"
] | tim.hewitt@live.co.uk |
320c1722deb65daa6874f047e0ac684b325f8de8 | b5d068b1b125efbe5bbe2b30f5f767242b8efd9e | /Dependencies/VoodooI2CServices/VoodooI2CServices/VoodooI2CServices.cpp | 29b26fca2169f6576d4d0fe81a63dde150b18833 | [] | no_license | jqqqqqqqqqq/VoodooI2C-Rewrite | 0d0ba50fe01aaf5142942105113b5e4629959a53 | 857f25d02b8c4a15fc93533245bdd0e29ec4c344 | refs/heads/master | 2021-08-06T07:33:50.872210 | 2017-10-14T16:43:01 | 2017-10-14T16:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,248 | cpp | //
// VoodooI2CServices.cpp
// VoodooI2CServices
//
// Created by Alexandre on 30/09/2017.
// Copyright © 2017 Alexandre Daoud. All rights reserved.
//
#include "VoodooI2CServices.hpp"
#define super IOService
OSDefineMetaClassAndStructors(VoodooI2CServices, IOService);
bool VoodooI2CServices::attachDevice(void* target, void* ref_con, IOService* new_service, IONotifier* notifier) {
IOLog("class: %s\n", new_service->getMetaClass()->getClassName());
OSBoolean* bool_obj = OSDynamicCast(OSBoolean, new_service->getProperty("isI2CController"));
if (bool_obj && bool_obj->isTrue()) {
new_service->attachToParent(getRegistryRoot(), gVoodooI2CPlane);
} else {
IORegistryEntry* parent = new_service->getParentEntry(gIOServicePlane);
new_service->attachToParent(parent, gVoodooI2CPlane);
// parent->release();
}
return true;
}
bool VoodooI2CServices::detachDevice(void* target, void* ref_con, IOService* new_service, IONotifier* notifier) {
IORegistryEntry* parent = new_service->getParentEntry(gVoodooI2CPlane);
new_service->detachFromParent(parent, gVoodooI2CPlane);
// parent->release();
return true;
}
bool VoodooI2CServices::start(IOService* provider) {
if (!super::start(provider))
return false;
gVoodooI2CPlane = IORegistryEntry::makePlane(kVoodooI2CPlane);
attachToParent(getRegistryRoot(), gVoodooI2CPlane);
OSDictionary* property_match = OSDictionary::withCapacity(1);
OSDictionary* service_match = OSDictionary::withCapacity(1);
service_match->setObject("VoodooI2CServices Supported", kOSBooleanTrue);
property_match->setObject(gIOPropertyMatchKey, service_match);
device_matcher = addMatchingNotification(gIOMatchedNotification, property_match, VoodooI2CServices::attachDevice, this, NULL, 0);
terminate_matcher = addMatchingNotification(gIOTerminatedNotification, property_match, VoodooI2CServices::detachDevice, this, NULL, 0);
service_match->release();
property_match->release();
registerService();
return true;
}
void VoodooI2CServices::stop(IOService* provider) {
device_matcher->remove();
detachFromParent(getRegistryRoot(), gVoodooI2CPlane);
super::stop(provider);
}
| [
"alex.daoud@mac.com"
] | alex.daoud@mac.com |
a2fbc3a226519809e6d62f2fc0138c230ef28036 | 854d7dfa1277629909b2f59e720ea20167a92d4f | /EasyTcpServer/CELLThread.hpp | cd90e627480a84efc14109801a261546f5236cba | [] | no_license | city55238/CS-Server | 1cb91a1daea04b8aafd29740280551544da7434f | dd39da16e8dd1655cfa9f38791f46e383b18b299 | refs/heads/master | 2022-05-27T02:30:51.481815 | 2020-05-01T03:44:43 | 2020-05-01T03:44:43 | 260,201,901 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,856 | hpp | #ifndef _CELL_Thread_HPP_
#define _CELL_Thread_HPP_
#include<thread>
#include<functional>
#include"CELLSemaphore.hpp"
class CELLThread
{
private:
//定义一个事件类型 EventCall,它是一个无参数、无返回值的数据类型
typedef std::function<void(CELLThread*)> EventCall;
public:
//启动线程
void Start(EventCall onCreate = nullptr, EventCall onRun = nullptr, EventCall onDestory = nullptr)
{
//自解锁
std::lock_guard<std::mutex> lock(_mutex);
if (!_isRun)
{
_isRun = true;
if (onCreate)
_onCreate = onCreate;
if (onRun)
_onRun = onRun;
if (onDestory)
_onDestory = onDestory;
//mem_fn把成员函数转为函数对象,使用对象指针或对象引用进行绑定
std::thread t(std::mem_fn(&CELLThread::OnWork), this);
t.detach();
}
}
//关闭线程
void Close()
{
//自解锁
std::lock_guard<std::mutex> lock(_mutex);
if (_isRun)
{
_isRun = false;
_sem.wait();
}
}
//OnRun()函数在调用处理线程之前退出主动退出,不需要调用阻塞函数,否则会一直阻塞
void Exit()
{
//自解锁
std::lock_guard<std::mutex> lock(_mutex);
if (_isRun)
{
_isRun = false;
}
}
//线程是否运行中
bool isRun()
{
return _isRun;
}
protected:
//线程运行时的工作函数
void OnWork()
{
if (_onCreate)
_onCreate(this);
if (_onRun)
_onRun(this);
if (_onDestory)
_onDestory(this);
//工作函数结束的时候唤醒关闭线程
_sem.wakeup();
}
private:
//线程启动事件
EventCall _onCreate;
//线程运行事件
EventCall _onRun;
//线程关闭事件
EventCall _onDestory;
//不同线程改变数据的时候需要加锁
std::mutex _mutex;
//信号量控制线程的启动、退出
CELLSemaphore _sem;
//线程是否启动运行中
bool _isRun = false;
};
#endif // !_CELL_Thread_HPP_
| [
"13807075164@163.com"
] | 13807075164@163.com |
a49655b89ef063f5dcd5230d9f7da961dfec42a5 | 6856ae4f5c31f79526e096e76d2c41a6ed068283 | /Example/Buttons1/Buttons1.ino | a03da472e317b8cabcaa550408aa4869a9585941 | [] | no_license | dinosd/ArduinoAnalogButtons | aa2bac86c1a0bec8490b60af6efdca6241a0b5a5 | bee97dbbc070b7045d340208cd600be0f05536c4 | refs/heads/master | 2021-01-25T03:40:19.986091 | 2012-11-10T23:36:09 | 2012-11-10T23:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,663 | ino | // default value for voltage is 5V
// default value for Pulldown resistor is 10K
//
// 5V -----[Button]-------- [Resistor] ----------------- ANALOG PIN --------- [Pulldown Resistor] ------- GROUND
// |
// 5V -----[Button]-------- [Resistor] -----------------
// |
// 5V -----[Button]-------- [Resistor] -----------------
// |
// 5V -----[Button]-------- [Resistor] -----------------
#include <CDButton.h>
#define VOLTAGE 5.0 //default is 5.0
#define ANALOGPIN A0
#define PULLDOWNRES 10000 // default is 10000 = R10K
AnalogButtons buttons(VOLTAGE,PULLDOWNRES,A0); // or
//AnalogButtons buttons(A0);
void setup()
{
Serial.begin(57600);
buttons.onButtonPush=button_onButtonPush; // call back when a button pressed passing button id as parameter
buttons.onButtonRelease=button_onButtonRelease; // call back when a button released passing button id as parameter
buttons.addButton(1,1000); // button id=1 resistor=R1K
buttons.addButton(2,2200); // button id=2 resistor=2R2K
buttons.addButton(3,4700); // button id=3 resistor=4R7K
buttons.addButton(4,10000); // button id=4 resistor=R10K
buttons.addButton(5,220); // button id=5 resistor=R220
}
void loop()
{
buttons.loop();
}
void button_onButtonPush(byte id)
{
Serial.print("ON:");
Serial.println(id,DEC);
delay(300);
}
void button_onButtonRelease(byte id)
{
Serial.print("OFF:");
Serial.println(id,DEC);
}
| [
"cdafalias@gmail.com"
] | cdafalias@gmail.com |
47402a56fa139ed1b9ce9296dba4f890f9868800 | a53d38c7fad34e46fca1eed4a9783e2f9ea324d1 | /src/polyagammaSampler/PolyaGammaSP.cpp | bf3363fe8d3471218ef5a2d153cfde63881f4654 | [
"Apache-2.0"
] | permissive | ifiaposto/Mutually-Regressive-Point-Processes | 0c32241c4ed5cea71da40c51e8b55d1762225810 | 84e93ddf8c59c4421feb24db01c7938ff09ad08f | refs/heads/master | 2020-08-28T14:11:53.260777 | 2019-11-23T12:10:12 | 2019-11-23T12:10:12 | 217,717,294 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,086 | cpp | #include "PolyaGammaSP.h"
#include "InvertY.hpp"
#include <stdexcept>
//------------------------------------------------------------------------------
// double v_secant(double y, double vb, double va, double tol, int maxiter)
// {
// double yb = y_func(vb);
// double ya = y_func(va);
// if (yb > ya) fprintf(stderr, "v_secant: yb(elow) > ya(above).\n");
// int iter = 0;
// double ydiff = tol + 1.;
// double vstar, ystar;
// while (fabs(ydiff) > tol && iter < maxiter) {
// iter = iter + 1;
// double m = (ya - yb) / (va - vb);
// vstar = (y - yb) / m + vb;
// ystar = y_func(vstar);
// ydiff = y - ystar;
// if (ystar < y) {
// vb = vstar;
// yb = ystar;
// } else {
// va = vstar;
// ya = ystar;
// }
// // printf("y, v, ydiff: %g, %g, %g\n", ystar, vstar, ydiff);
// }
// if (iter >= maxiter) fprintf(stderr, "v_secant: reached maxiter.\n");
// return vstar;
// }
// double v_func(double y) {
// double lowerb = -100;
// double upperb = 2.22;
// double v = 0.0;
// if (y < 0.1)
// v = -1. / (y*y);
// else if (y > 8.285225) {
// v = atan(y * 0.5 * __PI);
// v = v * v;
// }
// else
// v = v_secant(y, lowerb, upperb, 1e-8, 10000);
// return v;
// }
//------------------------------------------------------------------------------
double PolyaGammaSP::rtigauss(double mu, double lambda, double trunc, RNG& r)
{
// mu = fabs(mu);
double X = trunc + 1.0;
if (trunc < mu) { // mu > t
double alpha = 0.0;
while (r.unif() > alpha) {
X = r.rtinvchi2(lambda, trunc);
alpha = exp(-0.5 * lambda / (mu*mu) * X);
}
// printf("rtigauss, part i: %g\n", X);
}
else {
while (X > trunc) {
X = r.igauss(mu, lambda);
}
// printf("rtigauss, part ii: %g\n", X);
}
return X;
}
double PolyaGammaSP::y_func(double v)
{
double tol = 1e-6;
double y = 0.0;
double r = sqrt(fabs(v));
if (v > tol)
y = tan(r) / r;
else if (v < -1*tol)
y = tanh(r) / r;
else
y = 1 + (1/3) * v + (2/15) * v * v + (17/315) * v * v * v;
return y;
}
double PolyaGammaSP::cos_rt(double v)
{
double y = 0.0;
double r = sqrt(fabs(v));
if (v >= 0)
y = cos(r);
else
y = cosh(r);
return y;
}
void PolyaGammaSP::delta_func(double x, double mid, FD& delta)
{
if (x >= mid) {
delta.val = log(x) - log(mid);
delta.der = 1.0 / x;
}
else {
delta.val = 0.5 * (1 - 1.0 / x) - 0.5 * (1 - 1.0 / mid);
delta.der = 0.5 / (x*x);
}
}
double PolyaGammaSP::phi_func(double x, double z, FD& phi)
{
// double v = yv.v_func(x);
double v = v_eval(x);
double u = 0.5 * v;
double t = u + 0.5 * z*z;
phi.val = log(cosh(fabs(z))) - log(cos_rt(v)) - t * x;
phi.der = -1.0 * t;
return v;
}
double PolyaGammaSP::tangent_to_eta(double x, double z, double mid, Line& tl)
{
FD phi, delta, eta;
double v;
v = phi_func(x, z, phi);
delta_func(x, mid, delta);
eta.val = phi.val - delta.val;
eta.der = phi.der - delta.der;
// printf("v=%g\nphi=%g, phi.d=%g\ndelta=%g, delta.d=%g\neta=%g, eta.d=%g\n",
// v, phi.val, phi.der, delta.val, delta.der, eta.val, eta.der);
tl.slope = eta.der;
tl.icept = eta.val - eta.der * x;
return v;
}
double PolyaGammaSP::sp_approx(double x, double n, double z)
{
// double v = yv.v_func(x);
double v = v_eval(x);
double u = 0.5 * v;
double z2 = z * z;
double t = u + 0.5 * z2;
// double m = y_func(-1 * z2);
double phi = log(cosh(z)) - log(cos_rt(v)) - t * x;
double K2 = 0.0;
if (fabs(v) >= 1e-6)
K2 = x*x + (1-x) / v;
else
K2 = x*x - 1/3 - (2/15) * v;
double log_spa = 0.5 * log(0.5 * n / __PI) - 0.5 * log(K2) + n * phi;
return exp(log_spa);
}
int PolyaGammaSP::draw(double& d, double n, double z, RNG& r, int maxiter)
{
if (n < 1) fprintf(stderr, "PolyaGammaSP::draw: n must be >= 1.\n");
z = 0.5 * fabs(z);
double xl = y_func(-1*z*z); // Mode of phi - Left point.
double md = xl * 1.1; // Mid point.
double xr = xl * 1.2; // Right point.
// printf("xl, md, xr: %g, %g, %g\n", xl, md, xr);
// Inflation constants
// double vmd = yv.v_func(md);
double vmd = v_eval(md);
double K2md = 0.0;
if (fabs(vmd) >= 1e-6)
K2md = md*md + (1-md) / vmd;
else
K2md = md*md - 1/3 - (2/15) * vmd;
double m2 = md * md;
double al = m2*md / K2md;
double ar = m2 / K2md;
// printf("vmd, K2md, al, ar: %g, %g %g %g\n", vmd, K2md, al, ar);
// Tangent lines info.
Line ll, lr;
tangent_to_eta(xl, z, md, ll);
tangent_to_eta(xr, z, md, lr);
double rl = -1. * ll.slope;
double rr = -1. * lr.slope;
double il = ll.icept;
double ir = lr.icept;
// printf("rl, rr, il, ir: %g, %g, %g, %g\n", rl, rr, il, ir);
// Constants
double lcn = 0.5 * log(0.5 * n / __PI);
double rt2rl = sqrt(2 * rl);
// printf("sqrt(rl): %g\n", rt2rl);
// Weights
double wl, wr, wt, pl;
wl = exp(0.5 * log(al) - n * rt2rl + n * il + 0.5 * n * 1./md) *
RNG::p_igauss(md, 1./rt2rl, n);
wr = exp(0.5 * log(ar) + lcn - n * log(n * rr) + n * ir - n * log(md)) *
// yv.upperIncompleteGamma(md, n, n*rr);
RNG::Gamma(n) * (1.0 - RNG::p_gamma_rate(md, n, n*rr));
// printf("wl, wr: %g, %g\n", wl, wr);
wt = wl + wr;
pl = wl / wt;
// Sample
bool go = true;
int iter = 0;
double X = 2.0;
double F = 0.0;
while(go && iter < maxiter) {
// Put first so check on first pass.
#ifdef USE_R
if (iter % 1000 == 0) R_CheckUserInterrupt();
#endif
iter++;
double phi_ev;
if (r.unif() < pl) {
X = rtigauss(1./rt2rl, n, md, r);
phi_ev = n * (il - rl * X) + 0.5 * n * ((1.-1./X) - (1.-1./md));
F = exp(0.5 * log(al) + lcn - 1.5 * log(X) + phi_ev);
}
else {
X = r.ltgamma(n, n*rr, md);
phi_ev = n * (ir - rr * X) + n * (log(X) - log(md));
F = exp(0.5 * log(ar) + lcn + phi_ev) / X;
}
double spa = sp_approx(X, n, z);
if (F * r.unif() < spa) go = false;
}
// return n * 0.25 * X;
d = n * 0.25 * X;
return iter;
}
| [
"iapostol@GS17622.SP.CS.CMU.EDU"
] | iapostol@GS17622.SP.CS.CMU.EDU |
ee318fa6b245e9d856d1977ab8322e600978cc99 | d0ceb8e9a5e132e0a31d1e1639d45a0b6a8d049f | /src/main/cpp/exbisim/dagdagfp/dagdagfp.hpp | 6282bfb1db537b1f9d8195ef94908bcac76853e2 | [
"BSD-2-Clause"
] | permissive | sshyran/graphene | 100e6117271052785eeb4026daede877d5f5a857 | 0f9a881ac5363ffe26d4b4bc63c70f484d1d1aa6 | refs/heads/master | 2023-04-16T00:45:55.236730 | 2014-11-13T21:50:00 | 2014-11-13T21:50:00 | 272,573,216 | 0 | 0 | null | 2023-04-04T01:40:04 | 2020-06-16T00:35:03 | null | UTF-8 | C++ | false | false | 3,144 | hpp | /**
* dagdagfp.hpp - Convert dag DAGs to dagfp DAGs.
*
* Copyright (c) 2011 Jelle Hellings <exbisim@jhellings.nl>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY JELLE HELLINGS ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef INCLUDE_DAGDAGFP_HPP_
#define INCLUDE_DAGDAGFP_HPP_
#include "common/records.hpp"
#include "lib/binaryreader.hpp"
#include "lib/binarywriter.hpp"
#include "lib/stxxl/wrapper.hpp"
/**
* Count the number of parents per node; store this number in the sizes vector.
*
* @param nodes The number of nodes.
* @param edges The set of (from, to) edges sorted on to.
* @param sizes The set wherein the number of parents is stored per node.
*/
void num_parents_node(const uint nodes,
const stxxl::VECTOR_GENERATOR<Edge>::result& edges,
stxxl::VECTOR_GENERATOR<uint>::result& sizes);
/**
* Read dag in dag format.
*
* @param labels Vector to store node labels in; such that the label of the
* i-th node is stored as the i-th element in the vector.
* @param edges Vector containing all dag edges.
* @param in The input stream to read from.
*/
void read_dag(stxxl::VECTOR_GENERATOR<uint>::result& labels,
stxxl::VECTOR_GENERATOR<Edge>::result& edges,
lib::BinaryReader<uint>& in);
/**
* Write dag in dagfp format.
*
* @param labels Vector containing all labels of nodes.
* @param edges Vector containing all dag edges.
* @param sizes The number of parents for each node.
* @param out The output stream to write to.
*/
void write_dagfp(const stxxl::VECTOR_GENERATOR<uint>::result& labels,
const stxxl::VECTOR_GENERATOR<Edge>::result& edges,
const stxxl::VECTOR_GENERATOR<uint>::result& sizes,
lib::BinaryWriter<uint>& out);
#endif | [
"lgreg.meredith@biosimilarity.com"
] | lgreg.meredith@biosimilarity.com |
41406136ed0239c4dc6daf0acdeceb7e1c277063 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/tensorflow/include/external/mkl_dnn_v1/src/cpu/x64/brgemm/brgemm_types.hpp | d6ec56ce5a30bc55c9264b7c6973ee0224a387e5 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | version https://git-lfs.github.com/spec/v1
oid sha256:62955abc7110eaf90347e3d6a5496a4654bafb9e3ed795b14c557b7db1e82104
size 4820
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
8a98447bf3b0771140e1ea9c50c65ba3e315a87f | 57ac85ca91d0f218be2a97e41ad7f8967728e7b9 | /blazetest/src/mathtest/dmatdmatmin/D3x3aD3x3b.cpp | 2340652e7dfa475b91722d77ad9ab12241d9adb6 | [
"BSD-3-Clause"
] | permissive | AuroraDysis/blaze | b297baa6c96b77c3d32de789e0e3af27782ced77 | d5cacf64e8059ca924eef4b4e2a74fc9446d71cb | refs/heads/master | 2021-01-01T16:49:28.921446 | 2017-07-22T23:24:26 | 2017-07-22T23:24:26 | 97,930,727 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,774 | cpp | //=================================================================================================
/*!
// \file src/mathtest/dmatdmatmin/D3x3aD3x3b.cpp
// \brief Source file for the D3x3aD3x3b dense matrix/dense matrix minimum math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistribute it and/or modify it under
// the terms of the New (Revised) BSD License. Redistribution and use in source and binary
// forms, with or without modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
// 3. Neither the names of the Blaze development group nor the names of its contributors
// may be used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
*/
//=================================================================================================
//*************************************************************************************************
// Includes
//*************************************************************************************************
#include <cstdlib>
#include <iostream>
#include <blaze/math/DiagonalMatrix.h>
#include <blaze/math/StaticMatrix.h>
#include <blazetest/mathtest/Creator.h>
#include <blazetest/mathtest/dmatdmatmin/OperationTest.h>
#include <blazetest/system/MathTest.h>
//=================================================================================================
//
// MAIN FUNCTION
//
//=================================================================================================
//*************************************************************************************************
int main()
{
std::cout << " Running 'D3x3aD3x3b'..." << std::endl;
using blazetest::mathtest::TypeA;
using blazetest::mathtest::TypeB;
try
{
// Matrix type definitions
typedef blaze::DiagonalMatrix< blaze::StaticMatrix<TypeA,3UL,3UL> > D3x3a;
typedef blaze::DiagonalMatrix< blaze::StaticMatrix<TypeB,3UL,3UL> > D3x3b;
// Creator type definitions
typedef blazetest::Creator<D3x3a> CD3x3a;
typedef blazetest::Creator<D3x3b> CD3x3b;
// Running the tests
RUN_DMATDMATMIN_OPERATION_TEST( CD3x3a(), CD3x3b() );
}
catch( std::exception& ex ) {
std::cerr << "\n\n ERROR DETECTED during dense matrix/dense matrix minimum:\n"
<< ex.what() << "\n";
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
//*************************************************************************************************
| [
"klaus.iglberger@gmail.com"
] | klaus.iglberger@gmail.com |
eda573debde1bcab32829e07672935c6ada49616 | ab0c71c113e00831f486c1d54acea500036ea03f | /WavePattern.h | 5b581c4bed6ae72b16c68dcfbf41c7d4ab5de8d8 | [] | no_license | LucasSwitz/LED_CUBE2 | dd14d23771390705df09da9905a80736c7964c76 | 63ef4195563e2dd23f3fe39197a4150adc056243 | refs/heads/master | 2021-01-17T00:08:40.086933 | 2015-11-20T04:44:01 | 2015-11-20T04:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | h | #ifndef WavePattern_h
#define WavePattern_h
#include "LedPattern.h"
class WavePattern: public LedPattern
{
public:
WavePattern(){
setMaxRunCount(4);
};
virtual void adjustLeds()
{
for (int i = 1; i <= 5; i++)
{
for (int k = 0; k <= 16; k++)
{
if(match && inOn(k))
{
_leds[k][i] = 1;
}
else if(!match && !inOn(k))
{
_leds[k][i] = 1;
}
else
{
_leds[k][i] = 0;
}
}
}
if(match)
match = false;
else
match = true;
}
private:
boolean inOn(int k)
{
for(int z = 0; z < sizeof(on)/2; z++)
{
if(on[z] == k)
{
return true;
}
}
return false;
}
int on[8] = {2,4,5,7,10,12,13,15};
boolean match = true;
};
#endif
| [
"lucswitz@gmail.com"
] | lucswitz@gmail.com |
35ad25e6a15a1b821aebaa7e41dc57b79098a917 | 6971d104e81452459cbe71a1343feeee9859e772 | /Lumos/src/Graphics/Material.cpp | 21a7a356f953963eb01bf519c082a5627d06d25b | [
"MIT"
] | permissive | shivmsit/Lumos | 67eabeac1c9c862e7322837f2e48837eff8030c2 | 397688c107bddef8de76edd67504485829061b8d | refs/heads/master | 2020-09-05T16:58:45.340583 | 2019-10-30T21:43:11 | 2019-10-30T21:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,383 | cpp | #include "lmpch.h"
#include "Material.h"
#include "Graphics/API/DescriptorSet.h"
#include "Graphics/API/Pipeline.h"
#include "Graphics/API/ShaderResource.h"
#include "Graphics/API/UniformBuffer.h"
#include "Graphics/API/GraphicsContext.h"
#include "Core/OS/FileSystem.h"
#include "Core/VFS.h"
#include <imgui/imgui.h>
namespace Lumos
{
Material::Material(Ref<Graphics::Shader>& shader, const MaterialProperties& properties, const PBRMataterialTextures& textures) : m_PBRMaterialTextures(textures), m_Shader(shader)
{
m_RenderFlags = 0;
SetRenderFlag(RenderFlags::DEFERREDRENDER);
m_DescriptorSet = nullptr;
m_MaterialProperties = lmnew MaterialProperties();
SetMaterialProperites(properties);
m_MaterialPropertiesBuffer = nullptr;
m_MaterialBufferSize = sizeof(MaterialProperties);
m_MaterialBufferData = lmnew u8[m_MaterialBufferSize];
m_Pipeline = nullptr;
}
Material::Material() : m_Shader(nullptr)
{
m_RenderFlags = 0;
SetRenderFlag(RenderFlags::DEFERREDRENDER);
m_DescriptorSet = nullptr;
m_MaterialPropertiesBuffer = nullptr;
m_MaterialProperties = lmnew MaterialProperties();
m_PBRMaterialTextures.albedo = nullptr;
m_MaterialBufferSize = sizeof(MaterialProperties);
m_MaterialBufferData = lmnew u8[m_MaterialBufferSize];
m_Pipeline = nullptr;
}
Material::~Material()
{
delete m_DescriptorSet;
delete m_MaterialProperties;
delete m_MaterialPropertiesBuffer;
delete[] m_MaterialBufferData;
}
void Material::SetTextures(const PBRMataterialTextures& textures)
{
m_PBRMaterialTextures.albedo = textures.albedo;
m_PBRMaterialTextures.normal = textures.normal;
m_PBRMaterialTextures.roughness = textures.roughness;
m_PBRMaterialTextures.specular = textures.specular;
m_PBRMaterialTextures.ao = textures.ao;
m_PBRMaterialTextures.emissive = textures.emissive;
}
bool FileExists(const String& path)
{
String physicalPath;
VFS::Get()->ResolvePhysicalPath(path,physicalPath);
return FileSystem::FileExists(physicalPath);
}
void Material::LoadPBRMaterial(const String& name, const String& path, const String& extension)
{
m_Name = name;
m_PBRMaterialTextures = PBRMataterialTextures();
auto params = Graphics::TextureParameters(Graphics::TextureFormat::RGBA, Graphics::TextureFilter::LINEAR, Graphics::TextureWrap::CLAMP_TO_EDGE);
auto filePath = path + "/" + name + "/albedo" + extension;
if(FileExists(filePath))
m_PBRMaterialTextures.albedo = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/albedo" + extension,params));
filePath = path + "/" + name + "/normal" + extension;
if (FileExists(filePath))
m_PBRMaterialTextures.normal = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/normal" + extension,params));
filePath = path + "/" + name + "/roughness" + extension;
if (FileExists(filePath))
m_PBRMaterialTextures.roughness = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/roughness" + extension,params));
filePath = path + "/" + name + "/metallic" + extension;
if (FileExists(filePath))
m_PBRMaterialTextures.specular = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/metallic" + extension,params));
filePath = path + "/" + name + "/ao" + extension;
if (FileExists(filePath))
m_PBRMaterialTextures.ao = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/ao" + extension, params));
filePath = path + "/" + name + "/emissive" + extension;
if (FileExists(filePath))
m_PBRMaterialTextures.emissive = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path + "/" + name + "/emissive" + extension, params));
}
void Material::LoadMaterial(const String& name, const String& path)
{
m_Name = name;
m_PBRMaterialTextures = PBRMataterialTextures();
m_PBRMaterialTextures.albedo = Ref<Graphics::Texture2D>(Graphics::Texture2D::CreateFromFile(name, path));
m_PBRMaterialTextures.normal = nullptr;
m_PBRMaterialTextures.roughness = nullptr;
m_PBRMaterialTextures.specular = nullptr;
m_PBRMaterialTextures.ao = nullptr;
m_PBRMaterialTextures.emissive = nullptr;
}
void Material::UpdateMaterialPropertiesData()
{
memcpy(m_MaterialBufferData, m_MaterialProperties, sizeof(MaterialProperties));
}
void Material::OnImGui()
{
bool flipImage = Graphics::GraphicsContext::GetContext()->FlipImGUITexture();
MaterialProperties* prop = GetProperties();
if (ImGui::TreeNode("Albedo"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().albedo;
if (tex)
{
ImGui::Image(tex->GetHandle(), ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use Albedo Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseAlbedoMap", &prop->usingAlbedoMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Albedo");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::ColorEdit4("##Albedo", Maths::ValuePointer(prop->albedoColour));
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
if (ImGui::TreeNode("Normal"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().normal;
if (tex)
{
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use Normal Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseNormalMap", &prop->usingNormalMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
if (ImGui::TreeNode("Specular"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().specular;
if (tex)
{
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use Specular Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseSpecularMap", &prop->usingSpecularMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Specular");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat3("##Specular", Maths::ValuePointer(prop->specularColour), 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
if (ImGui::TreeNode("Roughness"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().roughness;
if (tex)
{
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use Roughness Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseRoughnessMap", &prop->usingRoughnessMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Roughness");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat3("##Roughness", Maths::ValuePointer(prop->roughnessColour), 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
if (ImGui::TreeNode("Ao"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().ao;
if (tex)
{
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use AO Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseAOMap", &prop->usingAOMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
if (ImGui::TreeNode("Emissive"))
{
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
ImGui::Columns(2);
ImGui::Separator();
ImGui::AlignTextToFramePadding();
auto tex = GetTextures().emissive;
if (tex)
{
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(64, 64), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
if (ImGui::IsItemHovered() && tex)
{
ImGui::BeginTooltip();
ImGui::Image(tex ? tex->GetHandle() : nullptr, ImVec2(256, 256), ImVec2(0.0f, flipImage ? 1.0f : 0.0f), ImVec2(1.0f, flipImage ? 0.0f : 1.0f));
ImGui::EndTooltip();
}
}
else
{
ImGui::Button("Empty", ImVec2(64, 64));
}
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::Text("%s", tex ? tex->GetFilepath().c_str() : "No Texture");
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::AlignTextToFramePadding();
ImGui::Text("Use Emissive Map");
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
ImGui::SliderFloat("##UseEmissiveMap", &prop->usingEmissiveMap, 0.0f, 1.0f);
ImGui::PopItemWidth();
ImGui::NextColumn();
ImGui::Columns(1);
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TreePop();
}
ImGui::Separator();
SetMaterialProperites(*prop);
}
void Material::SetMaterialProperites(const MaterialProperties &properties)
{
m_MaterialProperties->albedoColour = properties.albedoColour;
m_MaterialProperties->specularColour = properties.specularColour;
m_MaterialProperties->roughnessColour = properties.roughnessColour;
m_MaterialProperties->usingAlbedoMap = properties.usingAlbedoMap;
m_MaterialProperties->usingNormalMap = properties.usingNormalMap;
m_MaterialProperties->usingSpecularMap = properties.usingSpecularMap;
m_MaterialProperties->usingRoughnessMap = properties.usingRoughnessMap;
m_MaterialProperties->usingAOMap = properties.usingAOMap;
m_MaterialProperties->usingEmissiveMap = properties.usingEmissiveMap;
m_MaterialProperties->workflow = properties.workflow;
UpdateMaterialPropertiesData();
if(m_MaterialPropertiesBuffer)
m_MaterialPropertiesBuffer->SetData(m_MaterialBufferSize, *&m_MaterialBufferData);
}
void Material::CreateDescriptorSet(Graphics::Pipeline* pipeline, int layoutID, bool pbr)
{
if(m_DescriptorSet)
delete m_DescriptorSet;
m_Pipeline = pipeline;
Graphics::DescriptorInfo info;
info.pipeline = pipeline;
info.layoutIndex = layoutID;
info.shader = pipeline->GetShader();
if(m_MaterialPropertiesBuffer == nullptr && pbr)
{
m_MaterialPropertiesBuffer = Graphics::UniformBuffer::Create();
m_MaterialBufferSize = static_cast<uint32_t>(sizeof(MaterialProperties));
m_MaterialPropertiesBuffer->Init(m_MaterialBufferSize, nullptr);
}
m_DescriptorSet = Graphics::DescriptorSet::Create(info);
std::vector<Graphics::ImageInfo> imageInfos;
std::vector<Graphics::BufferInfo> bufferInfos;
if(m_PBRMaterialTextures.albedo != nullptr)
{
Graphics::ImageInfo imageInfo1 = {};
imageInfo1.texture = { m_PBRMaterialTextures.albedo.get() };
imageInfo1.binding = 0;
imageInfo1.name = "u_AlbedoMap";
imageInfos.push_back(imageInfo1);
}
else
m_MaterialProperties->usingAlbedoMap = 0.0f;
if(m_PBRMaterialTextures.specular != nullptr)
{
Graphics::ImageInfo imageInfo2 = {};
imageInfo2.texture ={ m_PBRMaterialTextures.specular.get() };
imageInfo2.binding = 1;
imageInfo2.name = "u_SpecularMap";
imageInfos.push_back(imageInfo2);
}
else
m_MaterialProperties->usingSpecularMap = 0.0f;
if(m_PBRMaterialTextures.roughness != nullptr)
{
Graphics::ImageInfo imageInfo3 = {};
imageInfo3.texture = { m_PBRMaterialTextures.roughness.get() };
imageInfo3.binding = 2;
imageInfo3.name = "u_RoughnessMap";
imageInfos.push_back(imageInfo3);
}
else
m_MaterialProperties->usingRoughnessMap = 0.0f;
if(m_PBRMaterialTextures.normal != nullptr)
{
Graphics::ImageInfo imageInfo4 = {};
imageInfo4.texture = { m_PBRMaterialTextures.normal.get() };
imageInfo4.binding = 3;
imageInfo4.name = "u_NormalMap";
imageInfos.push_back(imageInfo4);
}
else
m_MaterialProperties->usingNormalMap = 0.0f;
if (m_PBRMaterialTextures.ao != nullptr)
{
Graphics::ImageInfo imageInfo5 = {};
imageInfo5.texture = { m_PBRMaterialTextures.ao.get() };
imageInfo5.binding = 4;
imageInfo5.name = "u_AOMap";
imageInfos.push_back(imageInfo5);
}
else
m_MaterialProperties->usingAOMap = 0.0f;
if (m_PBRMaterialTextures.emissive != nullptr)
{
Graphics::ImageInfo imageInfo6 = {};
imageInfo6.texture = { m_PBRMaterialTextures.emissive.get() };
imageInfo6.binding = 5;
imageInfo6.name = "u_EmissiveMap";
imageInfos.push_back(imageInfo6);
}
else
m_MaterialProperties->usingEmissiveMap = 0.0f;
if (pbr)
{
Graphics::BufferInfo bufferInfo = {};
bufferInfo.buffer = m_MaterialPropertiesBuffer;
bufferInfo.offset = 0;
bufferInfo.size = sizeof(MaterialProperties);
bufferInfo.type = Graphics::DescriptorType::UNIFORM_BUFFER;
bufferInfo.binding = 6;
bufferInfo.shaderType = Graphics::ShaderType::FRAGMENT;
bufferInfo.name = "UniformMaterialData";
bufferInfo.systemUniforms = false;
bufferInfos.push_back(bufferInfo);
UpdateMaterialPropertiesData();
m_MaterialPropertiesBuffer->SetData(m_MaterialBufferSize, *&m_MaterialBufferData);
}
m_DescriptorSet->Update(imageInfos, bufferInfos);
}
}
| [
"jmorton06@live.co.uk"
] | jmorton06@live.co.uk |
95e94fece2ba3427ff0ce0357f96bd13a277e2db | fbb0dfd5670f3e00978eed1c5bebbab9117d0550 | /Soluciones/AceptaElReto117LaFiestaAburrida.cpp | cfabb097f87f79006b287e490edb002e6e7d035f | [] | no_license | Jorgitou98/Acepta-el-Reto | 84a646310050040a1a401560e4a83a477806e95e | a54a74cba2e927d12d37125de77148b9751af8c2 | refs/heads/master | 2023-07-06T13:14:42.956358 | 2023-06-26T21:10:54 | 2023-06-26T21:10:54 | 168,988,847 | 10 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | #include <iostream>
using namespace std;
int main() {
//cin.sync_with_stdio(false);
//cin.tie(nullptr);
int numcasos;
cin >> numcasos;
for (int i = 0; i < numcasos; ++i) {
string palabra;
cin >> palabra >> palabra;
cout << "Hola, " << palabra << ".\n";
}
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
f68a79bb141814935b1388d3f7725a2902293b9e | 6f100f69232c6597c3f9564acde9c303b2adf47d | /Other/Minimum AND xor OR/main.cpp | 378418d64954bd0c630423a75d9335cc58683113 | [] | no_license | douglasbravimbraga/programming-contests | 43e1b6aaa5a3ef51f5815fed8cb9a607f4f334cc | 75e444977cc3ff701b7390b8de70c88f6b40c52f | refs/heads/master | 2023-07-20T07:58:53.145049 | 2021-08-01T12:48:23 | 2021-08-01T12:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int test_cases;
scanf("%d", &test_cases);
while (test_cases--) {
int N;
scanf("%d", &N);
int A[N];
int minimum = INT_MAX;
for (int i = 0; i < N; i++) {
scanf("%d", &A[i]);
}
sort(A, A + N);
for (int i = 0; i < N - 1; i++) {
minimum = min(minimum, (A[i] ^ A[i + 1]));
}
cout << minimum << endl;
}
} | [
"versenyi98@gmail.com"
] | versenyi98@gmail.com |
4ca65d87de062c2fd348b4919583081f617eb66d | 8da038f66af1aac06e093cd34ed19226881ce0a8 | /src/Bookkeeper.h | 1d94ca623d42ae810d55f72406ff356bf7e5883a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ChrisLidbury/CLSmith | 9188df045b3409ff5b6ee677928d3777aaaa9017 | a39a31c43c88352fc65e61dce270d8e1660cbcf0 | refs/heads/master | 2020-12-29T02:21:57.639464 | 2017-04-01T17:15:22 | 2017-04-01T17:15:22 | 15,743,638 | 21 | 12 | null | 2017-04-01T17:15:23 | 2014-01-08T18:12:14 | C++ | UTF-8 | C++ | false | false | 5,027 | h | // -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2010, 2011 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#ifndef BOOKKEEPER_H
#define BOOKKEEPER_H
///////////////////////////////////////////////////////////////////////////////
#include <string>
#include <vector>
using namespace std;
class Variable;
class Expression;
class Statement;
class Fact;
class Type;
class Bookkeeper
{
public:
Bookkeeper(void);
~Bookkeeper(void);
static void doFinalization();
static void output_statistics(std::ostream &out);
static void output_struct_union_statistics(std::ostream &out);
static void output_expr_statistics(std::ostream &out);
static void output_pointer_statistics(std::ostream &out);
static void output_jump_statistics(std::ostream &out);
static void output_stmts_statistics(std::ostream &out);
static void output_volatile_access_statistics(std::ostream &out);
static void output_counters(std::ostream &out, const char* prefix_msg,
const char* breakdown_msg, const std::vector<int> &counters, int starting_pos = 0);
static void update_ptr_aliases(const vector<Fact*>& facts, vector<const Variable*>& ptrs, vector<vector<const Variable*> >& aliases);
static void record_address_taken(const Variable *var);
static void record_pointer_comparisons(const Expression* lhs, const Expression* rhs);
static void record_volatile_access(const Variable* var, int deref_level, bool write);
static void record_type_with_bitfields(const Type* typ);
static void record_vars_with_bitfields(const Type *type);
static void record_bitfields_writes(const Variable *var);
static void record_bitfields_reads(const Variable *var);
static void output_bitfields(std::ostream &out);
static void output_var_freshness(std::ostream &out);
static void stat_expr_depths_for_stmt(const Statement* s);
static void stat_expr_depths(void);
static int stat_blk_depths_for_stmt(const Statement* s);
static int stat_blk_depths(void);
static std::vector<int> struct_depth_cnts;
static int union_var_cnt;
static std::vector<int> expr_depth_cnts;
static std::vector<int> blk_depth_cnts;
static std::vector<int> dereference_level_cnts;
static int address_taken_cnt;
static std::vector<int> write_dereference_cnts;
static std::vector<int> read_dereference_cnts;
static int cmp_ptr_to_null;
static int cmp_ptr_to_ptr;
static int cmp_ptr_to_addr;
static int read_volatile_cnt;
static int read_volatile_thru_ptr_cnt;
static int write_volatile_cnt;
static int write_volatile_thru_ptr_cnt;
static int read_non_volatile_cnt;
static int write_non_volatile_cnt;
static int pointer_avail_for_dereference;
static int volatile_avail;
static int structs_with_bitfields;
static std::vector<int> vars_with_bitfields;
static std::vector<int> vars_with_full_bitfields;
static int vars_with_bitfields_address_taken_cnt;
static int bitfields_in_total;
static int unamed_bitfields_in_total;
static int const_bitfields_in_total;
static int volatile_bitfields_in_total;
static int lhs_bitfields_structs_vars_cnt;
static int rhs_bitfields_structs_vars_cnt;
static int lhs_bitfield_cnt;
static int rhs_bitfield_cnt;
static int forward_jump_cnt;
static int backward_jump_cnt;
static int use_new_var_cnt;
static int use_old_var_cnt;
static bool rely_on_int_size;
static bool rely_on_ptr_size;
};
void incr_counter(std::vector<int>& counters, int index);
int calc_total(const std::vector<int>& counters);
///////////////////////////////////////////////////////////////////////////////
#endif // BOOKKEEPER_H
// Local Bookkeepers:
// c-basic-offset: 4
// tab-width: 4
// End:
// End of file.
| [
"cdl110@doc.ic.ac.uk"
] | cdl110@doc.ic.ac.uk |
05278f896978aac1c9f10689ed4af410d5542ce7 | 75452de12ec9eea346e3b9c7789ac0abf3eb1d73 | /src/security/codelab/smart_door_memory/src/smart_door_memory_server.cc | 4c90edb35a7a05538d33bcac5a3cc00a5b6d36cd | [
"BSD-3-Clause"
] | permissive | oshunter/fuchsia | c9285cc8c14be067b80246e701434bbef4d606d1 | 2196fc8c176d01969466b97bba3f31ec55f7767b | refs/heads/master | 2022-12-22T11:30:15.486382 | 2020-08-16T03:41:23 | 2020-08-16T03:41:23 | 287,920,017 | 2 | 2 | BSD-3-Clause | 2022-12-16T03:30:27 | 2020-08-16T10:18:30 | C++ | UTF-8 | C++ | false | false | 460 | cc | // Copyright 2020 The Fuchsia 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 <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include "smart_door_memory_server_app.h"
int main(int argc, const char** argv) {
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
smart_door_memory::SmartDoorMemoryServerApp app;
loop.Run();
return 0;
}
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a5bf82fd0b24ed547e0768ff7452c84f2d688a01 | c583a77f066bc83daa39db4e5bbdbda2838a875d | /src/Rendering/Camera.h | 9f3c45f9ff173a58f09287b307ec25afef4b61ae | [
"MIT"
] | permissive | apodrugin/Sourcehold | f262004a413bb2ee2be59625084e992f1600c84c | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | refs/heads/master | 2023-03-25T05:16:19.831597 | 2021-03-15T14:49:24 | 2021-03-15T14:49:24 | 334,636,437 | 0 | 0 | MIT | 2021-03-09T21:47:09 | 2021-01-31T11:14:52 | C++ | UTF-8 | C++ | false | false | 1,245 | h | #pragma once
#include <cinttypes>
#include <SDL.h>
namespace Sourcehold {
namespace Rendering {
enum ZoomLevel : uint8_t {
ZOOM_FAR,
ZOOM_NEAR,
ZOOM_BATTLEFIELD
};
enum Rotation : uint8_t {
UP,
LEFT,
DOWN,
RIGHT
};
class Camera {
public:
static Camera& instance() {
static Camera instance;
return instance;
}
void MoveLeft();
void MoveRight();
void MoveUp();
void MoveDown();
void Stop();
void Update(double dt);
void ZoomOut();
void ZoomIn();
void SetPos(int x, int y);
void TranslateCam(int x, int y);
void SetBounds(SDL_Rect bounds);
public:
Rotation rotation = UP;
ZoomLevel zoomLevel = ZOOM_FAR;
int positionX = 0, positionY = 0;
float accX = 0.0f, accY = 0.0f;
double start = 0.0;
protected:
const uint8_t zoomStep = 2;
SDL_Rect bounds;
};
}
}
| [
"metalvoidzz@gmail.com"
] | metalvoidzz@gmail.com |
4cfe1a395193058b9ffc295adb82210d7a4d0634 | f0749ffea2a953a324a26906b7dc3bd95ac06e60 | /Model/Groups/CellSkipper.h | 0fc0b7259a7729ea73a5176107a2e74f2a2a111b | [
"MIT"
] | permissive | jeffamstutz/rfManta | 36970d20ef79907db250da83ec1e672943c199fe | 77b3f8688f09719a9027a02777832bb734fc8431 | refs/heads/master | 2021-01-10T08:57:37.803549 | 2015-03-13T12:47:47 | 2015-03-13T12:47:47 | 48,449,383 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,853 | h | #ifndef CellSkipper_h
#define CellSkipper_h
#include <Model/Groups/Group.h>
#include <Core/Containers/GridArray3.h>
#include <Core/Geometry/Vector.h>
#include <Core/Geometry/BBox.h>
#include <Interface/RayPacket.h>
#include <Interface/AccelerationStructure.h>
namespace Manta {
class CellSkipper : public AccelerationStructure {
public:
CellSkipper(Group *group=NULL);
virtual ~CellSkipper();
void setGroup(Group* new_group);
void groupDirty() {} // does nothing for now
Group* getGroup() const;
virtual void addToUpdateGraph(ObjectUpdateGraph* graph,
ObjectUpdateGraphNode* parent) { }
void rebuild(int proc=0, int numProcs=1);
virtual void preprocess( PreprocessContext const & );
virtual void intersect( RenderContext const &context, RayPacket &rays ) const;
void computeBounds(const PreprocessContext&,
BBox& bbox) const
{
if (currGroup) {
BBox bounds(min, max); //note: min/max are slightly larger than actual bounds!
bbox.extendByBox(bounds);
}
}
protected:
void clearGrid();
CellSkipper(const CellSkipper&);
CellSkipper& operator=(const CellSkipper&);
template<const bool posX, const bool posY, const bool posZ>
void intersectRay( const RenderContext &context, RayPacket &rays ) const;
void build(const PreprocessContext &context, const vector<Object*> &objs,
const BBox &bounds);
Vector min, max;
Vector cellsize;
Vector inv_cellsize;
struct CellData {
unsigned char distances[6];
int listIndex;
CellData() : listIndex(0)
{
for (int i=0; i < 6; ++i) distances[i] = 0;
}
};
static const unsigned char INF; //max skip value
GridArray3<CellData> cells;
const Object** lists;
bool cellHasObjects(int x, int y, int z) const {
const int idx = cells.getIndex(x, y, z);
const int start = cells[idx ].listIndex;
const int end = cells[idx+1].listIndex;
return end > start;
}
bool hasDirectNeighbor(int i, int j, int k, int direction) const;
bool hasDiagonalNeighbor(int i, int j, int k, int direction) const;
unsigned char getDirectCount(int i, int j, int k, int direction) const;
void getDiagonalsCount(unsigned char diagonals[8], int i, int j, int k,
int direction) const;
void setInitialDistances(int i, int j, int k, int direction);
void setDistances(int i, int j, int k, int direction);
void initializeCellSkipping();
Group *currGroup;
void transformToLattice(const Vector& v, int& x, int& y, int& z) const;
void transformToLattice(const BBox& box,
int& sx, int& sy, int& sz,
int& ex, int& ey, int& ez) const;
};
}
#endif
| [
"jeff.amstutz@survice.com"
] | jeff.amstutz@survice.com |
c7712e361d49772444973758ce3b77838c1c808d | d0719fe62c3324606cf0fe0a1e7ea008afc17425 | /ALL QUESTIONS/ARRAYS-IS ARRAY MIRROR INVERSE.cpp | e8250d0c403f6fe523562150807b9cae4dbc6c50 | [] | no_license | prateekrawal/CODING_BLOCKS_PRACTICE_QUESTIONS | 7e6f9e9cdb0e55a96e6666005d0e3864fd9362f6 | e68b31bfcda07f536ad2b3b7e111643075cced05 | refs/heads/master | 2020-03-21T22:08:57.446988 | 2018-03-18T19:08:55 | 2018-03-18T19:08:55 | 139,106,982 | 1 | 0 | null | 2018-06-29T05:55:31 | 2018-06-29T05:55:31 | null | UTF-8 | C++ | false | false | 394 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n],i,b[n];
for(i=0;i<n;i++)
cin>>a[i];
for(i=0;i<n;i++)
{
b[a[i]]=i;
}
for(i=0;i<n;i++)
{
if(a[i]!=b[i])
break;
}
if(i==n)
cout<<"true";
else
cout<<"false";
}
| [
"noreply@github.com"
] | noreply@github.com |
fff93f8c141226d680efc95b8a52f35dc80ef2b8 | 803a33aa957a5f584a47acd564d31ec0faf0de8e | /RyujinCore/Input/Events.cpp | b7763a492970f906ae14d11bd40869c38c58d9d9 | [] | no_license | yggdrasil-917/Ryujin | 00d5758ad95290a0dd103b99d33db530b027c010 | 376f2354d13d0be40128b271ef9994a7c7f81f05 | refs/heads/master | 2021-05-15T20:10:44.374984 | 2017-11-14T02:03:41 | 2017-11-14T02:03:41 | 107,832,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,540 | cpp |
#include "Events.hpp"
namespace Ryujin
{
void PumpEvents()
{
#if PLATFORM_WINDOWS
PumpEvents_Windows();
#elif PLATFORM_MAC
PumpEvents_Mac();
#elif PLATFORM_LINUX
PumpEvents_Linux();
#endif
}
bool PollEvents(RyujinEvent& inEvent)
{
if (RyujinEventQueue::Instance()->events.Size() == 0)
return false;
return RyujinEventQueue::Instance()->events.GetFirst(inEvent);
}
void PushEvent(EngineEvent inEngineEvent, WindowEventID inWindowEvent, int32 inData1, int32 inData2)
{
RyujinEvent event;
event.engineEvent = inEngineEvent;
event.windowEventID = inWindowEvent;
event.Data1 = inData1;
event.Data2 = inData2;
RyujinEventQueue::Instance()->events.Add(event);
}
void PushKeyboardEvent(EngineEvent inEngineEvent, int32 key, KeyMod mod)
{
RyujinEvent event;
event.engineEvent = inEngineEvent;
event.Data1 = key;
event.Data2 = (int32)mod;
RyujinEventQueue::Instance()->events.Add(event);
}
void PushWindowEvent(WindowEventID inWindowEvent, int32 inData1, int32 inData2)
{
RyujinEvent event;
event.engineEvent = EngineEvent::WindowEvent;
event.windowEventID = inWindowEvent;
event.Data1 = inData1;
event.Data2 = inData2;
RyujinEventQueue::Instance()->events.Add(event);
}
void PopEvent()
{
RyujinEventQueue::Instance()->events.RemoveFront();
}
}
| [
"xavi@Xaviers-MacBook-Pro.local"
] | xavi@Xaviers-MacBook-Pro.local |
315f34232144fb9bcd02ecee66bbad270256e837 | ecbee786f8ec083a81cb9414215cbb015a4b7871 | /GCU_Programming1_Coursework/cSpriteText.cpp | 6f8dae352a7d0083dd80b34689c70b172ad88555 | [] | no_license | JanRiebe/SDL_Racing_Game | ecd5a218342e468e1e59abe2df1ca82cb73a99c5 | 4385e7547a72c10e0b15d0a7836f34c72dc2c851 | refs/heads/master | 2020-04-04T19:22:12.266799 | 2018-12-10T10:46:42 | 2018-12-10T10:46:42 | 156,203,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,474 | cpp | #include "cSpriteText.h"
#include "cFontMgr.h"
cSpriteText::cSpriteText(SDL_Renderer* renderer, cFont* f, LPCSTR txtN)
{
theRenderer = renderer;
font = f;
textureName = txtN;
// Setting standard color to white and background to transparent.
color.r = 255;
color.g = 255;
color.b = 255;
color.a = 255;
background = color;
background.a = 0;
cSprite::cSprite();
}
cSpriteText::~cSpriteText()
{
}
void cSpriteText::setFont(cFont * f)
{
font = f;
}
void cSpriteText::setColor(SDL_Color c)
{
color = c;
}
void cSpriteText::setText(LPCSTR text)
{
// Giving an error if no font has been set for this.
if (!font)
{
cout << "Could not set text " << text << ", because no font has been set for this cSpriteText.\n";
return;
}
// Delete any old texture with the texture name.
cTextureMgr::getInstance()->deleteTexture(textureName);
// Add a new texture containing the text.
cTextureMgr::getInstance()->addTexture( textureName,
font->createTextTexture(theRenderer, text, textType::solid, color, background)
);
// Setting the new texture as the texture for this sprite
cSprite::setTexture(cTextureMgr::getInstance()->getTexture(textureName));
}
void cSpriteText::setText(string str)
{
LPCSTR lpc_str = str.c_str(); // This basically just creates a pointer to the string, so I need to keep the string in memory while I use this.
setText(lpc_str);
}
void cSpriteText::setText(int x, string str)
{
str += " "+ to_string(x);
setText(str);
} | [
"corone.et.monedula@outlook.com"
] | corone.et.monedula@outlook.com |
9e8a38971523c85660f1519f5f2d96dabcc3d4a7 | 413f1cf03d1679397745373432aacfd2dc2c90c4 | /src/include/ulib/ulib.hpp | f3d3013f06c15b260095487d705ed07f3d763235 | [
"BSD-2-Clause"
] | permissive | vividos/UlibCpp | 2a0c52c2083099483292dd7da967356983763508 | 919e8442c3581de9928369619809a92095625078 | refs/heads/main | 2023-06-01T08:14:54.161523 | 2023-05-14T12:44:12 | 2023-05-14T12:44:12 | 99,147,108 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,034 | hpp | //
// ulib - a collection of useful classes
// Copyright (C) 2020 Michael Fink
//
/// \file ulib.hpp all ulib includes
//
#pragma once
#include <ulib/CommandLineParser.hpp>
#include <ulib/CrashReporter.hpp>
#include <ulib/DateTime.hpp>
#include <ulib/DynamicLibrary.hpp>
#include <ulib/Exception.hpp>
#include <ulib/FileFinder.hpp>
#include <ulib/HighResolutionTimer.hpp>
#include <ulib/IoCContainer.hpp>
#include <ulib/Observer.hpp>
#include <ulib/Path.hpp>
#include <ulib/ProgramOptions.hpp>
#include <ulib/Singleton.hpp>
#include <ulib/SystemException.hpp>
#include <ulib/Timer.hpp>
#include <ulib/TimeSpan.hpp>
#include <ulib/TimeZone.hpp>
#include <ulib/TraceOutputStopwatch.hpp>
#include <ulib/UTF8.hpp>
#include <ulib/log/AndroidLogcatAppender.hpp>
#include <ulib/log/Appender.hpp>
#include <ulib/log/ConsoleAppender.hpp>
#include <ulib/log/Layout.hpp>
#include <ulib/log/Log.hpp>
#include <ulib/log/Logger.hpp>
#include <ulib/log/LoggingEvent.hpp>
#include <ulib/log/OutputDebugStringAppender.hpp>
#include <ulib/log/PatternLayout.hpp>
#include <ulib/log/SimpleLayout.hpp>
#include <ulib/log/TextStreamAppender.hpp>
#include <ulib/stream/EndianAwareFilter.hpp>
#include <ulib/stream/FileStream.hpp>
#include <ulib/stream/IStream.hpp>
#include <ulib/stream/ITextStream.hpp>
#include <ulib/stream/MemoryReadStream.hpp>
#include <ulib/stream/MemoryStream.hpp>
#include <ulib/stream/NullStream.hpp>
#include <ulib/stream/StreamException.hpp>
#include <ulib/stream/TextFileStream.hpp>
#include <ulib/stream/TextStreamFilter.hpp>
#include <ulib/thread/Event.hpp>
#include <ulib/thread/LightweightMutex.hpp>
#include <ulib/thread/Mutex.hpp>
#include <ulib/thread/MutexLock.hpp>
#include <ulib/thread/RecursiveMutex.hpp>
#include <ulib/thread/Thread.hpp>
#include <ulib/win32/DocHostUI.hpp>
#include <ulib/win32/ErrorMessage.hpp>
#include <ulib/win32/IniFile.hpp>
#include <ulib/win32/Process.hpp>
#include <ulib/win32/Win7Taskbar.hpp>
#include <ulib/unittest/AutoCleanupFile.hpp>
#include <ulib/unittest/AutoCleanupFolder.hpp>
| [
"michael.fink@asamnet.de"
] | michael.fink@asamnet.de |
8fff3f8c0b6a88dbcd8daf247f3cba8cd70eea5d | 34fc36da5d684f908bb988cc76bf542fabca88db | /ABC/ABC187/B.cpp | 768c32d886e4afd01e72d9777a38e352baa2e9a5 | [] | no_license | take1010/MyAtCoder | 6f2dc830d75ae4c99edfb3638734854e905bc557 | d85aecee85f7ebf5232fd82599b21ff5658c4e1c | refs/heads/main | 2023-05-31T12:44:32.336673 | 2021-06-19T14:01:24 | 2021-06-19T14:01:24 | 308,521,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define MOD 1000000007
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int main(){
int n, x, y, ans=0;
int point[1001][2];
cin >> n;
rep(i, n){
cin >> point[i][0] >> point[i][1];
}
rep(i, n) rep(j, i){
if(abs(point[i][0]-point[j][0]) >= abs(point[i][1]-point[j][1]))ans++;
}
cout << ans << endl;
return 0;
}
| [
"tk10314@gmail.com"
] | tk10314@gmail.com |
b6093e38d64b295811d93da01c25ac8f13235b6f | d1c722e30ddacf77638b9d8a429c37809fbe8047 | /Chapter 08/Classes/Platform.h | be9302cb31c736b7c69f9a674883e662af33116e | [] | no_license | rraallvv/Cocos2d-x-Cookbook | ad65c324b4c769a511faa3acbebd29b68ceac890 | ac16bf3b92b042f97c717e1df45c7ac28dbde8b3 | refs/heads/master | 2021-01-10T04:25:54.623842 | 2016-02-22T15:37:52 | 2016-02-22T15:37:52 | 52,283,905 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | h | class Platform
{
public:
static const char* getAppVersion();
}; | [
""
] | |
fa059c9fe1ef1570552a0ff41318f11030aaac45 | 1cc631c61d85076c192a6946acb35d804f0620e4 | /Source/third_party/boost_1_58_0/libs/spirit/test/x3/bool.hpp | 1219994f5a92b89784bff3805bac90815ce85c03 | [
"BSL-1.0"
] | permissive | reven86/dreamfarmgdk | f9746e1c0e701f243c7dd2f14394970cc47346d9 | 4d5c26701bf05e89eef56ddd4553814aa6b0e770 | refs/heads/master | 2021-01-19T00:58:04.259208 | 2016-10-04T21:29:28 | 2016-10-04T21:33:10 | 906,953 | 2 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,479 | hpp | /*=============================================================================
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2011 Bryce Lelbach
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#if !defined(BOOST_SPIRIT_TEST_QI_BOOL)
#define BOOST_SPIRIT_TEST_QI_BOOL
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/home/x3.hpp>
#include "test.hpp"
///////////////////////////////////////////////////////////////////////////////
struct backwards_bool_policies : boost::spirit::x3::bool_policies<>
{
// we want to interpret a 'true' spelled backwards as 'false'
template <typename Iterator, typename Attribute>
static bool
parse_false(Iterator& first, Iterator const& last, Attribute& attr)
{
namespace spirit = boost::spirit;
namespace x3 = boost::spirit::x3;
if (x3::detail::string_parse("eurt", first, last, x3::unused))
{
x3::traits::move_to(false, attr); // result is false
return true;
}
return false;
}
};
///////////////////////////////////////////////////////////////////////////////
struct test_bool_type
{
test_bool_type(bool b = false) : b(b) {} // provide conversion
bool b;
};
#endif
| [
"reven86@gmail.com"
] | reven86@gmail.com |
6e1fa0c881c74de1ef696a082175f946a9e4d9be | 6896c637ef8d392d482224a3c12af64a94e6c0c9 | /codeforces/667/D.cpp | 1a6a9b16c8db7da02f75204e3879372151e46c6b | [] | no_license | pavanpvl/cp_problems | 329309af457ddd447aa816b87da8bb8d24e1f410 | 88cdb46acfc9852307afdd34c821bbc05e3b620e | refs/heads/master | 2023-06-17T05:40:57.837799 | 2021-06-23T02:41:58 | 2021-06-23T02:41:58 | 379,458,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,212 | cpp | #include<bits/stdc++.h>
#define DEBUG
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
#ifndef ONLINE_JUDGE
freopen("/home/pavan/cp_problems/a.in","r",stdin);
freopen("/home/pavan/cp_problems/a.out","w",stdout);
#endif
int t{};
cin>>t;
while(t--)
{
int carry{};
long long n,s,sum{},n1;
cin>>n>>s;
vector<int> v;
n1=n;
while(n1 != 0LL)
{
v.push_back(n1%10);
n1=n1/10;
}
for(int i=0;i<v.size();i++) sum+=v[i];
int i;
for(i=0;i<v.size();i++)
{
v[i]+=carry;
carry=0;
if(sum<=s) break;
if(v[i]==0) continue;
else
{
sum-=v[i];
sum++;
v[i]=0;
carry=1;
}
}
if(carry==1&&i==v.size()) v.push_back(1);
unsigned long long res{},temp{};
temp=n;
for(int i=v.size()-1;i>=0;i--){
res=res*10+v[i];
//cout<<v[i]<<'\n';
}
//cout<<res<<" "<<n<<"\n";
cout<<res-temp<<"\n";
}
return 0;
} | [
"pavanpvl29@gmail.com"
] | pavanpvl29@gmail.com |
8e0fd46af5b53465de23213968714aaeb3af168a | e7291328b0809d9468f6bd7047e853d2ec4d859d | /41.cpp | 9149dc4e60a24578a52c5cd40cb684c74bd64105 | [] | no_license | ash/cpp-tut | d48967a513baa11d940e698555bf2869d79b6dad | af9f925481f7e502f0788680650acbddc91074b3 | refs/heads/master | 2021-01-18T13:14:47.401874 | 2019-11-10T10:22:44 | 2019-11-10T10:22:44 | 80,743,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | #include <iostream>
using namespace std;
// pointers
int main() {
int variable = 42;
int* pointer;
pointer = &variable;
cout << pointer << endl;
int dereferenced_variable = *pointer;
cout << dereferenced_variable << endl;
int* p1;
int *p2;
*pointer = 43;
cout << *pointer << endl;
*pointer = 44;
cout << variable << endl;
}
| [
"andy@shitov.ru"
] | andy@shitov.ru |
8ef2aadccd7840f77f31a639550c0d5fb50f2810 | 531a0d4d49509b28e0ff2cbe5be33aa3f21a8a28 | /communications/serialCommunications/usb/usbport.cpp | aaf871c29e2357cd1fc716d773d69654e56cd01b | [] | no_license | sansanda/cadec | 71acf2f9c8d72a3405acf09b11a776309c5e68f1 | 1e846f6149cb2da9f546dd526d1f13b2a9529a81 | refs/heads/master | 2021-01-22T02:39:57.385273 | 2017-02-06T08:11:53 | 2017-02-06T08:11:53 | 80,943,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | cpp | #include "./communications/serialCommunications/usb/usbport.h"
USBPort::USBPort():SerialPort()
{
}
USBPort::~USBPort(){}
| [
"noreply@github.com"
] | noreply@github.com |
968b453e3ffffd98ab1624ca60726f4642f3984d | c13c58be1a46d8fbbc77e08c6232891a3607e4c1 | /Quadratic.cpp | 5b45485927cbe107673afaaa1071e9203141e4f2 | [] | no_license | devmapall7/Polynomial | 4622f550790b721d1fb6822e215ded20276c17e2 | 2370b97eb004d3355c68896b97d9ac46a4099547 | refs/heads/master | 2020-05-26T13:33:54.133384 | 2019-05-23T14:22:00 | 2019-05-23T14:22:00 | 188,249,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | cpp | #include "Quadratic.h"
Quadratic::Quadratic()
{
a = 0;
b = 0;
c = 0;
}
Quadratic::Quadratic(int xa)
{
a = xa;
b = 0;
c = 0;
}
Quadratic::Quadratic(int xa, int xb)
{
a = xa;
b = xb;
c = 0;
}
Quadratic::Quadratic(int xa, int xb, int xc)
{
a = xa;
b = xb;
c = xc;
}
int Quadratic::coefficient(unsigned int power) const
{
if (power == 0) return c;
else if (power == 1) return b;
else if (power == 2) return a;
else return 0;
}
int Quadratic::compute(int value)
{
return value*value*a + value*b + c;
}
Quadratic Quadratic::operator+(Quadratic rhs)
{
return Quadratic(a + rhs.a, b + rhs.b, c + rhs.c);
}
Quadratic Quadratic::operator-(Quadratic rhs)
{
return Quadratic(a - rhs.a, b - rhs.b, c - rhs.c);
}
bool Quadratic::operator ==(Quadratic rhs)
{
return a == rhs.a && b == rhs.b && c == rhs.c;
}
bool Quadratic::operator !=(Quadratic rhs)
{
return a != rhs.a && b != rhs.b && c != rhs.c;
}
Quadratic& Quadratic::operator+=(Quadratic rhs)
{
this->a += rhs.a;
this->b += rhs.b;
this->c += rhs.c;
return *this;
}
Quadratic& Quadratic::operator-=(Quadratic rhs)
{
this->a -= rhs.a;
this->b -= rhs.b;
this->c -= rhs.c;
return *this;
}
istream& operator>>(istream& inStream, Quadratic& quadratic)
{
int a, b, c;
inStream >> a >> b >> c;
quadratic = Quadratic(a, b, c);
return inStream;
}
ostream& operator<<(ostream& outStream, const Quadratic& quadratic)
{
outStream << quadratic.coefficient(2) << "*x^2";
if (quadratic.coefficient(1) >= 0) outStream << "+";
outStream << quadratic.coefficient(1) << "*x";
if (quadratic.coefficient(0) >= 0) outStream << "+";
outStream << quadratic.coefficient(0);
return outStream;
}
Quadratic::~Quadratic()
{
}
| [
"noreply@github.com"
] | noreply@github.com |
e51f278946190b7ee5de1e5cc25515d33f716585 | 086100538ced4358a56b7cc6b1d88b1530dd4578 | /src/Interface/include/Vocpp_Interface/Tracing.h | f654f1cf7ac4fe2745be8694d87e0f43ecb196ed | [
"BSD-3-Clause"
] | permissive | Smithangshu/Visual-Odometry-Cpp | 0461ed4ef43864c543d8f2542e71d4168855855e | fc1cb8741430f6bf16185d8416eb421422e54ad5 | refs/heads/master | 2023-04-01T18:05:38.760701 | 2021-04-14T19:08:18 | 2021-04-14T19:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | h | /* This file is part of the Visual-Odometry-Cpp project.
* It is subject to the license terms in the LICENSE file
* found in the top-level directory of this distribution.
*
* Copyright (C) 2021 Manuel Kraus
*/
#ifndef VOCPP_TRACING_H
#define VOCPP_TRACING_H
namespace VOCPP
{
namespace TraceLevel
{
enum Enum
{
TL_DEBUG = 0,
TL_INFO = 1,
TL_WARNING = 2,
TL_ERROR = 3
};
}
void SetTraceLevel(const TraceLevel::Enum& in_traceLevel);
/**
* /brief Tracer class
*/
class Tracer
{
public:
virtual ~Tracer() {}
virtual void receiveTrace(const TraceLevel::Enum& in_traceLevel, const char* const in_msg) = 0;
};
/**
* /brief Register Tracer interface implementation, use nullptr to deregister a tracer
*/
bool RegisterTracer(Tracer* in_tracerImpl);
} //namespace VOCPP
#endif /* VOCPP_TRACING_H */
| [
"noreply@github.com"
] | noreply@github.com |
73ae9039f73a1ea4b14a08c0d0ff8c15c87c704b | 5c93333a71b27cfd5e5a017f29f74b25e3dd17fd | /TopCoder/Div 2/506-250 SlimeXSlimeRancher2.cpp | ee742bebafe6b6801ca632d032660f51e6a2790e | [] | no_license | sktheboss/ProblemSolving | 7bcd7e8c2de1f4b1d251093c88754e2b1015684b | 5aff87cc10036a0e6ff255ae47e68a5d71cb7e9d | refs/heads/master | 2021-05-29T03:29:28.980054 | 2015-03-11T10:06:00 | 2015-03-11T10:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,347 | cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string.h>
#define rep(i,n) for(int i=0; i<n; i++)
#define reps(i,m,n) for(int i=m; i<n; i++)
#define repe(i,m,n) for(int i=m; i<=n; i++)
#define repi(it,stl) for(typeof((stl).begin()) it = (stl).begin(); (it)!=stl.end(); ++(it))
#define sz(a) ((int)(a).size())
#define mem(a,n) memset((a), (n), sizeof(a))
#define all(n) (n).begin(),(n).end()
#define rall(n) (n).rbegin(),(n).rend()
#define allarr(n) (n), (n)+( (sizeof (n)) / (sizeof (*n)) )
#define mp(a,b) make_pair((a),(b))
#define pii pair<int,int>
#define vi vector<int>
#define vs vector<string>
#define sstr stringstream
typedef long long ll;
using namespace std;
class SlimeXSlimeRancher2 {
public:
int train(vector <int> attributes) {
int mx = *max_element(all(attributes));
int res=0;
rep(i,sz(attributes))
res += abs(attributes[i] - mx);
return res;
}
};
// BEGIN KAWIGIEDIT TESTING
// Generated by KawigiEdit 2.1.8 (beta) modified by pivanof
#include <iostream>
#include <string>
#include <vector>
using namespace std;
bool KawigiEdit_RunTest(int testNum, vector <int> p0, bool hasAnswer, int p1) {
cout << "Test " << testNum << ": [" << "{";
for (int i = 0; int(p0.size()) > i; ++i) {
if (i > 0) {
cout << ",";
}
cout << p0[i];
}
cout << "}";
cout << "]" << endl;
SlimeXSlimeRancher2 *obj;
int answer;
obj = new SlimeXSlimeRancher2();
clock_t startTime = clock();
answer = obj->train(p0);
clock_t endTime = clock();
delete obj;
bool res;
res = true;
cout << "Time: " << double(endTime - startTime) / CLOCKS_PER_SEC << " seconds" << endl;
if (hasAnswer) {
cout << "Desired answer:" << endl;
cout << "\t" << p1 << endl;
}
cout << "Your answer:" << endl;
cout << "\t" << answer << endl;
if (hasAnswer) {
res = answer == p1;
}
if (!res) {
cout << "DOESN'T MATCH!!!!" << endl;
} else if (double(endTime - startTime) / CLOCKS_PER_SEC >= 2) {
cout << "FAIL the timeout" << endl;
res = false;
} else if (hasAnswer) {
cout << "Match :-)" << endl;
} else {
cout << "OK, but is it right?" << endl;
}
cout << "" << endl;
return res;
}
int main() {
bool all_right;
all_right = true;
vector <int> p0;
int p1;
{
// ----- test 0 -----
int t0[] = {1,2,3};
p0.assign(t0, t0 + sizeof(t0) / sizeof(t0[0]));
p1 = 3;
all_right = KawigiEdit_RunTest(0, p0, true, p1) && all_right;
// ------------------
}
{
// ----- test 1 -----
int t0[] = {5,5};
p0.assign(t0, t0 + sizeof(t0) / sizeof(t0[0]));
p1 = 0;
all_right = KawigiEdit_RunTest(1, p0, true, p1) && all_right;
// ------------------
}
{
// ----- test 2 -----
int t0[] = {900,500,100};
p0.assign(t0, t0 + sizeof(t0) / sizeof(t0[0]));
p1 = 1200;
all_right = KawigiEdit_RunTest(2, p0, true, p1) && all_right;
// ------------------
}
if (all_right) {
cout << "You're a stud (at least on the example cases)!" << endl;
} else {
cout << "Some of the test cases had errors." << endl;
}
return 0;
}
// END KAWIGIEDIT TESTING
//Powered by KawigiEdit 2.1.8 (beta) modified by pivanof!
| [
"fci.islam@gmail.com"
] | fci.islam@gmail.com |
b2dc16c09766af22766e4a05d78e03c709f69b51 | 31c35ba3d028b5375b575909b3ddaf2e2bc0ef0d | /imageProcess/ViewModel/Command/ImageDefogCommand.h | 9fcbb10a9bb713933b15bf28a98bb0ee0be4a107 | [] | no_license | Grothendieck42/2019-summer-project | ab11e2a6c5b676a89902b54e1443121c325742c2 | 383dc5428862384e29aaa1fb8ae9c732c471bfdb | refs/heads/master | 2022-02-19T03:11:32.218600 | 2019-09-02T15:27:15 | 2019-09-02T15:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | #pragma once
#include "../../Common/Command.h"
class ViewModel;
class ImageDefogCommand: public Command
{
private:
// Command负责发送指令给ViewModel
// ViewModel类似于控制器Controller的作用
ViewModel* viewModel;
public:
ImageDefogCommand(ViewModel* view_model);
~ImageDefogCommand();
void setParameter(std::any params);
bool exec();
};
| [
"1433636020@qq.com"
] | 1433636020@qq.com |
c688f0e7f9029d3d175af247ec14459d440d4234 | bc2d04a3c8cfa69e28063cfeefea2bb76e945a1a | /src/FusionEKF.h | 0538fbf65627249ba6996ec703281f1705599799 | [
"MIT"
] | permissive | ednaldogoncalves/CarND-ExtendedKalmanFilter-P5 | 6252df349ce80b18da6f930ea9211ae4dd534463 | 76f9d66ce1efad9dedd2fe67c38ed0aa8a0c4453 | refs/heads/master | 2021-08-06T09:53:23.307203 | 2020-06-06T00:48:12 | 2020-06-06T00:48:12 | 184,964,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | #ifndef SRC_FUSIONEKF_H_
#define SRC_FUSIONEKF_H_
#include <vector>
#include <string>
#include <fstream>
#include "measurement_package.h"
#include "Eigen/Dense"
#include "kalman_filter.h"
#include "tools.h"
class FusionEKF {
public:
/**
* Constructor.
*/
FusionEKF();
/**
* Destructor.
*/
virtual ~FusionEKF();
/**
* Run the whole flow of the Kalman Filter from here.
*/
void ProcessMeasurement(const MeasurementPackage &measurement_pack);
/**
* Kalman Filter update and prediction math lives in here.
*/
KalmanFilter ekf_;
private:
// check whether the tracking toolbox was initialized or not (first measurement)
bool is_initialized_;
// previous timestamp
long long previous_timestamp_;
// acceleration noise components
double noise_ax_;
double noise_ay_;
// tool object used to compute Jacobian and RMSE
Tools tools;
Eigen::MatrixXd R_laser_;
Eigen::MatrixXd R_radar_;
Eigen::MatrixXd H_laser_;
};
#endif // SRC_FUSIONEKF_H_
| [
"36837703+ednaldogoncalves@users.noreply.github.com"
] | 36837703+ednaldogoncalves@users.noreply.github.com |
7ecf241d28fc8e1f92850a4479c95f4a25606e8b | 0591b3949543c7c59e093f66f5f24b26f27deaed | /cpp/protocl/cpp/object/gmap/MsgDelLineForPoint.h | c389ba57ed1f9161588e2444c6cf1932777fdd8b | [] | no_license | joydit/GMap | 72410e6f9452873679e2cc9fb4e27748ca39d7f0 | d17b4f484a456a38d3ffbadb77199daf4af7061c | refs/heads/master | 2020-03-28T15:26:18.718150 | 2017-09-28T10:06:42 | 2017-09-28T10:06:42 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 504 | h | #ifndef MSG_DELLINEFORPOINT_H
#define MSG_DELLINEFORPOINT_H
#include "../../Buffer.h"
#include "common/Grid.h"
namespace msg
{
//给顶点添加一条边
class MsgDelLineForPoint : public msg::Buffer
{
public:
//传递数据
int64 m_pointId;
int64 m_lineId;
bool m_isOut;//边的方向是出去
//回应数据
public:
MsgDelLineForPoint();
virtual ~MsgDelLineForPoint();
bool Build( bool isResult = false );
bool Parse();
};
}
#endif //MSG_DELLINEFORPOINT_H
| [
"sunqian820125@sina.com"
] | sunqian820125@sina.com |
af85949639a86c1001f5651266ee4db4ea59144f | 9fdc1cbdda5fca9a916388e81dcaf7fe3c44c17b | /src/unit_tests/parallel/utest_PAR_matrix.cpp | 3db525c145d9b1689eb35f836d06f6da2284bd12 | [
"BSD-3-Clause"
] | permissive | StefanoZaghi1987/ChronoWheelDesigner | 473c7b4b7177532c6c0b6a7e04df03c85678c4ab | 48b0235565e6c1c08ce8b5a742bf92b0fcbd70f0 | refs/heads/master | 2021-01-22T00:29:12.900606 | 2018-01-26T15:20:01 | 2018-01-26T15:20:01 | 102,189,611 | 1 | 0 | BSD-3-Clause | 2018-01-26T15:20:02 | 2017-09-02T10:38:38 | C++ | UTF-8 | C++ | false | false | 6,213 | cpp | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of the distribution and at
// http://projectchrono.org/license-chrono.txt.
//
// =============================================================================
// Authors: Hammad Mazhar
// =============================================================================
//
// ChronoParallel unit test for MPR collision detection
// =============================================================================
#include <cstdio>
#include <vector>
#include <cmath>
#include "unit_testing.h"
#include "chrono_parallel/math/matrix.h"
using namespace chrono;
int main(int argc, char* argv[]) {
real3 n = Normalize(real3(rand(), rand(), rand()));
quaternion R1 = Normalize(quaternion(rand(), rand(), rand(), rand()));
quaternion R2 = Normalize(quaternion(rand(), rand(), rand(), rand()));
const Mat33 AOne(1, 1, 1, 1, 1, 1, 1, 1, 1);
const Mat33 A1(1, 2, 4, 5, 6, 7, 8, 9, 10);
const Mat33 A2(10, 2, 4, 7, 2, 5, 8, 3, 1);
const Mat33 A3(1, 0, 5, 2, 1, 6, 3, 4, 0);
const Mat33 A4(-24, 20, -5, 18, -15, 4, 5, -4, 1);
const Mat33 A4_T(-24, 18, 5, 20, -15, -4, -5, 4, 1);
const Mat33 A5(0.0, 6.4, 3.2, 4.0, -0.8, 3.2, 6.4, 3.2, 5.6);
ChMatrix33<real> BOne = ChMatrix33<real>(ToChMatrix33(AOne));
ChMatrix33<real> B1 = ChMatrix33<real>(ToChMatrix33(A1));
ChMatrix33<real> B2 = ChMatrix33<real>(ToChMatrix33(A2));
real3 a1(1, 2, 3);
real3 a2(6, 7, 8);
ChVector<> b1(1, 2, 3);
ChVector<> b2(6, 7, 8);
std::cout << "3x3 Matrix Tests ============\n";
std::cout << "0 Matrix\n";
WeakEqual(Mat33(0), ToMat33(ChMatrix33<real>(0)));
std::cout << "Diag Matrix\n";
WeakEqual(Mat33(1), Mat33(1, 0, 0, 0, 1, 0, 0, 0, 1));
std::cout << "Diag 3 Matrix\n";
WeakEqual(Mat33(real3(1, 2, 3)), Mat33(1, 0, 0, 0, 2, 0, 0, 0, 3));
std::cout << "Column Constructor\n";
WeakEqual(Mat33(real3(1, 2, 4), real3(5, 6, 7), real3(8, 9, 10)), A1);
std::cout << "Element Constructor\n";
WeakEqual(A4[0], -24);
WeakEqual(A4[1], 20);
WeakEqual(A4[2], -5);
WeakEqual(A4[4], 18);
WeakEqual(A4[5], -15);
WeakEqual(A4[6], 4);
WeakEqual(A4[8], 5);
WeakEqual(A4[9], -4);
WeakEqual(A4[10], 1);
std::cout << "Copy Constructor\n";
WeakEqual(Mat33(A1), A1);
std::cout << "Quaternion Constructor \n";
WeakEqual(Mat33(R1), ToMat33(ToChQuaternion(R1)), C_EPSILON * 3);
std::cout << "() Operator \n";
WeakEqual(A4(0, 0), -24);
WeakEqual(A4(1, 2), -4);
std::cout << "col Operator \n";
WeakEqual(A4.col(0), real3(-24, 20, -5));
WeakEqual(A4.col(1), real3(18, -15, 4));
WeakEqual(A4.col(2), real3(5, -4, 1));
std::cout << "row Operator \n";
WeakEqual(A4.row(0), real3(-24, 18, 5));
WeakEqual(A4.row(1), real3(20, -15, -4));
WeakEqual(A4.row(2), real3(-5, 4, 1));
{
std::cout << "= Operator\n";
Mat33 T = A1;
WeakEqual(T, A1);
}
std::cout << "Multiply Matrix\n";
WeakEqual(AOne * AOne, ToMat33(BOne * BOne));
std::cout << "Multiply Matrix\n";
WeakEqual(A1 * A2, ToMat33(B1 * B2));
std::cout << "Multiply Matrix Vector\n";
WeakEqual(A1 * a1, ToReal3(B1 * b1));
std::cout << "Add Matrix\n";
WeakEqual(A1 + A2, ToMat33(B1 + B2));
std::cout << "Subtract Matrix\n";
WeakEqual(A1 - A2, ToMat33(B1 - B2));
std::cout << "Abs Matrix\n";
WeakEqual(Abs(A4), Mat33(24, 20, 5, 18, 15, 4, 5, 4, 1));
std::cout << "Post Scale Matrix\n";
WeakEqual(A1 * 3.1, ToMat33(B1 * 3.1));
std::cout << "Pre Scale Matrix\n";
WeakEqual(3.1 * A1, ToMat33(B1 * 3.1));
{
std::cout << "Cross Matrix\n";
Mat33 cross_m1 = SkewSymmetric(n);
ChMatrix33<real> cross_m2;
cross_m2.Set_X_matrix(ToChVector(n));
WeakEqual(cross_m1, ToMat33(cross_m2));
}
{
std::cout << "Multiply T Matrix \n";
Mat33 Res1 = TransposeMult(A1, A2);
ChMatrix33<real> Res2;
Res2.MatrTMultiply(B1, B2);
WeakEqual(Res1, ToMat33(Res2), C_EPSILON * 2);
}
{
std::cout << "Multiply Matrix T\n";
ChMatrix33<real> Res2;
Res2.MatrMultiplyT(B1, B2);
WeakEqual(MultTranspose(A1, A2), ToMat33(Res2), C_EPSILON * 2);
}
{
std::cout << "Outer Product\n";
Mat33 Res1 = OuterProduct(a1, a2);
Mat33 Res2(6, 12, 18, 7, 14, 21, 8, 16, 24);
WeakEqual(Res1, Res2, C_EPSILON);
}
std::cout << "Transpose\n";
WeakEqual(Transpose(A4), A4_T, C_EPSILON);
std::cout << "Determinant\n";
WeakEqual(Determinant(A5), 45.056, C_EPSILON * 400);
std::cout << "Trace\n";
WeakEqual(Trace(A5), 4.8, C_EPSILON);
std::cout << "Adjoint\n";
WeakEqual(Adjoint(A3), A4, C_EPSILON);
std::cout << "Adjoint Transpose\n";
WeakEqual(AdjointTranspose(A4), Transpose(A3), C_EPSILON);
std::cout << "Inverse\n";
WeakEqual(Inverse(A3), A4, C_EPSILON);
std::cout << "Inverse Transpose\n";
WeakEqual(InverseTranspose(A3), Transpose(Inverse(A3)), C_EPSILON);
std::cout << "Frobenius Norm\n";
WeakEqual(Norm(A5), 12.674383614203887588, C_EPSILON);
std::cout << "Largest Column Normalized\n";
WeakEqual(LargestColumnNormalized(A4),
real3(-.75856744948921676267, 0.63213954124101396889, -.15803488531025349222), C_EPSILON);
std::cout << "Normal Equations Matrix\n";
WeakEqual(NormalEquationsMatrix(A3), Transpose(A3) * A3, C_EPSILON);
WeakEqual(NormalEquationsMatrix(A3), Mat33(26, 32, 3, 32, 41, 10, 3, 10, 25), C_EPSILON);
std::cout << "Symm2x2 Matrix Tests ============\n";
{
std::cout << "A^T*B With Symmetric Result\n";
Mat32 C1(real3(1, 2, 3), real3(3, 2, 6));
Mat32 C2(real3(2, 3, 1), real3(2, 2, 4));
SymMat22 RES = TransposeTimesWithSymmetricResult(C1, C2);
WeakEqual(RES, SymMat22(11, 18, 34));
}
return 0;
}
| [
"stefano.zaghi@gamma-spa.com"
] | stefano.zaghi@gamma-spa.com |
a6e5b142127015b1694a8f4857615b0ef578a121 | 5cb244e33744828beae35db56fec0a01b9384ece | /Competitive-Problems/plus-multiply/code.cpp | 08013734bfb43db43c2560bd22867fead1feccd3 | [] | no_license | osp709/code-hub | 409cd5c66a2142095f65c97cab8f16917e16b314 | b14b2b895c26947742fc60348148e57ac75d0cc4 | refs/heads/master | 2022-12-03T09:15:49.656733 | 2020-08-28T05:42:10 | 2020-08-28T05:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,072 | cpp | #include <bits/stdc++.h>
#define N 1e9 + 7
#define endl '\n'
using namespace std;
typedef long long ll;
ll ncr(ll n, ll r)
{
ll p = 1, k = 1;
if (n - r < r)
r = n - r;
if (r != 0)
{
while (r)
{
p *= n;
k *= r;
ll m = __gcd(p, k);
p /= m;
k /= m;
n--;
r--;
}
}
else
p = 1;
return p;
}
int main(void)
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ifstream cin("input.txt");
ofstream cout("output.txt");
ll t;
cin >> t;
while (t--)
{
ll n0 = 0, n2 = 0;
ll n;
cin >> n;
ll k;
while (n--)
{
cin >> k;
if (k == 2)
n2++;
if (k == 0)
n0++;
}
ll sum = 0;
if (n2 > 1)
{
sum += ncr(n2, 2);
}
if (n0 > 1)
{
sum += ncr(n0, 2);
}
cout << sum << endl;
}
return 0;
}
| [
"omshriprasath@gmail.com"
] | omshriprasath@gmail.com |
e0d4271d524037a0aeb723ed5c50494b83351c69 | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp | 36287ff52d8591ab93103fd18954a6e19c84f659 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | C++ | false | false | 8,653 | cpp | /*
* Copyright (C) 2010, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS 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.
*/
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "modules/webaudio/AudioBuffer.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
#include "modules/webaudio/ConvolverNode.h"
#include "modules/webaudio/ConvolverOptions.h"
#include "platform/audio/Reverb.h"
#include "wtf/PtrUtil.h"
#include <memory>
// Note about empirical tuning:
// The maximum FFT size affects reverb performance and accuracy.
// If the reverb is single-threaded and processes entirely in the real-time
// audio thread, it's important not to make this too high. In this case 8192 is
// a good value. But, the Reverb object is multi-threaded, so we want this as
// high as possible without losing too much accuracy. Very large FFTs will have
// worse phase errors. Given these constraints 32768 is a good compromise.
const size_t MaxFFTSize = 32768;
namespace blink {
ConvolverHandler::ConvolverHandler(AudioNode& node, float sampleRate)
: AudioHandler(NodeTypeConvolver, node, sampleRate), m_normalize(true) {
addInput();
addOutput(2);
// Node-specific default mixing rules.
m_channelCount = 2;
setInternalChannelCountMode(ClampedMax);
setInternalChannelInterpretation(AudioBus::Speakers);
initialize();
}
PassRefPtr<ConvolverHandler> ConvolverHandler::create(AudioNode& node,
float sampleRate) {
return adoptRef(new ConvolverHandler(node, sampleRate));
}
ConvolverHandler::~ConvolverHandler() {
uninitialize();
}
void ConvolverHandler::process(size_t framesToProcess) {
AudioBus* outputBus = output(0).bus();
DCHECK(outputBus);
// Synchronize with possible dynamic changes to the impulse response.
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
if (!isInitialized() || !m_reverb) {
outputBus->zero();
} else {
// Process using the convolution engine.
// Note that we can handle the case where nothing is connected to the
// input, in which case we'll just feed silence into the convolver.
// FIXME: If we wanted to get fancy we could try to factor in the 'tail
// time' and stop processing once the tail dies down if
// we keep getting fed silence.
m_reverb->process(input(0).bus(), outputBus, framesToProcess);
}
} else {
// Too bad - the tryLock() failed. We must be in the middle of setting a
// new impulse response.
outputBus->zero();
}
}
void ConvolverHandler::setBuffer(AudioBuffer* buffer,
ExceptionState& exceptionState) {
DCHECK(isMainThread());
if (!buffer)
return;
if (buffer->sampleRate() != context()->sampleRate()) {
exceptionState.throwDOMException(
NotSupportedError,
"The buffer sample rate of " + String::number(buffer->sampleRate()) +
" does not match the context rate of " +
String::number(context()->sampleRate()) + " Hz.");
return;
}
unsigned numberOfChannels = buffer->numberOfChannels();
size_t bufferLength = buffer->length();
// The current implementation supports only 1-, 2-, or 4-channel impulse
// responses, with the 4-channel response being interpreted as true-stereo
// (see Reverb class).
bool isChannelCountGood =
numberOfChannels == 1 || numberOfChannels == 2 || numberOfChannels == 4;
if (!isChannelCountGood) {
exceptionState.throwDOMException(
NotSupportedError, "The buffer must have 1, 2, or 4 channels, not " +
String::number(numberOfChannels));
return;
}
// Wrap the AudioBuffer by an AudioBus. It's an efficient pointer set and not
// a memcpy(). This memory is simply used in the Reverb constructor and no
// reference to it is kept for later use in that class.
RefPtr<AudioBus> bufferBus =
AudioBus::create(numberOfChannels, bufferLength, false);
for (unsigned i = 0; i < numberOfChannels; ++i)
bufferBus->setChannelMemory(i, buffer->getChannelData(i)->data(),
bufferLength);
bufferBus->setSampleRate(buffer->sampleRate());
// Create the reverb with the given impulse response.
std::unique_ptr<Reverb> reverb = wrapUnique(new Reverb(
bufferBus.get(), AudioUtilities::kRenderQuantumFrames, MaxFFTSize, 2,
context() && context()->hasRealtimeConstraint(), m_normalize));
{
// Synchronize with process().
MutexLocker locker(m_processLock);
m_reverb = std::move(reverb);
m_buffer = buffer;
}
}
AudioBuffer* ConvolverHandler::buffer() {
DCHECK(isMainThread());
return m_buffer.get();
}
double ConvolverHandler::tailTime() const {
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked())
return m_reverb
? m_reverb->impulseResponseLength() /
static_cast<double>(sampleRate())
: 0;
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.
return std::numeric_limits<double>::infinity();
}
double ConvolverHandler::latencyTime() const {
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked())
return m_reverb
? m_reverb->latencyFrames() / static_cast<double>(sampleRate())
: 0;
// Since we don't want to block the Audio Device thread, we return a large
// value instead of trying to acquire the lock.
return std::numeric_limits<double>::infinity();
}
// ----------------------------------------------------------------
ConvolverNode::ConvolverNode(BaseAudioContext& context) : AudioNode(context) {
setHandler(ConvolverHandler::create(*this, context.sampleRate()));
}
ConvolverNode* ConvolverNode::create(BaseAudioContext& context,
ExceptionState& exceptionState) {
DCHECK(isMainThread());
if (context.isContextClosed()) {
context.throwExceptionForClosedState(exceptionState);
return nullptr;
}
return new ConvolverNode(context);
}
ConvolverNode* ConvolverNode::create(BaseAudioContext* context,
const ConvolverOptions& options,
ExceptionState& exceptionState) {
ConvolverNode* node = create(*context, exceptionState);
if (!node)
return nullptr;
node->handleChannelOptions(options, exceptionState);
// It is important to set normalize first because setting the buffer will
// examing the normalize attribute to see if normalization needs to be done.
node->setNormalize(!options.disableNormalization());
if (options.hasBuffer())
node->setBuffer(options.buffer(), exceptionState);
return node;
}
ConvolverHandler& ConvolverNode::convolverHandler() const {
return static_cast<ConvolverHandler&>(handler());
}
AudioBuffer* ConvolverNode::buffer() const {
return convolverHandler().buffer();
}
void ConvolverNode::setBuffer(AudioBuffer* newBuffer,
ExceptionState& exceptionState) {
convolverHandler().setBuffer(newBuffer, exceptionState);
}
bool ConvolverNode::normalize() const {
return convolverHandler().normalize();
}
void ConvolverNode::setNormalize(bool normalize) {
convolverHandler().setNormalize(normalize);
}
} // namespace blink
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
a303a0e51fa8f0e02a17024298a7e6aca5e68062 | 54590b39d4710d32bc129e0e9bf59fd5f56ac32d | /SDK/SoT_BP_Prompt_MaidenVoyage_RowboatTutorial_functions.cpp | 2efeb3f0c1f8953e0e578f430cea1729420a6e3a | [] | no_license | DDan1l232/SoT-SDK | bb3bb85fa813963655288d6fa2747d316ce57af8 | cda078f3b8bca304759f05cc71ca55d31878e8e5 | refs/heads/master | 2023-03-17T13:16:11.076040 | 2020-09-09T15:19:09 | 2020-09-09T15:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,823 | cpp | // Sea of Thieves (2.0.17) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SoT_BP_Prompt_MaidenVoyage_RowboatTutorial_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnStrokeEndedFunc
// (Public, BlueprintCallable, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnStrokeEndedFunc()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnStrokeEndedFunc"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnLeaveRowboatFunc
// (Public, BlueprintCallable, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnLeaveRowboatFunc()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnLeaveRowboatFunc"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnSitInRowboatFunc
// (Public, HasOutParms, BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FEventPlayerTakenControlOfControllable EventPlayerTakenControlOfControllable (ConstParm, Parm, OutParm, ReferenceParm)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnSitInRowboatFunc(const struct FEventPlayerTakenControlOfControllable& EventPlayerTakenControlOfControllable)
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnSitInRowboatFunc"));
struct
{
struct FEventPlayerTakenControlOfControllable EventPlayerTakenControlOfControllable;
} params;
params.EventPlayerTakenControlOfControllable = EventPlayerTakenControlOfControllable;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.ResetState
// (Public, BlueprintCallable, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::ResetState()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.ResetState"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.PostInitialize
// (Public, BlueprintCallable, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::PostInitialize()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.PostInitialize"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.Evaluate
// (Public, BlueprintCallable, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::Evaluate()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.Evaluate"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.UnregisterOtherEvents_Implementable
// (Event, Public, BlueprintEvent)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::UnregisterOtherEvents_Implementable()
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.UnregisterOtherEvents_Implementable"));
struct
{
} params;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnSitInRowboat
// (BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FEventPlayerTakenControlOfControllable Event (Parm)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnSitInRowboat(const struct FEventPlayerTakenControlOfControllable& Event)
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnSitInRowboat"));
struct
{
struct FEventPlayerTakenControlOfControllable Event;
} params;
params.Event = Event;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnLeaveRowboat
// (BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FEventPlayerReliquishedControlOfControllable Event (Parm)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnLeaveRowboat(const struct FEventPlayerReliquishedControlOfControllable& Event)
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnLeaveRowboat"));
struct
{
struct FEventPlayerReliquishedControlOfControllable Event;
} params;
params.Event = Event;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnStrokeEnded
// (BlueprintCallable, BlueprintEvent)
// Parameters:
// struct FEventOarStrokeEnded Event (Parm, ZeroConstructor, IsPlainOldData)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::OnStrokeEnded(const struct FEventOarStrokeEnded& Event)
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.OnStrokeEnded"));
struct
{
struct FEventOarStrokeEnded Event;
} params;
params.Event = Event;
UObject::ProcessEvent(fn, ¶ms);
}
// Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.ExecuteUbergraph_BP_Prompt_MaidenVoyage_RowboatTutorial
// (HasDefaults)
// Parameters:
// int EntryPoint (Parm, ZeroConstructor, IsPlainOldData)
void UBP_Prompt_MaidenVoyage_RowboatTutorial_C::ExecuteUbergraph_BP_Prompt_MaidenVoyage_RowboatTutorial(int EntryPoint)
{
static auto fn = UObject::FindObject<UFunction>(_xor_("Function BP_Prompt_MaidenVoyage_RowboatTutorial.BP_Prompt_MaidenVoyage_RowboatTutorial_C.ExecuteUbergraph_BP_Prompt_MaidenVoyage_RowboatTutorial"));
struct
{
int EntryPoint;
} params;
params.EntryPoint = EntryPoint;
UObject::ProcessEvent(fn, ¶ms);
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"saerko19@gmail.com"
] | saerko19@gmail.com |
ea323d8d739b018e3812f62ae8f9165777edcd18 | 844099964723b1378e22c855f183e81cc300c642 | /src/main.cpp | beb14d9cd984fde7ea9c71011301204a7afe4958 | [] | no_license | CherylWang/KinectFusionForFaces | ca0182b96656dfd995924611e18ece0fedefffad | c7d9e719963896fd476d592c06aff9ab47a1e3ab | refs/heads/master | 2021-01-18T04:57:44.032436 | 2014-07-11T01:31:52 | 2014-07-11T01:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,937 | cpp |
#include <iostream>
#include <pcl/console/parse.h>
#include <GL/glew.h>
#include <GL/glut.h>
#include "pcl/gpu/containers/initialization.hpp"
#include "Reconstruction.h"
#include "Viewers/MyGLImageViewer.h"
#include "Viewers/MyGLCloudViewer.h"
#include "Viewers/shader.h"
#include "Viewers/ModelViewParams.h"
#include "Mediators/MeshGenerationMediator.h"
#include "Mediators/ColoredReconstructionMediator.h"
#include "Mediators/HeadPoseEstimationMediator.h"
#include "Capture/AbstractCapture.h"
#include "Capture/Kinect.h"
#include "Capture/ONIGrabber.h"
#include "Image.h"
#include "FaceDetection.h"
using namespace std;
using namespace pcl;
using namespace pcl::gpu;
using namespace Eigen;
//Window's size
int windowWidth = 1280;
int windowHeight = 960;
//Our Objects
Image *imageCollection;
AbstractCapture *capture;
Reconstruction *reconstruction;
MyGLImageViewer *myGLImageViewer;
MyGLCloudViewer *myGLCloudViewer;
ColoredReconstructionMediator *coloredReconstructionMediator;
HeadPoseEstimationMediator *headPoseEstimationMediator;
FaceDetection *faceDetector;
ModelViewParams modelViewParams;
GLuint texVBO[25];
GLuint spt[2];
GLuint meshVBO[4];
enum
{
REAL_DEPTH_FROM_DEPTHMAP_BO = 0,
REAL_RGB_BO = 1,
RAYCAST_BO = 2,
AR_FROM_VOLUME_KINECTFUSION_BO = 3,
VIRTUAL_DEPTH_BO = 4,
VIRTUAL_RGB_BO = 5,
REAL_DEPTH_FROM_DEPTHBUFFER_BO = 6,
AR_FROM_VOLUME_RENDERING_BO = 7,
REAL_RGB_FROM_FBO = 8,
MIN_MAX_OCTREE_BO = 9,
TRANSFER_FUNCTION_BO = 10,
NOISE_BO = 11,
FRONT_QUAD_RGB_FBO = 12,
FRONT_QUAD_DEPTH_FBO = 13,
BACK_QUAD_RGB_FBO = 14,
BACK_QUAD_DEPTH_FBO = 15,
CURVATURE_MAP_FBO = 16,
CONTOURS_FBO = 17,
BACKGROUND_SCENE_FBO = 18,
SUBTRACTION_MASK_FBO = 19,
SUBTRACTION_MASK_DEPTH_FBO = 20
};
int indices[640 * 480 * 6];
float pointCloud[640 * 480 * 3];
float normalVector[640 * 480 * 3];
float depthData[640 * 480];
//AR (General attributes)
int vel = 4;
float scale[3];
float translationVector[3];
float rotationAngles[3];
bool translationOn = false;
bool rotationOn = false;
bool scaleOn = false;
bool integrateColors = false;
bool isHeadPoseEstimationEnabled = false;
bool hasFaceDetection = false;
bool faceDetected = false;
bool shader=true;
bool showCloud = false;
bool showRaycasting = true;
bool showDepthMap = true;
bool showRGBMap = true;
bool showCurvatureMap = false;
bool showContoursMap = false;
//
// Global handles for the currently active program object, with its two shader objects
//
GLuint ProgramObject = 0;
GLuint VertexShaderObject = 0;
GLuint FragmentShaderObject = 0;
GLuint shaderVS, shaderFS, shaderProg[10]; // handles to objects
GLint linked;
int w1 = 1, w2 = 0, w3 = 120;
int workAround = 0;
// The number of frames
int frameCount = 0;
float fps = 0;
int currentTime = 0, previousTime = 0;
std::vector<unsigned short> sourceDepthData;
unsigned char *clippedImage;
IplImage *image;
IplImage *grayImage;
void calculateFPS() {
frameCount++;
currentTime = glutGet(GLUT_ELAPSED_TIME);
int timeInterval = currentTime - previousTime;
if(timeInterval > 1000) {
fps = frameCount / (timeInterval / 1000.0f);
previousTime = currentTime;
frameCount = 0;
std::cout << "FPS: " << fps << std::endl;
}
}
void printHelp() {
std::cout << "Help " << std::endl;
std::cout << "--cloud: Show Cloud " << std::endl;
std::cout << "--mesh: Show Mesh extracted from MC " << std::endl;
std::cout << "--color: Enable color integration " << std::endl;
std::cout << "--hpefile config.txt: Head Pose Estimation Config File " << std::endl;
std::cout << "--threshold value: Depth Threshold for depth map truncation " << std::endl;
std::cout << "--face cascades.txt: Enable face detection " << std::endl;
std::cout << "On the fly.. " << std::endl;
std::cout << "Press 'h' to enable head pose tracking " << std::endl;
std::cout << "Press 'p' to stop the head pose tracking " << std::endl;
std::cout << "Press 'c' to continue the head pose tracking " << std::endl;
std::cout << "Press 'a' to enable AR application " << std::endl;
}
void saveModel()
{
int op;
std::cout << "Saving Model..." << std::endl;
std::cout << "Do you want to save a point cloud (.pcd) or a mesh (.ply)? (0: point cloud; 1: mesh)" << std::endl;
std::cin >> op;
if(op == 0) {
if(integrateColors)
coloredReconstructionMediator->savePointCloud(reconstruction->getTsdfVolume());
else
reconstruction->savePointCloud();
} else {
MeshGenerationMediator mgm;
mgm.saveMesh(reconstruction->getTsdfVolume());
}
}
void loadArguments(int argc, char **argv, Reconstruction *reconstruction)
{
//Default arguments
char fileName[100];
char hpeConfigFileName[100];
char cascadeFileName[100];
char aux[5];
int begin = 0;
int end = 0;
int threshold = 5000;
//AR Configuration
translationVector[0] = 0;
translationVector[1] = 0;
translationVector[2] = 0;
rotationAngles[0] = 0;
rotationAngles[1] = 0;
rotationAngles[2] = 0;
scale[0] = 1;
scale[1] = 1;
scale[2] = 1;
if(pcl::console::find_argument(argc, argv, "--cloud") >= 0) {
showCloud = true;
}
if(pcl::console::find_argument(argc, argv, "--color") >= 0) {
integrateColors = true;
coloredReconstructionMediator = new ColoredReconstructionMediator(reconstruction->getVolumeSize());
}
if(pcl::console::find_argument(argc, argv, "-h") >= 0) {
printHelp();
}
if(pcl::console::parse(argc, argv, "--threshold", aux) >= 0) {
threshold = atoi(aux);
}
if(pcl::console::parse(argc, argv, "--hpefile", hpeConfigFileName) >= 0) {
isHeadPoseEstimationEnabled = true;
headPoseEstimationMediator = new HeadPoseEstimationMediator(hpeConfigFileName);
reconstruction->setHeadPoseEstimationMediatorPointer((void*)headPoseEstimationMediator);
}
if(pcl::console::parse(argc, argv, "--face", cascadeFileName) >= 0) {
hasFaceDetection = true;
faceDetector = new FaceDetection(cascadeFileName);
}
//Initialize reconstruction with arguments
reconstruction->setThreshold(threshold);
}
void loadARDepthDataBasedOnDepthMaps()
{
pcl::console::TicToc clock2;
glPixelTransferf(GL_DEPTH_SCALE, 1.0/reconstruction->getThreshold());
for(int p = 0; p < 640 * 480; p++)
depthData[p] = (float)imageCollection->getDepthMap().data[p];///(float)reconstruction->getThreshold();
myGLImageViewer->loadDepthComponentTexture(depthData, texVBO, REAL_DEPTH_FROM_DEPTHBUFFER_BO, windowWidth, windowHeight);
reconstruction->getGlobalPreviousPointCloud()->getHostPointCloud(pointCloud);
Matrix3frm rotInverse = reconstruction->getCurrentRotation().inverse();
for(int point = 0; point < (640 * 480); point++) {
if(pointCloud[point * 3 + 2] > 0 && pointCloud[point * 3 + 2] == pointCloud[point * 3 + 2]) {
pointCloud[point * 3 + 0] -= reconstruction->getCurrentTranslation()[0];
pointCloud[point * 3 + 1] -= reconstruction->getCurrentTranslation()[1];
pointCloud[point * 3 + 2] -= reconstruction->getCurrentTranslation()[2];
pointCloud[point * 3 + 2] = rotInverse(2, 0) * pointCloud[point * 3 + 0] + rotInverse(2, 1) * pointCloud[point * 3 + 1] +
rotInverse(2, 2) * pointCloud[point * 3 + 2];
}
}
for(int p = 0; p < 640 * 480; p++)
depthData[p] = pointCloud[p * 3 + 2];///(float)reconstruction->getThreshold();
myGLImageViewer->loadDepthComponentTexture(depthData, texVBO, VIRTUAL_DEPTH_BO, windowWidth, windowHeight);
glPixelTransferf(GL_DEPTH_SCALE, 1);
}
void reshape(int w, int h)
{
windowWidth = w;
windowHeight = h;
glViewport( 0, 0, windowWidth, windowHeight );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluOrtho2D( 0, windowWidth, 0, windowHeight );
glMatrixMode( GL_MODELVIEW );
}
void displayContoursData()
{
glViewport(windowWidth/2, windowHeight/2, windowWidth/2, windowHeight/2);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
myGLImageViewer->setProgram(shaderProg[7]);
myGLImageViewer->drawRGBTextureOnShader(texVBO, SUBTRACTION_MASK_FBO, windowWidth, windowHeight);
}
void displayDepthData()
{
glViewport(0, windowHeight/2, windowWidth/2, windowHeight/2);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
myGLImageViewer->loadDepthTexture((unsigned short*)imageCollection->getDepthMap().data, texVBO, REAL_DEPTH_FROM_DEPTHMAP_BO,
reconstruction->getThreshold(), capture->getImageWidth(), capture->getImageHeight());
myGLImageViewer->drawRGBTexture(texVBO, REAL_DEPTH_FROM_DEPTHMAP_BO, windowWidth, windowHeight);
}
void displayRGBData()
{
glViewport(windowWidth/2, windowHeight/2, windowWidth/2, windowHeight/2);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
myGLImageViewer->loadRGBTexture((const unsigned char*)imageCollection->getRGBMap().data, texVBO, REAL_RGB_BO, capture->getImageWidth(),
capture->getImageHeight());
myGLImageViewer->drawRGBTexture(texVBO, REAL_RGB_BO, windowWidth, windowHeight);
}
void displayRaycastedData()
{
glViewport(windowWidth/2, 0, windowWidth/2, windowHeight/2);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
myGLImageViewer->loadRGBTexture(imageCollection->getRaycastImage(reconstruction->getVolumeSize(),
reconstruction->getGlobalPreviousPointCloud()), texVBO, RAYCAST_BO, capture->getImageWidth(), capture->getImageHeight());
myGLImageViewer->drawRGBTexture(texVBO, RAYCAST_BO, windowWidth, windowHeight);
}
void displayCloud(bool globalCoordinates = true)
{
if(globalCoordinates) {
reconstruction->getGlobalPreviousPointCloud()->getHostPointCloud(pointCloud);
reconstruction->getGlobalPreviousPointCloud()->getHostNormalVector(normalVector, 1);
} else {
reconstruction->getCurrentPointCloud()->getHostPointCloud(pointCloud);
reconstruction->getCurrentPointCloud()->getHostNormalVector(normalVector, -1);
}
myGLCloudViewer->loadIndices(indices, pointCloud);
myGLCloudViewer->loadVBOs(meshVBO, indices, pointCloud, normalVector);
//glViewport(0, 0, windowWidth/2, windowHeight/2);
glViewport(windowWidth/2, 0, windowWidth/2, windowHeight/2);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
myGLCloudViewer->configureAmbient(reconstruction->getThreshold());
if(reconstruction->getGlobalTime() > 1)
myGLCloudViewer->drawMesh(meshVBO, reconstruction->getCurrentTranslation(), reconstruction->getCurrentRotation(), reconstruction->getInitialTranslation(),
rotationAngles, shader, globalCoordinates);
if(workAround == 1) {
myGLCloudViewer->drawMesh(meshVBO, Eigen::Vector3f::Zero(), Eigen::Matrix3f::Identity(), reconstruction->getInitialTranslation(), rotationAngles, shader,
globalCoordinates);
workAround = 2;
}
}
void display()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if(workAround == 1)
displayCloud();
if(showDepthMap)
displayDepthData();
if(showRGBMap)
displayRGBData();
if(showRaycasting && reconstruction->hasImage())
displayRaycastedData();
if(showCloud && reconstruction->hasImage())
displayCloud();
glutSwapBuffers();
glutPostRedisplay();
}
void idle()
{
bool preGlobalTimeGreaterThanZero;
if(capture->grabFrame()) {
imageCollection->load(capture->getRGBImage(), capture->getDepthImage());
if(hasFaceDetection) {
if(faceDetected) {
reconstruction->stopTracking(false);
faceDetector->segmentFace(imageCollection);
} else {
reconstruction->reset();
reconstruction->stopTracking(true);
faceDetected = faceDetector->run(imageCollection);
if(faceDetected)
faceDetector->segmentFace(imageCollection);
}
//to check if the reconstruction was reseted
if(reconstruction->getGlobalTime() > 0) preGlobalTimeGreaterThanZero = true;
else preGlobalTimeGreaterThanZero = false;
}
imageCollection->applyBilateralFilter();
imageCollection->applyDepthTruncation(reconstruction->getThreshold());
imageCollection->applyPyrDown();
imageCollection->convertToPointCloud(reconstruction->getCurrentPointCloud());
imageCollection->applyDepthTruncation(imageCollection->getDepthDevice(), reconstruction->getThreshold());
pcl::device::sync ();
reconstruction->run(imageCollection);
//if the reconstruction was reseted, the face is no more detected
if(hasFaceDetection)
if(reconstruction->getGlobalTime() == 0 && preGlobalTimeGreaterThanZero)
faceDetected = false;
if(integrateColors)
coloredReconstructionMediator->updateColorVolume(imageCollection->getRgbDevice(), reconstruction);
if(workAround != 2)
workAround = 1;
}
calculateFPS();
}
void keyboard(unsigned char key, int x, int y)
{
switch(key) {
case 27:
exit(0);
break;
case (int)'i' : case (int)'I':
std::cout << "Head Pose Tracking Activated..." << std::endl;
reconstruction->enableOnlyTracking();
hasFaceDetection = false;
break;
case (int)'p' : case (int)'P':
std::cout << "Pause..." << std::endl;
reconstruction->stopTracking(true);
if(isHeadPoseEstimationEnabled)
headPoseEstimationMediator->stopTracking(true, (unsigned short*)imageCollection->getDepthMap().data, reconstruction);
break;
case (int)'c' : case (int)'C':
std::cout << "Continue..." << std::endl;
reconstruction->stopTracking(false);
if(isHeadPoseEstimationEnabled)
headPoseEstimationMediator->stopTracking(false, (unsigned short*)imageCollection->getDepthMap().data, reconstruction);
break;
case (int)'r' : case (int)'R':
reconstruction->reset();
faceDetected = false;
break;
case (int)'u':
shader = !shader;
break;
case (int)'h':
std::cout << rotationAngles[0] << " " << rotationAngles[1] << " " << rotationAngles[2] << std::endl;
break;
default:
break;
}
glutPostRedisplay();
}
void specialKeyboard(int key, int x, int y)
{
switch (key)
{
case GLUT_KEY_UP:
if(translationOn)
translationVector[1] += vel;
if(rotationOn)
rotationAngles[1] += vel;
break;
case GLUT_KEY_DOWN:
if(translationOn)
translationVector[1] -= vel;
if(rotationOn)
rotationAngles[1] -= vel;
break;
case GLUT_KEY_LEFT:
if(translationOn)
translationVector[0] -= vel;
if(rotationOn)
rotationAngles[0] -= vel;
break;
case GLUT_KEY_RIGHT:
if(translationOn)
translationVector[0] += vel;
if(rotationOn)
rotationAngles[0] += vel;
break;
case GLUT_KEY_PAGE_UP:
if(translationOn)
translationVector[2] += vel;
if(rotationOn)
rotationAngles[2] += vel;
break;
case GLUT_KEY_PAGE_DOWN:
if(translationOn)
translationVector[2] -= vel;
if(rotationOn)
rotationAngles[2] -= vel;
break;
default:
break;
}
glutPostRedisplay();
}
void mainMenu(int id)
{
}
void resetBooleans()
{
translationOn = false;
rotationOn = false;
scaleOn = false;
}
void transformationMenu(int id)
{
resetBooleans();
switch(id)
{
case 0:
translationOn = true;
break;
case 1:
rotationOn = true;
break;
case 2:
scaleOn = true;
break;
}
}
void otherFunctionsMenu(int id)
{
switch(id)
{
case 0:
saveModel();
break;
case 1:
showCurvatureMap = !showCurvatureMap;
if(showCurvatureMap) showDepthMap = false;
else showDepthMap = true;
break;
case 2:
showContoursMap = !showContoursMap;
break;
}
}
void init()
{
//initialize some conditions
glClearColor( 0.0f, 0.0f, 0.0f, 0.0 );
glShadeModel(GL_SMOOTH);
glPixelStorei( GL_UNPACK_ALIGNMENT, 1);
//buffer objects
if(texVBO[0] == 0)
glGenTextures(25, texVBO);
if(meshVBO[0] == 0)
glGenBuffers(4, meshVBO);
myGLImageViewer = new MyGLImageViewer();
myGLCloudViewer = new MyGLCloudViewer();
myGLCloudViewer->setEyePosition(1, 0, 120);
myGLImageViewer->loadDepthComponentTexture(NULL, texVBO, VIRTUAL_DEPTH_BO, windowWidth, windowHeight);
myGLImageViewer->loadDepthComponentTexture(NULL, texVBO, REAL_DEPTH_FROM_DEPTHBUFFER_BO, windowWidth, windowHeight);
myGLImageViewer->loadDepthComponentTexture(NULL, texVBO, FRONT_QUAD_DEPTH_FBO, windowWidth, windowHeight);
myGLImageViewer->loadDepthComponentTexture(NULL, texVBO, BACK_QUAD_DEPTH_FBO, windowWidth, windowHeight);
myGLImageViewer->loadDepthComponentTexture(NULL, texVBO, SUBTRACTION_MASK_DEPTH_FBO, windowWidth, windowHeight);
myGLImageViewer->loadRGBTexture(NULL, texVBO, VIRTUAL_RGB_BO, windowWidth/2, windowHeight/2);
myGLImageViewer->loadRGBTexture(NULL, texVBO, REAL_RGB_FROM_FBO, windowWidth/2, windowHeight/2);
myGLImageViewer->loadRGBTexture(NULL, texVBO, FRONT_QUAD_RGB_FBO, windowWidth/2, windowHeight/2);
myGLImageViewer->loadRGBTexture(NULL, texVBO, BACK_QUAD_RGB_FBO, windowWidth/2, windowHeight/2);
myGLImageViewer->loadRGBTexture(NULL, texVBO, SUBTRACTION_MASK_FBO, windowWidth/2, windowHeight/2);
clippedImage = (unsigned char*)malloc(640 * 480 * sizeof(unsigned char));
image = cvCreateImage(cvSize(windowWidth/2, windowHeight/2), IPL_DEPTH_8U, 3);
grayImage = cvCreateImage(cvSize(windowWidth/2, windowHeight/2), IPL_DEPTH_8U, 1);
}
void releaseObjects() {
delete capture;
delete imageCollection;
delete reconstruction;
delete myGLImageViewer;
delete myGLCloudViewer;
if(integrateColors)
delete coloredReconstructionMediator;
if(isHeadPoseEstimationEnabled)
delete headPoseEstimationMediator;
if(hasFaceDetection)
delete faceDetector;
delete [] clippedImage;
cvReleaseImage(&image);
cvReleaseImage(&grayImage);
}
int main(int argc, char **argv) {
pcl::gpu::setDevice (0);
pcl::gpu::printShortCudaDeviceInfo (0);
//This argument is an exception. It is loaded first because it is necessary to instantiate the Reconstruction object
Eigen::Vector3i volumeSize(3000, 3000, 3000); //mm
if(pcl::console::parse_3x_arguments(argc, argv, "--volumesize", volumeSize(0), volumeSize(1), volumeSize(2)) >= 0) {
}
try
{
//Initialize some objects
reconstruction = new Reconstruction(volumeSize);
//capture = new ONIGrabber("teste.oni");
capture = new Kinect();
imageCollection = new Image(640, 480);
imageCollection->setDepthIntrinsics(capture->getFocalLength(), capture->getFocalLength());
imageCollection->setTrancationDistance(volumeSize);
reconstruction->setIntrinsics(imageCollection->getIntrinsics());
reconstruction->setTrancationDistance(imageCollection->getTrancationDistance());
loadArguments(argc, argv, reconstruction);
//Initialize the GL window
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | GLUT_ALPHA);
glutInitWindowSize(windowWidth, windowHeight);
glutInit(&argc, argv);
glutCreateWindow("My KinFu");
//Initialize glew
GLenum err = glewInit();
if (GLEW_OK != err) {
std::cout << "Error: " << glewGetErrorString(err) << std::endl;
exit(0);
}
init();
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutIdleFunc(idle);
glutKeyboardFunc(keyboard);
glutSpecialFunc(specialKeyboard);
initShader("Shaders/Phong", 0);
initShader("Shaders/Occlusion", 1);
myGLCloudViewer->setProgram(shaderProg[0]);
myGLImageViewer->setProgram(shaderProg[1]);
glutMainLoop();
}
catch (const std::bad_alloc& /*e*/)
{
cout << "Bad alloc" << endl;
}
catch (const std::exception& /*e*/)
{
cout << "Exception" << endl;
}
releaseObjects();
return 0;
}
| [
"marciocfmacedo@hotmail.com"
] | marciocfmacedo@hotmail.com |
ae71c49bcdf1c607df6b0d07c8f9174e041dda38 | 149d8ef27c6fa0a6d27e00e1bd923fead90c7d7b | /third_party/libosmium/include/osmium/tags/matcher.hpp | 4b1978b2da75e801ff909d7e28d82ea5052ea944 | [
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vins13pattar/osrm-backend | 19767feb9c509a9b6983abff25e2bae9362a08b1 | 14082d0e0054e7d39234ca5910c86721b927c6e8 | refs/heads/master | 2021-09-09T05:50:27.305438 | 2018-03-13T16:30:34 | 2018-03-14T02:16:13 | 125,166,697 | 1 | 0 | BSD-2-Clause | 2018-03-14T06:36:26 | 2018-03-14T06:36:26 | null | UTF-8 | C++ | false | false | 4,707 | hpp | #ifndef OSMIUM_TAGS_MATCHER_HPP
#define OSMIUM_TAGS_MATCHER_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2013-2017 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include <type_traits>
#include <utility>
#include <osmium/osm/tag.hpp>
#include <osmium/util/string_matcher.hpp>
namespace osmium {
/**
* Compares a tags key (and value) against the specified StringMatchers.
*/
class TagMatcher {
osmium::StringMatcher m_key_matcher;
osmium::StringMatcher m_value_matcher;
bool m_result;
public:
/**
* Create a default TagMatcher that matches no tags.
*/
TagMatcher() :
m_key_matcher(osmium::StringMatcher::always_false{}),
m_value_matcher(osmium::StringMatcher::always_false{}),
m_result(true) {
}
/**
* Create a TagMatcher matching the key against the specified
* StringMatcher.
*
* @param key_matcher StringMatcher for matching the key.
*/
template <typename TKey, typename std::enable_if<
std::is_convertible<TKey, osmium::StringMatcher>::value, int>::type = 0>
TagMatcher(TKey&& key_matcher) :
m_key_matcher(std::forward<TKey>(key_matcher)),
m_value_matcher(osmium::StringMatcher::always_true{}),
m_result(true) {
}
/**
* Create a TagMatcher matching the key and value against the specified
* StringMatchers.
*
* @param key_matcher StringMatcher for matching the key.
* @param value_matcher StringMatcher for matching the value.
* @param invert If set to true, invert the result of the value_matcher.
*/
template <typename TKey, typename TValue,
typename std::enable_if<std::is_convertible<TKey, osmium::StringMatcher>::value, int>::type = 0,
typename std::enable_if<std::is_convertible<TValue, osmium::StringMatcher>::value, int>::type = 0>
TagMatcher(TKey&& key_matcher, TValue&& value_matcher, bool invert = false) :
m_key_matcher(std::forward<TKey>(key_matcher)),
m_value_matcher(std::forward<TValue>(value_matcher)),
m_result(!invert) {
}
/**
* Match against the specified key and value.
*
* @returns true if the tag matches.
*/
bool operator()(const char* key, const char* value) const noexcept {
return m_key_matcher(key) &&
(m_value_matcher(value) == m_result);
}
/**
* Match against the specified tag.
*
* @returns true if the tag matches.
*/
bool operator()(const osmium::Tag& tag) const noexcept {
return operator()(tag.key(), tag.value());
}
/**
* Match against the specified tags.
*
* @returns true if any of the tags in the TagList matches.
*/
bool operator()(const osmium::TagList& tags) const noexcept {
for (const auto& tag : tags) {
if (operator()(tag)) {
return true;
}
}
return false;
}
}; // class TagMatcher
} // namespace osmium
#endif // OSMIUM_TAGS_MATCHER_HPP
| [
"patrick.niklaus@student.kit.edu"
] | patrick.niklaus@student.kit.edu |
40a2ffc8113653d17a45a3cdf0c03d21539921ef | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /dms-enterprise/src/model/CreateUploadFileJobRequest.cc | 87a6dfd9dfd23f24be669f8af15582f4942b1687 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 2,263 | cc | /*
* Copyright 2009-2017 Alibaba Cloud 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 <alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateUploadFileJobRequest;
CreateUploadFileJobRequest::CreateUploadFileJobRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadFileJob") {
setMethod(HttpRequest::Method::Post);
}
CreateUploadFileJobRequest::~CreateUploadFileJobRequest() {}
long CreateUploadFileJobRequest::getTid() const {
return tid_;
}
void CreateUploadFileJobRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string CreateUploadFileJobRequest::getUploadURL() const {
return uploadURL_;
}
void CreateUploadFileJobRequest::setUploadURL(const std::string &uploadURL) {
uploadURL_ = uploadURL;
setParameter(std::string("UploadURL"), uploadURL);
}
std::string CreateUploadFileJobRequest::getUploadType() const {
return uploadType_;
}
void CreateUploadFileJobRequest::setUploadType(const std::string &uploadType) {
uploadType_ = uploadType;
setParameter(std::string("UploadType"), uploadType);
}
std::string CreateUploadFileJobRequest::getFileSource() const {
return fileSource_;
}
void CreateUploadFileJobRequest::setFileSource(const std::string &fileSource) {
fileSource_ = fileSource;
setParameter(std::string("FileSource"), fileSource);
}
std::string CreateUploadFileJobRequest::getFileName() const {
return fileName_;
}
void CreateUploadFileJobRequest::setFileName(const std::string &fileName) {
fileName_ = fileName;
setParameter(std::string("FileName"), fileName);
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
944936afcf7a97d274408e2a312efec81bac4e22 | 829ce8acd2820c3b9d3da152338c8b3eb981e47f | /postprocess/postprocess.cpp | cacbc06ac1ce48bc44f50b821715e51daf708bad | [] | no_license | d-e-e-p/snappy | eccace013b816b790ebe3e7c9f396c03de3ac4ad | cab23c57703e1b2827eb77021da02aeca35ee0b2 | refs/heads/master | 2023-09-03T13:28:50.033864 | 2021-10-09T02:00:58 | 2021-10-09T02:00:58 | 242,482,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,305 | cpp | /*
* postprocess raw/jpg files
*
* (c) 2020 tensorfield ag
*
* convert dir of raw images to processed jpg
*
*/
#include "postprocess.hpp"
#include "Imagedata.hpp"
// global vars -- but in a struct so that makes it ok :-)
struct Options {
string convert = "raw2dng";
bool overwrite = false;
bool verbose = false;
bool sample = false;
bool wb_and_cc = false;
int threads = 4;
} opt;
struct Globals {
// file too small to be valid so ok to overwrite
int smallsize = 1000;
// options for source and destination extensions
string src_dir_ext = "raw";
string dst_dir_ext = "raw";
string json_dir_ext = "json";
string src_file_ext = "dng";
string dst_file_ext = "dng";
string json_file_ext = "json";
//
string dateStamp;
} g;
struct FilePaths {
vector <fs::path> folder_src_list ;
// dng header and profile files relative to exe
fs::path dng_headerfile = "<profiledir>/sample_dng_header.bin";
fs::path dt_stylefile = "<profiledir>/darktable.xml";
fs::path rt_stylefile = "<profiledir>/rawtherapee.pp3";
} fp;
void processArgs(int argc, char** argv) {
const char* const short_opts = "-:";
static struct option long_opts[] = {
{"convert", required_argument, 0, 42 },
{"overwrite", no_argument, 0, 43 },
{"verbose", no_argument, 0, 44 },
{"sample", no_argument, 0, 45 },
{"threads", required_argument, 0, 46 },
{"wb_and_cc", no_argument, 0, 47 },
{NULL, 0, NULL, 0}
};
// echo params out to record in run log
// http://www.cplusplus.com/forum/beginner/211100/
stringstream ss;
copy( argv, argv+argc, ostream_iterator<const char*>( ss, " " ) ) ;
LOGI << ss.str() ;
while (true) {
int option_index = 0;
int options = getopt_long_only(argc, argv, short_opts, long_opts, &option_index);
//printf("optind=%i optopt=%c c=%d optarg=%s arg=%s\n", optind, optopt, options, optarg, argv[optind-1]);
if (options == -1)
break;
switch (options) {
case 1:
fp.folder_src_list.push_back (optarg);
LOGI << " add to fp.folder_src_list = " << optarg;
break;
case 42:
opt.convert = optarg;
LOGI << " opt.convert = " << opt.convert;
break;
case 43:
opt.overwrite = true;
LOGI << " opt.overwrite = " << opt.overwrite;
break;
case 44:
opt.verbose = true;
plog::get()->setMaxSeverity(plog::verbose);
LOGI << " opt.verbose = " << opt.verbose;
break;
case 45:
opt.sample = true;
LOGI << " opt.sample = " << opt.sample;
break;
case 46:
opt.threads = stoi(optarg);
LOGI << " opt.threads = " << opt.threads;
break;
case 47:
opt.wb_and_cc = true;
LOGI << " opt.wb_and_cc = " << opt.wb_and_cc;
break;
case ':':
LOGE << " missing option arg" << argv[optind-1];
exit(-1);
case '?':
LOGE << " invalid option " << argv[optind-1];
exit(-1);
default:
LOGE << "can't understand option: " << argv[optind-1] ;
exit(-1);
}
}
// populate global extries
// jpg2trk convert option split to produce .jpg and .trk
regex pattern ("([^2]+)2([^2]+)");
smatch sm;
regex_match (opt.convert,sm,pattern);
if (sm.size() < 2) {
LOGE << "opt.convert patt not matched! " << opt.convert << " sm.size() = " << sm.size() ;
exit(-1);
}
g.src_dir_ext = sm[1];
g.dst_dir_ext = sm[2];
g.src_file_ext = g.src_dir_ext;
g.dst_file_ext = g.dst_dir_ext;
// file type should match convert option except when:
// png should produce png, jpg -> jpg
if (g.dst_dir_ext == "ann") { g.dst_file_ext = g.src_file_ext ;}
if (g.dst_dir_ext == "trk") { g.dst_file_ext = g.src_file_ext ;}
if (g.dst_dir_ext == "ahe") { g.dst_file_ext = g.src_file_ext ;}
LOGI << "convert : " << g.src_dir_ext << "/file." << g.src_dir_ext << " -> " << g.dst_dir_ext << "/file." << g.dst_file_ext;
LOGV << "Option processing complete";
}
// Pixel Format : 'RG10' (10-bit Bayer RGRG/GBGB)
// see https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/pixfmt-srggb10.html
int ColorPlaneInterpolation(fs::path rawname, fs::path pgmname) {
FILE *fp = NULL;
char *imagedata = NULL;
// determine size of raw file assumed to be 16 bit raw
int filesize = fs::file_size(rawname);
// Read in the raw image
//Image dimension.
// width is 768 stride = 728 width + 40 margin
// but some setting sometimes seems to omit stride...so safer to compute
int height = 544;
int width = filesize / (2 * height); // 2 bytes per pixel
//int width = 728; // 768 stride = 728 width + 40 margin
int framesize = width * height;
fp = fopen(rawname.c_str(), "rb");
cout << "reading in " << rawname ;
//Memory allocation for bayer image data buffer.
//Read image data and store in buffer.
imagedata = (char*) malloc (sizeof(char) * filesize);
fread(imagedata, sizeof(char), filesize, fp);
fclose(fp);
cout << " size = " << filesize << " image size = " << Point(width, height) << endl;
//Create Opencv mat structure for image dimension. For 8 bit bayer, type should be CV_8UC1.
Mat image_16bit(height, width, CV_16UC1);
memcpy(image_16bit.data, imagedata, filesize);
free(imagedata);
//cout << "dump1 of image_16bit" << endl;
//cout << image_16bit << endl;
//image_16bit.convertTo(image_16bit, CV_16UC1, 0.01);
//cout << "dump2" << endl;
//cout << image_16bit << endl;
cout << "results copied from file to image_16bit " << std::endl;
double min, max;
minMaxLoc(image_16bit, &min, &max);
cout << "image_16bit (min,max) = " << Point(min,max) << endl;
cout << "writing to : " << pgmname << endl;
imwrite(pgmname.c_str(), image_16bit);
//image_16bit.convertTo(image_16bit, CV_16UC1, 256.0/max);
//imwrite("image_16bit.pgm", image_16bit);
//cout << image_16bit << endl;
return 0;
// TODO: use constexpr
const int CONVERSION_SCALE_10_TO_8 = 0.0078125; // 256/1024
Mat image_8bit(height, width, CV_8UC1);
image_16bit.convertTo(image_8bit, CV_8UC1, 1);
//image_16bit.copyTo(image_8bit);
//Mat(height, width, CV_8U, image_16bit.data).copyTo(image_orig);
//imwrite("output/image_8bit.jpg", image_8bit);
cout << "10->8 converted" << std::endl;
//cout << image_orig << endl;
Mat image_bayer1(height, width, CV_16UC3);
Mat image_bayer2(height, width, CV_16UC3);
Mat image_bayer3(height, width, CV_16UC3);
Mat image_bayer4(height, width, CV_16UC3);
demosaicing(image_16bit, image_bayer1, COLOR_BayerRG2RGB); // imwrite("output/bayer1.jpg", image_bayer1);
demosaicing(image_16bit, image_bayer2, COLOR_BayerBG2BGR_EA);// imwrite("output/bayer2.jpg", image_bayer2);
demosaicing(image_16bit, image_bayer3, COLOR_BayerBG2BGRA); // imwrite("output/bayer3.jpg", image_bayer3);
//demosaicing(image_8bit, image_orgg, COLOR_BayerRG2RGB_VNG); imwrite("output/COLOR_BayerRG2RGB_VNG.jpg", image_orgg);
Mat rimage(height, width, CV_16UC1);
Mat gimage(height, width, CV_16UC1);
Mat bimage(height, width, CV_16UC1);
//Mat mono_bayer = Mat::zeros(height, width, CV_8UC1);
cout << "size of rimage " << rimage.size() << std::endl;
// separate out colors
Vec3b color_value ;
for (int x = 0; x < width * 2; ++x) {
for (int y = 0; y < height; ++y) {
color_value = image_bayer1.at<Vec3b>(y,x);
//cout << "colod_value at " << Point(x,y) << " = " << color_value << " : " << std::endl;
// BGR ordering?
rimage.at<char>(y,x) = color_value[1];
gimage.at<char>(y,x) = color_value[0];
bimage.at<char>(y,x) = color_value[2];
}
}
//imwrite("output/R.jpg", rimage);
//imwrite("output/G.jpg", gimage);
//imwrite("output/B.jpg", bimage);
cout << "bayer2 converted" << std::endl;
// colorize
// src: https://stackoverflow.com/questions/47939482/color-correction-in-opencv-with-color-correction-matrix
// src: https://html.developreference.com/article/16995365/Fastest+way+to+apply+color+matrix+to+RGB+image+using+OpenCV+3.0%3F
Mat bayer1_float = Mat(height, width, CV_32FC3);
//double min, max;
minMaxLoc(image_bayer1, &min, &max);
cout << "image_bayer1l (min,max) = " << Point(min,max) << std::endl;
image_bayer1.convertTo(bayer1_float, CV_32FC3, 1.0 / max);
/*
color matrix
Red:RGB; Green:RGB; Blue:RGB
1.8786 -0.8786 0.0061
-0.2277 1.5779 -0.3313
0.0393 -0.6964 1.6321
float m[3][3] = {{1.6321, -0.6964, 0.0393},
{-0.3313, 1.5779, -0.2277},
{0.0061, -0.8786, 1.8786 }};
Red:RGB; Green:RGB; Blue:RGB
a b c
d e f
g h i
float m[3][3] = {{i, h, g},
{f, e, d},
{c, b, a }};
Red:RGB; Green:RGB; Blue:RGB
[[ 1.08130365 -0.3652276 0.18837898]
[-0.06880907 0.59591615 0.21430298]
[-0.08991182 -0.00185282 1.16162897]]
[ 1.08130365 -0.3652276 0.18837898]
[-0.06880907 0.59591615 0.21430298]
[-0.08991182 -0.00185282 1.16162897]
*/
/*color matrix
* Blue:BGR
* Green:BGR;
* Red:BGR;
*/
float m[3][3] =
{{ 1.16162897 , -0.00185282 ,-0.08991182},
{ 0.21430298 , 0.59591615 ,-0.06880907},
{ 0.18837898 , -0.36522760 , 1.08130365}} ;
/*
float m[3][3] =
{{ 0.46776504 , 0.04178844 , 0.14766951},
{ 0.16525479 , 0.41161491 , 0.26941704},
{ 0.25469232 , -0.13120429 , 0.62369546}} ;
*/
cout << "color correction matrix = " << m << std::endl;
Mat M = Mat(3, 3, CV_32FC1, m).t();
Mat bayer1_float_linear = bayer1_float.reshape(1, height*width);
Mat color_matrixed_linear = bayer1_float_linear*M;
//Mat final_color_matrixed = color_matrixed_linear.reshape(3, height); // or should be reshape (height, width, CV_32FC3);
Mat final_color_matrixed = color_matrixed_linear.reshape(3, height); // or should be reshape (height, width, CV_32FC3);
cout << "final_color_matrixed size = " << final_color_matrixed.size() << std::endl;
final_color_matrixed.convertTo(final_color_matrixed, CV_32FC3, 512);
imwrite(pgmname.c_str(), final_color_matrixed);
return 0;
}
std::vector<fs::path> get_filenames( fs::path path ) {
vector<fs::path> filenames;
fs::path file;
// http://en.cppreference.com/w/cpp/experimental/fs/directory_iterator
const fs::directory_iterator end {};
bool is_matched = true;
bool is_not_dotfile = true;
bool is_regular = true;
bool is_ext_correct = true;
for( fs::directory_iterator iter {path}; iter != end; ++iter ) {
file = iter->path();
// only sample files..skip every 000
if (opt.sample) {
string patt = "00." + g.src_file_ext;
is_matched = (file.string().find(patt) != string::npos);
}
string patt = "/.";
is_not_dotfile = (file.string().find(patt) == string::npos);
is_regular = fs::is_regular_file(file);
is_ext_correct = file.extension() == "." + g.src_file_ext ;
LOGV << " file = " << file.string() << " is_matched=" << is_matched << " reqular=" << is_regular << " : ext=" << is_ext_correct;
if( is_matched and is_not_dotfile and is_regular and is_ext_correct) {
filenames.push_back( iter->path() );
}
}
sort(filenames.begin(), filenames.end());
return filenames;
}
fs::path getDestFromSrc (fs::path src) {
src = fs::absolute(src);
//it's OK!
//if (src.parent_path().stem() != g.src_dir_ext) {
// LOGE << "error assuming dir of file " << src.string() << " should be : " << g.src_dir_ext << " and not " << src.parent_path().stem().string() ;
//}
string dst = src.parent_path().parent_path().string() + "/" + g.dst_dir_ext + "/";
fs::create_directories(dst);
dst += src.stem().string() + "." + g.dst_file_ext;
return fs::path(dst);
}
fs::path getJsonFromSrc (fs::path src) {
src = fs::absolute(src);
string jsn = src.parent_path().parent_path().string() + "/" + g.json_dir_ext + "/";
fs::create_directories(jsn);
jsn += src.stem().string() + "." + g.json_file_ext;
return fs::path(jsn);
}
fs::path getJsonFromRun (fs::path src) {
src = fs::absolute(src);
// raw/img0000000.raw -> run.json
string jsn = src.parent_path().parent_path().string() + "/run.json";
return fs::path(jsn);
}
bool file_is_unicode(fs::path src) {
auto handle = ::magic_open(MAGIC_NONE|MAGIC_COMPRESS);
::magic_load(handle, NULL);
auto type = ::magic_file(handle, src.c_str());
string mimetype(type);
string expected ("UTF-8 Unicode text");
if (mimetype.compare(expected) == 0) {
return true;
} else {
return false;
}
}
vector< pair <fs::path,fs::path> > getAllFiles(void) {
vector< pair <fs::path,fs::path> > allfiles;
LOGV << "getallfiles:";
fs::path dst;
for (auto it = fp.folder_src_list.begin() ; it != fp.folder_src_list.end(); ++it) {
fs::path folder_src = *it;
LOGV << "folder_src = " << folder_src.string();
for( const auto& src : get_filenames( folder_src ) ) {
dst = getDestFromSrc(src);
// TODO: also overwrite if size is small
if (! opt.overwrite and fs::exists( fs::status(dst) ) and (fs::file_size(dst) > g.smallsize)) {
LOGV << "exists so skipping : " << src.string() << " -> " << dst.string();
} else {
LOGV << "adding to list : " << src.string() << " -> " << dst.string();
allfiles.push_back( make_pair(src,dst) );
}
}
}
return allfiles;
}
// TODO: make it work with paths that have trailing separator
vector< pair <fs::path,fs::path> > getAllDirs(void) {
vector< pair <fs::path,fs::path> > alldirs;
LOGV << "getalldirs:";
for (auto it = fp.folder_src_list.begin() ; it != fp.folder_src_list.end(); ++it) {
fs::path folder_src = *it;
fs::path folder_src_absolute = fs::absolute(folder_src);
fs::path folder_dst = folder_src_absolute.parent_path() / g.dst_dir_ext;
LOGV << "folder_src = " << folder_src.string() << " -> " << folder_dst.string();
alldirs.push_back( make_pair(folder_src,folder_dst) );
}
return alldirs;
}
int process_raw2jpg(fs::path src, fs::path dst) {
Imagedata img;
img.loadImage(src);
img.dst = dst;
// TODO : get attr from json sidefile if it exists
img.writeJpgFromRaw();
}
int process_raw2dng(fs::path src, fs::path dst) {
Imagedata img;
fs::path jsn_img = getJsonFromSrc(src);
fs::path jsn_run = getJsonFromRun(src);
//LOGI << "jsn_imag = " << jsn_img.string();
//LOGI << "jsn_run = " << jsn_run.string();
if (! fs::exists(jsn_img)) {
LOGW << "skipping image--json file does not exist: " << jsn_img.string();
return 0;
}
if (fs::is_empty(jsn_img)) {
LOGW << "skipping image--json file is empty: " << jsn_img.string();
return 0;
}
if (! file_is_unicode(jsn_img)) {
LOGW << "skipping image--json file is not unicode: " << jsn_img.string();
return 0;
}
img.readJson(jsn_img);
if (fs::exists(jsn_run)) {
img.readJson(jsn_run);
}
img.loadImage(src);
img.dst = dst;
// hack: raw files don't have attributes so we need to fake them or get them from a side file...
//img.sidefile_to_attributes(src,dst);
/*
string datestamp = dst.parent_path().parent_path().string();
if (datestamp == "202003281227" or datestamp == "202003281219") {
img.sidefile_to_attributes(src,attr);
} else {
img.fakedata_to_attributes(src);
}
*/
img.writeDng(dst, opt.wb_and_cc);
LOGV << "dng write complete to " << dst.string();
}
// call tool on entire dir
int process_dir_dng2any(fs::path src, fs::path dst) {
Imagedata image;
image.src = src;
image.dst = dst;
image.writeJpgDir(src, dst, opt.overwrite); // direct run..don't thread
}
int process_dir_any2ahe(fs::path src, fs::path dst) {
// assert opt.overwrite
if (!opt.overwrite) {
LOGE << " overrite needs to be on for this option!";
exit(-1);
}
Imagedata image;
image.src = src;
image.dst = dst;
image.writeAheDir(g.src_file_ext, g.dst_file_ext); // direct run..thread at app level
}
int process_dng2any(fs::path src, fs::path dst) {
if (opt.overwrite and fs::exists(dst)) {
fs::remove(dst);
}
Imagedata image;
image.src = src;
image.dst = dst;
image.writeJpg(dst, false); // direct run..don't thread
// image object is gone but writing may not be complete...
}
int process_jpg2trk(fs::path src, fs::path dst) { }
int process_any2ahe(fs::path src, fs::path dst) {
Imagedata img;
img.writeAhe(src, dst);
}
int process_any2ann(fs::path src, fs::path dst) {
Imagedata img;
img.src = src;
img.getExif();
// overwrite src
img.src = src;
img.dst = dst;
img.createAnnoText();
img.writeAnnotated(dst, true);
}
indicators::ProgressBar* createProgressBar() {
string prefixtext = opt.convert;
string timetext = "[00m:36s<01m:01s]";
int extra_gutter = 20;
struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
int barwidth = w.ws_col - prefixtext.length() - timetext.length() - extra_gutter;
indicators::ProgressBar* bar = new indicators::ProgressBar{
indicators::option::BarWidth{barwidth},
indicators::option::Start{" ["},
indicators::option::Fill{"█"},
indicators::option::Lead{"█"},
indicators::option::Remainder{"-"},
indicators::option::End{"]"},
indicators::option::PrefixText{prefixtext},
indicators::option::ForegroundColor{indicators::Color::yellow},
indicators::option::ShowElapsedTime{true},
indicators::option::ShowRemainingTime{true},
};
return bar;
}
// process dir at a time
int process_dir_src2dst(string srcstr , string dststr) {
fs::path src (srcstr); fs::path dst (dststr);
// if (opt.convert == "raw2dng") { return process_dir_raw2dng(src,dst); }
if (opt.convert == "dng2jpg") { return process_dir_dng2any(src,dst); }
if (opt.convert == "dng2png") { return process_dir_dng2any(src,dst); }
// if (opt.convert == "jpg2ann") { return process_dir_any2ann(src,dst); }
if (opt.convert == "jpg2ahe") { return process_dir_any2ahe(src,dst); }
if (opt.convert == "png2ahe") { return process_dir_any2ahe(src,dst); }
// if (opt.convert == "jpg2trk") { return process_dir_jpg2trk(src,dst); }
}
// process file at a time
// must be a better way to do this in c
int process_src2dst(string srcstr , string dststr) {
fs::path src (srcstr); fs::path dst (dststr);
if (opt.convert == "raw2dng") { return process_raw2dng(src,dst); }
if (opt.convert == "raw2jpg") { return process_raw2jpg(src,dst); }
if (opt.convert == "dng2jpg") { return process_dng2any(src,dst); }
if (opt.convert == "dng2png") { return process_dng2any(src,dst); }
if (opt.convert == "jpg2ahe") { return process_any2ahe(src,dst); }
if (opt.convert == "jpg2ann") { return process_any2ann(src,dst); }
if (opt.convert == "jpg2trk") { return process_jpg2trk(src,dst); }
if (opt.convert == "png2ahe") { return process_any2ahe(src,dst); }
}
// count = BUFSIZ is also a problem...
fs::path getExePath() {
char result[ BUFSIZ ];
int count = readlink( "/proc/self/exe", result, BUFSIZ );
if (count == -1 || count == sizeof(result)) {
perror("readlink error on /proc/self/exe: ");
exit(-1);
}
result[count] = '\0';
return string( result );
}
void setupDirs() {
// first figure out path to exe and base use that to determine where to
// put the images
fs::path file_exe = getExePath();
fs::path profiledir = file_exe.parent_path().parent_path() / "profiles";
fp.dng_headerfile = profiledir / "dng_header_081100056.bin";
fp.dt_stylefile = profiledir / "darktable.xml";
//fp.rt_stylefile = profiledir / "basic_black_apr26_autorgb.pp3";
fp.rt_stylefile = profiledir / "autoiso.pp3 ";
LOGI << " using dng header:" << fp.dng_headerfile.string() ;
LOGV << " using darktable style:" << fp.dt_stylefile.string() ;
LOGV << " using rawtherapee style:" << fp.rt_stylefile.string() ;
}
int main(int argc, char** argv ) {
// location of header and style files
setupDirs();
// logging
static plog::ColorConsoleAppender<plog::TxtFormatter> consoleAppender;
plog::init(plog::info, &consoleAppender);
processArgs(argc, argv);
// init imagedata
bool use_threaded_jpg = true;
Imagedata::init(fp.dng_headerfile, fp.dt_stylefile, fp.rt_stylefile, use_threaded_jpg);
// see https://github.com/progschj/ThreadPool
ThreadPool pool(opt.threads);
vector< future<int> > results;
int index = 0;
int size = 0;
// operate on dirs if tool allows it
bool run_dir_dng2any = (opt.convert == "dng2jpg") or (opt.convert == "dng2png");
bool run_dir_any2ahe = opt.overwrite and ((opt.convert == "jpg2ahe") or (opt.convert == "png2ahe"));
bool run_dir_mode = (! opt.sample) and (! opt.wb_and_cc) and (run_dir_dng2any or run_dir_any2ahe);
LOGI << " run_dir_mode = " << run_dir_mode;
if (run_dir_mode) {
auto alldirs = getAllDirs();
size = alldirs.size();
LOGI << " about to convert " << size << " dirs from " << opt.convert;
// turn off openmp threading if running multiple instances
if ((opt.threads > 1) and (size > opt.threads)) {
char env[]="OMP_NUM_THREADS=1";
putenv( env );
LOGI << " turning off app level multithreading: " << env;
}
for(const auto& srcdst: alldirs) {
float percent = 100.0 * (float) index++ / float (size);
fs::path src = srcdst.first;
fs::path dst = srcdst.second;
LOGI << fixed << setprecision(1) << percent << "% batch : " << src.string() << " -> " << dst.string();
if (opt.threads == 0) {
process_dir_src2dst(src.string(), dst.string());
} else {
results.emplace_back(
pool.enqueue(process_dir_src2dst, src.string(), dst.string())
);
}
}
} else {
auto allfiles = getAllFiles();
size = allfiles.size();
LOGI << " about to convert " << size << " files from " << opt.convert;
if ((opt.threads > 1) and (size > opt.threads)) {
char env[]="OMP_NUM_THREADS=1";
putenv( env );
LOGI << " turning off app level multithreading: " << env;
}
for(const auto& srcdst: allfiles) {
float percent = 100.0 * (float) index++ / float (size);
fs::path src = srcdst.first;
fs::path dst = srcdst.second;
LOGI << fixed << setprecision(1) << percent << "% batch : " << src.string() << " -> " << dst.string();
if (opt.threads == 0) {
process_src2dst(src.string(), dst.string());
} else {
results.emplace_back(
pool.enqueue(process_src2dst, src.string(), dst.string())
);
}
}
}
// wait for return values in dispatch order, assume no single long running job in queue
index = 0;
auto bar = createProgressBar();
for(auto && result: results) {
result.get();
float percent = 100.0 * (float) index++ / float (size);
bar->set_progress(percent);
//LOGI << fixed << setprecision(2) << percent << "% convert : " << index << "/" << size << " files.";
//LOGI << fixed << setprecision(2) << percent << "% convert : " << index << "/" << size << " files.";
}
// shutdown
//pool.~ThreadPool();
MagickCoreTerminus();
cout << "\e[?25h";
cout << "all done\n";
//sleep(10);
return 0;
}
| [
"deep@tensorfield.ag"
] | deep@tensorfield.ag |
f5d165056f2ef91432d89745e794eb16ee92f75b | 80eaba24bae5e9600eb210e8ca9ffdfd2346f2a5 | /hackerank/diagonal.cpp | 11e49390ea30c6f713ada1bf39fd9e2c65ae2545 | [] | no_license | CesarJardines/C-Stuff- | 9404c7d355b09d90c71e6331d90a8ecbd175fb0b | 0108f7df901cd0c19c67196745b3cfad76b8bc8b | refs/heads/master | 2021-04-12T19:45:10.759373 | 2020-06-26T17:13:46 | 2020-06-26T17:13:46 | 249,104,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(){
int n, suma1 = 0, suma2 = 0, suma = 0;
cin>>n;
int arr[n][n];
for(int i = 0; i < n ; i++){
for(int j = 0; j < n; j++){
cin>>arr[i][j];
if(i == j){
suma1 += arr[i][j];
}if(i + j == (n-1)){
suma2 += arr[i][j];
}
}
}
suma = abs(suma1 - suma2);
cout<<suma<<endl;
return 0;
} | [
"eduardroid.98@gmail.com"
] | eduardroid.98@gmail.com |
71533a59d67867807af6913562523c8736b5d9fa | ba35cdbaaa332f998ef2cf3b2089d6b40ca14e59 | /C++/Total_Number_of_Factors.cpp | 578fd2be7e47851e620214e021e8b5a7c5a4ee3e | [] | no_license | Pyk017/C | 95697aaaca4e585355d002094091373c21d87843 | b38b536976136a7eb5959f76b956e548985be182 | refs/heads/master | 2021-07-15T10:44:44.193167 | 2020-10-09T05:44:14 | 2020-10-09T05:44:14 | 214,484,946 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | #include<bits/stdc++.h>
using namespace std;
int factors(int n){
int i=2;
map<int, int> m;
while(i <= n){
int temp = n;
while(temp % i == 0 && temp >= i){
m[i] += 1;
temp /= i;
}
n = temp;E
i += 1;
}
map<int, int>::iterator it = m.begin();
int total = 1;
cout << "All Prime Factors are :- " << "";
while(it != m.end()){
total *= (it->second + 1);
cout << it->first << " ";
it++;
}
cout << "\n";
return total;
}
int main(){
int n;
cin >> n;
int result = factors(n);
cout << "Total Number of factors are :- " << result << endl;
return 0;
} | [
"prakharkumar506978@gmail.com"
] | prakharkumar506978@gmail.com |
200f352733cfe6c4efbc1d3c1c8435e1682c3ccb | 48e256051b205e7b324172fc0cf13fb1efb0e3a3 | /marcview/VWCL/splitters/vsplitwindow.hpp | 098c6d4b7fda552770ba86d9e9bb2329535e46c6 | [
"Apache-2.0"
] | permissive | 15831944/MARCView-Convert | b8ccf2ae3781e9e3957a6ad3c061e08bd1310606 | 4afe7f08e59550446b32a363873ea2cd35f163ab | refs/heads/master | 2021-12-14T21:52:40.578212 | 2017-06-09T16:17:59 | 2017-06-09T16:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,465 | hpp | /* This source code is part of the Virtual Windows Class Library (VWCL).
VWCL is a public C++ class library, placed in the public domain, and is
open source software. VWCL is not governed by any rules other than these:
1) VWCL may be used in commercial and other applications.
2) VWCL may not be distributed, in source code form, in development related
projects, unless the developer is also a VWCL contributor.
3) VWCL may be used in development related projects in binary, compiled form,
by anyone.
4) VWCL shall remain open source software regardless of distribution method.
5) A proper copyright notice referencing the "VWCL Alliance" must be included
in the application and/or documentation.
6) No company or individual can ever claim ownership of VWCL.
7) VWCL source code may be modified or used as a base for another class
library.
8) Your use of this software forces your agreement to not hold any member,
individual or company, liable for any damages resulting from the use of the
provided source code. You understand the code is provided as-is, with no
warranty expressed or implied by any member of the VWCL Alliance. You use
this code at your own risk.
Primary Author of this source code file: Todd Osborne (todd@vwcl.org)
Other Author(s) of this source code file:
VWCL and all source code are copyright (c) 1996-2000 by The VWCL Alliance.*/
#ifndef VSPLITWINDOW
#define VSPLITWINDOW
#include "../vstandard.h"
#include "../gdi/vdc.hpp"
#include "../numbers/vrtti.hpp"
#include "../windows/vwindow.hpp"
#include "vsplitsupport.hpp"
/** VSplitWindow is a basic window with split window support. If derives its
functionality from both VWindow and VSplitSupport, an implements the
VSplitSupport macro's to route messages to this class. See VWindow and
VSplitSupport documentation for more information.*/
class VSplitWindow : public VWindow, public VSplitSupport
{
public:
/** Default constructor initializes RTTI information and split
support options in base classes.*/
VSplitWindow( VUINT nSplitSupportOptions =
VSplitSupport::OPTION_DEFAULT,
VRTTI_TYPE nRTTI =
VWCL_RTTI_SPLIT_WINDOW)
: VWindow(nRTTI), VSplitSupport(nSplitSupportOptions)
{;}
protected:
/** Macros implement message mapping to VSplitSupport base class.*/
VWCL_SPLIT_ON_SIZE(VWindow)
VWCL_SPLIT_ON_PAINT(VWindow)
VWCL_SPLIT_WINDOW_PROC(VWindow)
};
#endif /* VSPLITWINDOW*/
| [
"librarywebchic@gmail.com"
] | librarywebchic@gmail.com |
6b6c9cb97e52e64572223d40936f1a9e195509a1 | 57c99a482801dd4645eb3518ff17a5a4a4872a92 | /ArgoProject/src/factories/entities/GoalFactory.cpp | 72697a2fa81d5252cde2447cd6418b1295c492a3 | [] | no_license | itcgames/ARGO_2018_19_A | 963f9bb30f3bba7d62cb32da95e32d2aa7c49362 | e8327779a64f775b69a6e8a44f2fde94a30b9799 | refs/heads/master | 2020-04-20T19:53:49.351679 | 2019-03-05T15:04:27 | 2019-03-05T15:04:27 | 169,061,713 | 4 | 0 | null | 2019-03-05T15:58:14 | 2019-02-04T10:28:05 | C++ | UTF-8 | C++ | false | false | 1,441 | cpp | #include "stdafx.h"
#include "GoalFactory.h"
#include "utilities/cute_c2.h"
#include "components/Location.h"
#include "components/Dimensions.h"
#include "components/Layer.h"
#include "components/Render.h"
#include "components/Collision.h"
#include "components/Goal.h"
#include "components/Layer.h"
app::fact::GoalFactory::GoalFactory(math::Vector2f const & position, math::Vector2f const & size)
: m_position(position), m_size(size)
{
}
app::Entity const app::fact::GoalFactory::create()
{
app::Entity const entity = m_registry.create();
auto location = comp::Location();
location.position = m_position;
location.orientation = 0.0f;
m_registry.assign<decltype(location)>(entity, std::move(location));
auto dimensions = comp::Dimensions();
dimensions.size = m_size;
dimensions.origin = dimensions.size / 2.0f;
m_registry.assign<decltype(dimensions)>(entity, std::move(dimensions));
auto layer = comp::Layer();
layer.zIndex = 120u;
m_registry.assign<decltype(layer)>(entity, std::move(layer));
auto render = comp::Render();
render.texture = m_resourceManager.getTexture(app::res::TextureKey::Debug);
m_registry.assign<decltype(render)>(entity, std::move(render));
auto collision = comp::Collision();
collision.bounds = cute::c2AABB();
m_registry.assign<decltype(collision)>(entity, std::move(collision));
auto goal = comp::Goal();
m_registry.assign<decltype(goal)>(entity, std::move(goal));
return entity;
}
| [
"john.codd@hotmail.com"
] | john.codd@hotmail.com |
44b15de7481e90bccc3313047bf0a22d7061b76d | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /tools/bcp/copy_path.cpp | 2a0de1380eaacc5940a05c30d1ed82a6552625b0 | [
"BSL-1.0",
"Zlib",
"LicenseRef-scancode-other-permissive",
"GPL-2.0-or-later",
"Spencer-86",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-stlport-4.5",
"LicenseRef-scancode-bison-exception-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-mit-old-style",
"Jam"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | C++ | false | false | 8,118 | cpp | /*
*
* Copyright (c) 2003 Dr John Maddock
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
* This file implements the following:
* void bcp_implementation::copy_path(const fs::path& p)
* void bcp_implementation::create_path(const fs::path& p)
*/
#include "bcp_imp.hpp"
#include "fileview.hpp"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/regex.hpp>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <iostream>
struct get_new_library_name
{
get_new_library_name(const std::string& n) : m_new_name(n) {}
template <class I>
std::string operator()(const boost::match_results<I>& what)
{
std::string s = what[0];
std::string::size_type n = s.find("boost");
if(n == std::string::npos)
{
s.insert(0, m_new_name);
}
else
{
s.replace(n, 5, m_new_name);
}
return s;
}
private:
std::string m_new_name;
};
void bcp_implementation::copy_path(const fs::path& p)
{
assert(!fs::is_directory(m_boost_path / p));
if(fs::exists(m_dest_path / p))
{
std::cout << "Copying (and overwriting) file: " << p.string() << "\n";
fs::remove(m_dest_path / p);
}
else
std::cout << "Copying file: " << p.string() << "\n";
//
// create the path to the new file if it doesn't already exist:
//
create_path(p.branch_path());
//
// do text based copy if requested:
//
if((p.leaf() == "Jamroot") && m_namespace_name.size())
{
static std::vector<char> v1, v2;
v1.clear();
v2.clear();
boost::filesystem::ifstream is((m_boost_path / p));
std::copy(std::istreambuf_iterator<char>(is), std::istreambuf_iterator<char>(), std::back_inserter(v1));
static boost::regex libname_matcher;
if(libname_matcher.empty())
{
libname_matcher.assign("boost_");
}
regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), libname_matcher, m_namespace_name + "_");
std::swap(v1, v2);
v2.clear();
boost::filesystem::ofstream os;
if(m_unix_lines)
os.open((m_dest_path / p), std::ios_base::binary | std::ios_base::out);
else
os.open((m_dest_path / p), std::ios_base::out);
os.write(&*v1.begin(), v1.size());
os.close();
}
else if(m_namespace_name.size() && m_lib_names.size() && is_jam_file(p))
{
static std::vector<char> v1, v2;
v1.clear();
v2.clear();
boost::filesystem::ifstream is((m_boost_path / p));
std::copy(std::istreambuf_iterator<char>(is), std::istreambuf_iterator<char>(), std::back_inserter(v1));
static boost::regex libname_matcher;
if(libname_matcher.empty())
{
std::string re = "\\<";
re += *m_lib_names.begin();
for(std::set<std::string>::const_iterator i = ++m_lib_names.begin(); i != m_lib_names.end(); ++i)
{
re += "|" + *i;
}
re += "\\>";
libname_matcher.assign(re);
}
regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), libname_matcher, get_new_library_name(m_namespace_name));
std::swap(v1, v2);
v2.clear();
boost::filesystem::ofstream os;
if(m_unix_lines)
os.open((m_dest_path / p), std::ios_base::binary | std::ios_base::out);
else
os.open((m_dest_path / p), std::ios_base::out);
os.write(&*v1.begin(), v1.size());
os.close();
}
else if(m_namespace_name.size() && is_source_file(p))
{
//
// v1 hold the current content, v2 is temp buffer.
// Each time we do a search and replace the new content
// ends up in v2: we then swap v1 and v2, and clear v2.
//
static std::vector<char> v1, v2;
v1.clear();
v2.clear();
boost::filesystem::ifstream is((m_boost_path / p));
std::copy(std::istreambuf_iterator<char>(is), std::istreambuf_iterator<char>(), std::back_inserter(v1));
static const boost::regex namespace_matcher(
"(?|"
"(namespace\\s+)boost(_\\w+)?(?:(\\s*::\\s*)phoenix)?"
"|"
"(namespace\\s+(?:detail::)?)(adstl|phoenix|rapidxml)\\>"
"|"
"()\\<boost((?:_(?!intrusive_tags)\\w+)?\\s*(?:::))(?:(\\s*)phoenix)?"
"|"
"()\\<((?:adstl|phoenix|rapidxml)\\s*(?:::))"
"|"
"(namespace\\s+\\w+\\s*=\\s*(?:::\\s*)?)boost(_\\w+)?(?:(\\s*::\\s*)phoenix)?"
"|"
"(namespace\\s+\\w+\\s*=\\s*(?:::\\s*)?(?:\\w+\\s*::\\s*)?)(adstl|phoenix|rapidxml)\\>"
"|"
"(^\\s*#\\s*define\\s+\\w+\\s+)boost((?:_\\w+)?\\s*)$"
"|"
"(^\\s*#\\s*define[^\\n]+)((?:adstl|phoenix|rapidxml)\\s*)$"
"|"
"()boost(_asio_detail_posix_thread_function|_regex_free_static_mutex)"
"|"
"()\\<(lw_thread_routine|at_thread_exit|on_process_enter|on_process_exit|on_thread_enter|on_thread_exit|tss_cleanup_implemented)\\>"
"|"
"(BOOST_CLASS_REQUIRE4?[^;]*)boost((?:_\\w+)?\\s*,)"
"|"
"(::tr1::|TR1_DECL\\s+)boost(_\\w+\\s*)" // math tr1
"|"
"(\\(\\s*)boost(\\s*\\))\\s*(\\(\\s*)phoenix(\\s*\\))"
"|"
"(\\(\\s*)boost(\\s*\\))"
")"
);
regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_matcher, "$1" + m_namespace_name + "$2(?3$3" + m_namespace_name + "phoenix?4$4)", boost::regex_constants::format_all);
std::swap(v1, v2);
v2.clear();
if(m_namespace_alias)
{
static const boost::regex namespace_alias(
/*
"namespace\\s+" + m_namespace_name +
"\\s*"
"("
"\\{"
"(?:"
"(?>[^\\{\\}/]+)"
"(?>"
"(?:"
"(?1)"
"|//[^\\n]+$"
"|/[^/]"
"|(?:^\\s*#[^\\n]*"
"(?:(?<=\\\\)\\n[^\\n]*)*)"
")"
"[^\\{\\}]+"
")*"
")*"
"\\}"
")"
*/
/*
"(namespace\\s+" + m_namespace_name +
"\\s*\\{.*"
"\\})([^\\{\\};]*)\\z"
*/
"(namespace)(\\s+)(" + m_namespace_name + ")"
"(adstl|phoenix|rapidxml)?(\\s*\\{)"
);
regex_replace(std::back_inserter(v2), v1.begin(), v1.end(), namespace_alias,
"$1 $3$4 {} $1 (?4$4:boost) = $3$4; $1$2$3$4$5", boost::regex_constants::format_all);
std::swap(v1, v2);
v2.clear();
}
boost::filesystem::ofstream os;
if(m_unix_lines)
os.open((m_dest_path / p), std::ios_base::binary | std::ios_base::out);
else
os.open((m_dest_path / p), std::ios_base::out);
if(v1.size())
os.write(&*v1.begin(), v1.size());
os.close();
}
else if(m_unix_lines && !is_binary_file(p))
{
boost::filesystem::ifstream is((m_boost_path / p));
std::istreambuf_iterator<char> isi(is);
std::istreambuf_iterator<char> end;
boost::filesystem::ofstream os((m_dest_path / p), std::ios_base::binary | std::ios_base::out);
std::ostreambuf_iterator<char> osi(os);
std::copy(isi, end, osi);
}
else
{
// binary copy:
fs::copy_file(m_boost_path / p, m_dest_path / p);
}
}
void bcp_implementation::create_path(const fs::path& p)
{
if(!fs::exists(m_dest_path / p))
{
// recurse then create the path:
create_path(p.branch_path());
fs::create_directory(m_dest_path / p);
}
}
| [
"james.pack@stardog.com"
] | james.pack@stardog.com |
603929265229641308c62cc0804b5b2235c6d87c | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/871/U | aaeb624b62eb3f735c3840403fa08cfa4d364aa4 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251,178 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "871";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
6400
(
(-0.00012107138537 -0.000156867015125 0)
(-0.000317875636274 -0.000112528533969 0)
(-0.000459140520108 -8.64684477538e-05 0)
(-0.000606075203909 -7.36630483008e-05 0)
(-0.000714721801952 -4.74868287718e-05 0)
(-0.000794510565395 -2.81306353209e-05 0)
(-0.000842372022753 -2.05373959227e-05 0)
(-0.000883174170869 -2.93955726666e-05 0)
(-0.00097025604769 -3.9301998271e-05 0)
(-0.00105437496214 -3.67618108315e-05 0)
(-0.00109910673611 -3.28052157767e-05 0)
(-0.0011735718855 -3.32305396489e-05 0)
(-0.0012408016917 -2.9375866124e-05 0)
(-0.00129498713861 -2.38260494349e-05 0)
(-0.00133660845771 -2.13467581044e-05 0)
(-0.00137891802489 -2.34272041243e-05 0)
(-0.00142847923553 -2.38162757539e-05 0)
(-0.001471825352 -2.06972879298e-05 0)
(-0.00150575239279 -1.67845316465e-05 0)
(-0.00153886419135 -1.53638900341e-05 0)
(-0.0015791965902 -1.92382587689e-05 0)
(-0.00162488502996 -2.29118712947e-05 0)
(-0.00167045432845 -2.28275895972e-05 0)
(-0.00171083506075 -2.11695408583e-05 0)
(-0.00174774797431 -1.89291931395e-05 0)
(-0.00178262836953 -1.66494154776e-05 0)
(-0.00181631470395 -1.52618864539e-05 0)
(-0.0018464957725 -1.36332021361e-05 0)
(-0.00187179608738 -1.16557914707e-05 0)
(-0.00189277047559 -1.00882414883e-05 0)
(-0.00190993844708 -9.39849320052e-06 0)
(-0.00192688915892 -8.40540419326e-06 0)
(-0.00194359029344 -6.94148659344e-06 0)
(-0.00195741364166 -6.56456191352e-06 0)
(-0.00197019183777 -6.27009686515e-06 0)
(-0.00198538947952 -5.74196753831e-06 0)
(-0.00199696850254 -5.48003702881e-06 0)
(-0.00200100381434 -4.54086336008e-06 0)
(-0.00200976054255 -2.87263283564e-06 0)
(-0.00202058774019 -1.38947552409e-06 0)
(-0.00202381365044 -1.17676154183e-06 0)
(-0.00201835905534 3.68883893919e-08 0)
(-0.00201049151979 3.43460227819e-06 0)
(-0.00200167174848 5.99486175236e-06 0)
(-0.00198951840656 7.49475805771e-06 0)
(-0.00197391766997 9.18012936717e-06 0)
(-0.00195452876175 1.10626373835e-05 0)
(-0.00193070008187 1.33365839157e-05 0)
(-0.00190237220001 1.56417942297e-05 0)
(-0.00186925421981 1.68451574123e-05 0)
(-0.00183287722846 1.69020895324e-05 0)
(-0.00179625369073 1.89174753434e-05 0)
(-0.00175340517413 2.46847998187e-05 0)
(-0.00170508833989 2.8981364521e-05 0)
(-0.00164408034328 3.30680570284e-05 0)
(-0.00156609021769 3.84406616214e-05 0)
(-0.00148441422486 3.98161543825e-05 0)
(-0.00140912568873 4.03822103962e-05 0)
(-0.00132915647367 4.51086386995e-05 0)
(-0.00122779601465 4.94644318911e-05 0)
(-0.00112222105451 5.13027678286e-05 0)
(-0.0010135616973 5.98510395359e-05 0)
(-0.000913815422946 7.84235701372e-05 0)
(-0.000755504514806 9.0170449269e-05 0)
(-0.000541673601829 7.24364301747e-05 0)
(-0.000402036248896 5.16374136973e-05 0)
(-0.000318515412616 4.29130017273e-05 0)
(-0.000250774334357 3.80807896078e-05 0)
(-0.000184937658357 3.54858490642e-05 0)
(-0.000116796143813 3.28430199295e-05 0)
(-5.40437127422e-05 2.86045766092e-05 0)
(-2.06793810459e-06 2.21260348074e-05 0)
(3.30083146397e-05 1.50934958049e-05 0)
(5.81826276016e-05 8.10651805822e-06 0)
(6.29766308619e-05 2.27145970601e-06 0)
(7.03947615565e-05 -1.29566971985e-06 0)
(5.46442069901e-05 -2.09256917498e-06 0)
(6.39465520548e-05 -6.5592565202e-06 0)
(2.94557241295e-05 -6.33420334363e-06 0)
(2.26068579438e-05 -1.32634747078e-05 0)
(-4.68483617675e-05 -0.000225401532971 0)
(-0.000197106311255 -0.000246593436059 0)
(-0.000340585024064 -0.000216174648764 0)
(-0.000435540174794 -0.00017300470686 0)
(-0.000613783440686 -0.000165604084762 0)
(-0.000764286884094 -0.00011664879446 0)
(-0.000852478344579 -7.73032436702e-05 0)
(-0.00091517593527 -9.3418737951e-05 0)
(-0.000981388130092 -0.000114290798991 0)
(-0.00105361436055 -0.000110508935922 0)
(-0.00112120441156 -0.000101514719233 0)
(-0.00118289170261 -9.56581026772e-05 0)
(-0.001239847064 -8.41329120992e-05 0)
(-0.0012903161607 -7.10786101294e-05 0)
(-0.00133825702552 -6.50434803975e-05 0)
(-0.00138331939075 -7.30756526153e-05 0)
(-0.00142873476452 -7.55562902562e-05 0)
(-0.00146774518129 -5.83883943149e-05 0)
(-0.00148143138308 -4.55754289538e-05 0)
(-0.00152136544034 -4.70639543724e-05 0)
(-0.0015709766965 -5.95695778542e-05 0)
(-0.00162108248392 -7.2076358223e-05 0)
(-0.00167200319079 -7.11347232087e-05 0)
(-0.0017147851724 -6.2269443034e-05 0)
(-0.00174479293272 -5.54000208192e-05 0)
(-0.0017829885014 -5.11134876879e-05 0)
(-0.00181827037227 -4.62146197134e-05 0)
(-0.00184696598849 -4.04491007471e-05 0)
(-0.00187158861021 -3.49386251251e-05 0)
(-0.00189336590872 -3.05055195616e-05 0)
(-0.00191169744758 -2.77340104985e-05 0)
(-0.00192495513125 -2.45017133597e-05 0)
(-0.00194166129756 -2.00411830981e-05 0)
(-0.00195497692127 -1.94443572555e-05 0)
(-0.00196635709758 -1.99840460419e-05 0)
(-0.00198555737428 -1.73255938599e-05 0)
(-0.00199528493492 -1.59299859152e-05 0)
(-0.00199924074073 -1.47268084525e-05 0)
(-0.00201056701594 -1.08894561172e-05 0)
(-0.00202634550821 -5.07093922343e-06 0)
(-0.00203052157393 2.32918971637e-06 0)
(-0.00200534347959 8.86588664871e-06 0)
(-0.00198714315336 1.31491630355e-05 0)
(-0.00198120352155 1.64999174961e-05 0)
(-0.00197102443749 2.02212401178e-05 0)
(-0.00195880535572 2.48779342016e-05 0)
(-0.00194358846858 3.05793784738e-05 0)
(-0.00192261890276 3.70548217686e-05 0)
(-0.00189950639245 4.40000906442e-05 0)
(-0.0018708789703 5.06827964478e-05 0)
(-0.0018321592503 5.6321641377e-05 0)
(-0.0017796303952 6.16450583482e-05 0)
(-0.0017300431799 6.86984441517e-05 0)
(-0.00170438501713 8.12759105589e-05 0)
(-0.0016389796942 9.72348947386e-05 0)
(-0.00156681778971 0.000109933243771 0)
(-0.00150256340811 0.000116724152163 0)
(-0.00142517537832 0.000123592679412 0)
(-0.00133656453907 0.000136324593724 0)
(-0.00124144099187 0.000151108023096 0)
(-0.0011344923181 0.00016582906557 0)
(-0.00099612729996 0.000185122067586 0)
(-0.000893580432721 0.000234081419872 0)
(-0.000731518654971 0.000270537005977 0)
(-0.000537543648331 0.000235262898036 0)
(-0.000377733768242 0.000162734766111 0)
(-0.000284239771765 0.000119885072767 0)
(-0.000227629639133 0.000108288232767 0)
(-0.000163838717725 0.000104185190641 0)
(-0.000101170253404 0.000100489740762 0)
(-3.98833499519e-05 8.73661250586e-05 0)
(9.528622865e-06 6.53434698114e-05 0)
(4.20368101157e-05 4.15962323649e-05 0)
(6.705940206e-05 2.44982752107e-05 0)
(7.96949968383e-05 9.57737698427e-06 0)
(8.42030563946e-05 -1.93423308477e-06 0)
(8.04759810247e-05 -9.30671656384e-06 0)
(7.11196442658e-05 -2.04768630721e-05 0)
(4.66807082936e-05 -2.95302800391e-05 0)
(2.26412727549e-05 -5.49102760018e-05 0)
(-6.70180930657e-05 -0.000388130749469 0)
(-0.000187227289733 -0.00041148389859 0)
(-0.000291476429202 -0.000373597988014 -8.29621875138e-29)
(-0.000475297281613 -0.000363589536909 7.53210851485e-29)
(-0.000640484862297 -0.00034719885434 6.5003578458e-29)
(-0.000751421845845 -0.000276463883341 -5.87659008938e-29)
(-0.000833601712777 -0.000154367785589 5.83371372891e-29)
(-0.000899274765468 -0.000157631606135 -5.57066053534e-29)
(-0.000967363827799 -0.000187016827151 0)
(-0.00104359552307 -0.000186389846511 0)
(-0.00111703991382 -0.000171983426854 0)
(-0.00118175499883 -0.000154642165726 0)
(-0.00123892396477 -0.000135333242029 0)
(-0.00128838696524 -0.000120561595959 0)
(-0.00133824484751 -0.00011248057618 0)
(-0.00138454411034 -0.00010260433984 0)
(-0.00133154352478 -8.37149755547e-05 0)
(-0.00131996317915 -7.17193582438e-05 0)
(-0.00136608702595 -8.1187042076e-05 0)
(-0.00144511026721 -0.000108222092848 0)
(-0.00156863143652 -0.000129669687395 0)
(-0.00163402409224 -0.000128791928697 0)
(-0.00166640639772 -0.00011648159841 0)
(-0.00170900643602 -0.00010324721732 0)
(-0.00175126258626 -9.33081079797e-05 0)
(-0.00178565988152 -8.55136743101e-05 0)
(-0.0018170401197 -7.63625786391e-05 0)
(-0.00184614207368 -6.68513760266e-05 0)
(-0.00187139647546 -5.82525598209e-05 0)
(-0.00189267432546 -5.12164011258e-05 -9.65903422791e-29)
(-0.00191253029894 -4.51295525084e-05 9.31234383428e-29)
(-0.00192242289073 -3.96073642598e-05 0)
(-0.00193823568672 -3.37727649867e-05 0)
(-0.00195963283479 -2.98386931375e-05 0)
(-0.00195783631302 -3.23003663626e-05 0)
(-0.00197768349858 -3.22364816158e-05 0)
(-0.00200017215065 -2.66820736446e-05 0)
(-0.00199666934593 -2.40333465443e-05 0)
(-0.0020087750094 -2.15135867603e-05 0)
(-0.00202532919911 -1.13523964376e-05 0)
(-0.00203014947348 5.60770845507e-06 0)
(-0.0020238156208 1.88157731866e-05 0)
(-0.00201464716632 2.37776215261e-05 0)
(-0.00200510137027 2.74331345635e-05 0)
(-0.00199266301755 3.33672908633e-05 0)
(-0.0019765893858 4.10140049355e-05 0)
(-0.00195692087797 5.02864050319e-05 0)
(-0.00193352347835 6.05328122497e-05 0)
(-0.00190640395397 7.17027531258e-05 0)
(-0.00187507475533 8.42237891543e-05 0)
(-0.00183882229885 9.70119619249e-05 0)
(-0.00179771865223 0.000107486958185 0)
(-0.00175240779453 0.000116764369517 0)
(-0.00169709067063 0.000134623461426 0)
(-0.00163150499115 0.000157743207738 0)
(-0.00157032307523 0.000175896504951 0)
(-0.00150124431081 0.000191263804012 0)
(-0.0014195254008 0.000209089165001 0)
(-0.00132743139907 0.000230550943662 0)
(-0.0012253177952 0.000255692688518 0)
(-0.00110868574791 0.000286853359703 0)
(-0.000985086135625 0.000332344789702 0)
(-0.000849468736819 0.000408011969734 0)
(-0.000665132524052 0.000441267810602 0)
(-0.000462903951787 0.000355877537685 0)
(-0.000343198772131 0.000266300934766 0)
(-0.000264244756454 0.000211155826966 0)
(-0.000190993224664 0.000180228876601 0)
(-0.000127015280331 0.000167663153801 0)
(-6.7110187298e-05 0.000156117378309 0)
(-1.17870095648e-05 0.000132967948084 0)
(3.34313077113e-05 0.000101408697015 0)
(6.95651608866e-05 7.32091620357e-05 0)
(9.35931544889e-05 4.49443611886e-05 0)
(0.0001011810951 1.68917549746e-05 0)
(9.99946064025e-05 -3.30662275188e-06 0)
(9.24805299763e-05 -1.83943625602e-05 0)
(7.89426628429e-05 -4.08670967496e-05 0)
(5.79197944933e-05 -7.39013197422e-05 0)
(1.58198132506e-05 -8.14728766438e-05 0)
(-6.6059541472e-05 -0.000565045656271 0)
(-9.72557784109e-05 -0.000400425451254 0)
(-0.000238025871547 -0.000554983487015 0)
(-0.000407139918734 -0.00053730812673 0)
(-0.000565285896397 -0.000455380078154 0)
(-0.000364474000272 -0.000196394420449 0)
(-0.000464466523187 -0.000195294250951 0)
(-0.000795109203617 -0.000310279108938 0)
(-0.000924664632244 -0.000306030778977 0)
(-0.00102099280936 -0.000275014954054 0)
(-0.00110635621621 -0.000248732805856 0)
(-0.00117854132957 -0.000219703128838 0)
(-0.00124003875669 -0.000190335177544 0)
(-0.00128519380911 -0.000155391927622 0)
(-0.00126414658948 -0.000115226671628 0)
(-0.00123680588261 -8.93371294429e-05 0)
(-0.00124936093711 -8.86838612149e-05 0)
(-0.00131575049585 -0.000120731738083 0)
(-0.00143797202692 -0.000167745715472 0)
(-0.00153820740488 -0.000201474580823 0)
(-0.0015823795494 -0.000199709244767 0)
(-0.00162733271638 -0.000179204451199 0)
(-0.00167325267082 -0.000160333493398 0)
(-0.00171384045147 -0.000145202096909 0)
(-0.00175063522067 -0.000131131225885 0)
(-0.00178414171399 -0.000118063708615 0)
(-0.00181496910388 -0.00010585445777 0)
(-0.00184579186516 -9.36234409572e-05 0)
(-0.00186977950924 -8.1836320412e-05 0)
(-0.00189438218089 -7.1562089346e-05 0)
(-0.00190775776685 -6.2690318604e-05 0)
(-0.00192724605377 -5.38608100914e-05 0)
(-0.00193075768177 -4.50793338253e-05 0)
(-0.00194945765625 -4.26779544115e-05 0)
(-0.00197525744998 -4.52319111719e-05 0)
(-0.0019761583334 -4.69184351213e-05 0)
(-0.00199748209136 -4.24899672142e-05 0)
(-0.0020167335593 -3.60472139834e-05 0)
(-0.00202376596511 -2.94810024023e-05 0)
(-0.00202815532457 -1.54294934069e-05 0)
(-0.0020296728294 4.40195217776e-06 0)
(-0.00202597679979 2.11722635853e-05 0)
(-0.00201873564475 3.13943050899e-05 0)
(-0.00200908393626 3.92723609044e-05 0)
(-0.00199621037215 4.8431251809e-05 0)
(-0.00197977012399 5.94647834102e-05 7.97018443957e-29)
(-0.00195974380242 7.21335516874e-05 -7.99844014649e-29)
(-0.00193601901771 8.6071125578e-05 0)
(-0.00190847874421 0.000101225305721 0)
(-0.00187677778063 0.000117521221004 0)
(-0.00184035255629 0.000134106111735 0)
(-0.00179859704111 0.000150465635272 0)
(-0.00175085219013 0.000169196482625 0)
(-0.00169572263377 0.000193422299325 0)
(-0.00163440590843 0.000219164172531 0)
(-0.00156858152688 0.000243693589169 0)
(-0.00149467689132 0.000269820013156 0)
(-0.00140899392883 0.00029910863435 1.44669436297e-28)
(-0.00131070344853 0.000332589361846 -1.65602836622e-28)
(-0.0011984316307 0.000372143195863 0)
(-0.00106984231564 0.000421749177297 0)
(-0.000926535613286 0.000490374855334 0)
(-0.000767364756641 0.000568140063466 0)
(-0.000610303048333 0.000596454501543 0)
(-0.000462573618785 0.000523777481093 0)
(-0.000306706438926 0.000369058309712 0)
(-0.000211899939486 0.000283075943208 0)
(-0.000141667737708 0.000247289209023 0)
(-8.04215332649e-05 0.000228157724409 0)
(-2.55662169622e-05 0.000214839902761 0)
(2.86380543655e-05 0.000188848543521 0)
(7.65165794297e-05 0.000149168059551 0)
(0.000105955783557 0.000101120722401 0)
(0.000110455733451 5.19039805785e-05 0)
(0.000111905729217 1.68824837732e-05 0)
(0.000110483178213 -1.06941784284e-05 0)
(9.61834663746e-05 -3.63904090044e-05 0)
(6.15518692217e-05 -5.39873480533e-05 0)
(4.65231734982e-05 -9.04199398751e-05 0)
(1.61369897619e-05 -0.000115062255195 0)
(-1.26194041071e-05 -0.000582432229276 0)
(-5.60351937188e-05 -0.000486092212852 0)
(-0.000211171137616 -0.000714502430314 0)
(-0.000350818825439 -0.000659162145597 0)
(-0.000409062397096 -0.000460135448672 0)
(-0.000342001655494 -0.000266396677734 0)
(-0.000559199384131 -0.000404305597891 0)
(-0.000775741349138 -0.000502432861905 0)
(-0.000876146528564 -0.000437170243483 0)
(-0.000988093421321 -0.000377297711574 0)
(-0.00108326015207 -0.000339640860811 0)
(-0.00116478678558 -0.000295057404363 0)
(-0.0011971289955 -0.000220064743511 0)
(-0.00115035870034 -0.00014280014759 0)
(-0.00117772383089 -0.000114658301872 0)
(-0.00123955744547 -0.000125805703833 0)
(-0.00133105918062 -0.000166732339168 0)
(-0.00143018545425 -0.000219494981218 0)
(-0.00149861433834 -0.000251048231532 0)
(-0.00153262843653 -0.000251143170281 0)
(-0.00157894618159 -0.000241904209451 0)
(-0.00162967489396 -0.000226604624501 0)
(-0.00167319499716 -0.000205828783259 0)
(-0.0017134167233 -0.000185033846888 0)
(-0.00174965765816 -0.000166568007822 0)
(-0.00178209048626 -0.000150834114994 0)
(-0.00181568298252 -0.000135737759959 0)
(-0.0018410992724 -0.00012056747977 0)
(-0.00187212178834 -0.000105521258 0)
(-0.00188684546893 -9.11171017568e-05 0)
(-0.00191286077199 -7.89087291295e-05 -9.28973527113e-29)
(-0.00190732671458 -6.78669470703e-05 8.88647787556e-29)
(-0.00193762168735 -6.15727295117e-05 0)
(-0.00196503860381 -5.84621020345e-05 0)
(-0.00197114021741 -6.05759612977e-05 0)
(-0.00199650456181 -6.346417523e-05 0)
(-0.00201161106747 -5.98936854535e-05 0)
(-0.00202174353518 -4.84065330666e-05 0)
(-0.00202799931571 -3.38555608818e-05 0)
(-0.00203148395898 -1.60826248895e-05 0)
(-0.00203249136802 4.70254209211e-06 0)
(-0.0020298586536 2.38010505388e-05 0)
(-0.00202358647749 3.84083583419e-05 0)
(-0.00201400960237 5.07117576551e-05 0)
(-0.00200091005077 6.3593692336e-05 0)
(-0.00198419389096 7.81064977271e-05 0)
(-0.00196383843653 9.42792181496e-05 0)
(-0.00193972631011 0.000111914822757 0)
(-0.00191166889773 0.000130966585511 0)
(-0.00187933415762 0.000151366685762 0)
(-0.00184218913244 0.000172809444769 0)
(-0.00179950487756 0.000195538634283 0)
(-0.0017504901776 0.000221185951401 0)
(-0.00169457426124 0.00025073258141 0)
(-0.00163234870063 0.000282452613018 0)
(-0.00156355130831 0.000316047082176 0)
(-0.00148472553811 0.000353598797448 0)
(-0.00139206279481 0.000396634612805 0)
(-0.00128309119937 0.000446583952331 0)
(-0.00115553464104 0.000505880271641 0)
(-0.00100865200654 0.000576920253187 0)
(-0.000848269222507 0.00065502683348 0)
(-0.000686044470682 0.00071348877552 0)
(-0.000551859447547 0.000734788059941 0)
(-0.000422192755434 0.000671458089086 0)
(-0.000280580457496 0.000506205160481 0)
(-0.000173666364962 0.00038657514359 0)
(-9.06755746771e-05 0.000321757303698 0)
(-2.53064536496e-05 0.000286044100624 0)
(3.05686404592e-05 0.000265635149333 0)
(8.54930416377e-05 0.000239833679027 0)
(0.000123595349893 0.000181927091376 0)
(0.000127852157925 0.00010616630814 0)
(0.000131210273142 5.43173935494e-05 0)
(0.000134362370487 1.45275826675e-05 0)
(0.000128219360974 -2.54657700877e-05 0)
(0.000100328078832 -5.84131718356e-05 0)
(6.95611847001e-05 -8.04598124774e-05 0)
(4.96773410309e-05 -0.000125138838718 0)
(1.45540232688e-05 -0.000141656444487 0)
(-2.9556449559e-06 -0.000553912660505 0)
(-6.34343159204e-05 -0.000587513503021 0)
(-0.000209230317736 -0.000819796816411 0)
(-0.00030342558156 -0.000707253146768 0)
(-0.000251344032825 -0.000380142853495 0)
(-0.000345624502147 -0.000383296063623 0)
(-0.000648728060598 -0.000622125093479 0)
(-0.000740801611255 -0.000616051251156 0)
(-0.000839372701824 -0.000548918151347 0)
(-0.000948771403823 -0.000487477524471 0)
(-0.0010510031038 -0.000418823630787 0)
(-0.00103446319344 -0.000307004929598 0)
(-0.000981052800461 -0.000195286585391 0)
(-0.00104921376349 -0.000166324420571 0)
(-0.0011323834516 -0.000182326724165 0)
(-0.00126174958161 -0.000228391839484 0)
(-0.0013754837756 -0.000271392658063 0)
(-0.00144911556555 -0.000289593155015 0)
(-0.00147648730696 -0.000287958596108 0)
(-0.0015285315972 -0.000292983810689 0)
(-0.00158425418961 -0.000291263887168 0)
(-0.00162935105938 -0.000273300405203 0)
(-0.0016714338364 -0.000249080453114 0)
(-0.00171050711342 -0.000225088940964 0)
(-0.00175038472307 -0.000203026377653 0)
(-0.00178302560441 -0.000181881998587 0)
(-0.00180476036557 -0.000164849050487 0)
(-0.0018453194131 -0.000148395024482 0)
(-0.00185694174617 -0.000128087447298 0)
(-0.00189476770865 -0.000108757488153 0)
(-0.00188237151061 -9.1456819983e-05 0)
(-0.00192123166001 -8.56749954463e-05 0)
(-0.00191501356302 -8.10196583834e-05 0)
(-0.00195811882151 -8.07836101349e-05 0)
(-0.00199311625308 -8.29019312482e-05 0)
(-0.0020088769728 -8.21382047521e-05 0)
(-0.00201909152935 -7.18831854424e-05 0)
(-0.00202714411709 -5.61667369991e-05 0)
(-0.0020328317727 -3.79731668476e-05 0)
(-0.00203622262392 -1.74460913416e-05 0)
(-0.00203715307851 4.96050860233e-06 0)
(-0.00203495085065 2.64845399045e-05 0)
(-0.00202919858334 4.51185532551e-05 0)
(-0.00201977240548 6.186719934e-05 0)
(-0.00200660562723 7.87758039265e-05 0)
(-0.0019896938598 9.69968054549e-05 0)
(-0.00196902829842 0.000116827192837 0)
(-0.0019444580897 0.000138263843586 0)
(-0.00191572967994 0.000161339955156 0)
(-0.00188250282618 0.000186115517229 0)
(-0.00184427807911 0.000212681817277 0)
(-0.00180037064604 0.000241548571216 0)
(-0.00175008468529 0.000273713956571 0)
(-0.0016929659438 0.000309626436174 0)
(-0.00162869294618 0.000349121828892 0)
(-0.00155553382461 0.000393483689149 0)
(-0.0014695145661 0.000445140168294 0)
(-0.00136636539352 0.000505900258952 0)
(-0.00124304507706 0.000576921188634 0)
(-0.00109822080319 0.000657768043648 0)
(-0.00093619916384 0.000742730424838 0)
(-0.000768786387421 0.000811690349103 0)
(-0.000601485504079 0.00083735543064 0)
(-0.000487126906277 0.000879809398046 0)
(-0.000342440528003 0.000786375008727 0)
(-0.000216469623744 0.000607512466046 0)
(-0.000119527409922 0.000480315399696 0)
(-3.16064504221e-05 0.000397930910943 0)
(4.02997681965e-05 0.000344830659127 0)
(0.000102026273652 0.000322957448595 0)
(0.000150302983948 0.000281754506519 0)
(0.000156178342483 0.000186869499101 0)
(0.000154080947433 0.000109684160251 0)
(0.000163896115906 5.87590467329e-05 0)
(0.000164623186519 8.2166083597e-06 0)
(0.000152974703886 -4.76630110089e-05 0)
(0.000113734617977 -8.34363461528e-05 0)
(8.25952389538e-05 -0.000109101268605 0)
(5.76475165687e-05 -0.000158878912926 0)
(1.76373871629e-05 -0.00017224707612 0)
(-2.24084815749e-05 -0.000604279318129 0)
(-0.000124670824682 -0.000749429906644 0)
(-0.000259473362247 -0.000898785841292 0)
(-0.000311951215997 -0.000847066087862 0)
(-0.000243395241561 -0.000482916131046 0)
(-0.000467610595871 -0.000645485105965 0)
(-0.000647101091599 -0.000751234098049 0)
(-0.000715171779275 -0.000705213027088 0)
(-0.000809751060656 -0.000642661847633 0)
(-0.000884804006598 -0.000578860957908 0)
(-0.00102042949753 -0.000480855048047 2.6548836534e-28)
(-0.000873334853033 -0.000273116783459 -1.79138448911e-28)
(-0.00097153729112 -0.0002393425329 0)
(-0.00103396879867 -0.000247573493729 0)
(-0.0011653373191 -0.000297170491472 0)
(-0.00130035972151 -0.000352225708182 0)
(-0.00138322922279 -0.000357282670485 0)
(-0.00140238490063 -0.000331292050387 0)
(-0.00146580346707 -0.000335039318315 0)
(-0.00153500897633 -0.000348045875868 0)
(-0.00158050334873 -0.000340119895311 0)
(-0.00162680709611 -0.000318371919434 0)
(-0.00167097541769 -0.000292295118615 0)
(-0.00171180468801 -0.000264571931592 0)
(-0.00174395199007 -0.000236505333013 0)
(-0.00177099831236 -0.000210756648269 0)
(-0.00181173479169 -0.000192284239434 0)
(-0.00181608346165 -0.000174292412312 0)
(-0.0018674328134 -0.000151550440389 0)
(-0.00185258205924 -0.000120596043874 0)
(-0.0019015195543 -0.000109436745743 0)
(-0.00189530610417 -0.000106239491758 8.83918190426e-29)
(-0.00193871426365 -0.000105945863725 -8.82192281971e-29)
(-0.00196718222024 -0.000110789479304 0)
(-0.00200334953479 -0.000109448320501 0)
(-0.00201757454107 -9.76895911543e-05 0)
(-0.00202590385734 -8.14496942411e-05 0)
(-0.00203309695632 -6.27707022885e-05 0)
(-0.00203885031177 -4.20202114479e-05 0)
(-0.00204240240544 -1.91793718622e-05 0)
(-0.00204334953969 5.19651465451e-06 0)
(-0.00204133126098 2.93163768928e-05 0)
(-0.00203584803637 5.17394938487e-05 0)
(-0.00202656383349 7.28233003484e-05 0)
(-0.00201338736082 9.39187915254e-05 0)
(-0.00199632743916 0.000116082900818 0)
(-0.00197533118441 0.000139798038745 0)
(-0.00195018339317 0.000165252356254 0)
(-0.00192058418679 0.000192596358776 0)
(-0.00188620682034 0.000222032998277 0)
(-0.00184661576487 0.000253895162522 0)
(-0.00180121523825 0.000288793965208 0)
(-0.00174934663651 0.000327546684695 0)
(-0.00169027675391 0.000370931747203 0)
(-0.00162268365888 0.000420226456704 0)
(-0.00154360493017 0.000478037649532 0)
(-0.00144837946034 0.000547277202576 0)
(-0.00133256959777 0.000629216112177 0)
(-0.00119451184613 0.000722077559479 0)
(-0.00103758082076 0.000819664592837 0)
(-0.000869929164028 0.000907933963093 0)
(-0.00070364599885 0.000967276259964 0)
(-0.000551908013795 0.00100148497107 0)
(-0.000421268003763 0.00100320095719 0)
(-0.000285658274853 0.00090670912803 0)
(-0.000142512039052 0.000697949793384 0)
(-4.45567552361e-05 0.000579646799509 0)
(4.61117004154e-05 0.000492903960728 0)
(0.000123140307815 0.00042519978696 0)
(0.000180803455049 0.000373228806955 0)
(0.000199688029996 0.000288299372172 0)
(0.00018706268385 0.000184512753263 0)
(0.000193932927146 0.000118420757472 0)
(0.000204087226908 6.31397870207e-05 0)
(0.000205535748873 -2.42348960579e-06 0)
(0.000180393154034 -7.22034445338e-05 0)
(0.000143860758522 -0.000119118245586 0)
(9.915845092e-05 -0.000144456141128 0)
(6.67152733509e-05 -0.000195093953201 0)
(2.24257944981e-05 -0.000214541841099 0)
(-4.25942406298e-05 -0.000703475154976 0)
(-0.000166921114502 -0.000895263239044 0)
(-0.000284208515186 -0.000948380855186 0)
(-0.000216755290905 -0.000632384620556 0)
(-0.000257501835286 -0.00059873695506 0)
(-0.000515163388755 -0.000851317749842 0)
(-0.000604975053379 -0.00084056323867 0)
(-0.000693050354404 -0.000793917286211 0)
(-0.000764601460322 -0.000719190026844 0)
(-0.000861513689761 -0.0006481304139 0)
(-0.000766396346306 -0.00041849620542 0)
(-0.000862438060585 -0.000327581166498 0)
(-0.000953185181911 -0.000317603178158 0)
(-0.00103466505199 -0.000348151955589 0)
(-0.0012116447249 -0.00042778805519 0)
(-0.00130936367396 -0.000444793168455 0)
(-0.00132104355137 -0.00040076256544 0)
(-0.00138328117225 -0.00038574763317 0)
(-0.00147168177699 -0.000402263838507 0)
(-0.00153095423117 -0.000403647092421 0)
(-0.00157542263197 -0.000386816832229 0)
(-0.00161938161306 -0.000362797719243 0)
(-0.00166606745943 -0.000336937724785 0)
(-0.00170708645465 -0.000305772848273 0)
(-0.00174998984141 -0.000268776370544 0)
(-0.00176361777112 -0.000241834625493 0)
(-0.00181576172305 -0.000219388428154 0)
(-0.00182710034687 -0.000193988503212 0)
(-0.00182829253513 -0.000168778279511 0)
(-0.00186022466682 -0.000148162535939 0)
(-0.00191900394096 -0.000135909543511 0)
(-0.00191871127223 -0.000125958179105 0)
(-0.00193551597403 -0.000135566888645 0)
(-0.00199115401798 -0.000141964500323 0)
(-0.00201045107189 -0.000131907112889 0)
(-0.00202325904084 -0.000111790045279 0)
(-0.0020328481609 -9.06474775225e-05 0)
(-0.00204025270607 -6.92532641166e-05 0)
(-0.0020460893931 -4.6295176861e-05 0)
(-0.00204984655293 -2.12438907092e-05 0)
(-0.0020509208676 5.37670133354e-06 0)
(-0.00204899177344 3.22634545402e-05 0)
(-0.00204366040544 5.83484644958e-05 0)
(-0.0020345150886 8.36589274884e-05 0)
(-0.00202137003086 0.000109037233752 7.76441173495e-29)
(-0.00200417570367 0.000135376375179 -7.73035988107e-29)
(-0.00198279196467 0.000163268771136 0)
(-0.00195692176411 0.000193055955342 0)
(-0.00192623317183 0.000224987178452 0)
(-0.0018904317241 0.000259368215651 0)
(-0.0018491542995 0.00029669051381 0)
(-0.00180188128356 0.000337722320458 0)
(-0.00174790244487 0.000383546366278 0)
(-0.00168604517051 0.00043576202568 0)
(-0.00161404247934 0.000497033549601 0)
(-0.00152796535185 0.000571044227267 0)
(-0.00142281457683 0.000660627110223 0)
(-0.00129514996562 0.000764791971821 0)
(-0.00114670147434 0.000876772153388 0)
(-0.000984088922257 0.000985754970107 0)
(-0.000813962973374 0.00107644095041 0)
(-0.000645821681966 0.00113068426358 0)
(-0.000491813619488 0.00114483524528 0)
(-0.000358744855424 0.00111848037842 0)
(-0.000250839251362 0.00107530059043 0)
(-8.51194577423e-05 0.000830070637363 0)
(4.51169615843e-05 0.000674182991994 0)
(0.000140963319103 0.000575619629231 0)
(0.00021023328429 0.000480737494807 0)
(0.000247957905558 0.000389374151234 0)
(0.00024242762734 0.000278079441892 0)
(0.000229291070136 0.000185402618903 0)
(0.000238748528643 0.00012830740756 0)
(0.000251127004827 6.98303618901e-05 0)
(0.00025585435011 -1.36657331099e-05 0)
(0.000224599769493 -0.000102907139724 0)
(0.000184284703875 -0.000166077372949 0)
(0.000123349462814 -0.000196836699552 0)
(7.35479562582e-05 -0.0002393064375 0)
(2.48536409217e-05 -0.000266528136359 0)
(-5.69327680791e-05 -0.000823643172136 0)
(-0.000183621689422 -0.00101124554424 0)
(-0.000249434369266 -0.000994004544457 0)
(-0.000211187417533 -0.000694589990478 0)
(-0.000333266851612 -0.000772371838104 0)
(-0.000518428417594 -0.000959185452633 0)
(-0.000569674986494 -0.000925181051523 0)
(-0.000673384792666 -0.000878890446782 0)
(-0.000686930278168 -0.00075205618726 0)
(-0.000865289156574 -0.000731972501312 0)
(-0.000746129905418 -0.000467791749286 0)
(-0.000863295566026 -0.00041614284629 0)
(-0.000943924181923 -0.000411664300729 0)
(-0.00108322098411 -0.000479651237438 0)
(-0.00121815453575 -0.000542599406997 0)
(-0.00129532679848 -0.000513197699211 0)
(-0.00130823167563 -0.000453356881982 0)
(-0.00138667177792 -0.000456464504301 0)
(-0.00146397894315 -0.000469230646458 0)
(-0.00152144257028 -0.000458800482729 0)
(-0.00157291094852 -0.000434936324396 0)
(-0.0016152847124 -0.000405668250972 0)
(-0.00166001815714 -0.000377572587905 0)
(-0.00168737821559 -0.000345438277728 0)
(-0.00171908986142 -0.000299924572879 0)
(-0.00177725584859 -0.000270484211879 0)
(-0.00176066351134 -0.000245606037748 0)
(-0.00184644858965 -0.000220129124787 0)
(-0.00182711647342 -0.000194090656997 0)
(-0.00189637729833 -0.000182186973433 0)
(-0.00188116485796 -0.000160857409789 0)
(-0.00194864966357 -0.000155756922666 0)
(-0.00197734636708 -0.000165086631571 9.1056223725e-29)
(-0.00199909482196 -0.000167342650569 -8.98973393548e-29)
(-0.00201635633368 -0.000149517718049 0)
(-0.00202987164678 -0.00012506393376 0)
(-0.00204059339863 -0.000100463152963 0)
(-0.00204858860638 -7.61975975888e-05 0)
(-0.00205455080673 -5.08794849376e-05 0)
(-0.00205842791227 -2.35932865685e-05 0)
(-0.00205969613234 5.44234070703e-06 0)
(-0.00205792901505 3.52462245028e-05 0)
(-0.00205273240536 6.49470475959e-05 0)
(-0.0020437242175 9.44079527827e-05 0)
(-0.00203065873043 0.000124152263417 0)
(-0.00201334287654 0.000154917783081 0)
(-0.00199149970621 0.000187340090459 0)
(-0.00196475584928 0.000221857375772 0)
(-0.00193275713796 0.000258770554746 0)
(-0.00189522921064 0.000298433552953 0)
(-0.00185187632996 0.000341473576547 0)
(-0.00180224851129 0.000388954411431 0)
(-0.00174555878001 0.000442566621201 0)
(-0.00168021615039 0.000504976554998 0)
(-0.00160326823578 0.000580073986724 0)
(-0.00151031209379 0.000672091498253 0)
(-0.00139664370026 0.000782903979191 0)
(-0.00126049271263 0.000908480803884 0)
(-0.0011064256262 0.00103744660603 0)
(-0.000940973818647 0.00115718943784 0)
(-0.000765516520541 0.00125404045118 0)
(-0.000587013114792 0.00129952007532 0)
(-0.000421888640991 0.00129310634745 0)
(-0.000278145864752 0.00124753865864 0)
(-0.000167578262152 0.00117281991744 0)
(-3.8774821053e-05 0.00103231511271 0)
(0.000125073554032 0.000764141914629 0)
(0.000245591637268 0.000657249019321 0)
(0.000305281333454 0.000532846659648 0)
(0.000318029819852 0.000390515674549 0)
(0.000295105502655 0.000260053239813 0)
(0.000277379142399 0.000181541786031 0)
(0.000279097075957 0.000138378091706 0)
(0.000300813850399 8.71698074723e-05 0)
(0.000319243442296 -1.56705450977e-05 0)
(0.000292591225024 -0.000146271257093 0)
(0.000228398822387 -0.000230899144867 0)
(0.000149036079155 -0.000271578778259 0)
(7.77934210884e-05 -0.000299826471502 0)
(2.34334636982e-05 -0.000316637165389 0)
(-6.66204296324e-05 -0.000964369986555 0)
(-0.000199198728247 -0.00110247985931 0)
(-0.000234731873072 -0.00101386815577 0)
(-0.000217030837838 -0.000760748218373 0)
(-0.000405186071357 -0.000994949150412 0)
(-0.000480514890122 -0.00100955401832 0)
(-0.000540013474884 -0.00100145110965 0)
(-0.00063162615335 -0.000955131606525 0)
(-0.000611442499013 -0.000764926176702 0)
(-0.000767109224186 -0.000742016134762 0)
(-0.000722529307525 -0.000524049650193 0)
(-0.000851960725308 -0.000508770897335 0)
(-0.000931973845851 -0.000518380098722 0)
(-0.00110285239572 -0.000606604829172 0)
(-0.00120374196925 -0.000630543617256 0)
(-0.00121339352008 -0.000551577328072 0)
(-0.0012872768805 -0.000516026542454 0)
(-0.00138078050331 -0.000530590835823 0)
(-0.00144933222596 -0.000534194869215 0)
(-0.00150506495758 -0.000516463355542 0)
(-0.00156505003353 -0.000488434398676 0)
(-0.00161430333858 -0.000451415226086 0)
(-0.00166752129601 -0.000412904676281 0)
(-0.00168948867747 -0.000377558373861 0)
(-0.00168419634086 -0.000338470256101 0)
(-0.00179271130554 -0.00030346548822 0)
(-0.00177282196448 -0.000269858779169 0)
(-0.00179274751324 -0.000244091716622 0)
(-0.00182918223568 -0.000223981951842 0)
(-0.00185383263652 -0.000214409316743 0)
(-0.0019193973771 -0.000199879551815 0)
(-0.0019387403863 -0.000192695014542 0)
(-0.00199205492724 -0.000193664938788 0)
(-0.00200974566452 -0.000186149231679 0)
(-0.00202372178386 -0.000165037009298 0)
(-0.00203776121406 -0.00013824818315 0)
(-0.00204941451054 -0.000110852826675 0)
(-0.00205811609945 -8.36762007318e-05 0)
(-0.0020643223357 -5.57880829228e-05 0)
(-0.00206823072122 -2.61839776641e-05 0)
(-0.00206962193511 5.33859269248e-06 0)
(-0.00206807657505 3.81497648863e-05 0)
(-0.0020630995163 7.14775629958e-05 0)
(-0.00205427613887 0.000105065846294 0)
(-0.0020413273524 0.000139263969955 0)
(-0.0020239348181 0.000174727701814 0)
(-0.00200161762624 0.00021210120712 0)
(-0.0019738757673 0.000251839029125 0)
(-0.00194034394025 0.000294224620053 0)
(-0.00190077079146 0.000339611234438 0)
(-0.0018549140789 0.000388761062159 0)
(-0.00180241684441 0.000443154072624 0)
(-0.0017424809972 0.000505282061465 0)
(-0.00167328523749 0.000578865617851 0)
(-0.0015916518852 0.000668547198576 0)
(-0.00149348654613 0.000778365986434 0)
(-0.0013750348055 0.00090970264228 0)
(-0.00123500284861 0.00105884601863 0)
(-0.00107689007435 0.00120665750301 0)
(-0.000909225950489 0.00133361537861 0)
(-0.000726626481425 0.00144203605911 0)
(-0.00052954277445 0.00148406943112 0)
(-0.000339141562075 0.00146418648713 0)
(-0.00016721170149 0.00139530657039 0)
(-2.63258031614e-05 0.00128629437832 0)
(8.71284380327e-05 0.00116807404652 0)
(0.000231153922449 0.00102963579092 0)
(0.000313548353645 0.000677898377088 0)
(0.000393722611393 0.000544482813756 0)
(0.000398275907338 0.000377028682443 0)
(0.000360951511898 0.000225280069909 0)
(0.000314259066046 0.00015656875873 0)
(0.000296550096703 0.00014817177824 0)
(0.000345559497674 0.000137117278367 0)
(0.000415510340442 9.37088662645e-06 0)
(0.00039311443971 -0.000217455296558 0)
(0.000274617488383 -0.000333141794759 0)
(0.000161400561242 -0.000359969464663 0)
(7.61158907582e-05 -0.000366028930246 0)
(1.95961797065e-05 -0.000354013077402 0)
(-6.29409363453e-05 -0.0010990126122 0)
(-0.000189241839306 -0.00118240423556 0)
(-0.000202821262496 -0.000939202636544 0)
(-0.000253543322546 -0.00087946147936 0)
(-0.000411771958441 -0.00112336808938 0)
(-0.000432666917302 -0.00107744539361 0)
(-0.000517177480409 -0.00107678162744 0)
(-0.000567480940381 -0.000996914477463 0)
(-0.000635766913985 -0.000893179231049 0)
(-0.000665145572551 -0.000724352064078 0)
(-0.000723070464026 -0.000616423599628 0)
(-0.000839938568975 -0.00061320974633 0)
(-0.000918905925089 -0.000628872478098 0)
(-0.00109610977148 -0.000723543601902 0)
(-0.0011906719827 -0.000705980796253 0)
(-0.00118330214066 -0.000606680460806 0)
(-0.0012745150696 -0.000593428959014 0)
(-0.00136480734602 -0.000606523472145 0)
(-0.00143130364226 -0.000598525979803 0)
(-0.00148682980647 -0.000575135866104 0)
(-0.00154233181648 -0.000545085974957 0)
(-0.00160278251089 -0.000508972576718 0)
(-0.00166822583811 -0.000454179015334 0)
(-0.0017134864541 -0.000402088074909 0)
(-0.00168919178571 -0.000370085517185 0)
(-0.00171890907722 -0.000329387718738 0)
(-0.00180742854671 -0.000300008726654 0)
(-0.00179326940952 -0.000279298447571 0)
(-0.00188579666786 -0.000261516814712 0)
(-0.00186011495934 -0.000241411909769 0)
(-0.00188501992102 -0.000233555333577 0)
(-0.00194553239344 -0.000233530036428 0)
(-0.00199750021027 -0.000229351330489 0)
(-0.00201682231855 -0.000207000036182 0)
(-0.00203190797892 -0.000180078858357 0)
(-0.00204664794618 -0.000151391520845 0)
(-0.00205910877507 -0.000121741575584 0)
(-0.00206863048 -9.1735758881e-05 0)
(-0.0020753915729 -6.1056651138e-05 0)
(-0.00207938134173 -2.89663939565e-05 0)
(-0.00208075664827 5.0583648612e-06 0)
(-0.00207942432298 4.08756404611e-05 0)
(-0.00207476243487 7.78491758394e-05 0)
(-0.00206622004532 0.000115583338207 0)
(-0.00205347420044 0.000154332448061 0)
(-0.00203607801869 0.000194772877341 0)
(-0.00201333476351 0.000237575882904 0)
(-0.00198457489944 0.0002831371278 0)
(-0.00194936674576 0.00033162150517 0)
(-0.00190746533323 0.000383312789996 0)
(-0.00185871016578 0.000439090686531 0)
(-0.00180290174351 0.000500902675039 0)
(-0.00173933860589 0.000572054750438 0)
(-0.00166622307349 0.000656953675982 0)
(-0.00158083472228 0.000760017836211 0)
(-0.00148100710538 0.000884626852874 0)
(-0.0013650229978 0.00103707407192 0)
(-0.00122375141721 0.00122108015645 0)
(-0.00105575413565 0.00138341873544 0)
(-0.000895388591926 0.00149608327645 0)
(-0.000710345179661 0.00164890973337 0)
(-0.000478162744322 0.00170829366474 0)
(-0.000241778007322 0.00168524257113 0)
(-2.38160148662e-05 0.00159581936231 0)
(0.000161041561071 0.00145700329188 0)
(0.000302571162661 0.00128554154488 0)
(0.000380195629245 0.00108432610938 0)
(0.000488010897229 0.0009220867557 0)
(0.000478819470046 0.000571956422356 0)
(0.000494973465687 0.000344963865216 0)
(0.00043450558989 0.000144537140681 0)
(0.000316205099562 8.73451241697e-05 0)
(0.00025321486333 0.000163580615706 0)
(0.000368230152057 0.000280220524237 0)
(0.0005867921253 0.000118217207404 0)
(0.000561343361326 -0.000370848334084 0)
(0.00031517263007 -0.000509427285752 0)
(0.000150434363159 -0.000459762601866 0)
(6.15477686178e-05 -0.000439226079136 0)
(9.95725547708e-06 -0.000387278592055 0)
(-4.86844286717e-05 -0.00121030149709 0)
(-0.000142263938274 -0.00125302500066 0)
(-0.000189620382443 -0.000991493423422 0)
(-0.000294534594958 -0.000992155796254 0)
(-0.000360951919498 -0.0010866302914 0)
(-0.000398206133095 -0.00114229739421 0)
(-0.000504112379363 -0.00115604673605 0)
(-0.000523086928741 -0.0010272406295 0)
(-0.000644593897663 -0.00101693110513 0)
(-0.000647417929311 -0.000778762764853 0)
(-0.000730613477042 -0.000707345170382 0)
(-0.000830658348342 -0.000714299642771 0)
(-0.000916302119501 -0.000744112273233 0)
(-0.00107161632815 -0.000830725321703 0)
(-0.0011577498413 -0.00078120701161 0)
(-0.00115681610929 -0.000667150596193 0)
(-0.00126165043913 -0.000673326703551 0)
(-0.00134468810993 -0.000681863176332 0)
(-0.00141055701794 -0.00066297492832 0)
(-0.00147065907757 -0.000633956894287 0)
(-0.00152271869921 -0.0006029225257 0)
(-0.00158440120595 -0.000570771882426 0)
(-0.0016137958868 -0.000502088094071 0)
(-0.00172205450147 -0.000435702309488 0)
(-0.00171920908526 -0.00039117010469 0)
(-0.0017133147189 -0.000371342577166 0)
(-0.0018263229622 -0.000343149297168 0)
(-0.00179407554427 -0.0003071534569 0)
(-0.00182384293001 -0.000290299715393 0)
(-0.00190217411896 -0.000276450467755 0)
(-0.00192171310243 -0.00027329156644 0)
(-0.00197720651075 -0.000276096000513 0)
(-0.00199846457172 -0.000259582941324 0)
(-0.00202142560883 -0.000228791293884 0)
(-0.00204019733956 -0.000196939040915 0)
(-0.00205600575277 -0.000165395709096 0)
(-0.00206935794187 -0.000133297648485 0)
(-0.00207978931092 -0.000100573827232 0)
(-0.00208756574188 -6.69257044388e-05 0)
(-0.0020921030766 -3.19709864044e-05 0)
(-0.00209335212931 4.69704937781e-06 0)
(-0.00209194103267 4.34131902131e-05 0)
(-0.00208764637267 8.39491372936e-05 0)
(-0.0020795777024 0.000125850352909 0)
(-0.00206717958909 0.000169253736111 0)
(-0.00204991980715 0.000214936331568 0)
(-0.0020269152162 0.000263676131406 0)
(-0.00199727250034 0.000315771467442 0)
(-0.00196040875158 0.000371138271772 0)
(-0.00191605982699 0.000429865575938 0)
(-0.0018642141737 0.000492888902106 0)
(-0.00180486411592 0.000562590258419 0)
(-0.00173740455725 0.000642879061499 0)
(-0.00166029830006 0.000738035365461 0)
(-0.00157232016685 0.000850697983612 0)
(-0.00147777435578 0.000984156768817 0)
(-0.0013759871248 0.00116273667955 0)
(-0.00122455231391 0.00141322798285 0)
(-0.0010342513751 0.00157716466857 0)
(-0.000923433287322 0.00164881716464 0)
(-0.000740668282473 0.00195099410597 0)
(-0.000439356477244 0.00200874048598 0)
(-0.000136530494138 0.00193265152334 0)
(0.000134906180552 0.00177092456582 0)
(0.000362359357173 0.00154766682909 0)
(0.000553703978276 0.00129049170795 0)
(0.000614228775296 0.000950030059434 0)
(0.000656305714463 0.000726237229036 0)
(0.000693177682597 0.000483615752382 0)
(0.000683323941671 0.000317741067221 0)
(0.000521727748907 -8.47586220342e-05 0)
(0.000249158646675 -0.000138386250811 0)
(6.84949302646e-05 9.55320427737e-05 0)
(0.000316185273684 0.000599104760682 0)
(0.000935213869858 0.000379573902372 0)
(0.000898688842514 -0.000692241793143 0)
(0.000311317946077 -0.000800057673862 0)
(8.0742600613e-05 -0.000543578992031 0)
(1.20056822744e-05 -0.000527482269803 0)
(-2.15232057312e-05 -0.000393527781592 0)
(-3.66615052194e-05 -0.0012896496125 0)
(-9.62351660935e-05 -0.00131270504518 0)
(-0.000181999116205 -0.0010793701741 0)
(-0.000301596387162 -0.00108282784099 0)
(-0.000332681723796 -0.00108991297177 0)
(-0.000402374405606 -0.00122090878151 0)
(-0.000500192146755 -0.0012304380963 0)
(-0.000473339084659 -0.000998078772837 0)
(-0.000646856292683 -0.00111805279795 0)
(-0.000627540718884 -0.0008289354716 0)
(-0.000728352711775 -0.000789124380786 0)
(-0.000818832252847 -0.000807745909755 0)
(-0.000904900814283 -0.000849435627066 0)
(-0.00104746288692 -0.000922787560504 0)
(-0.00104090379618 -0.000794744078207 0)
(-0.00111136645805 -0.000734449787463 0)
(-0.00123828442422 -0.000763238062045 0)
(-0.00131840831293 -0.000758947647065 0)
(-0.00138612797833 -0.000728921163311 0)
(-0.00145066916449 -0.000693235077388 0)
(-0.00150806723265 -0.000659446398189 0)
(-0.00157720386111 -0.000628534783172 0)
(-0.00157183397888 -0.000550810202266 0)
(-0.00162821547449 -0.000468813381036 0)
(-0.00175074093088 -0.00043285186506 0)
(-0.00171594402086 -0.000404314017935 0)
(-0.00175577108599 -0.000363905389046 0)
(-0.00182266479317 -0.00033574786744 0)
(-0.00182628630452 -0.00032964321824 0)
(-0.00186065251061 -0.000317067948502 0)
(-0.00191076712347 -0.000314876253269 0)
(-0.00198163406582 -0.000314161887625 0)
(-0.00200486158443 -0.000286090322003 0)
(-0.00202757404133 -0.000251062571774 0)
(-0.00204862081467 -0.000215727698229 -8.63840625301e-29)
(-0.0020660218118 -0.00018087195469 8.407378969e-29)
(-0.00208069710997 -0.000145746871627 0)
(-0.00209169919102 -0.00011013535775 0)
(-0.00210000410299 -7.36328137185e-05 0)
(-0.00210576449661 -3.55903189832e-05 0)
(-0.00210764366698 4.1709947044e-06 0)
(-0.00210608074472 4.58836919599e-05 0)
(-0.00210181327211 8.97891141314e-05 0)
(-0.00209426407896 0.000135730050064 0)
(-0.00208246582073 0.000183820696656 0)
(-0.00206561604168 0.000234960777818 0)
(-0.00204267953728 0.000290138868451 0)
(-0.00201251625817 0.000349557196414 0)
(-0.00197430366924 0.000412723276759 0)
(-0.0019277466023 0.000479346551067 0)
(-0.00187303474494 0.000550276013402 0)
(-0.00181029250738 0.000628250379921 0)
(-0.00173879334759 0.000717458836304 0)
(-0.00165704214071 0.000821132619531 0)
(-0.00156678556406 0.000938057977667 0)
(-0.00148971364289 0.00107161782303 0)
(-0.00142206373758 0.0012951419908 0)
(-0.0012282019163 0.00166188872082 0)
(-0.00101689750736 0.00163841914077 0)
(-0.00110789828006 0.00106928172189 0)
(-0.000884417688209 0.000934815075532 0)
(-0.000221342049594 0.000942067230253 0)
(0.000357953328141 0.000938258901108 0)
(0.000911292062528 0.000881779313133 0)
(0.0014920385501 0.000817099269517 0)
(0.00220857073349 0.000739933113096 0)
(0.00270862823643 0.00059703774187 0)
(0.00473172064447 0.000514502016736 0)
(0.00567046090069 -0.000308581225814 0)
(0.00147197068965 -0.000144350363351 0)
(0.0010190465014 -9.40678109745e-05 0)
(0.000236802131355 6.49001186324e-05 0)
(-0.00040891528132 0.000576365250242 0)
(0.000568500272273 0.0016393508968 0)
(0.00197778545564 0.00203939282137 0)
(0.00166252691005 -0.00223757029085 0)
(0.000164858103313 -0.00171358419779 0)
(-9.59149147468e-05 -0.000592886777769 0)
(-7.67035073118e-05 -0.000640152299936 0)
(-0.000103805746307 -0.000291942416168 0)
(-3.97212466498e-05 -0.00136681193046 0)
(-0.000111735794833 -0.00137479047549 0)
(-0.000198765446674 -0.00135736136432 0)
(-0.000254009592572 -0.00115884230354 0)
(-0.000321690674213 -0.00116832825704 0)
(-0.00041264648979 -0.00130237163988 0)
(-0.000496250611359 -0.00129820897483 0)
(-0.000487855523601 -0.00107089336058 0)
(-0.000663174782183 -0.0012010384914 0)
(-0.000615205005999 -0.000886688526728 0)
(-0.000726055687981 -0.000871065507565 0)
(-0.000810524125798 -0.000895512049158 0)
(-0.000894858655817 -0.00094161893958 0)
(-0.00103307293646 -0.00100345035217 0)
(-0.00100561770164 -0.000848072410458 0)
(-0.00110500566708 -0.000825792897357 0)
(-0.00121858607409 -0.000853206123245 0)
(-0.00129370548865 -0.000835727495149 0)
(-0.00136241556585 -0.000796998853707 0)
(-0.00142658454231 -0.000754222812606 0)
(-0.00149057559399 -0.000716092763387 0)
(-0.00157086023731 -0.000677865595334 0)
(-0.0015575103734 -0.000594835863802 0)
(-0.00160755249186 -0.000534575861101 0)
(-0.001754483937 -0.000485798114384 0)
(-0.00172447265167 -0.000428955222816 0)
(-0.00174686978964 -0.000410813019485 0)
(-0.00186047404991 -0.00038269526986 0)
(-0.001847879753 -0.000350952590714 0)
(-0.00187972537404 -0.000360034512958 0)
(-0.00195516365878 -0.000371502287452 0)
(-0.00197996512007 -0.000350934230697 0)
(-0.00200811560676 -0.000313384848723 0)
(-0.00203420072698 -0.000274527410541 0)
(-0.00205749442058 -0.000236060660019 0)
(-0.00207597263196 -0.00019777300085 0)
(-0.00209195602782 -0.0001594704856 0)
(-0.00210510009156 -0.000120635516549 0)
(-0.00211389100159 -8.10196792042e-05 0)
(-0.00211984677827 -3.99976807053e-05 0)
(-0.0021227899339 3.04470214108e-06 0)
(-0.00212183658167 4.81461678742e-05 0)
(-0.00211763996849 9.54749738285e-05 0)
(-0.00211040003637 0.000145216355292 0)
(-0.00209929745563 0.000197780557455 0)
(-0.0020832446346 0.000254389728669 0)
(-0.002060967898 0.000316405085151 0)
(-0.00203101957097 0.000383998147292 0)
(-0.00199214834489 0.000456000974957 0)
(-0.0019440783375 0.000531352695908 0)
(-0.00188749651133 0.000610746117481 0)
(-0.00182223819572 0.000697228851643 0)
(-0.00174697229307 0.000794976765704 0)
(-0.00165893169117 0.000905476084342 0)
(-0.00156649364446 0.00102105034714 0)
(-0.00154062953473 0.00111414607855 0)
(-0.0015722359793 0.00112647836956 0)
(-0.00133893499228 0.000907142241748 0)
(-0.000177662069368 0.000846063078564 0)
(0.00125141678988 0.00157250012072 0)
(0.015588008152 0.00686215927373 0)
(0.0252494524902 0.00662414255767 0)
(0.0359176955494 0.00612596311973 0)
(0.0466572784499 0.00563191111695 0)
(0.0566506472262 0.00512136824227 0)
(0.0655341166333 0.00454887325663 0)
(0.0729262209075 0.00403322287889 0)
(0.0786310313966 0.00281088341646 0)
(0.0828668835854 0.000347564466438 0)
(0.0849653019332 -0.0026131311487 0)
(0.0853318568922 -0.00366021591165 0)
(0.0819048718154 -0.00457269660789 0)
(0.0732653321093 -0.00622268694525 0)
(0.0637296638596 -0.0103582008771 0)
(0.0115535089944 -0.00276184431483 0)
(0.00440994328965 -0.00111307137391 0)
(-0.000941760656644 0.000258485264291 0)
(-0.000811094924021 0.000874908924478 0)
(-0.000245642133576 -0.00115998198926 0)
(-0.000313893054384 -2.34225728319e-05 0)
(-4.23566852873e-05 -0.00144524103479 0)
(-0.000138021846803 -0.00144278066101 0)
(-0.000157988653804 -0.00122666752696 0)
(-0.000203980608579 -0.00123791379704 0)
(-0.000301172009733 -0.001252473065 0)
(-0.000412013660838 -0.00138310303023 0)
(-0.000491923316589 -0.00135700757707 0)
(-0.000514202117285 -0.00115242370573 0)
(-0.000669308678304 -0.00127145619722 0)
(-0.000604890952906 -0.000952663468223 0)
(-0.000723537130569 -0.000956294231792 0)
(-0.000806689643939 -0.000982243113969 0)
(-0.000893733641478 -0.00102974691544 0)
(-0.00102345397697 -0.00107507424821 0)
(-0.0010078646953 -0.000916267705341 0)
(-0.00111335073927 -0.000912995906271 0)
(-0.00120905430688 -0.000934393902638 0)
(-0.00127739834709 -0.000909180224977 0)
(-0.00134425972753 -0.000865428395199 0)
(-0.00140875101712 -0.000818658593225 0)
(-0.00147231925898 -0.000774806040146 0)
(-0.00155590832461 -0.000729558103379 0)
(-0.00157928565971 -0.000654084383403 0)
(-0.001597354615 -0.000588205021871 0)
(-0.00166602837169 -0.000513996611356 0)
(-0.00176366664026 -0.00047391962701 0)
(-0.00174443259363 -0.000453811468854 0)
(-0.00177967425766 -0.000422737149314 0)
(-0.00190495023055 -0.000409238058566 0)
(-0.00193864704492 -0.000409139398047 0)
(-0.00196456007411 -0.000404511019186 0)
(-0.00198953243752 -0.000377993129894 0)
(-0.00201641514591 -0.000340723384843 0)
(-0.00204290502311 -0.000299493577879 0)
(-0.0020664690443 -0.000257589196612 0)
(-0.00208699517442 -0.00021611585757 -8.26545425241e-29)
(-0.00210406426329 -0.00017462471007 8.04644484717e-29)
(-0.00211799979365 -0.000132428492354 0)
(-0.00212898871127 -8.93076245278e-05 0)
(-0.0021355195933 -4.50300341879e-05 0)
(-0.00213876462137 1.18618349529e-06 0)
(-0.00213866648059 4.98272626716e-05 0)
(-0.00213507841489 0.000100893928128 0)
(-0.00212821115568 0.000154377737747 0)
(-0.00211769801569 0.000210901356491 0)
(-0.00210283992488 0.000272540672271 0)
(-0.00208213687813 0.000341655879749 0)
(-0.00205334890915 0.000418325781688 0)
(-0.00201493546638 0.000500035803545 0)
(-0.00196701619026 0.000584759780623 0)
(-0.00191035410816 0.000672930621557 0)
(-0.00184446883472 0.000767838631355 0)
(-0.00176651284793 0.00087469378953 0)
(-0.00167003214656 0.00100302631978 0)
(-0.00155826842249 0.00112895822021 0)
(-0.00145297837676 0.000814166677142 0)
(-0.0011379959463 0.000617049951826 1.13425996991e-28)
(0.0042800972011 0.00457876559165 -2.43588607629e-27)
(0.0166325281525 0.00835654159891 0)
(0.0283109836159 0.0149717868635 0)
(0.039109798054 0.0184458117044 0)
(0.0492356432542 0.0194841244035 0)
(0.0597066610756 0.0193213991602 0)
(0.0702054253344 0.018492900722 0)
(0.0801704690749 0.0171244639044 0)
(0.0892364818901 0.0152355635851 0)
(0.09712432336 0.0128067193664 0)
(0.103627138856 0.00968020103433 0)
(0.108713213256 0.00579243469578 0)
(0.112241296982 0.00162653422544 0)
(0.113496539608 -0.00280508548977 0)
(0.112187629009 -0.00831313067959 0)
(0.107881991981 -0.0158639021721 0)
(0.103717678823 -0.02667536351 0)
(0.0938854361865 -0.0365225534635 0)
(0.0810760079853 -0.0296028769378 0)
(0.0618572193102 -0.0220537759135 0)
(0.00520468657079 -0.00162249171332 0)
(0.000811306402266 0.000516351321913 0)
(-0.00119068281255 0.00151915430301 0)
(-3.92018615475e-05 -0.001527059439 0)
(-0.000128053302655 -0.00152142175514 0)
(-0.000148200788344 -0.00127492687877 0)
(-0.000196331598335 -0.00132814327638 -1.79480271351e-29)
(-0.000297835151078 -0.0013650948923 1.84024178715e-29)
(-0.000407135699437 -0.00145991202635 0)
(-0.000473015069874 -0.00141262130486 0)
(-0.000529567940256 -0.0012442855795 0)
(-0.000605430262461 -0.00120052297641 0)
(-0.000607185612235 -0.00102902308864 0)
(-0.000720632650749 -0.00104780002236 0)
(-0.000805495006914 -0.00107109512119 0)
(-0.000899915610363 -0.00112034897232 0)
(-0.00101827107506 -0.00114397928877 0)
(-0.00100922523153 -0.000986461541137 0)
(-0.00111990294561 -0.000995630524741 0)
(-0.00120280542136 -0.00100785534505 0)
(-0.00126748221775 -0.000977986799413 0)
(-0.0013321287393 -0.000932639963509 0)
(-0.00139601961943 -0.000883663364763 0)
(-0.00145855824363 -0.000835973918889 0)
(-0.00153419445922 -0.00078499625778 0)
(-0.00159383898252 -0.000714077246714 0)
(-0.00160152262709 -0.000634114732906 0)
(-0.0016424443232 -0.000570512930857 0)
(-0.00180137378656 -0.00053289304746 0)
(-0.00176518982999 -0.000481562024752 0)
(-0.00178366122382 -0.000475101211434 0)
(-0.00183382077318 -0.000460418721547 0)
(-0.00192347742757 -0.000454497930028 0)
(-0.00196538795408 -0.000439568491826 0)
(-0.00199583455579 -0.00040733939227 0)
(-0.00202433550348 -0.00036776305488 0)
(-0.0020510537675 -0.000324736024823 0)
(-0.00207774539639 -0.000280524902891 0)
(-0.00209896032471 -0.000235675015418 0)
(-0.00211752218503 -0.000190930754793 0)
(-0.00213226644638 -0.000145450334048 0)
(-0.00214426857221 -9.88365991778e-05 0)
(-0.00215235501011 -5.08876397914e-05 0)
(-0.00215613828374 -1.30957209007e-06 0)
(-0.00215652701033 5.0704757145e-05 0)
(-0.00215395265869 0.000105673990182 0)
(-0.00214801250974 0.000163230074999 0)
(-0.00213805906637 0.000223378545921 0)
(-0.00212389566014 0.000288973144211 0)
(-0.0021051166167 0.000364413825477 0)
(-0.00207931988205 0.000450463097822 0)
(-0.00204444271498 0.000543100308357 0)
(-0.00199864090848 0.000638167121671 0)
(-0.00194327606402 0.000734231545082 0)
(-0.00188095618258 0.000835324669962 0)
(-0.00181094858485 0.000951210612249 0)
(-0.00171927059226 0.00104587434637 0)
(-0.00141541673836 0.000608936459861 0)
(-0.000916776045486 0.000739375744835 0)
(0.0110724006744 0.0094128790852 0)
(0.0237560712321 0.0169813688785 0)
(0.0363973953822 0.022392976993 0)
(0.0487705576311 0.0263260844008 0)
(0.0604517428603 0.0289521448448 0)
(0.0715222921603 0.0298472641633 0)
(0.0823624050533 0.0294071393396 0)
(0.0929124508391 0.0280194776257 0)
(0.10288731093 0.0258469127018 0)
(0.112026313354 0.0229414134326 0)
(0.120116365866 0.0193054294773 0)
(0.126981796077 0.0148874995944 0)
(0.132489687259 0.00964288851005 0)
(0.136516983079 0.00363904146837 0)
(0.138562440323 -0.00317293894034 0)
(0.138732646188 -0.0110574259711 0)
(0.13677833796 -0.0204372126521 0)
(0.133409147132 -0.0313646242662 0)
(0.127383381309 -0.039931127217 0)
(0.116280797417 -0.0434004791226 0)
(0.100378317166 -0.0467062952649 0)
(0.073858994498 -0.0472189323767 0)
(0.0450312270342 -0.0261197399772 0)
(0.000177306425721 0.00101867791396 0)
(-3.59774987376e-05 -0.00160443519959 0)
(-0.000125340809301 -0.00159930291048 0)
(-0.00013908239957 -0.00126569085046 0)
(-0.000195946106167 -0.00141898908146 0)
(-0.000304765832936 -0.00148986932416 0)
(-0.000402156758463 -0.00153178134949 0)
(-0.00045544651054 -0.00147078615719 0)
(-0.000532163824579 -0.00134753313099 0)
(-0.0006024289477 -0.0012383936055 0)
(-0.000625732126206 -0.00110108211162 0)
(-0.000726893677328 -0.00113655157439 0)
(-0.000807278930786 -0.00116073929524 0)
(-0.000907781392026 -0.0012117809894 0)
(-0.00100988384533 -0.0012099212206 0)
(-0.00100284778459 -0.00105766732037 0)
(-0.00111810137788 -0.00107746019932 0)
(-0.00119414993762 -0.00107892484013 0)
(-0.0012591123776 -0.00104430743338 0)
(-0.00132263267965 -0.000998216287664 0)
(-0.00138545149709 -0.00094769466238 0)
(-0.00144780231156 -0.000897859862771 0)
(-0.00151819521319 -0.000845595744872 0)
(-0.00159053237708 -0.000775427842997 0)
(-0.00160427638557 -0.000684962551824 0)
(-0.00163375870188 -0.000624111707054 0)
(-0.0017152464284 -0.000562890630869 0)
(-0.00180263144909 -0.000522192993532 0)
(-0.00180697105122 -0.000509751801013 0)
(-0.00184877348311 -0.000513713494593 0)
(-0.00193213205805 -0.000514991195298 0)
(-0.00195931527321 -0.000480965779715 0)
(-0.0019949089911 -0.000439795290827 0)
(-0.00202567384224 -0.000396497755473 0)
(-0.0020573715911 -0.000352417374675 0)
(-0.00208583302667 -0.000305521969948 0)
(-0.00211149551014 -0.000257110922349 0)
(-0.00213093793007 -0.000208494360634 7.88691237683e-29)
(-0.00214768069351 -0.000159694719227 -7.67299229817e-29)
(-0.00216062073412 -0.000109479192376 0)
(-0.00216993579591 -5.78796379345e-05 0)
(-0.00217511613938 -4.72394326576e-06 0)
(-0.00217615411596 5.09224249295e-05 0)
(-0.00217352042559 0.000109930272627 0)
(-0.00216849901745 0.000171804590088 0)
(-0.00215920366997 0.000234808857189 0)
(-0.00214598097054 0.000302423887586 0)
(-0.00213040577194 0.000384020242068 0)
(-0.00211027249575 0.000481390437617 0)
(-0.00208091753574 0.000585088442312 0)
(-0.0020380311646 0.000690998577815 0)
(-0.00198461413411 0.00079246982091 0)
(-0.00193022480436 0.000899028774042 0)
(-0.00182699762775 0.000941337482831 0)
(-0.00140522153245 0.000452241174225 0)
(-0.000921460016239 0.00257626512547 0)
(0.0160884490334 0.0149791679282 0)
(0.0295881394977 0.0235459622187 0)
(0.0430463642229 0.0301414989798 0)
(0.056202872677 0.0350735635108 0)
(0.0689279078628 0.038513043008 0)
(0.0811140618662 0.0405775481427 0)
(0.0927666902204 0.0411490327423 0)
(0.103984793675 0.040384054131 0)
(0.114744870877 0.0385103651429 0)
(0.124901259127 0.0356634301386 0)
(0.134282541475 0.0318974690762 0)
(0.142727973425 0.0272184541623 0)
(0.150086629998 0.0215962422599 0)
(0.156204326805 0.0149890520497 0)
(0.160959027215 0.00736778630597 0)
(0.163853961814 -0.00130810982796 0)
(0.165125920307 -0.0111266071212 0)
(0.164401114004 -0.0223062545184 0)
(0.161537845169 -0.0346976942889 0)
(0.156020254468 -0.0468880739354 0)
(0.145933334291 -0.057832003689 0)
(0.129387769303 -0.0678451224266 0)
(0.102500825548 -0.0735652659546 0)
(0.0646475648744 -0.0685930527896 0)
(0.0191968440843 -0.0662070095931 0)
(-3.0920528075e-05 -0.0016751462083 0)
(-0.000107478968092 -0.00167198627784 0)
(-0.000127634624951 -0.00125665469362 0)
(-0.000215385038457 -0.00150394533237 0)
(-0.000320730139225 -0.00159186148376 0)
(-0.000404519852682 -0.00159904080698 0)
(-0.000447044390546 -0.00151608003707 0)
(-0.000550578555643 -0.00148107118067 0)
(-0.000599965752908 -0.00127639659465 0)
(-0.000639825249969 -0.00116838398389 0)
(-0.000732688334129 -0.00121975428457 0)
(-0.000805813405207 -0.00124839977247 0)
(-0.000911290842822 -0.00129890361544 0)
(-0.00096773390357 -0.00123916941616 0)
(-0.000995310479735 -0.0011356211143 -1.29498584041e-28)
(-0.00110560710883 -0.00115942348107 1.35283456045e-28)
(-0.00117967491201 -0.00114964299083 0)
(-0.00124552615867 -0.00110957926697 0)
(-0.00131212723762 -0.00106397840711 0)
(-0.0013742642414 -0.00101138772176 0)
(-0.00143697995061 -0.000959564866336 0)
(-0.00150379359695 -0.000906457299663 0)
(-0.0015803747669 -0.000836114899068 0)
(-0.00160100511651 -0.000735302133005 0)
(-0.00163673569699 -0.000673171537916 0)
(-0.00168411095575 -0.00062543472099 0)
(-0.00184139564284 -0.000603686010105 0)
(-0.0018575519704 -0.000565647245741 0)
(-0.00190628985603 -0.000565536390256 0)
(-0.00193813408962 -0.000552171162015 0)
(-0.00196530518468 -0.000517808119388 0)
(-0.00199528791878 -0.000473889969954 0)
(-0.00202913673999 -0.000428386477854 0)
(-0.00206245880874 -0.000383396290563 0)
(-0.0020939066903 -0.000333191863659 0)
(-0.00211907432209 -0.000280224864507 0)
(-0.00214396593797 -0.000228617655917 0)
(-0.00216273484459 -0.000175991803771 0)
(-0.00217787322692 -0.000121736788757 0)
(-0.00218929272477 -6.5937684802e-05 0)
(-0.00219469309587 -8.82995923995e-06 0)
(-0.0021962760225 5.02658822896e-05 6.94016868019e-29)
(-0.0021945780444 0.000112788322541 -6.75784963633e-29)
(-0.0021918704291 0.000179739720808 0)
(-0.00218453238284 0.000249928270848 0)
(-0.00216022960696 0.000322059126139 0)
(-0.00212556369753 0.000401058741819 0)
(-0.00210797432562 0.00049566144001 0)
(-0.00210995521715 0.00061291265454 0)
(-0.00207716328332 0.000741107252498 0)
(-0.00203160062653 0.000849691653247 0)
(-0.00191448693034 0.000896312350108 0)
(-0.00153854609084 0.000370601469911 0)
(0.00149570554563 0.00405677987648 0)
(0.0193841420834 0.0188639182336 0)
(0.0340229976592 0.0292710398382 0)
(0.0481440595252 0.0373648625397 0)
(0.0620089082573 0.0436057643898 0)
(0.0755154821344 0.0481773412871 0)
(0.0885757356568 0.0511794118809 0)
(0.101133462067 0.0527017421978 0)
(0.113171823325 0.0527846366064 0)
(0.124708128005 0.0515315903827 0)
(0.135723870547 0.0490811299357 0)
(0.146141114158 0.0455340359937 0)
(0.15585277692 0.0409368056236 0)
(0.164745516197 0.0352921356482 0)
(0.172702804175 0.028567698006 0)
(0.179599157274 0.0207059701826 0)
(0.185288069577 0.0116271866241 0)
(0.18962139856 0.00129136106962 0)
(0.192103870707 -0.0104129932373 0)
(0.192751128705 -0.0236788362186 0)
(0.191062644452 -0.038568364465 0)
(0.1863163988 -0.0547390677481 0)
(0.176807374291 -0.0717643702315 0)
(0.160045443248 -0.089861560881 0)
(0.131669706593 -0.108435295106 0)
(0.0901650868073 -0.127132821746 0)
(0.00330407182632 -0.0154491909886 0)
(-2.69050009446e-05 -0.00173672299788 0)
(-8.80199210034e-05 -0.00173344421458 0)
(-0.000127582339898 -0.00133656080838 0)
(-0.000245569366611 -0.00163391687156 0)
(-0.000333462572452 -0.00167609690133 0)
(-0.000406973726749 -0.00166577706231 0)
(-0.000445369637729 -0.00155934363366 0)
(-0.000556635304208 -0.00158211497958 0)
(-0.000588367087504 -0.00132243221018 0)
(-0.000642761737753 -0.00123051407476 0)
(-0.000733410762734 -0.00129682916429 0)
(-0.000799133581478 -0.0013300114007 0)
(-0.000908613783822 -0.0013832333426 0)
(-0.000921712236943 -0.00125370146067 0)
(-0.000993390898444 -0.00121315510467 0)
(-0.00109232894893 -0.00123951387271 0)
(-0.00116552699094 -0.00122112365362 0)
(-0.00122137833771 -0.00116647769038 0)
(-0.00129876092003 -0.00112983750485 0)
(-0.00136086328235 -0.00107537789778 0)
(-0.00142515407416 -0.00102151682026 0)
(-0.00149101003283 -0.000968284118429 0)
(-0.00156726585939 -0.000896255205586 0)
(-0.00159376811494 -0.000788714094842 0)
(-0.00163858396015 -0.000725213943709 0)
(-0.00166347159209 -0.000681486145033 0)
(-0.00174876043362 -0.000648235924747 0)
(-0.00180792186226 -0.000609892333354 0)
(-0.00186039736174 -0.000599461623231 0)
(-0.00193085043917 -0.000591779175869 0)
(-0.00196522060204 -0.00055352514943 0)
(-0.00198766956106 -0.000507266106874 0)
(-0.0020331785161 -0.000464929092807 0)
(-0.0020675910022 -0.000416930338894 0)
(-0.00209408612577 -0.000361646747821 0)
(-0.00212886487218 -0.000306723016096 0)
(-0.00215508552094 -0.000251613404441 0)
(-0.00217633559294 -0.000194714421013 7.47524842322e-29)
(-0.00219362971251 -0.000136297657508 -7.26317302651e-29)
(-0.00220756222129 -7.60604801211e-05 0)
(-0.00221703461834 -1.43728279219e-05 0)
(-0.00221963040443 4.89916137189e-05 0)
(-0.00221724424987 0.000116661584266 0)
(-0.00220727619177 0.000191959746502 0)
(-0.00218845452871 0.000271706500097 0)
(-0.00215784758698 0.000344948093178 0)
(-0.00213503204135 0.000415080106969 0)
(-0.00213928521564 0.000501853880109 0)
(-0.00213884089366 0.000624177134228 0)
(-0.00210596491705 0.000797182737013 0)
(-0.00200904676501 0.000883463926404 0)
(-0.00154442484494 0.000295613338601 0)
(0.00158936310529 0.00543655453506 0)
(0.0206283443551 0.0219334104236 0)
(0.0363817194895 0.0340143840554 0)
(0.0514655623916 0.0438733172573 0)
(0.0660905620647 0.0516282949034 0)
(0.0803193669129 0.057495646362 0)
(0.094117474226 0.0616298450145 0)
(0.107436855809 0.0641460408604 0)
(0.120247588269 0.0651474577123 0)
(0.132540500207 0.0647189840683 0)
(0.14431992999 0.0629524375814 0)
(0.155577207894 0.0599452296007 0)
(0.166275012776 0.0557710151118 0)
(0.176354634233 0.05046359313 0)
(0.185746328917 0.044016666384 0)
(0.194371252219 0.0363872117931 0)
(0.202136999745 0.0274993126785 0)
(0.208918716275 0.0172478527034 0)
(0.214651679356 0.00551467864596 0)
(0.218747215431 -0.00792159106463 0)
(0.221322389647 -0.0232563311682 0)
(0.221766640459 -0.0408198298565 0)
(0.219293444834 -0.0608745633249 0)
(0.212506151724 -0.0838298790228 0)
(0.19934507336 -0.110663238827 0)
(0.176686893565 -0.142252412516 0)
(0.141113525324 -0.17885213674 0)
(0.0836885439575 -0.175393658272 0)
(-2.58363360701e-05 -0.001793336814 0)
(-8.19966875018e-05 -0.00178835943377 0)
(-0.000135838054077 -0.00142507615271 0)
(-0.0002624786891 -0.00174477350143 0)
(-0.000328416378148 -0.00174499210721 0)
(-0.000395230032918 -0.00173297234505 0)
(-0.000440377692014 -0.00160856284003 0)
(-0.000553253301408 -0.00165811141884 0)
(-0.000575342785977 -0.00138133312684 0)
(-0.00064046867543 -0.00129459606734 0)
(-0.00073299487605 -0.00137147966015 0)
(-0.000795293475908 -0.00140618222872 0)
(-0.000903104280527 -0.00146170268044 0)
(-0.000925459115841 -0.00132456153473 0)
(-0.00100008705828 -0.00128884111804 0)
(-0.00109049925805 -0.00131589134092 0)
(-0.00115884431023 -0.00129246553784 0)
(-0.0012111318793 -0.00123177193919 0)
(-0.00128654708343 -0.00119496902398 0)
(-0.00134753697694 -0.00113843718863 0)
(-0.0014109134278 -0.00108224587262 0)
(-0.00148051472483 -0.00103258188796 0)
(-0.00155125044894 -0.00095636830918 0)
(-0.00158436898307 -0.000844258779536 0)
(-0.00164184668402 -0.000776533699704 0)
(-0.00166353456805 -0.000726795835081 0)
(-0.00172925458547 -0.000703217636381 0)
(-0.00180648280277 -0.000681942555209 0)
(-0.0018953620138 -0.000671299906431 0)
(-0.00191914158682 -0.000634967384839 0)
(-0.00196003294852 -0.000588590145446 0)
(-0.00198535343265 -0.000540058084165 0)
(-0.00201953583152 -0.000496627286029 0)
(-0.00205491067305 -0.000450143171833 0)
(-0.00209152388188 -0.000397104316207 0)
(-0.00213501012582 -0.000338706600149 0)
(-0.00216528773645 -0.000277510663528 0)
(-0.00218894214059 -0.000215596000503 0)
(-0.00220860312517 -0.000153245487384 0)
(-0.00222446065655 -8.9128957356e-05 0)
(-0.00223713678258 -2.22359693783e-05 6.8487487532e-29)
(-0.00224184034953 4.78924591913e-05 -6.62665891928e-29)
(-0.00223655745604 0.000125511004516 0)
(-0.00221489536614 0.000210973067957 0)
(-0.0021963900242 0.000292698184273 0)
(-0.00219084410515 0.000361454965772 0)
(-0.00218146795905 0.000422193929886 0)
(-0.00218671224031 0.000506413287271 0)
(-0.00218199391014 0.000651210508663 0)
(-0.0020842528374 0.000884481685229 0)
(-0.00153189177765 0.000284487334407 0)
(-0.000297387290186 0.00499625088492 0)
(0.0205914812043 0.0242873804795 0)
(0.0370326129037 0.0380982620623 0)
(0.0529477080869 0.0495788837636 0)
(0.0683934554018 0.0589352851015 0)
(0.0833533867914 0.0662508662335 0)
(0.0978316731292 0.0716603425048 0)
(0.111815747491 0.075305729367 0)
(0.125288758892 0.0773139719561 0)
(0.138245111283 0.0777986172759 0)
(0.150691659179 0.0768589131005 0)
(0.162641850438 0.0745848916908 0)
(0.174104007367 0.0710561053636 0)
(0.185072679848 0.0663288021413 0)
(0.195529098182 0.0604249564693 0)
(0.205444946365 0.0533281748841 0)
(0.214782928175 0.0449823428454 0)
(0.223492811685 0.0352895321608 0)
(0.231492115744 0.0241058204072 0)
(0.238769703365 0.0112225480423 0)
(0.244756125017 -0.00364988374479 0)
(0.249779923394 -0.0206369402582 0)
(0.253306833716 -0.0404062820526 0)
(0.254694465106 -0.0636980782137 0)
(0.252928180938 -0.091637600006 0)
(0.246221769707 -0.126226691824 0)
(0.231063128646 -0.170684365111 0)
(0.196079483395 -0.231842094546 0)
(0.134340443449 -0.317420895128 0)
(-2.60493668548e-05 -0.00184813294596 0)
(-8.26900160269e-05 -0.0018422577952 0)
(-0.000149368747269 -0.00153983135661 0)
(-0.000270009656865 -0.001830136186 0)
(-0.000315626310377 -0.00180426371229 0)
(-0.000374208143644 -0.00179910110925 0)
(-0.000441705759101 -0.00171020950558 0)
(-0.000535109049861 -0.0017145143761 0)
(-0.000561349670948 -0.0014533153245 0)
(-0.000636637726565 -0.00136215576857 0)
(-0.000732523731692 -0.00144519867209 0)
(-0.000793179061071 -0.0014802258752 0)
(-0.000898519599899 -0.00153519753094 0)
(-0.000926784463297 -0.00139206837737 0)
(-0.00100365562196 -0.00136057968352 0)
(-0.00109054524197 -0.00138641177732 0)
(-0.00115648010066 -0.0013602119608 0)
(-0.00120439749525 -0.00129546888786 0)
(-0.00127828177356 -0.00126093506545 0)
(-0.00133605710142 -0.001200511914 0)
(-0.00139314764689 -0.00113914445741 0)
(-0.00146773462418 -0.00109611321593 0)
(-0.00152933101007 -0.00101607832349 0)
(-0.00157019025057 -0.000903548076898 0)
(-0.00163727045038 -0.000830901527213 0)
(-0.00166134058306 -0.000774153379368 0)
(-0.00172673693608 -0.000759697741165 0)
(-0.00180115580945 -0.000754267004596 0)
(-0.00189519169958 -0.000732263173063 0)
(-0.00192925818972 -0.000676655965813 0)
(-0.00195214648062 -0.000622943650675 0)
(-0.00199728617166 -0.000581366918169 0)
(-0.00203724191998 -0.000536381122733 0)
(-0.00207007384458 -0.000485130769341 0)
(-0.00208626230239 -0.000431640955378 0)
(-0.00213165645561 -0.000374312880372 0)
(-0.00216849727388 -0.000308112621468 0)
(-0.00219977021339 -0.000240923613595 0)
(-0.00222402993225 -0.000172868289277 0)
(-0.00224124433615 -0.000104061975086 0)
(-0.00225526230706 -3.22560086641e-05 0)
(-0.00226429340091 4.79637248084e-05 0)
(-0.00224753190043 0.000139971894743 0)
(-0.00222103704636 0.000231003108919 0)
(-0.00221580750918 0.000307845298951 0)
(-0.00220711992861 0.000370702586147 0)
(-0.00219071387738 0.000434045628693 0)
(-0.00216555695687 0.000519412093927 0)
(-0.00212504971627 0.000531527984679 0)
(-0.00168439606142 0.000402703980126 0)
(-0.0038040149319 0.00375072085993 0)
(0.0196388940859 0.0254569413608 0)
(0.036431392422 0.0410465608399 0)
(0.0528897168925 0.0543388285909 0)
(0.0690151651838 0.0653798782417 0)
(0.0846689139769 0.0742560984054 0)
(0.0997957123208 0.0810740699556 0)
(0.114383840662 0.0859703402416 0)
(0.128432491702 0.0890920621715 0)
(0.141947898301 0.0905774949689 0)
(0.154946461854 0.0905504376708 0)
(0.167453719321 0.0891184303957 0)
(0.179500028061 0.0863724523602 0)
(0.19111448286 0.0823846703406 0)
(0.202320214793 0.0772018300809 0)
(0.213133655523 0.070838146918 0)
(0.223566219209 0.0632704760471 0)
(0.23362554159 0.0544345058735 0)
(0.243315223182 0.0442195510551 0)
(0.252633822917 0.0324602147117 0)
(0.261574634922 0.0189121007285 0)
(0.270263789993 0.00334907140416 0)
(0.278007509307 -0.0147201629032 0)
(0.285263465081 -0.0358448667022 0)
(0.291723960381 -0.0610570535468 0)
(0.297212593159 -0.091833037354 0)
(0.301669948758 -0.130692385572 0)
(0.306154137493 -0.181965907011 0)
(0.315140353853 -0.253732962567 0)
(0.34000853888 -0.356624134203 0)
(-2.56309575538e-05 -0.00190192907937 0)
(-8.63837789217e-05 -0.00190045481347 0)
(-0.000164089726297 -0.00165335066704 0)
(-0.000271447981733 -0.00189682151586 0)
(-0.000297607950215 -0.00184947049832 0)
(-0.000353530148883 -0.0018628543702 0)
(-0.000435158977877 -0.00181042207101 0)
(-0.000496893513688 -0.00174192408586 0)
(-0.000552092624707 -0.00156109055175 0)
(-0.000632441121866 -0.00144123185689 0)
(-0.000729882166848 -0.00151757508727 0)
(-0.000789369512779 -0.00155276797407 0)
(-0.00089095603821 -0.00160695030237 0)
(-0.000921340686838 -0.00146189667075 0)
(-0.00100182208239 -0.00143293457373 0)
(-0.00108708382291 -0.00145404359176 0)
(-0.00115288652575 -0.00142416363784 0)
(-0.00119311644731 -0.00135531409859 0)
(-0.00126939860015 -0.00132767867901 0)
(-0.00132461434855 -0.00126130032157 0)
(-0.00137064373202 -0.00119044371079 0)
(-0.00145081282283 -0.00115595218278 0)
(-0.0015072129929 -0.00107747935985 0)
(-0.00155137610851 -0.000966279520178 0)
(-0.00162558703042 -0.000889528124858 0)
(-0.00166083159833 -0.000829553756073 0)
(-0.00172000118631 -0.000814490388752 0)
(-0.00179458123491 -0.00081806935834 0)
(-0.00183677360788 -0.000778119445265 0)
(-0.00191849310998 -0.000725291230018 0)
(-0.00195056172014 -0.000661002249528 0)
(-0.0019791191276 -0.000611613625642 0)
(-0.00199986458241 -0.000567337603918 0)
(-0.00206825068365 -0.000524277347149 0)
(-0.0021028988238 -0.00046832559623 0)
(-0.00212704085033 -0.000408100664481 0)
(-0.00217017649789 -0.000342340917466 0)
(-0.00220191356394 -0.000270750282615 0)
(-0.00223333794855 -0.000197396385259 0)
(-0.00225813373955 -0.000122316616447 6.70154662502e-29)
(-0.00227619160445 -4.22085098525e-05 -6.47338813109e-29)
(-0.00227397797351 5.31431599587e-05 0)
(-0.00224373024598 0.00015595897585 0)
(-0.0022354513906 0.00024737885592 0)
(-0.00223410015846 0.000328029236666 0)
(-0.00220582816518 0.000407594099254 0)
(-0.00213044193183 0.00049924988182 0)
(-0.00194380549549 0.000553308975723 0)
(-0.00188521789392 0.000447065180892 0)
(-0.00142604345695 -0.000161977297289 0)
(0.0174092887022 0.0232918186822 0)
(0.0346892867968 0.0418702148045 0)
(0.0515029817716 0.0576231840116 0)
(0.0681305451488 0.0706986249228 0)
(0.0843826697181 0.0813279809659 0)
(0.100108029353 0.0896935234708 0)
(0.115254882812 0.0959617384929 0)
(0.129817613285 0.100300042429 0)
(0.143810238011 0.102872236217 0)
(0.157259270736 0.103829432633 0)
(0.170201626957 0.103305356352 0)
(0.182682152791 0.101414196849 0)
(0.194750290564 0.0982491571539 0)
(0.206456568092 0.0938802801403 0)
(0.2178501768 0.088350539482 0)
(0.228978731128 0.0816712006376 0)
(0.239889848905 0.0738175872079 0)
(0.250633397198 0.0647248184801 0)
(0.261263703207 0.0542821407489 0)
(0.271842386669 0.0423243230582 0)
(0.282429992169 0.0286185496915 0)
(0.293255549932 0.012843027849 0)
(0.303928064064 -0.00559737669933 0)
(0.315189861817 -0.0268445306593 0)
(0.327172148973 -0.0520048208734 0)
(0.340401748134 -0.082428793561 0)
(0.35613350639 -0.120003349969 0)
(0.377066774844 -0.167458824202 0)
(0.406556252495 -0.228285407337 0)
(0.46534518509 -0.298214007385 0)
(-2.45731563027e-05 -0.00194776000233 0)
(-8.83283332262e-05 -0.00196358237767 0)
(-0.000175066903251 -0.00176259890644 0)
(-0.000261447509828 -0.00192642657494 0)
(-0.000278221252961 -0.00186958506324 0)
(-0.000339522773163 -0.00192337646183 0)
(-0.000417406381225 -0.00188644835272 0)
(-0.000454957203748 -0.00174115013975 0)
(-0.000547759364486 -0.00166193890524 0)
(-0.000628059532435 -0.0015177827584 0)
(-0.000724299702497 -0.00158612209238 0)
(-0.000782960346069 -0.00162328852005 0)
(-0.000879868560963 -0.00167631728669 0)
(-0.000911205614052 -0.00153299376644 0)
(-0.000993623378905 -0.00150713428672 0)
(-0.00107928103077 -0.0015215062826 0)
(-0.00113586388448 -0.00147687361909 0)
(-0.0011734436502 -0.00141032585164 -1.0732694431e-28)
(-0.00125739940558 -0.00139582188802 1.09894304182e-28)
(-0.0013103488037 -0.00131985306501 0)
(-0.0013447709616 -0.00123581946983 0)
(-0.00143051891295 -0.00121035247551 0)
(-0.00149613771693 -0.00114099667798 0)
(-0.00153201997597 -0.00102891373102 0)
(-0.00161037506973 -0.00095093002883 0)
(-0.00166064381152 -0.000889599880978 0)
(-0.0017106872068 -0.000865576712011 0)
(-0.00179877738521 -0.000874668909571 0)
(-0.00181509041499 -0.000830753617289 0)
(-0.00188927991817 -0.00077744623603 0)
(-0.00193487505488 -0.000703909400245 0)
(-0.00200639180276 -0.000655551748018 0)
(-0.00202422708228 -0.000610172888339 0)
(-0.00204143358144 -0.00056033389261 0)
(-0.00209468639388 -0.000507527364009 0)
(-0.00213268509326 -0.000445753438107 0)
(-0.00217111352481 -0.000377579710834 0)
(-0.00220796412585 -0.00030327157794 0)
(-0.00223826265655 -0.000226125520318 0)
(-0.00226966197414 -0.00014428547477 0)
(-0.00228794129099 -4.76836116542e-05 0)
(-0.00226342438939 6.38949539102e-05 0)
(-0.00224591657549 0.000168816640273 0)
(-0.00224820441342 0.000263104291865 0)
(-0.00223369762346 0.000365854306782 0)
(-0.0021743215386 0.000482042609611 0)
(-0.00201454643426 0.000549203292012 0)
(-0.00197526703224 0.000466578762044 0)
(-0.00198752319856 5.99111172027e-05 0)
(0.0106869037811 0.0190360582739 0)
(0.030425902899 0.0407039412304 0)
(0.0484290737622 0.0592859293205 0)
(0.0657343840648 0.0746879129807 0)
(0.082572003655 0.0872821508343 0)
(0.0988636760197 0.0973557741047 0)
(0.114538294375 0.105123849303 0)
(0.129576332114 0.11078412813 0)
(0.143991502638 0.114527865689 0)
(0.157817085673 0.116535219572 0)
(0.171099698521 0.116969458188 0)
(0.183895859009 0.115973321271 0)
(0.196269178448 0.113667041066 0)
(0.208287794432 0.110146992629 0)
(0.220022334881 0.105484152079 0)
(0.231544980058 0.0997218239326 0)
(0.242930135459 0.0928728087824 0)
(0.254256740723 0.0849163642162 0)
(0.265611946856 0.0757947285648 0)
(0.277096233009 0.0654084040782 0)
(0.288830835318 0.0536090331392 0)
(0.300969817099 0.0401889752647 0)
(0.313711799729 0.0248539699067 0)
(0.327573422909 0.00735431416734 0)
(0.342125057629 -0.0131371569147 0)
(0.358710627252 -0.0366453331026 0)
(0.377973317665 -0.0642423012289 0)
(0.401312669443 -0.0968945898294 0)
(0.431432386812 -0.135399862071 0)
(0.469155927686 -0.180271079793 0)
(0.542568375691 -0.22675612801 0)
(-2.71060999023e-05 -0.00198543222093 0)
(-9.08709470522e-05 -0.00202961799036 0)
(-0.000171961293093 -0.00186408973163 0)
(-0.000243127023226 -0.00191834187189 0)
(-0.000282086489973 -0.00191582407457 -1.33636745431e-29)
(-0.000344590332335 -0.00197797234824 1.40259465307e-29)
(-0.000415564248731 -0.00196392685624 0)
(-0.000452222401367 -0.00179782191353 0)
(-0.000572230854673 -0.00183029702464 0)
(-0.000619856492521 -0.00159968047763 0)
(-0.000715702608862 -0.00165026631964 0)
(-0.00077522040324 -0.00169183759134 0)
(-0.000867115216176 -0.00174284825262 0)
(-0.000899437376235 -0.00160388019447 0)
(-0.000980552148512 -0.00158154283325 0)
(-0.00106847662029 -0.0015912260881 0)
(-0.00109886662264 -0.0015014199666 0)
(-0.00115616086851 -0.00146099226398 0)
(-0.00125013381632 -0.0014641368944 0)
(-0.00129464502244 -0.0013729970542 0)
(-0.00133548096711 -0.00128884419311 0)
(-0.00141907460809 -0.00126122966635 0)
(-0.00151297455176 -0.00121393711104 -1.06495572574e-28)
(-0.00153822619692 -0.00108947792114 0)
(-0.00160549925923 -0.00100957059569 0)
(-0.00166528208908 -0.000949685745936 0)
(-0.00170943431977 -0.000917593079055 0)
(-0.00180249844186 -0.000924817979689 0)
(-0.00181940906842 -0.00088058860192 0)
(-0.00187181747202 -0.000827898571742 0)
(-0.00191705382084 -0.000759855472349 0)
(-0.00200226007398 -0.000702006873946 0)
(-0.00203182115126 -0.000639862084696 0)
(-0.00206006975451 -0.000595983822153 0)
(-0.00208301121546 -0.000544739302419 0)
(-0.00212070501269 -0.000484904647335 0)
(-0.00216421236509 -0.000416661776268 0)
(-0.00220867108226 -0.000339361670811 0)
(-0.00224635463529 -0.000257345051442 0)
(-0.00227770056061 -0.000163267565479 0)
(-0.00227256095446 -4.56512718614e-05 0)
(-0.00224977251032 7.47445908015e-05 0)
(-0.00224622489058 0.000179642548083 0)
(-0.0022432008424 0.000285922517151 0)
(-0.00220962991965 0.000422925112989 0)
(-0.00209904078469 0.000535076852686 0)
(-0.00201360370694 0.00040635967579 0)
(-0.00236023424552 0.00023180635084 0)
(0.000222778162413 0.0134017186723 0)
(0.0244845776492 0.0383972031186 0)
(0.0435884331642 0.0593033264586 0)
(0.0617769370184 0.0771259868026 0)
(0.0792978778011 0.0919041255262 0)
(0.0961601263353 0.103879797026 0)
(0.112345927211 0.113303296002 0)
(0.127837739397 0.120407291458 0)
(0.142644032035 0.125415654076 0)
(0.15679966942 0.128541268402 0)
(0.170358031727 0.129980200468 0)
(0.183385036308 0.12990722259 0)
(0.195955358021 0.12847323704 0)
(0.208149746712 0.125804016629 0)
(0.220053104807 0.121999559806 0)
(0.231753442264 0.11713349602 0)
(0.243341980818 0.111252182178 0)
(0.25491467825 0.104373438801 0)
(0.266575304717 0.0964850106892 0)
(0.278440146086 0.087542670777 0)
(0.290644647177 0.0774676876264 0)
(0.303352819326 0.0661433794786 0)
(0.316771083857 0.0534107889766 0)
(0.331166806049 0.0390646148271 0)
(0.346936589396 0.022843466159 0)
(0.364631407726 0.00444962631485 0)
(0.384436587393 -0.0167767790753 0)
(0.407874476721 -0.0404647715956 0)
(0.435975925174 -0.0671578406865 0)
(0.470961648651 -0.0969470479523 0)
(0.512441257106 -0.129158379548 0)
(0.587885110635 -0.160976749767 0)
(-3.31350962678e-05 -0.00204940112423 0)
(-9.54589579128e-05 -0.00209258466946 0)
(-0.000158340317381 -0.00195515631028 0)
(-0.000235803222348 -0.001984574381 0)
(-0.00030006846354 -0.00198283211283 0)
(-0.000357647049805 -0.00202717613798 0)
(-0.000425708604447 -0.00202889586461 0)
(-0.000464466691874 -0.00184947787974 0)
(-0.00056630734292 -0.00190131691156 0)
(-0.000603495797256 -0.0016813895574 0)
(-0.00070156713061 -0.00171671646349 0)
(-0.0007661443887 -0.00176048494096 0)
(-0.000854415236809 -0.00180715846756 0)
(-0.000889297168595 -0.00167451532541 0)
(-0.000970440203139 -0.00165461934663 0)
(-0.00105811195542 -0.00166093453715 0)
(-0.00109780137305 -0.00156892168405 0)
(-0.00116432311949 -0.0015304482684 0)
(-0.00125923483735 -0.00153301111208 0)
(-0.00129066262978 -0.00142333298407 0)
(-0.00135829725572 -0.00135970963121 0)
(-0.00145427434945 -0.00133546461053 0)
(-0.00152322685978 -0.00126895287364 1.02581669232e-28)
(-0.00161937108707 -0.00119028542027 0)
(-0.00163434272998 -0.00106396531573 0)
(-0.00169683259818 -0.00100232783797 0)
(-0.00172792175318 -0.000965938125717 0)
(-0.0018155016662 -0.000969809985119 0)
(-0.00183207472431 -0.000923635461142 0)
(-0.00187618952711 -0.000873933586959 0)
(-0.00191233189662 -0.000811866773839 0)
(-0.00196640501435 -0.000747366731703 0)
(-0.00204388065259 -0.000688191345402 0)
(-0.0020738796358 -0.000629060231446 0)
(-0.00209383123991 -0.000574223393148 0)
(-0.00211652358258 -0.000519587124361 0)
(-0.00215230111198 -0.00045711776014 0)
(-0.00219678609163 -0.000379738738862 0)
(-0.0022476237861 -0.000288731125298 0)
(-0.00226218281972 -0.000172879951372 0)
(-0.00224719198269 -4.05028427872e-05 0)
(-0.00224020168172 8.11491570677e-05 0)
(-0.00224756110719 0.000190289471753 0)
(-0.00224845183668 0.000314230127006 0)
(-0.00217847998899 0.00043860868384 0)
(-0.00208849356615 0.000394105420124 0)
(-0.00286011801231 0.000150738759228 0)
(-0.00183782280097 0.000123149662778 0)
(0.0196034205139 0.0327302800033 0)
(0.0382222492645 0.0570317135723 0)
(0.0566171351153 0.0776390986878 0)
(0.0746780611256 0.0948986277421 0)
(0.0921053960305 0.109043039888 0)
(0.108795812194 0.120329267912 0)
(0.124729046465 0.129031929253 0)
(0.139910731903 0.135419120213 0)
(0.154372312737 0.139743892083 0)
(0.168169220615 0.142240119966 0)
(0.181373868357 0.143118587658 0)
(0.194069708524 0.142564215782 0)
(0.206347378111 0.140734782455 0)
(0.218302248104 0.137760732 0)
(0.230033040904 0.13374554214 0)
(0.241641509786 0.128766231177 0)
(0.253233291948 0.122873744348 0)
(0.26492007623 0.116093136361 0)
(0.276823214033 0.108423583195 0)
(0.289078932191 0.0998382642093 0)
(0.301845470551 0.0902841593977 0)
(0.315312765266 0.0796819464261 0)
(0.329715664578 0.0679265502825 0)
(0.345351941938 0.0548897329647 0)
(0.36260472252 0.0404251568511 0)
(0.382021091102 0.0244180467272 0)
(0.404323524524 0.00675178567771 0)
(0.429958710056 -0.0132742108371 0)
(0.46059183491 -0.0345399920261 0)
(0.497768684072 -0.0566724245744 0)
(0.540512098666 -0.0786569111235 0)
(0.612363585529 -0.0992153133227 0)
(-3.41719598756e-05 -0.00213227571256 0)
(-9.28212707708e-05 -0.00214620587263 0)
(-0.000141499690882 -0.00202760262165 0)
(-0.000228534656851 -0.0020609122089 0)
(-0.000308042284891 -0.00204370180461 0)
(-0.000361597378263 -0.0020743912427 0)
(-0.000428313283086 -0.00209033785638 0)
(-0.000466391437403 -0.0019008863618 0)
(-0.000557102532993 -0.0019417470255 0)
(-0.00060107651577 -0.00176642057018 0)
(-0.000690928852675 -0.00178424603324 0)
(-0.00075857058635 -0.0018300253765 0)
(-0.000842491126671 -0.00186982836196 0)
(-0.000880227116072 -0.00174563165846 0)
(-0.000962795700938 -0.00172807378718 0)
(-0.00104866262277 -0.0017284193389 0)
(-0.00110128706784 -0.00164232784514 0)
(-0.00117516731309 -0.00160284254579 0)
(-0.00127416342446 -0.00160236309463 0)
(-0.00130833967864 -0.00149468007812 0)
(-0.00142505886902 -0.00147801226008 0)
(-0.00148609961437 -0.00141118804152 0)
(-0.00155214857832 -0.00133704274239 0)
(-0.0016254751196 -0.00124757278113 0)
(-0.00170370316496 -0.00115500089332 0)
(-0.00177780603369 -0.00108126310996 0)
(-0.00177669902096 -0.00101033841303 0)
(-0.00184053913674 -0.00100576682374 0)
(-0.00186631662921 -0.000967453429966 0)
(-0.00189628344122 -0.000912793196874 0)
(-0.00192728990989 -0.000851809236956 0)
(-0.00195296372323 -0.000791061508313 0)
(-0.00201879258868 -0.000733218881239 0)
(-0.00206716265532 -0.000668585483762 0)
(-0.00210385456826 -0.000608027465236 0)
(-0.00213087278318 -0.000551102090305 0)
(-0.00215272850223 -0.000492181687375 0)
(-0.00218592522707 -0.00041757171973 0)
(-0.00223372192891 -0.00031500635494 0)
(-0.00223562119694 -0.000179115320529 0)
(-0.00223213401072 -4.18435485104e-05 0)
(-0.00224278185486 7.70925571725e-05 0)
(-0.00227433377792 0.000183811267496 0)
(-0.00228361191603 0.000267252572145 0)
(-0.00231784501414 0.00034679202853 0)
(-0.00284678866591 0.000453497983425 0)
(-0.00182436030747 -0.000311173443214 0)
(0.00915906299413 0.0231465855549 0)
(0.0309717758268 0.0516917667506 0)
(0.0502559562383 0.0758920771586 0)
(0.0687797760506 0.0960121337469 0)
(0.0867414726224 0.112605272598 0)
(0.103958945012 0.126003202075 0)
(0.120350990768 0.136504648489 0)
(0.135913828257 0.144419539385 0)
(0.150678566972 0.150048848826 0)
(0.164701343898 0.153671563556 0)
(0.178058514545 0.155540006942 0)
(0.190840414082 0.155877421332 0)
(0.203145995781 0.154876811871 0)
(0.215079248062 0.152701064225 0)
(0.226747106333 0.149483983817 0)
(0.238258583321 0.145331813186 0)
(0.249725031193 0.140324892718 0)
(0.261261543869 0.134519269629 0)
(0.272989550184 0.127948197132 0)
(0.285040675088 0.120623579019 0)
(0.297561991552 0.112537495392 0)
(0.310722883608 0.103664042419 0)
(0.324723884443 0.0939619107289 0)
(0.339807995847 0.0833784790896 0)
(0.356275033502 0.0718567632036 0)
(0.374499592388 0.0593473053183 0)
(0.394951718366 0.0458264270483 0)
(0.418223408555 0.0313714585625 0)
(0.445210544819 0.0163987347597 0)
(0.476485775331 0.000494776925097 0)
(0.513407877575 -0.0157193965823 0)
(0.555387678488 -0.0304405113496 0)
(0.622635877485 -0.0426004265615 0)
(-3.10093960218e-05 -0.00220096177761 0)
(-8.46191105142e-05 -0.00219941713893 0)
(-0.000132313133876 -0.0020910980583 0)
(-0.000225086920528 -0.00220597885262 0)
(-0.000295605858657 -0.00210916037717 0)
(-0.000355509585933 -0.0021313147812 0)
(-0.000422492920455 -0.00215153039361 0)
(-0.000465994514623 -0.0019747784732 0)
(-0.000561383063082 -0.0020139311608 0)
(-0.000606527078637 -0.00184583751337 0)
(-0.00068584568344 -0.00184794472135 0)
(-0.000753458606356 -0.00189915090906 0)
(-0.000830272223646 -0.00192937572903 0)
(-0.00087077727231 -0.00181718300917 0)
(-0.000954410092173 -0.00180220371397 0)
(-0.0010357637706 -0.00179539841522 0)
(-0.00109968276833 -0.001722122191 0)
(-0.00117674258853 -0.00167712065172 0)
(-0.00127796675342 -0.00167399998003 0)
(-0.00131390462184 -0.00156678319286 0)
(-0.00142952888656 -0.00155089794476 0)
(-0.00147422155165 -0.00146772000904 0)
(-0.00155264606151 -0.00140563886001 0)
(-0.00161521003566 -0.00131388841795 0)
(-0.00166585863942 -0.00120058144094 0)
(-0.00174304165517 -0.00111505531436 0)
(-0.00181005190904 -0.00105795897873 0)
(-0.00185905911498 -0.00103894473703 0)
(-0.00189950632693 -0.00100807021919 0)
(-0.0019201029169 -0.000946598505367 0)
(-0.00195761530135 -0.000884143172385 0)
(-0.00198116415179 -0.000824928226932 0)
(-0.00200631260172 -0.000765142719785 0)
(-0.00205777235007 -0.000707172063542 0)
(-0.00207689667707 -0.000638666221539 0)
(-0.00212351414763 -0.000582128286131 0)
(-0.00215224133591 -0.000523478565606 0)
(-0.00217964703821 -0.000448511303962 0)
(-0.00221044428686 -0.000335548027698 0)
(-0.0022140376672 -0.000190253091146 0)
(-0.00222708053143 -5.55650850762e-05 0)
(-0.00225386740709 5.10249370249e-05 0)
(-0.00230707989624 0.000135199443189 0)
(-0.00242761990252 0.000188381675854 0)
(-0.00239933042555 -2.51215745902e-05 0)
(-0.00245528884505 -0.000357287888726 0)
(-0.00487275788731 0.00778515213561 0)
(0.0227230050953 0.0437749749224 0)
(0.0423940447825 0.0713163017824 0)
(0.0616093536961 0.0948115300609 0)
(0.0801581009842 0.114275755956 0)
(0.0979076762666 0.130094566697 0)
(0.11478330535 0.142644774043 0)
(0.130754067402 0.152282653107 0)
(0.145840083123 0.159358558187 0)
(0.160097371089 0.164203873178 0)
(0.173605654458 0.167120171688 0)
(0.186460926339 0.168375133472 0)
(0.198769454341 0.168201562257 0)
(0.210643044153 0.166797921228 0)
(0.222195912916 0.164329968939 0)
(0.233543057238 0.160933121696 0)
(0.244799888145 0.156715166189 0)
(0.256082988523 0.151759050386 0)
(0.267511923098 0.146125609201 0)
(0.279212076582 0.139856204485 0)
(0.29131852939 0.132975370285 0)
(0.30398101538 0.125493657511 0)
(0.317370047666 0.117410993884 0)
(0.331684332378 0.108721059548 0)
(0.347159576544 0.099417466731 0)
(0.364078673681 0.0895029542998 0)
(0.382782957182 0.079003346797 0)
(0.403683702243 0.0679888784348 0)
(0.427272095856 0.0566051780837 0)
(0.454092790264 0.0451220144982 0)
(0.484798693543 0.03413378089 0)
(0.520316273623 0.024580487714 0)
(0.559825259705 0.017278555892 0)
(0.620440180833 0.0133712220479 0)
(-3.41914988324e-05 -0.00225896625107 0)
(-7.95993152227e-05 -0.00225531308767 0)
(-0.00013028687812 -0.00216752148347 0)
(-0.0002142537384 -0.00227191338456 0)
(-0.000271635084659 -0.00217866257721 0)
(-0.000341412430999 -0.00219801560337 0)
(-0.000411480464306 -0.00221284870479 0)
(-0.000464213590906 -0.002056950188 0)
(-0.000556789183986 -0.00207962129183 0)
(-0.000607709575089 -0.00192372982094 0)
(-0.000680979697787 -0.00190585876522 0)
(-0.000748416923458 -0.00196634043113 0)
(-0.000815853356382 -0.00198325302462 0)
(-0.000862526124907 -0.0018886027824 0)
(-0.000946231541039 -0.00187591971666 0)
(-0.00102020201375 -0.00186133558049 0)
(-0.00109569647196 -0.00180480354092 0)
(-0.00117264760497 -0.00175145706891 0)
(-0.00127188503185 -0.00174557022288 0)
(-0.00130960605811 -0.00164189451791 0)
(-0.00141079926451 -0.0016164742535 0)
(-0.00145196652062 -0.00152025946683 0)
(-0.00151788401492 -0.0014485763111 0)
(-0.00162653337384 -0.00139753156185 0)
(-0.00167670445776 -0.00128031322406 0)
(-0.00175078955042 -0.00118289255985 0)
(-0.00180252708207 -0.00109482213063 0)
(-0.00189329049383 -0.00108011451861 0)
(-0.00193571693851 -0.00105076881682 0)
(-0.00194732029666 -0.000980364951737 0)
(-0.00198726775059 -0.000917417529086 0)
(-0.00203743085822 -0.000861343139726 0)
(-0.00205852899305 -0.000797046807443 0)
(-0.00208654756736 -0.000733601857619 0)
(-0.00209378435161 -0.000668945426495 0)
(-0.00212242869751 -0.00061234535501 0)
(-0.00214796586377 -0.000552142951875 0)
(-0.00217309680373 -0.000474576035831 0)
(-0.00218707503789 -0.000354078092957 0)
(-0.00219502711897 -0.000208311930279 0)
(-0.00222256440925 -8.1613298371e-05 0)
(-0.00226805721083 -4.08156756436e-06 4.69308929089e-29)
(-0.00236398542682 2.40966807316e-05 0)
(-0.00235937228698 2.60654447173e-05 0)
(-0.00292828325739 7.39531754423e-06 0)
(-0.00152409393227 -0.000872348782909 0)
(0.0121628444078 0.0307087363221 0)
(0.0337223182043 0.063203960407 0)
(0.0533647367501 0.0907549349013 0)
(0.0724032398819 0.113617114495 0)
(0.090712071286 0.132298321104 0)
(0.108099705475 0.147230180586 0)
(0.124511630905 0.158844420561 0)
(0.139953469394 0.167556955031 0)
(0.154473506151 0.173759297369 0)
(0.168152168328 0.177810437899 0)
(0.181090497895 0.180030555575 0)
(0.193401717435 0.180698822546 0)
(0.205205276312 0.180054105098 0)
(0.216622648796 0.178297251184 0)
(0.227774760959 0.175594302265 0)
(0.238780890202 0.172080208167 0)
(0.249758809797 0.167862714979 0)
(0.260825986991 0.163026205673 0)
(0.272101701509 0.157635394991 0)
(0.283709997227 0.151738895482 0)
(0.295783413495 0.145372776156 0)
(0.308467463812 0.138564332816 0)
(0.321925830621 0.131336395545 0)
(0.336346206742 0.123712638616 0)
(0.351946602912 0.115724555274 0)
(0.368981713365 0.107421028025 0)
(0.387748521313 0.0988817546098 0)
(0.408589723746 0.0902361854497 0)
(0.431892262635 0.0816899485353 0)
(0.458078424333 0.0735616055555 0)
(0.487576403025 0.0662994723802 0)
(0.520903268855 0.0606197848417 0)
(0.556858154662 0.0575468882827 0)
(0.609815839182 0.0583990284123 0)
(-3.53098734412e-05 -0.00231731127201 0)
(-8.01505143354e-05 -0.00223909996651 0)
(-0.000134822398888 -0.00225173167378 0)
(-0.000206865458447 -0.00231823295099 0)
(-0.000259268318191 -0.00224338326328 0)
(-0.000328479318728 -0.00226669575927 0)
(-0.000398049304009 -0.0022750772992 0)
(-0.000457108740479 -0.00213860936388 0)
(-0.000541182576319 -0.00214057685044 0)
(-0.00060557925893 -0.00201253563017 0)
(-0.000673394975917 -0.00195745415711 0)
(-0.000741844809813 -0.00203005889141 0)
(-0.000802098950412 -0.00203738417181 0)
(-0.000861277355298 -0.00196705506822 0)
(-0.000942448129664 -0.00194778782711 0)
(-0.00101092180571 -0.00193289344119 0)
(-0.00110224738552 -0.00190623402643 0)
(-0.00116676793452 -0.00182419011125 0)
(-0.00125961683804 -0.00181130640108 0)
(-0.00130654517277 -0.00171890327661 0)
(-0.00138927740583 -0.00167139991729 0)
(-0.0014581596352 -0.00160137244527 0)
(-0.00153781532093 -0.00153068098328 0)
(-0.00161988544639 -0.00145273334665 0)
(-0.00173573245578 -0.00138489882955 0)
(-0.00182020453206 -0.00128126266629 0)
(-0.00183838752759 -0.00115602551811 0)
(-0.00198171800139 -0.00114771782089 0)
(-0.00198708135881 -0.00108592099384 0)
(-0.00200065710224 -0.00101714934574 0)
(-0.00201870828502 -0.000950642168689 0)
(-0.00206516988939 -0.000889601507386 0)
(-0.00208718520468 -0.00081578861058 0)
(-0.00213813294277 -0.000752504719298 0)
(-0.00213767790892 -0.000682793391757 0)
(-0.00214056883934 -0.000626066417567 0)
(-0.00215477461925 -0.000571370637165 0)
(-0.00216805031372 -0.000495832902663 0)
(-0.00216518761193 -0.000373254879146 0)
(-0.0021805011526 -0.000234110969862 0)
(-0.00221410157674 -0.000128953547416 0)
(-0.00233237108005 -6.59701700776e-05 -4.77194860992e-29)
(-0.00236601313448 -7.2869688135e-06 0)
(-0.00225695525222 -0.000234913234916 0)
(-0.00212887693666 -0.000717431112933 0)
(-0.00439553526773 0.00843785062226 0)
(0.0237429487866 0.0511846310602 0)
(0.0438835083252 0.0833263071715 0)
(0.0634917045842 0.110186214754 0)
(0.0823891867009 0.132227346863 0)
(0.100338118112 0.149966082133 0)
(0.117242432231 0.163893389177 0)
(0.133089184246 0.174496325693 0)
(0.147917489025 0.182240248652 0)
(0.161804899196 0.187552675926 1.02271555336e-28)
(0.174855704581 0.190815997981 -9.77346989695e-29)
(0.18718994372 0.192364426594 0)
(0.198935137613 0.19248422396 0)
(0.210220647589 0.191416393848 0)
(0.221174058081 0.189360792311 0)
(0.231919249408 0.186480932339 0)
(0.242575902098 0.182909031389 0)
(0.253260167782 0.178751004271 0)
(0.264086272736 0.174091228245 0)
(0.275168872425 0.168997026902 0)
(0.286626024498 0.163522927805 0)
(0.298582684162 0.157714840208 0)
(0.311174640175 0.15161437437 0)
(0.324552786986 0.145263591388 0)
(0.338887548452 0.138710547553 0)
(0.354373104645 0.132016094062 0)
(0.371230798272 0.125262516983 0)
(0.389710654238 0.118564735242 0)
(0.41008941903 0.112084896871 0)
(0.432662033164 0.106051113964 0)
(0.457726454151 0.10078136079 0)
(0.485528772531 0.0967085849015 0)
(0.516404790114 0.094433145172 0)
(0.548930478101 0.0946675353935 0)
(0.595975283365 0.0982704633134 0)
(-3.01465342408e-05 -0.00238079559949 0)
(-8.60015805749e-05 -0.0023005984622 0)
(-0.000145396395693 -0.00231641931657 0)
(-0.000207170629661 -0.00236956291922 0)
(-0.000259282218661 -0.0023025957813 0)
(-0.000321221219649 -0.00232941710092 0)
(-0.000385827569877 -0.00233741513076 0)
(-0.000447499514477 -0.00221859561423 0)
(-0.000520068872518 -0.00219816517317 0)
(-0.000600072922744 -0.00211027276077 0)
(-0.000665142752367 -0.0020069088077 0)
(-0.000734823831644 -0.00208684442902 0)
(-0.000792131920332 -0.00210352207682 0)
(-0.000861979014745 -0.00204598700205 0)
(-0.000942777524501 -0.00201375926658 0)
(-0.00100906213013 -0.00200596371416 0)
(-0.00110489497072 -0.00200358631429 0)
(-0.00115754365716 -0.00189773128594 0)
(-0.00124041275226 -0.00186661276651 0)
(-0.00130385074979 -0.00179815161283 0)
(-0.00139180242138 -0.00174932702789 0)
(-0.00146507892869 -0.00168326140721 7.76655283485e-29)
(-0.0015906531584 -0.00165520642832 -8.01752561141e-29)
(-0.00166224668708 -0.00156644333432 0)
(-0.00176786793737 -0.00148169807791 0)
(-0.00182900347747 -0.00134512240602 0)
(-0.00188099895328 -0.00122693593358 0)
(-0.00199345378342 -0.00117373523957 0)
(-0.00207507829683 -0.00112769210809 0)
(-0.00207971531743 -0.00104869332827 0)
(-0.00208645213791 -0.000975248380664 0)
(-0.00211053242564 -0.000914824703351 0)
(-0.00214545516792 -0.000849237094999 0)
(-0.00218647383373 -0.000772719272249 0)
(-0.00221316659668 -0.000688341391597 0)
(-0.00218805036977 -0.00061723371686 0)
(-0.00218161326198 -0.000568953262262 0)
(-0.00216563205088 -0.00050510320457 0)
(-0.00214164478959 -0.000390744580753 0)
(-0.00215015699945 -0.000268819499125 0)
(-0.00223608718581 -0.000221542505663 0)
(-0.00240972819747 -0.000201317547429 0)
(-0.0023845776057 -9.53165040076e-05 0)
(-0.00297892167317 -2.38007671397e-05 0)
(-0.00141904423837 -0.00105869259054 0)
(0.0101466034823 0.0335050741069 0)
(0.0333118578217 0.071336260077 0)
(0.0535973152553 0.10323688768 2.2797924733e-28)
(0.0729915618071 0.129357296164 0)
(0.091521958084 0.150459905461 0)
(0.108977403109 0.167143349962 0)
(0.125293233283 0.179978059036 0)
(0.140490850515 0.189515574358 0)
(0.154642089334 0.196267419763 0)
(0.167852400687 0.200691928114 0)
(0.180247829751 0.203189772591 0)
(0.191964423008 0.204104063113 0)
(0.203140507641 0.203723339931 0)
(0.213911631293 0.202286528447 0)
(0.224407654911 0.199988950615 0)
(0.234751562058 0.196988704963 0)
(0.245059626297 0.193412976103 0)
(0.255442617223 0.189364012954 0)
(0.266007771751 0.184924653197 0)
(0.276861316369 0.18016339264 0)
(0.288111386127 0.175139099565 0)
(0.299871233233 0.169905547227 0)
(0.312262635671 0.164515978859 0)
(0.325419384108 0.159027933887 0)
(0.339490624644 0.153508564414 0)
(0.354643647021 0.148040670385 0)
(0.371065424517 0.142729684963 0)
(0.388961788718 0.137711830353 0)
(0.408552746227 0.133163622331 0)
(0.430060941642 0.129312628468 0)
(0.453695583042 0.126449434363 0)
(0.479591231547 0.124936776213 0)
(0.507981178122 0.125227176381 0)
(0.537329012727 0.127824283635 0)
(0.579376504094 0.133215829952 0)
(-2.81519169105e-05 -0.00244116514576 0)
(-8.73163563752e-05 -0.00236578721701 0)
(-0.000147807977224 -0.00237611581746 0)
(-0.00021001175148 -0.00242903093481 0)
(-0.00026262951142 -0.00235819543411 0)
(-0.000316546394779 -0.00238375055764 0)
(-0.000375270620654 -0.0023982936276 0)
(-0.000439363671291 -0.00229466814702 0)
(-0.000501273282282 -0.0022517612017 0)
(-0.000595969729274 -0.00222294999214 0)
(-0.00065751494955 -0.0020642275815 0)
(-0.000729722186053 -0.00213622537177 0)
(-0.000782438003801 -0.002171989193 0)
(-0.000868847980298 -0.00214691607143 0)
(-0.000940504952709 -0.00207462909955 0)
(-0.00100799236276 -0.00207420578045 0)
(-0.00109874969525 -0.00208458508719 0)
(-0.00114400708529 -0.00197071768502 0)
(-0.00122958759645 -0.00193941666007 0)
(-0.00130025123557 -0.00187968461639 0)
(-0.00138760928276 -0.00183000350175 0)
(-0.00146766781118 -0.00177072051573 0)
(-0.00155830364557 -0.00170939749513 0)
(-0.00163827705231 -0.00163133976612 0)
(-0.00173382676968 -0.00155163880791 0)
(-0.0018651758128 -0.0014666096165 0)
(-0.00192927734348 -0.00133031035723 0)
(-0.00203968459415 -0.00124986781325 0)
(-0.0022035418693 -0.00119820038946 0)
(-0.00220429676737 -0.00108568573665 0)
(-0.0022374496039 -0.00100916156589 0)
(-0.00223142231391 -0.000935193625017 0)
(-0.00224491051102 -0.000866400673659 0)
(-0.00224284416135 -0.00078136206603 0)
(-0.00229247071475 -0.000692497119528 0)
(-0.00229167952867 -0.000595413808845 0)
(-0.00225562951458 -0.000530281138264 0)
(-0.00218543674598 -0.000485722387393 0)
(-0.00210545496199 -0.000400906417431 0)
(-0.00211030280004 -0.000301038238585 0)
(-0.00222969868879 -0.000297572342732 0)
(-0.00226004790764 -0.000346128141008 0)
(-0.00228896947404 -0.000561380719864 0)
(-0.00239153837611 -0.000913495914343 0)
(-0.00727125659223 0.00289985804906 0)
(0.0224135562248 0.0548484566074 0)
(0.0424591125226 0.0919486282223 0)
(0.062464878124 0.123008287379 -1.93260445079e-28)
(0.0816568721532 0.148205535502 0)
(0.0997242961477 0.168216787003 1.33400130297e-28)
(0.116582600498 0.183731140349 0)
(0.132226603876 0.195402081902 0)
(0.14671366646 0.203840012276 0)
(0.160147173257 0.209595901956 0)
(0.172658271847 0.213152245724 0)
(0.18439181628 0.214921783131 0)
(0.195496291364 0.215250792156 0)
(0.206116911621 0.214424994635 0)
(0.216391407197 0.212676914196 0)
(0.226447987275 0.210193815632 0)
(0.236404975507 0.207125595961 0)
(0.246371676975 0.203592231585 0)
(0.256450103299 0.199690572712 0)
(0.266737250655 0.19550042575 0)
(0.277327703061 0.191089989918 0)
(0.288316414642 0.18652080959 0)
(0.299801592548 0.18185245431 0)
(0.311887632211 0.177147135729 0)
(0.324688024317 0.172474420774 0)
(0.338328041716 0.167916120456 0)
(0.352946815295 0.163571342397 0)
(0.368698129708 0.159561603414 0)
(0.385748873331 0.156035794829 0)
(0.404273834091 0.153174683819 0)
(0.424443930216 0.151194356532 0)
(0.446412048049 0.150348197665 0)
(0.470250119071 0.150924015034 0)
(0.496149003006 0.153245060187 0)
(0.522552329444 0.157634092961 0)
(0.560247994736 0.164277494718 0)
(-2.65699806118e-05 -0.00249578000617 0)
(-8.3265619548e-05 -0.00242835528872 0)
(-0.000146648254176 -0.00243055688531 0)
(-0.000212868837427 -0.00248913049894 0)
(-0.000261707212211 -0.00241026430155 0)
(-0.000308478397398 -0.00242710253767 0)
(-0.000362336823592 -0.00245716602996 1.12491266756e-29)
(-0.000434371498931 -0.00236685447472 -1.07810331254e-29)
(-0.000497107523634 -0.00230369737971 0)
(-0.000593207282846 -0.00235544357234 0)
(-0.000640395915667 -0.00213462815025 0)
(-0.00072283206046 -0.00218346015829 0)
(-0.000776141511132 -0.00223701756993 0)
(-0.000876667105198 -0.00227251097016 0)
(-0.000923349890865 -0.00213648635582 0)
(-0.00100060540378 -0.00214194311686 0)
(-0.0010861619944 -0.00215608028848 0)
(-0.00112902464791 -0.00204289179784 0)
(-0.0012181338362 -0.00201816583682 0)
(-0.00130498933131 -0.00197307871921 0)
(-0.00137907265032 -0.00190586161996 0)
(-0.00149255106756 -0.00189447074394 0)
(-0.00154141010904 -0.00179212279025 0)
(-0.00162480314939 -0.00172001044109 0)
(-0.0017210486894 -0.00165138557608 0)
(-0.00183271749377 -0.0015642399258 0)
(-0.0019513123272 -0.00146053317107 0)
(-0.00204978220923 -0.00136084299023 0)
(-0.00226017776927 -0.00129272197802 0)
(-0.00236746741888 -0.00116435934256 0)
(-0.00240104209585 -0.00105032362294 0)
(-0.00244942014011 -0.000967807106644 0)
(-0.00243926266966 -0.000881461190268 0)
(-0.00245053509605 -0.00079763241497 0)
(-0.00241239464407 -0.000685415462556 0)
(-0.00244154286357 -0.000566874730433 0)
(-0.00240902431889 -0.00044700418622 0)
(-0.00231053602623 -0.000402659159475 0)
(-0.00202532284008 -0.000371837861847 0)
(-0.00207399267263 -0.000358563152196 0)
(-0.00228025565479 -0.000347736780778 0)
(-0.00217563524184 -0.000204146297608 0)
(-0.00183264996862 -0.000646289421957 0)
(-0.00149781818725 -0.00123262721633 0)
(0.00494721196894 0.0298478439704 0)
(0.0306019889769 0.0749466288701 0)
(0.0511079839819 0.112243927309 0)
(0.070728842609 0.142463265605 0)
(0.0894610919132 0.166580340074 0)
(0.106950433181 0.185379505159 -1.22390762107e-28)
(0.123129803196 0.199641491414 0)
(0.138040451032 0.210102997789 1.01065762062e-28)
(0.151777938043 0.21742964836 0)
(0.164475406326 0.222205452384 0)
(0.17628633267 0.22492996917 0)
(0.187370591194 0.226021245485 0)
(0.197885014804 0.22582267697 0)
(0.207977499708 0.22461199162 0)
(0.217783869034 0.222611083894 0)
(0.22742686178 0.219995848858 0)
(0.23701666345 0.216905460706 0)
(0.246652472337 0.213450773555 0)
(0.256424684861 0.209721711166 0)
(0.266417376629 0.205793671141 0)
(0.276710861893 0.201733102877 0)
(0.287384228971 0.197602509397 0)
(0.298517848393 0.193465145262 0)
(0.31019589926 0.189389624225 0)
(0.322508928529 0.185454523444 0)
(0.335556336452 0.18175290523 0)
(0.349448472192 0.178396501954 0)
(0.364307752965 0.175519142735 0)
(0.380267840152 0.173278833018 0)
(0.397469758364 0.171857759442 0)
(0.416052033663 0.171459248855 0)
(0.436140427754 0.172301041687 0)
(0.457785073364 0.174602298848 0)
(0.481181256206 0.178571770356 0)
(0.504812148947 0.184376006921 0)
(0.538616745293 0.191954987445 0)
(-2.5598346966e-05 -0.00254735531479 0)
(-8.06899941746e-05 -0.00248927144627 0)
(-0.000149705026265 -0.00250606036956 0)
(-0.00021223734464 -0.00254537800321 0)
(-0.00025077471593 -0.00245952475268 0)
(-0.000295355292015 -0.0024655736992 0)
(-0.000346996724482 -0.00251557078243 0)
(-0.000426523294732 -0.00246552646471 0)
(-0.00049039689644 -0.00234569567326 0)
(-0.000566305438783 -0.00240097034978 0)
(-0.000618989729733 -0.00222093337536 0)
(-0.000708313512715 -0.00223405812258 0)
(-0.000768586378521 -0.00230053716606 0)
(-0.0008537211843 -0.00234556288904 0)
(-0.000892445459192 -0.00220420650854 0)
(-0.000981744522662 -0.00221310742958 0)
(-0.00106158666182 -0.00221954632073 0)
(-0.00111246045629 -0.00211749733092 0)
(-0.00120315303217 -0.00209689537245 0)
(-0.00131282778136 -0.00209254958029 0)
(-0.00135965613742 -0.00197953345502 0)
(-0.00146439238789 -0.00195956149448 0)
(-0.00151832006543 -0.00187123447449 0)
(-0.00161384292527 -0.00181547063655 0)
(-0.00170500908923 -0.00175307965631 0)
(-0.00179931722363 -0.00167603021404 0)
(-0.00191665789642 -0.00159053396655 0)
(-0.00203207882028 -0.00150290036434 0)
(-0.00214759149869 -0.00139831809507 0)
(-0.00244488073241 -0.0013241737345 0)
(-0.00253117648311 -0.00114850370149 0)
(-0.00262640665769 -0.00102053608083 0)
(-0.00263583938847 -0.000898543397276 0)
(-0.00270705413559 -0.000815607123534 0)
(-0.00271042250199 -0.000695053607511 0)
(-0.00269897076843 -0.000541935441681 0)
(-0.00267008267897 -0.000346268693763 0)
(-0.00268262701814 -0.000199395914378 0)
(-0.00205696023508 -0.000236830053568 0)
(-0.00203010284616 -0.000434348734275 0)
(-0.00226454327392 -0.000560754603302 0)
(-0.00222567243354 -0.000487637755033 0)
(-0.00430551907977 -0.000451438120268 0)
(-0.00128515799682 -0.000826585527166 0)
(0.0159228074173 0.0499260000509 0)
(0.0383270761872 0.0953492968246 0)
(0.0587986027961 0.132264454092 0)
(0.0781660067164 0.161524369138 0)
(0.0963477912252 0.184401248311 0)
(0.113169613432 0.201870997414 0)
(0.128611574975 0.214815652121 0)
(0.142752699393 0.224043822299 -9.59647494415e-29)
(0.155725014892 0.230268012149 8.95006707816e-29)
(0.167689468276 0.234097401156 0)
(0.178818299835 0.236040670021 0)
(0.189282159829 0.236513876573 0)
(0.199241818446 0.235851293187 0)
(0.208843562787 0.234317581205 0)
(0.218217356154 0.23212007347 0)
(0.227476977389 0.229420375409 0)
(0.236721473361 0.226344826385 0)
(0.246037370755 0.222993600909 0)
(0.255501205012 0.219448418134 0)
(0.265182043803 0.215778998998 0)
(0.275143826944 0.212048559732 0)
(0.285447506671 0.208318718961 0)
(0.296153112104 0.204654179693 0)
(0.30732192905 0.201127414817 0)
(0.319018948794 0.197823364218 0)
(0.331315598744 0.194843894686 0)
(0.344292545811 0.192311523792 0)
(0.358042107056 0.190371683395 0)
(0.372669439612 0.189192575242 0)
(0.388291611677 0.188961487235 0)
(0.405031577101 0.189876137904 0)
(0.423013501034 0.192129934808 0)
(0.442301842124 0.195889338776 0)
(0.463138909591 0.201266820764 0)
(0.484098247572 0.208292373294 0)
(0.514393837307 0.216673820691 0)
(-2.48520264973e-05 -0.00260017637633 0)
(-8.85727564828e-05 -0.00255117706194 0)
(-0.00015996716658 -0.00259123808236 0)
(-0.000198764311586 -0.00259158117233 0)
(-0.000228283203575 -0.00250722096125 0)
(-0.000280321657299 -0.00251943749198 0)
(-0.000333038687459 -0.00257161834357 0)
(-0.000405361441588 -0.00256751707552 0)
(-0.000467498356497 -0.00240821066223 0)
(-0.000536953138352 -0.0024407108239 0)
(-0.000606340143177 -0.00233511588841 0)
(-0.000686388426278 -0.00228504124808 0)
(-0.000751635224347 -0.00236164369984 0)
(-0.000815161166434 -0.00239294988957 0)
(-0.000862446107622 -0.00228066687423 0)
(-0.000955317190722 -0.00228533408138 0)
(-0.00102517303667 -0.00227238249295 0)
(-0.00109558341482 -0.00220266273217 0)
(-0.00118516177923 -0.00217279049409 0)
(-0.00127949928154 -0.0021643472996 0)
(-0.00132810336435 -0.00205717385606 0)
(-0.00142347451333 -0.00202325751001 0)
(-0.00149124406796 -0.00195556108184 0)
(-0.00159850933953 -0.00191628296028 -6.62154853524e-29)
(-0.00165982441333 -0.00183108801152 6.39324452425e-29)
(-0.00175694905346 -0.00177389168558 0)
(-0.00184849482618 -0.0016989392685 0)
(-0.00195374460939 -0.00162196713129 0)
(-0.00203026491156 -0.00152523636768 0)
(-0.00220381755044 -0.00144515042222 0)
(-0.00252586892711 -0.00135211917327 0)
(-0.00263614467617 -0.00114272290158 0)
(-0.00286454384171 -0.00102143419552 0)
(-0.0029148895384 -0.000870862885713 0)
(-0.00303807580117 -0.000742971091741 0)
(-0.00315137746252 -0.000580842225741 0)
(-0.00322815368374 -0.000326895994302 0)
(-0.00334744464725 0.000102596805903 0)
(-0.00299404233957 0.00013150179682 0)
(-0.00194033063801 -0.000306873168185 0)
(-0.00188544780476 -0.000750492845895 0)
(-0.00198648923475 -0.0010686007286 0)
(-0.00202899924044 -0.00102225545415 0)
(-0.00413232936816 0.0116037057489 0)
(0.0247576245602 0.0719164487497 0)
(0.0454649240018 0.116323760615 0)
(0.0656288667268 0.152065994547 0)
(0.0846769075226 0.1801042558 0)
(0.102273416203 0.201595869262 0)
(0.118377861219 0.217638784548 0)
(0.133046857592 0.229219547257 0)
(0.146404030695 0.237210351407 0)
(0.158616241764 0.242359651696 -8.61757250898e-29)
(0.16986917183 0.245291895033 0)
(0.180349729994 0.246515990254 -7.8279170638e-29)
(0.190234718384 0.246438355423 0)
(0.199684263511 0.245377950747 0)
(0.208838859821 0.243581642175 0)
(0.217819009083 0.241238777591 0)
(0.226726569229 0.238494310582 0)
(0.235647085372 0.235460146681 0)
(0.244652523893 0.232224619026 0)
(0.253803961033 0.228860188531 0)
(0.263153924996 0.225429657281 0)
(0.272748286906 0.221991362783 0)
(0.282627821699 0.218603907572 0)
(0.292829746243 0.215330905607 0)
(0.303389616325 0.212245990539 0)
(0.314343897611 0.209437995587 0)
(0.325733347627 0.207015867585 0)
(0.337607112576 0.205112576334 0)
(0.350027229745 0.20388702583 0)
(0.36307292092 0.203522702975 0)
(0.376844138956 0.204221525977 0)
(0.391461496218 0.206190768199 0)
(0.407069425832 0.209621037997 0)
(0.423781904656 0.214653227727 0)
(0.441932571649 0.221328444459 0)
(0.460245804573 0.229564560701 0)
(0.48738146559 0.238806427377 0)
(-2.63154347326e-05 -0.00265447640361 0)
(-9.94431641873e-05 -0.00265080888489 0)
(-0.000155502178703 -0.00263950872116 0)
(-0.000171081893663 -0.00259197902406 0)
(-0.000206769781789 -0.00255493762683 0)
(-0.000265578789322 -0.00257409519958 0)
(-0.000318227634233 -0.00262061510908 0)
(-0.000375593713056 -0.00263205627527 8.59745502967e-29)
(-0.000440948754133 -0.00249895483381 0)
(-0.00050397960023 -0.00248646387406 0)
(-0.000587095466612 -0.00244596602189 0)
(-0.000659201563664 -0.00233586716706 0)
(-0.000728169147955 -0.00241520378867 0)
(-0.000777126103908 -0.00243893176608 0)
(-0.000844465946042 -0.00236623370278 0)
(-0.00093174663202 -0.00235115112386 0)
(-0.000999110834092 -0.00234737437281 0)
(-0.00108065397975 -0.00229114430811 0)
(-0.00116350702296 -0.00224171423268 0)
(-0.00123950282243 -0.00221856010364 0)
(-0.0013025955078 -0.00213963761148 0)
(-0.00139081561744 -0.00209712439587 0)
(-0.00146986002154 -0.00204259900136 0)
(-0.00155165971678 -0.00198023147898 0)
(-0.00162007805404 -0.0019138089289 0)
(-0.00172743650239 -0.00188389350774 0)
(-0.00178337672473 -0.00179378860251 0)
(-0.00186937421341 -0.00172745879936 0)
(-0.00195689235742 -0.00166045937214 0)
(-0.00200594567186 -0.00155654048458 0)
(-0.00219349803766 -0.00149469409667 0)
(-0.00253379327 -0.00143289012145 0)
(-0.00277507446579 -0.00125850347894 0)
(-0.00309110284884 -0.00112655519811 0)
(-0.00338622991055 -0.00101180631267 0)
(-0.00372816933344 -0.000891855264381 0)
(-0.00420814656347 -0.000727462804869 0)
(-0.00460635151301 -0.000324384402384 0)
(-0.00649973133315 0.000262263216233 0)
(-0.00795121878713 0.00233354894398 0)
(-0.00169964613985 -0.000485836446881 0)
(-0.00171373919161 -0.00127838376628 0)
(-0.00157566321183 -0.00164980785755 0)
(0.00299463184136 0.0363647607074 0)
(0.0309372841143 0.0930866092575 0)
(0.0520238056787 0.137077093991 0)
(0.0717996471079 0.171550741743 0)
(0.0903233639234 0.198139629776 0)
(0.107260274972 0.21810429169 0)
(0.122606504372 0.232644351813 0)
(0.136481537649 0.242836810582 0)
(0.149056368628 0.249606724036 0)
(0.160529795691 0.253726355514 0)
(0.171107301793 0.255824156267 0)
(0.180985257523 0.256399761367 7.64035675246e-29)
(0.190341535454 0.255842327054 7.28239468734e-29)
(0.19933101784 0.254449730932 0)
(0.208084538622 0.252446954544 0)
(0.216710091304 0.250002658433 0)
(0.225295345797 0.24724346717 0)
(0.233910725143 0.244265813466 0)
(0.242612462678 0.241145395979 0)
(0.251445199072 0.237944493789 0)
(0.260443859588 0.234717620627 0)
(0.269634822209 0.231516232495 0)
(0.279036696775 0.228393281543 0)
(0.288661264255 0.225408240662 0)
(0.298515174887 0.222632837023 0)
(0.308602865698 0.22015725966 0)
(0.318930916222 0.218096187812 0)
(0.329513828635 0.216593688089 0)
(0.340381109447 0.215825805712 0)
(0.3515853753 0.21599939275 0)
(0.363211648727 0.217345312369 0)
(0.375385468786 0.220103048841 0)
(0.388287398794 0.224493751605 0)
(0.402115707543 0.230676516268 0)
(0.417341018664 0.238667859478 0)
(0.432940064331 0.248329324273 0)
(0.457235732152 0.258743114038 0)
(-2.58814708851e-05 -0.00270631411179 0)
(-8.00408387011e-05 -0.00271235254303 0)
(-0.000126898051733 -0.00259208112436 0)
(-0.000163615178935 -0.00259863941256 0)
(-0.000201287916082 -0.0026043510136 0)
(-0.000253704893061 -0.00262824123365 0)
(-0.000298175394273 -0.00266133061325 0)
(-0.000346558827931 -0.0026841131011 -8.53051013295e-29)
(-0.000414282849043 -0.00258105596061 0)
(-0.000473537973405 -0.00252502927004 0)
(-0.000564197071141 -0.00258088634937 -7.94531971477e-29)
(-0.000629203664171 -0.0024073042367 0)
(-0.000706647353507 -0.00245875459179 0)
(-0.000752202005208 -0.00250670689441 0)
(-0.000840620698332 -0.0024805208172 0)
(-0.000914026198624 -0.00240858633838 0)
(-0.00098546283815 -0.00242369159131 0)
(-0.00108369146603 -0.00242615992721 0)
(-0.00113481149144 -0.00230749918263 0)
(-0.00121732465146 -0.00229069417849 0)
(-0.00129253798742 -0.00222686151083 0)
(-0.00136448823892 -0.00216404782313 0)
(-0.00146563660215 -0.00215579278553 0)
(-0.00149879631352 -0.00204161402134 0)
(-0.00158363158655 -0.00199194346324 0)
(-0.00164487836145 -0.00192780592885 0)
(-0.00171064446702 -0.0018634632954 0)
(-0.00178658413239 -0.00180869909158 0)
(-0.00185616516767 -0.00174881831116 0)
(-0.00192482390524 -0.00169355808758 0)
(-0.00196994923747 -0.00161523856569 0)
(-0.00212927997735 -0.0015719022315 0)
(-0.00235913376283 -0.00151807610355 0)
(-0.00267512886758 -0.00145913260984 0)
(-0.00299068588505 -0.00139072679291 0)
(-0.00335027647528 -0.0013581593759 0)
(-0.00375667788375 -0.0013627812276 0)
(-0.00400534268153 -0.0014357862653 0)
(-0.00605027898064 -0.00162632675339 0)
(-0.00415380282169 -0.000439711030787 0)
(-0.0170004088284 0.00581768664523 0)
(-0.0018984379355 -0.00113488332003 0)
(-0.00158002738857 -0.00153452463309 0)
(0.0110449284189 0.0599885942704 0)
(0.0363782815774 0.114547226068 0)
(0.0577581451476 0.157582595957 0)
(0.0772589746126 0.190616008963 0)
(0.0951558718954 0.215556474297 0)
(0.111352158513 0.23386993902 0)
(0.125903197677 0.246857463856 0)
(0.138976742649 0.255663953655 0)
(0.150785476953 0.261251666561 0)
(0.161554969993 0.264403603217 0)
(0.17150435517 0.26574072816 0)
(0.180833472448 0.265744065297 0)
(0.189715984884 0.264778462394 -7.14964307611e-29)
(0.198297194909 0.263115777826 6.82667601263e-29)
(0.206694978536 0.260955946456 0)
(0.215002517973 0.258445125187 0)
(0.223291833587 0.255690678662 0)
(0.231617386463 0.252773064923 0)
(0.240019192653 0.249754831018 0)
(0.248525020971 0.24668712793 0)
(0.257151475341 0.243614485157 0)
(0.265904143789 0.240578897091 0)
(0.274777411068 0.237624319152 0)
(0.283754779875 0.234802336616 0)
(0.292810506348 0.232179164349 0)
(0.301913076772 0.229843510355 0)
(0.311030714807 0.227914404193 0)
(0.320138907911 0.226547906947 0)
(0.329230031338 0.225941546213 0)
(0.338325297241 0.226335108625 0)
(0.347490398268 0.228005815194 0)
(0.356853255434 0.231254085554 0)
(0.366634555743 0.236376233423 0)
(0.377141638919 0.243611186917 0)
(0.389013748482 0.253039271234 0)
(0.401682182599 0.264587335273 0)
(0.423326429555 0.276843344972 0)
(-2.29959055226e-05 -0.00275510509625 0)
(-5.91465499245e-05 -0.0027474250374 0)
(-0.00011277446018 -0.00272582308088 0)
(-0.000163898993694 -0.00264660217723 0)
(-0.000195153230807 -0.00265555548542 0)
(-0.000232674543822 -0.00267753195012 0)
(-0.00026833937472 -0.00269296631373 0)
(-0.00031261493977 -0.00273536025492 0)
(-0.000383035864196 -0.00265477531349 0)
(-0.000452130786415 -0.00257489777484 0)
(-0.000523556611878 -0.00263780374397 7.91892364694e-29)
(-0.000601183922092 -0.00251618079808 0)
(-0.000684951051568 -0.00249488017531 0)
(-0.000739141840081 -0.00256936055074 0)
(-0.000829986776147 -0.00261627068499 -7.52797743904e-29)
(-0.000882051647728 -0.00247439621486 0)
(-0.000969738945505 -0.00249079744904 0)
(-0.00105049550824 -0.00249793351476 0)
(-0.00110533651123 -0.00238447240646 0)
(-0.00119612484713 -0.00236409825238 0)
(-0.00129345686671 -0.00235074586155 0)
(-0.00132852382879 -0.00221954894018 0)
(-0.00141644744492 -0.00219800930341 0)
(-0.00145953492249 -0.00211441711447 0)
(-0.00154476085762 -0.00206934430673 0)
(-0.00158363554816 -0.00198427169855 0)
(-0.00165485661479 -0.00193190607554 0)
(-0.00171202357742 -0.00187385440362 0)
(-0.00176662779704 -0.00181392032404 0)
(-0.00181998153668 -0.00176321220742 0)
(-0.00187223785305 -0.00172930032667 0)
(-0.00188318758361 -0.00165641070224 0)
(-0.00195364365502 -0.00161104690555 0)
(-0.00205508715809 -0.00156519632041 0)
(-0.00216924166021 -0.00151012479572 0)
(-0.00228821548023 -0.0014770567158 0)
(-0.00240476202028 -0.00150050738183 0)
(-0.00245322905152 -0.00161952506396 0)
(-0.00242169114152 -0.00164752252431 0)
(-0.00209456509877 -0.00175794240605 0)
(-0.00151032404774 -0.00108735782225 0)
(-0.0198496510992 0.000700686938038 0)
(-0.00904490655369 0.0087954347346 0)
(0.021600047202 0.0841090579397 0)
(0.0421987955234 0.136214569529 0)
(0.0629768944868 0.177632282648 0)
(0.0820406836503 0.209054751292 0)
(0.0992169986876 0.23224007506 0)
(0.114599537188 0.248835502088 0)
(0.128325545747 0.260258529628 0)
(0.140602973309 0.26771085714 0)
(0.151675395311 0.272177057924 0)
(0.161787073046 0.274437935861 0)
(0.171163681848 0.27509612429 0)
(0.180002280581 0.274605588227 0)
(0.188467268787 0.273300902775 0)
(0.196690628326 0.271424144283 -6.72926206725e-29)
(0.204774784043 0.26914816193 0)
(0.212796677512 0.266595750264 6.24459017706e-29)
(0.22081205946 0.263854804691 0)
(0.228859332205 0.260989750306 0)
(0.236962409482 0.258049594783 0)
(0.245132168062 0.255073202139 0)
(0.253366378428 0.2520928825 0)
(0.261648551477 0.249137814709 0)
(0.269946673551 0.246238763145 0)
(0.27821300766 0.24343492312 0)
(0.286385899321 0.240782814205 0)
(0.294394007393 0.238366374052 0)
(0.302162912389 0.236307084656 0)
(0.309623937651 0.234773094699 0)
(0.316725436025 0.233986615541 0)
(0.323447513317 0.234228977333 0)
(0.329823445784 0.235841978689 0)
(0.335967324084 0.239221616426 0)
(0.342127170631 0.244798705584 0)
(0.348714593549 0.252978203272 0)
(0.356525604948 0.264045150736 0)
(0.365768725071 0.278124566695 0)
(0.384307950417 0.293370022758 0)
(-2.27564748397e-05 -0.00280285672825 0)
(-6.78720556146e-05 -0.00278993187302 0)
(-0.000110671651614 -0.00278739882995 0)
(-0.000139365936522 -0.00269799756689 0)
(-0.000164150673768 -0.00268775900896 0)
(-0.000196526717976 -0.00271619988564 0)
(-0.000233460959703 -0.00273001976792 0)
(-0.000277263162278 -0.00278654082039 0)
(-0.000348707783381 -0.00275853512032 0)
(-0.00042441313324 -0.00263994440632 0)
(-0.000481593869765 -0.00267933551499 0)
(-0.000569339757605 -0.00264227694788 0)
(-0.000653707209011 -0.00253037167126 0)
(-0.000725067559869 -0.00261813196391 0)
(-0.000775488281308 -0.00265043339915 7.38791132628e-29)
(-0.000845424228451 -0.0025570159418 0)
(-0.000939469895973 -0.0025495769041 0)
(-0.00100385804984 -0.00254890485511 -6.85120864582e-29)
(-0.0010810750802 -0.00247235455689 0)
(-0.00116862918224 -0.00242359312383 0)
(-0.00124887402229 -0.00239953911104 0)
(-0.00129594123762 -0.00229172106944 0)
(-0.00137259511115 -0.00224911531876 0)
(-0.00143173947715 -0.00218292683608 0)
(-0.00148802419937 -0.00210863977175 0)
(-0.00154756855908 -0.00204735459014 0)
(-0.00160187172005 -0.00198504033913 0)
(-0.00164123585585 -0.00191585675691 0)
(-0.00169437313912 -0.00186357364699 0)
(-0.00172949234509 -0.00180410344614 0)
(-0.00177695307911 -0.00177060901848 0)
(-0.00177745101558 -0.00171288784588 0)
(-0.00178992376916 -0.00166723785192 0)
(-0.00177345463244 -0.00159249667284 0)
(-0.00179929210091 -0.00155034846816 0)
(-0.00180768490462 -0.00151094898831 0)
(-0.00180956389844 -0.00151083175904 0)
(-0.00173660247795 -0.00153846067508 0)
(-0.00159581786917 -0.0015846873501 0)
(-0.00144114494325 -0.00163268191146 0)
(-0.00127550773318 -0.00171148168724 0)
(-0.00113901828345 -0.00157492638711 0)
(0.00389847920669 0.0328517539474 0)
(0.0281675995158 0.104034952255 0)
(0.0481162411176 0.156933459833 0)
(0.0678498863965 0.197014705471 0)
(0.0861411010624 0.226731581612 0)
(0.102505960905 0.248104359618 0)
(0.117035992291 0.262964475678 0)
(0.129930157533 0.272847164229 0)
(0.141434154655 0.27900355048 0)
(0.151813616469 0.282427317656 0)
(0.161322950668 0.283884584392 0)
(0.170187259529 0.283949682011 0)
(0.178595030383 0.283042324916 0)
(0.186697082396 0.281462251697 0)
(0.194609248968 0.279419359101 0)
(0.202416979596 0.277058558152 0)
(0.210180461627 0.27447933972 -6.17708396414e-29)
(0.217939348975 0.27175053388 0)
(0.225716526345 0.268920768931 0)
(0.233520383374 0.266025075021 0)
(0.241345150755 0.263088455663 0)
(0.249169319792 0.260128035321 0)
(0.256952966933 0.257155930656 0)
(0.264635452635 0.25418468876 0)
(0.272135004866 0.251236016554 0)
(0.279351089992 0.248352191372 0)
(0.286169593426 0.245608692428 0)
(0.292470197396 0.243126581149 0)
(0.298135336677 0.241083882577 0)
(0.30306090295 0.239726281666 0)
(0.307170409577 0.239378460002 0)
(0.310438241378 0.240457451243 0)
(0.312924791994 0.243488150872 0)
(0.314862667447 0.249116199126 0)
(0.316714275951 0.258077857201 0)
(0.319431431056 0.271157423451 0)
(0.324282552171 0.288798822453 0)
(0.337359917043 0.309211280972 0)
(-2.06651527386e-05 -0.00284674374858 0)
(-7.00036996467e-05 -0.00283757264406 0)
(-0.000100853185274 -0.00278826490007 0)
(-0.000105963417985 -0.00269993618352 0)
(-0.000128264398233 -0.00270176215103 0)
(-0.00016550065817 -0.00274898493612 0)
(-0.000204331989472 -0.00277382396108 0)
(-0.000246226831702 -0.0028339292376 0)
(-0.000306810349843 -0.00284589191997 0)
(-0.000386816786951 -0.00273258173121 0)
(-0.000448434698621 -0.00271146876553 0)
(-0.000531316717267 -0.00280444794163 0)
(-0.000613050942462 -0.00263059080088 0)
(-0.000695896699387 -0.00265261162973 0)
(-0.000736746874137 -0.00271448524477 0)
(-0.000828124881318 -0.00269790974762 0)
(-0.000903912444184 -0.0026066842672 0)
(-0.000981174888553 -0.00262384668526 6.83062473338e-29)
(-0.00107676047097 -0.0026135959656 0)
(-0.00113506326937 -0.00249141942983 0)
(-0.00121614347963 -0.00246044914523 0)
(-0.00127936546086 -0.00237099534437 0)
(-0.00134220719564 -0.00229736311622 0)
(-0.00142777241964 -0.00227645110227 0)
(-0.0014497957152 -0.00216114604692 0)
(-0.00153255772848 -0.00212394596503 0)
(-0.00154599307192 -0.00201372483799 0)
(-0.00160266053267 -0.00196526122857 0)
(-0.0016466348769 -0.00191060515749 0)
(-0.00167301066228 -0.00183855244927 0)
(-0.0017078148492 -0.00178534846075 0)
(-0.00173304812 -0.00173688203126 0)
(-0.00175334816221 -0.00169519093244 0)
(-0.00175494007117 -0.00164136054805 0)
(-0.00175333687682 -0.00158807304372 0)
(-0.00174164916512 -0.00153622277712 0)
(-0.00169147519129 -0.00148168927248 0)
(-0.00156535373009 -0.00143171447193 0)
(-0.00137477014814 -0.00143750794809 0)
(-0.00109626240448 -0.00148057293105 0)
(-0.00104011685114 -0.00182064511006 0)
(-0.00108805018501 -0.00207632117029 0)
(0.00352651809333 0.0541503768709 0)
(0.0319487896907 0.125572241053 0)
(0.0527919539243 0.17750335944 0)
(0.071970908548 0.215858548417 0)
(0.0894811097049 0.243650050913 0)
(0.105013931423 0.263129110663 0)
(0.11869375071 0.276254794197 0)
(0.130777080088 0.284645658361 0)
(0.141548068367 0.2895840124 0)
(0.151289322904 0.292057373087 0)
(0.160258139751 0.292804533853 6.99495547141e-29)
(0.168672597997 0.292362399146 -6.87380984803e-29)
(0.17670768963 0.291110658768 0)
(0.184497378731 0.289311207384 0)
(0.192139603622 0.287140778474 0)
(0.199702319952 0.284716616701 0)
(0.207229298806 0.282115748698 0)
(0.214744936064 0.279388787338 -5.71236564334e-29)
(0.222257622717 0.276568914935 0)
(0.229761101245 0.273676504263 0)
(0.237233303832 0.270720515934 0)
(0.244632924269 0.267699049162 0)
(0.251895128285 0.264602025438 0)
(0.258928507704 0.261418156221 0)
(0.26561505523 0.258146447348 0)
(0.271813746608 0.254810645205 0)
(0.277366965731 0.251474229678 0)
(0.282108196478 0.248254098816 0)
(0.285869466635 0.24533261829 0)
(0.288487926655 0.24296971368 0)
(0.28981282277 0.241519013057 0)
(0.28971843561 0.241454301268 0)
(0.28812886846 0.243417306226 0)
(0.285120134418 0.248298267531 0)
(0.280983549416 0.257355920617 0)
(0.276886482752 0.272421662197 0)
(0.275171329334 0.295260972176 0)
(0.278090099241 0.326513390387 0)
(-1.30423893422e-05 -0.00288182574729 0)
(-4.46619148714e-05 -0.00288103020563 0)
(-6.44698748173e-05 -0.00276703991552 0)
(-8.39760654651e-05 -0.0026792127603 0)
(-0.000120122809919 -0.00273848768934 0)
(-0.00015021946742 -0.00278245734468 0)
(-0.000181040479337 -0.00281282695452 0)
(-0.000211384236758 -0.00286923373012 0)
(-0.000253110809736 -0.00290513380552 0)
(-0.000331256666934 -0.00281530427581 0)
(-0.000414811205072 -0.00276079137793 0)
(-0.000465952568783 -0.00281393996388 0)
(-0.00055919955846 -0.0027704723765 0)
(-0.000648027225289 -0.00266017967111 0)
(-0.000716131838874 -0.00276875591999 0)
(-0.000787630077463 -0.00280532760958 0)
(-0.000861991961136 -0.00267489996401 0)
(-0.000962536427259 -0.00268666396069 0)
(-0.00103691556597 -0.00267561575785 0)
(-0.0011045683762 -0.00256333867388 0)
(-0.00119246087864 -0.0025186794395 0)
(-0.00127686352815 -0.00247743536653 0)
(-0.0013173573217 -0.00235072442176 0)
(-0.00138712751101 -0.00230524931489 0)
(-0.00142566484755 -0.00221131992482 0)
(-0.00148502629205 -0.00214361559744 0)
(-0.00152666531472 -0.0020684148004 5.04939112624e-29)
(-0.00157915946489 -0.00201425467907 -4.88025010178e-29)
(-0.00160857699331 -0.00194058538596 0)
(-0.00165370698182 -0.00188516625783 0)
(-0.0016915854041 -0.0018284317492 0)
(-0.00172991482868 -0.00177559356657 0)
(-0.00176622483522 -0.00172578105742 0)
(-0.00179337667882 -0.00166794156512 0)
(-0.00181760623162 -0.00160963019406 0)
(-0.00183435092521 -0.00153979810653 0)
(-0.00183530032093 -0.00144987328973 0)
(-0.0017599914995 -0.00131556379404 0)
(-0.0016294582254 -0.00122305683161 0)
(-0.000799547904793 -0.000840526308768 0)
(-0.00057199983771 -0.00152398827036 0)
(-0.00134209169878 -0.00171678060679 0)
(0.009149473504 0.0793108860584 0)
(0.0355505251184 0.147147633202 0)
(0.0567665283382 0.197606488679 0)
(0.0754561792023 0.234035663803 0)
(0.0921354375924 0.259761317807 0)
(0.106798188992 0.277298118927 0)
(0.119632235022 0.288717452903 0)
(0.130937444266 0.295689286562 0)
(0.141026648517 0.299504550644 0)
(0.150191406881 0.301128520429 0)
(0.15868426864 0.30126099211 0)
(0.166710263075 0.300393911857 0)
(0.174426892299 0.298862976436 0)
(0.181949130886 0.296890923968 0)
(0.189356377778 0.2946217123 0)
(0.196699505404 0.292146160941 0)
(0.204006912044 0.289520251631 0)
(0.211289063432 0.286777473713 5.66759409952e-29)
(0.218541184348 0.283935842316 5.38799081265e-29)
(0.225743369651 0.280999961091 0)
(0.232857526744 0.27795977779 0)
(0.239821813399 0.274789574869 0)
(0.246544844824 0.271451216375 0)
(0.252902543373 0.267903861161 0)
(0.25873950255 0.264119321986 0)
(0.263874746627 0.260099883815 0)
(0.268109935519 0.255894916308 0)
(0.271237200257 0.251613975793 0)
(0.273043944511 0.247436440514 0)
(0.273312592013 0.243620338493 0)
(0.271814323599 0.240515910348 0)
(0.268296546391 0.238592877509 0)
(0.262461593523 0.238500591752 0)
(0.253983483654 0.241189640742 0)
(0.242395719398 0.248191503877 0)
(0.228283950783 0.26215802819 0)
(0.213073856306 0.287695313178 0)
(0.199720878958 0.336250871094 0)
(-5.82178793207e-06 -0.00290254709481 0)
(-1.83220809252e-05 -0.00290462898536 0)
(-1.94203981056e-05 -0.00280830322058 0)
(-6.61256238167e-05 -0.00273963446171 0)
(-0.000124609279815 -0.00276215416408 0)
(-0.000137008904678 -0.00280438971665 0)
(-0.000153158018958 -0.00284061871224 0)
(-0.000168422337396 -0.00288462932135 0)
(-0.000194958853232 -0.00295123796096 0)
(-0.000268557361732 -0.00292816843082 0)
(-0.000363863785424 -0.00284997835365 0)
(-0.000423495046285 -0.00284728983243 0)
(-0.000505114037144 -0.00295223310184 0)
(-0.000594247683157 -0.00277274524872 0)
(-0.000685839595266 -0.00280011077663 0)
(-0.000741111317556 -0.00287141648864 0)
(-0.000837468782325 -0.00283508198902 0)
(-0.000928844656641 -0.00275249155412 0)
(-0.00100959754576 -0.00274977227583 0)
(-0.00110212956696 -0.00270292172116 0)
(-0.00116843537109 -0.00257781944533 6.03433165793e-29)
(-0.00125199395534 -0.00253354266489 0)
(-0.00130187975827 -0.0024143399477 0)
(-0.00136303106981 -0.00233668722584 0)
(-0.00144355565912 -0.00230898147017 0)
(-0.00146425166316 -0.00218903312903 0)
(-0.00151860403215 -0.00212056823734 0)
(-0.00154846027153 -0.00204161465547 0)
(-0.00159394793206 -0.00198880849897 0)
(-0.001639763674 -0.0019360699893 0)
(-0.00166977458375 -0.00186445830896 0)
(-0.00172256173808 -0.00181859266647 0)
(-0.00177042570765 -0.00176774391685 0)
(-0.00182042955255 -0.00171423665053 0)
(-0.00189035761188 -0.00166937313405 0)
(-0.00195757698279 -0.00160270147075 0)
(-0.00207851383934 -0.0015303752707 0)
(-0.00215319610339 -0.00140425068157 0)
(-0.00286734102814 -0.00132399529861 0)
(-0.0013167831873 -0.000247871633445 0)
(-0.0121905566624 -0.00788573747764 0)
(-0.00924111052163 0.00187267061333 0)
(0.020735977591 0.102954643714 0)
(0.0402455157491 0.168443952429 0)
(0.0604743037381 0.216919062614 0)
(0.0784125201509 0.251320697673 0)
(0.0941593298861 0.274964060331 0)
(0.107908932876 0.290586141936 0)
(0.119908769272 0.300371262684 0)
(0.130480804425 0.306023764404 0)
(0.13994944239 0.308825376677 0)
(0.148604501549 0.309705801778 0)
(0.156686351475 0.309316809946 0)
(0.164382030801 0.308100292269 0)
(0.171828877903 0.306346091291 0)
(0.179122025075 0.304238154238 0)
(0.186322756642 0.301889239119 0)
(0.193466061093 0.299365703785 0)
(0.200566523437 0.296704240673 0)
(0.207622301759 0.293922350303 -5.39831913479e-29)
(0.214616906096 0.291022906917 -5.35459630721e-29)
(0.221517728785 0.287993011426 0)
(0.228270664331 0.284799671757 0)
(0.234792208603 0.281387593783 0)
(0.240962557234 0.277684295588 0)
(0.24662341279 0.273614276093 0)
(0.251582131483 0.269119462139 0)
(0.255620894829 0.264180486739 0)
(0.258507461627 0.258833691232 0)
(0.260003491018 0.25318125172 0)
(0.259866938019 0.24739487871 0)
(0.257845589382 0.241716112041 0)
(0.253659085606 0.236458107105 0)
(0.24696267178 0.232015249234 0)
(0.237280466496 0.228894239612 0)
(0.223897848987 0.227778691806 0)
(0.205446281701 0.229723182941 0)
(0.180111839311 0.236431526866 0)
(0.138557958369 0.252099691385 0)
(0.0818671620415 0.288705185373 0)
(-5.08399962178e-06 -0.0029089687433 0)
(-2.095627497e-05 -0.00291504647683 0)
(-2.1500132564e-05 -0.0028114684189 0)
(-4.3508110056e-05 -0.00292094470367 0)
(-8.65577017029e-05 -0.00280272017669 0)
(-0.000105695198938 -0.00281304997254 0)
(-0.000113617582306 -0.00285507746122 0)
(-0.000121308482896 -0.00289196320728 0)
(-0.000138250384054 -0.00299316937063 0)
(-0.000188896210204 -0.00301977388345 0)
(-0.000281469595534 -0.00294211537712 0)
(-0.000374782926244 -0.00289796141889 0)
(-0.000429676072428 -0.00295313566427 0)
(-0.000516876600946 -0.00294821281883 0)
(-0.000620671720909 -0.00283293755772 0)
(-0.000709006546017 -0.00292704876184 0)
(-0.000781829981763 -0.00294873854342 0)
(-0.00088001930527 -0.00281413104023 0)
(-0.000990384378511 -0.00279780587212 0)
(-0.00107515445613 -0.00278477579149 0)
(-0.00114662802944 -0.002635327537 -6.0743667448e-29)
(-0.0012408935542 -0.00257457971268 0)
(-0.00132372753212 -0.00252225701182 0)
(-0.00137066131584 -0.0024015416234 0)
(-0.0014228946769 -0.00232632024928 0)
(-0.00145771080519 -0.00223485326777 0)
(-0.00149332384904 -0.00214762518893 0)
(-0.00153596983069 -0.00208703623515 0)
(-0.00156601789148 -0.00202143573838 0)
(-0.00160002333117 -0.00196246565963 0)
(-0.00164569245875 -0.00191299836095 0)
(-0.00169771571031 -0.00187240853831 0)
(-0.00174237284361 -0.0018223266045 0)
(-0.00179876976641 -0.00177874813311 0)
(-0.00186870112801 -0.00174003787658 0)
(-0.00196027713675 -0.00170750433219 0)
(-0.00207064329804 -0.00166365269398 0)
(-0.0022067227336 -0.00163243398453 0)
(-0.00275205789865 -0.00155442657633 0)
(-0.00149550545415 -0.00144086254005 0)
(-0.00896468784909 -0.0175084982332 0)
(0.00696540115039 0.0277685857487 0)
(0.0266252847658 0.120993366119 0)
(0.0450548742917 0.188049682424 0)
(0.063838779919 0.235115857474 0)
(0.080707717692 0.26757405387 0)
(0.0954883199532 0.289211327788 0)
(0.108349437872 0.303006711314 0)
(0.119565401297 0.311262874599 0)
(0.129471112975 0.315712403623 0)
(0.138391827813 0.317615757789 0)
(0.146607702254 0.317856749719 0)
(0.154341811595 0.317032649126 0)
(0.161760333338 0.315532503499 0)
(0.168979475027 0.313600324765 0)
(0.176074993903 0.311382998812 0)
(0.183091416015 0.308964502317 0)
(0.190049627296 0.306389099824 -5.55834408187e-29)
(0.196952259739 0.303676030128 0)
(0.203786888923 0.300827792439 5.36574921707e-29)
(0.2105267196 0.29783172433 0)
(0.217127158852 0.294654867787 0)
(0.223517636964 0.291236234569 0)
(0.22959128979 0.287484265636 0)
(0.235197710727 0.283285844945 0)
(0.240143226165 0.278527145935 0)
(0.244199512264 0.273120417538 0)
(0.247117464312 0.267028431021 0)
(0.24864121976 0.260280246299 0)
(0.248517504781 0.252975985695 0)
(0.246496731524 0.24528190729 0)
(0.242323355503 0.23741910817 0)
(0.235713502465 0.229649167048 0)
(0.22631178382 0.222258562214 0)
(0.213623814467 0.215544178929 0)
(0.196896008514 0.209780929469 0)
(0.17480492706 0.205204877071 0)
(0.145676719789 0.201594078529 0)
(0.102684691296 0.198534601097 0)
(0.0546237209087 0.187288724214 0)
(-4.8649239764e-06 -0.00291495165975 0)
(-2.30805723212e-05 -0.00292928620644 0)
(-4.86186935317e-05 -0.00277682435032 0)
(-3.13585804952e-05 -0.00285985332629 0)
(-3.26448642257e-05 -0.00282138689738 0)
(-6.90760342336e-05 -0.00282074927074 0)
(-6.96355615007e-05 -0.00286063750476 0)
(-7.2064013438e-05 -0.00290844843358 0)
(-7.2408122739e-05 -0.00301292415562 0)
(-9.07195666649e-05 -0.00307794536347 0)
(-0.000170567140339 -0.00306422199079 0)
(-0.000279803196872 -0.00300438009941 0)
(-0.000356669649829 -0.00297095707601 0)
(-0.000424702778296 -0.00304284253446 0)
(-0.000548142879956 -0.00300229470738 0)
(-0.000663095812309 -0.0029466549668 0)
(-0.000745078210054 -0.00303032588011 0)
(-0.000878570770585 -0.00306434032956 0)
(-0.00096700583525 -0.00286601027712 0)
(-0.00107354007934 -0.00286730246458 0)
(-0.00118851557579 -0.00282355735321 0)
(-0.00124966383775 -0.00264465192104 0)
(-0.00133575759185 -0.00258266227813 0)
(-0.00137456763692 -0.0024559277631 0)
(-0.00141881164456 -0.00236246197044 0)
(-0.00146324207888 -0.00228999839787 0)
(-0.00148423433739 -0.00218994372242 0)
(-0.00151732550233 -0.00212223449363 0)
(-0.00153057117139 -0.00204691542166 0)
(-0.00157353344761 -0.00201056799331 0)
(-0.00160615042277 -0.00196200501468 0)
(-0.00162935632841 -0.00190530342933 0)
(-0.0016626543467 -0.00186183176844 0)
(-0.00171325228861 -0.00183401357767 0)
(-0.00177031467527 -0.00180708337596 0)
(-0.00182746938638 -0.00177373169081 0)
(-0.00188746843679 -0.00174942593288 0)
(-0.00196454787755 -0.00175352783548 0)
(-0.00198475758953 -0.00169509726528 0)
(-0.00176709282297 -0.00199780236508 0)
(-0.0011812175511 -0.00349810297789 0)
(0.00666973942028 0.0426519468745 0)
(0.0295092556504 0.141043262468 0)
(0.0479870487451 0.207158062637 0)
(0.0660830825719 0.252500363246 0)
(0.0821088718399 0.282933761976 0)
(0.0960515409393 0.302590203768 0)
(0.108127520595 0.314639509398 0)
(0.118651086615 0.321473393015 0)
(0.127976456999 0.32483562049 0)
(0.136428879713 0.325951328802 0)
(0.14427583565 0.325648472124 0)
(0.151720900972 0.324464683686 0)
(0.158908663546 0.3227349897 0)
(0.165934814302 0.32065895421 0)
(0.172857285477 0.318349029745 0)
(0.179705854918 0.315863269428 5.55811441376e-29)
(0.186489407452 0.313226301134 5.5221415869e-29)
(0.193200562071 0.310441600243 0)
(0.199817967086 0.307497353145 0)
(0.206305746503 0.304364381514 0)
(0.212607644142 0.300986062638 0)
(0.218635502256 0.297267043769 0)
(0.224256645066 0.293071985263 0)
(0.229287502855 0.288241382375 0)
(0.233498289932 0.282621721205 0)
(0.236627876476 0.276099591386 0)
(0.238403372541 0.268628394923 0)
(0.23855770967 0.260240841834 0)
(0.236840174827 0.251046253939 0)
(0.233017063609 0.241215625908 0)
(0.226861663633 0.230958551373 0)
(0.218133453339 0.220494132095 0)
(0.206539637969 0.21001529945 0)
(0.191692068267 0.199640870309 0)
(0.173003390153 0.189326098107 0)
(0.149544983242 0.178768500711 0)
(0.120241075752 0.166681883272 0)
(0.0807956696422 0.151106510835 0)
(0.0409300449158 0.122935459905 0)
(1.1856359709e-06 -0.00292936337661 0)
(1.94596354624e-06 -0.0029542684402 0)
(-4.78357189306e-05 -0.00281132961654 0)
(-4.62589022385e-05 -0.00276303570348 0)
(-1.59359087799e-05 -0.00289485653212 0)
(-3.1697948457e-05 -0.0028255706108 0)
(-2.10789583598e-05 -0.00285655864271 0)
(-1.10174857485e-05 -0.00291074417967 0)
(4.66677966182e-06 -0.00299007210133 0)
(9.20028931801e-06 -0.00311315955737 0)
(-3.51718114282e-05 -0.00316904926611 0)
(-0.000139699154465 -0.00310260339424 0)
(-0.000261906878188 -0.00307486874511 0)
(-0.000338014879529 -0.00307555009887 0)
(-0.000443844481114 -0.00320559341014 0)
(-0.00058502409352 -0.00304777363304 0)
(-0.00072557424496 -0.00306196228786 0)
(-0.000839347160883 -0.00315083619264 0)
(-0.000943995040832 -0.00298501200244 0)
(-0.00108168846283 -0.00293818604047 0)
(-0.00119297500725 -0.00290234624461 0)
(-0.00125390512213 -0.00271769832201 0)
(-0.00133703983969 -0.00262141105975 0)
(-0.0013858999004 -0.00251013143079 0)
(-0.00142235544598 -0.00240009146832 0)
(-0.00144206030441 -0.00229460953893 0)
(-0.00147174850474 -0.00222060169822 0)
(-0.00147278722227 -0.0021226705967 0)
(-0.00150285354826 -0.00208139505185 0)
(-0.00152715063273 -0.0020442882411 0)
(-0.00151743848767 -0.00196678287941 0)
(-0.00153379274838 -0.00192674199683 0)
(-0.00155486073849 -0.00189852580065 0)
(-0.00159211435842 -0.00188460536844 0)
(-0.00162163035017 -0.00185569905174 0)
(-0.00166636230942 -0.00183643296098 0)
(-0.00170589421142 -0.00180978225545 0)
(-0.00174547652409 -0.00179010140072 0)
(-0.00167603814946 -0.00167657840649 0)
(-0.000886436036138 -0.00141074301838 0)
(-0.00189860150412 -0.00391267925254 0)
(2.90821900841e-05 0.0668613722776 0)
(0.0302138641355 0.161711517215 0)
(0.049403613152 0.226027828886 0)
(0.0672478570354 0.2693079703 0)
(0.0826599692261 0.297573542987 0)
(0.0959061743124 0.315229557768 0)
(0.107311279921 0.325590888809 0)
(0.117242451949 0.331098025333 0)
(0.126076266423 0.333479154676 0)
(0.134137696519 0.333906829892 0)
(0.141680160679 0.33314313296 0)
(0.148887112775 0.331661987705 0)
(0.155882216689 0.329744458597 0)
(0.162742316263 0.327547974838 -5.70400864181e-29)
(0.169509729519 0.325153665823 0)
(0.17620180294 0.32259660873 -5.52235823806e-29)
(0.182817574002 0.319884086477 0)
(0.189341471484 0.317005190881 0)
(0.195744664013 0.313934078231 0)
(0.201983120657 0.310623327116 0)
(0.207988688612 0.30698772619 0)
(0.2136536202 0.302889691948 0)
(0.21881608096 0.298141950734 0)
(0.223256411734 0.292534031259 0)
(0.226708486399 0.28587450263 0)
(0.228882464649 0.278032715189 0)
(0.229490518007 0.268965946346 0)
(0.228267512655 0.258726099186 0)
(0.224982155488 0.247447686191 0)
(0.21943718515 0.235322644765 0)
(0.211460497853 0.22256734172 0)
(0.20088854858 0.20938330988 0)
(0.187538108934 0.195910962816 0)
(0.171197985008 0.182161387525 0)
(0.151526404209 0.16790918274 0)
(0.128117172746 0.152597648591 0)
(0.100569600997 0.134149494653 0)
(0.0661444636273 0.109920479357 0)
(0.0328510517172 0.0730948795456 0)
(7.88105611591e-06 -0.00293603858615 0)
(1.82344448348e-05 -0.00297482001501 0)
(-3.00776587009e-05 -0.00297652144057 0)
(-6.26005975796e-05 -0.00275166613032 0)
(-1.10028622735e-05 -0.0029470316625 0)
(3.25665043354e-05 -0.0028465759175 0)
(4.51471109198e-05 -0.00284065060677 0)
(6.79353941022e-05 -0.00289777693488 0)
(8.65089050855e-05 -0.00296235422183 0)
(0.000107519242647 -0.00312304072583 0)
(9.68438575035e-05 -0.00320608929384 0)
(2.45224731944e-05 -0.00329646813125 0)
(-0.000102501644028 -0.00319923944 0)
(-0.00023621323903 -0.00316283990589 0)
(-0.000336972688735 -0.00326575202298 0)
(-0.000500137299537 -0.00336743404758 0)
(-0.000677325839918 -0.00319516949656 0)
(-0.000820520800045 -0.00322023943201 0)
(-0.000957481001883 -0.00321219815113 0)
(-0.00108560607944 -0.00303481501312 0)
(-0.0012093647053 -0.0029621515284 0)
(-0.0012974037397 -0.00283977841182 0)
(-0.00135520949244 -0.00266918058069 0)
(-0.00140606445508 -0.00254505285342 0)
(-0.0014277851274 -0.00242240404081 0)
(-0.00144503507418 -0.00231927598616 0)
(-0.00144660033949 -0.00221966166358 0)
(-0.00145317090669 -0.00214896120874 0)
(-0.00145635594955 -0.00209667141483 0)
(-0.00143293948316 -0.00202778516593 4.26742399979e-29)
(-0.00141950754579 -0.00197987963836 -4.00700938529e-29)
(-0.00141382143358 -0.00194752149436 0)
(-0.00141013254997 -0.00192183451174 0)
(-0.00141210505456 -0.00190132647343 0)
(-0.00142052903376 -0.00188071474562 0)
(-0.00144340032773 -0.00186244314423 0)
(-0.00149289287542 -0.00185942221333 0)
(-0.00159260274669 -0.00182991142348 0)
(-0.0018823599602 -0.00170893926712 0)
(-0.00132523208942 -0.0017238861303 0)
(-0.00990707507767 -0.0195734994835 0)
(0.0078724600088 0.090191517575 0)
(0.0316774856072 0.182137958581 0)
(0.0501757785077 0.2444791077 0)
(0.0676905468797 0.285567171536 0)
(0.0825510279714 0.311585717307 0)
(0.0951822260158 0.327232299036 0)
(0.106006786042 0.335959441608 0)
(0.115434498579 0.34022744927 0)
(0.123856844502 0.341723036475 0)
(0.131595137447 0.341549383606 -6.18755854041e-29)
(0.13888737875 0.340394007839 6.10811501833e-29)
(0.145897076195 0.338664506488 0)
(0.152728438061 0.336589167326 5.69600644775e-29)
(0.159441681282 0.334286218808 5.6644870295e-29)
(0.166065968725 0.331808735132 0)
(0.172608520557 0.32917159632 0)
(0.179060509461 0.326366699048 0)
(0.185399729046 0.323369723245 0)
(0.191591013884 0.32014060621 0)
(0.197582721882 0.316611023045 0)
(0.203293861509 0.312660611126 0)
(0.208594028093 0.308100029763 0)
(0.213287922924 0.30268160857 0)
(0.217116648959 0.296141282871 0)
(0.219778227618 0.288255372928 0)
(0.220959418092 0.278889052055 0)
(0.220367174776 0.268020903181 0)
(0.217751092961 0.255740742695 0)
(0.212913740951 0.242226613671 0)
(0.205709317362 0.227709939905 0)
(0.196035997299 0.212435625356 0)
(0.183822872625 0.196619011815 0)
(0.169015155294 0.180400351076 0)
(0.151600500417 0.16376548931 0)
(0.131465801333 0.146467229321 0)
(0.108800165895 0.12793499281 0)
(0.0837214979851 0.105014636023 0)
(0.053455582156 0.0750903516453 0)
(0.024213147397 0.0350930712542 0)
(1.65202732865e-05 -0.00291062442823 0)
(2.73739090038e-05 -0.00297510633145 0)
(1.90218082015e-05 -0.00301134575563 0)
(-1.89102314152e-05 -0.00273648578672 0)
(-5.92629879839e-06 -0.00271184160773 -1.1595482107e-29)
(5.50308629648e-05 -0.00280734251766 1.51859701109e-33)
(9.84515863968e-05 -0.00281207846837 1.21170676169e-29)
(0.000148629414118 -0.00287422460314 0)
(0.000175046567471 -0.0029544675284 0)
(0.000209851574713 -0.00308683581626 0)
(0.000229840603311 -0.00324121980493 0)
(0.000203980270875 -0.00331795647518 0)
(0.000106522084693 -0.00334966066705 0)
(-6.83801523546e-05 -0.00333291603843 0)
(-0.000236348844682 -0.0033357017108 0)
(-0.000398394076509 -0.00351449173249 0)
(-0.000601448592228 -0.00344655807516 0)
(-0.000804002822491 -0.00334435281752 0)
(-0.000960897835279 -0.00330882169701 0)
(-0.00112781676679 -0.00326956044387 0)
(-0.00123686227095 -0.00302661610626 0)
(-0.00134669291759 -0.00289189052472 0)
(-0.00141745532216 -0.00275461429537 0)
(-0.00143555133137 -0.00256684715057 0)
(-0.00145415067006 -0.00243709187713 0)
(-0.00145442757127 -0.00232951757972 0)
(-0.00143257523469 -0.00222520021442 0)
(-0.00141020766565 -0.00214865532747 0)
(-0.00135665497625 -0.00205649062911 0)
(-0.00131476797968 -0.00200024445934 0)
(-0.001270620569 -0.00194425289409 0)
(-0.00123437244453 -0.00190379091811 0)
(-0.00121296230966 -0.00189119893888 0)
(-0.00119162087353 -0.00188021481665 0)
(-0.0011794464141 -0.00187265014074 0)
(-0.0011864862575 -0.00187829027632 0)
(-0.00118665096276 -0.00186668654116 0)
(-0.00131073305824 -0.00198176766432 0)
(-0.00162724173122 -0.00217498162246 0)
(-0.00178970333062 -0.00247723261476 0)
(-0.00128220084337 -0.00330574137411 0)
(0.00841919625799 0.107751731158 0)
(0.0327041226979 0.202238094431 0)
(0.0504316974757 0.262630119662 0)
(0.0675080314516 0.301351655618 0)
(0.0819035723693 0.325054639648 0)
(0.0940081255259 0.338689909505 0)
(0.104330838571 0.34583305556 0)
(0.113329238341 0.348941108172 0)
(0.121405791582 0.349635408081 0)
(0.128874929921 0.34893406645 0)
(0.135958331922 0.347442871809 0)
(0.142800313533 0.345501908141 0)
(0.149487482333 0.34328878398 -5.65620160692e-29)
(0.15606576594 0.340885801945 0)
(0.162553525936 0.338321166052 0)
(0.168949893828 0.335592007116 0)
(0.175239829093 0.332676379087 0)
(0.181395679732 0.329537075935 0)
(0.187376739796 0.326119120324 0)
(0.193123861902 0.322329463052 0)
(0.198541414734 0.318004014204 0)
(0.203472049915 0.312890397545 0)
(0.207681788978 0.306672305413 0)
(0.210869427615 0.299032331787 0)
(0.212698684747 0.289724805557 0)
(0.212839564526 0.278628364104 0)
(0.21100417959 0.265763539074 0)
(0.206968824689 0.251278115934 0)
(0.20058135205 0.235411499843 0)
(0.191756227511 0.218451030499 0)
(0.180466567415 0.200687871196 0)
(0.166729872132 0.182376688085 0)
(0.150609492784 0.163703601526 0)
(0.132261606917 0.144711710573 0)
(0.111728047619 0.125354040731 0)
(0.089972067887 0.105302202723 0)
(0.0668646777379 0.0792198015028 0)
(0.0365378481704 0.045184682539 0)
(0.000189237976449 -0.000188983421366 0)
(3.46343172255e-05 -0.00285104514667 0)
(6.80760158379e-05 -0.00296046274993 0)
(9.46549686603e-05 -0.0029444889396 0)
(6.10636601939e-05 -0.00279940143864 0)
(-1.09527183615e-05 -0.00272609014784 0)
(1.20651036541e-05 -0.00276584722513 0)
(0.00011423060216 -0.00274239206007 0)
(0.000213824920055 -0.00282855502768 0)
(0.000268031354181 -0.00292708966627 0)
(0.000308000878811 -0.00301609725272 0)
(0.000374773777872 -0.0032357686491 0)
(0.000379055342073 -0.00332708074778 0)
(0.000342815572039 -0.00351213028276 0)
(0.000186638730761 -0.00349294241863 0)
(-7.14955597348e-05 -0.00355542803271 0)
(-0.000297065292939 -0.00360314026242 0)
(-0.000522842014255 -0.0037235088566 0)
(-0.000764851427466 -0.00352330275022 0)
(-0.00100578718215 -0.00346055722536 0)
(-0.00117115330701 -0.00336041596037 0)
(-0.00134154512986 -0.00326002041348 0)
(-0.00141365609264 -0.00294556375229 0)
(-0.00148590199329 -0.0027717161715 0)
(-0.00149641610899 -0.00259182396963 0)
(-0.00148881735375 -0.00243814034313 0)
(-0.00143861048841 -0.00228799651321 0)
(-0.00138742480598 -0.00218547830901 0)
(-0.00130191263025 -0.0020629651538 0)
(-0.0012415661726 -0.00199615799917 0)
(-0.0011681273165 -0.00192147935516 0)
(-0.00112174410753 -0.00189206604191 3.68046137561e-29)
(-0.00107663390524 -0.00187301888754 -3.41484016223e-29)
(-0.00103293546732 -0.00186338141825 0)
(-0.000987923209893 -0.00185477604802 0)
(-0.000963461295315 -0.00186637864377 0)
(-0.000931608138968 -0.00186986631187 0)
(-0.000948065270899 -0.00195900457858 0)
(-0.00107701022011 -0.00220716340901 0)
(-0.00131610483348 -0.002517139939 0)
(-0.00149936695801 -0.00292959839019 0)
(-0.00164793297488 -0.00453603341062 0)
(0.00305958324841 0.128365038643 0)
(0.0321554082084 0.222883421835 0)
(0.0501872356434 0.280799772639 0)
(0.0669047180638 0.316819459762 0)
(0.0808973239387 0.338072112155 0)
(0.092539760075 0.349677172834 0)
(0.102414002724 0.355279307016 0)
(0.111032772471 0.357299009868 0)
(0.118808394547 0.357266796826 -5.97985280627e-29)
(0.126044983172 0.356100504017 0)
(0.132946545499 0.354318416825 0)
(0.139638808156 0.35219325037 0)
(0.146192479209 0.349854790044 0)
(0.152641244741 0.347352860697 0)
(0.158994635168 0.344693778601 0)
(0.165245288357 0.341858985158 0)
(0.171373183756 0.338813816311 0)
(0.177346002531 0.335508269716 0)
(0.18311793127 0.331871233367 0)
(0.188621951276 0.327779659834 0)
(0.193744978034 0.323014720206 0)
(0.198297103453 0.317248013417 0)
(0.201999722752 0.310087370681 0)
(0.204506781792 0.301166253902 0)
(0.205450741474 0.290232439485 0)
(0.204493020647 0.27719995512 0)
(0.201361907964 0.262154056828 0)
(0.19587167069 0.24532029342 0)
(0.187924609128 0.227014647459 0)
(0.177500216255 0.207591532162 0)
(0.1646446231 0.187395361613 0)
(0.149444667812 0.166724439218 0)
(0.132038379612 0.145814197031 0)
(0.112618096864 0.12476883239 0)
(0.0912231259747 0.103922639225 0)
(0.0699038731515 0.0835132290314 0)
(0.0460364377325 0.0538562503507 0)
(0.000794154943827 0.00105827853368 0)
(-0.000320972233527 -0.00098680351821 0)
(6.27249972811e-05 -0.00276398873385 0)
(0.000144625351831 -0.0029389526291 0)
(0.00015942096527 -0.00288400362 0)
(0.000130438124211 -0.00292491975468 0)
(3.12757051076e-05 -0.00277408594137 0)
(2.98122357424e-06 -0.00262538303613 0)
(9.71639094122e-05 -0.00254651399706 0)
(0.00022783354119 -0.00270794983605 0)
(0.000327599272243 -0.00286041152125 0)
(0.00040055750054 -0.00297494517029 0)
(0.000486028406153 -0.00311960400728 0)
(0.000568613271242 -0.00340246822875 0)
(0.000559398410017 -0.00349155758312 0)
(0.000503388663146 -0.003840556953 0)
(0.000252923727234 -0.00391330313146 0)
(-0.000119461948182 -0.00381712504315 0)
(-0.000462632033352 -0.00389918451746 0)
(-0.000773846836703 -0.00395656338299 0)
(-0.00103202462126 -0.0036436037746 0)
(-0.00128346423855 -0.00353943404752 0)
(-0.00144280649696 -0.00330914349393 0)
(-0.00157630005543 -0.00312043230965 0)
(-0.00157227427119 -0.00276453919249 0)
(-0.00158021490081 -0.00257861660606 0)
(-0.00151102052971 -0.00238755429303 0)
(-0.00141013076283 -0.00221080560897 0)
(-0.00130684892411 -0.00207687468117 0)
(-0.00122193262359 -0.00198989545929 0)
(-0.00113746504545 -0.0019164390995 0)
(-0.00107014267728 -0.00187976776733 0)
(-0.00100362045059 -0.00185868849385 0)
(-0.00092720159783 -0.0018271333435 0)
(-0.000855334864418 -0.00180387236962 0)
(-0.000798950147265 -0.00181010060134 0)
(-0.000752044115225 -0.00183262960235 0)
(-0.000691595300328 -0.00183796203028 0)
(-0.000697523382973 -0.00202157852716 0)
(-0.000752043826087 -0.00233418876905 0)
(-0.000907634153085 -0.00278577760437 0)
(-0.00123176866421 -0.00334126612133 0)
(-0.00129054889209 -0.00411404015848 0)
(0.00190782282623 0.149065047266 0)
(0.0313985634816 0.243639864099 0)
(0.049989109773 0.298957319296 0)
(0.0662782412256 0.331995470018 0)
(0.0797898451372 0.350653485453 0)
(0.0909547999896 0.360214275434 0)
(0.100388333724 0.364326863082 0)
(0.10864518884 0.365332722397 5.96398557511e-29)
(0.116140865018 0.364645984446 1.17386605008e-28)
(0.123163354168 0.363071338455 -5.7518258247e-29)
(0.129896174862 0.361036172016 0)
(0.136446261861 0.358747671375 0)
(0.142869570209 0.356291492059 0)
(0.149189050849 0.353688593296 0)
(0.155406849153 0.350926183948 0)
(0.161510191326 0.347971715713 0)
(0.167474882776 0.344778564674 0)
(0.173264309015 0.341283621331 0)
(0.178827651649 0.337397879514 0)
(0.184089163298 0.332961181349 0)
(0.188914316283 0.327686057779 0)
(0.193073645161 0.321153627775 0)
(0.196237556962 0.312890748241 0)
(0.198013682272 0.302491087108 0)
(0.19800818097 0.28971689762 0)
(0.195883678913 0.274543282755 0)
(0.191396222212 0.257144093399 0)
(0.184408815079 0.237841249927 0)
(0.174886252515 0.217039691811 0)
(0.162877657139 0.195167994108 0)
(0.148504325105 0.172622168073 0)
(0.1319125971 0.149730631328 0)
(0.113289542534 0.126729618668 0)
(0.0926954883343 0.103574459845 0)
(0.069865628296 0.0805777438872 0)
(0.0473239617732 0.0581737765002 0)
(0.00227692958819 0.003519315639 0)
(-0.000183277637914 -0.000143164330679 0)
(-2.68535617182e-05 -0.000708925817445 0)
(8.97832611732e-05 -0.00262549460594 0)
(0.000215323092456 -0.00290467168075 0)
(0.000224443615944 -0.00295843386746 0)
(0.000202444860418 -0.0029706526541 0)
(0.000149113105395 -0.00293711219916 1.15557404621e-28)
(8.3043849126e-05 -0.00264216818425 0)
(8.53292259035e-05 -0.00241269867027 0)
(0.000190860589348 -0.00258587742323 0)
(0.0003418289577 -0.00274459277682 0)
(0.000474125468276 -0.00288455174242 0)
(0.000585772831758 -0.00300918113714 0)
(0.000764059286151 -0.00331595885801 0)
(0.000804908689484 -0.00344078609181 0)
(0.000794894571746 -0.00386152521901 0)
(0.000590753016384 -0.00411188779011 0)
(0.000257828625985 -0.00463604296433 0)
(-0.000285492284503 -0.00411273918065 0)
(-0.000817439721793 -0.00418603274957 0)
(-0.00113076299445 -0.00405209399311 0)
(-0.00138570237297 -0.00374179526321 0)
(-0.00167109627287 -0.00346765270308 0)
(-0.00174434404001 -0.00311907523148 0)
(-0.00177294548575 -0.00284467711307 0)
(-0.00164715103441 -0.00249351311944 0)
(-0.00152222625783 -0.00226867704472 0)
(-0.00138184904955 -0.00210046530897 0)
(-0.00126415144396 -0.00199114610719 0)
(-0.00116075873142 -0.00191547592709 0)
(-0.00105462978106 -0.00184844598891 0)
(-0.000958956337703 -0.00181179582133 0)
(-0.000847498089514 -0.00175108547596 0)
(-0.000764933340722 -0.00173347095027 0)
(-0.000693106980692 -0.00173713206953 0)
(-0.000626141005913 -0.00175674632994 0)
(-0.000547299461725 -0.00177033417208 0)
(-0.000463218881759 -0.00181301098432 0)
(-0.000399391771013 -0.00200291344114 0)
(-0.000312801600342 -0.00233121848295 0)
(-0.000309042881709 -0.00290370786903 0)
(0.00018935481136 -0.00302497904153 0)
(-0.00127343104898 -0.00290656886673 0)
(0.00342726358496 0.173705819943 0)
(0.0309497072546 0.264191205348 0)
(0.0502185352011 0.316766450948 0)
(0.0659629702901 0.346708698107 0)
(0.0788100989993 0.362705479091 0)
(0.089403234738 0.370255521442 0)
(0.0983601394783 0.372962228372 0)
(0.106245208004 0.373045423363 -5.8979486964e-29)
(0.11346197197 0.371781396243 0)
(0.120273902707 0.369854082971 0)
(0.126839983981 0.367600455026 0)
(0.133247396719 0.365166243193 0)
(0.139537918478 0.362597648212 0)
(0.145724722129 0.359890585758 0)
(0.151803515222 0.357015786318 0)
(0.157756716644 0.353928115679 0)
(0.163556399593 0.350569454759 0)
(0.169161658355 0.346862914113 0)
(0.174516503956 0.342699267547 0)
(0.179535097616 0.337871789342 0)
(0.184056119892 0.332007124529 0)
(0.18780219184 0.324580519804 0)
(0.190386412113 0.315036253415 0)
(0.191370314501 0.302943820211 0)
(0.190340949476 0.288106650688 0)
(0.186973450787 0.270589467752 0)
(0.181063327933 0.250678443407 0)
(0.172531990495 0.228808484509 0)
(0.161412989078 0.205483697484 0)
(0.147829726323 0.181214500353 0)
(0.131987115371 0.156451112456 0)
(0.114100481931 0.131559653659 0)
(0.0944968808554 0.106755192951 0)
(0.0733610655628 0.0815098389332 0)
(0.0502794221207 0.0556219076769 0)
(0.0188379588865 0.0292704493664 0)
(0.000249148554565 -3.13183898824e-06 0)
(0.00119737985276 -0.000784338043298 0)
(0.000229342289649 -0.000952394660663 0)
(9.88008019471e-05 -0.00243112953675 0)
(0.000255079436818 -0.00285481252834 0)
(0.000288551382144 -0.00296020503959 1.3367831653e-28)
(0.000284782525454 -0.00298425678563 0)
(0.000269137501595 -0.00295862810315 -1.29982419642e-28)
(0.000206806233059 -0.00273963082367 0)
(0.000122745762967 -0.00249135352751 0)
(0.000164738422031 -0.00243701286953 0)
(0.000337285594262 -0.00259495650913 0)
(0.000516800263821 -0.00273199958965 0)
(0.000700998174014 -0.00287534065943 0)
(0.000888500510958 -0.00302101823371 0)
(0.00121076357217 -0.00360188044563 0)
(0.00111448754388 -0.00371046021491 0)
(0.0011665585367 -0.0046130262181 0)
(0.000629869200016 -0.00414952970373 0)
(7.84932037492e-05 -0.00549291086608 0)
(-0.000816390760968 -0.00399667221908 0)
(-0.0013137966408 -0.00405639468798 0)
(-0.00166192105274 -0.00448566250887 0)
(-0.00195589671781 -0.00360389148694 0)
(-0.00202775805889 -0.00309663807651 0)
(-0.00192411114301 -0.00268619751069 0)
(-0.00173520980365 -0.00237064372848 0)
(-0.00151577283533 -0.00210726092448 0)
(-0.00134185737285 -0.00195338282636 0)
(-0.00121019995556 -0.00188339423737 0)
(-0.00105703176986 -0.00178626385686 0)
(-0.000931007648088 -0.00173454084904 0)
(-0.000796889454054 -0.00166552670066 0)
(-0.000711371703415 -0.00166328171502 0)
(-0.000632522532475 -0.00167014043566 0)
(-0.00054864954071 -0.0016745042861 0)
(-0.000456414382215 -0.00167677233632 0)
(-0.000352404886605 -0.00167975860853 0)
(-0.000235124085145 -0.00169777256665 0)
(-0.000120804467998 -0.00189662663185 0)
(0.000149015099556 -0.00214683674703 0)
(-0.00021546186677 -0.0029076054824 0)
(-0.0011751282667 -0.00297279769642 0)
(-0.0291634076278 -0.0231373807412 0)
(0.0147688775509 0.200296667803 0)
(0.0326423044764 0.284519517389 0)
(0.0510818694756 0.33373822464 0)
(0.0660811743243 0.360629930875 6.60432432338e-29)
(0.0780725885358 0.374055411755 0)
(0.087966023962 0.37971450116 0)
(0.0963884318213 0.381146802815 0)
(0.103878656362 0.380422704124 0)
(0.110807236957 0.378668203346 0)
(0.117403633514 0.376446077037 0)
(0.123798349815 0.374008003366 0)
(0.130057812194 0.371444700571 0)
(0.136209970402 0.368768514027 0)
(0.14225882169 0.365954308811 0)
(0.148194235453 0.362958835303 0)
(0.153994058784 0.359725531361 0)
(0.15962682326 0.356185016835 0)
(0.165047029561 0.352245609422 0)
(0.17019317181 0.347774921739 0)
(0.174967430925 0.34250719849 0)
(0.179174782093 0.335962202266 0)
(0.182480340953 0.327493880402 0)
(0.184434223602 0.3164675247 0)
(0.18455441007 0.302451382135 0)
(0.182418509176 0.285322081885 0)
(0.177726762437 0.265263996533 0)
(0.170325397608 0.242697391426 0)
(0.160201630744 0.218182780987 0)
(0.147459302007 0.192329236392 0)
(0.1322940247 0.165736703366 0)
(0.114991214417 0.138923864018 0)
(0.0958269609862 0.112370097835 0)
(0.0753998483466 0.0863475365727 0)
(0.054014218516 0.0593633394475 0)
(0.0301785068103 0.0311822793988 0)
(0.000213147659714 -0.000580181086039 0)
(0.000187182329982 -0.00224741543257 0)
(0.000434549772452 -0.00155393835523 0)
(0.000132958690495 -0.00140360396981 0)
(7.81862479825e-05 -0.00219910046321 0)
(0.000251692330267 -0.00275879554601 0)
(0.000335712132419 -0.0029306397047 -1.48003898109e-28)
(0.000370520888835 -0.00300411505038 0)
(0.000387782281092 -0.00297797629486 0)
(0.000362985001179 -0.00281862164861 0)
(0.000222147140714 -0.00249865896653 0)
(0.000151842823943 -0.00229123447978 0)
(0.000292411364841 -0.0024077277109 0)
(0.000514399519576 -0.00253179797675 0)
(0.000759801388403 -0.00265010434449 0)
(0.00103805252766 -0.00281899361666 0)
(0.00128852894025 -0.00308883789462 0)
(0.00184385673206 -0.00440548620811 0)
(0.00155149402549 -0.00457746950522 0)
(0.00223895967416 -0.00625147215263 0)
(-4.49980719805e-05 -0.00409901055995 0)
(-0.00219665912387 -0.00741289562053 0)
(-0.000599048923332 -0.00337048518524 0)
(-0.00193322700706 -0.00370174981521 0)
(-0.00281895476377 -0.0039115723159 0)
(-0.00259285581466 -0.0032153409453 0)
(-0.00203899347929 -0.00240105320564 0)
(-0.00175782467699 -0.00209298548116 0)
(-0.00147707421464 -0.00189590694234 0)
(-0.00127347277665 -0.001786055471 0)
(-0.00108991318379 -0.00170412733672 0)
(-0.000926193264005 -0.0016391653781 0)
(-0.00077597365114 -0.00157266170361 0)
(-0.000682365564127 -0.00157980575518 0)
(-0.00059824020042 -0.00159825721194 0)
(-0.000494005770132 -0.00157663376193 0)
(-0.000393695583684 -0.00156896621855 0)
(-0.000289206057784 -0.00156179524929 0)
(-0.000177954488636 -0.00155264402018 0)
(-5.86734634396e-05 -0.00157735309341 0)
(6.53430663894e-05 -0.00171381909861 0)
(0.000695722331739 -0.00175954954873 0)
(-0.00127585876674 -0.00450867102269 0)
(-0.0417692020744 -0.0346850078808 0)
(-0.0176011594765 0.0280235556488 0)
(0.0193762971532 0.219499577682 0)
(0.0365993879558 0.303129771148 0)
(0.0528129790728 0.349443155863 0)
(0.0665459244154 0.373475487968 -6.40438384543e-29)
(0.0775255078565 0.384546182147 0)
(0.0866331289615 0.388514056455 0)
(0.0944790443878 0.388844982508 0)
(0.101556955189 0.387448492559 0)
(0.108188766706 0.385297812786 0)
(0.114563126952 0.382840605979 0)
(0.120779939355 0.380252177068 0)
(0.12688471744 0.377576419271 0)
(0.132892147268 0.374797960943 0)
(0.138797548692 0.371874603311 0)
(0.1445853956 0.368751440817 0)
(0.150228959207 0.365361408783 0)
(0.15569330165 0.361623906229 0)
(0.160927777716 0.357431100259 0)
(0.165864941247 0.352623809319 0)
(0.17039253359 0.34686093672 0)
(0.174273104958 0.339530328798 0)
(0.177103678413 0.329850540104 0)
(0.178367095141 0.317118610584 0)
(0.17754329192 0.300932598727 0)
(0.174212801835 0.281278991576 0)
(0.168114861482 0.258491779685 0)
(0.159157347618 0.23314317074 0)
(0.147398809062 0.20592493094 0)
(0.133009359761 0.1775459474 0)
(0.116239623204 0.148688983338 0)
(0.0974091017623 0.119930910869 0)
(0.0768030454493 0.0919663613506 0)
(0.0555487259042 0.0653029511987 0)
(0.0334345772973 0.0365791023237 0)
(0.000404988252391 -0.000137252578078 0)
(-0.00015723225615 -0.00144359908165 0)
(5.15460632861e-05 -0.00171685975118 0)
(0.000157946075639 -0.00164329665564 0)
(6.13585592786e-05 -0.0016065775624 0)
(5.24938553178e-05 -0.00206763997983 0)
(0.000217177628178 -0.00259927134902 0)
(0.000356309623651 -0.00288025292368 0)
(0.000421461131666 -0.00295285080988 0)
(0.000503220611092 -0.00298016937303 0)
(0.000499699772753 -0.00285793729841 0)
(0.000451209925485 -0.00290776396768 0)
(0.000233037346195 -0.00228918544071 0)
(0.000214356790794 -0.00218257406647 0)
(0.00043271831558 -0.00227760835631 0)
(0.00072961442814 -0.00234793220591 0)
(0.00109672929908 -0.00246826555133 0)
(0.00144114472261 -0.00275776763885 0)
(0.00235990492046 -0.0036980143465 0)
(0.00151233399407 -0.00304706312647 0)
(0.00031643896973 -0.00466907675558 0)
(-0.00340914822416 -0.0118407001315 0)
(-0.00115409266057 -0.00392397260388 0)
(-0.00197714417912 -0.00492371293586 0)
(-0.00599600662392 -0.00983872004874 0)
(-0.00242686081581 -0.00272918802052 0)
(-0.00285924194236 -0.00271064041829 0)
(-0.00210720608882 -0.00199133453164 0)
(-0.00168548164094 -0.00174860282979 0)
(-0.00138196691003 -0.00163907266132 0)
(-0.00115436154935 -0.00158461635272 0)
(-0.000951831059985 -0.00152271506002 0)
(-0.000784862914996 -0.00147376179358 0)
(-0.000673544068664 -0.00148316883621 0)
(-0.00057978417598 -0.00151060070929 0)
(-0.000458764821637 -0.00147722386166 0)
(-0.000350960968363 -0.00146982246535 0)
(-0.000247256392674 -0.00146660218604 0)
(-0.000144730453708 -0.00146035880973 0)
(-4.75698802495e-05 -0.00145273040128 0)
(4.37280633019e-05 -0.00147660266101 0)
(6.00228638117e-05 -0.00158592667561 0)
(0.000678151758516 -0.00165342749176 0)
(-0.0143508301508 -0.0494752898635 0)
(-0.0424248162757 -0.0292573332259 0)
(-0.00448185791558 0.0754023260636 0)
(0.0218557756291 0.238843555779 -1.02515032148e-28)
(0.0398681755545 0.32041197827 0)
(0.0546369362353 0.363897626026 0)
(0.0670853533093 0.385187428276 0)
(0.0770284843843 0.394120473803 0)
(0.0853386122456 0.396622881228 0)
(0.0926024148946 0.396042896663 0)
(0.0992668676204 0.394116080863 0)
(0.105600656825 0.39166498871 0)
(0.111749774442 0.389031859956 0)
(0.117783843769 0.386326548283 0)
(0.123728431105 0.383555021803 0)
(0.129585934414 0.380680337315 0)
(0.135343546901 0.377646980551 0)
(0.140980786792 0.374390462953 0)
(0.146466211572 0.370833894718 0)
(0.151761497497 0.366885311846 0)
(0.156810086368 0.362418996065 0)
(0.161538207045 0.35724454054 0)
(0.165816045402 0.350924269475 0)
(0.169352911536 0.342684957658 0)
(0.171666511103 0.331598897306 0)
(0.172170288312 0.316914850745 0)
(0.170315124535 0.298300446798 0)
(0.165699633161 0.275892544707 0)
(0.158117377724 0.250203692153 0)
(0.147549555224 0.22197145363 0)
(0.134133041061 0.192017103661 0)
(0.118102575186 0.161130829805 0)
(0.0997473713167 0.130046903079 0)
(0.0793480176795 0.0992875248881 0)
(0.0570486435875 0.0696435420438 0)
(0.0345096311805 0.0417789314263 0)
(0.000876437969579 0.000982717239139 0)
(-0.000149227787778 -0.000962542508003 0)
(-4.20979398884e-05 -0.00134050194804 0)
(1.16440373165e-05 -0.00160489027208 0)
(4.32953247726e-05 -0.00166497395293 0)
(1.81511185452e-05 -0.00165788438689 0)
(5.80466891839e-05 -0.00197468860474 0)
(0.000204002307099 -0.00238986402856 0)
(0.000347331398164 -0.00279136170028 0)
(0.000426049702 -0.0028553722668 0)
(0.000550259303394 -0.00285789164475 0)
(0.000692147700282 -0.00293177131767 0)
(0.000603597152373 -0.00269689678434 0)
(0.000424549820908 -0.00276039398039 0)
(0.000181309305261 -0.00204443391349 0)
(0.000265311062321 -0.00201494624874 0)
(0.000601506570039 -0.00198516079121 0)
(0.00101736237018 -0.00199975616027 0)
(0.00160069348462 -0.00223732606034 0)
(0.00146714444275 -0.00253860557193 0)
(0.00317867631464 -0.00896496343693 0)
(-0.00161995429323 -0.00971512940414 0)
(-0.00357449070272 -0.0116262726222 0)
(-0.000850208057613 -0.0016141522015 0)
(-0.00663259462984 -0.00879998214659 0)
(-0.00492087981253 -0.00570466175094 0)
(-0.0061547554087 -0.00476213590444 0)
(-0.00212711923797 -0.00143209721254 0)
(-0.00203066861506 -0.0013699903625 0)
(-0.00150187061805 -0.00135412407896 0)
(-0.0012266354823 -0.00138342223502 0)
(-0.000983224041787 -0.00135755198599 0)
(-0.000808018325387 -0.00135476614215 0)
(-0.000669191130541 -0.00136083334592 0)
(-0.000562754296086 -0.00139484902406 0)
(-0.000433826793786 -0.00137035291269 0)
(-0.000321473195433 -0.00136822995104 0)
(-0.000217045829433 -0.00136365132089 0)
(-0.000115999548061 -0.00136079896604 0)
(-1.56327885352e-05 -0.00135646022482 0)
(7.9534728317e-05 -0.00135689911843 0)
(0.000170566836304 -0.00138590793761 0)
(0.000208971667395 -0.00154926866685 0)
(0.000652764032129 -0.00191369922706 0)
(-0.00547239931105 -0.0668701820266 0)
(-0.0306266236309 -0.0255300923677 0)
(0.00596163442556 0.111487619886 0)
(0.0241825468336 0.257779602665 9.48016388235e-29)
(0.0425367883826 0.336710430559 0)
(0.0563032114922 0.377186497382 0)
(0.0675547020122 0.395791345681 0)
(0.0764803330916 0.402783095565 0)
(0.0840152785315 0.404046436616 5.33413063104e-29)
(0.090716503931 0.402747814627 -5.27470419412e-29)
(0.0969817340496 0.400430619765 0)
(0.103025387759 0.397771110679 0)
(0.108951798111 0.395017998921 0)
(0.114802276709 0.392227444564 0)
(0.120584254166 0.389376336216 0)
(0.126289198782 0.386411900348 0)
(0.131896843722 0.383268634656 0)
(0.137382296417 0.37987421717 0)
(0.142709198521 0.376142334589 0)
(0.147836053934 0.371969327622 0)
(0.152699411938 0.367209425816 0)
(0.157218962508 0.361635633 0)
(0.161243423307 0.354686175565 0)
(0.164415617065 0.345393699582 0)
(0.166162553993 0.332678996858 0)
(0.165829058907 0.315773754008 0)
(0.162849546658 0.294463602467 0)
(0.156858174298 0.269079025771 0)
(0.147719116941 0.240338759873 0)
(0.135499631356 0.20915701732 0)
(0.120425403361 0.176481982878 0)
(0.102803753664 0.143163961155 0)
(0.0829900837795 0.109953860777 0)
(0.0613222535191 0.0771156380659 0)
(0.0377488803424 0.0454489641186 0)
(0.00896788652784 0.0151678500124 0)
(-6.04105105565e-05 -0.000773403974553 0)
(0.000492637804814 -0.00116838937197 0)
(0.000110277974354 -0.00140023164634 0)
(3.15780352461e-05 -0.00158515213652 0)
(1.29453596176e-05 -0.00167069890526 0)
(4.05268291468e-06 -0.00167898782008 0)
(9.38374619812e-05 -0.00182382420583 0)
(0.00024055213512 -0.00226462298453 0)
(0.000309241391778 -0.00268463252535 0)
(0.00037368461551 -0.00276155769051 0)
(0.000533661218041 -0.00263965011354 0)
(0.000837315520562 -0.00273857074704 0)
(0.00106249116252 -0.00309913709954 0)
(0.000487056334507 -0.00275829461002 0)
(0.000136707167232 -0.00240448126452 0)
(0.000118417132214 -0.00168473306417 0)
(0.000352918032127 -0.0015851252539 0)
(0.000775767917212 -0.00147294125345 0)
(0.00145827824713 -0.00194131400392 0)
(0.000721294575106 -0.00161302301979 0)
(-0.00162379560414 -0.0109529701015 0)
(-0.00454096426389 -0.0109321504949 0)
(-0.00508603928849 -0.0103758175347 0)
(-0.00659134056299 -0.00691703133632 0)
(-0.00819586059261 -0.00865003455487 0)
(-0.00697273658925 -0.00683135592452 0)
(-0.0014654817344 -0.000544504876168 0)
(-0.0017672243538 -0.000476048098603 0)
(-0.0014346889866 -0.000866886035924 0)
(-0.00120467231401 -0.00105028107409 0)
(-0.00098456274108 -0.00114404495068 0)
(-0.000801193239911 -0.0011858992262 0)
(-0.000646816509862 -0.00120179283607 0)
(-0.000532966556911 -0.00125048319779 0)
(-0.000406160294082 -0.00124876707081 0)
(-0.000297336638164 -0.00126154460413 0)
(-0.000197200016257 -0.00126017532884 0)
(-0.000102823623125 -0.00126665325672 0)
(-7.00603374219e-06 -0.00126555681818 0)
(9.37737401224e-05 -0.00125962903394 0)
(0.000206955953156 -0.00126030493319 2.35929045445e-29)
(0.000347472737323 -0.00127175473544 -2.1877985315e-29)
(0.000547273564861 -0.00140825747895 0)
(0.00058094799928 -0.00187822764931 2.26363971668e-29)
(0.000489619479939 -0.0783567364571 0)
(-0.0179431415361 -0.036258018729 0)
(0.0144428112581 0.137649873198 0)
(0.0278753868148 0.275884344504 0)
(0.0452800221677 0.351898615557 0)
(0.0578376835949 0.389222955641 0)
(0.0678683659411 0.405268656695 0)
(0.0757926479255 0.410551077838 0)
(0.0825932350451 0.410812285439 0)
(0.0887715372595 0.40898493856 0)
(0.0946668401725 0.406409658475 0)
(0.100438515376 0.403625906026 0)
(0.106151943459 0.400803048484 0)
(0.111823325731 0.397955601927 0)
(0.117444456429 0.395039689346 0)
(0.122997596544 0.391991765735 0)
(0.128455844284 0.388739120308 0)
(0.133790624996 0.385202960808 0)
(0.138960431924 0.381287642729 0)
(0.143921046675 0.376877267219 0)
(0.148600896063 0.371803342787 0)
(0.152913246914 0.365795830167 0)
(0.156680439704 0.358133379685 0)
(0.159462781174 0.347618233045 0)
(0.160585752514 0.333023010029 0)
(0.159329949896 0.313606371031 0)
(0.155129263075 0.289327974134 0)
(0.147671830889 0.260755334669 0)
(0.136907154564 0.228837573037 0)
(0.12299863457 0.194676051294 0)
(0.106271190747 0.159352959364 0)
(0.0871199169404 0.123777906821 0)
(0.066001364372 0.0887362518184 0)
(0.0432462339312 0.0539563618158 0)
(0.0178785606913 0.020702088923 0)
(-0.000178150964905 -0.000948052894465 0)
(0.000112150508728 -0.00167910848308 0)
(0.000135919203564 -0.00146029324927 0)
(3.56744510596e-05 -0.00152292768294 0)
(-5.34288112983e-06 -0.00161067312091 0)
(-8.3062431786e-06 -0.00166293287661 0)
(-1.66906558508e-06 -0.00165962782039 0)
(0.000125907568519 -0.00157667723756 0)
(0.00032526893447 -0.0021988014908 0)
(0.000253497446414 -0.00261342779967 0)
(0.000210679514176 -0.00266401837491 0)
(0.000436571774141 -0.00232936535238 0)
(0.000860803504784 -0.00226760358143 0)
(0.00165660112813 -0.00298546325837 0)
(0.000852467487259 -0.0032077049678 0)
(-0.000210779994002 -0.00218796192094 0)
(4.89768184021e-05 -0.00195332315951 0)
(0.000133721440543 -0.00111614737895 0)
(0.000500290845122 -0.000847950394846 0)
(0.000533065138514 -0.00105770778234 0)
(-0.00386614688185 -0.00756010557946 0)
(-0.00547039677357 -0.0120219629518 0)
(-0.00694745982404 -0.0118602576157 0)
(-0.00703193014837 -0.0104528871974 0)
(-0.00766033390004 -0.00754265761581 0)
(-0.00698352961206 -0.00667599842661 0)
(-0.000792792674992 -0.000371230246639 0)
(-0.00108215264608 -6.50363831038e-05 0)
(-0.00100883883291 -0.000394750228984 0)
(-0.000991313428422 -0.000669621872632 0)
(-0.000867355589512 -0.000860263480399 0)
(-0.000722956250457 -0.000968897022802 0)
(-0.000587266027909 -0.00102825911193 0)
(-0.000478128360037 -0.00109017375242 0)
(-0.000365542606527 -0.00111564560112 0)
(-0.000266746838411 -0.00114913290177 0)
(-0.000176260322456 -0.00116326888222 0)
(-9.3127839667e-05 -0.00117829850869 0)
(-1.14312865751e-05 -0.00117758632657 0)
(7.15468711064e-05 -0.00117139394913 0)
(0.000165277878421 -0.00115350472777 0)
(0.000290662250541 -0.00112321467121 0)
(0.000492981263695 -0.00105452177981 2.24076854454e-29)
(0.000674252003935 -0.00103878419947 0)
(0.000542444241937 -0.00229879302971 -5.60182686816e-29)
(-0.00121459944023 -0.0820167282877 0)
(-0.00613911660973 -0.0363103287316 0)
(0.01957321533 0.150709602161 0)
(0.0320813042902 0.292271922744 0)
(0.0479137065954 0.365705064288 0)
(0.0590245603069 0.39992461239 0)
(0.067851242322 0.413634465597 0)
(0.0748472472865 0.417479903885 -5.11716826047e-29)
(0.0809937926407 0.416979006826 5.05805529239e-29)
(0.0867141018557 0.414800589929 0)
(0.0922849578288 0.412084571316 0)
(0.0978135162981 0.409248479712 0)
(0.103331253365 0.406397809739 0)
(0.10883373398 0.403516932627 0)
(0.114300262873 0.400548503115 0)
(0.119705964144 0.397422345417 0)
(0.125018300864 0.39406067431 0)
(0.13020597202 0.390379144754 0)
(0.13522205486 0.386272530623 0)
(0.140020388898 0.381611904791 0)
(0.144519711431 0.376202807365 0)
(0.148627503448 0.369724438145 0)
(0.152133542013 0.361250381199 0)
(0.154496461339 0.349314346925 0)
(0.154930924529 0.33255622481 0)
(0.152662221518 0.310319884002 0)
(0.147143178333 0.282800918632 0)
(0.138134733368 0.250843675595 0)
(0.125681666785 0.21564235931 0)
(0.110041359348 0.178484100191 0)
(0.0916319448963 0.140581720234 0)
(0.0709446846644 0.102904745424 0)
(0.0485623826334 0.0665098396049 0)
(0.0244142109252 0.0303072514846 0)
(-0.000145374389106 -0.000756646222141 0)
(-0.00012254364035 -0.00141167200625 0)
(-2.54366453726e-05 -0.00150048179216 0)
(-1.08469673328e-06 -0.00150936475173 0)
(-2.84220657561e-05 -0.00156184233509 0)
(-3.66346901178e-05 -0.00161623326171 0)
(-2.43100339815e-05 -0.00165061914921 0)
(-7.0946808793e-06 -0.0016705448958 0)
(0.000124080617129 -0.00126019049919 0)
(0.000383179880627 -0.00231474502883 0)
(0.000215684725303 -0.00301059753723 0)
(-5.43093420852e-05 -0.00249406430845 0)
(0.000200263502945 -0.00191874726188 0)
(0.000776554732471 -0.00156429355641 0)
(0.00100752548116 -0.00173027907754 0)
(0.00386765684241 -0.00735836785099 0)
(0.000400574711607 -0.00154518701931 0)
(4.17714147084e-05 -0.00126441660207 0)
(-0.00013158703375 -0.00085887956828 0)
(5.74006535102e-05 -0.000605951006769 0)
(-0.00179693440025 -0.00669858909553 0)
(-0.00632327469996 -0.0101034193892 0)
(-0.00761557406085 -0.0128237659283 0)
(-0.00825408030906 -0.0123888675355 0)
(-0.00777581700072 -0.0102955044748 0)
(-0.00650668905105 -0.00678135236811 0)
(-0.000575220391688 -0.000554395542092 0)
(-0.000494008449251 -0.000210388037224 0)
(-0.00054040525084 -0.000245188066961 0)
(-0.000643975312551 -0.00041483829598 0)
(-0.000634303560088 -0.000603583638719 0)
(-0.000562874919791 -0.000740810849479 0)
(-0.000478689126053 -0.000851533720264 0)
(-0.000389261812181 -0.000929031964747 0)
(-0.000299394619763 -0.00097651324789 0)
(-0.000217653031304 -0.00102944100175 0)
(-0.000139559321286 -0.00106104004269 0)
(-6.95490190188e-05 -0.00109100371385 0)
(-4.53015384166e-06 -0.00109822429623 0)
(5.61684927232e-05 -0.0011080801334 0)
(0.000116115261578 -0.00110166328151 0)
(0.00018484470095 -0.00106626497323 0)
(0.000275595222963 -0.00098834209761 0)
(0.000426735270782 -0.000829916579286 -2.38498759965e-29)
(0.000295962368501 -0.000594301669746 0)
(0.00227993904531 -0.0103913454427 0)
(-0.00244476124041 -0.0839099428851 0)
(0.000274649768567 -0.00186243394885 0)
(0.0220634412451 0.166961347024 0)
(0.0346688144706 0.308158497973 0)
(0.0496316444397 0.378366287029 0)
(0.0595148574162 0.409437757075 0)
(0.0673137683685 0.421018851932 0)
(0.0735346852384 0.423686026325 0)
(0.0791495878756 0.422639538918 0)
(0.0844990912228 0.42026113691 0)
(0.0898040004165 0.417499194728 0)
(0.0951269787004 0.414666462198 0)
(0.100472705164 0.411819431756 0)
(0.105821462036 0.408922319177 0)
(0.11114364347 0.405910184342 0)
(0.116409553165 0.402709283809 0)
(0.121582161025 0.39923819256 0)
(0.126628622942 0.395407437492 0)
(0.131496257384 0.391101595144 0)
(0.136138155159 0.386177637339 0)
(0.140461319353 0.380411234847 0)
(0.144368835993 0.373421645671 0)
(0.147610047403 0.364019369574 0)
(0.149519223135 0.350431846838 0)
(0.149193613361 0.331197864196 0)
(0.145817491715 0.305819991184 0)
(0.138886330409 0.274796399818 0)
(0.128255373796 0.239283864151 0)
(0.114074848384 0.200727471282 0)
(0.0966898454623 0.16057483535 0)
(0.0765809864003 0.120079065977 0)
(0.05419047292 0.0800493307734 0)
(0.0299295434853 0.0422650711532 0)
(0.000312764417716 0.000262093225298 0)
(-0.000241319479757 -0.00112705144754 0)
(-9.51425903109e-05 -0.00132347359944 0)
(-7.29195773081e-05 -0.00145830253415 0)
(-6.49538388315e-05 -0.00152014517911 0)
(-6.84543278269e-05 -0.00157096850584 0)
(-5.75687683042e-05 -0.00161166948395 0)
(-3.76594760672e-05 -0.00163649017888 2.5393937342e-29)
(-1.39215290418e-05 -0.00164617117937 0)
(0.000236492173479 -0.000854811165665 0)
(0.000348930592059 -0.00128427076451 0)
(-0.000466108692692 -0.00258874585249 0)
(-0.000700276746291 -0.00228262188631 0)
(-0.000164251121015 -0.0013861833929 0)
(0.000411158764095 -0.000931261920415 0)
(0.000407119046348 -0.000559525439591 0)
(0.0035828493478 -0.00669824475096 0)
(0.00318150530792 -0.00597942914894 0)
(0.00185823176479 -0.00435460295497 0)
(0.00097889450572 -0.00185627375417 0)
(-0.000161194997113 -0.000692336885982 0)
(-0.00534077948432 -0.00983396062563 0)
(-0.00769698147178 -0.0121960372791 0)
(-0.00855006740656 -0.0134697888882 0)
(-0.00850242070859 -0.0123081941928 0)
(-0.006696981877 -0.0089738760025 0)
(-0.000546357003711 -0.000856258384822 0)
(-0.000192478072204 -0.00038010725585 0)
(-0.000222670593731 -0.00027379816488 0)
(-0.000311994639408 -0.000335566811271 0)
(-0.000356144743743 -0.00043986817615 0)
(-0.000358928512689 -0.000563654368715 0)
(-0.000323531771643 -0.000678114136389 0)
(-0.000270591018029 -0.000775318383128 0)
(-0.000206867429876 -0.000844373110661 0)
(-0.000144157687358 -0.000912105428873 0)
(-8.06378643531e-05 -0.000953125987399 0)
(-2.30281174327e-05 -0.0010013310937 0)
(2.82633148221e-05 -0.00102879357668 0)
(7.21660249433e-05 -0.00105563420456 0)
(0.000107017417518 -0.00106307504566 0)
(0.000135613439279 -0.00105905753776 0)
(0.000160019158792 -0.00101547093286 0)
(0.000172771204 -0.000935616559214 0)
(0.000155122156202 -0.000812191621233 0)
(-7.23358742185e-05 -0.000558061386739 0)
(0.000293738314909 -0.00144802352544 0)
(0.0111195561189 -0.08268909806 0)
(0.000652477101127 -0.00147070977274 0)
(0.0213064503053 0.184030238033 0)
(0.0355183103605 0.323809922669 0)
(0.0502310825955 0.390115968447 0)
(0.0591998256397 0.417971967464 0)
(0.0661832903219 0.427603281216 0)
(0.0718023260843 0.429317299174 0)
(0.0770230191764 0.427905519848 0)
(0.0820986439388 0.425444653737 0)
(0.087202553675 0.422705370563 0)
(0.0923624565873 0.419913515814 0)
(0.0975639857187 0.417089897741 0)
(0.10277767055 0.414186612527 0)
(0.107968700795 0.411135424995 0)
(0.113104977053 0.407860968493 0)
(0.118146203776 0.404278911007 0)
(0.123059371217 0.400294551506 0)
(0.127785557671 0.395781285016 0)
(0.132278789608 0.390580580515 0)
(0.136431623509 0.384433623639 0)
(0.140145192705 0.376888856403 0)
(0.143118304315 0.366420061357 0)
(0.144534164608 0.350914337072 0)
(0.143369855978 0.328861344139 0)
(0.138788185285 0.300010893957 0)
(0.130353687107 0.265233007805 0)
(0.118038748774 0.226030216875 0)
(0.102118164782 0.184111488681 0)
(0.0830696460622 0.14107335216 0)
(0.0615041779638 0.0980898773835 0)
(0.0374599511481 0.0553201519549 0)
(0.00730838712127 0.0152883710724 0)
(-0.000222184881829 -0.000945399249494 0)
(0.000199148746348 -0.00122758132386 0)
(-1.80604384153e-05 -0.00135604593782 0)
(-6.42828912257e-05 -0.00146217621512 0)
(-8.01010397332e-05 -0.00152708719827 0)
(-8.1737098874e-05 -0.00155977119952 0)
(-6.38122752054e-05 -0.00158535551843 0)
(-4.0158735739e-05 -0.00161313015346 -2.31303526884e-29)
(-1.59146727845e-05 -0.00161839964454 0)
(3.03531360719e-05 -0.000362673244469 0)
(0.000300733531988 -0.00412843726167 0)
(-0.00176605030088 -0.00526335288065 0)
(-0.00124997084637 -0.00301459654373 0)
(-0.000185530275122 -0.000759684331009 0)
(6.91485215999e-05 -0.000529777870691 0)
(7.0768918907e-05 -0.00024806111094 0)
(0.000505538644934 -0.00123584704839 0)
(0.00347110802008 -0.00600373002416 0)
(0.000476061168394 -0.000900894089718 0)
(0.000297995982302 -0.00150810462814 0)
(-0.00432556072138 -0.00781718898271 0)
(-0.00726466148312 -0.0122805910322 0)
(-0.00842646437682 -0.0135181366689 0)
(-0.00843102046883 -0.0132901412337 0)
(-0.00720554885239 -0.010483939976 0)
(-0.000837311660785 -0.00168935166696 0)
(-2.48843529439e-05 -0.000441889308882 0)
(-5.94430567699e-05 -0.000333005356451 0)
(-8.99637186933e-05 -0.000351627182373 0)
(-0.000132828301678 -0.000384517480785 0)
(-0.000162826709304 -0.000469093190754 0)
(-0.000159284478449 -0.000551267697792 0)
(-0.000134988364767 -0.000639248883639 0)
(-9.72554019513e-05 -0.000727572239236 0)
(-5.05538576424e-05 -0.000794880818862 0)
(-1.44005795006e-06 -0.000847131542236 0)
(4.61785905222e-05 -0.0009051908209 0)
(8.81974948085e-05 -0.000949804608022 0)
(0.000122826724644 -0.000994963652617 3.18700690667e-29)
(0.00014550111116 -0.00101937622033 0)
(0.000157147737214 -0.00104905182961 0)
(0.00015514500463 -0.00105252340441 0)
(0.000134141069558 -0.00101133057928 0)
(0.00010068688559 -0.00095579564639 0)
(7.91265258248e-05 -0.000822447149662 0)
(0.000246631021217 -0.000596876707643 0)
(-0.000209363455645 -0.000839413887763 -2.89500642988e-29)
(0.0147316729406 -0.0757404842257 2.99917191657e-28)
(0.00100798782836 -0.000269433911442 0)
(0.0245513787513 0.199628408811 0)
(0.036210777252 0.338713079448 0)
(0.0499749296577 0.400868672283 0)
(0.0581113467937 0.425638198094 0)
(0.0644556540634 0.433554488479 0)
(0.0696377575334 0.434525908926 0)
(0.074601846501 0.432894326002 0)
(0.0795024963262 0.430433880039 0)
(0.0844718615831 0.427758720334 0)
(0.0895126167054 0.425026514478 0)
(0.0945992648864 0.422233987131 0)
(0.0996980238733 0.419327110162 0)
(0.104772565216 0.416237070767 0)
(0.109790790193 0.412887716075 0)
(0.114710397672 0.409191857035 0)
(0.119499720888 0.405048914779 0)
(0.124092903652 0.400319771319 0)
(0.12844715603 0.394828612237 0)
(0.132436974517 0.388276781054 0)
(0.135965427642 0.380129083682 0)
(0.138667804288 0.368429613918 0)
(0.139545193279 0.350699399282 0)
(0.137457254095 0.325455369445 0)
(0.131569941212 0.292796120607 0)
(0.121542178394 0.254029872416 0)
(0.107475700649 0.211027633997 0)
(0.0897745573825 0.165769656802 0)
(0.0691125239681 0.120019419194 0)
(0.0463016661817 0.0750519622017 0)
(0.0202832924512 0.0303142110153 0)
(-0.000321745325675 -0.000937502049062 0)
(-4.10402083526e-05 -0.00159666557581 0)
(9.31520073813e-06 -0.00139320280391 0)
(-4.22910217815e-05 -0.0014264543746 0)
(-6.69482004669e-05 -0.00148159924824 0)
(-7.32649951238e-05 -0.00152445627101 -1.98187497963e-29)
(-7.07785946553e-05 -0.00154387185293 0)
(-5.51357874757e-05 -0.00153542702906 0)
(-3.14202343825e-05 -0.00158073183039 0)
(-9.52124625251e-06 -0.00155750679986 0)
(6.30321395059e-06 -9.21091344936e-05 0)
(-5.08619113771e-05 -0.00461457472106 0)
(-0.00159932660453 -0.00502512103986 0)
(-0.000362029179923 -0.000943185113527 0)
(-5.1786959926e-05 -0.000308646082893 0)
(7.35130220966e-05 -0.000317586431066 0)
(0.000193844617007 -0.000269605099439 0)
(0.00014599775936 -0.000581141428986 -4.18753076175e-29)
(0.00259629815664 -0.00626503900448 2.89543758056e-28)
(0.00176547523088 -0.00571861941182 0)
(-0.00186611568217 -0.00673524011246 0)
(-0.00570254177785 -0.0106012674975 0)
(-0.00785052418923 -0.0136276130846 0)
(-0.00842127587657 -0.01367394123 0)
(-0.00740434778035 -0.0117729403441 0)
(-0.00341567411514 -0.00696136382826 0)
(4.36932666485e-05 -0.000455396936823 0)
(-2.90425844241e-05 -0.000371098214174 0)
(2.36046299763e-05 -0.000350774405523 0)
(1.75708621985e-05 -0.000371069784935 0)
(1.03036989632e-07 -0.000421178858411 0)
(-8.05700941129e-06 -0.000470533392484 0)
(-8.07300186929e-07 -0.000533469609992 0)
(1.96625319718e-05 -0.00061042183554 0)
(5.14129266643e-05 -0.000684812875875 0)
(8.93423535269e-05 -0.000745460359444 0)
(0.000130268716634 -0.000809869263414 0)
(0.000166731982623 -0.000859390711011 0)
(0.000199298564579 -0.000920862305808 0)
(0.000220616750269 -0.000969255109268 -3.12018755065e-29)
(0.000230870254473 -0.00102056145307 0)
(0.000220289732284 -0.00105761082056 0)
(0.000181946335288 -0.00107679526779 0)
(0.000105581759574 -0.00108297998924 0)
(-1.31642506743e-05 -0.00103687810191 0)
(-0.00016292893151 -0.000860244381195 0)
(-0.000200225168671 -0.000461856400247 0)
(-0.000693922981298 0.000395735918496 0)
(0.0143570380015 -0.0636992612676 0)
(0.00130600421073 0.000118416639185 0)
(0.0253865644237 0.214826997569 0)
(0.0360109316628 0.352762841098 0)
(0.0486754783504 0.410611393381 0)
(0.0561514874776 0.432577359534 0)
(0.0621085269307 0.43906382119 0)
(0.067045378514 0.439478792179 0)
(0.0718948434138 0.437729314293 0)
(0.076718641701 0.43531336171 0)
(0.0816175465344 0.432715317652 0)
(0.0865808041389 0.430042540426 0)
(0.0915803029399 0.427276790282 0)
(0.0965833717918 0.424361605576 0)
(0.101555765966 0.421228656396 0)
(0.106467647865 0.417800722905 0)
(0.111275933078 0.413987142538 0)
(0.115951829912 0.409680237499 0)
(0.120421563494 0.404726749833 0)
(0.124648395395 0.398931366486 0)
(0.128483970966 0.391949522109 0)
(0.131839113157 0.383147351217 0)
(0.134268906969 0.370022518393 0)
(0.134556694571 0.349719146961 0)
(0.131455405474 0.320886462417 0)
(0.124165071136 0.284084291235 0)
(0.112465519287 0.241118955992 0)
(0.0965967782896 0.194230443645 0)
(0.0770687680496 0.145615680272 0)
(0.054593041503 0.0970719638971 0)
(0.0297452951526 0.0501633802392 0)
(0.000190300473563 0.000285280381892 0)
(-0.000308212812256 -0.0012599545426 0)
(-7.54342564842e-05 -0.00138084797016 0)
(-3.30650943345e-05 -0.00139915364719 0)
(-4.67498333357e-05 -0.00144363205892 0)
(-5.59679857719e-05 -0.00148665288032 -1.82748631149e-29)
(-5.46307404493e-05 -0.00151928084888 1.88570707933e-29)
(-4.7560334838e-05 -0.00154088236555 0)
(-3.85217642443e-05 -0.00152293296592 0)
(-2.05171258945e-05 -0.0015507250688 0)
(-3.1541132021e-06 -0.0015637973145 0)
(-3.27431947356e-06 -0.000145544210173 0)
(-0.000285474109729 -0.00503678056536 0)
(-0.000974365150666 -0.00491242793588 0)
(-2.57277267093e-05 -0.000288922737652 0)
(7.72132096253e-06 -0.000181449153366 0)
(7.49374835945e-05 -0.000208812910538 0)
(0.00013121745193 -0.000194097293443 0)
(3.87825820618e-06 -0.000196302598892 0)
(0.00159711412983 -0.00569756384627 0)
(0.0018009497503 -0.0077456083519 0)
(-0.00256759674627 -0.00999658052862 0)
(-0.00589151128316 -0.0132252833381 0)
(-0.00793935626498 -0.0150672683202 0)
(-0.00825780163943 -0.0138930356866 0)
(-0.00606261529331 -0.00965314898091 0)
(2.31257429237e-05 -0.00070748468055 0)
(0.000175843902653 -0.000261964671542 0)
(0.000108069107595 -0.000317006429989 0)
(0.000107020563003 -0.00033232661289 0)
(0.000110816517735 -0.000387755563568 0)
(0.000110958080186 -0.00042181538075 0)
(0.000116860768721 -0.000468282760318 0)
(0.000127461963542 -0.000520026770948 0)
(0.000149712363823 -0.000583780754792 0)
(0.000181934243413 -0.000653130824124 0)
(0.000217471759773 -0.000712168457428 4.17695997101e-29)
(0.000252717964653 -0.000765962865798 0)
(0.000288072349599 -0.000833013573765 0)
(0.000313831470889 -0.000894295085439 0)
(0.000334065628574 -0.000964097499701 0)
(0.000333576013632 -0.00101859811842 0)
(0.000309378001727 -0.00109040776943 0)
(0.000236649135934 -0.00115868358594 0)
(0.000101126424531 -0.00122560806074 0)
(-0.000129025701124 -0.00125139063015 0)
(-0.000506467280356 -0.0011727534824 0)
(-0.00110651284176 -0.000723719818677 0)
(-0.00126599700458 0.000592716300469 0)
(0.0118640939722 -0.0484909612325 0)
(0.00151401396089 0.000310649745419 0)
(0.0230574578675 0.228776728019 -9.86902839534e-29)
(0.0343427047614 0.366056217894 6.18802526996e-29)
(0.0461160579627 0.419628420047 0)
(0.0532456304898 0.439089743868 0)
(0.0591545698688 0.444390306083 0)
(0.0640683040328 0.444366305519 0)
(0.068942778579 0.442537435108 0)
(0.0737788020528 0.440164319241 0)
(0.07866222946 0.437626651599 0)
(0.0835821836017 0.434994720213 0)
(0.0885167988616 0.432240493941 0)
(0.0934396891712 0.429306006561 0)
(0.0983219830481 0.426122698555 0)
(0.103137982274 0.4226108864 0)
(0.107844888573 0.41867518942 0)
(0.112418171866 0.414199041708 0)
(0.116774799282 0.409013216538 0)
(0.120887594936 0.402900184266 0)
(0.124579067943 0.395462798021 0)
(0.127776099842 0.385950960392 0)
(0.129932105218 0.371170095013 0)
(0.129572140411 0.347900241156 0)
(0.125363186091 0.315060574949 0)
(0.116575810851 0.273793587465 0)
(0.103141985728 0.226457078638 0)
(0.0854813037934 0.175639548696 0)
(0.0642747012461 0.123688959341 0)
(0.0400489340625 0.072431391775 0)
(0.00973067293374 0.0237748785451 0)
(-0.000285803383754 -0.000893470941458 0)
(0.000203432573675 -0.00127550029361 0)
(1.40438896477e-05 -0.00137000626374 0)
(-1.53066467407e-05 -0.00141396795897 -1.66357465679e-29)
(-3.52032880981e-05 -0.00145528947832 0)
(-4.20236203924e-05 -0.001489570848 1.76679910012e-29)
(-3.98329014569e-05 -0.00151612306352 0)
(-3.19776069915e-05 -0.0015361151526 0)
(-2.50468440375e-05 -0.001531047192 0)
(-1.60974837382e-05 -0.00154404442919 0)
(-4.42850500418e-06 -0.00156492644064 0)
(-0.000100891472237 -0.000234563469999 0)
(-0.00131357095642 -0.0052716578954 0)
(-0.000606743995372 -0.00452813775208 0)
(4.87165235389e-05 -0.000100509388452 0)
(5.31512755795e-05 -0.000130703167189 0)
(7.95368057699e-05 -0.000173975726337 0)
(7.53924426916e-05 -0.000206220032687 0)
(-7.42627735692e-05 -0.000261077339584 0)
(0.00030071062687 -0.00161977122813 0)
(0.00208932181697 -0.00980893684474 0)
(-0.00244108793946 -0.0131521923969 0)
(-0.00501258235761 -0.0154969742898 0)
(-0.00667902624419 -0.015648827305 0)
(-0.00642177337559 -0.0111244381752 0)
(-0.000458964374216 -0.00133919463127 0)
(0.000262883159777 -0.000476689178405 0)
(0.000188779578478 -0.000346912859957 0)
(0.000179480760723 -0.000336141483067 0)
(0.0001802189621 -0.000346374063305 0)
(0.000186589320599 -0.000371949422604 0)
(0.000197698627343 -0.000404312319353 0)
(0.000219264670357 -0.000458101429374 0)
(0.000236689782825 -0.000501158991918 0)
(0.00026344344545 -0.00055574973242 0)
(0.000298412623622 -0.000615697833173 0)
(0.000335498119616 -0.000671530319934 -4.06168586722e-29)
(0.000375061992816 -0.000735698652023 0)
(0.000407086462176 -0.000796794454019 0)
(0.000442616204999 -0.000877662541317 0)
(0.000461279307658 -0.000943557034075 0)
(0.000460263377385 -0.00102315137957 0)
(0.0004317884471 -0.00113847066057 0)
(0.000350795883582 -0.00127499133385 0)
(0.000180604884103 -0.00143333419255 0)
(-0.000142822294556 -0.00165867563183 0)
(-0.000731791628838 -0.00189045118673 0)
(-0.00215716945158 -0.00200036309352 0)
(-0.00213485744259 -0.00182022951032 0)
(0.00754279378394 -0.03379462948 0)
(0.00177960261724 -0.00175360294817 0)
(0.0168617665094 0.241664061736 0)
(0.03074606077 0.379262441039 0)
(0.0423001215312 0.428562216229 0)
(0.0494909392285 0.445632065361 0)
(0.0557098187214 0.44983615401 0)
(0.0608177878054 0.449378532045 0)
(0.0658312458543 0.447431721548 0)
(0.0707431980481 0.445052387142 0)
(0.0756465185764 0.442531179162 0)
(0.0805431950651 0.439906474262 0)
(0.085425340518 0.437140493269 0)
(0.0902769586157 0.434171721465 0)
(0.095077032118 0.430928953773 0)
(0.0998051316816 0.427327668853 0)
(0.104419510717 0.423266016455 0)
(0.108900917523 0.418616248455 0)
(0.1131553472 0.4131912848 0)
(0.117169315275 0.406748068959 0)
(0.120728083228 0.398829778114 0)
(0.1237859899 0.388549587204 0)
(0.125667208279 0.371839349926 0)
(0.124592626363 0.345162811113 0)
(0.119175992838 0.307882806978 0)
(0.10879818929 0.261851502702 0)
(0.0935774485934 0.210016395307 0)
(0.0741425440596 0.155251584741 0)
(0.0511869240223 0.100049033859 0)
(0.0247365450221 0.0467554258763 0)
(-0.000127770698325 -0.000330169442491 0)
(-0.000177760752249 -0.00166064500332 0)
(1.90562625703e-05 -0.00140309509995 0)
(-1.37423837022e-06 -0.00141762666801 0)
(-1.62254231157e-05 -0.0014370780565 1.63165430506e-29)
(-2.8629526809e-05 -0.00146562791777 1.62753054151e-29)
(-3.33567287699e-05 -0.00149108958547 0)
(-3.18789473619e-05 -0.00151180230233 0)
(-2.56588918589e-05 -0.00152763540704 0)
(-1.9111347168e-05 -0.0015226175819 0)
(-1.47237679742e-05 -0.00153636552257 0)
(-6.27096969108e-06 -0.00155419889761 0)
(-0.00104305808602 -0.00239434992836 0)
(-0.00191246675169 -0.00542183934078 0)
(-0.000589179743474 -0.00376660228216 0)
(9.38397724297e-05 -9.38138122996e-05 0)
(0.000112870095871 -0.000115688012028 0)
(0.000113145551119 -0.000160489950116 0)
(0.00012451509049 -0.000223057694783 0)
(0.000130242967358 -0.000345271486379 0)
(0.000183454856333 -0.00112595813593 0)
(0.00148139538117 -0.0120531851167 0)
(-0.00220400321636 -0.0158398440587 0)
(-0.00401765429097 -0.017376460579 0)
(-0.00518938400738 -0.0163928132808 0)
(-0.00352432396773 -0.0118054322293 0)
(5.85776522804e-05 -0.000658736400786 0)
(3.08422784826e-06 -0.000443686860984 0)
(0.000170858775353 -0.000310171571494 0)
(0.000226408777356 -0.000323715170973 0)
(0.000246184607452 -0.000337308067066 0)
(0.000266049410357 -0.000367452605308 0)
(0.000280950190097 -0.000394360884208 0)
(0.00030436547591 -0.000431759333749 0)
(0.000333759013256 -0.000475741446345 -5.3865992337e-29)
(0.000366160026744 -0.000523038168859 0)
(0.00040634290477 -0.000577412582565 0)
(0.000449350550159 -0.0006338887011 0)
(0.000489609288957 -0.000692043877216 0)
(0.000538025557173 -0.000769844943832 0)
(0.000572613407081 -0.00083524720206 0)
(0.000598919276244 -0.000914167233173 0)
(0.000619589772783 -0.00103680192933 0)
(0.000605818473884 -0.00117908522236 0)
(0.000554694839616 -0.00137266875651 0)
(0.000430814260848 -0.00164116514929 0)
(0.000182157463536 -0.0020104198993 0)
(-0.000270327081802 -0.00250001717391 0)
(-0.0011347802505 -0.00319148437193 0)
(-0.0030032411004 -0.00445219914503 0)
(0.000446686856839 -0.00749784110409 0)
(0.002663083361 -0.00525340714874 0)
(0.0059957039829 0.256181306518 0)
(0.0250381452955 0.393055234525 0)
(0.0376897869122 0.438138491476 0)
(0.0453083122632 0.452676956003 0)
(0.0520537418858 0.455658307568 0)
(0.0574890566911 0.454650138192 0)
(0.062692498068 0.45247922029 0)
(0.0676978777657 0.450009294343 0)
(0.0726250530515 0.447443712042 0)
(0.0774977553541 0.44478526855 0)
(0.0823262633619 0.441981655845 0)
(0.0871067286682 0.438963391185 0)
(0.0918270073372 0.435653026907 0)
(0.0964719260925 0.431958253847 0)
(0.101001135518 0.427768747609 0)
(0.105401068429 0.422942929221 0)
(0.109564742143 0.417274123207 0)
(0.113497023241 0.410489727263 0)
(0.116935697933 0.402066014725 0)
(0.119877734905 0.390955420373 0)
(0.121482811763 0.371991403509 0)
(0.119615525156 0.341418529696 0)
(0.112883067545 0.299255933409 0)
(0.100823436828 0.248192980619 0)
(0.0837947638854 0.191776341278 0)
(0.0626330837463 0.133058577385 0)
(0.0376051359504 0.0748528945785 0)
(0.00730644513579 0.0203830803951 0)
(-0.000283046848397 -0.00104102594887 0)
(0.000141260492736 -0.00136638473145 0)
(4.90250184833e-05 -0.00139649038548 0)
(1.07467974187e-05 -0.00142835021028 0)
(-1.11306384165e-05 -0.00144937190205 0)
(-2.38609684553e-05 -0.00147148572134 -1.58727104178e-29)
(-2.88409267837e-05 -0.00149072302129 0)
(-2.837546236e-05 -0.00150647730285 -1.59001519202e-29)
(-2.28895036206e-05 -0.00151802704327 0)
(-1.74465252552e-05 -0.00151608711877 0)
(-1.50090974501e-05 -0.00152993333842 0)
(-6.85915716036e-06 -0.00153563789777 0)
(-0.00073963001923 -0.00332480755129 0)
(-0.00197878089831 -0.00529897190607 0)
(-4.53911247463e-06 -0.000418223348907 0)
(0.000150489687848 -0.00012956637556 0)
(0.000138136820413 -0.000124965181441 0)
(0.000147288599033 -0.000154218732638 0)
(0.000160180267725 -0.000198007843048 0)
(0.000203786203363 -0.000284101219208 0)
(0.000168358140949 -0.000658503296178 0)
(0.00095917584282 -0.0135763679791 0)
(-0.00179060896791 -0.0177710454772 0)
(-0.00288194215008 -0.0185692834358 0)
(-0.00377037067529 -0.0158881584276 0)
(-0.000415934654855 -0.00248375453518 0)
(0.000663761843985 -0.000764603138609 0)
(0.000153701251011 -0.000231844376966 0)
(0.000253677676977 -0.000264943129366 0)
(0.00027661806623 -0.000288685071035 0)
(0.000300902680055 -0.000312233261607 0)
(0.000329169403542 -0.000341867516517 0)
(0.000352526681578 -0.000368722131925 0)
(0.000384382090007 -0.000404756533516 0)
(0.000418805271425 -0.000441319979554 5.28319794829e-29)
(0.000459421816397 -0.000484003697535 0)
(0.000506443003933 -0.000533528640729 0)
(0.000551639782679 -0.000584130375162 0)
(0.000607575542724 -0.000649862156435 0)
(0.000656111733687 -0.000711538612106 0)
(0.000705900604275 -0.000786502784523 0)
(0.000759063204932 -0.000889507250632 0)
(0.000799822337805 -0.00101461298698 0)
(0.000833228063932 -0.00118566995084 0)
(0.000830203375906 -0.00139696964524 0)
(0.000811851545938 -0.00173182519283 0)
(0.000750547623153 -0.00222221574151 0)
(0.000622170025799 -0.00294317896945 0)
(0.000397103129062 -0.00406649486196 0)
(-6.65118755447e-05 -0.00594195133072 0)
(0.000842676994092 -0.009854340723 0)
(-0.000217082332012 -0.00550339274839 0)
(-0.00121253714171 0.272120378658 0)
(0.0187113840382 0.407639423641 0)
(0.033165039118 0.448749838395 0)
(0.0413816971692 0.46046554238 0)
(0.0486069365033 0.461939526836 0)
(0.054337446043 0.460192334864 0)
(0.0596838380789 0.457666475278 0)
(0.0647386000446 0.455016051019 0)
(0.0696551551242 0.452347260033 0)
(0.0744794325082 0.449618587691 0)
(0.079238318898 0.446756284782 0)
(0.083938476986 0.443677829907 0)
(0.0885757564521 0.440295807969 0)
(0.0931388847533 0.436507259666 0)
(0.0975888686507 0.43219148735 0)
(0.101917422201 0.427190301422 0)
(0.106002534502 0.421276050036 0)
(0.109872429114 0.414141712683 0)
(0.113204920981 0.405189745099 0)
(0.116059390391 0.393183552408 0)
(0.117386320142 0.371580127094 0)
(0.114633724994 0.336569608142 0)
(0.106465138997 0.289079625538 0)
(0.0926355496126 0.232751996355 0)
(0.0737998920107 0.171704098387 0)
(0.0508140247915 0.109095867934 0)
(0.0231114423298 0.048616947672 0)
(-0.000155948684933 -0.000437717143839 0)
(-0.000121213661893 -0.001507294122 0)
(-4.21340358729e-06 -0.00142709840229 0)
(-1.09606052493e-06 -0.00143512149637 0)
(-9.50565391237e-06 -0.00144725609006 0)
(-1.90016532865e-05 -0.00146144802349 0)
(-2.63596213096e-05 -0.00147626667278 0)
(-2.92804457844e-05 -0.00148986816961 0)
(-2.88147695097e-05 -0.00150074134501 1.56482420341e-29)
(-2.40353352064e-05 -0.0015079755068 0)
(-1.88290370974e-05 -0.00151218959098 -1.55071918223e-29)
(-1.55911596573e-05 -0.0015231953143 0)
(-6.80537624668e-06 -0.00152164799463 0)
(-2.14840822303e-05 -0.00393289476148 0)
(-0.000155965254521 -0.00568865530039 0)
(7.57546360104e-05 -0.000342829577423 0)
(4.54885320713e-05 -6.93794741864e-05 0)
(0.000141721642517 -9.75154780277e-05 0)
(0.000175221473299 -0.000135049855322 0)
(0.000197074143906 -0.000180367501738 0)
(0.000228180294247 -0.000234615405885 0)
(0.000147234432225 -0.000451688393063 0)
(0.000660779314252 -0.014532938861 0)
(-0.00132709616458 -0.0190607319928 0)
(-0.00195826432498 -0.0192897521988 0)
(-0.00268141897379 -0.0156548532341 0)
(-0.000323185826861 -0.00554915136315 0)
(0.000163511674633 -0.000200309329303 0)
(0.000243942844233 -0.000220074525462 0)
(0.000304985695025 -0.000248724640926 0)
(0.000318737332817 -0.000259871986933 0)
(0.00034561935977 -0.000280042940016 0)
(0.000384145608616 -0.000312105503833 7.2516458238e-29)
(0.000419606370352 -0.000343317278608 0)
(0.000455603643466 -0.000370508607191 0)
(0.000492661284428 -0.000397621038018 0)
(0.000544955557428 -0.000438704270541 0)
(0.000593375750445 -0.000480677672648 0)
(0.000651422509407 -0.00053132260903 0)
(0.000712594029694 -0.000587502079102 0)
(0.000778007941385 -0.000653693217858 0)
(0.000846606679438 -0.000730754116434 0)
(0.000918462402146 -0.000827603479795 0)
(0.00100103057292 -0.000960869655672 0)
(0.00105832286905 -0.00111619260615 0)
(0.00115449056625 -0.00137518392648 0)
(0.00125305247084 -0.00172570864133 0)
(0.00138389536745 -0.00221172754878 0)
(0.00158539598353 -0.00292194983046 0)
(0.00189744209873 -0.00399994635108 0)
(0.00277237367028 -0.00595426087207 0)
(-7.00005573084e-06 -0.00710938361464 0)
(-0.047291222281 -0.00586171088406 0)
(0.000435311310064 0.29808364901 0)
(0.0140200555072 0.423834829262 0)
(0.0297316918653 0.460180544886 0)
(0.0384342698823 0.468751399818 0)
(0.0458092887513 0.468478906323 0)
(0.05160463702 0.465854180776 0)
(0.0569402925154 0.462887507907 0)
(0.0619419612167 0.460000601762 0)
(0.0667796927957 0.45719372293 0)
(0.071511155171 0.45437520854 0)
(0.0761723366708 0.451445236118 0)
(0.0807755817722 0.448304851377 0)
(0.0853222071419 0.444854049907 0)
(0.0898023565318 0.440977155199 0)
(0.094178234508 0.436541633233 0)
(0.0984455102034 0.431370002652 0)
(0.102465499326 0.425212777964 0)
(0.106294760758 0.417722593939 0)
(0.10953643057 0.40822207598 0)
(0.112337600872 0.395252009838 0)
(0.113383371745 0.370550155624 0)
(0.109634656223 0.330509579951 0)
(0.0998986861064 0.27725643666 0)
(0.0842250117302 0.215461968195 0)
(0.0635518158174 0.14974865176 0)
(0.0383346562043 0.0834679054237 0)
(0.00746803009746 0.0219633835965 0)
(-0.000325873861964 -0.00123700141111 0)
(0.000103473194153 -0.00141559842524 0)
(3.67799061691e-06 -0.00143096722744 0)
(-1.53664065747e-05 -0.00144435084355 0)
(-2.45650860335e-05 -0.00145458426504 0)
(-3.05946643377e-05 -0.0014693865535 0)
(-3.42997476318e-05 -0.0014804019616 0)
(-3.47335200969e-05 -0.0014907554488 0)
(-3.24854055638e-05 -0.00149889840631 0)
(-2.85546946645e-05 -0.0014987454821 0)
(-2.40992974062e-05 -0.00150523613389 1.56180964767e-29)
(-1.83982363742e-05 -0.00151819364461 0)
(-7.43376192952e-06 -0.00150977000764 0)
(0.000242932213793 -0.00383197565731 0)
(0.000619525594801 -0.0051961919368 0)
(0.000865002334325 -0.00149358057268 0)
(0.000103715708312 1.02732714909e-05 0)
(0.000200945047537 -5.94157237146e-05 0)
(0.000215961705567 -0.000111536755341 0)
(0.000231959900133 -0.000159858013866 0)
(0.000254642164575 -0.000215668958756 0)
(0.000148704886723 -0.00041804389688 0)
(0.000506513483359 -0.01512896742 0)
(-0.000877010901014 -0.019925160354 0)
(-0.00123916193274 -0.0197570025051 0)
(-0.00207601180325 -0.0151034682456 0)
(0.000152535601945 -0.00101753610729 0)
(0.000340568294803 -0.000295573940483 0)
(0.000341693812518 -0.000228647977269 0)
(0.000329994955316 -0.000204067850883 0)
(0.000365670988205 -0.000230596413134 0)
(0.000410672858839 -0.000262950015072 0)
(0.000429365908931 -0.000277383899281 -7.01764156188e-29)
(0.000463056392444 -0.000297223097231 0)
(0.000512444569003 -0.000323917039841 0)
(0.000567793432061 -0.000355913281533 0)
(0.00061548228987 -0.000385922455199 0)
(0.000669914556882 -0.000419880910353 0)
(0.000744648537238 -0.000468873360768 0)
(0.000815110692078 -0.000521780529107 0)
(0.000887953821471 -0.000577209473153 0)
(0.000974360507704 -0.000647945013669 0)
(0.00107928127898 -0.000744520155294 0)
(0.00117323715053 -0.000857679153578 0)
(0.00128632081883 -0.00101983813993 0)
(0.00144984362567 -0.00125167764214 0)
(0.00164842720623 -0.00154666631692 0)
(0.00194681609586 -0.00193910144601 0)
(0.00241050388444 -0.00247262629525 0)
(0.00342981304774 -0.00319385217083 0)
(0.00291815306568 -0.00453722674276 0)
(-0.00176623353281 -0.0598543297984 0)
(-0.0366069225354 0.00370043819245 0)
(0.00524733235342 0.325290692364 0)
(0.0148173679686 0.439243763867 0)
(0.0288735828924 0.471238613104 0)
(0.0369723685584 0.476785548635 0)
(0.0438956074689 0.474833790415 0)
(0.0494037382858 0.471368084629 0)
(0.0545180246525 0.467976246645 0)
(0.0593363514887 0.464858043533 0)
(0.0640116845418 0.461916062626 0)
(0.0685966677607 0.459012462625 0)
(0.0731261913641 0.45602225439 0)
(0.0776121665091 0.452829876913 0)
(0.0820582412379 0.449321967416 0)
(0.0864529938873 0.445369288705 0)
(0.0907600179506 0.440826583971 0)
(0.0949766617168 0.435494661089 0)
(0.0989469950179 0.429101883204 0)
(0.102760216251 0.421253267573 0)
(0.10592828115 0.41118703054 0)
(0.108717263296 0.397180641691 0)
(0.109475415199 0.368831025619 0)
(0.104593386603 0.323116544051 0)
(0.0931543679761 0.263687648796 0)
(0.0755935146949 0.196277272419 0)
(0.0528884584118 0.125987100924 0)
(0.0246796543726 0.0563978763882 0)
(-0.000184332912744 -0.000398453561035 0)
(-0.000207233361186 -0.00159881118192 0)
(-4.12258922983e-05 -0.00146163426731 0)
(-4.18566011109e-05 -0.00145857907631 0)
(-4.4993138529e-05 -0.00145422124054 0)
(-4.81137430745e-05 -0.00146334792237 0)
(-5.00274987203e-05 -0.00147520540776 0)
(-5.07811132163e-05 -0.0014839233361 0)
(-4.87312436105e-05 -0.00149232195453 0)
(-4.37741343712e-05 -0.00149997875861 0)
(-3.78686524185e-05 -0.00150652156653 0)
(-2.99892783338e-05 -0.0015085548296 0)
(-1.89920615665e-05 -0.00151302733179 0)
(-6.45654882439e-06 -0.0014956525738 0)
(0.000195421318273 -0.00330812165357 0)
(0.000770672398119 -0.00448746732137 0)
(0.000801047181609 -0.00201373399567 0)
(0.000138960476277 -2.19223321128e-06 0)
(0.000255550588296 -4.97217387382e-05 0)
(0.00025491847446 -9.80770557213e-05 0)
(0.000265304928507 -0.000145075551517 0)
(0.000273897104574 -0.000208227963749 0)
(0.000167599737463 -0.000528732973568 0)
(0.00041971753187 -0.0154283579947 0)
(-0.000436222779912 -0.0204727160419 0)
(-0.000508129483004 -0.0201184580827 0)
(-0.000951574442175 -0.0150749223902 0)
(0.000321637610155 -0.000716109011599 0)
(0.000329345936094 -0.000235401926139 0)
(0.000411729185417 -0.000219213460019 0)
(0.000404887780802 -0.000207050008162 0)
(0.000413201668234 -0.000205464449439 0)
(0.000446784698068 -0.000225946536802 0)
(0.000467125848312 -0.000240443319905 0)
(0.000528250136791 -0.000265973720647 0)
(0.000566648000232 -0.000278566992641 0)
(0.000610352619592 -0.000296808125863 0)
(0.000668394032381 -0.000322218655644 0)
(0.000750913522454 -0.000357500344816 0)
(0.000817848859627 -0.000393680532735 0)
(0.000893917480445 -0.000437531975822 0)
(0.000991807888946 -0.000491222735986 0)
(0.00109282348556 -0.000552844246219 0)
(0.00120374322511 -0.000628273028012 0)
(0.00130505322788 -0.000721338769774 0)
(0.00148493379405 -0.00087596229739 0)
(0.00168138655674 -0.00105395765483 0)
(0.00194046385588 -0.00127051627938 0)
(0.00230981039733 -0.00152482855736 0)
(0.00283996025116 -0.00180516489377 0)
(0.00392508595921 -0.00205839117422 0)
(0.00278674157605 -0.0022190542989 0)
(0.0089849927218 -0.0761408033904 0)
(-0.00468168306603 -0.0259317368672 0)
(0.0110849558383 0.341926523364 0)
(0.0190953074458 0.451795779648 0)
(0.0302023298485 0.480654114371 0)
(0.0367487993701 0.483804997086 0)
(0.0427277647395 0.480563661005 0)
(0.0476598739817 0.476472203089 0)
(0.0523729317578 0.472769697928 0)
(0.0568929680307 0.469483909596 0)
(0.0613297605303 0.466446366623 0)
(0.0657178792046 0.463486352125 0)
(0.0700830370935 0.46045978653 0)
(0.074431787135 0.457237346841 0)
(0.0787676080096 0.453693292659 0)
(0.0830748048178 0.449685199393 0)
(0.0873193978652 0.445054671449 0)
(0.091497218877 0.439578745301 0)
(0.0954364721798 0.432963697024 0)
(0.0992617259802 0.42475798411 0)
(0.102376769168 0.414112614467 0)
(0.105203810785 0.39899118331 0)
(0.105661850721 0.366330778012 0)
(0.0994700462585 0.314234810049 0)
(0.0861734945236 0.248210660511 0)
(0.0666549086732 0.17506068659 0)
(0.0415566731088 0.100780803176 0)
(0.00972585147136 0.029248573018 0)
(-0.000446472700301 -0.00121327587501 0)
(1.63496690195e-05 -0.00142776463329 0)
(-5.99890902928e-05 -0.00144397400863 0)
(-7.22870523014e-05 -0.0014558618913 0)
(-7.77829236415e-05 -0.00145912696128 0)
(-7.97936819578e-05 -0.00146214363692 0)
(-7.95238013024e-05 -0.00147689606793 0)
(-7.68650461528e-05 -0.00148333804926 0)
(-7.13804501966e-05 -0.00148846703701 0)
(-6.29488990761e-05 -0.00149241367585 0)
(-5.16193251746e-05 -0.00149489220035 0)
(-3.6166450785e-05 -0.00149267314764 0)
(-1.80477637673e-05 -0.00149960625904 0)
(-4.30389700711e-06 -0.00148490952838 0)
(4.88958929505e-05 -0.00286710601327 0)
(0.00074195757191 -0.0038777279351 0)
(0.00080572885959 -0.00264618997685 0)
(0.000161479857781 -3.10659013541e-05 0)
(0.000292106001133 -5.00582049616e-05 0)
(0.000287889444982 -8.95230918665e-05 0)
(0.000300445138686 -0.000129105866947 0)
(0.00032378624971 -0.000191974283304 0)
(0.000132934384015 -0.000417167230854 0)
(0.000125608375529 -0.0154409138232 0)
(-5.52203406088e-05 -0.0206788414002 0)
(7.90474052237e-05 -0.0203241439356 0)
(4.48617990609e-06 -0.0148667268843 0)
(0.000358958817789 -0.000268428236026 -3.48633062369e-28)
(0.000409881131038 -0.000145453650706 0)
(0.000468529148917 -0.000187420027343 0)
(0.000497000698057 -0.000213094180581 0)
(0.000483358815303 -0.00020499040758 0)
(0.000479392871966 -0.000198978583701 0)
(0.00051760382758 -0.000209350764751 0)
(0.000556451185709 -0.000216991767689 0)
(0.000596442274388 -0.000225799962928 0)
(0.00064854550951 -0.00023686425611 0)
(0.000737617768523 -0.0002577639157 0)
(0.000802443429823 -0.000278900491633 0)
(0.000878122579365 -0.000313445433475 0)
(0.000975113461091 -0.000351330691258 0)
(0.00107381765243 -0.00038826859498 0)
(0.00118112929724 -0.000436572905283 0)
(0.00131616743505 -0.000504495054603 0)
(0.00142493410319 -0.000575031815122 0)
(0.00163146481714 -0.000693227892926 0)
(0.00184441532542 -0.000820718963397 0)
(0.00211928178503 -0.000958683683114 0)
(0.00248142404803 -0.00109146706278 0)
(0.0029439614764 -0.00118144073851 0)
(0.00379560673014 -0.00114722998132 0)
(0.00221011552587 -0.000806757047151 0)
(0.0102381720294 -0.0726999104511 0)
(6.61854110627e-05 -0.000579654611987 0)
(0.0170772744194 0.350426511298 0)
(0.0235305191018 0.461601008016 0)
(0.032233589543 0.488036369758 0)
(0.0370783875672 0.489479314976 0)
(0.041953795344 0.485436049155 0)
(0.0461819238933 0.481006626212 0)
(0.0503936497813 0.477156235438 0)
(0.0545414775199 0.473800018044 0)
(0.0586856300757 0.470730330466 0)
(0.0628384171739 0.467759942029 0)
(0.0670129203933 0.464733948268 0)
(0.0712080211828 0.461513686312 0)
(0.0754259056109 0.45796306899 0)
(0.0796447688855 0.453927753049 0)
(0.083835276755 0.449235990928 0)
(0.0879876865621 0.443639466972 0)
(0.0919187134692 0.436822577593 0)
(0.0957883392481 0.428266498146 0)
(0.0988772813725 0.417034282816 0)
(0.101806288959 0.400712602263 0)
(0.101951017052 0.362940925489 0)
(0.0942497482798 0.303681995053 0)
(0.0789277596865 0.230576767998 0)
(0.057032892698 0.151363263043 0)
(0.0284647218864 0.0735882127647 0)
(-9.344136139e-05 6.56292616554e-05 0)
(-0.000486980739948 -0.00167768592821 0)
(-0.000162522963223 -0.00146413811721 0)
(-0.00014049261012 -0.00146324434294 0)
(-0.000129736768934 -0.00146156139537 0)
(-0.000126146866331 -0.00146012938107 0)
(-0.000124397795183 -0.00146303903383 0)
(-0.000120669942129 -0.00147361009869 0)
(-0.000112065655107 -0.00147743523074 0)
(-0.000100670458577 -0.00147937335078 0)
(-8.63681503599e-05 -0.00148026631664 0)
(-6.82712958553e-05 -0.0014781584183 0)
(-4.72208725286e-05 -0.00147192083656 0)
(-2.54693476243e-05 -0.00147913589855 0)
(-7.06342437728e-06 -0.00148355954625 0)
(-0.000245387864862 -0.00289842080515 0)
(0.00070955311183 -0.00347451265165 0)
(0.00108469263984 -0.00360405196334 0)
(0.000193999282975 -7.87381824558e-05 0)
(0.00032111591764 -5.77398881296e-05 0)
(0.000315056020383 -8.04474852281e-05 0)
(0.000337025353381 -9.03124429419e-05 0)
(0.000291184868933 -0.000119181767033 0)
(0.000442481305347 -0.00230093260039 0)
(0.000238362960516 -0.0152000636171 0)
(0.000357003357283 -0.0205748870895 0)
(0.00055601508504 -0.0203267614821 0)
(0.000676578042726 -0.0147344000872 0)
(0.000425205483125 -0.00024055942799 3.27078593639e-28)
(0.000468771372162 -9.32994720582e-05 0)
(0.000518445531271 -0.00015427270367 0)
(0.00054846266843 -0.000197236955451 0)
(0.000565610339788 -0.000217263675151 0)
(0.000551069068112 -0.000202332357013 0)
(0.00054923221443 -0.000179577370188 0)
(0.000586357308126 -0.000172860148875 0)
(0.000633358996158 -0.000171454481533 0)
(0.000706425091437 -0.000173504845529 0)
(0.000779166680167 -0.000181699946884 0)
(0.000841820577019 -0.000200047871795 0)
(0.000931222546033 -0.000224692671522 0)
(0.00104082322733 -0.000251551713411 0)
(0.00114634267619 -0.000280230938927 0)
(0.00126655107756 -0.000318075206982 0)
(0.00138701406231 -0.000362315042458 0)
(0.00152364563659 -0.00041682873123 0)
(0.00173136488892 -0.000497169344842 0)
(0.001946841284 -0.000579241709827 0)
(0.00221120843563 -0.000655706166932 0)
(0.00253257175168 -0.000708464052255 0)
(0.00289575588198 -0.000702288040132 0)
(0.00350443765146 -0.000578873066379 0)
(0.00181178537607 -0.0002422808673 0)
(0.0133459914593 -0.0664258570799 0)
(0.000400963493892 -0.000577454044307 0)
(0.0204534530196 0.362761596649 0)
(0.0267136453329 0.469889380037 0)
(0.0339349556761 0.493699171025 0)
(0.0373795888413 0.493873037649 0)
(0.041232987385 0.489429269928 0)
(0.0447631962225 0.484923862431 0)
(0.0484492197932 0.481085981217 0)
(0.0521940035604 0.477762852871 0)
(0.0560166072336 0.474733344325 0)
(0.0599103264199 0.471807521799 0)
(0.063876378059 0.468827244818 0)
(0.0679063110453 0.46564899528 0)
(0.0720013296612 0.462128646714 0)
(0.0761328700499 0.458101691215 0)
(0.0802796764893 0.453382711504 0)
(0.0844215639904 0.447697156589 0)
(0.088372184594 0.440707666157 0)
(0.0923229873623 0.431816142215 0)
(0.0954223721387 0.419999784322 0)
(0.098533557458 0.402391420852 0)
(0.0983562255234 0.358548834994 0)
(0.0889594231163 0.291274655976 0)
(0.0715750178047 0.210599151503 0)
(0.0469149778749 0.125235169885 0)
(0.0116366618825 0.0452366925695 0)
(-0.000475308921421 -0.00105391230927 0)
(6.48627563738e-05 -0.00143171662361 0)
(-0.000123118692442 -0.00142715873514 0)
(-0.000170663755864 -0.00145523454306 0)
(-0.00018427742825 -0.00145539140941 0)
(-0.00018587736235 -0.0014584684009 0)
(-0.000181126533968 -0.00146124767223 0)
(-0.00017132648488 -0.00146374103104 0)
(-0.000155404252512 -0.00146403001513 0)
(-0.000136494291077 -0.00146301143423 0)
(-0.000114919194168 -0.0014618392695 0)
(-8.8559693933e-05 -0.0014565121883 0)
(-6.21818996058e-05 -0.00145118077488 0)
(-3.85570611583e-05 -0.00145657043721 0)
(-1.31259324207e-05 -0.00145770005741 0)
(-0.000503002533081 -0.00303445745658 0)
(8.1152362208e-05 -0.000441081273826 0)
(0.00136958539086 -0.00417205120271 0)
(0.000212012553562 -0.000142158776444 0)
(0.000320611198644 -7.99382735548e-05 0)
(0.00030734424689 -8.37620884849e-05 0)
(0.000291385792428 -7.4470685851e-05 0)
(0.000205627012689 -2.64917151521e-05 0)
(8.29926576747e-05 -0.000326223083822 0)
(0.000376031916479 -0.0146830631124 0)
(0.00078756845096 -0.020263396582 0)
(0.00102483570364 -0.0202629872965 0)
(0.00118562008097 -0.0148737408081 0)
(0.000446030476646 -0.000289066003177 0)
(0.000546747672647 -6.77737911512e-05 0)
(0.000586907411876 -0.00013974567605 0)
(0.000595375655048 -0.000187915485396 0)
(0.00059470759772 -0.000206709127517 0)
(0.000605176007675 -0.000200392014654 0)
(0.000628498462889 -0.00017439508301 0)
(0.000638855440957 -0.000139976367803 0)
(0.000677193310778 -0.000115434408365 0)
(0.000746015265872 -0.000103801367385 0)
(0.000812807742826 -0.000107913463546 0)
(0.000885251520743 -0.000119583311831 0)
(0.00098025723959 -0.000132521337026 0)
(0.00108400852052 -0.000147227104753 0)
(0.00118829412876 -0.000163457195091 0)
(0.00130908749549 -0.000185879153853 0)
(0.00145235622138 -0.000217803292206 0)
(0.00158711858989 -0.000252320719525 0)
(0.00179394139146 -0.000300350031993 0)
(0.00200295247765 -0.000345049484576 0)
(0.00224850688376 -0.000379055597475 0)
(0.00252801800771 -0.000388072633018 0)
(0.00281437893891 -0.000348084251123 0)
(0.00329332866947 -0.00022745916203 0)
(0.00156951702478 -4.42566728945e-06 0)
(0.0148180948672 -0.0586562073633 0)
(0.000638739073771 -0.000210239583758 0)
(0.0231199658676 0.375210688162 0)
(0.0287658027045 0.477254431533 0)
(0.0349333303982 0.498063224686 0)
(0.0373323419655 0.497204455846 0)
(0.0403311577248 0.4926365924 0)
(0.0432369024467 0.48825143339 0)
(0.046421071556 0.484556750041 0)
(0.0497639904839 0.481358928607 0)
(0.0532568810357 0.478439432587 0)
(0.0568808238156 0.475614715499 0)
(0.0606284604403 0.472728904098 0)
(0.0644862613457 0.469637256238 0)
(0.0684557999271 0.466189688093 0)
(0.0725024141761 0.462213420001 0)
(0.0766172696847 0.457508669652 0)
(0.0807641079813 0.451774679282 0)
(0.0847666772517 0.444651841676 0)
(0.088838054556 0.43545047771 0)
(0.0919950721717 0.423068909428 0)
(0.0953845500082 0.404098712042 0)
(0.0948870959574 0.353050655462 0)
(0.0835807222157 0.276848135155 0)
(0.0638318929657 0.188130509607 0)
(0.0356077021106 0.0967751660711 0)
(0.00331032399151 0.0145611568176 0)
(-0.000464132990685 -0.00216850747608 0)
(-0.000175658480001 -0.00160871635235 0)
(-0.000242237429203 -0.00151010107598 0)
(-0.000267277220884 -0.00147805834497 0)
(-0.000270982933309 -0.00146569398429 0)
(-0.000264625742147 -0.00144801689746 0)
(-0.000252981246514 -0.00144964766158 0)
(-0.00023186550854 -0.00144411179543 0)
(-0.000206263421636 -0.00144035071802 0)
(-0.000177768212979 -0.00143630829033 0)
(-0.000146730986656 -0.00143094016621 0)
(-0.000112453073818 -0.00141802144618 0)
(-8.16186999817e-05 -0.00142335698839 0)
(-5.29699612684e-05 -0.00142868182417 0)
(-1.91518487003e-05 -0.00142821667344 0)
(0.000418817235282 -0.00319351829456 0)
(7.90823272508e-05 -0.000379440351546 0)
(0.000801653000566 -0.00479302830429 0)
(0.000191682025343 -0.00015987569594 0)
(0.000331563503239 -8.98365358217e-05 0)
(0.000351412758059 -7.64301787878e-05 0)
(0.000407164966649 -6.25131641681e-05 0)
(0.000454009482622 -0.000110993302118 0)
(0.000446087497943 -0.00236453292775 0)
(0.000505901835786 -0.0141266493754 0)
(0.00125825233273 -0.0197866189488 0)
(0.00158153511514 -0.0201837702868 0)
(0.00173065580165 -0.0153212335825 0)
(0.000635479582133 -0.000650594869397 0)
(0.000590905581737 -8.58136324247e-05 0)
(0.000635216295679 -0.000130017257401 0)
(0.000650985772702 -0.000184148444754 0)
(0.000647348346073 -0.000208165436625 0)
(0.000639276778555 -0.000189778207782 0)
(0.000645849739497 -0.000147778672662 0)
(0.000683646075167 -0.00010412385313 0)
(0.000739023706347 -6.62202460118e-05 0)
(0.000794060287974 -4.5154726165e-05 0)
(0.00084203624617 -3.98221065578e-05 0)
(0.00091323734487 -3.89481586239e-05 0)
(0.000998884963071 -3.69998959105e-05 0)
(0.00111928408378 -3.82899093151e-05 0)
(0.00123309719476 -4.4179279147e-05 0)
(0.00136269633408 -5.3755113132e-05 0)
(0.00148046356177 -7.00655231832e-05 0)
(0.00162325204179 -9.0002584539e-05 0)
(0.00182413100564 -0.00010788380088 0)
(0.00202554784632 -0.000122659732705 0)
(0.00225423389455 -0.000128826937438 0)
(0.00250160413152 -0.000117824650454 0)
(0.00273511572668 -7.5541071069e-05 0)
(0.00312331907119 1.51057719332e-05 0)
(0.00143727335909 0.000171880953406 0)
(0.0156230764457 -0.0495836784289 0)
(0.00078247827015 -3.80006985905e-05 0)
(0.024752528987 0.388430579958 0)
(0.0299475608583 0.483950474449 0)
(0.0351855156689 0.501429999739 0)
(0.0368010397511 0.499694744595 0)
(0.0391136206077 0.495185911826 0)
(0.0414878839027 0.49105180475 0)
(0.0442160312628 0.487594165798 0)
(0.0471765791918 0.484594949089 0)
(0.0503450411001 0.481846358055 0)
(0.0536974888518 0.479175946691 0)
(0.0572221816951 0.47643340549 0)
(0.0609037907144 0.473475291 0)
(0.0647461244123 0.470147281082 0)
(0.0687104794533 0.466270142946 0)
(0.0728051640279 0.461628529868 0)
(0.0769718350039 0.455896561238 0)
(0.0810624552761 0.448689929603 0)
(0.0852925031748 0.439214611779 0)
(0.0885594093241 0.426301478822 0)
(0.0923253617392 0.405906891519 0)
(0.091531120897 0.346312113021 0)
(0.0781204003472 0.260302273491 0)
(0.0556192750435 0.163456570666 0)
(0.0226637303495 0.0665248108704 0)
(-0.000411992537968 -0.000957009413324 0)
(-0.000199978657452 -0.00176955318163 0)
(-0.000241111490689 -0.00166249697964 0)
(-0.000334040807162 -0.00156095370232 0)
(-0.000370010518898 -0.00148300498132 0)
(-0.000373650870033 -0.001456258267 0)
(-0.000361441720543 -0.00143928303512 0)
(-0.000338167228269 -0.0014233894068 0)
(-0.000304725493642 -0.00141260450747 0)
(-0.00026643174628 -0.00140541667716 0)
(-0.000225534775085 -0.00139896869531 0)
(-0.000182655990115 -0.00139111608378 0)
(-0.00014127721806 -0.0013818960517 0)
(-0.000104049793238 -0.00138855758833 0)
(-6.69876811378e-05 -0.00139093513976 0)
(-2.43073729433e-05 -0.00137748440799 0)
(0.00122531652199 -0.00288898711175 0)
(0.000273173045607 -0.000559472790614 0)
(0.000490474666759 -0.00485491057389 0)
(0.000195458272942 -0.000137391075191 0)
(0.000394465110795 -7.61166768557e-05 0)
(0.000432108453383 -3.84445977184e-05 0)
(0.000475852730866 2.77052183106e-05 0)
(0.000368694233459 3.79942465725e-05 0)
(0.000551915124304 -0.00236858835535 0)
(0.000809646362404 -0.0132085260444 0)
(0.00188565057215 -0.0190898417234 0)
(0.00234665594674 -0.0200521853302 0)
(0.00275623170454 -0.0160210060191 0)
(0.000590637974949 -0.000862986381638 0)
(0.000624648175396 -4.54785802801e-05 0)
(0.000771824822601 -0.000118286576271 0)
(0.000794792465382 -0.000203262154957 0)
(0.000765481394085 -0.000252410543487 0)
(0.000699054440071 -0.000224902880152 0)
(0.000646204035082 -0.000136477013993 0)
(0.000677245422553 -5.26008882584e-05 0)
(0.000739860409499 -2.33175435145e-06 0)
(0.000812263449564 1.84202222389e-05 0)
(0.000880160172986 2.75316105027e-05 0)
(0.000955513082139 3.94173656814e-05 0)
(0.00105110125148 5.74499039984e-05 0)
(0.00115472449286 7.04630769361e-05 0)
(0.00124997494741 7.32989193716e-05 0)
(0.00137010233794 7.3116222612e-05 0)
(0.0014755448801 7.04407606115e-05 0)
(0.00162985780011 7.28104223442e-05 0)
(0.00182660544923 8.06852098013e-05 0)
(0.00202389306884 9.06164531454e-05 0)
(0.00224367067733 0.000103420761092 0)
(0.00247473757498 0.000120481400855 0)
(0.00268143887914 0.00014592281927 0)
(0.00301420849098 0.000186602913244 0)
(0.00138638964045 0.000256929147126 0)
(0.0160526343959 -0.0394634488971 0)
(0.000859289218434 0.000124687733627 0)
(0.0255471018154 0.40195974516 0)
(0.0303497331842 0.489984290138 0)
(0.034718805847 0.503993955516 0)
(0.0357444564929 0.501528060034 0)
(0.037514335796 0.497200060495 0)
(0.0394455306561 0.493395394798 0)
(0.0417678072372 0.490235034257 0)
(0.044372361611 0.487487849556 0)
(0.0472279474377 0.484959658907 0)
(0.0503115318391 0.482490726844 0)
(0.0536110131668 0.479937958433 0)
(0.0571128208446 0.477160839053 0)
(0.0608249382274 0.474002343865 0)
(0.0647081854756 0.470278472402 0)
(0.0687924565783 0.465756818722 0)
(0.0729922723294 0.460088838774 0)
(0.0772116931353 0.452859658919 0)
(0.081637527338 0.443157491302 0)
(0.0850718683739 0.42975494075 0)
(0.0892926426263 0.407853553427 0)
(0.0881725842723 0.337995250877 0)
(0.0722034112146 0.241213119875 0)
(0.046315560858 0.136961511227 0)
(0.0109421063764 0.0368927220219 0)
(-0.000713319767152 -0.00199987013729 0)
(-0.000233254045141 -0.00193455423132 0)
(-0.000383823605649 -0.00177021781662 0)
(-0.000461171956077 -0.00162964709154 0)
(-0.000495663222301 -0.0014955067121 0)
(-0.000502411683907 -0.0014423375978 0)
(-0.000480026136476 -0.00141327602378 0)
(-0.000441697255204 -0.00138691564335 0)
(-0.00039429936715 -0.00136863717651 0)
(-0.000340478109343 -0.00135817185218 0)
(-0.000283720845212 -0.00135110017374 0)
(-0.00022685994087 -0.00134168537637 0)
(-0.000175576839527 -0.00133995331618 0)
(-0.000127323856873 -0.00134334780037 0)
(-7.97007197645e-05 -0.0013482804987 0)
(-2.77864917638e-05 -0.00132473528299 0)
(0.000187642805164 -0.000425914314652 0)
(0.00135569270003 -0.00222742473543 0)
(0.000495441168558 -0.00482025830176 0)
(0.000161692751435 -0.000109469884092 0)
(0.000321236435424 -2.6425619708e-05 0)
(0.000372548959682 8.99512573866e-06 0)
(0.000427174452699 5.94717174946e-05 0)
(0.000317828877049 6.83423654133e-05 8.91179246754e-29)
(0.000663519835259 -0.00218781658765 -5.38978717578e-28)
(0.00126199468125 -0.0120742908987 0)
(0.00267061050217 -0.0181249116298 0)
(0.00340603834866 -0.0196917113733 0)
(0.00455366047218 -0.0166455309087 0)
(0.00145357498177 -0.00224939197135 0)
(0.000525834124038 0.000161335295945 0)
(0.000871258197902 -3.8922387671e-05 0)
(0.000900070172545 -0.000213520808758 0)
(0.000841450292948 -0.000317671975426 0)
(0.000733584998895 -0.000299377140712 0)
(0.000667707887922 -0.000154532574535 0)
(0.000687077212911 -1.49850666837e-06 0)
(0.000749274639602 6.71879063151e-05 0)
(0.000823647247008 9.19558968369e-05 0)
(0.000895605237915 0.000104866312144 0)
(0.000982317059021 0.000124257631179 0)
(0.00107409742777 0.000148883213298 0)
(0.00116377365145 0.000166571677813 0)
(0.00125592810213 0.000176395002753 0)
(0.00135717715472 0.00018804456463 0)
(0.00146638635821 0.000208349164797 0)
(0.00160866647581 0.000235405060438 0)
(0.00180631999456 0.000267186200292 0)
(0.00200281565486 0.000300887174063 0)
(0.00222437175867 0.000330963762603 0)
(0.00245909818119 0.000349777331359 0)
(0.0026689655228 0.00034907821133 0)
(0.0029870274832 0.000323413859582 0)
(0.00141267635762 0.000276001411183 0)
(0.0161160019625 -0.0287997558277 0)
(0.000875306552522 0.000251589433237 0)
(0.0256097654166 0.415574889312 0)
(0.0300457283968 0.495332949868 0)
(0.0335956333412 0.505894312935 0)
(0.0341742496214 0.502848218664 0)
(0.0355121421222 0.498780318848 0)
(0.0370728118657 0.495345402454 0)
(0.0390333413926 0.492516163595 0)
(0.0413071865798 0.490057033488 0)
(0.0438620160033 0.487787300062 0)
(0.0466795358142 0.485559816306 0)
(0.0497505372888 0.483239495752 0)
(0.0530664982908 0.48068997031 0)
(0.05664133724 0.477753267339 0)
(0.0604405271922 0.47424228617 0)
(0.0645188298211 0.46990643395 0)
(0.0687616602094 0.464378744589 0)
(0.0731554140999 0.457203938654 0)
(0.0778174622303 0.447343330872 0)
(0.0815099981007 0.433519030251 0)
(0.0863053459149 0.410015452825 0)
(0.0848291003329 0.327600229357 0)
(0.0652007473576 0.21843286148 0)
(0.0341491990249 0.10635295689 0)
(-2.75066858998e-05 0.000528280991349 0)
(-0.000767254423727 -0.00207073316197 0)
(-0.000470316095072 -0.00197688594802 0)
(-0.00054606041178 -0.00185153094792 0)
(-0.000617149207121 -0.0016911410612 0)
(-0.000654244415286 -0.00152318122718 0)
(-0.000660469259608 -0.00142988344149 0)
(-0.000623386875387 -0.00137502915001 0)
(-0.000568575177798 -0.001336635373 1.50477905352e-30)
(-0.000503698158841 -0.00130984378028 0)
(-0.000430638260902 -0.00129297099693 0)
(-0.000355092871333 -0.00128385417513 0)
(-0.000283210602041 -0.0012785488961 0)
(-0.00021827580175 -0.00128433610229 0)
(-0.000156017032761 -0.00129014027783 0)
(-9.49157359395e-05 -0.00129639721285 0)
(-3.12927414939e-05 -0.00126756314856 0)
(-4.95888247999e-06 -0.000150264657714 0)
(0.000714869369852 -0.00272275181319 0)
(0.00096406592499 -0.00496395025146 3.62090570635e-28)
(0.000141311303851 -0.000144679079424 0)
(0.000226493800745 2.47675820156e-05 0)
(0.000346912091406 7.04322022834e-05 0)
(0.000364441766787 9.81723780196e-05 0)
(0.000257101380342 0.000120460971832 0)
(0.000823818782412 -0.00193896097415 0)
(0.00180931968081 -0.0107122166418 0)
(0.00348371231081 -0.0168359021464 0)
(0.00454649366922 -0.0189044514686 0)
(0.00565420044199 -0.0167604359354 0)
(0.00393616131006 -0.00747899936955 0)
(0.00071207075859 0.000125594621828 0)
(0.00115680089136 1.03453169368e-05 0)
(0.00114631330912 -0.000267475630291 0)
(0.00104132974584 -0.000457681681591 0)
(0.000843277933587 -0.000407098009165 0)
(0.000653739456 -0.000176398945599 0)
(0.000668189042597 7.2959951393e-05 0)
(0.000765304791811 0.000150007735549 0)
(0.000847626912612 0.000168689093549 0)
(0.000917507580522 0.000178164085666 0)
(0.000979482398459 0.000198506744465 0)
(0.00106587059569 0.000230809891357 0)
(0.00114301252343 0.000254799116525 0)
(0.00123608120347 0.000274938794726 0)
(0.00134301656891 0.000300364210772 0)
(0.00145103033745 0.0003388257669 0)
(0.00155653635173 0.000387142504964 0)
(0.00176109237757 0.000453422674135 0)
(0.00196011432355 0.000515154636744 0)
(0.00219477880148 0.000569830021403 0)
(0.00245662277935 0.000597995484652 0)
(0.00270779574986 0.000573948210292 0)
(0.00306881759573 0.000469315908712 0)
(0.00152566806154 0.000248681477217 0)
(0.0158501861936 -0.018159216466 0)
(0.000835282148356 0.000335096584685 0)
(0.0250391432385 0.429035883279 0)
(0.0291055491351 0.499955581485 0)
(0.0318979536701 0.507231709613 0)
(0.0321307478516 0.503760008907 0)
(0.0331119644514 0.500001847424 0)
(0.034354835976 0.496951920459 0)
(0.0359872631647 0.494468740841 0)
(0.0379501718922 0.492319483126 0)
(0.0402131904967 0.490335594273 0)
(0.0427644002628 0.48838174047 0)
(0.0455997031781 0.486331440223 0)
(0.0487182466507 0.484053789349 0)
(0.052141389732 0.481392320267 0)
(0.0558458029527 0.478158866218 0)
(0.0599123423271 0.474085242237 0)
(0.0642010765203 0.468792151901 0)
(0.068813604304 0.461769119229 0)
(0.0737446890725 0.451851807774 0)
(0.0778267781918 0.437724594302 0)
(0.0834413494453 0.412592494046 0)
(0.0819494948472 0.314926825133 3.07807617245e-30)
(0.0578098523069 0.192138739833 0)
(0.01667373304 0.072110431164 0)
(-0.000609120088002 -0.00147520045926 0)
(0.000139464233796 -0.00223227569575 0)
(-0.00045364265607 -0.00214165549438 0)
(-0.000669573457864 -0.00197004131629 0)
(-0.000789642674093 -0.00176391521087 0)
(-0.000843165510525 -0.00155733760012 0)
(-0.000830957740311 -0.00138900444374 0)
(-0.000794202403155 -0.00132016336436 0)
(-0.000719563984092 -0.00126831192201 -1.51396105516e-30)
(-0.000633459879292 -0.00123044448302 0)
(-0.000540363090856 -0.00120670598215 0)
(-0.0004493594237 -0.0012080537602 -1.92316817707e-30)
(-0.000356935165039 -0.00121071062646 0)
(-0.000269920091452 -0.00121724560038 0)
(-0.000190565594299 -0.00122256607966 0)
(-0.000113717994205 -0.00122741175702 0)
(-3.56123394766e-05 -0.00119985052642 0)
(-1.76304922662e-05 -7.62816870001e-05 0)
(0.000210896199717 -0.00110739813118 0)
(0.00174399200062 -0.00485852696015 -3.47887046452e-28)
(0.000529766948534 -0.000744801481147 0)
(0.0002394074649 9.33578571622e-05 0)
(0.000312222941135 8.54750221077e-05 0)
(0.000274325080723 6.98297431915e-05 0)
(0.000172330442185 5.85904442221e-05 0)
(9.60660854087e-05 -0.000183701722051 0)
(0.00219564291281 -0.00895176436711 0)
(0.00413124401151 -0.015236839523 -1.42708769404e-28)
(0.00541871184241 -0.0178410147736 0)
(0.00624223236152 -0.0166531500586 0)
(0.00483553704181 -0.0101768326718 0)
(0.000988369066915 -0.000461110908 0)
(0.00134586072731 1.23965323609e-05 0)
(0.00141624866302 -0.000330247746372 0)
(0.00127877350277 -0.000624616640796 0)
(0.0014356092516 -0.000827274958462 0)
(0.000941731317234 -0.000220800111331 0)
(0.000681056294476 0.000200591887649 0)
(0.000766073437451 0.000226598202949 0)
(0.000854111907407 0.000237262555186 0)
(0.00093184008018 0.000238871283729 0)
(0.000992449971282 0.000259786592018 0)
(0.00105188608133 0.000301654593956 0)
(0.00112139324071 0.00033945310478 0)
(0.00120583502892 0.00037047659593 0)
(0.0012971037819 0.000400540772018 -3.22814865302e-30)
(0.00139890478315 0.00045132320605 0)
(0.00149753779662 0.000531226534803 0)
(0.00167822351477 0.000635612298526 0)
(0.00188640495018 0.000738092187622 0)
(0.00214152692678 0.000836113578591 0)
(0.00245497570291 0.000898506829445 0)
(0.0027976465319 0.000876788539162 0)
(0.00330070797811 0.000696248720225 0)
(0.00175017900916 0.000165930214055 0)
(0.0154123407275 -0.00852920835798 0)
(0.000742739341189 0.000354855152594 0)
(0.0239757661411 0.442066982544 0)
(0.0276104193305 0.503801581364 0)
(0.0297133521281 0.508087976493 0)
(0.0296639961709 0.504344209316 0)
(0.0303304709003 0.500920488232 0)
(0.0312899758446 0.498252690302 0)
(0.0326174413226 0.496116206281 0)
(0.0342819628017 0.494286686166 0)
(0.0362568079145 0.492606072886 0)
(0.0385362286446 0.490949767825 0)
(0.0411222807948 0.489200555471 0)
(0.0440233325821 0.487234748046 0)
(0.0472693167002 0.484900813207 0)
(0.0508552433016 0.48201245428 0)
(0.0548867545288 0.478288317335 0)
(0.0592125267921 0.473345262494 0)
(0.0640794378188 0.466599615421 0)
(0.0692901647171 0.456775874546 0)
(0.0738990607232 0.442507634017 0)
(0.0805181793406 0.415736073294 0)
(0.0791107170857 0.299551111586 -3.2382304236e-30)
(0.0495301336436 0.163106151927 0)
(0.0104810313077 0.0385475106019 0)
(-0.000804058263947 -0.00332312487134 0)
(-0.000371565053347 -0.00276272533679 0)
(-0.000732873260198 -0.00243600606767 0)
(-0.000923776418326 -0.00212918906036 0)
(-0.00102989970647 -0.00184191694156 0)
(-0.00107058606151 -0.00158082891667 0)
(-0.00102891738893 -0.00134416683757 0)
(-0.000991300853864 -0.00124307932058 0)
(-0.000896681945241 -0.00117616053484 0)
(-0.000787591597037 -0.00113257363545 0)
(-0.000671936673161 -0.00110533829899 0)
(-0.000555427687679 -0.00109652389382 2.00973999716e-30)
(-0.000439961418924 -0.00110055326849 0)
(-0.000330661449268 -0.00112078243141 0)
(-0.000232468773433 -0.00114098897465 0)
(-0.000137558008851 -0.00113581442256 0)
(-4.3571887773e-05 -0.00112067456068 0)
(5.51575175136e-06 -8.47092132281e-05 0)
(2.75547113505e-05 -0.000305464160292 0)
(0.00136990122001 -0.00447641016128 3.71574296304e-28)
(0.0008802579334 -0.00227575198566 0)
(0.000175307678755 1.99098271115e-05 0)
(0.000238619258809 2.41443862768e-05 0)
(0.000176821929061 1.22687284663e-05 0)
(0.000166677829553 2.35680556806e-06 0)
(6.33204033957e-06 -0.000110724396504 0)
(0.00203842887695 -0.00726563334766 0)
(0.00481949188668 -0.0136251843542 1.48712729427e-28)
(0.00631505872434 -0.0167814017816 0)
(0.00706309634052 -0.0168045946494 0)
(0.00711645333266 -0.0128505703235 0)
(0.00157563715447 -0.00103913417493 0)
(0.00133921996934 0.000344651772171 0)
(0.00156671570418 -0.000445421710175 0)
(0.00121926289986 -0.000684521288045 0)
(0.00148443655036 -0.000716833990883 0)
(0.00534500219256 -0.00167219742551 0)
(0.000896302978407 1.4126388864e-05 2.07840913673e-28)
(0.000805160388131 0.00029841119652 -1.06469276833e-28)
(0.000910695418725 0.000339629188085 0)
(0.000993595170151 0.000295033282776 -8.04927819147e-30)
(0.00101271687579 0.0002890091155 0)
(0.00103199789673 0.000350908743283 0)
(0.00108572470816 0.000413821379643 0)
(0.00116623586573 0.000458801922033 0)
(0.00125508810185 0.000489784441977 3.40974253758e-30)
(0.00134551306197 0.000548421612519 0)
(0.00142634005654 0.000659401954368 0)
(0.00154071384502 0.000796967214539 0)
(0.00175958150955 0.000970739332268 0)
(0.00203435743582 0.00114029680223 0)
(0.00241592698174 0.00128655485244 0)
(0.00291001931932 0.00134407145702 0)
(0.00377447268498 0.00117350959171 0)
(0.00215727135952 0.000202942875399 0)
(0.016011775218 0.0026292892318 0)
(0.000634664233797 0.000274824639817 0)
(0.0226037636964 0.454446179043 0)
(0.0256280579272 0.506893687841 0)
(0.0271106638451 0.508574540629 0)
(0.0268266565004 0.504678338607 0)
(0.0271949958255 0.501576329803 0)
(0.0278883113555 0.4992698787 0)
(0.028923326741 0.497470270915 0)
(0.0302937043427 0.495961506604 0)
(0.0319774942534 0.494593158674 0)
(0.0339732753732 0.4932499674 0)
(0.0362887583473 0.491824955281 0)
(0.0389415666763 0.490204192889 0)
(0.0419706996133 0.488245509167 0)
(0.045395280047 0.485768508376 0)
(0.0493411379461 0.48248778291 0)
(0.0536727300492 0.478026431195 0)
(0.0588036325072 0.471717548533 0)
(0.0642886063202 0.462225591196 0)
(0.0696430201107 0.448074081126 0)
(0.077414686594 0.41964491607 0)
(0.0756334428696 0.280227112836 0)
(0.0379726298047 0.128166235563 0)
(-1.32484700586e-06 0.000134216924594 0)
(-0.000758807361239 -0.00334035078731 0)
(-0.000779932760007 -0.00304914268189 0)
(-0.00108727823681 -0.00267039066512 0)
(-0.00126367520389 -0.00226363190785 9.25427571694e-31)
(-0.00133800464887 -0.00189373960246 0)
(-0.00134131460094 -0.00157516793019 0)
(-0.00127887283079 -0.00130770133997 0)
(-0.00120059784748 -0.00114215990292 0)
(-0.00109613620046 -0.00106010104158 0)
(-0.000963266295712 -0.00101038910935 0)
(-0.000823134197135 -0.000980935571557 0)
(-0.00068286961397 -0.000974656544316 0)
(-0.000542452943127 -0.00098125897787 0)
(-0.000405817630781 -0.000998386406081 0)
(-0.000288756011529 -0.00104344315948 0)
(-0.000171866856125 -0.0010289979654 0)
(-5.94960617994e-05 -0.00102674460148 0)
(2.25050212014e-05 -6.0589155702e-05 0)
(-7.187086649e-06 -0.000108464897909 0)
(0.000575050111343 -0.00390917608294 -4.27152845521e-28)
(0.000488608301334 -0.0025969949104 0)
(0.000130936627943 -3.55925993873e-05 0)
(0.000201890291233 -2.13523545432e-05 0)
(0.000167640824178 -2.14688884142e-05 0)
(0.000128502413849 -2.99847649909e-05 0)
(-1.02613895428e-05 -5.74736183033e-05 0)
(0.000376874506208 -0.00121008141167 0)
(0.00531831129784 -0.0111662934979 0)
(0.0070622616601 -0.0153451724713 0)
(0.00807354261403 -0.0166753485825 0)
(0.00804587397287 -0.014742976914 0)
(0.00673370342851 -0.00942195955906 0)
(0.00164004454337 -0.000707107785464 0)
(0.00185082224411 -0.000911440787625 0)
(0.00150131261052 -0.000486296574013 -2.15078623221e-28)
(0.00855367713031 0.00264027099353 1.89857231069e-27)
(0.0103088393549 -0.00126834347132 0)
(0.0109728872392 -0.00532331136634 0)
(0.00207947209858 -0.00049764309393 -2.51350191452e-28)
(0.0010441783586 0.000288234717884 9.53732168237e-29)
(0.00114435772059 0.000290674880191 9.3021023044e-30)
(0.00106819151996 0.00024386034843 0)
(0.00100085604929 0.000368599577094 0)
(0.00103788917493 0.00048515733684 0)
(0.00112931875536 0.000559238184984 0)
(0.0012392335163 0.000573286071322 0)
(0.00129810517978 0.000597229138126 0)
(0.00132288688055 0.000734842221996 0)
(0.0013493269171 0.00091069661864 0)
(0.00154311698849 0.00118843506204 0)
(0.00182570366392 0.00148093007437 0)
(0.00225116395793 0.00177915208026 0)
(0.00291039707584 0.0021000398193 0)
(0.00444054953411 0.00236650332933 0)
(0.00291071489123 0.00266907056351 0)
(0.0213447572015 0.0102608033532 0)
(0.000761018321544 -0.00131390199928 0)
(0.021122863393 0.466464110522 0)
(0.0232304887781 0.509434444909 0)
(0.0241810545554 0.508790416814 -4.26477641371e-30)
(0.0237063340374 0.504784751686 0)
(0.0237563736531 0.501961128206 0)
(0.0241706215503 0.499993793723 0)
(0.0249111495576 0.498524902025 0)
(0.0259834448233 0.497337145547 0)
(0.0273677092661 0.496284824688 0)
(0.0290623875117 0.495262055234 0)
(0.0310782030991 0.494174610781 0)
(0.033440362842 0.492922546978 0)
(0.0361968267867 0.491379017936 0)
(0.039393561246 0.489375420964 0)
(0.0431693346239 0.486634535405 0)
(0.047438952798 0.482789839882 0)
(0.0527671767431 0.477094453409 0)
(0.0584485920482 0.468257204752 0)
(0.064886698907 0.454640663711 0)
(0.0742692728485 0.424983552512 0)
(0.0725145963752 0.25723925067 0)
(0.022278644244 0.0879883527014 0)
(-0.000685084296435 -0.00307032774758 0)
(0.000303710380433 -0.00414173372184 0)
(-0.00104291480061 -0.00357919948121 0)
(-0.00151838057359 -0.00294571397877 0)
(-0.00170042182981 -0.00236973907664 -9.25035156317e-31)
(-0.0017183634529 -0.00189726180922 0)
(-0.00165676558252 -0.00152236423694 9.67829594363e-31)
(-0.00155052686394 -0.00122947879835 0)
(-0.00140361229117 -0.00101282426457 0)
(-0.00129485268108 -0.000917905851795 0)
(-0.00114282153093 -0.000862843995652 0)
(-0.000982343860916 -0.000830205435566 0)
(-0.000824566062948 -0.000824793929019 0)
(-0.000663470461664 -0.000838244319972 0)
(-0.000499647215041 -0.000860493573835 0)
(-0.000359711781994 -0.0009145666865 0)
(-0.000219416173452 -0.000919189222747 0)
(-7.63285885422e-05 -0.000902548539593 0)
(1.81784444366e-05 -1.88431390357e-05 0)
(-1.42365300533e-05 -3.41812742161e-05 0)
(5.59471130062e-05 -0.00342225224352 4.67194686447e-28)
(0.000363059535302 -0.00280776500357 0)
(0.000119435629478 -4.08343767996e-05 0)
(0.000199108775965 -5.26151292262e-05 0)
(0.000160751003054 -5.14623349052e-05 0)
(0.000147112219116 -5.53598605009e-05 0)
(0.000193127762686 -7.38960120914e-05 0)
(3.27760547805e-05 -0.000305442339344 0)
(0.00406651477423 -0.00891328012831 0)
(0.0075534420251 -0.0136129622505 0)
(0.00904271169512 -0.016335801566 0)
(0.009668152125 -0.0169892651431 0)
(0.00250098759826 -0.00258597171042 0)
(0.00172450815137 -0.00128801712546 0)
(0.00155594593716 -0.000587965601678 0)
(0.00943125545666 0.00633086024004 0)
(0.0135580669374 0.00908715331398 0)
(0.0157451072636 0.0030784353953 0)
(0.0160812412162 -0.00505723695709 0)
(0.0141470777698 -0.00858493469655 0)
(0.00222004511211 -0.00077843725007 0)
(0.00163009298969 0.00025250307137 0)
(0.00135192398659 -0.00013301115233 0)
(0.000953394222593 0.000278381658604 0)
(0.000957113276471 0.00053421423339 0)
(0.00108399845389 0.000743883191914 0)
(0.00129131119462 0.000689546895304 0)
(0.00133305770364 0.00055555505023 0)
(0.00120937298603 0.000714068869078 0)
(0.00114337375464 0.000969120325811 0)
(0.00123656925567 0.00132815275271 0)
(0.00144380452635 0.00172979114856 0)
(0.00179687190864 0.00225856229568 0)
(0.00232302015305 0.00289186959657 0)
(0.00321505795039 0.00374195973648 -2.19682244948e-30)
(0.00437386851574 0.00532679195738 0)
(0.00446636431796 0.00365556337544 0)
(0.00110599619146 4.48034933737e-05 0)
(0.0197889119999 0.479346700259 0)
(0.0208800582591 0.511277644635 0)
(0.0211779776521 0.508477142723 4.28997723812e-30)
(0.0204177104017 0.504483613085 0)
(0.0200549934779 0.501978491845 0)
(0.0201407405673 0.500381700393 0)
(0.0205772306544 0.499264747372 0)
(0.0213487213821 0.498405648185 0)
(0.0224260566208 0.497668683967 0)
(0.0238003836507 0.496962871341 0)
(0.0254810816288 0.496212340258 0)
(0.0274978016261 0.49533774427 0)
(0.0299066279091 0.494236261392 0)
(0.0327801984302 0.492762356207 0)
(0.036267849437 0.49066544495 0)
(0.0403723595887 0.487589731215 0)
(0.045728276807 0.482723689733 0)
(0.0513853524615 0.474881045153 0)
(0.0590225925503 0.462046927356 0)
(0.0699023571447 0.431676520575 0)
(0.0691544111597 0.230002086762 0)
(0.0206077688963 0.0507122110849 0)
(-0.00110261091702 -0.00734733264139 0)
(-0.000759081366972 -0.00571847068851 0)
(-0.00197648853643 -0.00428265706548 0)
(-0.00229659752809 -0.00318322161914 0)
(-0.00231210285416 -0.0023813275093 0)
(-0.00218538104429 -0.00180552107415 0)
(-0.00200917459112 -0.00139004739582 -9.67659716127e-31)
(-0.00182902773817 -0.00108720282235 0)
(-0.00159021270756 -0.000848271291015 0)
(-0.00147919453944 -0.000755918758872 1.28091163378e-30)
(-0.00131101421568 -0.000697724189373 0)
(-0.00114040815246 -0.000665887128207 0)
(-0.000960703664631 -0.000652823651659 0)
(-0.000791080951252 -0.000669235314092 0)
(-0.000617684938845 -0.000711109573924 0)
(-0.000445710142003 -0.000775947045456 0)
(-0.000247513762724 -0.00077576614299 0)
(-6.97624762642e-05 -0.00071166792089 0)
(1.1085502671e-05 -2.69179943611e-06 0)
(-0.000147444981315 -0.000424990528019 0)
(0.000107276208542 -0.0029709204805 -4.98044476839e-28)
(0.000596856247706 -0.00295096738703 0)
(0.000129506773133 -8.37202221772e-05 0)
(0.000193250151489 -0.000115916949061 0)
(0.000129491857938 -8.87452843463e-05 0)
(0.00010611351281 -6.66293909633e-05 0)
(9.33445314351e-05 -5.08374627656e-05 0)
(-1.93604292165e-05 -6.76935029195e-06 0)
(0.000329199377012 -0.000752608635238 0)
(0.00806444095293 -0.0109443548198 0)
(0.0113911586804 -0.0150509585259 0)
(0.0144342349997 -0.0176202617235 0)
(0.0199610590637 -0.0154928310728 0)
(0.00217789435121 -0.00110684959803 0)
(0.0149339885402 0.0058881740642 0)
(0.0163869224566 0.010265829333 0)
(0.0156524489594 0.0111072259943 0)
(0.00315982148573 -0.000173890376493 0)
(0.0123368856695 -0.00761727912693 0)
(0.0138741686262 -0.0110936138691 0)
(0.014763776239 -0.0115576152614 0)
(0.00269271691309 -0.00102970550505 0)
(0.00144902894784 -9.77122060769e-05 0)
(0.000730013898155 0.000420854720151 0)
(0.000739540771592 0.000622695993361 0)
(0.00111848186816 0.000631911176471 0)
(0.00150837638616 0.000960520741004 0)
(0.00166266398004 0.000268809897728 0)
(0.00118694402485 0.000490810307985 0)
(0.000899641554065 0.000968635564913 0)
(0.00086254230227 0.00153167946843 0)
(0.000934578535275 0.0020335175798 0)
(0.00108917644332 0.00258414050248 0)
(0.00142798535533 0.00357645983238 0)
(0.00200643070518 0.0048947930587 2.19726642699e-30)
(0.00299673928124 0.00674588968462 0)
(0.00589149934127 0.00902547904171 0)
(0.004081487705 0.00548686162014 0)
(0.0227815800796 0.488572466107 0)
(0.0198952231245 0.51112765668 0)
(0.0182066241795 0.50692937632 0)
(0.0168330450087 0.50346733087 0)
(0.0159887722553 0.501537229697 0)
(0.0157362309578 0.500424216643 0)
(0.0158933754196 0.499701722474 0)
(0.0163852701592 0.499174722719 0)
(0.0171608541323 0.498737422977 0)
(0.0181995836493 0.498324942581 0)
(0.0195061326588 0.497886685812 0)
(0.0211101578576 0.497370586281 0)
(0.0230715560186 0.496707523324 0)
(0.0254831398738 0.495792843514 0)
(0.0285095670552 0.49443523759 0)
(0.0322805508466 0.492324681517 0)
(0.0374235290275 0.488679984769 0)
(0.0429765837618 0.482386939541 0)
(0.0519937894997 0.470417119976 0)
(0.0630418108914 0.439054384271 0)
(0.0608038511124 0.191967396551 0)
(0.00190073237373 -0.00247712904338 0)
(-0.0010747853932 -0.0110259201911 0)
(-0.00294955320384 -0.00711319667316 0)
(-0.00357818424397 -0.00465718951077 0)
(-0.00341974701035 -0.00312818414441 0)
(-0.00307816105123 -0.00216640598817 0)
(-0.00270966701629 -0.00155105958435 0)
(-0.00237510026576 -0.00114408617906 0)
(-0.00209370012824 -0.000864300835896 0)
(-0.00179803838051 -0.000661328127492 0)
(-0.00163702977208 -0.000571575515855 -1.24856701139e-30)
(-0.00145664205749 -0.000518626378388 0)
(-0.00127276733841 -0.000487238992558 0)
(-0.00108731374163 -0.000477373016266 0)
(-0.000897570928518 -0.000485621116267 0)
(-0.000701173160942 -0.000510348761023 0)
(-0.000493994938478 -0.000548562295232 0)
(-0.000250760724214 -0.000541018566955 0)
(-7.15374527136e-05 -0.000571086530789 0)
(-6.70478671777e-06 1.06147092824e-05 0)
(-1.5299981088e-06 -0.000368462378125 0)
(0.000690030718815 -0.00251138148483 -5.3156952882e-28)
(0.00219464600919 -0.00320922175362 0)
(0.000239638015756 -0.000148636835735 0)
(0.000195871540442 -6.16766298693e-05 0)
(9.60601724151e-05 -4.30858331736e-05 0)
(9.10287878796e-05 -3.31577705814e-05 0)
(9.55473231864e-05 -3.06043332985e-05 0)
(0.000119895672318 -3.55449301578e-05 0)
(0.000131312585778 -0.000160459958143 0)
(0.00229151549597 -0.00233323062574 0)
(0.0112691568529 -0.00988350968226 0)
(0.01738888427 -0.0126842847794 0)
(0.0249338015595 -0.0124551411333 0)
(0.0278846298979 -0.00657184921349 0)
(0.0281661570205 -0.00132263666674 0)
(0.021172196232 0.00177619535865 0)
(0.0023553893211 0.000105041369701 0)
(0.00209530552228 -6.24837343597e-05 0)
(0.00947018867114 -0.00186884841244 0)
(0.0144635191058 -0.00540756826335 0)
(0.0217689971446 -0.00871866815711 0)
(0.0265221792025 -0.00918810854964 0)
(0.0295450186069 -0.00528044536288 0)
(0.0330797154822 -0.00309734042021 0)
(0.0157673586262 -0.00100230448311 0)
(0.0257036266048 -0.00295688752387 0)
(0.00376267225282 -0.000148067930684 0)
(0.00305726147907 0.000195787870586 0)
(0.00121450860921 0.000542778261642 0)
(0.000309803807957 0.000695712296622 0)
(0.000208402767535 0.00110022321091 0)
(0.000175454334453 0.00130006463154 0)
(0.000206701711822 0.00167955630938 0)
(0.000222969209586 0.0020789583089 0)
(0.000308626370384 0.00292640892138 0)
(0.000599479290931 0.00422667249582 0)
(0.00668753756764 0.0064000814407 0)
(0.00727825441138 0.0103463756471 0)
(0.0238055023197 0.49397209979 0)
(0.0185405884857 0.507782703652 0)
(0.0144232638909 0.50397215852 0)
(0.0123982888272 0.501842359832 0)
(0.0112892203538 0.500794801734 0)
(0.0108572533941 0.50024302003 0)
(0.0108393273626 0.499906945077 0)
(0.0111103568404 0.499671694078 0)
(0.0116063229124 0.499481192094 0)
(0.012301376569 0.499303445377 0)
(0.0131960038207 0.499114690861 0)
(0.0143143110622 0.498890745484 0)
(0.015708571589 0.498598808742 0)
(0.0174694434849 0.498186495245 0)
(0.019759485055 0.497552197243 0)
(0.0228139637456 0.496508592181 0)
(0.027245504121 0.494533150721 0)
(0.0328291152472 0.490749796333 0)
(0.0441825347416 0.481402910013 0)
(0.0547518639864 0.45352024921 0)
(0.0426994961508 0.161485174422 0)
(0.00124480077221 -0.007824733269 0)
(-0.0011666768868 -0.00738560144718 0)
(-0.00713423725548 -0.00807953714378 0)
(-0.00596176777239 -0.00411834765281 0)
(-0.00478765188552 -0.00249612819594 0)
(-0.00388933719437 -0.00159369008038 0)
(-0.00320773430799 -0.00107989795958 0)
(-0.00269594295975 -0.000766190107653 0)
(-0.00231192600896 -0.000562224927023 0)
(-0.00195814260141 -0.000419314234703 0)
(-0.00175090135216 -0.000355185221697 0)
(-0.00154980312202 -0.000319333055418 0)
(-0.00135063063948 -0.000294174342816 0)
(-0.00115980922531 -0.00028251859701 0)
(-0.000961632239089 -0.000284699101376 0)
(-0.000760897564429 -0.000299903316177 0)
(-0.000557568964252 -0.000326051437847 0)
(-0.000320601479601 -0.000340956829278 0)
(-0.000119073146414 -0.000432980283839 0)
(-2.07848653322e-05 1.40385180439e-05 0)
(2.53560206491e-05 1.00117780541e-06 0)
(0.000369120162102 -0.000247780417265 9.9594359453e-29)
(0.00353313189667 -0.00187779273783 0)
(0.00506789511288 -0.00182458378547 0)
(0.0061121952249 -0.000831555152366 0)
(0.00631022431127 -0.000376055570239 0)
(0.00631334947639 -0.000183806068102 0)
(0.00634357860873 -0.000105788560909 0)
(0.00638209807098 -4.61676941121e-05 0)
(0.00631731700879 0.000186269078331 0)
(0.00600293443502 -0.00035810132951 0)
(0.00966273048953 -0.00264015628391 0)
(0.0162634170906 -0.00441598653228 0)
(0.0240315011483 -0.00430472502916 0)
(0.029477065649 -0.00197560367103 0)
(0.0319764068204 -0.000538974631339 0)
(0.0332493413938 -0.00137311103701 0)
(0.0342756598302 -0.00306429415105 0)
(0.0359428976121 -0.000392016209348 0)
(0.0349822377248 0.000634241318816 0)
(0.0342516266543 0.000833958140037 0)
(0.0364181649239 0.000116311566506 0)
(0.0401650941439 3.54372455865e-05 0)
(0.0431253130287 0.000551898763809 0)
(0.0460106014043 -0.000516415108834 0)
(0.0488949839618 -0.00200052859555 0)
(0.0541565990001 -0.00409922959988 0)
(0.0600445295766 -0.00951249406836 0)
(0.0671304374839 -0.00713557020027 0)
(0.0696391616082 -0.00423870583512 0)
(0.0694411080944 -0.00148936538554 0)
(0.0680176941813 0.00076323072004 0)
(0.0661142440198 0.00239220197783 0)
(0.0637383569359 0.00377430051716 0)
(0.0606302482289 0.00534347731927 0)
(0.0563929706337 0.00761540594859 0)
(0.049537997269 0.0121139181993 0)
(0.0453626093614 0.0249922633472 0)
(0.00523616768626 0.00702818299893 0)
(0.0184398174802 0.494195378229 0)
(0.0130809085633 0.502573476573 0)
(0.00840651911646 0.501091917993 0)
(0.00662500338967 0.500468244467 0)
(0.00583594211401 0.500195572297 0)
(0.00552857408091 0.500061079223 0)
(0.00548190008978 0.499982308788 0)
(0.00560113127723 0.49992834987 0)
(0.0058432844529 0.499885150299 0)
(0.00619150487513 0.499845028488 0)
(0.00664522307324 0.499802410527 0)
(0.00721779573307 0.49975164452 0)
(0.0079392210103 0.499684953873 0)
(0.00886438659136 0.499589534886 0)
(0.0100952745719 0.499439431161 0)
(0.0118186905857 0.499182422811 0)
(0.0144873999956 0.498657435878 0)
(0.0188391458559 0.497534747525 0)
(0.0297582940376 0.493954950135 0)
(0.0370882060675 0.482460648293 0)
(0.016581583723 0.183268723335 0)
(-0.0102753648722 -0.00553005041383 0)
(-0.054240664532 -0.026605100364 0)
(-0.00622921953393 -0.00422056157774 0)
(-0.0091558158428 -0.0017615399007 0)
(-0.00593764423857 -0.000997230693668 0)
(-0.00448893525788 -0.00060064336707 0)
(-0.00353275607487 -0.000392153492659 0)
(-0.0028891367324 -0.000271331851804 0)
(-0.00243757499716 -0.000195459059005 0)
(-0.00204567511139 -0.000142744666659 0)
(-0.00183301618485 -0.000120889181253 0)
(-0.00161892511909 -0.000109212462747 0)
(-0.00140904366348 -9.92945602453e-05 0)
(-0.00122035085839 -9.38765499063e-05 0)
(-0.00103382865008 -9.54308240841e-05 0)
(-0.000841385722922 -0.000103308636999 0)
(-0.00063844103188 -0.000112446759877 0)
(-0.000389304037983 -0.000112438928688 0)
(-0.000192391319124 -0.000176700128949 0)
)
;
boundaryField
{
frontAndBack
{
type empty;
}
upperWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
inlet
{
type fixedValue;
value uniform (0 0.5 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value nonuniform List<vector>
20
(
(0.34000853888 -0.356624134203 0)
(0.46534518509 -0.298214007385 0)
(0.542568375691 -0.22675612801 0)
(0.587885110635 -0.160976749767 0)
(0.612363585529 -0.0992153133227 0)
(0.622635877485 -0.0426004265615 0)
(0.620440180833 0.0133712220479 0)
(0.609815839182 0.0583990284123 0)
(0.595975283365 0.0982704633134 0)
(0.579376504094 0.133215829952 0)
(0.560247994736 0.164277494718 0)
(0.538616745293 0.191954987445 0)
(0.514393837307 0.216673820691 0)
(0.48738146559 0.238806427377 0)
(0.457235732152 0.258743114038 0)
(0.423326429555 0.276843344972 0)
(0.384307950417 0.293370022758 0)
(0.337359917043 0.309211280972 0)
(0.278090099241 0.326513390387 0)
(0.199720878958 0.336250871094 0)
)
;
}
}
// ************************************************************************* //
| [
"as998@snu.edu.in"
] | as998@snu.edu.in | |
574614592e129940937cf5ddc449b32e2a2a7ab8 | c5f7cac3fb6aa6914c3ad1d5038d72beee1ca52f | /2012/EnclosingParallelogram/solution.cpp | 2627800e83cbc8715ec126e16ff1799bf07f8c2f | [] | no_license | teamurko/Kharkov-summer-school | 69c3b63036970c45cd00067458d97fb5d1d259ec | 5d750c73be66297bd7b1e5e4b29a633d76209297 | refs/heads/master | 2020-04-06T04:57:29.970216 | 2014-02-18T20:40:29 | 2014-02-18T20:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,873 | cpp | #include "../common/geometry.h"
#include <cassert>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <cmath>
#include <sstream>
#include <algorithm>
#include <queue>
#include <iostream>
using namespace std;
void printUsage(const char* binary)
{
cerr << binary << " " << "sol | check" << endl;
}
typedef PointT<ld> PointD;
typedef vector<PointD> DPoints;
typedef VectorT<ld> VectorD;
const ld EPS = 1e-9;
bool lexCompD(const PointD& a, const PointD& b)
{
return a.x < b.x || a.x == b.x && a.y < b.y;
}
bool isClockWise(const PointD& a, const PointD& b, const PointD& c)
{
return vectProd(a, b, c) < -EPS;
}
bool isCounterClockWise(const PointD& a, const PointD& b, const PointD& c)
{
return vectProd(a, b, c) > EPS;
}
DPoints removeConsequentColinear(DPoints points);
bool checkNoConsequentColinear(const DPoints& points);
DPoints convexHull(DPoints points)
{
if (points.size() == 1) return points;
sort(all(points), &lexCompD);
PointD p1 = *points.begin(), p2 = points.back();
DPoints up, down;
up.push_back(p1);
down.push_back(p1);
for1(i, points.size() - 1) {
const PointD& pt = points[i];
if (i + 1 == points.size() || isClockWise(p1, pt, p2)) {
while (up.size() >= 2 &&
!isClockWise(up[up.size()-2], up.back(), pt)) {
up.pop_back();
}
up.pb(pt);
}
if (i + 1 == points.size() || isCounterClockWise(p1, pt, p2)) {
while (down.size() >= 2 &&
!isCounterClockWise(
down[down.size()-2], down.back(), pt)) {
down.pop_back();
}
down.pb(pt);
}
}
DPoints result;
forv(i, down) result.pb(down[i]);
reverse(all(up));
REQUIRE(!up.empty(), "Up vector is empty");
up.pop_back();
forv(i, up) result.pb(up[i]);
result = removeConsequentColinear(result);
REQUIRE(checkNoConsequentColinear(result),
"No three consequent colinear points are allowed in a convex hull.");
return result;
}
ld dist(const PointD& a, const PointD& b)
{
return hypotl(a.x - b.x, a.y - b.y);
}
ld dist2(const PointD& a, const PointD& b)
{
return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
DPoints removeConsequentColinear(DPoints points)
{
if (points.empty()) return points;
DPoints res;
res.pb(*points.begin());
for1(i, points.size() - 1) {
const PointD& pt = points[i];
while (res.size() >= 2 &&
fabsl(vectProd(res[res.size() - 2], res.back(), pt)) < EPS) {
res.pop_back();
}
res.pb(pt);
}
while (res.size() >= 3 &&
fabsl(vectProd(*res.begin(), res.back(),
res[res.size()-2])) < EPS) {
res.pop_back();
}
return res;
}
bool checkNoConsequentColinear(const DPoints& points)
{
if (points.size() <= 2) {
return true;
}
int n = points.size();
forv(i, points) {
const PointD& start = points[i];
const PointD& middle = points[(i + 1) % n];
const PointD& end = points[(i + 2) % n];
if (fabsl(vectProd(start, middle, end)) < EPS) {
return false;
}
}
return true;
}
void readData(DPoints& points)
{
int n; cin >> n;
REQUIRE(n >= 1 && n <= 40000, "N does not satisfy restrictions");
points.resize(n);
forn(i, n) {
cin >> points[i].x >> points[i].y;
}
}
ld height(const PointD& a, const PointD& b, const PointD& c)
{
ld dst = dist(a, b);
REQUIRE(dst > EPS, "Degenerate side");
return vectProd(a, b, c) / dst;
}
VectorD rotate(const VectorD& v, ld alp)
{
ld cs = cosl(alp);
ld sn = sinl(alp);
return VectorD(v.x * cs - v.y * sn, v.x * sn + v.y * cs);
}
pair<int, int> calc(const DPoints& ps, int a, int b, int lptr, int rptr, ld h)
{
int n = ps.size();
ld dety = (height(ps[a], ps[b], ps[lptr]) -
height(ps[a], ps[b], ps[rptr])) / h;
ld alp = acosl(dety);
VectorD v = rotate(VectorD(ps[a], ps[b]), alp);
pair<int, int> res(0, 0);
if (vectProd(v, VectorD(ps[lptr], ps[(lptr + 1) % n])) < -EPS) {
res.first = 1;
}
else if (vectProd(v, VectorD(ps[lptr], ps[(lptr + n - 1) % n])) < -EPS) {
// res.first = -1;
}
if (vectProd(v, VectorD(ps[rptr], ps[(rptr + 1) % n])) > EPS) {
res.second = 1;
}
else if (vectProd(v, VectorD(ps[rptr], ps[(rptr + n - 1) % n])) > EPS) {
// res.second = -1;
}
return res;
}
ld getAns(const DPoints& ps, int a, int b, int lptr, int rptr, ld h)
{
/*
cerr << a << " " << b << endl;
cerr << lptr << " " << rptr << endl;
cerr << h << endl;
*/
int n = ps.size();
ld dety = (height(ps[a], ps[b], ps[lptr]) -
height(ps[a], ps[b], ps[rptr])) / h;
ld alp = acosl(dety);
VectorD vec(ps[a], ps[b]);
VectorD ort = VectorD(-vec.y, vec.x);
ld width =
height(ps[a], PointD(ps[a].x + ort.x, ps[a].y + ort.y), ps[rptr]) -
height(ps[a], PointD(ps[a].x + ort.x, ps[a].y + ort.y), ps[lptr]);
REQUIRE(width >= -EPS, "Width should be positive : " << width);
return (width - dety * tanl(alp)) + h / fabsl(dety);
}
bool good(const pair<int, int>& res)
{
return res.first == 0 || res.second == 0;
}
ld solve(const DPoints& points)
{
cerr << "ch size : " << points.size() << endl;
if (points.size() <= 2) {
return dist(points[0], points.back());
}
int n = points.size();
int opp = 0;
forn(i, n) {
if (height(points[0], points[1], points[i]) >
height(points[0], points[1], points[opp])) {
opp = i;
}
}
ld curH = height(points[0], points[1], points[opp]);
int lptr = 1, rptr = opp;
while (lptr <= opp) {
pii c = calc(points, 0, 1, lptr, rptr, curH);
if (good(c)) {
break;
}
lptr = (lptr + c.first) % n;
rptr = (rptr + c.second) % n;
}
cerr << "x" << endl;
ld ans = getAns(points, 0, 1, lptr, rptr, curH);
for1(i, n - 1) {
int ni = (i + 1) % n;
ld hh = height(points[i], points[ni], points[(opp + 1) % n]);
if (hh > curH) {
curH = hh;
opp = (opp + 1) % n;
}
pii c = calc(points, i, ni, lptr, rptr, curH);
lptr = (lptr + c.first) % n;
rptr = (rptr + c.second) % n;
ans = min(getAns(points, i, ni, lptr, rptr, curH), ans);
}
return ans;
}
int main(int argc, char** argv)
{
ios_base::sync_with_stdio(false);
if (argc != 2) {
printUsage(argv[0]);
return 1;
}
DPoints points;
readData(points);
ld ans = solve(convexHull(points)) * 2;
cout.precision(10);
cout << fixed << ans << endl;
return 0;
}
| [
"abss.pakso@gmail.com"
] | abss.pakso@gmail.com |
42b45c668d4403a9ec74b9e2f4dafbe26d72f506 | 670a04f65dcff8b181a1326a7b143ed76f1529f9 | /libs/minikin/Layout.cpp | 468764f8ac3116a3c3cd7f87dad8cfefe8f89a9b | [] | no_license | chrsan/minikin | 0fa332fb455c5c3fa72a607b5db1c3884341b8b8 | 25221370251de2adaa93278adc22f3092e916b05 | refs/heads/master | 2021-03-03T17:49:05.583559 | 2020-03-11T08:26:36 | 2020-03-11T08:26:36 | 245,832,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,555 | cpp | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 LOG_TAG "Minikin"
#include "minikin/Layout.h"
#include <hb-icu.h>
#include <hb-ot.h>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
// #include <log/log.h>
#include <unicode/ubidi.h>
#include <unicode/utf16.h>
#include <utils/LruCache.h>
#include "BidiUtils.h"
#include "LayoutSplitter.h"
#include "LayoutUtils.h"
#include "LocaleListCache.h"
#include "MinikinInternal.h"
#include "minikin/Emoji.h"
#include "minikin/HbUtils.h"
#include "minikin/LayoutCache.h"
#include "minikin/LayoutPieces.h"
#include "minikin/Macros.h"
namespace minikin {
void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags,
const MinikinPaint& paint, StartHyphenEdit startHyphen,
EndHyphenEdit endHyphen) {
const uint32_t count = range.getLength();
mAdvances.resize(count, 0);
mGlyphs.reserve(count);
for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) {
doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range.getStart(),
startHyphen, endHyphen, this, nullptr);
}
}
float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags,
const MinikinPaint& paint, StartHyphenEdit startHyphen,
EndHyphenEdit endHyphen, float* advances) {
float advance = 0;
for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) {
const size_t offset = range.toRangeOffset(runInfo.range.getStart());
float* advancesForRun = advances ? advances + offset : nullptr;
advance += doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, 0, startHyphen,
endHyphen, nullptr, advancesForRun);
}
return advance;
}
float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl,
const MinikinPaint& paint, size_t dstStart,
StartHyphenEdit startHyphen, EndHyphenEdit endHyphen,
Layout* layout, float* advances) {
if (!range.isValid()) {
return 0.0f; // ICU failed to retrieve the bidi run?
}
float advance = 0;
for (const auto [context, piece] : LayoutSplitter(textBuf, range, isRtl)) {
// Hyphenation only applies to the start/end of run.
const StartHyphenEdit pieceStartHyphen =
(piece.getStart() == range.getStart()) ? startHyphen : StartHyphenEdit::NO_EDIT;
const EndHyphenEdit pieceEndHyphen =
(piece.getEnd() == range.getEnd()) ? endHyphen : EndHyphenEdit::NO_EDIT;
float* advancesForRun =
advances ? advances + (piece.getStart() - range.getStart()) : nullptr;
advance += doLayoutWord(textBuf.data() + context.getStart(),
piece.getStart() - context.getStart(), piece.getLength(),
context.getLength(), isRtl, paint, piece.getStart() - dstStart,
pieceStartHyphen, pieceEndHyphen, layout, advancesForRun);
}
return advance;
}
class LayoutAppendFunctor {
public:
LayoutAppendFunctor(Layout* layout, float* advances, float* totalAdvance, uint32_t outOffset,
float wordSpacing)
: mLayout(layout),
mAdvances(advances),
mTotalAdvance(totalAdvance),
mOutOffset(outOffset),
mWordSpacing(wordSpacing) {}
void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) {
if (mLayout) {
mLayout->appendLayout(layoutPiece, mOutOffset, mWordSpacing);
}
if (mAdvances) {
const std::vector<float>& advances = layoutPiece.advances();
std::copy(advances.begin(), advances.end(), mAdvances);
}
if (mTotalAdvance) {
*mTotalAdvance = layoutPiece.advance();
}
}
private:
Layout* mLayout;
float* mAdvances;
float* mTotalAdvance;
const uint32_t mOutOffset;
const float mWordSpacing;
};
float Layout::doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
bool isRtl, const MinikinPaint& paint, size_t bufStart,
StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, Layout* layout,
float* advances) {
float wordSpacing = count == 1 && isWordSpace(buf[start]) ? paint.wordSpacing : 0;
float totalAdvance = 0;
const U16StringPiece textBuf(buf, bufSize);
const Range range(start, start + count);
LayoutAppendFunctor f(layout, advances, &totalAdvance, bufStart, wordSpacing);
LayoutCache::getInstance().getOrCreate(textBuf, range, paint, isRtl, startHyphen, endHyphen, f);
if (wordSpacing != 0) {
totalAdvance += wordSpacing;
if (advances) {
advances[0] += wordSpacing;
}
}
return totalAdvance;
}
void Layout::appendLayout(const LayoutPiece& src, size_t start, float extraAdvance) {
for (size_t i = 0; i < src.glyphCount(); i++) {
mGlyphs.emplace_back(src.fontAt(i), src.glyphIdAt(i), mAdvance + src.pointAt(i).x,
src.pointAt(i).y);
}
const std::vector<float>& advances = src.advances();
for (size_t i = 0; i < advances.size(); i++) {
mAdvances[i + start] = advances[i];
if (i == 0) {
mAdvances[start] += extraAdvance;
}
}
MinikinRect srcBounds(src.bounds());
srcBounds.offset(mAdvance, 0);
mBounds.join(srcBounds);
mAdvance += src.advance() + extraAdvance;
}
void Layout::purgeCaches() {
LayoutCache::getInstance().clear();
}
void Layout::dumpMinikinStats(int fd) {
LayoutCache::getInstance().dumpStats(fd);
}
} // namespace minikin
| [
"christer.sandberg@svt.se"
] | christer.sandberg@svt.se |
78727f2d930b4b4a4ed4ea1f15a5ca1cd8f6e999 | 27114324fbf1e95772c044a6f115a58d0d7361fc | /src/physics/srhd.hpp | a2d3f59ce429f9d2845423ee4992470fc207465e | [] | no_license | dmarce1/hypertiger | f7695d84b4311bb8c59d0a9c7d35f1117c58c972 | 2dd624d08bef78e655f4217678499294e080a4de | refs/heads/master | 2021-01-19T17:34:45.795323 | 2017-04-26T17:45:05 | 2017-04-26T17:45:05 | 88,334,334 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,252 | hpp | /*
* problem.hpp
*
* Created on: May 29, 2015
* Author: dmarce1
*/
#ifndef PROBLEM_HPP_
#define PROBLEM_HPP_
#include "defs.hpp"
#include "simd.hpp"
#include <vector>
#include <functional>
#include "geometry.hpp"
class srhd {
public:
static constexpr integer NF = 5;
using vector_type = std::array<simd_vector,NF>;
static void initial_value(vector_type&,
const std::array<simd_vector, NDIM>&, real);
static void set_outflow(vector_type&, const geo::direction& dir);
static bool refinement_test(integer, const std::array<simd_vector, NDIM>&,
const vector_type&, const std::array<vector_type, NDIM>&);
static void to_output(vector_type&, const vector_type&);
static void to_prim(vector_type&, const vector_type&);
static void to_con(vector_type&, const vector_type&);
static void physical_flux(vector_type&, simd_vector&, const vector_type&,
const vector_type&, integer dim);
static void to_fluxes(vector_type&, simd_vector&, const vector_type&,
const vector_type&, integer dim);
static void explicit_source(vector_type& s, const vector_type& u, const vector_type& v);
static void implicit_source(vector_type&, const vector_type&, real);
static std::vector<std::string> field_names();
};
#endif /* PROBLEM_HPP_ */
| [
"dmarce504@gmail.com"
] | dmarce504@gmail.com |
dc87ff761378474b7b8e6475a83bb50c234d5495 | 07bdcab39e42b31cb4c61aadac28ebb80a4311af | /GMCL/demomain.cpp | 70d3f7eac0d79acc616375e78bb28e319d13078c | [] | no_license | gxmc/book-Generative_Programming | 37c73dabf43f23bad4be056733872214a8b944dd | 898bbe7fb0aebdafd1a2ab98a7c0710b0d62b7e6 | refs/heads/master | 2020-07-15T06:54:38.196534 | 2019-03-01T16:51:25 | 2019-03-01T16:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,243 | cpp | /******************************************************************************/
/* */
/* Generative Matrix Package - File "DemoMain.h" */
/* */
/* */
/* */
/* This file contains some examples to demonstrate how to use the matrix */
/* package. More information can be found in "Readme.txt" in the matrix */
/* folder. */
/* */
/* If troubles arise compiling this file (e.g. "internal compiler error") */
/* try the following: */
/* - make sure that option /Zm1000 is set at */
/* Project->Settings->C/C++ ->ProjectOptions */
/* - quit the MS Developer Studio */
/* - delete the contents of the compiler-generated "Release"-folder */
/* - start the MS Develper Studio and try again */
/* */
/* If you do not succeed this way try splitting the file and compile only */
/* one example at a time. */
/* */
/* Note: Compiling in debug mode may not work even if compilation in release */
/* mode runs perfectly. This may be just another bug of the VC 5.0 compiler. */
/* */
/* */
/* (c) Copyright 1998 by Tobias Neubert, Krzysztof Czarnecki, */
/* Ulrich Eisenecker, Johannes Knaupp */
/* */
/******************************************************************************/
#include "GenerativeMatrix.h" // generative matrix includes
#include "DSLTypeInfo.h" // DSL type information
#include <fstream> // file stream operations
// Define a general rectangular matrix with element type double.
typedef MATRIX_GENERATOR<
matrix< double,
structure< rect<>
>
>
>::RET RectMatrixType;
/*
// Define a scalar matrix with 3 rows and 3 columns; scalar value is 3.4.
typedef MATRIX_GENERATOR
< matrix
< double,
structure< scalar< stat_val<int_number<int, 3> >,
stat_val<float_number<double, 3400> >// float#
>
>
>
>::RET ScalarMatrixType;
// Define a sparse rectangular matrix using format compressed sparse row
// to store the elements
typedef MATRIX_GENERATOR
< matrix< double,
structure< rect<dyn_val<>, dyn_val<>, CSR<> >,
sparse<>
>
>
>::RET SparseMatrixType;
// Define a general square matrix with static rows and columns and element
// type int
typedef MATRIX_GENERATOR
< matrix< int,
structure< rect < stat_val<int_number<int, 7> >,
stat_val<int_number<int, 7> >
>,
dense<>,
dyn<>
>,
speed<>,
no_checking<>
>
>::RET SquareMatrixType;
typedef RectMatrixType::Config::DSLFeatures DSL1;
typedef SparseMatrixType::Config::DSLFeatures DSL2;
typedef MULTIPLY_RESULT_DSL<DSL1, DSL2>::RET ResultDSL;
*/
void main()
{
// Output file
ofstream fout("Result.txt");
// Define some matrices
RectMatrixType RectMatrix1(5, 3), RectMatrix2(3, 3), RectMatrix3(3, 3);
/*
ScalarMatrixType ScalarMatrix(3, 3, 5, 3.4);
// Examples for using the "parameters by name" technique to initialize a matrix
SparseMatrixType::ArgumentType args1;
SparseMatrixType SparseMatrix(args1.rows(3).cols(5));
SquareMatrixType::ArgumentType args2;
SquareMatrixType A(args2.value(3)), B(args2.value(7)), C(args2.value(12)),
D(args2.value(9)), E(args2.value(17)), R;
SparseMatrixType ResultMatrix(args1.order(5));
// Initialization of a dense matrix
RectMatrix1= 1, 2, 3,
4, 5, 6,
7, 8, 9,
10, 11, 12,
13, 14, 15;
// Initialization of some elements of a sparse matrix
SparseMatrix= 3, 0, 0,
7, 2, 4;
// Addition of two matrices
// The operands and the result matrix can have different types
RectMatrix2= ScalarMatrix + ScalarMatrix;
// Assign a value to the matrix element at position (0, 2)
RectMatrix2.setElement(0, 2, 7);
// Multiplication of two matrices
// The two operands may be of different types, too
RectMatrix3= ScalarMatrix * RectMatrix2;
// Multiplication of a dense and a sparse matrix
// To test the problem described in "Readme.txt" in chapter 4
// simply replace the format CSR in the DSL description by COO.
ResultMatrix= RectMatrix1 * SparseMatrix;
// Addition of three matrices using an expression
// The calculation is performed lazily, i. e. no temporary results are
// calculated.
// Element (1 ; 1) of R is calculated adding the elements (1 ; 1) of A, C
// and E. Element (1 ; 2) of R is calculated adding the elements (1 ; 2)
// of A, C, and E, and so on.
R= A + C + E;
// Print the results to a file
fout << "RectMatrix1 = " << endl << RectMatrix1 << endl;
fout << "RectMatrix2 = " << endl << RectMatrix2 << endl;
fout << "RectMatrix3 = " << endl << RectMatrix3 << endl;
fout << "ScalarMatrix = " << endl << ScalarMatrix << endl;
fout << "SparseMatrix = " << endl << SparseMatrix << endl;
fout << "ResultMatrix = " << endl << ResultMatrix << endl;
fout << "R = " << endl << R << endl;
// Print some elements of an expression
// Only these elements are calculated instead of the whole resulting matrix.
fout << "The first row of B + C + D:" << endl;
for (int j= 0; j<7; ++j) fout << (B+C+D).getElement(0, j) << " ";
fout << endl;
// Get the resulting DSL of matrix multiplication manually and print it to
// the output file (a value of -1 means that the feature is unspecified).
fout << "Resulting DSL when a matrix of type RectMatrixType is "
"multiplicated with";
fout << "a matrix of type SparseMatrixType:" << endl;
fout << DSLFeaturesInfo<ResultDSL>() << endl;
// Print the DSL of matrix ResultMatrix
fout << "DSL of ResultMatrix:" << endl;
PrintDSLFeaturesInfo(fout, ResultMatrix);
*/
} | [
"2543500257@qq.com"
] | 2543500257@qq.com |
26f4cb9c8426c0aaec074235cb8aaaf003e6da35 | 450dbfa81aca2d87e10ec3513065ae526f6f12a0 | /CPP/data/深度學習C++/src/3rd_edition/ch11/lottery_files_o.cc | 320ad444606588d043cbc3db668eb539dafb0457 | [] | no_license | shihyu/C_and_CPP | cd6eac18e724409d9dff0d4601db525d830e179e | d69e3089a9b6ee191548a492612b54bb037e7df2 | refs/heads/master | 2020-12-15T22:29:42.675236 | 2016-09-25T07:01:08 | 2016-09-25T07:01:08 | 14,917,164 | 1 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cc | lottery001 : 41 3 5 28 16 18 39
lottery002 : 22 35 30 37 10 1 16
lottery003 : 23 7 17 11 12 21 13
lottery004 : 33 5 37 9 20 6 12
lottery005 : 14 10 21 6 36 19 22
lottery006 : 5 20 26 18 29 41 32
lottery007 : 41 35 1 31 13 21 6
lottery008 : 24 41 11 34 31 14 36
lottery009 : 13 9 18 11 14 1 4
lottery010 : 23 32 42 35 7 21 13
| [
"gigi"
] | gigi |
c95188a977c0b608a33d2ce9b275895463789c8f | 5bef53b0dc9539a4953919f75fde1f0ebd20e9fb | /CF/877F.cpp | dd4881b0d7eabc67bc22ff99272827925acf4e6e | [] | no_license | atrin-hojjat/CompetetiveProgramingCodes | 54c8b94092f7acf40d379e42e1f2c0fe8dab9b32 | 6a02071c3869b8e7cd873ddf7a3a2d678aec6d91 | refs/heads/master | 2020-11-25T10:51:23.200000 | 2020-10-08T11:12:09 | 2020-10-08T11:12:09 | 228,626,397 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,838 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cstring>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
#include <set>
#include <map>
#include <math.h>
#include <stack>
#include <deque>
#define mp make_pair
#define F first
#define S second
#define pb push_back
#define FOR(i,j,n) for(int i=j;i<n;i++)
#define F0R(i,j,n) for(int i=j;i<=n;i++)
#define RFOR(i,j,n) for(int i=n-1;i>=j;i--)
#define RF0R(i,j,n) for(int i=n;i>=j;i--)
#define FOREACH(x,v) for(auto x:v)
#define ITFOR(it,v) for(__typeof(v.begin()) it =v.begin();it!=v.end();++it)
#define __in_arr__(a,j,n) FOR(i,j,n)cin >> a[i];
#define __out_arr__(a,j,n) FOR(i,j,n)cout << a[i];
#define LOG cout << "[ !" << __LINE__ << "L ] " << endl;
#define PLOG(x) cout << "[ !" << __LINE__ << "L ] " \<<x<<endl;
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef pair<int,pii> piii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<ll> vl;
const int MAXN = 1e5+6.66;
const ll INF = 3e15+666;
const int SQ = 333;
ll arr[MAXN];
ll par[MAXN];
ll parlink[3*MAXN];
ll appR[MAXN*3];
ll appL[MAXN*3];
ll ans[MAXN];
pii ques[MAXN];
ll cur = 0;
int n,k;
void compressPar(int n) {
set<pll> s;
s.insert(mp(0,0));
s.insert(mp(k,n+1));
s.insert(mp(-k,2*n+2));
F0R(i,1,n) {
s.insert(mp(par[i],i));
s.insert(mp(par[i]+k,1+n+i));
s.insert(mp(par[i]-k,2+2*n+i));
}
int i = 0;
ll last = -INF;
for(auto&u : s)
if(u.F == last)
parlink[u.S] = i;
else
parlink[u.S] = ++i,last = u.F;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
cin >> n >> k;
F0R(i,1,n) {
int x;cin >> x;
arr[i] = (x==1?1:-1);
}
F0R(i,1,n) {
int x;cin >> x;
arr[i] *= x;
}
F0R(i,1,n)
par[i] = arr[i]+par[i-1];
compressPar(n);
int q;cin >> q;
int qs[q];
FOR(i,0,q) {
cin >> ques[i].F >> ques[i].S;
qs[i] = i;
}
sort(qs,qs+q,[](int x,int y) {
if(ques[x].F/SQ!=ques[y].F/SQ)
return ques[x].F<ques[y].F;
if((ques[x].F/SQ)&1)
return ques[x].S>ques[y].S;
else
return ques[y].S>ques[x].S;
});
int l = 0,r = 1;
appL[parlink[0]]++;
appR[parlink[1]]++;
cur += appL[parlink[2*n+3]];
for(auto x : qs) {
while(r<ques[x].S)r++,appR[parlink[r]]++,appL[parlink[r-1]]++,cur += appL[parlink[2+2*n+r]];
while(l>ques[x].F-1)l--,appR[parlink[l+1]]++,appL[parlink[l]]++,cur += appR[parlink[1+n+l]];
while(l<ques[x].F-1) cur -= appR[parlink[l+n+1]],appL[parlink[l]]--,appR[parlink[l+1]]--,l++;
while(r>ques[x].S)cur -= appL[parlink[r+2*n+2]],appR[parlink[r]]--,appL[parlink[r-1]]--,r--;
ans[x] = cur;
}
FOR(i,0,q)
cout << ans[i] << endl;
return 0;
}
| [
"magic.h.s.atrin@gmail.com"
] | magic.h.s.atrin@gmail.com |
11c38eeb3308d34cc6414ff977a0f367cb6ce6f1 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /c++/Chaste/2016/12/VertexCryptBoundaryForce.cpp | 74f3e63447c26b2d63a0ffd08a5d9e9d8264b4ef | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | C++ | false | false | 4,139 | cpp | /*
Copyright (c) 2005-2016, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "VertexCryptBoundaryForce.hpp"
#include "MathsCustomFunctions.hpp"
template<unsigned DIM>
VertexCryptBoundaryForce<DIM>::VertexCryptBoundaryForce(double forceStrength)
: AbstractForce<DIM>(),
mForceStrength(forceStrength)
{
// We don't want the force to act in the wrong direction
assert(mForceStrength > 0.0);
}
template<unsigned DIM>
VertexCryptBoundaryForce<DIM>::~VertexCryptBoundaryForce()
{
}
template<unsigned DIM>
void VertexCryptBoundaryForce<DIM>::AddForceContribution(AbstractCellPopulation<DIM>& rCellPopulation)
{
// Helper variable that is a static cast of the cell population
VertexBasedCellPopulation<DIM>* p_cell_population = static_cast<VertexBasedCellPopulation<DIM>*>(&rCellPopulation);
// Throw an exception message if not using a VertexBasedCellPopulation
if (dynamic_cast<VertexBasedCellPopulation<DIM>*>(&rCellPopulation) == NULL)
{
EXCEPTION("VertexCryptBoundaryForce is to be used with VertexBasedCellPopulations only");
}
// Iterate over nodes
for (typename AbstractMesh<DIM,DIM>::NodeIterator node_iter = p_cell_population->rGetMesh().GetNodeIteratorBegin();
node_iter != p_cell_population->rGetMesh().GetNodeIteratorEnd();
++node_iter)
{
double y = node_iter->rGetLocation()[1]; // y-coordinate of node
// If the node lies below the line y=0, then add the boundary force contribution to the node forces
if (y < 0.0)
{
c_vector<double, DIM> boundary_force = zero_vector<double>(DIM);
boundary_force[1] = mForceStrength*SmallPow(y, 2);
node_iter->AddAppliedForceContribution(boundary_force);
}
}
}
template<unsigned DIM>
double VertexCryptBoundaryForce<DIM>::GetForceStrength() const
{
return mForceStrength;
}
template<unsigned DIM>
void VertexCryptBoundaryForce<DIM>::OutputForceParameters(out_stream& rParamsFile)
{
*rParamsFile << "\t\t\t<ForceStrength>" << mForceStrength << "</ForceStrength>\n";
// Call method on direct parent class
AbstractForce<DIM>::OutputForceParameters(rParamsFile);
}
// Explicit instantiation
template class VertexCryptBoundaryForce<1>;
template class VertexCryptBoundaryForce<2>;
template class VertexCryptBoundaryForce<3>;
// Serialization for Boost >= 1.36
#include "SerializationExportWrapperForCpp.hpp"
EXPORT_TEMPLATE_CLASS_SAME_DIMS(VertexCryptBoundaryForce)
| [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
10d686993e8e0911b34c421c7cec5e77097cda40 | 31782f9cc0c56563e26793943d86cfa4011e708c | /MainFrm.h | be8e0cb6cdc76df184d16fe9e5d4af76b9561732 | [] | no_license | axxonite/MemTracer | eecfb3d7fa15be55ba493d10621f1a3ba2362841 | fadd7d939aab8bc47aff0a1661cde311e1306b8d | refs/heads/master | 2022-07-21T09:52:43.187879 | 2022-05-15T15:43:51 | 2022-05-15T15:43:51 | 240,822,486 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | h | // MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__E054B6F0_8B33_4C19_B050_2889C1EB2ED3__INCLUDED_)
#define AFX_MAINFRM_H__E054B6F0_8B33_4C19_B050_2889C1EB2ED3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MainTracer.h"
/////////////////////////////////////////////////////////////////////////////
// CMainToolbar
class CMainToolbar : public CToolBar
{
protected :
CComboBox m_ProcessesCombo;
CComboBox m_AddressCombo;
CFont m_Font;
public :
bool Create( CFrameWnd* pWnd );
CComboBox* GetProcessesCombo() { return &m_ProcessesCombo; };
CComboBox* GetAddressCombo() { return &m_AddressCombo; };
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
static void ConsoleOutput( char* pString );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_StatusBar;
CMainToolbar m_Toolbar;
CMainTracer m_Tracer;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
afx_msg void OnEditupdateAddress();
afx_msg void OnGo();
afx_msg void OnRefreshProcesses();
afx_msg void OnUpdateGo(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__E054B6F0_8B33_4C19_B050_2889C1EB2ED3__INCLUDED_)
| [
"dfilion@outlook.com"
] | dfilion@outlook.com |
6bd3632d2b5516034b0b5034ab08495809d0e677 | 7b8467520d5f1f71f8b6116f47707c2f6e2b4ef5 | /Projects/ConsoleMainFrameV2/THP_OCR/CColorStatic.h | 623789169d538c5b973cc18bb1c6e587eb76057c | [] | no_license | ping28198/Thailand_projects | 673932154483c7a49d432ce8c3746b80196f3714 | 0f0be403cc9a61e215e0479aca0270ec1538d7d3 | refs/heads/master | 2021-06-24T17:16:48.270014 | 2021-06-24T02:12:14 | 2021-06-24T02:12:14 | 211,781,501 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 653 | h | #pragma once
#include <afxwin.h>
class CColorStatic :
public CStatic
{
public:
CColorStatic();
~CColorStatic();
DECLARE_MESSAGE_MAP()
public:
void SetTextColor(COLORREF crText);
void SetFontSize(int nSize);
void SetBackColor(COLORREF crBackColor);
void SetTransparent(bool bTran);
protected:
CBrush m_Brush;
COLORREF m_crText; // 字体颜色
COLORREF m_crBackColor; // 背景颜色
HBRUSH m_hBrush; // 画刷
LOGFONT m_lf; // 字体大小
CFont m_font; // 字体
bool m_bTran; // 是否透明
public:
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
};
| [
"ping28198@126.com"
] | ping28198@126.com |
945c03c8a6dbbd4e71f6129a03461d1aedaa0080 | d7d040481472d1e1e8c2e304cd4ac4f87e248b77 | /001_GFG/practice/Union_of_two_sorted_arrays.cpp | 2376116fa8dbb79b33b98318dd676ecd1b0dac96 | [] | no_license | Sahil1515/Competitive-Coding | 9f24dec518f565074cb14ce65e1c2ebd162a49db | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | refs/heads/master | 2023-06-12T20:48:19.342064 | 2021-06-30T02:20:16 | 2021-06-30T02:20:16 | 290,392,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n1, n2;
cin >> n1 >> n2;
int arr1[n1], arr2[n2];
for (int i = 0; i < n1; i++)
cin >> arr1[i];
for (int i = 0; i < n2; i++)
cin >> arr2[i];
int i = 0, j = 0;
int temp = min(arr1[0], arr2[0]);
cout<<temp<<" ";
while (i < n1 && j < n2)
{
if (arr1[i] < arr2[j])
{
if (temp != arr1[i])
{
cout << arr1[i] << " ";
temp = arr1[i];
}
i++;
}
else
{
if (temp != arr2[j])
{
cout << arr2[j] << " ";
temp = arr2[j];
}
j++;
}
}
while (i < n1)
{
if (temp != arr1[i])
{
cout << arr1[i] << " ";
temp = arr1[i];
}
i++;
}
while (j < n2)
{
if (temp != arr2[j])
{
cout << arr2[j] << " ";
temp = arr2[j];
}
j++;
}
return 0;
} | [
"sahilsainisalaria@gmail.com"
] | sahilsainisalaria@gmail.com |
b7cd82c56e6d742c058d3e84e6f3221dcf181a9c | d8496c0b51fde27f268223849321872b71473e1a | /OIS_19-20/round_2/evacuation.cpp | e2a0e8f34400bf7918b36a2c48464fa18b17777f | [] | no_license | hackerinoTopolinoTeam/training051119 | 9d695366d262c52fa552f0c7a5ef611a0ef5b979 | 89a05ba79ff59076c3c130a11711170d6b985a08 | refs/heads/master | 2020-09-04T16:02:26.182984 | 2020-02-17T15:05:26 | 2020-02-17T15:05:26 | 219,792,796 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | cpp | /*
* This template is valid both in C and in C++,
* so you can expand it with code from both languages.
*/
#include <bits/stdc++.h>
// constraints
#define MAXN 1000000
using namespace std;
// input data
int N, i;
int E[MAXN], A[MAXN], O[MAXN];
struct MyComp {
bool operator() (pair<int,int> a, pair<int,int> b) {
return a.first < b.first;
}
};
void visita() {
vector<int> ad[N + 1];
for(int j = 0; j < N; j++) {
ad[E[j] + 1].push_back(j + 1);
}
//cout<<"Fatto lista ad"<<endl;
priority_queue<pair<int,int>, vector<pair<int,int>>, MyComp> q;
q.push({A[0],1});
int c_in = 0;
while(!q.empty()) {
pair<int,int> curr = q.top();
q.pop();
O[c_in++] = curr.second - 1;
//cout<<curr.first<<" "<<curr.second<<endl;
for(int j = 0; j < ad[curr.second].size(); j++) {
q.push({A[ad[curr.second][j] - 1],ad[curr.second][j]});
}
}
}
int main() {
// uncomment the following lines if you want to read/write from files
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
assert(1 == scanf("%d", &N));
for(i=0; i<N; i++)
assert(1 == scanf("%d", &E[i])); // evacuation directions
for(i=0; i<N; i++)
assert(1 == scanf("%d", &A[i])); // arrogance
// insert your code here
visita();
// print the result
for(i=0; i<N; i++) printf("%d ", O[i]);
printf("\n");
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
a8d689763aca409b8ea1e76fb75b12c18938368b | 0953fbc2a0e7501a5312a2bc6de8e6af2817b7d6 | /species/humanoid.h | 4f17d799916f170b9ce160b54d6e0c27ef4ff960 | [] | no_license | hgurung283/CS3OrvilleProject | 138a9abb65d2ab580d2605ee95c3ef3467aa4c56 | ae6fa187a765938a5afa2e77e9d7c987167cbb96 | refs/heads/master | 2023-04-17T07:51:53.205455 | 2021-03-29T06:10:57 | 2021-03-29T06:10:57 | 352,530,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | h | /**
* Copyright Notice:
* Author: Hari Ram Gurung
* All rights reserved;
* **/
#ifndef SPECIES_HUMANOID_H_
#define SPECIES_HUMANOID_H_
class Humanoid
{
private:
double weight, height;
public:
Humanoid(double, double);
double _weight;
double _height;
};
#endif | [
"hariram.gurung@gmail.com"
] | hariram.gurung@gmail.com |
9a06d8c57febc45101648dfb0341f6415caeef4f | a18ff11fca8810be96bdb23e76e6c0e97d2579ee | /src/qt/signverifymessagedialog.cpp | 6b4847d73217d4198e902344dc40286d08f15195 | [
"MIT"
] | permissive | cryptocurinfo/sovereigncoin | 66f33cce584540b2d095801a8902224d08638c82 | 118b6705f176051403735116499691d35ce1f103 | refs/heads/master | 2020-03-30T10:35:48.196810 | 2014-10-26T03:51:47 | 2014-10-26T03:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,811 | cpp | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <QClipboard>
#include <string>
#include <vector>
SignVerifyMessageDialog::SignVerifyMessageDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SignVerifyMessageDialog),
model(0)
{
ui->setupUi(this);
#if (QT_VERSION >= 0x040700)
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
ui->addressIn_SM->setPlaceholderText(tr("Enter a Sovereigncoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
ui->signatureOut_SM->setPlaceholderText(tr("Click \"Sign Message\" to generate signature"));
ui->addressIn_VM->setPlaceholderText(tr("Enter a Sovereigncoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
ui->signatureIn_VM->setPlaceholderText(tr("Enter Sovereigncoin signature"));
#endif
GUIUtil::setupAddressWidget(ui->addressIn_SM, this);
GUIUtil::setupAddressWidget(ui->addressIn_VM, this);
ui->addressIn_SM->installEventFilter(this);
ui->messageIn_SM->installEventFilter(this);
ui->signatureOut_SM->installEventFilter(this);
ui->addressIn_VM->installEventFilter(this);
ui->messageIn_VM->installEventFilter(this);
ui->signatureIn_VM->installEventFilter(this);
ui->signatureOut_SM->setFont(GUIUtil::bitcoinAddressFont());
ui->signatureIn_VM->setFont(GUIUtil::bitcoinAddressFont());
}
SignVerifyMessageDialog::~SignVerifyMessageDialog()
{
delete ui;
}
void SignVerifyMessageDialog::setModel(WalletModel *model)
{
this->model = model;
}
void SignVerifyMessageDialog::setAddress_SM(const QString &address)
{
ui->addressIn_SM->setText(address);
ui->messageIn_SM->setFocus();
}
void SignVerifyMessageDialog::setAddress_VM(const QString &address)
{
ui->addressIn_VM->setText(address);
ui->messageIn_VM->setFocus();
}
void SignVerifyMessageDialog::showTab_SM(bool fShow)
{
ui->tabWidget->setCurrentIndex(0);
if (fShow)
this->show();
}
void SignVerifyMessageDialog::showTab_VM(bool fShow)
{
ui->tabWidget->setCurrentIndex(1);
if (fShow)
this->show();
}
void SignVerifyMessageDialog::on_addressBookButton_SM_clicked()
{
if (model && model->getAddressTableModel())
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::ReceivingTab, this);
dlg.setModel(model->getAddressTableModel());
if (dlg.exec())
{
setAddress_SM(dlg.getReturnValue());
}
}
}
void SignVerifyMessageDialog::on_pasteButton_SM_clicked()
{
setAddress_SM(QApplication::clipboard()->text());
}
void SignVerifyMessageDialog::on_signMessageButton_SM_clicked()
{
/* Clear old signature to ensure users don't get confused on error with an old signature displayed */
ui->signatureOut_SM->clear();
CBitcoinAddress addr(ui->addressIn_SM->text().toStdString());
if (!addr.IsValid())
{
ui->addressIn_SM->setValid(false);
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
return;
}
CKeyID keyID;
if (!addr.GetKeyID(keyID))
{
ui->addressIn_SM->setValid(false);
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
return;
}
WalletModel::UnlockContext ctx(model->requestUnlock());
if (!ctx.isValid())
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("Wallet unlock was cancelled."));
return;
}
CKey key;
if (!pwalletMain->GetKey(keyID, key))
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(tr("Private key for the entered address is not available."));
return;
}
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << ui->messageIn_SM->document()->toPlainText().toStdString();
std::vector<unsigned char> vchSig;
if (!key.SignCompact(Hash(ss.begin(), ss.end()), vchSig))
{
ui->statusLabel_SM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_SM->setText(QString("<nobr>") + tr("Message signing failed.") + QString("</nobr>"));
return;
}
ui->statusLabel_SM->setStyleSheet("QLabel { color: green; }");
ui->statusLabel_SM->setText(QString("<nobr>") + tr("Message signed.") + QString("</nobr>"));
ui->signatureOut_SM->setText(QString::fromStdString(EncodeBase64(&vchSig[0], vchSig.size())));
}
void SignVerifyMessageDialog::on_copySignatureButton_SM_clicked()
{
QApplication::clipboard()->setText(ui->signatureOut_SM->text());
}
void SignVerifyMessageDialog::on_clearButton_SM_clicked()
{
ui->addressIn_SM->clear();
ui->messageIn_SM->clear();
ui->signatureOut_SM->clear();
ui->statusLabel_SM->clear();
ui->addressIn_SM->setFocus();
}
void SignVerifyMessageDialog::on_addressBookButton_VM_clicked()
{
if (model && model->getAddressTableModel())
{
AddressBookPage dlg(AddressBookPage::ForSending, AddressBookPage::SendingTab, this);
dlg.setModel(model->getAddressTableModel());
if (dlg.exec())
{
setAddress_VM(dlg.getReturnValue());
}
}
}
void SignVerifyMessageDialog::on_verifyMessageButton_VM_clicked()
{
CBitcoinAddress addr(ui->addressIn_VM->text().toStdString());
if (!addr.IsValid())
{
ui->addressIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The entered address is invalid.") + QString(" ") + tr("Please check the address and try again."));
return;
}
CKeyID keyID;
if (!addr.GetKeyID(keyID))
{
ui->addressIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The entered address does not refer to a key.") + QString(" ") + tr("Please check the address and try again."));
return;
}
bool fInvalid = false;
std::vector<unsigned char> vchSig = DecodeBase64(ui->signatureIn_VM->text().toStdString().c_str(), &fInvalid);
if (fInvalid)
{
ui->signatureIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The signature could not be decoded.") + QString(" ") + tr("Please check the signature and try again."));
return;
}
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << ui->messageIn_VM->document()->toPlainText().toStdString();
CKey key;
if (!key.SetCompactSignature(Hash(ss.begin(), ss.end()), vchSig))
{
ui->signatureIn_VM->setValid(false);
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(tr("The signature did not match the message digest.") + QString(" ") + tr("Please check the signature and try again."));
return;
}
if (!(CBitcoinAddress(key.GetPubKey().GetID()) == addr))
{
ui->statusLabel_VM->setStyleSheet("QLabel { color: red; }");
ui->statusLabel_VM->setText(QString("<nobr>") + tr("Message verification failed.") + QString("</nobr>"));
return;
}
ui->statusLabel_VM->setStyleSheet("QLabel { color: green; }");
ui->statusLabel_VM->setText(QString("<nobr>") + tr("Message verified.") + QString("</nobr>"));
}
void SignVerifyMessageDialog::on_clearButton_VM_clicked()
{
ui->addressIn_VM->clear();
ui->signatureIn_VM->clear();
ui->messageIn_VM->clear();
ui->statusLabel_VM->clear();
ui->addressIn_VM->setFocus();
}
bool SignVerifyMessageDialog::eventFilter(QObject *object, QEvent *event)
{
if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::FocusIn)
{
if (ui->tabWidget->currentIndex() == 0)
{
/* Clear status message on focus change */
ui->statusLabel_SM->clear();
/* Select generated signature */
if (object == ui->signatureOut_SM)
{
ui->signatureOut_SM->selectAll();
return true;
}
}
else if (ui->tabWidget->currentIndex() == 1)
{
/* Clear status message on focus change */
ui->statusLabel_VM->clear();
}
}
return QDialog::eventFilter(object, event);
}
| [
"roger.k.h.3@gmail.com"
] | roger.k.h.3@gmail.com |
c79ab9938adddeecfb053723d34891db68618926 | 3657bb42387d76fd041d37bf2d69bad7f916f16a | /x86_driver/WinCOM/WinCOM.cpp | a254150ed3b548b8651530f5f8110bf793afe16f | [
"MIT"
] | permissive | goodspeed24e/Programming | 61d8652482b3246f1c65f2051f812b2c6d2d40ce | ae73fad022396ea03105aad83293facaeea561ae | refs/heads/master | 2016-08-04T02:58:01.477832 | 2015-03-16T15:12:27 | 2015-03-16T15:13:33 | 32,333,164 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,989 | cpp | // WinCOM.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "WinCOM.h"
#include "WinCOMDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWinCOMApp
BEGIN_MESSAGE_MAP(CWinCOMApp, CWinApp)
//{{AFX_MSG_MAP(CWinCOMApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CWinCOMApp construction
CWinCOMApp::CWinCOMApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CWinCOMApp object
CWinCOMApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CWinCOMApp initialization
BOOL CWinCOMApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CWinCOMDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
| [
"lin.yongyuanone@gmail.com"
] | lin.yongyuanone@gmail.com |
53c2ef4fedc3af91ee7ce3ad5b4d06a1bfcb385e | 6cc6d885d0179173a5740f273e87e5fcc850ecf7 | /Expressions/Operations/LessComparisonOperation.cpp | c2234ec6e87049bf1d84db1868a9f160f790f8b0 | [] | no_license | IbrahimSba3i/MipsExpressions | 09965eca92efce0771a5642edd4653f1508183a2 | bdee4064cfbd3a80d2dabc2db6d770c4d56730db | refs/heads/master | 2021-01-10T17:56:25.052315 | 2015-12-16T22:40:59 | 2015-12-16T22:40:59 | 48,139,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | #include "LessComparisonOperation.h"
LessComparisonOperation::LessComparisonOperation(const OperationString &source) : Operation(source)
{
}
vector<AssemblyInstruction> LessComparisonOperation::getInstructions()
{
}
| [
"el-sebaie.ebrahim@aucegypt.edu"
] | el-sebaie.ebrahim@aucegypt.edu |
196cb6d675562d57e61dd06159bbc8e208cbf656 | e00c76488bbc4c79669c478718a8aba420a645e7 | /CodeForce/1504/C.cpp | fa43f6225eaf3717d6c96591281d96371791e50a | [
"MIT"
] | permissive | Blow-away/Algorithm | 7c10952caefa88d436a0a3dbb90fe0006cd8ea46 | 4682ebe2ba9c1c633c56913922befd36c04f502d | refs/heads/main | 2023-04-13T22:49:45.653254 | 2021-04-11T03:32:09 | 2021-04-11T03:32:09 | 356,744,789 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 956 | cpp | #include <iostream>
void solve() {
int n;
std::string s;
std::cin >> n >> s;
int count{};
for (int i = 0; i < n; ++i) {
if (s[i] == '1')
count++;
}
if (count % 2 || s[0] == '0' || s[n - 1] == '0') {
std::cout << "NO\n";
return;
}
int k{};
bool flip = false;
std::string s1, s2;
for (int i = 0; i < n; ++i) {
if (s[i] == '1') {
if (k * 2 < count) {
s1.push_back('(');
s2.push_back('(');
++k;
} else {
s1.push_back(')');
s2.push_back(')');
}
} else {
s1.push_back(flip ? '(' : ')');
s2.push_back(flip ? ')' : '(');
flip = !flip;
}
}
std::cout << "YES\n" << s1 << '\n' << s2 << '\n';
}
int main() {
int T;
std::cin >> T;
while (T--) {
solve();
}
return 0;
}
| [
"1229059439@qq.com"
] | 1229059439@qq.com |
a9dcf583bbe407783edc3232f8566b4947327120 | eebf2a4799e4aa0f7f34a1b07472a536d5c29baf | /drone/pid_pitch.ino | a1a7b94ac6760b92cd9d9eeda3cbbce17ae5b37f | [] | no_license | slva21/FINAL-YEAR-PROJECT | 540c899995c4d8033c3715822cac457c4f38e360 | bd0c450f811e2372475a3f4fd39df88a4467f844 | refs/heads/master | 2023-04-10T22:41:40.088526 | 2021-04-19T16:37:55 | 2021-04-19T16:37:55 | 341,232,836 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 210 | ino | #include "main.h"
#include "pid_pitch.h"
void PID_Pitch_Control::autolevel(const int &angle)
{
pitch = map(angle, -90, 90, 0, 255);
controll_pitch_left.Compute();
controll_pitch_right.Compute();
}
| [
"79410954+slva21@users.noreply.github.com"
] | 79410954+slva21@users.noreply.github.com |
6e9f335b37dcf0bfb1b82ced51221c9ea38e8c39 | 4389afd3c1cfdfb36af578ebd8e099aee51f5b41 | /Source/PlantThatWheat/Public/CDisableCollisionActor.h | 197381560a8093249004a239f2e1964825596d0f | [] | no_license | Hengle/Plant-That-Wheat | b0ab254442a3c80021519f17b8d586af4d91b3ff | 9dba0c868b4fcfb49710e1f6bfb3cf06b748d30b | refs/heads/master | 2023-03-27T01:48:27.770579 | 2020-05-26T15:58:20 | 2020-05-26T15:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | h |
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "CDisableCollisionActor.generated.h"
class ACPlanetActor;
class ACLevelScriptActor;
class USphereComponent;
UCLASS()
class PLANTTHATWHEAT_API ACDisableCollisionActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ACDisableCollisionActor();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
ACPlanetActor* Planet;
ACLevelScriptActor* Level;
UPROPERTY(VisibleAnywhere, Category = "Components")
USphereComponent* SphereCollision;
UFUNCTION()
void OnOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult & SweepResult);
UFUNCTION()
void OnEndOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
};
| [
"kevin.c.vanhorn@gmail.com"
] | kevin.c.vanhorn@gmail.com |
a341a25d730632fe476e1637144f24c915b4b4a4 | 8f93028ef982ae03dce8dcd1c549bf562b182400 | /testClient/src/RequestGenerator.hpp | 97622b30c16be698ae6098fd4d76a870687ae4e7 | [] | no_license | oleevg/ratingcalculator | 634c41820711379393a97d00365d32e57669c0a8 | 01d1f14349457bfee2351e54827d096d87dab57f | refs/heads/master | 2020-09-13T12:34:13.429800 | 2018-01-24T05:48:27 | 2018-01-24T05:48:27 | 222,781,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | hpp | /*
* RequestGenerator.hpp
*
* Created on: 1/8/18
* Author: Oleg F., fedorov.ftf@gmail.com
*/
#ifndef RATINGCALCULATOR_REQUESTGENERATOR_HPP
#define RATINGCALCULATOR_REQUESTGENERATOR_HPP
#include <vector>
#include <mutex>
#include <condition_variable>
#include <core/Model.hpp>
#include "TestUser.hpp"
namespace rating_calculator {
namespace test_client {
class RequestGenerator {
public:
RequestGenerator(size_t nUsers);
core::BaseMessage::Ptr generateUserCommonMessage();
core::BaseMessage::Ptr generateUserRegisteredMessage();
size_t getRegisteredUsersNumber() const;
void waitForUsersToRegister();
private:
std::vector<TestUser> users;
mutable std::mutex usersMutex;
std::condition_variable usersCondVar;
const size_t nUsersMax;
};
}
}
#endif //RATINGCALCULATOR_REQUESTGENERATOR_HPP
| [
"fedorov.ftf@gmail.com"
] | fedorov.ftf@gmail.com |
ea0a35c882b071174ded8f5541cd2eacadd9560f | 91dabf446dda1b80abda767b8df67bb7ed595133 | /src/builtin/builtin_types.hpp | b7c8ae601d01023eb435b47bbefeaff77dd01f12 | [] | no_license | duzy/smart.cpp | 303b436c17104e65e4582212c877199dee123b17 | 28e451364e6dc498e8a604726209a2b71f87b948 | refs/heads/master | 2021-01-15T09:32:32.758183 | 2010-02-22T03:48:21 | 2010-02-22T03:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | hpp | /**
* Copyright 2009-08-25 DuzySoft.com, by Zhan Xin-Ming (Duzy Chan)
* All rights reserved by Zhan Xin-Ming (Duzy Chan)
* Email: <duzy@duzy.info, duzy.chan@gmail.com>
*
* $Id$
*
**/
#ifndef __SMART_BUILTIN_TYPES__hpp____by_Duzy_Chan__
#define __SMART_BUILTIN_TYPES__hpp____by_Duzy_Chan__ 1
# include "vm_types.hpp"
# include <vector>
namespace smart
{
namespace builtin
{
// struct integer : vm::type_integer
// {
// };//struct integer
}//namespace builtin
}//namespace smart
#endif//__SMART_BUILTIN_TYPES__hpp____by_Duzy_Chan__
| [
"duzy.chan@463a7b20-940c-11dd-86f2-5bf34d4ec66d"
] | duzy.chan@463a7b20-940c-11dd-86f2-5bf34d4ec66d |
0c10214840fbc1b2fb0430002f0ead1849b3885d | 2e09a75416d11dcaf5594652d0c71f7375a23d19 | /next/event/dispatcher.hpp | 3f78f9011e2b2801b4e3949b242f5009e367435e | [
"BSL-1.0"
] | permissive | sol-ide/next | 6640be6b2f1be601d9ad43e373d906ae654e3768 | 65e749b6f5977498ee8f62729520a4d7336a0e64 | refs/heads/master | 2020-04-22T02:06:01.534969 | 2013-11-30T22:05:04 | 2013-11-30T22:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,079 | hpp |
// Copyright Sylvain Oliver 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <next/event/config.hpp>
#include <next/event/abstract_event_data.hpp>
#include <next/event/event_data.hpp>
#include <next/event/message_handling_thread.hpp>
#include <next/event/thread_group.hpp>
#include <boost/noncopyable.hpp>
#include <boost/fusion/container/set.hpp>
#include <boost/fusion/include/set.hpp>
#include <boost/fusion/include/at_key.hpp>
#include <boost/fusion/include/has_key.hpp>
#include <boost/phoenix/object/construct.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <memory>
#include <mutex>
#include <utility>
#include <unordered_set>
#include <future>
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4251)
# pragma warning(disable:4275)
#endif
namespace next
{
class dispatcher;
class event_handler;
namespace details
{
template< typename T >
struct hash_weak
{
std::size_t operator( )( std::weak_ptr< T >& w )
{
auto ptr = w.lock();
return std::hash< decltype( ptr ) >()( ptr );
}
};
template< typename T >
struct equal_to_weak
{
bool operator( )( std::weak_ptr< T >& w1, std::weak_ptr< T >& w2 )
{
auto ptr1 = w1.lock();
auto ptr2 = w2.lock();
return ptr1.get() == ptr2.get();
}
};
}
template< typename Event >
class send_event_t : boost::noncopyable
{
private:
typedef std::unique_ptr< next::abstract_event_data > abstract_event_data_ptr;
send_event_t();
public:
send_event_t( dispatcher& d, abstract_event_data_ptr event_data_ptr )
: event_data_( std::move( event_data_ptr ) )
, d_( d )
{
}
send_event_t( send_event_t && other )
: event_data_( std::move( other.event_data_ ) )
, d_( other.d_ )
{
}
typename Event::future_type to( event_handler& h );
private:
abstract_event_data_ptr event_data_;
dispatcher& d_;
};
struct thread_pool_size_t
{
std::size_t pool_size;
};
class NEXT_EVENT_EXPORT dispatcher : boost::noncopyable
{
public:
~dispatcher();
template< typename... Args >
dispatcher( Args&&... args )
: is_being_deleted_( false )
{
typedef boost::fusion::set< Args... > Arguments;
#ifdef _MSC_VER
// workaround msvc 2013 preview bug
Arguments arguments( args... );
#else
Arguments arguments( std::forward< Args >( args )... );
#endif
std::size_t pool_size = 1;
if( boost::fusion::result_of::has_key< Arguments, thread_pool_size_t >::value )
{
pool_size = boost::fusion::at_key< thread_pool_size_t >( arguments ).pool_size;
}
for( std::size_t index = 0; index < pool_size; ++index )
{
message_handling_thread* thread_ptr = nullptr;
{
std::unique_lock< std::mutex > lock( threads_mutex_ );
auto result = running_threads_.emplace( new message_handling_thread( *this ) );
thread_ptr = *result.first;
}
thread_ptr->wait_for_nothing_to_do();
}
// TODO: wait all threads instanciated
}
template< typename Event, typename... Args >
send_event_t< Event > send_event( Args && ... args )
{
return send_event_t< Event >( *this, std::make_unique< next::event_data< Event > >( std::forward< Args >( args )... ) );
}
std::weak_ptr< thread_group > create_thread_group();
private:
template< typename Event >
friend class send_event_t;
void send_event_impl( event_handler& h, std::unique_ptr< next::abstract_event_data > event_data );
friend class message_handling_thread;
void register_in_waiting_task_poll( message_handling_thread* handler );
void remove_from_waiting_task_poll( message_handling_thread* handler );
friend thread_group;
void move_waiting_to_dispatching_group_thread( thread_group* group );
void remove_group_thread_from_currently_dispatching( thread_group* group );
std::shared_ptr< thread_group > check_for_waiting_group();
void wait_until_there_is_no_waiting_group();
private:
// typedef next::details::set_unique_ptr< message_handling_thread > message_handling_thread_ptr;
// typedef std::unique_ptr< message_handling_thread > message_handling_thread_ptr;
typedef message_handling_thread* message_handling_thread_ptr;
std::unordered_set< message_handling_thread_ptr > waiting_threads_;
std::unordered_set< message_handling_thread_ptr > running_threads_;
// sometimes we need to read
mutable std::mutex threads_mutex_;
// typedef std::weak_ptr< thread_group > thread_group_ptr;
// std::unordered_set < thread_group_ptr, details::hash_weak< thread_group >, details::equal_to_weak< thread_group > > thread_groups_;
typedef std::shared_ptr< thread_group > thread_group_ptr;
std::unordered_set< thread_group_ptr > thread_groups_;
std::unordered_set< thread_group_ptr > waiting_for_thread_thread_groups_;
std::unordered_set< thread_group* > waiting_for_dispatch_thread_groups_;
std::unordered_set< thread_group* > currently_dispatching_thread_groups_;
mutable std::mutex thread_group_mutex_;
std::condition_variable no_more_waiting_thread_group_condition_;
bool is_being_deleted_;
mutable std::mutex begin_deleted_mutex_;
};
template< typename Event >
typename Event::future_type send_event_t< Event >::to( event_handler& h )
{
typename Event::future_type future;
event_data_->get_future_result( &future );
d_.send_event_impl( h, std::move( event_data_ ) );
return std::move( future );
}
}
#ifdef _MSC_VER
# pragma warning(pop)
#endif
| [
"oliver.sylvain@gmail.com"
] | oliver.sylvain@gmail.com |
958f9fb780a121dbc21743296434fcee9ee94db1 | aa4565e477946917b30ee5d01ede8ee0916aba5a | /src/server/game/AuctionHouse/AuctionHouseMgr.cpp | 6186e6169288f71788b5673cc340dbe412aa22cc | [] | no_license | mmoglider/GlideCore | 2b157953188f9c83b2b0ede86c469b10790cdc2d | 76b4a7562210f6fa60326d44fbc7a2640e416351 | refs/heads/master | 2016-09-06T18:46:57.294884 | 2014-04-25T03:03:57 | 2014-04-25T03:03:57 | 15,888,600 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,630 | cpp | /*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Common.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "World.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "DatabaseEnv.h"
#include "DBCStores.h"
#include "ScriptMgr.h"
#include "AccountMgr.h"
#include "AuctionHouseMgr.h"
#include "Item.h"
#include "Language.h"
#include "Log.h"
#include <vector>
enum eAuctionHouse
{
AH_MINIMUM_DEPOSIT = 100
};
AuctionHouseMgr::AuctionHouseMgr()
{
}
AuctionHouseMgr::~AuctionHouseMgr()
{
for (ItemMap::iterator itr = mAitems.begin(); itr != mAitems.end(); ++itr)
delete itr->second;
}
AuctionHouseObject* AuctionHouseMgr::GetAuctionsMap(uint32 factionTemplateId)
{
if (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
return &mNeutralAuctions;
// teams have linked auction houses
FactionTemplateEntry const* uEntry = sFactionTemplateStore.LookupEntry(factionTemplateId);
if (!uEntry)
return &mNeutralAuctions;
else if (uEntry->ourMask & FACTION_MASK_ALLIANCE)
return &mAllianceAuctions;
else if (uEntry->ourMask & FACTION_MASK_HORDE)
return &mHordeAuctions;
else
return &mNeutralAuctions;
}
uint32 AuctionHouseMgr::GetAuctionDeposit(AuctionHouseEntry const* entry, uint32 time, Item* pItem, uint32 count)
{
uint32 MSV = pItem->GetTemplate()->SellPrice;
if (MSV <= 0)
return AH_MINIMUM_DEPOSIT;
float multiplier = CalculatePct(float(entry->depositPercent), 3);
uint32 timeHr = (((time / 60) / 60) / 12);
uint32 deposit = uint32(((multiplier * MSV * count / 3) * timeHr * 3) * sWorld->getRate(RATE_AUCTION_DEPOSIT));
TC_LOG_DEBUG(LOG_FILTER_AUCTIONHOUSE, "MSV: %u", MSV);
TC_LOG_DEBUG(LOG_FILTER_AUCTIONHOUSE, "Items: %u", count);
TC_LOG_DEBUG(LOG_FILTER_AUCTIONHOUSE, "Multiplier: %f", multiplier);
TC_LOG_DEBUG(LOG_FILTER_AUCTIONHOUSE, "Deposit: %u", deposit);
if (deposit < AH_MINIMUM_DEPOSIT)
return AH_MINIMUM_DEPOSIT;
else
return deposit;
}
//does not clear ram
void AuctionHouseMgr::SendAuctionWonMail(AuctionEntry* auction, SQLTransaction& trans)
{
Item* pItem = GetAItem(auction->itemGUIDLow);
if (!pItem)
return;
uint32 bidderAccId = 0;
uint64 bidderGuid = MAKE_NEW_GUID(auction->bidder, 0, HIGHGUID_PLAYER);
Player* bidder = ObjectAccessor::FindPlayer(bidderGuid);
// data for gm.log
std::string bidderName;
bool logGmTrade = false;
if (bidder)
{
bidderAccId = bidder->GetSession()->GetAccountId();
bidderName = bidder->GetName();
logGmTrade = bidder->GetSession()->HasPermission(RBAC_PERM_LOG_GM_TRADE);
}
else
{
bidderAccId = sObjectMgr->GetPlayerAccountIdByGUID(bidderGuid);
logGmTrade = AccountMgr::HasPermission(bidderAccId, RBAC_PERM_LOG_GM_TRADE, realmID);
if (logGmTrade && !sObjectMgr->GetPlayerNameByGUID(bidderGuid, bidderName))
bidderName = sObjectMgr->GetTrinityStringForDBCLocale(LANG_UNKNOWN);
}
if (logGmTrade)
{
std::string ownerName;
if (!sObjectMgr->GetPlayerNameByGUID(auction->owner, ownerName))
ownerName = sObjectMgr->GetTrinityStringForDBCLocale(LANG_UNKNOWN);
uint32 ownerAccId = sObjectMgr->GetPlayerAccountIdByGUID(auction->owner);
sLog->outCommand(bidderAccId, "GM %s (Account: %u) won item in auction: %s (Entry: %u Count: %u) and pay money: %u. Original owner %s (Account: %u)",
bidderName.c_str(), bidderAccId, pItem->GetTemplate()->Name1.c_str(), pItem->GetEntry(), pItem->GetCount(), auction->bid, ownerName.c_str(), ownerAccId);
}
// receiver exist
if (bidder || bidderAccId)
{
// set owner to bidder (to prevent delete item with sender char deleting)
// owner in `data` will set at mail receive and item extracting
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ITEM_OWNER);
stmt->setUInt32(0, auction->bidder);
stmt->setUInt32(1, pItem->GetGUIDLow());
trans->Append(stmt);
if (bidder)
{
bidder->GetSession()->SendAuctionBidderNotification(auction->GetHouseId(), auction->Id, bidderGuid, 0, 0, auction->itemEntry);
// FIXME: for offline player need also
bidder->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_WON_AUCTIONS, 1);
}
MailDraft(auction->BuildAuctionMailSubject(AUCTION_WON), AuctionEntry::BuildAuctionMailBody(auction->owner, auction->bid, auction->buyout, 0, 0))
.AddItem(pItem)
.SendMailTo(trans, MailReceiver(bidder, auction->bidder), auction, MAIL_CHECK_MASK_COPIED);
}
}
void AuctionHouseMgr::SendAuctionSalePendingMail(AuctionEntry* auction, SQLTransaction& trans)
{
uint64 owner_guid = MAKE_NEW_GUID(auction->owner, 0, HIGHGUID_PLAYER);
Player* owner = ObjectAccessor::FindPlayer(owner_guid);
uint32 owner_accId = sObjectMgr->GetPlayerAccountIdByGUID(owner_guid);
// owner exist (online or offline)
if (owner || owner_accId)
MailDraft(auction->BuildAuctionMailSubject(AUCTION_SALE_PENDING), AuctionEntry::BuildAuctionMailBody(auction->bidder, auction->bid, auction->buyout, auction->deposit, auction->GetAuctionCut()))
.SendMailTo(trans, MailReceiver(owner, auction->owner), auction, MAIL_CHECK_MASK_COPIED);
}
//call this method to send mail to auction owner, when auction is successful, it does not clear ram
void AuctionHouseMgr::SendAuctionSuccessfulMail(AuctionEntry* auction, SQLTransaction& trans)
{
uint64 owner_guid = MAKE_NEW_GUID(auction->owner, 0, HIGHGUID_PLAYER);
Player* owner = ObjectAccessor::FindPlayer(owner_guid);
uint32 owner_accId = sObjectMgr->GetPlayerAccountIdByGUID(owner_guid);
// owner exist
if (owner || owner_accId)
{
uint32 profit = auction->bid + auction->deposit - auction->GetAuctionCut();
//FIXME: what do if owner offline
if (owner)
{
owner->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GOLD_EARNED_BY_AUCTIONS, profit);
owner->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_AUCTION_SOLD, auction->bid);
//send auction owner notification, bidder must be current!
owner->GetSession()->SendAuctionOwnerNotification(auction);
}
MailDraft(auction->BuildAuctionMailSubject(AUCTION_SUCCESSFUL), AuctionEntry::BuildAuctionMailBody(auction->bidder, auction->bid, auction->buyout, auction->deposit, auction->GetAuctionCut()))
.AddMoney(profit)
.SendMailTo(trans, MailReceiver(owner, auction->owner), auction, MAIL_CHECK_MASK_COPIED, sWorld->getIntConfig(CONFIG_MAIL_DELIVERY_DELAY));
}
}
//does not clear ram
void AuctionHouseMgr::SendAuctionExpiredMail(AuctionEntry* auction, SQLTransaction& trans)
{
//return an item in auction to its owner by mail
Item* pItem = GetAItem(auction->itemGUIDLow);
if (!pItem)
return;
uint64 owner_guid = MAKE_NEW_GUID(auction->owner, 0, HIGHGUID_PLAYER);
Player* owner = ObjectAccessor::FindPlayer(owner_guid);
uint32 owner_accId = sObjectMgr->GetPlayerAccountIdByGUID(owner_guid);
// owner exist
if (owner || owner_accId)
{
if (owner)
owner->GetSession()->SendAuctionOwnerNotification(auction);
MailDraft(auction->BuildAuctionMailSubject(AUCTION_EXPIRED), AuctionEntry::BuildAuctionMailBody(0, 0, auction->buyout, auction->deposit, 0))
.AddItem(pItem)
.SendMailTo(trans, MailReceiver(owner, auction->owner), auction, MAIL_CHECK_MASK_COPIED, 0);
}
}
//this function sends mail to old bidder
void AuctionHouseMgr::SendAuctionOutbiddedMail(AuctionEntry* auction, uint32 newPrice, Player* newBidder, SQLTransaction& trans)
{
uint64 oldBidder_guid = MAKE_NEW_GUID(auction->bidder, 0, HIGHGUID_PLAYER);
Player* oldBidder = ObjectAccessor::FindPlayer(oldBidder_guid);
uint32 oldBidder_accId = 0;
if (!oldBidder)
oldBidder_accId = sObjectMgr->GetPlayerAccountIdByGUID(oldBidder_guid);
// old bidder exist
if (oldBidder || oldBidder_accId)
{
if (oldBidder && newBidder)
oldBidder->GetSession()->SendAuctionBidderNotification(auction->GetHouseId(), auction->Id, newBidder->GetGUID(), newPrice, auction->GetAuctionOutBid(), auction->itemEntry);
MailDraft(auction->BuildAuctionMailSubject(AUCTION_OUTBIDDED), AuctionEntry::BuildAuctionMailBody(auction->owner, auction->bid, auction->buyout, auction->deposit, auction->GetAuctionCut()))
.AddMoney(auction->bid)
.SendMailTo(trans, MailReceiver(oldBidder, auction->bidder), auction, MAIL_CHECK_MASK_COPIED);
}
}
//this function sends mail, when auction is cancelled to old bidder
void AuctionHouseMgr::SendAuctionCancelledToBidderMail(AuctionEntry* auction, SQLTransaction& trans, Item* item)
{
uint64 bidder_guid = MAKE_NEW_GUID(auction->bidder, 0, HIGHGUID_PLAYER);
Player* bidder = ObjectAccessor::FindPlayer(bidder_guid);
uint32 bidder_accId = 0;
if (!bidder)
bidder_accId = sObjectMgr->GetPlayerAccountIdByGUID(bidder_guid);
if (bidder)
bidder->GetSession()->SendAuctionRemovedNotification(auction->Id, auction->itemEntry, item->GetItemRandomPropertyId());
// bidder exist
if (bidder || bidder_accId)
MailDraft(auction->BuildAuctionMailSubject(AUCTION_CANCELLED_TO_BIDDER), AuctionEntry::BuildAuctionMailBody(auction->owner, auction->bid, auction->buyout, auction->deposit, 0))
.AddMoney(auction->bid)
.SendMailTo(trans, MailReceiver(bidder, auction->bidder), auction, MAIL_CHECK_MASK_COPIED);
}
void AuctionHouseMgr::LoadAuctionItems()
{
uint32 oldMSTime = getMSTime();
// need to clear in case we are reloading
if (!mAitems.empty())
{
for (ItemMap::iterator itr = mAitems.begin(); itr != mAitems.end(); ++itr)
delete itr->second;
mAitems.clear();
}
// data needs to be at first place for Item::LoadFromDB
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_AUCTION_ITEMS);
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (!result)
{
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 auction items. DB table `auctionhouse` or `item_instance` is empty!");
return;
}
uint32 count = 0;
do
{
Field* fields = result->Fetch();
uint32 item_guid = fields[11].GetUInt32();
uint32 itemEntry = fields[12].GetUInt32();
ItemTemplate const* proto = sObjectMgr->GetItemTemplate(itemEntry);
if (!proto)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "AuctionHouseMgr::LoadAuctionItems: Unknown item (GUID: %u id: #%u) in auction, skipped.", item_guid, itemEntry);
continue;
}
Item* item = NewItemOrBag(proto);
if (!item->LoadFromDB(item_guid, 0, fields, itemEntry))
{
delete item;
continue;
}
AddAItem(item);
++count;
}
while (result->NextRow());
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Loaded %u auction items in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
}
void AuctionHouseMgr::LoadAuctions()
{
uint32 oldMSTime = getMSTime();
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_AUCTIONS);
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (!result)
{
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Loaded 0 auctions. DB table `auctionhouse` is empty.");
return;
}
uint32 count = 0;
SQLTransaction trans = CharacterDatabase.BeginTransaction();
do
{
Field* fields = result->Fetch();
AuctionEntry* aItem = new AuctionEntry();
if (!aItem->LoadFromDB(fields))
{
aItem->DeleteFromDB(trans);
delete aItem;
continue;
}
GetAuctionsMap(aItem->factionTemplateId)->AddAuction(aItem);
++count;
} while (result->NextRow());
CharacterDatabase.CommitTransaction(trans);
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Loaded %u auctions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
}
void AuctionHouseMgr::AddAItem(Item* it)
{
ASSERT(it);
ASSERT(mAitems.find(it->GetGUIDLow()) == mAitems.end());
mAitems[it->GetGUIDLow()] = it;
}
bool AuctionHouseMgr::RemoveAItem(uint32 id)
{
ItemMap::iterator i = mAitems.find(id);
if (i == mAitems.end())
return false;
mAitems.erase(i);
return true;
}
void AuctionHouseMgr::Update()
{
mHordeAuctions.Update();
mAllianceAuctions.Update();
mNeutralAuctions.Update();
}
AuctionHouseEntry const* AuctionHouseMgr::GetAuctionHouseEntry(uint32 factionTemplateId)
{
uint32 houseid = 7; // goblin auction house
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
{
// FIXME: found way for proper auctionhouse selection by another way
// AuctionHouse.dbc have faction field with _player_ factions associated with auction house races.
// but no easy way convert creature faction to player race faction for specific city
switch (factionTemplateId)
{
case 12: houseid = 1; break; // human
case 29: houseid = 6; break; // orc, and generic for horde
case 55: houseid = 2; break; // dwarf, and generic for alliance
case 68: houseid = 4; break; // undead
case 80: houseid = 3; break; // n-elf
case 104: houseid = 5; break; // trolls
case 120: houseid = 7; break; // booty bay, neutral
case 474: houseid = 7; break; // gadgetzan, neutral
case 855: houseid = 7; break; // everlook, neutral
case 1604: houseid = 6; break; // b-elfs,
default: // for unknown case
{
FactionTemplateEntry const* u_entry = sFactionTemplateStore.LookupEntry(factionTemplateId);
if (!u_entry)
houseid = 7; // goblin auction house
else if (u_entry->ourMask & FACTION_MASK_ALLIANCE)
houseid = 1; // human auction house
else if (u_entry->ourMask & FACTION_MASK_HORDE)
houseid = 6; // orc auction house
else
houseid = 7; // goblin auction house
break;
}
}
}
return sAuctionHouseStore.LookupEntry(houseid);
}
void AuctionHouseObject::AddAuction(AuctionEntry* auction)
{
ASSERT(auction);
AuctionsMap[auction->Id] = auction;
sScriptMgr->OnAuctionAdd(this, auction);
}
bool AuctionHouseObject::RemoveAuction(AuctionEntry* auction, uint32 /*itemEntry*/)
{
bool wasInMap = AuctionsMap.erase(auction->Id) ? true : false;
sScriptMgr->OnAuctionRemove(this, auction);
// we need to delete the entry, it is not referenced any more
delete auction;
auction = NULL;
return wasInMap;
}
void AuctionHouseObject::Update()
{
time_t curTime = sWorld->GetGameTime();
///- Handle expired auctions
// If storage is empty, no need to update. next == NULL in this case.
if (AuctionsMap.empty())
return;
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_AUCTION_BY_TIME);
stmt->setUInt32(0, (uint32)curTime+60);
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (!result)
return;
do
{
// from auctionhousehandler.cpp, creates auction pointer & player pointer
AuctionEntry* auction = GetAuction(result->Fetch()->GetUInt32());
if (!auction)
continue;
SQLTransaction trans = CharacterDatabase.BeginTransaction();
///- Either cancel the auction if there was no bidder
if (auction->bidder == 0)
{
sAuctionMgr->SendAuctionExpiredMail(auction, trans);
sScriptMgr->OnAuctionExpire(this, auction);
}
///- Or perform the transaction
else
{
//we should send an "item sold" message if the seller is online
//we send the item to the winner
//we send the money to the seller
sAuctionMgr->SendAuctionSuccessfulMail(auction, trans);
sAuctionMgr->SendAuctionWonMail(auction, trans);
sScriptMgr->OnAuctionSuccessful(this, auction);
}
uint32 itemEntry = auction->itemEntry;
///- In any case clear the auction
auction->DeleteFromDB(trans);
CharacterDatabase.CommitTransaction(trans);
sAuctionMgr->RemoveAItem(auction->itemGUIDLow);
RemoveAuction(auction, itemEntry);
}
while (result->NextRow());
}
void AuctionHouseObject::BuildListBidderItems(WorldPacket& data, Player* player, uint32& count, uint32& totalcount)
{
for (AuctionEntryMap::const_iterator itr = AuctionsMap.begin(); itr != AuctionsMap.end(); ++itr)
{
AuctionEntry* Aentry = itr->second;
if (Aentry && Aentry->bidder == player->GetGUIDLow())
{
if (itr->second->BuildAuctionInfo(data))
++count;
++totalcount;
}
}
}
void AuctionHouseObject::BuildListOwnerItems(WorldPacket& data, Player* player, uint32& count, uint32& totalcount)
{
for (AuctionEntryMap::const_iterator itr = AuctionsMap.begin(); itr != AuctionsMap.end(); ++itr)
{
AuctionEntry* Aentry = itr->second;
if (Aentry && Aentry->owner == player->GetGUIDLow())
{
if (Aentry->BuildAuctionInfo(data))
++count;
++totalcount;
}
}
}
void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player,
std::wstring const& wsearchedname, uint32 listfrom, uint8 levelmin, uint8 levelmax, uint8 usable,
uint32 inventoryType, uint32 itemClass, uint32 itemSubClass, uint32 quality,
uint32& count, uint32& totalcount)
{
int loc_idx = player->GetSession()->GetSessionDbLocaleIndex();
int locdbc_idx = player->GetSession()->GetSessionDbcLocale();
for (AuctionEntryMap::const_iterator itr = AuctionsMap.begin(); itr != AuctionsMap.end(); ++itr)
{
AuctionEntry* Aentry = itr->second;
Item* item = sAuctionMgr->GetAItem(Aentry->itemGUIDLow);
if (!item)
continue;
ItemTemplate const* proto = item->GetTemplate();
if (itemClass != 0xffffffff && proto->Class != itemClass)
continue;
if (itemSubClass != 0xffffffff && proto->SubClass != itemSubClass)
continue;
if (inventoryType != 0xffffffff && proto->InventoryType != inventoryType)
continue;
if (quality != 0xffffffff && proto->Quality != quality)
continue;
if (levelmin != 0x00 && (proto->RequiredLevel < levelmin || (levelmax != 0x00 && proto->RequiredLevel > levelmax)))
continue;
if (usable != 0x00 && player->CanUseItem(item) != EQUIP_ERR_OK)
continue;
// Allow search by suffix (ie: of the Monkey) or partial name (ie: Monkey)
// No need to do any of this if no search term was entered
if (!wsearchedname.empty())
{
std::string name = proto->Name1;
if (name.empty())
continue;
// local name
if (loc_idx >= 0)
if (ItemLocale const* il = sObjectMgr->GetItemLocale(proto->ItemId))
ObjectMgr::GetLocaleString(il->Name, loc_idx, name);
// DO NOT use GetItemEnchantMod(proto->RandomProperty) as it may return a result
// that matches the search but it may not equal item->GetItemRandomPropertyId()
// used in BuildAuctionInfo() which then causes wrong items to be listed
int32 propRefID = item->GetItemRandomPropertyId();
if (propRefID)
{
// Append the suffix to the name (ie: of the Monkey) if one exists
// These are found in ItemRandomProperties.dbc, not ItemRandomSuffix.dbc
// even though the DBC names seem misleading
const ItemRandomPropertiesEntry* itemRandProp = sItemRandomPropertiesStore.LookupEntry(propRefID);
if (itemRandProp)
{
char* temp = itemRandProp->nameSuffix;
// dbc local name
if (temp)
{
// Append the suffix (ie: of the Monkey) to the name using localization
// or default enUS if localization is invalid
name += ' ';
name += temp[locdbc_idx >= 0 ? locdbc_idx : LOCALE_enUS];
}
}
}
// Perform the search (with or without suffix)
if (!Utf8FitTo(name, wsearchedname))
continue;
}
// Add the item if no search term or if entered search term was found
if (count < 50 && totalcount >= listfrom)
{
++count;
Aentry->BuildAuctionInfo(data);
}
++totalcount;
}
}
//this function inserts to WorldPacket auction's data
bool AuctionEntry::BuildAuctionInfo(WorldPacket& data) const
{
Item* item = sAuctionMgr->GetAItem(itemGUIDLow);
if (!item)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "AuctionEntry::BuildAuctionInfo: Auction %u has a non-existent item: %u", Id, itemGUIDLow);
return false;
}
data << uint32(Id);
data << uint32(item->GetEntry());
for (uint8 i = 0; i < PROP_ENCHANTMENT_SLOT_0; ++i) // PROP_ENCHANTMENT_SLOT_0 = 10
{
data << uint32(item->GetEnchantmentId(EnchantmentSlot(i)));
data << uint32(item->GetEnchantmentDuration(EnchantmentSlot(i)));
data << uint32(item->GetEnchantmentCharges(EnchantmentSlot(i)));
}
data << int32(item->GetItemRandomPropertyId()); // Random item property id
data << uint32(item->GetItemSuffixFactor()); // SuffixFactor
data << uint32(item->GetCount()); // item->count
data << uint32(item->GetSpellCharges()); // item->charge FFFFFFF
data << uint32(0); // Unknown
data << uint64(owner); // Auction->owner
data << uint64(startbid); // Auction->startbid (not sure if useful)
data << uint64(bid ? GetAuctionOutBid() : 0);
// Minimal outbid
data << uint64(buyout); // Auction->buyout
data << uint32((expire_time - time(NULL)) * IN_MILLISECONDS); // time left
data << uint64(bidder); // auction->bidder current
data << uint64(bid); // current bid
return true;
}
uint32 AuctionEntry::GetAuctionCut() const
{
int32 cut = int32(CalculatePct(bid, auctionHouseEntry->cutPercent) * sWorld->getRate(RATE_AUCTION_CUT));
return std::max(cut, 0);
}
/// the sum of outbid is (1% from current bid)*5, if bid is very small, it is 1c
uint32 AuctionEntry::GetAuctionOutBid() const
{
uint32 outbid = CalculatePct(bid, 5);
return outbid ? outbid : 1;
}
void AuctionEntry::DeleteFromDB(SQLTransaction& trans) const
{
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_AUCTION);
stmt->setUInt32(0, Id);
trans->Append(stmt);
}
void AuctionEntry::SaveToDB(SQLTransaction& trans) const
{
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_AUCTION);
stmt->setUInt32(0, Id);
stmt->setUInt32(1, auctioneer);
stmt->setUInt32(2, itemGUIDLow);
stmt->setUInt32(3, owner);
stmt->setUInt32(4, buyout);
stmt->setUInt32(5, uint32(expire_time));
stmt->setUInt32(6, bidder);
stmt->setUInt32(7, bid);
stmt->setUInt32(8, startbid);
stmt->setUInt32(9, deposit);
trans->Append(stmt);
}
bool AuctionEntry::LoadFromDB(Field* fields)
{
Id = fields[0].GetUInt32();
auctioneer = fields[1].GetUInt32();
itemGUIDLow = fields[2].GetUInt32();
itemEntry = fields[3].GetUInt32();
itemCount = fields[4].GetUInt32();
owner = fields[5].GetUInt32();
buyout = fields[6].GetUInt32();
expire_time = fields[7].GetUInt32();
bidder = fields[8].GetUInt32();
bid = fields[9].GetUInt32();
startbid = fields[10].GetUInt32();
deposit = fields[11].GetUInt32();
CreatureData const* auctioneerData = sObjectMgr->GetCreatureData(auctioneer);
if (!auctioneerData)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "Auction %u has not a existing auctioneer (GUID : %u)", Id, auctioneer);
return false;
}
CreatureTemplate const* auctioneerInfo = sObjectMgr->GetCreatureTemplate(auctioneerData->id);
if (!auctioneerInfo)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "Auction %u has not a existing auctioneer (GUID : %u Entry: %u)", Id, auctioneer, auctioneerData->id);
return false;
}
factionTemplateId = auctioneerInfo->faction_A;
auctionHouseEntry = AuctionHouseMgr::GetAuctionHouseEntry(factionTemplateId);
if (!auctionHouseEntry)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "Auction %u has auctioneer (GUID : %u Entry: %u) with wrong faction %u", Id, auctioneer, auctioneerData->id, factionTemplateId);
return false;
}
// check if sold item exists for guid
// and itemEntry in fact (GetAItem will fail if problematic in result check in AuctionHouseMgr::LoadAuctionItems)
if (!sAuctionMgr->GetAItem(itemGUIDLow))
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "Auction %u has not a existing item : %u", Id, itemGUIDLow);
return false;
}
return true;
}
void AuctionHouseMgr::DeleteExpiredAuctionsAtStartup()
{
// Deletes expired auctions. Should be called at server start before loading auctions.
// DO NOT USE after auctions are already loaded since this deletes from the DB
// and assumes the auctions HAVE NOT been loaded into a list or AuctionEntryMap yet
uint32 oldMSTime = getMSTime();
uint32 expirecount = 0;
time_t curTime = sWorld->GetGameTime();
// Query the DB to see if there are any expired auctions
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_EXPIRED_AUCTIONS);
stmt->setUInt32(0, (uint32)curTime+60);
PreparedQueryResult expAuctions = CharacterDatabase.Query(stmt);
if (!expAuctions)
{
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> No expired auctions to delete");
return;
}
do
{
Field* fields = expAuctions->Fetch();
AuctionEntry* auction = new AuctionEntry();
// Can't use LoadFromDB() because it assumes the auction map is loaded
if (!auction->LoadFromFieldList(fields))
{
// For some reason the record in the DB is broken (possibly corrupt
// faction info). Delete the object and move on.
delete auction;
continue;
}
SQLTransaction trans = CharacterDatabase.BeginTransaction();
if (auction->bidder==0)
{
// Cancel the auction, there was no bidder
sAuctionMgr->SendAuctionExpiredMail(auction, trans);
}
else
{
// Send the item to the winner and money to seller
sAuctionMgr->SendAuctionSuccessfulMail(auction, trans);
sAuctionMgr->SendAuctionWonMail(auction, trans);
}
// Call the appropriate AuctionHouseObject script
// ** Do we need to do this while core is still loading? **
sScriptMgr->OnAuctionExpire(GetAuctionsMap(auction->factionTemplateId), auction);
// Delete the auction from the DB
auction->DeleteFromDB(trans);
CharacterDatabase.CommitTransaction(trans);
// Release memory
delete auction;
++expirecount;
}
while (expAuctions->NextRow());
TC_LOG_INFO(LOG_FILTER_SERVER_LOADING, ">> Deleted %u expired auctions in %u ms", expirecount, GetMSTimeDiffToNow(oldMSTime));
}
bool AuctionEntry::LoadFromFieldList(Field* fields)
{
// Loads an AuctionEntry item from a field list. Unlike "LoadFromDB()", this one
// does not require the AuctionEntryMap to have been loaded with items. It simply
// acts as a wrapper to fill out an AuctionEntry struct from a field list
Id = fields[0].GetUInt32();
auctioneer = fields[1].GetUInt32();
itemGUIDLow = fields[2].GetUInt32();
itemEntry = fields[3].GetUInt32();
itemCount = fields[4].GetUInt32();
owner = fields[5].GetUInt32();
buyout = fields[6].GetUInt32();
expire_time = fields[7].GetUInt32();
bidder = fields[8].GetUInt32();
bid = fields[9].GetUInt32();
startbid = fields[10].GetUInt32();
deposit = fields[11].GetUInt32();
CreatureData const* auctioneerData = sObjectMgr->GetCreatureData(auctioneer);
if (!auctioneerData)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "AuctionEntry::LoadFromFieldList() - Auction %u has not a existing auctioneer (GUID : %u)", Id, auctioneer);
return false;
}
CreatureTemplate const* auctioneerInfo = sObjectMgr->GetCreatureTemplate(auctioneerData->id);
if (!auctioneerInfo)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "AuctionEntry::LoadFromFieldList() - Auction %u has not a existing auctioneer (GUID : %u Entry: %u)", Id, auctioneer, auctioneerData->id);
return false;
}
factionTemplateId = auctioneerInfo->faction_A;
auctionHouseEntry = AuctionHouseMgr::GetAuctionHouseEntry(factionTemplateId);
if (!auctionHouseEntry)
{
TC_LOG_ERROR(LOG_FILTER_GENERAL, "AuctionEntry::LoadFromFieldList() - Auction %u has auctioneer (GUID : %u Entry: %u) with wrong faction %u", Id, auctioneer, auctioneerData->id, factionTemplateId);
return false;
}
return true;
}
std::string AuctionEntry::BuildAuctionMailSubject(MailAuctionAnswers response) const
{
std::ostringstream strm;
strm << itemEntry << ":0:" << response << ':' << Id << ':' << itemCount;
return strm.str();
}
std::string AuctionEntry::BuildAuctionMailBody(uint32 lowGuid, uint32 bid, uint32 buyout, uint32 deposit, uint32 cut)
{
std::ostringstream strm;
strm.width(16);
strm << std::right << std::hex << MAKE_NEW_GUID(lowGuid, 0, HIGHGUID_PLAYER); // HIGHGUID_PLAYER always present, even for empty guids
strm << std::dec << ':' << bid << ':' << buyout;
strm << ':' << deposit << ':' << cut;
return strm.str();
}
| [
"biditgetit@gmail.com"
] | biditgetit@gmail.com |
d9c09e9303fb7d6ef40ffa914f7753cad7015dc6 | 5c14e45d11bccff6ed32743fe5fede597c55106e | /translator/translator.h | 4996746f7886474a894ac1186edd88aecf67010f | [
"WTFPL"
] | permissive | Morpog/mitakuuluu2 | dc2b7bb523e6e4a1b68bfe2c3b91d6143015c128 | b6798b8e29e74c73d12c2ff03e133fb532be3d69 | refs/heads/master | 2016-09-16T02:01:28.422178 | 2014-04-20T14:08:22 | 2014-04-20T14:08:22 | 18,967,895 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 296 | h | #ifndef TRANSLATOR_H
#define TRANSLATOR_H
#include <QObject>
#include <QLocale>
#include <QTranslator>
#include <QSettings>
class Translator : public QObject
{
Q_OBJECT
public:
explicit Translator(QObject *parent = 0);
private:
QTranslator *translator;
};
#endif // TRANSLATOR_H
| [
"coderusinbox@gmail.com"
] | coderusinbox@gmail.com |
83b41986e7e89f71cbca59c756e32db69998899c | 35f1a2b751819d0e5741a87121cfdf2aae3e646b | /study/study/2535.cpp | 2323a301876b1ef9030a8bd97cc4133215c61f64 | [] | no_license | namhyo01/ForStudy | b15ec2dc8b3e659509b93604b4468fbd7460bed8 | fa7b8f6279a02f1ed261a209fefccc96a4ef4752 | refs/heads/master | 2022-03-20T15:38:47.140018 | 2022-03-09T12:41:05 | 2022-03-09T12:41:05 | 250,731,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | //#include <bits/stdc++.h>
//
//using namespace std;
//
//typedef struct Student {
// int country_num;
// int student_num;
// int score;
//};
//
//Student student[103];
//int check_country[103];
//
//bool cmp(const Student &a1, const Student &a2) {
// if (a1.score > a2.score)
// return true;
// return false;
//}
//
//int main() {
// ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
// int n;
// cin >> n;
// for (int i = 0; i < n; i++)
// cin >> student[i].country_num >> student[i].student_num >> student[i].score;
//
// sort(student, student + n,cmp);
//
// cout << student[0].country_num << " " << student[0].student_num << endl;
// cout << student[1].country_num << " " << student[1].student_num << endl;
// check_country[student[0].country_num]++;
// check_country[student[1].country_num]++;
// for (int i = 2; i < n; i++) {
// if (check_country[student[i].country_num]==2) {
// continue;
// }
// else {
// cout << student[i].country_num << " " << student[i].student_num << endl;
// break;
// }
// }
//
//
//
//
// system("pause");
// return 0;
//} | [
"namhyo01@naver.com"
] | namhyo01@naver.com |
383c122e51a2d2b495de020d2939c133a3fa1f0d | 6fc57553a02b485ad20c6e9a65679cd71fa0a35d | /src/identity/bin/google_auth_provider/google_auth_provider_impl.h | 2bfce50bbac984eff291139dd36e697fb8c5822d | [
"BSD-3-Clause"
] | permissive | OpenTrustGroup/fuchsia | 2c782ac264054de1a121005b4417d782591fb4d8 | 647e593ea661b8bf98dcad2096e20e8950b24a97 | refs/heads/master | 2023-01-23T08:12:32.214842 | 2019-08-03T20:27:06 | 2019-08-03T20:27:06 | 178,452,475 | 1 | 1 | BSD-3-Clause | 2023-01-05T00:43:10 | 2019-03-29T17:53:42 | C++ | UTF-8 | C++ | false | false | 7,280 | h | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This application serves as the Google Auth provider for generating OAuth
// credentials to talk to Google Api backends. This application implements
// |auth_provider.fidl| interface and is typically invoked by the Token Manager
// service in Garnet layer.
#ifndef SRC_IDENTITY_BIN_GOOGLE_AUTH_PROVIDER_GOOGLE_AUTH_PROVIDER_IMPL_H_
#define SRC_IDENTITY_BIN_GOOGLE_AUTH_PROVIDER_GOOGLE_AUTH_PROVIDER_IMPL_H_
#include <fuchsia/auth/cpp/fidl.h>
#include <fuchsia/auth/testing/cpp/fidl.h>
#include <fuchsia/sys/cpp/fidl.h>
#include <fuchsia/ui/views/cpp/fidl.h>
#include <fuchsia/web/cpp/fidl.h>
#include <lib/callback/cancellable.h>
#include <lib/fidl/cpp/binding.h>
#include <lib/fidl/cpp/binding_set.h>
#include <lib/fit/function.h>
#include <lib/network_wrapper/network_wrapper.h>
#include <lib/sys/cpp/component_context.h>
#include "src/identity/bin/google_auth_provider/settings.h"
#include "src/lib/fxl/macros.h"
namespace google_auth_provider {
using fuchsia::auth::AssertionJWTParams;
using fuchsia::auth::AttestationJWTParams;
using fuchsia::auth::AttestationSigner;
using fuchsia::auth::AuthenticationUIContext;
using fuchsia::web::NavigationState;
class GoogleAuthProviderImpl : fuchsia::web::NavigationEventListener,
fuchsia::auth::AuthProvider,
fuchsia::auth::testing::LegacyAuthCredentialInjector {
public:
GoogleAuthProviderImpl(async_dispatcher_t* main_dispatcher, sys::ComponentContext* context,
network_wrapper::NetworkWrapper* network_wrapper, Settings settings,
fidl::InterfaceRequest<fuchsia::auth::AuthProvider> request);
~GoogleAuthProviderImpl() override;
void set_on_empty(fit::closure on_empty) { on_empty_ = std::move(on_empty); }
private:
// |AuthProvider|
void GetPersistentCredential(
fidl::InterfaceHandle<fuchsia::auth::AuthenticationUIContext> auth_ui_context,
fidl::StringPtr user_profile_id, GetPersistentCredentialCallback callback) override;
// |AuthProvider|
void GetAppAccessToken(std::string credential, fidl::StringPtr app_client_id,
const std::vector<std::string> app_scopes,
GetAppAccessTokenCallback callback) override;
// |AuthProvider|
void GetAppIdToken(std::string credential, fidl::StringPtr audience,
GetAppIdTokenCallback callback) override;
// |AuthProvider|
void GetAppFirebaseToken(std::string id_token, std::string firebase_api_key,
GetAppFirebaseTokenCallback callback) override;
// |AuthProvider|
void RevokeAppOrPersistentCredential(std::string credential,
RevokeAppOrPersistentCredentialCallback callback) override;
// |AuthProvider|
void GetPersistentCredentialFromAttestationJWT(
fidl::InterfaceHandle<AttestationSigner> attestation_signer, AttestationJWTParams jwt_params,
fidl::InterfaceHandle<AuthenticationUIContext> auth_ui_context,
fidl::StringPtr user_profile_id,
GetPersistentCredentialFromAttestationJWTCallback callback) override;
// |AuthProvider|
void GetAppAccessTokenFromAssertionJWT(
fidl::InterfaceHandle<AttestationSigner> attestation_signer, AssertionJWTParams jwt_params,
std::string credential, std::vector<std::string> scopes,
GetAppAccessTokenFromAssertionJWTCallback callback) override;
// |fuchsia::web::NavigationEventListener|
void OnNavigationStateChanged(NavigationState change,
OnNavigationStateChangedCallback callback) override;
// |fuchsia::auth::testing::LegacyAuthCredentialInjector|
// This is a short-term solution to enable end-to-end testing. It should not
// be carried over during any refactoring efforts.
void InjectPersistentCredential(fuchsia::auth::UserProfileInfoPtr user_profile_info,
std::string credential) override;
// Returns the URL to be used for the authentication call, respecting any
// settings that influence the URL.
std::string GetAuthorizeUrl(fidl::StringPtr user_profile_id);
// Calls the OAuth auth endpoint to exchange the supplied |auth_code| for a
// long term credential, and then calls |GetUserProfile| with that credential.
// If any errors are encountered a failure status is returned on the pending
// |get_credential_callback_|.
void ExchangeAuthCode(std::string auth_code);
// Calls the people endpoint to gather profile information using the supplied
// |access_token| and responds to the pending |get_credential_callback_|.
void GetUserProfile(fidl::StringPtr credential, fidl::StringPtr access_token);
// Launches and connects to a Chromium frame, binding |this| as a
// |NavigationEventListener| to process any changes in the URL, and returning
// a |fuchsia::ui::views::ViewHolderToken| token for the view's ViewHolder.
fuchsia::ui::views::ViewHolderToken SetupChromium();
// Calls the GetPersistentCredential callback if one is available, or logs
// and returns immediately otherwise. This enables interactive signin or
// InjectPersistentCredential to terminate gracefully even after the other
// has sent a response to the pending callback.
void SafelyCallbackGetPersistentCredential(fuchsia::auth::AuthProviderStatus auth_provider_status,
fidl::StringPtr credential,
fuchsia::auth::UserProfileInfoPtr user_profile_info);
// Exposes a |fuchsia::auth::testing::LegacyAuthCredentialInjector| handle on
// the output debug directory.
void ExposeCredentialInjectorInterface();
// Removes the |fuchsia::auth::testing::LegacyAuthCredentialInjector| handle
// on the output debug directory.
void RemoveCredentialInjectorInterface();
// Safely releases any resources associated with an open Webkit or Chromium
// instance, including the associated view.
void ReleaseResources();
void Request(fit::function<::fuchsia::net::oldhttp::URLRequest()> request_factory,
fit::function<void(::fuchsia::net::oldhttp::URLResponse response)> callback);
async_dispatcher_t* const main_dispatcher_;
sys::ComponentContext* context_;
network_wrapper::NetworkWrapper* const network_wrapper_;
const Settings settings_;
fuchsia::sys::ComponentControllerPtr web_view_controller_;
fuchsia::auth::AuthenticationUIContextPtr auth_ui_context_;
fuchsia::web::ContextPtr web_context_;
fuchsia::web::FramePtr web_frame_;
GetPersistentCredentialCallback get_persistent_credential_callback_;
fidl::BindingSet<fuchsia::web::NavigationEventListener> navigation_event_listener_bindings_;
fidl::BindingSet<fuchsia::auth::testing::LegacyAuthCredentialInjector> injector_bindings_;
fidl::Binding<fuchsia::auth::AuthProvider> binding_;
callback::CancellableContainer requests_;
fit::closure on_empty_;
FXL_DISALLOW_COPY_AND_ASSIGN(GoogleAuthProviderImpl);
};
} // namespace google_auth_provider
#endif // SRC_IDENTITY_BIN_GOOGLE_AUTH_PROVIDER_GOOGLE_AUTH_PROVIDER_IMPL_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c28b968fa13e288f0b7b1927f0c78ff376b5853e | 73efacb05ff55d336bf804d3a9bff8460cb9d5f9 | /tools/codegen/Parser/Cursor.cpp | 207035b08f13229310771321beb47e3f903ecc18 | [
"MIT"
] | permissive | rusalexd/sc-machine | 92a9f82b0bb45039ebe6f1f72efdbbf4b254379f | d92afee12fd22a7d2c5cb0c3014a280f7de5b42f | refs/heads/master | 2021-07-04T01:21:30.519941 | 2017-09-25T12:32:25 | 2017-09-25T12:32:25 | 104,747,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | cpp | #include "Precompiled.hpp"
#include "Cursor.hpp"
#include "MetaUtils.hpp"
Cursor::Cursor(const CXCursor &handle)
: m_handle(handle)
{
CXSourceLocation loc = clang_getCursorLocation(m_handle);
CXFile file;
unsigned int line, column, offset;
clang_getSpellingLocation(loc, &file, &line, &column, &offset);
if (file)
m_fileName = clang_getCString(clang_getFileName(file));
m_line = line;
}
CXCursorKind Cursor::GetKind(void) const
{
return m_handle.kind;
}
Cursor Cursor::GetLexicalParent(void) const
{
return clang_getCursorLexicalParent(m_handle);
}
std::string Cursor::GetSpelling(void) const
{
std::string spelling;
utils::ToString(clang_getCursorSpelling(m_handle), spelling);
return spelling;
}
std::string Cursor::GetDisplayName(void) const
{
std::string displayName;
utils::ToString(clang_getCursorDisplayName(m_handle), displayName);
return displayName;
}
std::string const & Cursor::GetFileName() const
{
return m_fileName;
}
size_t Cursor::GetLineNumber() const
{
return m_line;
}
bool Cursor::IsDefinition(void) const
{
return clang_isCursorDefinition(m_handle) ? true : false;
}
bool Cursor::IsStatic(void) const
{
return clang_CXXMethod_isStatic(m_handle) ? true : false;
}
CX_CXXAccessSpecifier Cursor::GetAccessModifier(void) const
{
return clang_getCXXAccessSpecifier(m_handle);
}
CursorType Cursor::GetType(void) const
{
return clang_getCursorType(m_handle);
}
CursorType Cursor::GetReturnType(void) const
{
return clang_getCursorResultType(m_handle);
}
CursorType Cursor::GetTypedefType(void) const
{
return clang_getTypedefDeclUnderlyingType(m_handle);
}
Cursor::List Cursor::GetChildren(void) const
{
List children;
auto visitor = [](CXCursor cursor, CXCursor parent, CXClientData data)
{
auto container = static_cast<List *>(data);
container->emplace_back(cursor);
if (cursor.kind == CXCursor_LastPreprocessing)
return CXChildVisit_Break;
return CXChildVisit_Continue;
};
clang_visitChildren(m_handle, visitor, &children);
return children;
}
void Cursor::VisitChildren(Visitor visitor, void *data)
{
clang_visitChildren(m_handle, visitor, data);
}
| [
"rusale"
] | rusale |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.