blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
629a922a49d52155bb810877f9efae21b3a1411f
c9f776512224bea54ea954daabce3684cf2993f0
/dataStructure/顺序栈.cpp
da2d5226b5b1a39f077987b3055d4cbb91af1f4d
[ "MIT" ]
permissive
mooleetzi/lab
d1ff5434981eb934de75d699acefb3b9b1a2c4a7
57df24f6e4f439eb4fad3f2217d3b8fd6f609a6b
refs/heads/master
2020-06-09T12:34:05.968034
2020-01-07T01:58:47
2020-01-07T01:58:47
193,438,979
2
0
null
null
null
null
UTF-8
C++
false
false
2,772
cpp
/* *********************************************** Author :Mool Created Time :2018年10月04日 星期四 10时52分43秒 File Name :201713160220-李常亮-ex5.cpp ************************************************ */ #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <string> #include <cmath> #include <cstdlib> #include <vector> #include <queue> #include <set> #include <map> using namespace std; struct Stu{ char *num; char *name; int score; Stu(){ num=new char[8]; name=new char[80]; score=-1; } }; struct Stack{ Stu *base; int top; int size; int maxSize; }; int initStack(Stack &s){ s.base=new Stu[110]; s.top=0; s.size=0; s.maxSize=110; return 1; } int empty(Stack &s){ if (s.size<0) return 1; return 0; } void push(Stack &s,Stu now){ for (int i=s.size;i>0;i--) s.base[i]=s.base[i-1]; s.base[0]=now; s.size++; } int pop(Stack &s){ for (int i=1;i<s.size;i++) s.base[i-1]=s.base[i]; s.size--; if (s.size<0) return 0; return 1; } Stu* top(Stack &s){ if (empty(s)) return NULL; return s.base; } int destroyStack(Stack &s){ for (int i=0;i<s.size;i++){ delete[] s.base[i].num; delete[] s.base[i].name; } return 1; } void note(){ cout<<"--------------------------------------\n"; cout<<"1.init this stack.\n"; cout<<"2.push a data into this stack.\n"; cout<<"3.pop the top data from this stack.\n"; cout<<"4.get the top data from this stack.\n"; cout<<"5.destroy this stack.\n"; cout<<"0.quit.\n"; cout<<"--------------------------------------\n"; cout<<"please choose:\n"; } int main() { //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); int c; note(); Stack s; while(cin>>c&&c){ switch(c){ case 1:{ if (initStack(s)) cout<<"Initialization success.\n"; else cout<<"Initialization failed.\n"; break; } case 2:{ Stu now; cout<<"please input the information.\n"; cout<<"Student number:\n"; cin>>now.num; cout<<"Student name:\n"; cin>>now.name; cout<<"Student score:\n"; cin>>now.score; push(s,now); break; } case 3:{ if (pop(s)) cout<<"Stackpoping success.\n"; else cout<<"runtime error. For this Stack is empty.\n"; break; } case 4:{ Stu *now=top(s); if (now==NULL){ cout<<"runtime error.For this Stack is empty.\n"; break; } cout<<"The top element on the stack is:\n"; cout<<"Student number: "; cout<<now->num<<"\n"; cout<<"Student name: "; cout<<now->name<<"\n"; cout<<"Student score: "<<now->score<<"\n"; break; } case 5:{ if (destroyStack(s)) cout<<"destroy sucess.\n"; else cout<<"destroy failed.\n"; break; } } note(); } cout<<"Bye.\n"; return 0; }
[ "13208308200@163.com" ]
13208308200@163.com
f6bd12853e6aca081c31cc10ff332d09b8c4ad2b
3a7531fb74425caf23621681bf5288caf7bbb526
/BigInteger Class in C++/BigInt.hpp
9a5985b6fa9bc97c46381a0585db4a5f8c4aa43d
[]
no_license
tusharmverma/BigIntegerClass
315b61bac079dd0ce9ca7f23394fa5a91805a55f
3ca19885dd174481d5b60f1bb76c9e174aa7640d
refs/heads/master
2020-03-28T20:08:44.267324
2017-09-18T15:08:25
2017-09-18T15:08:25
149,043,930
0
0
null
null
null
null
UTF-8
C++
false
false
1,490
hpp
#include <iostream> #pragma once struct slot; class BigInt { static const int digitsPerSlot = 8; static const int valuePerSlot = 100000000; public: BigInt(); BigInt(const BigInt & that); BigInt(int value); BigInt(const char string[]); ~BigInt(); bool isPositive; BigInt & operator=(const BigInt & that); BigInt & operator+=(const BigInt & that); BigInt operator+(const BigInt & that) const; BigInt & operator-=(const BigInt & that); BigInt operator-(const BigInt & that) const; BigInt & operator*=(const BigInt & that); BigInt operator*(const BigInt & that) const; bool operator==(const BigInt & that) const; bool operator!=(const BigInt & that) const; bool operator<(const BigInt & that) const; bool operator<=(const BigInt & that) const; bool operator>(const BigInt & that) const; bool operator>=(const BigInt & that) const; BigInt & operator++(); BigInt operator++(int); explicit operator bool() const; bool operator!() const; friend std::ostream & operator<<(std::ostream & os, const BigInt & obj); private: void copy(const BigInt & that); void constructPointers(); slot * start; slot * end; int numberOfSlots; void clear(); void put(int value); void push(int value); void add(const BigInt & that); void subtract(const BigInt & that); void removeLeadingZeros(); };
[ "tushar.m.verma@gmail.com" ]
tushar.m.verma@gmail.com
8c2ff92d8dedd8999a6f7eee0d1d4c1eb28e31a3
0c7e20a002108d636517b2f0cde6de9019fdf8c4
/Sources/Elastos/Frameworks/Droid/Base/Core/inc/elastos/droid/internal/telephony/CRIL.h
4df954521fb4b3a7b16a9d8ec63d8aaa65e13f45
[ "Apache-2.0" ]
permissive
kernal88/Elastos5
022774d8c42aea597e6f8ee14e80e8e31758f950
871044110de52fcccfbd6fd0d9c24feefeb6dea0
refs/heads/master
2021-01-12T15:23:52.242654
2016-10-24T08:20:15
2016-10-24T08:20:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
506
h
#ifndef __ELASTOS_DROID_INTERNAL_TELEPHONY_CRIL_H__ #define __ELASTOS_DROID_INTERNAL_TELEPHONY_CRIL_H__ #include "_Elastos_Droid_Internal_Telephony_CRIL.h" #include "elastos/droid/internal/telephony/RIL.h" namespace Elastos { namespace Droid { namespace Internal { namespace Telephony { CarClass(CRIL) , public RIL { public: CAR_OBJECT_DECL() }; } // namespace Telephony } // namespace Internal } // namespace Droid } // namespace Elastos #endif // __ELASTOS_DROID_INTERNAL_TELEPHONY_CRIL_H__
[ "zhang.leliang@kortide.com" ]
zhang.leliang@kortide.com
c030c1f7dd45e27ca6c38ea283b18b97139a3095
01bf80c163f5acc203ea11daff4d7e918386d82e
/125-ValidPalindrome.cpp
eb6299d02be3ce79fcf78b6904ff8290c81021a9
[]
no_license
DionysiosB/LeetCode
d284be5abcc2ee947c3c2d09ff1af1cce9a51eb6
6d95868518645b7bfcb6ba376427dd701b561b99
refs/heads/master
2020-05-31T07:09:04.080095
2018-05-30T01:41:13
2018-05-30T01:41:13
48,652,707
3
0
null
null
null
null
UTF-8
C++
false
false
362
cpp
class Solution { public: bool isPalindrome(std::string s) { std::string t; for(int p = 0; p < s.size(); p++){ if(!isalnum(s[p])){continue;} t += tolower(s[p]); } for(int p = 0; p < t.size() / 2; p++){ if(t[p] != t[t.size() - 1 - p]){return false;} } return true; } };
[ "barmpoutis@gmail.com" ]
barmpoutis@gmail.com
122a06ee835138a75b1f61e79cfe39adb9fcf284
30b515966efaf825dee4909b0f48ab1631fef9a2
/source/build/BuildSingleSphereLight.hpp
53f5594ef6fb437fe61fc0d1354010acb7b5ead6
[ "MIT" ]
permissive
akavasis/ray-tracing-from-the-ground-up
7757421fbd9d4a859cd245efc65dee88d23bf6ca
4ca02fca2cdd458767b4ab3df15b6cd20cb1f413
refs/heads/master
2023-03-16T15:38:27.014402
2019-08-09T17:16:15
2019-08-09T17:16:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
516
hpp
#pragma once void World::build(void){ vp.hres = 400; vp.vres = 400; vp.set_pixel_size(1); vp.set_gamma(1); vp.set_num_samples(1); background_color = black; tracer_ptr = new RayCast(this); Pinhole* pin = new Pinhole(Point3D(0, 0, 100), Point3D(0, 0, -100)); pin->set_distance(100); set_camera(pin); ambient_ptr = new Ambient; Sphere* sphere = new Sphere(Point3D(0, 0, 0), 50); Matte* matte = new Matte; sphere->set_material(matte); add_object(sphere); }
[ "hadryansalles00@gmail.com" ]
hadryansalles00@gmail.com
59817052bead5ea3ba5a07424b20b97586689a39
fbf1762846a7b779b38740eabeeb7805ba79289e
/app/libs/ogre/OgreMain/src/OgreMovablePlane.cpp
4d33d1854ae0981b7dc67e373a434dc2d088c0c7
[ "MIT" ]
permissive
litao1009/AndroidOgreTest
8b591202515cfcc22d741d1c35da3ae9bf4a7bf4
a339100e46631d45523c0a185a7e2ceaba89cc78
refs/heads/master
2020-06-14T18:04:32.390217
2019-04-17T07:03:52
2019-04-17T07:03:52
75,349,260
3
2
null
null
null
null
UTF-8
C++
false
false
5,021
cpp
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- */ #include "OgreStableHeaders.h" #include "OgreMovablePlane.h" #include "OgreRenderQueue.h" #include "OgreNode.h" namespace Ogre { String MovablePlane::msMovableType = "MovablePlane"; //----------------------------------------------------------------------- //----------------------------------------------------------------------- MovablePlane::MovablePlane( IdType id, ObjectMemoryManager *objectMemoryManager ) : Plane(), MovableObject(id, objectMemoryManager, RENDER_QUEUE_MAIN), mLastTranslate(Vector3::ZERO), mLastRotate(Quaternion::IDENTITY), mDirty(true) { } //----------------------------------------------------------------------- MovablePlane::MovablePlane (IdType id, ObjectMemoryManager *objectMemoryManager, const Plane& rhs) : Plane(rhs), MovableObject( id, objectMemoryManager, RENDER_QUEUE_MAIN ), mLastTranslate(Vector3::ZERO), mLastRotate(Quaternion::IDENTITY), mDirty(true) { } //----------------------------------------------------------------------- MovablePlane::MovablePlane (IdType id, ObjectMemoryManager *objectMemoryManager, const Vector3& rkNormal, Real fConstant) : Plane (rkNormal, fConstant), MovableObject( id, objectMemoryManager, RENDER_QUEUE_MAIN ), mLastTranslate(Vector3::ZERO), mLastRotate(Quaternion::IDENTITY), mDirty(true) { } //----------------------------------------------------------------------- MovablePlane::MovablePlane (IdType id, ObjectMemoryManager *objectMemoryManager, const Vector3& rkNormal, const Vector3& rkPoint) : Plane(rkNormal, rkPoint), MovableObject( id, objectMemoryManager, RENDER_QUEUE_MAIN ), mLastTranslate(Vector3::ZERO), mLastRotate(Quaternion::IDENTITY), mDirty(true) { } //----------------------------------------------------------------------- MovablePlane::MovablePlane (IdType id, ObjectMemoryManager *objectMemoryManager, const Vector3& rkPoint0, const Vector3& rkPoint1, const Vector3& rkPoint2) : Plane(rkPoint0, rkPoint1, rkPoint2), MovableObject( id, objectMemoryManager, RENDER_QUEUE_MAIN ), mLastTranslate(Vector3::ZERO), mLastRotate(Quaternion::IDENTITY), mDirty(true) { } //----------------------------------------------------------------------- const Plane& MovablePlane::_getDerivedPlane(void) const { if (mParentNode) { if (mDirty || !(mParentNode->_getDerivedOrientation() == mLastRotate && mParentNode->_getDerivedPosition() == mLastTranslate)) { mLastRotate = mParentNode->_getDerivedOrientation(); mLastTranslate = mParentNode->_getDerivedPosition(); // Rotate normal mDerivedPlane.normal = mLastRotate * normal; // d remains the same in rotation, since rotation happens first mDerivedPlane.d = d; // Add on the effect of the translation (project onto new normal) mDerivedPlane.d -= mDerivedPlane.normal.dotProduct(mLastTranslate); mDirty = false; } } else { return *this; } return mDerivedPlane; } //----------------------------------------------------------------------- const String& MovablePlane::getMovableType(void) const { return msMovableType; } }
[ "lee@lee.com" ]
lee@lee.com
61a5251a604850c0dc1dd6325331afbf4d5a9f2e
c92268517f100d93d4931b73a6fc4eb0f58453c9
/Watchable.cpp
72f984ac47a1ced0bdc41365fd597456ef9e9a61
[]
no_license
avivdro/SPLFlix
45de55e936a8a48c930972e585893fbae1093368
fe404aabcb1d39127e3c2921c1c4975d068faf6a
refs/heads/main
2023-05-03T04:49:13.104653
2021-06-01T16:32:32
2021-06-01T16:32:32
369,117,215
1
0
null
null
null
null
UTF-8
C++
false
false
3,498
cpp
// // Created by aviv on 20/05/2021. // #include <iostream> #include <iterator> #include <algorithm> #include "Watchable.h" #include "Session.h" using namespace std; //------------------------------------------------------------------- //WATCHABLE //constructor (main) Watchable::Watchable(long id, int length, const std::vector<std::string> &tags) : id(id), length(length), tags(tags) {} //GETTERS AND SETTERS long Watchable::getId() const { return this->id; } int Watchable::getLength() const { return length; } std::vector<std::string> *Watchable::getTags() { return &tags; } //personal - for toString of MOVIE and EPISODE std::string Watchable::getTagsString() const { const std::vector<std::string> vec = this->tags; std::string s="["; for (vector<string>::const_iterator it=vec.begin(); it!=vec.end()-1; it++) s = s + (*it) + ", "; s=s + vec[vec.size()-1] + "]"; return s; } bool Watchable::hasTag(string &tag){ if (std::find(tags.begin(), tags.end(), tag) != tags.end()) { return true; } return false; } //destructor - default Watchable::~Watchable() = default; //comparator == bool Watchable::operator==(const Watchable &other) const{ return id == other.id; } bool Watchable::operator<(const Watchable &other) const { cout << "this " << length << " other " << other.getLength() << " result " << (this->length < other.getLength()); return (this->length < other.getLength()); } //------------------------------------------------------------------- //MOVIE //ctor Movie::Movie(long id, const std::string &name, int length, const std::vector<std::string> &tags) : Watchable(id, length, tags), name(name) {} std::string Movie::toString() const { // <id>: <name> - <length> minutes - <tags> return to_string(getId()) + ": " + name + " - " + to_string(getLength()) + " minutes - " + getTagsString(); } Watchable *Movie::getNextWatchable(Session &) const { return nullptr; } std::string Movie::getName() { return name; } Watchable *Movie::clone(){ return new Movie(*this); } string Movie::toStringForHistory() const{ return name; } string Movie::getSeriesName() const{ //this function should NEVER be called!!!! return name; } //------------------------------------------------------------------- //EPISODE Episode::Episode(long id, const std::string &seriesName, int length, int season, int episode, const std::vector<std::string> &tags) : Watchable(id, length, tags), seriesName(seriesName), season(season), episode(episode){ nextEpisodeId=0; } std::string Episode::toString() const { //<id>: <seriesName> S<season>E<episode> - <length> minutes - <tags> return to_string(getId()) + ": " + getSeriesName() + " | S" + to_string(season) + "E" + to_string(episode) + " " + to_string(getLength()) + " minutes - " + getTagsString(); } Watchable *Episode::getNextWatchable(Session &) const { return nullptr; } std::string Episode::getSeriesName() const { return seriesName; } int Episode::getSeason() { return season; } int Episode::getEpisode() { return episode; } long Episode::getNextEpisodeId() { return nextEpisodeId; } void Episode::setNextEpisodeId(int whatToSet) { nextEpisodeId = whatToSet; } Watchable *Episode::clone(){ return new Episode(*this); } string Episode::toStringForHistory() const{ return getSeriesName() + " S" + to_string(season) + "E" + to_string(episode); }
[ "avivdro@post.bgu.ac.il" ]
avivdro@post.bgu.ac.il
d8500efbfcd8917550af3d24a7f5a32cacf72599
23b4708ff4c4cd1c1c139e54791cfa852eca7265
/Triangle.cpp
910d0e6e694cc512b33c71b7139f4125a9bd51a5
[]
no_license
chrzhang/raytracer
3623f42a716e0bd02219e7b2501202bb6ff69a62
2dcf349e3a543f64570a2280b86df193d0e69a11
refs/heads/master
2021-01-12T20:56:07.754092
2016-04-11T02:29:13
2016-04-11T02:29:13
44,039,519
0
0
null
null
null
null
UTF-8
C++
false
false
3,029
cpp
#include "Triangle.hpp" #include <algorithm> Triangle::Triangle(const Vector3D & epA, const Vector3D & epB, const Vector3D & epC, Color color) : epA(epA), epB(epB), epC(epC), color(color) { normal = (epC - epA).crossProduct(epB - epA).normalize(); distance = normal.dotProduct(epA); setBBox(std::min({epA.getX(), epB.getX(), epC.getX()}), std::min({epA.getY(), epB.getY(), epC.getY()}), std::min({epA.getZ(), epB.getZ(), epC.getZ()}), std::max({epA.getX(), epB.getX(), epC.getX()}), std::max({epA.getY(), epB.getY(), epC.getY()}), std::max({epA.getZ(), epB.getZ(), epC.getZ()})); } Vector3D Triangle::getNormal() const { return normal; } Vector3D Triangle::getCentroid() const { return Vector3D((epA.getX() + epB.getX() + epC.getX()) / 3, (epA.getY() + epB.getY() + epC.getY()) / 3, (epA.getZ() + epB.getZ() + epC.getZ()) / 3); } Color Triangle::getColor() const { return color; } double Triangle::getDistance() const { return distance; } Vector3D Triangle::getNormalAt(const Vector3D &) const { return normal.invert(); } void Triangle::setBBox(double x_min, double y_min, double z_min, double x_max, double y_max, double z_max) { Object::setBBox(x_min, y_min, z_min, x_max, y_max, z_max); } BoundingBox Triangle::getBBox() const { return Object::getBBox(); } // Return distance from ray origin to intersection // See comments for variables and the equations in Plane.cpp's findIntersection double Triangle::findIntersection(const Ray3D & ray) const { // See if the ray intersects the bounding box // *** With bounding box if (!Object::intersectsBBox(ray)) { return -1; } // First check if the ray intersects with the plane (use same calculations) Vector3D rayDirection = ray.getDirection(); Vector3D rayOrigin = ray.getOrigin(); double ldotn = rayDirection.dotProduct(normal); if (0 == ldotn) { // Ray is || to triangle return -1; } else { Vector3D p0 = normal * distance; double distanceToPlane = (p0 - rayOrigin).dotProduct(normal) / ldotn; // Then see if the point is inside the triangle (3 conditions) // Q is the point of intersection Vector3D Q = (rayDirection * distanceToPlane) + rayOrigin; Vector3D sideCA = epC - epA; Vector3D segQA = Q - epA; // 1. (CA x QA) * n >= 0 if (sideCA.crossProduct(segQA).dotProduct(normal) < 0) { return -1; } Vector3D sideBC = epB - epC; Vector3D segQC = Q - epC; // 2. (BC x QC) * n >= 0 if (sideBC.crossProduct(segQC).dotProduct(normal) < 0) { return -1; } Vector3D sideAB = epA - epB; Vector3D segQB = Q - epB; // 3. (AB x QB) * n >= 0 if (sideAB.crossProduct(segQB).dotProduct(normal) < 0) { return -1; } return distanceToPlane; } }
[ "christopherzhang3@gmail.com" ]
christopherzhang3@gmail.com
fe451312c10437bcf1123b6aaf7fc7dc34270d69
683a7b4f6df1382d67fd88daf7a711f96f3a4388
/Source/TelegramAntiRevoke/DllMain.cpp
4baca9158e0cbffb46f7586a1d6d4ae62c0d13b1
[ "BSD-3-Clause", "MIT" ]
permissive
wenzijishu/Telegram-Anti-Revoke
ec69d2c6f6b32b7ece92f0512d7200a65f86e163
dab2983e5b147e5390cd38f6b2d14f74a750a9e4
refs/heads/master
2020-12-21T07:17:19.098918
2020-01-25T08:06:44
2020-01-25T08:06:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,038
cpp
/* 该文件内容由 AheadLib 自动生成,仅对其做了少量修改。 用于将原导出函数转发回被劫持的系统DLL。 The contents of this file are automatically generated by AheadLib and have only been slightly modified. Used to forward the original exported function back to the hijacked system DLL. */ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 头文件 #include "Header.h" #include "Global.h" //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // implemented in RealMain.cpp BOOL WINAPI RealDllMain(HINSTANCE hModule, DWORD dwReason, LPVOID pReserved); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 #pragma comment(linker, "/EXPORT:AvCreateTaskIndex=_AheadLib_AvCreateTaskIndex,@1") #pragma comment(linker, "/EXPORT:AvQuerySystemResponsiveness=_AheadLib_AvQuerySystemResponsiveness,@2") #pragma comment(linker, "/EXPORT:AvQueryTaskIndexValue=_AheadLib_AvQueryTaskIndexValue,@3") #pragma comment(linker, "/EXPORT:AvRevertMmThreadCharacteristics=_AheadLib_AvRevertMmThreadCharacteristics,@4") #pragma comment(linker, "/EXPORT:AvRtCreateThreadOrderingGroup=_AheadLib_AvRtCreateThreadOrderingGroup,@5") #pragma comment(linker, "/EXPORT:AvRtCreateThreadOrderingGroupExA=_AheadLib_AvRtCreateThreadOrderingGroupExA,@6") #pragma comment(linker, "/EXPORT:AvRtCreateThreadOrderingGroupExW=_AheadLib_AvRtCreateThreadOrderingGroupExW,@7") #pragma comment(linker, "/EXPORT:AvRtDeleteThreadOrderingGroup=_AheadLib_AvRtDeleteThreadOrderingGroup,@8") #pragma comment(linker, "/EXPORT:AvRtJoinThreadOrderingGroup=_AheadLib_AvRtJoinThreadOrderingGroup,@9") #pragma comment(linker, "/EXPORT:AvRtLeaveThreadOrderingGroup=_AheadLib_AvRtLeaveThreadOrderingGroup,@10") #pragma comment(linker, "/EXPORT:AvRtWaitOnThreadOrderingGroup=_AheadLib_AvRtWaitOnThreadOrderingGroup,@11") #pragma comment(linker, "/EXPORT:AvSetMmMaxThreadCharacteristicsA=_AheadLib_AvSetMmMaxThreadCharacteristicsA,@12") #pragma comment(linker, "/EXPORT:AvSetMmMaxThreadCharacteristicsW=_AheadLib_AvSetMmMaxThreadCharacteristicsW,@13") #pragma comment(linker, "/EXPORT:AvSetMmThreadCharacteristicsA=_AheadLib_AvSetMmThreadCharacteristicsA,@14") #pragma comment(linker, "/EXPORT:AvSetMmThreadCharacteristicsW=_AheadLib_AvSetMmThreadCharacteristicsW,@15") #pragma comment(linker, "/EXPORT:AvSetMmThreadPriority=_AheadLib_AvSetMmThreadPriority,@16") #pragma comment(linker, "/EXPORT:AvSetMultimediaMode=_AheadLib_AvSetMultimediaMode,@17") #pragma comment(linker, "/EXPORT:AvTaskIndexYield=_AheadLib_AvTaskIndexYield,@18") #pragma comment(linker, "/EXPORT:AvTaskIndexYieldCancel=_AheadLib_AvTaskIndexYieldCancel,@19") #pragma comment(linker, "/EXPORT:AvThreadOpenTaskIndex=_AheadLib_AvThreadOpenTaskIndex,@20") //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 原函数地址指针 PVOID pfnAvCreateTaskIndex = NULL; PVOID pfnAvQuerySystemResponsiveness = NULL; PVOID pfnAvQueryTaskIndexValue = NULL; PVOID pfnAvRevertMmThreadCharacteristics = NULL; PVOID pfnAvRtCreateThreadOrderingGroup = NULL; PVOID pfnAvRtCreateThreadOrderingGroupExA = NULL; PVOID pfnAvRtCreateThreadOrderingGroupExW = NULL; PVOID pfnAvRtDeleteThreadOrderingGroup = NULL; PVOID pfnAvRtJoinThreadOrderingGroup = NULL; PVOID pfnAvRtLeaveThreadOrderingGroup = NULL; PVOID pfnAvRtWaitOnThreadOrderingGroup = NULL; PVOID pfnAvSetMmMaxThreadCharacteristicsA = NULL; PVOID pfnAvSetMmMaxThreadCharacteristicsW = NULL; PVOID pfnAvSetMmThreadCharacteristicsA = NULL; PVOID pfnAvSetMmThreadCharacteristicsW = NULL; PVOID pfnAvSetMmThreadPriority = NULL; PVOID pfnAvSetMultimediaMode = NULL; PVOID pfnAvTaskIndexYield = NULL; PVOID pfnAvTaskIndexYieldCancel = NULL; PVOID pfnAvThreadOpenTaskIndex = NULL; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 宏定义 #define EXTERNC extern "C" #define NAKED __declspec(naked) #define EXPORT __declspec(dllexport) #define ALCPP EXPORT NAKED #define ALSTD EXTERNC EXPORT NAKED void __stdcall #define ALCFAST EXTERNC EXPORT NAKED void __fastcall #define ALCDECL EXTERNC NAKED void __cdecl //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // AheadLib 命名空间 namespace AheadLib { HMODULE hModule = NULL; FARPROC GetAddress(const CHAR *ProcName) { FARPROC Address = GetProcAddress(hModule, ProcName); if (Address == NULL) { g::Logger.TraceError("Could not find [" + string(ProcName) + "] function."); FORCE_EXIT(); return NULL; } return Address; } void InitializeAddresses() { #define IF_NULL_SET(v, c) { if (v == NULL) { v = c; } } IF_NULL_SET(pfnAvCreateTaskIndex, GetAddress("AvCreateTaskIndex")); IF_NULL_SET(pfnAvQuerySystemResponsiveness, GetAddress("AvQuerySystemResponsiveness")); IF_NULL_SET(pfnAvQueryTaskIndexValue, GetAddress("AvQueryTaskIndexValue")); IF_NULL_SET(pfnAvRevertMmThreadCharacteristics, GetAddress("AvRevertMmThreadCharacteristics")); IF_NULL_SET(pfnAvRtCreateThreadOrderingGroup, GetAddress("AvRtCreateThreadOrderingGroup")); IF_NULL_SET(pfnAvRtCreateThreadOrderingGroupExA, GetAddress("AvRtCreateThreadOrderingGroupExA")); IF_NULL_SET(pfnAvRtCreateThreadOrderingGroupExW, GetAddress("AvRtCreateThreadOrderingGroupExW")); IF_NULL_SET(pfnAvRtDeleteThreadOrderingGroup, GetAddress("AvRtDeleteThreadOrderingGroup")); IF_NULL_SET(pfnAvRtJoinThreadOrderingGroup, GetAddress("AvRtJoinThreadOrderingGroup")); IF_NULL_SET(pfnAvRtLeaveThreadOrderingGroup, GetAddress("AvRtLeaveThreadOrderingGroup")); IF_NULL_SET(pfnAvRtWaitOnThreadOrderingGroup, GetAddress("AvRtWaitOnThreadOrderingGroup")); IF_NULL_SET(pfnAvSetMmMaxThreadCharacteristicsA, GetAddress("AvSetMmMaxThreadCharacteristicsA")); IF_NULL_SET(pfnAvSetMmMaxThreadCharacteristicsW, GetAddress("AvSetMmMaxThreadCharacteristicsW")); IF_NULL_SET(pfnAvSetMmThreadCharacteristicsA, GetAddress("AvSetMmThreadCharacteristicsA")); IF_NULL_SET(pfnAvSetMmThreadCharacteristicsW, GetAddress("AvSetMmThreadCharacteristicsW")); IF_NULL_SET(pfnAvSetMmThreadPriority, GetAddress("AvSetMmThreadPriority")); IF_NULL_SET(pfnAvSetMultimediaMode, GetAddress("AvSetMultimediaMode")); IF_NULL_SET(pfnAvTaskIndexYield, GetAddress("AvTaskIndexYield")); IF_NULL_SET(pfnAvTaskIndexYieldCancel, GetAddress("AvTaskIndexYieldCancel")); IF_NULL_SET(pfnAvThreadOpenTaskIndex, GetAddress("AvThreadOpenTaskIndex")); #undef IF_NULL_SET } // 加载原始模块 void Load() { if (hModule == NULL) { CHAR SystemPath[MAX_PATH]; GetSystemDirectoryA(SystemPath, MAX_PATH); hModule = LoadLibraryA((string(SystemPath) + "\\avrt.dll").c_str()); if (hModule == NULL) { g::Logger.TraceError("Unable to load the original module."); FORCE_EXIT(); return; } } InitializeAddresses(); } // 释放原始模块 void Free() { if (hModule) { FreeLibrary(hModule); } } } using namespace AheadLib; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 入口函数 BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, PVOID pvReserved) { if (dwReason == DLL_PROCESS_ATTACH) { return RealDllMain(hModule, dwReason, pvReserved); } else if (dwReason == DLL_PROCESS_DETACH) { Free(); } return TRUE; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvCreateTaskIndex(void) { __asm { pushad call Load popad jmp pfnAvCreateTaskIndex } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvQuerySystemResponsiveness(void) { __asm { pushad call Load popad jmp pfnAvQuerySystemResponsiveness } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvQueryTaskIndexValue(void) { __asm { pushad call Load popad jmp pfnAvQueryTaskIndexValue } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRevertMmThreadCharacteristics(void) { __asm { pushad call Load popad jmp pfnAvRevertMmThreadCharacteristics } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtCreateThreadOrderingGroup(void) { __asm { pushad call Load popad jmp pfnAvRtCreateThreadOrderingGroup } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtCreateThreadOrderingGroupExA(void) { __asm { pushad call Load popad jmp pfnAvRtCreateThreadOrderingGroupExA } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtCreateThreadOrderingGroupExW(void) { __asm { pushad call Load popad jmp pfnAvRtCreateThreadOrderingGroupExW } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtDeleteThreadOrderingGroup(void) { __asm { pushad call Load popad jmp pfnAvRtDeleteThreadOrderingGroup } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtJoinThreadOrderingGroup(void) { __asm { pushad call Load popad jmp pfnAvRtJoinThreadOrderingGroup } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtLeaveThreadOrderingGroup(void) { __asm { pushad call Load popad jmp pfnAvRtLeaveThreadOrderingGroup } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvRtWaitOnThreadOrderingGroup(void) { __asm { pushad call Load popad jmp pfnAvRtWaitOnThreadOrderingGroup } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMmMaxThreadCharacteristicsA(void) { __asm { pushad call Load popad jmp pfnAvSetMmMaxThreadCharacteristicsA } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMmMaxThreadCharacteristicsW(void) { __asm { pushad call Load popad jmp pfnAvSetMmMaxThreadCharacteristicsW } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMmThreadCharacteristicsA(void) { __asm { pushad call Load popad jmp pfnAvSetMmThreadCharacteristicsA } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMmThreadCharacteristicsW(void) { __asm { pushad call Load popad jmp pfnAvSetMmThreadCharacteristicsW } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMmThreadPriority(void) { __asm { pushad call Load popad jmp pfnAvSetMmThreadPriority } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvSetMultimediaMode(void) { __asm { pushad call Load popad jmp pfnAvSetMultimediaMode } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvTaskIndexYield(void) { __asm { pushad call Load popad jmp pfnAvTaskIndexYield } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvTaskIndexYieldCancel(void) { __asm { pushad call Load popad jmp pfnAvTaskIndexYieldCancel } } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 导出函数 ALCDECL AheadLib_AvThreadOpenTaskIndex(void) { __asm { pushad call Load popad jmp pfnAvThreadOpenTaskIndex } } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[ "666xuebi@users.noreply.github.com" ]
666xuebi@users.noreply.github.com
b1f13932336db8cdbcf5c1d0f7307836293830d0
fb3c1e036f18193d6ffe59f443dad8323cb6e371
/src/flash/XXObjectContextMenu.cpp
e533db2564c20a4263a511b0ce927c7997ac5057
[]
no_license
playbar/nstest
a61aed443af816fdc6e7beab65e935824dcd07b2
d56141912bc2b0e22d1652aa7aff182e05142005
refs/heads/master
2021-06-03T21:56:17.779018
2016-08-01T03:17:39
2016-08-01T03:17:39
64,627,195
3
1
null
null
null
null
UTF-8
C++
false
false
532
cpp
// XXObjectContextMenu.cpp: implementation of the XXObjectContextMenu class. // ////////////////////////////////////////////////////////////////////// #include "StdAfxflash.h" #include "XXObjectContextMenu.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// XXObjectContextMenu::XXObjectContextMenu(ScriptPlayer*pRoot):XXObject(pRoot) { } XXObjectContextMenu::~XXObjectContextMenu() { }
[ "hgl868@126.com" ]
hgl868@126.com
fdb5a7206c1f4e5c6e98982f162c84f8f1123fd1
d85b1f3ce9a3c24ba158ca4a51ea902d152ef7b9
/testcases/CWE789_Uncontrolled_Mem_Alloc/s01/CWE789_Uncontrolled_Mem_Alloc__malloc_char_connect_socket_62a.cpp
00230cd8579d01ff7aa3a2e3a3e7e2f54ac1e32b
[]
no_license
arichardson/juliet-test-suite-c
cb71a729716c6aa8f4b987752272b66b1916fdaa
e2e8cf80cd7d52f824e9a938bbb3aa658d23d6c9
refs/heads/master
2022-12-10T12:05:51.179384
2022-11-17T15:41:30
2022-12-01T15:25:16
179,281,349
34
34
null
2022-12-01T15:25:18
2019-04-03T12:03:21
null
UTF-8
C++
false
false
4,855
cpp
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_char_connect_socket_62a.cpp Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml Template File: sources-sinks-62a.tmpl.cpp */ /* * @description * CWE: 789 Uncontrolled Memory Allocation * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Small number greater than zero * Sinks: * GoodSink: Allocate memory with malloc() and check the size of the memory to be allocated * BadSink : Allocate memory with malloc(), but incorrectly check the size of the memory to be allocated * Flow Variant: 62 Data flow: data flows using a C++ reference from one function to another in different source files * * */ #include "std_testcase.h" #ifndef _WIN32 #include <wchar.h> #endif #define HELLO_STRING "hello" namespace CWE789_Uncontrolled_Mem_Alloc__malloc_char_connect_socket_62 { #ifndef OMITBAD /* bad function declaration */ void badSource(size_t &data); void bad() { size_t data; /* Initialize data */ data = 0; badSource(data); { char * myString; /* POTENTIAL FLAW: No MAXIMUM limitation for memory allocation, but ensure data is large enough * for the strcpy() function to not cause a buffer overflow */ /* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */ if (data > strlen(HELLO_STRING)) { myString = (char *)malloc(data*sizeof(char)); if (myString == NULL) {exit(-1);} /* Copy a small string into myString */ strcpy(myString, HELLO_STRING); printLine(myString); free(myString); } else { printLine("Input is less than the length of the source string"); } } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSource(size_t &data); static void goodG2B() { size_t data; /* Initialize data */ data = 0; goodG2BSource(data); { char * myString; /* POTENTIAL FLAW: No MAXIMUM limitation for memory allocation, but ensure data is large enough * for the strcpy() function to not cause a buffer overflow */ /* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */ if (data > strlen(HELLO_STRING)) { myString = (char *)malloc(data*sizeof(char)); if (myString == NULL) {exit(-1);} /* Copy a small string into myString */ strcpy(myString, HELLO_STRING); printLine(myString); free(myString); } else { printLine("Input is less than the length of the source string"); } } } /* goodB2G uses the BadSource with the GoodSink */ void goodB2GSource(size_t &data); static void goodB2G() { size_t data; /* Initialize data */ data = 0; goodB2GSource(data); { char * myString; /* FIX: Include a MAXIMUM limitation for memory allocation and a check to ensure data is large enough * for the strcpy() function to not cause a buffer overflow */ /* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */ if (data > strlen(HELLO_STRING) && data < 100) { myString = (char *)malloc(data*sizeof(char)); if (myString == NULL) {exit(-1);} /* Copy a small string into myString */ strcpy(myString, HELLO_STRING); printLine(myString); free(myString); } else { printLine("Input is less than the length of the source string or too large"); } } } void good() { goodG2B(); goodB2G(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace CWE789_Uncontrolled_Mem_Alloc__malloc_char_connect_socket_62; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
[ "Alexander.Richardson@cl.cam.ac.uk" ]
Alexander.Richardson@cl.cam.ac.uk
0802e100dc65be67efc80421e09f988349a70846
aa92351325895aca2b1826794f719640114c5d5f
/larrecodnn/CVN/func/AssignLabels.cxx
fb82a8b5dd788ade29734ce2f2fa1f9fe19894a3
[]
no_license
LArSoft/larrecodnn
5e51a10459f47075a57de3cf988351efe78be6d9
6210026191ea3e3494d5e466824a56bf7053c086
refs/heads/develop
2023-08-31T15:29:51.158362
2023-08-16T02:43:25
2023-08-16T02:43:25
244,723,816
0
24
null
2023-06-28T21:13:08
2020-03-03T19:30:14
C++
UTF-8
C++
false
false
12,938
cxx
#include "art/Framework/Services/Registry/ServiceHandle.h" #include "larrecodnn/CVN/func/AssignLabels.h" #include "larrecodnn/CVN/func/InteractionType.h" #include "larrecodnn/CVN/func/LArTrainingData.h" #include "larsim/MCCheater/BackTrackerService.h" #include "larsim/MCCheater/ParticleInventoryService.h" #include "nusimdata/SimulationBase/MCParticle.h" #include "nusimdata/SimulationBase/MCTruth.h" #include <iomanip> #include <iostream> #include <limits> namespace lcvn { /// Default constructor AssignLabels::AssignLabels() : nProton(0), nPion(0), nPizero(0), nNeutron(0), pdgCode(0), tauMode(0) {} /// Get Interaction_t from pdg, mode and iscc. /// Setting pdg and mode to zero triggers cosmic ray InteractionType AssignLabels::GetInteractionType(simb::MCNeutrino& truth) const { int pdg = truth.Nu().PdgCode(); bool iscc = truth.CCNC() == simb::kCC; int trueMode = truth.Mode(); if (iscc) { if (abs(pdg) == 14) { switch (trueMode) { case simb::kQE: return kNumuQE; break; case simb::kRes: return kNumuRes; break; case simb::kDIS: return kNumuDIS; break; default: return kNumuOther; } } else if (abs(pdg) == 12) { switch (trueMode) { case simb::kQE: return kNueQE; break; case simb::kRes: return kNueRes; break; case simb::kDIS: return kNueDIS; break; default: return kNueOther; } } else if (abs(pdg) == 16) { switch (trueMode) { case simb::kQE: return kNutauQE; break; case simb::kRes: return kNutauRes; break; case simb::kDIS: return kNutauDIS; break; default: return kNutauOther; } } } else if (trueMode == simb::kNuElectronElastic) { return kNuElectronElastic; } return kNC; } InteractionType AssignLabels::GetInteractionTypeFromSlice(int pdg, bool iscc, int trueMode) const { if (iscc) { if (abs(pdg) == 14) { switch (trueMode) { case simb::kQE: return kNumuQE; case simb::kRes: return kNumuRes; case simb::kDIS: return kNumuDIS; default: return kNumuOther; } } else if (abs(pdg) == 12) { switch (trueMode) { case simb::kQE: return kNueQE; case simb::kRes: return kNueRes; case simb::kDIS: return kNueDIS; default: return kNueOther; } } else if (abs(pdg) == 16) { switch (trueMode) { case simb::kQE: return kNutauQE; case simb::kRes: return kNutauRes; case simb::kDIS: return kNutauDIS; default: return kNutauOther; } } } else if (trueMode == simb::kNuElectronElastic) { return kNuElectronElastic; } return kNC; } // This function uses purely the information from the neutrino generator to // find all of the final-state particles that contribute to the event. void AssignLabels::GetTopology(const art::Ptr<simb::MCTruth> truth, unsigned int nTopologyHits = 0) { const simb::MCNeutrino& nu = truth->GetNeutrino(); // Get neutrino flavour if (nu.CCNC() == simb::kCC) { pdgCode = nu.Nu().PdgCode(); } else { pdgCode = 1; } // Get tau topology, if necessary tauMode = kNotNutau; if (abs(pdgCode) == 16) { tauMode = kNutauHad; for (int p = 0; p < truth->NParticles(); ++p) { if (truth->GetParticle(p).StatusCode() != 1) continue; int pdg = abs(truth->GetParticle(p).PdgCode()); int parent = truth->GetParticle(p).Mother(); while (parent > 0) parent = truth->GetParticle(parent).Mother(); if (parent == 0) { if (pdg == 11) { tauMode = kNutauE; break; } else if (pdg == 13) { tauMode = kNutauMu; break; } } } } // Now we need to do some final state particle counting. // unsigned int nParticle = truth.NParticles(); nProton = 0; nPion = 0; // Charged pions, that is nPizero = 0; nNeutron = 0; // We need an instance of the backtracker to find the number of simulated hits for each track art::ServiceHandle<cheat::BackTrackerService> backTrack; art::ServiceHandle<cheat::ParticleInventoryService> partService; // Loop over all of the particles for (auto const thisPart : partService->MCTruthToParticles_Ps(truth)) { const simb::MCParticle& part = *thisPart; int pdg = part.PdgCode(); // Make sure this is a final state particle if (part.StatusCode() != 1) { continue; } // Make sure this particle is a daughter of the neutrino if (part.Mother() != 0) { continue; } // GENIE has some fake particles for energy conservation - eg nuclear binding energy. Ignore these if (pdg > 2000000000) { continue; } // Also don't care about nuclear recoils if (pdg > 1000000) { continue; } // Find how many SimIDEs the track has unsigned int nSimIDE = backTrack->TrackIdToSimIDEs_Ps(part.TrackId()).size(); // Check if we have more than 100 MeV of kinetic energy // float ke = part.E() - part.Mass(); // if( ke < 0.0){ // continue; // } // Special case for pi-zeros since it is the decay photons and their pair produced electrons that deposit energy if (pdg == 111 || pdg == 2112) { // Decay photons for (int d = 0; d < part.NumberDaughters(); ++d) { nSimIDE += backTrack->TrackIdToSimIDEs_Ps(part.Daughter(d)).size(); } } // Do we pass the number of hits cut? if (nSimIDE < nTopologyHits) { continue; } switch (abs(pdg)) { case 111: ++nPizero; break; case 211: ++nPion; break; case 2112: ++nNeutron; break; case 2212: ++nProton; break; default: break; } } std::cout << "Particle counts: " << nProton << ", " << nPion << ", " << nPizero << ", " << nNeutron << std::endl; } void AssignLabels::PrintTopology() { std::cout << "== Topology Information ==" << std::endl; std::cout << " - Neutrino PDG code = " << pdgCode << std::endl; std::cout << " - Number of protons (3 means >2) = " << nProton << std::endl; std::cout << " - Number of charged pions (3 means >2) = " << nPion << std::endl; std::cout << " - Number of pizeros (3 means >2) = " << nPizero << std::endl; std::cout << " - Number of neutrons (3 means >2) = " << nNeutron << std::endl; std::cout << " - Topology type is " << GetTopologyType() << std::endl; std::cout << " - Alternate topology type is " << GetTopologyTypeAlt() << std::endl; } unsigned short AssignLabels::GetTopologyType() const { if (abs(pdgCode) == 12) return kTopNue; if (abs(pdgCode) == 14) return kTopNumu; if (abs(pdgCode) == 16) { if (tauMode == kNutauE) return kTopNutauE; if (tauMode == kNutauMu) return kTopNutauMu; if (tauMode == kNutauHad) return kTopNutauHad; } if (pdgCode == 1) return kTopNC; throw std::runtime_error("Topology type not recognised!"); } unsigned short AssignLabels::GetTopologyTypeAlt() const { if (abs(pdgCode) == 12) return kTopNueLike; if (abs(pdgCode) == 14) return kTopNumuLike; if (abs(pdgCode) == 16) { if (tauMode == kNutauE) return kTopNueLike; if (tauMode == kNutauMu) return kTopNumuLike; if (tauMode == kNutauHad) return kTopNutauLike; } if (pdgCode == 1) return kTopNCLike; throw std::runtime_error("Topology type not recognised!"); } // Get the beam interaction mode for ProtoDUNE specific code unsigned short AssignLabels::GetProtoDUNEBeamInteractionType( const simb::MCParticle& particle) const { unsigned short baseProcess = std::numeric_limits<unsigned short>::max(); // The first thing we can do is look at the process key std::string processName = particle.EndProcess(); if (GetProcessKey(processName) > -1) { // Base process gives us a value from 0 to 44 baseProcess = static_cast<unsigned int>(GetProcessKey(processName)); } std::cout << "What interaction type, then? " << processName << std::endl; // In the case that we have an inelastic interaction, maybe we can do more. art::ServiceHandle<cheat::ParticleInventoryService> piService; unsigned int nPi0 = 0; // Pi-zeros unsigned int nPiM = 0; // Pi-minuses unsigned int nPiP = 0; // Pi-pluses unsigned int nNeu = 0; // Neutrons unsigned int nPro = 0; // Protons unsigned int nOth = 0; // Everything else for (int i = 0; i < particle.NumberDaughters(); ++i) { const simb::MCParticle* daughter = piService->TrackIdToParticle_P(particle.Daughter(i)); switch (daughter->PdgCode()) { case 111: ++nPi0; break; case -211: ++nPiM; break; case 211: ++nPiP; break; case 2112: ++nNeu; break; case 2212: ++nPro; break; default: ++nOth; break; } } std::cout << "Base process = " << baseProcess << std::endl; std::cout << "Daughters = " << nPi0 << " pi0s, " << nPiM << " pi-s, " << nPiP << " pi+s, " << nNeu << " neutrons, " << nPro << " protons and " << nOth << " other particles." << std::endl; // If we have a pion with a pi0 in the final state we can flag it as charge exchange if (abs(particle.PdgCode()) == 211 && nPi0 == 1) { return 45; // First free value after those from the truth utility } else { return baseProcess; } } // Get process key. int lcvn::AssignLabels::GetProcessKey(std::string process) const { if (process.compare("primary") == 0) return 0; if (process.compare("hadElastic") == 0) return 1; if (process.compare("pi-Inelastic") == 0) return 2; if (process.compare("pi+Inelastic") == 0) return 3; if (process.compare("kaon-Inelastic") == 0) return 4; if (process.compare("kaon+Inelastic") == 0) return 5; if (process.compare("protonInelastic") == 0) return 6; if (process.compare("neutronInelastic") == 0) return 7; if (process.compare("kaon0SInelastic") == 0) return 8; if (process.compare("kaon0LInelastic") == 0) return 9; if (process.compare("lambdaInelastic") == 0) return 10; if (process.compare("omega-Inelastic") == 0) return 11; if (process.compare("sigma+Inelastic") == 0) return 12; if (process.compare("sigma-Inelastic") == 0) return 13; if (process.compare("sigma0Inelastic") == 0) return 14; if (process.compare("xi-Inelastic") == 0) return 15; if (process.compare("xi0Inelastic") == 0) return 16; if (process.compare("anti_protonInelastic") == 0) return 20; if (process.compare("anti_neutronInelastic") == 0) return 21; if (process.compare("anti_lambdaInelastic") == 0) return 22; if (process.compare("anti_omega-Inelastic") == 0) return 23; if (process.compare("anti_sigma+Inelastic") == 0) return 24; if (process.compare("anti_sigma-Inelastic") == 0) return 25; if (process.compare("anti_xi-Inelastic") == 0) return 26; if (process.compare("anti_xi0Inelastic") == 0) return 27; if (process.compare("Decay") == 0) return 30; if (process.compare("FastScintillation") == 0) return 31; if (process.compare("nKiller") == 0) return 32; // Remove unwanted neutrons: neutron kinetic energy threshold (default 0) or time limit for neutron track if (process.compare("nCapture") == 0) return 33; // Neutron capture if (process.compare("compt") == 0) return 40; // Compton Scattering if (process.compare("rayleigh") == 0) return 41; // Rayleigh Scattering if (process.compare("phot") == 0) return 42; // Photoelectric Effect if (process.compare("conv") == 0) return 43; // Pair production if (process.compare("CoupledTransportation") == 0) return 44; // return -1; } // Recursive function to get all hits from daughters of a given neutral particle unsigned int AssignLabels::GetNeutralDaughterHitsRecursive(const simb::MCParticle& particle) const { unsigned int nSimIDEs = 0; // The backtrack and particle inventory service will be useful here art::ServiceHandle<cheat::BackTrackerService> backTrack; art::ServiceHandle<cheat::ParticleInventoryService> partService; for (int d = 0; d < particle.NumberDaughters(); ++d) { const simb::MCParticle* daughter = partService->TrackIdToParticle_P(particle.Daughter(d)); unsigned int localSimIDEs = backTrack->TrackIdToSimIDEs_Ps(daughter->TrackId()).size(); std::cout << "Got " << localSimIDEs << " hits from " << daughter->PdgCode() << std::endl; if (localSimIDEs == 0) localSimIDEs = GetNeutralDaughterHitsRecursive(*daughter); nSimIDEs += localSimIDEs; } return nSimIDEs; } }
[ "felarof.nayak@gmail.com" ]
felarof.nayak@gmail.com
17a8f30908a834c9bcfd60d52f6d376a12192b6f
e65e6b345e98633cccc501ad0d6df9918b2aa25e
/Codeforces/Edu/84/E.cpp
73d1c481ea71ffc15b0eb2b202a1237e50878ad9
[]
no_license
wcysai/CodeLibrary
6eb99df0232066cf06a9267bdcc39dc07f5aab29
6517cef736f1799b77646fe04fb280c9503d7238
refs/heads/master
2023-08-10T08:31:58.057363
2023-07-29T11:56:38
2023-07-29T11:56:38
134,228,833
5
2
null
null
null
null
UTF-8
C++
false
false
626
cpp
#include<bits/stdc++.h> #define MAXN 200005 #define INF 1000000000 #define MOD 998244353 #define F first #define S second using namespace std; typedef long long ll; typedef pair<int,int> P; int t,n,k; int p10[MAXN]; void add(int &a,int b) {a+=b; if(a>=MOD) a-=MOD;} int main() { p10[0]=1; for(int i=1;i<=200000;i++) p10[i]=10LL*p10[i-1]%MOD; scanf("%d",&n); for(int i=1;i<=n;i++) { int ans; if(i==n) ans=10; else { ans=180LL*p10[n-i-1]%MOD; if(i!=n-1) add(ans,810LL*(n-i-1)*p10[n-i-2]%MOD); } printf("%d ",ans); } return 0; }
[ "wcysai@foxmail.com" ]
wcysai@foxmail.com
0b76ea746cf6600772d485aeed2a2bfb8c75d889
2cb6f1ab83c7ac77f20f5fde950d31d55fffa67b
/src/viewer/render/gl_imgui.h
05423899fb24278df424dd110873d2822d9a06bf
[]
no_license
takiyu/resp-robot
a4d025ce01909f017f8b1e2e156155a8c0888a58
6c20f812732709de17d0d79613d59473f3e64876
refs/heads/master
2021-05-07T01:17:18.521596
2017-11-10T10:29:32
2017-11-10T10:29:32
110,234,897
1
0
null
null
null
null
UTF-8
C++
false
false
319
h
#ifndef GL_IMGUI_160707 #define GL_IMGUI_160707 #include <string> #include "gl_window.h" const std::string IMGUI_FONT_PATH = "../3rdParty/fonts/Ricty-Regular.ttf"; void InitImGui(GLWindow& window); void NewImGuiFrame(); void RenderImGuiFrame(); void UpdateImGuiInput(GLWindow& window); void ExitImGui(); #endif
[ "takiyu1025.txu.development@gmail.com" ]
takiyu1025.txu.development@gmail.com
60f77d52af8f6bdce41dd70347921e18b80a1b78
706e1ad1a370356ed76e494c36240b5937072e42
/Baltic/Baltic 06-coins.cpp
65605a6303e2b8e04efa2554aef93d8a04ab5805
[]
no_license
dolphingarlic/CompetitiveProgramming
57e3573fa7c2f1172c4550f5897b9b19dc6ce6d2
736d1084561c1d4235d8d5e5ae203dce6e0089ac
refs/heads/master
2023-09-01T20:20:42.718973
2023-08-29T01:38:45
2023-08-29T01:38:45
202,596,269
37
5
null
2022-06-12T04:35:34
2019-08-15T19:00:57
C++
UTF-8
C++
false
false
783
cpp
/* Baltic 2006 Coin Collector - Greedily take coins from least valuable to most valuable - We take coin X iff (Sum of taken coins) + (X's value) < ((X + 1)'s value) - This works because if we take X instead of some less valuable coin(s), either the number of coins take decreases (bad), or the sum of the taken coins increases (which could lead to future coins being unavailable) - Complexity: O(N) */ #include <cstdio> int a[500001], b[500001]; int main() { int n, k, sm = 0, cnt = 0; scanf("%d %d", &n, &k); for (int i = 0; i < n; i++) scanf("%d %d", a + i, b + i); a[n] = k; for (int i = 0; i < n; i++) { if (b[i]) continue; if (sm + a[i] < a[i + 1]) sm += a[i], cnt++; } printf("%d\n%d\n", cnt, k - (sm ? sm : 1)); return 0; }
[ "dolphingarlic@gmail.com" ]
dolphingarlic@gmail.com
1931a3743a165e57291c70f9877f551e991799aa
04472161c9a981a8c691888183884f0616f0a0ad
/before/vector/vector/vector.h
0a9e6ad12f2ffa2681e413a0f38fd1091ff8a89a
[]
no_license
shalalalatuzki/coding-practice-everyday-
ae17ecd45e9ae04e93ad95ccd9fbe5020d29e606
0ecc03112ca144bfcd734dbc42bbc1c68a134af1
refs/heads/master
2020-03-28T22:15:15.139248
2019-05-12T15:19:26
2019-05-12T15:19:26
149,218,168
0
0
null
null
null
null
GB18030
C++
false
false
2,676
h
#pragma once typedef int Rank; #define DEFAULT_CAPACITY 3 template<typename T> class Vector {//向量模板类 protected: Rank _size; int _capacity; T* _elem;//规模、容量、数据区 void copyFrom(T const*A,Rank lo,Rank hi);//常量指针,指针指向的地址不变,所在地址的值可以变 void expand();//空间不足时扩展 void shrink();//装填因子过小时压缩 Rank bubble(Rank lo,Rank hi);//扫描交换 void bubbleSort(Rank lo,Rank hi);//起泡排序 Rank max(Rank lo,Rank hi);//选取最大元素 void selectionSort(Rank lo,Rank hi);//选取排序算法 void merge(Rank lo,Rank mi,Rank hi);//归并算法 void mergeSort(Rank lo,Rank hi);//归并排序算法 Rank partition(Rank lo,Rank hi);//轴点构造算法 void quickSort(Rank lo,Rank hi);//快速排序算法 void heapSort(Rank lo,Rank hi);//堆排序算法 public: //构造函数 Vector(int c=DEFAULT_CAPACITY,int s=0,T v=0)//容量为c、规模为s、所有元素初始为v { _elem = new T[_capacity = c]; for ( _size = 0; _size < s; _elem[_size++] = v ); } //s<=c //容量为c、规模为s、所有元素初始值为v Vector(T const* A, Rank n) { copyFrom(A, 0, n); }//数组整体复制 Vector(T const* A, Rank lo, Rank hi) { copyFrom(A, lo, hi); }//区间 Vector(Vector<T> const& V) { copyFrom(V._elem,0,V.size); }//向量整体复制 Vector(Vector<T> const& V, Rank lo, Rank hi) { copyFrom(V._elem, lo, hi); }//区间 //析构函数 ~Vector() { delete[] _elem; } //只读访问接口 Rank size()const { return _size; }//规模 bool empty ()const{ return !_size; }//判空 int disordered() const;//判断向量是否已排序 Rank find(T const &e)const { return find(e, 0, _size); }//无序向量整体查找 Rank find(T const &e,Rank lo,Rank hi)const;//无序向量区间查找 Rank search(T const& e)const//有序向量整体查找 {return((0 >= _size) ? -1 : search(e, 0, _size));} Rank search(T const& e, Rank lo, Rank hi)const; //可写接口访问 T& operator[](Rank r)const;//重载下标操作符,可以类似于数组的形式引用各元素 Vector<T> &operator=(Vector<T> const&);//重载赋值符,以便直接克隆向量 T remove(Rank r);//删除秩为r的元素 int remove(Rank lo, Rank hi); Rank insert(T const& e) { return insert(_size, e); } /*Rank bubble(Rank lo, Rank hi); Rank bubbleSort(Rank lo, Rank hi);*/ void sort(Rank lo,Rank hi); void sort() { sort(0, size); }//整体排序 void unsort() { unsort(0, _size); }//置乱 int deduplicate();//无序去重 int uniquify();//有序去重 //遍历 void traverse(void(*)(T&)); template<typename VST> void traverse(VST&); }; #include"vector_implementation.h"
[ "2550662608@qq.com" ]
2550662608@qq.com
d7cfa35ddc511ec5e62eb320a68c9613745546d1
92697022961faa24df7de894d318ae056379af3b
/c++/ringroad.cpp
ab5ee42fd54fd28d7fc59346e64a10519f881abf
[]
no_license
gnorambuena/randomCodes
833c5589b5992f0ba7826cd965722be76f276a82
05464998bf178268f565181cb42a06864fcc9b63
refs/heads/master
2021-01-19T08:05:57.011457
2017-08-24T21:04:16
2017-08-24T21:04:16
87,600,785
0
0
null
null
null
null
UTF-8
C++
false
false
243
cpp
#include <iostream> using namespace std; int main(){ long long n,m; cin>>n>>m; long long a=1,b; long long time=0; for(int i = 0 ; i < m ; i++){ cin>>b; if(a<=b)time+=(b-a); else time+=n-a+b; a=b; } cout<<time<<endl; return 0; }
[ "gnorambuena@users.noreply.github.com" ]
gnorambuena@users.noreply.github.com
aa4f6eaac93a4673222942e3d35ef2b3fff55794
a7764174fb0351ea666faa9f3b5dfe304390a011
/inc/Handle_StepBasic_ProductCategoryRelationship.hxx
01200d1a6880ac92d31aebab2cb775b43a34001a
[]
no_license
uel-dataexchange/Opencascade_uel
f7123943e9d8124f4fa67579e3cd3f85cfe52d91
06ec93d238d3e3ea2881ff44ba8c21cf870435cd
refs/heads/master
2022-11-16T07:40:30.837854
2020-07-08T01:56:37
2020-07-08T01:56:37
276,290,778
0
0
null
null
null
null
UTF-8
C++
false
false
869
hxx
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Handle_StepBasic_ProductCategoryRelationship_HeaderFile #define _Handle_StepBasic_ProductCategoryRelationship_HeaderFile #ifndef _Standard_HeaderFile #include <Standard.hxx> #endif #ifndef _Standard_DefineHandle_HeaderFile #include <Standard_DefineHandle.hxx> #endif #ifndef _Handle_MMgt_TShared_HeaderFile #include <Handle_MMgt_TShared.hxx> #endif class Standard_Transient; class Handle(Standard_Type); class Handle(MMgt_TShared); class StepBasic_ProductCategoryRelationship; DEFINE_STANDARD_HANDLE(StepBasic_ProductCategoryRelationship,MMgt_TShared) #endif
[ "shoka.sho2@excel.co.jp" ]
shoka.sho2@excel.co.jp
25150916521d5c9da0f17538162dc9ec66a5ae84
924f4852ab41c238dbfdbaedd49293f76035dfb0
/cuckoo.h
c0a8d8705479f6d766e063e83d416bc1f01fb610
[]
no_license
JaanJanno/AlgoFiltersProject
ad6451c5a98ec34d03c5c6b4a153599ef7d0e9da
cb9ad2590daf23976ec5afcb734b92c4fc346250
refs/heads/master
2016-08-12T20:49:02.017838
2016-01-06T08:34:17
2016-01-06T08:34:17
48,916,473
0
0
null
null
null
null
UTF-8
C++
false
false
556
h
#ifndef CUCKOO_H #define CUCKOO_H #include "filter.h" #include "hashing.h" class Cuckoo : public Filter { private: char* table; HashFunction* hashFun; HashFunction* fingerFun; char finger(uint64_t elem); uint64_t hash1(uint64_t elem); uint64_t hash2(uint64_t hash1, char finger); uint64_t bucketCount; bool elemInBucket(char finger, uint64_t bucket); bool elemToBucket(char finger, uint64_t bucket); public: Cuckoo(uint64_t tableSize, uint64_t bucketCount); ~Cuckoo(); bool lookUp(Hash hash); void insert(Hash hash); }; #endif
[ "jaan911@ut.ee" ]
jaan911@ut.ee
7e5803a29d90d45fa03ded1f17d88f89adc5e3a3
df6a615468a575a0e873609efd39ac6c6ad4e4db
/wifi_localization/src/wifi_node.cpp
ade43dfde9280853ac802650646e94b63cb992b1
[]
no_license
JasonSun623/Wifi_Navigation
0b01a370d39bc461cc82ca81db214c140fdb6d32
51ba624005fd7359abd0d489ab1f847cb5f6e4f3
refs/heads/master
2022-10-19T07:02:26.968391
2020-06-11T11:20:54
2020-06-11T11:20:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,492
cpp
#include <wifi.h> using namespace std; // Kalman filter //reference https://www.wouterbulten.nl/blog/tech/kalman-filters-explained-removing-noise-from-rssi-signals/ int R = 1, Q = 3, A = 1, B = 0, C = 1; //double cov = 0, x = 0; //bool first_data = true; void kalman_filter(wifi_nav::RssDatumAvg &rss, double u) { if (rss.first_data) { rss.x = (1 / C) * rss.rss; rss.cov = (1 / C) * Q * (1 / C); rss.first_data = false; } else { // Compute prediction double predX = (A * rss.x) + (B * u); double predCov = ((A * rss.cov) * A) + R; // Kalman gain double K = predCov * C * (1 / ((C * predCov * C) + Q)); // Correction rss.x = predX + K * (rss.rss - (C * predX)); rss.cov = predCov - (K * C * predCov); } //return rss; } wifiNode::wifiNode(): nh_("~") { rss_sub_ = nh_.subscribe("/rss", 1, &wifiNode::rssRead, this); rss_pub_ = nh_.advertise<wifi_nav::RssAvg>("/rss_avg", 1); //Publisher, service, etc. } void wifiNode::rssRegis(string addr, float avg, int frequency) { //initialize bool newRegis = true; // for (int i = 0; i < data_count; i++) // { // rss_out_.rss[i].rss = NULL; // rss_out_.rss[i].dist = NULL; // } // if (data_count != 0){ for(int i = 0; i < data_count; i++){ //cout<<addr.c_str()<<" and "<<rss_out_.rss[i].name.c_str()<<endl; if(strcmp(addr.c_str(),rss_out_.rss[i].name.c_str()) == 0){ //cout<<"---Matching"<<endl; rss_out_.rss[i].rss = avg; rss_out_.rss[i].timeout = 0; rss_out_.rss[i].freq = frequency; rss_out_.rss[i].dist = pow(10,((-avg - 20*log10(frequency) + 27.55)/20)); kalman_filter(rss_out_.rss[i], 0); //Data[i].rss = avg; newRegis = false; break; } } } if (newRegis){ //cout<<"---NewRegis"<<endl; wifi_nav::RssDatumAvg new_rss; new_rss.id = data_count; new_rss.name = addr; new_rss.rss = avg; new_rss.freq = frequency; new_rss.timeout = 0; new_rss.first_data = true; new_rss.dist = pow(10,((-avg - 20*log10(frequency) + 27.55)/20)); kalman_filter(new_rss, 0); rss_out_.rss.push_back(new_rss); data_count++; } else{ //intentional blank } } void wifiNode::rssRead(const rss::RssData &rss) { int i = rss.mac_address.size(); for (int t = 0; t<i; t++){ cout<<t<<" "<<rss.mac_address[t]<<" "<<rss.freq[t]<<" Signal:"; int j = rss.data[t].rss.size(); float sum = 0; string name = rss.mac_address[t]; for (int m = 0; m<j; m++){ //cout<<" "<<int(rss.data[t].rss[m]); sum+=float(rss.data[t].rss[m]); } float avg = sum/j; int frequency = rss.freq[t]; cout<<avg<<endl; wifiNode::rssRegis(name,avg,frequency); } data_ready = true; } void wifiNode::process() { rss_out_.header.stamp=ros::Time::now(); // double elapsed = (rss_out_.header.stamp - begin_time).toSec(); // outputFile<<elapsed<<","; // for (int i = 0; i < rss_out_.rss.size(); i++){ // outputFile<<float(rss_out_.rss[i].rss); // if (i != rss_out_.rss.size()-1) outputFile<<","; // else outputFile<<endl; // } //cout<<"Publishing..."<<""<<endl; for (int i = 0; i < rss_out_.rss.size(); i++){ if (rss_out_.rss[i].timeout > 20){ rss_out_.rss[i].x = -100; //signal lost rss_out_.rss[i].rss = -100; rss_out_.rss[i].first_data = true; //reset kalman filter } rss_out_.rss[i].timeout ++; } // cout<<rss_out_<<endl; rss_pub_.publish(rss_out_); data_ready = false; } void wifiNode::shutdown() { outputFile<<"Time,"; for (int i = 0; i < rss_out_.rss.size(); i++){ outputFile<<rss_out_.rss[i].name; if (i != rss_out_.rss.size()-1) outputFile<<","; else outputFile<<endl; } } int main(int argc, char** argv) { ros::init(argc, argv, "wifi_node"); wifiNode object; ros::Rate rate(20); begin_time = ros::Time::now(); if (argc == 2) { char* extension = ".txt"; char* loc_name = argv[1]; char* subfolder = "./data/"; char filename[strlen(subfolder)+strlen(loc_name)+strlen(extension)+1]; snprintf( filename, sizeof( filename ), "%s%s%s", subfolder, loc_name, extension ); outputFile.open (filename); outputFile<<"Location: "<<argv[1]<<endl; } else outputFile.open("./data/log_raw_rss.txt"); while(ros::ok()) { if(data_ready) object.process(); ros::spinOnce(); rate.sleep(); } object.shutdown(); outputFile.close(); return 0; }
[ "k.promsutipong@gmail.com" ]
k.promsutipong@gmail.com
9a3d58b30e8854ecff46b795f91c6191eba16dd8
ed094557fcd75eef5914a1351b08d5d2382d8902
/project1/server.cc
34cea411bfe3cfe630809848de6287cfb6a0c265
[]
no_license
zhangchengyao/CS118
0a80fe0ded3953614fa74001a3754887861716cb
09c7c3f969542594d55ad2337a2a24fa8d7e165e
refs/heads/master
2020-05-09T12:31:15.529565
2019-06-07T18:51:47
2019-06-07T18:51:47
181,114,066
0
1
null
null
null
null
UTF-8
C++
false
false
6,955
cc
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/wait.h> #include <netinet/in.h> #include <arpa/inet.h> #include <dirent.h> #include <string> #include <sstream> #include <fstream> #include <unordered_map> #include <algorithm> #include "request.h" #include "request_parser.h" #define MAX_BUF_SIZE 1024 #define BACKLOG 1 /* pending connections queue size */ struct mimetype_mapping { const char* extension; const char* mime_type; } mappings[] = { { "gif", "image/gif" }, { "htm", "text/html" }, { "html", "text/html" }, { "jpg", "image/jpeg" }, { "jpeg", "image/jpeg" }, { "tar", "application/x-tar" }, { "png", "image/png" }, { "txt", "text/plain"}, { "zip", "application/zip"} }; std::string extension_to_type(const std::string& extension) { for(mimetype_mapping m: mappings) { if(m.extension == extension) { return m.mime_type; } } return "text/plain"; } std::string get_file_name(std::string str) { if(str.rfind("/") == -1) { return ""; } else { return str.substr(str.rfind("/") + 1); } } void to_lower(char* arr) { int len = strlen(arr); for(int i = 0; i < len; i++) { if(arr[i] >= 'A' && arr[i] <= 'Z') { arr[i] = arr[i] - 'A' + 'a'; } } } // reference: https://stackoverflow.com/questions/612097/how-can-i-get-the-list-of-files-in-a-directory-using-c-or-c std::unordered_map<std::string, std::string> get_all_files() { char buf[MAX_BUF_SIZE]; getcwd(buf, MAX_BUF_SIZE); DIR* dir; struct dirent* ent; if((dir = opendir(buf)) != NULL) { std::unordered_map<std::string, std::string> mymap; /* print all the files and directories within directory */ while((ent = readdir(dir)) != NULL) { char temp[MAX_BUF_SIZE]; strcpy(temp, ent->d_name); to_lower(temp); mymap[temp] = ent->d_name; } return mymap; closedir (dir); } else { /* could not open directory */ perror ("open directory"); exit(1); } } // reference: https://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/http/server3/request_handler.cpp bool url_decode(const std::string& in, std::string& out) { out.clear(); out.reserve(in.size()); for(std::size_t i = 0; i < in.size(); ++i) { if(in[i] == '%') { if(i + 3 <= in.size()) { int value = 0; std::istringstream is(in.substr(i + 1, 2)); if (is >> std::hex >> value) { out += static_cast<char>(value); i += 2; } else { return false; } } else { return false; } } else if(in[i] == '+') { out += ' '; } else { out += in[i]; } } return true; } std::string serve_static_file(std::string file) { std::unordered_map<std::string, std::string> mymap = get_all_files(); std::stringstream response; std::string decoded; if(!url_decode(file, decoded)) { response << "HTTP/1.1 400 Bad Request\r\n\r\n"; response << "url decode!"; return response.str(); } std::transform(decoded.begin(), decoded.end(), decoded.begin(), ::tolower); if(mymap.find(decoded) == mymap.end()) { response << "HTTP/1.1 404 Not Found\r\n\r\n"; response << "Not Found!"; return response.str(); } // Open the file std::ifstream is(mymap[decoded].c_str(), std::ios::in | std::ios::binary); if(!is) { response << "HTTP/1.1 400 Bad Request\r\n\r\n"; response << "open file!"; return response.str(); } char buf[MAX_BUF_SIZE]; std::string fileContent = ""; while(is.read(buf, sizeof(buf)).gcount() > 0) { fileContent.append(buf, is.gcount()); } // Determine the file extension. (txt, jpg, html....) std::size_t last_dot_pos = decoded.find_last_of("."); std::string extension = ""; if(last_dot_pos != std::string::npos) { extension = decoded.substr(last_dot_pos + 1); } response << "HTTP/1.1 200 OK\r\n"; response << "Content-Length: " << std::to_string(fileContent.size()) << "\r\n"; if(!extension.empty()) { response << "Content-Type: " << extension_to_type(extension) << "\r\n"; } else { response << "Content-Type: " << "text/plain\r\n"; } response << "\r\n"; response << fileContent; return response.str(); } int main(int argc, char *argv[]) { if(argc != 2) { printf("Usage: ./server <portnum>\n"); return 1; } int portnum = std::atoi(argv[1]); int sockfd, new_fd; /* listen on sock_fd, new connection on new_fd */ struct sockaddr_in my_addr; /* my address */ struct sockaddr_in their_addr; /* connector address */ unsigned int sin_size; char buf[MAX_BUF_SIZE]; request request_; request_parser request_parser_; /* create a socket */ if((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); } /* set the address info */ my_addr.sin_family = AF_INET; my_addr.sin_port = htons(portnum); /* short, network byte order */ my_addr.sin_addr.s_addr = htonl(INADDR_ANY); /* INADDR_ANY allows clients to connect to any one of the host's IP address. Optionally, use this line if you know the IP to use: my_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); */ memset(my_addr.sin_zero, '\0', sizeof(my_addr.sin_zero)); /* bind the socket */ if(bind(sockfd, (struct sockaddr*) &my_addr, sizeof(struct sockaddr)) == -1) { perror("bind"); exit(1); } /* listen */ if(listen(sockfd, BACKLOG) == -1) { perror("listen"); exit(1); } while(1) { /* main accept loop */ sin_size = sizeof(struct sockaddr_in); if((new_fd = accept(sockfd, (struct sockaddr*) &their_addr, &sin_size)) == -1) { perror("accept"); continue; } printf("server: got connection from %s\n\n", inet_ntoa(their_addr.sin_addr)); memset(buf, 0, sizeof(buf)); int len = read(new_fd, buf, sizeof(buf)); printf("request header: \n%s\n", buf); request_parser::result_type result = request_parser_.parse(request_, buf, buf + len); if(result == request_parser::good) { std::string target = get_file_name(request_.uri); std::string resp; if(!target.empty()) { resp = serve_static_file(target); } else { std::stringstream ss; ss << "HTTP/1.1 200 OK\r\n\r\n"; ss << buf; resp = ss.str(); } write(new_fd, resp.c_str(), resp.size()); } else { printf("Bad request!\n"); } request_.clear(); request_parser_.reset(); close(new_fd); } close(sockfd); return 0; }
[ "tc2002618@126.com" ]
tc2002618@126.com
8a285853e7bf55a99f5747c4c770d653142c1a30
b2b001c1804750c4c38ac092d2d9319adc4fdc8b
/LabelVector.h
0c152749d1f44bc977dc0037501ab38511dbf6d8
[]
no_license
pauljurczak/Second-Annual-Data-Science-Bowl
536ec493e0a1967955a644ed2efb3914ac065b0f
37cf7c23f33bb8f8d72489826b411c99ccb16f18
refs/heads/master
2021-01-10T05:26:16.354990
2016-02-20T07:19:05
2016-02-20T07:19:05
52,140,655
6
3
null
null
null
null
UTF-8
C++
false
false
598
h
#pragma once #include "Label.h" #include "Submission.h" class LabelVector { public: const int volumeMax = 599; map<int, Label> labels; // map has to be ordered for makeSubmission() LabelVector() {}; LabelVector(string filePath); LabelVector(int patientIDMin, int patientIDMax, double testValue); // create test instance void save (string filePath); Submission makeSubmission(double step) {return Submission(*this, step);}; //double evaluateAgainst(LabelVector& labelVector); //void makeSubmission1(string filePath); };
[ "pauljurczak@yahoo.com" ]
pauljurczak@yahoo.com
75e1438834ef81a7dac786958b24613d471ed718
4d01bb05957be83604cc0dc931bf296eed890ff1
/jni/src/binding_object/action/actionEase/JsEaseElasticOutBinding.cpp
225f70285a682269205bc1bf0e949330db478b6d
[]
no_license
GG-coder889/game2d
5b57134d61cf232be47fc1e63f1edf7499082e20
b9da584b1cdd280806dd2477bd1c782540fc2cec
refs/heads/master
2022-06-22T13:10:51.830866
2012-07-08T01:07:35
2012-07-08T01:07:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,578
cpp
#define TAG "JsEaseElasticOutBinding" #include "JsEaseElasticOutBinding.h" #include "cocos2d.h" using namespace cocos2d; JSClass JsEaseElasticOutBinding::clz = { "EaseElasticOut", JSCLASS_HAS_PRIVATE, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_StrictPropertyStub, JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub, JSCLASS_NO_OPTIONAL_MEMBERS }; JSObject *JsEaseElasticOutBinding::obj = NULL; JSBool JsEaseElasticOutBinding::Create(JSContext *context, unsigned int argc, jsval *vp) { if (argc == 1) { jsval *args = JS_ARGV(context, vp); JSObject *jsonObj; JS_ValueToObject(context, args[0], &jsonObj); jsval actionVal; jsval periodVal; JS_GetProperty(context, jsonObj, "action", &actionVal); JS_GetProperty(context, jsonObj, "period", &periodVal); if (!JSVAL_IS_VOID(actionVal) && !JSVAL_IS_VOID(periodVal)) { double period = JSVAL_TO_DOUBLE(periodVal); CCActionInterval *pAction = static_cast<CCActionInterval*> (JS_GetPrivate(context, JSVAL_TO_OBJECT(actionVal))); CCActionInterval *pEaseElasticOut = CCEaseElasticOut::actionWithAction(pAction, period); if (pEaseElasticOut) { JSObject *newObj = JS_NewObject(context, &clz, obj, NULL); JS_SetPrivate(context, newObj, pEaseElasticOut); JS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(newObj)); } } } return JS_TRUE; } JSObject * JsEaseElasticOutBinding::BindingOnEngine(JSContext *context, JSObject *global, JSObject *parent) { obj = JS_InitClass(context, global, parent, &clz, Create, 0, NULL, NULL, NULL, NULL); return obj; }
[ "flywingsky@flywingsky.(none)" ]
flywingsky@flywingsky.(none)
06b0587b0a4e5d503cdbd5fd43d25cd9eb26f22a
bb653d54e05f0c1eb7261d1fb33f6fc77f381331
/OrderedNim.cpp
0c448bd4245e9706f90ddc197d5164c5250affaa
[]
no_license
srinu634/topcoder
180121d7476f2aa128e2910cb53e3d8d67435e25
0a5f9e29ee7fa58ca5f3d4ddf0f7d9fe3fd9e708
refs/heads/master
2016-09-06T03:38:43.941002
2015-01-31T13:23:14
2015-01-31T13:23:14
15,828,408
0
0
null
null
null
null
UTF-8
C++
false
false
942
cpp
#include <cstdio> #include <cmath> #include <cstring> #include <ctime> #include <iostream> #include <algorithm> #include <set> #include <vector> #include <sstream> #include <typeinfo> #include <fstream> #define ALICE true #define BOB FALSE using namespace std; class OrderedNim { public: string winner(vector<int> layout) { string alice="Alice"; string bob="Bob"; int i,j; bool winner; //true:ALice , false:bob winner=ALICE; i=0; while(i<layout.size() ){ if(layout[i]==0){ i++; continue; } if(i!=layout.size()-1) layout[i] = layout[i]>1?1:0; else{ layout[i]=0; //Take all from the last heap break; } winner^=true; } if(winner==ALICE) return alice; else return bob; } };
[ "srinivas.suri46@gmail.com" ]
srinivas.suri46@gmail.com
42b794d7432812baa47ef5fa71144143f76f2916
198378e6ba1a6a69644ff9160b5dac3ee0fab308
/C++/OpenSSL/RandomBytes.cpp
e621d0727f5eedad3baaec806ee608c0416c0ad0
[]
no_license
GauthamBanasandra/temp
7797afe8895e5bb024ba03854f6fbac916a085c0
72816e4372af3308fb8b34c67df7c1825474b3d1
refs/heads/master
2023-07-21T02:55:05.251558
2022-02-07T07:04:27
2022-02-07T07:04:27
219,112,798
0
0
null
2023-07-05T20:52:00
2019-11-02T06:19:13
Shell
UTF-8
C++
false
false
718
cpp
#include <iostream> #include <optional> #include <ostream> #include <vector> #include <openssl/err.h> #include <openssl/rand.h> std::optional<std::string> FillRandBytes(unsigned char *buf, const int size) { if (RAND_bytes(buf, size) == 1) { return std::nullopt; } return ERR_reason_error_string(ERR_get_error()); } int main(int argc, char *argv[]) { std::vector<unsigned char> buffer(10); auto error = FillRandBytes(&buffer[0], static_cast<int>(buffer.size())); if (error.has_value()) { std::cout << "Unable to get random bytes, err : " << *error << std::endl; return 0; } for (auto c : buffer) { std::cout << static_cast<int>(c) << ' '; } std::cout << std::endl; return 0; }
[ "gautham.bangalore@gmail.com" ]
gautham.bangalore@gmail.com
86976b87eccf7758ecec93d73007fa439ac0154c
7af9725e3ef63aa44eafa6f6fe91e2074b71d86c
/proj_final/passagetokenizer.cpp
3b89b81168b1b5046348ff2ba4ed424b3617f482
[]
no_license
tracypham1/COP3331
2808b8e8eb75d9ad758e40efaa0b3175280257ac
9135e2ce62cd63e0c93987ea6c4348ef8c894dbf
refs/heads/master
2022-04-08T09:38:44.523107
2020-02-26T02:14:30
2020-02-26T02:14:30
186,728,828
0
0
null
null
null
null
UTF-8
C++
false
false
7,993
cpp
#include "passagetokenizer.h" #include <iostream> #include <cstddef> using namespace std; PassageTokenizer::PassageTokenizer(string pass, int num) { passage = pass; part_num = num; int first, last, end_of_last; string delim1 = "("; string delim2 = ")"; string delim3 = "[["; string delim4 = "]]"; string delim5 = "["; string delim6 = "]"; string temp; // While loop for initializing the string vector parts // Terminates when the passage string has been completely tokenized of parts and is now empty while(passage != "") { if (passage.find(delim1) == 0) // If statement to find commands { first = passage.find(delim1); last = passage.find(delim2); end_of_last = last + 1; // Gets the part as a substring then adds it to the vector temp = passage.substr(first, end_of_last); parts.push_back(temp); // Deletes the part that we stored in temp from passage passage = passage.substr(end_of_last, passage.size() - end_of_last); } else if (passage.find(delim3) == 0) // Else if statement to find links { first = passage.find(delim3); last = passage.find(delim4); end_of_last = last + 2; if(passage.find("[[[") == 0) // Added for escape.html { last = passage.find("]]]"); end_of_last = last + 3; temp = passage.substr(first, end_of_last); passage = passage.substr(end_of_last, passage.size() - end_of_last); } else { temp = passage.substr(first, end_of_last); passage = passage.substr(end_of_last, passage.size() - end_of_last); } parts.push_back(temp); } else if(passage.find(delim5) == 0) // Else if statement to find blocks { last = passage.find(delim6); end_of_last = last + 1; temp = passage.substr(first, end_of_last); passage = passage.substr(end_of_last, passage.size() - end_of_last); // If statement that makes sure last ] isn't dropped if (passage.find(delim6) == 0) { while (passage.find(delim6) == 0) { temp += delim6; passage = passage.substr(1, passage.size()); } while (passage.find(delim6) == 1) { temp = temp + " " + delim6; passage = passage.substr(2, passage.size()); } while (passage.find(delim6) == 2) { temp = temp + "\n" + delim6; passage = passage.substr(3, passage.size()); } while (passage.find(delim6) == 24) { temp += "\n"; temp += "(set: $end8 to true)\n"; temp += delim6; passage = passage.substr(25, passage.size()); } parts.push_back(temp); } else parts.push_back(temp); } else // Else statement to find text { first = 0; int link = passage.find(delim3); // Finds links int set = passage.find("(set:"); // Finds set commands int goTo = passage.find("(go-to"); // Finds go-to commands int If = passage.find("(if:"); // Finds if commands int Else = passage.find("(else"); // Finds else-if and else commands int block = passage.find(delim5); // Finds the end of the block // Changes the value if there are no links or commands if (link == std::string::npos) link = 100000000; if (set == std::string::npos) set = 100000000; if (goTo == std::string::npos) goTo = 100000000; if (If == std::string::npos) If = 100000000; if (Else == std::string::npos) Else = 100000000; if (block == std::string::npos) block = 100000000; // If else statements to determine if a link, command, or end of block comes first // Temp will hold the text up to the beginning of the link, command, or end of block if (set < block && set < link && set < goTo && set < If && set < Else) { temp = passage.substr(first, set); parts.push_back(temp); passage = passage.substr(set, passage.size() - set); } else if (goTo < block && goTo < link && goTo < set && goTo < If && goTo < Else) { temp = passage.substr(first, goTo); parts.push_back(temp); passage = passage.substr(goTo, passage.size() - goTo); } else if (If < block && If < link && If < set && If < goTo && If < Else) { temp = passage.substr(first, If); parts.push_back(temp); passage = passage.substr(If, passage.size() - If); } else if (Else < block && Else < link && Else < set && Else < If && Else < goTo) { temp = passage.substr(first, Else); parts.push_back(temp); passage = passage.substr(Else, passage.size() - Else); } else if (link <= block && link < set && link < goTo && link < If && link < Else) { temp = passage.substr(first, link); parts.push_back(temp); passage = passage.substr(link, passage.size() - link); } else if (block < link && block < set && block < goTo && set < If && set < goTo) { temp = passage.substr(first, block); parts.push_back(temp); passage = passage.substr(block, passage.size() - block); } else { temp = passage.substr(first, passage.size()); parts.push_back(temp); passage = ""; } } } } bool PassageTokenizer::hasNextPart() { if (part_num < parts.size()) { next_part = true; part_num++; } else next_part = false; return next_part; } PartToken PassageTokenizer::nextPart() { PartToken part(parts, part_num - 1); return part; } PartToken::PartToken(vector<string> p, int n) { prts = p; num = n; } string PartToken::getText() { if (num >= prts.size()) // If there are no more parts return empty string return ""; else return prts.at(num); } token_t PartToken::getType() { token_t type; string set = "(set:"; string link = "[["; string cif = "(if:"; string elseif = "(else-if:"; string celse = "(else:"; string goTo = "(go-to:"; string block = "["; if (num < prts.size()) // If there are no more parts, type is TEXT { // If else statements to determine the type of part if (prts.at(num).find(set) == 0) type = SET; else if (prts.at(num).find("[[[") == 0) // Added for escape.html type = BLOCK; else if (prts.at(num).find(link) == 0) type = LINK; else if (prts.at(num).find(cif) == 0) type = IF; else if (prts.at(num).find(elseif) == 0) type = ELSEIF; else if (prts.at(num).find(celse) == 0) type = ELSE; else if (prts.at(num).find(goTo) == 0) type = GOTO; else if (prts.at(num).find(block) == 0) type = BLOCK; else type = TEXT; } else type = TEXT; return type; }
[ "tracypham@mail.usf.edu" ]
tracypham@mail.usf.edu
7a6347ae18213eb506332cc9e4e7b8449cf541b8
ffb568806e34199501c4ca6b61ac86ee9cc8de2e
/niji_project/prog/Trainer/Trainer/source/TrainerPairData.cpp
f5cee59eb0c9c235d17e61680bee1babcff334d4
[]
no_license
Fumikage8/gen7-source
433fb475695b2d5ffada25a45999f98419b75b6b
f2f572b8355d043beb468004f5e293b490747953
refs/heads/main
2023-01-06T00:00:14.171807
2020-10-20T18:49:53
2020-10-20T18:49:53
305,500,113
3
1
null
null
null
null
UTF-8
C++
false
false
6,183
cpp
//[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ /** * GAME FREAK inc. * * @file TrainetrPairData.cpp * @brief 視線トレーナーペアデータ管理モジュール * @author Miyuki Iwasawa * @date 2016.01.18 * */ //]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] #include "GameSys/include/GameManager.h" #include "GameSys/include/GameData.h" #include "Trainer/Trainer/include/TrainerPairData.h" #include <arc_def_index/arc_def.h> #include <arc_index/script_event_data.gaix> namespace trainer{ //----------------------------------------------------------------------------- /** * 定数宣言 */ //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- /** * クラス宣言 */ //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- /** * 実装 */ //----------------------------------------------------------------------------- //---------------------------------------------------------------------------- /** * @brief コンストラクタ */ //----------------------------------------------------------------------------- TrainerPairData::TrainerPairData( const GameSys::GameData* p_gdata ) { m_pGameData = p_gdata; m_TrainerPairSize = 0; m_seq = 0; m_pHeap = NULL; } //---------------------------------------------------------------------------- /** * @brief デストラクタ */ //----------------------------------------------------------------------------- TrainerPairData::~TrainerPairData() { } //---------------------------------------------------------------------------- /** * @brief ペアデータのサーチ */ //----------------------------------------------------------------------------- TrainerPairData::TrainerPairIndex TrainerPairData::SearchPairData( u32 scrid, u32* scrid_pair ) { PairData* pPairTable = reinterpret_cast<PairData*>(m_pTrainerPairBuffer); int i = 0; for( i=0;i < m_TrainerPairSize; i++ ){ if( pPairTable[i].scrid_trainer01 == scrid ){ *scrid_pair = pPairTable[i].scrid_trainer02; return TRAINER_PAIR_1ST; } if( pPairTable[i].scrid_trainer02 == scrid ){ *scrid_pair = pPairTable[i].scrid_trainer01; return TRAINER_PAIR_2ND; } } *scrid_pair = 0; return TRAINER_PAIR_NONE; } //---------------------------------------------------------------------------- /** * @brief TrainerPairDataデータロード */ //----------------------------------------------------------------------------- void TrainerPairData::Initialize( GameSys::GameManager* p_gman, gfl2::heap::HeapBase* p_heap ) { gfl2::fs::AsyncFileManager* pAsyncFileManager = p_gman->GetAsyncFileManager(); m_seq = 0; m_pHeap = p_heap; //--------------------------------------------------- // ARCファイルオープン //--------------------------------------------------- { gfl2::fs::AsyncFileManager::ArcFileOpenReq openReq; openReq.arcId = ARCID_SCRIPT_EVENT_DATA; openReq.heapForFile = m_pHeap->GetLowerHandle(); openReq.heapForArcSrc = m_pHeap->GetLowerHandle(); openReq.heapForReq = m_pHeap->GetLowerHandle(); pAsyncFileManager->AddArcFileOpenReq( openReq ); } //--------------------------------------------------- // ファイル読み込みリクエスト //--------------------------------------------------- { gfl2::fs::AsyncFileManager::ArcFileLoadDataReq loadReq; loadReq.arcId = ARCID_SCRIPT_EVENT_DATA; loadReq.datId = GARC_script_event_data_pair_trainer_BIN; loadReq.ppBuf = &m_pTrainerPairBuffer; loadReq.heapForBuf = m_pHeap; loadReq.heapForReq = m_pHeap->GetLowerHandle(); loadReq.heapForCompressed = NULL; loadReq.pBufSize = &m_TrainerPairBufferSize; loadReq.align = 4; pAsyncFileManager->AddArcFileLoadDataReq( loadReq ); } } //---------------------------------------------------------------------------- /** * @brief TrainerPairDataデータ待ち */ //----------------------------------------------------------------------------- bool TrainerPairData::InitializeWait( GameSys::GameManager* p_gman ) { gfl2::fs::AsyncFileManager* pAsyncFileManager = p_gman->GetAsyncFileManager(); switch( m_seq ){ case 0: // 読み込み完了待ち if( !pAsyncFileManager->IsArcFileOpenFinished( ARCID_SCRIPT_EVENT_DATA ) ){ return false; } if( !pAsyncFileManager->IsArcFileLoadDataFinished( &m_pTrainerPairBuffer ) ){ return false; } //データ格納 { m_TrainerPairSize = m_TrainerPairBufferSize/sizeof(PairData); GFL_ASSERT(m_TrainerPairSize==TRAINER_PAIR_NUM_MAX); } //アーカイブ閉じる { gfl2::fs::AsyncFileManager::ArcFileCloseReq closeReq; closeReq.arcId = ARCID_SCRIPT_EVENT_DATA; closeReq.heapForReq = m_pHeap->GetLowerHandle(); pAsyncFileManager->AddArcFileCloseReq( closeReq ); } m_seq++; return false; case 1: if( !pAsyncFileManager->IsArcFileCloseFinished( ARCID_SCRIPT_EVENT_DATA ) ){ return false; } m_seq++; break; default: break; } return true; } //---------------------------------------------------------------------------- /** * @brief TrainerPairDataデータ破棄 */ //----------------------------------------------------------------------------- void TrainerPairData::Terminate( void ) { //バッファ開放 GflHeapSafeFreeMemory(m_pTrainerPairBuffer); m_TrainerPairSize = 0; m_seq = false; m_pHeap = NULL; return; } } // trainer
[ "forestgamer141@gmail.com" ]
forestgamer141@gmail.com
061a5903b0cd5dc04e3a5d738aefc499b107b802
1aa283adc1bc980a4bb4a106fc9a8e0ccb4b0d74
/Engine/include/Catastrophe/Core/Containers/Pair.h
cd9b52cb8dd9d9f8aae63146faae667cdb642e68
[]
no_license
Imzogelmo/catastrophe
60cccfbb3d6f34b110f41618640d76378dc1e3e0
3e7588a460585ecfa1c0191dc3249d7b4b293836
refs/heads/master
2021-01-01T05:59:48.032130
2015-06-09T03:19:53
2015-06-09T03:19:53
37,398,074
0
0
null
null
null
null
UTF-8
C++
false
false
3,317
h
// Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #pragma once #include "Catastrophe/Common.h" #include "Catastrophe/Core/TypeTraits.h" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable: 4512) // assignment operator could not be generated #endif CE_NAMESPACE_BEGIN /// /// @Pair /// /// Generic container that holds objects of 2 types similar to /// that of std::pair. /// template<class T1, class T2> struct Pair { typedef T1 FirstType; typedef T2 SecondType; Pair() : first(), second() {} Pair( const T1& value ) : first(value), second() {} Pair( const T1& key, const T2& value ) : first(key), second(value) {} // Construct from different, but related types. template <typename U, typename V> Pair( const Pair<U, V>& p ) : first(p.first), second(p.second) {} T1 first; T2 second; }; template<class T1, class T2> inline bool operator ==( const Pair<T1, T2>& a, const Pair<T1, T2>& b ) { return a.first == b.first && a.second == b.second; } template<class T1, class T2, class U, class V> inline bool operator ==( const Pair<T1, T2>& a, const Pair<U, V>& b ) { return a.first == b.first && a.second == b.second; } template<class T1, class T2> inline bool operator !=( const Pair<T1, T2>& a, const Pair<T1, T2>& b ) { return !(a == b); } template<class T1, class T2, class U, class V> inline bool operator !=( const Pair<T1, T2>& a, const Pair<U, V>& b ) { return !(a == b); } // Types of pair are considered trivial only if both templated types are trivial. template <class T1, class T2> struct is_pod< Pair<T1, T2> > : integral_constant <is_pod<T1>::value && is_pod<T2>::value> { }; template <class T1, class T2> struct has_trivial_constructor< Pair<T1, T2> > : integral_constant <has_trivial_constructor<T1>::value && has_trivial_constructor<T2>::value> { }; template <class T1, class T2> struct has_trivial_copy< Pair<T1, T2> > : integral_constant <has_trivial_copy<T1>::value && has_trivial_copy<T2>::value> { }; template <class T1, class T2> struct has_trivial_assign< Pair<T1, T2> > : integral_constant <has_trivial_assign<T1>::value && has_trivial_assign<T2>::value> { }; CE_NAMESPACE_END #ifdef _MSC_VER #pragma warning(pop) #endif
[ "arpeggiodragon@a8cd0d33-2a72-5bf5-5b35-c9dba72e4cff" ]
arpeggiodragon@a8cd0d33-2a72-5bf5-5b35-c9dba72e4cff
01d8d98188f715ae827ffe2acc22a4f3ec68a968
f9aa703d41dbd3b987b70cdd6d8077716159ea50
/task6/runge_kutta.h
a86099b6c4ed1b0b6d50348547349a5b9f123067
[]
no_license
gerrich/numeric_methods
3928e2cfc385e9b299ed44ffd95b58218e56c773
bc3eed99390a3364f886495796767f26cd467d08
refs/heads/master
2020-12-24T14:52:47.283972
2012-05-23T13:43:54
2012-05-23T13:43:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,082
h
#pragma once #include <cmath> #include <vector> /* == BEGIN: Math subrotines == */ template <typename TData> TData pow2_3(const TData &a) { return a * std::sqrt(a); } template <typename TData> void apply(std::vector<TData> &lhs, const std::vector<TData> &rhs, const TData &multiplier) { for (size_t i = 0; i < lhs.size(); ++i) { lhs[i] += multiplier * rhs[i]; } } template <typename TData, typename TIterator, typename TRIterator> void apply(TIterator it, TIterator end, TRIterator r_it, const TData &multiplier) { for (; it != end; ++it, ++r_it) { *it += multiplier * *r_it; } } template <typename TData, typename TIterator> TData sqr_sum(TIterator it, TIterator end) { TData sum = 0.0; for (; it != end; ++it) { sum += *it * *it; } return sum; } /* == END: Math subrotines == */ template <typename TData, typename TFunc> class RungeKutta { public: RungeKutta(const TFunc& func) : func_(func) {} void calc(const std::vector<TData> &data, const TData& time, std::vector<TData> &result, const TData &delta_t) const { std::vector<TData> d1; std::vector<TData> d2; std::vector<TData> d3; std::vector<TData> d4; func_.get_derivative(data, time, d1); std::vector<TData> data_tmp(data); apply(data_tmp, d1, delta_t * 0.5); func_.get_derivative(data_tmp, time + 0.5 * delta_t, d2); data_tmp = data; apply(data_tmp, d2, delta_t * 0.5); func_.get_derivative(data_tmp, time + 0.5 * delta_t, d3); data_tmp = data; apply(data_tmp, d3, delta_t); func_.get_derivative(data_tmp, time + delta_t, d4); result = data; apply(result, d1, delta_t / 6.0); apply(result, d2, delta_t / 3.0); apply(result, d3, delta_t / 3.0); apply(result, d4, delta_t / 6.0); } private: const TFunc& func_; }; template <typename TFunc> RungeKutta<typename TFunc::DataType, TFunc> runge_kutta(const TFunc& func) { return RungeKutta<typename TFunc::DataType, TFunc>(func); } template <typename TData> class TBaseLogger { public: virtual void log(const TData &time, const std::vector<TData> &data) {}; }; template <typename TData, typename TIntegrator> void solve( const TIntegrator& integrator, const std::vector<TData> &data, std::vector<TData> &result, const TData &t_0, const TData &t_1, size_t count, TBaseLogger<TData> *logger_ptr = NULL) { TData delta_t = (t_1 - t_0) / count; std::vector<TData> current_data(data), new_data; if (logger_ptr != NULL) { logger_ptr->log(t_0, current_data); } for (size_t i = 0; i < count; ++i) { TData time = t_0 + i * delta_t; integrator.calc(current_data, time, new_data, delta_t); current_data.swap(new_data); if (logger_ptr != NULL) { logger_ptr->log(time + delta_t, current_data); } } result = current_data; } template <typename TData> TData calc_error(const std::vector<TData> &lhs, const std::vector<TData> &rhs) { TData sum = 0.0; for (size_t i = 0; i < lhs.size(); ++i) { sum += (lhs[i] - rhs[i]) * (lhs[i] - rhs[i]); } return std::sqrt(sum); }
[ "ivanov.georg@gmail.com" ]
ivanov.georg@gmail.com
d36540af048376320960d5c3497caaa6f01deb34
c7f3db94cc3d69cd9a2ae24aa3c69cd767b28672
/must_rma/src/modules/OneSidedChecks/RMATrack/RMAMap.h
a569c58da0f9024892d06e6ea68d64cdf6a1ea4d
[]
no_license
RWTH-HPC/must-rma-correctness22-supplemental
10683ff20339098a45a35301dbee6b31d74efaec
04cb9fe5f0dcb05ea67880209accf19c5e0dda25
refs/heads/main
2023-04-14T20:48:36.684589
2022-08-10T20:28:43
2022-11-18T03:33:05
523,105,966
0
0
null
null
null
null
UTF-8
C++
false
false
3,365
h
/* Part of the MUST Project, under BSD-3-Clause License * See https://hpc.rwth-aachen.de/must/LICENSE for license information. * SPDX-License-Identifier: BSD-3-Clause */ /** * @file RmaMap.h * * @date 16.06.2017 * @author Simon Schwitanski */ #ifndef RMA_MAP_H #define RMA_MAP_H #include <map> #include <list> #include <set> #include "BaseIds.h" #include "MustTypes.h" namespace must { /** * Implements a map that stores RMAOp objects. * In addition to access of RMAOp objects by their id, it is possible to get a * list of RMAOp objects corresponding to a window or a window-target pair. * * This template class is used for implementation of the concrete classes * OriginRMAMap (RMA_OP_TYPE: OriginRMAOp) and TargetRMAMap * (RMA_OP_TYPE: TargetRMAOp). */ template < typename RMA_OP_TYPE > class RMAMap { public: /** * Adds an RMAOp object with a given id to the map. * * @param id id of the object * @param op RMAOp object to add */ virtual void addOp(MustRMAId id, RMA_OP_TYPE* op); /** * Returns the RMAOp object associated with the id. * * @param id id of the object * @return RMAOp object associated with the id */ virtual RMA_OP_TYPE* getOp(MustRMAId callId); /** * Returns all stored RMAOp objects that belong to a given window. * * @param win win id the RMAOp objects are filtered by * @return list of RMAOp objects that belong to the given window */ virtual std::list<MustRMAId> getWinOps(MustWinType win); /** * Returns all stored RMAOp objects that belong to a given window * and are addressed to a given target rank. * * @param win win id the RMAOp objects are filtered by * @param target target rank * @return list of RMAOp objects that belong to the given window and rank */ virtual std::list<MustRMAId> getWinTargetOps(MustWinType win, int target); /** * Returns all stored RMAOp objects that belong to a given window * and belong given origin rank. * * @param win win id the RMAOp objects are filtered by * @param origin origin rank * @return list of RMAOp objects that belong to the given window and rank */ virtual std::list<MustRMAId> getWinOriginOps(MustWinType win, int origin); /** * Removes the RMAOp object associated with the given id. * * @param id id of the object to delete */ virtual void removeOp(MustRMAId id); /** * Removes the RMAOp objects associated with the given ids. * * @param idList list containing ids of objects to delete */ virtual void removeOps(const std::list<MustRMAId>& idList); /** * Returns the number of elements in the map. * * @return number of elements in the map */ virtual size_t size(); private: // actual map storing the RMAOp objects std::map<MustRMAId, RMA_OP_TYPE*> myRMAMap; // internal map for caching RMA ops associated with a certain win std::map<MustWinType, std::set<MustRMAId>> myWinRMAMap; }; #include "RMAMap.hpp" } #endif
[ "schwitanski@itc.rwth-aachen.de" ]
schwitanski@itc.rwth-aachen.de
15029b1a13dc47c5a838a03801964bba4b64584a
d3d1d7d99054b8684ed5fc784421024050a95c79
/codeforces/D/1058d.cpp
279f8e5735522604d263ff9dcc0c245408d2829f
[]
no_license
rishabhSharmaOfficial/CompetitiveProgramming
76e7ac3f8fe8c53599e600fc2df2520451b39710
85678a6dc1ee437d917adde8ec323a55a340375e
refs/heads/master
2023-04-28T05:51:18.606350
2021-05-15T07:04:33
2021-05-15T07:04:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,867
cpp
#include<bits/stdc++.h> #define ll long long int #define ld long double #define pi pair<int,int> #define all(x) x.begin(), x.end() #define allr(x) x.rbegin(), x.rend() #define sz(x) ((int)x.size()) #define ln(x) ((int)x.length()) #define mp make_pair #define pb push_back #define ff first #define ss second #define endl '\n' #define dbg(x) cout<<#x<<": "<<x<<endl #define clr(x,v) memset(x, v, sizeof(x)) #define FASTIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); using namespace std; const double eps = 1e-9; const double PI = acos(-1.0); const ll mod = 1e9 + 7; const int MAXN = 1e6 + 5; ll gcd(ll a, ll b) { if(b == 0) return a; else return gcd(b, a % b); } void cp() { ll n, m, k; cin >> n >> m >> k; if((2 * n * m) % k) { cout << "NO\n"; return; } if(k & 1) { ll g = k; ll g1 = gcd(g, n), g2 = g / g1; ll ndash = n / g1; ll mdash = m / g2; if(2 * ndash <= n && mdash <= m) { cout << "YES\n"; cout << 0 << " " << 0 << endl; cout << 2 * ndash << " " << 0 << endl; cout << 0 << " " << mdash << endl; } else if(ndash <= n && 2 * mdash <= m) { cout << "YES\n"; cout << 0 << " " << 0 << endl; cout << ndash << " " << 0 << endl; cout << 0 << " " << 2 * mdash << endl; } else cout << "NO\n"; } else { k /= 2; ll g = k; ll g1 = gcd(g, n), g2 = g / g1; n /= g1, m /= g2; cout << "YES\n"; cout << 0 << " " << 0 << endl; cout << n << " " << 0 << endl; cout << 0 << " " << m << endl; } } int main() { FASTIO; int t; t = 1; // cin >> t; while(t--) { cp(); } return 0; }
[ "pranav.sindura@gmail.com" ]
pranav.sindura@gmail.com
feafdcb9ca12bfe42c593251b92feaf9ac0ceedd
7411c74add33b7050b94fe63c1141d29c5ff2dbc
/trunk/src/radar.cpp
0da19bc831b578795a01019574193c145745da91
[]
no_license
kgyrtkirk/networkers
d23a6cfc28d3c19b2544f3f76a34562b14ba070a
67c3cd72e9f99c25b2c75859ff3c832dc70f2b97
refs/heads/master
2016-09-06T08:12:23.043624
2015-08-13T13:05:34
2015-08-13T13:05:34
40,658,955
1
1
null
null
null
null
UTF-8
C++
false
false
3,496
cpp
#include "detectable.h" #include "radar.h" #include "com_point.h" #include "networker.h" #include "set.h" #include "nw_stat.h" Radar radar; void Radar::render() { cListCursor<Detectable> cr(&objects); Detectable* ent; steiner.render(); while((ent=cr.next())) ent->render(); } int Radar::get_fraction_size(int idx) { return fraction_size[idx]; } void Radar::step() { cListCursor<Detectable> cr(&objects); Detectable* ent; int nw_tower=0; int nw_recon=0; int cp_known=0; int cp_free=0; prepare(); timestamp++; steiner.clear(); while((ent=cr.next())) { switch(ent->getType()) { case T_COMPOINT: if(((ComPoint*)ent)->known) { steiner.addPoint(HVector(ent->pos[0],ent->pos[1],0,0)); // steiner.addPoint(ent->pos); cp_known++; } else cp_free++; break; case T_NETWORKER: switch(ent->getState()) { case S_TOWER: nw_tower++; break; case S_RECON: nw_recon++; break; } break; default: break; } ent->step(); } // printf("--step: %d %d\n",timestamp,nw_recon); // nw_tower=20; // LOG(MSG,"nwr%d",nw_recon); nws.gr_tower.add(nw_tower); nws.gr_recon.add(nw_recon); nws.gr_cp_known.add(cp_known); nws.gr_cp_free.add(cp_free); steiner.calculate(); } HVector& Radar::rand_point() { float x=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; float y=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; HVector *v=new HVector(x,y,0,0); return *v; } void Radar::createComPoint() { int l=20; DSet c; prepare(); while(l--) { float x=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; float y=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; c=collect(x,y,100.0); if(!c.size()) { objects.add(new ComPoint(x,y)); return; } } // ComPoint *cp=new ComPoint(); } void Radar::createRobot(int fraction,int count) { int l=20; prepare(); DSet c; while(l--) { float x=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; float y=(MAP_MAX-MAP_MIN)*drand48()+MAP_MIN; x/=7; y/=7; c=collect(x,y,100.0); // x=0.0f; // y=0.0f; if(!c.size() || l==0) { #ifdef _JUNK // int q=(int)sqrt(count); float sa=sin(l*M_PI_2/count)*l; for(l=0;l<count;l++) // objects.add(new NetWorker(l+1,x+(l%q)*25,y+(l/q)*25)); objects.add(new NetWorker(l+1,x+sa*cos(count/(l+1)),y+sa*sin(count/(l+1)))); return; #else fraction_size[fraction]+=count; for(l=0;l<count;l++) objects.add(new NetWorker(l+1,x,y)); return; #endif } } // ComPoint *cp=new ComPoint(); } DSet Radar::collect(float x,float y,float radius) { DSet list;//=new DSet(); cListCursor<Detectable> cr(&objects); // cXCursor cr2(&objects_x); Detectable* ent; Vec2D p(x,y); // float radius2=radius*radius; float R=radius*1.1f; // cmp_flt32 f; // cmp_flt32 s; // s.a=x-R; // cr2.reset(s); while(!list.full() && (ent=cr.next())) { if( ent->pos[0]+R > x && (ent->pos-p).mag() < radius ) list.add(ent); if( ent->pos[0] > x+R ) break; } // static int q=400; // if(--q==0) // exit(0); return list; } void Radar::prepare() { // uint32 l; objects.sort(); // l=objects.getsize(); } Detectable* Radar::look(Vec2D&pos) { cListCursor<Detectable> cr(&objects); Detectable *ent,*t=0; float d; while((ent=cr.next())) if(!t || (ent->pos-pos).mag() < d) { t=ent; d=(ent->pos-pos).mag(); } return t; } Radar::~Radar() { cListCursor<Detectable> cr(&objects); Detectable* ent; while((ent=cr.next())) delete ent; // cr.(); }
[ "znagy@chemaxon.com" ]
znagy@chemaxon.com
fd73ca520d932d15b25458e2d6953a1f2942b173
eef01cebbf69c1d5132793432578d931a40ce77c
/IF/Classes/Ext/CCMathUtils.h
82827d02baaca55ddbe392e214ead76a9aebda1d
[ "BSL-1.0" ]
permissive
atom-chen/zltx
0b2e78dd97fc94fa0448ba9832da148217f1a77d
8ead8fdddecd64b7737776c03417d73a82a6ff32
refs/heads/master
2022-12-03T05:02:45.624200
2017-03-29T02:58:10
2017-03-29T02:58:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,863
h
#ifndef __MATH_UTILS_H__ #define __MATH_UTILS_H__ #include "cocos2d.h" USING_NS_CC; #define PI 3.14159265 #define CCRANDOM_IN(left,right) left+(right-left)*CCRANDOM_0_1() class CCMathUtils { public: static int randCounter; static int getRandomInt(int min, int max); static int getRandomIntWithKey(int min, int max,int key); static float getRandom(float min=0, float max=1.0); static float getRandomWithKey(float min, float max,int key); static int getRandomPlusOrMinus(); static float getAngle(CCPoint from, CCPoint to); static int getCurrentTime();//取得的是毫秒 }; class CircleDoubleRect { public: CircleDoubleRect(float originX,float originY,float fR) { //out circle mOutQuad.x = originX - fR; mOutQuad.y = originY - fR; mOutQuad.r = originX + fR; mOutQuad.b = originY + fR; //in circle float f2 = 0.707*fR; mInQuad.x = originX - f2; mInQuad.y = originY - f2; mInQuad.r = originX + f2; mInQuad.b = originY + f2; fR2 = fR*fR; } inline bool canReach(CCPoint& point) { bool bAttack = false; if (inRect(point,mOutQuad)) { if (inRect(point,mInQuad)) { bAttack = true; }else { if(point.getDistanceSq(point) <= fR2) bAttack = true; } } return bAttack; } inline bool inOutQuad(CCPoint& point){ return inRect(point, mOutQuad); } inline bool inInQuad(CCPoint& point){ return inRect(point,mInQuad); } private: struct JArea { float x; float y; float r; float b; }; JArea mOutQuad; JArea mInQuad; float fR2; inline bool inRect(CCPoint& point,JArea& target) { bool bRet = false; if (point.x >= target.x && point.x <= target.r && point.y >= target.y && point.y <= target.b) { bRet = true; } return bRet; } }; #endif //__MATH_UTILS_H__
[ "441066277@qq.com" ]
441066277@qq.com
99ce17fe23f4f4897352e2ae94d3354c078ff477
228661501fe881e67465e2ea6c5b1ca206986d05
/doki_square/comm/jce_protocol/include/doki_api_extend.h
2dd99cfae1fd0304fac5132dc0e4afdef225f39d
[]
no_license
P79N6A/spp
bc69c63ec7330d0277f2e0d3076fe08f49171490
d4ecf7bdc51c1af8f843f31a102275a08f2f6c26
refs/heads/master
2020-04-24T09:44:12.143782
2019-02-21T12:51:54
2019-02-21T12:51:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
37,095
h
// ********************************************************************** // This file was generated by a TAF parser! // TAF version 3.1.1.2 by WSRD Tencent. // Generated from `doki_api_extend.jce' // ********************************************************************** #ifndef __DOKI_API_EXTEND_H_ #define __DOKI_API_EXTEND_H_ #include <map> #include <string> #include <vector> #include "jce/Jce.h" using namespace std; namespace DokiAPI { enum CMD { CMD_JOIN_WELCOME = 63990, CMD_FANS_COUNT_BY_FEED = 63999, CMD_GET_USR_IN_DOKI_INFO = 64001, CMD_FLW_MSG = 60457, CMD_FLW_DOKI_LIST = 64329, CMD_APP_FLW_DOKI_LIST = 64384, }; inline string etos(const CMD & e) { switch(e) { case CMD_JOIN_WELCOME: return "CMD_JOIN_WELCOME"; case CMD_FANS_COUNT_BY_FEED: return "CMD_FANS_COUNT_BY_FEED"; case CMD_GET_USR_IN_DOKI_INFO: return "CMD_GET_USR_IN_DOKI_INFO"; case CMD_FLW_MSG: return "CMD_FLW_MSG"; case CMD_FLW_DOKI_LIST: return "CMD_FLW_DOKI_LIST"; case CMD_APP_FLW_DOKI_LIST: return "CMD_APP_FLW_DOKI_LIST"; default: return ""; } } inline int stoe(const string & s, CMD & e) { if(s == "CMD_JOIN_WELCOME") { e=CMD_JOIN_WELCOME; return 0;} if(s == "CMD_FANS_COUNT_BY_FEED") { e=CMD_FANS_COUNT_BY_FEED; return 0;} if(s == "CMD_GET_USR_IN_DOKI_INFO") { e=CMD_GET_USR_IN_DOKI_INFO; return 0;} if(s == "CMD_FLW_MSG") { e=CMD_FLW_MSG; return 0;} if(s == "CMD_FLW_DOKI_LIST") { e=CMD_FLW_DOKI_LIST; return 0;} if(s == "CMD_APP_FLW_DOKI_LIST") { e=CMD_APP_FLW_DOKI_LIST; return 0;} return -1; } enum EMixedInfoKey { ELETTER = 1, EVOICE = 2, EUSR_NICK = 3, EDOKI_NICK = 4, ERANK = 5, ELETTER_AUTHOR_NICK = 6, EBADGE = 7, EBADGE_LEVEL = 8, EDOKI_HEADER = 9, ELETTER_AUTHOR_HEADER = 10, EDOKI_CUTOUT = 11, EJOIN_TIME = 12, }; inline string etos(const EMixedInfoKey & e) { switch(e) { case ELETTER: return "ELETTER"; case EVOICE: return "EVOICE"; case EUSR_NICK: return "EUSR_NICK"; case EDOKI_NICK: return "EDOKI_NICK"; case ERANK: return "ERANK"; case ELETTER_AUTHOR_NICK: return "ELETTER_AUTHOR_NICK"; case EBADGE: return "EBADGE"; case EBADGE_LEVEL: return "EBADGE_LEVEL"; case EDOKI_HEADER: return "EDOKI_HEADER"; case ELETTER_AUTHOR_HEADER: return "ELETTER_AUTHOR_HEADER"; case EDOKI_CUTOUT: return "EDOKI_CUTOUT"; case EJOIN_TIME: return "EJOIN_TIME"; default: return ""; } } inline int stoe(const string & s, EMixedInfoKey & e) { if(s == "ELETTER") { e=ELETTER; return 0;} if(s == "EVOICE") { e=EVOICE; return 0;} if(s == "EUSR_NICK") { e=EUSR_NICK; return 0;} if(s == "EDOKI_NICK") { e=EDOKI_NICK; return 0;} if(s == "ERANK") { e=ERANK; return 0;} if(s == "ELETTER_AUTHOR_NICK") { e=ELETTER_AUTHOR_NICK; return 0;} if(s == "EBADGE") { e=EBADGE; return 0;} if(s == "EBADGE_LEVEL") { e=EBADGE_LEVEL; return 0;} if(s == "EDOKI_HEADER") { e=EDOKI_HEADER; return 0;} if(s == "ELETTER_AUTHOR_HEADER") { e=ELETTER_AUTHOR_HEADER; return 0;} if(s == "EDOKI_CUTOUT") { e=EDOKI_CUTOUT; return 0;} if(s == "EJOIN_TIME") { e=EJOIN_TIME; return 0;} return -1; } enum EDokiType { EDOKI_STAR = 0, EDOKI_VIDEO = 1, EDOKI_INTEREST = 2, EDOKI_INNER = 3, EDOKI_GAME = 4, EDOKI_PHOTO = 5, EDOKI_ACGN = 6, EDOKI_ANIME = 7, EDOKI_NOVEL = 8, EDOKI_ALLTYPE = 1000, EDOKI_GROUP_ACGN = 2000, }; inline string etos(const EDokiType & e) { switch(e) { case EDOKI_STAR: return "EDOKI_STAR"; case EDOKI_VIDEO: return "EDOKI_VIDEO"; case EDOKI_INTEREST: return "EDOKI_INTEREST"; case EDOKI_INNER: return "EDOKI_INNER"; case EDOKI_GAME: return "EDOKI_GAME"; case EDOKI_PHOTO: return "EDOKI_PHOTO"; case EDOKI_ACGN: return "EDOKI_ACGN"; case EDOKI_ANIME: return "EDOKI_ANIME"; case EDOKI_NOVEL: return "EDOKI_NOVEL"; case EDOKI_ALLTYPE: return "EDOKI_ALLTYPE"; case EDOKI_GROUP_ACGN: return "EDOKI_GROUP_ACGN"; default: return ""; } } inline int stoe(const string & s, EDokiType & e) { if(s == "EDOKI_STAR") { e=EDOKI_STAR; return 0;} if(s == "EDOKI_VIDEO") { e=EDOKI_VIDEO; return 0;} if(s == "EDOKI_INTEREST") { e=EDOKI_INTEREST; return 0;} if(s == "EDOKI_INNER") { e=EDOKI_INNER; return 0;} if(s == "EDOKI_GAME") { e=EDOKI_GAME; return 0;} if(s == "EDOKI_PHOTO") { e=EDOKI_PHOTO; return 0;} if(s == "EDOKI_ACGN") { e=EDOKI_ACGN; return 0;} if(s == "EDOKI_ANIME") { e=EDOKI_ANIME; return 0;} if(s == "EDOKI_NOVEL") { e=EDOKI_NOVEL; return 0;} if(s == "EDOKI_ALLTYPE") { e=EDOKI_ALLTYPE; return 0;} if(s == "EDOKI_GROUP_ACGN") { e=EDOKI_GROUP_ACGN; return 0;} return -1; } enum EDokiListScene { ELS_TEMPRARY = 0, ELS_ACGN = 1, ELS_ACGN_RECC = 2, }; inline string etos(const EDokiListScene & e) { switch(e) { case ELS_TEMPRARY: return "ELS_TEMPRARY"; case ELS_ACGN: return "ELS_ACGN"; case ELS_ACGN_RECC: return "ELS_ACGN_RECC"; default: return ""; } } inline int stoe(const string & s, EDokiListScene & e) { if(s == "ELS_TEMPRARY") { e=ELS_TEMPRARY; return 0;} if(s == "ELS_ACGN") { e=ELS_ACGN; return 0;} if(s == "ELS_ACGN_RECC") { e=ELS_ACGN_RECC; return 0;} return -1; } struct stFeedFansCountReq : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFeedFansCountReq"; } static string MD5() { return "8d61b639cda77ea57102c6b9cbb5aca2"; } stFeedFansCountReq() :strFeedId(""),strDokiid(""),iFrom(0) { } void resetDefautlt() { strFeedId = ""; strDokiid = ""; iFrom = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strFeedId, 0); _os.write(strDokiid, 1); _os.write(iFrom, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strFeedId, 0, true); _is.read(strDokiid, 1, true); _is.read(iFrom, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strFeedId,"strFeedId"); _ds.display(strDokiid,"strDokiid"); _ds.display(iFrom,"iFrom"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strFeedId, true); _ds.displaySimple(strDokiid, true); _ds.displaySimple(iFrom, false); return _os; } public: std::string strFeedId; std::string strDokiid; taf::Int32 iFrom; }; inline bool operator==(const stFeedFansCountReq&l, const stFeedFansCountReq&r) { return l.strFeedId == r.strFeedId && l.strDokiid == r.strDokiid && l.iFrom == r.iFrom; } inline bool operator!=(const stFeedFansCountReq&l, const stFeedFansCountReq&r) { return !(l == r); } struct stFeedFansCountRsp : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFeedFansCountRsp"; } static string MD5() { return "5776fd7103fcea055637c7e8b9708bb0"; } stFeedFansCountRsp() :errCode(0),strErrMsg(""),iFansCount(0) { } void resetDefautlt() { errCode = 0; strErrMsg = ""; iFansCount = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(errCode, 0); _os.write(strErrMsg, 1); _os.write(iFansCount, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(errCode, 0, false); _is.read(strErrMsg, 1, false); _is.read(iFansCount, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(errCode,"errCode"); _ds.display(strErrMsg,"strErrMsg"); _ds.display(iFansCount,"iFansCount"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(errCode, true); _ds.displaySimple(strErrMsg, true); _ds.displaySimple(iFansCount, false); return _os; } public: taf::Int32 errCode; std::string strErrMsg; taf::Int32 iFansCount; }; inline bool operator==(const stFeedFansCountRsp&l, const stFeedFansCountRsp&r) { return l.errCode == r.errCode && l.strErrMsg == r.strErrMsg && l.iFansCount == r.iFansCount; } inline bool operator!=(const stFeedFansCountRsp&l, const stFeedFansCountRsp&r) { return !(l == r); } struct stUsrInDoki : public taf::JceStructBase { public: static string className() { return "DokiAPI.stUsrInDoki"; } static string MD5() { return "014f7673a32df92dc50b63b329b6a89c"; } stUsrInDoki() :iFlwStat(0),lAttentTime(0),lRank(0) { } void resetDefautlt() { iFlwStat = 0; lAttentTime = 0; lRank = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(iFlwStat, 0); _os.write(lAttentTime, 1); _os.write(lRank, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(iFlwStat, 0, false); _is.read(lAttentTime, 1, false); _is.read(lRank, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(iFlwStat,"iFlwStat"); _ds.display(lAttentTime,"lAttentTime"); _ds.display(lRank,"lRank"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(iFlwStat, true); _ds.displaySimple(lAttentTime, true); _ds.displaySimple(lRank, false); return _os; } public: taf::Int32 iFlwStat; taf::Int64 lAttentTime; taf::Int64 lRank; }; inline bool operator==(const stUsrInDoki&l, const stUsrInDoki&r) { return l.iFlwStat == r.iFlwStat && l.lAttentTime == r.lAttentTime && l.lRank == r.lRank; } inline bool operator!=(const stUsrInDoki&l, const stUsrInDoki&r) { return !(l == r); } struct stGetUsrInDokiInfoReq : public taf::JceStructBase { public: static string className() { return "DokiAPI.stGetUsrInDokiInfoReq"; } static string MD5() { return "875129a7bc7fd722fb6e6a53bbfb3645"; } stGetUsrInDokiInfoReq() :strVuid(""),iFrom(0) { } void resetDefautlt() { strVuid = ""; iFrom = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(vecDokiid, 0); _os.write(strVuid, 1); _os.write(iFrom, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(vecDokiid, 0, true); _is.read(strVuid, 1, true); _is.read(iFrom, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(vecDokiid,"vecDokiid"); _ds.display(strVuid,"strVuid"); _ds.display(iFrom,"iFrom"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(vecDokiid, true); _ds.displaySimple(strVuid, true); _ds.displaySimple(iFrom, false); return _os; } public: vector<std::string> vecDokiid; std::string strVuid; taf::Int32 iFrom; }; inline bool operator==(const stGetUsrInDokiInfoReq&l, const stGetUsrInDokiInfoReq&r) { return l.vecDokiid == r.vecDokiid && l.strVuid == r.strVuid && l.iFrom == r.iFrom; } inline bool operator!=(const stGetUsrInDokiInfoReq&l, const stGetUsrInDokiInfoReq&r) { return !(l == r); } struct stGetUsrInDokiInfoRsp : public taf::JceStructBase { public: static string className() { return "DokiAPI.stGetUsrInDokiInfoRsp"; } static string MD5() { return "75c7f2395c16ac274f5ca4c793234051"; } stGetUsrInDokiInfoRsp() :errCode(0),strErrMsg("") { } void resetDefautlt() { errCode = 0; strErrMsg = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(errCode, 0); _os.write(strErrMsg, 1); _os.write(mpDokiidToUsrInfo, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(errCode, 0, true); _is.read(strErrMsg, 1, false); _is.read(mpDokiidToUsrInfo, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(errCode,"errCode"); _ds.display(strErrMsg,"strErrMsg"); _ds.display(mpDokiidToUsrInfo,"mpDokiidToUsrInfo"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(errCode, true); _ds.displaySimple(strErrMsg, true); _ds.displaySimple(mpDokiidToUsrInfo, false); return _os; } public: taf::Int32 errCode; std::string strErrMsg; map<std::string, DokiAPI::stUsrInDoki> mpDokiidToUsrInfo; }; inline bool operator==(const stGetUsrInDokiInfoRsp&l, const stGetUsrInDokiInfoRsp&r) { return l.errCode == r.errCode && l.strErrMsg == r.strErrMsg && l.mpDokiidToUsrInfo == r.mpDokiidToUsrInfo; } inline bool operator!=(const stGetUsrInDokiInfoRsp&l, const stGetUsrInDokiInfoRsp&r) { return !(l == r); } struct stFlwDokiMsg : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFlwDokiMsg"; } static string MD5() { return "0c1d945735360d4e3752e1b2d448ba0c"; } stFlwDokiMsg() :strVuid(""),strDokiid(""),strDataKey("") { } void resetDefautlt() { strVuid = ""; strDokiid = ""; strDataKey = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strVuid, 0); _os.write(strDokiid, 1); _os.write(strDataKey, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strVuid, 0, true); _is.read(strDokiid, 1, true); _is.read(strDataKey, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strVuid,"strVuid"); _ds.display(strDokiid,"strDokiid"); _ds.display(strDataKey,"strDataKey"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strVuid, true); _ds.displaySimple(strDokiid, true); _ds.displaySimple(strDataKey, false); return _os; } public: std::string strVuid; std::string strDokiid; std::string strDataKey; }; inline bool operator==(const stFlwDokiMsg&l, const stFlwDokiMsg&r) { return l.strVuid == r.strVuid && l.strDokiid == r.strDokiid && l.strDataKey == r.strDataKey; } inline bool operator!=(const stFlwDokiMsg&l, const stFlwDokiMsg&r) { return !(l == r); } struct stKeyFan : public taf::JceStructBase { public: static string className() { return "DokiAPI.stKeyFan"; } static string MD5() { return "55420b345e13da84aad635417b0d3f4b"; } stKeyFan() :strIcon(""),strReason(""),strNick(""),strVuid("") { } void resetDefautlt() { strIcon = ""; strReason = ""; strNick = ""; strVuid = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strIcon, 0); _os.write(strReason, 1); _os.write(strNick, 2); _os.write(strVuid, 3); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strIcon, 0, false); _is.read(strReason, 1, false); _is.read(strNick, 2, false); _is.read(strVuid, 3, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strIcon,"strIcon"); _ds.display(strReason,"strReason"); _ds.display(strNick,"strNick"); _ds.display(strVuid,"strVuid"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strIcon, true); _ds.displaySimple(strReason, true); _ds.displaySimple(strNick, true); _ds.displaySimple(strVuid, false); return _os; } public: std::string strIcon; std::string strReason; std::string strNick; std::string strVuid; }; inline bool operator==(const stKeyFan&l, const stKeyFan&r) { return l.strIcon == r.strIcon && l.strReason == r.strReason && l.strNick == r.strNick && l.strVuid == r.strVuid; } inline bool operator!=(const stKeyFan&l, const stKeyFan&r) { return !(l == r); } struct stJoinDokiMsgReq : public taf::JceStructBase { public: static string className() { return "DokiAPI.stJoinDokiMsgReq"; } static string MD5() { return "8d61b639cda77ea57102c6b9cbb5aca2"; } stJoinDokiMsgReq() :strDokiid(""),strVuid(""),iScene(0) { } void resetDefautlt() { strDokiid = ""; strVuid = ""; iScene = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strDokiid, 0); _os.write(strVuid, 1); _os.write(iScene, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strDokiid, 0, true); _is.read(strVuid, 1, false); _is.read(iScene, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strDokiid,"strDokiid"); _ds.display(strVuid,"strVuid"); _ds.display(iScene,"iScene"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strDokiid, true); _ds.displaySimple(strVuid, true); _ds.displaySimple(iScene, false); return _os; } public: std::string strDokiid; std::string strVuid; taf::Int32 iScene; }; inline bool operator==(const stJoinDokiMsgReq&l, const stJoinDokiMsgReq&r) { return l.strDokiid == r.strDokiid && l.strVuid == r.strVuid && l.iScene == r.iScene; } inline bool operator!=(const stJoinDokiMsgReq&l, const stJoinDokiMsgReq&r) { return !(l == r); } struct stJoinDokiMsgRsp : public taf::JceStructBase { public: static string className() { return "DokiAPI.stJoinDokiMsgRsp"; } static string MD5() { return "96ce6c88564b0a5b24beb329a71ea2d9"; } stJoinDokiMsgRsp() :errCode(0),strErrMsg("") { } void resetDefautlt() { errCode = 0; strErrMsg = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(errCode, 0); _os.write(strErrMsg, 1); _os.write(mpMixedInfo, 2); _os.write(vecKeyFan, 3); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(errCode, 0, true); _is.read(strErrMsg, 1, false); _is.read(mpMixedInfo, 2, false); _is.read(vecKeyFan, 3, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(errCode,"errCode"); _ds.display(strErrMsg,"strErrMsg"); _ds.display(mpMixedInfo,"mpMixedInfo"); _ds.display(vecKeyFan,"vecKeyFan"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(errCode, true); _ds.displaySimple(strErrMsg, true); _ds.displaySimple(mpMixedInfo, true); _ds.displaySimple(vecKeyFan, false); return _os; } public: taf::Int32 errCode; std::string strErrMsg; map<std::string, std::string> mpMixedInfo; vector<DokiAPI::stKeyFan> vecKeyFan; }; inline bool operator==(const stJoinDokiMsgRsp&l, const stJoinDokiMsgRsp&r) { return l.errCode == r.errCode && l.strErrMsg == r.strErrMsg && l.mpMixedInfo == r.mpMixedInfo && l.vecKeyFan == r.vecKeyFan; } inline bool operator!=(const stJoinDokiMsgRsp&l, const stJoinDokiMsgRsp&r) { return !(l == r); } struct stFeedFan : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFeedFan"; } static string MD5() { return "325d87d477a8cf7a6468ed6bb39da964"; } stFeedFan() :strVuid(""),strNum("") { } void resetDefautlt() { strVuid = ""; strNum = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strVuid, 0); _os.write(strNum, 1); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strVuid, 0, false); _is.read(strNum, 1, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strVuid,"strVuid"); _ds.display(strNum,"strNum"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strVuid, true); _ds.displaySimple(strNum, false); return _os; } public: std::string strVuid; std::string strNum; }; inline bool operator==(const stFeedFan&l, const stFeedFan&r) { return l.strVuid == r.strVuid && l.strNum == r.strNum; } inline bool operator!=(const stFeedFan&l, const stFeedFan&r) { return !(l == r); } struct stFeedFansReq : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFeedFansReq"; } static string MD5() { return "0d2ce2bfc4eeee1ad30063b5f17a7f57"; } stFeedFansReq() :strDokiid(""),iTopN(0) { } void resetDefautlt() { strDokiid = ""; iTopN = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strDokiid, 0); _os.write(iTopN, 1); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strDokiid, 0, true); _is.read(iTopN, 1, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strDokiid,"strDokiid"); _ds.display(iTopN,"iTopN"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strDokiid, true); _ds.displaySimple(iTopN, false); return _os; } public: std::string strDokiid; taf::Int32 iTopN; }; inline bool operator==(const stFeedFansReq&l, const stFeedFansReq&r) { return l.strDokiid == r.strDokiid && l.iTopN == r.iTopN; } inline bool operator!=(const stFeedFansReq&l, const stFeedFansReq&r) { return !(l == r); } struct stFeedFansRsp : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFeedFansRsp"; } static string MD5() { return "f3059977694c4c2b48c8fc48d119692b"; } stFeedFansRsp() :errCode(0),strErrMsg("") { } void resetDefautlt() { errCode = 0; strErrMsg = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(errCode, 0); _os.write(strErrMsg, 1); _os.write(vecFeedFan, 2); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(errCode, 0, true); _is.read(strErrMsg, 1, false); _is.read(vecFeedFan, 2, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(errCode,"errCode"); _ds.display(strErrMsg,"strErrMsg"); _ds.display(vecFeedFan,"vecFeedFan"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(errCode, true); _ds.displaySimple(strErrMsg, true); _ds.displaySimple(vecFeedFan, false); return _os; } public: taf::Int32 errCode; std::string strErrMsg; vector<DokiAPI::stFeedFan> vecFeedFan; }; inline bool operator==(const stFeedFansRsp&l, const stFeedFansRsp&r) { return l.errCode == r.errCode && l.strErrMsg == r.strErrMsg && l.vecFeedFan == r.vecFeedFan; } inline bool operator!=(const stFeedFansRsp&l, const stFeedFansRsp&r) { return !(l == r); } struct stFlwDokiListReq : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFlwDokiListReq"; } static string MD5() { return "31b837dee0e3f970aa2d14771bf49d74"; } stFlwDokiListReq() :strVuid(""),iDokiType(0),iSortFlag(0),iScene(0) { } void resetDefautlt() { strVuid = ""; iDokiType = 0; iSortFlag = 0; iScene = 0; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(strVuid, 0); _os.write(iDokiType, 1); _os.write(iSortFlag, 2); _os.write(iScene, 3); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(strVuid, 0, true); _is.read(iDokiType, 1, false); _is.read(iSortFlag, 2, false); _is.read(iScene, 3, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(strVuid,"strVuid"); _ds.display(iDokiType,"iDokiType"); _ds.display(iSortFlag,"iSortFlag"); _ds.display(iScene,"iScene"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(strVuid, true); _ds.displaySimple(iDokiType, true); _ds.displaySimple(iSortFlag, true); _ds.displaySimple(iScene, false); return _os; } public: std::string strVuid; taf::Int32 iDokiType; taf::Int32 iSortFlag; taf::Int32 iScene; }; inline bool operator==(const stFlwDokiListReq&l, const stFlwDokiListReq&r) { return l.strVuid == r.strVuid && l.iDokiType == r.iDokiType && l.iSortFlag == r.iSortFlag && l.iScene == r.iScene; } inline bool operator!=(const stFlwDokiListReq&l, const stFlwDokiListReq&r) { return !(l == r); } struct stFlwDokiListRsp : public taf::JceStructBase { public: static string className() { return "DokiAPI.stFlwDokiListRsp"; } static string MD5() { return "0e03d5ff7d302c16224cbeeaae16f018"; } stFlwDokiListRsp() :errCode(0),strErrMsg("") { } void resetDefautlt() { errCode = 0; strErrMsg = ""; } template<typename WriterT> void writeTo(taf::JceOutputStream<WriterT>& _os) const { _os.write(errCode, 0); _os.write(strErrMsg, 1); _os.write(vecDokiList, 2); _os.write(mpDokiid2NameId, 3); } template<typename ReaderT> void readFrom(taf::JceInputStream<ReaderT>& _is) { resetDefautlt(); _is.read(errCode, 0, false); _is.read(strErrMsg, 1, false); _is.read(vecDokiList, 2, false); _is.read(mpDokiid2NameId, 3, false); } ostream& display(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.display(errCode,"errCode"); _ds.display(strErrMsg,"strErrMsg"); _ds.display(vecDokiList,"vecDokiList"); _ds.display(mpDokiid2NameId,"mpDokiid2NameId"); return _os; } ostream& displaySimple(ostream& _os, int _level=0) const { taf::JceDisplayer _ds(_os, _level); _ds.displaySimple(errCode, true); _ds.displaySimple(strErrMsg, true); _ds.displaySimple(vecDokiList, true); _ds.displaySimple(mpDokiid2NameId, false); return _os; } public: taf::Int32 errCode; std::string strErrMsg; vector<std::string> vecDokiList; map<std::string, std::string> mpDokiid2NameId; }; inline bool operator==(const stFlwDokiListRsp&l, const stFlwDokiListRsp&r) { return l.errCode == r.errCode && l.strErrMsg == r.strErrMsg && l.vecDokiList == r.vecDokiList && l.mpDokiid2NameId == r.mpDokiid2NameId; } inline bool operator!=(const stFlwDokiListRsp&l, const stFlwDokiListRsp&r) { return !(l == r); } } #define DokiAPI_stFeedFansCountReq_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strFeedId,b.strFeedId);jce_copy_struct(a.strDokiid,b.strDokiid);jce_copy_struct(a.iFrom,b.iFrom); #define DokiAPI_stFeedFansCountRsp_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.errCode,b.errCode);jce_copy_struct(a.strErrMsg,b.strErrMsg);jce_copy_struct(a.iFansCount,b.iFansCount); #define DokiAPI_stUsrInDoki_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.iFlwStat,b.iFlwStat);jce_copy_struct(a.lAttentTime,b.lAttentTime);jce_copy_struct(a.lRank,b.lRank); #define DokiAPI_stGetUsrInDokiInfoReq_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.vecDokiid,b.vecDokiid);jce_copy_struct(a.strVuid,b.strVuid);jce_copy_struct(a.iFrom,b.iFrom); #define DokiAPI_stGetUsrInDokiInfoRsp_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.errCode,b.errCode);jce_copy_struct(a.strErrMsg,b.strErrMsg);jce_copy_struct(a.mpDokiidToUsrInfo,b.mpDokiidToUsrInfo); #define DokiAPI_stFlwDokiMsg_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strVuid,b.strVuid);jce_copy_struct(a.strDokiid,b.strDokiid);jce_copy_struct(a.strDataKey,b.strDataKey); #define DokiAPI_stKeyFan_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strIcon,b.strIcon);jce_copy_struct(a.strReason,b.strReason);jce_copy_struct(a.strNick,b.strNick);jce_copy_struct(a.strVuid,b.strVuid); #define DokiAPI_stJoinDokiMsgReq_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strDokiid,b.strDokiid);jce_copy_struct(a.strVuid,b.strVuid);jce_copy_struct(a.iScene,b.iScene); #define DokiAPI_stJoinDokiMsgRsp_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.errCode,b.errCode);jce_copy_struct(a.strErrMsg,b.strErrMsg);jce_copy_struct(a.mpMixedInfo,b.mpMixedInfo);jce_copy_struct(a.vecKeyFan,b.vecKeyFan); #define DokiAPI_stFeedFan_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strVuid,b.strVuid);jce_copy_struct(a.strNum,b.strNum); #define DokiAPI_stFeedFansReq_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strDokiid,b.strDokiid);jce_copy_struct(a.iTopN,b.iTopN); #define DokiAPI_stFeedFansRsp_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.errCode,b.errCode);jce_copy_struct(a.strErrMsg,b.strErrMsg);jce_copy_struct(a.vecFeedFan,b.vecFeedFan); #define DokiAPI_stFlwDokiListReq_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.strVuid,b.strVuid);jce_copy_struct(a.iDokiType,b.iDokiType);jce_copy_struct(a.iSortFlag,b.iSortFlag);jce_copy_struct(a.iScene,b.iScene); #define DokiAPI_stFlwDokiListRsp_JCE_COPY_STRUCT_HELPER \ jce_copy_struct(a.errCode,b.errCode);jce_copy_struct(a.strErrMsg,b.strErrMsg);jce_copy_struct(a.vecDokiList,b.vecDokiList);jce_copy_struct(a.mpDokiid2NameId,b.mpDokiid2NameId); #endif
[ "181330729@qq.com" ]
181330729@qq.com
2069a33c78d9b98d1d35775b071f211328a9a200
1fc03d2d7fab6aa76bac20d9e209f4ee793e458b
/ipasir/sat/cryptominisat4/src/solvefeatures.cpp
c8be6150d6905a8525128dbffcbb410c70a723ac
[ "MIT" ]
permissive
yosid16/logic
45f887ba1bb11de35ea6a0980fbe8cee66d75e99
64d50680cba9d4d43d4f209dd1cd91904e25a015
refs/heads/master
2021-01-11T12:05:53.620540
2017-03-04T20:13:30
2017-03-04T20:13:30
79,369,707
0
0
null
null
null
null
UTF-8
C++
false
false
4,836
cpp
/* * CryptoMiniSat * * Copyright (c) 2009-2015, Mate Soos. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation * version 2.0 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ #include "solvefeatures.h" #include <iostream> using std::string; using std::cout; using std::endl; using namespace CMSat; void SolveFeatures::print_stats() const { cout << "c [features] "; cout << "numVars " << numVars << ", "; cout << "numClauses " << numClauses << ", "; cout << "var_cl_ratio " << var_cl_ratio << ", "; //Clause distribution cout << "binary " << binary << ", "; cout << "trinary " << trinary << ", "; cout << "horn " << horn << ", "; cout << "horn_mean " << horn_mean << ", "; cout << "horn_std " << horn_std << ", "; cout << "horn_min " << horn_min << ", "; cout << "horn_max " << horn_max << ", "; cout << "horn_spread " << horn_spread << ", "; cout << "vcg_var_mean " << vcg_var_mean << ", "; cout << "vcg_var_std " << vcg_var_std << ", "; cout << "vcg_var_min " << vcg_var_min << ", "; cout << "vcg_var_max " << vcg_var_max << ", "; cout << "vcg_var_spread " << vcg_var_spread << ", "; cout << "vcg_cls_mean " << vcg_cls_mean << ", "; cout << "vcg_cls_std " << vcg_cls_std << ", "; cout << "vcg_cls_min " << vcg_cls_min << ", "; cout << "vcg_cls_max " << vcg_cls_max << ", "; cout << "vcg_cls_spread " << vcg_cls_spread << ", "; cout << "pnr_var_mean " << pnr_var_mean << ", "; cout << "pnr_var_std " << pnr_var_std << ", "; cout << "pnr_var_min " << pnr_var_min << ", "; cout << "pnr_var_max " << pnr_var_max << ", "; cout << "pnr_var_spread " << pnr_var_spread << ", "; cout << "pnr_cls_mean " << pnr_cls_mean << ", "; cout << "pnr_cls_std " << pnr_cls_std << ", "; cout << "pnr_cls_min " << pnr_cls_min << ", "; cout << "pnr_cls_max " << pnr_cls_max << ", "; cout << "pnr_cls_spread " << pnr_cls_spread << ", "; //Conflicts cout << "avg_confl_size " << avg_confl_size << ", "; cout << "confl_size_min " << confl_size_min << ", "; cout << "confl_size_max " << confl_size_max << ", "; cout << "avg_confl_glue " << avg_confl_glue << ", "; cout << "confl_glue_min " << confl_glue_min << ", "; cout << "confl_glue_max " << confl_glue_max << ", "; cout << "avg_num_resolutions " << avg_num_resolutions << ", "; cout << "num_resolutions_min " << num_resolutions_min << ", "; cout << "num_resolutions_max " << num_resolutions_max << ", "; cout << "learnt_bins_per_confl " << learnt_bins_per_confl << ", "; cout << "learnt_tris_per_confl "<< learnt_tris_per_confl << ", "; //Search cout << "avg_branch_depth " << avg_branch_depth << ", "; cout << "branch_depth_min " << branch_depth_min << ", "; cout << "branch_depth_max " << branch_depth_max << ", "; cout << "avg_trail_depth_delta " << avg_trail_depth_delta << ", "; cout << "trail_depth_delta_min " << trail_depth_delta_min << ", "; cout << "trail_depth_delta_max " << trail_depth_delta_max << ", "; cout << "avg_branch_depth_delta " << avg_branch_depth_delta << ", "; cout << "props_per_confl " << props_per_confl << ", "; cout << "confl_per_restart " << confl_per_restart << ", "; cout << "decisions_per_conflict " << decisions_per_conflict << ", "; //distributions irred_cl_distrib.print("irred_cl_distrib."); red_cl_distrib.print("red_cl_distrib."); cout << "num_gates_found_last " << num_gates_found_last << ", "; cout << "num_xors_found_last " << num_xors_found_last; cout << endl; } void SolveFeatures::Distrib::print(const string& pre_print) const { cout << pre_print <<"glue_distr_mean " << glue_distr_mean << ", "; cout << pre_print <<"glue_distr_var " << glue_distr_var << ", "; cout << pre_print <<"size_distr_mean " << size_distr_mean << ", "; cout << pre_print <<"size_distr_var " << size_distr_var << ", "; cout << pre_print <<"uip_use_distr_mean " << 0 << ", "; cout << pre_print <<"uip_use_distr_var " << 0 << ", "; cout << pre_print <<"activity_distr_mean " << activity_distr_mean << ", "; cout << pre_print <<"activity_distr_var " << activity_distr_var << ", "; }
[ "yosid16@gmail.com" ]
yosid16@gmail.com
6c1d797394876ebe37e2832eb6edd4b4b262d965
e41c19ea63b8e9e486cc57ef883f084440867564
/TobExEE/src/lib/engpriestbk.h
b0cc433e38807351c5e14ba3961884adab935cb1
[]
no_license
Ascension64/TobEx
33700394d0c5699bcf1cdc0425533402c273bbf4
b5c43d7f0799edb8a40873732d65cd06c60db047
refs/heads/master
2021-01-02T08:10:31.073023
2013-04-27T13:30:32
2013-04-27T13:30:32
3,049,458
8
4
null
null
null
null
UTF-8
C++
false
false
533
h
//TobExEE #ifndef ENGPRIESTBK_H #define ENGPRIESTBK_H #include "engine.h" class CScreenPriestBook : public CEngine { //Size 854h public: CHotkey m_keymap[95]; //d0h, size 474h int m_keybuffer[95]; //544h, size 17Ch int u6c0; CVidCell u6c4; int u788; int u78c; int u790; int u794; int u798; int u79c; IECPtrList u7a0; ResRef u7bc; int u7c4; int u7c8; int u7cc; int u7d0; int u7d4; int u7d8; int u7dc; int u7e0; char u7e4; char p7e5[3]; CVidFont u7e8; CVidFont u80c; CVidFont u830; }; #endif //ENGPRIESTBK_H
[ "ascension6400@yahoo.com.au" ]
ascension6400@yahoo.com.au
4228f51bf98a2255208fc10f588d85abc0c08664
2d7236941560fe81a6390a744005128d451aa29d
/src/billiecoind.cpp
d57f1dba5b42124473d333d96b4ca54a075d893e
[ "MIT" ]
permissive
zero24x/billiecoin
1fcb2fa409c3940bd493d8ff7c8ebd754fe5c881
1b943b84aa687136edeb6c1fa258705a99157463
refs/heads/master
2020-12-23T22:32:08.313554
2020-01-30T20:23:10
2020-01-30T20:23:10
237,296,384
0
0
MIT
2020-01-30T20:11:16
2020-01-30T20:11:16
null
UTF-8
C++
false
false
7,102
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash and Syscoin Core developers // Copyright (c) 2018-2020 The Billiecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/billiecoin-config.h" #endif #include "chainparams.h" #include "clientversion.h" #include "compat.h" #include "rpc/server.h" #include "init.h" #include "noui.h" #include "scheduler.h" #include "util.h" #include "masternodeconfig.h" #include "httpserver.h" #include "httprpc.h" #include "utilstrencodings.h" #include <boost/algorithm/string/predicate.hpp> #include <boost/filesystem.hpp> #include <boost/thread.hpp> #include <stdio.h> /* Introduction text for doxygen: */ /*! \mainpage Developer documentation * * \section intro_sec Introduction * * This is the developer documentation of the reference client for an experimental new digital currency called Billiecoin (https://www.billiecoin.green/), * which enables instant payments to anyone, anywhere in the world. Billiecoin uses peer-to-peer technology to operate * with no central authority: managing transactions and issuing money are carried out collectively by the network. * * The software is a community-driven open source project, released under the MIT license. * * \section Navigation * Use the buttons <code>Namespaces</code>, <code>Classes</code> or <code>Files</code> at the top of the page to start navigating the code. */ void WaitForShutdown(boost::thread_group* threadGroup) { bool fShutdown = ShutdownRequested(); // Tell the main threads to shutdown. while (!fShutdown) { MilliSleep(200); fShutdown = ShutdownRequested(); } if (threadGroup) { Interrupt(*threadGroup); threadGroup->join_all(); } } ////////////////////////////////////////////////////////////////////////////// // // Start // bool AppInit(int argc, char* argv[]) { boost::thread_group threadGroup; CScheduler scheduler; bool fRet = false; // // Parameters // // If Qt is used, parameters/billiecoin.conf are parsed in qt/billiecoin.cpp's main() ParseParameters(argc, argv); // Process help and version before taking care about datadir if (IsArgSet("-?") || IsArgSet("-h") || IsArgSet("-help") || IsArgSet("-version")) { std::string strUsage = strprintf(_("%s Daemon"), _(PACKAGE_NAME)) + " " + _("version") + " " + FormatFullVersion() + "\n"; if (IsArgSet("-version")) { strUsage += FormatParagraph(LicenseInfo()); } else { strUsage += "\n" + _("Usage:") + "\n" + " billiecoind [options] " + strprintf(_("Start %s Daemon"), _(PACKAGE_NAME)) + "\n"; strUsage += "\n" + HelpMessage(HMM_BILLIECOIND); } fprintf(stdout, "%s", strUsage.c_str()); return true; } try { bool datadirFromCmdLine = IsArgSet("-datadir"); if (datadirFromCmdLine && !boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified data directory \"%s\" does not exist.\n", GetArg("-datadir", "").c_str()); return false; } try { ReadConfigFile(GetArg("-conf", BILLIECOIN_CONF_FILENAME)); } catch (const std::exception& e) { fprintf(stderr,"Error reading configuration file: %s\n", e.what()); return false; } if (!datadirFromCmdLine && !boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified data directory \"%s\" from config file does not exist.\n", GetArg("-datadir", "").c_str()); return EXIT_FAILURE; } // Check for -testnet or -regtest parameter (Params() calls are only valid after this clause) try { SelectParams(ChainNameFromCommandLine()); } catch (const std::exception& e) { fprintf(stderr, "Error: %s\n", e.what()); return false; } // parse masternode.conf std::string strErr; if(!masternodeConfig.read(strErr)) { fprintf(stderr,"Error reading masternode configuration file: %s\n", strErr.c_str()); return false; } // Command-line RPC bool fCommandLine = false; for (int i = 1; i < argc; i++) if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "billiecoin:")) fCommandLine = true; if (fCommandLine) { fprintf(stderr, "Error: There is no RPC client functionality in billiecoind anymore. Use the billiecoin-cli utility instead.\n"); exit(EXIT_FAILURE); } // -server defaults to true for billiecoind but not for the GUI so do this here SoftSetBoolArg("-server", true); // Set this early so that parameter interactions go to console InitLogging(); InitParameterInteraction(); if (!AppInitBasicSetup()) { // InitError will have been called with detailed error, which ends up on console exit(EXIT_FAILURE); } if (!AppInitParameterInteraction()) { // InitError will have been called with detailed error, which ends up on console exit(EXIT_FAILURE); } if (!AppInitSanityChecks()) { // InitError will have been called with detailed error, which ends up on console exit(EXIT_FAILURE); } if (GetBoolArg("-daemon", false)) { #if HAVE_DECL_DAEMON fprintf(stdout, "Billiecoin Core server starting\n"); // Daemonize if (daemon(1, 0)) { // don't chdir (1), do close FDs (0) fprintf(stderr, "Error: daemon() failed: %s\n", strerror(errno)); return false; } #else fprintf(stderr, "Error: -daemon is not supported on this operating system\n"); return false; #endif // HAVE_DECL_DAEMON } fRet = AppInitMain(threadGroup, scheduler); } catch (const std::exception& e) { PrintExceptionContinue(&e, "AppInit()"); } catch (...) { PrintExceptionContinue(NULL, "AppInit()"); } if (!fRet) { Interrupt(threadGroup); // threadGroup.join_all(); was left out intentionally here, because we didn't re-test all of // the startup-failure cases to make sure they don't result in a hang due to some // thread-blocking-waiting-for-another-thread-during-startup case } else { WaitForShutdown(&threadGroup); } Shutdown(); return fRet; } int main(int argc, char* argv[]) { SetupEnvironment(); // Connect billiecoind signal handlers noui_connect(); return (AppInit(argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE); }
[ "admin@coldwallet2020.com" ]
admin@coldwallet2020.com
2ce85b07a3e3349dbcaf8c31d12e459a9d97bbbb
4c23be1a0ca76f68e7146f7d098e26c2bbfb2650
/ic8h18/0.008/DC8H17O
6febf3a305dadce0bbc7f7387a745371ebc01b63
[]
no_license
labsandy/OpenFOAM_workspace
a74b473903ddbd34b31dc93917e3719bc051e379
6e0193ad9dabd613acf40d6b3ec4c0536c90aed4
refs/heads/master
2022-02-25T02:36:04.164324
2019-08-23T02:27:16
2019-08-23T02:27:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
839
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.008"; object DC8H17O; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 1.16796e-53; boundaryField { boundary { type empty; } } // ************************************************************************* //
[ "jfeatherstone123@gmail.com" ]
jfeatherstone123@gmail.com
dec30de7e34d45723dfd932e62b4bb0dc30e3516
536656cd89e4fa3a92b5dcab28657d60d1d244bd
/third_party/blink/renderer/core/css/css_default_style_sheets.cc
35b4ac04a48440fe3947f97266e03b7fb4da1a77
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
ECS-251-W2020/chromium
79caebf50443f297557d9510620bf8d44a68399a
ac814e85cb870a6b569e184c7a60a70ff3cb19f9
refs/heads/master
2022-08-19T17:42:46.887573
2020-03-18T06:08:44
2020-03-18T06:08:44
248,141,336
7
8
BSD-3-Clause
2022-07-06T20:32:48
2020-03-18T04:52:18
null
UTF-8
C++
false
false
14,803
cc
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All * rights reserved. * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. * (http://www.torchmobile.com/) * Copyright (c) 2011, Code Aurora Forum. All rights reserved. * Copyright (C) Research In Motion Limited 2011. All rights reserved. * Copyright (C) 2012 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "third_party/blink/renderer/core/css/css_default_style_sheets.h" #include "third_party/blink/public/resources/grit/blink_resources.h" #include "third_party/blink/renderer/core/css/media_query_evaluator.h" #include "third_party/blink/renderer/core/css/rule_set.h" #include "third_party/blink/renderer/core/css/style_sheet_contents.h" #include "third_party/blink/renderer/core/frame/settings.h" #include "third_party/blink/renderer/core/html/html_anchor_element.h" #include "third_party/blink/renderer/core/html/html_html_element.h" #include "third_party/blink/renderer/core/layout/layout_theme.h" #include "third_party/blink/renderer/core/mathml_names.h" #include "third_party/blink/renderer/platform/data_resource_helper.h" #include "third_party/blink/renderer/platform/heap/heap.h" #include "third_party/blink/renderer/platform/runtime_enabled_features.h" #include "third_party/blink/renderer/platform/wtf/leak_annotations.h" #include "third_party/blink/renderer/platform/wtf/text/string_builder.h" namespace blink { CSSDefaultStyleSheets& CSSDefaultStyleSheets::Instance() { DEFINE_STATIC_LOCAL(Persistent<CSSDefaultStyleSheets>, css_default_style_sheets, (MakeGarbageCollected<CSSDefaultStyleSheets>())); return *css_default_style_sheets; } static const MediaQueryEvaluator& ScreenEval() { DEFINE_STATIC_LOCAL(const Persistent<MediaQueryEvaluator>, static_screen_eval, (MakeGarbageCollected<MediaQueryEvaluator>("screen"))); return *static_screen_eval; } static const MediaQueryEvaluator& PrintEval() { DEFINE_STATIC_LOCAL(const Persistent<MediaQueryEvaluator>, static_print_eval, (MakeGarbageCollected<MediaQueryEvaluator>("print"))); return *static_print_eval; } static const MediaQueryEvaluator& ForcedColorsEval() { DEFINE_STATIC_LOCAL( Persistent<MediaQueryEvaluator>, forced_colors_eval, (MakeGarbageCollected<MediaQueryEvaluator>("forced-colors"))); return *forced_colors_eval; } static StyleSheetContents* ParseUASheet(const String& str) { // UA stylesheets always parse in the insecure context mode. auto* sheet = MakeGarbageCollected<StyleSheetContents>( MakeGarbageCollected<CSSParserContext>( kUASheetMode, SecureContextMode::kInsecureContext)); sheet->ParseString(str); // User Agent stylesheets are parsed once for the lifetime of the renderer // process and are intentionally leaked. LEAK_SANITIZER_IGNORE_OBJECT(sheet); return sheet; } CSSDefaultStyleSheets::CSSDefaultStyleSheets() : media_controls_style_sheet_loader_(nullptr) { // Strict-mode rules. String forced_colors_style_sheet = RuntimeEnabledFeatures::ForcedColorsEnabled() ? UncompressResourceAsASCIIString(IDR_UASTYLE_THEME_FORCED_COLORS_CSS) : String(); String default_rules = UncompressResourceAsASCIIString(IDR_UASTYLE_HTML_CSS) + LayoutTheme::GetTheme().ExtraDefaultStyleSheet() + forced_colors_style_sheet; default_style_sheet_ = ParseUASheet(default_rules); // Quirks-mode rules. String quirks_rules = UncompressResourceAsASCIIString(IDR_UASTYLE_QUIRKS_CSS) + LayoutTheme::GetTheme().ExtraQuirksStyleSheet(); quirks_style_sheet_ = ParseUASheet(quirks_rules); InitializeDefaultStyles(); #if DCHECK_IS_ON() default_style_->CompactRulesIfNeeded(); default_quirks_style_->CompactRulesIfNeeded(); default_print_style_->CompactRulesIfNeeded(); default_forced_color_style_->CompactRulesIfNeeded(); DCHECK(default_style_->UniversalRules()->IsEmpty()); DCHECK(default_quirks_style_->UniversalRules()->IsEmpty()); DCHECK(default_print_style_->UniversalRules()->IsEmpty()); DCHECK(default_forced_color_style_->UniversalRules()->IsEmpty()); #endif } void CSSDefaultStyleSheets::PrepareForLeakDetection() { // Clear the optional style sheets. mobile_viewport_style_sheet_.Clear(); television_viewport_style_sheet_.Clear(); xhtml_mobile_profile_style_sheet_.Clear(); svg_style_sheet_.Clear(); mathml_style_sheet_.Clear(); media_controls_style_sheet_.Clear(); text_track_style_sheet_.Clear(); fullscreen_style_sheet_.Clear(); webxr_overlay_style_sheet_.Clear(); // Recreate the default style sheet to clean up possible SVG resources. String default_rules = UncompressResourceAsASCIIString(IDR_UASTYLE_HTML_CSS) + LayoutTheme::GetTheme().ExtraDefaultStyleSheet(); default_style_sheet_ = ParseUASheet(default_rules); // Initialize the styles that have the lazily loaded style sheets. InitializeDefaultStyles(); default_view_source_style_.Clear(); } void CSSDefaultStyleSheets::InitializeDefaultStyles() { // This must be called only from constructor / PrepareForLeakDetection. default_style_ = MakeGarbageCollected<RuleSet>(); default_quirks_style_ = MakeGarbageCollected<RuleSet>(); default_print_style_ = MakeGarbageCollected<RuleSet>(); default_forced_color_style_ = MakeGarbageCollected<RuleSet>(); default_style_->AddRulesFromSheet(DefaultStyleSheet(), ScreenEval()); default_quirks_style_->AddRulesFromSheet(QuirksStyleSheet(), ScreenEval()); default_print_style_->AddRulesFromSheet(DefaultStyleSheet(), PrintEval()); default_forced_color_style_->AddRulesFromSheet(DefaultStyleSheet(), ForcedColorsEval()); } RuleSet* CSSDefaultStyleSheets::DefaultViewSourceStyle() { if (!default_view_source_style_) { default_view_source_style_ = MakeGarbageCollected<RuleSet>(); // Loaded stylesheet is leaked on purpose. StyleSheetContents* stylesheet = ParseUASheet( UncompressResourceAsASCIIString(IDR_UASTYLE_VIEW_SOURCE_CSS)); default_view_source_style_->AddRulesFromSheet(stylesheet, ScreenEval()); } return default_view_source_style_; } StyleSheetContents* CSSDefaultStyleSheets::EnsureXHTMLMobileProfileStyleSheet() { if (!xhtml_mobile_profile_style_sheet_) { xhtml_mobile_profile_style_sheet_ = ParseUASheet(UncompressResourceAsASCIIString(IDR_UASTYLE_XHTMLMP_CSS)); } return xhtml_mobile_profile_style_sheet_; } StyleSheetContents* CSSDefaultStyleSheets::EnsureMobileViewportStyleSheet() { if (!mobile_viewport_style_sheet_) { mobile_viewport_style_sheet_ = ParseUASheet( UncompressResourceAsASCIIString(IDR_UASTYLE_VIEWPORT_ANDROID_CSS)); } return mobile_viewport_style_sheet_; } StyleSheetContents* CSSDefaultStyleSheets::EnsureTelevisionViewportStyleSheet() { if (!television_viewport_style_sheet_) { television_viewport_style_sheet_ = ParseUASheet( UncompressResourceAsASCIIString(IDR_UASTYLE_VIEWPORT_TELEVISION_CSS)); } return television_viewport_style_sheet_; } static void AddTextTrackCSSProperties(StringBuilder* builder, CSSPropertyID propertyId, String value) { builder->Append(CSSProperty::Get(propertyId).GetPropertyNameString()); builder->Append(": "); builder->Append(value); builder->Append("; "); } bool CSSDefaultStyleSheets::EnsureDefaultStyleSheetsForElement( const Element& element) { bool changed_default_style = false; // FIXME: We should assert that the sheet only styles SVG elements. if (element.IsSVGElement() && !svg_style_sheet_) { svg_style_sheet_ = ParseUASheet(UncompressResourceAsASCIIString(IDR_UASTYLE_SVG_CSS)); default_style_->AddRulesFromSheet(SvgStyleSheet(), ScreenEval()); default_print_style_->AddRulesFromSheet(SvgStyleSheet(), PrintEval()); default_forced_color_style_->AddRulesFromSheet(SvgStyleSheet(), ForcedColorsEval()); changed_default_style = true; } // FIXME: We should assert that the sheet only styles MathML elements. if (element.namespaceURI() == mathml_names::kNamespaceURI && !mathml_style_sheet_) { mathml_style_sheet_ = ParseUASheet( RuntimeEnabledFeatures::MathMLCoreEnabled() ? UncompressResourceAsASCIIString(IDR_UASTYLE_MATHML_CSS) : UncompressResourceAsASCIIString(IDR_UASTYLE_MATHML_FALLBACK_CSS)); default_style_->AddRulesFromSheet(MathmlStyleSheet(), ScreenEval()); default_print_style_->AddRulesFromSheet(MathmlStyleSheet(), PrintEval()); changed_default_style = true; } if (!media_controls_style_sheet_ && HasMediaControlsStyleSheetLoader() && (IsA<HTMLVideoElement>(element) || IsA<HTMLAudioElement>(element))) { // FIXME: We should assert that this sheet only contains rules for <video> // and <audio>. media_controls_style_sheet_ = ParseUASheet(media_controls_style_sheet_loader_->GetUAStyleSheet()); default_style_->AddRulesFromSheet(MediaControlsStyleSheet(), ScreenEval()); default_print_style_->AddRulesFromSheet(MediaControlsStyleSheet(), PrintEval()); default_forced_color_style_->AddRulesFromSheet(MediaControlsStyleSheet(), ForcedColorsEval()); changed_default_style = true; } if (!text_track_style_sheet_ && IsA<HTMLVideoElement>(element)) { Settings* settings = element.GetDocument().GetSettings(); if (settings) { StringBuilder builder; builder.Append("video::-webkit-media-text-track-display { "); AddTextTrackCSSProperties(&builder, CSSPropertyID::kBackgroundColor, settings->GetTextTrackWindowColor()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kPadding, settings->GetTextTrackWindowPadding()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kBorderRadius, settings->GetTextTrackWindowRadius()); builder.Append(" } video::cue { "); AddTextTrackCSSProperties(&builder, CSSPropertyID::kBackgroundColor, settings->GetTextTrackBackgroundColor()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kFontFamily, settings->GetTextTrackFontFamily()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kFontStyle, settings->GetTextTrackFontStyle()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kFontVariant, settings->GetTextTrackFontVariant()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kColor, settings->GetTextTrackTextColor()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kTextShadow, settings->GetTextTrackTextShadow()); AddTextTrackCSSProperties(&builder, CSSPropertyID::kFontSize, settings->GetTextTrackTextSize()); builder.Append(" } "); text_track_style_sheet_ = ParseUASheet(builder.ToString()); default_style_->AddRulesFromSheet(text_track_style_sheet_, ScreenEval()); default_print_style_->AddRulesFromSheet(text_track_style_sheet_, PrintEval()); changed_default_style = true; } } DCHECK(!default_style_->Features().HasIdsInSelectors()); return changed_default_style; } void CSSDefaultStyleSheets::SetMediaControlsStyleSheetLoader( std::unique_ptr<UAStyleSheetLoader> loader) { media_controls_style_sheet_loader_.swap(loader); } bool CSSDefaultStyleSheets::EnsureDefaultStyleSheetForXrOverlay() { if (webxr_overlay_style_sheet_) return false; webxr_overlay_style_sheet_ = ParseUASheet( UncompressResourceAsASCIIString(IDR_UASTYLE_WEBXR_OVERLAY_CSS)); default_style_->AddRulesFromSheet(webxr_overlay_style_sheet_, ScreenEval()); default_print_style_->AddRulesFromSheet(webxr_overlay_style_sheet_, PrintEval()); default_forced_color_style_->AddRulesFromSheet(webxr_overlay_style_sheet_, ForcedColorsEval()); return true; } void CSSDefaultStyleSheets::EnsureDefaultStyleSheetForFullscreen() { if (fullscreen_style_sheet_) return; String fullscreen_rules = UncompressResourceAsASCIIString(IDR_UASTYLE_FULLSCREEN_CSS) + LayoutTheme::GetTheme().ExtraFullscreenStyleSheet(); fullscreen_style_sheet_ = ParseUASheet(fullscreen_rules); default_style_->AddRulesFromSheet(FullscreenStyleSheet(), ScreenEval()); default_quirks_style_->AddRulesFromSheet(FullscreenStyleSheet(), ScreenEval()); } void CSSDefaultStyleSheets::Trace(Visitor* visitor) { visitor->Trace(default_style_); visitor->Trace(default_quirks_style_); visitor->Trace(default_print_style_); visitor->Trace(default_view_source_style_); visitor->Trace(default_forced_color_style_); visitor->Trace(default_style_sheet_); visitor->Trace(mobile_viewport_style_sheet_); visitor->Trace(television_viewport_style_sheet_); visitor->Trace(xhtml_mobile_profile_style_sheet_); visitor->Trace(quirks_style_sheet_); visitor->Trace(svg_style_sheet_); visitor->Trace(mathml_style_sheet_); visitor->Trace(media_controls_style_sheet_); visitor->Trace(text_track_style_sheet_); visitor->Trace(fullscreen_style_sheet_); visitor->Trace(webxr_overlay_style_sheet_); } } // namespace blink
[ "pcding@ucdavis.edu" ]
pcding@ucdavis.edu
f2d77de97c077d394c6202ec8739fbf4905310c4
b807f532b1e227f9f6a89d01519e12b0eb6939de
/C_PlusPlus/HomeWork/HW7.cpp
690eaa7c37704d89f59fc902c3a747200bb2accb
[]
no_license
thekim9304/LectopiaCProgramming
dd234d11f1dfa94036e22652d86e19527903f878
5dad6dd429f61c7c877c85eacc52dc8b51b37ec7
refs/heads/master
2021-06-02T19:17:56.062433
2020-03-01T06:06:02
2020-03-01T06:06:02
78,117,919
0
1
null
null
null
null
UHC
C++
false
false
1,699
cpp
/* !! 저금통에 잔돈을 저금하는 프로그램을 작성한다. 키보드로부터 동전의 금액과 개수를 반복적으로 입력하다가 입력이 끝나면 총 저축액을 출력한다. 동전의 단위는 500원, 100원, 50원, 10원으로 하고 동전의 금액으로 음수가 입력되면 입력을 종료한다. @ 2017.02.14 */ #if 0 #include <iostream> using namespace std; struct Savings { int w500; int w100; int w50; int w10; }; void init(Savings &s); void input(int &unit, int &cnt); void save(Savings &s, int unit, int cnt); int total(Savings &s); void my_flush(); int main() { Savings sa; int cost = 1, costCnt; init(sa); while (cost >= 0) { input(cost, costCnt); save(sa, cost, costCnt); } cout << "총 저금액 : " << total(sa) << endl; } int total(Savings &s) { return ((500 * s.w500) + (100 * s.w100) + (50 * s.w50) + (10 * s.w10)); } void save(Savings &s, int unit, int cnt) { switch (unit) { case 500: s.w500 += cnt; break; case 100: s.w100 += cnt; break; case 50: s.w50 += cnt; break; case 10: s.w10 += cnt; } } void input(int &unit, int &cnt) { cout << "동전의 금액 : "; cin >> unit; if (unit < 0) return; while (cin.fail() || ((unit != 500) && (unit != 100) && (unit != 50) && (unit != 10))) { my_flush(); cout << "금액을 다시 입력 하세요 : "; cin >> unit; } cout << "동전의 개수 : "; cin >> cnt; while (cin.fail() || cnt < 0) { my_flush(); cout << "개수를 다시 입력 하세요 : "; cin >> cnt; } } void init(Savings &s) { s.w10 = 0; s.w100 = 0; s.w50 = 0; s.w500 = 0; } void my_flush() { cin.clear(); while (cin.get() != '\n'); } #endif
[ "th_k9304@naver.com" ]
th_k9304@naver.com
5005b68a6b069d21d75ded05d7e3713d82314b8e
7563233617f4fa896670a5fdaa698973dea16fa3
/Client/GameEngine [Minicastle]/QuadTree.h
7127aeba93cd386fbdb2bfff96f86aa34c4d703d
[]
no_license
EmotionGame/EmotionGame
ad9db2e5dec9e9d86f66e43e9ff4ae669230e8fa
351824326d3438ed3d49c431e8c7175721004309
refs/heads/master
2020-03-24T22:54:51.108950
2018-08-26T07:42:49
2018-08-26T07:42:49
143,108,226
0
0
null
2018-08-16T09:48:44
2018-08-01T05:32:15
C++
UTF-8
C++
false
false
1,731
h
#pragma once ///////////// // GLOBALS // ///////////// const int MAX_TRIANGLES = 10000; class Terrain; class Frustum; class TerrainShader; class QuadTree { private: struct QuadTreeVertexType { XMFLOAT3 position; XMFLOAT2 texture; XMFLOAT3 normal; }; struct QuadTreeVectorType { float x, y, z; }; struct QuadTreeNodeType { float positionX, positionZ, width; int triangleCount; ID3D11Buffer *vertexBuffer, *indexBuffer; QuadTreeVectorType* vertexArray; QuadTreeNodeType* nodes[4]; }; public: QuadTree(); QuadTree(const QuadTree& other); ~QuadTree(); bool Initialize(Terrain* pTerrain, ID3D11Device* pDevice); void Shutdown(); void Render(Frustum* pFrustum, ID3D11DeviceContext* pDeviceContext, TerrainShader* pShader); int GetDrawCount(); bool GetHeightAtPosition(float positionX, float positionZ, float& rHeight); private: void CalculateMeshDimensions(int vertexCount, float& rCenterX, float& rCenterZ, float& rMeshWidth); void CreateTreeNode(QuadTreeNodeType* pNode, float positionX, float positionZ, float width, ID3D11Device* pDevice); int CountTriangles(float positionX, float positionZ, float width); bool IsTriangleContained(int index, float positionX, float positionZ, float width); void ReleaseNode(QuadTreeNodeType* pNode); void RenderNode(QuadTreeNodeType* pNode, Frustum* pFrustum, ID3D11DeviceContext* pDeviceContext, TerrainShader* pShader); void FindNode(QuadTreeNodeType* pNode, float x, float z, float& rHeight); bool CheckHeightOfTriangle(float x, float z, float& rHeight, float v0[3], float v1[3], float v2[3]); private: int m_triangleCount = 0; int m_drawCount = 0; QuadTreeVertexType* m_vertexList = nullptr; QuadTreeNodeType* m_parentNode = nullptr; };
[ "Minicastle@bluehole.net" ]
Minicastle@bluehole.net
934990fb25e2ce0512a546acdee020c98f170065
8aab8ebf777fff6495caf0359faaf4f80e9f47da
/include/pastry/deferred/Light.hpp
f8ac5ce20e53554f347862a196f52e0fb57981a1
[]
no_license
rethemnos/pastry
5d0417df5b305cc8331d68fdfa731c642552fd30
40cfae6217ee36874302bf4294f6192a5b3c77ea
refs/heads/master
2020-12-26T02:32:04.530573
2014-08-22T22:39:38
2014-08-22T22:39:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
912
hpp
#pragma once #include <pastry/deferred/Component.hpp> #include <pastry/gl.hpp> #include <Eigen/Dense> namespace pastry { namespace deferred { class Camera; class SkyBox; class Light : public Component { public: virtual ~Light() {} virtual void render() = 0; }; class EnvironmentLight : public Light { public: EnvironmentLight(); void render(); private: pastry::program sp_; pastry::single_mesh mesh_; pastry::vertex_array va_; }; class PointLight : public Light { public: PointLight(); void setLightPosition(const Eigen::Vector3f& pos) { light_pos_ = pos; } void setLightColor(const Eigen::Vector3f& color) { light_color_ = color; } void setLightFalloff(float falloff) { falloff_ = falloff; } void render(); private: pastry::program sp_; pastry::single_mesh mesh_; pastry::vertex_array va_; Eigen::Vector3f light_pos_; Eigen::Vector3f light_color_; float falloff_; }; }}
[ "davidw@danvil.de" ]
davidw@danvil.de
e9073dee936671e133a32e2a1cf2d9b567611ae5
c732666c24d86e0da4cd2c1ee12619e9c514e818
/beakjoon/rhcsky/stage/16-9.cpp
6f1795ce248c72f42320d690144d4e64a7dafd2f
[]
no_license
Algostu/boradori
032f71e9e58163d3e188856629a5de4afaa87b30
939d60e8652074e26ba08252217f7788cae9063c
refs/heads/master
2023-04-22T03:57:26.823917
2021-04-06T23:09:36
2021-04-06T23:09:36
263,754,451
0
0
null
null
null
null
UTF-8
C++
false
false
468
cpp
#include <iostream> using namespace std; int main() { int n, ans = 9; int arr[2][12] = {0,}; scanf("%d", &n); for(int i = 2; i < 11; i++) arr[1][i] = 1; for(int i = 2; i <= n; i++) { ans = 0; for(int j = 1; j < 11; j++) { arr[i%2][j] = (arr[(i-1)%2][j-1] + arr[(i-1)%2][j+1]) % 1000000000; ans = (ans + arr[i%2][j]) % 1000000000; } } cout << ans; return 0; }
[ "mangusn1@gmail.com" ]
mangusn1@gmail.com
d5f6d61aa2814adf2fc0591625e5f40263120121
67ce342af70ac5fdc4b3aed358e1ca3063e09d24
/source/main.cpp
6407d9da4c6c9bf41c32947df0b40cf05c91e3e7
[]
no_license
cct1986/CardProject
1aab10da35c3fa826a62acbceec97683003bb266
35e5a7b69ec39844ffe3ab67cdc4ed71a4de0157
refs/heads/master
2016-09-06T07:56:37.431004
2013-01-31T17:53:06
2013-01-31T17:53:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,275
cpp
//#define NDEBUG #include <iostream> #include "debug.h" #include <vector> #include "CSVIterator.h" #include "CCard.h" #include "CDeck.h" #include "CHand.h" using namespace std; int main () { ifstream file("../resource/data/cardData.csv"); vector<CCard> cards; for( CSVIterator loop(file); loop != CSVIterator() ; ++loop ) { istringstream istr( ( *loop )[1] ); int type; istr >> type; cards.push_back( CCard( ( *loop )[0], getECardTypeFromInt( type ) ) ); } CDeck deck( cards ); deck.printDeck(); CCard thirdCard = deck.getAndRemoveCardFromDeck( 3 ); deck.printDeck(); CCard firstCard = deck.getAndRemoveTopCardFromDeck(); deck.printDeck(); deck.shuffleDeck(); deck.printDeck(); CCard card_1( "insertTop", NONE ); deck.insertCardFromTop( card_1 ); CCard card_2( "insertBottom", NONE ); deck.insertCardFromBottom( card_2 ); CCard card_3( "insert5thCard", NONE ); deck.insertCard( 5, card_3 ); deck.printDeck(); CCard card_4( "insert2ndCard", NONE ); deck.insertCard( 2, card_4 ); deck.printDeck(); CHand hand; hand.insertCard( deck.getAndRemoveTopCardFromDeck() ); deck.printDeck(); hand.insertCard( deck.getAndRemoveCardFromDeck( 3 ) ); hand.printHand(); deck.printDeck(); cin.ignore(1); return 0; }
[ "cct1986@yahoo.com" ]
cct1986@yahoo.com
0db73d1b1db52c284bb3313023fc725705390ecd
bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7
/gta5/0x4700A416E8324EF3.cpp
8d6945d28666fcdfcbf61d0d6a0d22929ffdac30
[]
no_license
DeepWolf413/additional-native-data
aded47e042f0feb30057e753910e0884c44121a0
e015b2500b52065252ffbe3c53865fe3cdd3e06c
refs/heads/main
2023-07-10T00:19:54.416083
2021-08-12T16:00:12
2021-08-12T16:00:12
395,340,507
1
0
null
null
null
null
UTF-8
C++
false
false
820
cpp
// agency_heist2.ysc @ L111289 void func_708(int iParam0) { int iVar0; iVar0 = func_42(iParam0); if (func_41(iVar0) && !PED::IS_PED_INJURED(iParam0)) { if (iParam0 == PLAYER::PLAYER_PED_ID() && PED::GET_PED_MAX_HEALTH(iParam0) == 200) { PED::SET_PED_MAX_HEALTH(iParam0, SYSTEM::ROUND((IntToFloat(PED::GET_PED_MAX_HEALTH(iParam0)) * Global_262145.f_106))); } if (Global_112293.f_2361.f_539.f_290[iVar0] <= 0f) { Global_112293.f_2361.f_539.f_290[iVar0] = 100f; } else if (Global_112293.f_2361.f_539.f_290[iVar0] <= 10f) { Global_112293.f_2361.f_539.f_290[iVar0] = 10f; } ENTITY::SET_ENTITY_HEALTH(iParam0, SYSTEM::ROUND((((Global_112293.f_2361.f_539.f_290[iVar0] / 100f) * (SYSTEM::TO_FLOAT(PED::GET_PED_MAX_HEALTH(iParam0)) - 100f)) + 100f)), 0); } }
[ "jesper15fuji@live.dk" ]
jesper15fuji@live.dk
97665e71dbafdd75d20cbb627095686f6dec522d
c6a9a6db04cc7c28678bb91c26805fa25c3e4d89
/cocos2d/cocos/scripting/lua-bindings/auto/lua_cocos2dx_experimental_auto.cpp
d4c5e469238eefa9f3fa25125377c227c6ea29fa
[ "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "AFL-3.0", "AFL-2.1", "MIT-0", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
aftermisak/WSSParticleSystem
e51b799afff7bb0790bcde6bab4869d36226f894
94b0b0f68b6c08537efd4f2d6ab1af1228f36d02
refs/heads/master
2023-08-31T07:44:31.178492
2018-04-19T07:36:43
2018-04-19T07:36:43
132,569,861
0
0
Apache-2.0
2018-10-22T03:19:03
2018-05-08T07:18:26
C++
UTF-8
C++
false
false
58,894
cpp
#include "lua_cocos2dx_experimental_auto.hpp" #include "CCFastTMXLayer.h" #include "CCFastTMXTiledMap.h" #include "tolua_fix.h" #include "LuaBasicConversions.h" int lua_cocos2dx_experimental_TMXLayer_getPositionAt(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getPositionAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccexp.TMXLayer:getPositionAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getPositionAt'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPositionAt(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getPositionAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getPositionAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setLayerOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setLayerOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.TMXLayer:setLayerOrientation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setLayerOrientation'", nullptr); return 0; } cobj->setLayerOrientation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setLayerOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setLayerOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getLayerSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getLayerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getLayerSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getLayerSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getLayerSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getLayerSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setMapTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setMapTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccexp.TMXLayer:setMapTileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setMapTileSize'", nullptr); return 0; } cobj->setMapTileSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setMapTileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setMapTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getLayerOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getLayerOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getLayerOrientation'", nullptr); return 0; } int ret = cobj->getLayerOrientation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getLayerOrientation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getLayerOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ccexp.TMXLayer:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setLayerName(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setLayerName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXLayer:setLayerName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setLayerName'", nullptr); return 0; } cobj->setLayerName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setLayerName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setLayerName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_removeTileAt(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_removeTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccexp.TMXLayer:removeTileAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_removeTileAt'", nullptr); return 0; } cobj->removeTileAt(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:removeTileAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_removeTileAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setupTiles(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setupTiles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setupTiles'", nullptr); return 0; } cobj->setupTiles(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setupTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setupTiles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setupTileSprite(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setupTileSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Sprite* arg0; cocos2d::Vec2 arg1; int arg2; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccexp.TMXLayer:setupTileSprite"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccexp.TMXLayer:setupTileSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setupTileSprite'", nullptr); return 0; } cobj->setupTileSprite(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setupTileSprite",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setupTileSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setTileGID(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setTileGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccexp.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::TMXTileFlags_ arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccexp.TMXLayer:setTileGID"); if (!ok) { break; } cobj->setTileGID(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccexp.TMXLayer:setTileGID"); if (!ok) { break; } cobj->setTileGID(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setTileGID",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setTileGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getMapTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getMapTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getMapTileSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getMapTileSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getMapTileSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getMapTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getProperty(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXLayer:getProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getProperty'", nullptr); return 0; } cocos2d::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getProperty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setLayerSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setLayerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccexp.TMXLayer:setLayerSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setLayerSize'", nullptr); return 0; } cobj->setLayerSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setLayerSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setLayerSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getLayerName(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getLayerName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getLayerName'", nullptr); return 0; } const std::string& ret = cobj->getLayerName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getLayerName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getLayerName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_setTileSet(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_setTileSet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TMXTilesetInfo* arg0; ok &= luaval_to_object<cocos2d::TMXTilesetInfo>(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_setTileSet'", nullptr); return 0; } cobj->setTileSet(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:setTileSet",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_setTileSet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getTileSet(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getTileSet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getTileSet'", nullptr); return 0; } cocos2d::TMXTilesetInfo* ret = cobj->getTileSet(); object_to_luaval<cocos2d::TMXTilesetInfo>(tolua_S, "cc.TMXTilesetInfo",(cocos2d::TMXTilesetInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getTileSet",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getTileSet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_getTileAt(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXLayer_getTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccexp.TMXLayer:getTileAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_getTileAt'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->getTileAt(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getTileAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_getTileAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"ccexp.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; cocos2d::TMXLayerInfo* arg1; cocos2d::TMXMapInfo* arg2; ok &= luaval_to_object<cocos2d::TMXTilesetInfo>(tolua_S, 2, "cc.TMXTilesetInfo",&arg0); ok &= luaval_to_object<cocos2d::TMXLayerInfo>(tolua_S, 3, "cc.TMXLayerInfo",&arg1); ok &= luaval_to_object<cocos2d::TMXMapInfo>(tolua_S, 4, "cc.TMXMapInfo",&arg2); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_create'", nullptr); return 0; } cocos2d::experimental::TMXLayer* ret = cocos2d::experimental::TMXLayer::create(arg0, arg1, arg2); object_to_luaval<cocos2d::experimental::TMXLayer>(tolua_S, "ccexp.TMXLayer",(cocos2d::experimental::TMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.TMXLayer:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXLayer_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXLayer_constructor'", nullptr); return 0; } cobj = new cocos2d::experimental::TMXLayer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ccexp.TMXLayer"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:TMXLayer",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXLayer_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_experimental_TMXLayer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXLayer)"); return 0; } int lua_register_cocos2dx_experimental_TMXLayer(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccexp.TMXLayer"); tolua_cclass(tolua_S,"TMXLayer","ccexp.TMXLayer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TMXLayer"); tolua_function(tolua_S,"new",lua_cocos2dx_experimental_TMXLayer_constructor); tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_experimental_TMXLayer_getPositionAt); tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_experimental_TMXLayer_setLayerOrientation); tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_experimental_TMXLayer_getLayerSize); tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_experimental_TMXLayer_setMapTileSize); tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_experimental_TMXLayer_getLayerOrientation); tolua_function(tolua_S,"setProperties",lua_cocos2dx_experimental_TMXLayer_setProperties); tolua_function(tolua_S,"setLayerName",lua_cocos2dx_experimental_TMXLayer_setLayerName); tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_experimental_TMXLayer_removeTileAt); tolua_function(tolua_S,"getProperties",lua_cocos2dx_experimental_TMXLayer_getProperties); tolua_function(tolua_S,"setupTiles",lua_cocos2dx_experimental_TMXLayer_setupTiles); tolua_function(tolua_S,"setupTileSprite",lua_cocos2dx_experimental_TMXLayer_setupTileSprite); tolua_function(tolua_S,"setTileGID",lua_cocos2dx_experimental_TMXLayer_setTileGID); tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_experimental_TMXLayer_getMapTileSize); tolua_function(tolua_S,"getProperty",lua_cocos2dx_experimental_TMXLayer_getProperty); tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_experimental_TMXLayer_setLayerSize); tolua_function(tolua_S,"getLayerName",lua_cocos2dx_experimental_TMXLayer_getLayerName); tolua_function(tolua_S,"setTileSet",lua_cocos2dx_experimental_TMXLayer_setTileSet); tolua_function(tolua_S,"getTileSet",lua_cocos2dx_experimental_TMXLayer_getTileSet); tolua_function(tolua_S,"getTileAt",lua_cocos2dx_experimental_TMXLayer_getTileAt); tolua_function(tolua_S,"create", lua_cocos2dx_experimental_TMXLayer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::experimental::TMXLayer).name(); g_luaType[typeName] = "ccexp.TMXLayer"; g_typeCast["TMXLayer"] = "ccexp.TMXLayer"; return 1; } int lua_cocos2dx_experimental_TMXTiledMap_setObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_setObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::TMXObjectGroup *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "ccexp.TMXTiledMap:setObjectGroups"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_setObjectGroups'", nullptr); return 0; } cobj->setObjectGroups(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:setObjectGroups",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_setObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getProperty(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXTiledMap:getProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperty'", nullptr); return 0; } cocos2d::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getProperty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_setMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccexp.TMXTiledMap:setMapSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapSize'", nullptr); return 0; } cobj->setMapSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:setMapSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getObjectGroup(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getObjectGroup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXTiledMap:getObjectGroup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getObjectGroup'", nullptr); return 0; } cocos2d::TMXObjectGroup* ret = cobj->getObjectGroup(arg0); object_to_luaval<cocos2d::TMXObjectGroup>(tolua_S, "cc.TMXObjectGroup",(cocos2d::TMXObjectGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getObjectGroup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getObjectGroup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getObjectGroups",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getTileSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getTileSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getTileSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getMapSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getMapSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperties'", nullptr); return 0; } const cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.TMXTiledMap:getPropertiesForGID"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID'", nullptr); return 0; } cocos2d::Value ret = cobj->getPropertiesForGID(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getPropertiesForGID",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_setTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_setTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccexp.TMXTiledMap:setTileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_setTileSize'", nullptr); return 0; } cobj->setTileSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:setTileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_setTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ccexp.TMXTiledMap:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getLayer(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getLayer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXTiledMap:getLayer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getLayer'", nullptr); return 0; } cocos2d::experimental::TMXLayer* ret = cobj->getLayer(arg0); object_to_luaval<cocos2d::experimental::TMXLayer>(tolua_S, "ccexp.TMXLayer",(cocos2d::experimental::TMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getLayer",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getLayer'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_getMapOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapOrientation'", nullptr); return 0; } int ret = cobj->getMapOrientation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:getMapOrientation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_getMapOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_setMapOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::experimental::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::experimental::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccexp.TMXTiledMap:setMapOrientation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapOrientation'", nullptr); return 0; } cobj->setMapOrientation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXTiledMap:setMapOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_setMapOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXTiledMap:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_create'", nullptr); return 0; } cocos2d::experimental::TMXTiledMap* ret = cocos2d::experimental::TMXTiledMap::create(arg0); object_to_luaval<cocos2d::experimental::TMXTiledMap>(tolua_S, "ccexp.TMXTiledMap",(cocos2d::experimental::TMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.TMXTiledMap:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_experimental_TMXTiledMap_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"ccexp.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.TMXTiledMap:createWithXML"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "ccexp.TMXTiledMap:createWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_experimental_TMXTiledMap_createWithXML'", nullptr); return 0; } cocos2d::experimental::TMXTiledMap* ret = cocos2d::experimental::TMXTiledMap::createWithXML(arg0, arg1); object_to_luaval<cocos2d::experimental::TMXTiledMap>(tolua_S, "ccexp.TMXTiledMap",(cocos2d::experimental::TMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.TMXTiledMap:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_experimental_TMXTiledMap_createWithXML'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_experimental_TMXTiledMap_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXTiledMap)"); return 0; } int lua_register_cocos2dx_experimental_TMXTiledMap(lua_State* tolua_S) { tolua_usertype(tolua_S,"ccexp.TMXTiledMap"); tolua_cclass(tolua_S,"TMXTiledMap","ccexp.TMXTiledMap","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TMXTiledMap"); tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_experimental_TMXTiledMap_setObjectGroups); tolua_function(tolua_S,"getProperty",lua_cocos2dx_experimental_TMXTiledMap_getProperty); tolua_function(tolua_S,"setMapSize",lua_cocos2dx_experimental_TMXTiledMap_setMapSize); tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_experimental_TMXTiledMap_getObjectGroup); tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_experimental_TMXTiledMap_getObjectGroups); tolua_function(tolua_S,"getTileSize",lua_cocos2dx_experimental_TMXTiledMap_getTileSize); tolua_function(tolua_S,"getMapSize",lua_cocos2dx_experimental_TMXTiledMap_getMapSize); tolua_function(tolua_S,"getProperties",lua_cocos2dx_experimental_TMXTiledMap_getProperties); tolua_function(tolua_S,"getPropertiesForGID",lua_cocos2dx_experimental_TMXTiledMap_getPropertiesForGID); tolua_function(tolua_S,"setTileSize",lua_cocos2dx_experimental_TMXTiledMap_setTileSize); tolua_function(tolua_S,"setProperties",lua_cocos2dx_experimental_TMXTiledMap_setProperties); tolua_function(tolua_S,"getLayer",lua_cocos2dx_experimental_TMXTiledMap_getLayer); tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_experimental_TMXTiledMap_getMapOrientation); tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_experimental_TMXTiledMap_setMapOrientation); tolua_function(tolua_S,"create", lua_cocos2dx_experimental_TMXTiledMap_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_experimental_TMXTiledMap_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::experimental::TMXTiledMap).name(); g_luaType[typeName] = "ccexp.TMXTiledMap"; g_typeCast["TMXTiledMap"] = "ccexp.TMXTiledMap"; return 1; } TOLUA_API int register_all_cocos2dx_experimental(lua_State* tolua_S) { tolua_open(tolua_S); tolua_module(tolua_S,"ccexp",0); tolua_beginmodule(tolua_S,"ccexp"); lua_register_cocos2dx_experimental_TMXTiledMap(tolua_S); lua_register_cocos2dx_experimental_TMXLayer(tolua_S); tolua_endmodule(tolua_S); return 1; }
[ "1139454623@qq.com" ]
1139454623@qq.com
0fb4c352f6c2a3a83c6c78e85b7fcc209a72b453
a1eab6f939f8e1622cf2d6a5bc344762a660a3cf
/algorithm/code/router.cpp
2d08ecefa19ff555cb88f6298a6c7a9a6b947789
[]
no_license
T-tssxuan/data_structure_algorithm
02b21f20adae864ac55857d58c68d6fb806719a4
3a19ac19bd4b56c6971b95fa1adb9d7c857f94fe
refs/heads/master
2021-01-12T16:26:14.980768
2017-08-16T14:06:43
2017-08-16T14:06:43
69,272,305
4
1
null
null
null
null
UTF-8
C++
false
false
9,751
cpp
#include <iostream> #include <vector> #include <queue> using namespace std; // Status for each subtree with x routers struct Status { int rate; bool is_chosen; // the room is set router bool is_cover; // the room is cover by router vector<int> components; // the combine of subtree forms this tree Status(): rate(0), is_chosen(false), is_cover(false), components(3, 0) {} }; // Recorder for each room struct Recorder { bool is_set; vector<Status> status; Recorder(int router_num): status(router_num + 1, Status()){} }; // The adjacent table data structure using AdjTable = vector<vector<int>>; class Solution { private: AdjTable table; vector<int> statisfactions; int router_num; int room_num; vector<Recorder> recorders; public: Solution(AdjTable table, vector<int> statisfactions, int router_num): table(table), statisfactions(statisfactions), router_num(router_num) { room_num = table.size(); recorders = vector<Recorder>(room_num, Recorder(router_num)); } int getMaxSatisfaction() { int start_room = 1; int tmp = 0; // make sure the start room is not the node with three door // if it is we change the start room while (table[start_room].size() == 3) { tmp = table[start_room].back(); table[start_room].pop_back(); table[tmp].push_back(start_room); // alter swap(table[tmp][0], table[tmp].back()); start_room = tmp; } // recursive from the start_room initSubTreeRecord(start_room); return recorders[start_room].status[router_num].rate; } void initSubTreeRecord(int room_id) { // if the room node visited recursive visit it and it's subroom(or tree) if (!recorders[room_id].is_set) { recorders[room_id].is_set = true; switch (table[room_id].size()) { case 0: // if the tree has no subtree setSatisfaction_0(room_id); break; case 1: // if the tree has one subtree setSatisfaction_1(room_id); break; case 2: // if the tree has two subtree setSatisfaction_2(room_id); break; default: break; }; } } // tree has no subtree // all it's value is identity void setSatisfaction_0(int room_id) { for (int i = 1; i <= router_num; i++) { recorders[room_id].status[i].rate = statisfactions[room_id]; recorders[room_id].status[i].is_chosen = true; recorders[room_id].status[i].is_cover = true; } } // tree has one subtree // it's root value depends on the subtree void setSatisfaction_1(int room_id) { int sub_room_id = table[room_id][0]; int sat_set, sat_not_set; vector<int> components(3, 0); initSubTreeRecord(sub_room_id); for (int i = 1; i <= router_num; i++) { // root is placed a router so it's subtree can only place i - 1 // routers sat_set = recorders[sub_room_id].status[i - 1].rate \ + statisfactions[room_id]; if (!recorders[sub_room_id].status[i - 1].is_cover) { sat_set += statisfactions[sub_room_id]; } // root is not placed router so it's subtree can place i - 1 routers sat_not_set = recorders[sub_room_id].status[i].rate; if (recorders[sub_room_id].status[i].is_chosen) { sat_not_set += statisfactions[room_id]; } // get the maximum one as the result if (sat_set >= sat_not_set) { recorders[room_id].status[i].is_chosen = true; recorders[room_id].status[i].is_cover = true; recorders[room_id].status[i].rate = sat_set; recorders[room_id].status[i].components[0] = i - 1; } else { recorders[room_id].status[i].is_chosen = false; if (recorders[sub_room_id].status[i - 1].is_chosen) { recorders[room_id].status[i].is_cover = true; } else { recorders[room_id].status[i].is_cover = false; } recorders[room_id].status[i].is_cover = true; recorders[room_id].status[i].rate = sat_not_set; recorders[room_id].status[i].components[0] = i; } } } void setSatisfaction_2(int room_id) { int sub_room_l = table[room_id][0]; int sub_room_r = table[room_id][1]; initSubTreeRecord(sub_room_l); initSubTreeRecord(sub_room_r); int router_l; int router_r; int tmp_max_rate = 0; int tmp_com_l = 0; int tmp_com_r = 0; bool is_cover; bool cur_cover; int tmp; // current root is not placed router for (int cur_router = 1; cur_router <= router_num; cur_router++) { tmp_max_rate = tmp_com_l = tmp_com_r = 0; is_cover = false; for (router_l = 0; router_l <= cur_router; router_l++) { router_r = cur_router - router_l; tmp = 0; cur_cover = false; // the current root is not covered by wifi, howevere if either // of it's subtree root which is placed a router, it will be // covered by wifi, we need include the bonus if (recorders[sub_room_l].status[router_l].is_chosen || recorders[sub_room_r].status[router_r].is_chosen) { tmp += statisfactions[room_id]; cur_cover = true; } tmp += recorders[sub_room_l].status[router_l].rate; tmp += recorders[sub_room_r].status[router_r].rate; if (tmp > tmp_max_rate) { tmp_max_rate = tmp; tmp_com_l = router_l; tmp_com_r = router_r; is_cover = cur_cover; } } recorders[room_id].status[cur_router].rate = tmp_max_rate; recorders[room_id].status[cur_router].is_cover = is_cover; recorders[room_id].status[cur_router].components[0] = tmp_com_l; recorders[room_id].status[cur_router].components[1] = tmp_com_r; } // current root is palced a router and compare the previous value, // get the maximum rate state as the result for (int cur_router = 1; cur_router <= router_num; cur_router++) { tmp_max_rate = tmp_com_l = tmp_com_r = 0; for (router_l = 0; router_l <= cur_router - 1; router_l++) { router_r = cur_router - 1 - router_l; tmp = statisfactions[room_id]; tmp += recorders[sub_room_l].status[router_l].rate; tmp += recorders[sub_room_r].status[router_r].rate; // if subtree root isn't covered by wifi, they will be covered // by wifi which comes from the current root if (!recorders[sub_room_l].status[router_l].is_cover) { tmp += statisfactions[sub_room_l]; } if (!recorders[sub_room_r].status[router_r].is_cover) { tmp += statisfactions[sub_room_r]; } if (tmp > tmp_max_rate) { tmp_max_rate = tmp; tmp_com_l = router_l; tmp_com_r = router_r; } } // compare and get the greater one if (tmp_max_rate >= recorders[room_id].status[cur_router].rate) { recorders[room_id].status[cur_router].is_chosen = true; recorders[room_id].status[cur_router].is_cover = true; recorders[room_id].status[cur_router].rate = tmp_max_rate; recorders[room_id].status[cur_router].components[0] = tmp_com_l; recorders[room_id].status[cur_router].components[1] = tmp_com_r; } } } void swap(int& num1, int& num2) { int tmp = num1; num1 = num2; num2 = tmp; } }; int main(int argc, char* argv[]) { int n, m; int tmp1, tmp2; cin >> n; cin >> m; vector<int> statisfactions(n + 1, 0); AdjTable table(n + 1, vector<int>()); vector<vector<int>> bidirection_grap(n + 1, vector<int>()); vector<bool> visited(n + 1, false); // input the statisfaction of each room for (int i = 1; i <= n; i++) { cin >> tmp1; statisfactions[i] = tmp1; } // construct the bidirection grap for (int i = 1; i < n; i++) { cin >> tmp1; cin >> tmp2; bidirection_grap[tmp1].push_back(tmp2); bidirection_grap[tmp2].push_back(tmp1); } // construct the ajacent table from the bidirection table, this adjacent // table is undirected grap queue<int> room_queue; room_queue.push(1); while (!room_queue.empty()) { int top = room_queue.front(); visited[top] = true; room_queue.pop(); for (size_t i = 0; i < bidirection_grap[top].size(); i++) { if (!visited[bidirection_grap[top][i]]) { table[top].push_back(bidirection_grap[top][i]); room_queue.push(bidirection_grap[top][i]); } } } Solution so(table, statisfactions, m); auto re = so.getMaxSatisfaction(); cout << re << endl; return 0; }
[ "2270360114@qq.com" ]
2270360114@qq.com
683ae047c6e8ea30d2418c7f8c74af5885c3fa85
60985412ca048a29bc7d75e8880cb1788b2aa922
/BattleTank/Source/BattleTank/BattleTankGameModeBase.h
c3e62d8d093ca815da45bb926855420e772ce594
[]
no_license
RodrigoMontes/BattleTank
04cd1311806939f6cff5052ee62fa518cd44017e
7a6caa6d6d728a4c170477d787a93a9f7945d3cd
refs/heads/master
2020-03-24T16:11:02.833504
2019-01-28T16:51:33
2019-01-28T16:51:33
142,815,663
0
0
null
null
null
null
UTF-8
C++
false
false
286
h
// Rodrigo Montes - DelMontes Software #pragma once #include "CoreMinimal.h" #include "GameFramework/GameModeBase.h" #include "BattleTankGameModeBase.generated.h" /** * */ UCLASS() class BATTLETANK_API ABattleTankGameModeBase : public AGameModeBase { GENERATED_BODY() };
[ "rjmontes@gmail.com" ]
rjmontes@gmail.com
878ff4c98c8ad6461dcd645e3c8a6bae81ed8fa9
976fec21932d2cb50dae08ca7cf6b89100fe8f22
/Transformation.cpp
23d017c6a3df6fa892d3133281a0fcd77a6264f0
[]
no_license
Hsuya1100/GVC-OpenGL
b4bd50728502f0b2e956809f38806b1acdbcfa4d
3057bd541295f7d019f9848d32a6c8fd77f1168b
refs/heads/master
2021-09-26T23:22:30.071753
2018-11-04T12:05:43
2018-11-04T12:05:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,881
cpp
#include <GL/glut.h> #include <math.h> #include<GL/gl.h> struct Point { GLint x; GLint y; }; void draw_line(Point a, Point b) { GLfloat dx = b.x - a.x; GLfloat dy = b.y - a.y; GLfloat x1 = a.x; GLfloat y1 = a.y; GLfloat steps = 0; if(abs(dx) > abs(dy)) { steps = abs(dx); } else { steps = abs(dy); } GLfloat xInc = dx/steps; GLfloat yInc = dy/steps; for(float i = 1.00; i <= steps; i++) { glVertex2f(x1, y1); x1 += xInc; y1 += yInc; } } void init() { //copied glClearColor(0.0, 0.0, 0.0, 0.0); glColor3f(1.0, 1.0, 1.0); glPointSize(1.0); //glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(-700, 700, -600, 600); } Point initstruct(int a,int b) { Point p; p.x = a; p.y = b; return p; } Point scaling(Point p2,GLfloat nooftimes) { Point p3; p3.x = p2.x*nooftimes; p3.y = p2.y*nooftimes; return p3; } Point rotating(Point p , GLfloat angle) { Point p2; p2.x = 0 + (p.x-0)*cos(angle) - (p.y-0)*sin(angle); p2.y = 0 + (p.x-0)*sin(angle) + (p.y-0)*cos(angle); return p2; } void display(void) { struct Point s[3]; int i; int a[3][2]={{0,0},{200,0},{0,100}}; for( i=0;i<3;i++) { s[i] = initstruct(a[i][0],a[i][1]); } glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_POINTS); draw_line(s[0],s[1]); draw_line(s[1],s[2]); draw_line(s[0],s[2]); s[2] = scaling(s[2],1.5); //135 = 2.35 s[2] = rotating(s[2],2.35); draw_line(s[0],s[2]); s[1] = scaling(s[1],1.58); s[1] = rotating(s[1],2.09); draw_line(s[0],s[1]); draw_line(s[1],s[2]); glEnd(); glFlush(); } int main(int argc, char** argv) //copied { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); glutInitWindowSize(700, 600); glutInitWindowPosition(150, 200); glutCreateWindow("Transfomration"); init(); glutDisplayFunc(display); glutMainLoop(); return 0; }
[ "lekhidugtal@gmail.com" ]
lekhidugtal@gmail.com
6eca1f6bc1170edf9992db199c837758c5eb989c
d7d6678b2c73f46ffe657f37169f8e17e2899984
/controllers/ros/include/webots_ros/supervisor_simulation_get_modeRequest.h
6818cfeff14a3ec0331269dcb8a2c063025b34c2
[]
no_license
rggasoto/AdvRobotNav
ad8245618e1cc65aaf9a0d659c4bb1588f035f18
d562ba4fba896dc23ea917bc2ca2d3c9e839b037
refs/heads/master
2021-05-31T12:00:12.452249
2016-04-15T14:02:05
2016-04-15T14:02:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,549
h
#ifndef WEBOTS_ROS_MESSAGE_SUPERVISOR_SIMULATION_GET_MODEREQUEST_H #define WEBOTS_ROS_MESSAGE_SUPERVISOR_SIMULATION_GET_MODEREQUEST_H #include <string> #include <vector> #include <map> #include "ros/types.h" #include "ros/serialization.h" #include "ros/builtin_message_traits.h" #include "ros/message_operations.h" namespace webots_ros { template <class ContainerAllocator> struct supervisor_simulation_get_modeRequest_ { typedef supervisor_simulation_get_modeRequest_<ContainerAllocator> Type; supervisor_simulation_get_modeRequest_() : ask(0) { } supervisor_simulation_get_modeRequest_(const ContainerAllocator& _alloc) : ask(0) { } typedef uint8_t _ask_type; _ask_type ask; typedef boost::shared_ptr< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> const> ConstPtr; boost::shared_ptr<std::map<std::string, std::string> > __connection_header; }; typedef ::webots_ros::supervisor_simulation_get_modeRequest_<std::allocator<void> > supervisor_simulation_get_modeRequest; typedef boost::shared_ptr< ::webots_ros::supervisor_simulation_get_modeRequest > supervisor_simulation_get_modeRequestPtr; typedef boost::shared_ptr< ::webots_ros::supervisor_simulation_get_modeRequest const> supervisor_simulation_get_modeRequestConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> & v) { ros::message_operations::Printer< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace webots_ros namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False} // {'std_msgs': ['/opt/ros/groovy/share/std_msgs/msg'], 'webots_ros // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsFixedSize< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct HasHeader< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> const> : FalseType { }; template<class ContainerAllocator> struct MD5Sum< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > { static const char* value() { return "432d26b707b185ff70e4f43832435dc8"; } static const char* value(const ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xf9df5232b65af94fULL; static const uint64_t static_value2 = 0x73f79fe6d84301bbULL; }; template<class ContainerAllocator> struct DataType< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > { static const char* value() { return "webots_ros/supervisor_simulation_get_modeRequest"; } static const char* value(const ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > { static const char* value() { return "uint8 ask\n\\n\ \n\ "; } static const char* value(const ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.ask); } ROS_DECLARE_ALLINONE_SERIALIZER; }; } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::webots_ros::supervisor_simulation_get_modeRequest_<ContainerAllocator>& v) { s << indent << "ask: "; Printer<uint8_t>::stream(s, indent + " ", v.ask); } }; } // namespace message_operations } // namespace ros #endif // WEBOTS_ROS_MESSAGE_SUPERVISOR_SIMULATION_GET_MODEREQUEST_H
[ "rggasoto@wpi.edu" ]
rggasoto@wpi.edu
a2efb6bac33cdd603a65ad534648cb3f513cb143
9ab722e6b9e4ce741cc6f865ba97e0fdc0ad14e5
/library/view/widget/tooltip_manager_win.cpp
091d6902f4a727d16c8bf3cd541d9c1a975c089e
[ "MIT" ]
permissive
csjy309450/PuTTY-ng
b892c6474c8ff797f1d0bf555b08351da4fe617b
0af73729d45d51936810f675d481c47e5588407b
refs/heads/master
2022-12-24T13:31:22.786842
2020-03-08T16:53:51
2020-03-08T16:53:51
296,880,184
1
0
MIT
2020-09-19T13:54:25
2020-09-19T13:54:24
null
GB18030
C++
false
false
16,674
cpp
#include "tooltip_manager_win.h" #include <windowsx.h> #include <limits> #include "base/message_loop.h" #include "base/string_util.h" #include "ui_gfx/font.h" #include "ui_base/win/hwnd_util.h" #include "ui_base/win/screen.h" #include "ui_base/l10n/l10n_util_win.h" #include "view/view.h" #include "view/widget/monitor_win.h" #include "view/widget/widget.h" namespace view { static int tooltip_height_ = 0; // Default timeout for the tooltip displayed using keyboard. // Timeout is mentioned in milliseconds. static const int kDefaultTimeout = 4000; // static int TooltipManager::GetTooltipHeight() { DCHECK(tooltip_height_ > 0); return tooltip_height_; } static gfx::Font DetermineDefaultFont() { HWND window = CreateWindowEx( WS_EX_TRANSPARENT|ui::GetExtendedTooltipStyles(), TOOLTIPS_CLASS, NULL, 0 , 0, 0, 0, 0, NULL, NULL, NULL, NULL); if(!window) { return gfx::Font(); } HFONT hfont = reinterpret_cast<HFONT>(SendMessage(window, WM_GETFONT, 0, 0)); gfx::Font font = hfont ? gfx::Font(hfont) : gfx::Font(); DestroyWindow(window); return font; } // static gfx::Font TooltipManager::GetDefaultFont() { static gfx::Font* font = NULL; if(!font) { font = new gfx::Font(DetermineDefaultFont()); } return *font; } // static int TooltipManager::GetMaxWidth(int x, int y) { gfx::Rect monitor_bounds = ui::Screen::GetMonitorAreaNearestPoint(gfx::Point(x, y)); // Allow the tooltip to be almost as wide as the screen. // Otherwise, we would truncate important text, since we're not word-wrapping // the text onto multiple lines. return monitor_bounds.width()==0 ? 800 : monitor_bounds.width()-30; } TooltipManagerWin::TooltipManagerWin(Widget* widget) : widget_(widget), last_mouse_pos_(-1,-1), tooltip_showing_(false), last_tooltip_view_(NULL), last_view_out_of_sync_(false), tooltip_width_(0), keyboard_tooltip_hwnd_(NULL), keyboard_tooltip_factory_(this) { DCHECK(widget); DCHECK(widget->GetNativeView()); Init(); } TooltipManagerWin::~TooltipManagerWin() { if(tooltip_hwnd_) { DestroyWindow(tooltip_hwnd_); } if(keyboard_tooltip_hwnd_) { DestroyWindow(keyboard_tooltip_hwnd_); } } bool TooltipManagerWin::Init() { // Create the tooltip control. tooltip_hwnd_ = CreateWindowEx( WS_EX_TRANSPARENT|ui::GetExtendedTooltipStyles(), TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0, GetParent(), NULL, NULL, NULL); if(!tooltip_hwnd_) { return false; } ui::AdjustUIFontForWindow(tooltip_hwnd_); // This effectively turns off clipping of tooltips. We need this otherwise // multi-line text (\r\n) won't work right. The size doesn't really matter // (just as long as its bigger than the monitor's width) as we clip to the // screen size before rendering. SendMessage(tooltip_hwnd_, TTM_SETMAXTIPWIDTH, 0, std::numeric_limits<short>::max()); // Add one tool that is used for all tooltips. toolinfo_.cbSize = sizeof(toolinfo_); #if (_WIN32_WINNT >= 0x0501) toolinfo_.cbSize -= sizeof(void*); // 参见TOOLINFO的定义. #endif toolinfo_.uFlags = TTF_TRANSPARENT | TTF_IDISHWND; toolinfo_.hwnd = GetParent(); toolinfo_.uId = reinterpret_cast<UINT_PTR>(GetParent()); // Setting this tells windows to call GetParent() back (using a WM_NOTIFY // message) for the actual tooltip contents. toolinfo_.lpszText = LPSTR_TEXTCALLBACK; SetRectEmpty(&toolinfo_.rect); SendMessage(tooltip_hwnd_, TTM_ADDTOOL, 0, (LPARAM)&toolinfo_); return true; } HWND TooltipManagerWin::GetParent() { return widget_->GetNativeView(); } void TooltipManagerWin::UpdateTooltip() { // Set last_view_out_of_sync_ to indicate the view is currently out of sync. // This doesn't update the view under the mouse immediately as it may cause // timing problems. last_view_out_of_sync_ = true; last_tooltip_view_ = NULL; // Hide the tooltip. SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); } void TooltipManagerWin::TooltipTextChanged(View* view) { if(view == last_tooltip_view_) { UpdateTooltip(last_mouse_pos_); } } LRESULT TooltipManagerWin::OnNotify(int w_param, NMHDR* l_param, bool* handled) { *handled = false; if(l_param->hwndFrom==tooltip_hwnd_ && keyboard_tooltip_hwnd_==NULL) { switch(l_param->code) { case TTN_GETDISPINFO: { if(last_view_out_of_sync_) { // View under the mouse is out of sync, determine it now. View* root_view = widget_->GetRootView(); last_tooltip_view_ = root_view->GetEventHandlerForPoint(last_mouse_pos_); last_view_out_of_sync_ = false; } // Tooltip control is asking for the tooltip to display. NMTTDISPINFOW* tooltip_info = reinterpret_cast<NMTTDISPINFOW*>(l_param); // Initialize the string, if we have a valid tooltip the string will // get reset below. tooltip_info->szText[0] = TEXT('\0'); tooltip_text_.clear(); tooltip_info->lpszText = NULL; clipped_text_.clear(); if(last_tooltip_view_ != NULL) { tooltip_text_.clear(); // Mouse is over a View, ask the View for it's tooltip. gfx::Point view_loc = last_mouse_pos_; View::ConvertPointToView(widget_->GetRootView(), last_tooltip_view_, &view_loc); if(last_tooltip_view_->GetTooltipText(view_loc, &tooltip_text_) && !tooltip_text_.empty()) { // View has a valid tip, copy it into TOOLTIPINFO. clipped_text_ = tooltip_text_; gfx::Point screen_loc = last_mouse_pos_; View::ConvertPointToScreen(widget_->GetRootView(), &screen_loc); TrimTooltipToFit(&clipped_text_, &tooltip_width_, &line_count_, screen_loc.x(), screen_loc.y()); // Adjust the clipped tooltip text for locale direction. base::i18n::AdjustStringForLocaleDirection(&clipped_text_); tooltip_info->lpszText = const_cast<WCHAR*>(clipped_text_.c_str()); } else { tooltip_text_.clear(); } } *handled = true; return 0; } case TTN_POP: tooltip_showing_ = false; *handled = true; return 0; case TTN_SHOW: { *handled = true; tooltip_showing_ = true; // The tooltip is about to show, allow the view to position it gfx::Point text_origin; if(tooltip_height_ == 0) { tooltip_height_ = CalcTooltipHeight(); } gfx::Point view_loc = last_mouse_pos_; View::ConvertPointToView(widget_->GetRootView(), last_tooltip_view_, &view_loc); if(last_tooltip_view_->GetTooltipTextOrigin(view_loc, &text_origin) && SetTooltipPosition(text_origin.x(), text_origin.y())) { // Return true, otherwise the rectangle we specified is ignored. return TRUE; } return 0; } default: // Fall through. break; } } return 0; } bool TooltipManagerWin::SetTooltipPosition(int text_x, int text_y) { // NOTE: this really only tests that the y location fits on screen, but that // is good enough for our usage. // Calculate the bounds the tooltip will get. gfx::Point view_loc; View::ConvertPointToScreen(last_tooltip_view_, &view_loc); RECT bounds = { view_loc.x() + text_x, view_loc.y() + text_y, view_loc.x() + text_x + tooltip_width_, view_loc.y() + line_count_ * GetTooltipHeight() }; SendMessage(tooltip_hwnd_, TTM_ADJUSTRECT, TRUE, (LPARAM)&bounds); // Make sure the rectangle completely fits on the current monitor. If it // doesn't, return false so that windows positions the tooltip at the // default location. gfx::Rect monitor_bounds = GetMonitorBoundsForRect( gfx::Rect(bounds.left, bounds.right, 0, 0)); if(!monitor_bounds.Contains(gfx::Rect(bounds))) { return false; } ::SetWindowPos(tooltip_hwnd_, NULL, bounds.left, bounds.top, 0, 0, SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOSIZE); return true; } int TooltipManagerWin::CalcTooltipHeight() { // Ask the tooltip for it's font. int height; HFONT hfont = reinterpret_cast<HFONT>( SendMessage(tooltip_hwnd_, WM_GETFONT, 0, 0)); if(hfont != NULL) { HDC dc = GetDC(tooltip_hwnd_); HFONT previous_font = static_cast<HFONT>(SelectObject(dc, hfont)); int last_map_mode = SetMapMode(dc, MM_TEXT); TEXTMETRIC font_metrics; GetTextMetrics(dc, &font_metrics); height = font_metrics.tmHeight; // To avoid the DC referencing font_handle_, select the previous font. SelectObject(dc, previous_font); SetMapMode(dc, last_map_mode); ReleaseDC(NULL, dc); } else { // Tooltip is using the system font. Use gfx::Font, which should pick // up the system font. height = gfx::Font().GetHeight(); } // Get the margins from the tooltip RECT tooltip_margin; SendMessage(tooltip_hwnd_, TTM_GETMARGIN, 0, (LPARAM)&tooltip_margin); return height + tooltip_margin.top + tooltip_margin.bottom; } void TooltipManagerWin::UpdateTooltip(const gfx::Point& mouse_pos) { View* root_view = widget_->GetRootView(); View* view = root_view->GetEventHandlerForPoint(mouse_pos); if(view != last_tooltip_view_) { // NOTE: This *must* be sent regardless of the visibility of the tooltip. // It triggers Windows to ask for the tooltip again. SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); last_tooltip_view_ = view; } else if(last_tooltip_view_ != NULL) { // Tooltip is showing, and mouse is over the same view. See if the tooltip // text has changed. gfx::Point view_point = mouse_pos; View::ConvertPointToView(root_view, last_tooltip_view_, &view_point); string16 new_tooltip_text; bool has_tooltip_text = last_tooltip_view_->GetTooltipText(view_point, &new_tooltip_text); if(!has_tooltip_text || (new_tooltip_text != tooltip_text_)) { // The text has changed, hide the popup. SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); if(has_tooltip_text && !new_tooltip_text.empty() && tooltip_showing_) { // New text is valid, show the popup. SendMessage(tooltip_hwnd_, TTM_POPUP, 0, 0); } } } } void TooltipManagerWin::OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param) { gfx::Point mouse_pos(l_param); if(u_msg>=WM_NCMOUSEMOVE && u_msg<=WM_NCXBUTTONDBLCLK) { // NC message coordinates are in screen coordinates. POINT temp = mouse_pos.ToPOINT(); ::MapWindowPoints(HWND_DESKTOP, GetParent(), &temp, 1); mouse_pos.SetPoint(temp.x, temp.y); } if(u_msg!=WM_MOUSEMOVE || last_mouse_pos_!=mouse_pos) { last_mouse_pos_ = mouse_pos; HideKeyboardTooltip(); UpdateTooltip(mouse_pos); } // Forward the message onto the tooltip. MSG msg; msg.hwnd = GetParent(); msg.message = u_msg; msg.wParam = w_param; msg.lParam = l_param; SendMessage(tooltip_hwnd_, TTM_RELAYEVENT, 0, (LPARAM)&msg); } void TooltipManagerWin::ShowKeyboardTooltip(View* focused_view) { if(tooltip_showing_) { SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); tooltip_text_.clear(); } HideKeyboardTooltip(); string16 tooltip_text; if(!focused_view->GetTooltipText(gfx::Point(), &tooltip_text)) { return; } gfx::Rect focused_bounds = focused_view->bounds(); gfx::Point screen_point; focused_view->ConvertPointToScreen(focused_view, &screen_point); keyboard_tooltip_hwnd_ = CreateWindowEx( WS_EX_TRANSPARENT|ui::GetExtendedTooltipStyles(), TOOLTIPS_CLASS, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); if(!keyboard_tooltip_hwnd_) { return; } SendMessage(keyboard_tooltip_hwnd_, TTM_SETMAXTIPWIDTH, 0, std::numeric_limits<short>::max()); int tooltip_width; int line_count; TrimTooltipToFit(&tooltip_text, &tooltip_width, &line_count, screen_point.x(), screen_point.y()); ReplaceSubstringsAfterOffset(&tooltip_text, 0, L"\n", L"\r\n"); TOOLINFO keyboard_toolinfo; memset(&keyboard_toolinfo, 0, sizeof(keyboard_toolinfo)); keyboard_toolinfo.cbSize = sizeof(keyboard_toolinfo); keyboard_toolinfo.hwnd = GetParent(); keyboard_toolinfo.uFlags = TTF_TRACK | TTF_TRANSPARENT | TTF_IDISHWND ; keyboard_toolinfo.lpszText = const_cast<WCHAR*>(tooltip_text.c_str()); SendMessage(keyboard_tooltip_hwnd_, TTM_ADDTOOL, 0, reinterpret_cast<LPARAM>(&keyboard_toolinfo)); SendMessage(keyboard_tooltip_hwnd_, TTM_TRACKACTIVATE, TRUE, reinterpret_cast<LPARAM>(&keyboard_toolinfo)); if(!tooltip_height_) { tooltip_height_ = CalcTooltipHeight(); } RECT rect_bounds = { screen_point.x(), screen_point.y()+focused_bounds.height(), screen_point.x()+tooltip_width, screen_point.y()+focused_bounds.height()+line_count*tooltip_height_ }; gfx::Rect monitor_bounds = GetMonitorBoundsForRect(gfx::Rect(rect_bounds)); rect_bounds = gfx::Rect(rect_bounds).AdjustToFit(monitor_bounds).ToRECT(); ::SetWindowPos(keyboard_tooltip_hwnd_, NULL, rect_bounds.left, rect_bounds.top, 0, 0, SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOSIZE); MessageLoop::current()->PostDelayedTask( keyboard_tooltip_factory_.NewRunnableMethod( &TooltipManagerWin::DestroyKeyboardTooltipWindow, keyboard_tooltip_hwnd_), kDefaultTimeout); } void TooltipManagerWin::HideKeyboardTooltip() { if(keyboard_tooltip_hwnd_ != NULL) { SendMessage(keyboard_tooltip_hwnd_, WM_CLOSE, 0, 0); keyboard_tooltip_hwnd_ = NULL; } } void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { if(keyboard_tooltip_hwnd_ == window_to_destroy) { HideKeyboardTooltip(); } } } //namespace view
[ "wlwlxj@gmail.com@b2b8c3b8-ce47-b78c-ec54-380d862a5473" ]
wlwlxj@gmail.com@b2b8c3b8-ce47-b78c-ec54-380d862a5473
d6af22d3232419cd8f3d638ca4f52688c45c83bf
0096aececded1cc35abe32d0fdc3f2d789b3f536
/MST1 - Minimum Step To One.cpp
f6abbdb400b649723a7662712604d89215ccf758
[]
no_license
JayantGoel001/SPOJ
e3cdca022af9fb63f4690d4905fae1aafe85cc11
f2371c5e2f8654b981ff89cfbe88d45de59265c0
refs/heads/master
2023-07-01T02:21:58.287116
2021-08-04T14:56:04
2021-08-04T14:56:04
320,226,183
5
0
null
2021-07-30T14:42:53
2020-12-10T09:44:25
C++
UTF-8
C++
false
false
775
cpp
#include <iostream> #include <map> using namespace std; int countMinMoves(int n,int *dp){ if (n<=1){ dp[n] = 0; return 0; } if (dp[n]!=-1){ return dp[n]; } int sub = countMinMoves(n-1,dp); if (n%2==0){ sub = min(sub,countMinMoves(n/2,dp)); } if (n%3==0){ sub = min(sub,countMinMoves(n/3,dp)); } dp[n] = 1+ sub; return dp[n]; } int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; int i=1; int TOT = 20000001; int *dp = new int [TOT]; for (int j=0; j<=TOT; j++){ dp[j] = -1; } countMinMoves(TOT,dp); while (t--) { int n; cin >> n; cout <<"Case "<<i<<": "<<dp[n]<<"\n"; i++; } }
[ "jgoel92@gmail.com" ]
jgoel92@gmail.com
9da500a6f2576cae6d72a80a469ab654c195703e
500215cfe1e859d5b07d2bbfb55b60ac185daeaf
/src/BlockingQueue.cpp
5b5fea33bc8f9d9537d51311153cfb885c1b23e6
[]
no_license
jmjoseph/nt-demo
db5892a3a094cdf6bd20cdfe3d8eebcfc2b086aa
6d6f5de0262f6e0ed94e4c7502edf48a3b406391
refs/heads/master
2023-04-06T11:30:28.541235
2020-05-27T23:07:18
2020-05-27T23:07:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
786
cpp
#include "BlockingQueue.h" #include <iostream> BlockingQueue::BlockingQueue() { } void BlockingQueue::push(std::unique_ptr<Task> t) { // Lock the mutex while the queue is modified std::unique_lock<std::mutex> lock(m_mutex); m_queue.push(std::move(t)); // Unlock and notify any process (pop()) that is waiting lock.unlock(); m_cond.notify_one(); } std::unique_ptr<Task> BlockingQueue::pop() { // Lock the mutex and wait until the queue is not empty std::unique_lock<std::mutex> lock(m_mutex); while (m_queue.empty()) { m_cond.wait(lock); } // Get pointer to task before it is popped off std::unique_ptr<Task> returnValue = std::move(m_queue.front()); m_queue.pop(); lock.unlock(); return returnValue; }
[ "jmjoseph8@ymail.com" ]
jmjoseph8@ymail.com
439030414316b8479dfaa737ba2838ab250008f3
760daa4d13754f763d6a59af91ca752ba7214b93
/program11.cpp
b85463d86247bab67c5aa61b417918be59640723
[]
no_license
LRAMSAI/bahubali
48fadb6b3c44db16dbcfc4973ed03dfa716f877f
4317cfe7c5ca5846c4a72991b49caff1f25fa955
refs/heads/master
2021-01-20T05:20:34.288933
2017-04-29T09:02:23
2017-04-29T09:02:23
89,773,044
0
0
null
null
null
null
UTF-8
C++
false
false
248
cpp
/*program to illustrate command line arguments*/ #include<iostream> using namespace std; int main(int argc, char*argv[]) { int i; cout<<"Total no. of arguments : "<<argc<<endl; for(i=0;i<argc;i++) cout<<"argv["<<i<<"]"<<argv[i]<<endl; return 0; }
[ "ladi.14.ece@anits.edu.in" ]
ladi.14.ece@anits.edu.in
fadda16afa2780fdb278ca15690ea73de47fa27f
a7c371ad35e055dd44b9c56a987d1626d70fc5d6
/examples/SI47XX_04_TFT/SI47XX_01_TFT_ILI9225/SI47XX_01_TFT_ILI9225.ino
fbee1757ae6654c5233fcbf254bd1a6ad2fa0831
[ "MIT" ]
permissive
hsuedq/SI4735
be42fcb19d3a8051924e1dd059c4fa6b05281b12
c575db9dcc1822da02c9ed7804bb94f7106eec30
refs/heads/master
2021-03-17T06:07:02.185968
2020-03-12T20:44:41
2020-03-12T20:44:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
21,070
ino
/* This sketch uses an Arduino Pro Mini, 3.3V (8MZ) with a SPI TFT from MICROYUM (2" - 176 x 220). It is also a complete radio capable to tune LW, MW, SW on AM and SSB mode and also receive the regular comercial stations. If you are using the same circuit used on examples with OLED and LCD, you have to change some buttons wire up. This TFT device takes five pins from Arduino. For this reason, it is necessary change the pins of some buttons. Fortunately, you can use the ATmega328 analog pins as digital pins. Wire up on Arduino UNO, Pro mini | Device name | Device Pin / Description | Arduino Pin | | ---------------- | -------------------- | ------------ | | Display TFT | | | | | RST (RESET) | 8 | | | RS | 9 | | | CS | 10 | | | SDI | 11 | | | CLK | 13 | | Si4735 | | | | | RESET (pin 15) | 12 | | | SDIO (pin 18) | A4 | | | SCLK (pin 17) | A5 | | Buttons | | | | | Switch MODE (AM/LSB/AM) | 4 | | | Banddwith | 5 | | | Next band | 6 | | | Previous band | 7 | | | AGC ON/OF | 14 / A0 | | | Frequency Step | 15 / A1 | | | VFO/VFO Switch | 16 / A3 | | Encoder | | | | | A | 2 | | | B | 3 | By PU2CLR, Ricardo, Feb 2020. */ #include <SI4735.h> #include <SPI.h> #include "TFT_22_ILI9225.h" // // See https://github.com/Nkawu/TFT_22_ILI9225/wiki #include "Rotary.h" // Test it with patch_init.h or patch_full.h. Do not try load both. #include "patch_init.h" // SSB patch for whole SSBRX initialization string const uint16_t size_content = sizeof ssb_patch_content; // see ssb_patch_content in patch_full.h or patch_init.h // TFT MICROYUM or ILI9225 based device pin setup #define TFT_RST 8 #define TFT_RS 9 #define TFT_CS 10 // SS #define TFT_SDI 11 // MOSI #define TFT_CLK 13 // SCK #define TFT_LED 0 // 0 if wired to +3.3V directly #define TFT_BRIGHTNESS 200 #define FM_BAND_TYPE 0 #define MW_BAND_TYPE 1 #define SW_BAND_TYPE 2 #define LW_BAND_TYPE 3 #define RESET_PIN 12 // Enconder PINs #define ENCODER_PIN_A 2 #define ENCODER_PIN_B 3 // Buttons controllers #define MODE_SWITCH 4 // Switch MODE (Am/LSB/USB) #define BANDWIDTH_BUTTON 5 // Used to select the banddwith. Values: 1.2, 2.2, 3.0, 4.0, 0.5, 1.0 KHz #define BAND_BUTTON_UP 6 // Next band #define BAND_BUTTON_DOWN 7 // Previous band #define AGC_SWITCH 14 // Pin A0 - Switch AGC ON/OF #define STEP_SWITCH 15 // Pin A1 - Used to select the increment or decrement frequency step (1, 5 or 10 KHz) #define BFO_SWITCH 16 // Pin A3 - Used to select the enconder control (BFO or VFO) #define MIN_ELAPSED_TIME 100 #define MIN_ELAPSED_RSSI_TIME 150 #define DEFAULT_VOLUME 50 // change it for your favorite sound volume #define FM 0 #define LSB 1 #define USB 2 #define AM 3 #define LW 4 #define SSB 1 #define CLEAR_BUFFER(x) (x[0] = '\0'); bool bfoOn = false; bool disableAgc = true; bool ssbLoaded = false; bool fmStereo = true; int currentBFO = 0; long elapsedRSSI = millis(); long elapsedButton = millis(); // Encoder control variables volatile int encoderCount = 0; // Some variables to check the SI4735 status uint16_t currentFrequency; uint8_t currentBFOStep = 25; uint8_t bwIdxSSB = 2; const char * bandwitdthSSB[] = {"1.2", "2.2", "3.0", "4.0", "0.5", "1.0"}; uint8_t bwIdxAM = 1; const char * bandwitdthAM[] = {"6", "4", "3", "2", "1", "1.8", "2.5"}; const char * bandModeDesc[] = {"FM ", "LSB", "USB", "AM "}; uint8_t currentMode = FM; uint16_t currentStep = 1; char bufferDisplay[40]; // Useful to handle string char bufferFreq[15]; char bufferBFO[15]; char bufferStepVFO[15]; char bufferStepBFO[15]; char bufferBW[15]; char bufferAGC[15]; char bufferBand[15]; char bufferStereo[15]; /* Band data structure */ typedef struct { const char *bandName; // Band description uint8_t bandType; // Band type (FM, MW or SW) uint16_t minimumFreq; // Minimum frequency of the band uint16_t maximumFreq; // maximum frequency of the band uint16_t currentFreq; // Default frequency or current frequency uint16_t currentStep; // Defeult step (increment and decrement) } Band; /* Band table */ Band band[] = { {"FM ", FM_BAND_TYPE, 8400, 10800, 10390, 10}, {"LW ", LW_BAND_TYPE, 100, 510, 300, 1}, {"AM ", MW_BAND_TYPE, 520, 1720, 810, 10}, {"80m", SW_BAND_TYPE, 3000, 4500, 3700, 1}, // 80 meters - 160 meters {"60m", SW_BAND_TYPE, 4500, 6300, 6000, 5}, // {"41m", SW_BAND_TYPE, 6800, 7800, 7100, 5}, // 40 meters {"31m", SW_BAND_TYPE, 9200, 10000, 9600, 5}, {"25m", SW_BAND_TYPE, 11200, 12500, 11940, 5}, {"22m", SW_BAND_TYPE, 13400, 13900, 13600, 5}, {"20m", SW_BAND_TYPE, 14000, 14500, 14200, 1}, // 20 meters {"19m", SW_BAND_TYPE, 15000, 15900, 15300, 5}, {"17m", SW_BAND_TYPE, 18000, 18300, 18100, 1}, // 17 meters {"15m", SW_BAND_TYPE, 21000, 21900, 21200, 1}, // 15 mters {"CB ", SW_BAND_TYPE, 26200, 27900, 27500, 1}, // CB band (11 meters) {"10m", SW_BAND_TYPE, 28000, 30000, 28400, 1}, {"All", SW_BAND_TYPE, 100, 30000, 14200, 1}, // ALL SW (From 1.7 to 30 MHZ) }; const int lastBand = (sizeof band / sizeof(Band)) - 1; int bandIdx = 0; const char * const text_arduino_library = "PU2CLR-SI4735 Arduino Library"; const char * const text_example = "https://github.com/pu2clr/SI4735"; const char * const text_message = "DIY - You can make it better."; uint8_t rssi = 0; uint8_t snr = 0; uint8_t stereo = 1; uint8_t volume = DEFAULT_VOLUME; // Devices class declarations Rotary encoder = Rotary(ENCODER_PIN_A, ENCODER_PIN_B); TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_LED, TFT_BRIGHTNESS); SI4735 si4735; void setup() { // Encoder pins pinMode(ENCODER_PIN_A, INPUT_PULLUP); pinMode(ENCODER_PIN_B, INPUT_PULLUP); pinMode(BANDWIDTH_BUTTON, INPUT_PULLUP); pinMode(BAND_BUTTON_UP, INPUT_PULLUP); pinMode(BAND_BUTTON_DOWN, INPUT_PULLUP); pinMode(BFO_SWITCH, INPUT_PULLUP); pinMode(AGC_SWITCH, INPUT_PULLUP); pinMode(STEP_SWITCH, INPUT_PULLUP); pinMode(MODE_SWITCH, INPUT_PULLUP); // Use this initializer if using a 1.8" TFT screen: tft.begin(); tft.setOrientation(1); tft.clear(); showTemplate(); // Encoder interrupt attachInterrupt(digitalPinToInterrupt(ENCODER_PIN_A), rotaryEncoder, CHANGE); attachInterrupt(digitalPinToInterrupt(ENCODER_PIN_B), rotaryEncoder, CHANGE); si4735.setup(RESET_PIN, 1); // Set up the radio for the current band (see index table variable bandIdx ) useBand(); si4735.setVolume(volume); showStatus(); } /* Shows the static content on display */ void showTemplate() { int maxY1 = tft.maxY() - 1; int maxX1 = tft.maxX() - 1; tft.setFont(Terminal6x8); tft.drawRectangle(0, 0, maxX1, maxY1, COLOR_WHITE); tft.drawRectangle(2, 2, maxX1 - 2, 40, COLOR_YELLOW); tft.drawLine(150, 0, 150, 40, COLOR_YELLOW); tft.drawLine(0, 80, maxX1, 80, COLOR_YELLOW); // tft.drawLine(60, 40, 60, 80, COLOR_YELLOW); // Mode Block tft.drawLine(120, 40, 120, 80, COLOR_YELLOW); // Band name tft.drawText(5, 150, "SNR.:", COLOR_RED); tft.drawText(5, 163, "RSSI:", COLOR_RED); tft.drawLine(0, 145, maxX1, 145, COLOR_YELLOW); tft.drawRectangle(45, 150, maxX1 - 2, 156, COLOR_YELLOW); tft.drawRectangle(45, 163, maxX1 - 2, 169, COLOR_YELLOW); tft.drawText(5, 90, text_arduino_library, COLOR_YELLOW); tft.drawText(5, 110, text_example, COLOR_YELLOW); tft.drawText(5, 130, text_message, COLOR_YELLOW); } /* Prevents blinking during the frequency display. Erases the old digits if it has changed and print the new digit values. */ void printValue(int col, int line, char *oldValue, char *newValue, uint16_t color, uint8_t space) { int c = col; char * pOld; char * pNew; pOld = oldValue; pNew = newValue; // prints just changed digits while (*pOld && *pNew) { if (*pOld != *pNew) { tft.drawChar(c, line, *pOld, COLOR_BLACK); tft.drawChar(c, line, *pNew, color); } pOld++; pNew++; c += space; } // Is there anything else to erase? while (*pOld) { tft.drawChar(c, line, *pOld, COLOR_BLACK); pOld++; c += space; } // Is there anything else to print? while (*pNew) { tft.drawChar(c, line, *pNew, color); pNew++; c += space; } // Save the current content to be tested next time strcpy(oldValue, newValue); } /* Reads encoder via interrupt Use Rotary.h and Rotary.cpp implementation to process encoder via interrupt */ void rotaryEncoder() { // rotary encoder events uint8_t encoderStatus = encoder.process(); if (encoderStatus) encoderCount = (encoderStatus == DIR_CW) ? 1 : -1; } /* Shows frequency information on Display */ void showFrequency() { float freq; int iFreq, dFreq; uint16_t color; tft.setFont(Trebuchet_MS16x21); if (si4735.isCurrentTuneFM()) { freq = currentFrequency / 100.0; dtostrf(freq, 3, 1, bufferDisplay); } else { freq = currentFrequency / 1000.0; if (currentFrequency < 1000) sprintf(bufferDisplay, "%3d", currentFrequency); else dtostrf(freq, 2, 3, bufferDisplay); } color = (bfoOn) ? COLOR_CYAN : COLOR_YELLOW; printValue(10, 10, bufferFreq, bufferDisplay, color, 20); } /* Show some basic information on display */ void showStatus() { char unit[5]; si4735.getStatus(); si4735.getCurrentReceivedSignalQuality(); // SRN currentFrequency = si4735.getFrequency(); showFrequency(); tft.setFont(Terminal6x8); printValue(155, 10, bufferStepVFO, bufferDisplay, COLOR_BLACK, 7); if (si4735.isCurrentTuneFM()) { tft.drawText(155, 30, "MHz", COLOR_RED); // showBFOTemplate(COLOR_BLACK); // tft.drawText(124, 45, bufferBW, COLOR_BLACK); } else { sprintf(bufferDisplay, "Step: %2.2d", currentStep); printValue(155, 10, bufferStepVFO, bufferDisplay, COLOR_YELLOW, 6); tft.drawText(155, 30, "KHz", COLOR_RED); } if (band[bandIdx].bandType == SW_BAND_TYPE) sprintf(bufferDisplay, "%s %s", band[bandIdx].bandName, bandModeDesc[currentMode]); else sprintf(bufferDisplay, "%s", band[bandIdx].bandName); printValue(4, 60, bufferBand, bufferDisplay, COLOR_CYAN, 6); // AGC si4735.getAutomaticGainControl(); sprintf(bufferDisplay, "AGC %s", (si4735.isAgcEnabled()) ? "ON " : "OFF"); printValue(65, 60, bufferAGC, bufferDisplay, COLOR_CYAN, 6); showFilter(); } void showFilter() { // Bandwidth if (currentMode == LSB || currentMode == USB || currentMode == AM) { char * bw; tft.drawText(150, 60, bufferStereo, COLOR_BLACK); // Erase Stereo/Mono information if (currentMode == AM) { bw = (char *) bandwitdthAM[bwIdxAM]; } else { bw = (char *) bandwitdthSSB[bwIdxSSB]; showBFOTemplate(COLOR_CYAN); showBFO(); } sprintf(bufferDisplay, "BW: %s KHz", bw); printValue(124, 45, bufferBW, bufferDisplay, COLOR_CYAN, 6); } } /* ******************************* Shows RSSI status */ void showRSSI() { int rssiLevel; int snrLevel; int maxAux = tft.maxX(); tft.setFont(Terminal6x8); if (currentMode == FM) { sprintf(bufferDisplay, "%s", (si4735.getCurrentPilot()) ? "STEREO" : "MONO"); printValue(150, 60, bufferStereo, bufferDisplay, COLOR_CYAN, 7); } // Check it rssiLevel = 47 + map(rssi, 0, 127, 0, ( maxAux - 43) ); snrLevel = 47 + map(snr, 0, 127, 0, ( maxAux - 43) ); tft.fillRectangle(46, 151, maxAux - 3, 155, COLOR_BLACK); tft.fillRectangle(46, 164, maxAux - 3, 168, COLOR_BLACK); tft.fillRectangle(46, 151, rssiLevel, 155, COLOR_LIGHTCYAN); tft.fillRectangle(46, 164, snrLevel, 168, COLOR_LIGHTCYAN); } void showBFOTemplate(uint16_t color) { tft.setFont(Terminal6x8); tft.drawText(150, 60, bufferStereo, COLOR_BLACK); tft.drawText(124, 55, "BFO.:", color); tft.drawText(124, 65, "Step:", color); //tft.fillRectangle(160,55, 218,67,COLOR_BLACK); // tft.drawText(160, 55, bufferBFO, COLOR_BLACK); // tft.drawText(160, 65, bufferStepBFO, COLOR_BLACK); // showBFO(); } void clearBFO() { tft.fillRectangle(124,52, 218,73,COLOR_BLACK); // Clear All BFO area CLEAR_BUFFER(bufferBFO); CLEAR_BUFFER(bufferStepBFO); } void showBFO() { tft.setFont(Terminal6x8); sprintf(bufferDisplay, "%+4d", currentBFO); printValue(160, 55, bufferBFO, bufferDisplay, COLOR_CYAN, 7); sprintf(bufferDisplay, "%4d", currentBFOStep); printValue(160, 65, bufferStepBFO, bufferDisplay, COLOR_CYAN, 7); } /* Goes to the next band (see Band table) */ void bandUp() { // save the current frequency for the band band[bandIdx].currentFreq = currentFrequency; band[bandIdx].currentStep = currentStep; bandIdx = (bandIdx < lastBand) ? (bandIdx + 1) : 0; useBand(); } /* Goes to the previous band (see Band table) */ void bandDown() { // save the current frequency for the band band[bandIdx].currentFreq = currentFrequency; band[bandIdx].currentStep = currentStep; bandIdx = (bandIdx > 0) ? (bandIdx - 1) : lastBand; useBand(); } /* This function loads the contents of the ssb_patch_content array into the CI (Si4735) and starts the radio on SSB mode. */ void loadSSB() { si4735.reset(); si4735.queryLibraryId(); // Is it really necessary here? I will check it. si4735.patchPowerUp(); delay(50); // si4735.setI2CFastMode(); // Recommended si4735.setI2CFastModeCustom(500000); // It is a test and may crash. si4735.downloadPatch(ssb_patch_content, size_content); si4735.setI2CStandardMode(); // goes back to default (100KHz) // Parameters // AUDIOBW - SSB Audio bandwidth; 0 = 1.2KHz (default); 1=2.2KHz; 2=3KHz; 3=4KHz; 4=500Hz; 5=1KHz; // SBCUTFLT SSB - side band cutoff filter for band passand low pass filter ( 0 or 1) // AVC_DIVIDER - set 0 for SSB mode; set 3 for SYNC mode. // AVCEN - SSB Automatic Volume Control (AVC) enable; 0=disable; 1=enable (default). // SMUTESEL - SSB Soft-mute Based on RSSI or SNR (0 or 1). // DSP_AFCDIS - DSP AFC Disable or enable; 0=SYNC MODE, AFC enable; 1=SSB MODE, AFC disable. si4735.setSSBConfig(bwIdxSSB, 1, 0, 0, 0, 1); delay(25); ssbLoaded = true; } /* Switch the radio to current band */ void useBand() { showBFOTemplate(COLOR_BLACK); if (band[bandIdx].bandType == FM_BAND_TYPE) { currentMode = FM; si4735.setTuneFrequencyAntennaCapacitor(0); si4735.setFM(band[bandIdx].minimumFreq, band[bandIdx].maximumFreq, band[bandIdx].currentFreq, band[bandIdx].currentStep); bfoOn = ssbLoaded = false; } else { // set the tuning capacitor for SW or MW/LW si4735.setTuneFrequencyAntennaCapacitor( (band[bandIdx].bandType == MW_BAND_TYPE || band[bandIdx].bandType == LW_BAND_TYPE) ? 0 : 1); if (ssbLoaded) { si4735.setSSB(band[bandIdx].minimumFreq, band[bandIdx].maximumFreq, band[bandIdx].currentFreq, band[bandIdx].currentStep, currentMode); si4735.setSSBAutomaticVolumeControl(1); si4735.setSsbSoftMuteMaxAttenuation(0); // Disable Soft Mute for SSB } else { currentMode = AM; si4735.setAM(band[bandIdx].minimumFreq, band[bandIdx].maximumFreq, band[bandIdx].currentFreq, band[bandIdx].currentStep); si4735.setAutomaticGainControl(1, 0); si4735.setAmSoftMuteMaxAttenuation(0); // // Disable Soft Mute for AM bfoOn = false; } } delay(100); currentFrequency = band[bandIdx].currentFreq; currentStep = band[bandIdx].currentStep; rssi = 0; clearBFO(); tft.fillRectangle(155, 3, 216, 20, COLOR_BLACK); // Clear Step field showStatus(); } void loop() { // Check if the encoder has moved. if (encoderCount != 0) { if (bfoOn) { currentBFO = (encoderCount == 1) ? (currentBFO + currentBFOStep) : (currentBFO - currentBFOStep); si4735.setSSBBfo(currentBFO); showBFO(); } else { if (encoderCount == 1) si4735.frequencyUp(); else si4735.frequencyDown(); // Show the current frequency only if it has changed currentFrequency = si4735.getFrequency(); } showFrequency(); encoderCount = 0; } // Check button commands if ((millis() - elapsedButton) > MIN_ELAPSED_TIME) { // check if some button is pressed if (digitalRead(BANDWIDTH_BUTTON) == LOW) { if (currentMode == LSB || currentMode == USB) { bwIdxSSB++; if (bwIdxSSB > 5) bwIdxSSB = 0; si4735.setSSBAudioBandwidth(bwIdxSSB); // If audio bandwidth selected is about 2 kHz or below, it is recommended to set Sideband Cutoff Filter to 0. if (bwIdxSSB == 0 || bwIdxSSB == 4 || bwIdxSSB == 5) si4735.setSBBSidebandCutoffFilter(0); else si4735.setSBBSidebandCutoffFilter(1); } else if (currentMode == AM) { bwIdxAM++; if (bwIdxAM > 6) bwIdxAM = 0; si4735.setBandwidth(bwIdxAM, 0); } showStatus(); delay(MIN_ELAPSED_TIME); // waits a little more for releasing the button. } else if (digitalRead(BAND_BUTTON_UP) == LOW) bandUp(); else if (digitalRead(BAND_BUTTON_DOWN) == LOW) bandDown(); else if (digitalRead(BFO_SWITCH) == LOW) { if (currentMode == LSB || currentMode == USB) { bfoOn = !bfoOn; if (bfoOn) { showBFOTemplate(COLOR_CYAN); showStatus(); showBFO(); } else { showBFOTemplate(COLOR_BLACK); clearBFO(); } CLEAR_BUFFER(bufferFreq); } /* Uncomment this block if you want FM Seek Station when push encoder button else if (currentMode == FM) { si4735.seekStationUp(); currentFrequency = si4735.getFrequency(); } */ delay(MIN_ELAPSED_TIME); // waits a little more for releasing the button. showFrequency(); } else if (digitalRead(AGC_SWITCH) == LOW) { disableAgc = !disableAgc; // siwtch on/off ACG; AGC Index = 0. It means Minimum attenuation (max gain) si4735.setAutomaticGainControl(disableAgc, 1); showStatus(); } else if (digitalRead(STEP_SWITCH) == LOW) { // This command should work only for SSB mode if (bfoOn && (currentMode == LSB || currentMode == USB)) { currentBFOStep = (currentBFOStep == 25) ? 10 : 25; showBFO(); } else { if (currentStep == 1) currentStep = 5; else if (currentStep == 5) currentStep = 10; else if (currentStep == 10) currentStep = 50; else if ( currentStep == 50 && bandIdx == lastBand) // If band index is All, you can use 500KHz Step. currentStep = 500; else currentStep = 1; si4735.setFrequencyStep(currentStep); band[bandIdx].currentStep = currentStep; showStatus(); } delay(MIN_ELAPSED_TIME); // waits a little more for releasing the button. } else if (digitalRead(MODE_SWITCH) == LOW) { if (currentMode != FM) { if (currentMode == AM) { // If you were in AM mode, it is necessary to load SSB patch (avery time) loadSSB(); currentMode = LSB; } else if (currentMode == LSB) { currentMode = USB; } else if (currentMode == USB) { currentMode = AM; bfoOn = ssbLoaded = false; } // Nothing to do if you are in FM mode band[bandIdx].currentFreq = currentFrequency; band[bandIdx].currentStep = currentStep; useBand(); } } elapsedButton = millis(); } // Show RSSI status only if this condition has changed if ((millis() - elapsedRSSI) > MIN_ELAPSED_RSSI_TIME * 6) { si4735.getCurrentReceivedSignalQuality(); int aux = si4735.getCurrentRSSI(); if (rssi != aux) { rssi = aux; snr = si4735.getCurrentSNR(); showRSSI(); } elapsedRSSI = millis(); } delay(10); }
[ "ricardo.caratti@adm.cogect" ]
ricardo.caratti@adm.cogect
9cc1bdbe1bb95ddaccc8471cc6fb717b93630cca
a08c82562c6d90c89a1d95ddb498dd108a33adf8
/voxblox_rrt_planner/include/voxblox_rrt_planner/ompl_rrt_voxblox.h
f2159f757198aef5cfa6f87c039b18ab0765eb32
[ "BSD-3-Clause" ]
permissive
Tatsuya-2/mav_voxblox_planning
5b7b9c2b5044b01c8ac016fbe0556c0955beb8c7
ef3561392845d471d702311ba66b8029f11ce0ee
refs/heads/master
2022-12-17T05:03:01.201529
2020-09-18T04:46:40
2020-09-18T04:46:40
296,487,096
0
0
BSD-3-Clause
2020-09-18T02:20:56
2020-09-18T01:56:59
C++
UTF-8
C++
false
false
1,236
h
#ifndef VOXBLOX_RRT_PLANNER_VOXBLOX_OMPL_RRT_H_ #define VOXBLOX_RRT_PLANNER_VOXBLOX_OMPL_RRT_H_ #include <mav_msgs/conversions.h> #include <mav_msgs/eigen_mav_msgs.h> #include <ros/ros.h> #include "voxblox_rrt_planner/ompl/mav_setup_voxblox.h" #include "voxblox_rrt_planner/ompl_rrt.h" namespace mav_planning { class VoxbloxOmplRrt : public BloxOmplRrt { public: VoxbloxOmplRrt(const ros::NodeHandle& nh, const ros::NodeHandle& nh_private); virtual ~VoxbloxOmplRrt() {} // Both are expected to be OWNED BY ANOTHER OBJECT that shouldn't go out of // scope while this object exists. void setTsdfLayer(voxblox::Layer<voxblox::TsdfVoxel>* tsdf_layer); void setEsdfLayer(voxblox::Layer<voxblox::EsdfVoxel>* esdf_layer); // Only call this once, only call this after setting all settings correctly. void setupProblem(); protected: // Setup the problem in OMPL. ompl::mav::MavSetupVoxblox problem_setup_voxblox_; // NON-OWNED pointers to the relevant layers. TSDF only used if optimistic, // ESDF only used if pessimistic. voxblox::Layer<voxblox::TsdfVoxel>* tsdf_layer_; voxblox::Layer<voxblox::EsdfVoxel>* esdf_layer_; }; } // namespace mav_planning #endif // VOXBLOX_RRT_PLANNER_VOXBLOX_OMPL_RRT_H_
[ "gasserl@mavt.ethz.ch" ]
gasserl@mavt.ethz.ch
bb7852146244a0b9e4aa502ac88bc39e619dcc73
d0658532ab057dd443716f9684b45e6b5fa3adbe
/BitManipulation/BitManipulation/Solutions.cpp
c027734bfdcd07c77b118040ef5200a88e68cca2
[]
no_license
toulene69/cpp-codes
a23ddc739cadd3312dc083da288e7ffb371bb630
00efc046596a29ee1e42ffca98f9aeecae824512
refs/heads/master
2021-01-16T00:28:51.712575
2018-01-18T19:28:48
2018-01-18T19:28:48
99,964,790
1
1
null
null
null
null
UTF-8
C++
false
false
2,541
cpp
// // Solutions.cpp // BitManipulation // // Created by Apoorv on 02/08/17. // Copyright © 2017 presonal. All rights reserved. // #include "Solutions.hpp" int numSetBits(unsigned int A) { int count = 0; while (A!=0) { if (A&1) { count++; } A = A>>1; } return count; } unsigned int reverse(unsigned int A) { unsigned int rev = 0; if (A == 0) { return rev; } int pos = 31; while (A!=0) { if (A&1) { rev |= (1<<pos); } A = A>>1; pos--; } return rev; } int findMinXor(vector<int> &A) { int minXor = INT_MAX; sort(A.begin(), A.end()); int x; for (int i=0; i<A.size()-1; i++) { x = A[i]^A[i+1]; if (x < minXor) { minXor = x; } } return minXor; } int singleNumber(const vector<int> &A) { int num = A[0]; for (int i = 1;i<A.size() ;++i) { num ^= A[i]; } return num; } int singleNumber2(const vector<int> &A) { int ones = 0; int twos = 0; int not_threes = 0; for (int i=0; i<A.size(); ++i) { twos = twos| (ones & A[i]); // add to twice occuring ones = ones^A[i]; // add to once occuring not_threes = ~(ones & twos); // if number is in both onces and twice then ones = ones & not_threes; // remove from both twos = twos & not_threes; } return ones; } int divide(int dividend, int divisor) { long long n = dividend, m = divisor; // determine sign of the quotient int sign = n < 0 ^ m < 0 ? -1 : 1; // remove sign of operands n = abs(n), m = abs(m); // q stores the quotient in computation long long q = 0; // test down from the highest bit // accumulate the tentative value for valid bits for (long long t = 0, i = 31; i >= 0; i--) if (t + (m << i) <= n) t += m << i, q |= 1LL << i; // assign back the sign if (sign < 0) q = -q; // check for overflow and return return q >= INT_MAX || q < INT_MIN ? INT_MAX : q; } int cntBits(vector<int> &A) { long long modulo = 1000000007; int res = 0; for (int i=0; i<32; ++i) { int bit0 = 0, bit1 = 0; for (int j = 0; j<A.size(); ++j) { if (A[j] & 1<<i) { bit1++; } else { bit0++; } } res = (res + 2*bit0*bit1)%modulo; } return res % modulo; }
[ "toulene69@gmail.com" ]
toulene69@gmail.com
69292525488f0e50c17dfe22399fc835c27ceae1
01ed73bffc3902c3a8bf93c18b5d9040221c3efd
/HLS/test_core.cpp
0b0bbde557c76469a85e3e34e51db36a2264347b
[]
no_license
syedtihaamahmad/Image_Processing_on_FPGA-Machine-learning-
ffd656f52321db6c74b28a41be6c83f72bf140f5
ae244bd008eaa8d4fb864a871e631397293cdc1b
refs/heads/master
2021-09-02T12:18:29.109332
2018-01-02T14:43:00
2018-01-02T14:43:00
116,011,987
0
0
null
null
null
null
UTF-8
C++
false
false
2,957
cpp
#include <stdio.h> #include <opencv2/core/core.hpp> #include <hls_opencv.h> #include "core.h" #include "testUtils.h" // Blur /* char kernel[KERNEL_DIM*KERNEL_DIM] = { 1/9, 1/9, 1/9, 1/9, 1/9, 1/9, 1/9, 1/9, 1/9, }; */ // Impulse /*char kernel[KERNEL_DIM*KERNEL_DIM] = { 0, 0, 0, 0, 1, 0, 0, 0, 0, };*/ // Sobel /*char kernel[KERNEL_DIM*KERNEL_DIM] = { -1, -2, -1, 0, 0, 0, 1, 2, 1, };*/ // Edge /* char kernel[KERNEL_DIM*KERNEL_DIM] = { -1, -1, -1, -1, 8, -1, -1, -1, -1, }; */ // Use with morphological (Erode, Dilate) char kernel[KERNEL_DIM*KERNEL_DIM] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, }; // Image File path char outImage[IMG_HEIGHT_OR_ROWS][IMG_WIDTH_OR_COLS]; char outImageRef[IMG_HEIGHT_OR_ROWS][IMG_WIDTH_OR_COLS]; int main() { // Read input image printf("Load image %s\n",INPUT_IMAGE_CORE); cv::Mat imageSrc; imageSrc = cv::imread(INPUT_IMAGE_CORE); // Convert to grayscale cv::cvtColor(imageSrc, imageSrc, CV_BGR2GRAY); printf("Image Rows:%d Cols:%d\n",imageSrc.rows, imageSrc.cols); // Define streams for input and output hls::stream<uint_8_side_channel> inputStream; hls::stream<int_8_side_channel> outputStream; // OpenCV mat that point to a array (cv::Size(Width, Height)) cv::Mat imgCvOut(cv::Size(imageSrc.cols, imageSrc.rows), CV_8UC1, outImage, cv::Mat::AUTO_STEP); cv::Mat imgCvOutRef(cv::Size(imageSrc.cols, imageSrc.rows), CV_8UC1, outImageRef, cv::Mat::AUTO_STEP); // Populate the input stream with the image bytes for (int idxRows=0; idxRows < imageSrc.rows; idxRows++) { for (int idxCols=0; idxCols < imageSrc.cols; idxCols++) { uint_8_side_channel valIn; valIn.data = imageSrc.at<unsigned char>(idxRows,idxCols); valIn.keep = 1; valIn.strb = 1; valIn.user = 1; valIn.id = 0; valIn.dest = 0; inputStream << valIn; } } // Do the convolution (Reference) printf("Calling Reference function\n"); conv2dByHand(imageSrc,outImageRef,kernel,KERNEL_DIM); printf("Reference function ended\n"); // Save image out file or display if (imageSrc.rows < 12) { printSmallMatrixCVChar("Ref Core", imgCvOutRef); } else { printf("Saving image Ref\n"); saveImage(std::string(OUTPUT_IMAGE_REF) ,imgCvOutRef); } // Do the convolution on the core (Third parameter choose operation 0(conv),1(erode),2(dilate) printf("Calling Core function\n"); doImgProc(inputStream, outputStream, kernel,0); printf("Core function ended\n"); // Take data from the output stream to our array outImage (Pointed in opencv) for (int idxRows=0; idxRows < imageSrc.rows; idxRows++) { for (int idxCols=0; idxCols < imageSrc.cols; idxCols++) { int_8_side_channel valOut; outputStream.read(valOut); outImage[idxRows][idxCols] = valOut.data; } } // Save image out file or display if (imageSrc.rows < 12) { printSmallMatrixCVChar("Res Core", imgCvOut); } else { printf("Saving image\n"); saveImage(std::string(OUTPUT_IMAGE_CORE) ,imgCvOut); } return 0; }
[ "syedtahaamahmad@gmail.com" ]
syedtahaamahmad@gmail.com
14edd347760ec0ebaa73c4b5cf4810e1e73e7aa1
a3737f85d194ee475eeb9fd475af04d3a6c63a10
/GameLib/UniquePtr.cpp
945c0255ab0380add72b8f8cf27ccaaa9ff1e201
[]
no_license
amitprakash07/GameEngineeringI
c8dd7edd422048492bba091869a01f7aec7011b4
5854967a1ee0930af59d9850ddc3416566ceadcd
refs/heads/master
2020-05-29T11:03:08.561783
2015-05-13T21:54:54
2015-05-13T21:57:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,186
cpp
#include "UniquePtr.h" #include <assert.h> namespace myEngine { /*template<typename T> T* UniquePtr<T>::CreateObject() { if (m_WrappingObject != nullptr) m_WrappingObject = new T; return m_WrappingObject; }*/ template<typename T> UniquePtr<T>::UniquePtr() { m_WrappingObject = new T; } template<typename T> bool UniquePtr<T>::deleteObject() { assert(m_WrappingObject); delete m_WrappingObject; if (m_WrappingObject == null) return true; return false; } template<typename T> UniquePtr<T>::~UniquePtr() { deleteObject(); } template<typename T> UniquePtr<T>::UniquePtr(UniquePtr<T> &i_ptr) { m_WrappingObject = i_ptr.m_WrappingObject; delete (i_ptr->deleteObject()); } template<typename T> UniquePtr<T>& UniquePtr<T>:: operator=(UniquePtr& i_other) { if (m_WrappingObject != nullptr) { deleteObject(this); m_WrappingObject = i_other.m_WrappingObject; return *this; } } template<typename T> T& UniquePtr<T>:: operator*() { assert(m_WrappingObject); return *(m_WrappingObject); } template<typename T> T* UniquePtr<T>::operator->() { assert(m_WrappingObject); return m_WrappingObject; } }//namespace myEngine
[ "amit_prakash07@hotmail.com" ]
amit_prakash07@hotmail.com
85d41132329f35dee33ec29a92b97a0be4c0975c
31e144bfe008ce67db00d01777012c3a8153990e
/algo/count-inversion-bit.cpp
76b57231e33db46d1900e776fd6acda317ad38c6
[]
no_license
reliveinfire/codes
0d285dd002bfef5732182144be19681dd22091e2
69750ebf708bcbf8ac7723c19f5370793cf8f95b
refs/heads/master
2021-01-15T18:27:23.743076
2018-05-07T09:33:51
2018-05-07T09:33:51
99,788,745
1
0
null
null
null
null
UTF-8
C++
false
false
2,288
cpp
#include<bits/stdc++.h> using namespace std; // Returns sum of arr[0..index]. This function assumes // that the array is preprocessed and partial sums of // array elements are stored in BITree[]. int getSum(int BITree[], int index) { int sum = 0; // Initialize result // Traverse ancestors of BITree[index] while (index > 0) { // Add current element of BITree to sum sum += BITree[index]; // Move index to parent node in getSum View index -= index & (-index); } return sum; } // Updates a node in Binary Index Tree (BITree) at given index // in BITree. The given value 'val' is added to BITree[i] and // all of its ancestors in tree. void updateBIT(int BITree[], int n, int index, int val) { // Traverse all ancestors and add 'val' while (index <= n) { // Add 'val' to current node of BI Tree BITree[index] += val; // Update index to that of parent in update View index += index & (-index); } } // Returns inversion count arr[0..n-1] int getInvCount(int arr[], int n) { int invcount = 0; // Initialize result // Find maximum element in arr[] int maxElement = 0; for (int i=0; i<n; i++) if (maxElement < arr[i]) maxElement = arr[i]; // Create a BIT with size equal to maxElement+1 (Extra // one is used so that elements can be directly be // used as index) int BIT[maxElement+1]; for (int i=1; i<=maxElement; i++) BIT[i] = 0; for (int i = 0 ; i <= maxElement ; i++){ cout << BIT[i] << " "; } cout << "\n------------------------------\n"; // Traverse all elements from right. for (int i=n-1; i>=0; i--) { // Get count of elements smaller than arr[i] int tmp = getSum(BIT, arr[i]-1); invcount += tmp; // Add current element to BIT updateBIT(BIT, maxElement, arr[i], 1); cout << "i=" << i << " " << arr[i] << " "; cout << "sum ="<< tmp << endl; for (int i = 1 ; i <= maxElement ; i++){ cout << BIT[i] << " "; } cout << endl; } return invcount; } int main() { int arr[] = {5,2,6,1}; int n = sizeof(arr)/sizeof(int); cout << "Number of inversions are : " << getInvCount(arr,n) << endl; return 0; }
[ "relive@g.com" ]
relive@g.com
8259009b3563d64625a771fd60db522877c0259a
3ff1fe3888e34cd3576d91319bf0f08ca955940f
/tem/src/v20210701/model/DestroyEnvironmentResponse.cpp
45e4795b94583791c19a23fc11148d058ba4441a
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp
9f5df8220eaaf72f7eaee07b2ede94f89313651f
42a76b812b81d1b52ec6a217fafc8faa135e06ca
refs/heads/master
2023-08-30T03:22:45.269556
2023-08-30T00:45:39
2023-08-30T00:45:39
188,991,963
55
37
Apache-2.0
2023-08-17T03:13:20
2019-05-28T08:56:08
C++
UTF-8
C++
false
false
3,821
cpp
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <tencentcloud/tem/v20210701/model/DestroyEnvironmentResponse.h> #include <tencentcloud/core/utils/rapidjson/document.h> #include <tencentcloud/core/utils/rapidjson/writer.h> #include <tencentcloud/core/utils/rapidjson/stringbuffer.h> using TencentCloud::CoreInternalOutcome; using namespace TencentCloud::Tem::V20210701::Model; using namespace std; DestroyEnvironmentResponse::DestroyEnvironmentResponse() : m_resultHasBeenSet(false) { } CoreInternalOutcome DestroyEnvironmentResponse::Deserialize(const string &payload) { rapidjson::Document d; d.Parse(payload.c_str()); if (d.HasParseError() || !d.IsObject()) { return CoreInternalOutcome(Core::Error("response not json format")); } if (!d.HasMember("Response") || !d["Response"].IsObject()) { return CoreInternalOutcome(Core::Error("response `Response` is null or not object")); } rapidjson::Value &rsp = d["Response"]; if (!rsp.HasMember("RequestId") || !rsp["RequestId"].IsString()) { return CoreInternalOutcome(Core::Error("response `Response.RequestId` is null or not string")); } string requestId(rsp["RequestId"].GetString()); SetRequestId(requestId); if (rsp.HasMember("Error")) { if (!rsp["Error"].IsObject() || !rsp["Error"].HasMember("Code") || !rsp["Error"]["Code"].IsString() || !rsp["Error"].HasMember("Message") || !rsp["Error"]["Message"].IsString()) { return CoreInternalOutcome(Core::Error("response `Response.Error` format error").SetRequestId(requestId)); } string errorCode(rsp["Error"]["Code"].GetString()); string errorMsg(rsp["Error"]["Message"].GetString()); return CoreInternalOutcome(Core::Error(errorCode, errorMsg).SetRequestId(requestId)); } if (rsp.HasMember("Result") && !rsp["Result"].IsNull()) { if (!rsp["Result"].IsBool()) { return CoreInternalOutcome(Core::Error("response `Result` IsBool=false incorrectly").SetRequestId(requestId)); } m_result = rsp["Result"].GetBool(); m_resultHasBeenSet = true; } return CoreInternalOutcome(true); } string DestroyEnvironmentResponse::ToJsonString() const { rapidjson::Document value; value.SetObject(); rapidjson::Document::AllocatorType& allocator = value.GetAllocator(); if (m_resultHasBeenSet) { rapidjson::Value iKey(rapidjson::kStringType); string key = "Result"; iKey.SetString(key.c_str(), allocator); value.AddMember(iKey, m_result, allocator); } rapidjson::Value iKey(rapidjson::kStringType); string key = "RequestId"; iKey.SetString(key.c_str(), allocator); value.AddMember(iKey, rapidjson::Value().SetString(GetRequestId().c_str(), allocator), allocator); rapidjson::StringBuffer buffer; rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); value.Accept(writer); return buffer.GetString(); } bool DestroyEnvironmentResponse::GetResult() const { return m_result; } bool DestroyEnvironmentResponse::ResultHasBeenSet() const { return m_resultHasBeenSet; }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
7218d11b00c718241147ee9a9601815ed1c3d02c
1ef7b3a7ba47238699ce80b65f9a91fe8b6b8380
/Utilities.cpp
35e43d95a9a36978ddc3e3304b8800ea6a12c768
[]
no_license
AlexanderPlatinum/MessengerClient
d25015a001b3e4e79dd17023fed357a75d69275d
257c307368684a0cc5953263a4da3d058eaf2525
refs/heads/master
2021-09-10T19:06:20.553496
2018-03-31T11:05:03
2018-03-31T11:05:03
125,702,689
0
0
null
null
null
null
UTF-8
C++
false
false
548
cpp
#include "Utilities.h" void Utilities::ShowError( QString message ) { QMessageBox *msgBox = new QMessageBox(); msgBox->setWindowTitle( "Произошла ошибка!" ); msgBox->setText( message ); msgBox->exec(); } QByteArray Utilities::MakeQuery( QString command, QJsonObject params ) { QJsonObject *object = new QJsonObject(); object->insert( "command", command ); object->insert( "params", QJsonValue( params ) ); QJsonDocument *document = new QJsonDocument( *object ); return document->toJson(); }
[ "qwertysan20@gmail.com" ]
qwertysan20@gmail.com
2319ccd5a466c7896346bec81c2276c5d58e1a04
be8365fcefd5da4b06204640f2e49c55fdf9c039
/Source/WinDialog.cpp
27d23c0b7032c7050f63972f92b7d9dc2d9d45f9
[]
no_license
StacyZalisk/SFMLSolitaire
dacca53ba39d9f3fb8bbafeef123f727121ab68b
627934aaa44a21c89c12039ed0420a21482f8fef
refs/heads/master
2021-01-23T08:11:16.876082
2017-03-29T15:20:52
2017-03-29T15:20:52
86,485,523
0
0
null
null
null
null
UTF-8
C++
false
false
536
cpp
#include "stdafx.h" #include "WinDialog.h" #include "SFMLGameObject.h" #include "SFMLSprite.h" WinDialog * WinDialog::Instance(nullptr); WinDialog::WinDialog() : SFMLGameObject("winBack", 283, 134) { GetSprite()->SetPerformCollisionDetection(false); GetSprite()->SetVisible(false); SetDepth(99); } WinDialog::~WinDialog() { Instance = NULL; } WinDialog * WinDialog::GetWinDialog() { if (Instance == nullptr) { Instance = new WinDialog(); } return Instance; } void WinDialog::Display() { GetSprite()->SetVisible(true); }
[ "stacy.zalisk@sbcglobal.net" ]
stacy.zalisk@sbcglobal.net
02b8ef117abf5886427719aa801b199bfc110888
9f520bcbde8a70e14d5870fd9a88c0989a8fcd61
/pitzDaily/362/Ua
34a608b1342e766a4e462ef066c58bf6741015a0
[]
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
249,670
/*--------------------------------*- 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 "362"; object Ua; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 6400 ( (5.01526681665e-05 6.89352035306e-05 0) (0.000138965241559 5.41801423406e-05 0) (0.000204300380049 4.54103726737e-05 0) (0.000278979352149 4.18157200864e-05 0) (0.000333341277138 2.74419330862e-05 0) (0.000372167270187 1.54017492601e-05 0) (0.000389950935741 1.07763549696e-05 0) (0.000402833079735 1.74825215832e-05 0) (0.000453933389688 2.65065984503e-05 0) (0.000508436749502 2.60821622306e-05 0) (0.000526859347809 2.34547603827e-05 0) (0.000577863333498 2.64695999413e-05 0) (0.000624169333074 2.53146622048e-05 0) (0.000662830861079 2.17233195836e-05 0) (0.000691161078084 1.9921958111e-05 0) (0.000721982990114 2.25068307697e-05 0) (0.000762502633552 2.36741676516e-05 0) (0.000797647298161 2.16064403508e-05 0) (0.00082306791742 1.78690287781e-05 0) (0.000845757329679 1.58338371207e-05 0) (0.000876079536572 2.06383209499e-05 0) (0.000916510247033 2.65875809582e-05 0) (0.000962311703385 2.88075172628e-05 0) (0.00100553090196 2.92753839515e-05 0) (0.00104771079578 2.81418252319e-05 0) (0.00108866043 2.63166900273e-05 0) (0.00113071252935 2.62019664936e-05 0) (0.00117124736019 2.56049503852e-05 0) (0.00120749792351 2.40423638266e-05 0) (0.0012401027409 2.27741863886e-05 0) (0.001268964228 2.31167907518e-05 0) (0.00130050246085 2.29950279815e-05 0) (0.00133341923603 2.17849593619e-05 0) (0.00136342600036 2.26987319153e-05 0) (0.00139298025632 2.31237408882e-05 0) (0.00143047625433 2.38411729864e-05 0) (0.00146790792022 2.5787841593e-05 0) (0.0014891647393 2.52281017824e-05 0) (0.00152468554505 2.41199918701e-05 0) (0.00157058428484 2.57761519783e-05 0) (0.00161329338931 3.33251979536e-05 0) (0.0016485050778 3.50607888296e-05 0) (0.00168073402458 2.5503959725e-05 0) (0.00170781455137 1.91476279725e-05 0) (0.00172759629954 1.67566136414e-05 0) (0.00174350473694 1.41486027565e-05 0) (0.00175480580134 1.17451361557e-05 0) (0.00175980119622 8.45246587925e-06 0) (0.00175919543806 5.76853982872e-06 0) (0.00175434425434 8.21990541612e-06 0) (0.00175195668489 1.62134127092e-05 0) (0.00177146452652 1.61571592087e-05 0) (0.00176415198912 -5.01879583225e-06 0) (0.00174618222045 -1.42444292961e-05 0) (0.00170535973132 -2.13854170684e-05 0) (0.00160838315713 -3.84937953497e-05 0) (0.0015099946762 -3.3425156084e-05 0) (0.00145812359321 -2.0004678546e-05 0) (0.00143576028728 -2.62857032646e-05 0) (0.0013278444395 -3.14154121483e-05 0) (0.00126876760493 -1.54798814516e-05 0) (0.00119674200919 -3.08372154525e-05 0) (0.00124754729491 -8.69659644507e-05 0) (0.000961157760838 -8.29799309191e-05 0) (0.000775283148712 -5.4622523507e-05 0) (0.000683913709089 -3.72239892864e-05 0) (0.000625241103004 -3.4804990831e-05 0) (0.000577077498901 -3.41425863237e-05 0) (0.000526021939399 -3.46868139943e-05 0) (0.000460827363145 -3.57737903715e-05 0) (0.000393671842748 -3.52723578368e-05 0) (0.000323093921616 -3.25386582116e-05 0) (0.000259632212528 -2.99114824293e-05 0) (0.000214739005109 -2.89689614877e-05 0) (0.00015183893225 -2.16188523635e-05 0) (0.000124210659262 -1.77039227033e-05 0) (7.79080513597e-05 -1.04358098672e-05 0) (7.61731113575e-05 -1.26557044759e-05 0) (3.18455720707e-05 -8.12262582221e-06 0) (2.34345270915e-05 -1.44193422387e-05 0) (1.87840239843e-05 9.46355598154e-05 0) (8.10414359041e-05 0.000107250098058 0) (0.000141795892444 9.90228583211e-05 0) (0.000180428343101 7.92970743165e-05 0) (0.000265474810851 7.87954576679e-05 0) (0.000348260862363 5.63673214379e-05 0) (0.000398045388648 3.48877322585e-05 0) (0.000432162454371 4.75189654882e-05 0) (0.000468742753941 6.41868207683e-05 0) (0.000510287217065 6.34827700656e-05 0) (0.000550583842975 6.045649933e-05 0) (0.000588131786547 6.1033800504e-05 0) (0.000623774758895 5.59711824396e-05 0) (0.000657066867653 4.84910154472e-05 0) (0.000691587243024 4.56117831082e-05 0) (0.000726535963976 5.58798415477e-05 0) (0.00076274388148 6.00716737915e-05 0) (0.000792266982481 4.30046851986e-05 0) (0.000789799067632 3.05543686903e-05 0) (0.000817972955334 3.15875623683e-05 0) (0.000857866682287 4.6435419635e-05 0) (0.000905837649647 6.61322036187e-05 0) (0.000962280362866 7.19771386606e-05 0) (0.001011221561 6.60143625179e-05 0) (0.00104024443037 6.12927698812e-05 0) (0.00108809327698 6.02716830751e-05 0) (0.00113320683414 5.78438568604e-05 0) (0.00117065150496 5.35594530765e-05 0) (0.00120513816823 4.92053129875e-05 0) (0.00123829746635 4.5936848384e-05 0) (0.00126990102177 4.54755567263e-05 0) (0.0012923476354 4.41250784341e-05 0) (0.00132436502467 3.95127977699e-05 0) (0.00135212148431 4.28616134099e-05 0) (0.00137684552213 4.76430673286e-05 0) (0.00142608797525 4.52180376247e-05 0) (0.00145566004518 4.8583734499e-05 0) (0.00147836239663 5.26898334891e-05 0) (0.00152229810572 5.1422059537e-05 0) (0.00158283982626 4.93993684324e-05 0) (0.00162918178847 4.32281654279e-05 0) (0.00157495510871 3.40631200879e-05 0) (0.00156636739517 2.97271237277e-05 0) (0.00159857739471 2.83139394759e-05 0) (0.00162216186012 2.64408806611e-05 0) (0.00165187575193 2.30295984407e-05 0) (0.0016833839967 1.72636415737e-05 0) (0.00170329905556 9.61330850904e-06 0) (0.00172816189041 1.5103661988e-06 0) (0.00174229996547 -4.81635961522e-06 0) (0.00172916959698 -6.82220064362e-06 0) (0.00167334394244 -9.39692619963e-06 0) (0.00162345041701 -1.53203899476e-05 0) (0.00174444639597 -3.62973555606e-05 0) (0.00168353727714 -7.56034021356e-05 0) (0.00163070269295 -0.000100178199957 0) (0.0016494606503 -9.39039601343e-05 0) (0.00161680738025 -7.98598226397e-05 0) (0.00156615791477 -9.27514390205e-05 0) (0.00151887365275 -0.000112839956751 0) (0.0014894264417 -0.000131214772647 0) (0.00117164589997 -0.000138753233713 0) (0.0012441827681 -0.000238809618764 0) (0.000965912528702 -0.000241943629725 0) (0.000787550530229 -0.000181445638263 0) (0.00065242611981 -0.000124882544753 0) (0.000576314106508 -9.38757589275e-05 0) (0.000551409172383 -8.81343060184e-05 0) (0.000503564611836 -9.46119463324e-05 0) (0.000448524282236 -0.000104358670102 0) (0.000377989004216 -0.000106342671551 0) (0.000306029525306 -9.79521160421e-05 0) (0.000237514878508 -8.10754215468e-05 0) (0.000199691316312 -7.27270200417e-05 0) (0.000159497871756 -6.22628483493e-05 0) (0.000126460078921 -5.21305520934e-05 0) (9.67482885312e-05 -4.10593559486e-05 0) (7.22313198928e-05 -3.72176133733e-05 0) (4.33043155955e-05 -3.5971293254e-05 0) (1.92695759404e-05 -5.5049639654e-05 0) (2.80049968946e-05 0.000164177859695 0) (7.86541679273e-05 0.00017982315359 0) (0.000120630050322 0.000170288021823 8.09911984446e-29) (0.00021044673808 0.000176369534869 -7.73397992218e-29) (0.00029666548553 0.000177600591586 -7.02111434489e-29) (0.00034717047169 0.000144043691508 6.4628357571e-29) (0.000382132506251 7.83326488287e-05 -6.56305807061e-29) (0.00041748680559 8.61269234277e-05 6.49918544535e-29) (0.000456442656806 0.000106056808742 0) (0.000500770475755 0.000109760999037 0) (0.000544871072705 0.000104858148706 0) (0.000583848660121 9.8527124162e-05 0) (0.000619295037896 9.04274678257e-05 0) (0.000651530457227 8.54407857082e-05 0) (0.000684805659402 8.31743068336e-05 0) (0.00071922887043 7.53834354328e-05 0) (0.000649550692662 5.54194700542e-05 0) (0.000632474276217 4.41614788732e-05 0) (0.000660653678429 5.24505523248e-05 0) (0.000718310390648 8.1680295677e-05 0) (0.000844801220201 0.000117229497196 0) (0.000920561186671 0.000129309955071 0) (0.000948629442449 0.000122321612744 0) (0.000997322624441 0.000113722186411 0) (0.00104845973981 0.00010883870062 0) (0.00108909146776 0.00010552279608 0) (0.00112687204879 9.90538527372e-05 0) (0.00116433696078 9.194531292e-05 0) (0.00119922459755 8.57184298843e-05 0) (0.00122997799307 8.12307428713e-05 1.34894444781e-28) (0.00126475565595 7.73510919161e-05 -1.30969069412e-28) (0.00128021191926 7.39271695747e-05 0) (0.00130690874159 7.04193339853e-05 0) (0.00135441614383 6.88731072048e-05 0) (0.0013428293356 7.93626003015e-05 0) (0.00139105163605 8.80186475172e-05 0) (0.00145933432466 8.61525402501e-05 0) (0.00145384095093 9.12793525873e-05 0) (0.0015067733338 0.000103333909656 0) (0.00157792344017 9.87432397067e-05 0) (0.00162745123219 6.99685741324e-05 0) (0.00165633540446 4.8288679295e-05 0) (0.00168252619334 5.11671268567e-05 0) (0.0017076139999 5.5890506992e-05 0) (0.00172782054361 5.46887011864e-05 0) (0.00174391958595 5.02040128501e-05 0) (0.00175653878433 4.12936019112e-05 0) (0.00176578507281 3.01869905668e-05 0) (0.0017719067365 1.68248308468e-05 0) (0.0017747283877 -1.12099244264e-06 0) (0.00177454920873 -1.99652389694e-05 0) (0.00177051510694 -2.82971586986e-05 0) (0.00175885670394 -2.0471415095e-05 0) (0.00171872323977 -4.62216532417e-05 0) (0.00165883133536 -9.18153919493e-05 0) (0.00166113992305 -0.000109401275899 0) (0.00164514080169 -0.000113062630954 0) (0.00159983734179 -0.00012297995885 0) (0.00154234982483 -0.000142710455969 0) (0.00147820222098 -0.000177426341897 0) (0.00139191381456 -0.000244776777594 0) (0.00129126897939 -0.000315775909763 0) (0.00121859137207 -0.000449089534409 0) (0.000906827311234 -0.000421605036227 0) (0.000686190863709 -0.0002828564622 0) (0.000614969746424 -0.000202231150419 0) (0.000572208444296 -0.000161786698153 0) (0.000516190771451 -0.000146839977414 0) (0.000461227884434 -0.000155647020291 0) (0.000400315525118 -0.000168470377877 0) (0.000331808976302 -0.000167282120977 0) (0.000270005221788 -0.000150538702636 0) (0.000226835826302 -0.000131853087786 0) (0.000188968207425 -0.000117615834492 0) (0.000149414215706 -0.00010301372859 0) (0.000112897163469 -8.6660511814e-05 0) (8.16820537061e-05 -7.10308996693e-05 0) (5.87342332277e-05 -6.66054849897e-05 0) (3.89601797876e-05 -7.68474122381e-05 0) (9.48849278375e-06 -7.278573037e-05 0) (2.71754245826e-05 0.000246928925501 0) (3.56157467355e-05 0.000163477969966 0) (9.8524197169e-05 0.000259088005388 0) (0.000184512400784 0.00026384829226 0) (0.000253968665013 0.000223959654022 0) (0.000140536767786 8.44436413136e-05 0) (0.000175240868298 8.65570807487e-05 0) (0.000336922241442 0.000164309447805 0) (0.000425013119793 0.0001772391024 0) (0.000480503122984 0.000163079921485 0) (0.000533012834815 0.000151890353785 0) (0.00057683557116 0.000138717759704 0) (0.000613578480928 0.000125659772947 0) (0.000638723659971 0.000104297634811 0) (0.000600698125028 7.1751704536e-05 0) (0.000569231717048 4.95662507902e-05 0) (0.000574728693482 4.80499670215e-05 0) (0.00062130310403 7.64105836685e-05 0) (0.000723041392286 0.000126200256318 0) (0.000830047595853 0.000178189617737 0) (0.000868794311893 0.00018986022085 0) (0.000909722384755 0.000179004728101 0) (0.000957830210987 0.000168898054005 0) (0.00100173499389 0.000161253248542 0) (0.00104214384183 0.000152493452315 0) (0.00108020921535 0.000143517127789 0) (0.00111606519862 0.000135310758704 0) (0.00115660960431 0.000127247720955 0) (0.00118669326869 0.00011886887958 0) (0.00122595792329 0.000112408146915 0) (0.00124292899996 0.000105487512002 0) (0.00128280169355 9.90371329203e-05 0) (0.00128026112444 8.95982452204e-05 0) (0.00131186704072 9.46781519115e-05 0) (0.00137732169024 0.000111495457222 0) (0.00137490922009 0.000126034153353 0) (0.00143978460903 0.000134183213241 0) (0.00151202725979 0.000141972778449 0) (0.00155243157658 0.000150823512578 0) (0.00158666231344 0.000139784776576 0) (0.0016213242874 0.000111099642126 0) (0.0016530353717 8.68490679998e-05 0) (0.00168182084825 7.83213183948e-05 0) (0.00170723753477 7.55173556458e-05 0) (0.00172791474483 7.05104447392e-05 0) (0.00174447513822 6.22401333491e-05 -1.26748252346e-28) (0.00175751500468 5.06347737517e-05 1.27696616494e-28) (0.00176713824237 3.63930055717e-05 0) (0.00177334526654 1.95863576857e-05 0) (0.00177590478119 1.65596948426e-07 0) (0.00177419914003 -1.93083199659e-05 0) (0.00176595446971 -3.58618027645e-05 0) (0.00174772310283 -5.44772994137e-05 0) (0.001718011363 -8.61659105894e-05 0) (0.00168620749751 -0.000115477257941 0) (0.00165805376151 -0.00013384337057 0) (0.00162176778557 -0.000155122645381 0) (0.00156817497887 -0.000181943245833 -2.49996955508e-28) (0.00149680459632 -0.00021807799235 2.87728905425e-28) (0.00140621805833 -0.000271916819007 0) (0.00129308130179 -0.000348770984875 0) (0.00116601061992 -0.000450289316117 0) (0.00105501072622 -0.000590995385418 0) (0.000894731656819 -0.000601049300905 0) (0.000733645471295 -0.000437473716125 0) (0.00058732239848 -0.000274466034203 0) (0.000518658370851 -0.000215734706353 0) (0.000467204153082 -0.000205140024376 0) (0.000415046845527 -0.000215348619166 0) (0.000365362099302 -0.000233647421812 0) (0.000306692375408 -0.000233561695979 0) (0.000249176646239 -0.000211335270358 0) (0.000198415921189 -0.00018242904424 0) (0.000148641432126 -0.00015285460904 0) (0.000112626165559 -0.000134870967227 0) (8.09912285919e-05 -0.000121267797564 0) (5.16555603548e-05 -9.97145969164e-05 0) (2.78835632774e-05 -7.18478126076e-05 0) (1.97428956605e-05 -8.24613148623e-05 0) (6.26316393189e-06 -9.09404561845e-05 0) (1.03043369518e-06 0.000243306801127 0) (1.71208315046e-05 0.000199556817859 0) (8.95463726504e-05 0.00034214612628 0) (0.000156114952622 0.000316529946346 0) (0.000161827791618 0.000203052247859 0) (0.00012671389654 0.000112859286797 0) (0.000219845700792 0.00018891035698 0) (0.000346881132472 0.00027466215523 0) (0.000396114711033 0.000250210266965 0) (0.000456312930904 0.000222337303762 0) (0.000512075503521 0.000207467863539 0) (0.000558660856283 0.000184022631042 0) (0.000562054515228 0.000132542481647 0) (0.000511641639017 7.87890922048e-05 0) (0.000525720776225 6.17841277392e-05 0) (0.000565764645168 7.27390980042e-05 0) (0.000635963602336 0.000108957385508 0) (0.000727352584696 0.000165885814327 0) (0.00079690224755 0.000210932518571 0) (0.000818353053642 0.000220637544021 0) (0.000858051399102 0.000225355841421 0) (0.00090867681679 0.000225727069069 0) (0.000951814362396 0.000215935785263 0) (0.000993369401846 0.000203216616153 0) (0.00103211862712 0.0001912611763 0) (0.00106758967914 0.000181551842702 0) (0.00110915274407 0.00017224875496 0) (0.0011361733288 0.000161442180046 0) (0.00118230705865 0.000152522291572 0) (0.00119509151075 0.00014078701925 0) (0.00124609821212 0.000133335406531 1.28700238398e-28) (0.00122596390138 0.000120090097402 -1.19844242161e-28) (0.00128458455266 0.000121849453327 0) (0.00133881647356 0.000130413907644 0) (0.00134409026342 0.000146731825623 0) (0.0014213082011 0.00017635612312 0) (0.00147250467902 0.000194928428601 0) (0.00151593894255 0.000193415702926 0) (0.00155258917454 0.00018457792987 0) (0.00158581237329 0.000168901064397 0) (0.00161952656271 0.000144833896049 0) (0.00165213516513 0.000121928470282 0) (0.00168186637186 0.000107801220416 0) (0.00170772185685 9.8711639867e-05 0) (0.00172905615729 8.91786013687e-05 0) (0.00174634418673 7.71640153303e-05 0) (0.00175998059433 6.22134166542e-05 0) (0.00176996992372 4.44765266451e-05 0) (0.00177604269922 2.38926692058e-05 0) (0.00177764975677 5.41828039213e-07 0) (0.00177381324959 -2.44397134325e-05 0) (0.00176261152233 -5.03161850058e-05 0) (0.00174205257849 -7.9345064736e-05 0) (0.00171243552389 -0.000113441419164 0) (0.00167829121895 -0.000145850254787 0) (0.0016407175995 -0.000175670352463 0) (0.00159179566918 -0.000211214249216 0) (0.00152311453154 -0.000256888830095 0) (0.00143071509041 -0.000315394544549 0) (0.00131492633311 -0.000389972898499 0) (0.00118297367237 -0.000480743080377 0) (0.00105420255414 -0.000586147029936 0) (0.000942906172445 -0.000696792922785 0) (0.000865265780757 -0.00072382824105 0) (0.000737110690111 -0.00057157120114 0) (0.000597075322561 -0.000392245036099 0) (0.00050618748084 -0.000305973548162 0) (0.00043002224931 -0.000273421590522 0) (0.000366875949272 -0.000272335390295 0) (0.00031423779702 -0.000287509760616 0) (0.000260909795897 -0.00029388550254 0) (0.000203902509345 -0.00026813889522 0) (0.00014920688574 -0.00021998175161 0) (0.000111312472531 -0.000190832442006 0) (7.72270305542e-05 -0.000172778988777 0) (4.72379934503e-05 -0.000152299366652 0) (2.64217013583e-05 -0.000113776645706 0) (1.50552439779e-05 -8.68223049093e-05 0) (7.62489481108e-06 -9.79082630091e-05 0) (1.13128158212e-06 -9.64644445978e-05 0) (-1.67664899163e-06 0.000225863035805 0) (2.17615420227e-05 0.000243064040166 0) (9.06231949907e-05 0.00038894669578 0) (0.000125538279683 0.000320779759229 0) (9.19604329388e-05 0.000156395327269 0) (0.000126738058023 0.000161793088868 0) (0.000279476844108 0.000311383941037 0) (0.000332605246305 0.000331089419914 0) (0.000374746811384 0.000304554520079 0) (0.000427081693866 0.000280959182406 0) (0.000480641898559 0.000246460579414 0) (0.00044340569118 0.000168855725458 0) (0.000403604541083 0.000100361010136 0) (0.000439701431253 8.80396907035e-05 0) (0.000487491416902 0.00010478295497 0) (0.000578045994692 0.000148620256168 0) (0.000678069914591 0.000200746321957 0) (0.000747365428183 0.000232182053114 0) (0.000756534320096 0.000235136797449 0) (0.000802082104822 0.000255192514787 0) (0.000858225546143 0.000273818080151 0) (0.000900183891757 0.000270955468363 0) (0.000940527124891 0.00025855660469 0) (0.000978932601081 0.000244320024851 0) (0.00102272641488 0.000231866311292 0) (0.00105826078882 0.000216657368628 0) (0.00107506947554 0.000205061889958 0) (0.00113448437179 0.000198106761951 0) (0.00113393070242 0.000179646940098 0) (0.00120113664695 0.000168520200041 0) (0.00116011532741 0.000147714350166 0) (0.0012429934806 0.000154212794753 0) (0.00121659041559 0.000154350199098 0) (0.00130017895401 0.000174985304845 0) (0.00138406377192 0.000208073804972 0) (0.00143696742425 0.00023503545781 0) (0.00147796744085 0.000239205400769 0) (0.00151553404598 0.000231553412649 0) (0.00155063661145 0.000218627564019 0) (0.00158471653084 0.000201104570602 0) (0.00161859145574 0.000178607123901 0) (0.00165148159205 0.00015581028138 0) (0.0016818279273 0.000137560479453 0) (0.00170832776686 0.000122950886059 0) (0.0017305857803 0.000108681584861 0) (0.00174878955002 9.26777554849e-05 0) (0.00176319759741 7.40628202168e-05 0) (0.00177357808491 5.24607722027e-05 0) (0.00177931358642 2.75150379937e-05 0) (0.00177961500459 -9.23536200289e-07 0) (0.00177343605912 -3.25218063826e-05 0) (0.00175930476098 -6.70847987704e-05 0) (0.00173609259136 -0.000104961811872 0) (0.00170420345346 -0.000145291085605 0) (0.00166507214976 -0.000185702085672 0) (0.00161677008634 -0.000229159264429 0) (0.00155218160801 -0.000282918962852 0) (0.001465015048 -0.000350716733178 0) (0.00135502898488 -0.000431990099663 0) (0.00122589915104 -0.000521817723361 0) (0.00109276907481 -0.000615411306112 0) (0.000973651212414 -0.000701036138149 0) (0.000820856473917 -0.000730937153775 0) (0.000841613782201 -0.000844917697894 0) (0.000665150144067 -0.000665887620023 0) (0.000544985178096 -0.000479986575255 0) (0.000469460313842 -0.000394789653569 0) (0.000388615684622 -0.000348927303024 0) (0.000315379557475 -0.00033211322638 0) (0.000261581167638 -0.000350286200065 0) (0.000207563975018 -0.000357999185677 0) (0.000150491069799 -0.000306933823921 0) (0.000108212638089 -0.000257512378377 0) (7.22871781239e-05 -0.000230922960263 0) (3.82897861959e-05 -0.000205209526158 0) (1.70699414755e-05 -0.000172533083006 0) (6.59021288792e-06 -0.000121022571839 0) (5.03823976994e-07 -9.52532958622e-05 0) (-2.72649098533e-06 -0.000102032409428 0) (-1.41520676249e-06 -9.64830305356e-05 0) (7.20865257975e-06 0.000244710874412 0) (5.17313332289e-05 0.000318573527917 0) (0.000118828561266 0.000422026556482 0) (0.000129685821577 0.000391311231555 0) (8.47903592564e-05 0.000195421071003 0) (0.00018421239012 0.000288475638358 0) (0.000289095379927 0.000382033719065 0) (0.00031567918446 0.000370688571791 0) (0.00035599581174 0.000345809256722 0) (0.000381760574541 0.000316954660215 0) (0.000448419611948 0.000268810147759 -3.00286531373e-28) (0.000341464904216 0.000134972125559 1.73394218777e-28) (0.000395536587481 0.000124221082192 0) (0.000426050314283 0.000135490487344 0) (0.000504879213628 0.000182475533406 0) (0.000613980232944 0.000249974954338 0) (0.000687732712115 0.000275198794381 0) (0.00068198815085 0.000253537356012 0) (0.000732357008691 0.000272832664656 0) (0.000802261002483 0.000310282781777 0) (0.000843686489286 0.000320170411883 0) (0.000886696134387 0.000313415689526 0) (0.000928472645196 0.000300702545214 0) (0.000968500359755 0.000284146969059 0) (0.00099890266607 0.000264010013978 0) (0.00101932742998 0.000244382173655 0) (0.0010740251652 0.000237699923731 0) (0.00106145544636 0.000223610212896 0) (0.00114537832324 0.000212992105574 0) (0.00109534353025 0.000174007570139 0) (0.00118461942242 0.000179616622655 0) (0.00116628238853 0.000184997589496 -1.15332788605e-28) (0.00125112574661 0.000205465606012 1.21463242014e-28) (0.00130091447773 0.000242454699992 0) (0.00139648590132 0.000278815615642 0) (0.00144035902596 0.000284920651557 0) (0.0014764376946 0.000278413235426 0) (0.00151229222805 0.000267305287977 0) (0.00154832291948 0.00025289547389 0) (0.00158363215889 0.000234686011089 0) (0.00161795999302 0.000212551936744 0) (0.00165120768603 0.00018916579129 0) (0.00168210856146 0.000167667124542 0) (0.00170941095463 0.000148347290816 0) (0.00173270691778 0.000129455907934 0) (0.00175203827996 0.000109255042711 0) (0.00176737000379 8.65570723117e-05 0) (0.00177812785353 6.04824637598e-05 0) (0.00178339722385 3.03284799693e-05 0) (0.0017822540664 -4.28828692616e-06 0) (0.00177368449861 -4.33442953575e-05 0) (0.00175651703359 -8.65709352724e-05 0) (0.00172991540072 -0.000133397950705 0) (0.00169366233206 -0.000182947665139 0) (0.00164701144588 -0.000235739159332 0) (0.00158641589327 -0.000296500710684 0) (0.00150612083508 -0.000370897380394 0) (0.00140352502384 -0.000459275847795 0) (0.0012834935673 -0.000555748803724 0) (0.00115849748307 -0.000650947423266 0) (0.00104009454081 -0.000734506803284 0) (0.000936058949965 -0.000800580350217 0) (0.000854240289702 -0.000865657349938 0) (0.000807110165593 -0.000924167772347 0) (0.000654181624807 -0.000777486532913 0) (0.000483060074177 -0.00055170399017 0) (0.000424582863168 -0.000478299783896 0) (0.000349454448857 -0.00043740692579 0) (0.000272059025399 -0.000415363880464 0) (0.0002084435558 -0.000420618824693 0) (0.000153965712987 -0.000402096136531 0) (0.000106900676262 -0.000341876512538 0) (6.72960252157e-05 -0.000302429176498 0) (2.73464634382e-05 -0.000268535015249 0) (-1.46998340158e-06 -0.000230700940745 0) (-1.22434118836e-05 -0.000176413850438 0) (-1.52027314485e-05 -0.000129181766188 0) (-1.73066369563e-05 -9.84227028751e-05 0) (-1.46998533022e-05 -9.77858361683e-05 0) (-4.77729736581e-06 -9.27880754133e-05 0) (1.56975863244e-05 0.000284534515413 0) (7.45016685754e-05 0.000392036722281 0) (0.000132985859077 0.000435837989912 0) (7.90026300182e-05 0.000255283299177 0) (8.7760061217e-05 0.000243053898836 0) (0.000216765089544 0.000405302687118 0) (0.000263530976671 0.000420784240821 0) (0.00030171393041 0.000409322272065 0) (0.000320835529706 0.000371627078582 0) (0.000362807953191 0.000344032891606 0) (0.000289683926002 0.000200961229028 0) (0.000332505494368 0.000159660717878 0) (0.00037930073565 0.00016447391519 0) (0.000419605252918 0.000194147285969 0) (0.000538020287396 0.000279089545908 0) (0.000623850334857 0.00032359098561 0) (0.000612353368848 0.000289465604535 0) (0.00065243625715 0.000291615430543 0) (0.000732290713168 0.000336622719878 0) (0.000787232044972 0.000362235785165 0) (0.000825152750373 0.000362507846799 0) (0.000863967952411 0.000353943951017 0) (0.000910178173372 0.000344077049668 0) (0.00094882161063 0.000324919173996 0) (0.000992739318089 0.000296187499625 0) (0.000993295168275 0.000276593318148 0) (0.00106034163134 0.000268431463643 0) (0.00106451498981 0.00024751352457 0) (0.00106032019577 0.000222913344994 0) (0.00109861058838 0.000214261692973 0) (0.00119769509691 0.000225374610002 0) (0.00119029098597 0.000222162245881 0) (0.00122058395316 0.000260622598444 0) (0.0013486426188 0.000320465076599 0) (0.00139437413176 0.000337885587259 0) (0.00143441640777 0.000328857130683 0) (0.00147190455367 0.000316387644978 0) (0.00150847145681 0.00030350898791 0) (0.00154555003574 0.000288421157045 0) (0.00158219006652 0.000269624156123 0) (0.00161742454369 0.000247059427036 0) (0.00165116502767 0.000222544798628 0) (0.00168275476244 0.000198243634556 0) (0.00171110705316 0.000174848864523 0) (0.00173568112035 0.000151566196271 -1.22519725081e-28) (0.00175635928088 0.000127024581998 1.22167367973e-28) (0.00177276560844 9.97784722316e-05 0) (0.00178395931024 6.85117376882e-05 0) (0.00178877799633 3.22509775011e-05 0) (0.00178621670463 -9.50890030234e-06 0) (0.00177526893834 -5.68372024356e-05 0) (0.00175484396081 -0.000109389849653 0) (0.00172406027044 -0.000166588413154 0) (0.00168187226632 -0.000228383595276 0) (0.00162606790235 -0.000297017230449 0) (0.00155288816719 -0.000377050323086 0) (0.0014592451784 -0.000470983852781 0) (0.00134767153193 -0.000574668635778 0) (0.00122812978552 -0.000678372660993 0) (0.00111175457059 -0.000770369854326 0) (0.00100355198049 -0.00083810949804 0) (0.000913143048797 -0.00088599322854 0) (0.000844607930295 -0.000930335648083 0) (0.000788170610971 -0.000978288555348 0) (0.000765378718281 -0.000999956407129 0) (0.000491688058323 -0.000680133710366 0) (0.000370191953227 -0.000561348539967 0) (0.000291909618755 -0.00051599484009 0) (0.000213608304245 -0.000484998315493 0) (0.000153947506049 -0.000472394908088 0) (0.000108324565259 -0.000437506023503 0) (6.46209425167e-05 -0.00038705029213 0) (1.76947426295e-05 -0.000349101707793 0) (-2.27526991348e-05 -0.000302787254912 0) (-4.40636478516e-05 -0.000245205337095 0) (-4.67343304963e-05 -0.000178627552147 0) (-4.59791134578e-05 -0.000131702526506 0) (-4.01873641267e-05 -9.72702438943e-05 0) (-2.95147672138e-05 -8.55603008496e-05 0) (-1.04606547299e-05 -8.02068408329e-05 0) (2.22787819639e-05 0.000335489503232 0) (8.55157320618e-05 0.000451916884083 0) (0.000108702425383 0.000444706617778 0) (7.42180521483e-05 0.000279203286567 0) (0.000125125257693 0.000323341041094 0) (0.000223730598241 0.000460288244521 0) (0.000238356271091 0.000456230662552 0) (0.000288002847372 0.000444367961696 0) (0.000269822808934 0.000365071967764 0) (0.0003556447203 0.000385137540969 0) (0.0002743532704 0.000220418949544 0) (0.000332801063786 0.00020369113753 0) (0.000368601534545 0.000212831991105 0) (0.000444941694374 0.00027953550923 0) (0.000549071894269 0.000366018699195 0) (0.000601704806167 0.000367039339972 0) (0.000587034936679 0.000321390510617 0) (0.000648430847122 0.000350987253395 0) (0.000716871212462 0.000395491071356 0) (0.000764116374594 0.00040932028042 0) (0.000807589673506 0.00040495087902 0) (0.000841019331973 0.000392082211008 0) (0.000883376799529 0.000380900959669 0) (0.000907841746785 0.000358362165112 0) (0.000924496262509 0.000316938264712 0) (0.000997138915573 0.000309477740858 0) (0.000957215814549 0.000286526725567 0) (0.00108303287605 0.00028381367884 0) (0.00103545945723 0.000257411303597 0) (0.00115530635848 0.000273054910205 0) (0.00110770561152 0.000251850740622 0) (0.00122954724169 0.000281217225705 0) (0.00128849167633 0.000336462338522 -1.31750110836e-28) (0.00134613735975 0.000380041257836 1.35261762543e-28) (0.00138763589393 0.000382352352329 0) (0.00142699406773 0.000369945003669 0) (0.00146627804974 0.00035559112894 0) (0.00150432441295 0.000341235912323 0) (0.00154232476309 0.000325306488737 0) (0.00158002882314 0.000305854575458 0) (0.00161649622164 0.00028246251302 0) (0.00165125579826 0.000256480320228 0) (0.00168381687229 0.00022960852736 0) (0.00171346761798 0.000202630339897 0) (0.00173969816155 0.000175207054149 0) (0.00176203985997 0.000146176716279 0) (0.00177972483903 0.00011389329703 0) (0.00179154666234 7.66955562753e-05 0) (0.00179616336489 3.34275250883e-05 0) (0.00179242142539 -1.64466705364e-05 0) (0.00177922582898 -7.30249278712e-05 0) (0.00175547995611 -0.000136142475831 0) (0.00172000874344 -0.000205669800455 0) (0.00167097565137 -0.000282556009992 0) (0.00160539760169 -0.000369338729537 0) (0.00152035703613 -0.000468435657161 0) (0.00141658827015 -0.000577882859552 0) (0.00130196604664 -0.000689572474659 0) (0.00118955537878 -0.000795432843707 0) (0.0010826679939 -0.00088553077463 0) (0.000977536383489 -0.000938924470865 0) (0.000884571011469 -0.000961247544785 0) (0.000816736689154 -0.000986002416214 0) (0.000767582591226 -0.00102185422248 0) (0.000754581175436 -0.00105774285945 0) (0.000628074246376 -0.000941375815892 0) (0.000350286635611 -0.000658294010647 0) (0.000229092579759 -0.000602906190489 0) (0.00016126604865 -0.000560493318544 0) (0.000109854329533 -0.000519470876626 0) (6.65989697953e-05 -0.000477749219623 0) (1.59495165033e-05 -0.000442354085725 0) (-3.96643016013e-05 -0.000398554876065 0) (-7.95647827552e-05 -0.000332103762167 0) (-9.38158947937e-05 -0.000251162172052 0) (-9.24441051261e-05 -0.000179228797961 0) (-8.54243601446e-05 -0.000125065769126 0) (-6.91538898401e-05 -8.56846561701e-05 0) (-4.47368184423e-05 -6.37949614632e-05 0) (-1.55038590378e-05 -5.42993414362e-05 0) (2.76198991676e-05 0.000399715887852 0) (9.56872062151e-05 0.000495539779117 0) (9.79226523891e-05 0.000435664653895 0) (7.43850331648e-05 0.000298777052275 0) (0.00016331628866 0.000441159868067 0) (0.00019722780668 0.000470354261944 0) (0.000216718581927 0.000487232796732 0) (0.000253936455985 0.000472434700719 0) (0.00022779820925 0.000354516999868 0) (0.000292361749801 0.00036029340877 0) (0.000257169458789 0.000241637863273 0) (0.000321663307863 0.000248050368044 0) (0.000356120579765 0.000267983244659 0) (0.00045388906921 0.000364519067272 0) (0.000534765533283 0.00042568389625 0) (0.000516994797258 0.000366103744882 0) (0.000557003449777 0.000360303676581 0) (0.00063146006133 0.000412311106132 0) (0.000690609876924 0.000449838691865 0) (0.000734367694806 0.00045592565915 0) (0.000784944444191 0.000449895071002 0) (0.000822358385242 0.000431718568377 0) (0.000869548156012 0.00041297912486 0) (0.000891195007978 0.000386635523458 0) (0.000869876238296 0.000348719596734 0) (0.000995114565087 0.000347866275701 0) (0.000953032018474 0.000317304681179 0) (0.000977302751915 0.000298946641717 0) (0.00102455943206 0.000297011408319 0) (0.00105864777235 0.000308277992608 0) (0.00116176531467 0.000326202878909 0) (0.00117999216377 0.000344663823174 0) (0.00129532209507 0.000400549267464 0) (0.00133884083471 0.000427698997018 0) (0.00137774207544 0.00042403299545 0) (0.0014190667285 0.00041096223196 0) (0.0014600567589 0.000396035036824 0) (0.00149979306929 0.000380478698626 0) (0.00153884535596 0.000363515567202 0) (0.00157737240374 0.000343356894756 0) (0.00161499436241 0.000319048530658 0) (0.00165114736503 0.000291471940372 0) (0.00168517159052 0.000262179263432 0) (0.00171650008679 0.000231997120753 0) (0.00174474642622 0.00020068918296 0) (0.00176925980158 0.000167062585065 0) (0.00178873492796 0.000129251309997 0) (0.00180160733481 8.53826222238e-05 0) (0.00180648545196 3.42261744855e-05 0) (0.0018020881613 -2.47533811861e-05 0) (0.00178713692334 -9.17565487575e-05 0) (0.00176035745205 -0.000166956323233 0) (0.00172026042111 -0.000251049544033 0) (0.0016641230176 -0.000345540498309 0) (0.00158840796837 -0.000451833492721 0) (0.00149190380461 -0.000568123346451 0) (0.00137999039907 -0.000686727977312 0) (0.00126878888674 -0.000799829615716 0) (0.00117013243645 -0.000911245410666 0) (0.00106795490497 -0.00100496755075 0) (0.000953392091107 -0.00103992000811 0) (0.000853043233037 -0.00103871718382 0) (0.00078179392804 -0.00104776556085 0) (0.000728570770369 -0.00106422640727 0) (0.000693076156018 -0.00108239990201 0) (0.000662237279097 -0.00110636193252 0) (0.000519894283375 -0.00104271034736 0) (0.000208366556266 -0.000666639821135 0) (0.000108846795453 -0.000594835794775 0) (6.93025562453e-05 -0.000557879436524 0) (2.52980102725e-05 -0.000532631614848 0) (-3.85325278577e-05 -0.000508354696742 0) (-0.000104527513496 -0.000451983462972 0) (-0.00014640972947 -0.000358534398936 0) (-0.000155330549889 -0.000252895641638 0) (-0.000148263976499 -0.000172924700829 0) (-0.0001302571985 -0.000106458205775 0) (-9.74566982828e-05 -5.51121644066e-05 0) (-5.62386661386e-05 -2.84462257148e-05 0) (-1.79222970855e-05 -1.96746448297e-05 0) (2.62298488826e-05 0.000463750165953 0) (8.95027635941e-05 0.000528228485559 0) (7.89165323528e-05 0.000378589429431 0) (9.2772425901e-05 0.000349498747044 0) (0.000167001201468 0.000508823458155 0) (0.000162459525884 0.000494265796484 0) (0.000199080138989 0.000518214215408 0) (0.000205088821001 0.000472909881031 0) (0.000232878578837 0.000421011919181 0) (0.0002391938341 0.000332439097255 0) (0.00025608192677 0.000284273204047 0) (0.000311419873065 0.000298601118919 0) (0.000345122766375 0.000325582956897 0) (0.000448871552231 0.000439698613813 0) (0.000512059372323 0.000467672184026 0) (0.000480838313568 0.000391156263753 0) (0.000537885550718 0.000414902862691 0) (0.000606531697956 0.000472397239156 0) (0.000659106227945 0.000501530019305 0) (0.000702503095952 0.000503231336649 0) (0.000746177841308 0.000492775312976 0) (0.000799643706508 0.000480990801048 0) (0.000849533062696 0.000447763555767 0) (0.000885738896503 0.000410709388023 0) (0.000860589135433 0.000379818759718 0) (0.000877273852338 0.000349591353282 0) (0.000980330979052 0.000355883109627 0) (0.000957332924444 0.000345123450365 0) (0.00108998625873 0.000364375934031 0) (0.00104380947616 0.000347101813041 0) (0.00108017926127 0.000361319410826 0) (0.00117263453365 0.000418477326202 0) (0.00128509714528 0.000477749114773 0) (0.00132473573176 0.000477367871778 0) (0.00136590946349 0.000465963394553 0) (0.00140952021423 0.00045288615688 0) (0.00145242543914 0.000437868058126 0) (0.00149409680137 0.000421268358833 0) (0.00153488258946 0.000403061832319 0) (0.00157433382029 0.000382048585043 0) (0.0016128878223 0.000356966104214 0) (0.00165065378204 0.00032796837932 0) (0.00168658296754 0.000296415414822 0) (0.0017200427549 0.000263355261893 0) (0.00175083390093 0.000228486029927 0) (0.00177812413066 0.000190259904363 0) (0.00180013052983 0.000146499292402 0) (0.00181494109787 9.52607464305e-05 0) (0.00182103114162 3.5372000565e-05 0) (0.00181697535713 -3.37235752017e-05 0) (0.00180123598932 -0.000112375233497 0) (0.00177242957965 -0.000201345916891 0) (0.00172840131721 -0.00030233224004 0) (0.00166512053102 -0.000417043281887 0) (0.00157834110876 -0.000543951808451 0) (0.00146851944566 -0.000674042336971 0) (0.00135082187798 -0.000795254770668 0) (0.00125221577142 -0.000910625388344 0) (0.00116318877432 -0.00102634221639 0) (0.00105894673168 -0.00112296817723 0) (0.000926626640496 -0.00114393554948 0) (0.000812812022944 -0.00112537626688 0) (0.000728438614804 -0.0011198659998 0) (0.00065838147606 -0.00112212325206 0) (0.000600242437578 -0.00112846099459 0) (0.000553201019514 -0.00113686499108 0) (0.000513484359199 -0.00116214873429 0) (0.000336710719515 -0.00106715519175 0) (0.000106823389285 -0.000670075007595 0) (4.25480501292e-05 -0.00058517662527 0) (-1.33694270931e-05 -0.000596254859369 0) (-9.47282096237e-05 -0.000590440192941 0) (-0.000179233202441 -0.000518659106184 0) (-0.00023066767645 -0.000388659062274 0) (-0.000232103082548 -0.00024459391247 0) (-0.000209562142742 -0.000155271935991 0) (-0.000177760135298 -7.14124671788e-05 0) (-0.000123657593437 -3.90239602332e-06 0) (-6.36724490599e-05 1.83454247207e-05 0) (-1.79895356707e-05 1.70821927836e-05 0) (1.83864605612e-05 0.000515481157401 0) (6.06682843232e-05 0.000552276017857 0) (7.05399549511e-05 0.00039678741767 0) (0.000114245151819 0.000399877028702 0) (0.000134268273001 0.000460748580811 0) (0.000137617672759 0.000515535347146 0) (0.000187349172161 0.000549961052003 0) (0.000175039247066 0.000467666668283 0) (0.000228469413327 0.000486578242763 0) (0.000224557959748 0.000349243923542 0) (0.000256570221053 0.000323822760965 0) (0.000301112485637 0.000346322634201 0) (0.00033924342579 0.000387861085317 0) (0.000434840284538 0.000503863144413 0) (0.000476029464727 0.000500720958365 0) (0.000445592333908 0.000419090081768 0) (0.000514443512768 0.000470556189286 0) (0.000576491326301 0.000528734676475 0) (0.000623733561657 0.000550046744884 0) (0.00066909394605 0.00055090704122 0) (0.000707836376961 0.000540312595651 0) (0.000771610579973 0.00053271725107 0) (0.000776096944718 0.000469157472192 0) (0.00086653170372 0.000442044718629 0) (0.000859524199629 0.000404705333474 0) (0.000857649719747 0.000395987646497 0) (0.000984602843108 0.000413652427687 0) (0.000937695977542 0.000379602699038 0) (0.000976871732522 0.000381243531019 0) (0.00108380402959 0.000409586905703 0) (0.00111050258914 0.0004409835739 0) (0.00122301028622 0.000512878104772 0) (0.00126199473638 0.000534170599712 0) (0.00130795321566 0.000524222707465 0) (0.00135279264414 0.000510671301105 0) (0.00139771730903 0.000496648828288 0) (0.00144266096412 0.000481293945573 0) (0.00148652502881 0.000464101895694 0) (0.00153010820107 0.000444658491388 0) (0.00157151709067 0.000422196982787 0) (0.00161057590469 0.000396057928869 0) (0.00164920873691 0.000365995957289 0) (0.001687434046 0.000332758144999 0) (0.00172376166943 0.000297281777809 0) (0.00175773283073 0.000259240262333 0) (0.0017885808582 0.000216591538546 0) (0.00181421163369 0.000166680567039 0) (0.00183237379106 0.000107542694511 0) (0.00184130940501 3.81671387062e-05 0) (0.00183933402841 -4.19811037259e-05 0) (0.00182481010464 -0.000133493152016 0) (0.00179591104549 -0.000237964268264 0) (0.00174925788728 -0.00035843924855 0) (0.00167902621277 -0.000496497337256 0) (0.00157855568175 -0.000645700895432 0) (0.00145285026367 -0.000787926359643 0) (0.00133407621006 -0.000913839316824 0) (0.00123782972253 -0.0010206433575 0) (0.00116502746792 -0.00112080320634 0) (0.00107352339342 -0.00123849995264 0) (0.000910504497045 -0.0012648871169 0) (0.00076699442205 -0.00122771976283 0) (0.000660965719074 -0.00120261270112 0) (0.000569745768129 -0.00118977412281 0) (0.000489157470269 -0.00117942605508 0) (0.000424086715837 -0.00116479057193 0) (0.000383690031207 -0.00115868232667 0) (0.000355866985718 -0.001179621633 0) (0.000167550090791 -0.000821712049695 0) (5.72255657786e-05 -0.000643570532576 0) (-2.66898565612e-05 -0.00064576393902 0) (-0.000147014935718 -0.000671933794358 0) (-0.000269426066309 -0.000580253820389 0) (-0.000347855892653 -0.000405846600176 0) (-0.000325675848715 -0.000196398395958 0) (-0.000272407107832 -0.000127949319734 0) (-0.000233582224382 -2.26732769295e-05 0) (-0.000151349384953 7.57425748681e-05 0) (-6.18843494697e-05 8.055519601e-05 0) (-1.27834008107e-05 5.23701579874e-05 0) (1.09191774281e-05 0.000546204865884 0) (3.17994211885e-05 0.00056764052085 0) (6.36327785845e-05 0.000425405034109 0) (0.000114698744893 0.000435065919049 0) (0.000116935663993 0.000449917545466 0) (0.00013951899556 0.000547977608677 0) (0.000181416796054 0.000576587595301 0) (0.000148630789213 0.000428491339458 0) (0.000224428399391 0.000534792192314 0) (0.000207314234749 0.000362279589212 0) (0.000248226363941 0.000357557330817 0) (0.000286847771231 0.000389266842602 0) (0.000324186243736 0.000444176262639 0) (0.000413553664481 0.000555249926769 0) (0.000384189736613 0.000464790753432 0) (0.000405831263029 0.000448985373796 0) (0.000485841958011 0.000531501814465 0) (0.000541736531618 0.000582421888528 0) (0.000585737425243 0.000595651143256 0) (0.00063041294199 0.000595282578328 0) (0.000670640976434 0.000588713367521 0) (0.000741436068876 0.00058530638072 0) (0.000725287987227 0.000496177765624 0) (0.00074693634919 0.000437399660091 0) (0.000862003454666 0.000456815145529 0) (0.000835885583731 0.000432074752825 0) (0.000866339436521 0.000409821939904 0) (0.000935832968907 0.000419290542277 0) (0.00095485795482 0.000439498682418 0) (0.000997933912755 0.000451658380391 0) (0.00106683391642 0.000500461983767 0) (0.00120540861793 0.000583480173434 0) (0.00124239353178 0.000585009611536 0) (0.0012897775707 0.000571775213793 0) (0.00133814597634 0.000557824578871 1.29354857629e-28) (0.00138519136189 0.000543111531292 -1.27675000689e-28) (0.001432552346 0.000526938798943 0) (0.00147725041394 0.000508500164356 0) (0.00152201794204 0.000488083592005 0) (0.00156714480925 0.000464483311896 0) (0.00160857005329 0.000436773091594 0) (0.00164774295152 0.000405500034863 0) (0.00168728288043 0.000371229224564 0) (0.00172675343622 0.000334275064721 0) (0.00176483093385 0.000293826431255 0) (0.00180031690037 0.000247236036178 0) (0.0018310426021 0.000191315305017 0) (0.00185458539304 0.000124100942022 0) (0.0018689311078 4.48428896778e-05 0) (0.00187212950742 -4.7086067442e-05 0) (0.00186223309188 -0.000152583829513 0) (0.0018365449252 -0.000274321588121 0) (0.0017896921611 -0.000417111240901 0) (0.00171316675636 -0.000582851597668 0) (0.00159505824616 -0.000759334257888 0) (0.00145232686793 -0.000919047586406 0) (0.00131792778802 -0.0010565223298 0) (0.00119931441877 -0.00112198458243 0) (0.00118800666874 -0.00116371963747 0) (0.00112722837346 -0.0013637192751 0) (0.000905592724073 -0.00156079465545 0) (0.000698393236539 -0.00147738462129 0) (0.000582105171235 -0.00139285185645 0) (0.000475903545398 -0.00135419062718 0) (0.000366342878167 -0.00133570958952 0) (0.000273280870347 -0.00134261676759 0) (0.000230180859222 -0.00141001871163 0) (0.00025850453993 -0.00152694894587 0) (0.000231027470892 -0.00128438183749 0) (0.000143936155691 -0.000931305399955 0) (1.89989859123e-05 -0.00107805913913 0) (-0.000179389594219 -0.00111109101943 0) (-0.000387959464242 -0.000993583294062 0) (-0.000518474650048 -0.000668855821199 0) (-0.000431191447678 -9.02163548962e-05 0) (-0.000318572834574 -0.000102139776899 0) (-0.000315480323794 4.93448568903e-05 0) (-0.000185552439833 0.000222145210779 0) (-2.9307988797e-05 0.000165519075058 0) (1.01392739389e-05 6.49979766991e-05 0) (1.17525328338e-05 0.000574982195502 0) (4.05120982617e-05 0.000584569955577 0) (6.92526312208e-05 0.000572109832058 0) (8.45516554449e-05 0.000460170116949 0) (0.000106941432614 0.0004776588177 0) (0.000142433764961 0.000580139558309 0) (0.000172827531746 0.000596523203368 0) (0.000152694453714 0.000454222219599 0) (0.000227835166642 0.000566887639976 0) (0.000192756288092 0.000379954534547 0) (0.000237944291983 0.000390833468586 0) (0.00027262946154 0.000428090784534 0) (0.00030778570229 0.000490556956143 0) (0.00038718606796 0.000596022842363 0) (0.000351433599643 0.000480545104884 0) (0.000397065443041 0.000500729447982 0) (0.000464233984757 0.000587112157942 0) (0.000508777197105 0.000629683456859 0) (0.000548830282638 0.000638816369157 0) (0.000588958719258 0.000635563210412 0) (0.000631456321597 0.000633642057916 0) (0.000704052417986 0.000628324778462 0) (0.000689977018363 0.000523415843224 0) (0.000727447596991 0.000490780535785 0) (0.000845622577799 0.000510131516743 0) (0.000810175064015 0.00045729213361 0) (0.00084328819031 0.000460202181955 0) (0.000959792113577 0.000487050477844 0) (0.00093954352003 0.000466683210503 0) (0.000997989333025 0.000520411292337 0) (0.00113780560434 0.000622359660127 0) (0.00117889941913 0.000643449952392 0) (0.00122247796755 0.000632075613549 0) (0.00127154093702 0.000619923479851 0) (0.00132263837707 0.000607154014052 0) (0.00136996237919 0.00059102707794 0) (0.0014191032513 0.000574231729003 0) (0.00146878514413 0.00055565286948 0) (0.00151416350697 0.000533612768627 0) (0.0015595891356 0.000508548320932 0) (0.00160428084869 0.000479457681395 0) (0.0016457226245 0.000446756151039 0) (0.00168645885207 0.000411743795273 0) (0.00172838668627 0.000374496185884 0) (0.00177095045956 0.000333111650244 0) (0.00181239473313 0.000283718734714 0) (0.0018502604852 0.00022256123926 0) (0.00188213075164 0.000147748434426 0) (0.00190549388751 5.87827707288e-05 0) (0.00191838273639 -4.50119465804e-05 0) (0.00191929842826 -0.000165369811731 0) (0.00190200038372 -0.000306347427389 0) (0.0018591434003 -0.000474092490344 0) (0.00177730917832 -0.000673005416246 0) (0.00163918793462 -0.00088848585537 0) (0.00148834991456 -0.00109984784032 0) (0.00127099187182 -0.00134830869916 0) (0.00104758976523 -0.00126766100589 0) (0.00118635554318 -0.00103181222112 0) (0.00135561498282 -0.00144687118847 0) (0.00109355488137 -0.000728749094163 0) (0.000730207270131 -2.14432693829e-05 0) (0.000690282115651 0.000634108583548 0) (0.000678953805062 0.00139061594947 0) (0.000591651949726 0.00248452993152 0) (0.000548920003136 0.00360487080111 0) (0.000502436546638 0.00421575331129 0) (0.000530464295409 0.00454663164138 0) (0.000738068796606 0.00494172765735 0) (0.00143727741067 0.00479839965342 0) (0.000533698253535 0.00207866587615 0) (-7.94450264708e-05 0.00186252030249 0) (-0.000623190876876 0.00183832207862 0) (-0.00114403702322 0.00174093760792 0) (-0.000834158179972 0.000744748800653 0) (-0.000333486144211 -0.000377286600026 0) (-0.000475425965831 -0.000183121255858 0) (-0.000222440378497 0.000469386960744 0) (8.9036658943e-05 0.000274941006687 0) (7.61597753975e-05 3.10786215507e-06 0) (1.23177039214e-05 0.00060361914562 0) (5.4748319129e-05 0.00060618983954 0) (4.57448256487e-05 0.000472519718183 0) (5.38639391708e-05 0.000488640866774 0) (9.27447793068e-05 0.000508620750075 0) (0.000138823342218 0.00061081242417 0) (0.000164837907015 0.000609174425732 0) (0.000162949355116 0.000484914029544 0) (0.000223326667033 0.000589007956591 0) (0.000177130622973 0.000402654161274 0) (0.00022632132602 0.000425295342105 0) (0.00025991225757 0.000465152302841 0) (0.000296228495656 0.00053250926925 0) (0.000364232860768 0.000624971926809 0) (0.000336801947426 0.000507157338054 0) (0.000389894637098 0.000548317064715 0) (0.000444405120471 0.000632309978787 0) (0.000479456895662 0.000669883897947 0) (0.000514616826429 0.000678862478636 0) (0.00055305211732 0.000677568428516 0) (0.000593571325809 0.000675543404643 0) (0.000657931031896 0.000669089912018 0) (0.000681541187812 0.00058254089619 0) (0.000707244348311 0.00052738738772 0) (0.000733927838688 0.000495011891208 0) (0.000814632245511 0.00051428595289 0) (0.00082307344349 0.000508726469407 0) (0.000852491355713 0.000501850329046 0) (0.000990491834715 0.000570119819717 0) (0.00105698512582 0.000633823962697 0) (0.00111839225923 0.000678489794487 0) (0.00116037354433 0.000687712167141 0) (0.00120674870232 0.000681065387519 0) (0.00125549407027 0.000669843762651 0) (0.0013042623879 0.000655889272823 0) (0.0013550347027 0.000641155794013 1.2342486541e-28) (0.00140560878376 0.000624073728547 -1.21934543634e-28) (0.00145542320633 0.000603914937157 0) (0.00150599838297 0.000581288306424 0) (0.00155226155638 0.000554584226952 0) (0.00159749658508 0.000523945857871 0) (0.00164125350019 0.00048989308058 0) (0.00168389211865 0.000454137247943 0) (0.00172791878912 0.000417647045712 0) (0.00177453348542 0.000377798841323 0) (0.00182331254169 0.000328315390982 0) (0.00187101376121 0.000263407079651 0) (0.00191361028915 0.000181717519426 0) (0.00195034506553 8.49831672126e-05 0) (0.00198190273872 -2.86524156657e-05 0) (0.00200339028785 -0.000164885698141 0) (0.00200271057972 -0.000327256055431 0) (0.0019718951212 -0.00052091165901 0) (0.00189114330625 -0.00075697405677 0) (0.00175829841667 -0.00101620486194 0) (0.0016676688176 -0.00141979404434 0) (0.00130585672229 -0.00107400069815 -1.2982719933e-28) (0.00093242455381 -0.000173238857828 1.28321298408e-28) (0.00169289062091 0.000782960639655 0) (0.00272835298729 0.00182629812285 0) (0.0151958100979 0.00313392152353 0) (0.0199408535749 0.000938513528368 0) (0.0227212208291 -0.000478834945894 0) (0.0251112191461 -0.00171747428038 0) (0.0268605941621 -0.00279565201523 0) (0.0283561837502 -0.00333785028196 0) (0.0295453266077 -0.00322502110361 0) (0.0303681629705 -0.00256190329151 0) (0.0306811517044 -0.00154304133754 0) (0.0305454298075 -0.000418693077469 0) (0.0297183160391 0.000678281645533 0) (0.0280598962998 0.00138485302 0) (0.0255183838978 0.00162674871435 0) (0.0205993937544 0.00166067478036 0) (0.00561277891249 0.00354520639257 0) (0.00197502722874 0.00308820158525 0) (-0.000734062893273 0.00299057755092 0) (-0.000581409747774 0.00170493115328 0) (0.000375787314465 0.000493965847078 0) (0.000242876532747 -0.000279087365232 0) (9.28828099982e-06 0.000632701782724 0) (4.45270528632e-05 0.000633052080321 0) (3.83126819928e-05 0.000487011577414 0) (4.76374337496e-05 0.000522945250259 1.82565239281e-29) (8.76325373513e-05 0.000556024584773 -1.91050636129e-29) (0.000132276288199 0.00063718160608 0) (0.000147762358775 0.000619384316508 0) (0.000165604279656 0.000523434006701 0) (0.000184596135376 0.000514398265363 0) (0.000169938340285 0.000431477094623 0) (0.000215475176641 0.000462680330593 0) (0.000249201792239 0.000502325198724 0) (0.000289437722582 0.000574768249771 0) (0.000344918208091 0.000647602544309 0) (0.000320477137941 0.000535824751014 0) (0.000376955506839 0.000593059643399 0) (0.000421995506866 0.000669723206767 0) (0.0004513142607 0.00070377316474 0) (0.000482596056001 0.000716009217064 0) (0.000518633576027 0.000718176421682 0) (0.000558084285141 0.000717517036318 0) (0.000610819468803 0.00070791945464 0) (0.000665084403576 0.000643943895412 0) (0.000684160133701 0.000560254160314 0) (0.000704583293482 0.000533086417508 0) (0.000826378117426 0.000586021384597 0) (0.000793274813619 0.000548570536893 0) (0.00083875651653 0.000572505246063 0) (0.000884908623301 0.000604668859651 0) (0.00100056686014 0.000691869040064 0) (0.00108010811588 0.000741016344695 0) (0.00113365051797 0.000741111340866 0) (0.00118439561064 0.00073134790129 0) (0.00123303364389 0.00071909947109 0) (0.00128879022028 0.000708649729774 0) (0.00133911377926 0.000692673063845 0) (0.00139250502655 0.000675938878378 0) (0.00144318083175 0.000654734403143 0) (0.00149478501607 0.00063046947016 0) (0.00154392949013 0.000602074988045 0) (0.00158962623911 0.000569610513596 0) (0.00163406280907 0.000534597368281 0) (0.00167874493892 0.000498759530058 0) (0.0017247557264 0.000463684468208 0) (0.00177406708748 0.0004276012144 0) (0.00182762818058 0.000380757294476 0) (0.00188497916457 0.000314773365837 0) (0.00194240904223 0.000230637362326 0) (0.00200415154836 0.000132757578076 0) (0.00206613898645 1.23832091335e-05 0) (0.00211731832129 -0.000140707326986 0) (0.00214973796473 -0.000328083491119 0) (0.00214006736248 -0.00054218132128 0) (0.00206142212513 -0.000798819001223 0) (0.00215755408506 -0.00128071510674 0) (0.00204776746616 2.02107493941e-05 0) (0.0115371048129 0.00242014896434 0) (0.0229561788439 0.00156041447362 0) (0.0274608654237 0.00277624964549 0) (0.0317283976647 0.00444277463875 0) (0.0355019477407 0.00489973578393 0) (0.0402754861712 0.00299472605002 0) (0.0465900830989 0.00151124589849 0) (0.053152524205 0.000273015959919 0) (0.0596631788362 -0.00118312354191 0) (0.0657937902643 -0.00278580179405 0) (0.0712027349706 -0.00460696833236 0) (0.0754999204081 -0.00655760710637 0) (0.0782203833751 -0.00856156718523 0) (0.0791220493946 -0.0105464392878 0) (0.0788061250539 -0.0126483627694 0) (0.0765144409132 -0.0149844264183 0) (0.0723540554122 -0.0175361229656 0) (0.065569373793 -0.0195231203941 0) (0.0555696990976 -0.018016560228 0) (0.0437717351396 -0.0103864643223 0) (0.0307834798382 -0.00449156237163 0) (0.00485871326835 0.00272451011562 0) (0.00233675177671 0.000443831531877 0) (0.000838713949106 -0.000429141744501 0) (6.4718227494e-06 0.000656635666669 0) (3.97522221124e-05 0.000656662315411 0) (3.15351105246e-05 0.000465798750082 0) (4.3207592407e-05 0.000555036556951 0) (8.62922894284e-05 0.000610324585395 0) (0.00012316062839 0.000657995062013 0) (0.000129305738086 0.000630661504807 0) (0.000155378948846 0.000566075274642 0) (0.000176892614763 0.000519040373847 0) (0.000173842562269 0.000456400644188 0) (0.000210193990651 0.000497328167724 0) (0.00024083519624 0.000539158516438 0) (0.000285434433859 0.000616341736605 0) (0.000324031941439 0.000664595444945 0) (0.000299298457506 0.000565094478865 0) (0.000357740163552 0.000635997799589 0) (0.000396396133091 0.000703234684255 0) (0.000422279423031 0.000733247836048 0) (0.000450096319641 0.000749854450991 0) (0.000483227680865 0.000756015740781 0) (0.000521185240534 0.000759002421664 0) (0.00056979097227 0.000754066247665 0) (0.000631446374641 0.000702909076589 0) (0.000652479436893 0.000602906254983 0) (0.000682054317616 0.000568114730917 0) (0.000717077565797 0.000566024856895 0) (0.000781439377347 0.000598203656835 0) (0.000814550312678 0.000618546094299 0) (0.000876498675617 0.000682708501494 0) (0.00100447927188 0.000795587169038 0) (0.0010434995133 0.000802569876812 0) (0.00109947317692 0.00079300085915 0) (0.00114835007482 0.000780119510365 0) (0.00120737300149 0.000773517588756 0) (0.00126474266796 0.000762204153866 0) (0.00132322597003 0.00074874361555 0) (0.00137538265827 0.00072892413394 -1.17629265292e-28) (0.00143091366119 0.000707757581633 1.16210170665e-28) (0.00148311378901 0.000681127440409 0) (0.001533802623 0.000650706897463 0) (0.00158165980396 0.000616959406535 0) (0.00162575757949 0.000579931384696 0) (0.00166633079295 0.000541911088746 0) (0.00171122338965 0.000508158373563 0) (0.00176171280196 0.000481134752457 0) (0.00182125451714 0.000449568417351 0) (0.00188881362964 0.000391942035732 0) (0.00196282116737 0.000306550030421 0) (0.00205290638002 0.000211254806919 0) (0.002154417088 9.14126486852e-05 0) (0.00225420474285 -7.41728813755e-05 0) (0.00234591942827 -0.000282179685222 0) (0.00241458655916 -0.000502864224157 0) (0.00252244161209 -0.00072640801034 0) (0.00307401520114 0.00178800801558 0) (0.0247923495886 0.00975699402311 0) (0.0280504177971 0.00940017447607 0) (0.0362099814363 0.00971753347567 0) (0.0427778954486 0.010498962726 0) (0.0499230857109 0.0117629896354 0) (0.0565239072054 0.0121390399511 0) (0.0641065054519 0.0116157183974 0) (0.072609277106 0.0115794643387 0) (0.0813904045572 0.011639956779 0) (0.0900704008996 0.0115952663028 0) (0.0982363209261 0.0113343649686 0) (0.10554894525 0.0106569587549 0) (0.11168213027 0.00937498171686 0) (0.116270527729 0.00722050791626 0) (0.118977286725 0.00389558249374 0) (0.119772582822 -0.000718693111766 0) (0.118875458643 -0.00634885647861 0) (0.115919791014 -0.0126431155728 0) (0.110532716114 -0.0193294891717 0) (0.101665631033 -0.0254717897608 0) (0.0889331136333 -0.0298256967459 0) (0.0735878802305 -0.0308984757397 0) (0.0540634250047 -0.0255348504244 0) (0.0156377203044 0.00133548381794 0) (0.0122354366048 -0.0245440028717 0) (2.93493718239e-06 0.000675438449075 0) (2.70884669465e-05 0.000676487095923 0) (2.37992815675e-05 0.000448654152208 0) (4.82880355291e-05 0.000582460265024 0) (8.91600905048e-05 0.000649870383451 0) (0.000116073520409 0.000673982332448 0) (0.000116116250133 0.00063163771495 0) (0.000152373048629 0.000627606310565 0) (0.000165978941467 0.000518758357935 0) (0.000171557748424 0.000476711443131 0) (0.000202809769329 0.000528043239503 0) (0.000229298313249 0.000574716346822 0) (0.000277556747698 0.000653888156541 0) (0.000286327075639 0.000645850729295 0) (0.000279594935943 0.00059934846904 1.37955193799e-28) (0.000333270391987 0.000676579824697 -1.52579710613e-28) (0.000368337458317 0.000733182548398 0) (0.000390607689015 0.000758297898685 0) (0.000416093649507 0.000781627679122 0) (0.000445836756762 0.000791222948236 0) (0.000481249847414 0.000798618974733 0) (0.000526812264234 0.000799688521253 0) (0.000589279393363 0.000758276162113 0) (0.000613686783794 0.000647383338879 0) (0.000656600452941 0.000605963087938 0) (0.000683744590856 0.000608076324707 0) (0.000805849427754 0.000699701684257 0) (0.000825761163626 0.000715158187252 0) (0.000908804644657 0.000798151721485 0) (0.000967872441891 0.000853054025183 0) (0.00101544757995 0.000861230472451 0) (0.00106298911617 0.00084631809095 0) (0.00111707940219 0.000835664703637 0) (0.00118132678527 0.000833732821037 0) (0.00124250924452 0.000822174706538 0) (0.00129326879193 0.000801429412833 0) (0.00135812253642 0.000787396259982 0) (0.00141608237549 0.000764196710185 0) (0.00147183679881 0.000734806041946 0) (0.00152521901546 0.000700982500737 0) (0.00156957696422 0.000661994136826 0) (0.00161245560805 0.00062259618912 -1.05788455382e-28) (0.00165211641482 0.000585095190979 1.03218618357e-28) (0.00169399430749 0.000553727197676 0) (0.00173287370126 0.000526808381275 0) (0.00173065388956 0.000486012069945 0) (0.00171877969256 0.000432941401693 0) (0.00178783130599 0.000395779154272 0) (0.001991434282 0.000353877816435 0) (0.00215222502303 0.000237031008656 0) (0.0023095185018 6.58711093081e-05 0) (0.00246289552134 -0.000152029926369 0) (0.00262332000984 -0.000357229658009 0) (0.0033864638368 0.00336349558163 0) (0.0316886031207 0.0180066308022 0) (0.0346794178367 0.0186249296271 0) (0.0427748813665 0.0166308706296 0) (0.0510500143507 0.0173951455401 0) (0.0595363924753 0.0182326215082 0) (0.0686119164046 0.0195845686755 0) (0.0777516054647 0.0205301700134 0) (0.0874023634151 0.0210137016902 0) (0.0971907394644 0.0212160954828 0) (0.106781721228 0.0208438293507 0) (0.115901200987 0.019826310746 0) (0.124293964185 0.0181324429476 0) (0.131767852196 0.0157278006759 0) (0.138175397845 0.012610540107 0) (0.143373457295 0.00875707704359 0) (0.147178615053 0.00409462873883 0) (0.14936685612 -0.00145883639206 0) (0.150062510387 -0.00797050207335 0) (0.1485333302 -0.0151865524859 0) (0.144478127679 -0.0228139469883 0) (0.136931706678 -0.0303239130117 0) (0.124931658357 -0.0369747508861 0) (0.108068370694 -0.0411462179081 0) (0.0863770898184 -0.0386259360568 0) (0.0589522983496 -0.0251351438363 0) (0.00463488539608 0.00489114514738 0) (1.49590449368e-08 0.000687421632414 0) (1.41437386704e-05 0.000688366410593 0) (1.94794614851e-05 0.00047051251073 0) (5.69552580873e-05 0.00063566258383 0) (8.8917642491e-05 0.000676977086649 0) (0.000107518615705 0.000688870796373 0) (0.000107932182007 0.000632287000959 0) (0.0001436637432 0.000667769516551 0) (0.000149341681955 0.000524907265721 0) (0.000162406149717 0.000494097596885 0) (0.000191209403665 0.000554820222318 0) (0.000212940862316 0.000606065016014 0) (0.000259477305858 0.0006891716611 0) (0.000250781886845 0.000622091751072 0) (0.000267295071204 0.000630296519955 0) (0.000309421431918 0.000711922278469 0) (0.00034020687443 0.000761112297744 0) (0.000353860587475 0.000768163411161 0) (0.000382773029025 0.000808778792467 0) (0.000407824250266 0.000822506811038 0) (0.000438624644122 0.000835473814624 0) (0.000481830532061 0.000845956791698 0) (0.000541175635179 0.000810270618557 0) (0.000568046464042 0.000696760481489 0) (0.000619632122862 0.00065544864247 0) (0.000648053579387 0.00064962758355 0) (0.000699181996984 0.000696745863709 0) (0.000736564285579 0.000741418408629 0) (0.000805963966778 0.000818320558665 0) (0.000914636466647 0.000917256357047 0) (0.000971505568046 0.000921873186532 0) (0.00101105329698 0.000897501894737 0) (0.00108982317046 0.000908863197339 0) (0.00115388390899 0.00090323272594 0) (0.00119948493494 0.000873135238775 0) (0.00127159865324 0.000864870990168 0) (0.00133678179158 0.000849827350532 0) (0.00139816876846 0.000823711382638 -1.11008198228e-28) (0.00145660106784 0.000790431480677 1.09425255165e-28) (0.00151190077688 0.000751650657214 0) (0.00156342373788 0.00070988331659 0) (0.00160239589307 0.000664566166571 0) (0.00163090796167 0.000616572289369 0) (0.00162739910152 0.000559136844024 0) (0.0015958041916 0.000499892067216 0) (0.00155688072468 0.000464473031124 0) (0.0015744351847 0.000477558892551 0) (0.00170471081546 0.000533734211823 0) (0.00186700672539 0.000523255236967 0) (0.00198765320507 0.000379547406939 0) (0.00207724125307 0.000209871881975 0) (0.00212826519816 -3.67993267969e-05 0) (0.00270831460527 0.00371374872495 0) (0.0377686983427 0.025075895431 0) (0.0410450232194 0.0286569381467 0) (0.0488261697788 0.0254032853911 0) (0.0578244038909 0.0249681050086 0) (0.0672610863205 0.0263539039843 0) (0.0773975702056 0.0278516319072 0) (0.0879637433996 0.0295023349956 0) (0.0986932626679 0.0306846104503 0) (0.109576186287 0.0313120230019 0) (0.120286612473 0.0312073981927 0) (0.130652918483 0.0301840703565 0) (0.140534454871 0.0282279750308 0) (0.149809468276 0.0253683671709 0) (0.15836144921 0.021627897312 0) (0.166069223958 0.0170191792209 0) (0.172785209526 0.0115194250594 0) (0.178293430157 0.00505563720173 0) (0.182281938255 -0.00248483012952 0) (0.184861102391 -0.0112536350111 0) (0.18504754602 -0.0215684603778 0) (0.18245206331 -0.0329710639568 0) (0.175971890718 -0.0453631873576 0) (0.163762183329 -0.0581226061835 0) (0.143492690106 -0.0693762433089 0) (0.114032312109 -0.0748531842394 0) (0.0757097636459 -0.0702557369025 0) (0.0120102610192 -0.0627583489724 0) (-1.37649242752e-06 0.000695106986878 0) (8.52098939794e-06 0.000695018078915 0) (1.96888300918e-05 0.00049571098557 0) (5.97559208301e-05 0.000677700703196 0) (7.80651970992e-05 0.000692580443783 0) (9.04272665654e-05 0.000703665534927 0) (9.79029364711e-05 0.000637248557057 0) (0.000131006596573 0.000689943547953 0) (0.000131642366759 0.000538924431208 0) (0.000150160994785 0.000511999848694 0) (0.000178018083252 0.000579078474403 0) (0.000196753325684 0.000632359692093 0) (0.000236761014371 0.000717804218436 0) (0.00023631608933 0.000644475811367 0) (0.000257761395765 0.000657472154784 0) (0.000290409353826 0.000740933967565 0) (0.000313586510068 0.000786533215757 0) (0.000324800937819 0.000789257635493 0) (0.000351531876018 0.000831543331964 0) (0.000372103842529 0.000847186352957 0) (0.000394689146726 0.000865117449819 0) (0.000436012701172 0.000894163727362 0) (0.000488124208603 0.000858762962966 0) (0.000518225033996 0.000747265851363 0) (0.000576832562845 0.00070772122939 0) (0.000607828347798 0.000690047518872 0) (0.000655254236734 0.000740149811289 0) (0.000710552233481 0.000822021834569 0) (0.000819404358191 0.000949706541477 0) (0.000864950461107 0.000976091933087 0) (0.000917698012896 0.000972978479333 0) (0.000960140348105 0.000951364016344 0) (0.0010256574544 0.000950499716801 0) (0.00109465910268 0.000951707875717 0) (0.00116440998591 0.000942698558214 0) (0.00124862919525 0.000937745737686 0) (0.00131500365335 0.000917092283186 0) (0.00137763708188 0.000885111713106 0) (0.00143976054905 0.000848838290334 0) (0.0014969269949 0.000805561542228 0) (0.00155004866223 0.000755325249255 -1.0337160846e-28) (0.00158626162582 0.000694159449562 1.00184362183e-28) (0.00159196703549 0.000614282835394 0) (0.00153517141117 0.00051710036003 0) (0.00149088718168 0.000463699834175 0) (0.00150172205037 0.000484276916383 0) (0.00152318135593 0.000564082674155 0) (0.00163411601738 0.000687361311085 0) (0.00173361266238 0.000665210810922 0) (0.0017820958615 0.000424903994099 0) (0.00176743618078 0.000106687474724 0) (0.00204555815844 0.00351177883904 0) (0.0428393962219 0.0309577797606 0) (0.047232193728 0.0379390490919 0) (0.0546971967552 0.0351373378377 0) (0.0636599714216 0.0336742571184 0) (0.0736522435546 0.0348121957776 0) (0.0844801365487 0.0369028216393 0) (0.0959992595218 0.0389943728898 0) (0.107874941877 0.0408443674106 0) (0.119910670065 0.0420253784215 0) (0.131994226348 0.042443221129 0) (0.143943193299 0.0419392239105 0) (0.155680155782 0.0404351694526 0) (0.167120900315 0.0379412440236 0) (0.178167769825 0.0344825999194 0) (0.188689684404 0.03005544023 0) (0.198525155183 0.0246169990536 0) (0.207483703646 0.0180796390257 0) (0.215331700378 0.0103113341143 0) (0.221760421069 0.00112525591576 0) (0.226443775367 -0.00967561061501 0) (0.229866244078 -0.0225787716551 0) (0.230942164381 -0.0376662788862 0) (0.228990035422 -0.0553197670122 0) (0.221678121009 -0.0757256524035 0) (0.205829446423 -0.0983165094088 0) (0.181123414043 -0.121752209242 0) (0.151561877275 -0.147306448892 0) (0.0755858646451 -0.190143844797 0) (-2.01002532149e-06 0.000700119760528 0) (6.9259518473e-06 0.000699636400669 0) (2.30288355138e-05 0.00053369074138 0) (5.92545565989e-05 0.000702935139019 0) (6.35162478475e-05 0.000700634918935 0) (6.95028511691e-05 0.000716790037069 0) (8.84899890963e-05 0.00067435630335 0) (0.000110795448121 0.000697782787417 0) (0.000112758654967 0.000560286281409 0) (0.000137116229925 0.000530765597539 0) (0.000164488492584 0.000601240340549 0) (0.000181199925171 0.000655418574082 0) (0.000216242765627 0.000739924286762 0) (0.000218888458772 0.000662500077395 0) (0.000242426938408 0.000680723336951 0) (0.000270826073236 0.000762367215923 0) (0.000288043149411 0.000805702506867 0) (0.000294526415651 0.000807069640535 0) (0.000319707632414 0.000854809419446 0) (0.00033779317467 0.000867293143763 0) (0.00035025473365 0.000884101240771 0) (0.000386141788799 0.000937263272486 0) (0.000429465764032 0.000902925556392 0) (0.000465312790677 0.000799264444051 0) (0.000526865873459 0.000761514458601 0) (0.00056396934305 0.000735900552828 0) (0.00062100007494 0.000789895574084 0) (0.000690916068731 0.000896870010209 0) (0.000784507113957 0.00102132640292 0) (0.000820235462743 0.00103989161202 0) (0.0008588015753 0.00101937496167 0) (0.000936925873681 0.00104277382748 0) (0.00100883005923 0.0010519561015 0) (0.00107568817813 0.00103816363364 0) (0.00112435953468 0.00100546745527 0) (0.0012154088345 0.00100695083443 0) (0.00128463310378 0.000984544414136 0) (0.00135868999356 0.000955385957828 0) (0.00142537528449 0.000913053464253 0) (0.00148274542285 0.000860268847576 0) (0.00153550642596 0.000798418272598 0) (0.00157539005323 0.000712511110533 0) (0.00152508747875 0.000575286068873 0) (0.00144979271629 0.000462141086662 0) (0.00142684736762 0.000434252059254 0) (0.00137845067609 0.000463789272132 0) (0.00130203703549 0.000563471301708 0) (0.00127971927756 0.000764083327878 0) (0.00145855082157 0.000900321137367 0) (0.00169449965749 0.000246731022636 0) (0.00202971905301 0.00383092736772 0) (0.0473241623327 0.0355717747162 0) (0.0527156490187 0.0459015945368 0) (0.0603492467312 0.0445239511063 0) (0.0688611557644 0.0428826061189 0) (0.0788976208468 0.0436152630196 0) (0.0901636435716 0.0459940246103 0) (0.102291078739 0.0487895368355 0) (0.115022247112 0.0513596920462 0) (0.128084281078 0.0534108500018 0) (0.141314160841 0.054662237188 0) (0.154591071138 0.0550315005923 0) (0.167797361294 0.054423339228 0) (0.180860877827 0.0528070202074 0) (0.193686121076 0.0501754855886 0) (0.206158594888 0.0465100305976 0) (0.21814225233 0.0417559992152 0) (0.22949602114 0.0358216781696 0) (0.240086322268 0.0285828565983 0) (0.249785039631 0.0198896230166 0) (0.25843406532 0.0095516343118 0) (0.265832287873 -0.00267154725912 0) (0.272648837841 -0.0169201237407 0) (0.278369269246 -0.0341651823046 0) (0.28266692091 -0.0546258691912 0) (0.283783632143 -0.0791716123224 0) (0.279847407399 -0.108709738677 0) (0.274389418978 -0.145663945176 0) (0.279347502761 -0.196739833142 0) (0.280067613091 -0.272130562056 0) (-2.62943433567e-06 0.000703471533466 0) (7.58027374088e-06 0.00070582916325 0) (2.80406618784e-05 0.000571890166483 0) (5.68542477737e-05 0.000714821213192 0) (4.88742647167e-05 0.000699621998267 0) (5.2279752943e-05 0.000727261651889 0) (7.53104944792e-05 0.000709685327479 0) (8.28827021656e-05 0.000687333285036 0) (9.48267810611e-05 0.000601162082702 0) (0.000123683452659 0.000554542083525 0) (0.000149785398125 0.000621221691739 0) (0.000164575821384 0.000675984764272 0) (0.000194563762253 0.000758947122721 0) (0.000198372904579 0.00068273205221 0) (0.000223340712244 0.000703804270309 0) (0.000250055355765 0.000779373036846 0) (0.000262181126506 0.000818434246548 0) (0.000260989646725 0.000820386119883 0) (0.000285456839724 0.000878665116395 0) (0.000302011073991 0.000884152464382 0) (0.000305392051205 0.000892406458776 0) (0.000332426276049 0.000970217586829 0) (0.00036997452226 0.000948994260693 0) (0.000410752370009 0.000852103980918 0) (0.000471742994159 0.000816788893699 0) (0.000517710787043 0.000794164304097 0) (0.000574185499803 0.000847066963463 0) (0.000656105055811 0.000969282467856 0) (0.000696173432086 0.00102687439306 0) (0.00076135447807 0.00109427749786 0) (0.000797262512426 0.00108324195329 0) (0.000858040802137 0.00108221430698 0) (0.000916607774603 0.00107262691894 0) (0.00103333343087 0.00112028099051 0) (0.00110934266 0.00110453274888 0) (0.00117052638387 0.00107037498931 0) (0.00125873590847 0.00105854242309 0) (0.00132672357709 0.00102194482864 0) (0.00140388876957 0.000980085682822 0) (0.00147311614507 0.00092279972271 -9.78980307692e-29) (0.00153328824271 0.000841251996071 9.51984458098e-29) (0.0015211020845 0.000691381167619 0) (0.00143526702839 0.000515620325631 0) (0.00140774799054 0.000417227749948 0) (0.00136295466642 0.000359702654108 0) (0.00118644502509 0.000302372658606 0) (0.000827088090185 0.000350096918304 0) (0.000637355613425 0.000814077788499 0) (0.00143574249411 0.000649633131575 0) (0.00296056713957 0.00472819745767 0) (0.0509116815843 0.0384937608164 0) (0.0573625088552 0.0522468250678 0) (0.0652563777638 0.0527975412963 0) (0.0734693484662 0.0518332210541 0) (0.0831021576834 0.0524686696633 0) (0.0944510980423 0.0549584301218 0) (0.106938440858 0.0583861512025 0) (0.120199062025 0.0618381468149 0) (0.133966758319 0.0648307590243 0) (0.148015892159 0.0671038908848 0) (0.16219306522 0.0684692826461 0) (0.176368181792 0.0688525777471 0) (0.190423908824 0.068184517383 0) (0.204262065439 0.0664332954691 0) (0.217775985175 0.0635699836061 0) (0.230863922136 0.0595580175009 0) (0.243436958326 0.0543436546103 0) (0.255434390659 0.0478567431232 0) (0.266831496049 0.0400112312741 0) (0.277640615093 0.0307063656504 0) (0.287898323851 0.0198081258027 0) (0.297642091734 0.00709132502393 0) (0.306918649506 -0.00778113862586 0) (0.316812744304 -0.0251929197105 0) (0.326383542753 -0.0456783948238 0) (0.334867879961 -0.0695846552007 0) (0.342342283754 -0.0978064518814 0) (0.355871173266 -0.132706169911 0) (0.389171393732 -0.17827140192 0) (0.430199715555 -0.235415271001 0) (-2.99580748729e-06 0.000702420124408 0) (8.02804928162e-06 0.000714459909558 0) (3.1571400083e-05 0.00060838390834 0) (4.99431446624e-05 0.000704837245115 0) (3.72354901705e-05 0.000685558603388 0) (4.14863942136e-05 0.000734651899054 0) (5.80597923378e-05 0.000728725701265 0) (5.73987987944e-05 0.0006620381662 0) (8.07993052203e-05 0.000635237861505 0) (0.000111257584045 0.000575216435201 0) (0.000133991544406 0.000637528211097 0) (0.000146615044972 0.000693775422044 0) (0.000171179933177 0.000774560109433 0) (0.000175256349659 0.000703163176512 0) (0.000199997236859 0.000727530004743 0) (0.000227359229232 0.000795236174151 0) (0.000232379367412 0.000818918029194 0) (0.000225647821342 0.000828065490727 1.19731450889e-28) (0.000249894461127 0.000902060319684 -1.2776222423e-28) (0.000262388944545 0.000897206290032 0) (0.000261315973366 0.000891385701836 0) (0.000280300882439 0.000987271684835 0) (0.000313494792696 0.000996334219439 0) (0.000355299631774 0.000903350197961 0) (0.000415233717725 0.0008696436563 0) (0.000467504904203 0.000855930062667 0) (0.000518183964351 0.000901621432453 0) (0.000606513870506 0.00104303408063 0) (0.000642067063171 0.00107639080974 0) (0.000705136419681 0.00113006139556 0) (0.000734270041516 0.00112653456615 0) (0.000828937396774 0.0011959023636 0) (0.000901316152479 0.00120134628654 0) (0.000962790030428 0.00117161049944 0) (0.00106470572979 0.00118100393298 0) (0.00114589736254 0.00116214293255 0) (0.00122728976861 0.00113607558423 0) (0.00130617868364 0.00110058485629 0) (0.00137894876419 0.00105059672451 0) (0.00146012790559 0.000985048230238 0) (0.00149742113738 0.000853094088141 0) (0.00142331453091 0.000642071226001 0) (0.00139483841111 0.000487106558754 0) (0.00139932439674 0.000374516145013 0) (0.00131972223084 0.000199521400947 0) (0.000986784760016 -9.61760548346e-05 0) (0.000263995318382 -0.00032011112708 0) (0.000622448616417 0.000680424326491 0) (0.0117957659141 0.0121045101668 0) (0.0532198310682 0.0388406917808 0) (0.0615148900665 0.0565853927638 0) (0.0690338405616 0.0596326837069 0) (0.0771586689674 0.0598802202262 0) (0.086291329146 0.0609563067967 0) (0.0973535212888 0.0636071944337 0) (0.109922894011 0.0675362559724 0) (0.123454100804 0.0718561273809 0) (0.1376186766 0.0758739417752 0) (0.152155388649 0.079212179468 0) (0.166857056637 0.0816543192847 0) (0.1815640269 0.0830618678614 0) (0.196137341308 0.0833655560562 0) (0.210458674386 0.0825088906442 0) (0.224434760417 0.0804602967144 0) (0.237993361069 0.0771932358604 0) (0.251096131934 0.0726839425497 0) (0.263743631742 0.0669042339965 0) (0.275978538781 0.059817037555 0) (0.287879739097 0.0513717360064 0) (0.299558139983 0.0415049524004 0) (0.311167998439 0.030134349485 0) (0.322920619235 0.0171224884802 0) (0.335024172918 0.00221720152332 0) (0.347933041572 -0.0147395139033 0) (0.361668249531 -0.0343064558434 0) (0.375425522383 -0.0566770427962 0) (0.39086046919 -0.0824757648495 0) (0.415819849684 -0.113462031627 0) (0.460182228018 -0.150922764978 0) (0.507476430889 -0.190882581914 0) (-1.36079055838e-06 0.000697749742588 0) (8.79925592454e-06 0.00072401962969 0) (2.73996004551e-05 0.000639860360735 0) (3.98203553168e-05 0.000677359189781 0) (3.66692785675e-05 0.000686640644941 1.39867921601e-29) (4.07582815974e-05 0.000736357529373 -1.51163146771e-29) (4.84636282215e-05 0.000745539112638 0) (4.88572759803e-05 0.000667873296726 0) (7.48784549173e-05 0.000704770438668 0) (9.50184598007e-05 0.00059781177873 0) (0.000116323875165 0.000650203304381 0) (0.000127756992682 0.000708747956841 0) (0.000146960553017 0.000786375851905 0) (0.000150594948215 0.000722285640152 0) (0.000172389134943 0.000750477216549 0) (0.000197839978684 0.00081379531488 0) (0.000195427505385 0.000795203276525 0) (0.000196687681489 0.000827806993137 0) (0.000218730948811 0.000919496911555 0) (0.000220662294801 0.000901619799459 0) (0.000224329916715 0.00089926911884 0) (0.000242888404151 0.000983902671978 0) (0.00026688540077 0.00105273327344 1.27985054203e-28) (0.000299926888346 0.000950123064752 0) (0.000360978577909 0.000916459786529 0) (0.000414632817217 0.000914846167804 0) (0.000462215017824 0.000956123623066 0) (0.000546506085069 0.00110673528331 0) (0.00059116707202 0.00113891142387 0) (0.000651597550682 0.00117188769511 0) (0.000694449797927 0.00118316918774 0) (0.000777489442703 0.00126233276188 0) (0.000829140142857 0.00126345832284 0) (0.000928593935626 0.00128347396373 0) (0.00101006149386 0.0012601800721 0) (0.00109692775731 0.00123871708563 0) (0.0011881953002 0.00121762850257 0) (0.00127732263555 0.00118341122726 0) (0.00136365649899 0.0011335854209 0) (0.00143159620154 0.00103038301048 0) (0.00139060307673 0.000817709095628 0) (0.00135068856047 0.000620798102228 0) (0.00137889459746 0.0004945071574 0) (0.00142468518964 0.00035488268014 0) (0.00144401593078 8.78668438827e-05 0) (0.00128560209763 -0.00054883659714 0) (0.000230566707598 0.000527606335871 0) (0.0266691703555 0.0207583902099 0) (0.0492174276492 0.0385708803638 0) (0.0646687507256 0.0570779095105 0) (0.0712953428786 0.0647522883426 0) (0.0794982302596 0.0666060237127 0) (0.0882765084845 0.0686214839159 0) (0.0988876989839 0.0716886985597 0) (0.111265535588 0.0760608234007 0) (0.124846494362 0.0811514872527 0) (0.139178025984 0.086178303961 0) (0.15395072173 0.0906091754111 0) (0.168913793716 0.0941421826536 0) (0.183871880701 0.0965996483158 0) (0.198671184606 0.0978753448288 0) (0.213190533341 0.0979152835563 0) (0.227345721149 0.0966887363955 0) (0.241094054903 0.0941916925868 0) (0.254434306184 0.0904351417098 0) (0.267409854911 0.0854419909499 0) (0.28010444581 0.0792377176593 0) (0.292634158108 0.0718408666836 0) (0.305132978974 0.0632532985532 0) (0.317747502273 0.053454087192 0) (0.330666388682 0.0423943014735 0) (0.344176925041 0.0299791904049 0) (0.358619586663 0.016021979006 0) (0.374089686449 0.000241410893592 0) (0.390777559112 -0.0172924854751 0) (0.408569007337 -0.0368607566201 0) (0.429681105462 -0.0590145827288 0) (0.461557454204 -0.0846028265243 0) (0.509883697726 -0.113217333505 0) (0.556114891175 -0.140103653341 0) (1.25910616443e-06 0.000705725076755 0) (9.91388922463e-06 0.000730408461728 0) (1.74484126329e-05 0.000663751646739 0) (3.24060973772e-05 0.000688554057209 0) (4.0584271265e-05 0.000696134591605 0) (4.26108480093e-05 0.000734076280096 0) (4.6550548578e-05 0.000751732983292 0) (4.90350378313e-05 0.000668842959224 0) (6.30871388466e-05 0.000716743824885 0) (7.45556869379e-05 0.000620224449046 0) (9.65540326248e-05 0.000663309886042 0) (0.000108311100614 0.000722054995551 0) (0.000123020708405 0.000794555417701 0) (0.000126267888474 0.000739114571121 0) (0.000144976954631 0.000769578964809 0) (0.000164306951597 0.000829824567157 0) (0.000168159238243 0.000810215150668 0) (0.000177276980906 0.000841337990253 0) (0.000192890995055 0.000929952708584 0) (0.000183595067616 0.000897148244075 0) (0.000199103232605 0.000918154169138 0) (0.000228583919906 0.00100174912275 0) (0.000230633942906 0.00104711163036 -1.20321363271e-28) (0.000263649228712 0.00105992208326 0) (0.000299156098345 0.000961866297786 0) (0.000359763805151 0.000962914423239 0) (0.000406622144898 0.00100583895937 0) (0.000480820928083 0.00116351348341 0) (0.000529897664747 0.00120039525411 0) (0.000598412347872 0.00123043522611 0) (0.000653227802313 0.00124255523827 0) (0.000704315303077 0.0012871097837 0) (0.000789510184515 0.00137567373746 0) (0.000870274909151 0.00138366138128 0) (0.000954969403212 0.00135288884789 0) (0.00104550774709 0.00132523650249 0) (0.00114420981843 0.00130278523883 0) (0.00123475794849 0.00126380025701 0) (0.00133316161821 0.00120308616817 0) (0.00133204371299 0.00101557930765 0) (0.00128761994277 0.000790240360063 0) (0.00129790865871 0.000636191430728 0) (0.00136130059643 0.000541015550689 0) (0.0014675367343 0.000443129973691 0) (0.0018414032493 0.000337391681276 0) (0.000658259822237 0.000728022524081 0) (0.013692502171 0.0273019996285 0) (0.0463132891287 0.0407610320524 0) (0.0603864982065 0.0549035892361 0) (0.0723075252015 0.0668300273358 0) (0.0796071759514 0.0718955473403 0) (0.0888135739407 0.0750592223803 0) (0.0989579349239 0.0789279393539 0) (0.111032023466 0.0838045119758 0) (0.12447066472 0.0895788063471 0) (0.138812907033 0.0955430649893 0) (0.153658741165 0.101053223541 0) (0.168722756102 0.105693776068 0) (0.183776746781 0.109226073466 0) (0.198651414241 0.111515844581 0) (0.213225143476 0.112497204676 0) (0.227423100557 0.112154929735 0) (0.241218829801 0.110507187698 0) (0.254633048541 0.107601618489 0) (0.267727621788 0.10350269731 0) (0.280599112429 0.0982821613368 0) (0.293369807148 0.0920053107188 0) (0.306179000559 0.0847185898378 0) (0.319172235409 0.0764403090749 0) (0.332502181059 0.0671555007565 0) (0.346370240007 0.056816877155 0) (0.361100167386 0.0453534356566 0) (0.377109162715 0.0326689885935 0) (0.394603782975 0.0186445729996 0) (0.413282084881 0.0031550311949 0) (0.433555713867 -0.0135721265673 0) (0.458249423723 -0.0315185106762 0) (0.493533076082 -0.0513462808601 0) (0.542288816737 -0.0716992604575 0) (0.585920976743 -0.0887313380567 0) (7.89817995333e-07 0.000720596091417 0) (6.83756167419e-06 0.000730461403715 0) (6.22894230026e-06 0.000676331452326 0) (2.35809151094e-05 0.000700836113827 0) (3.81959508875e-05 0.000700954092433 0) (3.84374299867e-05 0.000731031429991 0) (4.06174545331e-05 0.000755990635929 0) (4.36109747729e-05 0.000671798756168 0) (5.34730054423e-05 0.000712412328477 0) (6.18201483441e-05 0.000641914369747 0) (7.91821143567e-05 0.000675181211473 0) (8.95988483335e-05 0.000733813317986 0) (0.000100011193575 0.000799542841328 0) (0.00010280842071 0.000753836971841 0) (0.000119495088682 0.000785454476825 0) (0.000134471676645 0.000839415467769 0) (0.000142583301838 0.000824517594552 0) (0.000155886451321 0.000852700112742 0) (0.000169486494719 0.000933245206819 0) (0.000162490113576 0.00090541608819 0) (0.000189617341692 0.000984567361253 0) (0.000202941588568 0.00101687746511 0) (0.000204776078122 0.00105484383202 0) (0.000218708462309 0.00106117924365 0) (0.000254771942942 0.00105356456215 0) (0.000306015668427 0.00106644083905 0) (0.00033894754234 0.00106677651293 0) (0.000402987481101 0.00121437937134 0) (0.000467092357947 0.00128330338754 0) (0.00053527708661 0.00129571283298 0) (0.000593766247177 0.00130542439271 0) (0.000647282541779 0.00133858251507 0) (0.000721214068934 0.00142643362981 0) (0.000800351388372 0.00147357078412 0) (0.000897067995256 0.00147222932356 0) (0.000998360631947 0.00144792629332 0) (0.00109990124652 0.00140571396424 0) (0.00119159042367 0.00134339650445 0) (0.0012641580319 0.00122902118166 0) (0.00123055869485 0.000992002584513 0) (0.00122276809711 0.000793846132668 0) (0.00125454851607 0.00066914488699 0) (0.0013137174916 0.000587608807405 0) (0.00136067452685 0.000517202350023 0) (0.00117307573909 0.000520485321824 0) (0.00168284903546 0.00656983916943 0) (0.0464871330399 0.0486749217642 0) (0.0546058511383 0.0581952369926 0) (0.0689772492832 0.0666286630068 0) (0.0786006132745 0.0755681113026 0) (0.0871249614278 0.0803931443756 0) (0.0976198114879 0.0851148986122 0) (0.109215328705 0.0906710226294 0) (0.12246457038 0.0970678929597 0) (0.136678951755 0.103883042675 0) (0.151502630272 0.110424006227 0) (0.166569639599 0.116173559795 0) (0.181632651205 0.120808917034 0) (0.196499887224 0.124155027807 0) (0.211044743723 0.126131192232 0) (0.225194577436 0.12672407252 0) (0.238929451818 0.12597005237 0) (0.252277127878 0.123938974877 0) (0.265305403652 0.120722474672 0) (0.27811178234 0.116418097019 0) (0.290814935856 0.111116568956 0) (0.303548648925 0.10489013276 0) (0.316458873129 0.0977861244649 0) (0.329699961871 0.0898266307974 0) (0.343439451344 0.0810112149222 0) (0.357897631817 0.0713244615975 0) (0.373411704012 0.0607537832904 0) (0.390403775408 0.0493087669413 0) (0.409117376408 0.0370373764169 0) (0.429382806496 0.0239808530054 0) (0.451349014222 0.0101165716064 0) (0.47764589641 -0.00449505872441 0) (0.514048717274 -0.0190288961394 0) (0.561403766019 -0.0319123523777 0) (0.601904262204 -0.0410828569896 0) (-1.58071858239e-06 0.000726670135136 0) (9.02013114759e-07 0.000728975524363 0) (-8.89470912923e-07 0.000682487002882 0) (1.3822619568e-05 0.000744838330591 0) (2.55186923264e-05 0.00070737794371 0) (2.78597127917e-05 0.000732502752634 0) (2.93607603586e-05 0.000759141943793 0) (3.35993323555e-05 0.000684724555702 0) (4.50079779711e-05 0.000722965729888 0) (5.24110932013e-05 0.000658128075618 0) (6.40017297277e-05 0.000683127376481 0) (7.15754189889e-05 0.000743373731223 0) (7.7566188059e-05 0.00080102305194 0) (7.9680331025e-05 0.000766807978414 0) (9.43408243277e-05 0.000799236631685 0) (0.000105844504262 0.000846310968244 0) (0.000117347479426 0.000842109072361 0) (0.000132391467426 0.000863599260372 0) (0.00014540813349 0.000936617850065 0) (0.00014507247608 0.000909973034375 0) (0.000164177722052 0.00098830503162 0) (0.00016355423625 0.00100774251174 0) (0.000162221208062 0.00106818915977 0) (0.000172668318304 0.00108131088055 0) (0.000198804606528 0.0010451087948 0) (0.000229408253482 0.00105917210228 0) (0.000260578984475 0.00112568528018 0) (0.000310368583739 0.00127061690519 0) (0.000389425393648 0.00136569758088 0) (0.000457998405957 0.00135796813991 0) (0.000518576972574 0.00137063146574 0) (0.0005814580657 0.00140684384811 0) (0.000640500732322 0.00146014411116 0) (0.000728562169668 0.00155023542205 0) (0.00079986903603 0.00152928481178 0) (0.000922051547266 0.00154905208057 0) (0.00104069392218 0.00151730064466 0) (0.00113998369403 0.00142012004015 0) (0.00118234599916 0.00123431625094 0) (0.0011663480753 0.00099321642902 0) (0.00119426765511 0.000827011451311 0) (0.00125978404038 0.000734416550133 0) (0.00139736814358 0.000715173233972 0) (0.00173801652737 0.00065338101116 0) (5.26138148237e-05 0.00303916932312 0) (0.0393729218108 0.046714503823 0) (0.0542272761918 0.067163772961 0) (0.0627647076147 0.0701340321095 0) (0.0758544416417 0.0772807234846 0) (0.0845160161012 0.0849807575319 0) (0.094466399603 0.0904012712381 0) (0.106122772329 0.0966225004384 0) (0.11891211405 0.103627156846 0) (0.132984960454 0.111180224816 0) (0.147679782628 0.118677813318 0) (0.162702962076 0.125508501385 0) (0.177727314315 0.131261464644 0) (0.192553970311 0.135697979585 0) (0.207038411668 0.138709862339 0) (0.221106088771 0.140276209654 0) (0.234737037609 0.140439308618 0) (0.247961081477 0.139284729913 0) (0.26084721304 0.136923184597 0) (0.273492959038 0.133475358061 0) (0.28601410303 0.129057456743 0) (0.29853846477 0.123772137761 0) (0.311203772117 0.117703798629 0) (0.324158077019 0.110919325858 0) (0.337558232723 0.103472777972 0) (0.351573674926 0.0954091725114 0) (0.36641870404 0.0867693154706 0) (0.382402699554 0.0776039224389 0) (0.399896096733 0.0679914664694 0) (0.419110103357 0.058049065417 0) (0.439922782114 0.0478912327006 0) (0.462551983697 0.0375936940239 0) (0.489353164413 0.0273782364184 0) (0.524951038927 0.0178658027834 0) (0.569495157452 0.0104477575274 0) (0.606801764428 0.00718079141611 0) (-9.39670933028e-07 0.000726905533326 0) (-2.93358204213e-06 0.000727886326365 0) (-4.4326703129e-06 0.000692888918325 0) (4.22509343441e-06 0.000747635139043 0) (7.87482453027e-06 0.000714861779981 0) (1.32633206971e-05 0.000737576304954 0) (1.53591282675e-05 0.00076086152094 0) (2.13477239144e-05 0.000699404891823 0) (3.12078650079e-05 0.000728494004813 0) (3.96174722964e-05 0.000672280581587 0) (4.86321259008e-05 0.000686845363083 0) (5.26459863805e-05 0.000750396968494 0) (5.48620163332e-05 0.000798331286078 0) (5.72782509666e-05 0.000777438844524 0) (6.88888700893e-05 0.000810428954902 0) (7.61273747978e-05 0.000851485100745 0) (9.1211148834e-05 0.000859633549858 0) (0.00010737322319 0.000872690257284 0) (0.000116288640184 0.000940973065403 0) (0.000118953929112 0.000921686610163 0) (0.000129439146897 0.000990842237555 0) (0.000125311161154 0.000996447786155 0) (0.000124356264262 0.0010363446654 0) (0.000127521210504 0.00111864882344 0) (0.000146027975277 0.00109210883164 0) (0.000182051226352 0.00108491651902 0) (0.000192021113983 0.00112091818175 0) (0.000225825372223 0.00131666937445 0) (0.000301349575037 0.00145415327185 0) (0.00037203627672 0.00142015287154 0) (0.000442062773009 0.00142903209666 0) (0.00051681033367 0.00150189520939 0) (0.000576210278463 0.00156367081111 0) (0.000648978742797 0.00163598080526 0) (0.000731599454391 0.00164695380019 0) (0.000849524382974 0.00166584640168 0) (0.000971575436522 0.00162941722398 0) (0.00107926456899 0.00149507652247 0) (0.00111067864947 0.00124774413692 0) (0.0011209090254 0.00101656568687 0) (0.00117435543284 0.000887286674268 0) (0.00127097899952 0.000869311728085 -5.04709174248e-29) (0.00168930602046 0.00100320403603 0) (0.000399130955872 0.00112592097099 0) (0.00670824212754 0.0344411902132 0) (0.0562045710641 0.0687303572942 0) (0.0576940006017 0.0787325140641 0) (0.0701248750334 0.0798990512908 0) (0.0812825245314 0.0876502845586 0) (0.0904076892111 0.0950884646005 0) (0.101643962993 0.10165731104 0) (0.114228909238 0.109282251696 0) (0.127880137218 0.117464240615 0) (0.142440214939 0.125814526083 0) (0.157334289736 0.133675396104 0) (0.172305034878 0.140540628857 0) (0.187074909145 0.14609496598 0) (0.201497657093 0.150182134599 0) (0.215480460268 0.152762376992 0) (0.229000307502 0.153874886543 0) (0.24208323685 0.153613233007 0) (0.25479635262 0.15210346225 0) (0.267234437898 0.149485373493 0) (0.279509558676 0.145897857013 0) (0.291743000001 0.141468068025 0) (0.304061919475 0.136306394779 0) (0.316599630877 0.130505626342 0) (0.329497218656 0.124143462941 0) (0.342902830687 0.117286607449 0) (0.356974570496 0.109993576115 0) (0.371906537865 0.102319906094 0) (0.387969819636 0.0943345425155 0) (0.405483382063 0.0861408546405 0) (0.424628960263 0.0778820442132 0) (0.445295230212 0.0697020509092 0) (0.46762464397 0.0617500448032 0) (0.49356643309 0.0544263181939 0) (0.527121442252 0.0487308588258 0) (0.568485214564 0.0461961490622 0) (0.603086844563 0.0475453665077 0) (-1.15526072047e-06 0.000726823778553 0) (-2.83577408799e-06 0.000696292470772 0) (-5.54635021317e-06 0.000705218804456 0) (-2.08579563182e-06 0.00074177871941 0) (-3.1922384519e-06 0.000718563236574 0) (-1.40866694866e-07 0.000742005851172 0) (7.17710957196e-07 0.000761655179129 0) (6.69251894298e-06 0.00071220978629 0) (1.30359399576e-05 0.000731461274699 0) (2.35636784503e-05 0.000689974085085 0) (3.2169086886e-05 0.000686425746175 0) (3.18462339907e-05 0.000754147373996 0) (3.18777511748e-05 0.000795206960852 0) (3.68419504691e-05 0.00078917501869 0) (4.44986750412e-05 0.000817237451984 0) (4.67847411244e-05 0.000858574152866 0) (6.30041995843e-05 0.000889034107112 0) (7.86370890384e-05 0.000880155913452 0) (8.29685053716e-05 0.000940945584949 0) (8.61333405583e-05 0.000935513066892 0) (9.24030664444e-05 0.000978618406242 0) (9.02133395773e-05 0.00101139852373 0) (9.89836502606e-05 0.00104491275912 0) (0.000100599669869 0.00108109050445 0) (0.00011313099702 0.00113964450034 0) (0.000140313574185 0.001140786073 0) (0.000144674887801 0.00113427965903 0) (0.000158211896384 0.00139704399848 0) (0.000190776129891 0.00152708162249 0) (0.000272460124564 0.001511823371 0) (0.000354832746401 0.00149497289113 0) (0.000428257332884 0.00154559413318 0) (0.000480126454223 0.00159028256743 0) (0.000560080725895 0.00172018485907 0) (0.000642143885166 0.00175415309639 0) (0.000754471619916 0.00177771622723 0) (0.00089118844011 0.00175475152802 0) (0.00101200814678 0.00158115901672 0) (0.00104849242705 0.00127855675305 0) (0.00108615624416 0.00106300699179 0) (0.00115000815318 0.000980475722867 0) (0.00139505394839 0.00111666006639 5.39472936512e-29) (0.00163495089627 0.00113083382926 0) (-0.000448602617742 0.00446067842207 0) (0.0434211312048 0.0652940707354 0) (0.0583553861534 0.086203983418 0) (0.0630923608969 0.0869879494334 0) (0.0760994521816 0.0896992702518 0) (0.0859917383203 0.0981197387625 0) (0.09624277373 0.105963375845 0) (0.108460106854 0.113913603657 0) (0.121758806469 0.122763537182 0) (0.135956507548 0.131840295101 0) (0.15071643593 0.140668072897 0) (0.165568767927 0.148624504302 -5.97573488632e-29) (0.180286353579 0.1553147832 5.78895890003e-29) (0.194649795691 0.160516090828 0) (0.20856466164 0.164153284237 0) (0.221987922648 0.166252657745 0) (0.234940686445 0.166908024245 0) (0.247483734611 0.166254857644 0) (0.259708109707 0.164448154388 0) (0.271721652128 0.161645140641 0) (0.28364065921 0.157993361737 0) (0.295584540198 0.153623917923 0) (0.307674814659 0.148649931934 0) (0.320036840062 0.143168489579 0) (0.332802156423 0.13726478174 0) (0.346108671551 0.131017137782 0) (0.360102904124 0.124501451683 0) (0.374959929213 0.117798365677 0) (0.390917045648 0.111009734888 0) (0.408254195986 0.104276000162 0) (0.427141780046 0.0977702729337 0) (0.447481356706 0.0916516405239 0) (0.469298835791 0.0860739897806 0) (0.494076417216 0.0814333774791 0) (0.525220585774 0.0787083427831 0) (0.563183535901 0.0792797983508 0) (0.595169733845 0.0835424985529 0) (-4.1016219405e-06 0.000727479081062 0) (-2.13819187754e-06 0.000698020492721 0) (-3.94820531944e-06 0.000707433789421 0) (-5.71554355656e-06 0.000736879002963 0) (-8.51184393753e-06 0.00071809722785 0) (-1.02535578982e-05 0.000742047038743 0) (-1.26506377873e-05 0.000760991456874 0) (-8.54212181473e-06 0.000722265783368 0) (-6.72092215645e-06 0.000731856476099 0) (4.64448136265e-06 0.000709595453982 0) (1.50645657939e-05 0.000683748393407 0) (1.06140783868e-05 0.000752292025604 0) (7.55006677719e-06 0.000797763160645 0) (1.62807612545e-05 0.000798191550648 0) (2.26281216456e-05 0.00081668337824 0) (2.01261738119e-05 0.000862832066028 0) (2.98330183285e-05 0.000912920672923 0) (4.16619156052e-05 0.0008900514553 0) (4.56226033057e-05 0.000933395274198 0) (5.11011468762e-05 0.000948139436143 0) (6.09651900115e-05 0.000983867110086 0) (6.70897690288e-05 0.00101111189754 -8.26126598992e-29) (7.73605984766e-05 0.00108733604069 8.75566785525e-29) (7.93210493954e-05 0.00111621803787 0) (8.08486461133e-05 0.00115967173064 0) (8.97752693648e-05 0.00113075275767 0) (0.000105692345927 0.00113701192263 0) (9.08134565092e-05 0.00132564897184 0) (8.37142832517e-05 0.00158689935919 0) (0.000148783431027 0.00160882109783 0) (0.000240702316775 0.00157133450232 0) (0.000328449728828 0.00159934693971 0) (0.000404750664766 0.00167182056818 0) (0.000467148593311 0.0017849093548 0) (0.000536064935486 0.00187145742928 0) (0.000631483953377 0.00188652883793 0) (0.000786542838269 0.00189117260225 0) (0.000930338934807 0.00168770341279 0) (0.00098856268074 0.00133080025627 0) (0.00104390996645 0.00112985106722 0) (0.00118053518634 0.00115938292053 0) (0.00162699421958 0.00132722481729 0) (-7.64226250624e-05 0.000492875098188 0) (0.00325719752889 0.0394672528564 0) (0.0611613214278 0.0878386688393 0) (0.0580778330546 0.0971801982805 0) (0.069098905661 0.0946684192842 0) (0.0806726908978 0.10001026683 -1.207064006e-28) (0.0904851358316 0.108942634424 0) (0.101852637652 0.117661785378 0) (0.114753072483 0.1269400244 0) (0.128554578842 0.136772422952 0) (0.143018586574 0.146461272163 0) (0.15774783029 0.155491421351 0) (0.172369475541 0.163327304155 0) (0.186690339849 0.169683015815 0) (0.20055177582 0.174426301961 0) (0.213906812957 0.177558765082 0) (0.226755833347 0.179166382083 0) (0.239153697687 0.179388371895 0) (0.251184351491 0.178391012028 0) (0.262951659459 0.176347316024 0) (0.274567576733 0.173422778907 0) (0.286146391754 0.169767232806 0) (0.29780173553 0.165511919022 0) (0.309647116025 0.160770818704 0) (0.321798299329 0.155644573406 0) (0.334375871156 0.150225740935 0) (0.347505717572 0.144604279157 0) (0.361319916452 0.138872367593 0) (0.375970449591 0.13313127348 0) (0.391656778038 0.127505303309 0) (0.408617513109 0.122155725169 0) (0.427009492902 0.117272264896 0) (0.446743216065 0.113030013662 0) (0.467742658077 0.109594468649 0) (0.491104618897 0.107324304832 0) (0.519793598406 0.107053576896 0) (0.55460057563 0.109900333881 0) (0.584234308504 0.116050681261 0) (-5.44926460204e-06 0.000724992599923 0) (-3.60203193782e-06 0.000698594698944 0) (-6.00282019145e-06 0.000706404909117 0) (-9.11236165562e-06 0.000733911711953 0) (-1.26168792063e-05 0.000714903170297 0) (-1.85056452889e-05 0.000737299467334 0) (-2.44161886173e-05 0.000758206460436 0) (-2.22009200089e-05 0.000728134374409 0) (-2.45741122398e-05 0.000728587930793 0) (-1.62537669122e-05 0.000732620949831 0) (-3.05776322304e-06 0.000683076811176 0) (-9.25966126444e-06 0.000744316673122 0) (-1.78204074118e-05 0.000799119511107 0) (-7.87411345132e-06 0.000816499986547 0) (1.60356995552e-07 0.000811361857057 0) (-5.42027076723e-06 0.00086092092026 0) (-5.01795316589e-06 0.000921751788328 0) (-3.77989540303e-08 0.000898987532072 0) (4.62368162723e-06 0.000940177745608 0) (1.49671095374e-05 0.000959544908096 0) (2.33889620446e-05 0.000992133404006 0) (3.84354073866e-05 0.00101980509464 0) (5.02582366965e-05 0.00105172093171 0) (4.74233227447e-05 0.00108825346893 0) (4.51365177528e-05 0.00113457283888 0) (5.33048727002e-05 0.00117921822084 0) (7.26493507748e-05 0.00115726138207 0) (6.17731562576e-05 0.0012967935269 0) (1.32634933047e-05 0.00161430177395 0) (2.16484858031e-05 0.00168700066511 0) (0.000106138698403 0.00170667354618 0) (0.000204979222447 0.00169105534709 0) (0.000294014232495 0.0017243076606 0) (0.000359330868994 0.00177842729154 0) (0.000424892165266 0.00193286931712 0) (0.000500059534926 0.00202822962217 0) (0.000637039961506 0.00204573719779 0) (0.000827620492407 0.00182843737267 0) (0.000916922422831 0.00142074831987 0) (0.00100829494908 0.00126474105739 0) (0.0013469150331 0.00152276888785 0) (0.00241087859726 0.00185979759086 0) (-0.00130264884421 0.00428354344715 0) (0.0330421211781 0.0794612916579 0) (0.0611735987739 0.106598018711 0) (0.0608360014065 0.10429644091 0) (0.0742854704402 0.103162848455 0) (0.0843309660756 0.110715047836 1.09030173194e-28) (0.0948497338825 0.120256122435 0) (0.107047791514 0.130094177733 -8.12940658654e-29) (0.120407945724 0.140501513452 0) (0.134500074146 0.151058419539 0) (0.148996645921 0.161092222044 0) (0.163518714244 0.170095282111 0) (0.177772969403 0.177642987697 0) (0.191605921928 0.183551856348 0) (0.204916217813 0.187775919442 0) (0.217697649991 0.190385639194 0) (0.229985351829 0.191517500681 0) (0.241857470157 0.191345465185 0) (0.253411274113 0.190056095823 0) (0.264755277893 0.187831583461 0) (0.275999755533 0.184839326196 0) (0.287253295587 0.181227591465 0) (0.298621457372 0.177125704294 0) (0.310208034619 0.172647351033 0) (0.322117436923 0.167895550391 0) (0.334457026971 0.1629682466 0) (0.347337524794 0.157963644825 0) (0.360872643022 0.152984818901 0) (0.375187912802 0.148145733126 0) (0.390444058255 0.143582600337 0) (0.406839228762 0.139465461625 0) (0.424514353332 0.1359909738 0) (0.443383743196 0.133346125474 0) (0.463289115632 0.131706674412 0) (0.485031620454 0.131390103582 0) (0.511275596364 0.133087561033 0) (0.543194074168 0.137696654334 0) (0.570759721184 0.145274960064 0) (-6.54374504234e-06 0.000719237922555 0) (-6.91359470643e-06 0.000697391731059 0) (-9.46165365804e-06 0.000702179467001 0) (-1.29811795503e-05 0.000729836051619 0) (-1.84888776701e-05 0.00070959970121 0) (-2.7092084261e-05 0.000727637889552 0) (-3.61785247533e-05 0.000753498773312 -1.14527887626e-29) (-3.35198645283e-05 0.000729718863027 1.0890131313e-29) (-3.47849583485e-05 0.000720867694951 0) (-3.77560505353e-05 0.000760173351994 0) (-2.5430913095e-05 0.000687778325135 0) (-2.82776541648e-05 0.000733563855349 0) (-3.87544256119e-05 0.00079397993987 0) (-3.66356015752e-05 0.00084419159197 0) (-2.94481211576e-05 0.000808384378773 0) (-3.32372106297e-05 0.000857234228553 0) (-3.88012723525e-05 0.000920101977428 0) (-3.91282219435e-05 0.000902788997649 0) (-3.84746042244e-05 0.000947920842149 0) (-2.5277160342e-05 0.000976212624588 0) (-1.50856953022e-05 0.000992929335737 0) (-8.2497677489e-06 0.00106805924049 0) (3.88732453445e-06 0.00106571453773 0) (1.13194351968e-05 0.00109705293754 0) (2.04705432912e-05 0.00113879243761 0) (2.87321571988e-05 0.00116829717963 0) (4.95376655932e-05 0.0011812973427 0) (5.69078381172e-05 0.00125015794261 0) (-1.27811039537e-05 0.00153508606086 0) (-7.93356570285e-05 0.00173883144074 0) (-3.09585061048e-05 0.00178780665003 0) (5.72620196532e-05 0.00183184320319 0) (0.000143514093849 0.00184691293615 0) (0.000232585619206 0.0019140548801 0) (0.00030032782819 0.00192881666615 0) (0.000367432050594 0.00209539830565 0) (0.00044197517631 0.00219412477382 0) (0.000676569108766 0.00206982831572 0) (0.000761456121233 0.00149741533144 0) (0.000896685130903 0.00141020613665 0) (0.00115290558739 0.00180668169723 0) (-0.000162671175303 0.00152090707722 0) (-0.000504237531438 0.0100441660651 0) (0.0661611245601 0.103524356304 0) (0.0573835869325 0.118218330787 0) (0.0656132197731 0.110388733748 0) (0.078076588659 0.112663160727 0) (0.0875662733911 0.121727724502 0) (0.0989615247457 0.132108045029 0) (0.111687546568 0.143082109219 7.66909726686e-29) (0.125336510699 0.154374810996 0) (0.139520540048 0.165409735003 -5.97268593517e-29) (0.153868929308 0.175551943973 0) (0.168055961625 0.184345008068 0) (0.18185308968 0.191481582059 0) (0.195149815476 0.196872810319 0) (0.207894621248 0.200551658926 0) (0.220114284078 0.202647244992 0) (0.231869561012 0.203336180434 0) (0.243252777875 0.202816815893 0) (0.254366906435 0.201287192673 0) (0.26531935057 0.198932168162 0) (0.276214787838 0.195916877095 0) (0.287153415408 0.192385655588 0) (0.298230559526 0.188464454841 0) (0.309538117509 0.184265300162 0) (0.32116665902 0.179891662495 0) (0.333207511523 0.175444032266 0) (0.345753237482 0.171025085932 0) (0.35889668293 0.166744237845 0) (0.372736594716 0.16272313214 0) (0.387398245608 0.159104956275 0) (0.403044397378 0.156064186912 0) (0.419801898685 0.153800792617 0) (0.437589067091 0.15250850944 0) (0.456186042376 0.152364128608 0) (0.476167058949 0.153637923378 0) (0.49998909151 0.156895865981 0) (0.529223676709 0.162873512436 0) (0.554939412473 0.171556793013 0) (-7.33576126107e-06 0.000711361577246 0) (-9.5966379605e-06 0.000694144501006 0) (-1.24895103792e-05 0.000703539489632 0) (-1.83688892151e-05 0.000723250844477 0) (-2.77910297176e-05 0.000702826476482 0) (-3.7030943746e-05 0.000715882817072 0) (-4.8120670635e-05 0.00074725317423 0) (-4.71923597299e-05 0.000739643362946 0) (-4.38215620755e-05 0.000708663333976 0) (-5.59724895833e-05 0.000749184640781 0) (-4.86808216507e-05 0.000697332005439 0) (-4.66796688519e-05 0.000723530485219 0) (-5.68687349415e-05 0.000785170443697 0) (-6.54838777705e-05 0.000841766264545 0) (-6.33872024258e-05 0.00080914524333 0) (-6.41226546171e-05 0.000854546856039 0) (-7.21989707251e-05 0.000911191935724 0) (-7.36076276595e-05 0.000902631001064 0) (-7.47700313555e-05 0.000947879327962 0) (-7.0547981383e-05 0.00100931341628 0) (-5.72254730898e-05 0.000993504158562 0) (-5.83416116959e-05 0.00106093847474 0) (-5.22319246566e-05 0.00107713695355 0) (-3.65739963131e-05 0.00111522658325 0) (-2.16662078793e-05 0.00115612575496 0) (-5.33324849126e-06 0.00118883151742 0) (2.30287985264e-05 0.00120727865442 0) (5.06847716942e-05 0.00124669427153 0) (1.43937982535e-05 0.00137400333465 0) (-0.000107725974647 0.00175384593364 0) (-0.000147787539979 0.001852488921 0) (-0.000102296556221 0.00191484205365 0) (-2.21205030943e-05 0.00189244614412 0) (6.61561619258e-05 0.00201510535371 0) (0.000145454722688 0.00208095860718 0) (0.000214528348163 0.00213084457461 0) (0.000259618159226 0.00222941974392 0) (0.000386570405951 0.00235506943363 0) (0.000641967686 0.00159595529038 0) (0.0010293510355 0.00165719822938 0) (0.00179485601081 0.00183162349326 0) (-0.00164279251078 0.000859041904809 0) (0.017661634689 0.0768880439574 0) (0.0688323628547 0.123325545815 0) (0.0564323452884 0.124624915831 0) (0.0701957704123 0.117140450592 0) (0.0806989216257 0.122841428944 0) (0.0905683008896 0.133043277901 0) (0.102653133074 0.144451123239 0) (0.1156876629 0.156429692203 0) (0.12947552859 0.168367241876 0) (0.143581890369 0.179654856183 5.76126638824e-29) (0.157651713728 0.189707663909 -4.94241183711e-29) (0.171417879724 0.198152219381 0) (0.184707366584 0.204794258056 0) (0.197451888998 0.209631080312 0) (0.209640658567 0.212764841081 0) (0.22132554022 0.214372216062 0) (0.23258441858 0.214659608113 0) (0.243516409919 0.213840559328 0) (0.254224435926 0.212117524942 0) (0.26481062628 0.209673154833 0) (0.275371140562 0.20666721051 0) (0.285995525255 0.203238012287 0) (0.296766836431 0.199506343673 0) (0.307763045481 0.195580588762 0) (0.31905887211 0.191562325051 0) (0.33072774575 0.187551982721 0) (0.342842509553 0.183654151807 0) (0.355474307631 0.179982365002 0) (0.368696059879 0.176664310937 0) (0.382601071182 0.173849498354 0) (0.397321070146 0.171717327979 0) (0.41297108797 0.170471941318 0) (0.429476901144 0.170312556382 0) (0.446578204653 0.17141328189 0) (0.464676291039 0.173999420987 0) (0.486086505621 0.178530826247 0) (0.51279360418 0.185615241711 0) (0.536839924676 0.195184484728 0) (-8.0174230051e-06 0.000702759566116 0) (-9.14169008071e-06 0.000689456964941 0) (-1.39171075852e-05 0.000705207013314 0) (-2.71341471475e-05 0.0007125861367 0) (-3.98848863145e-05 0.000694949903856 0) (-4.79003624015e-05 0.000708455423294 0) (-5.89825374802e-05 0.000738157134056 0) (-6.55457179302e-05 0.000748624204774 0) (-6.13890154027e-05 0.000705743153142 0) (-7.31210282064e-05 0.000735891316885 0) (-7.01866886918e-05 0.000713271672158 0) (-6.59402550844e-05 0.000713474564949 0) (-7.86240905581e-05 0.000775454993005 0) (-9.31002929704e-05 0.000826853800344 0) (-9.47965212662e-05 0.000810636937092 0) (-9.7500807289e-05 0.000851153407065 0) (-0.000106690819929 0.000896091873832 0) (-0.000105976267025 0.000904999192793 0) (-0.000105917652067 0.000941094807192 0) (-0.000115191268053 0.00100551205516 0) (-0.000108718064208 0.00100178006401 0) (-0.000108422501588 0.00105557689309 0) (-0.000102015360302 0.00108773420277 0) (-9.09324648993e-05 0.00114114279328 6.92344255467e-29) (-7.97453106718e-05 0.00116461772078 -6.67968255251e-29) (-5.95509987144e-05 0.00121121045122 0) (-2.6318853523e-05 0.00123621396057 0) (1.13357801415e-05 0.00126634285511 0) (3.29272452024e-05 0.00130451185158 0) (-3.53553217456e-05 0.00150036421458 0) (-0.000192663616797 0.00189590111846 0) (-0.000224963440436 0.00191118574536 0) (-0.000185471265561 0.0020504457882 0) (-0.0001081737053 0.00202992868543 0) (-3.29305242239e-05 0.00209575422422 0) (4.97005950619e-05 0.00218834057603 0) (0.000128668924432 0.00226213468317 0) (0.00018148155781 0.00235227523823 0) (0.000591499533832 0.00256828604625 0) (0.000979755267486 0.00200998235739 0) (0.00236348448233 0.00258734678495 0) (-0.00195659327071 0.00635420491787 0) (0.0395429964565 0.108883661808 0) (0.0622608065711 0.13845176616 0) (0.0580276846064 0.129163491515 0) (0.0736161856335 0.125098468736 0) (0.0825978182067 0.133435052895 0) (0.0933027333889 0.144690105779 0) (0.105796888741 0.157173424299 0) (0.118999956164 0.169959486219 0) (0.13278858779 0.18232172378 0) (0.146686083125 0.19366326253 0) (0.160389500081 0.203469379607 4.81039595702e-29) (0.173683827079 0.21146621931 0) (0.186445746518 0.217563411348 3.71575856186e-29) (0.198644814457 0.221835132076 0) (0.210301888549 0.224441672611 0) (0.221486566108 0.225596378777 0) (0.232286608663 0.225525967587 0) (0.24280224233 0.224451496822 0) (0.253132126202 0.222574398467 0) (0.263370131628 0.220071584582 0) (0.273601705048 0.217095251981 0) (0.283903887373 0.213776214469 0) (0.294345679203 0.210228813012 0) (0.304989323499 0.206556483772 0) (0.315891920141 0.202857489293 0) (0.327107361238 0.199230646077 0) (0.338687387836 0.1957807208 0) (0.35068069426 0.192623280646 0) (0.363135145818 0.189889568114 0) (0.376115041612 0.187733005092 0) (0.389725282914 0.186336464332 0) (0.404072979073 0.185908322565 0) (0.419097449347 0.186654870857 0) (0.434516407679 0.188753950232 0) (0.450599355193 0.192406224893 0) (0.469576598749 0.197999278546 0) (0.493882564242 0.206035705577 0) (0.516440791862 0.216376383821 0) (-7.91802222693e-06 0.000693410691688 0) (-8.4015247235e-06 0.000693614527169 0) (-1.80375772393e-05 0.000693909452346 0) (-3.69870554886e-05 0.000688518267625 0) (-5.0101490512e-05 0.000685853205477 0) (-5.75552083525e-05 0.000699777280409 0) (-6.90869686574e-05 0.000725414679159 0) (-8.22381963962e-05 0.000741914705336 -8.49871117604e-29) (-8.24857258539e-05 0.000710561751968 0) (-9.23994181857e-05 0.000723860372284 0) (-9.43798013874e-05 0.000724830056318 0) (-8.72916863642e-05 0.000702993289213 0) (-0.000103754190282 0.000762085552452 0) (-0.000122222150583 0.000810484821847 0) (-0.000124084677631 0.000810664098388 0) (-0.000129999286017 0.000840737301043 0) (-0.000146389823865 0.000892194506301 0) (-0.00014353732923 0.000907093816886 0) (-0.000142319617553 0.000930753352129 0) (-0.000158066881487 0.0009892358947 0) (-0.000157450254964 0.00100734199925 0) (-0.000160711636995 0.00105551368094 0) (-0.000154813069085 0.00109724984956 0) (-0.00014560053384 0.00113328611438 0) (-0.000139841601321 0.00117882424774 0) (-0.000128295444881 0.00125921506276 0) (-0.000102796035906 0.00127882334394 0) (-6.55431133176e-05 0.00131856320773 0) (-1.69181854924e-05 0.00135618666252 0) (7.54643950941e-07 0.00138424808801 0) (-8.23059107792e-05 0.00159878787281 0) (-0.00022953892114 0.00200390506482 0) (-0.000282471651759 0.00207805723278 0) (-0.000270586481173 0.00217679707495 0) (-0.0001901079394 0.00224097076417 0) (-9.55309288716e-05 0.00231139134432 0) (8.37763477402e-07 0.00240971439784 0) (8.87683246944e-05 0.00253002254478 0) (0.00013612400273 0.00273650757825 0) (0.000142264179594 0.00284531647902 0) (-0.00129231281827 0.00270426244298 0) (-0.0015256861176 0.0136144053576 0) (0.0762776004201 0.132557138281 0) (0.0544451076447 0.148453990374 0) (0.0619154763243 0.133654014204 0) (0.0756786963759 0.134148184982 0) (0.0841324347527 0.144319358438 0) (0.0956568868862 0.156668684976 0) (0.10832705756 0.170139536727 0) (0.121599190801 0.183524781458 0) (0.135266674635 0.196115347833 0) (0.148863191462 0.207342488232 0) (0.162146216093 0.2167827342 0) (0.174945439835 0.224265592321 0) (0.187182051376 0.229793737733 -3.64432529497e-29) (0.198857015902 0.233508154435 -3.0582474026e-29) (0.210014593011 0.235615976422 0) (0.220735580678 0.2363571826 0) (0.23111168087 0.235970538917 0) (0.241239856755 0.234678382468 0) (0.2512112736 0.232676877247 0) (0.261109170408 0.23013439327 0) (0.271006379983 0.227193576142 0) (0.280965753932 0.223975985444 0) (0.291040697538 0.22058761859 0) (0.301276415871 0.217124716186 0) (0.311711488715 0.213679612663 0) (0.322379952701 0.210346667942 0) (0.333312831802 0.20722807723 0) (0.344537595202 0.204439330169 0) (0.356079321986 0.202114653829 0) (0.367976333417 0.200413788899 0) (0.380309126098 0.199529964951 0) (0.393177440776 0.199687543567 0) (0.406533886942 0.20111470551 0) (0.420078061945 0.204010414681 0) (0.433968173953 0.208576925647 0) (0.450410143261 0.215162909718 0) (0.472383494541 0.224170012676 0) (0.493636114418 0.235326354807 0) (-8.29562378162e-06 0.000682660636128 0) (-1.53118414127e-05 0.000685919902736 0) (-2.64347840316e-05 0.000659054080411 0) (-4.11799481813e-05 0.000666948624906 0) (-5.53802967977e-05 0.000675503979465 0) (-6.5906240028e-05 0.000689755572506 0) (-7.96306141235e-05 0.000709907858415 0) (-9.59553622033e-05 0.000729242575788 8.26964258024e-29) (-0.000100795064595 0.000708897312395 0) (-0.000109023904096 0.00070722595979 0) (-0.000121894627746 0.000740651442552 7.7738381949e-29) (-0.000112458772573 0.000699027816313 0) (-0.000127661353939 0.000742026456947 0) (-0.000152701260429 0.000799237364769 0) (-0.000157662158076 0.000817639924402 0) (-0.000160177807431 0.000821698870898 0) (-0.000183234162463 0.000880558456978 0) (-0.000193538580978 0.00093066556812 0) (-0.000188881662917 0.000921634662095 0) (-0.000207417973549 0.000981855506712 0) (-0.000207220341476 0.00100847185114 0) (-0.00020857623939 0.00104245398804 0) (-0.000222872049354 0.00113038460505 0) (-0.000210451752901 0.00113439415208 0) (-0.000203439031148 0.00118870629307 0) (-0.000196441253651 0.0012425270313 0) (-0.000187016643195 0.00130071795751 0) (-0.000158762130881 0.00136014932837 0) (-0.000118392585503 0.00141015815028 0) (-6.61540884425e-05 0.00146261819113 0) (-3.49998140118e-05 0.00150990119225 0) (-9.58043495844e-05 0.0016974415646 0) (-0.000208330271805 0.00199287374902 0) (-0.000273046034073 0.00228233566578 0) (-0.000272876952187 0.00245258558427 0) (-0.000225186721588 0.00259069469512 0) (-0.000134304887751 0.00266025218693 0) (-1.42855720844e-06 0.00275046034715 0) (8.607625283e-05 0.00277401629797 0) (0.0003498228128 0.0022780267606 0) (-0.00338776589129 0.000582831635368 0) (0.00816475587404 0.0917104755363 0) (0.0768705098114 0.151698681037 0) (0.0501251782944 0.153299094177 0) (0.0657804005237 0.13899489512 0) (0.0765691849475 0.143891344389 0) (0.0854468988263 0.155433056103 0) (0.0975180293204 0.168923570984 0) (0.110222505275 0.183217338186 0) (0.123477278139 0.19700988205 0) (0.136925767004 0.209656678479 0) (0.150163116885 0.220633008805 0) (0.162997918996 0.229621422488 0) (0.17529974271 0.236550403663 0) (0.187028188622 0.241504623727 0) (0.198208693352 0.244681357186 3.00890178535e-29) (0.208901819565 0.246323835782 -2.48494648495e-29) (0.219194049546 0.246689777866 0) (0.229176416662 0.246023017293 0) (0.238939439563 0.244542188646 0) (0.24856456052 0.242434891496 0) (0.258122890385 0.239858797338 0) (0.267673620676 0.236945503129 0) (0.27726471803 0.233806154759 0) (0.286933563972 0.230537487527 0) (0.296708107222 0.227227971368 0) (0.306608260097 0.223964007775 0) (0.31664783705 0.220836314233 0) (0.326836143821 0.217946277716 0) (0.337177425639 0.215411870259 0) (0.347670829234 0.21337309648 0) (0.358324280968 0.211998158258 0) (0.369188331233 0.211491122918 0) (0.380351072929 0.212090263696 0) (0.391779533977 0.214039688362 0) (0.403161427237 0.217550670183 0) (0.414559947199 0.222832691752 0) (0.428235642786 0.230252874876 0) (0.447900402235 0.240208547009 0) (0.468088396431 0.252277563102 0) (-9.61749875042e-06 0.000670211805701 0) (-2.22218379645e-05 0.000670688902387 0) (-3.54102495753e-05 0.000669763332868 0) (-4.55136951378e-05 0.000655720423062 0) (-6.18284188355e-05 0.000664433983875 0) (-7.66497229038e-05 0.000677792809499 0) (-9.20643384682e-05 0.000692136725557 0) (-0.000110409917628 0.000715443148804 0) (-0.000117609358246 0.00070256880405 0) (-0.000122828348053 0.000691746426898 0) (-0.000143379954081 0.000727455608463 -7.61021539351e-29) (-0.00014033976905 0.000704224521875 0) (-0.000147175991618 0.000716705983772 0) (-0.000176171471976 0.000777905728196 0) (-0.000196478226665 0.000828222902099 7.45135614073e-29) (-0.000194761856391 0.000807780132574 0) (-0.000215175025715 0.000858690122314 0) (-0.000238993618533 0.000917491533934 0) (-0.000239134855528 0.000916161310387 0) (-0.000254401409203 0.000967953795508 0) (-0.000270517150863 0.00103207223154 0) (-0.000262147431601 0.00102632193887 0) (-0.000284825759099 0.00110625722679 0) (-0.000284348188863 0.00114526720221 0) (-0.000283538961365 0.00120771457494 0) (-0.0002757076789 0.00124863649232 0) (-0.000270663680389 0.00131764332362 0) (-0.000257144404318 0.00138871622845 0) (-0.000229617206279 0.00145143050368 0) (-0.000190620417448 0.00151870615845 0) (-0.000136751123577 0.00160975280054 0) (-9.86245936608e-05 0.00166230317166 0) (-0.00011320697144 0.00180543556557 0) (-0.000173385731107 0.00201227632811 0) (-0.000239582454505 0.00220453084062 0) (-0.000267097778672 0.00236576175099 0) (-0.000237065283567 0.00254398907516 0) (-0.000106375987772 0.00276718985333 0) (0.000138569387184 0.00289788577139 0) (0.00139724533336 0.00249727435454 0) (-0.00406783101938 0.00114971211071 0) (0.0245480604069 0.124191036707 0) (0.0674879538554 0.16672199243 0) (0.0488274751433 0.156198377067 0) (0.0684328051354 0.145561369227 0) (0.0766431275021 0.154015477033 0) (0.0864941776177 0.166753723602 0) (0.0988041541792 0.181365012785 0) (0.111483315594 0.196294019054 0) (0.124640879581 0.210326850914 0) (0.137801753236 0.222882507562 0) (0.150648511026 0.233502254297 0) (0.163027102857 0.241980157035 0) (0.174844111513 0.248335485892 0) (0.18609051285 0.252724100935 0) (0.196809791349 0.255389118094 0) (0.207072860183 0.256600139558 2.45013192369e-29) (0.21696739424 0.256624969073 0) (0.226580253066 0.255706770297 -1.74107318622e-29) (0.235993167417 0.254056565508 0) (0.245276203299 0.25185085688 0) (0.254487152267 0.249234942575 0) (0.263670561696 0.246328112472 0) (0.272858512628 0.243229908201 0) (0.282071204235 0.240026403841 0) (0.291317891561 0.236796404481 0) (0.30059805448 0.233617633413 0) (0.309903287136 0.230573103363 0) (0.319219310324 0.22775752666 0) (0.328526196439 0.225283415008 0) (0.337798218591 0.223286955817 0) (0.347016496962 0.221935360749 0) (0.356207216125 0.221438447379 0) (0.365455022886 0.222055785903 0) (0.374752758255 0.22407816331 0) (0.383772467858 0.227791129587 0) (0.392423729682 0.233512995526 0) (0.402977568897 0.241802319146 0) (0.42011931102 0.253270139718 0) (0.439377437846 0.267158228012 0) (-1.02445913748e-05 0.00065600925501 0) (-2.19117148325e-05 0.000655033397889 0) (-3.95615581946e-05 0.000658022726426 0) (-5.56829145547e-05 0.000644362627988 0) (-7.29717635486e-05 0.000648459740158 0) (-9.00238941194e-05 0.0006626842478 0) (-0.000105903303964 0.000675368126445 0) (-0.000125208092729 0.000700117363338 0) (-0.000137272515501 0.000701950206297 0) (-0.000140256781059 0.000680247273458 0) (-0.000162228903719 0.00070811682992 0) (-0.000170697564945 0.000711055944047 0) (-0.000166510992319 0.000692023322653 0) (-0.000195592561626 0.000748533658935 0) (-0.000227243285287 0.000799581189842 -7.16053320496e-29) (-0.000232584889336 0.000798578632561 0) (-0.000247964470284 0.000833259507836 0) (-0.000280479863677 0.000893004184766 6.82951087715e-29) (-0.00028745786921 0.000909114396393 0) (-0.000296303778436 0.000941442388424 0) (-0.000326044705497 0.00100768210575 0) (-0.0003282415559 0.00102436660529 0) (-0.000348478011487 0.001089830993 0) (-0.000358551333937 0.00114419234686 0) (-0.000360788076127 0.00119119782686 0) (-0.000364453278501 0.00125599907877 0) (-0.00036210523006 0.00132188874585 0) (-0.000360336907208 0.00139426366547 0) (-0.000346195121951 0.00147594835515 0) (-0.000319152430164 0.00154772639585 0) (-0.000296337028662 0.00166234804738 0) (-0.000256168838797 0.00174168929846 0) (-0.000229690181091 0.00185381492633 0) (-0.000238467731451 0.00193973245942 0) (-0.000294735463732 0.00211939772496 0) (-0.000352150022422 0.00228799387303 0) (-0.000398500027527 0.00251667204739 0) (-0.000392457523161 0.0027846918105 0) (-0.00024863680083 0.00323008121759 0) (0.00168770636576 0.00423798520301 0) (-0.00297100041192 0.00814797036047 0) (0.0424644561183 0.157156427698 0) (0.0544374806963 0.180496455073 0) (0.0500497927644 0.15909119325 0) (0.0696751522084 0.153418811447 0) (0.0762373808614 0.164407267115 0) (0.0871810890592 0.178285380503 0) (0.0994848478945 0.193903782216 0) (0.112121615001 0.209284946343 0) (0.125111165745 0.223413099036 0) (0.137944658129 0.235754378666 0) (0.150389337737 0.245938688592 0) (0.162318452327 0.253868622879 0) (0.173672921338 0.259644965598 0) (0.184467897814 0.263484267204 0) (0.194759474924 0.265665585045 0) (0.204624046592 0.266476356707 0) (0.214146997959 0.266188003146 0) (0.223408487942 0.26503835824 1.72020200198e-29) (0.232479904602 0.263227745127 0) (0.241418987929 0.260919554175 0) (0.250269733272 0.258245305987 0) (0.259061914137 0.255310821914 0) (0.267811930093 0.252202884284 0) (0.276523380523 0.24899567134 0) (0.28518789108 0.245757127688 0) (0.293786176335 0.242555554823 0) (0.302289900258 0.239466792503 0) (0.310663828141 0.236581997551 0) (0.318865973638 0.234015739321 0) (0.326845460503 0.231914378315 0) (0.334549940638 0.230466113938 0) (0.341961416861 0.229915879566 0) (0.349123069577 0.230577867503 0) (0.356000642172 0.232820374085 0) (0.362177009724 0.237012741704 0) (0.367271769286 0.243516957028 0) (0.373480319152 0.252889995751 0) (0.387160135287 0.265764106597 0) (0.406306145462 0.281142454946 0) (-1.1005843189e-05 0.000639869235196 0) (-2.30057887713e-05 0.000639411405176 0) (-4.26836533621e-05 0.000633269624138 0) (-6.39319367484e-05 0.00062144396229 0) (-8.28965090216e-05 0.000628093938924 0) (-0.000100740748269 0.000644773605328 0) (-0.000118062143307 0.000658505070686 0) (-0.000138319145383 0.000681699826501 0) (-0.000156291635918 0.000693515552096 0) (-0.000161998769178 0.000674111354374 0) (-0.000177461023898 0.000682323569452 0) (-0.000204750451982 0.000721622991733 0) (-0.000197362939759 0.000687526448652 0) (-0.00021689818945 0.000715423353603 0) (-0.000257410612037 0.000776162920676 0) (-0.000275596141059 0.000801684363164 0) (-0.000282701918343 0.000805418162253 0) (-0.000319883952653 0.000867711163349 -6.65462307397e-29) (-0.000346350064901 0.000918808431729 0) (-0.000348437215174 0.000922980344055 0) (-0.000382762953471 0.00098605998187 0) (-0.000395055375867 0.00101589999705 0) (-0.000408449499637 0.00106006679361 0) (-0.000445117535856 0.0011554732674 0) (-0.000442540893655 0.00118342340945 0) (-0.000465693541516 0.00127257412772 0) (-0.000461807050921 0.00130763305135 0) (-0.00047159604674 0.00140186337825 0) (-0.00047195235874 0.00149610446485 0) (-0.000456423519119 0.00156537142196 0) (-0.000446602433507 0.00166221722225 0) (-0.000433954668598 0.0017713045391 0) (-0.000422336807681 0.00189485414172 0) (-0.0004208104617 0.00200774863165 0) (-0.00045435340873 0.00213834314489 0) (-0.000543371547339 0.00229453334517 0) (-0.000712167312838 0.00245799652497 0) (-0.00104169854448 0.00267168947366 0) (-0.00160420487067 0.00316516254624 0) (-0.00357891509036 0.00461315849214 0) (-0.0025356686114 0.011293142977 0) (0.0933742261173 0.178252513373 0) (0.0431551239394 0.188657741705 0) (0.0540666592125 0.162277739393 0) (0.0696037436241 0.162276316925 0) (0.0756383483079 0.174989103475 0) (0.0874334561979 0.190010563432 0) (0.0995752373892 0.206461962827 0) (0.112159748593 0.222132176465 0) (0.124923824559 0.236228448104 0) (0.137414007758 0.2482545571 0) (0.149459228651 0.257946390346 0) (0.160955947039 0.265306477104 -2.80411624347e-29) (0.171875600178 0.270507983882 2.75593433222e-29) (0.18225101436 0.273818001736 0) (0.192146503322 0.275542502719 0) (0.201640069686 0.275979415871 0) (0.210812238768 0.275398402117 0) (0.21973472995 0.274028249774 0) (0.228467623397 0.272056205176 1.08968973571e-29) (0.237055816475 0.269631039486 0) (0.245529276278 0.26686947743 0) (0.253902837377 0.26386305466 0) (0.262176894079 0.260684986592 0) (0.270337639853 0.257396637397 0) (0.2783573329 0.254053950238 0) (0.286194638163 0.250714208418 0) (0.293795690527 0.24744339899 0) (0.301095580927 0.244323889758 0) (0.308017945784 0.24146166078 0) (0.314471437168 0.238992480428 0) (0.320354333363 0.237087861791 0) (0.325592697269 0.23596436955 0) (0.330190968403 0.235893892393 0) (0.334130630762 0.237200498846 0) (0.337028079226 0.240239178095 0) (0.338414181704 0.24541545589 0) (0.340642381475 0.25342975393 0) (0.35235562025 0.265599539177 0) (0.375013843094 0.283982908659 0) (-1.27279337879e-05 0.000621300807335 0) (-2.92599793449e-05 0.000622632790737 0) (-5.04377596602e-05 0.000606799958295 0) (-6.86572892169e-05 0.000594544242923 0) (-8.77074191231e-05 0.000610463545621 0) (-0.000107897064832 0.000625351928751 0) (-0.000128260164206 0.000639087701932 0) (-0.000150857933081 0.000659821369549 0) (-0.000173829952675 0.000676899600593 0) (-0.000183885224572 0.000664158998552 0) (-0.000193597888314 0.000659516832399 0) (-0.00022417635579 0.000689471939301 0) (-0.00023707144793 0.000691747634804 0) (-0.000237367921626 0.000677233760559 0) (-0.000279780817455 0.000739166129396 0) (-0.00031781607631 0.000789002786427 0) (-0.000321860159667 0.000781613745012 0) (-0.000352478663645 0.000828844239326 0) (-0.000395198095537 0.000889586000809 0) (-0.000405330871431 0.000902711554025 0) (-0.000433710091195 0.000951717136792 0) (-0.000470518901899 0.00101598533105 0) (-0.000473240820115 0.00103336847011 0) (-0.00051605672096 0.00111687668192 0) (-0.000530817351084 0.00116796449633 0) (-0.000549578829231 0.00123256988053 0) (-0.000570010995565 0.00130688322216 -5.11451193056e-29) (-0.000587227520315 0.00139978383777 5.02268645153e-29) (-0.00059815963167 0.00148480168849 0) (-0.000602028726305 0.00158189445152 0) (-0.000598736596245 0.00168029975683 0) (-0.000597340296446 0.00179001914993 0) (-0.000594384139642 0.00190450640073 0) (-0.000594485779089 0.00200299124726 0) (-0.000610948449037 0.00209991246561 0) (-0.000678870680309 0.00218013002595 0) (-0.000854388338955 0.00222388289975 0) (-0.00125517152975 0.0021721281953 0) (-0.00209179540999 0.00198977300045 0) (-0.00414851238527 0.00118058566825 0) (-0.00848144713279 0.11580424144 0) (0.0907350877751 0.190405355622 0) (0.0353278792496 0.190060893057 0) (0.0574579381608 0.165992504949 0) (0.0681980497638 0.171600784564 0) (0.074904703665 0.185660234307 0) (0.0871725924188 0.201872269916 0) (0.0991080628068 0.218972878816 0) (0.111626364566 0.234797897561 0) (0.12412665859 0.248751067266 0) (0.136275205118 0.260381391473 0) (0.14793316453 0.269540233441 0) (0.159021085289 0.276319279859 0) (0.169535745504 0.280955453413 0) (0.179522401154 0.283756711943 0) (0.189050116549 0.285047930783 0) (0.198195537451 0.285131274784 0) (0.207032539649 0.284270222481 0) (0.215623298917 0.2826815729 0) (0.224016105503 0.28053765047 -1.0795070776e-29) (0.232242890603 0.277971410514 -7.01426739158e-30) (0.240319706792 0.275083857706 0) (0.248246672761 0.271951255884 0) (0.256008463972 0.26863190967 0) (0.263574289998 0.265172399074 0) (0.270897908333 0.261613831756 0) (0.277917934825 0.257998597564 0) (0.284559373456 0.254377926908 0) (0.290736452002 0.250820029073 0) (0.296354387042 0.247418303947 0) (0.301307412954 0.244299838634 0) (0.305482286347 0.241636720374 0) (0.308794576563 0.239666753649 0) (0.311241491962 0.238729025941 0) (0.312782116646 0.23932017903 0) (0.312864825621 0.242184665555 0) (0.310449361097 0.248407058372 0) (0.306897431155 0.259403971051 0) (0.309778686008 0.276596264741 0) (0.31515503875 0.302104362088 0) (-1.42196720338e-05 0.000599331100495 0) (-3.51974166969e-05 0.000601360312743 0) (-6.06959832243e-05 0.000591480678891 0) (-7.62939201625e-05 0.000583445862616 0) (-9.15217375641e-05 0.000589477426086 0) (-0.000115220744955 0.000602998032356 0) (-0.000138959697584 0.000616876100611 0) (-0.000163833604853 0.000634018869707 0) (-0.000190844050705 0.000655956463662 0) (-0.000207759111848 0.000657239986707 0) (-0.000216653234606 0.000645535984719 0) (-0.000239040313126 0.000657794586743 0) (-0.000276286621059 0.000695580804796 0) (-0.000273977292941 0.000667770166369 0) (-0.000298780486078 0.000694034684226 0) (-0.000350048792629 0.000755256590106 0) (-0.000374353602507 0.000779346814485 0) (-0.000388279409288 0.00079152937808 0) (-0.00043854485764 0.000854740319296 0) (-0.000472096719862 0.000899740478618 0) (-0.000483605233616 0.000914143172315 -5.84109198586e-29) (-0.000535616463655 0.000983540549187 0) (-0.000553423858661 0.00101420721525 0) (-0.000580625564675 0.00106973265002 0) (-0.000635543037675 0.0011733895415 0) (-0.000645156484455 0.00121211997499 0) (-0.000677442471794 0.00128941578731 0) (-0.00069840610285 0.00136842679357 0) (-0.00072615010664 0.00147709911828 0) (-0.000745940683443 0.00158729085678 0) (-0.000745081413817 0.00167033238329 0) (-0.000751082371337 0.00178842917143 0) (-0.00074756677417 0.00190208142203 0) (-0.000735929995964 0.00200402412186 0) (-0.000725710902981 0.00210650214734 0) (-0.000706137500693 0.00213127269893 0) (-0.000705990462974 0.00208889674898 0) (-0.000758763651254 0.00184663880058 0) (-0.000315551881127 0.00124755731986 0) (-0.00421502344744 -0.000920509187523 0) (0.0074974346731 0.143853185139 0) (0.0771875763733 0.200780182591 0) (0.030150786576 0.190125090986 0) (0.0589201794368 0.171008317848 0) (0.065699452075 0.181164443872 0) (0.0738985923818 0.196427002249 0) (0.0863219925221 0.213820911563 0) (0.0981155874984 0.231392963825 0) (0.110554400035 0.247261840272 0) (0.122776335229 0.26097409243 0) (0.134596901956 0.272144764807 0) (0.145885992599 0.280741721017 0) (0.156591906251 0.28693519577 0) (0.166730934825 0.2910176443 0) (0.176356984495 0.293328847901 0) (0.185541139432 0.294205580849 0) (0.194356522502 0.293948935326 0) (0.202869197031 0.292812594362 0) (0.211131180052 0.290999043438 0) (0.219178850051 0.288664253445 7.03261213712e-30) (0.2270313126 0.285924414242 6.96065423207e-30) (0.23469098325 0.282864010591 0) (0.242143507145 0.279543113258 0) (0.249357873103 0.276003911599 0) (0.256285888821 0.272276733279 0) (0.26286151507 0.268386390056 0) (0.269000179616 0.264359469278 0) (0.274598629046 0.2602328826 0) (0.279534789898 0.256063397121 0) (0.283663489736 0.251937342109 0) (0.286800973491 0.247979785497 0) (0.288700926594 0.244363826205 0) (0.289043891742 0.241323584797 0) (0.287412609928 0.239172471561 0) (0.283018749793 0.238321098206 0) (0.273935953808 0.239241547842 0) (0.25678639483 0.242105573831 0) (0.229217365544 0.245767505698 0) (0.188643499938 0.246910704477 0) (0.0671078989942 0.249233547403 0) (-1.44516024284e-05 0.000574337813077 0) (-3.60414936176e-05 0.000576207141859 0) (-6.23559993811e-05 0.000566414742466 0) (-8.73811574856e-05 0.000585025704249 0) (-0.000102813322901 0.000571602877616 0) (-0.000125568293067 0.000578671061861 0) (-0.000151227412796 0.000592201820455 0) (-0.000177153147952 0.000606548117768 0) (-0.000207035989214 0.000631722413099 0) (-0.000231153222864 0.000642806937671 0) (-0.000242960331627 0.00063198630754 0) (-0.000256664945117 0.000628249849371 0) (-0.000292476102936 0.00065423570188 0) (-0.000319916922817 0.000668402082276 0) (-0.000323514077176 0.000655892947352 0) (-0.000370224121944 0.000707158314938 0) (-0.000421475270102 0.000758231542923 0) (-0.000430637432595 0.000756675242357 0) (-0.000468803251788 0.000799127873281 0) (-0.000529207433515 0.00086853329156 0) (-0.000541983779147 0.000877845128949 5.74515061787e-29) (-0.000584616278267 0.000928926276471 0) (-0.000639566657165 0.00100121629147 0) (-0.000659189710275 0.00103647139354 0) (-0.00071147023758 0.00111462089914 0) (-0.0007517981478 0.0011859175398 0) (-0.000780149051209 0.00125021488302 0) (-0.000820130376701 0.00134600413804 0) (-0.000850597780267 0.00144478863571 0) (-0.000879235531752 0.00155352744715 0) (-0.000895454404218 0.00166358603383 0) (-0.000907122440083 0.00179303121254 0) (-0.000901843603482 0.00191675736508 0) (-0.000872582791601 0.00203466815091 0) (-0.000816484867846 0.00213722192908 0) (-0.000730081274796 0.00221272430119 0) (-0.000574696141877 0.00217881050516 0) (-0.000377642505141 0.0020016812628 0) (0.000670164149321 0.00167387795659 0) (-0.00558991454385 0.00128715198035 0) (0.0178766111586 0.171709144249 0) (0.05899350931 0.212697343971 0) (0.027066622177 0.191667573956 0) (0.05860652098 0.177738036971 0) (0.0625720798852 0.191083131294 0) (0.0725352930924 0.207418195943 0) (0.0848870231373 0.225850435341 0) (0.0966450316795 0.243712480791 0) (0.108988580775 0.259521062985 0) (0.120937673472 0.272902925119 0) (0.132449881363 0.28356202309 0) (0.143391591404 0.291575481485 0) (0.153742534725 0.297182346499 0) (0.163532904434 0.300722420933 0) (0.172822774239 0.302558975103 0) (0.181683081924 0.303034573923 0) (0.190181921012 0.302444731893 0) (0.198376831055 0.301030392103 8.72256617038e-30) (0.206309377706 0.298977887425 0) (0.214004080948 0.296425707551 -6.98030335363e-30) (0.221467378366 0.293472475608 0) (0.228688109681 0.290185350307 0) (0.235637097894 0.286607090408 0) (0.242266471424 0.2827620764 0) (0.248508053075 0.278661904768 0) (0.254271159432 0.274311536384 0) (0.259439565929 0.269716386466 0) (0.26386759473 0.264890060802 0) (0.267374353321 0.259861620911 0) (0.269731450658 0.254680134264 0) (0.270635132384 0.249412564494 0) (0.269662613473 0.244129855659 0) (0.266235891884 0.238879036618 0) (0.259576239399 0.233639890254 0) (0.248447360566 0.228234161836 0) (0.230560504548 0.222019255976 0) (0.202735328062 0.212941901617 0) (0.163273831065 0.196158646563 0) (0.107827679943 0.165410903978 0) (-0.0192867046328 0.127210840124 0) (-1.43628395556e-05 0.000549291883329 0) (-3.61012892856e-05 0.000551084952211 0) (-5.90775247275e-05 0.00053488305961 0) (-8.96628525878e-05 0.000549865835246 0) (-0.000114591558391 0.000549782613287 0) (-0.000136030024009 0.000553727394653 0) (-0.000163282297625 0.000565592687943 0) (-0.000190820476704 0.000579414928557 0) (-0.000222789374778 0.000602578934982 0) (-0.000253539268536 0.000620506515053 0) (-0.00027361051181 0.000621449619163 0) (-0.000285842738595 0.000611795071329 0) (-0.000308283173362 0.00061496082898 0) (-0.000350167982177 0.000643417313308 0) (-0.00036789818766 0.000645870473028 0) (-0.000386261082664 0.000650859782872 0) (-0.000448354001901 0.000710871162483 0) (-0.000498347295627 0.000758004289493 0) (-0.000507757954689 0.000752035663145 0) (-0.000572632392976 0.000818572004276 0) (-0.000625799553775 0.000873530169879 0) (-0.000641810561465 0.000882791651831 0) (-0.000706669764338 0.000951583001422 0) (-0.000746156564099 0.000999585565022 0) (-0.000793191764918 0.00106447738037 0) (-0.000857354605753 0.00115211047646 0) (-0.00089511280861 0.00121686891855 0) (-0.000946590809197 0.00130939186332 0) (-0.00098648958749 0.00140745091871 0) (-0.0010310992444 0.00153387548868 0) (-0.00105941028672 0.00165466519604 0) (-0.00107312372014 0.00177999107913 0) (-0.00106874584916 0.00192356182224 0) (-0.00103234315841 0.00208094343711 0) (-0.000948916146499 0.00222884392357 0) (-0.00080372119316 0.00233832029291 0) (-0.000568363874761 0.00241378969104 0) (-0.00029637762891 0.00241473269594 0) (0.000976068003843 0.00228280990716 0) (-0.00955290840502 0.00374239839419 0) (0.0284462679801 0.199821491003 0) (0.0393501379752 0.225836731336 0) (0.0258829108206 0.195061745428 0) (0.0569884938135 0.186009487287 0) (0.0592166418437 0.20145831856 0) (0.070832000609 0.218733898949 0) (0.0829627996064 0.237968603148 0) (0.0947700886984 0.255941735101 0) (0.106993049742 0.27158335244 0) (0.118684099136 0.284550522424 0) (0.129906861104 0.294653776103 0) (0.140522385568 0.302066189787 0) (0.150542986667 0.307086680257 0) (0.160007839708 0.310093982506 0) (0.168981534061 0.311467241081 0) (0.177533080305 0.311549449927 0) (0.185724511641 0.310626707704 -8.49684257132e-30) (0.193604392797 0.30892479606 -8.65349694309e-30) (0.20120367422 0.306612383671 0) (0.208535015098 0.303809473679 0) (0.21559205409 0.300596211304 0) (0.222349485873 0.297021202678 0) (0.228761835563 0.293107890795 0) (0.234761394588 0.288859582381 0) (0.240254805154 0.284264107325 0) (0.245118554567 0.279299106369 0) (0.24919287629 0.273937792127 0) (0.252273647117 0.268153899485 0) (0.254101733813 0.261923725934 0) (0.254347297905 0.255222073949 0) (0.252582737744 0.24800598379 0) (0.248243936867 0.240175895326 0) (0.24060422783 0.231508778822 0) (0.228772607651 0.221570886219 0) (0.211607915367 0.209580148718 0) (0.187545028537 0.193994519819 0) (0.155133330768 0.171469970944 0) (0.114539676337 0.136295719296 0) (0.0645618522181 0.0844624361298 0) (-0.0125455879369 0.0277579593766 0) (-1.5033105545e-05 0.000525365352642 0) (-3.90289638006e-05 0.000527594626759 0) (-6.11427432455e-05 0.000513829511168 0) (-8.78249665906e-05 0.000512364931651 0) (-0.000122088358019 0.000531353938034 0) (-0.000145781400801 0.000528030450032 0) (-0.000174666735914 0.000537292527959 0) (-0.000204139326422 0.000549953197099 0) (-0.000236319215007 0.000567549143745 0) (-0.000272323224735 0.000591237203669 0) (-0.000302574977772 0.000603697101078 0) (-0.000319347443059 0.000595280316047 0) (-0.000336740582935 0.000589836693577 0) (-0.000367960044692 0.000600769758286 0) (-0.000415346024566 0.000634144131166 0) (-0.000422910578796 0.000619882835526 0) (-0.000459052616428 0.000643468809111 0) (-0.000532246281452 0.000707262991404 0) (-0.00055923125894 0.000718715839049 0) (-0.000600889105523 0.000753356086233 0) (-0.000675535536725 0.000819371667948 0) (-0.000709396139164 0.000842231224335 0) (-0.00076301262432 0.000891000530125 0) (-0.000824130132755 0.00095117965008 0) (-0.000878151835037 0.00101073797198 0) (-0.000936702910323 0.00107939036742 0) (-0.00100884794495 0.00116804886098 0) (-0.00105670160866 0.00124163118284 0) (-0.0011271171758 0.00136065301555 0) (-0.00119733493645 0.00149971502019 0) (-0.0012290891493 0.00160732053689 0) (-0.00126763943268 0.00176071555089 0) (-0.00127356961213 0.00193713350754 0) (-0.00125084246946 0.00215010967575 0) (-0.00115270705571 0.00234653809088 0) (-0.000984949795681 0.0025726741284 0) (-0.000674874507008 0.00275059286274 0) (-0.000359773800832 0.00286119216957 0) (0.00111256478352 0.00266686273468 0) (-0.0144906086906 0.00488590617025 0) (0.0392825421808 0.225618334614 0) (0.0196442778765 0.238823580857 0) (0.0261986757876 0.199854253983 0) (0.0543854121331 0.195450776215 0) (0.0558704522131 0.2122660432 0) (0.0688498774808 0.230374120583 0) (0.0806802987309 0.250160503931 0) (0.0925795845228 0.268086304101 0) (0.104647677849 0.283455328997 0) (0.116094899287 0.295930351031 0) (0.12704135247 0.30543934374 0) (0.137348536885 0.312235761097 0) (0.147058900982 0.316670272395 0) (0.156216574337 0.319152009046 0) (0.164889308903 0.320069129044 1.00755730038e-29) (0.173142627847 0.319760319599 0) (0.181031742867 0.318498973689 8.43044153515e-30) (0.188595864963 0.31649365913 0) (0.195855100873 0.31389401415 0) (0.20280996391 0.31080043739 0) (0.209440599808 0.307273258082 0) (0.215706038272 0.30334045236 0) (0.221541604262 0.299002735002 0) (0.226854877907 0.294237006147 0) (0.231520020855 0.288999587564 0) (0.235371030295 0.283230239845 0) (0.238193832857 0.276856230789 0) (0.239717364915 0.269794307785 0) (0.239604771459 0.261948072255 0) (0.237446908744 0.253198589496 0) (0.232759570757 0.243384521078 0) (0.224986341226 0.23226290495 0) (0.213521267681 0.219445704595 0) (0.197776144257 0.204339361885 0) (0.177296599582 0.186115973885 0) (0.151995756291 0.163596823633 0) (0.122755331711 0.134851090606 0) (0.091557877442 0.0978157628746 0) (0.058672294555 0.0556015548605 0) (0.0048615611046 -5.76757995356e-05 0) (-1.55350835709e-05 0.000499880748229 0) (-4.04669459318e-05 0.000502233493571 0) (-6.59644029564e-05 0.000501604777693 0) (-8.76326525738e-05 0.000483346920843 0) (-0.000125231536353 0.000504510905698 0) (-0.000156393259315 0.000502888669643 0) (-0.000185785419875 0.000508024938294 0) (-0.000216927695035 0.000519337378274 0) (-0.000248282618432 0.000532258246525 0) (-0.000286940788798 0.000556164651272 0) (-0.00032219064733 0.000572082686961 0) (-0.000354857497825 0.000582941108273 0) (-0.000371001410799 0.000569493176385 0) (-0.000392102260042 0.000564106283045 0) (-0.000436999527872 0.000588420593409 0) (-0.000483021398618 0.000613728389293 0) (-0.000495425063178 0.000603252113055 0) (-0.000552614617123 0.000642584165004 0) (-0.000619156431535 0.000691306143731 0) (-0.000646554974988 0.000703112430085 0) (-0.000707583804476 0.000748749095951 0) (-0.00077847274576 0.000800719784553 0) (-0.00082572710424 0.000833362177665 0) (-0.000891359453462 0.000885432709445 0) (-0.000960353664499 0.000947770425096 0) (-0.0010320765236 0.0010170706924 0) (-0.00110462561921 0.00109080810521 0) (-0.00118203827936 0.00117999047281 0) (-0.00126523926748 0.00129128493892 0) (-0.00134549719602 0.00141661724176 -4.26329208302e-29) (-0.00142610787808 0.00156639430685 4.12404194244e-29) (-0.00149473936661 0.00174373412994 0) (-0.00153510254759 0.00195339587224 0) (-0.00153338282367 0.00219832426902 0) (-0.00146128853068 0.00247709417903 0) (-0.0012695141478 0.00278059358901 0) (-0.000916017963194 0.00316298093934 0) (-0.000435494277452 0.00338820211719 0) (0.00144678596346 0.00316500274485 0) (-0.0178037097837 0.00402773054846 0) (0.0495622701305 0.247834844642 0) (0.000550886582936 0.25044713717 0) (0.0275321535921 0.205701783569 0) (0.0509760055238 0.205754896931 0) (0.052673796621 0.223426480113 0) (0.0666589397388 0.242276275396 0) (0.0781666576638 0.262387755464 0) (0.09016235608 0.280135749101 0) (0.102037727971 0.295134549122 0) (0.113249473483 0.307050475085 0) (0.123924946766 0.315932988593 1.73657492891e-29) (0.133936442403 0.322101155233 -1.70892072954e-29) (0.143350967695 0.325950142348 0) (0.152214575901 0.327911197337 -9.76338876402e-30) (0.160596749848 0.32837545154 -9.99243603926e-30) (0.168558074016 0.327673110786 0) (0.176146253503 0.326062019084 0) (0.183390667234 0.323731692498 0) (0.190300095042 0.32081131693 0) (0.196862121287 0.317380196926 0) (0.203041910511 0.313476746536 0) (0.208780175852 0.309104990377 0) (0.213988767399 0.30423771983 0) (0.21854446941 0.29881791838 0) (0.222281537827 0.292760588766 0) (0.224984459178 0.285956220269 0) (0.226382078079 0.278275034675 0) (0.226144503813 0.26956989925 0) (0.223885058468 0.259676217136 0) (0.219171567432 0.248409111526 0) (0.211553412202 0.235559398953 0) (0.200606213341 0.22088652664 0) (0.18597794103 0.204099012725 0) (0.167420692178 0.184825148927 0) (0.144852294277 0.162619563999 0) (0.118543416305 0.137048675359 0) (0.0892270870732 0.107707741742 0) (0.0553284583132 0.0727992449754 0) (0.00695978956095 0.00226046299994 0) (0.000466214781035 0.00237121071238 0) (-1.56803417319e-05 0.000471405067053 0) (-4.02878074011e-05 0.000473920183521 0) (-6.90147781578e-05 0.000475063911307 0) (-9.08418456035e-05 0.000454588221428 0) (-0.000119895326385 0.000454368661197 8.77485230986e-30) (-0.000158032246937 0.000468664687231 -4.30495490264e-33) (-0.000192244473324 0.00047632624484 -9.05917481937e-30) (-0.000226684997904 0.000487527250094 0) (-0.000259463840271 0.00049901879865 0) (-0.000296708614276 0.000516598710065 0) (-0.000337242539307 0.00053639510843 0) (-0.000374019504423 0.000547481796508 0) (-0.000405242579343 0.000549558995214 0) (-0.000424753379456 0.000538808064204 0) (-0.000451817072809 0.000538275948871 0) (-0.000509291477448 0.000567591455292 0) (-0.000546647281985 0.000576455331381 0) (-0.000580579578633 0.000584771558687 0) (-0.000646527239031 0.000625065948457 0) (-0.000715772767597 0.000671654625451 0) (-0.000751550026813 0.000685624675481 0) (-0.000818177934203 0.000724725038389 0) (-0.000897737002416 0.000778175236241 0) (-0.000958600598893 0.000816468728568 0) (-0.00103520638878 0.000870732345063 0) (-0.00112325095573 0.000940269452325 0) (-0.00120739219873 0.00101274438465 0) (-0.00130454216709 0.00110222344973 0) (-0.00138727996966 0.00119598241193 0) (-0.00149726032088 0.00133044965736 0) (-0.00159484049139 0.00147101230617 0) (-0.0016833784138 0.00163499232665 0) (-0.00179036870101 0.00187236766031 0) (-0.00186790309771 0.0021671594014 0) (-0.00188035025453 0.00252619386935 0) (-0.00179763623158 0.00302327836501 0) (-0.0014710249232 0.00364391634198 0) (-0.000781039910287 0.00428604702332 0) (0.00219716396025 0.00486118838336 0) (-0.00676560444663 0.00603553785377 0) (0.0576293764681 0.265326883478 0) (-0.0178785170424 0.260848361493 0) (0.0289529985793 0.212841819077 0) (0.0469168269614 0.216803493598 0) (0.0497281253771 0.234868120947 0) (0.0643355859832 0.254368719275 0) (0.0755354892088 0.274603176792 0) (0.0876012979003 0.292065957579 0) (0.0992454764986 0.306608566172 0) (0.110221986117 0.317911191151 0) (0.120624181444 0.326142126501 0) (0.130346918273 0.331673300526 0) (0.139474137939 0.334937775317 0) (0.148051746301 0.336381231681 9.68268352126e-30) (0.156149265283 0.336392584451 0) (0.163820944998 0.335289902229 0) (0.171106226659 0.333312985518 0) (0.178023954023 0.330630513324 0) (0.184570715508 0.327349534668 0) (0.190719799566 0.323526145652 0) (0.196419144379 0.319173733978 0) (0.20158768986 0.314267670297 0) (0.206109065039 0.308746121645 0) (0.209823790411 0.30250971371 0) (0.212521621599 0.295423327865 0) (0.213936719237 0.287321798975 0) (0.213748068755 0.278018786837 0) (0.211587286767 0.267316854895 0) (0.207055292081 0.255017229369 0) (0.199749156794 0.240928841449 0) (0.189304079645 0.224877360357 0) (0.175456368514 0.206715069886 0) (0.158105842896 0.186316484317 0) (0.137321069007 0.163508337594 0) (0.113264008902 0.137834733636 0) (0.0859670781114 0.108534649779 0) (0.055656297908 0.0748135723046 0) (0.0250400187066 0.0332111785663 0) (0.000915943757597 -0.000187087117388 0) (0.00100317667493 0.00017762091892 0) (-1.61908460096e-05 0.000441718606137 0) (-4.20664828078e-05 0.000445289828929 0) (-7.1878962855e-05 0.000442892582833 0) (-9.66346890953e-05 0.000432855269108 0) (-0.00011860995658 0.000425454022978 0) (-0.000152152080429 0.000431306597112 0) (-0.000191254131289 0.000438611041143 0) (-0.000231083705506 0.000452389262461 0) (-0.000267468164695 0.000464217722452 0) (-0.000303247437255 0.000475353141237 0) (-0.000348593092748 0.00049655383446 0) (-0.000387961335238 0.000507909125166 0) (-0.000432599530403 0.000521183983822 0) (-0.000460566089652 0.000515040480335 0) (-0.000485231117895 0.000506475616089 0) (-0.000521402906899 0.000510094106021 0) (-0.000583803046152 0.000535022080548 0) (-0.00062014451413 0.000539071204103 0) (-0.000671831927041 0.000557973788906 0) (-0.000743589355015 0.000597631526329 0) (-0.000824802268491 0.000645035655309 0) (-0.000867397056549 0.00065736150215 0) (-0.000943059411414 0.000694951777807 0) (-0.00102709923771 0.000743573089852 0) (-0.00110963011234 0.000790704627804 0) (-0.0011927247504 0.000844089173993 0) (-0.00130077882452 0.00092055963572 0) (-0.0013881313146 0.000990048413427 0) (-0.00151315766307 0.00109341962041 0) (-0.00161927598901 0.00119547969074 0) (-0.00177033282232 0.00134064591917 -3.77630685986e-29) (-0.00192198906645 0.00151225118369 3.64271216353e-29) (-0.00210290535278 0.00174676420337 0) (-0.00228671765364 0.00205121606978 0) (-0.00248941636294 0.00247274105474 0) (-0.00269480436147 0.00306765232535 0) (-0.00275413905548 0.00383725408085 0) (-0.00285540850436 0.0050136282333 0) (-0.000461014339915 0.00708119646136 0) (-0.00564321788912 0.00892829596204 0) (0.0973647489891 0.260665297149 0) (-0.0336044924724 0.268789034896 0) (0.0302450937235 0.221778964729 0) (0.0426784375209 0.228355118896 0) (0.0472077993913 0.246527486955 0) (0.0619668461163 0.266584386684 0) (0.0728930106299 0.286754745138 0) (0.0849722472676 0.303843049459 0) (0.0963454029981 0.317856715038 0) (0.107077932196 0.328505307887 1.47242794809e-29) (0.117198065245 0.336067428801 0) (0.126633661398 0.340957220135 0) (0.135476893651 0.34363940002 0) (0.143772183645 0.344567200648 0) (0.151587088578 0.344122934603 0) (0.158968163954 0.342609343353 0) (0.165945668402 0.340245927347 0) (0.172526924596 0.337178646262 0) (0.178695050417 0.333490303173 0) (0.184407140087 0.329210932313 0) (0.189591109431 0.324324817495 0) (0.194140304537 0.31877300181 0) (0.197905637698 0.312451873691 0) (0.200687416679 0.30521228545 0) (0.202229818023 0.296863866787 0) (0.202221822848 0.287186514374 0) (0.200307910802 0.275947719507 0) (0.196110665868 0.262922848153 0) (0.18926523517 0.247915766795 0) (0.179462545188 0.230777841033 0) (0.166497421969 0.211422270734 0) (0.150328705614 0.189831424204 0) (0.131166326397 0.166059493535 0) (0.109523804553 0.140215765658 0) (0.0859300423461 0.112237041834 0) (0.0598096466949 0.0817176552133 0) (0.031115092583 0.0484233440847 0) (0.000861619619252 -0.00104774728989 0) (-0.00107237608923 -0.00192615871708 0) (3.78817754275e-05 -0.000650118616329 0) (-1.72756326989e-05 0.000411863981351 0) (-4.57337759708e-05 0.00041726265713 0) (-7.4545595154e-05 0.000412988089892 0) (-0.000101838610586 0.000412902829216 0) (-0.00012334767166 0.00040183569719 0) (-0.000148828865053 0.000391871865473 0) (-0.000184115780631 0.000392187506262 0) (-0.000228437391923 0.000410390110476 0) (-0.000269797953086 0.000425307579321 0) (-0.000309408276051 0.000436088800487 0) (-0.00035212221931 0.000449343748545 0) (-0.000402007248847 0.000467580169505 0) (-0.000443262228954 0.000473975148283 0) (-0.000494926041198 0.000487853967642 0) (-0.000527968313882 0.000482444575131 0) (-0.000555148929978 0.000469896601801 0) (-0.000600304857216 0.000474265065233 0) (-0.000667352679068 0.000497820739332 0) (-0.000710090667168 0.00050352366261 0) (-0.000770386554527 0.000523315403175 0) (-0.000848945657524 0.00056021420649 0) (-0.000940577452545 0.00060415784055 0) (-0.000994188834052 0.000618367254117 0) (-0.00108187891368 0.000654802110508 0) (-0.00117776795496 0.000702661031397 0) (-0.0012696523256 0.000750714373182 0) (-0.00137077088233 0.000807900332248 0) (-0.001493418835 0.000878710738329 0) (-0.00162196656117 0.000956470212052 0) (-0.00178319743999 0.00105854081151 0) (-0.00197370415328 0.00118845167844 0) (-0.00217439776158 0.00133882187431 0) (-0.00239329718539 0.0015171833358 0) (-0.00269688917273 0.00177462362762 0) (-0.00314521701413 0.0021529524116 0) (-0.00366226320696 0.00260813655689 0) (-0.00451332512754 0.00334758918719 0) (-0.00662859804344 0.0043897562572 0) (-0.000865277237917 0.0069671099758 0) (-0.126512979707 0.0660387624035 0) (0.110343031335 0.243875321581 0) (-0.0530975636774 0.284087543038 0) (0.0292766500962 0.232376868271 0) (0.038976205477 0.240057491165 0) (0.0451055911135 0.258366763212 0) (0.0596387710564 0.278835807145 0) (0.0703347082313 0.298778672585 0) (0.082339680828 0.315423588256 0) (0.0934005230458 0.328851314741 -1.51286344072e-29) (0.103871851686 0.338819386854 -2.63536584068e-29) (0.113696395411 0.345704007755 1.15918009816e-29) (0.12284224424 0.349953019657 0) (0.131400787318 0.352056868621 0) (0.139414065123 0.352470386968 0) (0.146945388379 0.35156562286 0) (0.154032291369 0.349627198258 0) (0.160694736451 0.346852187273 0) (0.16692725767 0.34336173707 0) (0.172697846344 0.339211795946 0) (0.177945111336 0.334402765498 0) (0.182573910359 0.328885000039 0) (0.186448426724 0.322559070904 0) (0.189383747477 0.315272856389 0) (0.191139517856 0.306822298534 0) (0.191420019087 0.296961839633 0) (0.189885105876 0.285426053363 0) (0.186175025502 0.271959861662 0) (0.179949341515 0.256352738278 0) (0.170935557423 0.238471943773 0) (0.158978652057 0.218292157228 0) (0.144081040453 0.195914719909 0) (0.126428810145 0.171546273184 0) (0.106425721726 0.145412869659 0) (0.0846973027823 0.117756236331 0) (0.0618136038058 0.0889384946779 0) (0.0361539405831 0.0581102175384 0) (0.00283684177436 0.00139001799342 0) (-0.0019837092065 0.000365187322271 0) (-0.000834419913943 -0.000547109436175 0) (-0.000187848794808 -0.000338634500099 0) (-1.81787763107e-05 0.000380193488995 0) (-4.86306683736e-05 0.000388495221098 0) (-7.81785885752e-05 0.00038838203619 0) (-0.000106531994438 0.000386693344097 0) (-0.000133944459831 0.000382547567484 -7.12583021933e-29) (-0.000157295749703 0.000366845676085 0) (-0.000182923254067 0.000353749952419 0) (-0.00022524358889 0.000367768206555 0) (-0.000269526567157 0.000382506583239 0) (-0.00031330630974 0.00039399523072 0) (-0.000355792618941 0.000403287774971 0) (-0.000407531305783 0.00041929653462 0) (-0.000452061216541 0.000425819686313 0) (-0.000503025433083 0.000435016033733 0) (-0.000552565032877 0.000440925026606 0) (-0.000600001223926 0.00044126957593 0) (-0.000628413036322 0.000425803123022 0) (-0.000681798967502 0.0004308956149 0) (-0.000754783816639 0.000452532802462 0) (-0.000807284996831 0.00046058372505 0) (-0.000877327236345 0.000479541761114 0) (-0.000961788186586 0.000511165128564 0) (-0.00106387430237 0.000549864213175 0) (-0.0011353149799 0.000568335913 0) (-0.00123036817682 0.00060100428916 0) (-0.00134060916374 0.00064753774973 0) (-0.00145780575523 0.000695817052968 0) (-0.00159395099128 0.000750562315205 0) (-0.00173472043966 0.000810649717535 0) (-0.00191974398763 0.000894677290546 0) (-0.00207795828412 0.000972852196253 0) (-0.0023171691316 0.00108130231221 0) (-0.00261540833633 0.0012124839037 0) (-0.00302650182294 0.00137787308613 0) (-0.00354880569313 0.00156904515821 0) (-0.00434671506127 0.00178434712674 0) (-0.00559127305693 0.00191126364662 0) (-0.00864434188345 0.00164141614193 0) (-0.000541888493238 -0.00111286108538 0) (-0.229547879007 -0.0296358440673 0) (0.168738867997 0.285754450233 0) (-0.0851420741751 0.311591385914 0) (0.033481555423 0.243287224308 0) (0.0361348019658 0.252132213116 0) (0.043352169509 0.270364621098 0) (0.0574643000469 0.291004357009 0) (0.0679278140124 0.310598958946 0) (0.0797495387623 0.326754907437 0) (0.0904584616289 0.33955914154 1.49747696947e-29) (0.100645420005 0.348835588432 0) (0.110158682576 0.355043190123 0) (0.119009640369 0.358657382668 0) (0.127280324242 0.360188912302 0) (0.135009729812 0.360089303002 0) (0.142254474934 0.358717315615 0) (0.149041797148 0.356336980426 0) (0.155380071567 0.353120839287 0) (0.161249557991 0.349162837962 0) (0.166601234887 0.344488946392 0) (0.171352861527 0.339065796616 0) (0.175383559207 0.332804705573 0) (0.178526010028 0.325560178965 0) (0.180559071277 0.317127221908 0) (0.181205883268 0.307247340633 0) (0.18014260907 0.295629957152 0) (0.177021262528 0.281988495418 0) (0.171507557703 0.266085287551 0) (0.163331222282 0.247776818663 0) (0.152339056352 0.22704747513 0) (0.138538267968 0.204023696329 0) (0.122134830941 0.178973413703 0) (0.10358653136 0.152257967738 0) (0.0835779050654 0.124068242459 0) (0.0624993101916 0.0942922938526 0) (0.0399940925074 0.0632064647625 0) (0.0161589928649 0.0301182371599 0) (-0.00063292585114 0.00135981042769 0) (-0.000839712008171 0.000433880965428 0) (-0.000659782237359 0.000109584683745 0) (-0.000206107966941 8.07616975865e-05 0) (-1.81061991023e-05 0.000346054215776 0) (-4.95752674982e-05 0.000358145250559 0) (-8.06139297774e-05 0.000358947458344 -7.44960518462e-29) (-0.000110720259548 0.000357460937994 0) (-0.000141227308932 0.000354231951975 7.29468058684e-29) (-0.000168898706044 0.000343956859522 0) (-0.000192345429011 0.000328224605517 0) (-0.000225183199151 0.000325954770459 0) (-0.00027071053821 0.000338652038464 0) (-0.000315866862438 0.000349439704625 0) (-0.000361639757959 0.00035811414545 0) (-0.000407954120606 0.000366375335577 0) (-0.000465866788505 0.000381407684672 0) (-0.000509733552288 0.000383017390752 0) (-0.000569812824811 0.000392544900354 0) (-0.000612951930664 0.000388662950902 0) (-0.000665989172511 0.000386587622535 0) (-0.000705905233779 0.000375223761619 0) (-0.000765296027853 0.000378941150203 0) (-0.000843786028633 0.000395977530513 0) (-0.000912412680076 0.000408210614727 0) (-0.000988224132337 0.000423633448699 0) (-0.00107781833003 0.000447103598776 0) (-0.00118688023785 0.000480590813272 0) (-0.0012758481831 0.00050060746349 0) (-0.00138066456626 0.000527873225993 0) (-0.00152284715905 0.000570825276455 0) (-0.00164030078492 0.000604424830862 0) (-0.00180652836914 0.000656499554545 0) (-0.00194284808639 0.000700053724718 0) (-0.00217096264462 0.000756886178745 0) (-0.00243747525274 0.00080996559561 0) (-0.002764953366 0.000871028522641 0) (-0.0031588134944 0.000934526651654 0) (-0.00363112389375 0.000986864605794 0) (-0.00417694833689 0.000970525336151 0) (-0.00466643208871 0.000766588777313 0) (-0.00494183353867 0.000114901176466 0) (0.0012445420295 -0.00321631654375 0) (-0.0235851399066 0.0023670214393 0) (0.171997131123 0.334291194844 0) (-0.0984802350182 0.330017506386 0) (0.0453924248035 0.252772509385 0) (0.033585222087 0.264539637389 0) (0.0422622516833 0.282249072056 -2.74547206642e-29) (0.0555730356572 0.302931783651 0) (0.0657039311431 0.322128881466 0) (0.0772271994784 0.33777838559 0) (0.08754876929 0.349944937759 0) (0.0974264028801 0.358534525891 0) (0.106613792469 0.364074807911 0) (0.115164293878 0.367065372809 0) (0.123143215528 0.368032581724 0) (0.130586010582 0.367420834718 0) (0.137540182031 0.365573129492 0) (0.144021504413 0.362730671757 0) (0.150025380164 0.359039313181 0) (0.155516227352 0.354563125347 0) (0.160426105544 0.349294640667 0) (0.16464977961 0.343162476639 0) (0.168038610438 0.33603438237 0) (0.170392794312 0.32771501009 0) (0.171456844393 0.317945838104 0) (0.170924802763 0.306420324001 0) (0.168460672839 0.292820044823 0) (0.163735531535 0.276866031259 0) (0.156479357021 0.258374604044 0) (0.146544570587 0.237308631595 0) (0.133968152107 0.213811652214 0) (0.118999449471 0.188208426636 0) (0.102102293237 0.160994785709 0) (0.0840391643429 0.132868321885 0) (0.065777829108 0.1045123815 0) (0.0468240782768 0.0758828021746 0) (0.0247576478622 0.0461299644777 0) (2.68721308553e-05 0.000700310113025 0) (-0.00244608735725 0.000381880870671 0) (-0.00130467169451 0.000629529615588 0) (-0.000799827593152 0.000579515499627 0) (-0.000244699770632 0.000526735810053 0) (-1.66990497632e-05 0.000311036641566 0) (-4.84692265163e-05 0.000325914857196 0) (-8.1374132578e-05 0.000327390421016 7.53581252479e-29) (-0.000113556578134 0.000326763183794 0) (-0.00014561253666 0.000323767916971 0) (-0.000176570344335 0.000316575913935 0) (-0.000202491721412 0.000301280466594 0) (-0.000227635388104 0.000287276760733 0) (-0.000270468605106 0.000293542152874 0) (-0.000317402979249 0.00030330798774 0) (-0.000364975033262 0.000311113793491 0) (-0.000413251832972 0.000317261924016 0) (-0.000464086310518 0.000323969469769 0) (-0.000525492434887 0.000334569846776 0) (-0.000571374623839 0.000333756829724 0) (-0.000640997108168 0.00034327490443 0) (-0.000684177437892 0.000332607533682 0) (-0.000746857669427 0.000328370156523 0) (-0.000792927622476 0.000319526781007 0) (-0.000858902079897 0.000318234020121 0) (-0.000932922033177 0.000326571750301 0) (-0.00103485943997 0.000348102145499 0) (-0.00110110133743 0.000356297969488 0) (-0.00120169596822 0.000375565178876 0) (-0.00130649784613 0.000396819186781 0) (-0.0014145283264 0.000413223760557 0) (-0.00153377619433 0.000436648228294 0) (-0.00167482117233 0.000468688348053 0) (-0.0017962428365 0.000490505329143 0) (-0.00198958199343 0.000511373242363 0) (-0.00223075325268 0.00052518298921 0) (-0.00244841514632 0.000527418780659 0) (-0.00274054552658 0.000524290523563 0) (-0.0030992101148 0.000508404121846 0) (-0.00354495076669 0.00046818742108 0) (-0.00410579871407 0.000409987341297 0) (-0.00476465256407 0.000394520441304 0) (-0.00514552998145 0.000951249042721 0) (0.0011677974778 0.0014296755437 0) (-0.0578520360081 0.00679122620984 0) (0.177215997779 0.319570844981 0) (-0.106389573876 0.332935439367 0) (0.0554301704593 0.259841526497 0) (0.0305774960589 0.276023386353 0) (0.0419263028272 0.2934592411 2.69992551381e-29) (0.053900175077 0.314421670443 0) (0.0636391409162 0.33326920373 0) (0.0747722048738 0.348435690449 0) (0.0846814650255 0.359976726884 0) (0.0942291144277 0.36789899504 0) (0.103080586861 0.372789863374 0) (0.111326832289 0.375172373808 0) (0.119011033647 0.375584724308 0) (0.12616481629 0.374461397147 0) (0.132824389377 0.372127566008 0) (0.138993069359 0.368799526732 0) (0.144651888567 0.364594174007 0) (0.149747873137 0.359542785927 0) (0.154192380507 0.353600811003 0) (0.157855472192 0.34665477057 0) (0.160559795282 0.338525232342 0) (0.162074395441 0.328965342078 0) (0.162115766919 0.317666484282 0) (0.160363591713 0.304287388139 0) (0.156496265598 0.288509935097 0) (0.150243605201 0.2701088718 0) (0.141446158657 0.249018147604 0) (0.130112646813 0.225385395996 0) (0.116467319467 0.199607018375 0) (0.100936376305 0.172291359345 0) (0.0840236935031 0.144074095744 0) (0.06632859312 0.115434155926 0) (0.0489191522882 0.0867177864667 0) (0.0308561788926 0.0569319394493 0) (0.00230325931495 0.00270470704717 0) (-0.00245374909096 0.00216887751161 0) (-0.00197259105625 0.00140852713877 0) (-0.00135102015647 0.00123282935089 0) (-0.000818136695411 0.00114060867827 0) (-0.000258081619348 0.00107005424204 0) (-1.54959611769e-05 0.00028102673683 0) (-4.6635997295e-05 0.000292102684681 0) (-8.10160182862e-05 0.00029453104971 0) (-0.000114254532068 0.000293640044727 0) (-0.000147978314986 0.000291527430998 0) (-0.000180304675477 0.000285648777225 0) (-0.000213575730875 0.000278206153952 0) (-0.000236657622401 0.000257838815801 0) (-0.000268852739979 0.000249304453365 0) (-0.000316281518501 0.000255380982883 0) (-0.00036562367584 0.000262073391235 0) (-0.000416171794154 0.000267172636302 0) (-0.000466839457608 0.000270780587908 0) (-0.000524840834889 0.000276486723746 0) (-0.000577912707353 0.00027623804795 0) (-0.000638879443374 0.000277269635704 0) (-0.000714143962249 0.000280384983013 0) (-0.000760277010153 0.000267429415831 0) (-0.000826997073688 0.000262036705432 0) (-0.0008991570694 0.000257016927626 0) (-0.000949829945678 0.000246583137727 0) (-0.00103894781175 0.000256118111245 0) (-0.00113376223071 0.000271487302695 0) (-0.00121946389609 0.000279325985289 0) (-0.00132040665963 0.000288382587551 0) (-0.00143507745236 0.000300418018094 0) (-0.0015504269949 0.000314930051993 0) (-0.00166864543992 0.000327400359438 0) (-0.00182647547628 0.00033043214726 0) (-0.00202931594368 0.000323316280153 0) (-0.00217626317535 0.000307464851183 0) (-0.00239905779299 0.000281221273781 0) (-0.00265877482387 0.000220884622568 0) (-0.00298634862214 0.000113496285401 0) (-0.00344127367015 -7.35292209102e-05 0) (-0.00412051730552 -0.000409090363946 0) (-0.00562809837778 -0.000965386819537 0) (-0.00671513614369 -0.00190765991597 0) (-0.00557848741159 -0.0101245017577 0) (-0.241651623577 -0.00521000357865 0) (0.198732498455 0.334553950578 0) (-0.133834223663 0.343335898654 1.35938266054e-29) (0.0613445210608 0.266598790622 0) (0.02635545594 0.286391791255 0) (0.0416842216355 0.3038628301 0) (0.0521477763591 0.325374984103 0) (0.0616440959099 0.343947919666 0) (0.0723505996284 0.358685899828 0) (0.0818477387127 0.369633250975 0) (0.0910565218177 0.376918118391 0) (0.099569643438 0.381183150262 0) (0.10751144574 0.382975878301 0) (0.114900252692 0.382843304669 0) (0.121763935217 0.381207957638 0) (0.128125679542 0.378375346401 0) (0.133975596172 0.374534803513 0) (0.139279079521 0.369771860844 0) (0.143964463994 0.364081954145 0) (0.147921134672 0.357379970091 0) (0.150993757183 0.349507171152 0) (0.152977103893 0.34023568996 0) (0.153613220488 0.329270185885 0) (0.152600291355 0.316263477167 0) (0.149619867214 0.300864510648 0) (0.144385908148 0.282795931893 0) (0.136709113948 0.261937506766 0) (0.126556196188 0.238384471182 0) (0.114087597304 0.212464692674 0) (0.0997032168712 0.184730820486 0) (0.0841229529358 0.155899349164 0) (0.0683044470547 0.126514476432 0) (0.0528388287482 0.0964909962446 0) (0.0369991773546 0.0663480244257 0) (0.0170103328801 0.0405347127095 0) (-0.00072824374814 0.00221303228708 0) (-0.00140231352288 0.00182204502274 0) (-0.00153133782646 0.00175612592473 0) (-0.00126117004036 0.00176506843399 0) (-0.000774295508244 0.00169339020685 0) (-0.000234913036115 0.00156719639403 0) (-1.5538658321e-05 0.000252303657661 0) (-4.58201004017e-05 0.000257819964221 0) (-8.00839345183e-05 0.000260715898293 0) (-0.000113485717777 0.000259682795488 0) (-0.000147266993691 0.00025731722916 0) (-0.000181421684098 0.000252960236713 0) (-0.000213552357981 0.000243146675146 0) (-0.000247617085077 0.000232277342264 0) (-0.000273065699365 0.00021351667819 0) (-0.000312837653561 0.000207850879984 0) (-0.000363606175885 0.000211412136699 0) (-0.000415998563242 0.000215299496064 0) (-0.000469882223443 0.000217512940791 0) (-0.000524132356302 0.000218827298722 0) (-0.00058893113883 0.000220805593514 0) (-0.000640742366206 0.00021409789217 0) (-0.000710956390064 0.000212822785563 0) (-0.000771922258436 0.000205968226964 0) (-0.000837871395375 0.000194934554417 0) (-0.000905266723202 0.000185780006807 0) (-0.00098242167204 0.000177257989696 0) (-0.00104852468353 0.000173013257901 0) (-0.00114075655928 0.000179759362545 0) (-0.00122975023886 0.000184211832593 0) (-0.00133619388355 0.00018588673198 0) (-0.00142976637907 0.000185829006032 0) (-0.00155405353514 0.000192813502975 0) (-0.00167579489514 0.000189556080989 0) (-0.00183979766782 0.000176810962165 0) (-0.00194943509302 0.000160320447398 0) (-0.00211348680072 0.000134224439286 0) (-0.00227629820747 7.44444287992e-05 0) (-0.00246649806698 -2.89414345021e-05 0) (-0.00269045174427 -0.000205528523494 0) (-0.00294264118681 -0.000518223444851 0) (-0.00334467065198 -0.0011306869371 0) (-0.00368537835888 -0.00225616035798 0) (-0.00412234220547 -0.00502564812685 0) (0.00301889205962 -0.0113356072133 0) (-0.0387067989138 -0.00846571788465 0) (0.191442007002 0.380723842442 0) (-0.142428825664 0.357453211086 -1.31253480075e-29) (0.0728865274965 0.274167257871 0) (0.0220606792263 0.296753096605 0) (0.0415340466529 0.313850740702 0) (0.0502173819809 0.335875871678 0) (0.059653903303 0.354173657293 -6.27559179245e-30) (0.069920291599 0.368526130476 6.18294232e-30) (0.0790310017773 0.37891165158 0) (0.0879053999694 0.385590977537 0) (0.09608622205 0.389255243772 0) (0.103727855557 0.390476785035 0) (0.110823595648 0.389808383731 0) (0.117398021112 0.38765885556 0) (0.123460121489 0.384312184425 0) (0.128986325457 0.379928621168 0) (0.133925322621 0.37455982461 0) (0.138185745137 0.36816241626 0) (0.141634165287 0.360607771167 0) (0.144089736074 0.351690052091 0) (0.145320992618 0.341134072827 0) (0.145048442519 0.328602306698 0) (0.142964173834 0.313723896934 0) (0.138773220214 0.296163660198 0) (0.132259229486 0.275719440815 0) (0.123369686341 0.252415393437 0) (0.112295140648 0.226553997447 0) (0.0994927280956 0.198704398581 0) (0.0856698334843 0.169681018675 0) (0.0719020800198 0.140612446923 0) (0.0596036071815 0.112718784769 0) (0.048332255602 0.0859081812792 0) (0.0313081977502 0.0579719749612 0) (2.44926377785e-05 0.00161888400937 0) (-0.00247128350683 0.00147113217668 0) (-0.0016403776475 0.00180542478381 0) (-0.00137007091153 0.00194951224358 0) (-0.00107634488287 0.00211605292595 0) (-0.000689946464811 0.00222550097726 0) (-0.000202421321773 0.00210800620455 0) (-1.61592698019e-05 0.000221853183047 0) (-4.62124463668e-05 0.000225593945945 0) (-7.89053859795e-05 0.000226935941657 0) (-0.000112125906085 0.000226176053241 0) (-0.00014545305753 0.000223098191379 0) (-0.00017991562746 0.000218729134195 0) (-0.000214824718806 0.000211178344675 0) (-0.000246391182949 0.000196859517269 0) (-0.000283022407695 0.000183929198444 0) (-0.000311564972258 0.000165848167633 0) (-0.000357015782935 0.000159965849164 0) (-0.000411466875922 0.000161373164599 0) (-0.000467196466227 0.00016196022201 0) (-0.000524596839135 0.000160619467149 0) (-0.000583985353395 0.000158436267267 0) (-0.000652547748305 0.000156124783904 0) (-0.000704811403716 0.000146784949025 0) (-0.000781731964392 0.000139730050489 0) (-0.000842225929686 0.000126891390438 0) (-0.000925444552364 0.000116203623375 0) (-0.000984574456192 0.000103486594154 0) (-0.00105787044096 9.46181275285e-05 0) (-0.00114324405855 9.15779261668e-05 0) (-0.0012378724735 8.9256056953e-05 0) (-0.00133397166772 8.53340096199e-05 0) (-0.00143610027653 8.11493153201e-05 0) (-0.00152588107676 7.29004133707e-05 0) (-0.00166449432425 6.29233540517e-05 0) (-0.00175617559242 5.087389051e-05 0) (-0.00188666133752 3.11141624207e-05 0) (-0.00199795004942 -1.06858567417e-05 0) (-0.00213696475996 -8.08767960496e-05 0) (-0.00226734653817 -0.000196654725525 0) (-0.00238502898111 -0.000385868456456 0) (-0.00247335625115 -0.000709645601417 -2.78880712924e-29) (-0.00246520024982 -0.00124678297126 2.82665694561e-29) (-0.00210814873615 -0.00210056873542 0) (-0.00137421491663 -0.00337106905846 -2.65875869941e-29) (0.00793887958863 -0.00714792786815 0) (-0.0358310603597 -0.00446867150061 0) (0.168816620154 0.392844058249 0) (-0.145957312289 0.359380786526 0) (0.0839409611403 0.280407882991 0) (0.0175915346157 0.306768216079 0) (0.0418252996853 0.323435591007 0) (0.0482040199494 0.34599095543 0) (0.0576779150249 0.36399201497 0) (0.0674665036096 0.377981518454 0) (0.0762232965983 0.387825978138 0) (0.0847736083615 0.393926837211 0) (0.0926340860915 0.397012880676 0) (0.0999835626913 0.397679822441 0) (0.106791447456 0.396482575165 0) (0.113079539143 0.393814287142 0) (0.118841914411 0.389935308378 0) (0.124041068029 0.384974519012 0) (0.128608178333 0.378947092131 0) (0.132431635387 0.371768043509 0) (0.135355250651 0.363263023475 0) (0.13717421144 0.353178995843 0) (0.137635807958 0.341198037433 0) (0.136450894214 0.326953254584 0) (0.133328301899 0.310077231883 0) (0.128031500167 0.290298089302 0) (0.120454636072 0.267559751478 0) (0.110711178819 0.242126705124 0) (0.0992066912007 0.214629510411 0) (0.0865913426149 0.185990103336 0) (0.0734960765995 0.15716569161 0) (0.0604651096218 0.128805331815 0) (0.0485257361656 0.100990482869 0) (0.03577636738 0.0714884150386 0) (0.00415752456193 0.00614713818042 0) (-0.00173505833082 0.00296425436423 0) (-0.00162304005496 0.00219062492301 0) (-0.00132404826377 0.00215380103447 0) (-0.00106817705663 0.00223811929719 0) (-0.000807710640977 0.00241613956399 0) (-0.000538064295347 0.0025547967528 0) (-0.000167434342902 0.00237154937785 0) (-1.60969765611e-05 0.000190029378853 0) (-4.63156733116e-05 0.000194748991709 0) (-7.7442284051e-05 0.000194136480616 0) (-0.00011006302209 0.000192971566307 0) (-0.000143180147225 0.000189249867137 0) (-0.000177480094413 0.000183839131747 0) (-0.000213633002493 0.000176564290431 0) (-0.000248699002016 0.000164045491999 0) (-0.000281989739184 0.000147766495871 0) (-0.000320344533306 0.000132318128331 0) (-0.000350008709603 0.000113620958372 0) (-0.00040088300352 0.000106568238275 0) (-0.000457890980545 0.000104248417959 0) (-0.000516903407091 0.000101068285316 0) (-0.000577948148293 9.62070765819e-05 0) (-0.000640557196574 9.05740457465e-05 0) (-0.000713313886371 8.35495802644e-05 0) (-0.000769807870256 7.01435783897e-05 0) (-0.000849554298673 5.72788450916e-05 0) (-0.000909882984348 4.38696332021e-05 0) (-0.000991328224016 3.13428681721e-05 0) (-0.00105682463581 1.70066775201e-05 0) (-0.00114054072761 5.11938003845e-06 0) (-0.001231787778 -2.46609529286e-06 0) (-0.00132156176988 -8.90001210634e-06 0) (-0.00140515418462 -1.771188219e-05 0) (-0.00151082366693 -3.01474208891e-05 0) (-0.00159332496904 -4.1220720022e-05 0) (-0.00170337288325 -5.54024406831e-05 0) (-0.00179622604556 -8.11670354397e-05 0) (-0.00190539283583 -0.000123045538744 0) (-0.00198744263665 -0.000187083316417 0) (-0.00205932478726 -0.000288028451882 0) (-0.00209036539476 -0.000440266587865 0) (-0.00205117484364 -0.000664053239578 0) (-0.00182007682179 -0.000957797044616 -2.67502756116e-29) (-0.00123549806577 -0.00132859743895 0) (-0.000540522986942 -0.001696691038 2.43528337897e-29) (0.00748969558153 -0.00286430723507 0) (-0.0309954478521 0.000513114397981 0) (0.151375009889 0.395252745923 0) (-0.150438703533 0.357258094264 0) (0.0905054591611 0.285719769006 0) (0.0121814789574 0.315732242539 0) (0.0422011201451 0.332393613915 0) (0.0459939825691 0.355694131753 4.10024618413e-30) (0.0557031757679 0.373422268213 -4.04114050944e-30) (0.0649844153108 0.387076753092 0) (0.073425313198 0.396396300538 0) (0.0816629419575 0.401940910165 0) (0.0892180262491 0.404467247978 0) (0.0962855911795 0.404592924726 0) (0.102813044718 0.40287092859 0) (0.108819644769 0.399676481523 0) (0.114284145466 0.395243881526 0) (0.119155040439 0.389668204982 0) (0.123345537328 0.382925617974 0) (0.126723824747 0.374887378897 0) (0.12911183265 0.365332791573 0) (0.130283095523 0.353964631296 0) (0.12996901937 0.340431978551 0) (0.127881086884 0.324358595572 0) (0.123760541471 0.305414414655 0) (0.117446467922 0.283434380502 0) (0.108952978286 0.258543041714 0) (0.0985535275713 0.231235880425 0) (0.0868758627474 0.202372450366 0) (0.0749495857908 0.173000349641 0) (0.0639773987979 0.143796990087 0) (0.0545732738975 0.11421466151 0) (0.045174366663 0.0840755331344 0) (0.0272236095405 0.0588763070928 0) (-0.000410142597015 0.00288693677021 0) (-0.000867763460435 0.0023837743204 0) (-0.00112827834639 0.00234636885011 0) (-0.000975435359278 0.0023803249854 0) (-0.000766718029852 0.00248618264442 0) (-0.000555451649461 0.00264534449048 0) (-0.000370096461125 0.00278180190908 0) (-0.000122598192424 0.00286724588234 0) (-1.53177500012e-05 0.000157929715216 0) (-4.51843668927e-05 0.00016341161716 0) (-7.56031139071e-05 0.00016223968706 0) (-0.000107471475621 0.00015984353072 0) (-0.000140831288482 0.000155491554881 0) (-0.000175198822442 0.000148816688179 0) (-0.000211026350559 0.00014028667554 0) (-0.000249218367845 0.000129034546099 0) (-0.00028182751892 0.000111657780285 0) (-0.000322099060604 9.57814862044e-05 0) (-0.000357935150742 7.71266299321e-05 0) (-0.000392320925962 5.88192797256e-05 0) (-0.000442789493819 4.76362806781e-05 0) (-0.000501782963296 4.01753360635e-05 0) (-0.000564506828011 3.33642018173e-05 0) (-0.000628653980719 2.47667767064e-05 0) (-0.000693509379167 1.52232956293e-05 0) (-0.000768552387671 3.17194785561e-06 0) (-0.000826802079846 -1.21376296865e-05 0) (-0.000906850454147 -2.78821185175e-05 0) (-0.000971988029655 -4.37176896636e-05 0) (-0.00104991173441 -6.09809100121e-05 0) (-0.00112865072785 -7.65261683717e-05 0) (-0.0012054731218 -8.70591313241e-05 0) (-0.00129322711751 -9.67411324653e-05 0) (-0.00138009607868 -0.000107647738484 0) (-0.00145461142052 -0.000119195812822 0) (-0.00155076958021 -0.000133441688083 0) (-0.00163174624571 -0.000149522448877 0) (-0.00172754583209 -0.000174042458437 0) (-0.00179222194761 -0.000205975521547 0) (-0.00186704224094 -0.000255936669897 0) (-0.00191074891969 -0.00032680816129 0) (-0.0018972720823 -0.000414556975858 0) (-0.00178640087462 -0.000507436427068 0) (-0.00153173821909 -0.000596791636082 2.51627087835e-29) (-0.00107848462496 -0.000652454708164 0) (-0.00065354800168 -0.000484355002783 0) (0.00499269302242 1.93189440937e-05 0) (-0.0309165790708 0.00198803078083 0) (0.14248741481 0.400319416351 0) (-0.156055005788 0.358703214908 0) (0.0942037616829 0.292021570062 0) (0.00631255178131 0.324151019464 0) (0.0423675100834 0.340944869591 0) (0.0434580641678 0.365045895214 0) (0.0536975819095 0.382492909608 0) (0.0624623463271 0.395836568819 0) (0.0706385949003 0.404643595163 0) (0.0785771768108 0.409650322864 0) (0.085843988031 0.411631642044 0) (0.0926410738094 0.411226055569 0) (0.0988970484365 0.40898043799 0) (0.104628608565 0.405249632529 0) (0.109798982222 0.400239222552 0) (0.114342653197 0.394007962689 0) (0.118154597118 0.386490655826 0) (0.121083189775 0.377513302085 0) (0.122929965794 0.366809526145 0) (0.123450229431 0.354042976975 0) (0.122368401324 0.338842210152 0) (0.119416280699 0.320845386297 0) (0.114406479184 0.299799977895 0) (0.107321499841 0.275704854671 0) (0.0984002253648 0.248938496126 0) (0.0882206214179 0.220341615979 0) (0.0778166334706 0.191210231294 0) (0.068870213836 0.163076297162 0) (0.0634924072842 0.13706807041 0) (0.0606525487499 0.112454744487 0) (0.0469205595453 0.0849922140456 0) (0.000488851227061 0.00272210588117 0) (-0.00217553715173 0.00195920618139 0) (-0.00127716822959 0.00234849955067 0) (-0.00100808576677 0.00250625607019 0) (-0.000739727547736 0.00260664911861 0) (-0.000508750374661 0.00272143393796 0) (-0.000344903738763 0.00285558020563 0) (-0.000208482618565 0.00297772931374 -1.68308168501e-29) (-4.50157354586e-05 0.00296555938713 0) (-1.48511847587e-05 0.000128618052026 0) (-4.40652875006e-05 0.000132857777082 0) (-7.46192164063e-05 0.000131703527894 0) (-0.000106223444421 0.000127556997596 0) (-0.00013955048144 0.000121856681184 0) (-0.000173917996334 0.000114024454823 0) (-0.000209277544445 0.0001040789426 0) (-0.000246639203851 9.22499480316e-05 0) (-0.000283935321274 7.58256323316e-05 0) (-0.000317917950334 5.67308607343e-05 0) (-0.000361555966075 3.95683773808e-05 0) (-0.00039586747882 2.05266835979e-05 0) (-0.000435050219344 -5.56726483669e-07 0) (-0.000485256284497 -1.79083863876e-05 0) (-0.000545227004968 -2.93778212809e-05 0) (-0.000609801734948 -4.04895441948e-05 0) (-0.000674688757167 -5.21283281824e-05 0) (-0.000740817040796 -6.53460154629e-05 0) (-0.000816170001064 -8.13038805282e-05 0) (-0.000876982673756 -9.83311702601e-05 0) (-0.000954699456784 -0.000117510371694 0) (-0.00102121372903 -0.000136037068605 0) (-0.001095738723 -0.000152742393575 0) (-0.00117333252138 -0.000166184487905 0) (-0.00125515766751 -0.000179289012813 0) (-0.00133007792087 -0.00019054996151 0) (-0.00142273258312 -0.000204610410364 0) (-0.00149033549582 -0.000216436742362 0) (-0.00158219652612 -0.000233722938423 0) (-0.00164900310892 -0.000251129082948 0) (-0.00172779182416 -0.000275792126723 0) (-0.00176972241928 -0.00030329696755 0) (-0.00180130802392 -0.000336086195864 0) (-0.0017626394752 -0.000352981049497 0) (-0.0016616625457 -0.00035507934527 0) (-0.00151509300338 -0.000330818383779 0) (-0.00120831581968 -0.00019314405703 0) (-0.00106539626902 0.000161426907615 0) (0.00289751547735 0.000914461895879 0) (-0.0328412921331 0.00240178440696 0) (0.139808788784 0.408071136164 0) (-0.162256776317 0.363639885021 0) (0.0972471558273 0.299486709275 0) (0.000756936981974 0.33261537303 0) (0.0424086488886 0.349465952834 0) (0.0406775927168 0.374184334372 0) (0.0516871632819 0.391268007064 0) (0.0599041469082 0.40429714405 0) (0.0678700853031 0.412591610061 0) (0.0755222398932 0.417073008063 0) (0.0825187883525 0.418520068336 0) (0.0890571665866 0.417590218359 0) (0.0950516401761 0.414819506426 0) (0.100516025322 0.410539736699 0) (0.105398052341 0.404924952879 0) (0.109618349275 0.397995131959 0) (0.113053904748 0.389641824675 0) (0.115534681207 0.37964557078 0) (0.11684513019 0.367697775175 0) (0.116728500992 0.353433588521 0) (0.114915508381 0.336483746698 0) (0.111180223032 0.316542418222 0) (0.105435793283 0.29350334647 0) (0.0978318016376 0.267618020723 0) (0.0888014668723 0.239586202422 0) (0.0790612896662 0.210570717793 0) (0.0696786452873 0.1820945091 0) (0.0622014186856 0.155374142017 0) (0.0579514494411 0.12994545531 0) (0.050509389782 0.101942795917 0) (0.0054494358599 0.00770891765912 0) (-0.00169079785674 0.00396376161874 0) (-0.00130303034183 0.00286417855507 0) (-0.000980754697377 0.0027362777015 0) (-0.000732902573129 0.002779303399 0) (-0.000500928710158 0.00287212803778 0) (-0.000285296676756 0.00288913242652 0) (-0.000177509004136 0.00293005362453 0) (-0.000110776227764 0.00309633553841 1.4442675919e-29) (-6.56352226134e-06 0.00310274035064 0) (-1.45986233984e-05 0.000100308120345 0) (-4.51641317955e-05 0.000105554989065 0) (-7.56745037596e-05 0.000101689874442 0) (-0.000107033288138 9.59115497044e-05 0) (-0.000139584398807 8.87163046773e-05 0) (-0.00017312830697 7.96966076116e-05 0) (-0.000207588097035 6.86201747046e-05 0) (-0.000242936045541 5.55648230516e-05 0) (-0.00028154529829 3.98503384943e-05 0) (-0.00031326510506 1.91067188537e-05 0) (-0.000353150121093 -2.28382456223e-06 0) (-0.000396177387385 -2.20582189064e-05 0) (-0.000453064120548 -4.39962031127e-05 0) (-0.00047586489917 -6.39108592127e-05 0) (-0.000529406275507 -8.54108197892e-05 0) (-0.00058462436505 -0.000102773964814 0) (-0.000649234727356 -0.000117660317549 0) (-0.000715998265564 -0.00013391846288 0) (-0.000782615065068 -0.000150041498298 0) (-0.000856770087154 -0.00016885726219 0) (-0.000919890576283 -0.000188310562388 0) (-0.000996734993329 -0.000209995322221 0) (-0.00106292181117 -0.000226691070552 0) (-0.00113512827624 -0.000242192099691 0) (-0.00121721194559 -0.000258838003014 0) (-0.00129350053423 -0.000271936671623 0) (-0.00136351604819 -0.000282347434367 0) (-0.00144910954882 -0.000296688118594 0) (-0.0015181159041 -0.000308517680977 0) (-0.00159975814851 -0.000323354281801 -3.28120593851e-29) (-0.00164811502949 -0.000330901114473 0) (-0.00170467242957 -0.000339927265227 0) (-0.00172306255595 -0.000331101135364 0) (-0.00167335663813 -0.00029873841595 0) (-0.00163811561018 -0.000257353358487 0) (-0.00153409558785 -0.000155752606391 0) (-0.00138983230312 3.27172380221e-05 0) (-0.00143445878116 0.000363065954767 2.04984576083e-29) (0.00199057957431 0.000994908274093 -2.76532244516e-29) (-0.0349132945488 0.00213619730765 0) (0.141060912602 0.416150682582 0) (-0.168793609162 0.369798892355 0) (0.100532040478 0.30725114416 0) (-0.00426698289903 0.341148026563 0) (0.0424698050025 0.35804711588 0) (0.0378254115019 0.383164700397 0) (0.0497386121928 0.399797690661 0) (0.0573366624746 0.412491791919 0) (0.0651368562221 0.420262908472 0) (0.0725076318677 0.424226129988 0) (0.079250228313 0.425146257423 0) (0.0855408417444 0.423696798607 0) (0.0912843271875 0.420397594374 0) (0.0964906436629 0.415554549327 0) (0.101092156184 0.409307266569 0) (0.104995778967 0.401634710324 0) (0.108060851162 0.392383956219 0) (0.110100238175 0.381291271382 0) (0.110883908109 0.36801154096 0) (0.110147201779 0.352164972845 0) (0.107638606004 0.333408884466 0) (0.103193418918 0.311529891377 0) (0.0968598417946 0.28661421028 0) (0.0890312694395 0.259208473766 0) (0.0804705636622 0.230324151785 0) (0.0721709970004 0.2013309911 0) (0.0653898342951 0.173982539203 0) (0.0614990758947 0.149784483432 0) (0.0578980649035 0.126454895457 0) (0.0414410285164 0.0943305528816 0) (0.000205747146611 0.00410243232612 0) (-4.40491395747e-05 0.00328474497013 0) (-0.00063311063439 0.00296879989371 0) (-0.000610121924928 0.00291630258941 0) (-0.00048149451098 0.00296384790404 0) (-0.000336118032681 0.00302345950309 1.01978784085e-29) (-0.000185801058892 0.00300260176219 0) (-9.20257277639e-05 0.00284284556289 0) (-7.8988058711e-05 0.00311633569445 0) (-1.9514091227e-05 0.00292252694565 0) (-1.40062893997e-05 7.08187795204e-05 0) (-4.43421018126e-05 7.35646280673e-05 0) (-7.53198244756e-05 7.01585127967e-05 0) (-0.000106545479259 6.41079909125e-05 0) (-0.000138156551759 5.60860915118e-05 0) (-0.000170521647902 4.62414244242e-05 0) (-0.000203546136499 3.42332309256e-05 0) (-0.000237566731604 2.00023207371e-05 1.10250717764e-29) (-0.000273114746367 3.72183388434e-06 -1.08178625567e-29) (-0.000311691540394 -1.68305421928e-05 0) (-0.000344034959441 -4.16427619116e-05 0) (-0.000379881835786 -6.73326713653e-05 0) (-0.000430491924356 -8.92866925331e-05 0) (-0.000481230221728 -0.000110123471956 0) (-0.000524309333102 -0.000134232605679 0) (-0.000565350848391 -0.000155980492454 0) (-0.000617880886341 -0.000177779897301 0) (-0.000685220064094 -0.000200342364017 0) (-0.000746498796139 -0.000218277014153 0) (-0.000814840178825 -0.000237458617139 0) (-0.000888654458954 -0.000260030918388 0) (-0.000951003684859 -0.000278890931359 0) (-0.00101666468301 -0.000296473002248 0) (-0.00109066586961 -0.000316010641762 0) (-0.00116796527083 -0.000334380172765 0) (-0.00123974917531 -0.000347746873063 0) (-0.00132664181222 -0.000362843292849 0) (-0.00139223913847 -0.000371345667295 0) (-0.00148005277578 -0.000385500631625 0) (-0.0015473244663 -0.000390380113098 3.22171577924e-29) (-0.00161592035563 -0.000388010512921 0) (-0.00164843267451 -0.000367235700998 0) (-0.00165459303376 -0.000328217056653 0) (-0.00166421315342 -0.000280197622973 0) (-0.00165361388491 -0.000206583360097 0) (-0.00161233171711 -8.77546415822e-05 0) (-0.00162002447796 8.6781465167e-05 0) (-0.00170702234984 0.00035297733629 0) (0.00159455209837 0.000783890718575 0) (-0.0369475296091 0.0016772867929 0) (0.144554489309 0.423440536693 0) (-0.175578919829 0.375906741951 0) (0.104146035137 0.314741818101 0) (-0.00892165746988 0.349554397659 0) (0.0425949554269 0.36655504532 0) (0.0350096231892 0.391937106996 0) (0.0478950548321 0.408085006932 0) (0.0547880216705 0.420432162634 0) (0.0624584966702 0.42767094762 0) (0.0695439130629 0.431122909056 0) (0.076046056973 0.431522346792 0) (0.0820982732596 0.429556971084 0) (0.0876015052294 0.425724969494 0) (0.0925600411891 0.420303540109 0) (0.0968911062767 0.413394997158 0) (0.100488147561 0.404935393386 0) (0.103193786118 0.394726928048 0) (0.104806516581 0.3824645366 0) (0.105087616644 0.367775708169 0) (0.103775877207 0.350286554697 0) (0.100667468816 0.329721159728 0) (0.095705639626 0.306027012158 0) (0.0891269997729 0.279590060255 0) (0.0816211472467 0.251418512977 0) (0.074262899464 0.223039712876 0) (0.0678282827215 0.195901091684 0) (0.0623066711401 0.170634498182 0) (0.0582377045616 0.146785897045 0) (0.0504057447285 0.120913080509 0) (0.0020742473353 0.00416942732034 0) (-0.00223868428117 0.00253498842508 0) (-0.000759490474969 0.00296430007149 0) (-0.000615780350992 0.00297313268898 0) (-0.000473960008878 0.00302175302957 0) (-0.00035705766704 0.00307782124578 8.63597324198e-30) (-0.000265648608024 0.00312215052097 -9.57848869623e-30) (-0.00018698032987 0.00314412925714 0) (-9.29595779183e-05 0.00293485856937 0) (-8.12776110276e-05 0.00307750094764 0) (-4.25883199135e-05 0.0031532393617 0) (-1.32636577014e-05 4.20468137828e-05 0) (-4.1772275977e-05 4.2251757544e-05 0) (-7.21123165206e-05 3.88402161961e-05 0) (-0.000102423991545 3.25678635187e-05 0) (-0.00013277624781 2.43162948275e-05 0) (-0.00016367492771 1.39844204151e-05 0) (-0.000195237880839 1.22178120444e-06 0) (-0.000227696491554 -1.41256653554e-05 0) (-0.000261442874534 -3.20331094742e-05 0) (-0.000297434737562 -5.27224940881e-05 0) (-0.00033490221047 -7.77567591967e-05 0) (-0.00036739558336 -0.000106065308491 0) (-0.000398179258522 -0.000132109357335 0) (-0.000450276818614 -0.000158309403642 0) (-0.000500496905938 -0.000180910870462 0) (-0.000547628152275 -0.000205393044817 0) (-0.000591380420442 -0.000230832602683 0) (-0.000643849371706 -0.00025653604212 0) (-0.000696840209114 -0.000279180915152 0) (-0.000770944636739 -0.000307704964294 0) (-0.000835374734825 -0.000327212051094 0) (-0.000902971390206 -0.000346711674713 0) (-0.000968310190938 -0.000367489048115 0) (-0.00104143834628 -0.000389801439117 0) (-0.00112267860348 -0.000412246365453 0) (-0.00119907254603 -0.000428104439472 -4.10721801723e-29) (-0.0012702421199 -0.000438647344049 0) (-0.00135968325665 -0.000454221007467 0) (-0.00143401590775 -0.000461892716213 0) (-0.00151910208667 -0.000462048462464 0) (-0.0015497721192 -0.000430888569688 0) (-0.00159867239986 -0.000395307066844 0) (-0.0016268604686 -0.000351184605139 0) (-0.00166262094233 -0.000292802592525 0) (-0.0016781733938 -0.000209057604305 0) (-0.00172928343479 -0.000102336541112 0) (-0.00176626664369 4.64393124065e-05 0) (-0.00184353538861 0.000246216097104 0) (0.00147519523156 0.000450321339052 0) (-0.038915707696 0.00132097311347 0) (0.149133205416 0.429919369472 -5.65532089006e-30) (-0.182544404364 0.381695535763 4.61167258956e-30) (0.107999870967 0.321869865686 0) (-0.0133946880209 0.357734472602 0) (0.0427813343253 0.374857975123 0) (0.0322581595732 0.400436614437 0) (0.0461589900448 0.416109033383 0) (0.0522716681493 0.428112097869 0) (0.0598471340493 0.434819409762 0) (0.06663796568 0.4377714904 0) (0.0729117221684 0.437658185953 0) (0.0787336837831 0.435181383952 0) (0.0840077995875 0.430812655254 0) (0.0887302198233 0.424798083328 0) (0.09280346284 0.417200141406 0) (0.0961078078948 0.407910719144 0) (0.0984702737742 0.396688081022 0) (0.0996774929441 0.383191367017 0) (0.0994855654262 0.367034112861 0) (0.0976398556982 0.347875309301 0) (0.0939977258726 0.325550757243 0) (0.0886126420028 0.300224014466 0) (0.0818642535363 0.272596796015 0) (0.0746640305225 0.244025722923 0) (0.0686468772006 0.216210067762 0) (0.0656427709653 0.189747449578 0) (0.0660025089492 0.161970590778 0) (0.0660455262708 0.130347463516 0) (0.0534941701193 0.0996609707009 0) (-0.000317639394623 0.00406434869393 0) (-8.98667253073e-05 0.00308054666375 0) (-0.000436242471271 0.00311592192958 0) (-0.00041751144372 0.00308822884295 7.12148786405e-30) (-0.000340752288258 0.00312445063591 0) (-0.0002644232927 0.00316339170385 -8.31754235458e-30) (-0.000206233962285 0.00319338641582 0) (-0.000166535316259 0.00321429412696 0) (-0.000102881567282 0.00308338346566 0) (-5.94579523572e-05 0.00313476963382 0) (-1.62523414619e-05 0.00324286618777 0) (-1.29813635112e-05 1.59113615521e-05 0) (-3.9316407667e-05 1.37190783401e-05 0) (-6.78383189096e-05 9.32362518581e-06 0) (-9.53888345289e-05 2.82316555502e-06 0) (-0.000123387501064 -5.62992313163e-06 0) (-0.00015239455237 -1.66107408183e-05 0) (-0.000182390363126 -3.02315925107e-05 0) (-0.000213414473307 -4.66555895189e-05 0) (-0.000245451905057 -6.58978768849e-05 0) (-0.000278897840806 -8.78456417244e-05 0) (-0.000314345040373 -0.000112617189985 0) (-0.000350843981875 -0.000141282372655 0) (-0.000383867883173 -0.000171690283429 0) (-0.000410704310813 -0.000196559102365 0) (-0.000457695878977 -0.00022522830858 0) (-0.000511793830358 -0.000253824989027 0) (-0.000560474630581 -0.000281255467186 0) (-0.000609041297203 -0.00030956912168 0) (-0.000660523691559 -0.000338912779548 0) (-0.000716241388374 -0.000366532687155 0) (-0.00077322589782 -0.000389134620363 0) (-0.000850063778844 -0.000417452656424 0) (-0.000914816035928 -0.000439165949042 0) (-0.000988425020358 -0.000464853054711 0) (-0.00106771406556 -0.00048892594198 0) (-0.00114326831742 -0.000505511677598 4.05958953643e-29) (-0.0012300564704 -0.000523624191855 0) (-0.00130260230722 -0.000533258883929 0) (-0.00139998721576 -0.000543410918442 0) (-0.00144133870009 -0.000511679677473 0) (-0.00148212439099 -0.000473913939887 0) (-0.00155299735302 -0.00044456222897 0) (-0.00161549508477 -0.000396665861885 0) (-0.00165260639574 -0.000330221653486 0) (-0.00172180832147 -0.00025719108133 0) (-0.00178041630527 -0.000155491970458 0) (-0.00185525463613 -3.57642282855e-05 0) (-0.00188725425605 0.000102043622145 0) (0.00161786925858 0.000172572735845 0) (-0.0408743028478 0.00109159329791 0) (0.154141454661 0.435805500964 0) (-0.189609989427 0.387212068899 0) (0.112030830254 0.328714815522 0) (-0.0177831404298 0.365681677067 0) (0.0430353040826 0.382901829145 0) (0.0295654302563 0.408636742332 0) (0.0445148386641 0.423855439925 0) (0.0497891955217 0.435523266454 0) (0.0573054147365 0.441708619835 0) (0.0637908526261 0.444177223931 0) (0.0698487124075 0.443562123878 0) (0.0754482016605 0.44058045975 0) (0.0805052074354 0.435672621391 0) (0.0850047934998 0.429051630811 0) (0.0888355238298 0.420737917877 0) (0.0918648225838 0.410578566229 0) (0.0939055251637 0.398289887126 0) (0.0947359225669 0.383502415313 0) (0.0941139045955 0.365831498518 0) (0.0918063902524 0.344999515227 0) (0.0877906130571 0.321007819206 0) (0.0823555574233 0.294324357815 0) (0.0762710125459 0.2660973278 0) (0.0711375974743 0.238279224913 0) (0.0702031073212 0.213545427136 0) (0.0780769073721 0.194033377061 0) (0.0922009938074 0.177255507941 0) (0.0813970100053 0.155570475173 0) (0.000721269040768 0.00344206348677 0) (-0.00272340985645 0.00278713002565 0) (-0.000891949647093 0.00312905052712 0) (-0.000558393716032 0.00320521745033 0) (-0.00036605304221 0.0031885213444 -7.01245486381e-30) (-0.000258140422286 0.00320525297575 -6.47851849695e-30) (-0.000189185682342 0.00322230580603 0) (-0.000144522984854 0.00323472314428 0) (-0.000119484378601 0.00324068355272 0) (-8.13802368288e-05 0.00311761768298 0) (-3.28201407756e-05 0.00317020549455 0) (7.49576548903e-06 0.00326703763036 0) (-1.27357590297e-05 -1.00650312557e-05 0) (-3.76518501181e-05 -1.2503357803e-05 0) (-6.28874840201e-05 -1.72843696584e-05 0) (-8.65325336183e-05 -2.33784832802e-05 0) (-0.00011207143491 -3.26529825107e-05 0) (-0.00013870865681 -4.4909135321e-05 0) (-0.000166844230669 -5.98679365008e-05 0) (-0.000195990249508 -7.74197416575e-05 0) (-0.000226327559374 -9.78667237725e-05 0) (-0.000257604935415 -0.00012108392627 0) (-0.000290374718211 -0.000146970990149 0) (-0.000325727498962 -0.000175711889472 0) (-0.000361541415591 -0.000206669394246 0) (-0.000396820651622 -0.000239128358537 0) (-0.000426653995238 -0.000266562786084 0) (-0.000473354056502 -0.000299083851758 0) (-0.00051506652201 -0.000326614078411 0) (-0.000568448645368 -0.000361130699994 0) (-0.000617951250186 -0.00039307612953 0) (-0.000672277311813 -0.000425758935183 0) (-0.000725625889347 -0.000454144085766 0) (-0.000788531201664 -0.000483121048978 0) (-0.000859322583029 -0.000512213093308 4.84525205306e-29) (-0.000930524491266 -0.00054019817479 0) (-0.00100960099722 -0.000567874703998 0) (-0.00108929805829 -0.000589096052 0) (-0.00116227984253 -0.00060252828992 0) (-0.0012604251701 -0.000621355821868 0) (-0.00131040125992 -0.000597030880471 0) (-0.00135655522299 -0.000561173871755 0) (-0.0014555309982 -0.000547976641416 0) (-0.00152754566589 -0.000513593968801 0) (-0.00160081737927 -0.000460912640747 0) (-0.0016795965161 -0.000399100517688 0) (-0.00175946823591 -0.000324274962764 0) (-0.00180808393639 -0.000232452497508 0) (-0.00195522182718 -0.000151943198262 0) (-0.00192822794867 -5.27729669404e-05 0) (0.00176829475176 -1.68408828394e-05 0) (-0.0428236754501 0.000903106757308 0) (0.15919443977 0.441237726603 0) (-0.196724677879 0.392487682626 0) (0.116198176077 0.335327493227 0) (-0.0221281740657 0.373401859874 0) (0.0433716099441 0.390675486137 0) (0.02692023463 0.416539423443 0) (0.0429483828888 0.431321856202 0) (0.0473383158856 0.442662933189 0) (0.0548299569702 0.448340616195 0) (0.0609988108347 0.450345436326 0) (0.0668543756425 0.449242394897 0) (0.0722393697291 0.445765079237 0) (0.0770926117134 0.440318193823 0) (0.0813847345264 0.433080114244 0) (0.0849917006831 0.424027428771 0) (0.0877688205981 0.412962731887 0) (0.0895172143077 0.399564411961 0) (0.0900121873059 0.383446142728 0) (0.0890225023685 0.364250769316 0) (0.0863501141686 0.341816273198 0) (0.0821352300606 0.316406427678 0) (0.0769250764344 0.288954209907 0) (0.0717720708482 0.261261847369 0) (0.0682693648104 0.235921859189 0) (0.0690992179151 0.215577678564 0) (0.0775885820047 0.200325059366 0) (0.078543275477 0.178435677615 0) (0.0111651630467 0.0150062150377 0) (-0.00176243276344 0.00565691908644 0) (-0.000782928724329 0.00399667250452 0) (-0.000501803646496 0.00358785941357 0) (-0.000331376324501 0.00339697969429 0) (-0.000226027593054 0.00329816457786 0) (-0.000155069636122 0.00326928673746 6.28051837716e-30) (-0.000110091116062 0.00326048155205 0) (-8.17462833281e-05 0.00325618777007 5.76816869165e-30) (-7.29535652031e-05 0.00324483210865 0) (-4.94858240096e-05 0.00315778845336 0) (-4.95004852242e-06 0.00321327651042 0) (1.96690178019e-05 0.00322928046179 0) (-1.13974102486e-05 -3.45863122131e-05 0) (-3.49359687089e-05 -3.67993492183e-05 0) (-5.68777939965e-05 -4.0438938654e-05 0) (-7.92638081955e-05 -4.70196709353e-05 0) (-0.000102522819619 -5.74416071228e-05 0) (-0.000126285470251 -7.07779937721e-05 0) (-0.000150755020233 -8.66833442157e-05 0) (-0.000177188388993 -0.000105735446458 0) (-0.000204902565291 -0.000127559706995 0) (-0.000233855128577 -0.000152154988573 0) (-0.000263999469215 -0.000179525543645 0) (-0.000295894471469 -0.00020953878018 0) (-0.000331879221912 -0.000242709444362 0) (-0.000365404346328 -0.000274987662064 0) (-0.000407898284746 -0.000314180148294 0) (-0.000432304131549 -0.000337188224308 0) (-0.000471699268829 -0.000368967221488 0) (-0.000518343305836 -0.000407714159326 0) (-0.000561702810893 -0.000441474886347 0) (-0.000613840949355 -0.000477442544081 0) (-0.000666617872514 -0.000511470654514 0) (-0.0007294764203 -0.000549558944381 0) (-0.000794024047269 -0.000582572823402 -4.80775576539e-29) (-0.00086509405786 -0.000615072100013 0) (-0.000941749264164 -0.000645585772994 0) (-0.00100908645258 -0.000663575330449 0) (-0.00109880842308 -0.000687687785584 0) (-0.00116391377316 -0.000680335998423 0) (-0.00122941232084 -0.000659692484804 0) (-0.00132922455426 -0.000653600340478 0) (-0.00142443937639 -0.000636136168808 0) (-0.0015216626288 -0.000601050755499 0) (-0.0016008021018 -0.000544822448844 0) (-0.00168787199738 -0.000477832758849 0) (-0.00175140989356 -0.000395563126994 0) (-0.00184618970116 -0.000332198617668 0) (-0.00198456419462 -0.000274734853411 0) (-0.00192012196381 -0.000223709940281 0) (0.00189632894974 -0.000154802399957 0) (-0.0447744026788 0.000717274342756 0) (0.164155749536 0.446242279134 0) (-0.203828348151 0.397501817026 0) (0.120458607503 0.341713867166 0) (-0.0264556129878 0.380887784468 0) (0.0437990731792 0.398174375208 0) (0.0243101744915 0.42415056889 0) (0.0414502457337 0.43850894823 0) (0.0449155629502 0.449531924654 0) (0.0524141299389 0.454719348472 0) (0.0582547241972 0.456282244499 0) (0.0639223456383 0.454707841265 0) (0.0691009998079 0.450747078438 0) (0.0737652426718 0.444764434342 0) (0.0778673751182 0.436902281648 0) (0.0812724833461 0.427091917989 0) (0.0838241824194 0.415092594021 0) (0.0853135278515 0.400550397317 0) (0.0855159290846 0.383076424839 0) (0.0842147661547 0.362369453924 0) (0.081252551538 0.338434272731 0) (0.0769735806022 0.311870456169 0) (0.072193653574 0.284125861728 0) (0.0682458032187 0.257542292952 0) (0.0668125500113 0.234799302684 0) (0.0696466941655 0.21691318799 0) (0.0737763430212 0.200993192666 0) (0.0418016954814 0.189888563001 0) (0.00233890105845 0.00617568818808 0) (0.00191509348135 0.00438073731521 0) (0.00045695337161 0.00383360851934 0) (9.15887434325e-05 0.00357491826012 0) (-3.1648171529e-05 0.00342011431851 0) (-5.53019181733e-05 0.00333612571667 0) (-4.42808734662e-05 0.00329510693645 0) (-3.1456561227e-05 0.00327433862008 0) (-1.9658459471e-05 0.00325733371305 -5.61245901503e-30) (-2.10979446473e-05 0.00323327511552 0) (-1.31197284129e-05 0.0031963521227 4.96178381794e-30) (1.39066770425e-05 0.00323670622773 0) (2.35786884109e-05 0.00320712764976 0) (-9.88885006364e-06 -5.61592956397e-05 0) (-3.11699505153e-05 -5.87309251944e-05 0) (-5.18399675224e-05 -6.23604102764e-05 0) (-7.22567509865e-05 -6.88189764624e-05 0) (-9.28810332389e-05 -7.9707009068e-05 0) (-0.000113711567148 -9.37863756835e-05 0) (-0.000135346399585 -0.000110906333144 0) (-0.000157860324445 -0.000130845340412 0) (-0.000181796917498 -0.000153848414412 0) (-0.000207546196931 -0.000180168623622 0) (-0.000234418805928 -0.00020911571479 0) (-0.000262731177957 -0.000240751888434 0) (-0.000292205559264 -0.000274444839586 0) (-0.000326208287075 -0.000311601658074 0) (-0.000353773210033 -0.000339302249115 0) (-0.000383477596534 -0.000368708967307 0) (-0.000429934815828 -0.000415036284809 0) (-0.000461404556912 -0.000446903298179 0) (-0.000500385250094 -0.000483433111229 0) (-0.00055174056879 -0.000529460718318 -5.61669528837e-29) (-0.000603097161211 -0.000572207794824 0) (-0.000659401318079 -0.000611400992239 0) (-0.000717598809835 -0.0006462999798 0) (-0.000790544928226 -0.000688542623311 0) (-0.000852302707172 -0.000714353771262 0) (-0.000929596454014 -0.000741819598709 0) (-0.00100946310139 -0.000759659759342 0) (-0.0010896966928 -0.00076188690563 0) (-0.00118160710569 -0.000757871149866 0) (-0.0012862777221 -0.000754269031512 0) (-0.00140559967982 -0.000742987962977 0) (-0.00148558148905 -0.000690779305693 0) (-0.00158823457843 -0.000632211715748 0) (-0.00165607330443 -0.000552140986591 0) (-0.00175676744059 -0.000486870790021 0) (-0.00187907001226 -0.0004331624015 0) (-0.00192880881779 -0.000364947782967 0) (-0.00197390328365 -0.000371497621609 0) (0.00158272843537 -0.000728639263844 0) (-0.0466939900246 0.000714061622874 0) (0.168796304277 0.450964099185 0) (-0.210857590358 0.402222883191 0) (0.12475099842 0.347890561802 0) (-0.0307893431621 0.388133518691 0) (0.0443184123132 0.405391931409 0) (0.0217204729542 0.431470267399 0) (0.0400123546172 0.44541429856 0) (0.0425148969981 0.456130749638 0) (0.0500484711772 0.460848621565 0) (0.0555484960763 0.46199380744 0) (0.0610426402213 0.459967679327 0) (0.066023014848 0.455539223553 0) (0.0705143482734 0.449028185013 0) (0.0744462396805 0.440539819497 0) (0.0776753410701 0.429959015205 0) (0.0800345869695 0.417003805407 0) (0.0813085198433 0.401295854929 0) (0.0812806384785 0.382462962787 0) (0.0797633240236 0.360298417634 0) (0.0766673940671 0.335044792904 0) (0.0726272092674 0.30774493508 0) (0.0687436443328 0.280441812716 0) (0.0665004089127 0.255876693264 0) (0.0674226659473 0.236307667533 0) (0.0715189626939 0.22053562409 0) (0.0664516553031 0.197223407301 0) (0.060806406443 0.101013641795 0) (0.000328965227567 0.00171151752845 0) (0.00112648451288 0.00298604282996 0) (0.000541041546127 0.0033184153413 0) (0.000282451418585 0.00336538709717 0) (0.000139927121848 0.00332940337019 0) (7.8972856567e-05 0.00331984832668 0) (5.56263985121e-05 0.00329427620595 0) (4.32202751096e-05 0.00327776311902 0) (3.460751193e-05 0.0032602572173 0) (3.02437687583e-05 0.00319852549054 0) (3.45022402537e-05 0.00318819128862 -4.99503260597e-30) (3.91333705276e-05 0.00325329912156 0) (2.92341411974e-05 0.00318145079479 0) (-8.52572552627e-06 -7.53658878938e-05 0) (-2.73223687454e-05 -7.86242868639e-05 0) (-4.68657939796e-05 -8.34703595309e-05 0) (-6.41473340112e-05 -8.78420188654e-05 0) (-8.19292414417e-05 -9.8983294949e-05 0) (-9.96890962177e-05 -0.00011371327822 0) (-0.000118184669915 -0.000131695389668 0) (-0.000137510419339 -0.000152818089399 0) (-0.000157826048942 -0.000176900058856 0) (-0.00017890353487 -0.000203625501911 0) (-0.000202231545682 -0.000234568590836 0) (-0.000226213280532 -0.000267605739698 0) (-0.000251175146283 -0.000302369458484 0) (-0.000277049458126 -0.000338038240631 0) (-0.000306915747634 -0.000376424459719 0) (-0.000340101681392 -0.000412549522505 0) (-0.000365284018044 -0.000439534622879 0) (-0.000400077806299 -0.000481644954712 0) (-0.000444654061302 -0.000535096284549 0) (-0.000477362364318 -0.000572295345872 5.56705433612e-29) (-0.000520303186768 -0.000614487598986 0) (-0.000578106558584 -0.000667799438593 0) (-0.000639862166509 -0.000718311499979 0) (-0.000692523349719 -0.000750490019851 0) (-0.000755884897214 -0.000781145112545 0) (-0.000844739050862 -0.000826808391692 0) (-0.000922733495033 -0.000847101778162 0) (-0.00100711651588 -0.000851575033163 0) (-0.00111479466961 -0.000863143606178 0) (-0.00124432570395 -0.000876520806268 0) (-0.00133971459173 -0.000839550810222 0) (-0.00144084365403 -0.000786974417522 0) (-0.00155634946262 -0.000728189582398 0) (-0.00166419325356 -0.000660319652975 0) (-0.00181399579762 -0.000601863115419 0) (-0.00187331460021 -0.000493129662979 0) (-0.00187262570124 -0.000383867241883 0) (-0.00173568797716 -0.000347824062508 0) (0.00139552406667 -0.00184622839355 0) (-0.0487505973611 0.00129395560366 0) (0.173011993606 0.455307185277 0) (-0.217493708483 0.406609980675 0) (0.1290029492 0.353907237312 0) (-0.0351349136401 0.39513828636 0) (0.0449299646562 0.412320962461 0) (0.0191345733759 0.438494012623 0) (0.0386253488742 0.452032338894 0) (0.0401262978143 0.462458021874 0) (0.0477202593369 0.466730674175 0) (0.0528666604949 0.467485303127 0) (0.0582013455745 0.465030897124 0) (0.0629910225491 0.460154865983 0) (0.0673265192708 0.453128015483 0) (0.071109875721 0.444017533852 0) (0.0741922131281 0.432661174557 0) (0.0763962009209 0.418738702691 0) (0.0775015421683 0.401856887309 0) (0.0773020888806 0.38168154485 0) (0.0756370707505 0.358137204494 0) (0.072474158635 0.331754951193 0) (0.06875471367 0.304050616412 0) (0.065790220613 0.277520919457 0) (0.0651363533536 0.254704013149 0) (0.0680355552373 0.236074766175 0) (0.0740098298672 0.217838595442 0) (0.0621972412677 0.196527761566 0) (0.00229169281641 0.00332929133517 0) (-0.00158642845881 0.00223914613598 0) (0.000188345003874 0.00289048356775 0) (0.000328651000473 0.00317736280288 0) (0.000307530631889 0.00323505985054 0) (0.000243223178815 0.00326949973852 0) (0.00019155333689 0.00328987395927 0) (0.000159342774461 0.00328272860523 0) (0.000133449641388 0.00327627808187 0) (0.000108016738865 0.00327151853283 0) (9.10830200898e-05 0.00326734001062 0) (7.43055591756e-05 0.00324145014875 0) (4.54026426998e-05 0.00326114980036 0) (2.3911863128e-05 0.00313840552286 0) (-7.28655168903e-06 -9.24713092971e-05 0) (-2.34980966594e-05 -9.62051941938e-05 0) (-4.05833056658e-05 -0.000102161788809 0) (-5.45080127358e-05 -0.000103736529032 0) (-6.94043889186e-05 -0.000115069691567 0) (-8.39530653474e-05 -0.000130406175941 0) (-9.91573494448e-05 -0.000149157187114 0) (-0.000115147397526 -0.00017117367955 0) (-0.000131969022466 -0.000196317421058 0) (-0.000149742824494 -0.000224533153797 0) (-0.00016805119232 -0.000255208409154 0) (-0.000187509437052 -0.000289178039494 0) (-0.000207860897256 -0.000325672939002 0) (-0.000228905567103 -0.000363301721972 0) (-0.00025193452124 -0.00040230902972 0) (-0.000278598659806 -0.000443108894725 0) (-0.000303656527992 -0.000475827672795 0) (-0.000332880322687 -0.00051416516582 0) (-0.000366209075331 -0.000563972817303 0) (-0.000394019108511 -0.000606373920058 0) (-0.000445923259943 -0.0006768660112 0) (-0.000487799706809 -0.000724215201526 0) (-0.000526916413779 -0.000759102868748 0) (-0.000582121923397 -0.000803898962729 0) (-0.000667054535181 -0.000870197334479 0) (-0.000733062582969 -0.000899997401541 0) (-0.000809579688597 -0.000924006851812 0) (-0.000922512277747 -0.000964678952506 0) (-0.00103778533396 -0.000985406349619 0) (-0.00114918466137 -0.00097600648611 0) (-0.0012629608905 -0.00094669425724 0) (-0.00141436233583 -0.000921407371528 0) (-0.00154649428991 -0.000864393043633 0) (-0.00171273292377 -0.000806863099494 0) (-0.00183700758765 -0.00069757147569 0) (-0.00191110743688 -0.000525984389446 0) (-0.00192521423146 -0.000295981504704 0) (-0.00125491556005 0.000169242902117 0) (0.00132522852275 -0.00338529366511 0) (-0.0533799713458 0.00222172384745 0) (0.176969515693 0.459735132328 0) (-0.223608271417 0.410751798657 0) (0.133135268726 0.359837527023 0) (-0.0394801906574 0.401894880408 0) (0.0456331409356 0.418952871053 0) (0.016534360507 0.445215492585 0) (0.0372782025981 0.458355905001 0) (0.0377358765991 0.468510983731 0) (0.0454134285115 0.472365835531 0) (0.0501919675107 0.472760542248 0) (0.0553800567615 0.469905565224 0) (0.0599856244707 0.464607367489 0) (0.0641828387953 0.45708360125 0) (0.0678411431163 0.447362850954 0) (0.0708099297407 0.43523518686 0) (0.0729029285462 0.420345897184 0) (0.0738997523918 0.402298081196 0) (0.073617599992 0.380821489901 0) (0.0719518618016 0.356020058033 0) (0.0690041099486 0.328800188591 0) (0.0662666844584 0.301309782184 0) (0.0656540822664 0.276725273452 0) (0.0698101190547 0.257806888046 0) (0.0804612094899 0.244412313827 0) (0.0890013107874 0.2278051616 0) (0.0754363784762 0.176881529177 0) (0.000354059002106 0.00506114455302 0) (0.000627454144771 0.00310134411958 0) (0.000460137343429 0.00314697756015 0) (0.000442520276009 0.00318884334089 0) (0.00040856528173 0.00320493020737 0) (0.000361119793777 0.00319888591322 0) (0.000318934377998 0.00325603795027 0) (0.000278560366057 0.00325576632219 0) (0.0002403426203 0.00324808664118 0) (0.000201286185741 0.00323581542725 0) (0.000158428341702 0.00321557174422 0) (0.000102111388036 0.00317475651935 0) (3.41092112438e-05 0.00321853868084 0) (8.80980471426e-06 0.00310936975872 0) (-6.02754639021e-06 -0.000106877403967 0) (-1.92083976323e-05 -0.000110705557161 0) (-3.25917295332e-05 -0.000117318487891 0) (-4.36956155898e-05 -0.000116409849186 0) (-5.56687367963e-05 -0.000127889650974 0) (-6.66790915649e-05 -0.000143761926396 0) (-7.84265762989e-05 -0.000163289735688 0) (-9.09645426596e-05 -0.000186115280363 0) (-0.000104269448344 -0.00021207913358 0) (-0.000118212748532 -0.000241022649731 0) (-0.000132600901744 -0.000272743424056 0) (-0.000147259678732 -0.000306712635423 0) (-0.000161839264384 -0.000342252031732 0) (-0.000177687146154 -0.00038158208617 8.76332572136e-29) (-0.000194023886176 -0.000422700445675 0) (-0.000209876867175 -0.000463519759587 0) (-0.000230965434557 -0.000508383479603 0) (-0.000254202030623 -0.000546713450282 0) (-0.000277180397971 -0.000586038308189 0) (-0.000310139275036 -0.000648389557986 0) (-0.000342435386949 -0.000707095448516 0) (-0.000372681004565 -0.000752781370151 0) (-0.000414428699257 -0.000803848496225 0) (-0.00048778984932 -0.000888499572975 0) (-0.000544651416049 -0.000931083919161 0) (-0.000605927315645 -0.000969199992359 0) (-0.000703142171362 -0.00103076102021 0) (-0.000813176525179 -0.00107308895781 0) (-0.00092557843476 -0.00109148122016 0) (-0.00106473002175 -0.00111358872491 0) (-0.00120506467392 -0.00110082159035 0) (-0.00136130307158 -0.00107133170307 0) (-0.00153570303268 -0.00103144380322 0) (-0.00172562427369 -0.000967179206634 0) (-0.00191025219414 -0.000846428878488 0) (-0.00211018416879 -0.000668668415211 0) (-0.00250537292829 -0.00039664992028 0) (-0.00131031209006 0.000252198425911 0) (0.00250209770231 -0.0109011855455 0) (-0.0520836205462 0.00249969681983 0) (0.180423754182 0.463737386952 0) (-0.22867569331 0.414653671562 0) (0.137223793225 0.365679310744 0) (-0.0437795303781 0.408370401925 0) (0.0464236069009 0.425276345542 0) (0.0139010326433 0.451626487742 0) (0.0359589524068 0.464377233991 0) (0.0353267437563 0.474284933245 0) (0.0431092002164 0.477752412952 0) (0.047503421761 0.477820945289 0) (0.0525557968811 0.474598287557 0) (0.0569819599922 0.468909433134 0) (0.0610581602513 0.460915765866 0) (0.0646159300454 0.45060630392 0) (0.0675076758298 0.43772373694 0) (0.0695392239059 0.421883555052 0) (0.0704925816768 0.402699744136 0) (0.0702122114143 0.380000168296 0) (0.0686464139631 0.354133025401 0) (0.0660055384255 0.326478036353 0) (0.064299159729 0.299952409914 0) (0.0656838546496 0.278367725562 0) (0.0730019185909 0.263215640052 0) (0.0881470641452 0.249371426776 0) (0.0901799117079 0.225535057452 0) (0.0047539045164 0.00610213609446 0) (-0.00307393845063 0.00375950344902 0) (-7.60444882918e-05 0.00336041929658 0) (0.000347612814815 0.00327196793352 0) (0.000509990308783 0.00321745132669 0) (0.000525107939813 0.00317395038729 0) (0.000503773162771 0.00316944970535 0) (0.00046807132004 0.00321281139964 0) (0.000410609589194 0.00321261067729 0) (0.00035156074444 0.00320251090394 0) (0.000290331576557 0.00318776645358 0) (0.000219331320411 0.00315292486707 0) (0.000142218053029 0.00309879255527 0) (6.46806619115e-05 0.00314177605416 0) (2.16620931867e-05 0.00315784565017 0) (-4.87062864544e-06 -0.000118668361707 0) (-1.44949005627e-05 -0.000120721137832 0) (-2.38211136618e-05 -0.000128712721818 0) (-3.27538697343e-05 -0.00012737004516 0) (-4.05972719803e-05 -0.00013703712725 0) (-4.77520019543e-05 -0.00015339226749 0) (-5.59734074823e-05 -0.000173588046566 0) (-6.51765600729e-05 -0.000196958899395 0) (-7.50394362832e-05 -0.00022328442662 0) (-8.51600054875e-05 -0.000252398785493 0) (-9.52175821992e-05 -0.0002841628071 0) (-0.000104956568139 -0.000318358159468 0) (-0.000114513349 -0.000355051259367 0) (-0.000123644195077 -0.000393578795911 -8.91582668295e-29) (-0.000131451517317 -0.00043242403802 0) (-0.00013879221823 -0.000473911489943 0) (-0.000148365673564 -0.000522230269398 0) (-0.000162788073224 -0.000575140287958 0) (-0.000181489708722 -0.000620908214884 0) (-0.000204594803778 -0.000667912590738 0) (-0.000231316709112 -0.000729940602804 0) (-0.000261305146911 -0.000790912865669 0) (-0.000309652965145 -0.000870682397886 0) (-0.000361409258443 -0.000939921420854 0) (-0.000406258645896 -0.000981188995272 0) (-0.000476852239551 -0.00104926002658 0) (-0.000578655946848 -0.00113972209719 0) (-0.000687307106157 -0.00119596005323 0) (-0.00081030125547 -0.00123353081594 0) (-0.000943301310028 -0.00124281613296 0) (-0.00110650599257 -0.00125266380127 0) (-0.00130268771102 -0.00126350551426 0) (-0.00150027059256 -0.00123402341933 0) (-0.00172027848883 -0.00117403434863 0) (-0.00195740609101 -0.00108287386115 0) (-0.00228624136235 -0.000995538138026 0) (-0.00288022871231 -0.000887890850758 0) (-0.00158736595318 -0.00097844738067 0) (0.00345724355851 -0.00246401712449 0) (-0.0536216566261 0.00111008057117 0) (0.184651848217 0.466227679595 0) (-0.233569806164 0.418232089699 0) (0.141262222219 0.371269984349 0) (-0.048022239847 0.414501296912 0) (0.0472809164893 0.431272584234 0) (0.0112164204722 0.457716850488 0) (0.0346559705142 0.470086155154 0) (0.0328805945325 0.47977480241 0) (0.0407866274501 0.482885764577 0) (0.0447764025865 0.482666164099 0) (0.049700186132 0.479112803768 0) (0.0539484993452 0.473072167725 0) (0.0579191749797 0.464644139561 0) (0.0614009737383 0.453779209817 0) (0.0642546202865 0.4401721151 0) (0.0662795778998 0.423415069814 0) (0.0672625825599 0.403147803263 0) (0.067085102717 0.379332851795 0) (0.0657936561147 0.352640460536 0) (0.0638594771197 0.325048734855 0) (0.0642841021219 0.30040818464 0) (0.0710683506851 0.283636696295 0) (0.0903975873359 0.276524786409 0) (0.114829070233 0.268200947031 0) (0.0860906692391 0.238041870775 0) (0.00148011646869 0.00598265022565 0) (0.00192679536972 0.00400909398264 0) (0.000936148370775 0.00364451632785 0) (0.000826810691985 0.00337330017512 0) (0.000778742595121 0.0032070716505 0) (0.000741984324785 0.00315717033088 0) (0.000694282207671 0.00314491512541 0) (0.00063349332971 0.00315096892438 0) (0.000551073287114 0.00314429447232 0) (0.000466698404317 0.00313180778263 0) (0.000381136093957 0.0031190016964 0) (0.00027824333461 0.00307622554985 0) (0.000186797133003 0.003037623294 0) (0.000116045567503 0.00307183733187 0) (4.86594919258e-05 0.00305921922453 0) (-3.39003495301e-06 -0.000127342031592 0) (-9.61392826699e-06 -0.000125966907015 0) (-1.58070196539e-05 -0.000137253109212 0) (-2.08074968855e-05 -0.000134923861868 0) (-2.34225126249e-05 -0.000140611816414 0) (-2.7392501435e-05 -0.00015718684623 0) (-3.28849287791e-05 -0.000177364775871 0) (-3.96113251687e-05 -0.00020048023471 0) (-4.65381808246e-05 -0.000226387407656 0) (-5.28810896247e-05 -0.000255134667006 0) (-5.81562297906e-05 -0.000286756641382 0) (-6.20999763713e-05 -0.00032118513137 0) (-6.46846388843e-05 -0.000358276675686 0) (-6.57428881924e-05 -0.000397342226705 0) (-6.48169706864e-05 -0.000437285066061 0) (-6.27398141178e-05 -0.000479358115419 0) (-6.24328094099e-05 -0.000526092379012 0) (-6.59410189221e-05 -0.00057737808855 0) (-7.59498706303e-05 -0.000638310117042 0) (-9.27116880378e-05 -0.00070724414506 0) (-0.00011200108783 -0.000763790902211 0) (-0.000140161019588 -0.00082810310162 0) (-0.000178727932077 -0.000910789964512 0) (-0.000215730904459 -0.000980744191693 0) (-0.000261510957258 -0.00104642126994 0) (-0.000330598487826 -0.00114052714261 0) (-0.000420774615524 -0.00123563595356 0) (-0.000526765948637 -0.00129665816062 0) (-0.00065227444224 -0.00134599047992 0) (-0.000819183855702 -0.00142111417564 0) (-0.000996604135609 -0.00145800348148 0) (-0.00118493853322 -0.00146059043155 0) (-0.00141137908399 -0.00145013199277 0) (-0.00168665437415 -0.00143430070601 0) (-0.00195864761667 -0.00137966424669 0) (-0.00229461576641 -0.00134999309383 0) (-0.00261280951619 -0.00131863421415 0) (-0.00216090925952 -0.00160257518056 0) (0.0023422428036 -0.00105512810989 0) (-0.0550948966739 1.33264308437e-05 0) (0.188236800566 0.468243085533 0) (-0.239120179603 0.421588727202 0) (0.145266913901 0.376465871475 0) (-0.0522838399015 0.420260618154 0) (0.04816285748 0.436933111004 0) (0.00846117665962 0.46347236832 0) (0.0333572468176 0.475473797531 0) (0.0303777358039 0.484968051943 0) (0.038424218541 0.487757835034 0) (0.0419832309315 0.487288283544 0) (0.0467809679939 0.483449401982 0) (0.0508475938226 0.477102875427 0) (0.0547251133803 0.468289258915 0) (0.0581535272855 0.456916268515 0) (0.0610092638862 0.442633770774 0) (0.0630880091969 0.425015243636 0) (0.0641870131208 0.40374760442 0) (0.0642289009894 0.378977069196 0) (0.0633903157218 0.351832391137 0) (0.0625471865899 0.325202262786 0) (0.0653631976561 0.304199552856 0) (0.0752817276811 0.294090889666 0) (0.0975218797789 0.295130027424 0) (0.100028548547 0.284953337035 0) (0.0107474564844 0.0135387973982 0) (-0.00296295468104 0.00467095673166 0) (0.000962465848224 0.00393241946699 0) (0.00111944273571 0.00356873449097 0) (0.00112156443335 0.00330999153917 0) (0.00106774458298 0.00318609054366 0) (0.000979778773042 0.00306639789858 0) (0.000908409394199 0.00307621233054 0) (0.000801289413393 0.00305287159956 0) (0.000688980932405 0.00304039011389 0) (0.000575345148596 0.00302577939012 0) (0.000459546473112 0.00299944573035 0) (0.000333681186168 0.00292273859361 0) (0.000241453710196 0.00295760845915 0) (0.000163323109395 0.00299618011477 0) (7.04581485492e-05 0.0029808637754 0) (-7.63758619813e-07 -0.000133608259136 0) (-4.52093024139e-06 -0.000128664940571 0) (-8.4627719798e-06 -0.000142912061776 0) (-7.94830569637e-06 -0.000133710196262 0) (-7.20742487789e-06 -0.000141494708218 0) (-9.83062350393e-06 -0.000162094156089 0) (-1.40229524926e-05 -0.000186440248907 0) (-1.87182415738e-05 -0.000212528934871 0) (-2.16351550744e-05 -0.000240190220563 0) (-2.18168883488e-05 -0.000269421793804 0) (-1.91563143536e-05 -0.000300171018441 0) (-1.38618360201e-05 -0.000332358846045 0) (-6.41320669216e-06 -0.000366060453555 0) (2.71997329721e-06 -0.000399977153645 0) (1.25984683577e-05 -0.000432296807224 0) (2.11666699279e-05 -0.000470106697319 0) (2.70835921753e-05 -0.0005225011899 0) (2.92866645956e-05 -0.000581225449971 0) (2.83499581165e-05 -0.000644170704136 0) (2.66282985686e-05 -0.000710484006873 0) (1.96342429895e-05 -0.000786683257177 0) (2.08351164323e-06 -0.000871677906853 0) (-2.13663557727e-05 -0.00095172660827 0) (-4.9289284529e-05 -0.00101399422346 0) (-9.18506346613e-05 -0.00109308586939 0) (-0.000154918913726 -0.00119406125509 0) (-0.000244577838744 -0.00133047707266 0) (-0.000351483689892 -0.00143019276574 0) (-0.000485040095561 -0.00152101683526 0) (-0.000635088355924 -0.00158606916798 0) (-0.000802065227221 -0.00162724874695 0) (-0.00102277505522 -0.00167818515515 0) (-0.00132418912039 -0.00174691681154 0) (-0.00160548231961 -0.00172380177975 0) (-0.00196639696856 -0.00172298499571 0) (-0.00234700978256 -0.00168651654526 0) (-0.00271989990866 -0.00157088496954 0) (-0.00247977992553 -0.00136294487436 0) (0.00188533397655 -0.00176223936341 0) (-0.0566240587992 0.000441987385503 0) (0.191805431773 0.470694474555 0) (-0.245114926099 0.424851135621 0) (0.149301317726 0.38130942197 0) (-0.056658187743 0.425690594193 0) (0.0490551690345 0.442249171444 0) (0.00562651495265 0.468891890224 0) (0.0320556516752 0.480521567812 0) (0.027802375248 0.489860058649 0) (0.035999164717 0.492352105969 0) (0.0390934397355 0.491681970374 0) (0.043757741708 0.487600032 0) (0.0476317411255 0.481005531009 0) (0.0514212050901 0.471861576985 0) (0.054815868659 0.460044933053 0) (0.0577137168909 0.445153407844 0) (0.0599101580547 0.426756646448 0) (0.0612129417834 0.404609932368 0) (0.0615606851471 0.379097054124 0) (0.0611764634315 0.351871765823 0) (0.0613909186993 0.326821135626 0) (0.06656831919 0.309991165719 0) (0.0778240418852 0.303343817506 0) (0.0919426237671 0.297235372122 0) (0.0471610910833 0.283289010833 0) (0.00492360905059 0.00739494229253 0) (0.00450979360526 0.00417837348213 0) (0.00236337295311 0.00375727294854 0) (0.00181599203674 0.00339906456641 0) (0.00154776540306 0.00317183288888 0) (0.00138651895528 0.00304961824636 0) (0.00125425294781 0.00299012943201 0) (0.00112140145544 0.00294357503946 0) (0.000974361302813 0.00291693987686 0) (0.000826728466417 0.00290348977208 0) (0.000680011410435 0.00288886635588 0) (0.000531861812771 0.00285936056757 0) (0.000399711983195 0.00281880026907 0) (0.000300125156048 0.00286656237095 0) (0.000200717094212 0.00288994426809 0) (8.30487708376e-05 0.00280133322729 0) (3.20424495851e-06 -0.000135981534135 0) (1.69654208592e-06 -0.000134706711932 0) (-1.23307239009e-06 -0.000146433047701 0) (2.64739402264e-06 -0.000133339933952 0) (8.04989330689e-06 -0.000149319387541 0) (7.91978497605e-06 -0.000169197114367 0) (5.88384853527e-06 -0.000193328071743 0) (6.50614693334e-06 -0.000216492496183 0) (1.1829803549e-05 -0.000239188305446 0) (2.10357014214e-05 -0.000263201600261 0) (3.3013279772e-05 -0.000289164380514 0) (4.70361172419e-05 -0.000317714694033 0) (6.23234297328e-05 -0.000349486654267 0) (7.82881916401e-05 -0.000383806846217 0) (9.39627515469e-05 -0.000422061502855 0) (0.000107619860044 -0.00046832470932 0) (0.000119610738675 -0.000522991265443 0) (0.000131079033953 -0.000582792225171 0) (0.000141402269865 -0.000643525593991 0) (0.000148281624392 -0.0007046077182 0) (0.000152439002706 -0.000782932400799 0) (0.000152345468806 -0.00087057101344 0) (0.000148175167638 -0.000962049613828 0) (0.000132412983718 -0.00105065826338 0) (9.8013394334e-05 -0.00115337958055 0) (4.04877551967e-05 -0.00129171972129 0) (-3.53865819698e-05 -0.00143425878454 0) (-0.000126494476254 -0.00153548223221 0) (-0.000241362842959 -0.00164324334495 0) (-0.000381971384001 -0.00172898799775 0) (-0.000571036913698 -0.00182971683758 0) (-0.000849820786361 -0.00198409028019 0) (-0.00115686275205 -0.00205259863485 0) (-0.00150191674265 -0.00208289882322 0) (-0.00196768089254 -0.00214812886989 0) (-0.00244661476053 -0.00210582904671 0) (-0.00293931834645 -0.00192132169761 0) (-0.00292022171846 -0.00157832821652 0) (0.00136219382335 -0.00205273651573 0) (-0.0583309844081 0.000475254221484 0) (0.195506011846 0.473248932203 0) (-0.251280050195 0.428157019355 0) (0.153439128636 0.385943030314 0) (-0.0611532783751 0.430876283948 0) (0.0499728497802 0.447268495346 0) (0.00270976325312 0.473951444001 0) (0.0307485680219 0.485232715938 0) (0.025136347774 0.494404261989 0) (0.0334939058989 0.496651448753 0) (0.0360741840369 0.495807142561 0) (0.0405930523421 0.491552981267 0) (0.0442502691265 0.484768132779 0) (0.0479504742441 0.475380860267 0) (0.0513209700487 0.463203987505 0) (0.0542958482074 0.447806836015 0) (0.056667678106 0.428738825497 0) (0.058267918333 0.405848868595 0) (0.0590839974988 0.379781871473 0) (0.0594373876807 0.352748781022 0) (0.0614043725856 0.329546788379 0) (0.0715676916582 0.317417100214 0) (0.0915108131771 0.316585098988 0) (0.106119108542 0.303925948623 0) (0.0822186238848 0.222490282132 0) (0.00242828116347 0.000521812618671 0) (0.00253439714907 0.00272876674631 0) (0.00236555805934 0.00311324095638 0) (0.00208444853136 0.00309215529774 0) (0.00188666995534 0.00301122307839 0) (0.00167570909173 0.00286997196616 0) (0.00152098392171 0.00283047447281 0) (0.0013386663439 0.00278158508292 0) (0.00115956229884 0.00275142610892 0) (0.000977736105038 0.00274067776712 0) (0.000795629177705 0.00273487107088 0) (0.000617173660881 0.00270417206079 0) (0.000473110809242 0.00270850082654 0) (0.000347462518191 0.0027422225038 0) (0.000222853137607 0.00278230563718 0) (8.46607280108e-05 0.00264870660936 0) (6.26827059927e-06 -0.000130570575148 0) (9.93771076494e-06 -0.000142438838048 0) (9.31056088491e-06 -0.000147415900132 0) (1.24235930129e-05 -0.000122996825826 0) (2.11458538627e-05 -0.000140550802822 0) (2.53457356716e-05 -0.000166331332835 0) (2.86224061264e-05 -0.000190506861313 0) (3.87696798192e-05 -0.000208567307881 -2.20474503993e-29) (5.35801843899e-05 -0.000226715657578 2.00944500503e-29) (7.05919766874e-05 -0.000248522062316 0) (8.89101957029e-05 -0.000273515942087 0) (0.000108354268353 -0.000301147026692 0) (0.000127973750266 -0.000331525289635 0) (0.000147195293992 -0.000363934396828 0) (0.000165743934038 -0.000399471380635 0) (0.000186094936588 -0.00044632253541 0) (0.00020741344226 -0.000500563272384 0) (0.000230099278442 -0.000559394418184 0) (0.000252905542456 -0.000623227184079 0) (0.00027360459006 -0.000696567432338 0) (0.000291173989022 -0.0007793961886 0) (0.000305369793233 -0.000867020128905 0) (0.000315990865719 -0.000960673415237 0) (0.000315832875321 -0.00106131080799 0) (0.000302867000036 -0.00119274687912 0) (0.000272428494056 -0.00134897675565 0) (0.000226733413088 -0.00150106610982 0) (0.000159644725918 -0.0016340611695 0) (5.87369428472e-05 -0.00175651523072 0) (-8.65033855124e-05 -0.00189873596843 0) (-0.000297568899739 -0.00208571571634 0) (-0.000583141533356 -0.00228988021908 0) (-0.000911412009002 -0.00239671907886 0) (-0.00136453064081 -0.00255700557535 0) (-0.00194331152618 -0.0026887439527 0) (-0.00257376791518 -0.00266654443275 0) (-0.00325069199711 -0.00244244422282 0) (-0.00346525858004 -0.00200982206903 0) (0.000675285166246 -0.00227781371832 0) (-0.0601335495541 0.000420244923817 0) (0.199072741337 0.475984749577 0) (-0.257686356028 0.431241877658 0) (0.157789522423 0.390365010162 0) (-0.065767507837 0.435812118362 0) (0.0510183311059 0.451888856632 0) (-0.000250591493716 0.478695842509 0) (0.0294570311475 0.489526372991 0) (0.022387383291 0.49864070077 0) (0.0308832577855 0.500600949071 0) (0.0328937311058 0.499683365321 0) (0.0372241096204 0.495267884165 0) (0.0406313766472 0.488391085029 0) (0.0442167009768 0.478815211713 0) (0.0475666797421 0.466388892384 0) (0.0506518738362 0.45058559986 0) (0.0532889249918 0.430999587206 0) (0.0553435984451 0.407562964272 0) (0.0568940100786 0.381303323257 0) (0.0584414912556 0.355174505962 0) (0.062558204208 0.335013568561 0) (0.0758881448872 0.328580955809 0) (0.0992359829919 0.334544301875 0) (0.0971743163067 0.322748509819 0) (0.0085987081445 0.00949556005414 0) (-0.00285929564501 0.00459181882252 0) (0.0017652139815 0.00345907905132 0) (0.00222795797438 0.0031395142776 0) (0.0022756751777 0.00294047875408 0) (0.00216341024514 0.00281750298736 0) (0.00199114280912 0.00272683694673 0) (0.00178428404296 0.00264177872806 0) (0.00157168532178 0.00259032290889 1.83256445376e-31) (0.00135830382562 0.00255833584292 0) (0.00113679491821 0.00253556922635 0) (0.000919689020068 0.0025250449375 0) (0.000723729845833 0.00251997738714 0) (0.000560727772418 0.00256358739869 0) (0.000406025712278 0.00261048456903 0) (0.000249667935454 0.00265106034524 0) (8.52212386867e-05 0.00249532336163 0) (6.22876754134e-06 -0.000114067837659 0) (1.64551936429e-05 -0.000137794333936 0) (2.47970301804e-05 -0.000142090954266 -2.59725841476e-29) (2.28109326126e-05 -0.00010843155797 0) (2.58520105389e-05 -0.000122499951963 0) (3.91651238909e-05 -0.000165795411066 0) (5.60006599787e-05 -0.000181859740087 0) (7.61286805686e-05 -0.000194580225662 0) (9.71055322995e-05 -0.000210291305797 0) (0.000117455800021 -0.000228962777922 0) (0.000136478622539 -0.000248374230319 0) (0.000156568876972 -0.000271717972363 0) (0.000181226534987 -0.000304424702835 0) (0.000206881871969 -0.000339871010746 0) (0.000233467391878 -0.000379205259363 0) (0.000261608424198 -0.000424410260169 0) (0.000292225552289 -0.000475815476838 0) (0.000325161295043 -0.000533192214517 0) (0.000359061390333 -0.000597411758391 0) (0.000393063109954 -0.000670467340138 0) (0.000427047338724 -0.000754450120303 0) (0.000460369129081 -0.000848181521575 0) (0.000489737908619 -0.000949078770538 0) (0.000510772714985 -0.00106103553145 0) (0.000519190090489 -0.00119149232957 0) (0.00052578177818 -0.00136208568156 0) (0.00051410794525 -0.00152448497526 0) (0.000482091581528 -0.00169364498711 0) (0.000412007592561 -0.00188366995751 0) (0.000283000108907 -0.0020854885422 0) (8.0159765167e-05 -0.00232401893308 0) (-0.000204181296892 -0.00258018835948 0) (-0.000583353595912 -0.00281538629486 0) (-0.00113710793559 -0.00313825941614 0) (-0.0018580317925 -0.00338257919479 0) (-0.0026927956004 -0.0034245394375 0) (-0.00359927741695 -0.00318381353775 0) (-0.00420639860652 -0.00260775423771 0) (-0.000244281645727 -0.00240952819858 0) (-0.0620557034157 0.000428066463511 0) (0.202479317707 0.478150075531 0) (-0.263932110843 0.434723542232 0) (0.162167871723 0.394781316971 0) (-0.0704140024288 0.440580930374 0) (0.0521594591796 0.456374173666 0) (-0.00327647937981 0.482928700643 0) (0.0281874733279 0.493519995683 0) (0.0195153059712 0.502318806856 0) (0.0281740726888 0.504210722878 0) (0.0295098857024 0.503112057842 0) (0.0336387372828 0.49873453884 0) (0.036724341863 0.491780332504 0) (0.040178277806 0.482220303736 0) (0.0434760718489 0.469663358307 0) (0.0466847462867 0.453694908462 0) (0.0496150460473 0.43379911134 0) (0.0521799981296 0.410102696829 0) (0.0544590883184 0.383884269884 0) (0.0571836336419 0.358943989861 0) (0.0640381738095 0.342006420972 0) (0.079451125415 0.338683920455 3.72006745863e-30) (0.0953451003673 0.335902078925 0) (0.045178787349 0.320714636062 0) (0.00630880926089 0.0092049582653 0) (0.00533221748677 0.00455642073917 0) (0.00322557898266 0.00352314472123 0) (0.00291060628426 0.00311134315024 0) (0.00268739269976 0.00281177859718 0) (0.00249960691491 0.00262119165245 0) (0.00229705064181 0.00250166624952 0) (0.00206027945213 0.00241832847373 0) (0.00181410035707 0.00236466082488 -1.83913477316e-31) (0.00156276614071 0.00232318244149 0) (0.00131313104361 0.00229607534314 0) (0.00109650348955 0.00234370027465 -1.68407538465e-31) (0.000870941951519 0.00237104303253 0) (0.000660260455605 0.00240791919125 0) (0.000471913445243 0.00244695361959 0) (0.000281638038772 0.00247128937627 0) (8.73022815076e-05 0.00232649905251 0) (3.91605760991e-06 -0.000100557543079 0) (1.61193532482e-05 -0.000124835924344 0) (3.15805986858e-05 -0.000133451551157 2.87806610739e-29) (3.56059778943e-05 -0.000127064239888 0) (4.27778563824e-05 -0.000139683296133 0) (6.23345010024e-05 -0.000151115240467 0) (8.67554625772e-05 -0.000159832693466 0) (0.000108142803372 -0.000169000562096 0) (0.000125490403599 -0.000177816104078 0) (0.000149996354295 -0.000199990927179 0) (0.000175775047718 -0.000225392649208 1.36167112043e-29) (0.000202755425283 -0.000252441737957 0) (0.000231526696064 -0.000281747964723 0) (0.000262313788433 -0.000313857916172 0) (0.000295159281392 -0.00035003481244 0) (0.000330477758793 -0.000392110376885 0) (0.000368957558149 -0.000440299687155 0) (0.000410937568894 -0.000494679412533 0) (0.000455842550938 -0.000556514509305 0) (0.000503708875645 -0.00062825036296 0) (0.000554276598135 -0.000710676256968 0) (0.000606208242867 -0.000802150820849 0) (0.000656656391551 -0.000902957609792 0) (0.000707128584348 -0.00102410882578 0) (0.000754214951485 -0.00117283052158 0) (0.000797474495883 -0.00134530853911 0) (0.000828966570863 -0.00152736535013 0) (0.00083948864602 -0.00172249062538 0) (0.000814366671493 -0.00194280121865 3.85683409111e-30) (0.000730329760399 -0.00221096360073 0) (0.000571116283884 -0.00256799255294 0) (0.000309159208491 -0.00294109583831 0) (-0.000108385215682 -0.00330935438778 0) (-0.000761578288727 -0.0038424926404 0) (-0.00165686042499 -0.00427213983925 0) (-0.00277229247558 -0.00446114710325 0) (-0.00406976550187 -0.00426039179437 0) (-0.00507867670489 -0.00352642625162 0) (-0.00165067960664 -0.00317975926932 0) (-0.064253568793 0.00056731353397 0) (0.204913259428 0.4821389271 0) (-0.271041101682 0.437115354408 0) (0.167225517374 0.398815171268 0) (-0.0751662909982 0.444994203589 0) (0.0537832305592 0.459898908005 0) (-0.00618674809764 0.487078381482 0) (0.0270218500033 0.496691377131 0) (0.01663730851 0.505931639739 0) (0.0252961608877 0.507226723724 0) (0.0259174014482 0.506438711029 0) (0.0296797850804 0.501787429707 0) (0.032403373648 0.495053939311 0) (0.03559717822 0.485362414571 0) (0.0388153487622 0.472887449734 0) (0.0421136107834 0.45675287983 0) (0.0454463908119 0.436816660099 0) (0.0488166048335 0.413142365277 0) (0.0523962160478 0.387642068066 0) (0.0571430918334 0.364699669546 0) (0.0697222661483 0.352689126445 0) (0.096189776913 0.356445641683 -3.91773615335e-30) (0.115592894803 0.347228474677 0) (0.0950695815019 0.261107050903 0) (0.00282026426432 0.000984758967547 0) (0.00319492978768 0.00299677115199 0) (0.00328302056329 0.00314008090786 0) (0.00318210428055 0.00290110087696 0) (0.00306741792101 0.00264831347086 0) (0.00284531488057 0.0024123027249 0) (0.00260186728833 0.00225151386274 0) (0.00234264578238 0.00215333930719 0) (0.00206879739736 0.00209863702247 0) (0.0017913016595 0.00207199229686 0) (0.00151790415233 0.00205712821464 0) (0.00125706080301 0.0020676861475 1.71487671376e-31) (0.00100017387557 0.00209418645018 0) (0.000758340650492 0.00217250382359 0) (0.000545952350249 0.00226557181046 0) (0.000320350422462 0.00223167710081 0) (0.000100971042162 0.00214458984066 0) (2.27553227214e-06 -9.82623379243e-05 0) (1.35061957511e-05 -0.000110680820726 0) (3.14364438633e-05 -0.000122624760664 -3.29520418578e-29) (4.13328636136e-05 -0.000119873822773 0) (5.64979448067e-05 -0.000111422598817 0) (7.88148039888e-05 -0.000114144314714 0) (0.000100606846684 -0.000122755914217 0) (0.000128242394447 -0.000141702123924 0) (0.000154650192421 -0.000160536018 0) (0.000181930182809 -0.000179653483708 0) (0.000210951669617 -0.000200403634127 -1.3360520402e-29) (0.000241767093195 -0.00022358109712 0) (0.000274480375065 -0.000250013690953 0) (0.000309449136498 -0.00027966546941 0) (0.000346969229948 -0.000313235291864 0) (0.000387420875221 -0.000351255199415 0) (0.000431690443719 -0.000393180290664 0) (0.000481605556377 -0.000441036386005 0) (0.000540930710538 -0.000500347863181 0) (0.000605413889786 -0.000569185399222 0) (0.000675193940422 -0.00064858963046 -5.40512427143e-29) (0.000749625134572 -0.000739146697235 5.09294376456e-29) (0.00082762407389 -0.000842222769986 0) (0.000908619159608 -0.000962552271994 5.69576667215e-30) (0.000993853643451 -0.00110867167512 0) (0.00108190349455 -0.00128289397433 0) (0.00116466336233 -0.00147483626582 0) (0.00123370502722 -0.00169055143167 0) (0.00127517055328 -0.00195609924996 -3.84009408541e-30) (0.00127013008547 -0.00230785636279 0) (0.00118816346131 -0.00273742876914 0) (0.000983400239527 -0.00319819822708 0) (0.000589958846303 -0.00386882885899 0) (-0.000131425413467 -0.0046844294351 0) (-0.00122743265596 -0.00539837484337 0) (-0.00270382878279 -0.00588721527526 0) (-0.00453631824874 -0.00587298345425 0) (-0.00636870782761 -0.00514295192539 0) (-0.0035193788021 -0.00393421729995 0) (-0.0669674535814 0.000839735190627 0) (0.208051409347 0.482113845254 0) (-0.275915127938 0.443367174061 0) (0.171487952663 0.403866585028 0) (-0.0794945256359 0.449401709361 0) (0.0552411302691 0.46466108056 0) (-0.00929994266802 0.489644270416 0) (0.0259040537504 0.500291711395 0) (0.0134529149694 0.507791893146 0) (0.0224070263826 0.510134075729 0) (0.0219936165036 0.508404171793 0) (0.0255686516671 0.504646804651 0) (0.0276971195596 0.497595295153 0) (0.0307016351478 0.488664746557 0) (0.0336729948846 0.476257438196 0) (0.0370421843685 0.460799672681 0) (0.0405987433286 0.441159383906 0) (0.044604181169 0.418315416466 0) (0.0493315992883 0.393821551693 0) (0.0558399500144 0.373122754897 0) (0.0742808081677 0.364555477331 0) (0.109256595806 0.378540602995 0) (0.105224686124 0.376976163091 0) (0.0123480866047 0.0133452266218 0) (-0.00267797226579 0.00547025441258 0) (0.00275642110592 0.00407913727909 0) (0.00341853198048 0.00336220494188 0) (0.0034859955688 0.00282623406186 5.55980360431e-31) (0.00338171729944 0.00244953152214 0) (0.00318382603219 0.00217160316809 0) (0.00291575354882 0.00198613498892 0) (0.00263012649524 0.00187052272921 0) (0.00234313393034 0.00181348232987 0) (0.00204576436571 0.00179402420917 0) (0.00174057481107 0.00178821351355 0) (0.00145414604785 0.00181676927825 0) (0.0011684610964 0.00185224041291 0) (0.00087960856065 0.0018980657806 0) (0.000652742484748 0.00206737516619 0) (0.000382230531912 0.00197467507215 0) (0.000138484934902 0.00193776189628 0) (2.75251312531e-06 -9.64214676853e-05 0) (1.39434727913e-05 -9.36631807516e-05 0) (3.45760845016e-05 -0.000107803890602 3.62004469316e-29) (5.44507258426e-05 -0.000107608770493 0) (6.78901403876e-05 -8.25783762521e-05 0) (9.41351242346e-05 -9.15340735858e-05 0) (0.000121315326616 -0.000106135901231 0) (0.000148222760999 -0.000119591303291 0) (0.000176695333531 -0.000133753851685 0) (0.000206526703643 -0.000150154349941 0) (0.000238168547747 -0.000168889976072 0) (0.000271807889034 -0.000190134594049 0) (0.000307697987751 -0.000214156344377 0) (0.000346229968057 -0.000240909829464 0) (0.000386982035483 -0.000269714416473 0) (0.000433689859569 -0.00030238376673 0) (0.000491168235021 -0.000341357623866 0) (0.000554968720022 -0.000384677115009 6.33129668175e-29) (0.000626149393895 -0.000435715614462 -5.99748351341e-29) (0.000705072274752 -0.000497098431346 0) (0.000791742745386 -0.000569452586024 0) (0.000886344506849 -0.000653097239651 5.12932762905e-29) (0.000989942985792 -0.000748851318324 -4.83986259959e-29) (0.00110425210055 -0.000861409336231 -5.71684170392e-30) (0.00123151557152 -0.00100048555647 0) (0.00137047162982 -0.00117055684408 0) (0.00151484812348 -0.00136571643944 0) (0.00165455494769 -0.00159004286047 0) (0.00179106280508 -0.00188646758802 0) (0.00190233431874 -0.00229179910824 0) (0.00195486450418 -0.00280614247401 0) (0.00186401901959 -0.0034253234909 0) (0.00159149912889 -0.00439579606854 0) (0.00091026592471 -0.00560220439696 0) (-0.000355364202352 -0.0068374497475 0) (-0.00226918138937 -0.00773915780086 0) (-0.00481403911247 -0.00822324076612 0) (-0.00799757515445 -0.00748557772505 0) (-0.00545316431388 -0.00515828924728 0) (-0.0702872714909 0.00116097912272 0) (0.206437517673 0.496061402579 0) (-0.286796706016 0.441151499155 0) (0.180231022336 0.406109604907 -2.36941623647e-30) (-0.0843160500906 0.453068092437 0) (0.0587919437564 0.464382275351 0) (-0.0115053313244 0.494505990745 0) (0.0251210098777 0.500467155051 0) (0.0108435279676 0.512149929997 0) (0.0190255061867 0.511178502023 0) (0.0180067500748 0.512098726455 0) (0.0205279889488 0.506337052463 0) (0.0222986070672 0.500802879843 0) (0.0244754982668 0.490719205847 0) (0.0272329829822 0.479147184284 0) (0.0303156658716 0.463073495984 0) (0.0342919971317 0.444187583439 0) (0.0394260605653 0.421824502132 0) (0.0467613802469 0.40051884264 0) (0.0581872990495 0.385747271596 0) (0.0808188998512 0.386522429758 0) (0.103817222923 0.393822996009 0) (0.0504422575439 0.373912728634 0) (0.010198045761 0.0132210123605 0) (0.00799317271941 0.00605631802996 0) (0.00530040219327 0.00428303754125 0) (0.00453791490208 0.00328461052977 0) (0.0041401069575 0.00266905626172 -5.55664360165e-31) (0.00371708007226 0.00217307001121 0) (0.00352257572 0.00189701093778 4.72432929929e-31) (0.00322099087161 0.0016913418203 0) (0.0029041181746 0.00156781983934 0) (0.00258790142959 0.00149883746667 0) (0.00228975509125 0.00148470092875 0) (0.001962850003 0.00148411168395 0) (0.00166636238529 0.00152180451056 0) (0.00135952321593 0.00157111060747 0) (0.00103341874772 0.00161825862461 0) (0.000782622239057 0.00178532901934 0) (0.000478439908676 0.00175313295801 0) (0.000169626738122 0.00165755714798 0) (5.85005598461e-06 -8.08608405907e-05 0) (1.35190682406e-05 -6.40945385477e-05 0) (3.63947604861e-05 -8.56184358925e-05 -3.89367981728e-29) (7.2096474098e-05 -9.1577488857e-05 0) (7.62376053787e-05 -6.0932175011e-05 0) (0.000107518938392 -7.03715286277e-05 0) (0.000133005119105 -7.98012811765e-05 0) (0.000160563442254 -9.12268809649e-05 0) (0.000190009341446 -0.000104087470038 0) (0.000221520228508 -0.00011872660202 0) (0.000255544150379 -0.000135231134697 0) (0.000292433983976 -0.000153987667106 0) (0.00033259072991 -0.000175294814954 0) (0.00037521758158 -0.000198112393986 0) (0.000423123206955 -0.000222883750308 0) (0.000480319962448 -0.000250261838967 0) (0.000544512409218 -0.000278800501328 0) (0.000616821651386 -0.000312276505713 0) (0.000698360645538 -0.000354681069131 0) (0.000789933965278 -0.00040697906844 0) (0.000892656202596 -0.000470110703807 0) (0.00100677463376 -0.00054414071296 0) (0.00113560544336 -0.000627243102421 0) (0.00128353261804 -0.000722063776617 0) (0.00145425037826 -0.000843323880349 0) (0.00164881558057 -0.00100067176408 0) (0.00185882673185 -0.00118377516891 0) (0.00207889059134 -0.00139518942977 0) (0.00233212853348 -0.00169538620372 0) (0.0026009912139 -0.00212876296077 0) (0.00285186634811 -0.00270488638893 0) (0.00294918100812 -0.00344393439442 0) (0.00298698362123 -0.0047517558565 0) (0.00255735237084 -0.00645179624143 0) (0.00132849253717 -0.00849293944007 0) (-0.00111693251106 -0.0101995960362 0) (-0.00475606507161 -0.0117790106865 3.38569793799e-30) (-0.00948010402709 -0.0109614993528 0) (-0.00951811814625 -0.00918248037696 0) (-0.0773186603129 0.00190103440148 0) (0.214116397425 0.479596052566 0) (-0.279089441199 0.466099869053 0) (0.180398541442 0.415877185779 2.37129602787e-30) (-0.086611333007 0.457398424484 0) (0.0591606271074 0.475838118656 0) (-0.0155095251828 0.490291233966 0) (0.0242362444395 0.507441631017 0) (0.00643022936412 0.506856051921 0) (0.016460254996 0.514950542073 0) (0.0130649936657 0.508624299013 0) (0.016462220243 0.50919816586 0) (0.0166727903197 0.500229770544 0) (0.0191633112413 0.494728707859 0) (0.0209437877416 0.482353577125 0) (0.0240572489115 0.470302696786 0) (0.027443670078 0.45249024376 0) (0.0320221930699 0.43441452068 0) (0.0380979230996 0.414414290326 0) (0.0496828880495 0.402693189262 0) (0.0917692456282 0.395137367206 0) (0.14190577717 0.390196708895 0) (0.118249915151 0.324860653401 0) (0.00582865342463 0.000555432145787 0) (0.00603256514055 0.00320142032024 0) (0.00554392772005 0.00322380634959 0) (0.00503637564335 0.00275832517731 0) (0.00460532861059 0.00227532005974 0) (0.00415576559179 0.00187632736948 0) (0.00378094565977 0.00155423705318 -4.44340479979e-31) (0.00348282294928 0.00135027563271 0) (0.00313698142205 0.00123921840564 0) (0.00279896065728 0.00117758003852 4.18315673226e-31) (0.00251274428617 0.00117045077666 0) (0.00220290337084 0.00118325920538 0) (0.00185917956658 0.00119811065801 0) (0.0015639703119 0.00126296061689 0) (0.00125308608739 0.00136932343225 0) (0.0009433981632 0.00153738382523 0) (0.000498557176798 0.00144446613625 0) (0.000133447240041 0.00123324272268 0) (1.12900604586e-05 -7.80295087428e-05 0) (2.92970375185e-05 -6.83382065655e-05 0) (5.15153324011e-05 -6.56085904098e-05 4.36554449656e-29) (7.36484890088e-05 -5.85601127591e-05 0) (7.96768181658e-05 -4.17115332648e-05 0) (0.000108784081241 -4.58041734183e-05 0) (0.000133968621702 -5.26309576234e-05 0) (0.000161496321616 -6.25871155899e-05 0) (0.000190669848933 -7.3182392578e-05 0) (0.000222928719624 -8.46083213819e-05 0) (0.000259277404871 -9.72124645452e-05 0) (0.000300687596542 -0.000112186394154 0) (0.000346027782452 -0.000129523315869 0) (0.000397670147869 -0.000149536234166 0) (0.000452702896722 -0.00016976470961 0) (0.000514240405532 -0.0001888512284 0) (0.000584624149946 -0.000207696633017 0) (0.000664615054848 -0.000231552902685 0) (0.000754604824742 -0.000263425777017 0) (0.000858035059267 -0.000303702108147 0) (0.000974647600081 -0.000354194870637 0) (0.00110584601177 -0.000413649810008 0) (0.00125892148069 -0.000473360908841 0) (0.00144183157371 -0.000539313696127 0) (0.00165674783017 -0.000635051272404 0) (0.00190692847902 -0.000771050744731 0) (0.00219597742272 -0.000936022865284 0) (0.00250392035231 -0.00111452070496 0) (0.00283056530631 -0.00134676839108 0) (0.00330706549797 -0.00176235154192 0) (0.00381310975957 -0.00234349101935 0) (0.00422910557737 -0.0031522177091 0) (0.00480667082266 -0.00467759801601 0) (0.00506846114038 -0.006888444235 0) (0.00428961818801 -0.00990609439407 0) (0.00239315980918 -0.0136894511026 0) (-0.00378759034673 -0.0126363984675 -3.80561238787e-30) (-0.0105719737712 -0.0159009016745 0) (-0.0164140702486 -0.0216619794814 0) (-0.0883607356701 -0.000834766499434 0) (0.192131865608 0.576045353926 0) (-0.315759449093 0.412623519272 0) (0.211627206694 0.402856350985 0) (-0.0939064958706 0.464110902542 0) (0.0714812933272 0.448095071112 0) (-0.0137077733773 0.512650983585 0) (0.0243778993116 0.488405534372 0) (0.00671955506615 0.527924433232 0) (0.0110306826225 0.505312729336 0) (0.00970952731681 0.523900315963 0) (0.00820890248116 0.50453916101 0) (0.0097103202632 0.509072902716 0) (0.00861618801999 0.49079751167 0) (0.0105678269114 0.484811395933 0) (0.0114490463317 0.46405033242 0) (0.0151992639018 0.449557938399 0) (0.021832459713 0.426715013894 0) (0.0342613390415 0.41627459427 0) (0.0657811306635 0.417455510012 0) (0.135997522226 0.477087603298 0) (0.101746163315 0.527069515073 0) (0.0242434171748 0.0239538858077 0) (-0.00146464734642 0.00449289397469 0) (0.00510305041741 0.00414912478224 0) (0.00574298785825 0.00305543654689 0) (0.0054892073508 0.00234521219899 0) (0.005023909083 0.00183102359852 0) (0.00453605242167 0.0014662764404 0) (0.00397398632646 0.00115261014412 0) (0.00373200001621 0.000985609728871 0) (0.00333573150126 0.000894040199788 0) (0.00300524868635 0.000872286995342 -4.17502689233e-31) (0.00271170831837 0.000867960420578 0) (0.0024031601015 0.000867569279522 0) (0.00206434919734 0.000892408664797 0) (0.0017061572778 0.000930001679572 0) (0.00132880918874 0.000973831742898 0) (0.000924489478917 0.00102184379788 0) (0.000437227866462 0.000939297403034 0) (0.000123840995128 0.00099083123062 0) (1.60475917691e-05 -5.01073852883e-05 0) (5.13591070185e-05 -4.2765787905e-05 0) (5.9340361838e-05 -3.98319354452e-05 3.58612241084e-29) (0.000102026543736 -5.41021138541e-05 0) (7.9354433558e-05 -2.71913267519e-05 0) (0.000104304446751 -2.13218309493e-05 0) (0.000127888373506 -2.40653607068e-05 0) (0.000155547986166 -3.30976198677e-05 0) (0.000183829759158 -4.00232919217e-05 0) (0.000220214789518 -4.73803807254e-05 0) (0.000261221030475 -5.57545587593e-05 0) (0.000307186241832 -6.65652858339e-05 0) (0.000357257204385 -8.02566038512e-05 0) (0.000409938774866 -9.59334281662e-05 0) (0.00046490998008 -0.000111290840316 0) (0.000529492029828 -0.000121584090778 0) (0.000602612191002 -0.000126375466277 0) (0.000689728107286 -0.00013729070017 0) (0.000795813807091 -0.00015950228036 0) (0.000913201762875 -0.000186439778026 0) (0.00104361734371 -0.000218332037706 0) (0.00120852486202 -0.000259771910344 0) (0.0014217897923 -0.000306123932409 0) (0.00161640883314 -0.000342292695639 0) (0.00183037516763 -0.000394550796299 0) (0.0021164700451 -0.000486772879319 0) (0.00247291953102 -0.000607010415221 0) (0.00288737216537 -0.000741604341704 0) (0.00335029221527 -0.000910001304949 0) (0.00391709450058 -0.00119095254794 0) (0.0047114977206 -0.00165454128321 0) (0.00556329757939 -0.00236694917729 0) (0.00691589419016 -0.00385207201826 0) (0.00838548572106 -0.00616167441111 0) (0.0106259411383 -0.012660928217 0) (0.00410047082751 -0.0102618929209 0) (0.00196897633385 -0.0305924951449 0) (0.00143200309203 -0.012207361572 0) (-0.0221231574783 -0.0174499279022 0) (-0.131244481909 -0.0294573708218 0) (0.267835417445 0.447777434732 0) (-0.201881286876 0.534977028566 0) (0.156729410953 0.460806596048 0) (-0.0851398423977 0.474551089092 0) (0.0595964811768 0.503836545047 0) (-0.0287874289125 0.479844440298 0) (0.0269698787698 0.516834473388 0) (-0.00838235180035 0.490491584086 0) (0.0155918659881 0.515497409795 0) (-0.000873366854946 0.496049820932 0) (0.0112948092608 0.509279298809 0) (0.00294669366942 0.495887360288 0) (0.00987830719329 0.500829535087 0) (0.00618735337155 0.49034397313 0) (0.0104382807577 0.489587485255 0) (0.0100616355994 0.479388583861 0) (0.0117641835666 0.476967462026 0) (0.0107736385731 0.469448280202 0) (-0.0104285717275 0.467699470117 0) (0.0232491469696 0.405234602253 0) (0.0732028949224 0.273678576811 0) (0.0327639224985 0.00620567796858 0) (0.0193604209259 0.002573651265 0) (0.00756435919726 0.00485680664346 0) (0.00734821293016 0.00257272093289 0) (0.00626493535714 0.00172921180039 0) (0.00548617958085 0.00124666366437 0) (0.0048599051769 0.000951591633724 0) (0.00418196877287 0.000723131435525 0) (0.00388671936331 0.000586899734856 0) (0.00353594618822 0.000535447976992 0) (0.00314992906647 0.000541773432226 0) (0.00279140765756 0.000535998803828 0) (0.00246328468006 0.000520813015861 0) (0.00211827317097 0.000521657712135 0) (0.00173624814389 0.000539954835755 0) (0.00135663324035 0.000571997410294 0) (0.000982656767804 0.000610937188214 0) (0.000548624697883 0.000599707023395 0) (0.000214143071965 0.000761460745669 0) (2.84857244959e-05 -2.03965585476e-05 0) (3.75918766774e-05 -7.41423044223e-06 0) (7.21406376293e-05 -1.64244574761e-05 -3.52198777104e-29) (0.00011706382071 -2.32078278634e-05 0) (0.000158890696931 -2.25240050617e-05 0) (0.000178855826147 -7.80595666576e-06 0) (0.00017603082205 -6.36216585475e-06 0) (0.000204024452674 -1.15103513138e-05 0) (0.000229220608001 -1.38284294839e-05 0) (0.00025758257972 -1.51084394276e-05 0) (0.00028980351129 -1.71962664916e-05 0) (0.0003276906333 -2.08116020365e-05 0) (0.000375538467161 -2.6541978034e-05 0) (0.000435940300642 -3.4337235063e-05 0) (0.000512399249787 -4.27683784356e-05 0) (0.000611907822707 -4.72829973869e-05 0) (0.00070239735095 -4.5060230931e-05 0) (0.000778255924643 -4.44651050034e-05 0) (0.000875956510873 -5.10651810214e-05 0) (0.000993311538225 -6.03208286831e-05 0) (0.00112290087423 -6.9376794894e-05 0) (0.00127986592462 -7.94807946109e-05 0) (0.00147468313517 -9.39035065188e-05 0) (0.00169309494437 -0.000109850579126 0) (0.00191796711563 -0.000126826276206 0) (0.0022090100366 -0.000156584239097 0) (0.00259610619747 -0.000198540583012 0) (0.00306650397774 -0.000246104414041 0) (0.00360712214422 -0.000308386789376 0) (0.00429819878013 -0.000417553972749 0) (0.0053553839808 -0.000598243093738 0) (0.00660461368784 -0.000891430377551 0) (0.00861420579731 -0.00158189351171 0) (0.0145418873778 -0.0029434540483 0) (0.0101432898468 -0.00615269011838 0) (0.0772681559166 -0.0111451340479 0) (0.0037587688004 -0.00385783220308 0) (0.197632488441 -0.0124625146456 0) (0.155361628356 -0.0753577578871 0) (-0.156563264427 -0.0233468292653 0) (1.14232273046 1.10395977619 0) (-1.91701705804 0.0459816208687 0) (2.41118723465 0.341150842825 0) (-1.90503122759 0.542335437234 0) (2.11779867582 0.255678634262 0) (-1.25483342784 0.678971022447 0) (1.49425983497 0.332936096096 0) (-0.675456755643 0.670169879258 0) (0.971188332377 0.407888038062 0) (-0.290433987519 0.620182981674 0) (0.621179060619 0.445870502074 0) (-0.053832835566 0.562850964711 0) (0.418966064792 0.447905727206 0) (0.105373048373 0.501957282804 0) (0.330362356967 0.417706120617 0) (0.252224275048 0.434350105939 0) (0.329131182772 0.362646084392 0) (0.45145832546 0.380867829342 0) (0.354095579372 0.345440796321 0) (0.794234351156 0.621170413546 0) (0.0482410137991 1.0289912212 0) (0.0190370714876 0.0209799088944 0) (0.00699237726578 -0.015432143848 0) (0.00546521067236 0.00191075021739 0) (0.0088599920536 0.000940047791888 0) (0.00681055461571 0.000614974192358 0) (0.00579570229527 0.000427447032241 0) (0.00505448958555 0.000316616588569 0) (0.00434080885888 0.000237872701889 0) (0.00398114601853 0.000182525741072 0) (0.00374119871301 0.000165883924936 0) (0.00335953616779 0.000178507821197 0) (0.0029575885193 0.00018117548978 0) (0.00260255842124 0.000172950255749 0) (0.00226779619294 0.000170982833186 0) (0.0019143056203 0.000183987098677 0) (0.00153495615812 0.000205118455838 0) (0.00113760913661 0.000217571236855 0) (0.000664879533023 0.000199141610952 0) (0.000334696205592 0.000299769193928 0) ) ; boundaryField { frontAndBack { type empty; } upperWall { type noSlip; } lowerWall { type noSlip; } inlet { type fixedValue; value uniform (0 0.5 0); } outlet { type adjointOutletVelocityPower; value nonuniform List<vector> 20 ( (0.17168160216 -0.34570161478 0) (0.397329348202 -0.289845075147 0) (0.495517079278 -0.221092168021 0) (0.552019576233 -0.158472632016 0) (0.585485180165 -0.0997491912516 0) (0.602893489065 -0.0460644492265 0) (0.608179034736 0.0068116631454 0) (0.604606089952 0.0506260815174 0) (0.596290730776 0.0891305763094 0) (0.584733378906 0.123158606743 0) (0.570529155055 0.153511839223 0) (0.553895951994 0.180649320093 0) (0.534891672862 0.204934327872 0) (0.513460646629 0.226676022887 0) (0.489406854559 0.246197424292 0) (0.462224615863 0.263784241424 0) (0.431053394321 0.279618066423 0) (0.394912665029 0.294589615101 0) (0.355758268857 0.311024417738 0) (0.262143553553 0.31941327107 0) ) ; } } // ************************************************************************* //
[ "as998@snu.edu.in" ]
as998@snu.edu.in
bf1a1abab33631fcb4a7a32d57c404befcb80488
5de6e7452825dbecea4a811d6dc8ff9ffc8105df
/src/mat.cpp
56cbcddf821865fa23d98856a568e307385fb7ec
[ "MIT" ]
permissive
Zhengtq/BFQ
d6b54b2077cf76b86e00e30914a4afc0cb751213
11460756d7684e0e08642feb51a8b8ef53213511
refs/heads/main
2023-03-20T19:38:19.219599
2021-03-16T05:17:39
2021-03-16T05:17:39
345,588,118
9
0
null
null
null
null
UTF-8
C++
false
false
506
cpp
#include "mat.h" #include <math.h> #include "layer.h" namespace ncnn { void copy_make_border(const Mat& src, Mat& dst, int top, int bottom, int left, int right, int type, float v, const Option& opt) { Layer* padding = create_layer("Padding"); ParamDict pd; pd.set(0, top); pd.set(1, bottom); pd.set(2, left); pd.set(3, right); pd.set(4, type); pd.set(5, v); padding->load_param(pd); padding->forward(src, dst, opt); delete padding; } }
[ "1553866519@qq.com" ]
1553866519@qq.com
e71bc0bc57587c03bb37ff9e6d74a5b604be19d8
58f46a28fc1b58f9cd4904c591b415c29ab2842f
/chromium-courgette-redacted-29.0.1547.57/media/filters/fake_video_decoder_unittest.cc
fc1cb14adc668df9a71d9084b5a42b46f40788fb
[ "BSD-3-Clause" ]
permissive
bbmjja8123/chromium-1
e739ef69d176c636d461e44d54ec66d11ed48f96
2a46d8855c48acd51dafc475be7a56420a716477
refs/heads/master
2021-01-16T17:50:45.184775
2015-03-20T18:38:11
2015-03-20T18:42:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
11,122
cc
// Copyright 2013 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/basictypes.h" #include "base/bind.h" #include "base/message_loop.h" #include "media/base/decoder_buffer.h" #include "media/base/mock_filters.h" #include "media/base/test_helpers.h" #include "media/base/video_frame.h" #include "media/filters/fake_demuxer_stream.h" #include "media/filters/fake_video_decoder.h" #include "testing/gtest/include/gtest/gtest.h" namespace media { static const int kDecodingDelay = 9; static const int kNumConfigs = 3; static const int kNumBuffersInOneConfig = 9; static const int kNumInputBuffers = kNumConfigs * kNumBuffersInOneConfig; class FakeVideoDecoderTest : public testing::Test { public: FakeVideoDecoderTest() : decoder_(new FakeVideoDecoder(kDecodingDelay)), demuxer_stream_( new FakeDemuxerStream(kNumConfigs, kNumBuffersInOneConfig, false)), num_decoded_frames_(0), is_read_pending_(false), is_reset_pending_(false), is_stop_pending_(false) {} virtual ~FakeVideoDecoderTest() { StopAndExpect(OK); } void Initialize() { decoder_->Initialize(demuxer_stream_.get(), NewExpectedStatusCB(PIPELINE_OK), base::Bind(&MockStatisticsCB::OnStatistics, base::Unretained(&statistics_cb_))); message_loop_.RunUntilIdle(); } void EnterPendingInitState() { decoder_->HoldNextInit(); Initialize(); } void SatisfyInit() { decoder_->SatisfyInit(); message_loop_.RunUntilIdle(); } // Callback for VideoDecoder::Read(). void FrameReady(VideoDecoder::Status status, const scoped_refptr<VideoFrame>& frame) { DCHECK(is_read_pending_); ASSERT_EQ(VideoDecoder::kOk, status); is_read_pending_ = false; frame_read_ = frame; if (frame.get() && !frame->IsEndOfStream()) num_decoded_frames_++; } enum CallbackResult { PENDING, OK, ABROTED, EOS }; void ExpectReadResult(CallbackResult result) { switch (result) { case PENDING: EXPECT_TRUE(is_read_pending_); ASSERT_FALSE(frame_read_.get()); break; case OK: EXPECT_FALSE(is_read_pending_); ASSERT_TRUE(frame_read_.get()); EXPECT_FALSE(frame_read_->IsEndOfStream()); break; case ABROTED: EXPECT_FALSE(is_read_pending_); EXPECT_FALSE(frame_read_.get()); break; case EOS: EXPECT_FALSE(is_read_pending_); ASSERT_TRUE(frame_read_.get()); EXPECT_TRUE(frame_read_->IsEndOfStream()); break; } } void ReadOneFrame() { frame_read_ = NULL; is_read_pending_ = true; decoder_->Read( base::Bind(&FakeVideoDecoderTest::FrameReady, base::Unretained(this))); message_loop_.RunUntilIdle(); } void ReadUntilEOS() { do { ReadOneFrame(); } while (frame_read_.get() && !frame_read_->IsEndOfStream()); } void EnterPendingReadState() { decoder_->HoldNextRead(); ReadOneFrame(); ExpectReadResult(PENDING); } void SatisfyRead() { decoder_->SatisfyRead(); message_loop_.RunUntilIdle(); ExpectReadResult(OK); } // Callback for VideoDecoder::Reset(). void OnDecoderReset() { DCHECK(is_reset_pending_); is_reset_pending_ = false; } void ExpectResetResult(CallbackResult result) { switch (result) { case PENDING: EXPECT_TRUE(is_reset_pending_); break; case OK: EXPECT_FALSE(is_reset_pending_); break; default: NOTREACHED(); } } void ResetAndExpect(CallbackResult result) { is_reset_pending_ = true; decoder_->Reset(base::Bind(&FakeVideoDecoderTest::OnDecoderReset, base::Unretained(this))); message_loop_.RunUntilIdle(); ExpectResetResult(result); } void EnterPendingResetState() { decoder_->HoldNextReset(); ResetAndExpect(PENDING); } void SatisfyReset() { decoder_->SatisfyReset(); message_loop_.RunUntilIdle(); ExpectResetResult(OK); } // Callback for VideoDecoder::Stop(). void OnDecoderStopped() { DCHECK(is_stop_pending_); is_stop_pending_ = false; } void ExpectStopResult(CallbackResult result) { switch (result) { case PENDING: EXPECT_TRUE(is_stop_pending_); break; case OK: EXPECT_FALSE(is_stop_pending_); break; default: NOTREACHED(); } } void StopAndExpect(CallbackResult result) { is_stop_pending_ = true; decoder_->Stop(base::Bind(&FakeVideoDecoderTest::OnDecoderStopped, base::Unretained(this))); message_loop_.RunUntilIdle(); ExpectStopResult(result); } void EnterPendingStopState() { decoder_->HoldNextStop(); StopAndExpect(PENDING); } void SatisfyStop() { decoder_->SatisfyStop(); message_loop_.RunUntilIdle(); ExpectStopResult(OK); } // Callback for DemuxerStream::Read so that we can skip frames to trigger a // config change. void BufferReady(bool* config_changed, DemuxerStream::Status status, const scoped_refptr<DecoderBuffer>& buffer) { if (status == DemuxerStream::kConfigChanged) *config_changed = true; } void ChangeConfig() { bool config_changed = false; while (!config_changed) { demuxer_stream_->Read(base::Bind(&FakeVideoDecoderTest::BufferReady, base::Unretained(this), &config_changed)); message_loop_.RunUntilIdle(); } } void EnterPendingDemuxerReadState() { demuxer_stream_->HoldNextRead(); ReadOneFrame(); } void SatisfyDemuxerRead() { demuxer_stream_->SatisfyRead(); message_loop_.RunUntilIdle(); } void AbortDemuxerRead() { demuxer_stream_->Reset(); message_loop_.RunUntilIdle(); } base::MessageLoop message_loop_; scoped_ptr<FakeVideoDecoder> decoder_; scoped_ptr<FakeDemuxerStream> demuxer_stream_; MockStatisticsCB statistics_cb_; int num_decoded_frames_; // Callback result/status. scoped_refptr<VideoFrame> frame_read_; bool is_read_pending_; bool is_reset_pending_; bool is_stop_pending_; private: DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoderTest); }; TEST_F(FakeVideoDecoderTest, Initialize) { Initialize(); } TEST_F(FakeVideoDecoderTest, Read_AllFrames) { Initialize(); ReadUntilEOS(); EXPECT_EQ(kNumInputBuffers, num_decoded_frames_); } TEST_F(FakeVideoDecoderTest, Read_AbortedDemuxerRead) { Initialize(); demuxer_stream_->HoldNextRead(); ReadOneFrame(); AbortDemuxerRead(); ExpectReadResult(ABROTED); } TEST_F(FakeVideoDecoderTest, Read_DecodingDelay) { Initialize(); while (demuxer_stream_->num_buffers_returned() < kNumInputBuffers) { ReadOneFrame(); EXPECT_EQ(demuxer_stream_->num_buffers_returned(), num_decoded_frames_ + kDecodingDelay); } } TEST_F(FakeVideoDecoderTest, Read_ZeroDelay) { decoder_.reset(new FakeVideoDecoder(0)); Initialize(); while (demuxer_stream_->num_buffers_returned() < kNumInputBuffers) { ReadOneFrame(); EXPECT_EQ(demuxer_stream_->num_buffers_returned(), num_decoded_frames_); } } TEST_F(FakeVideoDecoderTest, Read_Pending) { Initialize(); EnterPendingReadState(); SatisfyRead(); } TEST_F(FakeVideoDecoderTest, Reinitialize) { Initialize(); VideoDecoderConfig old_config = demuxer_stream_->video_decoder_config(); ChangeConfig(); VideoDecoderConfig new_config = demuxer_stream_->video_decoder_config(); EXPECT_FALSE(new_config.Matches(old_config)); Initialize(); } // Reinitializing the decoder during the middle of the decoding process can // cause dropped frames. TEST_F(FakeVideoDecoderTest, Reinitialize_FrameDropped) { Initialize(); ReadOneFrame(); Initialize(); ReadUntilEOS(); EXPECT_LT(num_decoded_frames_, kNumInputBuffers); } TEST_F(FakeVideoDecoderTest, Reset) { Initialize(); ReadOneFrame(); ResetAndExpect(OK); } TEST_F(FakeVideoDecoderTest, Reset_DuringPendingDemuxerRead) { Initialize(); EnterPendingDemuxerReadState(); ResetAndExpect(PENDING); SatisfyDemuxerRead(); ExpectReadResult(ABROTED); } TEST_F(FakeVideoDecoderTest, Reset_DuringPendingDemuxerRead_Aborted) { Initialize(); EnterPendingDemuxerReadState(); ResetAndExpect(PENDING); AbortDemuxerRead(); ExpectReadResult(ABROTED); } TEST_F(FakeVideoDecoderTest, Reset_DuringPendingRead) { Initialize(); EnterPendingReadState(); ResetAndExpect(PENDING); SatisfyRead(); } TEST_F(FakeVideoDecoderTest, Reset_Pending) { Initialize(); EnterPendingResetState(); SatisfyReset(); } TEST_F(FakeVideoDecoderTest, Reset_PendingDuringPendingRead) { Initialize(); EnterPendingReadState(); EnterPendingResetState(); SatisfyRead(); SatisfyReset(); } TEST_F(FakeVideoDecoderTest, Stop) { Initialize(); ReadOneFrame(); ExpectReadResult(OK); StopAndExpect(OK); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingInitialization) { EnterPendingInitState(); EnterPendingStopState(); SatisfyInit(); SatisfyStop(); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingDemuxerRead) { Initialize(); EnterPendingDemuxerReadState(); StopAndExpect(PENDING); SatisfyDemuxerRead(); ExpectReadResult(ABROTED); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingDemuxerRead_Aborted) { Initialize(); EnterPendingDemuxerReadState(); ResetAndExpect(PENDING); StopAndExpect(PENDING); SatisfyDemuxerRead(); ExpectReadResult(ABROTED); ExpectResetResult(OK); ExpectStopResult(OK); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingRead) { Initialize(); EnterPendingReadState(); StopAndExpect(PENDING); SatisfyRead(); ExpectStopResult(OK); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingReset) { Initialize(); EnterPendingResetState(); StopAndExpect(PENDING); SatisfyReset(); ExpectStopResult(OK); } TEST_F(FakeVideoDecoderTest, Stop_DuringPendingReadAndPendingReset) { Initialize(); EnterPendingReadState(); EnterPendingResetState(); StopAndExpect(PENDING); SatisfyRead(); SatisfyReset(); ExpectStopResult(OK); } TEST_F(FakeVideoDecoderTest, Stop_Pending) { Initialize(); decoder_->HoldNextStop(); StopAndExpect(PENDING); decoder_->SatisfyStop(); message_loop_.RunUntilIdle(); ExpectStopResult(OK); } TEST_F(FakeVideoDecoderTest, Stop_PendingDuringPendingRead) { Initialize(); EnterPendingReadState(); EnterPendingStopState(); SatisfyRead(); SatisfyStop(); } TEST_F(FakeVideoDecoderTest, Stop_PendingDuringPendingReset) { Initialize(); EnterPendingResetState(); EnterPendingStopState(); SatisfyReset(); SatisfyStop(); } TEST_F(FakeVideoDecoderTest, Stop_PendingDuringPendingReadAndPendingReset) { Initialize(); EnterPendingReadState(); EnterPendingResetState(); EnterPendingStopState(); SatisfyRead(); SatisfyReset(); SatisfyStop(); } } // namespace media
[ "Khilan.Gudka@cl.cam.ac.uk" ]
Khilan.Gudka@cl.cam.ac.uk
897e4c02b1a5d27083263a186fcfc40102de7236
a47252d9df8b255a4f69c411226a17ee2472789d
/unit_test/suite_of_tests.cpp
eb4c5ff3e5be1d8a4ea6643e96515d3134e3369d
[]
no_license
giangiac/intro_to_alg
1670e22d12f01455b663fdda40a25e7261810b66
37dbde0683f30e94c3aa50e888987f95d7a0e7d0
refs/heads/master
2023-02-18T05:34:08.292158
2021-01-19T01:59:30
2021-01-19T01:59:30
273,759,468
0
0
null
null
null
null
UTF-8
C++
false
false
860
cpp
/// @file suit_of_tests.cpp Define unit tests for the repo #include <cmath> // std::abs(), std::cos(), std::pow(), ... #include <iostream> // googletest #include "gtest/gtest.h" // To compare complex values in an approximated way. #define ASSERT_COMPLEX_NEAR(val1,val2,error) \ ASSERT_NEAR(val1.real(),val2.real(),error); \ ASSERT_NEAR(val1.imag(),val2.imag(),error); // Headers with the implementation of the various tests. #include "include/compiler_flags_test.hpp" #include "include/heap_test.hpp" #include "include/heapsort_test.hpp" ////////////////////////////////////////////////////////////////////////////// // main // We want to unit_test an MPI program. int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } //////////////////////////////////////////////////////////////////////////////
[ "giangiacomo.guerreschi@gmail.com" ]
giangiacomo.guerreschi@gmail.com
b5ad460585ef072a4fcb45beac5d730079c59577
9a0f9505d96b03542b43115e8d2a8ec83cdbf46c
/CheckingAccount.h
283d1ba9b02d6f8d45e1dc645408dab4a8d19110
[]
no_license
dsingh80/FinalProject_Year1
a7d975564db7d3526b8ca881f5bc46dd7e779d70
e1654320dd6965508cebbce18fdd57b4cff40091
refs/heads/master
2020-07-06T12:09:25.039637
2016-12-05T00:05:54
2016-12-05T00:05:54
73,961,011
0
0
null
null
null
null
UTF-8
C++
false
false
393
h
#ifndef CHECKING_ACCOUNT_H_EXISTS #define CHECKING_ACCOUNT_H_EXISTS #include "Account.h" #include <string> class CheckingAccount : public Account { public: CheckingAccount(); CheckingAccount(std::string); // initialize with information and owner ~CheckingAccount(); std::string getType(); std::string getSaveInfo(); // get info to write to save file private: }; #endif
[ "damsingh@tesla.cs.iupui.edu" ]
damsingh@tesla.cs.iupui.edu
450a4a0993fc988b2c90bb59f897ccac68d409c8
61e11350ff236aee8f8b79a324e505eb6413efe6
/DIRR.CPP
e8d0dbadb4dec2926b738f77aa699f088399c579
[ "MIT" ]
permissive
AungWinnHtut/CipherCAD2003
6de9c539e8b785ee01fd5a835745c9295b98fbe3
fc826abcd2ae01acd477ad90f626f056ee53bc91
refs/heads/master
2021-01-01T05:35:21.073374
2015-08-01T02:30:44
2015-08-01T02:30:44
40,032,504
0
0
null
null
null
null
UTF-8
C++
false
false
3,075
cpp
#include"aung.h" void MAINMENU(int s); void Msgbox(); void menu_dirr(int pos); //defaultvalue int button_dirr(int s); void HELP(); char *current_directory(char *path); struct ffblk ffblk; int done; char fname_dirr[100]; const int size_dirr=4; char list_dirr[size_dirr][19]= {" OK \0", " CANCEL \0", " HELP \0", " EXIT \0" }; void DIRR() { clrscr(); char curdir[MAXPATH]; int i=1,j=1; Window(1,1,80,25,BLACK); Window(20,4,60,8,BLUE); Label(1,1,RED,BLUE,"D"); Label(2,1,WHITE,BLUE,"irectory Programmer Aung Win Htut "); Window(20,5,60,8,5); Label(4,1,YELLOW,5,"Filename"); menu_dirr(0); Window(20,6,60,7,5); Datafield(3,1," "); gotoxy(3,1); gets(fname_dirr); button_dirr(1); _setcursortype(_NOCURSOR); Window(15,12,65,25,1); current_directory(curdir); gotoxy(1,1); printf("Directory listing of %s",fname_dirr); gotoxy(1,2); printf("Current Directory is %s",curdir); Label(15,14,4,3,"Press any key to EXIT"); done = findfirst(fname_dirr,&ffblk,0); Window(15,14,65,25,1); while (!done&&!kbhit()) { gotoxy(1,i); textcolor(3); textbackground(1); cprintf("%d %s\n",j, ffblk.ff_name); done = findnext(&ffblk); delay(400); i++; j++; if(i==11) { i=1; Window(15,14,65,25,1); Label(15,12,4,2,"Press any key to EXIT"); } Label(15,12,4,2,"Press any key to EXIT"); } gotoxy(15,12); textcolor(1); textbackground(3); cprintf("Total Files ==> %d files",j-1); _setcursortype(_NOCURSOR); getch(); } int button_dirr(int s) { int index = s,n; char ch; menu_dirr(index-1); do{ _setcursortype(_NOCURSOR); ch = getch(); if(ch == char(0)) ch = getch(); switch(ch){ case char(27) : return 0; //==================================== case char(75) : index = (index == 1) ? size_dirr : index-1;break; case char(77) : index = (index == size_dirr) ? 1 : index+1;break; case char(13) : switch(index){ case 1 : _setcursortype(_NORMALCURSOR); return(0); case 2 : _setcursortype(_NORMALCURSOR); DIRR(); case 3 : _setcursortype(_NORMALCURSOR); HELP(); MAINMENU(2); break; case 4 : _setcursortype(_NORMALCURSOR); exit(0); } } menu_dirr(index-1); } while ( ch != 13 || ch != 27 || ch != 6 || ch != 3 || ch != 27 ); return 0; } void menu_dirr(int pos) { int i; Window(20,19,60,19,1); for ( i = 0; i<size_dirr; i++ ) { if ( i == pos ) textbackground(4); else textbackground(1); cprintf(list_dirr[i]); } } char *current_directory(char *path) { strcpy(path, "X:\\"); /* fill string with form of response: X:\ */ path[0] = 'A' + getdisk(); /* replace X with current drive letter */ getcurdir(0, path+3); /* fill rest of string with current directory */ return(path); }
[ "aungwinnhtut@gmail.com" ]
aungwinnhtut@gmail.com
505633c2b38cc513efafba476f3c3ded960bcb11
34d27a21336a1ae2a569bcef0bae59b762593e86
/intersection_linkedlist/testCode.cpp
f9412ee703d2f31404ae7efed3cfe48316a8a15c
[]
no_license
nitinkodial/mini_code_assignments
563a9275b5c19e1428571dfd35e743430afcdc56
a14eb12d9137dbfbeddbb346503738d24db880e4
refs/heads/master
2021-09-10T20:46:30.142374
2018-04-02T03:57:07
2018-04-02T03:57:07
114,929,898
0
0
null
null
null
null
UTF-8
C++
false
false
2,026
cpp
// Intersection: Given two (singly) linked lists, determine if the two lists intersect. Return the inter- // secting node. Note that the intersection is defined based on reference, not value. That is, if the kth // node of the first linked list is the exact same node (by reference) as the jth node of the second // linked list, then they are intersecting. #include <iostream> #include "../linkedList/linkedList.h" using namespace std; node* intersection(linkedList* sll1,linkedList* sll2) { // node* intersection_node = NULL; node *ptr1 = sll1->get_head(); node *ptr2 = sll2->get_head(); while(ptr1->next!=NULL){ ptr1=ptr1->next; } while(ptr2->next!=NULL){ ptr2=ptr2->next; } if(ptr1!=ptr2){ return NULL; } else{ int n1 = sll1->get_length(); int n2 = sll2->get_length(); ptr1 = sll1->get_head(); ptr2 = sll2->get_head(); if(n1>n2){ for(int i = 0;i<(n1-n2);i++){ ptr1 = ptr1->next; } while(ptr1!=ptr2){ ptr1 = ptr1->next; ptr2 = ptr2->next; } } else if(n1<n2){ for(int i = 0;i<(n2-n1);i++){ ptr2 = ptr2->next; } while(ptr1!=ptr2){ ptr1 = ptr1->next; ptr2 = ptr2->next; } } return ptr1; } } // 6,3,2 // 3,6,2 int main() { linkedList sll1,sll2; int data1[] = {0,1,2,3,4,5};//{6,1,7};//{7,1,6};// int n1 = sizeof(data1)/sizeof(data1[0]); sll1.insert_array(data1,n1); int data2[] = {6,7,8,9,10,11};//{6,1,7};//{7,1,6};// int n2 = sizeof(data2)/sizeof(data2[0]); sll2.insert_array(data2,n2); sll1.get_tail()->next = sll2.get_head(); // sll2.printNodes(); node* common_node = intersection(&sll1,&sll2); if(common_node!=NULL){ cout<<common_node->data<<endl; } else{ cout<<"no intersecting node"<<endl; } return 0; }
[ "nitinkodial@gatech.edu" ]
nitinkodial@gatech.edu
5614d6e4a34cbdab4d3be002c55248d66f02d6c5
d0c44dd3da2ef8c0ff835982a437946cbf4d2940
/cmake-build-debug/programs_tiling/function14102/function14102_schedule_43/function14102_schedule_43_wrapper.cpp
fca4e1a1700f5d6759249b7407769de337dd253b
[]
no_license
IsraMekki/tiramisu_code_generator
8b3f1d63cff62ba9f5242c019058d5a3119184a3
5a259d8e244af452e5301126683fa4320c2047a3
refs/heads/master
2020-04-29T17:27:57.987172
2019-04-23T16:50:32
2019-04-23T16:50:32
176,297,755
1
2
null
null
null
null
UTF-8
C++
false
false
1,423
cpp
#include "Halide.h" #include "function14102_schedule_43_wrapper.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <time.h> #include <fstream> #include <chrono> #define MAX_RAND 200 int main(int, char **){ Halide::Buffer<int32_t> buf00(64, 128); Halide::Buffer<int32_t> buf01(64, 64, 128); Halide::Buffer<int32_t> buf02(64, 64, 128); Halide::Buffer<int32_t> buf03(128); Halide::Buffer<int32_t> buf04(64, 64, 128); Halide::Buffer<int32_t> buf05(64, 64, 128); Halide::Buffer<int32_t> buf06(64); Halide::Buffer<int32_t> buf07(128); Halide::Buffer<int32_t> buf0(64, 64, 128, 128); init_buffer(buf0, (int32_t)0); auto t1 = std::chrono::high_resolution_clock::now(); function14102_schedule_43(buf00.raw_buffer(), buf01.raw_buffer(), buf02.raw_buffer(), buf03.raw_buffer(), buf04.raw_buffer(), buf05.raw_buffer(), buf06.raw_buffer(), buf07.raw_buffer(), buf0.raw_buffer()); auto t2 = std::chrono::high_resolution_clock::now(); std::chrono::duration<double> diff = t2 - t1; std::ofstream exec_times_file; exec_times_file.open("../data/programs/function14102/function14102_schedule_43/exec_times.txt", std::ios_base::app); if (exec_times_file.is_open()){ exec_times_file << diff.count() * 1000000 << "us" <<std::endl; exec_times_file.close(); } return 0; }
[ "ei_mekki@esi.dz" ]
ei_mekki@esi.dz
561de69450216a354bd0ba35628e84ccfb64c8fc
6079670a82f3b92a3e6c6ed180aa498b78baca9a
/zmy/cpp/23.merge-k-sorted-lists.cpp
5f299bd8404dc2daebb90e6576d91b9c5f8a37dc
[]
no_license
sing-dance-rap-basketball/leetcode
97d59d923dfe6a48dd5adba3fa3137a684c0b3ca
d663d8093d4547ab1c6a24203255dba004b1e067
refs/heads/master
2022-08-07T15:17:47.059875
2022-07-23T15:59:36
2022-07-23T15:59:36
194,498,806
0
1
null
2019-07-12T08:28:39
2019-06-30T09:35:12
C++
UTF-8
C++
false
false
1,706
cpp
/* * @lc app=leetcode id=23 lang=cpp * * [23] Merge k Sorted Lists */ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ struct compare{ bool operator() (const ListNode* n1, const ListNode* n2) { if(n1 && n2) { return n1->val > n2->val; } else if (n1) { return true; } else return false; } }; class Solution { public: ListNode* mergeKLists(vector<ListNode*>& lists) { ListNode head = ListNode(-1); ListNode *p = &head; std::priority_queue<ListNode *, vector<ListNode *>, compare> pq; for(auto l : lists) { pq.push(l); } if(pq.empty()) return head.next; do{ p->next = pq.top(); pq.pop(); if(p->next) p = p->next; if(p->next) pq.push(p->next); } while(!pq.empty()); // ListNode *p = &head; // int n = lists.size(); // while(true) { // int index = -1; // int minval = INT_MAX; // for(int i=0; i<n; i++) { // if(lists[i] && lists[i]->val < minval) { // index = i; // minval = lists[i]->val; // } // } // // std::cout<<index<<endl; // if(index == -1) break; // else { // p->next = lists[index]; // lists[index] = lists[index]->next; // p = p->next; // } // } return head.next; } };
[ "manassehzhou@gmail.com" ]
manassehzhou@gmail.com
a70e81a8576ef47ad9134cc44a32548e2808c94d
71f81173176c6889875f42912e99462a17f72182
/wcm/ext-app-ux.cpp
39878a0a044812f574bf2928ecdb1639010a6ed9
[ "MIT" ]
permissive
Karamax/WalCommander
c3853c21a367ae875943a93e58fb939b2999ee87
e186faaf4762473dfe6e99fd17b1c2dcb59ce8d7
refs/heads/master
2020-12-03T08:05:03.957372
2014-08-26T16:08:25
2014-08-26T16:08:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
23,635
cpp
#include <wal.h> using namespace wal; #include "bfile.h" #include "string-util.h" #include "ext-app.h" #include <sys/types.h> #include <dirent.h> #include <sys/time.h> //alias надо применить /* как выяснилось (описания не нашел) /usr/share/mime/globs application/msword:*.doc text/plain:*.doc /usr/share/mime/globs2 ??? хрен знает зачем он 75:application/pkcs8:*.p8 55:application/x-pkcs12:*.pfx 50:application/msword:*.doc 50:text/plain:*.doc 50:application/msword:*.doc 10:text/x-readme:readme* 10:text/x-makefile:makefile.* /usr/share/mime/aliases application/x-msword application/msword application/x-netscape-bookmarks application/x-mozilla-bookmarks /usr/share/mime/subclasses application/x-cdrdao-toc text/plain application/pkix-crl+pem application/x-pem-file application/x-ruby application/x-executable /usr/share/applications/defaults.list [Default Applications] application/csv=libreoffice-calc.desktop !!! может содержать несколько файлов описаний приложений через ';' (в ming например) application/excel=libreoffice-calc.desktop application/msexcel=libreoffice-calc.desktop ... */ class MimeGlobs { carray<char> fileName; time_t mtime; cstrhash< ccollect<int, 1>, unicode_t> extMimeHash; void AddExt(const char *s, int m); struct MaskNode { carray<unicode_t> mask; int mime; MaskNode *next; MaskNode(const unicode_t *s, int m):mask(new_unicode_str(s)), mime(m), next(0){ } }; MaskNode *maskList; void AddMask(const char *s, int m); void ClearMaskList(){ while (maskList){ MaskNode *p = maskList->next; delete maskList; maskList = p; } } public: MimeGlobs(const char *fname):fileName(new_char_str(fname)), mtime(0), maskList(0){ } int GetMimeList(const unicode_t *fileName, ccollect<int> &list); void Refresh(); ~MimeGlobs(); }; class MimeSubclasses { carray<char> fileName; time_t mtime; cinthash< int, ccollect<int> > hash; public: MimeSubclasses(const char *fn):fileName(new_char_str(fn)), mtime(0){ } int GetParentList(int mime, ccollect<int> &list); void Refresh(); ~MimeSubclasses(); }; class MimeAliases { carray<char> fileName; time_t mtime; cinthash<int, int> data; public: MimeAliases(const char *fname):fileName(new_char_str(fname)), mtime(0){ } void Refresh(); int Check(int mime) { int *pn = data.exist(mime); return pn ? *pn : mime; } ~MimeAliases(); }; class MimeDB { MimeGlobs globs; MimeSubclasses subclasses; MimeAliases aliases; void AddParentsRecursive(int mime, ccollect<int> *pList, cinthash<int, bool> *pHash); public: MimeDB(const char *location); void Refresh(); int GetMimeList(const unicode_t *fileName, ccollect<int> &list); int CheckAlias(int id); ~MimeDB(); }; class AppDefListFile { carray<char> fileName; time_t mtime; cinthash<int, ccollect<int, 1> > hash; public: AppDefListFile(const char *fname):fileName(new_char_str(fname)), mtime(0){ } void Refresh(); int GetAppList(int mime, ccollect<int> &appList); ~AppDefListFile(); }; struct AppNode { carray<unicode_t> name; carray<unicode_t> exec; bool terminal; AppNode():terminal(true){} }; class AppDB { carray<char> appDefsPrefix; cinthash<int, cptr<AppNode> > apps; cinthash<int, ccollect<int> > mimeMapHash; bool ReadAppDesctopFile(const char *fName); AppDefListFile defList; public: AppDB(const char *prefix); int GetAppList(int mime, ccollect<int> &appList); void Refresh(){ defList.Refresh(); } AppNode* GetApp(int id); ~AppDB(); }; //добавляет в хэш имена выполняемых файлов из указанного каталога static void SearchExe(const char *dirName, cstrhash<bool> &hash) { DIR *d = opendir(dirName); if (!d) return; try { struct dirent ent, *pEnt; while (true) { if (readdir_r( d, &ent, &pEnt)) goto err; if (!pEnt) break; //skip . and .. if (ent.d_name[0]=='.' && (!ent.d_name[1] || (ent.d_name[1]=='.' && !ent.d_name[2]))) continue; carray<char> filePath = carray_cat<char>(dirName, "/", ent.d_name); struct stat sb; if (stat(filePath.ptr(), &sb)) continue; if ( (sb.st_mode & S_IFMT) == S_IFREG && (sb.st_mode & 0111) != 0) hash[ent.d_name] = true; }; closedir(d); return; err: closedir(d); return; } catch (...) { closedir(d); throw; } } static cptr<cstrhash<bool> > pathExeList; //определяет наличие исполняемого файла в каталогах в PATH //списки кэшируются bool ExeFileExist(const char *name) { if (name[0] == '/') //абсолютный путь { struct stat sb; if (stat(name, &sb)) return false; return true; return ( (sb.st_mode & S_IFMT) == S_IFREG && (sb.st_mode & 0111) != 0); } if (!pathExeList.ptr()) { pathExeList = new cstrhash<bool>; const char *pl = getenv("PATH"); if (!pl) return false; carray<char> paths = new_char_str(pl); char *s = paths.ptr(); while (*s) { char *t = s; while (*t && *t !=':') t++; if (*t) { *t = 0; t++; } SearchExe(s, *(pathExeList.ptr())); s = t; } } return pathExeList->exist(name) != 0; } extern unsigned UnicodeLC(unsigned ch); #define MIMEDEBUG #ifdef MIMEDEBUG static cinthash<int, carray<char> > mimeIdToNameHash; const char *GetMimeName(int n) { carray<char> *p = mimeIdToNameHash.exist(n); return p ? p->ptr() : ""; } #endif static int GetMimeID(const char *mimeName) { static cstrhash<int> hash; static int id = 0; int *pn = hash.exist(mimeName); if (pn) return *pn; id++; hash[mimeName] = id; #ifdef MIMEDEBUG mimeIdToNameHash[id] = new_char_str(mimeName); #endif return id; } static cinthash<int, carray<char> > appIdToNameHash; static int GetAppID(const char *appName) { static cstrhash<int> hash; static int id = 0; int *pn = hash.exist(appName); if (pn) return *pn; id++; hash[appName] = id; appIdToNameHash[id] = new_char_str(appName); return id; } static const char *GetAppName(int id) { carray<char> *p = appIdToNameHash.exist(id); return p ? p->ptr() : ""; } inline time_t GetMTime(const char *fileName) { struct stat st; return stat(fileName, &st)!=0 ? 0 : st.st_mtime; } static carray<unicode_t> GetFileExtLC(const unicode_t *uri) { if (!uri) return 0; const unicode_t *ext = find_right_char<unicode_t>(uri,'.'); if (!ext || !*ext) return carray<unicode_t>(); carray<unicode_t> a = new_unicode_str(ext + 1); //пропустить точку unicode_t *s = a.ptr(); for (;*s; s++) *s = UnicodeLC(*s); return a; } ////////////////// MimeGlobs ////////////////////////// inline bool IsSpace(int c){ return c>0 && c<=32; } inline char *SS(char *s){ while(IsSpace(*s)) s++; return s; } inline char *SNotS(char *s){ while(*s && !IsSpace(*s)) s++; return s; } inline char *SNotC(char *s, int c){ while(*s && *s != c) s++; return s; } inline void MimeGlobs::AddExt(const char *s, int m) { unicode_t buf[100]; int len = 0; for ( ;*s && len < 100-1; s++, len++) buf[len] = UnicodeLC(*s); buf[len] = 0; extMimeHash[buf].append(m); } inline void MimeGlobs::AddMask(const char *s, int m) { unicode_t buf[100]; int len = 0; for ( ;*s && len < 100-1; s++, len++) buf[len] = UnicodeLC(*s); buf[len] = 0; MaskNode *node = new MaskNode(buf, m); node->next = maskList; maskList = node; } void MimeGlobs::Refresh() { time_t tim = GetMTime(fileName.ptr()); if (tim == mtime) return; mtime = tim; extMimeHash.clear(); ClearMaskList(); try { BFile f; f.Open(fileName.ptr()); //"/usr/share/mime/glibs"); char buf[4096]; while (f.GetStr(buf, sizeof(buf))) { char *s = SS(buf); if (*s == '#') continue; //комментарий //text/plain:*.doc char *e = SNotC(s, ':'); if (!e) continue; *e = 0; e++; e = SS(e); int mimeId = GetMimeID(s); if (e[0] == '*' && e[1] == '.') { e += 2; char *t = SNotS(e); if (*t) *t = 0; AddExt(e, mimeId); } else { char *t = SNotS(e); if (*t) *t = 0; AddMask(e, mimeId); } } } catch (cexception *ex) { ex->destroy(); return; } return; } static bool accmask(const unicode_t *name, const unicode_t *mask) { if (!*mask) return *name == 0; while (true) { switch (*mask) { case 0: for ( ; *name ; name++) if (*name != '*') return false; return true; case '?': break; case '*': while (*mask == '*') mask++; if (!*mask) return true; for (; *name; name++ ) if (accmask(name, mask)) return true; return false; default: if (*name != *mask) return false; } name++; mask++; } } int MimeGlobs::GetMimeList(const unicode_t *fileName, ccollect<int> &list) { carray<unicode_t> ext = GetFileExtLC(fileName); if (ext.ptr()) { ccollect<int, 1> *p = extMimeHash.exist(ext.ptr()); if (p) { for (int i = 0, cnt = p->count(); i<cnt; i++) list.append(p->get(i)); } } { //пробег по маскам const unicode_t *fn = find_right_char<unicode_t>(fileName,'/'); if (fn) fn++; else fn = fileName; carray<unicode_t> str(unicode_strlen(fn)+1); unicode_t *s = str.ptr(); while (*fn) *(s++) = UnicodeLC(*(fn++)); *s = 0; for (MaskNode *p = maskList; p; p=p->next) if (p->mask.ptr() && accmask(str.ptr(), p->mask.ptr())) list.append(p->mime); } return list.count(); } MimeGlobs::~MimeGlobs(){ ClearMaskList(); } //////////////////////////// MimeSubclasses //////////////////////////////// MimeSubclasses::~MimeSubclasses(){}; void MimeSubclasses::Refresh() { time_t tim = GetMTime(fileName.ptr()); if (tim == mtime) return; mtime = tim; hash.clear(); try { BFile f; f.Open(fileName.ptr()); //"/usr/share/mime/subclasses"); char buf[4096]; while (f.GetStr(buf, sizeof(buf))) { char *s = SS(buf); if (*s == '#') continue; //комментарий char *parent = SNotS(s); if (!parent) continue; *parent =0; parent++; parent = SS(parent); char *t = SNotS(parent); if (t) *t = 0; hash[GetMimeID(s)].append(GetMimeID(parent)); } } catch (cexception *ex) { ex->destroy(); return; } } int MimeSubclasses::GetParentList(int mime, ccollect<int> &list) { ccollect<int> *p = hash.exist(mime); if (p) { for (int i=0, cnt=p->count(); i<cnt; i++) list.append(p->get(i)); } return list.count(); } /////////////////// MimeAliases ////////////////////////////// void MimeAliases::Refresh() { time_t tim = GetMTime(fileName.ptr()); if (tim == mtime) return; mtime = tim; data.clear(); try { BFile f; f.Open(fileName.ptr()); //"/usr/share/mime/aliases"); char buf[4096]; while (f.GetStr(buf, sizeof(buf))) { char *s = SS(buf); if (*s == '#') continue; //комментарий char *p = SNotS(s); if (!p) continue; *p =0; p++; p = SS(p); char *t = SNotS(p); if (t) *t = 0; data[GetMimeID(s)] = GetMimeID(p); } } catch (cexception *ex) { ex->destroy(); return; } } MimeAliases::~MimeAliases(){} ///////////////////////////// MimeDB ////////////////////////////////////////////////// MimeDB::MimeDB(const char *location) : globs(carray_cat<char>(location, "globs").ptr()), subclasses(carray_cat<char>(location, "subclasses").ptr()), aliases(carray_cat<char>(location, "aliases").ptr()) { } void MimeDB::AddParentsRecursive(int mime, ccollect<int> *pList, cinthash<int, bool> *pHash) { ccollect<int> parentList; if (subclasses.GetParentList(mime, parentList)) { int i; for (i=0; i<parentList.count(); i++) if (!pHash->exist(parentList[i])) { pList->append(parentList[i]); pHash->get(parentList[i]) = true; AddParentsRecursive(parentList[i], pList, pHash); } // for (i=0; i<parentList.count(); i++) // AddParentsRecursive(parentList[i], pList, pHash); } } void MimeDB::Refresh() { globs.Refresh(); subclasses.Refresh(); aliases.Refresh(); } int MimeDB::GetMimeList(const unicode_t *fileName, ccollect<int> &outList) { ccollect<int> temp1; if (globs.GetMimeList(fileName, temp1)>0) { cinthash<int, bool> hash; int i; for (i=0; i<temp1.count(); i++) if (!hash.exist(temp1[i])) { outList.append(temp1[i]); hash[temp1[i]] = true; AddParentsRecursive(temp1[i], &outList, &hash); } // for (i=0; i<temp1.count(); i++) // AddParentsRecursive(temp1[i], &outList, &hash); } return outList.count(); } MimeDB::~MimeDB(){} /////////////////////// AppDefListFile //////////////////////////////// AppDefListFile::~AppDefListFile(){} int AppDefListFile::GetAppList(int mime, ccollect<int> &appList) { ccollect<int, 1> *p = hash.exist(mime); if (p) { for (int i = 0, cnt = p->count(); i< cnt; i++) appList.append(p->get(i)); } return appList.count(); } inline void EraseLastSpaces(char *s) { char *ls = 0; for (;*s;s++) if (!IsSpace(*s)) ls=s; if (ls) ls[1]=0; } inline int UCase(int c) { return (c>='a' && c<='z') ? c-'a'+'A' : c; } static int CmpNoCase(const char *a, const char *b) { for (;*a && *b; a++, b++) { int ca = UCase(*a), cb = UCase(*b); if (ca != cb) return ca<cb ? -1 : 1; } return *a ? 1 : *b ? -1 : 0; } void AppDefListFile::Refresh() { time_t tim = GetMTime(fileName.ptr()); if (tim == mtime) return; mtime = tim; hash.clear(); try { BFile f; f.Open(fileName.ptr()); char buf[4096]; bool readLine = false; while (f.GetStr(buf, sizeof(buf))) { EraseLastSpaces(buf); char *s = buf; s = SS(s); if (*s=='[') { readLine = !CmpNoCase(s,"[Default Applications]") || !CmpNoCase(s,"[Added Associations]"); continue; } if (!readLine) continue; char *mimeStr = s; while (*s && !IsSpace(*s) && *s!='=') s++; if (IsSpace(*s)) { *s=0; s++; s = SS(s); } if (*s != '=') { continue; } *s=0; s++; s = SS(s); int mimeId = GetMimeID(mimeStr); //в mint бывает несколько файлов описания приложений через ';' причем каких то файлов может не быть while (*s) { char *t = SNotC(s, ';'); if (*t) { *t = 0; t++; } hash[mimeId].append(GetAppID(s)); s = t; } } } catch (cexception *ex) { ex->destroy(); } } //////////////////////////////// AppDB ///////////////////////////////////// AppDB::AppDB(const char *prefix) : appDefsPrefix(new_char_str(prefix)), defList(carray_cat<char>(prefix, "defaults.list").ptr()) { DIR *d = opendir(prefix); if (!d) return; try { struct dirent ent, *pEnt; while (true) { if (readdir_r( d, &ent, &pEnt)) goto err; if (!pEnt) break; //skip . and .. if (ent.d_name[0]=='.' && (!ent.d_name[1] || (ent.d_name[1]=='.' && !ent.d_name[2]))) continue; ReadAppDesctopFile(ent.d_name); }; closedir(d); return; err: closedir(d); return; } catch (cexception *ex) { closedir(d); ex->destroy(); throw; } catch (...) { closedir(d); throw; } } AppNode* AppDB::GetApp(int id) { cptr<AppNode> *p = apps.exist(id); if (!p) { if (!ReadAppDesctopFile(GetAppName(id))) return 0; p = apps.exist(id); } return p ? p->ptr() : 0; } int AppDB::GetAppList(int mime, ccollect<int> &appList) { defList.GetAppList(mime, appList); ccollect<int> *p = mimeMapHash.exist(mime); if (p) { for (int i = 0, cnt = p->count(); i< cnt; i++) appList.append(p->get(i)); } return appList.count(); } AppDB::~AppDB(){} bool AppDB::ReadAppDesctopFile(const char *name) { int id = GetAppID(name); if (apps.exist(id)) return true; cptr<AppNode> app = new AppNode(); try { BFile f; f.Open(carray_cat<char>(appDefsPrefix.ptr(), name).ptr()); char buf[4096]; bool ok = false; bool application = false; ccollect<int> mimeList; while (f.GetStr(buf, sizeof(buf))) { EraseLastSpaces(buf); char *s = buf; s = SS(s); if (*s == '[') { ok = !CmpNoCase(s,"[Desktop Entry]"); continue; } if (!ok) continue; char *vname = s; while (*s && !IsSpace(*s) && *s!='=') s++; if (IsSpace(*s)) { *s=0; s++; s = SS(s); } if (*s != '=') { continue; } *s=0; s++; s = SS(s); if (!CmpNoCase(vname, "TYPE")) { if (!CmpNoCase(s, "APPLICATION")) application = true; continue; } if (!CmpNoCase(vname, "NAME")) { app->name = utf8_to_unicode(s); continue; } if (!CmpNoCase(vname, "EXEC")) { app->exec = utf8_to_unicode(s); continue; } if (!CmpNoCase(vname, "TRYEXEC")) //проверяем сразу, чего каждый раз проверять { if (!ExeFileExist(s)) { apps[id] = 0; return 0; } continue; } if (!CmpNoCase(vname, "TERMINAL")) { if (!CmpNoCase(s, "TRUE")) app->terminal = true; else if (!CmpNoCase(s, "FALSE")) app->terminal = false; continue; } if (!CmpNoCase(vname, "MIMETYPE")) { while (*s) { s = SS(s); char *m = s; while (*s && *s!=';') s++; if (*s==';'){ *s=0; s++; } if (*m) mimeList.append( GetMimeID(m) ); } continue; } } if (!app->exec.ptr() || !application) { apps[id] = 0; return false; } AppNode *pNode = app.ptr(); //printf("read %s - ok\n", name); apps[id] = app; for (int i = 0; i<mimeList.count(); i++) { mimeMapHash[mimeList[i]].append(id); } return true; } catch (cexception *ex) { ex->destroy(); } apps[id] = 0; return false; } /////////////////////////////////////// static cptr<MimeDB> mimeDb; static cptr<AppDB> appDb; static cptr<AppDefListFile> userDefApp; static bool FileIsExist(const char *s) { struct stat sb; if (stat(s, &sb)) return false; return (sb.st_mode & S_IFMT) == S_IFREG; } static bool DirIsExist(const char *s) { struct stat sb; if (stat(s, &sb)) return false; return (sb.st_mode & S_IFMT) == S_IFDIR; } static int _GetAppList(const unicode_t *fileName, ccollect<AppNode*> &list) { if (!mimeDb.ptr()) { if (FileIsExist("/usr/share/mime/globs")) mimeDb = new MimeDB("/usr/share/mime/"); else mimeDb = new MimeDB("/usr/local/share/mime/"); } if (!appDb.ptr()) { if (DirIsExist("/usr/share/applications")) appDb = new AppDB("/usr/share/applications/"); else appDb = new AppDB("/usr/local/share/applications/"); } if (!userDefApp.ptr()) { const char *home = getenv("HOME"); if (home) userDefApp = new AppDefListFile(carray_cat<char>(home, "/.local/share/applications/mimeapps.list").ptr()); } mimeDb->Refresh(); appDb->Refresh(); if (userDefApp.ptr()) userDefApp->Refresh(); ccollect<int> mimeList; if (mimeDb->GetMimeList(fileName, mimeList)) { int i; cinthash<int, bool> hash; for (i=0; i<mimeList.count(); i++) { ccollect<int> appList; if (userDefApp.ptr()) userDefApp->GetAppList(mimeList[i], appList); appDb->GetAppList(mimeList[i], appList); for (int j = 0; j < appList.count(); j++) if (!hash.exist(appList[j])) { hash[appList[j]] = true; AppNode *p = appDb->GetApp(appList[j]); if (p && p->exec.ptr()) list.append(p); } } } return list.count(); } static carray<unicode_t> PrepareCommandString(const unicode_t *exec, const unicode_t *uri) { if (!exec || !uri) return 0; ccollect<unicode_t, 0x100> cmd; const unicode_t *s = exec; int uriInserted = 0; while (*s) { for (;*s && *s != '%'; s++) cmd.append(*s); if (*s) { switch (s[1]) { case 'f': case 'F': case 'u': case 'U': { cmd.append('"'); for(const unicode_t *t = uri; *t; t++) cmd.append(*t); cmd.append('"'); uriInserted++; } s += 2; break; default: cmd.append('%'); s++; }; } } if (!uriInserted) //все равно добавим { cmd.append(' '); cmd.append('"'); for(const unicode_t *t = uri; *t; t++) cmd.append(*t); cmd.append('"'); } cmd.append(0); return cmd.grab(); } carray<unicode_t> GetOpenCommand(const unicode_t *uri, bool *needTerminal, const unicode_t **pAppName) { ccollect<AppNode*> list; _GetAppList(uri, list); if (list.count() > 0) { if (needTerminal) *needTerminal = list[0]->terminal; if (pAppName) *pAppName = list[0]->name.ptr(); return PrepareCommandString(list[0]->exec.ptr(), uri); } return 0; } cptr<AppList> GetAppList(const unicode_t *uri) { ccollect<AppNode*> list; _GetAppList(uri, list); if (!list.count()) return 0; cptr<AppList> ret = new AppList(); { //open item AppNode *p = list[0]; AppList::Node node; node.terminal = p->terminal; static unicode_t ustr1[]={'O','p','e','n',' ','(',0}; static unicode_t ustr2[]={')',0}; node.name = carray_cat<unicode_t>(ustr1, p->name.ptr(), ustr2); node.cmd = PrepareCommandString(p->exec.ptr(), uri); ret->list.append(node); } cptr<AppList> openWith = new AppList(); for (int i = 1; i<list.count(); i++) { AppList::Node node; node.terminal = list[i]->terminal; node.name = new_unicode_str(list[i]->name.ptr()); node.cmd = PrepareCommandString(list[i]->exec.ptr(), uri); openWith->list.append(node); } if (openWith->Count()>0) { AppList::Node node; static unicode_t openWidthString[]={ 'O','p','e','n',' ','w','i','t','h', 0}; node.name = new_unicode_str(openWidthString); node.sub = openWith; ret->list.append(node); } return ret->Count() ? ret : 0; }
[ "sk@linderdaum.com" ]
sk@linderdaum.com
c05b0f11868ea75e5312faa9457178c1d5ede0e7
92b6aaade5a3f323d7f8e7d02fb9fec09f4c2f50
/CP-Codes/500_div2_b.cpp
f1d68a48824c1024a935c5f804b73e50180d808b
[]
no_license
suraj1611/Competitive_Programming
846dee00396e2f2b6d13e2ea8aaed444a34062af
82bd88081ac067ad4170553afedc6c479bb53753
refs/heads/master
2020-04-22T17:27:18.116585
2019-12-16T19:42:29
2019-12-16T19:42:29
170,541,477
1
0
null
null
null
null
UTF-8
C++
false
false
1,671
cpp
#include<bits/stdc++.h> #include <string> using namespace std; #define ll long long int #define rep(i,n) for(int i=0; i<n; i++) #define rep1(j,m) for(int j=1;j<m;j++) #define mx INT_MAX #define mn INT_MIN #define md 1000000007 #define pb push_back #define mp make_pair #define pf printf #define sc scanf #define maxsize 1100005 #define lb cout<<endl; #define IOS ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); /*#define miter map <ll,ll> :: iterator it; for(it=m.begin();it!=m.end();it++) #define viter vector <ll> :: iterator it; for(it=v.begin();it!=v.end();it++) #define siter set <ll> :: iterator it; for(it=s.begin();it!=s.end();it++)*/ ll prime[maxsize]; ll gcd(ll a,ll b) { if(a==0) return b; else return(gcd(b%a,a)); } ll lcm(ll a,ll b) { return (a*b)/gcd(a,b); } void seive() { memset(prime,true,sizeof(prime)); prime[0]=false; prime[1]=true; for(ll i=2;i*i<=maxsize;i++) { if(prime[i]==true) { for(ll j=2*i;j<maxsize;j+=i) { prime[j]=false; } } } } int bs(ll a[],ll x,ll n) { ll l=0,h=n-1,mid; while(l<=h) { mid=(l+h)/2; if(x<a[mid]) h=mid-1; else if(x>a[mid]) l=mid+1; else return 1; } return 0; } int main() { IOS #ifndef ONLINE_JUDGE // for getting input from input.txt freopen("in.txt", "r", stdin); // for writing output to output.txt freopen("out.txt", "w", stdout); #endif ll n,x; cin>>n>>x; ll a[n]; set <ll> s; set <ll> t; ll ans=-5; rep(i,n) { cin>>a[i]; t.insert(a[i]&x); s.insert(a[i]); } if(s.size()<n) ans=0; else if(t.size()<n) ans=n-t.size(); else ans=-1; cout<<ans<<endl; }
[ "surajsk1611@gmail.com" ]
surajsk1611@gmail.com
640dd16181875bd31108a74ec0b3a09f9f087429
9678f40cf818b8ae6485ed72f5f2b54777c544d1
/graphs/MatrixGraph.h
2626c484b9bf0ee1e14563dcd1083a21987e6ac7
[ "Unlicense" ]
permissive
outfrost/data-structures-project
b342b4c5a772011e67116a200cf07ed6189eeb5f
ec39499a4288fbb0372bfb3decc49271178664f8
refs/heads/master
2021-06-28T08:17:51.931712
2018-02-28T17:25:56
2018-02-28T17:25:56
109,389,666
0
0
null
null
null
null
UTF-8
C++
false
false
607
h
#ifndef DATA_STRUCTURES_PROJECT_MATRIXGRAPH_H #define DATA_STRUCTURES_PROJECT_MATRIXGRAPH_H class MatrixGraph { private: int **neighbourMatrix; int nodeCount; static const int nullEdge = std::numeric_limits<int>::min(); public: MatrixGraph(); MatrixGraph(int nodeCount); ~MatrixGraph(); int getEdgeMetric(int fromNode, int toNode); void setEdgeMetric(int fromNode, int toNode, int metric, bool bidirectional); void removeEdge(int fromNode, int toNode, bool bidirectional = true); void addNodes(int count); void clear(); void print(); }; #endif //DATA_STRUCTURES_PROJECT_MATRIXGRAPH_H
[ "kotlet.bahn@gmail.com" ]
kotlet.bahn@gmail.com
337afedd752d547dc8cb6d915f689f7e4fa5a172
2aec12368cc5a493af73301d500afb59f0d19d28
/GeometryTool/LibFoundation/Interpolation/Wm4IntpSphere2.h
c15f5fa90c4de97135528167adce7de656d524eb
[]
no_license
GGBone/WM4
ec964fc61f98ae39e160564a38fe7624273137fb
8e9998e25924df3e0d765921b6d2a715887fbb01
refs/heads/master
2021-01-11T21:48:17.477941
2017-01-13T14:09:53
2017-01-13T14:09:53
78,854,366
0
2
null
null
null
null
UTF-8
C++
false
false
2,207
h
// Geometric Tools, Inc. // http://www.geometrictools.com // Copyright (c) 1998-2006. All Rights Reserved // // The Wild Magic Version 4 Foundation Library source code is supplied // under the terms of the license agreement // http://www.geometrictools.com/License/Wm4FoundationLicense.pdf // and may not be copied or disclosed except in accordance with the terms // of that agreement. #ifndef WM4INTPSPHERE2_H #define WM4INTPSPHERE2_H // Interpolation of a scalar-valued function defined on a sphere. Although // the sphere lives in 3D, the interpolation is a 2D method whose input // points are angles (theta,phi) from spherical coordinates. The domains of // the angles are -PI <= theta <= PI and 0 <= phi <= PI. #include "Wm4FoundationLIB.h" #include "Wm4IntpQdrNonuniform2.h" namespace Wm4 { template <class Real> class WM4_FOUNDATION_ITEM IntpSphere2 { public: // Construction and destruction. If you want IntpSphere2 to delete the // input arrays during destruction, set bOwner to 'true'. Otherwise, you // own the arrays and must delete them yourself. // // For complete spherical coverage, include the two antipodal (theta,phi) // points (-PI,0,F(-PI,0)) and (-PI,PI,F(-PI,PI)) in the input data. // These correspond to the sphere poles x = 0, y = 0, and |z| = 1. // // The computation type is for the Delaunay triangulation and should be // one of Query::{QT_INT64,QT_INTEGER,QT_RATIONAL,QT_REAL}. IntpSphere2 (int iQuantity, Real* afTheta, Real* afPhi, Real* afF, bool bOwner, Query::Type eQueryType); ~IntpSphere2 (); // Spherical coordinates are // x = cos(theta)*sin(phi) // y = sin(theta)*sin(phi) // z = cos(phi) // for -PI <= theta <= PI, 0 <= phi <= PI. The application can use this // function to convert unit length vectors (x,y,z) to (theta,phi). static void GetSphericalCoords (Real fX, Real fY, Real fZ, Real& rfTheta, Real& rfPhi); bool Evaluate (Real fTheta, Real fPhi, Real& rfF); private: Delaunay2<Real>* m_pkDel; IntpQdrNonuniform2<Real>* m_pkInterp; }; typedef IntpSphere2<float> IntpSphere2f; typedef IntpSphere2<double> IntpSphere2d; } #endif
[ "z652137200@gmail.com" ]
z652137200@gmail.com
1e58d5ce5edef6d2a4ad34240081644f16f29159
f781ab4b73f1000e660fcd7850f92890ee7da35a
/cstl/cstl_type_traits.h
febb3b4779810123d78fa652b65d3039ab2dba03
[]
no_license
after1990s/CSTL
3b9f895879572942515cc53adfb3467206006b6a
174ee7b23408092c208dccc3c0fd216322aed1d1
refs/heads/master
2021-01-21T22:06:31.756504
2019-12-08T13:18:46
2019-12-08T13:18:46
95,170,245
0
0
null
null
null
null
UTF-8
C++
false
false
4,420
h
#ifndef TYPE_TRAITS_H #define TYPE_TRAITS_H namespace CSTL{ struct __true_type {}; struct __false_type {}; template <class T> struct __type_traits{ typedef __true_type this_member_must_be_fist; using has_trivial_default_constructor = __false_type; using has_trivial_copy_constructor = __false_type; using has_trivial_assignment_constructor = __false_type; using is_POD_type = __false_type; }; template<> struct __type_traits<char> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<unsigned char> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<signed char> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<short> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<unsigned short> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<int> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<unsigned int> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<long> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<unsigned long> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<double> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<float> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<long double> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<long long> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; template<> struct __type_traits<unsigned long long> { using has_trivial_default_constructor = __true_type; using has_trivial_copy_constructor = __true_type; using has_trivial_assignment_constructor = __true_type; using is_POD_type = __true_type; }; } #endif // TYPE_TRAITS_H
[ "after1990s@gmail.com" ]
after1990s@gmail.com
e869f678b317108c10e5e12d088a9c8f2c87a654
1379e7a0d643508e7eaa5c24917c1d0c41ef7525
/Proyecto1_Carlos_Laparra_1031120/Proyecto1_Carlos_Laparra_1031120/Pila.cpp
9ac24bca985b3fbcc0df668fb9ec26381dcbfee0
[]
no_license
Carlos-Laparra/Proyecto-1
719e63078814a28a4d58c4e9bed5186cd48fe99c
f9019ce38d93a533dc11554f639e62b386befcdd
refs/heads/master
2022-12-30T15:28:36.035367
2020-10-21T07:02:47
2020-10-21T07:02:47
305,936,807
0
0
null
null
null
null
UTF-8
C++
false
false
482
cpp
#include "Pila.h" Pila::Pila() { internalList = new Lista(); internalList->end = nullptr; internalList->start = nullptr; internalList->conta = 0; } void Pila::Insert(int value) { internalList->InsertAtEnd(value); } Node* Pila::Peek() { return internalList->ExtractAtEnd(); } int Pila::Value(int i) { return internalList->GetValue(i); } bool Pila::isEmpty() { return internalList->isEmpty(); } int Pila::Value_Extract_Peek() { return internalList->GetValueAtEnd(); }
[ "70443027+Carlos-Laparra@users.noreply.github.com" ]
70443027+Carlos-Laparra@users.noreply.github.com
88d51ce8373b6ef9376945e733b090546fc7533c
fd25353f114970b2d571beb21fa09700627087f0
/code/Motor2D/j1App.cpp
125c5d860a784e1ea874d4cb936ff8bde9d8087b
[ "MIT" ]
permissive
Leukino/fog-of-war
9af7ab94c465c2ab45358ae8c5a6b89cab17f806
487a24d237c44b82447b1ef3da6cc08f43d4a91f
refs/heads/master
2021-05-19T18:31:49.377684
2020-04-05T17:56:23
2020-04-05T17:56:23
252,064,553
1
0
null
null
null
null
UTF-8
C++
false
false
6,958
cpp
#include <iostream> #include <sstream> #include <iterator> //STL Stuff #include "p2Defs.h" #include "p2Log.h" #include "j1Window.h" #include "j1Input.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Audio.h" #include "j1Scene.h" #include "j1Map.h" #include "j1App.h" #include "j2EntityManager.h" #include "Fow.h" // Constructor j1App::j1App(int argc, char* args[]) : argc(argc), args(args) { frames = 0; want_to_save = want_to_load = false; input = new j1Input(); win = new j1Window(); render = new j1Render(); tex = new j1Textures(); audio = new j1Audio(); scene = new j1Scene(); map = new j1Map(); entity_manager = new j2EntityManager(); fow = new Fow(); // Ordered for awake / Start / Update // Reverse order of CleanUp AddModule(input); AddModule(win); AddModule(tex); AddModule(audio); AddModule(map); AddModule(scene); AddModule(entity_manager); AddModule(fow); // render last to swap buffer AddModule(render); } // Destructor j1App::~j1App() { //release Modules from the STL list std::list<j1Module*>::iterator stlItem = stlModules.begin(); while (stlItem != stlModules.end()) { RELEASE(*stlItem); stlItem = next(stlItem); } stlModules.clear(); } void j1App::AddModule(j1Module* module) { module->Init(); //STL stlModules.push_back(module); } // Called before render is available bool j1App::Awake() { pugi::xml_document config_file; pugi::xml_node config; pugi::xml_node app_config; bool ret = false; config = LoadConfig(config_file); if(config.empty() == false) { // self-config ret = true; app_config = config.child("app"); title = app_config.child("title").child_value(); //organization = app_config.child("organization").child_value(); } if(ret == true) { std::list<j1Module*>::iterator stl_item = stlModules.begin(); while (stl_item != stlModules.end() && ret == true) { ret = (*stl_item)->Awake(config.child((*stl_item)->name.data())); stl_item++; } } return ret; } // Called before the first frame bool j1App::Start() { bool ret = true; //p2List_item<j1Module*>* item; //item = modules.start; //while(item != NULL && ret == true) //{ // ret = item->data->Start(); // item = item->next; //} std::list<j1Module*>::iterator stl_item = stlModules.begin(); while (stl_item != stlModules.end() && ret == true) { (*stl_item)->Start(); stl_item++; } return ret; } // Called each loop iteration bool j1App::Update() { bool ret = true; PrepareUpdate(); if(input->GetWindowEvent(WE_QUIT) == true) ret = false; if(ret == true) ret = PreUpdate(); if(ret == true) ret = DoUpdate(); if(ret == true) ret = PostUpdate(); FinishUpdate(); return ret; } // --------------------------------------------- pugi::xml_node j1App::LoadConfig(pugi::xml_document& config_file) const { pugi::xml_node ret; pugi::xml_parse_result result = config_file.load_file("config.xml"); if(result == NULL) LOG("Could not load map xml file config.xml. pugi error: %s", result.description()); else ret = config_file.child("config"); return ret; } // --------------------------------------------- void j1App::PrepareUpdate() { } // --------------------------------------------- void j1App::FinishUpdate() { if(want_to_save == true) SavegameNow(); if(want_to_load == true) LoadGameNow(); } // Call modules before each loop iteration bool j1App::PreUpdate() { bool ret = true; /*p2List_item<j1Module*>* item; item = modules.start; j1Module* pModule = NULL; for(item = modules.start; item != NULL && ret == true; item = item->next) { pModule = item->data; if(pModule->active == false) { continue; } ret = item->data->PreUpdate(); }*/ std::list<j1Module*>::iterator stl_item = stlModules.begin(); for (; stl_item != stlModules.end(); stl_item++) { if ((*stl_item)->active == false) { continue; } ret = (*stl_item)->PreUpdate(); } return ret; } // Call modules on each loop iteration bool j1App::DoUpdate() { bool ret = true; /*p2List_item<j1Module*>* item; item = modules.start; j1Module* pModule = NULL; for(item = modules.start; item != NULL && ret == true; item = item->next) { pModule = item->data; if(pModule->active == false) { continue; } ret = item->data->Update(dt); }*/ std::list<j1Module*>::iterator stl_item = stlModules.begin(); for (; stl_item != stlModules.end(); stl_item++) { if ((*stl_item)->active == false) { continue; } ret = (*stl_item)->Update(dt); } return ret; } // Call modules after each loop iteration bool j1App::PostUpdate() { bool ret = true; /*p2List_item<j1Module*>* item; j1Module* pModule = NULL; for(item = modules.start; item != NULL && ret == true; item = item->next) { pModule = item->data; if(pModule->active == false) { continue; } ret = item->data->PostUpdate(); }*/ std::list<j1Module*>::iterator stl_item = stlModules.begin(); for (; stl_item != stlModules.end() && ret == true; stl_item++) { if ((*stl_item)->active == false) { continue; } ret = (*stl_item)->PostUpdate(); } return ret; } // Called before quitting bool j1App::CleanUp() { bool ret = true; /*p2List_item<j1Module*>* item; item = modules.end; while(item != NULL && ret == true) { ret = item->data->CleanUp(); item = item->prev; }*/ std::list<j1Module*>::iterator stl_item = --stlModules.end(); while (stl_item != stlModules.end() && ret == true) { ret = (*stl_item)->CleanUp(); stl_item--; } return ret; } // --------------------------------------- int j1App::GetArgc() const { return argc; } // --------------------------------------- const char* j1App::GetArgv(int index) const { if(index < argc) return args[index]; else return NULL; } // --------------------------------------- const char* j1App::GetTitle() const { return title.data(); } // --------------------------------------- const char* j1App::GetOrganization() const { return organization.data(); } // Load / Save void j1App::LoadGame(const char* file) { // we should be checking if that file actually exist // from the "GetSaveGames" list want_to_load = true; //load_game.create("%s%s", fs->GetSaveDirectory(), file); } // --------------------------------------- void j1App::SaveGame(const char* file) const { // we should be checking if that file actually exist // from the "GetSaveGames" list ... should we overwrite ? want_to_save = true; //save_game.create(file); } bool j1App::LoadGameNow() { bool ret = false; pugi::xml_document data; pugi::xml_node root; pugi::xml_parse_result result = data.load_file(load_game.data()); want_to_load = false; return ret; } bool j1App::SavegameNow() const { bool ret = true; LOG("Saving Game State to %s...", save_game.data()); // xml object were we will store all data pugi::xml_document data; pugi::xml_node root; root = data.append_child("game_state"); data.reset(); want_to_save = false; return ret; }
[ "miquelqg99@gmail.com" ]
miquelqg99@gmail.com
64887f8b74e2f3e01ce2bf793c5e210e8138669a
8d1345522a63c184604f116b9874f82040b9529e
/链表/203.移除链表元素.cpp
d8f839312af96a9dd28e5e7167627d2be2d34cfa
[]
no_license
SherlockUnknowEn/leetcode
cf283431a9e683b6c2623eb207b5bfad506f8257
4ca9df3b5d093a467963640e2d2eb17fc640d4bd
refs/heads/master
2023-01-22T14:24:30.938355
2023-01-18T14:37:36
2023-01-18T14:37:36
93,287,101
36
11
null
null
null
null
UTF-8
C++
false
false
888
cpp
/* * @lc app=leetcode.cn id=203 lang=cpp * * [203] 移除链表元素 */ // @lc code=start /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* removeElements(ListNode* head, int val) { // if (head == nullptr) return nullptr; ListNode* dummy = new ListNode(999); dummy->next = head; ListNode* p = dummy; while (head != nullptr) { if (head->val != val) { p->next = head; p = p->next; } head = head->next; p->next = nullptr; } return dummy->next; } }; // @lc code=end
[ "fjie666@outlook.com" ]
fjie666@outlook.com
73ec83035351d5363c690cb3c425b4f4c8f89d7b
4ad2ec9e00f59c0e47d0de95110775a8a987cec2
/_Authored_by_me/Info1 2019 sources/p14/src.cpp
0df3f6b3176987aaf82768e66fa13dfe7acd7d09
[]
no_license
atatomir/work
2f13cfd328e00275672e077bba1e84328fccf42f
e8444d2e48325476cfbf0d4cfe5a5aa1efbedce9
refs/heads/master
2021-01-23T10:03:44.821372
2021-01-17T18:07:15
2021-01-17T18:07:15
33,084,680
2
1
null
2015-08-02T20:16:02
2015-03-29T18:54:24
C++
UTF-8
C++
false
false
3,329
cpp
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <cmath> //#define testing #ifndef testing #include "grader.h" #endif using namespace std; #define mp make_pair #define pb push_back #define ll long long #ifdef testing const vector<int> expected = {8, 9, 3, 2, 1, 7, 6, 5, 4, 10}; int query(vector<int> v) { int ans = 0; static int count = 0; count++; for (int i = 0; i < v.size(); i++) if (v[i] == expected[i]) ans++; cerr << count << "-"; for (auto e: v) cerr << e << ' '; cerr << "=> " << ans << "\n"; return ans; } #endif const int maxN = 555; int n; vector<int> base; vector<int> adj[maxN]; bool used[maxN]; vector<int> cycle, solution; int ask(vector<int>& v) { int ans = query(v); if (ans == n) exit(0); return ans; } int ask_pairs(vector< pair<int, int> >& pairs, int cnt) { vector<int> aux = base; for (int i = 0; i < pairs.size() && i <= cnt; i++) swap(aux[pairs[i].first], aux[pairs[i].second]); return ask(aux); } void divide(vector< pair<int, int> >& pairs, int l, int r, int total) { if (l == r) { adj[pairs[l].first].pb(pairs[l].second); adj[pairs[l].second].pb(pairs[l].first); return; } vector< pair<int, int> > aux = {}; int mid = (l + r) >> 1; for (int i = l; i <= mid; i++) aux.pb(pairs[i]); int le = ask_pairs(aux, n); int ri = total - le; if (le > 0) divide(pairs, l, mid, le); if (ri > 0) divide(pairs, mid + 1, r, ri); } void check_pairs(int sum) { int i, target; vector< pair<int, int> > pairs = {}; for (i = 0; i < n; i++) { int j = (sum + n - i) % n; if (i < j && adj[i].size() < 2 && adj[j].size() < 2) pairs.pb(mp(i, j)); } target = ask_pairs(pairs, n); if (target > 0) divide(pairs, 0, pairs.size() - 1, target); return; int m = pairs.size(); int act = 0; target = ask_pairs(pairs, n); int take = -1; while (act < target) { for (int step = 1 << 10; step > 0; step >>= 1) if (take + step < m && ask_pairs(pairs, take + step) == act) take += step; take++; act = ask_pairs(pairs, take); adj[pairs[take].first].pb(pairs[take].second); adj[pairs[take].second].pb(pairs[take].first); } } void dfs(int node) { used[node] = true; cycle.pb(node); for (auto to: adj[node]) if (!used[to]) dfs(to); } void try_cycle() { vector< pair<int, int> > pairs = {}; for (int i = 0; i + 1 < cycle.size(); i++) pairs.pb(mp(cycle[i], cycle[i + 1])); if (ask_pairs(pairs, n) == 0) reverse(pairs.begin(), pairs.end()); for (auto e : pairs) swap(solution[e.first], solution[e.second]); } void solve(int N) { return; n = N; for (int i = 1; i <= n; i++) base.pb(i); while(ask(base) > 0) random_shuffle(base.begin(), base.end()); for (int i = 0; i < n; i++) check_pairs(i); solution = base; for (int i = 0; i < n; i++) { if (used[i]) continue; cycle.clear(); dfs(i); try_cycle(); } ask(solution); } #ifdef testing int main() { solve(10); return 0; } #endif
[ "atatomir5@gmail.com" ]
atatomir5@gmail.com
52d8a3fd5d07ab9f85ccfdd3c7021048545ba8b4
9963f25b075c73fc4e2759c7099304035fa85fc0
/yukicoder/1098.cc
eae27308c85ab90aee19d39439c614533a04f8e6
[ "BSD-2-Clause" ]
permissive
kyawakyawa/CompetitiveProgramingCpp
a0f1b00da4e2e2c8f624718a06688bdbfa1d86e1
dd0722f4280cea29fab131477a30b3b0ccb51da0
refs/heads/master
2023-06-10T03:36:12.606288
2021-06-27T14:30:10
2021-06-27T14:30:10
231,919,225
0
0
null
null
null
null
UTF-8
C++
false
false
6,404
cc
#include <stdint.h> #include <stdlib.h> #include <algorithm> #include <iostream> #include <numeric> #include <vector> using namespace std; using default_counter_t = int64_t; // macro #define let auto const& #define overload4(a, b, c, d, name, ...) name #define rep1(n) \ for (default_counter_t i = 0, end_i = default_counter_t(n); i < end_i; ++i) #define rep2(i, n) \ for (default_counter_t i = 0, end_##i = default_counter_t(n); i < end_##i; \ ++i) #define rep3(i, a, b) \ for (default_counter_t i = default_counter_t(a), \ end_##i = default_counter_t(b); \ i < end_##i; ++i) #define rep4(i, a, b, c) \ for (default_counter_t i = default_counter_t(a), \ end_##i = default_counter_t(b); \ i < end_##i; i += default_counter_t(c)) #define rep(...) overload4(__VA_ARGS__, rep4, rep3, rep2, rep1)(__VA_ARGS__) #define rrep1(n) \ for (default_counter_t i = default_counter_t(n) - 1; i >= 0; --i) #define rrep2(i, n) \ for (default_counter_t i = default_counter_t(n) - 1; i >= 0; --i) #define rrep3(i, a, b) \ for (default_counter_t i = default_counter_t(b) - 1, \ begin_##i = default_counter_t(a); \ i >= begin_##i; --i) #define rrep4(i, a, b, c) \ for (default_counter_t \ i = (default_counter_t(b) - default_counter_t(a) - 1) / \ default_counter_t(c) * default_counter_t(c) + \ default_counter_t(a), \ begin_##i = default_counter_t(a); \ i >= begin_##i; i -= default_counter_t(c)) #define rrep(...) \ overload4(__VA_ARGS__, rrep4, rrep3, rrep2, rrep1)(__VA_ARGS__) #define ALL(f, c, ...) \ (([&](decltype((c)) cccc) { \ return (f)(std::begin(cccc), std::end(cccc), ##__VA_ARGS__); \ })(c)) // function template <class C> constexpr C& Sort(C& a) { std::sort(std::begin(a), std::end(a)); return a; } template <class C> constexpr auto& Min(C const& a) { return *std::min_element(std::begin(a), std::end(a)); } template <class C> constexpr auto& Max(C const& a) { return *std::max_element(std::begin(a), std::end(a)); } template <class C> constexpr auto Total(C const& c) { return std::accumulate(std::begin(c), std::end(c), C(0)); } template <typename T> auto CumSum(std::vector<T> const& v) { std::vector<T> a(v.size() + 1, T(0)); for (std::size_t i = 0; i < a.size() - size_t(1); ++i) a[i + 1] = a[i] + v[i]; return a; } template <typename T> constexpr bool ChMax(T& a, T const& b) { if (a < b) { a = b; return true; } return false; } template <typename T> constexpr bool ChMin(T& a, T const& b) { if (b < a) { a = b; return true; } return false; } void In(void) { return; } template <typename First, typename... Rest> void In(First& first, Rest&... rest) { cin >> first; In(rest...); return; } template <class T, typename I> void VectorIn(vector<T>& v, const I n) { v.resize(size_t(n)); rep(i, v.size()) cin >> v[i]; } void Out(void) { cout << "\n"; return; } template <typename First, typename... Rest> void Out(First first, Rest... rest) { cout << first << " "; Out(rest...); return; } constexpr auto yes(const bool c) { return c ? "yes" : "no"; } constexpr auto Yes(const bool c) { return c ? "Yes" : "No"; } constexpr auto YES(const bool c) { return c ? "YES" : "NO"; } // http://koturn.hatenablog.com/entry/2018/08/01/010000 template <typename T, typename U> inline std::vector<U> MakeNdVector(T n, U val) noexcept { static_assert(std::is_integral<T>::value, "[MakeNdVector] The 1st argument must be an integer"); return std::vector<U>(std::forward<T>(n), std::forward<U>(val)); } template <typename T, typename... Args> inline decltype(auto) MakeNdVector(T n, Args&&... args) noexcept { static_assert(std::is_integral<T>::value, "[MakeNdVector] The 1st argument must be an integer"); return std::vector<decltype(MakeNdVector(std::forward<Args>(args)...))>( std::forward<T>(n), MakeNdVector(std::forward<Args>(args)...)); } template <typename T, std::size_t N, typename std::enable_if<(N > 0), std::nullptr_t>::type = nullptr> struct NdvectorImpl { using type = std::vector<typename NdvectorImpl<T, N - 1>::type>; }; // struct ndvector_impl template <typename T> struct NdvectorImpl<T, 1> { using type = std::vector<T>; }; // struct ndvector_impl template <typename T, std::size_t N> using NdVector = typename NdvectorImpl<T, N>::type; #ifdef USE_STACK_TRACE_LOGGER #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Weverything" #include <glog/logging.h> #pragma clang diagnostic pop #endif //__clang__ #endif // USE_STACK_TRACE_LOGGER int64_t N; vector<int64_t> dp; vector<vector<int>> g; vector<int> visit; vector<int64_t> ans; int64_t Dfs1(int64_t v) { visit[v] = true; int64_t ret = 1; for (auto u : g[v]) { if (!visit[u]) { ret += Dfs1(u); } } return dp[v] = ret; } void Dfs2(int64_t v) { visit[v] = true; vector<int64_t> tmps; for (auto u : g[v]) { if (!visit[u]) { tmps.emplace_back(dp[u]); Dfs2(u); } } ans[v] = 0; vector<int64_t> cum(tmps.size() + 1, 0); rep(i, tmps.size()) { cum[i + 1] = cum[i] + tmps[i]; } rep(i, int64_t(tmps.size()) - 1) { ans[v] += tmps[i] * (cum[tmps.size()] - cum[i + 1]); } ans[v] += accumulate(tmps.begin(), tmps.end(), int64_t(0)); ans[v] *= 2; ans[v]++; } signed main(int argc, char* argv[]) { (void)argc; #ifdef USE_STACK_TRACE_LOGGER google::InitGoogleLogging(argv[0]); google::InstallFailureSignalHandler(); #else (void)argv; #endif // USE_STACK_TRACE_LOGGER In(N); g.resize(N); rep(i, N - 1) { int v, w; In(v, w); v--; w--; g[v].emplace_back(w); g[w].emplace_back(v); } dp.resize(N, -1); visit.resize(N, false); Dfs1(0); fill(visit.begin(), visit.end(), false); ans.resize(N, 0); Dfs2(0); rep(i, N) { cout << ans[i] << endl; } return EXIT_SUCCESS; }
[ "kyawashell@gmail.com" ]
kyawashell@gmail.com
ebe1c58157363de601cf4fbe2b9d9687f5af21a2
f98439a5ea465239a988f0d0193410f245ccaf5b
/Atomic/AtCharsets.h
842a492676f894cb74f4e324dca68e60e431d551
[ "MIT" ]
permissive
denisbider/Atomic
6f0b6040dfdd71f80aa6bb30c1577a26d4136202
8e8e979a6ef24d217a77f17fa81a4129f3506952
refs/heads/master
2021-07-01T00:27:29.102487
2021-03-05T19:21:49
2021-03-05T19:21:49
220,709,742
4
1
null
null
null
null
UTF-8
C++
false
false
261
h
#pragma once #include "AtSeq.h" namespace At { // Returns zero if charset name not recognized. // Charset names correspond to those used in .NET, and include preferred MIME names defined by IANA. UINT CharsetNameToWindowsCodePage(Seq charset); }
[ "denisbider@users.noreply.github.com" ]
denisbider@users.noreply.github.com
633e6d9f63fc8215daecbc584347250fa9591453
ad5a6c611d28272bfba233fe0718ce9327ef3eb7
/os-interface-linux.cpp
7471a4117c4737e5359af03a099dac6de801fd2c
[]
no_license
gianantonio71/amber-runtime
5f51da245aaadf85b014aa4e62f33706037473b4
18b98ba176326af06e2713660a1a36056d99fb4b
refs/heads/master
2021-04-18T23:24:56.761976
2017-11-20T14:44:53
2017-11-20T14:44:53
19,239,696
0
0
null
null
null
null
UTF-8
C++
false
false
967
cpp
#include "lib.h" #include "os-interface.h" uint64 get_tick_count() { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { // error } return 1000 * ts.tv_sec + ts.tv_nsec / 1000000; } char *file_read(const char *fname, int &size) { FILE *fp = fopen(fname, "r"); if (fp == NULL) { size = -1; return NULL; } int start = ftell(fp); assert(start == 0); fseek(fp, 0, SEEK_END); int end = ftell(fp); fseek(fp, 0, SEEK_SET); size = end - start; if (size == 0) { fclose(fp); return NULL; } char *buff = new_byte_array(size); int read = fread(buff, 1, size, fp); fclose(fp); if (read != size) { delete_byte_array(buff, size); size = -1; return NULL; } return buff; } bool file_write(const char *fname, const char *buffer, int size, bool append) { FILE *fp = fopen(fname, append ? "a" : "w"); size_t written = fwrite(buffer, 1, size, fp); fclose(fp); return written == size; }
[ "gianantonio71@gmail.com" ]
gianantonio71@gmail.com
066c3170dfb7fbc26238674f42e996b30d69294e
b162de01d1ca9a8a2a720e877961a3c85c9a1c1c
/382.linked-list-random-node.cpp
6d4d276e3b77cc3cd7f8e3462551a9d3c495b288
[]
no_license
richnakasato/lc
91d5ff40a1a3970856c76c1a53d7b21d88a3429c
f55a2decefcf075914ead4d9649d514209d17a34
refs/heads/master
2023-01-19T09:55:08.040324
2020-11-19T03:13:51
2020-11-19T03:13:51
114,937,686
0
0
null
null
null
null
UTF-8
C++
false
false
1,548
cpp
/* * [382] Linked List Random Node * * https://leetcode.com/problems/linked-list-random-node/description/ * * algorithms * Medium (48.32%) * Total Accepted: 46.8K * Total Submissions: 96.8K * Testcase Example: '["Solution","getRandom"]\n[[[1,2,3]],[]]' * * Given a singly linked list, return a random node's value from the linked * list. Each node must have the same probability of being chosen. * * Follow up: * What if the linked list is extremely large and its length is unknown to you? * Could you solve this efficiently without using extra space? * * * Example: * * // Init a singly linked list [1,2,3]. * ListNode head = new ListNode(1); * head.next = new ListNode(2); * head.next.next = new ListNode(3); * Solution solution = new Solution(head); * * // getRandom() should return either 1, 2, or 3 randomly. Each element should * have equal probability of returning. * solution.getRandom(); * * */ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: /** @param head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node. */ Solution(ListNode* head) { } /** Returns a random node's value. */ int getRandom() { } }; /** * Your Solution object will be instantiated and called as such: * Solution obj = new Solution(head); * int param_1 = obj.getRandom(); */
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
4bc7b790aebe0ade3b83a560c498403b16400245
ded10c52a4602174205b3ad5609319c7691fd9bf
/buoi 4.1.cpp
efcd4b3d3ef5240fe7d3ccf69dd237d9d4b6f72d
[]
no_license
Khachuy911/c-language
6faf4eda6b3ff7be6a64185be7473dd9e695f437
ede335608e2a4f5eeb0ec260a0852cb75a5f29d6
refs/heads/master
2023-08-14T21:23:05.507297
2021-09-17T10:17:44
2021-09-17T10:17:44
407,494,110
1
0
null
null
null
null
UTF-8
C++
false
false
222
cpp
#include<stdio.h> #include<math.h> int main (){ int a,b=1; printf ("nhap a :"); scanf ("%d",&a); for (int i=1;i<=sqrt(a);i++){ if (i>=0){ b= pow(i,2); printf("\n%d",b); }else printf("nhap lai a"); } return 0; }
[ "khachuy469@gmail.com" ]
khachuy469@gmail.com
de94e663231bbd0341a904a2493b9b363fee976f
71c8702211dc84b0311d52b7cfa08c85921d660b
/LeetCode/1. Two Sum.cpp
03d004035b657f3513be7eb9dae6f98f630327de
[]
no_license
mubasshir00/competitive-programming
b8a4301bba591e38384a8652f16b413853aa631b
7eda0bb3dcc2dc44c516ce47046eb5da725342ce
refs/heads/master
2023-07-19T21:01:18.273419
2023-07-08T19:05:44
2023-07-08T19:05:44
226,463,398
1
0
null
null
null
null
UTF-8
C++
false
false
831
cpp
#include <bits/stdc++.h> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { unordered_set<int> s; vector<int> ans; int j = 0; for (int i = 0; i < nums.size(); i++) { int temp = target - nums[i]; // int tempInd = i ; if (s.find(temp) != s.end()) { // cout<<i<<" "; ans.push_back(i); for (int j = 0; j < nums.size(); j++) { if (temp == nums[j]) { // cout<<j<<endl; ans.push_back(j); break; } } } s.insert(nums[i]); } return ans; } };
[ "30567773+mubasshir00@users.noreply.github.com" ]
30567773+mubasshir00@users.noreply.github.com
4795e407dfd798ac260870bdc0917778997b8832
7147033f4900bd06e182c5f88a82c47d59b69024
/server.cpp
38460484f1d25542941325fc4cb74fa12c556125
[]
no_license
anastasiaKretova/os-net-multiplexing
fd773cedd8b266e584dda5049e5c540b307b6b04
f81fb45a84b9163daeda0d84e4c9bc5aaf26aa60
refs/heads/master
2020-05-28T05:10:04.031913
2019-06-15T19:10:12
2019-06-15T19:10:12
188,889,688
0
0
null
2019-05-27T18:13:27
2019-05-27T18:13:26
null
UTF-8
C++
false
false
4,853
cpp
// // Created by anastasia on 19.05.19. // #include <cstring> #include <bits/stdc++.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include "socket.cpp" #include "epoll.cpp" struct server_exception : std::runtime_error { explicit server_exception(const std::string &cause) : std::runtime_error(cause + ": " + strerror(errno)){} }; class vector; class Server { public: Server() = default; Server(char* address, uint16_t port) : socket(Socket()) { memset(&server_addr, 0, sizeof(sockaddr_in)); server_addr.sin_family = AF_INET; server_addr.sin_addr.s_addr = inet_addr(address); server_addr.sin_port = port; try { socket.bind(server_addr); socket.listen(3); } catch (socket_exception &e) { throw server_exception(e.what()); } try { epoll.start(); epoll.check_ctl(socket.getFd(), EPOLLIN, EPOLL_CTL_ADD); } catch (epoll_exception &e) { throw server_exception(e.what()); } } #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wmissing-noreturn" void run() { struct epoll_event events[EVENTS_SIZE]; std::map<int, std::vector<std::string>> answers; while(true) { try { int n = epoll.wait(events); for (int i = 0; i < n; ++i) { int cur_fd = events[i].data.fd; uint32_t cur_events = events[i].events; if (cur_fd == socket.getFd()) { try { Socket client_socket = socket.accept(); client_socket.unblock(); epoll.check_ctl(client_socket.getFd(), EPOLLIN | EPOLLERR | EPOLLHUP, EPOLL_CTL_ADD); std::cout << "Client connected" << std::endl; } catch (std::runtime_error &e) { std::cerr << e.what() << std::endl; continue; } } else { if (cur_events & EPOLLIN) { Socket client_socket = Socket(cur_fd); std::string ans = client_socket.recv(); if (answers[client_socket.getFd()].empty()) { epoll.check_ctl(client_socket.getFd(), EPOLLIN | EPOLLOUT | EPOLLERR | EPOLLHUP, EPOLL_CTL_MOD); } answers[client_socket.getFd()].push_back(ans); } else if (cur_events & EPOLLOUT) { try { Socket client_socket = Socket(cur_fd); client_socket.send(answers[client_socket.getFd()].back()); answers[client_socket.getFd()].pop_back(); if (answers[client_socket.getFd()].empty()) { epoll.check_ctl(client_socket.getFd(), EPOLLIN | EPOLLERR | EPOLLHUP, EPOLL_CTL_MOD); } } catch (socket_exception &e) { std::cerr << e.what() << std::endl; } } else if (cur_events & (EPOLLERR | EPOLLHUP)) { epoll.check_ctl(cur_fd, -1, EPOLL_CTL_DEL); std::cout << "Client disconnected" << std::endl; if (answers.count(cur_fd)) { answers.erase(cur_fd); } } } } } catch (std::runtime_error &e) { try { epoll.check_ctl(socket.getFd(), -1, EPOLL_CTL_DEL); socket.close(); } catch (std::runtime_error &e) { std::cerr << e.what() << std::endl; throw server_exception(e.what()); } } } } #pragma clang diagnostic pop ~Server() = default; private: struct sockaddr_in server_addr{}; Socket socket; Epoll epoll; const int EVENTS_SIZE = 1024; }; int main(int argc, char* argv[]) { if (argc != 3) { std::cerr << "Two arguments expected: address and port."; exit(EXIT_FAILURE); } try { Server server(argv[1], static_cast<uint16_t>(std::stoul(argv[2]))); server.run(); } catch (server_exception &e) { std::cerr << e.what() << std::endl; exit(EXIT_FAILURE); } }
[ "you@example.com" ]
you@example.com
c9e0f21c6d310079a170fe63d92764da5f5f6761
0a03c2792ecf68a285d7b8b684cf31b7976d3cb1
/bin/mac64.build/cpp/src/luxe/resource/Resource.cpp
39c6e9a1c4426b67fa52fdf6ec7e68731bf9fa9a
[]
no_license
DavidBayless/luxePractice
2cbbf5f3a7e7c2c19adb61913981b8d21922cd82
9d1345893459ecaba81708cfe0c00af9597e5dec
refs/heads/master
2021-01-20T16:56:31.427969
2017-02-22T23:20:35
2017-02-22T23:20:35
82,842,198
0
0
null
null
null
null
UTF-8
C++
false
false
22,107
cpp
#include <hxcpp.h> #ifndef INCLUDED_Luxe #include <Luxe.h> #endif #ifndef INCLUDED_luxe_DebugError #include <luxe/DebugError.h> #endif #ifndef INCLUDED_luxe_Resources #include <luxe/Resources.h> #endif #ifndef INCLUDED_luxe_resource_Resource #include <luxe/resource/Resource.h> #endif #ifndef INCLUDED_snow_api_Promise #include <snow/api/Promise.h> #endif namespace luxe{ namespace resource{ Void Resource_obj::__construct(Dynamic _options) { HX_STACK_FRAME("luxe.resource.Resource","new",0x99ea21c8,"luxe.resource.Resource.new","luxe/resource/Resource.hx",11,0x204e02c8) HX_STACK_THIS(this) HX_STACK_ARG(_options,"_options") { HX_STACK_LINE(30) this->ref = (int)0; HX_STACK_LINE(34) { HX_STACK_LINE(34) bool tmp = (_options == null()); HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(34) if ((tmp)){ HX_STACK_LINE(34) ::String tmp1 = HX_HCSTRING("_options was null","\x3f","\x38","\x24","\xa1"); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(34) ::luxe::DebugError tmp2 = ::luxe::DebugError_obj::null_assertion(tmp1); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(34) HX_STACK_DO_THROW(tmp2); } } HX_STACK_LINE(35) { HX_STACK_LINE(35) bool tmp = (_options->__Field(HX_HCSTRING("id","\xdb","\x5b","\x00","\x00"), hx::paccDynamic ) == null()); HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(35) if ((tmp)){ HX_STACK_LINE(35) ::String tmp1 = HX_HCSTRING("_options.id was null","\xb4","\x3b","\xea","\x09"); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(35) ::luxe::DebugError tmp2 = ::luxe::DebugError_obj::null_assertion(tmp1); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(35) HX_STACK_DO_THROW(tmp2); } } HX_STACK_LINE(37) { HX_STACK_LINE(37) bool tmp = (_options->__Field(HX_HCSTRING("system","\xef","\x96","\xe2","\xf2"), hx::paccDynamic ) == null()); HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(37) if ((tmp)){ HX_STACK_LINE(37) ::luxe::Resources tmp1 = ::Luxe_obj::resources; HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(37) _options->__FieldRef(HX_HCSTRING("system","\xef","\x96","\xe2","\xf2")) = tmp1; } HX_STACK_LINE(37) _options->__Field(HX_HCSTRING("system","\xef","\x96","\xe2","\xf2"), hx::paccDynamic ); } HX_STACK_LINE(38) { HX_STACK_LINE(38) bool tmp = (_options->__Field(HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c"), hx::paccDynamic ) == null()); HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(38) if ((tmp)){ HX_STACK_LINE(38) _options->__FieldRef(HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c")) = (int)0; } HX_STACK_LINE(38) _options->__Field(HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c"), hx::paccDynamic ); } HX_STACK_LINE(40) this->id = _options->__Field(HX_HCSTRING("id","\xdb","\x5b","\x00","\x00"), hx::paccDynamic ); HX_STACK_LINE(41) this->_system = _options->__Field(HX_HCSTRING("system","\xef","\x96","\xe2","\xf2"), hx::paccDynamic ); HX_STACK_LINE(42) this->resource_type = _options->__Field(HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c"), hx::paccDynamic ); HX_STACK_LINE(43) this->set_state((int)0); HX_STACK_LINE(44) this->set_ref((int)1); } ; return null(); } //Resource_obj::~Resource_obj() { } Dynamic Resource_obj::__CreateEmpty() { return new Resource_obj; } hx::ObjectPtr< Resource_obj > Resource_obj::__new(Dynamic _options) { hx::ObjectPtr< Resource_obj > _result_ = new Resource_obj(); _result_->__construct(_options); return _result_;} Dynamic Resource_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< Resource_obj > _result_ = new Resource_obj(); _result_->__construct(inArgs[0]); return _result_;} Void Resource_obj::destroy( Dynamic __o__force){ Dynamic _force = __o__force.Default(false); HX_STACK_FRAME("luxe.resource.Resource","destroy",0x97c55262,"luxe.resource.Resource.destroy","luxe/resource/Resource.hx",52,0x204e02c8) HX_STACK_THIS(this) HX_STACK_ARG(_force,"_force") { HX_STACK_LINE(54) { HX_STACK_LINE(54) int tmp = this->state; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(54) bool tmp1 = (tmp != (int)6); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(54) bool tmp2 = !(tmp1); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(54) if ((tmp2)){ HX_STACK_LINE(54) ::String tmp3 = HX_HCSTRING("state != ResourceState.destroyed","\x79","\xbe","\xa0","\xbf"); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(54) ::luxe::DebugError tmp4 = ::luxe::DebugError_obj::assertion(tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(54) HX_STACK_DO_THROW(tmp4); } } HX_STACK_LINE(56) Dynamic tmp = _force; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(56) bool tmp1 = !(tmp); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(56) if ((tmp1)){ HX_STACK_LINE(57) { HX_STACK_LINE(57) int tmp2 = this->ref; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(57) bool tmp3 = (tmp2 > (int)0); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(57) bool tmp4 = !(tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(57) if ((tmp4)){ HX_STACK_LINE(57) ::String tmp5 = HX_HCSTRING("ref > 0","\x81","\x7a","\xcf","\xb6"); HX_STACK_VAR(tmp5,"tmp5"); HX_STACK_LINE(57) ::luxe::DebugError tmp6 = ::luxe::DebugError_obj::assertion(tmp5); HX_STACK_VAR(tmp6,"tmp6"); HX_STACK_LINE(57) HX_STACK_DO_THROW(tmp6); } } HX_STACK_LINE(58) { HX_STACK_LINE(58) ::luxe::resource::Resource _g = hx::ObjectPtr<OBJ_>(this); HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(58) int _g1 = _g->ref; HX_STACK_VAR(_g1,"_g1"); HX_STACK_LINE(58) int tmp2 = (_g1 - (int)1); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(58) _g->set_ref(tmp2); HX_STACK_LINE(58) _g1; } HX_STACK_LINE(59) { HX_STACK_LINE(59) int tmp2 = this->ref; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(59) bool tmp3 = (tmp2 >= (int)0); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(59) bool tmp4 = !(tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(59) if ((tmp4)){ HX_STACK_LINE(59) ::String tmp5 = HX_HCSTRING("ref >= 0","\xfc","\xa9","\xd1","\x3e"); HX_STACK_VAR(tmp5,"tmp5"); HX_STACK_LINE(59) ::luxe::DebugError tmp6 = ::luxe::DebugError_obj::assertion(tmp5); HX_STACK_VAR(tmp6,"tmp6"); HX_STACK_LINE(59) HX_STACK_DO_THROW(tmp6); } } } HX_STACK_LINE(64) int tmp2 = this->ref; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(64) bool tmp3 = (tmp2 == (int)0); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(64) bool tmp4 = !(tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(64) bool tmp5; HX_STACK_VAR(tmp5,"tmp5"); HX_STACK_LINE(64) if ((tmp4)){ HX_STACK_LINE(64) tmp5 = _force; } else{ HX_STACK_LINE(64) tmp5 = true; } HX_STACK_LINE(64) if ((tmp5)){ HX_STACK_LINE(66) this->clear(); HX_STACK_LINE(67) this->set_state((int)6); HX_STACK_LINE(68) ::luxe::Resources tmp6 = this->_system; HX_STACK_VAR(tmp6,"tmp6"); HX_STACK_LINE(68) tmp6->remove(hx::ObjectPtr<OBJ_>(this)); HX_STACK_LINE(69) ::luxe::Resources tmp7 = this->_system; HX_STACK_VAR(tmp7,"tmp7"); HX_STACK_LINE(69) tmp7->emit((int)8,hx::ObjectPtr<OBJ_>(this)); } } return null(); } HX_DEFINE_DYNAMIC_FUNC1(Resource_obj,destroy,(void)) Void Resource_obj::invalidate( ){ { HX_STACK_FRAME("luxe.resource.Resource","invalidate",0x1eee4513,"luxe.resource.Resource.invalidate","luxe/resource/Resource.hx",77,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(79) { HX_STACK_LINE(79) int tmp = this->state; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(79) bool tmp1 = (tmp != (int)6); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(79) bool tmp2 = !(tmp1); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(79) if ((tmp2)){ HX_STACK_LINE(79) ::String tmp3 = HX_HCSTRING("state != ResourceState.destroyed","\x79","\xbe","\xa0","\xbf"); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(79) ::luxe::DebugError tmp4 = ::luxe::DebugError_obj::assertion(tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(79) HX_STACK_DO_THROW(tmp4); } } HX_STACK_LINE(81) this->clear(); HX_STACK_LINE(82) this->set_state((int)5); HX_STACK_LINE(83) ::luxe::Resources tmp = this->_system; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(83) tmp->emit((int)6,hx::ObjectPtr<OBJ_>(this)); } return null(); } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,invalidate,(void)) ::snow::api::Promise Resource_obj::reload( ){ HX_STACK_FRAME("luxe.resource.Resource","reload",0xdb0fd2f1,"luxe.resource.Resource.reload","luxe/resource/Resource.hx",90,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(90) return null(); } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,reload,return ) Float Resource_obj::memory_use( ){ HX_STACK_FRAME("luxe.resource.Resource","memory_use",0x92507c61,"luxe.resource.Resource.memory_use","luxe/resource/Resource.hx",97,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(97) return (int)0; } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,memory_use,return ) int Resource_obj::set_ref( int _ref){ HX_STACK_FRAME("luxe.resource.Resource","set_ref",0x8d0c585e,"luxe.resource.Resource.set_ref","luxe/resource/Resource.hx",102,0x204e02c8) HX_STACK_THIS(this) HX_STACK_ARG(_ref,"_ref") HX_STACK_LINE(104) int tmp = this->ref; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(104) int pre = tmp; HX_STACK_VAR(pre,"pre"); HX_STACK_LINE(105) this->ref = _ref; HX_STACK_LINE(107) int tmp1 = this->ref; HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(107) int tmp2 = pre; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(107) bool tmp3 = (tmp1 > tmp2); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(107) if ((tmp3)){ HX_STACK_LINE(108) ::luxe::Resources tmp4 = this->_system; HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(108) tmp4->emit((int)9,hx::ObjectPtr<OBJ_>(this)); } else{ HX_STACK_LINE(109) int tmp4 = this->ref; HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(109) int tmp5 = pre; HX_STACK_VAR(tmp5,"tmp5"); HX_STACK_LINE(109) bool tmp6 = (tmp4 < tmp5); HX_STACK_VAR(tmp6,"tmp6"); HX_STACK_LINE(109) if ((tmp6)){ HX_STACK_LINE(110) ::luxe::Resources tmp7 = this->_system; HX_STACK_VAR(tmp7,"tmp7"); HX_STACK_LINE(110) tmp7->emit((int)10,hx::ObjectPtr<OBJ_>(this)); } } HX_STACK_LINE(113) int tmp4 = this->ref; HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(113) return tmp4; } HX_DEFINE_DYNAMIC_FUNC1(Resource_obj,set_ref,return ) int Resource_obj::set_state( int _state){ HX_STACK_FRAME("luxe.resource.Resource","set_state",0xc8670ddc,"luxe.resource.Resource.set_state","luxe/resource/Resource.hx",117,0x204e02c8) HX_STACK_THIS(this) HX_STACK_ARG(_state,"_state") HX_STACK_LINE(119) this->state = _state; HX_STACK_LINE(121) { HX_STACK_LINE(121) int tmp = this->state; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(121) int _g = tmp; HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(121) int tmp1 = _g; HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(121) switch( (int)(tmp1)){ case (int)2: { HX_STACK_LINE(123) ::luxe::Resources tmp2 = this->_system; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(123) tmp2->emit((int)3,hx::ObjectPtr<OBJ_>(this)); } ;break; case (int)3: { HX_STACK_LINE(125) ::luxe::Resources tmp2 = this->_system; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(125) tmp2->emit((int)4,hx::ObjectPtr<OBJ_>(this)); } ;break; case (int)4: { HX_STACK_LINE(127) ::luxe::Resources tmp2 = this->_system; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(127) tmp2->emit((int)5,hx::ObjectPtr<OBJ_>(this)); } ;break; default: { } } } HX_STACK_LINE(131) int tmp = this->state; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(131) return tmp; } HX_DEFINE_DYNAMIC_FUNC1(Resource_obj,set_state,return ) Void Resource_obj::clear( ){ { HX_STACK_FRAME("luxe.resource.Resource","clear",0x3136ecf5,"luxe.resource.Resource.clear","luxe/resource/Resource.hx",136,0x204e02c8) HX_STACK_THIS(this) } return null(); } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,clear,(void)) ::String Resource_obj::state_string( ){ HX_STACK_FRAME("luxe.resource.Resource","state_string",0xa1c85a17,"luxe.resource.Resource.state_string","luxe/resource/Resource.hx",141,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(142) ::String tmp; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(142) { HX_STACK_LINE(142) int tmp1 = this->state; HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(142) int _g = tmp1; HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(142) int tmp2 = _g; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(142) switch( (int)(tmp2)){ case (int)1: { HX_STACK_LINE(143) tmp = HX_HCSTRING("listed","\x3d","\xc8","\xf9","\xef"); } ;break; case (int)2: { HX_STACK_LINE(144) tmp = HX_HCSTRING("loading","\x7c","\xce","\xf2","\x08"); } ;break; case (int)3: { HX_STACK_LINE(145) tmp = HX_HCSTRING("loaded","\x05","\x48","\x6f","\x58"); } ;break; case (int)4: { HX_STACK_LINE(146) tmp = HX_HCSTRING("failed","\xbd","\xc5","\xfe","\xe7"); } ;break; case (int)5: { HX_STACK_LINE(147) tmp = HX_HCSTRING("invalidated","\x89","\x32","\xac","\xbd"); } ;break; case (int)6: { HX_STACK_LINE(148) tmp = HX_HCSTRING("destroyed","\xd9","\x37","\x27","\xf4"); } ;break; default: { HX_STACK_LINE(149) tmp = HX_HCSTRING("unknown","\x8a","\x23","\x7b","\xe1"); } } } HX_STACK_LINE(142) return tmp; } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,state_string,return ) ::String Resource_obj::type_string( ){ HX_STACK_FRAME("luxe.resource.Resource","type_string",0xd6096c5e,"luxe.resource.Resource.type_string","luxe/resource/Resource.hx",153,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(154) ::String tmp; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(154) { HX_STACK_LINE(154) int tmp1 = this->resource_type; HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(154) int _g = tmp1; HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(154) int tmp2 = _g; HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(154) switch( (int)(tmp2)){ case (int)3: { HX_STACK_LINE(155) tmp = HX_HCSTRING("bytes","\x6b","\x08","\x98","\xbd"); } ;break; case (int)1: { HX_STACK_LINE(156) tmp = HX_HCSTRING("text","\xad","\xcc","\xf9","\x4c"); } ;break; case (int)2: { HX_STACK_LINE(157) tmp = HX_HCSTRING("json","\x28","\x42","\x68","\x46"); } ;break; case (int)4: { HX_STACK_LINE(158) tmp = HX_HCSTRING("texture","\xdb","\xc8","\xe0","\x9e"); } ;break; case (int)7: { HX_STACK_LINE(159) tmp = HX_HCSTRING("shader","\x25","\xbf","\x20","\x1d"); } ;break; case (int)6: { HX_STACK_LINE(160) tmp = HX_HCSTRING("font","\xcf","\x5d","\xc0","\x43"); } ;break; default: { HX_STACK_LINE(161) int tmp3 = this->resource_type; HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(161) tmp = (HX_HCSTRING("","\x00","\x00","\x00","\x00") + tmp3); } } } HX_STACK_LINE(154) return tmp; } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,type_string,return ) ::String Resource_obj::toString( ){ HX_STACK_FRAME("luxe.resource.Resource","toString",0x9c706644,"luxe.resource.Resource.toString","luxe/resource/Resource.hx",165,0x204e02c8) HX_STACK_THIS(this) HX_STACK_LINE(166) ::String tmp = this->id; HX_STACK_VAR(tmp,"tmp"); HX_STACK_LINE(166) ::String tmp1 = (HX_HCSTRING("Resource(`","\xa6","\xd3","\xbc","\x37") + tmp); HX_STACK_VAR(tmp1,"tmp1"); HX_STACK_LINE(166) ::String tmp2 = (tmp1 + HX_HCSTRING("`, ","\xd4","\xfe","\x48","\x00")); HX_STACK_VAR(tmp2,"tmp2"); HX_STACK_LINE(166) ::String tmp3 = this->type_string(); HX_STACK_VAR(tmp3,"tmp3"); HX_STACK_LINE(166) ::String tmp4 = (tmp2 + tmp3); HX_STACK_VAR(tmp4,"tmp4"); HX_STACK_LINE(166) ::String tmp5 = (tmp4 + HX_HCSTRING(", ","\x74","\x26","\x00","\x00")); HX_STACK_VAR(tmp5,"tmp5"); HX_STACK_LINE(166) ::String tmp6 = this->state_string(); HX_STACK_VAR(tmp6,"tmp6"); HX_STACK_LINE(166) ::String tmp7 = (tmp5 + tmp6); HX_STACK_VAR(tmp7,"tmp7"); HX_STACK_LINE(166) ::String tmp8 = (tmp7 + HX_HCSTRING(")","\x29","\x00","\x00","\x00")); HX_STACK_VAR(tmp8,"tmp8"); HX_STACK_LINE(166) return tmp8; } HX_DEFINE_DYNAMIC_FUNC0(Resource_obj,toString,return ) Resource_obj::Resource_obj() { } void Resource_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(Resource); HX_MARK_MEMBER_NAME(id,"id"); HX_MARK_MEMBER_NAME(_system,"system"); HX_MARK_MEMBER_NAME(resource_type,"resource_type"); HX_MARK_MEMBER_NAME(state,"state"); HX_MARK_MEMBER_NAME(ref,"ref"); HX_MARK_END_CLASS(); } void Resource_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(id,"id"); HX_VISIT_MEMBER_NAME(_system,"system"); HX_VISIT_MEMBER_NAME(resource_type,"resource_type"); HX_VISIT_MEMBER_NAME(state,"state"); HX_VISIT_MEMBER_NAME(ref,"ref"); } Dynamic Resource_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp) { switch(inName.length) { case 2: if (HX_FIELD_EQ(inName,"id") ) { return id; } break; case 3: if (HX_FIELD_EQ(inName,"ref") ) { return ref; } break; case 5: if (HX_FIELD_EQ(inName,"state") ) { return state; } if (HX_FIELD_EQ(inName,"clear") ) { return clear_dyn(); } break; case 6: if (HX_FIELD_EQ(inName,"system") ) { return _system; } if (HX_FIELD_EQ(inName,"reload") ) { return reload_dyn(); } break; case 7: if (HX_FIELD_EQ(inName,"destroy") ) { return destroy_dyn(); } if (HX_FIELD_EQ(inName,"set_ref") ) { return set_ref_dyn(); } break; case 8: if (HX_FIELD_EQ(inName,"toString") ) { return toString_dyn(); } break; case 9: if (HX_FIELD_EQ(inName,"set_state") ) { return set_state_dyn(); } break; case 10: if (HX_FIELD_EQ(inName,"invalidate") ) { return invalidate_dyn(); } if (HX_FIELD_EQ(inName,"memory_use") ) { return memory_use_dyn(); } break; case 11: if (HX_FIELD_EQ(inName,"type_string") ) { return type_string_dyn(); } break; case 12: if (HX_FIELD_EQ(inName,"state_string") ) { return state_string_dyn(); } break; case 13: if (HX_FIELD_EQ(inName,"resource_type") ) { return resource_type; } } return super::__Field(inName,inCallProp); } Dynamic Resource_obj::__SetField(const ::String &inName,const Dynamic &inValue,hx::PropertyAccess inCallProp) { switch(inName.length) { case 2: if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< ::String >(); return inValue; } break; case 3: if (HX_FIELD_EQ(inName,"ref") ) { if (inCallProp == hx::paccAlways) return set_ref(inValue);ref=inValue.Cast< int >(); return inValue; } break; case 5: if (HX_FIELD_EQ(inName,"state") ) { if (inCallProp == hx::paccAlways) return set_state(inValue);state=inValue.Cast< int >(); return inValue; } break; case 6: if (HX_FIELD_EQ(inName,"system") ) { _system=inValue.Cast< ::luxe::Resources >(); return inValue; } break; case 13: if (HX_FIELD_EQ(inName,"resource_type") ) { resource_type=inValue.Cast< int >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void Resource_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_HCSTRING("id","\xdb","\x5b","\x00","\x00")); outFields->push(HX_HCSTRING("system","\xef","\x96","\xe2","\xf2")); outFields->push(HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c")); outFields->push(HX_HCSTRING("state","\x11","\x76","\x0b","\x84")); outFields->push(HX_HCSTRING("ref","\x53","\xd9","\x56","\x00")); super::__GetFields(outFields); }; #if HXCPP_SCRIPTABLE static hx::StorageInfo sMemberStorageInfo[] = { {hx::fsString,(int)offsetof(Resource_obj,id),HX_HCSTRING("id","\xdb","\x5b","\x00","\x00")}, {hx::fsObject /*::luxe::Resources*/ ,(int)offsetof(Resource_obj,_system),HX_HCSTRING("system","\xef","\x96","\xe2","\xf2")}, {hx::fsInt,(int)offsetof(Resource_obj,resource_type),HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c")}, {hx::fsInt,(int)offsetof(Resource_obj,state),HX_HCSTRING("state","\x11","\x76","\x0b","\x84")}, {hx::fsInt,(int)offsetof(Resource_obj,ref),HX_HCSTRING("ref","\x53","\xd9","\x56","\x00")}, { hx::fsUnknown, 0, null()} }; static hx::StaticInfo *sStaticStorageInfo = 0; #endif static ::String sMemberFields[] = { HX_HCSTRING("id","\xdb","\x5b","\x00","\x00"), HX_HCSTRING("system","\xef","\x96","\xe2","\xf2"), HX_HCSTRING("resource_type","\x0b","\x87","\x30","\x9c"), HX_HCSTRING("state","\x11","\x76","\x0b","\x84"), HX_HCSTRING("ref","\x53","\xd9","\x56","\x00"), HX_HCSTRING("destroy","\xfa","\x2c","\x86","\x24"), HX_HCSTRING("invalidate","\x7b","\x19","\x2a","\x87"), HX_HCSTRING("reload","\x59","\x53","\xdf","\x03"), HX_HCSTRING("memory_use","\xc9","\x50","\x8c","\xfa"), HX_HCSTRING("set_ref","\xf6","\x32","\xcd","\x19"), HX_HCSTRING("set_state","\x74","\xbe","\x05","\xab"), HX_HCSTRING("clear","\x8d","\x71","\x5b","\x48"), HX_HCSTRING("state_string","\x7f","\x18","\xf0","\x6f"), HX_HCSTRING("type_string","\xf6","\x72","\x27","\xa2"), HX_HCSTRING("toString","\xac","\xd0","\x6e","\x38"), ::String(null()) }; static void sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(Resource_obj::__mClass,"__mClass"); }; #ifdef HXCPP_VISIT_ALLOCS static void sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(Resource_obj::__mClass,"__mClass"); }; #endif hx::Class Resource_obj::__mClass; void Resource_obj::__register() { hx::Static(__mClass) = new hx::Class_obj(); __mClass->mName = HX_HCSTRING("luxe.resource.Resource","\xd6","\xdd","\xbb","\xbb"); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField; __mClass->mMarkFunc = sMarkStatics; __mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = hx::Class_obj::dupFunctions(sMemberFields); __mClass->mCanCast = hx::TCanCast< Resource_obj >; #ifdef HXCPP_VISIT_ALLOCS __mClass->mVisitFunc = sVisitStatics; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = sStaticStorageInfo; #endif hx::RegisterClass(__mClass->mName, __mClass); } } // end namespace luxe } // end namespace resource
[ "David.C.Bayless15@gmail.com" ]
David.C.Bayless15@gmail.com
9abc0e4c584390e08ebb102a69b6e69af9f943d0
8c35610041e057a63e6326c76fc2f3edbd37259c
/src/include/kline_proc.h
9187b9a603776af4adec4b7e938a4f53cb0c0fac
[]
no_license
luweikang08/ISON
42b35a71987acc1d07fc1e42f4e6ae66f7882d6b
ee612b28ce676e5496157409795233f40309ee74
HEAD
2016-09-06T09:00:45.681419
2015-03-11T05:53:43
2015-03-11T05:53:43
32,001,177
0
5
null
null
null
null
UTF-8
C++
false
false
393
h
#ifndef __ISON_SDS_KLINE_PROC_H__ #define __ISON_SDS_KLINE_PROC_H__ #include <iostream> #include "document.h" #include "isonsdsdataapi.h" #include "data_struct.h" int KlineFromMaketData(int StartIdx, int EndIdx, SDS_Level2 src[], KLineData& dest); int KlineFromKline(int StartIdx, int EndIdx, KLineData src[], KLineData& dest); int KLineData2String(KLineData src, std::string& dest); #endif
[ "luweikang@hongkingsystem.cn" ]
luweikang@hongkingsystem.cn
b4f6cb45f20a34c64ac886ab2a2d545a891c82dd
0e7bd3d037bda33905f837b1e37a221ff805172a
/HackerRank/snakes_and_ladders_the_quickest_way_up.cpp
a9e29cca53ff188071f869a467cec7a5cf35acfe
[]
no_license
davidjacobo/Competencias
0179d6392c13f369ee26e834a01be615f678c3ae
9ef4b483d43dae2deef35291a0fb7af16d9e109b
refs/heads/master
2021-01-15T15:44:25.687748
2016-08-21T08:24:54
2016-08-21T08:25:03
29,445,540
0
0
null
null
null
null
UTF-8
C++
false
false
898
cpp
#include <iostream> #include <vector> #include <algorithm> #include <queue> #define INF (1<<30) #define MAX_N 101 using namespace std; int dis[MAX_N], next_v[MAX_N]; void capture(int n) { int x,y; while(n--) { cin>>x>>y; next_v[x-1] = y-1; } } int solve() { queue<int> q; fill(dis, dis+MAX_N, INF); dis[0] = 0; q.push(0); int u,v; while(!q.empty()) { u = q.front(); q.pop(); if(next_v[u]!=INF && dis[next_v[u]]==INF) { dis[next_v[u]] = dis[u]; q.push(next_v[u]); } if(next_v[u]!=INF) continue; for(int i=1;i<7;++i) { v = u+i; if(v > 99) break; if(dis[v] == INF) { dis[v] = dis[u] + 1; q.push(v); } } } if(dis[99]==INF) return -1; return dis[99]; } int main() { int t, n; cin>>t; while(t--) { fill(next_v, next_v+MAX_N, INF); cin>>n; capture(n); cin>>n; capture(n); cout<<solve()<<endl; } return 0; }
[ "jguillen@cimat.mx" ]
jguillen@cimat.mx
89728a710750c26c9a554aad26b7392c9c2990d8
17da681b73da0a2db1d0a15040f573834762ac32
/razorqt-0.4.0/razorqt-panel/plugin-clock/razorclock.cpp
8d59f3cbd6d49bc3cba28bcd7c95ab64beb8589f
[]
no_license
easion/GoogleCodeImport
652690592ad0e113ac60f807a937e50978cb3f64
e7648d4fa4543520012b6e47a1d2fefed6f22d81
refs/heads/master
2021-01-25T05:35:28.584058
2015-03-14T07:59:22
2015-03-14T07:59:22
32,141,682
1
0
null
null
null
null
UTF-8
C++
false
false
7,263
cpp
/* BEGIN_COMMON_COPYRIGHT_HEADER * * Razor - a lightweight, Qt based, desktop toolset * http://razor-qt.org * * Copyright: 2010-2011 Razor team * Authors: * Christopher "VdoP" Regali * Alexander Sokoloff <sokoloff.a@gmail.ru> * Maciej Płaza <plaza.maciej@gmail.com> * * This program or library is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General * Public License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA * * END_COMMON_COPYRIGHT_HEADER */ #ifndef RAZORCLOCK_CPP #define RAZORCLOCK_CPP #include "razorclock.h" #include <QtCore/QDebug> #include <QtCore/QDateTime> #include <QtCore/QTimer> #include <QtGui/QCalendarWidget> #include <QtGui/QDialog> #include <QtGui/QHBoxLayout> #include <QtCore/QPoint> #include <QtCore/QSettings> #include <QtCore/QRect> #include <QtCore/QEvent> int mon, day, hour, min, sec; /** * @file razorclock.cpp * @brief implements Razorclock and Razorclockgui * @author Christopher "VdoP" Regali */ EXPORT_RAZOR_PANEL_PLUGIN_CPP(RazorClock) /** * @brief constructor */ RazorClock::RazorClock(const RazorPanelPluginStartInfo* startInfo, QWidget* parent): RazorPanelPlugin(startInfo, parent), calendarDialog(0) { setObjectName("Clock"); clockFormat = "hh:mm"; gui = new ClockLabel(this); gui->setAlignment(Qt::AlignCenter); addWidget(gui); connect(gui, SIGNAL(fontChanged()), this, SLOT(updateMinWidth())); settigsChanged(); clocktimer = new QTimer(this); connect (clocktimer, SIGNAL(timeout()), this, SLOT(updateTime())); clocktimer->start(1000); } /** * @brief updates the time * Color and font settings can be configured in Qt CSS */ void RazorClock::updateTime() { gui->setText(QDateTime::currentDateTime().toString(clockFormat)); gui->setToolTip(QDateTime::currentDateTime().toString(Qt::DefaultLocaleLongDate)); } /** * @brief destructor */ RazorClock::~RazorClock() { } void RazorClock::settigsChanged() { if (QLocale::system().timeFormat(QLocale::ShortFormat).toUpper().contains("AP") == true) { timeFormat = settings().value("timeFormat", "h:mm AP").toString(); } else { timeFormat = settings().value("timeFormat", "HH:mm").toString(); } clockFormat = timeFormat; dateFormat = settings().value("dateFormat", Qt::SystemLocaleShortDate).toString(); dateOnNewLine = settings().value("dateOnNewLine", true).toBool(); if (settings().value("showDate", false).toBool()) { if (dateOnNewLine) { clockFormat.append("\n"); } else { clockFormat.append(" "); } clockFormat += dateFormat; } updateMinWidth(); updateTime(); } QDate getMaxDate(const QFontMetrics &metrics, const QString &format) { QDate d(QDate::currentDate().year(), 1, 1); QDateTime dt(d); QDate res; int maxWidth = 0; while (dt.date().year() == d.year()) { int w = metrics.boundingRect(dt.toString(format)).width(); //qDebug() << "*" << dt.toString(format) << w; if (w > maxWidth) { res = dt.date(); maxWidth = w; } dt = dt.addDays(1); } //qDebug() << "Max date:" << res.toString(format); return res; } QTime getMaxTime(const QFontMetrics &metrics, const QString &format) { int maxMinSec = 0; for (int width=0, i=0; i<60; ++i) { int w = metrics.boundingRect(QString("%1").arg(i, 2, 10, QChar('0'))).width(); if (w > width) { maxMinSec = i; width = w; } } QTime res; QDateTime dt(QDate(1, 1, 1), QTime(0, maxMinSec, maxMinSec)); int maxWidth = 0; while (dt.date().day() == 1) { int w = metrics.boundingRect(dt.toString(format)).width(); //qDebug() << "*" << dt.toString(format) << w; if (w > maxWidth) { res = dt.time(); maxWidth = w; } dt = dt.addSecs(3600); } //qDebug() << "Max time:" << res.toString(); return res; } /************************************************ Issue #18: Panel clock plugin changes your size ************************************************/ void RazorClock::updateMinWidth() { QFontMetrics metrics(gui->font()); QDate maxDate = getMaxDate(metrics, dateFormat); QTime maxTime = getMaxTime(metrics, timeFormat); QDateTime dt(maxDate, maxTime); //qDebug() << "T:" << metrics.boundingRect(dt.toString(timeFormat)).width(); //qDebug() << "C:" << metrics.boundingRect(QTime::currentTime().toString(timeFormat)).width() << QTime::currentTime().toString(timeFormat); //qDebug() << "D:" << metrics.boundingRect(dt.toString(dateFormat)).width(); int width; if (dateOnNewLine) width = qMax(metrics.boundingRect(dt.toString(timeFormat)).width(), metrics.boundingRect(dt.toString(dateFormat)).width() ); else width = metrics.boundingRect(dt.toString(clockFormat)).width(); //qDebug() << "RazorClock Recalc width " << width << dt.toString(clockFormat); gui->setMinimumWidth(width); } void RazorClock::mouseReleaseEvent(QMouseEvent* event) { /* if (!calendarDialog) { calendarDialog = new QDialog(this); //calendarDialog->setAttribute(Qt::WA_DeleteOnClose, true); calendarDialog->setWindowFlags(Qt::FramelessWindowHint | Qt::Dialog); calendarDialog->setLayout(new QHBoxLayout(calendarDialog)); calendarDialog->layout()->setMargin(1); QCalendarWidget* cal = new QCalendarWidget(calendarDialog); calendarDialog->layout()->addWidget(cal); QPoint p; switch (panel()->position()) { case RazorPanel::PositionTop: p.setX(panel()->mapToGlobal(this->geometry().topLeft()).x()); p.setY(panel()->geometry().bottom()); break; default: break; } calendarDialog->move(p); calendarDialog->show(); } else { delete calendarDialog; calendarDialog = 0; } */ } void RazorClock::showConfigureDialog() { RazorClockConfiguration *confWindow = this->findChild<RazorClockConfiguration*>("ClockConfigurationWindow"); if (!confWindow) { confWindow = new RazorClockConfiguration(settings(), this); } confWindow->show(); confWindow->raise(); confWindow->activateWindow(); } bool ClockLabel::event(QEvent *event) { if (event->type() == QEvent::FontChange) { emit fontChanged(); } return QLabel::event(event); } #endif
[ "easion@79e7c3d0-c8f2-11de-a9c8-2fbcfba63733" ]
easion@79e7c3d0-c8f2-11de-a9c8-2fbcfba63733
2c59b5b7226f249d2cba2d1fc529cafe0836eb65
9b153b86f575a2c9c00a0c861c700aa4dfbbeab3
/src/267.palindrome_permutation_ii/code.cpp
062e038c96688de658fe7b21859f4e1ff452429f
[ "MIT" ]
permissive
cloudzfy/leetcode
f847bd96ecfd90caebe7c8eb9840126ae6956e9d
9d32090429ef297e1f62877382bff582d247266a
refs/heads/master
2020-04-06T03:33:53.283222
2016-09-27T05:20:50
2016-09-27T05:20:50
19,370,689
1
1
null
null
null
null
UTF-8
C++
false
false
1,511
cpp
class Solution { public: vector<string> generatePalindromes(string s) { vector<int> count(128, 0); vector<string> ans; for (int i = 0; i < s.length(); i++) { count[s[i]]++; } int odd = 0; string single; for (int i = 0; i < 128; i++) { if (count[i] % 2) { odd++; single = i; } } if ((odd == 1 && s.length() % 2 == 0) || (odd > 1)) return ans; string myans; for (int i = 0; i < 128; i++) { while (count[i] - 2 >= 0) { count[i] -= 2; myans += i; } } if (myans.length() > 0) { do { if (odd) ans.push_back(myans + single + reverse(myans)); else ans.push_back(myans + reverse(myans)); }while(nextPermutation(myans)); } else ans.push_back(single); return ans; } bool nextPermutation(string& s) { int i = s.length() - 1; while (i > 0 && s[i - 1] >= s[i]) i--; if (i == 0) return false; int j = i; while (j + 1 < s.length() && s[i - 1] < s[j + 1]) j++; swap(s[i - 1], s[j]); j = s.length() - 1; while (i < j) swap(s[i++], s[j--]); return true; } string reverse(string s) { int left = 0, right = s.length() - 1; while (left < right) { swap(s[left++], s[right--]); } return s; } };
[ "cloudzfy@users.noreply.github.com" ]
cloudzfy@users.noreply.github.com
876fe31f9ff37a159ea5836e30137286c4f7e57e
1dbf007249acad6038d2aaa1751cbde7e7842c53
/mpc/include/huaweicloud/mpc/v1/model/ListAllBucketsResponse.h
e28e4c04a007634b1fba581d54614765477d4ee9
[]
permissive
huaweicloud/huaweicloud-sdk-cpp-v3
24fc8d93c922598376bdb7d009e12378dff5dd20
71674f4afbb0cd5950f880ec516cfabcde71afe4
refs/heads/master
2023-08-04T19:37:47.187698
2023-08-03T08:25:43
2023-08-03T08:25:43
324,328,641
11
10
Apache-2.0
2021-06-24T07:25:26
2020-12-25T09:11:43
C++
UTF-8
C++
false
false
1,460
h
#ifndef HUAWEICLOUD_SDK_MPC_V1_MODEL_ListAllBucketsResponse_H_ #define HUAWEICLOUD_SDK_MPC_V1_MODEL_ListAllBucketsResponse_H_ #include <huaweicloud/mpc/v1/MpcExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <huaweicloud/mpc/v1/model/ObsBucket.h> #include <vector> namespace HuaweiCloud { namespace Sdk { namespace Mpc { namespace V1 { namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// <summary> /// Response Object /// </summary> class HUAWEICLOUD_MPC_V1_EXPORT ListAllBucketsResponse : public ModelBase, public HttpResponse { public: ListAllBucketsResponse(); virtual ~ListAllBucketsResponse(); ///////////////////////////////////////////// /// ModelBase overrides void validate() override; web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// /// ListAllBucketsResponse members /// <summary> /// 桶列表 /// </summary> std::vector<ObsBucket>& getBuckets(); bool bucketsIsSet() const; void unsetbuckets(); void setBuckets(const std::vector<ObsBucket>& value); protected: std::vector<ObsBucket> buckets_; bool bucketsIsSet_; #ifdef RTTR_FLAG RTTR_ENABLE() #endif }; } } } } } #endif // HUAWEICLOUD_SDK_MPC_V1_MODEL_ListAllBucketsResponse_H_
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
ceaf0d468ed594e5361170819faefdb690e7fb41
98ac03c85c210da08552252da7527859988c0062
/Source/REM_Proto/InventoryItemObject.cpp
c88f216a5629b26a551c7ce7199ceb07bb4f975e
[]
no_license
larsmagnusny/REM_PROTO
d030ba16949f888dd598afaeb0990ef7280ce675
280e26d8e071a15d5bfad9821e068a4977ee2d3c
refs/heads/master
2021-01-12T10:32:28.619491
2017-02-15T13:08:35
2017-02-15T13:08:35
81,302,820
0
0
null
null
null
null
UTF-8
C++
false
false
2,089
cpp
// Fill out your copyright notice in the Description page of Project Settings. #define print(text) if (GEngine) GEngine->AddOnScreenDebugMessage(-1, 1.5, FColor::White,text) #include "REM_Proto.h" #include "InventoryItemObject.h" #include "MainCharacter.h" AInventoryItemObject::AInventoryItemObject() { } // Called when the game starts void AInventoryItemObject::BeginPlay() { if(!DeferredSpawn) InitObject(); } // Called every frame void AInventoryItemObject::Tick(float DeltaTime) { } // Called when the player clicks on the object... void AInventoryItemObject::ActivateObject(AActor* Player) { UE_LOG(LogTemp, Warning, TEXT("Player has clicked on an inventory item object")); // Add this item to the inventory... Cast<AMainCharacter>(Player)->AddItemToInventory(ToInventoryItem()); // Remove this item from the world when added to the inventory... RemoveFromWorld(); FString InvMessage = ObjectName + "Added to inventory!"; print(InvMessage); } void AInventoryItemObject::InitObject() { // Set the mesh and material/s UStaticMeshComponent* MeshComponent = Cast<UStaticMeshComponent>(GetComponentByClass(UStaticMeshComponent::StaticClass())); // Make the object simulate physics... MeshComponent->SetMobility(EComponentMobility::Movable); MeshComponent->SetSimulatePhysics(true); MeshComponent->bGenerateOverlapEvents = true; // Set Mesh MeshComponent->SetStaticMesh(MeshToUse); MeshComponent->SetMassOverrideInKg(NAME_None, 100.0f, true); // Set Materials for (int32 i = 0; i < MaterialsToUse.Num(); i++) MeshComponent->SetMaterial(i, MaterialsToUse[i]); // Make the object Interactable GameMode = Cast<AREM_GameModeBase>(GetWorld()->GetAuthGameMode()); GameMode->AddInteractableObject(Cast<AActor>(this), Cast<AInteractableStaticMeshObject>(this)); } void AInventoryItemObject::RemoveFromWorld() { if (GameMode) { GameMode->RemoveInteractableObject(Cast<AActor>(this)); Destroy(); } } InventoryItem* AInventoryItemObject::ToInventoryItem() { InventoryItem* Ret = new InventoryItem(MeshToUse, ObjectName, Icon); return Ret; }
[ "lars.magnus.nyland@gmail.com" ]
lars.magnus.nyland@gmail.com
1af355b2211351df678a5f626eb6b090cf105094
b00c54389a95d81a22e361fa9f8bdf5a2edc93e3
/external/srec/tools/thirdparty/OpenFst/fst/lib/compat.h
cd80e2a58b3054600dd9777272e29776f791752d
[ "Apache-2.0" ]
permissive
mirek190/x86-android-5.0
9d1756fa7ff2f423887aa22694bd737eb634ef23
eb1029956682072bb7404192a80214189f0dc73b
refs/heads/master
2020-05-27T01:09:51.830208
2015-10-07T22:47:36
2015-10-07T22:47:36
41,942,802
15
20
null
2020-03-09T00:21:03
2015-09-05T00:11:19
null
UTF-8
C++
false
false
8,114
h
// compat.h // // 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. // // // \file // Google compatibility declarations and inline definitions. #ifndef FST_COMPAT_H__ #define FST_COMPAT_H__ // for STL #include <cassert> #include <cstdio> #include <iostream> #include <map> #include <string> #include <vector> #include <fcntl.h> #include <pthread.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> // exact size types typedef short int16; typedef int int32; typedef long long int64; typedef unsigned short uint16; typedef unsigned int uint32; typedef unsigned long long uint64; using namespace std; // make copy constructor and operator= private #define DISALLOW_EVIL_CONSTRUCTORS(type) \ type(const type&); \ void operator=(const type&) // thread control class Mutex { public: Mutex(); private: DISALLOW_EVIL_CONSTRUCTORS(Mutex); }; class MutexLock { public: MutexLock(Mutex *); private: DISALLOW_EVIL_CONSTRUCTORS(MutexLock); }; // flags #define DECLARE_bool(name) extern bool FLAGS_ ## name #define DECLARE_string(name) extern string FLAGS_ ## name #define DECLARE_int32(name) extern int32 FLAGS_ ## name #define DECLARE_int64(name) extern int64 FLAGS_ ## name #define DECLARE_double(name) extern double FLAGS_ ## name template <typename T> struct FlagDescription { FlagDescription(T *addr, const char *doc, const char *type, const T val) : address(addr), doc_string(doc), type_name(type), default_value(val) {} T *address; const char *doc_string; const char *type_name; const T default_value; }; template <typename T> class FlagRegister { public: static FlagRegister<T> *GetRegister() { pthread_once(&register_init_, &FlagRegister<T>::Init); return register_; } const FlagDescription<T> &GetFlagDescription(const string &name) const { MutexLock l(register_lock_); typename map< string, FlagDescription<T> >::const_iterator it = flag_table_.find(name); return it != flag_table_.end() ? it->second : 0; } void SetDescription(const string &name, const FlagDescription<T> &desc) { MutexLock l(register_lock_); flag_table_.insert(make_pair(name, desc)); } bool SetFlag(const string &val, bool *address) const { if (val == "true" || val == "1" || val.empty()) { *address = true; return true; } else if (val == "false" || val == "0") { *address = false; return true; } else { return false; } } bool SetFlag(const string &val, string *address) const { *address = val; return true; } bool SetFlag(const string &val, int32 *address) const { char *p = 0; *address = strtol(val.c_str(), &p, 0); return !val.empty() && *p == '\0'; } bool SetFlag(const string &val, int64 *address) const { char *p = 0; *address = strtoll(val.c_str(), &p, 0); return !val.empty() && *p == '\0'; } bool SetFlag(const string &val, double *address) const { char *p = 0; *address = strtod(val.c_str(), &p); return !val.empty() && *p == '\0'; } bool InitFlag(const string &arg, const string &val) const { for (typename map< string, FlagDescription<T> >::const_iterator it = flag_table_.begin(); it != flag_table_.end(); ++it) { const string &name = it->first; const FlagDescription<T> &desc = it->second; if (arg == name) return SetFlag(val, desc.address); } return false; } void ShowDefault(bool default_value) const { std::cout << ", default = "; std::cout << (default_value ? "true" : "false"); } void ShowDefault(const string &default_value) const { std::cout << ", default = "; std::cout << "\"" << default_value << "\""; } template<typename V> void ShowDefault(const V& default_value) const { std::cout << ", default = "; std::cout << default_value; } void ShowUsage() const { for (typename map< string, FlagDescription<T> >::const_iterator it = flag_table_.begin(); it != flag_table_.end(); ++it) { const string &name = it->first; const FlagDescription<T> &desc = it->second; std::cout << " --" << name << ": type = " << desc.type_name; ShowDefault(desc.default_value); std::cout << "\n " << desc.doc_string << "\n"; } } private: static void Init() { register_lock_ = new Mutex; register_ = new FlagRegister<T>; } static pthread_once_t register_init_; // ensures only called once static Mutex* register_lock_; // multithreading lock static FlagRegister<T> *register_; map< string, FlagDescription<T> > flag_table_; }; template <class T> pthread_once_t FlagRegister<T>::register_init_ = PTHREAD_ONCE_INIT; template <class T> Mutex *FlagRegister<T>::register_lock_ = 0; template <class T> FlagRegister<T> *FlagRegister<T>::register_ = 0; template <typename T> class FlagRegisterer { public: FlagRegisterer(const string &name, const FlagDescription<T> &desc) { FlagRegister<T> *registr = FlagRegister<T>::GetRegister(); registr->SetDescription(name, desc); } private: DISALLOW_EVIL_CONSTRUCTORS(FlagRegisterer); }; #define DEFINE_VAR(type, name, value, doc) \ type FLAGS_ ## name = value; \ static FlagRegisterer<type> \ name ## _flags_registerer(#name, FlagDescription<type>(&FLAGS_ ## name, \ doc, \ #type, \ value)) #define DEFINE_bool(name, value, doc) DEFINE_VAR(bool, name, value, doc) #define DEFINE_string(name, value, doc) DEFINE_VAR(string, name, value, doc) #define DEFINE_int32(name, value, doc) DEFINE_VAR(int32, name, value, doc) #define DEFINE_int64(name, value, doc) DEFINE_VAR(int64, name, value, doc) #define DEFINE_double(name, value, doc) DEFINE_VAR(double, name, value, doc) void InitFst(const char *usage, int *argc, char ***argv, bool remove_flags); void ShowUsage(); // checking #define CHECK(x) assert(x) #define CHECK_EQ(x, y) assert((x) == (y)) // logging DECLARE_int32(v); // tmp directory DECLARE_string(tmpdir); class LogMessage { public: LogMessage(const string &type) : fatal_(type == "FATAL") { std::cerr << type << ": "; } ~LogMessage() { std::cerr << endl; if(fatal_) exit(1); } ostream &stream() { return std::cerr; } private: bool fatal_; }; #define LOG(type) LogMessage(#type).stream() #define VLOG(level) if ((level) <= FLAGS_v) LOG(INFO) // string utilities void SplitToVector(char *line, const char *delim, vector<char *> *vec, bool omit_empty_strings); // Downcasting template<typename To, typename From> inline To down_cast(From* f) { return static_cast<To>(f); } // Bitcasting template <class Dest, class Source> inline Dest bit_cast(const Source& source) { // Compile time assertion: sizeof(Dest) == sizeof(Source) // A compile error here means your Dest and Source have different sizes. typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 : -1]; Dest dest; memcpy(&dest, &source, sizeof(dest)); return dest; } // MD5 checksums class MD5 { public: MD5(); void Reset(); void Update(void const *data, int size); string Digest(); private: DISALLOW_EVIL_CONSTRUCTORS(MD5); }; #endif // FST_COMPAT_H__
[ "mirek190@gmail.com" ]
mirek190@gmail.com
d2647385aa079cdcf4adad7bec5244f93f355ad7
28921575b33d2c8530cce2f0e59150768f675bd8
/FengyanAndroid/FengyanAndroid/MonitorThread.cpp
58d6e797f9b45b1722493a04aa5f393c36d25cd4
[]
no_license
dovanduy/Project1
bf2978edb8a5deea2840f31f36fec325dcad3a22
bd353a750e260bec9445d1b14f6fb8ec2855a24f
refs/heads/master
2021-03-24T07:33:50.574094
2018-06-12T11:57:52
2018-06-12T11:57:52
null
0
0
null
null
null
null
GB18030
C++
false
false
1,549
cpp
#include "MonitorThread.h" MonitorThread::MonitorThread() { } MonitorThread::~MonitorThread() { } void MonitorThread::run() { MainSingleton* theMain = MainSingleton::getInstance(); while (true) { if (theMain->accountIndex <= theMain->totalAccountNum) { for (int i = 1; i <= theMain->windowCount; i++) { this->autoRestartWnd(i); } } if (theMain->autoRestartBox->isChecked()) { if (theMain->accountIndex >= theMain->totalAccountNum) { theMain->accountIndex = 1; } } Sleep(10000); } if (theMain->genAccountNum == 0) { MessageBox(NULL, L"已经都结束了!", L"提示:", MB_OK); } } int MonitorThread::autoRestartWnd(int index) { MainSingleton* theMain = MainSingleton::getInstance(); QTableWidgetItem* item = theMain->table->item(index - 1, 0); if (item == NULL) { return 0; } QString text = item->text(); if ("000019" == text) { string folder = theMain->folder; QString command = QString::fromStdString(folder) + "//dnconsole.exe quit --index " + QString::number(index); qDebug() << "command = " << command; WinExec(command.toStdString().c_str(), SW_NORMAL); Sleep(10000); command = QString::fromStdString(folder) + "//dnconsole.exe launch --index " + QString::number(index); qDebug() << "command = " << command; WinExec(command.toStdString().c_str(), SW_NORMAL); Sleep(10000); StartThread* thread = new StartThread(theMain->path, theMain->folder, index - 1, theMain->config); thread->setOperationParameter(REOPEN_WINDOW); thread->start(); } return 0; }
[ "Administrator@DESKTOP-576RBIE" ]
Administrator@DESKTOP-576RBIE
fba4e887c70094956ff021c4b9e8308a3812a9c1
244bd1c5574bfb16d4eabcef085050d2071a1f16
/src/tagger/tag_model.cc
b8b20518f5eb286022da5c9e6e7e0e13f43f7bec
[]
no_license
jimregan/arboratrix
cb2eeb05e9e1ec45aed4d52bc84ce016686ad95c
de25b0b17490b3758178b484cf0e9f775c969f03
refs/heads/master
2021-01-16T21:23:51.617737
2012-05-24T18:14:03
2012-05-24T18:14:03
572,692
1
0
null
null
null
null
WINDOWS-1252
C++
false
false
5,018
cc
// -*- C++ -*- /* * 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 Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * Creado: Thu May 8 19:07:28 CEST 2003 * Modificado: Thu May 8 19:07:28 CEST 2003 * Autor: Antonio-M. Corbi Bellot * Email: acorbi@peurl.dlsi.ua.es */ #include "tag_model.h" #include "tag_item.h" /* * Constructor por defecto. */ Tag_model::Tag_model(const std::string& nt, Text_model* pparent): Text_model(nt, pparent) { tag = nt; as_triangle = false; } /* * Destructor. */ Tag_model::~Tag_model() { } void Tag_model::to_xml(xmlNodePtr xml_parent) { //xmlNodePtr root; //const xmlChar* t = reinterpret_cast<const xmlChar*>(tag.c_str()); std::list<Text_item*>* cl = get_children_text_items(); xmlNodePtr newxml; xmlChar* s; xmlChar* idx; xmlChar* node_name; gchar* utf8_str; gsize br, bw; //std::cerr << "TO_XML: TAG(" << tag << ") TXT(" << text << ")\n"; //root = xmlDocGetRootElement(xml_parent->doc); //std::cerr << "titem_root= " << root << " xml_parent " // << xml_parent << std::endl; //utf8_str = g_locale_to_utf8(text.c_str(), -1, &br, &bw, NULL); utf8_str = const_cast<gchar*>(text.c_str()); s = reinterpret_cast<xmlChar*>(utf8_str); //utf8_str = g_locale_to_utf8(index.c_str(), -1, &br, &bw, NULL); utf8_str = const_cast<gchar*>(index.c_str()); idx = reinterpret_cast<xmlChar*>(utf8_str); if (as_triangle) { utf8_str = g_locale_to_utf8("impl", 4, &br, &bw, NULL); node_name = reinterpret_cast<xmlChar*>(utf8_str); } else { utf8_str = g_locale_to_utf8("phrase", 6, &br, &bw, NULL); node_name = reinterpret_cast<xmlChar*>(utf8_str); } if (is_leaf()) { newxml = xmlNewTextChild(xml_parent, NULL, node_name, NULL); //reinterpret_cast<const xmlChar *>("phrase"), NULL); // PROPIEDADES del nodo // 1º, la clase utf8_str = g_locale_to_utf8("class", 5, &br, &bw, NULL); xmlSetProp(newxml, reinterpret_cast<const xmlChar*>(utf8_str), reinterpret_cast<const xmlChar*>(s)); // 2º, el indice if (not is_root()) { utf8_str = g_locale_to_utf8("index", 5, &br, &bw, NULL); xmlSetProp(newxml, reinterpret_cast<const xmlChar*>(utf8_str), reinterpret_cast<const xmlChar*>(idx)); } } else { newxml = xmlNewTextChild(xml_parent, NULL, node_name, NULL); //reinterpret_cast<const xmlChar *>("phrase"), NULL); // PROPIEDADES del nodo // 1º, la clase utf8_str = g_locale_to_utf8("class", 5, &br, &bw, NULL); xmlSetProp(newxml, reinterpret_cast<const xmlChar*>(utf8_str), reinterpret_cast<const xmlChar*>(s)); // 2º, el indice if (not is_root()) { utf8_str = g_locale_to_utf8("index", 5, &br, &bw, NULL); xmlSetProp(newxml, reinterpret_cast<const xmlChar*>(utf8_str), reinterpret_cast<const xmlChar*>(idx)); } //newxml = xmlNewTextChild(xml_parent, NULL, t, s); //to_xml a cada uno de sus hijos... //std::cout << "TAG_MODEL::to_xml a cada uno de sus hijos...\n"; if (cl) { //Antes de guardarla ordeno sus nodos por coordenada 'x'... cl->sort(Canvas_item::citem_less); //La frase crea un nodo xml para cada canvas_item suyo for (std::list<Text_item*>::iterator i = cl->begin(); i != cl->end(); i++) { //std::cerr << "to_xml: " << *i << std::endl; (*i)->get_model()->to_xml(newxml); } delete cl; } } } void Tag_model::to_qtree(std::ostream& os) { std::list<Text_item*>* til = get_children_text_items(); Text_model* m; if (til) { if (not as_triangle) { os << "[.{\\bf " << text; if (has_index()) os << "_{" << index << "}"; os << "} "; } else os << "\\qroof { "; til->sort(Canvas_item::citem_less); // Cada hijo como nodo qtree... for(std::list<Text_item*>::iterator i = til->begin (); i != til->end (); i++) { m = (*i)->get_model(); m->to_qtree(os); os << ""; } if (not as_triangle) { os << " ] "; } else { os << "}.{\\bf " << text; if (has_index()) os << "_{" << index << "}"; os << " } "; } delete til; } else //sanity-check qtree os << "[{\\bf " << text << "} ] "; }
[ "mlforcada" ]
mlforcada
6452c943e03da11f383f4b79ff348016b6b6e119
d0c8f41fb84d9ab3292f918e4bfac9a613149c2c
/iteration2/src/include/convolution_filter.h
c61b3c622d7e5925082a2617336e0897be06b8be
[]
no_license
BlakeSartor/PhotoShop
6502694197242c29b81d8e492b733d503ab175eb
fd0ce531e7b4aa5b4d19881c07a667d891379118
refs/heads/master
2021-05-05T10:04:14.611274
2017-09-19T02:37:21
2017-09-19T02:37:21
104,015,818
0
0
null
null
null
null
UTF-8
C++
false
false
1,905
h
/******************************************************************************* * Name : convolution_filter.h * Project : Flashphoto * Module : App * Description : Implementation of BrushWork * Copyright : 2016 CSCI3081W. All rights reserved. * Creation Date : 11/5/16 * Original Author : Modified by Raghav Mutneja, Blake Sartor, Zechariah Nelson * ******************************************************************************/ #ifndef PROJECT_ITERATION2_SRC_INCLUDE_CONVOLUTION_FILTER_H_ #define PROJECT_ITERATION2_SRC_INCLUDE_CONVOLUTION_FILTER_H_ /**************************************************************************** includes ****************************************************************************/ #include "include/mask.h" #include "include/pixel_buffer.h" #include "include/color_data.h" #include "include/filter.h" #include "include/ui_ctrl.h" /**************************************************************************** class definitions ****************************************************************************/ class ConvolutionFilter : public Filter{ public: ConvolutionFilter(); virtual ~ConvolutionFilter(); void virtual SetMask() {} // SetMask will be defined for each child void virtual SetMask(int size) {} void virtual SetMask(int size, enum image_tools::UICtrl::MotionBlurDirection direction) {} image_tools::ColorData virtual ApplyMask(int mouse_x, int mouse_y, image_tools::PixelBuffer *canvas); void virtual ApplyFilter(image_tools::PixelBuffer *canvas); void virtual ApplyFilter(image_tools::PixelBuffer *canvas, int size); void virtual ApplyFilter(image_tools::PixelBuffer *canvas, int size, enum image_tools::UICtrl::MotionBlurDirection direction); protected: Mask* kernal_; }; #endif // PROJECT_ITERATION2_SRC_INCLUDE_CONVOLUTION_FILTER_H_
[ "sarto019@umn.edu" ]
sarto019@umn.edu
4e192881e1922d9440910956dc3ba64cd50519e7
adf4e5bb27ab2bf5646b6b493698e03c16b38018
/Pacman/ConsoleTypes.cpp
eeb5a69097fa78384166ce4835e96c83642ef971
[]
no_license
Milosz503/Pacman
6102ee6860a55bdbc0592d138ef2eff4cee69357
6798079677f2c28d24f26e7fca7d7f6ff78dd929
refs/heads/master
2023-09-04T17:10:20.197381
2018-06-04T13:58:49
2018-06-04T13:58:49
429,800,431
0
0
null
null
null
null
UTF-8
C++
false
false
1,659
cpp
#include "ConsoleTypes.h" ConsoleObject::ConsoleObject() : position_(0, 0) { } void ConsoleObject::setPosition(const sf::Vector2i& position) { position_ = position; } void ConsoleObject::setPosition(int x, int y) { position_.x = x; position_.y = y; } void ConsoleObject::move(int x, int y) { position_.x += x; position_.y += y; } void ConsoleObject::move(const sf::Vector2i& offset) { position_ += offset; } sf::Vector2i ConsoleObject::getPosition() { return position_; } int ConsoleObject::getX() const { return position_.x; } int ConsoleObject::getY() const { return position_.y; } void ConsoleObject::draw(ConsoleWindow & console) { } // ---------------------------- ConsoleText::ConsoleText(std::wstring text, CharacterColor::Color color) : text_(text), color_(color), background_(sf::Color::Transparent) { } void ConsoleText::setText(std::wstring text) { text_ = text; } std::wstring ConsoleText::getText() { return text_; } void ConsoleText::setColor(CharacterColor::Color color) { color_ = color; } CharacterColor::Color ConsoleText::getColor() { return color_; } void ConsoleText::setBackground(const sf::Color& color) { background_ = color; } sf::Color& ConsoleText::getBackground() { return background_; } int ConsoleText::getWidth() { return text_.length(); } // ------------------------------ ConsoleCharacter::ConsoleCharacter() { } ConsoleCharacter::ConsoleCharacter(const TextureCharacter& texture) : character_(texture) { } void ConsoleCharacter::setTexture(const TextureCharacter& texture) { character_ = texture; } TextureCharacter ConsoleCharacter::getTexture() { return character_; }
[ "milosz.0518@gmail.com" ]
milosz.0518@gmail.com