blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
ddb858a32a4a42a05964eb4afda8c5a727edf679
a4a7c549d1fb804c0df28ba6d55bdb4ae7c7f073
/MergeIntervals.cc
b451207fd3114ad66dcec2f66cd3269c5b2a4316
[]
no_license
yangchi/LCPractice
df617e3c563977b6553fddee4c823d2402992abe
629339e3bf8263b0d95e3ebddf62204e6805c773
refs/heads/master
2020-05-09T22:18:41.597979
2015-03-09T23:34:10
2015-03-09T23:34:10
26,670,123
0
0
null
null
null
null
UTF-8
C++
false
false
850
cc
MergeIntervals.cc
/** * Definition for an interval. * struct Interval { * int start; * int end; * Interval() : start(0), end(0) {} * Interval(int s, int e) : start(s), end(e) {} * }; */ bool CompareInterval (const Interval & interval1, const Interval & interval2) { return interval1.start < interval2.start; } class Solution { public: vector<Interval> merge(vector<Interval> &intervals) { sort(intervals.begin(), intervals.end(), CompareInterval); vector<Interval> results; int i = 0; while(i < intervals.size()) { Interval temp(intervals[i].start, intervals[i].end); while((i+1) < intervals.size() && (intervals[i+1].start < temp.end || intervals[i+1].start == temp.end)) { temp.end = max(intervals[i+1].end, temp.end); i++; } results.push_back(temp); i++; } return results; } };
e2a377cd9e5b8ff8a14a289ff2b484346c15b567
fb5b25b4fbe66c532672c14dacc520b96ff90a04
/export/release/macos/obj/src/WiggleShader.cpp
48ce9c300ff53599483745b9b45ac2c179534bb5
[ "Apache-2.0" ]
permissive
Tyrcnex/tai-mod
c3849f817fe871004ed171245d63c5e447c4a9c3
b83152693bb3139ee2ae73002623934f07d35baf
refs/heads/main
2023-08-15T07:15:43.884068
2021-09-29T23:39:23
2021-09-29T23:39:23
383,313,424
1
0
null
null
null
null
UTF-8
C++
false
true
12,105
cpp
WiggleShader.cpp
// Generated by Haxe 4.1.5 #include <hxcpp.h> #ifndef INCLUDED_WiggleShader #include <WiggleShader.h> #endif #ifndef INCLUDED_flixel_graphics_tile_FlxGraphicsShader #include <flixel/graphics/tile/FlxGraphicsShader.h> #endif #ifndef INCLUDED_openfl_display_GraphicsShader #include <openfl/display/GraphicsShader.h> #endif #ifndef INCLUDED_openfl_display_Shader #include <openfl/display/Shader.h> #endif #ifndef INCLUDED_openfl_display_ShaderParameter_Float #include <openfl/display/ShaderParameter_Float.h> #endif #ifndef INCLUDED_openfl_display_ShaderParameter_Int #include <openfl/display/ShaderParameter_Int.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_d51c29e5d4ca40d9_130_new,"WiggleShader","new",0xde707442,"WiggleShader.new","WiggleEffect.hx",130,0x20879982) void WiggleShader_obj::__construct(){ HX_STACKFRAME(&_hx_pos_d51c29e5d4ca40d9_130_new) HXLINE( 182) if (::hx::IsNull( this->_hx___glFragmentSource )) { HXLINE( 184) this->_hx___glFragmentSource = HX_("\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform sampler2D bitmap;\n\n\t\tuniform bool hasTransform;\n\t\tuniform bool hasColorTransform;\n\n\t\tvec4 flixel_texture2D(sampler2D bitmap, vec2 coord)\n\t\t{\n\t\t\tvec4 color = texture2D(bitmap, coord);\n\t\t\tif (!hasTransform)\n\t\t\t{\n\t\t\t\treturn color;\n\t\t\t}\n\n\t\t\tif (color.a == 0.0)\n\t\t\t{\n\t\t\t\treturn vec4(0.0, 0.0, 0.0, 0.0);\n\t\t\t}\n\n\t\t\tif (!hasColorTransform)\n\t\t\t{\n\t\t\t\treturn color * openfl_Alphav;\n\t\t\t}\n\n\t\t\tcolor = vec4(color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4(0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp(openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.a > 0.0)\n\t\t\t{\n\t\t\t\treturn vec4(color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\t\t\t}\n\t\t\treturn vec4(0.0, 0.0, 0.0, 0.0);\n\t\t}\n\t\n\n\t\t//uniform float tx, ty; // x,y waves phase\n\t\tuniform float uTime;\n\t\t\n\t\tconst int EFFECT_TYPE_DREAMY = 0;\n\t\tconst int EFFECT_TYPE_WAVY = 1;\n\t\tconst int EFFECT_TYPE_HEAT_WAVE_HORIZONTAL = 2;\n\t\tconst int EFFECT_TYPE_HEAT_WAVE_VERTICAL = 3;\n\t\tconst int EFFECT_TYPE_FLAG = 4;\n\t\t\n\t\tuniform int effectType;\n\t\t\n\t\t/**\n\t\t * How fast the waves move over time\n\t\t */\n\t\tuniform float uSpeed;\n\t\t\n\t\t/**\n\t\t * Number of waves over time\n\t\t */\n\t\tuniform float uFrequency;\n\t\t\n\t\t/**\n\t\t * How much the pixels are going to stretch over the waves\n\t\t */\n\t\tuniform float uWaveAmplitude;\n\n\t\tvec2 sineWave(vec2 pt)\n\t\t{\n\t\t\tfloat x = 0.0;\n\t\t\tfloat y = 0.0;\n\t\t\t\n\t\t\tif (effectType == EFFECT_TYPE_DREAMY) \n\t\t\t{\n\t\t\t\tfloat offsetX = sin(pt.y * uFrequency + uTime * uSpeed) * uWaveAmplitude;\n pt.x += offsetX; // * (pt.y - 1.0); // <- Uncomment to stop bottom part of the screen from moving\n\t\t\t}\n\t\t\telse if (effectType == EFFECT_TYPE_WAVY) \n\t\t\t{\n\t\t\t\tfloat offsetY = sin(pt.x * uFrequency + uTime * uSpeed) * uWaveAmplitude;\n\t\t\t\tpt.y += offsetY; // * (pt.y - 1.0); // <- Uncomment to stop bottom part of the screen from moving\n\t\t\t}\n\t\t\telse if (effectType == EFFECT_TYPE_HEAT_WAVE_HORIZONTAL)\n\t\t\t{\n\t\t\t\tx = sin(pt.x * uFrequency + uTime * uSpeed) * uWaveAmplitude;\n\t\t\t}\n\t\t\telse if (effectType == EFFECT_TYPE_HEAT_WAVE_VERTICAL)\n\t\t\t{\n\t\t\t\ty = sin(pt.y * uFrequency + uTime * uSpeed) * uWaveAmplitude;\n\t\t\t}\n\t\t\telse if (effectType == EFFECT_TYPE_FLAG)\n\t\t\t{\n\t\t\t\ty = sin(pt.y * uFrequency + 10.0 * pt.x + uTime * uSpeed) * uWaveAmplitude;\n\t\t\t\tx = sin(pt.x * uFrequency + 5.0 * pt.y + uTime * uSpeed) * uWaveAmplitude;\n\t\t\t}\n\t\t\t\n\t\t\treturn vec2(pt.x + x, pt.y + y);\n\t\t}\n\n\t\tvoid main()\n\t\t{\n\t\t\tvec2 uv = sineWave(openfl_TextureCoordv);\n\t\t\tgl_FragColor = texture2D(bitmap, uv);\n\t\t}",6b,9b,77,39); } HXLINE( 174) if (::hx::IsNull( this->_hx___glVertexSource )) { HXLINE( 176) this->_hx___glVertexSource = HX_("\n\t\tattribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\t\n\t\tattribute float alpha;\n\t\tattribute vec4 colorMultiplier;\n\t\tattribute vec4 colorOffset;\n\t\tuniform bool hasColorTransform;\n\t\t\n\t\tvoid main(void)\n\t\t{\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t\t\n\t\t\topenfl_Alphav = openfl_Alpha * alpha;\n\t\t\t\n\t\t\tif (hasColorTransform)\n\t\t\t{\n\t\t\t\topenfl_ColorOffsetv = colorOffset / 255.0;\n\t\t\t\topenfl_ColorMultiplierv = colorMultiplier;\n\t\t\t}\n\t\t}",f3,1e,fa,79); } HXLINE( 131) super::__construct(); HXLINE( 62) this->_hx___isGenerated = true; HXDLIN( 62) this->_hx___initGL(); } Dynamic WiggleShader_obj::__CreateEmpty() { return new WiggleShader_obj; } void *WiggleShader_obj::_hx_vtable = 0; Dynamic WiggleShader_obj::__Create(::hx::DynamicArray inArgs) { ::hx::ObjectPtr< WiggleShader_obj > _hx_result = new WiggleShader_obj(); _hx_result->__construct(); return _hx_result; } bool WiggleShader_obj::_hx_isInstanceOf(int inClassId) { if (inClassId<=(int)0x1efca5b6) { if (inClassId<=(int)0x04f93fcd) { return inClassId==(int)0x00000001 || inClassId==(int)0x04f93fcd; } else { return inClassId==(int)0x1efca5b6; } } else { return inClassId==(int)0x34363e10 || inClassId==(int)0x78d8d737; } } ::hx::ObjectPtr< WiggleShader_obj > WiggleShader_obj::__new() { ::hx::ObjectPtr< WiggleShader_obj > __this = new WiggleShader_obj(); __this->__construct(); return __this; } ::hx::ObjectPtr< WiggleShader_obj > WiggleShader_obj::__alloc(::hx::Ctx *_hx_ctx) { WiggleShader_obj *__this = (WiggleShader_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(WiggleShader_obj), true, "WiggleShader")); *(void **)__this = WiggleShader_obj::_hx_vtable; __this->__construct(); return __this; } WiggleShader_obj::WiggleShader_obj() { } void WiggleShader_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(WiggleShader); HX_MARK_MEMBER_NAME(tx,"tx"); HX_MARK_MEMBER_NAME(uTime,"uTime"); HX_MARK_MEMBER_NAME(effectType,"effectType"); HX_MARK_MEMBER_NAME(uSpeed,"uSpeed"); HX_MARK_MEMBER_NAME(uFrequency,"uFrequency"); HX_MARK_MEMBER_NAME(uWaveAmplitude,"uWaveAmplitude"); ::flixel::graphics::tile::FlxGraphicsShader_obj::__Mark(HX_MARK_ARG); HX_MARK_END_CLASS(); } void WiggleShader_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(tx,"tx"); HX_VISIT_MEMBER_NAME(uTime,"uTime"); HX_VISIT_MEMBER_NAME(effectType,"effectType"); HX_VISIT_MEMBER_NAME(uSpeed,"uSpeed"); HX_VISIT_MEMBER_NAME(uFrequency,"uFrequency"); HX_VISIT_MEMBER_NAME(uWaveAmplitude,"uWaveAmplitude"); ::flixel::graphics::tile::FlxGraphicsShader_obj::__Visit(HX_VISIT_ARG); } ::hx::Val WiggleShader_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 2: if (HX_FIELD_EQ(inName,"tx") ) { return ::hx::Val( tx ); } break; case 5: if (HX_FIELD_EQ(inName,"uTime") ) { return ::hx::Val( uTime ); } break; case 6: if (HX_FIELD_EQ(inName,"uSpeed") ) { return ::hx::Val( uSpeed ); } break; case 10: if (HX_FIELD_EQ(inName,"effectType") ) { return ::hx::Val( effectType ); } if (HX_FIELD_EQ(inName,"uFrequency") ) { return ::hx::Val( uFrequency ); } break; case 14: if (HX_FIELD_EQ(inName,"uWaveAmplitude") ) { return ::hx::Val( uWaveAmplitude ); } } return super::__Field(inName,inCallProp); } ::hx::Val WiggleShader_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 2: if (HX_FIELD_EQ(inName,"tx") ) { tx=inValue.Cast< ::openfl::display::ShaderParameter_Float >(); return inValue; } break; case 5: if (HX_FIELD_EQ(inName,"uTime") ) { uTime=inValue.Cast< ::openfl::display::ShaderParameter_Float >(); return inValue; } break; case 6: if (HX_FIELD_EQ(inName,"uSpeed") ) { uSpeed=inValue.Cast< ::openfl::display::ShaderParameter_Float >(); return inValue; } break; case 10: if (HX_FIELD_EQ(inName,"effectType") ) { effectType=inValue.Cast< ::openfl::display::ShaderParameter_Int >(); return inValue; } if (HX_FIELD_EQ(inName,"uFrequency") ) { uFrequency=inValue.Cast< ::openfl::display::ShaderParameter_Float >(); return inValue; } break; case 14: if (HX_FIELD_EQ(inName,"uWaveAmplitude") ) { uWaveAmplitude=inValue.Cast< ::openfl::display::ShaderParameter_Float >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void WiggleShader_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_("tx",84,65,00,00)); outFields->push(HX_("uTime",22,d7,b7,95)); outFields->push(HX_("effectType",eb,95,54,b3)); outFields->push(HX_("uSpeed",d2,3e,58,dc)); outFields->push(HX_("uFrequency",67,2b,c6,3f)); outFields->push(HX_("uWaveAmplitude",95,fa,de,e6)); super::__GetFields(outFields); }; #ifdef HXCPP_SCRIPTABLE static ::hx::StorageInfo WiggleShader_obj_sMemberStorageInfo[] = { {::hx::fsObject /* ::openfl::display::ShaderParameter_Float */ ,(int)offsetof(WiggleShader_obj,tx),HX_("tx",84,65,00,00)}, {::hx::fsObject /* ::openfl::display::ShaderParameter_Float */ ,(int)offsetof(WiggleShader_obj,uTime),HX_("uTime",22,d7,b7,95)}, {::hx::fsObject /* ::openfl::display::ShaderParameter_Int */ ,(int)offsetof(WiggleShader_obj,effectType),HX_("effectType",eb,95,54,b3)}, {::hx::fsObject /* ::openfl::display::ShaderParameter_Float */ ,(int)offsetof(WiggleShader_obj,uSpeed),HX_("uSpeed",d2,3e,58,dc)}, {::hx::fsObject /* ::openfl::display::ShaderParameter_Float */ ,(int)offsetof(WiggleShader_obj,uFrequency),HX_("uFrequency",67,2b,c6,3f)}, {::hx::fsObject /* ::openfl::display::ShaderParameter_Float */ ,(int)offsetof(WiggleShader_obj,uWaveAmplitude),HX_("uWaveAmplitude",95,fa,de,e6)}, { ::hx::fsUnknown, 0, null()} }; static ::hx::StaticInfo *WiggleShader_obj_sStaticStorageInfo = 0; #endif static ::String WiggleShader_obj_sMemberFields[] = { HX_("tx",84,65,00,00), HX_("uTime",22,d7,b7,95), HX_("effectType",eb,95,54,b3), HX_("uSpeed",d2,3e,58,dc), HX_("uFrequency",67,2b,c6,3f), HX_("uWaveAmplitude",95,fa,de,e6), ::String(null()) }; ::hx::Class WiggleShader_obj::__mClass; void WiggleShader_obj::__register() { WiggleShader_obj _hx_dummy; WiggleShader_obj::_hx_vtable = *(void **)&_hx_dummy; ::hx::Static(__mClass) = new ::hx::Class_obj(); __mClass->mName = HX_("WiggleShader",50,eb,54,4b); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &::hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField; __mClass->mStatics = ::hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = ::hx::Class_obj::dupFunctions(WiggleShader_obj_sMemberFields); __mClass->mCanCast = ::hx::TCanCast< WiggleShader_obj >; #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = WiggleShader_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = WiggleShader_obj_sStaticStorageInfo; #endif ::hx::_hx_RegisterClass(__mClass->mName, __mClass); }
fd38ca91f0acbe225d73238b1832fd1ce13a81a1
c268e05283406646b79dd6863110c15a7d4740d5
/src/TrackList.cpp
c6d3d3a93532f0d707d45870a3528eb5275e72c5
[ "MIT" ]
permissive
rikkus/squelch
18484d57e6c12faec476153764b3c245dd1c9c97
4d3c67433f7adbf22991d86e0a65db82e47b4c91
refs/heads/master
2020-07-10T07:54:45.023565
2019-08-24T20:40:06
2019-08-24T20:40:06
204,210,444
0
0
null
null
null
null
UTF-8
C++
false
false
1,856
cpp
TrackList.cpp
/* Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org> 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 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 "Track.h" #include "TrackList.h" TrackList::TrackList() : QList<Track>() { // Empty. } TrackList::~TrackList() { // Empty. } Track * TrackList::find(Track * t) { return find(t->filename()); } Track * TrackList::find(const QString & filename) { for (TrackListIterator it(*this); it.current(); ++it) if (it.current()->filename() == filename) return it.current(); return 0; } bool TrackList::contains(Track * t) { return (0 != find(t)); } bool TrackList::contains(const QString & filename) { return (0 != find(filename)); } int TrackList::compareItems(QCollection::Item item1, QCollection::Item item2) { return static_cast<Track *>(item1)->key() .compare(static_cast<Track *>(item2)->key()); } // vim:ts=2:sw=2:tw=78:noet
55b871d5f6e13420e05a56af39b291c4f7d1a65d
5fb266bd8a62059e370f070af83857f8a53b3c48
/dynamic_programing/logestPelindromicSub.cpp
c2727df5d5eb836c4464ecd85a196b590f7408e8
[]
no_license
jhashivam1996/problem_solving
2d0b9e6128ad69e3260b35fae89374d8211fa02e
86291dd62022f43d57c58d02b17f0358ee7d91ea
refs/heads/master
2020-09-08T16:31:01.718610
2019-11-12T09:59:22
2019-11-12T09:59:22
221,184,255
1
0
null
null
null
null
UTF-8
C++
false
false
807
cpp
logestPelindromicSub.cpp
#include<iostream> #include<cstring> using namespace std; struct lps{ string ans=""; int length; }abc; lps LPS(string s, int i, int j ){ if(i==j){ abc.ans=s[i]; abc.length=1; return abc; } if(s[i]==s[j]){ if(i+1==j){ abc.ans.insert(s[i],0); abc.ans+= s[j]; abc.length=2; return abc; }else{ lps a=LPS(s,i+1,j-1); a.ans.insert(s[i],0); a.ans+=s[j]; abc.ans=a.ans; abc.length=2+a.length; return abc; } } else{ lps x=LPS(s,i+1,j); lps y=LPS(s,i,j-1); if(x.length>y.length){ abc.ans=x.ans; abc.length=x.length; }else{ abc.ans=y.ans; abc.length=y.length; } cout<<abc.ans<<endl; return abc; } } int main(){ string s="canach"; lps ans=LPS(s,0,s.size()-1); cout<<endl<<ans.ans<<endl<<ans.length; }
bace800b8cabd7233be72075549180f56062d62a
e70abd28dba76d3efe8f0c2f0b708f3c1346a402
/~11.02까지 푼문제/예전에 푼문제/5397.cpp
359c138efd31f83c4978d3a64cb4ba733edb4eed
[]
no_license
TaeBeomShin/1day-1ps
3dab86833c1643a5954bfe62cf3de6098e138558
a362105bd9139e82cbf7a9c896a06d37da10726b
refs/heads/master
2023-08-20T10:05:04.880960
2021-10-15T14:39:58
2021-10-15T14:39:58
284,451,077
4
0
null
null
null
null
UHC
C++
false
false
1,250
cpp
5397.cpp
#include<iostream> #include<cstring> #include<deque> using namespace std; int main(){ ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); int test; cin>>test; //각 기호의 의미 -: 백스페이스, < > : 커서위치 이동(움직일 수 있다면) for(int i=0;i<test;i++){ deque<char> passward; string a; cin>>a; // 1.string에 주어진 문자열을 저장한다. // 2.문자를 하나씩 받는다. // - <,>,-일때 빼고는 자료구조에 저장한다. // 3.커서의 위치를 저장해야한다. <,>,-에따라 커서의 위치를 변화시킨다. // 4.반복하여 수행한다. int cursor=0; for(int j=0;j<a.size();j++){ //deque가 비어있는 경우. if(a[j]=='<'){ if(passward.empty()||cursor==0) continue; cursor--; }else if(a[j]=='>'){ if(passward.size()==cursor) continue; cursor++; }//deque가 비어있지 않은경우. else if(a[j]=='-'){ if(cursor==0) continue; auto it = passward.begin() + cursor-1; passward.erase(it); if(cursor==0) continue; cursor--; }else{ auto it = passward.begin() + cursor; passward.insert(it,a[j]); cursor++; } } for(int i=0;i<passward.size();i++) cout<<passward[i]; cout<<"\n"; } return 0; }
504fbb63e979ea81ee43e533c69c4d424baf6a71
afee1930ded877ca25e5f1ed64036cdec93a0b40
/Sala.h
07f3a64e88926db368c2f79fadfc2706c16081e1
[]
no_license
davysouza94/ProjetoIntegrado
e0c0ec6e2dc03ac6d300162ef899e51c0ff387f1
5a5a02fcd67039667d2f8ee6e456d54d43171ac6
refs/heads/master
2020-04-14T22:47:43.087066
2014-06-29T02:11:23
2014-06-29T02:11:23
21,294,906
0
0
null
null
null
null
UTF-8
C++
false
false
2,554
h
Sala.h
#ifndef SALA_H #define SALA_H #include "Situacao.h" #include "Sessao.h" #include "Lista.h" #include <string> class Sala{ private: int numSala; int capacidade; int qtFileira; int qtSessoes; Situacao situacao; Lista < Sessao > sessoes; public: Sala(); Sala(int nsala, int numAssento, int qtFil); int getNumSala(); int getCapacidade(); void setNumSala(int nSala); void setCapacidade(int cap); void setSituacao(int sit); void inserirSessao(); void exibirSessoes(); friend ostream& operator<<(ostream& os, const Sala& elem); bool operator==(const int num); bool operator!=(const int num); bool operator>(const int num); bool operator>(const Sala elem); bool operator<(const int num); bool operator<(const Sala elem); }; Sala::Sala():sessoes(){ qtSessoes = 0; qtFileira = 10; numSala = 0; capacidade = qtFileira*10; situacao = disponivel; } Sala::Sala(int nsala, int numAssento, int qtFil):sessoes(){ qtSessoes = 0; numSala = nsala; qtFileira = qtFil; capacidade = numAssento*qtFileira; situacao = disponivel; } void Sala::inserirSessao(){ Sessao *s, sIn; string nome; int inicio, fim; std::cout << "Insira o nome do filme: " << std::endl; std::cin >> nome; std::cout << "Insira o inicio e o fim do filme: " << std::endl; std::cin >> inicio >> fim; try{ s = new Sessao(numSala, qtSessoes, inicio, fim, nome, 10, 10); sIn = *s; sessoes.insereFim(sIn); qtSessoes++; }catch(...){ std::cout << "Erro" << std::endl; } } void Sala::exibirSessoes(){ sessoes.exibe(); } int Sala::getNumSala(){ return numSala; } int Sala::getCapacidade(){ return capacidade; } void Sala::setNumSala(int nSala){ numSala = nSala; } void Sala::setCapacidade(int cap){ capacidade = cap; } void Sala::setSituacao(int sit){ situacao = (Situacao)sit; } ostream& operator<<(ostream& os, const Sala& elem){ os << "Sala: " << elem.numSala << " - Capacidade: " <<elem.capacidade<< " - Situacao: "<< elem.situacao; return os; } bool Sala::operator==(const int num){ if(num == numSala) return true; return false; } bool Sala::operator!=(const int num){ if(num != numSala) return true; return false; } bool Sala::operator>(const int num){ if(numSala > num) return true; return false; } bool Sala::operator>(const Sala elem){ if(numSala > elem.numSala) return true; return false; } bool Sala::operator<(const int num){ if(numSala < num) return true; return false; } bool Sala::operator<(const Sala elem){ if(numSala < elem.numSala) return true; return false; } #endif
dc7482fc1815977427fc321c2a4dc9091ad67f47
367d02e38ed4316b841c0ff340449d90aade6747
/EngineKB01/DirectXRenderer.h
b359c581af9090ccf5c28ea432e5af327d28a818
[]
no_license
botenbreuk/KB01-3D-Engine
2fabdf94573689dce1c1edb7bb52ba389d0e0049
f5119d7ad8e4b8cbed15eb9bb9933439b012c848
refs/heads/master
2020-06-02T15:51:59.822415
2015-01-23T13:06:48
2015-01-23T13:06:48
26,780,876
0
0
null
null
null
null
UTF-8
C++
false
false
3,204
h
DirectXRenderer.h
#ifndef __DIRECTXRENDERER_H__ #define __DIRECTXRENDERER_H__ #include <d3d9.h> #include <d3dx9.h> #include <list> #include <map> #include <vector> #include "Renderer.h" #include "Mesh.h" #include "LoggerPool.h" #include "CustomVertex.h" class DirectXRenderer : public Renderer { public: DirectXRenderer(); ~DirectXRenderer(); void Init3D(HWND hWnd);//Initialises DirectX. void InitGeometry(std::list<Mesh*> meshes);//Initialises the geometry for a Scene. void CreateSwapChain(HWND hWND); //Creates new swap chain for a window void InitSkybox(); void DrawSkybox(); void CreateSkyboxTexture(std::string filePath = "skyboxtexture.jpg"); void SetSkyboxTexture(); LPDIRECT3DDEVICE9 Get3DDevice();//Returns the 3DDevice. void LoadMesh(std::string filePath, std::string name);//Loads in a Mesh. void LoadMaterial(std::string filePath, D3DXMATERIAL* d3dxMaterials);//Loads in a Material. void LoadTextures(std::string filePath, D3DXMATERIAL* d3dxMaterials);//Loads in a Texture void SetupMatrices();//Setup matrices. void SetupWorldMatrix(); void SetupViewMatrix(float z = -5.0f); void SetupProjectionMatrix(); void SetModelMatrix(float x, float y, float z, float scale, float rotation = 0); void ClearScreen();//Clear the backbuffer and the zbuffer. void SetTargetSwapChain(HWND hWND); void BeginScene();//Begin rendering. void EndScene();//End rendering. void Present(HWND hWND);//Present the backbuffer contents to the display. LPD3DXMESH* GetMesh(std::string name);//Returns the Mesh belonging with the name. void SetVertexBuffer(CUSTOMVERTEX* vertices, int size); //Prepares a vertex buffer for rendering. void SetIndexBuffer(short* indices, int vertexSize, int size); //Prepares a index buffer for rendering. void SetMaterial(std::string filePath, DWORD i);//Prepares a Material for rendering. void SetTexture(std::string filePath, DWORD i);//Prepares a Texture for rendering. void DrawSubset(std::string filePath, DWORD i);//Draws a Mesh and its subsets. DWORD GetNumberOfMaterials(std::string filePath);//Gives back the number of Materials in a Mesh. private: std::map<std::string, LPD3DXMESH> _meshes;//A list of DirectX-specific Meshes. std::map<std::string, LPDIRECT3DTEXTURE9*> _textures;//A list of DirectX-specific Textures. std::map<std::string, D3DMATERIAL9*> _materials;//A list of DirectX-specific Materials. std::map<HWND, LPDIRECT3DSWAPCHAIN9> _swapchains; //lookup list of swapchains and corresponding windows. D3DPRESENT_PARAMETERS d3dpp; LPDIRECT3D9 _g_pD3D; // Used to create the D3DDevice LPDIRECT3DDEVICE9 _g_pd3dDevice; // Our rendering device LPDIRECT3DSWAPCHAIN9 _g_swapChain_0; // Swap chain 1 LPDIRECT3DSWAPCHAIN9 _g_swapChain_1; // Swap chain 2 LPDIRECT3DTEXTURE9 _g_skyboxTexture; LPD3DXBUFFER _pD3DXMtrlBuffer;//DirectX Material buffer. LPDIRECT3DVERTEXBUFFER9 _g_pVB; //Directx Vertex buffer LPDIRECT3DINDEXBUFFER9 _g_pIB; //Directx Index buffer std::map<std::string, DWORD> _g_dwNumMaterials;//A map which stores the amount of Materials in a Mesh. std::wstring s2ws(const std::string& s);//Converts a string to a wstring. #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_TEX1) }; #endif
093c9b8043703d6aa6ae3d237960632b3a070e36
72a0db529ff12e566ddcf007c4f896f57f3e51b8
/02_STRING/Assignment19.cpp
055a3e70f78c982b5f0b5348a5fc0d0d28012a0b
[]
no_license
amoljore7/02-Logic-Building-Program-All
d6897b6c8d46040b7877e7c8d3c0d1a1fc9398bf
6457b1fd20bc70b81a3d71e19f7cdd3faefb70c8
refs/heads/master
2020-04-16T13:49:42.613073
2019-01-14T10:58:03
2019-01-14T10:58:03
165,644,263
0
0
null
null
null
null
UTF-8
C++
false
false
2,019
cpp
Assignment19.cpp
//////////////////////////////////////////////////////////////////////////////////////// // // 19.Write a program which accept two strings from user and compare two // strings. If both strings are equal then return 0 otherwise return difference // between first mismatch character (Implement strcmp()). // /////////////////////////////////////////////////////////////////////////////////////// #include<stdio.h> //MACRO definition #define AND && //Function Prototype int MyStrCmp(char *,char *); int main() { char Source[40]={'\0'}; char Dest[40]={'\0'}; int iRes = 0; //Accept strings. puts("Enter the first string => "); gets(Source); puts("Enter the second string => "); gets(Dest); //call to function iRes=MyStrCmp(Source,Dest); if(iRes == 0) { printf("\nBoth string are equal\n"); } else { printf("Both string are not equal.\nDifference is => %d\n",iRes); } return 0; } ////////////////////////////////////////////////////////////////////////////////////////////// // // Function Name : MyStrCmp // // Input : Two string // Returns : integer // // Description : This Function accepts two string and compare both // string if difference between both string print difference. // ///////////////////////////////////////////////////////////////////////////////////////////// int MyStrCmp( char* cSource, char* cDest ) { if(cSource == NULL || cDest == NULL) { return -1; } //following while is used to reach the end of first string while(*cSource != '\0' || *cDest != '\0') { if(*cSource != *cDest) { return *cDest - *cSource; } cSource++; cDest++; } return 0; } ///////////////////////////////////////////////////////////////////////////////////////////// // // Input : Prasad // Prasad // // Output :Both String Are Equal // ////////////////////////////////////////////////////////////////////////////////////////////
8824abc116234d1e38b6187ac7bd8ae999fe33d0
1abfb9298c02e0d1ad559b080c54ca13a6514ab0
/src/game.cpp
87390fb8e5f03f056ba4b95f7c94b22739628fd6
[ "MIT" ]
permissive
ArditBaloku/IMT2531-Exam
2fb5cf8deca1c631d2d2ea39b1370e538bf1a731
a005f342bbe11292ba305cc5c72a37d7c61061df
refs/heads/master
2022-07-16T12:05:18.025172
2020-05-21T08:04:32
2020-05-21T08:04:32
264,894,334
0
0
null
null
null
null
UTF-8
C++
false
false
3,681
cpp
game.cpp
#include "game.h" float accumulator = 0.0f; glm::vec3 color = glm::vec3(.6f, .8f, .8f); float eagleRotation = 180.0f; void Game::init() { shader = Shader("../resources/shaders/vertex.vert", "../resources/shaders/fragment.frag"); skyboxShader = Shader("resources/shaders/skybox.vert", "resources/shaders/skybox.frag"); skybox.load(); level.load("resources/levels/heightmap.png"); player.load("resources/models/duck.obj", "resources/textures/duck.jpg"); eagle.load("resources/models/eagle.obj", "resources/textures/eagle.tga"); deer.load("resources/models/deer.obj", "resources/textures/deer.jpg"); } void Game::update(float dt, float cycleSpeed, bool fog) { setLighting(dt, cycleSpeed); shader.setBool("fog", fog); } void Game::processInput(float dt) { if (keys[GLFW_KEY_W]) camera.ProcessKeyboard(FORWARD, dt); if (keys[GLFW_KEY_S]) camera.ProcessKeyboard(BACKWARD, dt); if (keys[GLFW_KEY_A]) camera.ProcessKeyboard(LEFT, dt); if (keys[GLFW_KEY_D]) camera.ProcessKeyboard(RIGHT, dt); if (keys[GLFW_KEY_T]) view = (view + 1) % 3; if (keys[GLFW_KEY_LEFT_SHIFT]) { camera.ProcessKeyboard(RUN, dt); } else { camera.ProcessKeyboard(STOP_RUN, dt); } } void Game::render() { shader.reset(); setUpTransformations(); level.draw(shader); drawPlayer(); drawObjects(); // skybox is drawn last skybox.draw(skyboxShader); } void Game::setUpTransformations() { auto projection = glm::perspective(glm::radians(camera.Zoom), 16.f / 9.f, 0.01f, 650.f); auto lookAt = glm::mat4(1.0f); switch (view) { case FIRST_PERSON: lookAt = camera.GetFirstPersonView(); break; case THIRD_PERSON: lookAt = camera.GetThirdPersonView(); break; case BIRD_VIEW: lookAt = camera.Get2DView(); break; } shader.setMat4("view", lookAt); shader.setMat4("projection", projection); skyboxShader.use(); // remove any translation transformations from the lookAt matrix to use in the skyboxShader skyboxShader.setMat4("view", glm::mat4(glm::mat3(lookAt))); skyboxShader.setMat4("projection", glm::perspective(glm::radians(50.f), 16.f / 9.f, 0.01f, 650.f)); } void Game::setLighting(float dt, float cycleSpeed) { accumulator += dt * cycleSpeed; if (glm::sin(accumulator) < -.2f) accumulator = 0; // increase/decrease the red/blue values in the color to emulate sunrise/sunset glm::vec3 diffuseStrength = glm::vec3(glm::max(glm::sin(accumulator), .2f)); if (diffuseStrength.x > .4f && diffuseStrength.x < .5f) { color += glm::vec3(.01f, .0f, .0f); } else if (diffuseStrength.x > .2f && diffuseStrength.x < .3f) { color += glm::vec3(-.01f, .0f, .0f); } else if (diffuseStrength.x > .5f) { color = glm::vec3(.8f, .8f, .8f); } else if (diffuseStrength.x < .2f) { color = glm::vec3(.6f, .8f, .8f); } shader.use(); shader.setDirLight( glm::vec3(.2f, -1.f, glm::sin(accumulator) - glm::cos(accumulator)), // emulates the sun and moon going around glm::vec3(0.1f), diffuseStrength, glm::vec3(.4f), color); } void Game::drawPlayer() { if (view != FIRST_PERSON) { player.draw(camera.Position, 0.02, glm::vec3(-90, 0, 0), shader); } } void Game::drawObjects() { eagleRotation += 1.65f; if (eagleRotation > 360) eagleRotation = 0; player.draw(glm::vec3(285, 1 + glm::clamp(glm::cos(glfwGetTime()), -.3 ,.2), 240 + glm::sin(glfwGetTime())), 0.02, glm::vec3(-90, 0, 0), shader); eagle.draw(glm::vec3(285 + 3*glm::sin(glfwGetTime()), 20 + glm::sin(glfwGetTime()), 240 + 3*glm::cos(glfwGetTime())), .03, glm::vec3(0, eagleRotation, 0), shader); deer.draw(glm::vec3(308, 4.2, 201), .02, glm::vec3(-90, 0, 0), shader); }
06139cb0950c9d5b536452d3d7ffbfbeae0617a5
0d2b71f41760bfec75b8c130bbb5395339d5f435
/FirstTest/robot.h
a103256a27c06065ac9de00e6839aca3a32f5671
[]
no_license
kapeps/Robot-explorateur-
433a09ccb4b5229a8f3ac1f9b2f4a563ac93b767
578fc341dc308be79f36a2284e38b25878afa2ae
refs/heads/main
2023-04-25T23:41:41.647537
2021-06-02T23:31:13
2021-06-02T23:31:13
334,951,460
1
0
null
null
null
null
UTF-8
C++
false
false
1,320
h
robot.h
#ifndef ROBOT_H #define ROBOT_H #include <Arduino.h> #include "Constants.h" #include "Motor.h" #include "PID.h" class Robot { public: Robot(float maximumVelocity); Motor Right_Motor = Motor(RIGHT_MOTOR_DIRECTION, ENCODER_RIGHT_A, ENCODER_RIGHT_B); Motor Left_Motor = Motor(LEFT_MOTOR_DIRECTION, ENCODER_LEFT_A, ENCODER_LEFT_B); void controlItEntirely(float angle); void turnAroundItself(float angle); void walkStraight(float distanceMeters); void walkDifferential(float distanceMetersRight, float distanceMetersLeft); void controlMotors(); void decodeI2CMessage(uint8_t message[]); float desiredSpeedLeft = 0.5; float desiredSpeedRight = 0.5; signed int desiredDistanceRight = 0; signed int desiredDistanceLeft = 0; float _linearSpeed = 0.5; int _lastRightDistance = 0; int _lastLeftDistance = 0; bool robotMode = false;//false for controling via motion, true for giving direct speed information private: PID _control_left; PID _control_right; PID _control_distance_left; PID _control_distance_right; float _maximumVelocity; float _rightSpeed = 0; float _leftSpeed = 0; int _RightDistance = 0; int _LeftDistance = 0; int _beginTime = 0; float _desiredAngle = 360; }; #endif
385574e6748599e67b6b2c3bbae544f5b438820c
0bba5128e7566249f208946e9b806d30cadb28e0
/WvsGame/MobSkillLevelData.cpp
af8483a9acfe2c12112e93bb813e302231efa98e
[]
no_license
CCasusensa/mnwvs077
ad394859b716e9d99f83a030b1930732d4614a73
89c45c8d481b42a77be90d14e7643c4454a1b847
refs/heads/master
2022-05-28T00:17:48.750920
2020-12-04T10:49:42
2020-12-04T10:49:42
192,504,728
0
0
null
2019-06-18T09:04:31
2019-06-18T09:04:30
null
UTF-8
C++
false
false
32
cpp
MobSkillLevelData.cpp
#include "MobSkillLevelData.h"
f7d1657a8ea594cc7b7adbf00c344b6c57b77eb0
a37fe8de18e82d2fbc04da4c409897de34c2d0b2
/KOE/DG/TV/TVKEYFLD.CPP
07bb49037c5ed30fb600f3ff6192acd6e13569d0
[]
no_license
jskripsky/ancient
e469354deef1ed2fee652f8686a033ee5d4bb970
052d342d5ca701c9b74b2505bd745d7849f66dcd
refs/heads/master
2016-09-05T14:26:45.625760
2014-04-15T17:34:38
2014-04-15T17:36:17
18,808,800
3
0
null
null
null
null
UTF-8
C++
false
false
2,944
cpp
TVKEYFLD.CPP
/***************************************************************************** ** ** ** ** ** DOS Dialog Generator ** ** ==================== ** ** ** ** Version 1.00 ** ** ** ** ** ** Copyright (C) 1993 Skribby Soft ** ** ** ** ======================================================================== ** ** ** ** tvKeyFolder Class ** ** ----------------- ** ** ** ** Defined classes: ** ** - Class tvKeyFolder ** ** ** ** ** ** ** ** Module Name: TVKEYFLD.CPP ** ** ** *****************************************************************************/ #include "Compiler.H" #define Uses_TStreamableClass #include "tvKeyFld.H" #include "tvKey.H" #include "HelpCtx.H" tvKeyFolder::tvKeyFolder( tvFolder *aFolder ) : #ifndef ULRICH tvStaticTitleFolder( aFolder, "Tasten", False ) #else tvStaticTitleFolder( aFolder, "Tastendefinitionen", False ) #endif { setAttribute( oaDeletable, False ); } void tvKeyFolder::insertObject( tvObject * ) { tvStaticTitleFolder::insertObject( new tvKey( this ) ); } TObjDlg *tvKeyFolder::createDlg() { return( new TSTFolderDlg( TRect( 1, 1, 27, 21 ), this ) ); } ushort tvKeyFolder::getHelpCtx() { return hcKeyFolder; } const char *const near tvKeyFolder::name = "tvKeyFolder"; TStreamableClass RtvKeyFolder( tvKeyFolder::name, tvKeyFolder::build, __DELTA( tvKeyFolder ) ); tvKeyFolder::tvKeyFolder( StreamableInit ) : tvStaticTitleFolder( streamableInit ) {} TStreamable *tvKeyFolder::build() { return new tvKeyFolder( streamableInit ); }
9c497b39ae494e76d46de4c807754fea2241773e
0faf846e04352255ba98770cf1a0475376e82cd0
/GLImac-Template/TP2/mandelbrot.cpp
2bb9e22ecc768c8d74718651751a175b8d0c580e
[]
no_license
MarcoKouyate/imac2-opengl
63bcf1b4634d0fc350abec96f6ecf7917b5439b2
6a2f2aaa85dfe8129a26611641a6d0c28f3fe5ae
refs/heads/master
2020-04-25T21:12:38.384751
2019-02-28T08:37:29
2019-02-28T08:37:29
173,073,642
0
0
null
null
null
null
UTF-8
C++
false
false
3,431
cpp
mandelbrot.cpp
#include <glimac/SDLWindowManager.hpp> #include <GL/glew.h> #include <iostream> #include <glimac/Program.hpp> #include <glimac/glm.hpp> using namespace glimac; // ====== CLASSE DE SOMMET ====== class Vertex2D { public : const glm::vec2 _position; Vertex2D(const glm::vec2 position); Vertex2D(); ~Vertex2D(); }; Vertex2D::Vertex2D(const glm::vec2 position) : _position(position) { } Vertex2D::Vertex2D() : _position(glm::vec2(0.0f,0.0f)) { } Vertex2D::~Vertex2D(){ } int main(int argc, char** argv) { // Initialize SDL and open a window SDLWindowManager windowManager(800, 600, "GLImac"); // Initialize glew for OpenGL3+ support GLenum glewInitError = glewInit(); if(GLEW_OK != glewInitError) { std::cerr << glewGetErrorString(glewInitError) << std::endl; return EXIT_FAILURE; } std::cout << "OpenGL Version : " << glGetString(GL_VERSION) << std::endl; std::cout << "GLEW Version : " << glewGetString(GLEW_VERSION) << std::endl; //==== CHARGEMENT DES SHADERS ===== FilePath applicationPath(argv[0]); Program program = loadProgram (applicationPath.dirPath()+"shaders/"+argv[1], applicationPath.dirPath()+"shaders/"+argv[2]); program.use(); //========== VBO ========== GLuint vbo; glGenBuffers(1,&vbo); glBindBuffer(GL_ARRAY_BUFFER, vbo); //====== REMPLIR LE VBO ==== Vertex2D vertices[] = { Vertex2D(glm::vec2(-1,1)), Vertex2D(glm::vec2(1,1)), Vertex2D(glm::vec2(1,-1)), Vertex2D(glm::vec2(-1,-1)) }; glBufferData(GL_ARRAY_BUFFER, 4 * sizeof(Vertex2D), vertices, GL_STATIC_DRAW); glBindBuffer(GL_ARRAY_BUFFER,0); //===== INDEX BUFFER OBJECT ====== GLuint ibo; glGenBuffers(1, &ibo); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ibo); uint32_t indices[] = { 0, 1, 2, 2, 3,0 }; glBufferData(GL_ELEMENT_ARRAY_BUFFER, 6 * sizeof(uint32_t), indices,GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,0); //===== VAO ===== GLuint vao; glGenBuffers(1,&vao); glBindVertexArray(vao); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ibo); const GLuint VERTEX_ATTR_POSITION = 0; glEnableVertexAttribArray(VERTEX_ATTR_POSITION); //===== SPECIFICATION DES ATTRIBUTS ===== glBindBuffer(GL_ARRAY_BUFFER, vbo); glVertexAttribPointer(VERTEX_ATTR_POSITION, 2, GL_FLOAT, GL_FALSE, 2*sizeof(GLfloat), offsetof(Vertex2D,_position)); glBindBuffer(GL_ARRAY_BUFFER,0); glBindVertexArray(0); // Application loop: bool done = false; while(!done) { // Event loop: SDL_Event e; while(windowManager.pollEvent(e)) { if(e.type == SDL_QUIT) { done = true; // Leave the loop after this iteration } } /********************************* * HERE SHOULD COME THE RENDERING CODE *********************************/ glClear(GL_COLOR_BUFFER_BIT); glBindVertexArray(vao); glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0); glBindVertexArray(0); // Update the display windowManager.swapBuffers(); } glDeleteBuffers(1,&vbo); glBindVertexArray(vao); return EXIT_SUCCESS; }
e1233db05b0d6d29fb204758d7f95833ba70ebba
e215ac34daff0eda58d978ee097db6c77dcf592e
/AI.cpp
ab613f45dfff8b1c4a868117a0883da25ce6e720
[]
no_license
nguditis/Mario-Kart
f9dc8227a89127cd6a993178ca06277df03de0a5
a15060c224759811f62f60b77ecb67d685dc8825
refs/heads/master
2020-04-06T11:14:35.640969
2018-12-12T22:32:56
2018-12-12T22:32:56
157,409,285
1
0
null
null
null
null
UTF-8
C++
false
false
11,684
cpp
AI.cpp
#include "AI.h" #include "gameData.h" #include "imageFactory.h" AI::AI( const std::string& name) : Drawable(name, Vector2f(Gamedata::getInstance().getXmlInt(name+"/startLoc/x"), Gamedata::getInstance().getXmlInt(name+"/startLoc/y")), Vector2f(Gamedata::getInstance().getXmlInt(name+"/speedX"), Gamedata::getInstance().getXmlInt(name+"/speedY")) ), image( ImageFactory::getInstance().getImage(name+"/tracks/Donut_Plains_1/full", name) ), track( IMG_Load(Gamedata::getInstance().getXmlStr("road/tracks/Donut_Plains_1/full").c_str())), sky( IMG_Load(Gamedata::getInstance().getXmlStr("sky/file").c_str())), grass( IMG_Load(Gamedata::getInstance().getXmlStr("road/tracks/Donut_Plains_1/grass").c_str())), blocks( IMG_Load(Gamedata::getInstance().getXmlStr("road/tracks/Donut_Plains_1/boundry").c_str())), worldWidth(Gamedata::getInstance().getXmlInt("background/width")), worldHeight(Gamedata::getInstance().getXmlInt("background/height")), fWorldX(Gamedata::getInstance().getXmlFloat("worldData/fworldx")), fWorldY(Gamedata::getInstance().getXmlFloat("worldData/fworldy")), fWorldA(Gamedata::getInstance().getXmlFloat("worldData/fworlda")), fNear(Gamedata::getInstance().getXmlFloat("worldData/fnear")), fFar(Gamedata::getInstance().getXmlFloat("worldData/ffar")) { } AI::AI(const AI& s) : Drawable(s), image(s.image), track(s.track), sky(s.sky), grass(s.grass), blocks(s.blocks), worldWidth( s.worldWidth ), worldHeight( s.worldHeight ) { } AI& AI::operator=(const AI& s) { Drawable::operator=(s); image = (s.image); track = s.track; sky = s.sky; grass = s.grass; blocks = s.blocks; worldWidth = ( s.worldWidth ); worldHeight = ( s.worldHeight ); return *this; } bool AI::checkVelocity(Uint32 ticks, int direction, float p_x, float p_y) { if(direction == 1) { //fNear -= 0.1f * ticks; fWorldA -= 0.1f; bool blocked = CheckNewValue(p_x, p_y); if(!blocked) { fWorldA += 0.3f; } return blocked; } else if (direction == 2) { fWorldA += 0.1f; bool blocked = CheckNewValue(p_x, p_y); if(!blocked) { fWorldA -= 0.3f; } return blocked; } else if(direction ==3) { fWorldX += cosf(fWorldA) * 0.1f * ticks; fWorldY += sinf(fWorldA) * 0.1f * ticks; bool blocked = CheckNewValue(p_x, p_y); if(!blocked) { fWorldX -= cosf(fWorldA) * 0.3f * ticks; fWorldY -= sinf(fWorldA) * 0.3f * ticks; } return blocked; } else if (direction == 4) { fWorldX -= cosf(fWorldA) * 0.1f * ticks; fWorldY -= sinf(fWorldA) * 0.1f * ticks; bool blocked = CheckNewValue(p_x, p_y); if(!blocked) { fWorldX += cosf(fWorldA) * 0.3f * ticks; fWorldY += sinf(fWorldA) * 0.3f * ticks; } return blocked; } else if (direction == 5) { //fFoVHalf -= 0.2f * ticks; fNear -= 0.1f * ticks; } else if (direction == 6) { //fFoVHalf += 0.2f * ticks; fNear += 0.1f * ticks; } else if (direction == 7) { //fFoVHalf -= 0.2f * ticks; fFar -= 0.1f * ticks; } else if (direction == 8) { //fFoVHalf += 0.2f * ticks; fFar += 0.1f * ticks; } else if (direction == 9) { //fFoVHalf -= 0.2f * ticks; fFoVHalf -= 0.1f; } else if (direction == 10) { //fFoVHalf += 0.2f * ticks; fFoVHalf += 0.1f; } return true; } void AI::update(Uint32 ticks){} void AI::update(Uint32 ticks, int direction, float factor) { if(direction == 1) { //fNear -= 0.1f * ticks; fWorldA -= factor; } else if (direction == 2) { fWorldA += factor; //fNear += 0.1f * ticks; } else if(direction ==3) { fWorldX += cosf(fWorldA) * factor* ticks; fWorldY += sinf(fWorldA) * factor * ticks; } else if (direction == 4) { fWorldX -= cosf(fWorldA) * factor * ticks; fWorldY -= sinf(fWorldA) * factor * ticks; } else if (direction == 5) { //fFoVHalf -= 0.2f * ticks; fNear -= 0.1f * ticks; } else if (direction == 6) { //fFoVHalf += 0.2f * ticks; fNear += 0.1f * ticks; } else if (direction == 7) { //fFoVHalf -= 0.2f * ticks; fFar -= 0.1f * ticks; } else if (direction == 8) { //fFoVHalf += 0.2f * ticks; fFar += 0.1f * ticks; } else if (direction == 9) { //fFoVHalf -= 0.2f * ticks; fFoVHalf -= 0.1f; } else if (direction == 10) { //fFoVHalf += 0.2f * ticks; fFoVHalf += 0.1f; } } float AI::GrassVelocity(int x, int y) { float fFarX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fFar; float fFarY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fFar; float fNearX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fNear; float fNearY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fNear; float fFarX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fFar; float fFarY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fFar; float fNearX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fNear; float fNearY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fNear; float fSampleDepth = (float)y / ((float)worldHeight / 2.0f); float fSampleWidth = (float)x / (float)worldWidth; float fStartX = (fFarX1 - fNearX1) / (fSampleDepth) + fNearX1; float fStartY = (fFarY1 - fNearY1) / (fSampleDepth) + fNearY1; float fEndX = (fFarX2 - fNearX2) / (fSampleDepth) + fNearX2; float fEndY = (fFarY2 - fNearY2) / (fSampleDepth) + fNearY2; float fSampleX = (fEndX - fStartX) * fSampleWidth + fStartX; float fSampleY = (fEndY - fStartY) * fSampleWidth + fStartY; SDL_LockSurface(grass); Uint32 *pixels = (Uint32*)grass->pixels; Uint32 pixel = pixels[(int(fSampleY) * grass->pitch / 4) + int(fSampleX)]; SDL_Color color; //SDL_LockSurface(surface2); SDL_GetRGBA(pixel, grass->format, &color.r, &color.g, &color.b, &color.a); SDL_UnlockSurface(grass); //SDL_GetRGBA(pixel2, surface2->format, &color2.r, &color2.g, &color2.b, &color2.a); if(int(color.a) == 255) { return 0.0f; } return 0.2f; } bool AI::CheckNewValue(int x, int y) { float fFarX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fFar; float fFarY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fFar; float fNearX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fNear; float fNearY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fNear; float fFarX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fFar; float fFarY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fFar; float fNearX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fNear; float fNearY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fNear; float fSampleDepth = (float)y / ((float)worldHeight / 2.0f); float fSampleWidth = (float)x / (float)worldWidth; float fStartX = (fFarX1 - fNearX1) / (fSampleDepth) + fNearX1; float fStartY = (fFarY1 - fNearY1) / (fSampleDepth) + fNearY1; float fEndX = (fFarX2 - fNearX2) / (fSampleDepth) + fNearX2; float fEndY = (fFarY2 - fNearY2) / (fSampleDepth) + fNearY2; float fSampleX = (fEndX - fStartX) * fSampleWidth + fStartX; float fSampleY = (fEndY - fStartY) * fSampleWidth + fStartY; SDL_LockSurface(blocks); Uint32 *pixels = (Uint32*)blocks->pixels; Uint32 pixel = pixels[(int(fSampleY) * blocks->pitch / 4) + int(fSampleX)]; SDL_Color color; //SDL_LockSurface(surface2); SDL_GetRGBA(pixel, blocks->format, &color.r, &color.g, &color.b, &color.a); SDL_UnlockSurface(blocks); //SDL_GetRGBA(pixel2, surface2->format, &color2.r, &color2.g, &color2.b, &color2.a); if(int(color.a) == 255 || fSampleY < 0 || fSampleX < 0 || fSampleX > 1024 || fSampleY>1024) { return false; } return true; } void AI::draw(SDL_Renderer *renderer) const{ // Create Frustum corner points float fFarX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fFar; float fFarY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fFar; float fNearX1 = fWorldX + cosf(fWorldA - fFoVHalf) * fNear; float fNearY1 = fWorldY + sinf(fWorldA - fFoVHalf) * fNear; float fFarX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fFar; float fFarY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fFar; float fNearX2 = fWorldX + cosf(fWorldA + fFoVHalf) * fNear; float fNearY2 = fWorldY + sinf(fWorldA + fFoVHalf) * fNear; // Starting with furthest away line and work towards the camera point SDL_LockSurface(sky); SDL_LockSurface(track); Uint32 *pixels1 = (Uint32*)sky->pixels; Uint32 *pixels2 = (Uint32*)track->pixels; // [250*500]; //memcpy( cur_pixels, pixels, surface->pitch * surface->h ); for (int y = 0; y < worldHeight/2; y++) { //std::cout<<"drawing y "<<y<<std::endl; // Take a sample point for depth linearly related to rows down screen float fSampleDepth = (float)y / ((float)worldHeight / 2.0f); //std::cout<<fSampleDepth<<std::endl; if(fSampleDepth == 0) fSampleDepth = 1; // Use sample point in non-linear (1/x) way to enable perspective // and grab start and end points for lines across the screen float fStartX = (fFarX1 - fNearX1) / (fSampleDepth) + fNearX1; float fStartY = (fFarY1 - fNearY1) / (fSampleDepth) + fNearY1; float fEndX = (fFarX2 - fNearX2) / (fSampleDepth) + fNearX2; float fEndY = (fFarY2 - fNearY2) / (fSampleDepth) + fNearY2; // Linearly interpolate lines across the screen for (int x = 0; x < worldWidth; x++) { //std::cout<<"drawing x "<<x<<std::endl; float fSampleWidth = (float)x / (float)worldWidth; float fSampleX = (fEndX - fStartX) * fSampleWidth + fStartX; float fSampleY = (fEndY - fStartY) * fSampleWidth + fStartY; // Wrap sample coordinates to give "infinite" periodicity on maps //std::cout<<fSampleX<<" "<<fSampleY<<std::endl; //fSampleX = fmod(fSampleX, 1024); //fSampleY = fmod(fSampleY,1024); SDL_Color color = {0,0,0,0}; SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a); //std::cout<<"draw color set "<<std::endl; if(fSampleX < 0 || fSampleX > 1024 || fSampleY<0 || fSampleY > 1024) { SDL_Color w_color = {0,0,0,255}; SDL_SetRenderDrawColor(renderer, w_color.r, w_color.g, w_color.b, w_color.a); SDL_RenderDrawPoint(renderer, x, y+worldHeight/2); } else { Uint32 pixel2 = pixels2[(int(fSampleY) * track->pitch / 4) + int(fSampleX)]; SDL_GetRGBA(pixel2, track->format, &color.r, &color.g, &color.b, &color.a); SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a); SDL_RenderDrawPoint(renderer, x, y+worldHeight/2); } fSampleX = fabs(fmod(fSampleX, 1022)+1); fSampleY = fabs(fmod(fSampleY,1022)+1); Uint32 pixel1 = pixels1[(int(fSampleY) * sky->pitch / 4) + int(fSampleX)]; // Sample symbol and colour from map sprite, and draw the // pixel to the screen //SDL_Color color = getPixelColor(fSampleX,fSampleY); SDL_GetRGBA(pixel1, sky->format, &color.r, &color.g, &color.b, &color.a); SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a); //std::cout<<"draw color set "<<std::endl; SDL_RenderDrawPoint(renderer, x, y); } } SDL_UnlockSurface(track); SDL_UnlockSurface(sky); }
1a59af6ab452f2582b6efbc4d219133c9c1e469c
23413b022c11f69743951bd81d2cc5e0c0382537
/Closure/include/BindStateBase.h
4e1efd4f6505abd7b78fed74d60519a09230dd46
[]
no_license
BigFinger/Closure
c41afa88561cf473a999a97c3a49f0ad9a6f4410
8c75d4f3a975cd82752be9c19ba3e4db6419e634
refs/heads/master
2020-03-17T20:36:54.676171
2018-05-18T07:32:36
2018-05-18T07:32:36
132,395,267
0
0
null
null
null
null
UTF-8
C++
false
false
279
h
BindStateBase.h
#include "config.h" #include "RefCountedThreadSafe.h" class BindStateBase : public RefCountedThreadSafe<BindStateBase> { protected: friend class RefCountedThreadSafe<BindStateBase>; virtual ~BindStateBase(); public: int mParamCount; const void* mInvokerPtr; };
5f8d0758e2dfd102144a98c691a2b66dfc6409d7
fce0b4ada8337bc04937bdd237d16c23dff2e481
/beakjoon/beakjoon_2225.cpp
ff10d15a075a86bffda0dcad8f5a78ee343bc865
[]
no_license
Rakwon/Problem.Solving
69d78a6e55edc014fa8c2ea93284a236843fdf98
d5bd6228d149f2ab2c3034dc5ac3a7093acf91bd
refs/heads/master
2021-09-07T23:24:54.112587
2018-03-03T01:16:38
2018-03-03T01:16:38
105,760,102
0
0
null
null
null
null
UTF-8
C++
false
false
574
cpp
beakjoon_2225.cpp
#include <cstdio> #include <cstdlib> #include <cstring> #define MOD 1000000000 int d[201][201]; int process(int n, int k, int sum){ if(k == 0){ if(sum == 0) return 1; return 0; } if(d[k][sum] == -1){ d[k][sum] = 0; for(int i = n; i>=0; --i){ if(sum - i >= 0) d[k][sum] = (d[k][sum] + process(n, k-1, sum-i))%MOD; } } return d[k][sum]; } int main(void){ int n, k; memset(d, -1, sizeof(d)); scanf("%d %d", &n, &k); printf("%d", process(n, k, n)); return 0; }
ebeed20e0df602e573b13523657bfe642e208994
f67b47259c734b4355057246ac7111ab59086dd6
/lib/KFCGfx/include/GFXCanvas.h
7ca2ff09394f6e5f3b5dc7ed1cd42d8eae0949b6
[]
no_license
externall-projects/esp8266-kfc-fw
2b28b848f9ab54a7107e6b27319606b5ad17f727
5889f7dce2ced0347ff96db3cbf27d1ea50dc466
refs/heads/master
2022-04-22T07:59:02.233681
2020-04-12T03:46:03
2020-04-12T03:46:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,435
h
GFXCanvas.h
/** * Author: sascha_lammers@gmx.de */ #pragma once #include <Arduino_compat.h> #include <assert.h> #include <Buffer.h> #include <MicrosTimer.h> #ifndef DEBUG_GFXCANVAS #define DEBUG_GFXCANVAS 1 #endif #if _MSC_VER #define DEBUG_GFXCANVASCOMPRESSED_BOUNDS_CHECK 1 #define DEBUG_GFXCANVASCOMPRESSED_STATS 1 #define GFXCANVAS_MAX_CACHED_LINES 255 #endif #ifndef GFXCANVAS_MAX_CACHED_LINES #define GFXCANVAS_MAX_CACHED_LINES 1 #endif // enable for debugging only #ifndef DEBUG_GFXCANVASCOMPRESSED_BOUNDS_CHECK #define DEBUG_GFXCANVASCOMPRESSED_BOUNDS_CHECK 1 #endif #ifndef DEBUG_GFXCANVASCOMPRESSED_STATS #define DEBUG_GFXCANVASCOMPRESSED_STATS 1 #endif namespace GFXCanvas { #if DEBUG_GFXCANVASCOMPRESSED_STATS class Stats { public: Stats() { memset(this, 0, sizeof(*this)); } void dump(Print &output) const; int decode_count; int encode_count; double decode_time; double encode_time; int decode_invalid; int encode_invalid; int cache_read; int cache_flush; int cache_drop; int cache_max; uint32_t drawInto; int malloc; }; #endif class Cache { public: static const int16_t INVALID = -1; explicit Cache(); Cache(const Cache& cache) = delete; // Cache(const Cache &cache) { // __debugbreak_and_panic(); //} Cache(Cache &&cache); Cache(uint16_t width, int16_t y); Cache(uint16_t width); ~Cache(); Cache &operator =(const Cache &cache) = delete; Cache &operator =(Cache &&cache); void allocBuffer(); void freeBuffer(); bool isY(int16_t y) const; int16_t getY() const; void setY(int16_t y); // if the y position is changed, flags are cleared. in case the write flag is set, the cache must be written before bool isValid() const; bool hasWriteFlag() const; // indicates that the cache has not been written void setWriteFlag(bool value); bool hasReadFlag() const; // indicates that the cache contains a copy void setReadFlag(bool value); uint16_t *getBuffer() const; inline void setPixel(int16_t x, uint16_t color) { #if DEBUG_GFXCANVASCOMPRESSED_BOUNDS_CHECK if (!(x >= 0 && x < _width)) { __debugbreak_and_panic(); } #endif _buffer[x] = color; } private: uint16_t *_buffer; int16_t _y; uint16_t _width; uint8_t _read: 1; uint8_t _write: 1; }; class LineBuffer { public: LineBuffer(); void clear(uint16_t fillColor); uint16_t getLength() const; Buffer &getBuffer(); void setFillColor(uint16_t fillColor) { _fillColor = fillColor; } uint16_t getFillColor() const { return _fillColor; } void clone(LineBuffer& source); private: Buffer _buffer; uint16_t _fillColor; }; void convertToRGB(uint16_t color, uint8_t& r, uint8_t& g, uint8_t& b); uint32_t convertToRGB(uint16_t color); uint16_t convertRGBtoRGB565(uint8_t r, uint8_t g, uint8_t b); uint16_t convertRGBtoRGB565(uint32_t rgb); };
8ab7ec8a01a1140072863e3ec615e0797d46b312
35a8341ef155f3c60758ee61302474c439ae3d75
/kernel/trap_handler.cpp
34da87a1e1d5ac20faf9e136d18318a69aac4f3b
[]
no_license
jrwilson/Lily
0e5b4d16002a80f2e3ca7a18aa387aa0478bd7c2
24cd1b0fc0ad8676d6b1505324ed156f0f2b2ccb
refs/heads/master
2016-09-09T19:58:21.254516
2012-05-14T12:22:35
2012-05-14T12:22:35
2,610,882
2
0
null
null
null
null
UTF-8
C++
false
false
8,195
cpp
trap_handler.cpp
/* File ---- trap_handler.hpp Description ----------- Object for handling traps. Authors: Justin R. Wilson */ #include "trap_handler.hpp" #include "idt.hpp" #include "gdt.hpp" #include "vm_def.hpp" #include "registers.hpp" #include "kassert.hpp" #include "action.hpp" #include "scheduler.hpp" #include <lily/syscall.h> // Operating system traps use interrupt 0x80. static const unsigned int SYSCALL_INTERRUPT = 0x80; extern "C" void trap0 (); void trap_handler::install () { idt::set (SYSCALL_INTERRUPT, make_trap_gate (trap0, gdt::KERNEL_CODE_SELECTOR, descriptor::RING3, descriptor::PRESENT)); } /* TODO: Pass with registers. */ struct bind_args { aid_t output_automaton; ano_t output_action; int output_parameter; aid_t input_automaton; ano_t input_action; int input_parameter; }; // The goal of this function is to demarshall system calls and dispatch. extern "C" void trap_dispatch (volatile registers regs) { kassert (regs.number == SYSCALL_INTERRUPT); const shared_ptr<automaton>& a = scheduler::current_automaton (); /* These match the order in lily/syscall.h. Please keep it that way. */ switch (regs.eax) { case LILY_SYSCALL_SCHEDULE: { pair<int, lily_error_t> r = a->schedule (a, regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_FINISH: { scheduler::finish (regs.ebx, regs.ecx, regs.edx); return; } break; case LILY_SYSCALL_EXIT: { a->exit (a, regs.ebx); return; } break; case LILY_SYSCALL_CREATE: { pair<aid_t, lily_error_t> r = a->create (scheduler::current_action (), regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BIND: { bind_args* ptr = reinterpret_cast<bind_args*> (regs.ebx); if (!a->verify_stack (ptr, sizeof (bind_args))) { kpanic ("TODO: Can't get bind arguments from the stack"); } pair<bid_t, lily_error_t> r = a->bind (scheduler::current_action (), ptr->output_automaton, ptr->output_action, ptr->output_parameter, ptr->input_automaton, ptr->input_action, ptr->input_parameter); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_UNBIND: { pair<int, lily_error_t> r = a->unbind (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_DESTROY: { pair<int, lily_error_t> r = a->destroy (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_LOG: { pair<int, lily_error_t> r = a->log (reinterpret_cast<const char*> (regs.ebx), regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_ADJUST_BREAK: { pair<void*, lily_error_t> r = a->adjust_break (regs.ebx); regs.eax = reinterpret_cast<uint32_t> (r.first); regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_CREATE: { pair<bd_t, lily_error_t> r = a->buffer_create (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_COPY: { pair<bd_t, lily_error_t> r = a->buffer_copy (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_DESTROY: { pair<int, lily_error_t> r = a->buffer_destroy (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_SIZE: { pair<size_t, lily_error_t> r = a->buffer_size (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_RESIZE: { pair<int, lily_error_t> r = a->buffer_resize (regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_ASSIGN: { pair<int, lily_error_t> r = a->buffer_assign (regs.ebx, regs.ecx, regs.edx, regs.esi); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_APPEND: { pair<bd_t, lily_error_t> r = a->buffer_append (regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_MAP: { pair<void*, lily_error_t> r = a->buffer_map (regs.ebx); regs.eax = reinterpret_cast<uint32_t> (r.first); regs.ecx = r.second; return; } break; case LILY_SYSCALL_BUFFER_UNMAP: { pair<int, lily_error_t> r = a->buffer_unmap (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_SYSCONF: { switch (regs.ebx) { case LILY_SYSCALL_SYSCONF_PAGESIZE: regs.eax = PAGE_SIZE; regs.ecx = LILY_ERROR_SUCCESS; return; break; default: regs.eax = 0; regs.ecx = LILY_ERROR_INVAL; return; break; } return; } break; case LILY_SYSCALL_DESCRIBE: { pair<int, lily_error_t> r = a->describe (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_GETAID: { regs.eax = a->aid (); regs.ecx = LILY_ERROR_SUCCESS; return; } break; case LILY_SYSCALL_GETMONOTIME: { pair<int, lily_error_t> r = a->getmonotime (reinterpret_cast<mono_time_t*> (regs.ebx)); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_GET_BOOT_DATA: { pair<bd_t, lily_error_t> r = a->get_boot_data (); regs.eax = r.first; regs.ecx = r.second; } break; case LILY_SYSCALL_MAP: { pair<int, lily_error_t> r = a->map (reinterpret_cast<const void*> (regs.ebx), reinterpret_cast<const void*> (regs.ecx), regs.edx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_UNMAP: { pair<int, lily_error_t> r = a->unmap (reinterpret_cast<const void*> (regs.ebx)); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_RESERVE_PORT: { pair<int, lily_error_t> r = a->reserve_port (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_UNRESERVE_PORT: { pair<int, lily_error_t> r = a->unreserve_port (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_INB: { pair<uint8_t, lily_error_t> r = a->inb (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_OUTB: { pair<int, lily_error_t> r = a->outb (regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_INW: { pair<uint16_t, lily_error_t> r = a->inw (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_OUTW: { pair<int, lily_error_t> r = a->outw (regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_INL: { pair<uint32_t, lily_error_t> r = a->inl (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_OUTL: { pair<int, lily_error_t> r = a->outl (regs.ebx, regs.ecx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_SUBSCRIBE_IRQ: { pair<int, lily_error_t> r = a->subscribe_irq (a, regs.ebx, regs.ecx, regs.edx); regs.eax = r.first; regs.ecx = r.second; return; } break; case LILY_SYSCALL_UNSUBSCRIBE_IRQ: { pair<int, lily_error_t> r = a->unsubscribe_irq (regs.ebx); regs.eax = r.first; regs.ecx = r.second; return; } break; default: kpanic ("TODO: Unknown system call"); break; } }
332b614f8aae6c6ca210e1b92de5142009cdf9f5
71a12a5843b74fe43f298c7a22b8b259f453fca5
/src/preferences/loginPreferences.hpp
0e80e617e9c859019ba9d9e39e0b75e2f933d456
[]
no_license
andreagen0r/project-template
bda1fda97291b263947f4144f7ee023a3e6ad536
2b6e38a971a3b2ab670cd0133c26cda70ead9680
refs/heads/main
2023-03-17T22:53:22.707586
2021-03-07T22:04:51
2021-03-07T22:04:51
345,463,436
0
1
null
null
null
null
UTF-8
C++
false
false
301
hpp
loginPreferences.hpp
#pragma once #include <QDir> #include <QSettings> #include "ipreferences.hpp" namespace foo { class PREFERENCES_EXPORT LoginPreferences : public foo::Preferences { public: LoginPreferences() = default; virtual void save() override; virtual void load() override; }; } // namespace foo
8812e7a76115e8134c60af8cf331b3e72d6ef497
6a3697b5b5606fea7fa67dcef5722913a77fddf3
/ACM/summer training 2019/2019 Multi-University Training Contest 2/K.cpp
971468755de0fc944da0c94d83128bca1221e776
[]
no_license
FarmerKb/oj
d154300752091749eea6fb6fa4fc36f19374daa1
5361945d12f70ea3cdad5235bee55ee9b0c835fb
refs/heads/master
2020-09-07T21:11:28.529388
2019-11-12T00:50:08
2019-11-12T00:50:08
220,912,607
0
0
null
null
null
null
UTF-8
C++
false
false
1,898
cpp
K.cpp
#include <bits/stdc++.h> using namespace std; const long long llINF = 9223372036854775807; const int INF = 2147483647; const int maxn = 6e5 + 7; const int maxm = 1e6 + 7; int ans[maxn]; int nxt[maxn][30]; int fail[maxn]; int cnt[maxn]; int num[maxn]; int len[maxn]; int s[maxn]; int lst, n, p; bool vis[maxn]; vector<int> pic[maxn]; int newnode(int l) { for (int i = 0; i < 26; i++) nxt[p][i] = 0; cnt[p] = num[p] = 0; len[p] = l; return p++; } void init() { vis[0] = vis[1] = 0; for (int i = 0; i <= p*2; i++) pic[i].clear(); p = 0; newnode(0); newnode(-1); lst = 0; n = 0; s[n] = -1; fail[0] = 1; } int get_fail(int x) { while (s[n - len[x] - 1] != s[n]) x = fail[x]; return x; } void insert_node(int c) { s[++n] = c; int cur = get_fail(lst); if (!nxt[cur][c]) { int now = newnode(len[cur] + 2); fail[now] = nxt[get_fail(fail[cur])][c]; nxt[cur][c] = now; num[now] = num[fail[now]] + 1; } lst = nxt[cur][c]; cnt[lst]++; } int ok[maxn]; void dfs(int cur) { if (vis[cur]) return; if (cur <= 1) vis[cur] = 1; if (len[cur] > 0) { ok[len[cur] * 2] ++; ok[len[cur] * 2 - 1] ++; } if (len[cur] > 0 && ok[len[cur]]) ans[len[cur]] += cnt[cur]; for (int i = 0; i < pic[cur].size(); i++) { if (!vis[pic[cur][i]]) dfs(pic[cur][i]); } if (len[cur] > 0) { ok[len[cur] * 2] --; ok[len[cur] * 2 - 1] --; } } char str[maxn]; int main(int argc, char const *argv[]) { ok[1] = 1; while (scanf("%s", str + 1) != EOF) { init(); int m = strlen(str + 1); for (int i = 1; i <= m; i++) ans[i] = 0; for (int i = 1; i <= m; i++) insert_node(str[i] - 'a'); for (int i = p - 1; i >= 0; i--) cnt[fail[i]] += cnt[i]; for (int i = 0; i <= p - 1; ++ i) pic[fail[i]].push_back(i); dfs(0); for (int i = 1; i <= m-1; i++) printf("%d ", ans[i]); printf("%d\n",ans[m]); } return 0; } //abababa
66abfe4237e425556fcdba8d0073c1c8457b2087
7c4e18dc769ebc3b87d6f45d82812984b7eb6608
/source/application.cpp
01afd2db05369fc5e9e5a348f8f0965f2be7d53c
[]
no_license
ishahid/smartmap
5bce0ca5690efb5b8e28c561d86321c8c5dcc794
195b1ebb03cd786d38167d622e7a46c7603e9094
refs/heads/master
2020-03-27T05:43:49.428923
2010-07-06T08:24:59
2010-07-06T08:24:59
10,093,280
0
0
null
null
null
null
UTF-8
C++
false
false
22,096
cpp
application.cpp
#include "application.h" #include "layerpanel.h" #include "projectwindow.h" #include "sminfo.h" #include "smabout.h" #include <qworkspace.h> #include <qpixmap.h> #include <qtoolbar.h> #include <qtoolbutton.h> #include <qpopupmenu.h> #include <qmenubar.h> #include <qfiledialog.h> #include <qstatusbar.h> #include <qmessagebox.h> #include <qprinter.h> #include <qapplication.h> #include <qaccel.h> #include <qwhatsthis.h> #include <qobjectlist.h> #include <qvbox.h> #include <qbuttongroup.h> const char * fileNewText = "Click this button to open a new <em><b>SmartMap</b> project file</em>. <br><br>" "You can also select the <b>New Project command</b> from the File menu."; const char * fileOpenText = "Click this button to open a <em><b>SmartMap</b> project file</em>. <br><br>" "You can also select the <b>Open Project... command</b> from the File menu."; const char * fileSaveText = "Click this button to save the SmartMap Project you are " "editing. You will be prompted for a file name.\n\n" "You can also select the Save command from the File menu."; const char * filePrintText = "Click this button to print the Map Image you " "are editing.\n\n" "You can also select the Print command from the File menu."; ApplicationWindow::ApplicationWindow() : QMainWindow( 0, "SmartMap main window", WDestructiveClose ) { int id; QPixmap newIcon, openIcon, saveIcon, printIcon; QPixmap cutIcon, copyIcon, pasteIcon, delIcon; QPixmap addLayerIcon, removeLayerIcon, cLayerIcon; QPixmap zoomFullIcon, zoomInIcon, zoomOutIcon, panIcon, identifyIcon; QPixmap pointIcon, lineIcon, circleIcon, polygonIcon; // add pix, make them visible on menus... newIcon = QPixmap( "images/filenew.png" ); openIcon = QPixmap( "images/fileopen.png" ); saveIcon = QPixmap( "images/filesave.png" ); printIcon = QPixmap( "images/fileprint.png" ); cutIcon = QPixmap( "images/editcut.png" ); copyIcon = QPixmap( "images/editcopy.png" ); pasteIcon = QPixmap( "images/editpaste.png" ); delIcon = QPixmap( "images/editdelete.png" ); addLayerIcon = QPixmap( "images/addlayer.png" ); removeLayerIcon = QPixmap( "images/removelayer.png" ); cLayerIcon = QPixmap( "images/cosmetic.png" ); zoomFullIcon = QPixmap( "images/toolszoomfull.png" ); zoomInIcon = QPixmap( "images/toolszoomin.png" ); zoomOutIcon = QPixmap( "images/toolszoomout.png" ); panIcon = QPixmap( "images/toolspan.png" ); identifyIcon = QPixmap( "images/toolsidentify.png" ); pointIcon = QPixmap( "images/point.png" ); lineIcon = QPixmap( "images/line.png" ); circleIcon = QPixmap( "images/circle.png" ); polygonIcon = QPixmap( "images/polygon.png" ); // File ToolBar fileTools = new QToolBar( this, "file toolbar" ); addToolBar( fileTools, tr( "File" ), DockTop, false ); QToolButton * fileNew = new QToolButton( newIcon, "New Project", QString::null, this, SLOT(newProj()), fileTools, "new project" ); QToolButton * fileOpen = new QToolButton( openIcon, "Open Project", QString::null, this, SLOT(load()), fileTools, "open project" ); QToolButton * fileSave = new QToolButton( saveIcon, "Save Project", QString::null, this, SLOT(save()), fileTools, "save project" ); #ifndef QT_NO_PRINTER printer = new QPrinter( QPrinter::HighResolution ); QToolButton * filePrint = new QToolButton( printIcon, "Print Image", QString::null, this, SLOT(print()), fileTools, "print image" ); QWhatsThis::add( filePrint, filePrintText ); #endif // Edit ToolBar editTools = new QToolBar( this, "edit toolbar" ); addToolBar( editTools, tr( "Edit" ), DockTop, false ); QToolButton * editCut = new QToolButton( cutIcon, "Cut", QString::null, this, SLOT(cut()), editTools, "cut" ); QToolButton * editCopy = new QToolButton( copyIcon, "Copy", QString::null, this, SLOT(copy()), editTools, "Copy" ); QToolButton * editPaste = new QToolButton( pasteIcon, "Paste", QString::null, this, SLOT(paste()), editTools, "Paste" ); QToolButton * editDel = new QToolButton( delIcon, "Delete", QString::null, this, SLOT(del()), editTools, "Paste" ); // Layer ToolBar layerTools = new QToolBar( this, "layer toolbar" ); addToolBar( layerTools, tr( "Layer" ), DockTop, false ); QToolButton * layerAdd = new QToolButton( addLayerIcon, "Add Layer", QString::null, this, SLOT(addLayer()), layerTools, "Add Layer" ); QToolButton * layerRemove = new QToolButton( removeLayerIcon, "Remove Layer", QString::null, this, SLOT(removeLayer()), layerTools, "Remove Layer" ); QToolButton * layerAddCosmetic = new QToolButton( cLayerIcon, "New Cosmetic Layer", QString::null, this, SLOT(addCosmeticLayer()), layerTools, "Add Cosmetic Layer" ); // Tools ToolBar toolsTools = new QToolBar( this, "tools toolbar" ); addToolBar( toolsTools, tr( "Tools" ), DockTop, false ); toolsZoomFull = new QToolButton( zoomFullIcon, "Zoom Full Extent", QString::null, this, SLOT(zoomFull()), toolsTools, "Zoom Full Extent" ); toolsZoomIn = new QToolButton( zoomInIcon, "Zoom In", QString::null, this, SLOT(zoomIn()), toolsTools, "Zoom In" ); toolsZoomIn->setToggleButton ( true ); toolsZoomOut = new QToolButton( zoomOutIcon, "Zoom Out", QString::null, this, SLOT(zoomOut()), toolsTools, "Zoom Out" ); toolsZoomOut->setToggleButton ( true ); toolsPan = new QToolButton( panIcon, "Pan", QString::null, this, SLOT(pan()), toolsTools, "Pan" ); toolsPan->setToggleButton ( true ); toolsIdentify = new QToolButton( identifyIcon, "Identify", QString::null, this, SLOT(identify()), toolsTools, "Identify" ); toolsIdentify->setToggleButton ( true ); // WhatsThis ToolBar whatsThisTools = new QToolBar( this, "whatsthis toolbar" ); addToolBar( whatsThisTools, tr( "Whats This" ), DockTop, false ); (void)QWhatsThis::whatsThisButton( whatsThisTools ); QWhatsThis::add( fileNew, fileNewText ); QWhatsThis::add( fileOpen, fileOpenText ); QWhatsThis::add( fileSave, fileSaveText ); // Shapes ToolBar shapesTools = new QToolBar( this, "shapes toolbar" ); addToolBar( shapesTools, tr( "Shapes" ), DockTornOff, false ); shapesTools->move( this->size().width() , 100 ); setDockEnabled( shapesTools, DockTop, false ); setDockEnabled( shapesTools, DockBottom, false ); setDockEnabled( shapesTools, DockLeft, false ); setDockEnabled( shapesTools, DockRight, false ); shapesTools->hide(); shapesPoint = new QToolButton( pointIcon, "Point", QString::null, this, SLOT(drawPoint()), shapesTools, "point" ); shapesPoint->setToggleButton ( true ); shapesLine = new QToolButton( lineIcon, "Line", QString::null, this, SLOT(drawLine()), shapesTools, "line" ); shapesLine->setToggleButton ( true ); shapesCircle = new QToolButton( circleIcon, "Circle", QString::null, this, SLOT(drawCircle()), shapesTools, "circle" ); shapesCircle->setToggleButton ( true ); shapesPolygon = new QToolButton( polygonIcon, "Polygon", QString::null, this, SLOT(drawPolygon()), shapesTools, "polygon" ); shapesPolygon->setToggleButton ( true ); // Menu definitions QPopupMenu * file = new QPopupMenu( this ); menuBar()->insertItem( "&File", file ); id = file->insertItem( newIcon, "&New Project", this, SLOT( newProj() ), CTRL+Key_N ); file->setWhatsThis( id, fileNewText ); id = file->insertItem( openIcon, "&Open Project...", this, SLOT( load() ), CTRL+Key_O ); file->setWhatsThis( id, fileOpenText ); id = file->insertItem( saveIcon, "&Save Project", this, SLOT( save() ), CTRL+Key_S ); file->setWhatsThis( id, fileSaveText ); id = file->insertItem( "Save &As...", this, SLOT( saveAs() ) ); file->setWhatsThis( id, fileSaveText ); file->insertSeparator(); file->insertItem( "&Close Project", this, SLOT( closeWindow() ), CTRL+Key_W ); #ifndef QT_NO_PRINTER file->insertSeparator(); id = file->insertItem( printIcon, "&Print Image...", this, SLOT(print()), CTRL+Key_P ); file->setWhatsThis( id, filePrintText ); #endif file->insertSeparator(); file->insertItem( "E&xit", qApp, SLOT( closeAllWindows() ) ); QPopupMenu * edit = new QPopupMenu( this ); menuBar()->insertItem( "&Edit", edit ); edit->insertItem( cutIcon, "Cut", this, SLOT(cut()), CTRL+Key_X ); edit->insertItem( copyIcon, "Copy", this, SLOT(copy()), CTRL+Key_C ); edit->insertItem( pasteIcon, "Paste", this, SLOT(paste()), CTRL+Key_V ); edit->insertItem( delIcon, "Delete", this, SLOT(del()), Key_Delete ); edit->insertSeparator(); edit->insertItem( "Copy Map Image to File...", this, SLOT(copyImageToFile()) ); QPopupMenu * layer = new QPopupMenu( this ); menuBar()->insertItem( "&Layer", layer ); layer->insertItem( addLayerIcon, "&Add Layer...", this, SLOT(addLayer()) ); layer->insertItem( removeLayerIcon, "&Remove Layer", this, SLOT(removeLayer()) ); layer->insertSeparator(); layer->insertItem( cLayerIcon, "&New Cosmetic Layer...", this, SLOT(addCosmeticLayer()) ); layer->insertItem( "&Open Existing Cosmetic Layer...", this, SLOT(addCosmeticLayer()) ); layer->insertSeparator(); layer->insertItem( "&Layer Manager...", this, SLOT(layerManager()) ); QPopupMenu * tools = new QPopupMenu( this ); menuBar()->insertItem( "&Tools", tools ); tools->insertItem( zoomFullIcon, "Zoom Full Extent", this, SLOT(zoomFull()), Key_Asterisk ); tools->insertSeparator(); tools->insertItem( zoomInIcon, "Zoom In", this, SLOT(zoomIn()), Key_Plus ); tools->insertItem( zoomOutIcon, "Zoom Out", this, SLOT(zoomOut()), Key_Minus ); tools->insertItem( panIcon, "Pan", this, SLOT(pan()) ); tools->insertItem( identifyIcon, "Identify", this, SLOT(identify()) ); windowsMenu = new QPopupMenu( this ); windowsMenu->setCheckable( TRUE ); connect( windowsMenu, SIGNAL( aboutToShow() ), this, SLOT( windowsMenuAboutToShow() ) ); menuBar()->insertItem( "&Windows", windowsMenu ); menuBar()->insertSeparator(); QPopupMenu * help = new QPopupMenu( this ); menuBar()->insertItem( "&Help", help ); help->insertItem( "Help Contents", this, SLOT(helpContents()), Key_F1); help->insertSeparator(); help->insertItem( QPixmap("images/smartmap.png"), "&About SmartMap", this, SLOT(about())); help->insertItem( "About &Qt", this, SLOT(aboutQt())); help->insertSeparator(); help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1); // Application startup configurations QVBox* vb = new QVBox( this ); vb->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken ); ws = new QWorkspace( vb ); ws->setScrollBarsEnabled( TRUE ); setCentralWidget( vb ); setIcon( QPixmap("images/smartmap.gif") ); statusBar()->setSizeGripEnabled( true ); statusBar()->message( "Ready", 2000 ); QFont font = statusBar()->font(); font.setBold( true ); statusBar()->setFont( font ); help->setItemEnabled(help->idAt(0), false); edit->setItemEnabled(edit->idAt(0), false); edit->setItemEnabled(edit->idAt(1), false); edit->setItemEnabled(edit->idAt(2), false); edit->setItemEnabled(edit->idAt(3), false); // add LayerPanel to the application layerPanel = new LayerPanel( QDockWindow::InDock, this ); addDockWindow( layerPanel, DockLeft ); setDockEnabled( layerPanel, DockTop, false ); setDockEnabled( layerPanel, DockBottom, false ); setDockMenuEnabled( false ); layerPanel->setMovingEnabled( false ); } ApplicationWindow::~ApplicationWindow() { #ifndef QT_NO_PRINTER delete printer; #endif } ProjectWindow* ApplicationWindow::newProj() { ProjectWindow* w = new ProjectWindow( ws, 0, WDestructiveClose ); //connect( w, SIGNAL( message(const QString&, int) ), statusBar(), SLOT( message(const QString&, int )) ); connect( w, SIGNAL( message(const QString&) ), statusBar(), SLOT( message(const QString&)) ); connect( w, SIGNAL( message(const QString&, int) ), statusBar(), SLOT( message(const QString&, int )) ); connect( w, SIGNAL( layerAdded( QString&, int ) ), layerPanel, SLOT( addItem( QString&, int ) ) ); connect( w, SIGNAL( addLayerPanelItem( QString&, int, bool ) ), layerPanel, SLOT( addItem( QString&, int, bool ) ) ); connect( w, SIGNAL( layerRemoved( int ) ), layerPanel, SLOT( removeItem( int ) ) ); connect( w, SIGNAL( layerAddedAt( int, QString& ) ), layerPanel, SLOT( addItemAfter( int, QString& ) ) ); connect( w, SIGNAL( cosmeticLayer( bool ) ), this, SLOT( showShapeTools( bool ) ) ); connect( w, SIGNAL( focused() ), this, SLOT( windowFocused() ) ); connect( w, SIGNAL( closed() ), layerPanel, SLOT( removeAllItems() ) ); connect( layerPanel, SIGNAL( visibilityChanged( int, bool ) ), this, SLOT( changeVisibility( int, bool ) ) ); w->setCaption("Unnamed.smproj"); w->showMaximized(); layerPanel->removeAllItems(); return w; } void ApplicationWindow::load() { QString fn = QFileDialog::getOpenFileName( QDir::currentDirPath(), "SmartMap Project (*.smproj)", this, "open project dialog" "Choose a filename to open project" ); if ( !fn.isEmpty() ) { ProjectWindow* w = newProj(); w->load( fn ); } else { statusBar()->message( "Loading aborted", 2000 ); } } void ApplicationWindow::save() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->save(); } void ApplicationWindow::saveAs() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->saveAs(); } void ApplicationWindow::print() { #ifndef QT_NO_PRINTER // ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); // if ( m ) // m->print( printer ); #endif } void ApplicationWindow::closeWindow() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->close(); layerPanel->removeAllItems(); } } void ApplicationWindow::about() { SMAbout *aboutbox = new SMAbout( this, "", true ); aboutbox->show(); } void ApplicationWindow::aboutQt() { QMessageBox::aboutQt( this, SMInfo::longName() ); } void ApplicationWindow::windowsMenuAboutToShow() { windowsMenu->clear(); int cascadeId = windowsMenu->insertItem("&Cascade", ws, SLOT(cascade() ) ); int tileId = windowsMenu->insertItem("&Tile", ws, SLOT(tile() ) ); int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, SLOT(tileHorizontal() ) ); if ( ws->windowList().isEmpty() ) { windowsMenu->setItemEnabled( cascadeId, FALSE ); windowsMenu->setItemEnabled( tileId, FALSE ); windowsMenu->setItemEnabled( horTileId, FALSE ); } windowsMenu->insertSeparator(); QWidgetList windows = ws->windowList(); for ( int i = 0; i < int(windows.count()); ++i ) { int id = windowsMenu->insertItem(windows.at(i)->caption(), this, SLOT( windowsMenuActivated( int ) ) ); windowsMenu->setItemParameter( id, i ); windowsMenu->setItemChecked( id, ws->activeWindow() == windows.at(i) ); } } void ApplicationWindow::windowsMenuActivated( int id ) { ProjectWindow* w = (ProjectWindow*)ws->windowList().at( id ); if ( w ) { w->showNormal(); w->setFocus(); layerPanel->removeAllItems(); for ( int i=w->layerCount()-1; i>=0; i-- ) { int n = w->layerCount() - ( i + 1 ); layerPanel->addItem( w->layerName( n ), n, w->isVisible( n ) ); } } } void ApplicationWindow::windowFocused() { ProjectWindow* w = (ProjectWindow*)ws->activeWindow(); if ( w ) { w->showMaximized(); w->setFocus(); layerPanel->removeAllItems(); for ( int i=w->layerCount()-1; i>=0; i-- ) { int n = w->layerCount() - ( i + 1 ); layerPanel->addItem( w->layerName( n ), n, w->isVisible( n ) ); } } } void ApplicationWindow::tileHorizontal() { // primitive horizontal tiling QWidgetList windows = ws->windowList(); if ( !windows.count() ) return; int heightForEach = ws->height() / windows.count(); int y = 0; for ( int i = 0; i < int(windows.count()); ++i ) { QWidget *window = windows.at(i); if ( window->testWState( WState_Maximized ) ) { // prevent flicker window->hide(); window->showNormal(); } int preferredHeight = window->minimumHeight()+window->parentWidget()->baseSize().height(); int actHeight = QMAX(heightForEach, preferredHeight); window->parentWidget()->setGeometry( 0, y, ws->width(), actHeight ); y += actHeight; } } void ApplicationWindow::closeEvent( QCloseEvent *e ) { QWidgetList windows = ws->windowList(); if ( windows.count() ) { for ( int i = 0; i < int(windows.count()); ++i ) { QWidget *window = windows.at( i ); if ( !window->close() ) { e->ignore(); return; } } } QMainWindow::closeEvent( e ); } void ApplicationWindow::cut() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->cut(); } void ApplicationWindow::copy() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->copy(); } void ApplicationWindow::paste() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->paste(); } void ApplicationWindow::del() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->del(); } void ApplicationWindow::copyImageToFile() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->copyImageToFile(); } void ApplicationWindow::addLayer() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->addLayer(); } void ApplicationWindow::addCosmeticLayer() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->addCosmeticLayer(); } void ApplicationWindow::removeLayer() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->removeLayer(); } void ApplicationWindow::layerManager() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->layerManager(); } void ApplicationWindow::zoomFull() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->zoomFull(); } void ApplicationWindow::zoomIn() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->zoomIn(); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); } else { toolsZoomIn->setOn( false ); } } void ApplicationWindow::zoomOut() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->zoomOut(); toolsZoomIn->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); } else { toolsZoomOut->setOn( false ); } } void ApplicationWindow::pan() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->pan(); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsIdentify->setOn( false ); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); } else { toolsPan->setOn( false ); } } void ApplicationWindow::identify() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->identify(); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); } else { toolsIdentify->setOn( false ); } } void ApplicationWindow::drawPoint() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->drawPoint(); shapesLine->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); } } void ApplicationWindow::drawLine() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->drawLine(); shapesPoint->setOn( false ); shapesCircle->setOn( false ); shapesPolygon->setOn( false ); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); } } void ApplicationWindow::drawCircle() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->drawCircle(); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesPolygon->setOn( false ); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); } } void ApplicationWindow::drawPolygon() { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) { m->drawPolygon(); shapesPoint->setOn( false ); shapesLine->setOn( false ); shapesCircle->setOn( false ); toolsZoomIn->setOn( false ); toolsZoomOut->setOn( false ); toolsPan->setOn( false ); toolsIdentify->setOn( false ); } } void ApplicationWindow::changeVisibility( int i, bool b ) { ProjectWindow* m = (ProjectWindow*)ws->activeWindow(); if ( m ) m->changeVisibility( i, b ); } void ApplicationWindow::showShapeTools( bool flag ) { if ( flag ) { shapesTools->show(); //shapesPoint->setOn( false ); //shapesLine->setOn( false ); //shapesCircle->setOn( false ); //shapesPolygon->setOn( false ); } else { shapesTools->hide(); } } void ApplicationWindow::helpContents() { // Help contents code goes here }
96836a26ce5f93e19e19fb7449e4db87f254c3a9
2e8ee837651ad66a073434c5d2d3f498e34a7100
/Globals/stddef.h
63009b68abdc0b7c6c1feab881c69386bbab236c
[]
no_license
Fracture17/ProjectMCodes
f673e35c9a0f85ff85765921bfe935e91e8c17f5
47a559870c0190042cd3646efe5657222361fe19
refs/heads/master
2023-06-23T21:08:31.074632
2023-06-14T00:20:49
2023-06-14T00:20:49
275,945,553
11
4
null
2022-02-06T02:59:35
2020-06-29T23:08:58
C++
UTF-8
C++
false
false
3,573
h
stddef.h
#pragma once #define VTABLE_METHOD(RET_TYPE, FN_NAME) \ inline RET_TYPE FN_NAME() { return ((RET_TYPE (*)()) this->vtable->fn__ ## FN_NAME)(); } #define VTABLE_METHOD_1ARG(RET_TYPE, FN_NAME, TYPE1, NAME1) \ inline RET_TYPE FN_NAME(TYPE1 NAME1) { return ((RET_TYPE (*)(TYPE1 NAME1)) this->vtable->fn__ ## FN_NAME)(NAME1); } #define VTABLE_METHOD_2ARG(RET_TYPE, FN_NAME, TYPE1, NAME1, TYPE2, NAME2) \ inline RET_TYPE FN_NAME(TYPE1 NAME1, TYPE2 NAME2) { return ((RET_TYPE (*)(TYPE1 NAME1, TYPE2 NAME2)) this->vtable->fn__ ## FN_NAME)(NAME1, NAME2); } #define STATIC_METHOD(ADDRESS, SELF_TYPE, RET_TYPE, FN_NAME) \ inline RET_TYPE FN_NAME() { return ((RET_TYPE (*)(SELF_TYPE * self)) ADDRESS)(this); } #define STATIC_METHOD_1ARG(ADDRESS, SELF_TYPE, RET_TYPE, FN_NAME, TYPE1, NAME1) \ inline RET_TYPE FN_NAME(TYPE1 NAME1) { return ((RET_TYPE (*)(SELF_TYPE * self, TYPE1 NAME1)) ADDRESS)(this, NAME1); } // #define _setGrCollisisonMode ((void (*)(soGroundModuleImpl * self, int collisionMode)) 0x80730a04) union xyDouble { double asDouble; struct { float xPos = 0; float yPos = 0; }; }; typedef signed char s8; typedef signed short s16; typedef signed int s32; typedef long long s64; typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef volatile signed char vs8; typedef volatile signed short vs16; typedef volatile signed int vs32; typedef volatile long long vs64; typedef volatile unsigned char vu8; typedef volatile unsigned short vu16; typedef volatile unsigned int vu32; typedef volatile unsigned long long vu64; typedef float f32; typedef double f64; typedef volatile float vf32; typedef volatile double vf64; typedef unsigned int size_t; struct Position2D { f32 x; f32 y; constexpr Position2D& operator*=(float rhs) { x *= rhs; y *= rhs; return *this; } }; struct Position3D { f32 x; f32 y; f32 z; constexpr Position3D& operator-=(Position3D rhs) { x -= rhs.x; y -= rhs.y; z -= rhs.z; return *this; } constexpr Position3D& operator+=(Position3D rhs) { x += rhs.x; y += rhs.y; z += rhs.z; return *this; } constexpr Position3D& operator*=(float rhs) { x *= rhs; y *= rhs; z *= rhs; return *this; } }; #define offsetof(type, member) (__builtin_offsetof(type, member)) #define _randf ((double (*)()) 0x8003fb64) #define _dynamicCast_addr ((void* (*)(void* toCast, int vtableOffset, void* sourceDescriptor, void* targetDescriptor, bool checkForBadCast)) 0x803f0f44) inline void* DynamicCast(void* toCast, int vtableOffset, void* sourceDescriptor, void* targetDescriptor) { return _dynamicCast_addr(toCast, vtableOffset, sourceDescriptor, targetDescriptor, true); } // #define NOP() "\x60\x00\x00\x00" // template<class> class function; // not defined // template<class R, class... ArgTypes> // class function<R(ArgTypes...)> { // public: // using result_type = R; // // construct/copy/destroy // function() noexcept; // function(const function&); // function(function&&) noexcept; // ~function(); // // function modifiers // void swap(function&) noexcept; // // function capacity // explicit operator bool() const noexcept; // // function invocation // R operator()(ArgTypes...) const; // // function target access // template<class T> T* target() noexcept; // template<class T> const T* target() const noexcept; // }; // template<class R, class... ArgTypes> // function(R(*)(ArgTypes...)) -> function<R(ArgTypes...)>;
351d7f13d4c6f3ba0bfbd49da2b45caa9d33a422
5965a658a81df839c8909299fc8040fe87daf0df
/华为机试/code/HJ16_购物单.cpp
52c524f914db392e02d1ad444d3c8f0024757a04
[]
no_license
da1234cao/data_structure
5d7135cef831cca66623c4cceb68ddc63b27003f
0ee470ab7810243661cd2086dc34d2f38c13236b
refs/heads/master
2022-03-28T00:28:57.073599
2022-03-02T09:06:44
2022-03-02T09:06:44
210,477,465
0
0
null
null
null
null
UTF-8
C++
false
false
2,200
cpp
HJ16_购物单.cpp
// 题解参考:https://blog.csdn.net/weixin_45965762/article/details/118773265 // 参考题解使用滚动数组来写动态规划,我这里使用二维数组 #include <iostream> #include <vector> #include <map> #include <cassert> using namespace std; int main(int argc, char const *argv[]){ ////////////////////读取输入 int N,m; cin>>N>>m; vector<int> zj(m + 1), zjvw(m + 1), fj1(m + 1), fj2(m + 1), fj1vw(m + 1), fj2vw(m + 1); for(int i=1; i<=m; i++){ int price, weight, is_main; cin>>price>>weight>>is_main; if(is_main == 0){ zj[i] = price; zjvw[i] = price*weight; }else if(fj1[is_main] == 0){ fj1[is_main] = price; fj1vw[is_main] = price*weight; }else if(fj2[is_main] == 0){ fj2[is_main] = price; fj2vw[is_main] = price*weight; } } ////////////////////////数据预处理 // 由于题目规定,价格均为10的倍数,我们可以将价格均缩小十倍 // 结果再乘10 ////////////////////动态规划 vector<vector<int>> dp(m+1, vector<int>(N+1,0)); for(int i=1; i<=m; i++){ // 先遍历物品 for(int j=1; j<=N; j++){ // 再扩大背包 if(zj[i]!=0 && j >= zj[i]){ // 当主件可以放入时 dp[i][j] = max(dp[i-1][j], dp[i-1][j-zj[i]] + zjvw[i]); // 放 or 不放 if(fj1[i]!=0 && j >= zj[i]+fj1[i]){ // 当主件和附件1可以放入时 dp[i][j] = max(dp[i][j], dp[i-1][j-zj[i]-fj1[i]] + zjvw[i] + fj1vw[i]); } if(fj2[i]!=0 && j >= zj[i]+fj2[i]){ // 当主件和附件2可以放入时 dp[i][j] = max(dp[i][j], dp[i-1][j-zj[i]-fj2[i]] + zjvw[i] + fj2vw[i]); } if(fj1[i]!=0 && fj2[i]!=0 && j >= zj[i]+fj1[i]+fj2[i]){ // 当主件和附件1,2可以放入时 dp[i][j] = max(dp[i][j], dp[i-1][j-zj[i]-fj1[i]-fj2[i]] + zjvw[i] + fj1vw[i] + fj2vw[i]); } }else{ // 放入不了,则继承 dp[i][j] = dp[i-1][j]; } } } cout<<dp[m][N]; return 0; }
4194adc98e3ee1280ae273e843531e9360a41741
9fc51408cb32612323bd85d165fb8aaa32dcfaed
/rjesenje/App/RacunKolekcija.h
790ccfd403c73916e6309fe557ff898061484a36
[]
no_license
jasarsoft/kckf-pr2
d5a37c8c01092f5d692afa144cb6c55b9dbe16d4
52f7c5392be18c6f8befcb997719b05c90c56e41
refs/heads/master
2021-04-15T16:57:56.840120
2018-03-24T19:58:49
2018-03-24T19:58:49
94,584,418
0
0
null
null
null
null
UTF-8
C++
false
false
550
h
RacunKolekcija.h
#pragma once #pragma once #include <iostream> #include <memory> #include"Transakcija.h" #include "Klijent.h" #include "Racun.h" using namespace std; typedef Racun* RacunTip; struct RacunKolekcija { int max_size = 30; RacunTip* podaci = new RacunTip[max_size]; int brojac = 0; RacunTip& Get(int i) { return podaci[i]; } void Dodaj(RacunTip newV) { if (brojac == max_size) //brojac >= max_size { cout << "Racun: broj racuna je maksimalan!\n"; return; } podaci[brojac++] = newV; cout << "Racun: uspjesno dodan.\n"; } };
d61cd8b0b3b2116026d007cedf68755ac4b5b117
533621231aa7233de90e29c31ae721e97c29fb8b
/Codeforces/Round/Round #644 (Div. 3)/1360G.cpp
35b1e7c8a1e2c8a60e294780535366c268dd7668
[]
no_license
NatanGarcias/Competitive-Programming
00ad96389d24040b9d69eed04af04e8da0a4feb6
ffb7a156352432c6a246c0024522aa97b5a5f2b8
refs/heads/master
2021-11-29T16:35:36.476318
2021-08-21T00:21:08
2021-08-21T00:21:08
238,455,629
2
0
null
null
null
null
UTF-8
C++
false
false
2,779
cpp
1360G.cpp
#include<bits/stdc++.h> using namespace std; template<typename T> ostream& operator<<(ostream &os, const vector<T> &v) { os << "{"; for (typename vector<T>::const_iterator vi = v.begin(); vi != v.end(); ++vi) { if (vi != v.begin()) os << ", "; os << *vi; } os << "}"; return os; } template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { os << '(' << p.first << ", " << p.second << ')'; return os; } typedef long long ll; typedef long double ld; #define optimize ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); #define endl "\n" #define pii pair<int,int> #define fi first #define se second #define pb push_back #define sz(x) (ll)(x.size()) #define all(x) x.begin(),x.end() #define FOR(x,a,n) for(int x= (int)(a);(x) < int(n);(x)++) #define ms(x,a) memset(x,a,sizeof(x)) #define PI 3.141592653589793238462643383279502884 #define INF 0x3f3f3f3f #define INFLL 0x3f3f3f3f3f3f3f3f #define mod 1000000007 #define MAXL 60 ll T,N,M,K,A,B; int v[MAXL][MAXL]; #define MAXN 103000 #define MAXM 900000 int ned, first[MAXN], work[MAXN], dist[MAXN], q[MAXN]; int cap[MAXM], to[MAXM], nxt[MAXM]; void init() { memset(first, -1, sizeof first); ned = 0; } void add(int u, int v, int f) { to[ned] = v, cap[ned] = f; nxt[ned] = first[u]; first[u] = ned++; to[ned] = u, cap[ned] = 0; nxt[ned] = first[v]; first[v] = ned++; } int dfs(int u, int f, int t) { if (u == t) return f; for(int &e = work[u]; e != -1; e = nxt[e]) { int v = to[e]; if (dist[v] == dist[u] + 1 && cap[e] > 0) { int df = dfs(v, min(f, cap[e]), t); if (df > 0) { cap[e] -= df; cap[e^1] += df; return df; } } } return 0; } bool bfs(int s, int t) { memset(&dist, -1, sizeof dist); dist[s] = 0; int st = 0, en = 0; q[en++] = s; while (en > st) { int u = q[st++]; for(int e = first[u]; e!=-1; e = nxt[e]) { int v = to[e]; if (dist[v] < 0 && cap[e] > 0) { dist[v] = dist[u] + 1; q[en++] = v; } } } return dist[t] >= 0; } int dinic(int s, int t) { int result = 0, f; while (bfs(s, t)) { memcpy(work, first, sizeof work); while (f = dfs(s, INF, t)) result += f; } return result; } void solve(){ if(A*N != B*M){ cout << "NO\n"; return; } ms(v,0); init(); FOR(i,0,N) add(0,i+1,A); FOR(i,0,N) FOR(j,0,M) add(i+1,N+j+1,1); FOR(j,0,M) add(N+j+1,N+M+1,B); dinic(0,N+M+1); FOR(i,0,N){ FOR(j,0,M){ if( cap[ (N + M*i +j )*2 +1] == 1 ) { v[i][j] = 1; } } } cout << "YES\n"; FOR(i,0,N){ FOR(j,0,M) cout << v[i][j]; cout << endl; } } int main(){ cin >> T; while(T--){ cin >> N >> M >> A >> B; solve(); } return 0; }
9b81c44427291d88a823e88c8e14a4c7fe92fad3
1a20961af3b03b46c109b09812143a7ef95c6caa
/Book/3dlearn/Samples/ElGame/ElGUI/src/ELGUIRenderCache.cpp
30b63c20afedaf310215c60fff690d64c8a2811a
[]
no_license
JetAr/ZNginx
eff4ae2457b7b28115787d6af7a3098c121e8368
698b40085585d4190cf983f61b803ad23468cdef
refs/heads/master
2021-07-16T13:29:57.438175
2017-10-23T02:05:43
2017-10-23T02:05:43
26,522,265
3
1
null
null
null
null
UTF-8
C++
false
false
3,032
cpp
ELGUIRenderCache.cpp
#include "ELGUIPCH.h" #include "ELGUIRenderCache.h" #include "ELGUISystem.h" namespace ELGUI { bool RenderCache::hasCachedImagery() const { return !(d_cachedImages.empty() && d_cachedTexts.empty()); } void RenderCache::render(const Point& basePos, const Rect& clipper) { Rect displayArea(System::getSingleton().getRenderer()->getRect()); Rect custClipper; const Rect* finalClipper; Rect finalRect; // Send all cached images to renderer. for(ImageryList::const_iterator image = d_cachedImages.begin(); image != d_cachedImages.end(); ++image) { if ((*image).usingCustomClipper) { custClipper = (*image).customClipper; custClipper.offset(basePos); custClipper = (*image).clipToDisplay ? displayArea.getIntersection(custClipper) : clipper.getIntersection(custClipper); finalClipper = &custClipper; } else { finalClipper = (*image).clipToDisplay ? &displayArea : &clipper; } finalRect = (*image).target_area; finalRect.offset(basePos); assert((*image).source_image); (*image).source_image->draw(finalRect, *finalClipper, (*image).colours); } // send all cached texts to renderer. for(TextList::const_iterator text = d_cachedTexts.begin(); text != d_cachedTexts.end(); ++text) { if ((*text).usingCustomClipper) { custClipper = (*text).customClipper; custClipper.offset(basePos); custClipper = (*text).clipToDisplay ? displayArea.getIntersection(custClipper) : clipper.getIntersection(custClipper); finalClipper = &custClipper; } else { finalClipper = (*text).clipToDisplay ? &displayArea : &clipper; } finalRect = (*text).target_area; finalRect.offset(basePos); assert((*text).source_font); (*text).source_font->drawText((*text).text, finalRect, *finalClipper, (*text).formatting, (*text).colours); } } void RenderCache::clearCachedImagery() { d_cachedImages.clear(); d_cachedTexts.clear(); } void RenderCache::cacheImage(const Image& image, const Rect& destArea, const ColourRect& cols, const Rect* clipper, bool clipToDisplay) { ImageInfo imginf; imginf.source_image = &image; imginf.target_area = destArea; imginf.colours = cols; imginf.clipToDisplay = clipToDisplay; if (clipper) { imginf.customClipper = *clipper; imginf.usingCustomClipper = true; } else { imginf.usingCustomClipper = false; } d_cachedImages.push_back(imginf); } void RenderCache::cacheText(const std::wstring& text, Font* font, TextFormatting format, const Rect& destArea, const ColourRect& cols, const Rect* clipper /* = 0 */, bool clipToDisplay /* = false */) { TextInfo txtinf; txtinf.text = text; txtinf.source_font = font; txtinf.formatting = format; txtinf.target_area = destArea; txtinf.colours = cols; txtinf.clipToDisplay = clipToDisplay; if (clipper) { txtinf.customClipper = *clipper; txtinf.usingCustomClipper = true; } else { txtinf.usingCustomClipper = false; } d_cachedTexts.push_back(txtinf); } }
979635ddf0cecf70d0a4288e2cd050aa5ad1b20e
47fb36c26f47c2a7ff3c4ca177a3706ae2156c2d
/src/thunderbots/software/ai/hl/stp/action/move_action.cpp
1d64a87e6549aaa3138be4ffe81b5fb1df109b6a
[ "LGPL-3.0-only" ]
permissive
Solaris5959/Software
17005ba735c304b85a46fdb96e7459a8960fc5a0
b34ed63f671460dcb8db62d328b776747adaf374
refs/heads/master
2020-07-30T03:04:07.075323
2019-09-29T20:44:10
2019-09-29T20:44:10
210,065,033
0
0
MIT
2019-09-21T23:23:14
2019-09-21T23:23:13
null
UTF-8
C++
false
false
1,892
cpp
move_action.cpp
#include "ai/hl/stp/action/move_action.h" #include "ai/intent/move_intent.h" MoveAction::MoveAction(double close_to_dest_threshold, Angle close_to_orientation_threshold, bool loop_forever) : Action(), close_to_dest_threshold(close_to_dest_threshold), close_to_orientation_threshold(close_to_orientation_threshold), loop_forever(loop_forever) { } std::unique_ptr<Intent> MoveAction::updateStateAndGetNextIntent( const Robot& robot, Point destination, Angle final_orientation, double final_speed, bool enable_dribbler, bool slow, AutokickType autokick) { // Update the parameters stored by this Action this->robot = robot; this->destination = destination; this->final_orientation = final_orientation; this->final_speed = final_speed; this->enable_dribbler = enable_dribbler; this->slow = slow; this->autokick = autokick; return getNextIntent(); } void MoveAction::calculateNextIntent(IntentCoroutine::push_type& yield) { // We use a do-while loop so that we return the Intent at least once. If the robot was // already moving somewhere else, but was told to run the MoveAction to a destination // while it happened to be crossing that point, we want to make sure we send the // Intent so we don't report the Action as done while still moving to a different // location do { yield(std::make_unique<MoveIntent>(robot->id(), destination, final_orientation, final_speed, 0, enable_dribbler, slow, autokick)); } while (loop_forever || (robot->position() - destination).len() > close_to_dest_threshold || (robot->orientation().minDiff(final_orientation) > close_to_orientation_threshold)); }
fae6f6cb155184af9c1e3673cfac05b4d0da911d
25f5ed71cdc8ff9ac680df4876b086ccaf51b5cc
/lib/dwarfs/logger.h
d160cb6858c87e9f33a8c06107c0b8381508b6f3
[]
no_license
marisancans/home_system
3a7ea8b940ba19c9d877b736b6dc4d5378fe4b6c
127a09dd7b9896ea7cdd50a1a735d9554220d72d
refs/heads/master
2021-07-17T06:48:53.935035
2020-03-25T12:35:27
2020-03-25T12:35:27
249,437,366
0
0
null
null
null
null
UTF-8
C++
false
false
2,818
h
logger.h
#pragma once #include "alias.h" #include "alg.h" #include <mutex> #include <cstdio> #include <iostream> #include <fstream> // forward declared namespace fs { struct TxtFile; } namespace dw { // Forward declared template <typename ...Args> struct Signal; struct Logger { struct{ int log_level_length = 4; } formatter; str file_path; uptr<fs::TxtFile> txt_file_p; std::mutex mtx; map<str, int> log_levels { {"debug", 1 }, {"info", 2}, {"warning", 3}, {"crash", 4}}; void add_log_level(str log_level, int priotity){ log_levels[log_level] = priotity; } Signal<str>* signal_p; // if provided, event will be fired upon logging str prefix_level(str fmt, str log_level){ if(!exists(log_level, log_levels)) throw std::runtime_error("Log level doesn't exist!"); log_level[0] = std::toupper(log_level[0]); auto trim_to = min(int(log_level.length()), formatter.log_level_length); log_level = log_level.erase(trim_to, std::string::npos); return "[" + log_level + "] " + fmt; } template <typename ...Args> void format_t(str fmt, str log_level, Args... args){ size_t size = snprintf( nullptr, 0, fmt.c_str(), args ... ) + 1; // Extra space for '\0' if( size <= 0 ){ throw std::runtime_error( "Error during formatting." ); } std::unique_ptr<char[]> buf( new char[ size ] ); snprintf( buf.get(), size, fmt.c_str(), args ... ); auto formatted = std::string( buf.get(), buf.get() + size - 1 ); // We don't want the '\0' inside formatted = prefix_level(formatted, log_level); exec_handlers(formatted); } void exec_handlers(str fmt); void format_t(str fmt, str log_level){ fmt = prefix_level(fmt, log_level); exec_handlers(fmt); } template <typename ...Args> void log(str fmt, str log_level, Args... args){ format_t(fmt, log_level, args...); } template <typename ...Args> void debug(str fmt, Args... args){ format_t(fmt, "debug", args...); } template <typename ...Args> void info(str fmt, Args... args){ format_t(fmt, "info", args...); } template <typename ...Args> void warning(str fmt, Args... args){ format_t(fmt, "warning", args...); } template <typename ...Args> void crash(str fmt, Args... args, int exit_code = 0){ format_t(fmt, "crash", args...); std::exit(exit_code); } // without args void log(str fmt, str log_level) { format_t(fmt, log_level); } void debug(str fmt){ format_t(fmt, "debug"); } void info(str fmt){ format_t(fmt, "info"); } void warning(str fmt){ format_t(fmt, "warning"); } void crash(str fmt){ format_t(fmt, "crash"); } }; extern Logger logger; }
0c0e1fedef32ef7744838f5d0b724119c0552f12
65aac98868973869c0a15dfc1b896a995a67f510
/Connect6.cpp
638510b59afd7bb6c1e4d69b1c22ca706f5fff55
[]
no_license
SmirnoffAlexander/Implementation-of-Connect6-game
317fbcfec745c0b80fd9d310703365d8ba6306d1
d86752a680a0d26f1887a6048e7f973fa089a49b
refs/heads/master
2022-05-05T10:03:50.438659
2018-06-01T14:48:31
2018-06-01T14:48:31
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
23,047
cpp
Connect6.cpp
// Connect6.cpp: определяет точку входа для приложения. // #include "stdafx.h" #include "Connect6.h" #include <windowsx.h> #include "Vars.h" int mark = 0; bool step; int left1; int top1; vector <int> steps_i; vector <int> steps_j; void TSS(int field[19][19], int copy_field[19][19], int* current_step1_i, int* current_step1_j, int* current_step2_i, int* current_step2_j, vector <int> *i_first, vector <int> *j_first, vector <int> *i_second, vector <int> *j_second) { copy(field, copy_field); /*if (black_threats(field) > 0) { make_six(field, current_step1_i, current_step1_j, current_step2_i, current_step2_j); }*/ if (white_threats(field) > 0 && black_threats(field) == 0) { best_move_v2(field, copy_field, 2, current_step1_i, current_step1_j, current_step2_i, current_step2_j); } else { if (i_first->size() == 0) { if (threat_space_search(copy_field, 0, i_first, j_first, i_second, j_second) == true) { mark++; } else if (threat_space_search(copy_field, 0, i_first, j_first, i_second, j_second) == false) { best_move_v2(field, copy_field, 2, current_step1_i, current_step1_j, current_step2_i, current_step2_j); } } /*if (i_first->size() > 0) { /*field[(*i_first)[i_first->size() - *mark]][(*j_first)[j_first->size() - *mark]] = 1; field[(*i_second)[i_second->size() - *mark]][(*j_second)[j_second->size() - *mark]] = 1; *mark++; } */ } } #define MAX_LOADSTRING 100 int alg = 1; void is_empty(int board[19][19]); GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; Status st = GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); // Глобальные переменные: HINSTANCE hInst; // текущий экземпляр WCHAR szTitle[MAX_LOADSTRING]; // Текст строки заголовка WCHAR szWindowClass[MAX_LOADSTRING]; // имя класса главного окна // Отправить объявления функций, включенных в этот модуль кода: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); // TODO: разместите код здесь. // Инициализация глобальных строк LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadStringW(hInstance, IDC_CONNECT6, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Выполнить инициализацию приложения: if (!InitInstance(hInstance, nCmdShow)) { return FALSE; } HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_CONNECT6)); MSG msg; // Цикл основного сообщения: while (GetMessage(&msg, nullptr, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return (int)msg.wParam; } // // ФУНКЦИЯ: MyRegisterClass() // // НАЗНАЧЕНИЕ: регистрирует класс окна. // ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEXW wcex; wcex.cbSize = sizeof(WNDCLASSEX); HBITMAP hBitmap = LoadBitmap(hInstance, MAKEINTRESOURCE(IDB_BITMAP1)); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1)); wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); //wcex.hbrBackground = (HBRUSH)(CreateSolidBrush(RGB(255, 175, 0))); // window color wcex.hbrBackground = CreatePatternBrush(hBitmap); wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_CONNECT6); wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_ICON1)); return RegisterClassExW(&wcex); } // // ФУНКЦИЯ: InitInstance(HINSTANCE, int) // // НАЗНАЧЕНИЕ: сохраняет обработку экземпляра и создает главное окно. // // КОММЕНТАРИИ: // // В данной функции дескриптор экземпляра сохраняется в глобальной переменной, а также // создается и выводится на экран главное окно программы. // BOOL GetGameBoardRect(HWND hWnd, RECT* pRect) { RECT rc; if (GetClientRect(hWnd, &rc)) { int width = rc.right - rc.left; int height = rc.bottom - rc.top; pRect->left = (width - 20 * CELL_SIZE) / 2; pRect->top = (height - 20 * CELL_SIZE) / 2; pRect->right = pRect->left + 20 * CELL_SIZE; pRect->bottom = pRect->top + 20 * CELL_SIZE; return TRUE; } SetRectEmpty(pRect); return FALSE; } BOOL GetCellRect(HWND hWnd, RECT *pRect, int row__, int col__) { RECT rcBoard; SetRectEmpty(pRect); if (col__ < 0 || row__ > 18 || row__ < 0 || col__ > 18) { return FALSE; } if (GetGameBoardRect(hWnd, &rcBoard)) { //Row //Column pRect->left = rcBoard.left + col__ * CELL_SIZE + CELL_SIZE / 2; pRect->top = rcBoard.top + row__ * CELL_SIZE + CELL_SIZE / 2; pRect->right = CELL_SIZE + pRect->left; pRect->bottom = pRect->top + CELL_SIZE; x1 = pRect->left; y4 = pRect->top; x2 = pRect->right; y2 = pRect->bottom; return TRUE; } return FALSE; } int GetCellNumberFromPoint(HWND hwnd, int x, int y) { RECT rc; POINT pt = { x,y }; if (GetGameBoardRect(hwnd, &rc)) { if (PtInRect(&rc, pt)) { x = pt.x - rc.left; y = pt.y - rc.top; int col = (x / (CELL_SIZE / 2) - 1) / 2; int row = (y / (CELL_SIZE / 2) - 1) / 2; col_ = col; row_ = row; return row; } } return -1; } // // ФУНКЦИЯ: WndProc(HWND, UINT, WPARAM, LPARAM) // // НАЗНАЧЕНИЕ: обрабатывает сообщения в главном окне. // // WM_COMMAND — обработать меню приложения // WM_PAINT — отрисовать главное окно // WM_DESTROY — отправить сообщение о выходе и вернуться // // LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: { HICON hIcon1 = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON1)); SendMessage(hWnd, WM_SETICON, 1, (LPARAM)hIcon1); } break; case WM_CREATE: { int l, t, w, h; RECT rc; if (GetClientRect(hWnd, &rc)) { l = rc.left + 30; t = rc.top + 25; } HWND hwndButton = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Undo", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BN_CLICKED, // Styles l, t, 90, 36, hWnd, // Parent window (HMENU) ID_BUTTON1, // No menu. (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), NULL); // Pointer not needed. UpdateWindow(hWnd); HWND hwndButton1 = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"New Game", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BN_CLICKED, // Styles l, t + 61, 90, 36, hWnd, // Parent window (HMENU)ID_BUTTON2, // No menu. (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), NULL); // Pointer not needed. UpdateWindow(hWnd); HWND hwndButton2 = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Level 1", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_AUTORADIOBUTTON, // Styles l, t + 122, 90, 36, hWnd, // Parent window (HMENU)ID_BUTTON3, // No menu. (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), NULL); // Pointer not needed. UpdateWindow(hWnd); HWND hwndButton3 = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Level 2", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_AUTORADIOBUTTON, // Styles l, t + 183, 90, 36, hWnd, // Parent window (HMENU)ID_BUTTON4, // No menu. (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), NULL); // Pointer not needed. UpdateWindow(hWnd); HWND hwndButton4 = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Level 3", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_AUTORADIOBUTTON, // Styles l, t + 244, 90, 36, hWnd, // Parent window (HMENU)ID_BUTTON5, // No menu. (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), NULL); // Pointer not needed. UpdateWindow(hWnd); } break; case WM_COMMAND: { int wmId = LOWORD(wParam); // Разобрать выбор в меню: switch (wmId) { case IDD_ABOUTBOX: { MessageBox(hWnd, L"Two players,Black and White, alternately place two stones of their own colour," " black and white respectively, on empty intersections of a Go-like board, except that Black," "(the first player) places one stone only for the first move. The one who gets six or more " "stones in a row (horizontally, vertically or diagonally) first wins the game.",L"Rules", MB_OK | MB_ICONINFORMATION); } break; case ID_BUTTON1: { if (steps_i.size() > 0) { if (flag % 3 == 1) { board[steps_i[steps_i.size() - 1]][steps_j[steps_j.size() - 1]] = 0; board[steps_i[steps_i.size() - 2]][steps_j[steps_j.size() - 2]] = 0; board[steps_i[steps_i.size() - 3]][steps_j[steps_j.size() - 3]] = 0; steps_i.pop_back(); steps_j.pop_back(); steps_i.pop_back(); steps_j.pop_back(); steps_i.pop_back(); steps_j.pop_back(); flag--; InvalidateRect(hWnd, NULL, TRUE); UpdateWindow(hWnd); } else if (flag % 3 == 0) { board[steps_i[steps_i.size() - 1]][steps_j[steps_j.size() - 1]] = 0; steps_i.pop_back(); steps_j.pop_back(); flag -= 2; InvalidateRect(hWnd, NULL, TRUE); UpdateWindow(hWnd); } } } break; case ID_BUTTON2: { int ret = MessageBoxA(hWnd, "Are you sure you want to start a new game?", "New Game", MB_YESNO| MB_ICONQUESTION); if (IDYES == ret) { for (int i = 0; i < 19; i++) { for (int j = 0; j < 19; j++) { board[i][j] = 0; } } flag = 0; winner = 0; mark = 0; i_first.clear(); j_first.clear(); i_second.clear(); j_second.clear(); InvalidateRect(hWnd, NULL, TRUE); UpdateWindow(hWnd); steps_i.clear(); steps_j.clear(); } else if (ret == IDNO) { } } break; case ID_BUTTON3: { alg = 1; } break; case ID_BUTTON4: { alg = 2; } break; case ID_BUTTON5: { alg = 3; } break; case IDM_ABOUT: DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } } break; case WM_LBUTTONDOWN: { int xPos = GET_X_LPARAM(lParam); int yPos = GET_Y_LPARAM(lParam); int index = GetCellNumberFromPoint(hWnd, xPos, yPos); HDC hdc = GetDC(hWnd); Pen blackPen(Color(250, 0, 0, 0)); SolidBrush whiteBrush(Color(255, 230, 230, 230)); SolidBrush blackBrush(Color(255, 50, 50, 50)); Graphics el(hdc); if (NULL != hdc) { //WCHAR temp[100]; //wsprintf(temp, L"Index = %d", end_game()); //TextOut(hdc, xPos, yPos, temp, lstrlen(temp)); if (index != -1) { RECT rcCell; if (GetCellRect(hWnd,&rcCell,row_,col_)) { HPEN Pen1, Pen2; //Pen1 = CreatePen(PS_SOLID, 1, RGB(230, 230, 230)); //Pen2 = CreatePen(PS_SOLID, 1, RGB(50, 50, 50)); if ((flag % 3 == 1)&& (board[row_][col_] == 0) && (end_game(hdc,board) == 0)) { board[row_][col_] = 2; steps_i.push_back(row_); steps_j.push_back(col_); last_i1 = row_; last_j1 = col_; //HBRUSH hBrush; end_game(hdc,board); //hBrush = CreateSolidBrush(RGB(230, 230, 230)); //SelectObject(hdc, hBrush); //SelectObject(hdc, Pen1); winner = end_game(hdc,board); //Ellipse(hdc, x1 + 3, y4 + 3, x2 - 3, y2 - 3); //if (flag % 4 == 2) //{ // make_six(board); //} RectF ellipseRect1(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); //el.SetSmoothingMode(SmoothingModeHighSpeed); SmoothingMode mode1 = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect1); el.FillEllipse(&whiteBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); flag+=2; } else if ((flag % 3 == 0) && (board[row_][col_] == 0) && (end_game(hdc,board) == 0)) { board[row_][col_] = 2; steps_i.push_back(row_); steps_j.push_back(col_); last_i2 = row_; last_j2 = col_; HBRUSH hBrush; end_game(hdc,board); RectF ellipseRect2(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); //el.SetSmoothingMode(SmoothingModeHighSpeed); SmoothingMode mode2 = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect2); el.FillEllipse(&whiteBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); if (end_game(hdc,board) == 0) { //best_move_v2(board, copy_board, 2,&current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j); //attack_2(board, copy_board, &current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j); //step = false; if (alg == 3) { if (black_threats(board) > 0) { make_six(board, &current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j); } else { if (mark == 0) { TSS(board, copy_board, &current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j, &i_first, &j_first, &i_second, &j_second); ///step = true; } if ((mark > 0) && (i_first.size() - mark >= 0) && (black_threats(board) == 0)) { current_step1_i = i_first[i_first.size() - mark]; current_step1_j = j_first[j_first.size() - mark]; current_step2_i = i_second[i_second.size() - mark]; current_step2_j = j_second[j_second.size() - mark]; board[i_first[i_first.size() - mark]][j_first[j_first.size() - mark]] = 1; board[i_second[i_second.size() - mark]][j_second[j_second.size() - mark]] = 1; mark++; } } } else if (alg == 2) { attack_2(board, copy_board, &current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j); } else if (alg == 1) { attack_1(board, copy_board, &current_step1_i, &current_step1_j, &current_step2_i, &current_step2_j, last_i1, last_i2, last_j1, last_j2); } steps_i.push_back(current_step1_i); steps_j.push_back(current_step1_j); steps_i.push_back(current_step2_i); steps_j.push_back(current_step2_j); GetCellRect(hWnd, &rcCell, current_step1_i, current_step1_j); RectF ellipseRect3(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); //el.SetSmoothingMode(SmoothingModeHighSpeed); SmoothingMode mode3 = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect3); el.FillEllipse(&blackBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); GetCellRect(hWnd, &rcCell, current_step2_i, current_step2_j); RectF ellipseRect4(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); //el.SetSmoothingMode(SmoothingModeHighSpeed); SmoothingMode mode4 = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect4); el.FillEllipse(&blackBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); } winner = end_game(hdc, board); flag++; } if (winner == 1 || winner == 2) { MessageBox(hWnd, (winner == 1) ? L"First player is winner!" : L"Second player is winner!", L"У нас есть победитель!", MB_OK | MB_ICONINFORMATION); } else if (winner == 3) { MessageBox(hWnd, L"Oh! We have no winners!", L"It is draw!", MB_OK | MB_ICONEXCLAMATION); } } } ReleaseDC(hWnd, hdc); } } break; case WM_GETMINMAXINFO: { MINMAXINFO * pinmax = (MINMAXINFO*)lParam; pinmax->ptMinTrackSize.x = CELL_SIZE * 28; pinmax->ptMinTrackSize.y = CELL_SIZE * 23; } break; case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); Pen blackPen(Color(250, 0, 0, 0)); SolidBrush whiteBrush(Color(255, 230, 230, 230)); SolidBrush blackBrush(Color(255, 50, 50, 50)); Graphics el(hdc); // TODO: Добавьте сюда любой код прорисовки, использующий HDC... RECT rc; if (flag == 0) { //board[9][9] = 1; //HBRUSH h_Brush; //h_Brush = CreateSolidBrush(RGB(50, 50, 50)); //SelectObject(hdc, h_Brush); //winner = end_game(hdc); //SelectObject(hdc, Pen2); //Ellipse(hdc, x1 + 3, y4 + 3, x2 - 3, y2 - 3); board[9][9] = 1; flag++; } if (GetGameBoardRect(hWnd, &rc)) { /*RECT rcClient; if (GetClientRect(hWnd, &rcClient)) { const WCHAR szPlayer2 []= L"Второй игрок"; SetBkColor(hdc, RGB(0,100,0)); SetBkMode(hdc, TRANSPARENT); TextOut(hdc, rc.left ,rc.top, szPlayer1, 12); SetTextColor(hdc, RGB(240, 250, 240)); // TextOut(hdc, rcClient.right - 104, 16, szPlayer2, 12); //ShowTurn(hWnd, hdc); }*/ HBRUSH hBrush; hBrush = CreateSolidBrush(RGB(212, 144, 72)); //SelectObject(hdc, Pen2); SelectObject(hdc, hBrush); //FillRect(hdc, &rc, (HBRUSH)GetStockObject(LTGRAY_BRUSH)); Rectangle(hdc, rc.left, rc.top, rc.right, rc.bottom); int a = rc.left; int b = rc.top; left1 = a; top1 = b; //bottom1++; } // vert lines for (int i = CELL_SIZE; i < 20 * CELL_SIZE; i += CELL_SIZE) { //SelectObject(hdc, Pen2); DrawLine(hdc, rc.left + i, rc.top, rc.left + i, rc.bottom); DrawLine(hdc, rc.left, rc.top + i, rc.right, rc.top + i); }// hor lines HBRUSH hBrush; hBrush = CreateSolidBrush(RGB(29, 35, 36)); SelectObject(hdc, hBrush); Ellipse(hdc, rc.left + 4 * CELL_SIZE - 5, rc.top + 4 * CELL_SIZE - 5, 5 + rc.left + 4 * CELL_SIZE, 5 + rc.top + 4 * CELL_SIZE); Ellipse(hdc, rc.left + 16 * CELL_SIZE - 5, rc.top + 4 * CELL_SIZE - 5, 5 + rc.left + 16 * CELL_SIZE, 5 + rc.top + 4 * CELL_SIZE); Ellipse(hdc, rc.left + 10 * CELL_SIZE - 5, rc.top + 4 * CELL_SIZE - 5, 5 + rc.left + 10 * CELL_SIZE, 5 + rc.top + 4 * CELL_SIZE); Ellipse(hdc, rc.left + 4 * CELL_SIZE - 5, rc.top + 10 * CELL_SIZE - 5, 5 + rc.left + 4 * CELL_SIZE, 5 + rc.top + 10 * CELL_SIZE); Ellipse(hdc, rc.left + 4 * CELL_SIZE - 5, rc.top + 16 * CELL_SIZE - 5, 5 + rc.left + 4 * CELL_SIZE, 5 + rc.top + 16 * CELL_SIZE); Ellipse(hdc, rc.left + 16 * CELL_SIZE - 5, rc.top + 10 * CELL_SIZE - 5, 5 + rc.left + 16 * CELL_SIZE, 5 + rc.top + 10 * CELL_SIZE); Ellipse(hdc, rc.left + 16 * CELL_SIZE - 5, rc.top + 16 * CELL_SIZE - 5, 5 + rc.left + 16 * CELL_SIZE, 5 + rc.top + 16 * CELL_SIZE); Ellipse(hdc, rc.left + 10 * CELL_SIZE - 5, rc.top + 16 * CELL_SIZE - 5, 5 + rc.left + 10 * CELL_SIZE, 5 + rc.top + 16 * CELL_SIZE); Ellipse(hdc, rc.left + 10 * CELL_SIZE - 5, rc.top + 10 * CELL_SIZE - 5, 5 + rc.left + 10 * CELL_SIZE, 5 + rc.top + 10 * CELL_SIZE); for (int i = 0; i < 19; i++) { for (int j = 0; j < 19; j++) { if (board[i][j] != 0) { if (board[i][j] == 1) { x1 = rc.left + j * CELL_SIZE + CELL_SIZE / 2; y4 = rc.top + i * CELL_SIZE + CELL_SIZE / 2; x2 = CELL_SIZE + x1; y2 = y4 + CELL_SIZE; RectF ellipseRect_x(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); //el.SetSmoothingMode(SmoothingModeHighSpeed); SmoothingMode mode_x = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect_x); el.FillEllipse(&blackBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); } else if (board[i][j] == 2) { x1 = rc.left + j*CELL_SIZE + CELL_SIZE / 2; y4 = rc.top + i*CELL_SIZE + CELL_SIZE / 2; x2 = CELL_SIZE + x1; y2 = y4 + CELL_SIZE; RectF ellipseRect_y(x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); SmoothingMode mode_y = el.GetSmoothingMode(); el.SetSmoothingMode(SmoothingModeHighQuality); el.DrawEllipse(&blackPen, ellipseRect_y); el.FillEllipse(&whiteBrush, x1 + 3, y4 + 3, CELL_SIZE - 6, CELL_SIZE - 6); } } } } //end_game(hdc); EndPaint(hWnd, &ps); } break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } // Обработчик сообщений для окна "О программе". INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: return (INT_PTR)TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return (INT_PTR)TRUE; } break; } return (INT_PTR)FALSE; } BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { hInst = hInstance; // Сохранить дескриптор экземпляра в глобальной переменной HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); if (!hWnd) { return FALSE; } RECT rc; ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); //is_empty(board); return TRUE; } void is_empty(int field[19][19]) { for (int i = 0; i < 19; i++) { for (int j = 0; j < 19; j++) { board[i][j] = 0; } } //attack(board); } //#include <string>
99a2bb2e408f32d4424919e48303f0a47f2d4558
3d5233fb90e63236fdabe6f14b3744f7353f85a8
/02 - Taller f(n)/3 - Algoritmo [Con Nodos].cpp
e9e3e6f4fac9fa2acd98a375aa10509d2ccd79a0
[]
no_license
USERCALL/Ciencias1_UD
8dc41e495e648fd528c5da8fea1107a4dea407a4
5e76b57c4c5a6d9c809e5bff377a407a7351fd5e
refs/heads/master
2021-06-12T18:24:57.525949
2017-04-07T16:09:20
2017-04-29T01:29:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
752
cpp
3 - Algoritmo [Con Nodos].cpp
//Diego Hernandez -> 20141020271 // Cristian Rios -> 20141020058 //Ciencias Computacion I (2017-02-07) #include <iostream> using namespace std; struct nodo{ int x,y; nodo *sig; }; int main(int argc, char** argv) { nodo *CAB = NULL, *AUX; int N, i, bytes; bytes=sizeof(&CAB); cout<<"Ingerse N: "; cin>>N; for(i=0;i<N;i++){ AUX = new nodo; AUX -> x=i; AUX -> y=N-i; AUX->sig=CAB; CAB=AUX; } AUX=CAB; while(AUX!=NULL){ bytes = bytes + sizeof(AUX->x) + sizeof(AUX->y) + sizeof(&AUX); cout<<AUX->x<<AUX->y<<endl; AUX=AUX->sig; } for(AUX=CAB->sig;AUX!=NULL;AUX=AUX->sig){ delete CAB; CAB=AUX; } bytes = bytes + sizeof(N) + sizeof(i); cout<<"el Numero de bytes es: "<<bytes<<endl; return 0; system("Pause"); }
2c8bdec34c30f4225143d946c45eecaa15c836ba
da6f22c03eb57e4d76665adac5542622aaa7358d
/TradingSDI/TradingSDI/Duplicate_OrderTable.h
1af53d23c2fa4c860038b3883d14dcd6f05949d0
[]
no_license
15831944/Trading
0a5246d8ac78a0a087bb4ce58bb811248af9a4ad
ddf28c0882d29f1e6389f505e24dbe7422114d3f
refs/heads/master
2020-09-11T10:28:03.148204
2017-12-30T07:25:19
2017-12-30T07:25:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,063
h
Duplicate_OrderTable.h
#include <atldbcli.h> #include "Grid_CheckTrade.h" class Duplicate_OrderTable { public: TCHAR m_order[31]; TCHAR m_deal[31]; TCHAR m_login[31]; TCHAR m_symbol[31]; TCHAR m_volume[31]; TCHAR m_price[31]; DBSTATUS m_dworderStatus; DBSTATUS m_dwdealStatus; DBSTATUS m_dwloginStatus; DBSTATUS m_dwsymbolStatus; DBSTATUS m_dwvolumeStatus; DBSTATUS m_dwpriceStatus; DBLENGTH m_dworderLength; DBLENGTH m_dwdealLength; DBLENGTH m_dwloginLength; DBLENGTH m_dwsymbolLength; DBLENGTH m_dwvolumeLength; DBLENGTH m_dwpriceLength; BEGIN_COLUMN_MAP(Duplicate_OrderTable) COLUMN_ENTRY_LENGTH_STATUS(1, m_order, m_dworderLength, m_dworderStatus) COLUMN_ENTRY_LENGTH_STATUS(2, m_deal, m_dwdealLength, m_dwdealStatus) COLUMN_ENTRY_LENGTH_STATUS(3, m_login, m_dwloginLength, m_dwloginStatus) COLUMN_ENTRY_LENGTH_STATUS(4, m_symbol, m_dwsymbolLength, m_dwsymbolStatus) COLUMN_ENTRY_LENGTH_STATUS(5, m_volume, m_dwvolumeLength, m_dwvolumeStatus) COLUMN_ENTRY_LENGTH_STATUS(6, m_price, m_dwpriceLength, m_dwpriceStatus) END_COLUMN_MAP() };
a3f8e1cc45f83a0084d3b7c91a942fc44db0948e
3033de396fe3ef4e65d52bcaf77dc21b9b2aaebc
/configdlg.cpp
e9daa00e01dd1503f31e91b02c764ae4647c827d
[]
no_license
davidivanmarsh/TORQUEView
58ec7440f5fd136fe1bc00f726766c0967d499c9
76a2c7f7f675a501adaee84f5e3b405622028d24
refs/heads/master
2021-01-10T19:02:00.745687
2014-12-16T20:53:11
2014-12-16T20:53:11
24,952,658
8
1
null
null
null
null
UTF-8
C++
false
false
26,090
cpp
configdlg.cpp
/* * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * The Original Code is: configdlg.cpp. * The Initial Developer of the Original Code is David I. Marsh. * All Rights Reserved. * Contributor(s): Ken Nielson. */ #include "configdlg.h" #include "ui_configdlg.h" #include "mainwindow.h" #include "remoteservercomboboxeditdlg.h" #include "configitempropertiesdlg.h" #include <QSettings> #include <QMessageBox> /******************************************************************************* * *******************************************************************************/ ConfigDlg::ConfigDlg(QWidget *parent) : QDialog(parent), ui(new Ui::ConfigDlg) { ui->setupUi(this); CreateContextMenus(); m_mainWindow = dynamic_cast<MainWindow*>(parent); if (m_mainWindow == NULL) { return; } connect(ui->checkBox_UsingMultiMoms, SIGNAL(stateChanged(int)), this, SLOT(on_checkBox_UsingMultiMoms_stateChanged())); // connect( comboboxEdit, SIGNAL( activated( const QString& ) ), // this, SLOT( itemActivated( const QString& ) ) ); // set column widths ui->treeWidget_Commands->header()->resizeSection(0, 280); // ui->treeWidget_Commands->header()->resizeSection(1, 285); } /******************************************************************************* * *******************************************************************************/ ConfigDlg::~ConfigDlg() { delete ui; } /******************************************************************************* * *******************************************************************************/ QString ConfigDlg::getRemoteServer() { return m_remoteServer; } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::CreateContextMenus() { ui->treeWidget_Commands->addAction(ui->actionShow_Properties); ui->treeWidget_Commands->setContextMenuPolicy(Qt::ActionsContextMenu); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::init() { // get remote location if (! m_mainWindow->m_Config_RemoteServerList.isEmpty() ) { foreach (QString s, m_mainWindow->m_Config_RemoteServerList) { ui->comboBox_Remote_Server->addItem(s); } } if (! m_mainWindow->m_Config_RemoteServer.isEmpty() ) { int itemIndex = ui->comboBox_Remote_Server->findText( m_mainWindow->m_Config_RemoteServer ); // now try to find it in the combobox list if (itemIndex != -1) // if we found it ui->comboBox_Remote_Server->setCurrentIndex(itemIndex); // select it } // get local/remote radiobutton state -- either "Remote" or "Local" if ( m_mainWindow->m_Config_DataSource == 0 ) // if is Local { ui->rbtn_Local->setChecked(true); ui->comboBox_Remote_Server->setEnabled(false); updateCommandListWithLocal(); // with local settings } else // else is Remote { ui->rbtn_Remote->setChecked(true); ui->comboBox_Remote_Server->setEnabled(true); QString remoteServer = ui->comboBox_Remote_Server->currentText(); updateCommandListWithRemote(remoteServer); } ui->checkBox_UsingMultiMoms->setChecked( m_mainWindow->m_Config_UsingMultiMoms ); ui->checkBox_UseServiceToStartStopMOMs->setChecked( m_mainWindow->m_Config_UseServiceToStartStopMOMs ); ui->checkBox_Call_Qstat_With_T_Flag->setChecked( m_mainWindow->m_Config_Call_Qstat_with_T_Flag ); // ui->spinBox_RowCount->setValue( m_mainWindow->m_Config_HeatMapRowCount ); // ui->spinBox_RowHeight->setValue( m_mainWindow->m_Config_HeatMapRowHeight ); // ui->spinBox_ColumnWidth->setValue( m_mainWindow->m_Config_HeatMapColumnWidth ); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::updateCommandListWithLocal() { ui->treeWidget_Commands->clear(); QTreeWidgetItem* item = NULL; item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("List nodes and node states")); item->setText(1, m_mainWindow->SETTINGS_CMD_Pbsnodes); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show MOM diagnostics below level 2")); item->setText(1, m_mainWindow->SETTINGS_CMD_Momctl_d3); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show job info for all jobs (with \"qstat -t\" job array flag)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Qstat_a_with_T); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show job info for all jobs (without \"qstat -t\" job array flag)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Qstat_a_without_T); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show detailed job info (with \"qstat -t\" job array flag)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Qstat_f_with_T); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show detailed job info (without \"qstat -t\" job array flag)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Qstat_f_without_T); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("PBS Queue Manager interface")); item->setText(1, m_mainWindow->SETTINGS_CMD_Qmgr_c); QTreeWidgetItem* startMOMitem = new QTreeWidgetItem(ui->treeWidget_Commands); startMOMitem->setText(0, QString("Start MOM")); startMOMitem->setExpanded(true); QTreeWidgetItem* subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Standard format - Head node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Standard); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Standard format - Compute node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Standard); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Multimom format - Head node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Multimom); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Multimom format - Compute node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Multimom); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Service format - Head node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Service); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Service format - Compute node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Service); QTreeWidgetItem* stopMOMitem = new QTreeWidgetItem(ui->treeWidget_Commands); stopMOMitem->setText(0, QString("Stop MOM")); stopMOMitem->setExpanded(true); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Standard & Multimom format - Head node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StopMOM_HeadNode_Standard); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Standard & Multimom format - Compute node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StopMOM_ComputeNode_Standard); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Service format - Head node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StopMOM_HeadNode_Service); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Service format - Compute node")); subitem->setText(1, m_mainWindow->SETTINGS_CMD_StopMOM_ComputeNode_Service); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Mark node as OFFLINE")); item->setText(1, m_mainWindow->SETTINGS_CMD_MarkNodeAsOFFLINE); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Clear OFFLINE from node")); item->setText(1, m_mainWindow->SETTINGS_CMD_ClearOFFLINEFromNode); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Add note")); item->setText(1, m_mainWindow->SETTINGS_CMD_AddNote); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Remove note")); item->setText(1, m_mainWindow->SETTINGS_CMD_RemoveNote); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Tail log file")); item->setText(1, m_mainWindow->SETTINGS_CMD_Tail); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Grep a log file")); item->setText(1, m_mainWindow->SETTINGS_CMD_Grep); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Cat a file")); item->setText(1, m_mainWindow->SETTINGS_CMD_Cat); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Scp a file (remote to local)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Scp_FromRemoteToLocal); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Scp a file (local to remote)")); item->setText(1, m_mainWindow->SETTINGS_CMD_Scp_FromLocalToRemote); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Copy a file")); item->setText(1, m_mainWindow->SETTINGS_CMD_Cp); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("'ls' command")); item->setText(1, m_mainWindow->SETTINGS_CMD_Ls); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Get pbs_server home dir")); item->setText(1, m_mainWindow->SETTINGS_CMD_GetServerHome); // NOT NEEDED YET: // item = new QTreeWidgetItem(ui->treeWidget_Commands); // item->setText(0, QString("Get pbs_mom home dir")); // item->setText(1, m_mainWindow->SETTINGS_CMD_GetMOMHome); // job commands: item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Modify job")); item->setText(1, m_mainWindow->SETTINGS_CMD_ModifyJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Delete job")); item->setText(1, m_mainWindow->SETTINGS_CMD_DeleteJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Put job on hold")); item->setText(1, m_mainWindow->SETTINGS_CMD_PutJobOnHold); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Move job to another queue")); item->setText(1, m_mainWindow->SETTINGS_CMD_MoveJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Change order of job")); item->setText(1, m_mainWindow->SETTINGS_CMD_ReorderJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Rerun job")); item->setText(1, m_mainWindow->SETTINGS_CMD_RerunJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Select job")); item->setText(1, m_mainWindow->SETTINGS_CMD_SelectJob); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Send signal to job")); item->setText(1, m_mainWindow->SETTINGS_CMD_SendSignalToJob); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::updateCommandListWithRemote( QString remoteServer ) // with remote settings { ui->treeWidget_Commands->clear(); QTreeWidgetItem* item = NULL; item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("List nodes and node states")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Pbsnodes)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show MOM diagnostics below level 2")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Momctl_d3)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show job info for all jobs (with \"qstat -t\" job array flag)")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Qstat_a_with_T)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show job info for all jobs (without \"qstat -t\" job array flag)")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Qstat_a_without_T)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show detailed job info (with \"qstat -t\" job array flag)")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Qstat_f_with_T)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Show detailed job info (without \"qstat -t\" job array flag)")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Qstat_f_without_T)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("PBS Queue Manager interface")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Qmgr_c)); QTreeWidgetItem* startMOMitem = new QTreeWidgetItem(ui->treeWidget_Commands); startMOMitem->setText(0, QString("Start MOM")); startMOMitem->setExpanded(true); QTreeWidgetItem* subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Standard format - Head node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Standard)); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Standard format - Compute node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Standard)); // QColor backgroundcolor = QColor("lightgreen"); // item->setBackgroundColor(1, backgroundcolor); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Multimom format - Head node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Multimom)); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Multimom format - Compute node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Multimom)); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Service format - Head node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_HeadNode_Service)); subitem = new QTreeWidgetItem(startMOMitem); subitem->setText(0, QString("Service format - Compute node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StartMOM_ComputeNode_Service)); QTreeWidgetItem* stopMOMitem = new QTreeWidgetItem(ui->treeWidget_Commands); stopMOMitem->setText(0, QString("Stop MOM")); stopMOMitem->setExpanded(true); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Standard & Multimom format - Head node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StopMOM_HeadNode_Standard)); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Standard & Multimom format - Compute node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StopMOM_ComputeNode_Standard)); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Service format - Head node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StopMOM_HeadNode_Service)); subitem = new QTreeWidgetItem(stopMOMitem); subitem->setText(0, QString("Service format - Compute node")); subitem->setText(1, QString("ssh -o BatchMode=yes %1 \"%2").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_StopMOM_ComputeNode_Service)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Mark node as OFFLINE")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_MarkNodeAsOFFLINE)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Clear OFFLINE from node")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_ClearOFFLINEFromNode)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Add note")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_AddNote)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Remove note")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_RemoveNote)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Tail log file")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Tail)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Grep a log file")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Grep)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Cat a file")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Cat)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Scp a file (remote to local)")); item->setText(1, QString("%1 %2").arg(m_mainWindow->SETTINGS_CMD_Scp_FromRemoteToLocal).arg(m_mainWindow->m_Config_RemoteServer)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Scp a file (local to remote)")); item->setText(1, QString("%1 %2").arg(m_mainWindow->SETTINGS_CMD_Scp_FromLocalToRemote).arg(m_mainWindow->m_Config_RemoteServer)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Copy a file")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Cp)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("'ls' command")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_Ls)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Get pbs_server home dir")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_GetServerHome)); // NOT NEEDED YET: // item = new QTreeWidgetItem(ui->treeWidget_Commands); // item->setText(0, QString("Get pbs_mom home dir")); // item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_GetMOMHome)); // job commands: item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Modify job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_ModifyJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Delete job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_DeleteJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Put job on hold")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_PutJobOnHold)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Move job to another queue")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_MoveJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Change order of job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_ReorderJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Rerun job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_RerunJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Select job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_SelectJob)); item = new QTreeWidgetItem(ui->treeWidget_Commands); item->setText(0, QString("Send signal to job")); item->setText(1, QString("ssh -o BatchMode=yes %1 \"%2\"").arg(remoteServer).arg(m_mainWindow->SETTINGS_CMD_SendSignalToJob)); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_checkBox_UsingMultiMoms_stateChanged() { if (ui->checkBox_UsingMultiMoms->isChecked()) { ui->checkBox_UseServiceToStartStopMOMs->setChecked(false); ui->checkBox_UseServiceToStartStopMOMs->setEnabled(false); } else { ui->checkBox_UseServiceToStartStopMOMs->setEnabled(true); } } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_rbtn_Remote_toggled(bool checked) { if (checked) // if "Remote" is checked { ui->comboBox_Remote_Server->setEnabled(true); QString remoteServer = ui->comboBox_Remote_Server->currentText(); updateCommandListWithRemote(remoteServer); } else // else "Local" is checked { ui->comboBox_Remote_Server->setEnabled(false); updateCommandListWithLocal(); // with local settings } } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_comboBox_Remote_Server_editTextChanged(const QString & text) { updateCommandListWithRemote(text); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_btnEditList_clicked() { // lets the user edit the RemoteServer list -- add, remove, etc. RemoteServerComboboxEditDlg dlg( m_mainWindow->m_Config_RemoteServerList, this ); if (!dlg.exec()) return; QStringList remoteServerList = dlg.m_List; m_mainWindow->m_Config_RemoteServerList = remoteServerList; // add combobox items to ui->comboBox_Remote_Server ui->comboBox_Remote_Server->clear(); ui->comboBox_Remote_Server->addItems(remoteServerList); } /******************************************************************************* * *******************************************************************************/ // the done() function is reimplemented from QDialog. It is called when the user // clicks OK or Cancel void ConfigDlg::done( int result ) { if ( result == QDialog::Accepted ) { if (ui->rbtn_Remote->isChecked()) m_mainWindow->m_Config_DataSource = dataSource_RemoteHost; // 1; else m_mainWindow->m_Config_DataSource = dataSource_LocalHost; // 0; m_mainWindow->m_Config_RemoteServer = ui->comboBox_Remote_Server->currentText(); m_mainWindow->m_Config_UsingMultiMoms = ui->checkBox_UsingMultiMoms->isChecked(); m_mainWindow->m_Config_UseServiceToStartStopMOMs = ui->checkBox_UseServiceToStartStopMOMs->isChecked(); m_mainWindow->m_Config_Call_Qstat_with_T_Flag = ui->checkBox_Call_Qstat_With_T_Flag->isChecked(); } QDialog::done( result ); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_treeWidget_Commands_itemActivated(QTreeWidgetItem * item, int column) { Q_UNUSED(column); // prevents warning // (so user can copy the text if desired) // QMessageBox::information( this, "Item properties", QString("%1\n\n%2").arg(item->text(0)).arg(item->text(1)), // QMessageBox::Ok, QMessageBox::Ok); ConfigItemPropertiesDlg dlg(item->text(0), item->text(1), this); dlg.exec(); } /******************************************************************************* * *******************************************************************************/ void ConfigDlg::on_actionShow_Properties_triggered() { // called when user right-clicks on an item in the Commands list QList<QTreeWidgetItem*> selectedItems = ui->treeWidget_Commands->selectedItems(); if ( selectedItems.size() > 0) { QTreeWidgetItem* item = selectedItems[0]; // list is single-select on_treeWidget_Commands_itemActivated(item, 0); } }
3a61f1d60c4c36e693849204c112b91c83defe87
f56768d4092e578f31a54158aec800fa9ce2cb15
/src/beta_nmf/divergence.h
c3248889c6fa6dd762de24dd17e8702a61562878
[]
no_license
faroit/beta-nmf
6849a86957924fb373bb849f5b4898a9b588978a
bcc1c4dbc1cbfbee3ebc4f4054131c30e3da1b8a
refs/heads/master
2021-01-18T08:29:41.846807
2014-06-05T14:07:08
2014-06-05T14:07:08
20,527,220
2
0
null
null
null
null
UTF-8
C++
false
false
1,335
h
divergence.h
// Author: Olivier Gillet (ol.gillet@gmail.com) // // Computation of beta-divergence. #ifndef BETA_NMF_DIVERGENCE_H_ #define BETA_NMF_DIVERGENCE_H_ #include <third_party/eigen3/Eigen/Eigen> namespace beta_nmf { template<typename T> typename T::Scalar BetaDivergenceEuclidian(const T& x, const T& y) { return 0.5 * ((x - y).pow(2.0)).sum(); } template<typename T> typename T::Scalar BetaDivergenceItakuraSaito(const T& x, const T& y) { return (x / y - (x / y).log()).sum() - (x.rows() * x.cols()); } template<typename T> typename T::Scalar BetaDivergenceKullbackLeibler(const T& x, const T& y) { return (x * (x / y).log() + y - x).sum(); } template<typename T> typename T::Scalar BetaDivergence( const T& x, const T& y, typename T::Scalar beta) { typedef typename T::Scalar Scalar; Scalar divergence(0); if (beta == Scalar(0.0)) { divergence = BetaDivergenceItakuraSaito(x, y); } else if (beta == Scalar(1.0)) { divergence = BetaDivergenceKullbackLeibler(x, y); } else if (beta == Scalar(2.0)) { divergence = BetaDivergenceEuclidian(x, y); } else { divergence = ( x.pow(beta) + (beta - 1) * y.pow(beta) - beta * x * y.pow(beta - 1) ).sum(); divergence /= (beta * (beta - 1)); } return divergence; } } // namespace beta_nmf #endif // BETA_NMF_DIVERGENCE_H_
2fe038cf6353d1d353aba9223081126eaaf2208c
3e499fac4a9c64a6a4e3cd76e60d194872c88e74
/libs/fungus_booster/fungus_util/common.cpp
63b0e85df29b2af2a36a0fdd6546e05693ccfaf5
[]
no_license
stonedcoldsoup/fungus_libs
976b5e87c7441c06b60def4eb7507c89a9951739
dcdc62579ef643acd3b732d6ff85fd5c48f3c9e3
refs/heads/master
2020-06-02T00:49:46.415826
2012-12-15T03:57:02
2012-12-15T03:57:02
null
0
0
null
null
null
null
UTF-8
C++
false
false
48
cpp
common.cpp
#include "common.h" namespace fungus_util { }
1fbcecdacb0863f7f5b60efe07b7aa8423ff0788
0c86bde8e4b1968d6bd582ba0a5d2941a54c04b5
/PA4/teller.h
8665119711cc8dcfb01cf6550cb5c80357641586
[]
no_license
etarthur/SystemsProgrammingCS2303
fd0d0b77033ecb8aba1e7229c526d6af74b047c1
0b9941c8f32be1c88bd73a308edda8a987e1b5b3
refs/heads/master
2021-04-30T06:59:30.457479
2018-02-14T16:24:34
2018-02-14T16:24:34
121,459,340
0
0
null
null
null
null
UTF-8
C++
false
false
991
h
teller.h
// teller.h -- Eric Arthur (etarthur) & Przemek Gardias (pmgardias) #ifndef TELLER_H_ #define TELLER_H_ #include "event.h" #include "eventqueue.h" /** * \class Teller * * \brief Teller is the derived class of Event that carries additional info such as idle_time for each specific teller */ class Teller: public Event { public: int idle_time; int time; Teller() {//empty constructor never used } Teller(int idle_t) {//used to initialize with specific idle time time = 0; idle_time = idle_t; } Event* add(); int getTime(); int getIdle(); void action_single_line(); void action_multiple_lines(); void add_time(int transaction_time); void process_transaction(int line_number); virtual ~Teller() { } private: }; /** * \class TellerQueue * * \brief TellerQueue is a derived class from EventQueue that does nothing extra, it only holds Customer objects though */ class TellerQueue: public EventQueue { public: TellerQueue() { } private: }; #endif /* TELLER_H_ */
031be2cfea3b7377a284a2614ab9d3bb580066bb
cd6abf50a9767e9d0e5b53e408dba4c6c6f3ac45
/iteration2/src/FThreshold.h
0ec0d595942b0628282e5f2038fc7b762359411b
[]
no_license
Michael-Cooper/FlashPhoto
92487b0779a6639f326a7746a3e3a4d2075d8d9a
772a8ed7a6cfd7cf7d47c484ccedfb472b172fb3
refs/heads/master
2021-01-17T19:13:55.705209
2016-08-03T04:47:03
2016-08-03T04:47:03
60,245,385
0
0
null
null
null
null
UTF-8
C++
false
false
334
h
FThreshold.h
// // // #ifndef FThreshold_H #define FThreshold_H #include "Filter.h" #include <string> class PixelBuffer; class ColorData; // class Mask; class FThreshold : public Filter { public: FThreshold(); std::string getName() ; void applyToBuffer(PixelBuffer* buffer, float newStrength[]); private: float strength; }; #endif
2821fe3109e5154d5a920a96bb0297185ecd352c
cc8a39e61c1de4f8657fe32a50249f369cf57577
/health_check/systemd/systemd-test.cpp
62b9cae11e94f06d9ce11348ce43a2d0d763db95
[ "BSD-3-Clause" ]
permissive
xcnix/HPC_Scripts
addfd3e765b9030980a05ce7565b0519a3226301
5be3870aedde320de55fcd9190936f8e84b11735
refs/heads/master
2023-06-23T06:28:52.470806
2018-10-11T20:06:13
2018-10-11T20:06:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,803
cpp
systemd-test.cpp
#include <stdio.h> #include <stdlib.h> #include <systemd/sd-bus.h> //nate@cisl-prescott:~/git/node-sentinel/build$ busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager GetUnitProcesses "s" cups.service //a(sus) 6 "/system.slice/cups.service" 1028 "/usr/sbin/cupsd -l" "/system.slice/cups.service" 1102 "/usr/lib/cups/notifier/dbus dbus://" "/system.slice/cups.service" 1106 "/usr/lib/cups/notifier/dbus dbus://" "/system.slice/cups.service" 1114 "/usr/lib/cups/notifier/dbus dbus://" "/system.slice/cups.service" 3056 "/usr/lib/cups/notifier/dbus dbus://" "/system.slice/cups.service" 3057 "/usr/lib/cups/notifier/dbus dbus://" // ///https://github.com/systemd/systemd/blob/8ef3d66d14122d809d0724b4bdfffd61d3d89b40/src/shared/bus-unit-util.c //http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html int main(int argc, char *argv[]) { sd_bus_error error = SD_BUS_ERROR_NULL; sd_bus_message *m = NULL; sd_bus *bus = NULL; const char *path; int r; /* Connect to the system bus */ r = sd_bus_open_system(&bus); if (r < 0) { fprintf(stderr, "Failed to connect to system bus: %s\n", strerror(-r)); goto finish; } /* Issue the method call and store the respons message in m */ r = sd_bus_call_method(bus, "org.freedesktop.systemd1", /* service to contact */ "/org/freedesktop/systemd1", /* object path */ "org.freedesktop.systemd1.Manager", /* interface name */ "StartUnit", /* method name */ &error, /* object to return error in */ &m, /* return message on success */ "ss", /* input signature */ "cups.service", /* first argument */ "replace"); /* second argument */ if (r < 0) { fprintf(stderr, "Failed to issue method call: %s\n", error.message); goto finish; } /* Parse the response message */ r = sd_bus_message_read(m, "o", &path); if (r < 0) { fprintf(stderr, "Failed to parse response message: %s\n", strerror(-r)); goto finish; } printf("Queued service job as %s.\n", path); finish: sd_bus_error_free(&error); sd_bus_message_unref(m); sd_bus_unref(bus); return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; }
bdf4a9700309e51aa2ba61be55e191b6bef77056
9e20d39fa21b5ccd657a511ff2c74185bd3bf482
/Test Project/Question14/Question14.hpp
5b94bd5be9be71a04b10c0b0c595b913d8e4a1db
[]
no_license
CoolNietzsche/cpp_exercises_solutions
309a358597e7bc9b01fd1195341a0618025faf6d
315477ca5743dca11074afe195fa88cf65482b95
refs/heads/master
2022-04-09T06:43:06.664871
2019-11-19T04:11:52
2019-11-19T04:11:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
280
hpp
Question14.hpp
// // Question14.hpp // Test Project // // Created by Biruk Tilahun on 11/18/19. // Copyright © 2019 Biruk Tilahun. All rights reserved. // #ifndef Question14_hpp #define Question14_hpp #include <stdio.h> #include <iostream> #endif /* Question14_hpp */ void Question14();
46eecd5994718ae829783f18b080b88b8586023a
6b40e9dccf2edc767c44df3acd9b626fcd586b4d
/NT/enduser/netmeeting/ui/wb/draw.cpp
b7ed6af106d50314ad2496eef08b0e26ecfa32df
[]
no_license
jjzhang166/WinNT5_src_20201004
712894fcf94fb82c49e5cd09d719da00740e0436
b2db264153b80fbb91ef5fc9f57b387e223dbfc2
refs/heads/Win2K3
2023-08-12T01:31:59.670176
2021-10-14T15:14:37
2021-10-14T15:14:37
586,134,273
1
0
null
2023-01-07T03:47:45
2023-01-07T03:47:44
null
UTF-8
C++
false
false
88,191
cpp
draw.cpp
// // DRAW.CPP // Main Drawing Window // // Copyright Microsoft 1998- // // PRECOMP #include "precomp.h" #include "nmwbobj.h" static const TCHAR szDrawClassName[] = "T126WB_DRAW"; // // // Function: Constructor // // Purpose: Initialize the drawing area object // // WbDrawingArea::WbDrawingArea(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::WbDrawingArea"); g_pDraw = this; m_hwnd = NULL; m_hDCWindow = NULL; m_hDCCached = NULL; m_originOffset.cx = 0; m_originOffset.cy = 0; m_posScroll.x = 0; m_posScroll.y = 0; // Show that the drawing area is not zoomed m_iZoomFactor = 1; m_iZoomOption = 1; // Show that the left mouse button is up m_bLButtonDown = FALSE; m_bIgnoreNextLClick = FALSE; m_bBusy = FALSE; m_bLocked = FALSE; m_HourGlass = FALSE; m_bSync = TRUE; // Indicate that the cached zoom scroll position is invalid m_zoomRestoreScroll = FALSE; // Show that we are not currently editing text m_bGotCaret = FALSE; m_bTextEditorActive = FALSE; m_pTextEditor = NULL; // Show that no graphic object is in progress m_pGraphicTracker = NULL; // Show that the marker is not present. m_bMarkerPresent = FALSE; m_bNewMarkedGraphic = FALSE; m_pSelectedGraphic = NULL; m_bTrackingSelectRect = FALSE; // Show that no area is currently marked ::SetRectEmpty(&m_rcMarkedArea); // Show we haven't got a tool yet m_pToolCur = NULL; // Show that we dont have a page attached yet g_pCurrentWorkspace = NULL; g_pConferenceWorkspace = NULL; // Create the brush to be used to draw the marker rectangle WORD bits[] = {204, 204, 51, 51, 204, 204, 51, 51}; HBITMAP hBmpMarker = ::CreateBitmap(8, 8, 1, 1, bits); m_hMarkerBrush = ::CreatePatternBrush(hBmpMarker); ::DeleteBitmap(hBmpMarker); DBG_SAVE_FILE_LINE m_pMarker = new DrawObj(rectangle_chosen, TOOLTYPE_SELECT); if(m_pMarker) { m_pMarker->SetPenColor(RGB(0,0,0), TRUE); m_pMarker->SetFillColor(RGB(255,255,255), FALSE); m_pMarker->SetLineStyle(PS_DOT); m_pMarker->SetPenThickness(1); RECT rect; ::SetRectEmpty(&rect); m_pMarker->SetRect(&rect); m_pMarker->SetBoundsRect(&rect); } } // // // Function: Destructor // // Purpose: Close down the drawing area // // WbDrawingArea::~WbDrawingArea(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::~WbDrawingArea"); if (m_pTextEditor != NULL) { m_pTextEditor->AbortEditGently(); } if (m_pMarker != NULL) { delete m_pMarker; m_pMarker = NULL; } if (m_hMarkerBrush != NULL) { DeleteBrush(m_hMarkerBrush); m_hMarkerBrush = NULL; } if (m_hwnd != NULL) { ::DestroyWindow(m_hwnd); ASSERT(m_hwnd == NULL); } ::UnregisterClass(szDrawClassName, g_hInstance); g_pDraw = NULL; } // // WbDrawingArea::Create() // BOOL WbDrawingArea::Create(HWND hwndParent, LPCRECT lprect) { WNDCLASSEX wc; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::Create"); // Get our cursor m_hCursor = ::LoadCursor(g_hInstance, MAKEINTRESOURCE( PENFREEHANDCURSOR)); // // Register the window class // ZeroMemory(&wc, sizeof(wc)); wc.cbSize = sizeof(wc); wc.style = CS_OWNDC; wc.lpfnWndProc = DrawWndProc; wc.hInstance = g_hInstance; wc.hCursor = m_hCursor; wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wc.lpszClassName = szDrawClassName; if (!::RegisterClassEx(&wc)) { ERROR_OUT(("WbDraw::Create register class failed")); return(FALSE); } // // Create our window // ASSERT(m_hwnd == NULL); if (!::CreateWindowEx(WS_EX_CLIENTEDGE, szDrawClassName, NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | WS_CLIPCHILDREN, lprect->left, lprect->top, lprect->right - lprect->left, lprect->bottom - lprect->top, hwndParent, NULL, g_hInstance, this)) { ERROR_OUT(("Error creating drawing area window")); return(FALSE); } ASSERT(m_hwnd != NULL); // // Initialize remaining data members // ASSERT(!m_bBusy); ASSERT(!(m_bLocked && g_pNMWBOBJ->m_LockerID != g_MyMemberID)); ASSERT(!m_HourGlass); // Start and end points of the last drawing operation m_ptStart.x = m_originOffset.cx; m_ptStart.y = m_originOffset.cy; m_ptEnd = m_ptStart; // Get the zoom factor to be used m_iZoomOption = DRAW_ZOOMFACTOR; m_hDCWindow = ::GetDC(m_hwnd); m_hDCCached = m_hDCWindow; PrimeDC(m_hDCCached); ::SetWindowOrgEx(m_hDCCached, m_originOffset.cx, m_originOffset.cy, NULL); return(TRUE); } // // DrawWndProc() // Message handler for the drawing area // LRESULT CALLBACK DrawWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { LRESULT lResult = 0; WbDrawingArea * pDraw = (WbDrawingArea *)::GetWindowLongPtr(hwnd, GWLP_USERDATA); switch (message) { case WM_NCCREATE: pDraw = (WbDrawingArea *)(((LPCREATESTRUCT)lParam)->lpCreateParams); ASSERT(pDraw); pDraw->m_hwnd = hwnd; ::SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)pDraw); goto DefWndProc; break; case WM_NCDESTROY: ASSERT(pDraw); // // When you call GetDC(), the HDC you get back is only valid // as long as the HWND it refers to is. So we must release // it here. // pDraw->ShutDownDC(); pDraw->m_hwnd = NULL; break; case WM_PAINT: ASSERT(pDraw); pDraw->OnPaint(); break; case WM_MOUSEMOVE: ASSERT(pDraw); pDraw->OnMouseMove((UINT)wParam, (short)LOWORD(lParam), (short)HIWORD(lParam)); break; case WM_LBUTTONDOWN: ASSERT(pDraw); pDraw->DeleteSelection(); pDraw->OnLButtonDown((UINT)wParam, (short)LOWORD(lParam), (short)HIWORD(lParam)); break; case WM_LBUTTONUP: ASSERT(pDraw); pDraw->OnLButtonUp((UINT)wParam, (short)LOWORD(lParam), (short)HIWORD(lParam)); break; case WM_CONTEXTMENU: ASSERT(pDraw); pDraw->OnContextMenu((short)LOWORD(lParam), (short)HIWORD(lParam)); break; case WM_SIZE: ASSERT(pDraw); pDraw->OnSize((UINT)wParam, (short)LOWORD(lParam), (short)HIWORD(lParam)); break; case WM_HSCROLL: ASSERT(pDraw); pDraw->OnHScroll(GET_WM_HSCROLL_CODE(wParam, lParam), GET_WM_HSCROLL_POS(wParam, lParam)); break; case WM_MOUSEWHEEL: ASSERT(pDraw); lParam = 0; if((short) HIWORD(wParam) > 0) { wParam = SB_LINEUP; } else { wParam = SB_LINEDOWN; } pDraw->OnVScroll(GET_WM_VSCROLL_CODE(wParam, lParam), GET_WM_VSCROLL_POS(wParam, lParam)); wParam = SB_ENDSCROLL; // // Just work like a vertical scroll // case WM_VSCROLL: ASSERT(pDraw); pDraw->OnVScroll(GET_WM_VSCROLL_CODE(wParam, lParam), GET_WM_VSCROLL_POS(wParam, lParam)); break; case WM_CTLCOLOREDIT: ASSERT(pDraw); lResult = pDraw->OnEditColor((HDC)wParam); break; case WM_SETFOCUS: ASSERT(pDraw); pDraw->OnSetFocus(); break; case WM_ACTIVATE: ASSERT(pDraw); pDraw->OnActivate(GET_WM_ACTIVATE_STATE(wParam, lParam)); break; case WM_SETCURSOR: ASSERT(pDraw); lResult = pDraw->OnCursor((HWND)wParam, LOWORD(lParam), HIWORD(lParam)); break; case WM_CANCELMODE: ASSERT(pDraw); pDraw->OnCancelMode(); break; case WM_TIMER: ASSERT(pDraw); pDraw->OnTimer((UINT)wParam); break; default: DefWndProc: lResult = DefWindowProc(hwnd, message, wParam, lParam); break; } return(lResult); } // // // Function: RealizePalette // // Purpose: Realize the drawing area palette // // void WbDrawingArea::RealizePalette( BOOL bBackground ) { UINT entriesChanged; HDC hdc = m_hDCCached; if (g_pCurrentWorkspace != NULL) { HPALETTE hPalette = PG_GetPalette(); if (hPalette != NULL) { // get our 2cents in m_hOldPalette = ::SelectPalette(hdc, hPalette, bBackground); entriesChanged = ::RealizePalette(hdc); // if mapping changes go repaint if (entriesChanged > 0) ::InvalidateRect(m_hwnd, NULL, TRUE); } } } LRESULT WbDrawingArea::OnEditColor(HDC hdc) { HPALETTE hPalette = PG_GetPalette(); if (hPalette != NULL) { ::SelectPalette(hdc, hPalette, FALSE); ::RealizePalette(hdc); } COLORREF rgb; m_pTextEditor->GetPenColor(&rgb); ::SetTextColor(hdc, SET_PALETTERGB( rgb) ); return((LRESULT)::GetSysColorBrush(COLOR_WINDOW)); } // // // Function: OnPaint // // Purpose: Paint the window. This routine is called whenever Windows // issues a WM_PAINT message for the Whiteboard window. // // void WbDrawingArea::OnPaint(void) { RECT rcUpdate; RECT rcTmp; RECT rcBounds; HDC hSavedDC; HPEN hSavedPen; HBRUSH hSavedBrush; HPALETTE hSavedPalette; HPALETTE hPalette; HFONT hSavedFont; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::OnPaint"); // Get the update rectangle ::GetUpdateRect(m_hwnd, &rcUpdate, FALSE); if (Zoomed()) { ::InflateRect(&rcUpdate, 1, 1); InvalidateSurfaceRect(&rcUpdate, TRUE); } // Start painting PAINTSTRUCT ps; ::BeginPaint(m_hwnd, &ps); hSavedDC = m_hDCCached; hSavedFont = m_hOldFont; hSavedPen = m_hOldPen; hSavedBrush = m_hOldBrush; hSavedPalette = m_hOldPalette; TRACE_MSG(("Flipping cache to paint DC")); m_hDCCached = ps.hdc; PrimeDC(m_hDCCached); // Only draw anything if we have a valid page attached if (g_pCurrentWorkspace != NULL ) { // set palette hPalette = PG_GetPalette(); if (hPalette != NULL) { m_hOldPalette = ::SelectPalette(m_hDCCached, hPalette, FALSE ); ::RealizePalette(m_hDCCached); } T126Obj * pObj = NULL; WBPOSITION pos; pObj = PG_First(g_pCurrentWorkspace, &rcUpdate, FALSE); if(pObj) { pos = pObj->GetMyPosition(); if(pos) { g_pCurrentWorkspace->GetNextObject(pos); } } while (pObj != NULL) { pObj->Draw(NULL, TRUE); // Get the next one if(pos) { pObj = PG_Next(g_pCurrentWorkspace, pos, &rcUpdate, FALSE); } else { break; } } if (hPalette != NULL) { ::SelectPalette(m_hDCCached, m_hOldPalette, TRUE); } // fixes painting problems for bug 2185 if( TextEditActive() ) { RedrawTextEditbox(); } // // Draw the tracking graphic // if ((m_pGraphicTracker != NULL) && !EqualPoint(m_ptStart, m_ptEnd)) { TRACE_MSG(("Drawing the tracking graphic")); m_pGraphicTracker->Draw(NULL, FALSE); } } // // Restore the DC to its original state // UnPrimeDC(m_hDCCached); m_hOldFont = hSavedFont; m_hOldPen = hSavedPen; m_hOldBrush = hSavedBrush; m_hOldPalette = hSavedPalette; m_hDCCached = hSavedDC; // Finish painting ::EndPaint(m_hwnd, &ps); } // // Selects all graphic objs contained in rectSelect. If rectSelect is // NULL then ALL objs are selected // void WbDrawingArea::SelectMarkerFromRect(LPCRECT lprcSelect) { T126Obj* pGraphic; RECT rc; ::SetRectEmpty(&rc); m_HourGlass = TRUE; SetCursorForState(); WBPOSITION pos; pGraphic = NULL; pGraphic = PG_First(g_pCurrentWorkspace, lprcSelect, TRUE); if(pGraphic) { pos = pGraphic->GetMyPosition(); if(pos) { g_pCurrentWorkspace->GetNextObject(pos); } } while (pGraphic != NULL) { if(pGraphic->GraphicTool() == TOOLTYPE_REMOTEPOINTER && // if it is a pointer and it is not local (!pGraphic->IAmTheOwner() || // we can't select it. Or this was a select all (pGraphic->IAmTheOwner() && lprcSelect == NULL))) { ; // don't select it } else { SelectGraphic(pGraphic, TRUE, TRUE); // // Calculate de size of the total selection // RECT selctRect; pGraphic->GetBoundsRect(&selctRect); ::UnionRect(&rc,&selctRect,&rc); } // Get the next one pGraphic = PG_Next(g_pCurrentWorkspace, pos, lprcSelect, TRUE ); } m_pMarker->SetRect(&rc); m_HourGlass = FALSE; SetCursorForState(); g_pMain->OnUpdateAttributes(); } // // // Function: OnTimer // // Purpose: Process a timer event. These are used to update freehand and // text objects while they are being drawn/edited and to // update the remote pointer position when the mouse stops. // // void WbDrawingArea::OnTimer(UINT idTimer) { TRACE_TIMER(("WbDrawingArea::OnTimer")); // We are only interested if the user is drawing something or editing if (m_bLButtonDown == TRUE) { if(idTimer == TIMER_REMOTE_POINTER_UPDATE) { ASSERT(g_pMain->m_pLocalRemotePointer); if(g_pMain->m_pLocalRemotePointer) { if(g_pMain->m_pLocalRemotePointer->HasAnchorPointChanged()) { g_pMain->m_pLocalRemotePointer->OnObjectEdit(); g_pMain->m_pLocalRemotePointer->ResetAttrib(); } } return; } // If the user is dragging an object or drawing a freehand line if (m_pGraphicTracker != NULL) { if(m_pGraphicTracker->HasAnchorPointChanged() || m_pGraphicTracker->HasPointListChanged()) { // // If we are not added to the workspace // if(!m_pGraphicTracker->GetMyWorkspace()) { m_pGraphicTracker->AddToWorkspace(); } else { m_pGraphicTracker->OnObjectEdit(); } } } } } // // // Function: OnSize // // Purpose: The window has been resized. // // void WbDrawingArea::OnSize(UINT nType, int cx, int cy) { // Only process this message if the window is not minimized if ( (nType == SIZEFULLSCREEN) || (nType == SIZENORMAL)) { if (TextEditActive()) { TextEditParentResize(); } // Set the new scroll range (based on the new client area) SetScrollRange(cx, cy); // Ensure that the scroll position lies in the new scroll range ValidateScrollPos(); // make page move if needed ScrollWorkspace(); // Update the scroll bars ::SetScrollPos(m_hwnd, SB_HORZ, m_posScroll.x, TRUE); ::SetScrollPos(m_hwnd, SB_VERT, m_posScroll.y, TRUE); } } // // // Function: SetScrollRange // // Purpose: Set the current scroll range. The range is based on the // work surface size and the size of the client area. // // void WbDrawingArea::SetScrollRange(int cx, int cy) { SCROLLINFO scinfo; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::SetScrollRange"); // If we are in zoom mode, then allow for the magnification ASSERT(m_iZoomFactor != 0); cx /= m_iZoomFactor; cy /= m_iZoomFactor; ZeroMemory( &scinfo, sizeof (SCROLLINFO) ); scinfo.cbSize = sizeof (SCROLLINFO); scinfo.fMask = SIF_PAGE | SIF_RANGE| SIF_DISABLENOSCROLL; // Set the horizontal scroll range and proportional thumb size scinfo.nMin = 0; scinfo.nMax = DRAW_WIDTH - 1; scinfo.nPage = cx; ::SetScrollInfo(m_hwnd, SB_HORZ, &scinfo, FALSE); // Set the vertical scroll range and proportional thumb size scinfo.nMin = 0; scinfo.nMax = DRAW_HEIGHT - 1; scinfo.nPage = cy; ::SetScrollInfo(m_hwnd, SB_VERT, &scinfo, FALSE); } // // // Function: ValidateScrollPos // // Purpose: Ensure that the current scroll position is within the bounds // of the current scroll range. The scroll range is set to // ensure that the window on the worksurface never extends // beyond the surface boundaries. // // void WbDrawingArea::ValidateScrollPos() { int iMax; SCROLLINFO scinfo; // Validate the horixontal scroll position using proportional settings scinfo.cbSize = sizeof(scinfo); scinfo.fMask = SIF_ALL; ::GetScrollInfo(m_hwnd, SB_HORZ, &scinfo); iMax = scinfo.nMax - scinfo.nPage; m_posScroll.x = max(m_posScroll.x, 0); m_posScroll.x = min(m_posScroll.x, iMax); // Validate the vertical scroll position using proportional settings scinfo.cbSize = sizeof(scinfo); scinfo.fMask = SIF_ALL; ::GetScrollInfo(m_hwnd, SB_VERT, &scinfo); iMax = scinfo.nMax - scinfo.nPage; m_posScroll.y = max(m_posScroll.y, 0); m_posScroll.y = min(m_posScroll.y, iMax); } // // // Function: ScrollWorkspace // // Purpose: Scroll the workspace to the position set in the member // variable m_posScroll. // // void WbDrawingArea::ScrollWorkspace(void) { RECT rc; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::ScrollWorkspace"); // Do the scroll DoScrollWorkspace(); if(Zoomed()) { // Tell the parent that the scroll position has changed HWND hwndParent; hwndParent = ::GetParent(m_hwnd); if (hwndParent != NULL) { ::PostMessage(hwndParent, WM_USER_PRIVATE_PARENTNOTIFY, WM_VSCROLL, 0L); } } } // // // Function: DoScrollWorkspace // // Purpose: Scroll the workspace to the position set in the member // variable m_posScroll. // // void WbDrawingArea::DoScrollWorkspace() { // Validate the scroll position ValidateScrollPos(); // Set the scroll box position ::SetScrollPos(m_hwnd, SB_HORZ, m_posScroll.x, TRUE); ::SetScrollPos(m_hwnd, SB_VERT, m_posScroll.y, TRUE); // Only update the screen if the scroll position has changed if ( (m_originOffset.cy != m_posScroll.y) || (m_originOffset.cx != m_posScroll.x) ) { // Calculate the amount to scroll INT iVScrollAmount = m_originOffset.cy - m_posScroll.y; INT iHScrollAmount = m_originOffset.cx - m_posScroll.x; // Save the new position (for UpdateWindow) m_originOffset.cx = m_posScroll.x; m_originOffset.cy = m_posScroll.y; ::SetWindowOrgEx(m_hDCCached, m_originOffset.cx, m_originOffset.cy, NULL); // Scroll and redraw the newly invalidated portion of the window ::ScrollWindow(m_hwnd, iHScrollAmount, iVScrollAmount, NULL, NULL); ::UpdateWindow(m_hwnd); } } // // // Function: GotoPosition // // Purpose: Move the top-left corner of the workspace to the specified // position in the workspace. // // void WbDrawingArea::GotoPosition(int x, int y) { // Set the new scroll position m_posScroll.x = x; m_posScroll.y = y; // Scroll to the new position DoScrollWorkspace(); // Invalidate the zoom scroll cache if we scroll when unzoomed. if (!Zoomed()) { m_zoomRestoreScroll = FALSE; } } // // // Function: OnVScroll // // Purpose: Process a WM_VSCROLL messages. // // void WbDrawingArea::OnVScroll(UINT nSBCode, UINT nPos) { RECT rcClient; // Get the current client rectangle HEIGHT ::GetClientRect(m_hwnd, &rcClient); ASSERT(rcClient.top == 0); rcClient.bottom -= rcClient.top; // Act on the scroll code switch(nSBCode) { // Scroll to bottom case SB_BOTTOM: m_posScroll.y = DRAW_HEIGHT - rcClient.bottom; break; // Scroll down a line case SB_LINEDOWN: m_posScroll.y += DRAW_LINEVSCROLL; break; // Scroll up a line case SB_LINEUP: m_posScroll.y -= DRAW_LINEVSCROLL; break; // Scroll down a page case SB_PAGEDOWN: m_posScroll.y += rcClient.bottom / m_iZoomFactor; break; // Scroll up a page case SB_PAGEUP: m_posScroll.y -= rcClient.bottom / m_iZoomFactor; break; // Scroll to the top case SB_TOP: m_posScroll.y = 0; break; // Track the scroll box case SB_THUMBPOSITION: case SB_THUMBTRACK: m_posScroll.y = nPos; // don't round break; default: break; } // Validate the scroll position ValidateScrollPos(); ::SetScrollPos(m_hwnd, SB_VERT, m_posScroll.y, TRUE); // If this message is informing us of the end of scrolling, // update the window if (nSBCode == SB_ENDSCROLL) { // Scroll the window ScrollWorkspace(); } // Invalidate the zoom scroll cache if we scroll when unzoomed. if (!Zoomed()) { m_zoomRestoreScroll = FALSE; } } // // // Function: OnHScroll // // Purpose: Process a WM_HSCROLL messages. // // void WbDrawingArea::OnHScroll(UINT nSBCode, UINT nPos) { RECT rcClient; // Get the current client rectangle WIDTH ::GetClientRect(m_hwnd, &rcClient); ASSERT(rcClient.left == 0); rcClient.right -= rcClient.left; switch(nSBCode) { // Scroll to the far right case SB_BOTTOM: m_posScroll.x = DRAW_WIDTH - rcClient.right; break; // Scroll right a line case SB_LINEDOWN: m_posScroll.x += DRAW_LINEHSCROLL; break; // Scroll left a line case SB_LINEUP: m_posScroll.x -= DRAW_LINEHSCROLL; break; // Scroll right a page case SB_PAGEDOWN: m_posScroll.x += rcClient.right / m_iZoomFactor; break; // Scroll left a page case SB_PAGEUP: m_posScroll.x -= rcClient.right / m_iZoomFactor; break; // Scroll to the far left case SB_TOP: m_posScroll.x = 0; break; // Track the scroll box case SB_THUMBPOSITION: case SB_THUMBTRACK: m_posScroll.x = nPos; // don't round break; default: break; } // Validate the scroll position ValidateScrollPos(); ::SetScrollPos(m_hwnd, SB_HORZ, m_posScroll.x, TRUE); // If this message is informing us of the end of scrolling, // update the window if (nSBCode == SB_ENDSCROLL) { // Scroll the window ScrollWorkspace(); } // Invalidate the zoom scroll cache if we scroll when unzoomed. if (!Zoomed()) { m_zoomRestoreScroll = FALSE; } } // // // Function: AutoScroll // // Purpose: Auto-scroll the window to bring the position passed as // parameter into view. // // BOOL WbDrawingArea::AutoScroll ( int xSurface, int ySurface, BOOL bMoveCursor, int xCaret, int yCaret ) { int nXPSlop, nYPSlop; int nXMSlop, nYMSlop; int nDeltaHScroll, nDeltaVScroll; BOOL bDoScroll = FALSE; nXPSlop = 0; nYPSlop = 0; nXMSlop = 0; nYMSlop = 0; if( TextEditActive() ) { POINT ptDirTest; ptDirTest.x = xSurface - xCaret; ptDirTest.y = ySurface - yCaret; // set up for text editbox if( ptDirTest.x > 0 ) nXPSlop = m_pTextEditor->m_textMetrics.tmMaxCharWidth; else if( ptDirTest.x < 0 ) nXMSlop = -m_pTextEditor->m_textMetrics.tmMaxCharWidth; if( ptDirTest.y > 0 ) nYPSlop = m_pTextEditor->m_textMetrics.tmHeight; else if( ptDirTest.y < 0 ) nYMSlop = -m_pTextEditor->m_textMetrics.tmHeight; nDeltaHScroll = m_pTextEditor->m_textMetrics.tmMaxCharWidth; nDeltaVScroll = m_pTextEditor->m_textMetrics.tmHeight; } else { // set up for all other objects nDeltaHScroll = DRAW_LINEHSCROLL; nDeltaVScroll = DRAW_LINEVSCROLL; } // Get the current visible surface rectangle RECT visibleRect; GetVisibleRect(&visibleRect); // Check for pos + slop being outside visible area if( (xSurface + nXPSlop) >= visibleRect.right ) { bDoScroll = TRUE; m_posScroll.x += (((xSurface + nXPSlop) - visibleRect.right) + nDeltaHScroll); } if( (xSurface + nXMSlop) <= visibleRect.left ) { bDoScroll = TRUE; m_posScroll.x -= ((visibleRect.left - (xSurface + nXMSlop)) + nDeltaHScroll); } if( (ySurface + nYPSlop) >= visibleRect.bottom) { bDoScroll = TRUE; m_posScroll.y += (((ySurface + nYPSlop) - visibleRect.bottom) + nDeltaVScroll); } if( (ySurface + nYMSlop) <= visibleRect.top) { bDoScroll = TRUE; m_posScroll.y -= ((visibleRect.top - (ySurface + nYMSlop)) + nDeltaVScroll); } if( !bDoScroll ) return( FALSE ); // Indicate that scrolling has completed (in both directions) ScrollWorkspace(); // Update the mouse position (if required) if (bMoveCursor) { POINT screenPos; screenPos.x = xSurface; screenPos.y = ySurface; SurfaceToClient(&screenPos); ::ClientToScreen(m_hwnd, &screenPos); ::SetCursorPos(screenPos.x, screenPos.y); } return( TRUE ); } // // // Function: OnCursor // // Purpose: Process a WM_SETCURSOR messages. // // LRESULT WbDrawingArea::OnCursor(HWND hwnd, UINT uiHit, UINT uMsg) { BOOL bResult = FALSE; // Check that this message is for the main window if (hwnd == m_hwnd) { // If the cursor is now in the client area, set the cursor if (uiHit == HTCLIENT) { bResult = SetCursorForState(); } else { // Restore the cursor to the standard arrow. Set m_hCursor to NULL // to indicate that we have not set a special cursor. m_hCursor = NULL; ::SetCursor(::LoadCursor(NULL, IDC_ARROW)); bResult = TRUE; } } // Return result indicating whether we processed the message or not return bResult; } // // // Function: SetCursorForState // // Purpose: Set the cursor for the current state // // BOOL WbDrawingArea::SetCursorForState(void) { BOOL bResult = FALSE; m_hCursor = NULL; // If the drawing area is locked, use the "locked" cursor if (m_HourGlass) { m_hCursor = ::LoadCursor( NULL, IDC_WAIT ); } else if (m_bLocked && g_pNMWBOBJ->m_LockerID != g_MyMemberID) { // Return the cursor for the tool m_hCursor = ::LoadCursor(g_hInstance, MAKEINTRESOURCE( LOCKCURSOR )); } else if (m_pToolCur != NULL) { // Get the cursor for the tool currently in use m_hCursor = m_pToolCur->GetCursorForTool(); } if (m_hCursor != NULL) { ::SetCursor(m_hCursor); bResult = TRUE; } // Return result indicating whether we set the cursor or not return bResult; } // // // Function: Lock // // Purpose: Lock the drawing area, preventing further updates // // void WbDrawingArea::Lock(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::Lock"); // Check whether the drawing area is busy - this is not allowed ASSERT(!m_bBusy); // Stop any drawing we are doing. CancelDrawingMode(); // Deselect any selected graphic ClearSelection(); // Show that we are now locked m_bLocked = TRUE; TRACE_MSG(("Drawing area is now locked")); // Set the cursor for the drawing mode, but only if we should be drawing // a special cursor (if m_hCursor != the current cursor, then the cursor // is out of the client area). if (::GetCursor() == m_hCursor) { SetCursorForState(); } } // // // Function: Unlock // // Purpose: Unlock the drawing area, preventing further updates // // void WbDrawingArea::Unlock(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::Unlock"); // Check whether the drawing area is busy - this is not allowed ASSERT(!m_bBusy); // Show that we are now unlocked m_bLocked = FALSE; TRACE_MSG(("Drawing area is now UNlocked")); // Set the cursor for the drawing mode, but only if we should be drawing // a special cursor (if m_hCursor != the current cursor, then the cursor // is out of the client area). if (::GetCursor() == m_hCursor) { SetCursorForState(); } } // // // Function: PageCleared // // Purpose: The page has been cleared // // void WbDrawingArea::PageCleared(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::PageCleared"); // Check whether the drawing area is busy - this is not allowed ASSERT(!m_bBusy); // Discard any text being edited if (m_bTextEditorActive) { if (m_bLocked && g_pNMWBOBJ->m_LockerID != g_MyMemberID) { DeactivateTextEditor(); } else { EndTextEntry(FALSE); } } // Remove the copy of the marked graphic and the marker ClearSelection(); // Invalidate the whole window ::InvalidateRect(m_hwnd, NULL, TRUE); } // // // Function: InvalidateSurfaceRect // // Purpose: Invalidate the window rectangle corresponding to the given // drawing surface rectangle. // // void WbDrawingArea::InvalidateSurfaceRect(LPCRECT lprc, BOOL bErase) { RECT rc; // Convert the surface co-ordinates to client window and invalidate // the rectangle. rc = *lprc; SurfaceToClient(&rc); ::InvalidateRect(m_hwnd, &rc, bErase); } // // // Function: PrimeFont // // Purpose: Insert the supplied font into our DC and return the // text metrics // // void WbDrawingArea::PrimeFont(HDC hDC, HFONT hFont, TEXTMETRIC* pTextMetrics) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::PrimeFont"); // // temporarily unzoom to get the font that we want // if (Zoomed()) { ::ScaleViewportExtEx(m_hDCCached, 1, m_iZoomFactor, 1, m_iZoomFactor, NULL); } HFONT hOldFont = SelectFont(hDC, hFont); if (hOldFont == NULL) { WARNING_OUT(("Failed to select font into DC")); } if (pTextMetrics != NULL) { ::GetTextMetrics(hDC, pTextMetrics); } // // restore the zoom state // if (Zoomed()) { ::ScaleViewportExtEx(m_hDCCached, m_iZoomFactor, 1, m_iZoomFactor, 1, NULL); } } // // // Function: UnPrimeFont // // Purpose: Remove the specified font from the DC and clear cache // variable // // void WbDrawingArea::UnPrimeFont(HDC hDC) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::UnPrimeFont"); if (hDC != NULL) { SelectFont(hDC, ::GetStockObject(SYSTEM_FONT)); } } // // // Function: PrimeDC // // Purpose: Set up a DC for drawing // // void WbDrawingArea::PrimeDC(HDC hDC) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::PrimeDC"); ::SetMapMode(hDC, MM_ANISOTROPIC); ::SetBkMode(hDC, TRANSPARENT); ::SetTextAlign(hDC, TA_LEFT | TA_TOP); } // // // Function: UnPrimeDC // // Purpose: Reset the DC to default state // // void WbDrawingArea::UnPrimeDC(HDC hDC) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::UnPrimeDC"); SelectPen(hDC, (HPEN)::GetStockObject(BLACK_PEN)); SelectBrush(hDC, (HBRUSH)::GetStockObject(BLACK_BRUSH)); UnPrimeFont(hDC); } // // WbDrawingArea::OnContextMenu() // void WbDrawingArea::OnContextMenu(int xScreen, int yScreen) { POINT pt; RECT rc; pt.x = xScreen; pt.y = yScreen; ::ScreenToClient(m_hwnd, &pt); ::GetClientRect(m_hwnd, &rc); if (::PtInRect(&rc, pt)) { // Complete drawing action, if any OnLButtonUp(0, pt.x, pt.y); // Ask main window to put up context menu g_pMain->PopupContextMenu(pt.x, pt.y); } } // // WbDrawingArea::OnLButtonDown() // void WbDrawingArea::OnLButtonDown(UINT flags, int x, int y) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::OnLButtonDown"); if( m_bIgnoreNextLClick ) { TRACE_MSG( ("Ignoring WM_LBUTTONDOWN") ); return; } // Set the focus to this window. This is done to ensure that we trap // the text edit keys and the delete key when they are used. ::SetFocus(m_hwnd); // Save the operation start point (and current end point) // Adjust the mouse position to allow for the zoom factor m_ptStart.x = x; m_ptStart.y = y; ClientToSurface(&m_ptStart); m_ptEnd = m_ptStart; // Show that the mouse button is now down m_bLButtonDown = TRUE; // Show that the drawing area is now busy m_bBusy = TRUE; // Only allow the action to take place if the drawing area is unlocked, // and we have a valid tool if ((m_bLocked && g_pNMWBOBJ->m_LockerID != g_MyMemberID) || (m_pToolCur == NULL)) { // Tidy up the state and leave now m_bLButtonDown = FALSE; m_bBusy = FALSE; return; } // Call the relevant initialization routine if (m_pToolCur->ToolType() != TOOLTYPE_SELECT) { // dump selection if not select tool ClearSelection(); } INT border = 1; switch (m_pToolCur->ToolType()) { case TOOLTYPE_TEXT: break; case TOOLTYPE_HIGHLIGHT: case TOOLTYPE_PEN: case TOOLTYPE_LINE: case TOOLTYPE_BOX: case TOOLTYPE_FILLEDBOX: case TOOLTYPE_ELLIPSE: case TOOLTYPE_FILLEDELLIPSE: BeginDrawingMode(m_ptStart); break; case TOOLTYPE_ERASER: BeginSelectMode(m_ptStart, TRUE); break; case TOOLTYPE_SELECT: border = -2; BeginSelectMode(m_ptStart, FALSE); break; // Do nothing if we do not recognise the pen type default: ERROR_OUT(("Bad tool type")); break; } // Clamp the cursor to the drawing window RECT rcClient; ::GetClientRect(m_hwnd, &rcClient); ::MapWindowPoints(m_hwnd, NULL, (LPPOINT)&rcClient.left, 2); ::InflateRect(&rcClient, border, border); ::ClipCursor(&rcClient); } // // // Function: SelectPreviousGraphicAt // // Purpose: Select the previous graphic (in the Z-order) at the position // specified, and starting at a specified graphic. If the // graphic pointer given is NULL the search starts from the // top. If the point specified is outside the bounding // rectangle of the specified graphic the search starts at the // top and chooses the first graphic which contains the point. // // The search process will loop back to the top of the Z-order // if it gets to the bottom having failed to find a graphic. // // Graphics which are locked are ignored by the search. // // T126Obj* WbDrawingArea::SelectPreviousGraphicAt ( T126Obj* pStartGraphic, POINT point ) { // Set the result to "none found" initially T126Obj* pResultGraphic = NULL; // If a starting point has been specified if (pStartGraphic != NULL) { RECT rectHit; MAKE_HIT_RECT(rectHit, point); // If the reference point is within the start graphic if ( pStartGraphic->PointInBounds(point) && pStartGraphic->CheckReallyHit( &rectHit ) ) { WBPOSITION pos = pStartGraphic->GetMyPosition(); g_pCurrentWorkspace->GetPreviousObject(pos); while (pos) { pResultGraphic = g_pCurrentWorkspace->GetPreviousObject(pos); if( pResultGraphic && pResultGraphic->CheckReallyHit( &rectHit ) ) { if(m_pMarker) { RECT rect; pResultGraphic->GetRect(&rect); m_pMarker->SetRect(&rect); } break; } pResultGraphic = NULL; } } } // If we have not got a result graphic yet. (This catches two cases: // - where no start graphic has been given so that we want to start // from the top, // - where we have searched back from the start graphic and reached // the bottom of the Z-order without finding a suitable graphic. if (pResultGraphic == NULL) { // Get the topmost graphic that contains the point specified pResultGraphic = PG_SelectLast(g_pCurrentWorkspace, point); } // If we have found an object, draw the marker if (pResultGraphic != NULL) { // // If we are already selected and we didn't select it // some other node has the control over this graphic don't select it // in this case // Or if we are trying to select a remote pointer that is not ours // if(pResultGraphic->IsSelected() && pResultGraphic->WasSelectedRemotely() || (pResultGraphic->GraphicTool() == TOOLTYPE_REMOTEPOINTER && !pResultGraphic->IAmTheOwner())) { pResultGraphic = NULL; } else { // Select the new one SelectGraphic(pResultGraphic); } } return pResultGraphic; } // // // Function: BeginSelectMode // // Purpose: Process a mouse button down in select mode // // void WbDrawingArea::BeginSelectMode(POINT surfacePos, BOOL bDontDrag ) { RECT rc; // Assume we do not start dragging a graphic m_pGraphicTracker = NULL; // Assume that we do not mark a new graphic m_bNewMarkedGraphic = FALSE; // turn off TRACK-SELECT-RECT m_bTrackingSelectRect = FALSE; // Check whether there is currently an object marked, and // whether we are clicking inside the same object. If we are then // we do nothing here - the click will be handled by the tracking or // completion routines for select mode. if ( (GraphicSelected() == FALSE) || (m_pMarker->PointInBounds(surfacePos) == FALSE)) { ::SetRectEmpty(&g_pDraw->m_selectorRect); // We are selecting a new object if bDontDrag == FALSE, find it. // otherwise just turn on the select rect T126Obj* pGraphic; if( bDontDrag ) pGraphic = NULL; else pGraphic = SelectPreviousGraphicAt(NULL, surfacePos); // If we have found an object, draw the marker if (pGraphic != NULL) { if(pGraphic->IsSelected() && pGraphic->WasSelectedRemotely()) { return; } // Show that a new graphic has now been marked. m_bNewMarkedGraphic = TRUE; } else { if( (GetAsyncKeyState( VK_SHIFT ) >= 0) && (GetAsyncKeyState( VK_CONTROL ) >= 0) ) { // clicked on dead air, remove all selections ClearSelection(); } //TRACK-SELECT-RECT m_bTrackingSelectRect = TRUE; BeginDrawingMode(surfacePos); return; } } if(GraphicSelected()) { m_pMarker->SetRect(&m_selectorRect); m_pMarker->SetBoundsRect(&m_selectorRect); m_pGraphicTracker = m_pMarker; } // Get all mouse input directed to the this window ::SetCapture(m_hwnd); } // // // Function: TrackSelectMode // // Purpose: Process a mouse move event in select mode // // void WbDrawingArea::TrackSelectMode(POINT surfacePos) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::TrackSelectMode"); if( m_bTrackingSelectRect ) TrackDrawingMode(surfacePos); else { // In this case we must be dragging a marked object if(!EqualPoint(surfacePos, m_ptEnd)) { MoveSelectedGraphicBy(surfacePos.x - m_ptEnd.x, surfacePos.y - m_ptEnd.y); } m_ptEnd = surfacePos; } } void WbDrawingArea::BeginDeleteMode(POINT mousePos ) { // turn off object dragging BeginSelectMode( mousePos, TRUE ); } void WbDrawingArea::TrackDeleteMode( POINT mousePos ) { TrackSelectMode( mousePos ); } // // // Function: BeginTextMode // // Purpose: Process a mouse button down in text mode // // void WbDrawingArea::BeginTextMode(POINT surfacePos) { RECT rc; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::BeginTextMode"); // // Get a DC for passing into the text editor // HDC hDC = m_hDCCached; // If we are already editing a text object, we just move the text cursor if (m_bTextEditorActive) { // If the mouse has been clicked in the currently active object // we just move the cursor within the object, otherwise we end the // edit for the current object and move to a new one. m_pTextEditor->GetRect(&rc); if (::PtInRect(&rc, surfacePos)) { // Set the new position for the cursor m_pTextEditor->SetCursorPosFromPoint(surfacePos); } else { // Complete the text entry accepting the changes EndTextEntry(TRUE); // LAURABU BOGUS: // It would be cooler to now return, that way you don't get // another text object just cuz you ended the current editing // session. } } // If we are not editing an object we check to see whether there is // a text object under the cursor or whether we must start a new one. if (!m_bTextEditorActive) { // Check whether we are clicking over a text object. If we are // start editing the object, otherwise we start a new text object. // Look back through the Z-order for a text object T126Obj* pGraphic = PG_SelectLast(g_pCurrentWorkspace, surfacePos); T126Obj* pNextGraphic = NULL; WBPOSITION pos; if(pGraphic) { pos = pGraphic->GetMyPosition(); } while ( (pGraphic != NULL) && pGraphic->GraphicTool() != TOOLTYPE_TEXT) { // Get the next one pNextGraphic = PG_SelectPrevious(g_pCurrentWorkspace, pos, surfacePos); // Use the next one pGraphic = pNextGraphic; } // Check whether this graphic object is already being edited by // another user in the call. if (pGraphic != NULL && !pGraphic->WasSelectedRemotely() && pGraphic->GraphicTool() == TOOLTYPE_TEXT) { // We found a text object under the mouse pointer... // ...edit it m_pTextEditor = (WbTextEditor*)pGraphic; m_pTextEditor->SetTextObject(m_pTextEditor); // Make sure the tool reflects the new information if (m_pToolCur != NULL) { m_pToolCur->SelectGraphic(pGraphic); } HWND hwndParent = ::GetParent(m_hwnd); if (hwndParent != NULL) { ASSERT(g_pMain); ASSERT(g_pMain->m_hwnd == hwndParent); ::PostMessage(hwndParent, WM_USER_UPDATE_ATTRIBUTES, 0, 0); } // Show that we are now gathering text but dont put up cursor // yet. Causes cursor droppings later (bug 2505) //ActivateTextEditor( FALSE ); RECT rect; m_pTextEditor->GetRect(&rect); m_pTextEditor->Create(); // init editbox size m_pTextEditor->GetText(); // // Tell the other nodes they can't edit this object now // m_pTextEditor->SetViewState(selected_chosen); m_pTextEditor->OnObjectEdit(); ActivateTextEditor( TRUE ); ::BringWindowToTop(m_pTextEditor->m_pEditBox->m_hwnd); // // Account for scrolling // SurfaceToClient(&rect); ::MoveWindow(m_pTextEditor->m_pEditBox->m_hwnd, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, TRUE); // Set the initial cursor position for the edit m_pTextEditor->SetCursorPosFromPoint(surfacePos); } else { RECT rect; rect.top = m_ptEnd.y; rect.left = m_ptEnd.x; rect.bottom = m_ptEnd.y; rect.right = m_ptEnd.x; DBG_SAVE_FILE_LINE m_pTextEditor = new WbTextEditor(); m_pTextEditor->SetRect(&rect); m_pTextEditor->SetAnchorPoint(m_ptEnd.x, m_ptEnd.y); m_pTextEditor->SetViewState(selected_chosen); // There are no text objects under the mouse pointer... // ...start a new one // Clear any old text out of the editor, and reset its graphic // handle. This prevents us from replacing an old text object when // we next save the text editor contents. if (!m_pTextEditor->New()) { DefaultExceptionHandler(WBFE_RC_WINDOWS, 0); return; } // Set the attributes of the text m_pTextEditor->SetFont(m_pToolCur->GetFont()); m_pTextEditor->SetPenColor(m_pToolCur->GetColor(), TRUE); // We need to reselect a font now into our DC SelectFont(hDC, m_pTextEditor->GetFont()); // Set the position of the new object SIZE sizeCursor; m_pTextEditor->GetCursorSize(&sizeCursor); m_pTextEditor->CalculateBoundsRect(); m_pTextEditor->MoveTo(m_ptEnd.x, m_ptEnd.y - sizeCursor.cy); // Show that we are now gathering text ActivateTextEditor( TRUE ); } } } void WbDrawingArea::BeginDrawingMode(POINT surfacePos) { if(!g_pCurrentWorkspace) { TRACE_DEBUG(("Can't draw without a workspace")); return; } // // Get all mouse input directed to the this window // ::SetCapture(m_hwnd); // // We shouldn't be using the tracker // ASSERT(!m_pGraphicTracker); UINT drawingType; BOOL sendBeforefinished = FALSE; BOOL highlight = FALSE; UINT lineStyle = PS_SOLID; UINT toolType = m_pToolCur->ToolType(); switch (toolType) { case TOOLTYPE_HIGHLIGHT: highlight = TRUE; case TOOLTYPE_PEN: sendBeforefinished = TRUE; case TOOLTYPE_LINE: drawingType = openPolyLine_chosen; break; case TOOLTYPE_SELECT: case TOOLTYPE_ERASER: m_pGraphicTracker = m_pMarker; return; break; case TOOLTYPE_FILLEDBOX: case TOOLTYPE_BOX: drawingType = rectangle_chosen; break; case TOOLTYPE_FILLEDELLIPSE: case TOOLTYPE_ELLIPSE: drawingType = ellipse_chosen; break; } DBG_SAVE_FILE_LINE m_pGraphicTracker = new DrawObj(drawingType, toolType); if(NULL == m_pGraphicTracker) { ERROR_OUT(("Failed to allocate new DrawObj")); return; } // // Use black for the tracking rectangle unless it is pen or highlighter // if(m_pToolCur->ToolType() == TOOLTYPE_PEN || m_pToolCur->ToolType() == TOOLTYPE_HIGHLIGHT) { m_pGraphicTracker->SetPenColor(m_pToolCur->GetColor(), TRUE); } else { m_pGraphicTracker->SetPenColor(RGB(0,0,0), TRUE); } m_pGraphicTracker->SetFillColor(RGB(255,255,255), FALSE); m_pGraphicTracker->SetLineStyle(lineStyle); m_pGraphicTracker->SetAnchorPoint(surfacePos.x, surfacePos.y); m_pGraphicTracker->SetHighlight(highlight); m_pGraphicTracker->SetViewState(unselected_chosen); m_pGraphicTracker->SetZOrder(front); // // Start a timer if we want it to send intermidiate drawings // if(sendBeforefinished) { RECT rect; rect.left = surfacePos.x; rect.top = surfacePos.y; rect.right = surfacePos.x; rect.bottom = surfacePos.y; m_pGraphicTracker->SetRect(&rect); m_pGraphicTracker->SetBoundsRect(&rect); surfacePos.x = 0; surfacePos.y = 0; m_pGraphicTracker->AddPoint(surfacePos); // // Select the final ROP // if (highlight) { m_pGraphicTracker->SetROP(R2_MASKPEN); } else { m_pGraphicTracker->SetROP(R2_COPYPEN); } // // Use the tools width for pen or highlight // m_pGraphicTracker->SetPenThickness(m_pToolCur->GetWidth()); // Start the timer for updating the graphic (this is only for updating // the graphic when the user stops moving the pointer but keeps the // mouse button down). ::SetTimer(m_hwnd, TIMER_GRAPHIC_UPDATE, DRAW_GRAPHICUPDATEDELAY, NULL); // Save the current time (used to determine when to update // the external graphic pointer information while the mouse is // being moved). m_dwTickCount = ::GetTickCount(); m_pGraphicTracker->SetViewState(selected_chosen); } else { m_pGraphicTracker->SetPenThickness(1); } } // // // Function: TrackDrawingMode // // Purpose: Process a mouse move event in drawing mode // // void WbDrawingArea::TrackDrawingMode(POINT surfacePos) { HPALETTE hPal; HPALETTE hOldPal = NULL; if(!m_pGraphicTracker) { return; } if(EqualPoint(surfacePos, m_ptEnd)) { return; } // Get a device context for tracking HDC hDC = m_hDCCached; // set up palette if ((g_pCurrentWorkspace != NULL) && ((hPal = PG_GetPalette()) != NULL) ) { hOldPal = ::SelectPalette(hDC, hPal, FALSE ); ::RealizePalette(hDC); } // Erase the last ellipse (using XOR property) if (!EqualPoint(m_ptStart, m_ptEnd)) { // Draw the rectangle m_pGraphicTracker->Draw(); } // Draw the new rectangle (XORing it onto the display) if (!EqualPoint(m_ptStart, surfacePos)) { // // If we are using a pen or highlighter // Tracking in draw mode is a special case. We draw directly to the client // area of the window and to the recording device context. if( m_pToolCur->ToolType() == TOOLTYPE_HIGHLIGHT || m_pToolCur->ToolType() == TOOLTYPE_PEN) { POINT deltaPoint; deltaPoint.x = surfacePos.x - m_ptEnd.x; deltaPoint.y = surfacePos.y - m_ptEnd.y; // Save the point, checking there aren't too many points if (m_pGraphicTracker->AddPoint(deltaPoint) == FALSE) { // too many points so end the freehand object OnLButtonUp(0, surfacePos.x, surfacePos.y); goto cleanUp; } m_pGraphicTracker->SetRectPts(m_ptEnd, surfacePos); m_pGraphicTracker->AddPointToBounds(surfacePos.x, surfacePos.y); m_ptEnd = surfacePos; } else { // Save the new box end point m_ptEnd = surfacePos; // Draw the rectangle m_pGraphicTracker->SetRectPts(m_ptStart, m_ptEnd); } m_pGraphicTracker->Draw(); } cleanUp: if (hOldPal != NULL) { ::SelectPalette(hDC, hOldPal, TRUE); } } // // WbDrawingArea::OnMouseMove // void WbDrawingArea::OnMouseMove(UINT flags, int x, int y) { if(!g_pCurrentWorkspace) { return; } POINT surfacePos; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::OnMouseMove"); surfacePos.x = x; surfacePos.y = y; // Check if the left mouse button is down if (m_bLButtonDown) { // Calculate the worksurface position // Adjust the mouse position to allow for the zoom factor ClientToSurface(&surfacePos); // Make sure the point is a valid surface position MoveOntoSurface(&surfacePos); // Check whether the window needs to be scrolled to get the // current position into view. AutoScroll(surfacePos.x, surfacePos.y, FALSE, 0, 0); // Action taken depends on the tool type switch(m_pToolCur->ToolType()) { case TOOLTYPE_HIGHLIGHT: case TOOLTYPE_PEN: case TOOLTYPE_LINE: case TOOLTYPE_BOX: case TOOLTYPE_FILLEDBOX: case TOOLTYPE_ELLIPSE: case TOOLTYPE_FILLEDELLIPSE: TrackDrawingMode(surfacePos); break; case TOOLTYPE_ERASER: case TOOLTYPE_SELECT: TrackSelectMode(surfacePos); break; case TOOLTYPE_TEXT: // JOSEF add functionality break; default: ERROR_OUT(("Unknown tool type")); break; } } } // // // Function: CancelDrawingMode // // Purpose: Cancels a drawing operation after an error. // // void WbDrawingArea::CancelDrawingMode(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::CancelDrawingMode"); // // Quit if there's nothing to cancel. // if (!m_bBusy && !m_bTextEditorActive) { TRACE_DEBUG(("Drawing area not busy and text editor not active...")); return; } // The drawing area is no longer busy m_bBusy = FALSE; // // Redraw the object - we need to discard any local updates which we // weren't able to write to the object we are editing. Ideally we should // just invalidate the object itself but because some of the co-ordinates // we have already drawn on the page may have been lost, we dont know // exactly how big the object is. // ::InvalidateRect(m_hwnd, NULL, TRUE); m_bLButtonDown = FALSE; // Release the mouse capture if (::GetCapture() == m_hwnd) { ::ReleaseCapture(); } // // Perform any tool specific processing. // switch(m_pToolCur->ToolType()) { case TOOLTYPE_HIGHLIGHT: case TOOLTYPE_PEN: CompleteDrawingMode(); break; case TOOLTYPE_SELECT: // Stop the pointer update timer ::KillTimer(m_hwnd, TIMER_GRAPHIC_UPDATE); break; case TOOLTYPE_TEXT: if (m_bTextEditorActive) { m_pTextEditor->AbortEditGently(); } break; default: break; } // Show that we are no longer tracking an object if (m_pGraphicTracker != NULL) { m_pGraphicTracker = NULL; // We don't delete the tracker, because it is also the drawing } } // // WbDrawingArea::OnLButtonUp() // void WbDrawingArea::OnLButtonUp(UINT flags, int x, int y) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::OnLButtonUp"); if (m_bIgnoreNextLClick) { TRACE_MSG( ("Ignoring WM_LBUTTONUP") ); m_bIgnoreNextLClick = FALSE; return; } // Only process the event if we saw the button down event if (m_bLButtonDown) { TRACE_MSG(("End of drawing operation")); m_bLButtonDown = FALSE; // The drawing area is no longer busy m_bBusy = FALSE; if (m_pGraphicTracker == NULL) { // Calculate the work surface position // Adjust the mouse position to allow for the zoom factor POINT surfacePos; surfacePos.x = x; surfacePos.y = y; ClientToSurface(&surfacePos); MoveOntoSurface(&surfacePos); m_ptEnd = surfacePos; } // Release the mouse capture if (::GetCapture() == m_hwnd) { ::ReleaseCapture(); } // Check the page is valid - might not be if it has been deleted // while the object was being drawn - we would not have been // alerted to this because m_bBusy was true. if (g_pCurrentWorkspace != NULL) { // surround in an exception handler in case of lock errors, etc - // we need to remove the graphic tracker // Action taken depends on the current tool type switch(m_pToolCur->ToolType()) { case TOOLTYPE_HIGHLIGHT: case TOOLTYPE_PEN: case TOOLTYPE_LINE: case TOOLTYPE_BOX: case TOOLTYPE_FILLEDBOX: case TOOLTYPE_ELLIPSE: case TOOLTYPE_FILLEDELLIPSE: CompleteDrawingMode(); break; case TOOLTYPE_SELECT: CompleteSelectMode(); break; case TOOLTYPE_ERASER: CompleteDeleteMode(); break; case TOOLTYPE_TEXT: m_ptStart.x = x; m_ptStart.y = y; ClientToSurface(&m_ptStart); BeginTextMode(m_ptStart); break; default: ERROR_OUT(("Unknown pen type")); break; } } // Show that we are no longer tracking an object if (m_pGraphicTracker != NULL) { m_pGraphicTracker = NULL; // Don't delete the tracker since it is the drawing object } } // unclamp cursor (bug 589) ClipCursor(NULL); } // // // Function: CompleteSelectMode // // Purpose: Complete a select mode operation // // void WbDrawingArea::CompleteSelectMode() { // If an object is being dragged //if (m_pGraphicTracker != NULL) { // Check if we were dragging a pointer. Pointers track // themselves i.e. the original copy of the pointer is not // left on the page. We want to leave the last drawn image on // the page as this is the new pointer position. if( m_bTrackingSelectRect && (!EqualPoint(m_ptStart, m_ptEnd))) { CompleteMarkAreaMode(); SelectMarkerFromRect( &m_rcMarkedArea ); } else { // If we need to remove the rubber band box if (!EqualPoint(m_ptStart, m_ptEnd)) { EraseInitialDrawFinal(m_ptStart.x - m_ptEnd.x , m_ptStart.y - m_ptEnd.y, TRUE); InvalidateSurfaceRect(&g_pDraw->m_selectorRect,TRUE); } else { // Start and end points were the same, in this case the object has // not been moved. We treat this as a request to move the marker // back through the stack of objects. if (m_bNewMarkedGraphic == FALSE) { SelectPreviousGraphicAt(m_pSelectedGraphic, m_ptEnd); } } m_bTrackingSelectRect = TRUE; } // // Make sure to delete the saved bitmap // if(m_pSelectedGraphic && m_pSelectedGraphic->GraphicTool() == TOOLTYPE_REMOTEPOINTER) { ((BitmapObj*)m_pSelectedGraphic)->DeleteSavedBitmap(); } } } void WbDrawingArea::CompleteDeleteMode() { // select object(s) CompleteSelectMode(); // // If we are draging the remote pointer do nothing // if(m_pSelectedGraphic && m_pSelectedGraphic->GraphicTool() == TOOLTYPE_REMOTEPOINTER) { return; } // nuke 'em ::PostMessage(g_pMain->m_hwnd, WM_COMMAND, MAKELONG(IDM_DELETE, BN_CLICKED), 0); } // // // Function: CompleteMarkAreaMode // // Purpose: Process a mouse button up event in mark area mode // // void WbDrawingArea::CompleteMarkAreaMode(void) { // Get a device context for tracking HDC hDC = m_hDCCached; // Erase the last ellipse (using XOR property) if (!EqualPoint(m_ptStart, m_ptEnd)) { // Draw the rectangle m_pGraphicTracker->Draw(); // Use normalized coords if (m_ptEnd.x < m_ptStart.x) { m_rcMarkedArea.left = m_ptEnd.x; m_rcMarkedArea.right = m_ptStart.x; } else { m_rcMarkedArea.left = m_ptStart.x; m_rcMarkedArea.right = m_ptEnd.x; } if (m_ptEnd.y < m_ptStart.y) { m_rcMarkedArea.top = m_ptEnd.y; m_rcMarkedArea.bottom = m_ptStart.y; } else { m_rcMarkedArea.top = m_ptStart.y; m_rcMarkedArea.bottom = m_ptEnd.y; } } } // // // Function: CompleteTextMode // // Purpose: Complete a text mode operation // // void WbDrawingArea::CompleteTextMode() { // Not much to for text mode. Main text mode actions are taken // as a result of a WM_CHAR message and not on mouse events. // Just deselect our font if it is still selected UnPrimeFont(m_hDCCached); } // // // Function: CompleteDrawingMode // // Purpose: Complete a draw mode operation // // void WbDrawingArea::CompleteDrawingMode() { // Only draw the line if it has non-zero length if (!EqualPoint(m_ptStart, m_ptEnd)) { DrawObj *pObj; pObj = m_pGraphicTracker; // // Erase the last traking // pObj->Draw(); if(m_pToolCur->ToolType() == TOOLTYPE_PEN || m_pToolCur->ToolType() == TOOLTYPE_HIGHLIGHT) { // DO nothing because we drew it already and all the attributes are also already set // Stop the update timer ::KillTimer(m_hwnd, TIMER_GRAPHIC_UPDATE); } else { RECT rect; rect.left = m_ptStart.x; rect.top = m_ptStart.y; rect.right = m_ptEnd.x; rect.bottom = m_ptEnd.y; pObj->SetRect(&rect); pObj->SetPenThickness(m_pToolCur->GetWidth()); ::InflateRect(&rect, m_pToolCur->GetWidth()/2, m_pToolCur->GetWidth()/2); pObj->SetBoundsRect(&rect); pObj->SetPenColor(m_pToolCur->GetColor(), TRUE); pObj->SetFillColor(m_pToolCur->GetColor(), (m_pToolCur->ToolType() == TOOLTYPE_FILLEDELLIPSE || m_pToolCur->ToolType() == TOOLTYPE_FILLEDBOX)); pObj->SetROP(m_pToolCur->GetROP()); POINT deltaPoint; deltaPoint.x = m_ptEnd.x - m_ptStart.x; deltaPoint.y = m_ptEnd.y - m_ptStart.y; pObj->AddPoint(deltaPoint); // // Draw the object // pObj->Draw(); } // // We are done with this drawing // pObj->SetIsCompleted(TRUE); pObj->SetViewState(unselected_chosen); // // If the object was alredy added just send an edit // if(pObj->GetMyWorkspace()) { pObj->OnObjectEdit(); } else { // Add the object to the list of objects pObj->AddToWorkspace(); } } else { delete m_pGraphicTracker; } m_pGraphicTracker =NULL; } // // // Function: EndTextEntry // // Purpose: The user has finished entering a text object. The parameter // indicates whether the changes are to be accepted or // discarded. // // void WbDrawingArea::EndTextEntry(BOOL bAccept) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::EndTextEntry"); WorkspaceObj * pWorkspace = m_pTextEditor->GetMyWorkspace(); // Deactivate the text editor DeactivateTextEditor(); if(bAccept &&( m_pTextEditor->strTextArray.GetSize()) ) { if(!pWorkspace && m_pTextEditor->strTextArray.GetSize()) { m_pTextEditor->AddToWorkspace(); } else { if(m_pTextEditor->HasTextChanged()) { m_pTextEditor->OnObjectEdit(); } } // // Tell the other nodes they can edit this object now // m_pTextEditor->SetViewState(unselected_chosen); m_pTextEditor->OnObjectEdit(); } else { // // if we were already added by a WM_TIMER message // if(pWorkspace) { // // Tell the other nodes we deleted this text. // m_pTextEditor->OnObjectDelete(); // // If we delete localy we add this object to the trash can, but we really want to delete it // m_pTextEditor->ClearDeletionFlags(); pWorkspace->RemoveT126Object(m_pTextEditor); } else { delete m_pTextEditor; } } m_pTextEditor = NULL; } // // // Function: Zoom // // Purpose: Toggle the zoom state of the drawing area // // void WbDrawingArea::Zoom(void) { RECT rcClient; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::Zoom"); // We zoom focusing on the centre of the window ::GetClientRect(m_hwnd, &rcClient); long xOffset = (rcClient.right - (rcClient.right / m_iZoomOption)) / 2; long yOffset = (rcClient.bottom - (rcClient.bottom / m_iZoomOption)) / 2; if (m_iZoomFactor != 1) { // We are already zoomed move back to unzoomed state // First save the scroll position in case we return to zoom immediately m_posZoomScroll = m_posScroll; m_zoomRestoreScroll = TRUE; m_posScroll.x -= xOffset; m_posScroll.y -= yOffset; ::ScaleViewportExtEx(m_hDCCached, 1, m_iZoomFactor, 1, m_iZoomFactor, NULL); m_iZoomFactor = 1; } else { // We are not zoomed so do it if (m_zoomRestoreScroll) { m_posScroll = m_posZoomScroll; } else { m_posScroll.x += xOffset; m_posScroll.y += yOffset; } m_iZoomFactor = m_iZoomOption; ::ScaleViewportExtEx(m_hDCCached, m_iZoomFactor, 1, m_iZoomFactor, 1, NULL); // ADDED BY RAND - don't allow text editing in zoom mode if( (m_pToolCur == NULL) || (m_pToolCur->ToolType() == TOOLTYPE_TEXT) ) ::SendMessage(g_pMain->m_hwnd, WM_COMMAND, IDM_TOOLS_START, 0 ); } TRACE_MSG(("Set zoom factor to %d", m_iZoomFactor)); // Update the scroll information SetScrollRange(rcClient.right, rcClient.bottom); ValidateScrollPos(); ::SetScrollPos(m_hwnd, SB_HORZ, m_posScroll.x, TRUE); ::SetScrollPos(m_hwnd, SB_VERT, m_posScroll.y, TRUE); // Update the origin offset from the scroll position m_originOffset.cx = m_posScroll.x; m_originOffset.cy = m_posScroll.y; ::SetWindowOrgEx(m_hDCCached, m_originOffset.cx, m_originOffset.cy, NULL); // Tell the parent that the scroll position has changed ::PostMessage(g_pMain->m_hwnd, WM_USER_PRIVATE_PARENTNOTIFY, WM_VSCROLL, 0L); // // Update the tool/menu item states, since our zoom state has changed // and that will enable/disable some tools, etc. // g_pMain->SetMenuStates(::GetSubMenu(::GetMenu(g_pMain->m_hwnd), 3)); // Redraw the window ::InvalidateRect(m_hwnd, NULL, TRUE); } // // // Function: SelectTool // // Purpose: Set the current tool // // void WbDrawingArea::SelectTool(WbTool* pToolNew) { if(pToolNew == m_pToolCur) { return; } // If we are leaving text mode, complete the text entry if (m_bTextEditorActive && (m_pToolCur->ToolType() == TOOLTYPE_TEXT) && (pToolNew->ToolType() != TOOLTYPE_TEXT)) { // End text entry accepting the changes EndTextEntry(TRUE); } // If we are no longer in select mode, and the marker is present, // then remove it and let the tool know it's no longer selected if (m_pToolCur != NULL) { RemoveMarker(); m_pSelectedGraphic = NULL; } // Save the new tool m_pToolCur = pToolNew; } // // // Function: SetSelectionColor // // Purpose: Set the color of the selected object // // void WbDrawingArea::SetSelectionColor(COLORREF clr) { RECT rc; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::SetSelectionColor"); if(g_pCurrentWorkspace) { RECT rect; T126Obj* pObj; WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally()) { // // Set the new pen color // pObj->SetPenColor(clr, TRUE); pObj->SetFillColor(clr, (pObj->GraphicTool() == TOOLTYPE_FILLEDELLIPSE || pObj->GraphicTool() == TOOLTYPE_FILLEDBOX)); pObj->UnDraw(); pObj->DrawRect(); // // Send it to other nodes // pObj->OnObjectEdit(); // // Draw it locally // pObj->Draw(); } } } // If the text editor is active - redraw the text in the new color if (m_bTextEditorActive) { // Change the color being used by the editor m_pTextEditor->SetPenColor(clr, TRUE); // Update the screen m_pTextEditor->GetBoundsRect(&rc); InvalidateSurfaceRect(&rc, TRUE); } } // // // Function: SetSelectionWidth // // Purpose: Set the nib width used to draw the currently selected object // // void WbDrawingArea::SetSelectionWidth(UINT uiWidth) { if(g_pCurrentWorkspace) { RECT rect; T126Obj* pObj; WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally()) { // // Undraw the object // pObj->UnDraw(); pObj->DrawRect(); // // Get the correct width for each object // WbTool* pSelectedTool = g_pMain->m_ToolArray[pObj->GraphicTool()]; pSelectedTool->SetWidthIndex(uiWidth); pObj->SetPenThickness(pSelectedTool->GetWidth()); // // Send it to other nodes // pObj->OnObjectEdit(); // // Draw it locally // pObj->Draw(); } } } } // // // Function: SetSelectionFont // // Purpose: Set the font used by the currently selected object // // void WbDrawingArea::SetSelectionFont(HFONT hFont) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::SetSelectionFont"); // Define rectangles for redrawing RECT rcOldBounds; RECT rcNewBounds; // Pass the font onto the text editor // If the text editor is active - redraw the text in the new font if (m_bTextEditorActive) { m_pTextEditor->GetBoundsRect(&rcOldBounds); m_pTextEditor->SetFont(hFont); // Get the new rectangle of the text m_pTextEditor->GetBoundsRect(&rcNewBounds); // Remove and destroy the text cursor to ensure that it // gets re-drawn with the new size for the font // Update the screen InvalidateSurfaceRect(&rcOldBounds, TRUE); InvalidateSurfaceRect(&rcNewBounds, TRUE); // get the text cursor back ActivateTextEditor( TRUE ); } if(g_pCurrentWorkspace) { T126Obj* pObj; WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally() && pObj->GraphicTool() == TOOLTYPE_TEXT) { // // Set the new pen color // ((TextObj*)pObj)->SetFont(hFont); pObj->UnDraw(); pObj->DrawRect(); // // Send it to other nodes // pObj->OnObjectEdit(); // // Draw it locally // pObj->Draw(); } } } } // // // Function: OnSetFocus // // Purpose: The window is getting the focus // // void WbDrawingArea::OnSetFocus(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::OnSetFocus"); // // If we are in text mode, we must make the text cursor visible. // if (m_bTextEditorActive && (m_pToolCur->ToolType() == TOOLTYPE_TEXT)) { ActivateTextEditor(TRUE); } } // // // Function: OnActivate // // Purpose: The window is being activated or deactivated // // void WbDrawingArea::OnActivate(UINT uiState) { // Check if we are being activated or deactivated if (uiState) { // We are being activated, get the focus as well ::SetFocus(m_hwnd); // If we are in text mode, we must make the text cursor visible if (m_bTextEditorActive && (m_pToolCur->ToolType() == TOOLTYPE_TEXT)) { ActivateTextEditor(TRUE); } } else { // We are being deactivated DeactivateTextEditor(); } } // // // Function: DeleteSelection // // Purpose: Delete the currently selected object // // void WbDrawingArea::DeleteSelection() { m_pSelectedGraphic = NULL; } // // // Function: GetSelection // // Purpose: Return the currently selected graphic (or NULL if none). // // T126Obj* WbDrawingArea::GetSelection() { T126Obj* pGraphic = NULL; // If there is an object currently selected... if (GraphicSelected()) { // ...return it pGraphic = m_pSelectedGraphic; } return pGraphic; } // // // Function: BringToTopSelection // // Purpose: Bring the currently selected object to the top // // LRESULT WbDrawingArea::BringToTopSelection(BOOL editedLocally, T126Obj * pT126Obj) { T126Obj* pObj; WBPOSITION posTail; WBPOSITION pos; WBPOSITION myPos; WorkspaceObj *pWorkspace; if(pT126Obj) { pos = pT126Obj->GetMyPosition(); pWorkspace = pT126Obj->GetMyWorkspace(); } else { pos = g_pCurrentWorkspace->GetHeadPosition(); pWorkspace = g_pCurrentWorkspace; } posTail = pWorkspace->GetTailPosition(); while(pos && pos != posTail) { pObj = pWorkspace->GetNextObject(pos); // // If the graphic is selected // if( pObj && (pObj->IsSelected() && // // We were called locally and the graphic is selected locally // ((editedLocally && pObj->WasSelectedLocally()) || // // We were called because the graphic got edited remotely // and it is selected remotely ((!editedLocally && pObj->WasSelectedRemotely()))))) { myPos = pObj->GetMyPosition(); pObj = pWorkspace->RemoveAt(myPos); pWorkspace->AddTail(pObj); if(pT126Obj) { ::InvalidateRect(m_hwnd, NULL, TRUE); return S_OK; } // // send change of z order // pObj->ResetAttrib(); pObj->SetZOrder(front); pObj->OnObjectEdit(); // // Unselect it // pObj->UnselectDrawingObject(); RECT rect; pObj->GetBoundsRect(&rect); InvalidateSurfaceRect(&rect,TRUE); } } return S_OK; } // // // Function: SendToBackSelection // // Purpose: Send the currently marked object to the back // // LRESULT WbDrawingArea::SendToBackSelection(BOOL editedLocally, T126Obj * pT126Obj) { // If there is an object currently selected... T126Obj* pObj; WBPOSITION posHead; WBPOSITION myPos; WBPOSITION pos; WorkspaceObj *pWorkspace; if(pT126Obj) { pos = pT126Obj->GetMyPosition(); pWorkspace = pT126Obj->GetMyWorkspace(); } else { pos = g_pCurrentWorkspace->GetTailPosition(); pWorkspace = g_pCurrentWorkspace; } posHead = pWorkspace->GetHeadPosition(); while(pos && pos != posHead) { pObj = pWorkspace->GetPreviousObject(pos); // // If the graphic is selected // if( (pObj->IsSelected() && // // We were called locally and the graphic is selected locally // ((editedLocally && pObj->WasSelectedLocally()) || // // We were called because the graphic got edited remotely // and it is selected remotely ((!editedLocally && pObj->WasSelectedRemotely()))))) { myPos = pObj->GetMyPosition(); pObj = pWorkspace->RemoveAt(myPos); pWorkspace->AddHead(pObj); if(pT126Obj) { ::InvalidateRect(m_hwnd, NULL, TRUE); return S_OK; } // // send change of z order // pObj->ResetAttrib(); pObj->SetZOrder(back); pObj->OnObjectEdit(); // // Unselect it // pObj->UnselectDrawingObject(); RECT rect; pObj->GetBoundsRect(&rect); ::InvalidateRect(m_hwnd, NULL , TRUE); } } return S_OK; } // // // Function: Clear // // Purpose: Clear the drawing area. // // void WbDrawingArea::Clear() { // Remove the recorded objects // PG_Clear(m_hPage); // The page will be redrawn after an event generated by the clear request } // // // Function: Attach // // Purpose: Change the page the window is displaying // // void WbDrawingArea::Attach(WorkspaceObj* pNewWorkspace) { // Accept any text being edited if (m_bTextEditorActive) { EndTextEntry(TRUE); } // finish any drawing operation now if (m_bLButtonDown) { OnLButtonUp(0, m_ptStart.x, m_ptStart.y); } // Get rid of the selection ClearSelection(); // Save the new page details g_pCurrentWorkspace = pNewWorkspace; if(IsSynced()) { g_pConferenceWorkspace = g_pCurrentWorkspace; } // Force a redraw of the window to show the new contents ::InvalidateRect(m_hwnd, NULL, TRUE); } // // // Function: DrawMarker // // Purpose: Draw the graphic object marker // // void WbDrawingArea::DrawMarker(HDC hDC) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::DrawMarker"); // Draw the marker m_pMarker->Draw(); } // // // Function: PutMarker // // Purpose: Draw the graphic object marker // // void WbDrawingArea::PutMarker(HDC hDC, BOOL bDraw) { } // // // Function: RemoveMarker // // Purpose: Remove the graphic object marker // // void WbDrawingArea::RemoveMarker() { if(g_pCurrentWorkspace) { T126Obj* pObj; WBPOSITION pos; pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally()) { pObj->UnselectDrawingObject(); } } } } // // // Function: ActivateTextEditor // // Purpose: Start a text editing session // // void WbDrawingArea::ActivateTextEditor( BOOL bPutUpCusor ) { // Record that the editor is now active m_bTextEditorActive = TRUE; // show editbox m_pTextEditor->ShowBox( SW_SHOW ); // Start the timer for updating the text m_pTextEditor->SetTimer( DRAW_GRAPHICUPDATEDELAY); } // // // Function: DeactivateTextEditor // // Purpose: End a text editing session // // void WbDrawingArea::DeactivateTextEditor(void) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::DeactivateTextEditor"); // Stop the update timer m_pTextEditor->KillTimer(); // Show that we are not editing any text m_bTextEditorActive = FALSE; // hide editbox m_pTextEditor->ShowBox( SW_HIDE ); } // // // Function: SurfaceToClient // // Purpose: Convert a point in surface co-ordinates to client // co-ordinates (taking account of the current zoom factor). // // void WbDrawingArea::SurfaceToClient(LPPOINT lppoint) { lppoint->x -= m_originOffset.cx; lppoint->x *= m_iZoomFactor; lppoint->y -= m_originOffset.cy; lppoint->y *= m_iZoomFactor; } // // // Function: ClientToSurface // // Purpose: Convert a point in client co-ordinates to surface // co-ordinates (taking account of the current zoom factor). // // void WbDrawingArea::ClientToSurface(LPPOINT lppoint) { ASSERT(m_iZoomFactor != 0); lppoint->x /= m_iZoomFactor; lppoint->x += m_originOffset.cx; lppoint->y /= m_iZoomFactor; lppoint->y += m_originOffset.cy; } // // // Function: SurfaceToClient // // Purpose: Convert a rectangle in surface co-ordinates to client // co-ordinates (taking account of the current zoom factor). // // void WbDrawingArea::SurfaceToClient(LPRECT lprc) { SurfaceToClient((LPPOINT)&lprc->left); SurfaceToClient((LPPOINT)&lprc->right); } // // // Function: ClientToSurface // // Purpose: Convert a rectangle in client co-ordinates to surface // co-ordinates (taking account of the current zoom factor). // // void WbDrawingArea::ClientToSurface(LPRECT lprc) { ClientToSurface((LPPOINT)&lprc->left); ClientToSurface((LPPOINT)&lprc->right); } // // // Function: GraphicSelected // // Purpose: Return TRUE if a graphic is currently selected // // BOOL WbDrawingArea::GraphicSelected(void) { if(g_pCurrentWorkspace) { T126Obj* pObj; WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally()) { m_pSelectedGraphic = pObj; return TRUE; } } } return FALSE; } BOOL WbDrawingArea::MoveSelectedGraphicBy(LONG x, LONG y) { T126Obj* pObj; WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally()) { pObj->MoveBy(x, y); } } return FALSE; } void WbDrawingArea::EraseSelectedDrawings(void) { T126Obj* pObj; // // Burn trash // pObj = (T126Obj *)g_pTrash->RemoveTail(); while (pObj != NULL) { delete pObj; pObj = (T126Obj *) g_pTrash->RemoveTail(); } WBPOSITION pos = g_pCurrentWorkspace->GetHeadPosition(); while(pos) { pObj = (T126Obj*)g_pCurrentWorkspace->GetNextObject(pos); if(pObj && pObj->WasSelectedLocally() && pObj->GraphicTool() != TOOLTYPE_REMOTEPOINTER) { pObj->DeletedLocally(); g_pCurrentWorkspace->RemoveT126Object(pObj); } } } void WbDrawingArea::EraseInitialDrawFinal(LONG x, LONG y, BOOL editedLocally, T126Obj* pObj) { T126Obj* pGraphic; WorkspaceObj * pWorkspace; WBPOSITION pos; if(pObj) { pWorkspace = pObj->GetMyWorkspace(); pGraphic = pObj; } else { pWorkspace = g_pCurrentWorkspace; } // // Check if the objects workspace is valid or if there is a current workspace // if(pWorkspace == NULL) { return; } pos = pWorkspace->GetHeadPosition(); while(pos) { // if we are talking about an specifc object if(!pObj) { pGraphic = (T126Obj*)pWorkspace->GetNextObject(pos); } // // If the graphic is selected // if(pGraphic && // // We were called locally and the graphic is selected locally // ((editedLocally && pGraphic->WasSelectedLocally()) || // // We were called because the graphic got edited remotely // and it is selected remotely // (!editedLocally))) { POINT finalAnchorPoint; RECT initialRect; RECT rect; RECT initialBoundsRect; RECT boundsRect; // // Get The final Rects // pGraphic->GetRect(&rect); pGraphic->GetBoundsRect(&boundsRect); initialRect = rect; initialBoundsRect = boundsRect; pGraphic->GetAnchorPoint(&finalAnchorPoint); // // Find out were the drawing was // ::OffsetRect(&initialRect, x, y); ::OffsetRect(&initialBoundsRect, x, y); pGraphic->SetRect(&initialRect); pGraphic->SetBoundsRect(&initialBoundsRect); pGraphic->SetAnchorPoint(finalAnchorPoint.x + x, finalAnchorPoint.y + y); // // Erase initial drawing // pGraphic->UnDraw(); // //Erase the selection rectangle only if we selected locally // if(editedLocally) { pGraphic->DrawRect(); } // // The only attributes we want to send unselected and anchorpoint // pGraphic->ResetAttrib(); // // Restore rectangles and draw the object in the final position // pGraphic->SetRect(&rect); pGraphic->SetBoundsRect(&boundsRect); pGraphic->SetAnchorPoint(finalAnchorPoint.x, finalAnchorPoint.y); pGraphic->Draw(FALSE); // // Don't send it if it was not created locally // if(editedLocally) { pGraphic->EditedLocally(); // // Sends the final drawing to the other nodes // pGraphic->OnObjectEdit(); // // This will remove the selection box and send a // edit PDU telling other nodes the object is not selected // pGraphic->UnselectDrawingObject(); } } // // Just moved one specifc object // if(pObj != NULL) { return; } } } // // // Function: SelectGraphic // // Purpose: Select a graphic - save the pointer to the graphic and // draw the marker on it. // // void WbDrawingArea::SelectGraphic(T126Obj* pGraphic, BOOL bEnableForceAdd, BOOL bForceAdd ) { BOOL bZapCurrentSelection; RECT rc; MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::SelectGraphic"); if(pGraphic->IsSelected() && pGraphic->WasSelectedLocally()) { pGraphic->UnselectDrawingObject(); return; } else if(pGraphic->IsSelected() && pGraphic->WasSelectedRemotely()) { return; } else { // new selection, add to list or replace list? if( bEnableForceAdd ) { bZapCurrentSelection = !bForceAdd; } else { bZapCurrentSelection = ((GetAsyncKeyState( VK_SHIFT ) >= 0) && (GetAsyncKeyState( VK_CONTROL ) >= 0)); } if( bZapCurrentSelection ) { // replace list RemoveMarker(); } } // Update the attributes window to show graphic is selected m_pToolCur->SelectGraphic(pGraphic); pGraphic->SelectDrawingObject(); HWND hwndParent = ::GetParent(m_hwnd); if (hwndParent != NULL) { ::PostMessage(hwndParent, WM_USER_UPDATE_ATTRIBUTES, 0, 0); } } // // // Function: DeselectGraphic // // Purpose: Deselect a graphic - remove the marker and delete the // graphic object associated with it. // // void WbDrawingArea::DeselectGraphic(void) { HWND hwndParent = ::GetParent(m_hwnd); if (hwndParent != NULL) { ::PostMessage(hwndParent, WM_USER_UPDATE_ATTRIBUTES, 0, 0); } } // // // Function: GetVisibleRect // // Purpose: Return the rectangle of the surface currently visible in the // drawing area window. // // void WbDrawingArea::GetVisibleRect(LPRECT lprc) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::VisibleRect"); // Get the client rectangle ::GetClientRect(m_hwnd, lprc); // Convert to surface co-ordinates ClientToSurface(lprc); } // // // Function: MoveOntoSurface // // Purpose: If a given point is outwith the surface rect, move it on // // void WbDrawingArea::MoveOntoSurface(LPPOINT lppoint) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::MoveOntoSurface"); // // Make sure that the position is within the surface rect // if (lppoint->x < 0) { lppoint->x = 0; } else if (lppoint->x >= DRAW_WIDTH) { lppoint->x = DRAW_WIDTH - 1; } if (lppoint->y < 0) { lppoint->y = 0; } else if (lppoint->y >= DRAW_HEIGHT) { lppoint->y = DRAW_HEIGHT - 1; } } // // // Function: GetOrigin // // Purpose: Provide current origin of display // // void WbDrawingArea::GetOrigin(LPPOINT lppoint) { lppoint->x = m_originOffset.cx; lppoint->y = m_originOffset.cy; } void WbDrawingArea::ShutDownDC(void) { UnPrimeDC(m_hDCCached); if (m_hDCWindow != NULL) { ::ReleaseDC(m_hwnd, m_hDCWindow); m_hDCWindow = NULL; } m_hDCCached = NULL; } void WbDrawingArea::ClearSelection( void ) { MLZ_EntryOut(ZONE_FUNCTION, "WbDrawingArea::ClearSelection"); RemoveMarker(); g_pMain->OnUpdateAttributes(); } void WbDrawingArea::OnCancelMode( void ) { // We were dragging but lost mouse control, gracefully end the drag (NM4db:573) POINT pt; ::GetCursorPos(&pt); ::ScreenToClient(m_hwnd, &pt); OnLButtonUp(0, pt.x, pt.y); m_bLButtonDown = FALSE; }
a84d40a4ae9e1c571a020941ccce0300eb3cb9e3
5b2f83597acb1e07d031cbdeb33080b656f2327c
/Misc/read_writer.cpp
829705630e943d77129feb12b022165ec22cd4d1
[]
no_license
sahilkumar11/Operating-System-Lab-Programs
bd14d23c716908f6b3d95b9222ceb79da5a9f1de
767cab880f6e54ed4aaa37ce1c4d1a01bcc7ced4
refs/heads/master
2022-03-01T01:32:56.542142
2019-12-08T22:30:26
2019-12-08T22:30:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
185
cpp
read_writer.cpp
#include<bits/stdc++.h> #include<sys/types.h> using namespace std; bool wrt; void writer() { while(wrt==false); cout<<"\nWriting..."; wrt=false; } int main() { return 0; }
abc83d63fc59ce539605122928c529d7d3a52646
b2357aee67c308a3bb2ce07c6f4da388d4d83cd2
/src/BluetoothServiceAdvertiser.cpp
f8deb92a09f13334c9d726e1e951f78db148d8c2
[]
no_license
bindscha/secure-sms
fecb6927782ca00fd24810d6cb5e57e6c6a4a498
6c934b3ddd829fc0d1251648936cfde3cf8a57eb
refs/heads/master
2021-03-27T16:49:41.496617
2013-04-23T20:37:54
2013-04-23T20:37:54
9,632,787
1
0
null
null
null
null
UTF-8
C++
false
false
5,236
cpp
BluetoothServiceAdvertiser.cpp
/* ======================================================================== Name : BluetoothServiceAdvertiser.cpp Author : Nokia Corporation Modified : Laurent Bindschaedler Copyright : Copyright (c) Nokia Corporation 2009 Description : Implementation of Bluetooth service advertiser ======================================================================== */ // INCLUDE FILES #include <btmanclient.h> #include "BluetoothServiceAdvertiser.h" // see https://www.bluetooth.org/foundry/assignnumb/document/service_discovery // service name and description for our service _LIT(KBTServiceName, "BTpmp"); _LIT(KBTServiceDesc, "BTpmp"); CServiceAdvertiser* CServiceAdvertiser::NewL() { CServiceAdvertiser* self = CServiceAdvertiser::NewLC(); CleanupStack::Pop(self); return self; } CServiceAdvertiser* CServiceAdvertiser::NewLC() { CServiceAdvertiser* self = new (ELeave) CServiceAdvertiser(); CleanupStack::PushL(self); self->ConstructL(); return self; } void CServiceAdvertiser::ConstructL() { } // ---------------------------------------------------------------------------- // CServiceAdvertiser::CServiceAdvertiser() // // constructor // ---------------------------------------------------------------------------- CServiceAdvertiser::CServiceAdvertiser() { } // ---------------------------------------------------------------------------- // CServiceAdvertiser::~CServiceAdvertiser() // // destructor // ---------------------------------------------------------------------------- CServiceAdvertiser::~CServiceAdvertiser() { TRAPD(err, StopAdvertiserL()); } // ---------------------------------------------------------------------------- // CServiceAdvertiser::StartAdvertiserL(TInt aChannel) // // start service advertiser on given channel. an entry to service discovery // database will be entered describing our advertised service. // ---------------------------------------------------------------------------- void CServiceAdvertiser::StartAdvertiserL(TInt aChannel) { // open sdp session User::LeaveIfError(iSdp.Connect()); // open sdp database session User::LeaveIfError(iSdpDB.Open(iSdp)); // create a record of the correct service class TUUID serviceUUID(KBT_serviceID); iSdpDB.CreateServiceRecordL(serviceUUID, iRecord); // add a protocol to the record CSdpAttrValueDES* protocolDescriptorList = CSdpAttrValueDES::NewDESL(NULL); CleanupStack::PushL(protocolDescriptorList); TBuf8<1> channel; channel.Append((TChar)aChannel); // create protocol list for our service protocolDescriptorList ->StartListL() // list of protocols required for this method ->BuildDESL() ->StartListL() ->BuildUUIDL(KL2CAP) ->EndListL() ->BuildDESL() ->StartListL() ->BuildUUIDL(KRFCOMM) ->BuildUintL(channel) ->EndListL() ->EndListL(); // set protocol list to the record iSdpDB.UpdateAttributeL(iRecord, KSdpAttrIdProtocolDescriptorList, *protocolDescriptorList); CleanupStack::PopAndDestroy(protocolDescriptorList); // add a name to the record iSdpDB.UpdateAttributeL(iRecord, KSdpAttrIdBasePrimaryLanguage + KSdpAttrIdOffsetServiceName, KBTServiceName); // add a description to the record iSdpDB.UpdateAttributeL(iRecord, KSdpAttrIdBasePrimaryLanguage + KSdpAttrIdOffsetServiceDescription, KBTServiceDesc); // set service available UpdateAvailabilityL(ETrue); } // ---------------------------------------------------------------------------- // CServiceAdvertiser::StopAdvertiserL() // // stop service advertiser. delete service record from service discovery // database to stop advertising. // ---------------------------------------------------------------------------- void CServiceAdvertiser::StopAdvertiserL() { if ( iRecord!=0 ) { // delete out record from service discovery database iSdpDB.DeleteRecordL(iRecord); // close sdp and sdp db sessions iSdpDB.Close(); iSdp.Close(); iRecord=0; } } // ---------------------------------------------------------------------------- // CServiceAdvertiser::UpdateAvailability(TBool aAvailable) // // set availability of our advertised service. the service record on the // service discovery database will be updated accordingly. // ---------------------------------------------------------------------------- void CServiceAdvertiser::UpdateAvailabilityL(TBool aAvailable) { TInt state = aAvailable ? 0xFF : 0x00; // set availability iSdpDB.UpdateAttributeL(iRecord, KSdpAttrIdServiceAvailability, state); // mark record changed iSdpDB.UpdateAttributeL(iRecord, KSdpAttrIdServiceRecordState, ++iRecordState); }
69e9acc56bda79cd2a7bfc6538cf3c76c7ad1f93
aa4733448f2768f936ae98379fa6555025e37dff
/MFW/Android/jni/source/njvrender/vomeRGB565VideoRender.cpp
e9a63acc5ad52ddf71365897b4c72705d59ba4be
[]
no_license
schreibikus/nmPlayer
0048599d6e5fc60cc44f480fed85f9cf6446cfb4
1e6f3fb265ab8ec091177c8cd8f3c6e384df7edc
refs/heads/master
2020-04-01T20:34:56.120981
2017-05-06T08:33:55
2017-05-06T08:33:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,405
cpp
vomeRGB565VideoRender.cpp
/* ** Copyright 2007, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ //#define LOG_NDEBUG 0 #define LOG_TAG "vomeRGB565VideoRender" #include "utils/Log.h" #include <stdio.h> #include <assert.h> #include <limits.h> #include <unistd.h> #include <fcntl.h> #include <sched.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <dlfcn.h> #include <utils/threads.h> #include "vomeRGB565VideoRender.h" // ---------------------------------------------------------------------------- namespace android { vomeRGB565VideoRender::vomeRGB565VideoRender(void) : m_pSurface (NULL) , m_pFrameHeap (NULL) , m_bInit (false) , m_pOutBuffer (NULL) , m_nVideoWidth (0) , m_nVideoHeight (0) , m_nBufferWidth (0) , m_nBufferHeight (0) , m_nDispWidth (800) , m_nDispHeight (480) , m_pCCRR(NULL) { LOGW("@@@@@@ vomeRGB565VideoRender vomeRGB565VideoRender V0201B\n"); } vomeRGB565VideoRender::~vomeRGB565VideoRender(void) { releaseMemHeap (); if (m_pCCRR) { delete m_pCCRR; m_pCCRR = NULL; } LOGW("@@@@@@ vomeRGB565VideoRender destructor \n"); } int vomeRGB565VideoRender::SetVideoSurface (const sp<ISurface>& surface) { LOGW("@@@@@@ vomeRGB565VideoRender SetVideoSurface %x \n", (unsigned int)surface.get ()); m_pSurface = surface; return 0; } int vomeRGB565VideoRender::SetVideoSize (int nWidth, int nHeight) { LOGW("@@@@@@ vomeRGB565VideoRender SetVideoSize W %d H %d \n", nWidth, nHeight); m_nVideoWidth = nWidth; m_nVideoHeight = nHeight; m_nVideoWidth = (m_nVideoWidth + 3) & ~0X03; m_nVideoHeight = (m_nVideoHeight + 1) & ~0X01; if (m_nBufferWidth == 0) m_nBufferWidth = m_nVideoWidth; if (m_nBufferHeight == 0) m_nBufferHeight = m_nVideoHeight; return 0; } int vomeRGB565VideoRender::SetDispSize (int nWidth, int nHeight) { LOGW("@@@@@@ vomeRGB565VideoRender SetDispSize W %d H %d \n", nWidth, nHeight); m_nDispWidth = nWidth; m_nDispHeight = nHeight; return 0; } bool vomeRGB565VideoRender::CheckColorType (VO_ANDROID_COLORTYPE nColorType) { if (nColorType == VO_ANDROID_COLOR_RGB565 || nColorType == VO_ANDROID_COLOR_YUV420) return true; else return false; } void * vomeRGB565VideoRender::GetVideoMemOperator (void) { return NULL; // return &g_vmVROP; } bool vomeRGB565VideoRender::Render (VO_ANDROID_VIDEO_BUFFERTYPE * pVideoBuffer) { //LOGW("@@@@@@ vomeRGB565VideoRender Render. \n"); if (m_pOutBuffer == NULL) { if (pVideoBuffer->nColorType == VO_ANDROID_COLOR_RGB565) createMemHeap (false); else createMemHeap (true); } if (pVideoBuffer->nColorType == VO_ANDROID_COLOR_RGB565) { if (m_pOutBuffer != pVideoBuffer->virBuffer[0]) { LOGW("@@@@@@ vomeRGB565VideoRender Render RGB565. \n"); for (int i = 0; i < m_nVideoHeight; i++) memcpy (m_pOutBuffer + m_nVideoWidth * 2 * i, pVideoBuffer->virBuffer[0] + pVideoBuffer->nStride[0] * i, m_nVideoWidth * 2); } m_pSurface->postBuffer (0); } else if (pVideoBuffer->nColorType == VO_ANDROID_COLOR_YUV420) { LOGW("@@@@@@ vomeRGB565VideoRender Render YUV420. \n"); unsigned char * pDst = m_pOutBuffer; #if 0 int i = 0; for (i = 0; i < m_nVideoHeight; i++) memcpy (pDst + m_nVideoWidth * i, pVideoBuffer->virBuffer[0] + pVideoBuffer->nStride[0] * i, m_nVideoWidth); pDst = m_pOutBuffer + m_nVideoWidth * m_nVideoHeight; for (i = 0; i < m_nVideoHeight / 2; i++) memcpy (pDst + m_nVideoWidth / 2 * i, pVideoBuffer->virBuffer[1] + pVideoBuffer->nStride[1] * i, m_nVideoWidth / 2); pDst = m_pOutBuffer + m_nVideoWidth * m_nVideoHeight * 5 / 4; for (i = 0; i < m_nVideoHeight / 2; i++) memcpy (pDst + m_nVideoWidth / 2 * i, pVideoBuffer->virBuffer[2] + pVideoBuffer->nStride[2] * i, m_nVideoWidth / 2); #else //Convert to RGB565 if (m_pCCRR == NULL) m_pCCRR = new voCCRR(); VO_VIDEO_BUFFER inBuf; VO_VIDEO_BUFFER outBuf; inBuf.Buffer[0] = pVideoBuffer->virBuffer[0]; inBuf.Buffer[1] = pVideoBuffer->virBuffer[1]; inBuf.Buffer[2] = pVideoBuffer->virBuffer[2]; inBuf.Stride[0] = pVideoBuffer->nStride[0]; inBuf.Stride[1] = pVideoBuffer->nStride[1]; inBuf.Stride[2] = pVideoBuffer->nStride[2]; int w, h, l, t; #if 1 // full screen w = m_nDispWidth; h = m_nDispHeight; #else // keep aspect //if (m_nDispWidth / m_nDispHeight > m_nVideoWidth / m_nVideoHeight) if (m_nDispWidth * m_nVideoHeight > m_nVideoWidth * m_nDispHeight) { h = m_nDispHeight; w = m_nVideoWidth * h / m_nVideoHeight; } else { w = m_nDispWidth; h = m_nVideoHeight * w / m_nVideoWidth; } #endif w &= ~0x3; h &= ~0x1; l = (m_nDispWidth - w) / 2; t = (m_nDispHeight - h) / 2; pDst += (m_nDispWidth * t + l) * 2; outBuf.Buffer[0] = pDst; outBuf.Stride[0] = m_nDispWidth * 2; LOGW("SetInputSize(%d, %d)", m_nVideoWidth, m_nVideoHeight); if (m_pCCRR->SetInputSize (m_nVideoWidth, m_nVideoHeight, 0, 0, m_nVideoWidth, m_nVideoHeight) >= 0) { LOGW("SetOutputSize(%d, %d, %d, %d, %d, %d)", w, h, l, t, l + w, t + h); if (m_pCCRR->SetOutputSize (w, h, l, t, l + w, t + h) >= 0) { //LOGW("ProcessRGB565"); int nAngle = 0; #ifndef __VONJ_FROYO__ m_pCCRR->ProcessRGB565 (PIXEL_FORMAT_YCbCr_420_P, &inBuf, &outBuf, nAngle); #else m_pCCRR->ProcessRGB565 (VO_COLOR_YUV_PLANAR420, &inBuf, &outBuf, nAngle); #endif //LOGW("ProcessRGB565 Done"); } } #endif m_pSurface->postBuffer(0); } return true; } bool vomeRGB565VideoRender::createMemHeap (bool bYUV) { // release resources if previously initialized releaseMemHeap(); LOGW("vomeRGB565VideoRender::createMemHeap %d x %d bYUV: %d", m_nVideoWidth, m_nVideoHeight, bYUV); int nFormat = PIXEL_FORMAT_RGB_565; int nWidth, nHeight; if (bYUV) { nWidth = m_nDispWidth; nHeight = m_nDispHeight; } else { nWidth = m_nVideoWidth; nHeight = m_nVideoHeight; } m_pFrameHeap = new MemoryHeapBase(nWidth * nHeight * 2); ISurface::BufferHeap Buffers (nWidth, nHeight, nWidth, nHeight, nFormat, m_pFrameHeap); status_t s = m_pSurface->registerBuffers(Buffers); LOGW("vomeRGB565VideoRender::createMemHeap registerBuffers = %d - %s", s, strerror(s)); m_pOutBuffer = static_cast<unsigned char*>(m_pFrameHeap->base()); memset (m_pOutBuffer, 0, nWidth * nHeight * 2); m_bInit = true; return true; } void vomeRGB565VideoRender::releaseMemHeap (void) { if (m_bInit) { m_pSurface->unregisterBuffers(); if (m_pFrameHeap != NULL) m_pFrameHeap.clear(); m_bInit = false; } } } // end namespace android
7b549e23cf54dd265a75705e48545aac528bb212
5ad7d5b4a5f6c973c1315fdc2314c0442b4c3c66
/parser.h
c556cd2f37e3b7e565b485094a9ccf5cad212ce3
[]
no_license
Cornelius-Leary-III/MIPS_Simulator_M0-M1
9af5b20f94103ae4d8bf851c264212eacc9ead54
aad52c833175784e475d224a4bb4d3f80248f6d0
refs/heads/master
2020-03-30T05:37:18.761542
2018-10-05T17:08:49
2018-10-05T17:08:49
150,809,622
0
0
null
null
null
null
UTF-8
C++
false
false
1,085
h
parser.h
#ifndef PARSER_H #define PARSER_H #include "lexer.h" #include "DeclarationParser.h" #include "InstructionParser.h" #include <vector> using std::vector; #include <sstream> using std::stringstream; class parser { public: parser(std::istream& streamToParse); bool parseStream(); bool checkForGrammarChanges(); bool checkIfDataGrammar(); bool checkIfTextGrammar(); bool dataGrammarParsing(); bool textGrammarParsing(); private: void getAllTokensOnCurrentLine(); void updateTokenIter(); void groupTokensByLine(); vector<tokenVector> fileSplitUpByLines; vector<tokenVector>::iterator fileLineIter; vector<tokenVector>::iterator fileEnd; lexer tokenizer; DeclarationParser* declarationProcessor; InstructionParser* instructionProcessor; tokenVector::iterator tokenIter; tokenVector::iterator tokensEnd; tokenVector tokenStream; tokenVector tokensOnCurrentLine; size_t currentLineNum; bool dataGrammarActive; bool textGrammarActive; bool streamParsedSafely; }; #endif // PARSER_H
726a4276ce9ff544a3c7ccf5854652d13b10c64f
43379391fe3bb06be04d37208e8234d9865543f0
/source/bwh/hacks/lockspeed.cpp
48eccc882080d222a565d518eebece410e63f7dc
[]
no_license
coolzoom/bwh14
4e55112e630e0f979ed2746e599e79c28d405587
762471de3fe2b2fcd83bba9a1fcf7de2391c96d5
refs/heads/master
2020-09-11T15:36:21.504088
2019-11-16T15:17:03
2019-11-16T15:17:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
650
cpp
lockspeed.cpp
#include "lockspeed.h" #include "..\common.h" BYTE g_bLockSpeedBackup[6]; VOID LockSpeed_Enable(PBYTE pLockSpeed, BOOL bEnable) { DWORD dwOldProtect; if(pLockSpeed && VirtualProtect(pLockSpeed, sizeof(g_bLockSpeedBackup), PAGE_READWRITE, &dwOldProtect)) { if(bEnable) { if(pLockSpeed[0] != 0x90) memcpy(g_bLockSpeedBackup, pLockSpeed, sizeof(g_bLockSpeedBackup)); memcpy(pLockSpeed, g_bNop, sizeof(g_bLockSpeedBackup)); } else { if(pLockSpeed[0] == 0x90) memcpy(pLockSpeed, g_bLockSpeedBackup, sizeof(g_bLockSpeedBackup)); } VirtualProtect(pLockSpeed, sizeof(g_bLockSpeedBackup), dwOldProtect, &dwOldProtect); } }
58062d85055c828a9265ff9d74cb35b3ec687a23
ed4a91fd9b4fefca40cc5118b485c0ec7d4ba40c
/louluosrc/logingame_server/src/client/zmq_client_pub_client.h
909512a6ac1c3d3c9bea789af7e2299c64012626
[]
no_license
hkduke/my_src
165035db12481d36bedb48cf2c1c1759ce2af42f
2282fff562fd14c972e7ce66a615a7125cb4a877
refs/heads/master
2020-06-13T08:14:34.674528
2017-04-09T12:47:57
2017-04-09T12:48:37
null
0
0
null
null
null
null
GB18030
C++
false
false
3,245
h
zmq_client_pub_client.h
#ifndef _SD_ZMQ_CLIENT_PUB_CLIENT_H_ #define _SD_ZMQ_CLIENT_PUB_CLIENT_H_ #define SERVER_NAME_KEY "SERVER_NAME" #define SERVICE_NAME_KEY "SERVICE_NAME" #define SERVER_IP_KEY "SERVER_IP" #pragma once #include "zmq_client.h" #include "zmq_client_sub.h" #include "zmq_client_pub.h" #include "SDPthreadLock.h" #include <map> #include <vector> #include <string> #include "SDLogger.h" using namespace std; typedef struct baseinfo { std::string server_name;//服务名 std::string server_ip;//服务器ip std::string service_name;//业务名 }BASEINFO; class Router_coder { public: Router_coder(void); ~Router_coder(void); //encoder function out 编码者使用 void setBaseinfo(const std::string & server_name, const std::string & server_ip, const std::string& service_name); bool setData(const std::string sKey, const std::string sVal); bool setData(const std::string sKey, const int iVal); bool setData(const std::string sKey, const long lVal); bool getSendData(std::string & destData); private: ////decoder function out 解码者使用 //bool decode_baseinfo(std::string recv_data); //bool getBaseinfo_to_json(std::string & destData); //bool setKeyArrays( std::vector<std::string>* keyArrays); //bool addtoKeyArrays(const std::string& sKey); //bool decode_info(std::string recv_data); //bool getBaseinfo(BASEINFO & baseinfo); //bool format_valArrays_to_log(std::ostringstream & destlog, const std::string & ROW_COMPOSE_CHAR); //void getLogLock(boost::shared_ptr<SDLock>& log_lock); //void setLogLock(boost::shared_ptr<SDLock> log_lock); bool encode_info(); bool encode_baseinfo_to_json(); bool insert_map(const std::string& sKey, const std::string& sVal); private: //数据结构 BASEINFO m_baseinfo; std::string m_baseinfo_to_json; //send data std::map<std::string, std::string> m_data_map; std::string m_send_data; bool bIsEncode; //recv data :key - val arrays std::vector<std::string> m_key_arrays; std::vector<std::string> m_val_arrays; std::string m_recv_data; bool bIsDecode; bool bDecodeError; bool bIsEncode_to_json; //写入磁盘时,对应文件的文件锁 //boost::shared_ptr<SDLock> m_log_lock; DECL_LOGGER(logger); }; //单间模式,避免线程开销浪费 class zmq_client_pub_Singleton { public: ~zmq_client_pub_Singleton(void) { } int init(); int commit( std::string & sendData); static zmq_client_pub_Singleton* get_instance() { return m_instance; } protected: zmq_client_pub_Singleton(){m_router_pub_port = 0;} zmq_client_pub_Singleton(const zmq_client_pub_Singleton&){} zmq_client_pub_Singleton& operator=(const zmq_client_pub_Singleton&){return *this;} private: bool init_router_info(); void callback_recv(std::string &data) { //不用实现 } private: //router对象 zmq_client_pub m_zmq_client_pub; //router模块信息 :配置文件 std::string m_router_ip; int m_router_pub_port; std::string m_destination_identity; std::string m_self_identity; //单件对象 static zmq_client_pub_Singleton* m_instance; DECL_LOGGER(logger); }; #endif
7fdfd1a139869e8ee9bbe5895480dc9057a61aab
2867c7651870f519cd446d399fafa244fb1726e8
/naos/includes/kernel/fs/vfs/standalone_file.hpp
0ebde8d61d669f4c970a24d97142570b1d2ee718
[ "BSD-3-Clause" ]
permissive
kadds/NaOS
28f456692338d79ddf0272644a752c275ffea477
476f28eeebf231e3663772dcd69c521ce046e076
refs/heads/master
2023-08-09T05:11:18.300464
2023-07-28T14:17:02
2023-07-28T14:17:02
210,094,361
24
5
null
null
null
null
UTF-8
C++
false
false
576
hpp
standalone_file.hpp
#pragma once #include "common.hpp" #include "defines.hpp" #include "file.hpp" #include "pseudo.hpp" namespace fs::vfs { class dentry; class standalone_file : public file { public: standalone_file(); standalone_file(const standalone_file &f) = delete; file &operator=(const standalone_file &f) = delete; virtual ~standalone_file(){}; void flush() override; protected: i64 iread(i64 &offset, byte *ptr, u64 max_size, flag_t flags) override; i64 iwrite(i64 &offset, const byte *ptr, u64 size, flag_t flags) override; }; } // namespace fs::vfs
218025294666f6c4821631f968a8c6f27faf19ec
26ded66fe25ab74b8e40e01ded1c0a3d1b5028a8
/plugins/PATTauVectorJetCorrMomValExtractor.cc
f096a95191d7eacfecf3507c01b327e6ee588d62
[]
no_license
akalinow/TauAnalysis-TauIdEfficiency
8a332a63be27fdb516add14c46ad1613b882cae5
ec5462d47672662e8d995fc9175088a5de820b99
refs/heads/master
2021-01-21T02:21:48.666347
2013-06-28T20:10:44
2013-06-28T20:10:44
56,061,220
0
0
null
2016-04-12T12:29:24
2016-04-12T12:29:23
null
UTF-8
C++
false
false
1,656
cc
PATTauVectorJetCorrMomValExtractor.cc
#include "TauAnalysis/TauIdEfficiency/plugins/PATTauVectorJetCorrMomValExtractor.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/Common/interface/View.h" #include "DataFormats/PatCandidates/interface/Tau.h" #include "DataFormats/Math/interface/deltaR.h" #include "TauAnalysis/TauIdEfficiency/interface/tauIdEffAuxFunctions.h" #include <string> PATTauVectorJetCorrMomValExtractor::PATTauVectorJetCorrMomValExtractor(const edm::ParameterSet& cfg) : stringObjFunction_(cfg.getParameter<std::string>("value")) { src_ = cfg.getParameter<edm::InputTag>("src"); srcJet_ = cfg.getParameter<edm::InputTag>("srcJet"); } PATTauVectorJetCorrMomValExtractor::~PATTauVectorJetCorrMomValExtractor() { //--- nothing to be done yet... } std::vector<double> PATTauVectorJetCorrMomValExtractor::operator()(const edm::Event& evt) const { std::vector<double> vec; typedef edm::View<pat::Tau> patTauCollectionType; edm::Handle<patTauCollectionType> patTaus; evt.getByLabel(src_, patTaus); edm::Handle<pat::JetCollection> patJets; evt.getByLabel(srcJet_, patJets); for ( patTauCollectionType::const_iterator patTau = patTaus->begin(); patTau != patTaus->end(); ++patTau ) { double vec_i = -1.; const pat::Jet* patJet = getJet_Tau(*patTau, *patJets); if ( patJet ) vec_i = stringObjFunction_(*patJet); vec.push_back(vec_i); } return vec; } #include "FWCore/Framework/interface/MakerMacros.h" DEFINE_EDM_PLUGIN(ObjValVectorExtractorPluginFactory, PATTauVectorJetCorrMomValExtractor, "PATTauVectorJetCorrMomValExtractor");
82a71589e18978412821bae7db228ab6fe4c33d5
40eae647d284e17fdbbb06fe2a3090d6c6f6407b
/libs/draw/polyline.h
864cb12f5745a073c216fccde510d7d46c52a153
[ "MIT" ]
permissive
kdt3rd/gecko
1f6aff6e1e5e0fb125ebeb0352040f1a74939bfc
756a4e4587eb5023495294d9b6c6d80ebd79ebde
refs/heads/master
2021-01-20T21:45:08.459181
2020-02-02T01:04:02
2020-02-02T01:04:02
23,272,198
19
1
null
null
null
null
UTF-8
C++
false
false
2,719
h
polyline.h
// SPDX-License-Identifier: MIT // Copyright contributors to the gecko project. #pragma once #include "types.h" #include <array> #include <base/format.h> #include <iostream> #include <iterator> #include <vector> namespace draw { //////////////////////////////////////// class polyline { public: using point = point3; void close( void ) { _closed = true; } bool closed( void ) const { return _closed; } bool empty( void ) const { return _points.empty(); } const point &back( void ) const { return _points.back(); } const point &front( void ) const { return _points.front(); } size_t size( void ) const { return _points.size(); } void push_back( const point &p ) { _points.push_back( p ); } std::vector<point>::iterator begin( void ) { return _points.begin(); } std::vector<point>::const_iterator begin( void ) const { return _points.begin(); } std::vector<point>::iterator end( void ) { return _points.end(); } std::vector<point>::const_iterator end( void ) const { return _points.end(); } const point &operator[]( size_t i ) const { return _points[i]; } void set_depth( dim z ) { for ( auto &p: _points ) p[2] = z; } void save_svg_polyline( std::ostream & out, float width = 1.0, const std::string &color = "black" ) { if ( _closed ) out << "<polygon points = \""; else out << "<polyline points = \""; std::copy( begin(), end(), std::ostream_iterator<point>( out, " " ) ); out << base::format( "\" stroke=\"{0}\" stroke-width=\"{1}\" fill=\"{2}\" />", color, width, "none" ); } void save_svg_point_numbers( std::ostream & out, float width = 1.0, const std::string &color = "black" ) { for ( size_t i = 0; i < _points.size(); ++i ) { const auto &p = _points[i]; out << base::format( "<text x=\"{0}\" y=\"{1}\" stroke=\"{2}\" fill=\"{3}\">{4}</text>", p[0], p[1], width, color, i ); } } private: bool _closed = false; std::vector<point> _points; }; //////////////////////////////////////// inline std::ostream &operator<<( std::ostream &out, const polyline &p ) { std::copy( p.begin(), p.end(), std::ostream_iterator<polyline::point>( out, "; " ) ); if ( p.closed() ) out << "closed"; return out; } //////////////////////////////////////// } // namespace draw
bb97ae1640a5bcb2c5dbd429b1528c2b81451ddf
4da7317e1e461e0ff5e17e6bf1e03e59a5289a07
/apps/prep.cc
199b91c55afaf6145d36c38a982d2376d0ba1338
[]
no_license
vatai/mpk
81ccbcec4b2c6be1cd01cca865d3e112ce27e5f8
1687a77ccb9a7ecc154007f32d384a9acb2a8118
refs/heads/master
2022-09-07T18:09:51.431262
2022-08-29T05:00:35
2022-08-29T05:00:35
89,324,963
1
0
null
null
null
null
UTF-8
C++
false
false
1,019
cc
prep.cc
/// @file /// @author Emil VATAI <emil.vatai@gmail.com> /// @date 2019-09-17 /// @page pdmpk_prep pdmpk_prep /// /// The body of `pdmpk_prep` page. #include <cassert> #include <iostream> #include "../pdmpk/args.h" #include "../pdmpk/comm_comp_patterns.h" #include "../pdmpk/typedefs.h" /// Prepare @ref Buffers using pdMPK and save them to disk. /// /// @param argc Three parameters should be provided. /// /// @param argv /// - `argv[1]` is the name of the `.mtx` file; /// - `argv[2]` is the number of partitions/processes to be used; /// - `argv[3]` is the number of levels which needs to be achieved. int main(int argc, char *argv[]) { const Args args(argc, argv); CommCompPatterns comm_comp_patterns(args); comm_comp_patterns.Stats(); for (int i = 0; i < args.npart; i++) { comm_comp_patterns.bufs[i].DbgCheck(); comm_comp_patterns.bufs[i].Dump(i); comm_comp_patterns.bufs[i].DumpTxt(i); } std::cout << argv[0] << ": for " << args.mtxname << " finished" << std::endl; return 0; }
759512af4f0f89d6b227050e1c231bec4f50894c
77479506c26b2a33a604108444bb2147b6b8b335
/lightSensing_triple/lightSensing_triple.ino
157690e74b89647d49b57721371b0993f3b289b3
[]
no_license
WenqiYangTeresa/IDMseniorProject
aef3442e01adcf4e6ffe13b82b1997232df47dcd
ceb3bd181a76a6e858f5d3827749417f048ef023
refs/heads/master
2020-03-14T03:24:51.902632
2018-05-07T00:43:22
2018-05-07T00:43:22
131,419,339
0
0
null
null
null
null
UTF-8
C++
false
false
7,160
ino
lightSensing_triple.ino
//Count Time & Calibration unsigned long start_time; unsigned long current_time; unsigned long elapsed_time; unsigned long start_calibrate; unsigned long current_calibrate; unsigned long elapsed_calibrate; //Input & Output const int sensorPin = A4; const int sensorPinB = A0; const int sensorPinC = A2; const int ledPin = 9; int sensorValue = 0; int sensorMin = 1023; int sensorMax = 0; int sensorValueB = 0; int sensorMinB = 1023; int sensorMaxB = 0; int sensorValueC = 0; int sensorMinC = 1023; int sensorMaxC = 0; //Average int New_regAverage = 255; int Old_regAverage; int list[20]; int numReadings = 20; //int sensorReading = 0; int total = 0; int regAverage = 0; int New_regAverageB = 255; int Old_regAverageB; int listB[20]; int totalB = 0; int regAverageB = 0; int New_regAverageC = 255; int Old_regAverageC; int listC[20]; int totalC = 0; int regAverageC = 0; //Trigger bool CHAOS = false; int threshold = 45; void setup() { pinMode(ledPin, OUTPUT); analogWrite(ledPin, 255); while (millis() < 5000) { sensorValue = analogRead(sensorPin); sensorValueB = analogRead(sensorPinB); sensorValueC = analogRead(sensorPinC); // record the maximum sensor value if (sensorValue > sensorMax) { sensorMax = sensorValue; } // record the minimum sensor value if (sensorValue < sensorMin) { sensorMin = sensorValue; } // record the maximum sensor value if (sensorValueB > sensorMaxB) { sensorMaxB = sensorValueB; } // record the minimum sensor value if (sensorValueB < sensorMinB) { sensorMinB = sensorValueB; } // record the maximum sensor value if (sensorValueC > sensorMaxC) { sensorMaxC = sensorValueC; } // record the minimum sensor value if (sensorValueC < sensorMinC) { sensorMinC = sensorValueC; } } analogWrite(ledPin, 0); // put your setup code here, to run once: Serial.begin(9600); // Serial.print("sensorMin:"); // Serial.println(sensorMin); // Serial.print("sensorMax:"); // Serial.println(sensorMax); // Serial.print("sensorMinB:"); // Serial.println(sensorMinB); // Serial.print("sensorMaxB:"); // Serial.println(sensorMaxB); for (int thisReading = 0; thisReading < numReadings; thisReading++) { list[thisReading] = 0; listB[thisReading] = 0; listC[thisReading] = 0; } establishContact(); } void loop() { //Count Time start_time = millis(); Serial.println(start_time); //Main Action do { current_time = millis(); elapsed_time = current_time - start_time; for (int thisReading = 0; thisReading < numReadings; thisReading++) { list[thisReading] = analogRead(sensorPin); list[thisReading] = map(list[thisReading], sensorMin, sensorMax, 0, 255); list[thisReading] = constrain(list[thisReading], 0, 255); listB[thisReading] = analogRead(sensorPinB); listB[thisReading] = map(listB[thisReading], sensorMinB, sensorMaxB, 0, 255); listB[thisReading] = constrain(listB[thisReading], 0, 255); listC[thisReading] = analogRead(sensorPinC); listC[thisReading] = map(listC[thisReading], sensorMinC, sensorMaxC, 0, 255); listC[thisReading] = constrain(listC[thisReading], 0, 255); // Update Total // add the reading to the total: total = total + list[thisReading]; totalB = totalB + listB[thisReading]; totalC = totalC + listC[thisReading]; delay(5); } // Serial.print("ArrayA: ["); // for (byte j = 0; j < numReadings; j++) { // Serial.print(list[j], DEC); // Serial.print (", "); // } // Serial.print("]\r\n"); // Serial.print("ArrayB: ["); // for (byte j = 0; j < numReadings; j++) { // Serial.print(listB[j], DEC); // Serial.print (", "); // } // Serial.print("]\r\n"); // Serial.print("ArrayC: ["); // for (byte j = 0; j < numReadings; j++) { // Serial.print(listC[j], DEC); // Serial.print (", "); // } // Serial.print("]\r\n"); //average of all values regAverage = total / numReadings; New_regAverage = regAverage; regAverageB = totalB / numReadings; New_regAverageB = regAverageB; regAverageC = totalC / numReadings; New_regAverageC = regAverageC; // Serial.print("New_regAverage: "); // Serial.println(New_regAverage); // Serial.print("New_regAverageB: "); // Serial.println(New_regAverageB); if (( New_regAverage > threshold && Old_regAverage <= threshold) || (New_regAverageB > threshold && Old_regAverageB <= threshold) || (New_regAverageC > threshold && Old_regAverageC <= threshold)) { analogWrite(ledPin, 255); CHAOS = false; } else if (( New_regAverage < threshold && Old_regAverage >= threshold) || (New_regAverageB < threshold && Old_regAverageB >= threshold) || (New_regAverageC < threshold && Old_regAverageC >= threshold)) { analogWrite(ledPin, 0); CHAOS = true; } if (CHAOS == true) { Serial.println("Y"); //play yellow video; chaotic Mov2 } else { Serial.println("P"); //play pink video; calm Mov1 } total = 0; Old_regAverage = New_regAverage; totalB = 0; Old_regAverageB = New_regAverageB; totalC = 0; Old_regAverageC = New_regAverageC; delay(5); } while (elapsed_time < 7200000); //Recalibrate every 20min if (elapsed_time = 7200000) { sensorMin = 1023; sensorMax = 0; sensorMinB = 1023; sensorMaxB = 0; sensorMinC = 1023; sensorMaxC = 0; // Serial.println("recalibrate"); start_calibrate = millis(); do { current_calibrate = millis(); elapsed_calibrate = current_calibrate - start_calibrate; sensorValue = analogRead(sensorPin); // record the maximum sensor value if (sensorValue > sensorMax) { sensorMax = sensorValue; } // record the minimum sensor value if (sensorValue < sensorMin) { sensorMin = sensorValue; } sensorValueB = analogRead(sensorPinB); // record the maximum sensor value if (sensorValueB > sensorMaxB) { sensorMaxB = sensorValueB; } // record the minimum sensor value if (sensorValueB < sensorMinB) { sensorMinB = sensorValueB; } sensorValueC = analogRead(sensorPinC); // record the maximum sensor value if (sensorValueC > sensorMaxC) { sensorMaxC = sensorValueC; } // record the minimum sensor value if (sensorValueC < sensorMinC) { sensorMinC = sensorValueC; } } while (elapsed_calibrate < 5000); // Serial.print("sensorMin:"); // Serial.println(sensorMin); // Serial.print("sensorMax:"); // Serial.println(sensorMax); // Serial.print("sensorMinB:"); // Serial.println(sensorMinB); // Serial.print("sensorMaxB:"); // Serial.println(sensorMaxB); } } // send an A to to initiate first contact void establishContact() { while (Serial.available() <= 0) { Serial.println("A"); delay(200); } }
f058fae69a1d8beb527b118ea1e4c674d34b8628
9d8dad1ea06300f0d70328398bf137fa6c824502
/src/core/topology/manager/TopologyTrustLinesManager.h
ecd785d97aaf7f6eb4363f04b56af138afd1bde2
[]
no_license
MukolaIlashchuk/geo-client
a37d65e959b8579ef6cbf83b8b06022d991f218c
30f32cf74790155d3e14fe26b1c0ac0193e2f447
refs/heads/master
2020-04-03T06:06:18.201690
2018-10-28T11:59:53
2018-10-28T11:59:53
155,065,873
0
0
null
null
null
null
UTF-8
C++
false
false
2,920
h
TopologyTrustLinesManager.h
#ifndef GEO_NETWORK_CLIENT_TOPOLOGYTRUSTLINESMANAGER_H #define GEO_NETWORK_CLIENT_TOPOLOGYTRUSTLINESMANAGER_H #include "../../common/NodeUUID.h" #include "TopologyTrustLineWithPtr.h" #include "../../common/time/TimeUtils.h" #include "../../logger/Logger.h" #include <set> #include <unordered_set> #include <unordered_map> #include <boost/functional/hash.hpp> class TopologyTrustLinesManager { public: typedef unordered_set<TopologyTrustLineWithPtr*> TrustLineWithPtrHashSet; public: TopologyTrustLinesManager( const SerializedEquivalent equivalent, bool iAmGateway, NodeUUID &nodeUUID, Logger &logger); void addTrustLine( TopologyTrustLine::Shared trustLine); TrustLineWithPtrHashSet trustLinePtrsSet( const NodeUUID &nodeUUID); void resetAllUsedAmounts(); bool deleteLegacyTrustLines(); size_t trustLinesCounts() const; // todo : this code used only for testing and should be deleted in future void printTrustLines() const; DateTime closestTimeEvent() const; void setPreventDeleting( bool preventDeleting); bool preventDeleting() const; void addUsedAmount( const NodeUUID &sourceUUID, const NodeUUID &targetUUID, const TrustLineAmount &amount); void makeFullyUsed( const NodeUUID &sourceUUID, const NodeUUID &targetUUID); set<NodeUUID> neighborsOf( const NodeUUID &sourceUUID); void addGateway(const NodeUUID &gateway); const set<NodeUUID> gateways() const; void makeFullyUsedTLsFromGatewaysToAllNodesExceptOne( const NodeUUID &exceptedNode); private: static const byte kResetTrustLinesHours = 0; static const byte kResetTrustLinesMinutes = 12; static const byte kResetTrustLinesSeconds = 0; static Duration& kResetTrustLinesDuration() { static auto duration = Duration( kResetTrustLinesHours, kResetTrustLinesMinutes, kResetTrustLinesSeconds); return duration; } static const byte kClearTrustLinesHours = 0; static const byte kClearTrustLinesMinutes = 30; static const byte kClearTrustLinesSeconds = 0; static Duration& kClearTrustLinesDuration() { static auto duration = Duration( kClearTrustLinesHours, kClearTrustLinesMinutes, kClearTrustLinesSeconds); return duration; } private: LoggerStream info() const; LoggerStream debug() const; const string logHeader() const; private: unordered_map<NodeUUID, TrustLineWithPtrHashSet*, boost::hash<boost::uuids::uuid>> msTrustLines; map<DateTime, TopologyTrustLineWithPtr*> mtTrustLines; SerializedEquivalent mEquivalent; Logger &mLog; bool mPreventDeleting; set<NodeUUID> mGateways; DateTime mLastTrustLineTimeAdding; }; #endif //GEO_NETWORK_CLIENT_TOPOLOGYTRUSTLINESMANAGER_H
807f6d690d20c30078dc0b64d66096593e55a262
a69042cde9531714459b2e2608f2e1a7ef809039
/cd3/정보올림피아드관련/정보올림피아드관련/문제들/문제/ACM/4월20/4.DIR/Source.rgm/조용운_juice.cpp
ed62e7b50a9d770eca3b08d92dbba2ca4e55c7d4
[]
no_license
almoreir/algorithm
7ebb8b79cfd92208df6db4425f5cb49ee06a50be
af74200d33cf89b038016311efd3487c58132bb3
refs/heads/master
2020-09-03T07:13:53.305987
2016-11-02T10:09:45
2016-11-02T10:09:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
898
cpp
조용운_juice.cpp
#include <stdio.h> #include <fstream.h> #define Num 1000 #define Mum 1000000 #define M 2000000000 int n,m; int q[Num][2]; //v w int d[Mum]; //int nr[Mum]; void i_f() { int i; int a,b; ifstream in ("juice.in"); in >> a >> b; m=b-a; in >> n; for(i=0;i<n;i++) { in >> q[i][0] >> q[i][1]; } in.close(); } void pro() { int i,j; int v; d[0]=0; for(i=1;i<=m;i++) { d[i]=M; } for(i=0;i<n;i++) { for(j=q[i][1];j<=m;j++) { v=d[j-q[i][1]]+q[i][0]; if (v<d[j]) { d[j]=v; // nr[j]=i; } } } /*v=m; for(;;) { cout << nr[v] << endl; v-=q[nr[v]][1]; if (v==0) break; }*/ } void o_f() { ofstream out ("juice.out"); if (d[m]==M) out << "impossible"; else out << d[m]; out << endl; out.close(); } void main() { i_f(); pro(); o_f(); }
d1b3356f3a4bc4247dac59b79c9c8abd0897341c
98a54fd97256a983f3eaf0bf8004fc41999cf4de
/Day_11/CF/A.cpp
f0d3907ac6e5ecd6ca5b4af2d3a79db932f65e99
[]
no_license
cornyum/acm_summer
f2a9916e5fd2442b0ce6c94a700f862034e525f1
a527585eae118abc7845dd6e9f3d4061f115edc2
refs/heads/master
2020-06-22T09:07:41.126014
2019-07-23T15:30:27
2019-07-23T15:30:27
197,687,976
0
0
null
null
null
null
UTF-8
C++
false
false
570
cpp
A.cpp
#include <bits/stdc++.h> #define FAST_IO std::ios::sync_with_stdio(false),std::cin.tie(0),std::cout.tie(0) #define pause system("pause") typedef long long ll; typedef unsigned int UINT; typedef unsigned long long ull; using namespace std; int main(void) { FAST_IO; int n; cin >> n; int x = n % 4; if (x == 1) { cout << 0 << " A" << endl; } else if(x == 2) { cout << 1 << " B" << endl; } else if (x == 3) { cout << 2 << " A" << endl; } else { cout << 1 << " A" << endl; } // pause; return 0; }
2aabb4d83e06f13a4f7316cdbb4a6bab63ea1df7
7ccf7a19d06fe95851c8fbcba414d5db5873bdab
/cpp_wraps_c_wrapping/src/cpp_wrap.cpp
5e00a39061c43b067f1e0d025b05b4b342e3b5cb
[]
no_license
gsimbr/CythonExperiments
d43f39a8481977d9612fdedc4f7ac3d9b7fa721b
47232f86bc9f0da11b97202484001e60b0df5114
refs/heads/master
2021-01-01T06:13:33.263301
2019-04-22T10:09:02
2019-04-22T10:09:02
97,383,786
0
0
null
null
null
null
UTF-8
C++
false
false
357
cpp
cpp_wrap.cpp
// cpp_wrap.cpp #include <stddef.h> #include <string> #include <iostream> #include "cpp_wrap.hpp" #include "c_code.c" namespace wrap { StringClass::StringClass(const std::string &stringi) { std::cout << stringi << std::endl; gx = stringi; } size_t StringClass::getStringLength() { const char *cstr = gx.c_str(); return getCStringLength(cstr); } }
f0b9977ee7db0c8ff270b54e8933a0e5adcdc1f8
504d94c9e544c88d554b2fd84baae01d6abf72cc
/Mario/Tools/controls.cpp
5caeb30cdef12bf6d17de6f94d42522926849f29
[]
no_license
AdrienVerdier/JeuQt
d7e456be48dd7c09aa3eac9a1ee6a34d2093356b
506bbd131c749ddcd12bbe67b0d2377db9cc78cc
refs/heads/master
2022-09-21T02:57:35.983165
2020-06-05T15:18:34
2020-06-05T15:18:34
261,675,530
0
1
null
null
null
null
UTF-8
C++
false
false
144
cpp
controls.cpp
#include "controls.h" Controls::Controls() { left = false; right = false; down = false; up = false; shoot = false; }
1bc4ebd54a8f15bfcce483f72e696b1266c518a0
8cd5ca0855263d35a2343ab91ea08e725e5a7c5d
/PCSAEstimator.cc
73b4800b1b0adfeb57615f723039422e5726d923
[]
no_license
atran3/cardinality_estimator
3a319318092f0937ae24c4dd479263a08cd28173
cae37cbf60cd3d2948e51cf863822711ab2b61fc
refs/heads/master
2021-01-20T18:52:30.076186
2016-06-02T00:53:04
2016-06-02T00:53:04
60,126,715
0
0
null
null
null
null
UTF-8
C++
false
false
887
cc
PCSAEstimator.cc
#include "PCSAEstimator.h" #include <strings.h> #include <math.h> static const double phi = 0.77351; static const unsigned int L = 32; PCSAEstimator::PCSAEstimator(size_t numBuckets) { this->numBuckets = numBuckets; //assumes each bitmap is sizeof(int) * 8 buckets = new unsigned int[numBuckets](); h = threeIndependentHashFamily()->get(); } PCSAEstimator::~PCSAEstimator() { delete[] buckets; } void PCSAEstimator::read(size_t elem) { unsigned int hash = h(elem); unsigned int alpha = hash % numBuckets; unsigned int index = rho(hash / numBuckets); buckets[alpha] |= 1 << index; } unsigned int PCSAEstimator::rho(unsigned int y) { if(y == 0) return L; return ffs(y) - 1; } double PCSAEstimator::estimate() { unsigned int S = 0; for(unsigned int i = 0; i < numBuckets; i++) { S += rho(~buckets[i]); } return (numBuckets / phi) * pow(2, (double)S / numBuckets); }
ad9682ea70d44c53ac339fd8c2453251de1f1d85
88df7f763ae178fa8791cecf0a3c5955d3fa7c21
/1149/1049.cpp
02f016c63d99e299e0212b1493e3bc7ade144269
[]
no_license
sanchezz93/cojProblems
37c1548c5bad6fe462ad0a16f4e1480054b5f812
ad24534121d958403e63063070975666f341d44e
refs/heads/master
2021-01-13T16:10:26.398353
2015-02-01T22:07:50
2015-02-01T22:07:50
23,449,941
0
0
null
null
null
null
UTF-8
C++
false
false
303
cpp
1049.cpp
// // 1049.cpp // // // Created by Alejandro Sanchez on 8/28/14. // // #include <cmath> #include <iostream> using namespace std; int main(){ int n; cin >> n; if(n>=0) cout << (n*(n+1))/2; else cout << (((n*-1)*((n*-1)+1)/2)*-1)+1; cout << endl; return 0; }
3f96674b2a7a3a99020f63e1549d7d0cef080b7a
829d18a0dd19613364b796e8d0c78b09f41c75c4
/library/sslive/src/main/cpp/PrefixHeader.h
6a6f66ee623a29f965c362ac631c50a8c4a367f8
[]
no_license
zlxqiang/SuishiLive
530bf0f9552c981d19411657f8909d59de31ac5a
d35d9c5f8682d3854766931499c51a093fd75a1d
refs/heads/master
2021-05-26T07:03:59.034322
2020-09-23T20:45:00
2020-09-23T20:45:00
127,826,727
9
0
null
null
null
null
UTF-8
C++
false
false
515
h
PrefixHeader.h
// // Created by developer on 11/12/17. // #ifndef NATIVEAPP_PREFIXHEADER_H #define NATIVEAPP_PREFIXHEADER_H #include <iostream> #include <mutex> #include <memory> #include <condition_variable> #include "base_include.h" using namespace std; //测试数据写入文件 #if 0 #define WRITE_YUV_TO_FILE #define WRITE_PCM_TO_FILE #endif #if 0 #define ENCODE_INFO #endif #if 0 #define PTS_INFO #endif #if 0 #define SHOW_DEBUG_INFO #endif enum CameraID { FRONT, BACK }; #endif //NATIVEAPP_PREFIXHEADER_H
4f1a7cdd8afbbf7795b0ca075263a9fa55070311
5f2f1c1061fa9b9a002b1f07239d71e47d1092f9
/absp1.cpp
427be245e4ee779d8b116d4ac6a880afb7b70679
[]
no_license
shubhamgupta1404/mySpojSolvedProblems
d4fa961167c10e23541566ce7b09a9304fcc8254
22be80d70f0ed002c21dca06efc5dfc339aef931
refs/heads/master
2021-01-15T18:50:46.772544
2015-06-02T14:19:17
2015-06-02T14:19:17
36,737,471
0
0
null
null
null
null
UTF-8
C++
false
false
428
cpp
absp1.cpp
#include<iostream> #define MAX 10000 using namespace std; int main(){ int t,n; cin >> t; while(t--){ int arr[MAX]; long long int sum=0; long long int prevSum=0; cin >> n; cin >> arr[0]; for(int i=1;i<n;i++){ cin >> arr[i]; long long int temp = prevSum + (i-1)*(arr[i]-arr[i-1]) + arr[i]-arr[i-1]; prevSum = temp; sum += prevSum; } cout << sum << "\n"; } return 0; }
3507de86d06d1aebacada1356a6ac1cccd1ec2dd
a0f10d96833d6fb1b13eb3f350b0782afb887f45
/sources/core/qv_block.h
fe9e3ac4ae184cab69f9977efaee5243080c8535
[ "MIT" ]
permissive
dabroz/dablang
6462c410165d123ad6bbf22d9ff6bbb029a3a30e
60c9b0310cee1488fbde1dbbc2fd411a9cc6dbce
refs/heads/master
2021-01-22T09:41:07.513962
2011-11-25T22:26:28
2011-11-25T22:26:28
2,259,362
8
1
null
null
null
null
UTF-8
C++
false
false
378
h
qv_block.h
#pragma once class qBlock : public qInstruction { public: qBlock(qValue * v) { insert(v); } qString print(int indent) { return doIndent(indent) + "{\n" + L()->print(indent+1) + doIndent(indent) + "}"; } bool isBlock() { return true; } virtual bool LLVM_build(llvm::Module * module) { return L()->LLVM_build(module); } virtual bool IsNoValue() { return true; } };
c8d2ada02a02a4bce8ac495ee9ef9f7ee6fc0a40
f6ef1f50a476c3ed58b4f268feb6fb438996f06a
/有OJ/刷题指南(包含leetcode, POJ, PAT等)/POJ-2/problems/2185MilkingGrid.cpp
00b40f9f07b6bfc9b64d12521a3e3655d4851fd2
[]
no_license
February13/OJ_Guide
f9d6c72fc2863f5b6f3ad80b0d6c68b51f9a07db
a190942fae29a0dbee306adc81ee245be7fda44a
refs/heads/master
2020-04-25T09:01:48.458939
2018-01-18T08:31:30
2018-01-18T08:31:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,263
cpp
2185MilkingGrid.cpp
#include<iostream> #include<stdio.h> #include<string> using namespace std; char cow_h[10000][80]; char cow_v[75][10010]; int h[10000],v[75]; int R,C; int fail[10010]; int get_tile(char *s) { //cout<<s<<endl; int n=strlen(s); int i,j=0; fail[1]=0; for(i=2;i<=n;i++) { while(j>0 && s[j+1-1]!=s[i-1]) j=fail[j]; if(s[j+1-1]==s[i-1]) j++; fail[i]=j; } /*for(int i=0;i<=n;i++) printf("%d ",fail[i]); cout<<endl; cout<<n-fail[n]<<endl;*/ return n-fail[n]; } inline int gcd(int a,int b) { if(!b) return a; return gcd(b,a%b); } inline long long lcm(int A[],int n,int lim){ int a=A[0]; if(a>=lim) return lim; int b; int g; for(int i=1;i<n;i++){ b=A[i]; g=gcd(a,b); a=(a/g)*(b/g)*g; if(a>=lim) return lim; } return a; } int main() { scanf("%d%d",&R,&C); for(int i=0;i<R;i++) scanf("%s",cow_h[i]); for(int i=0;i<C;i++) { for(int j=0;j<R;j++) cow_v[i][j]=cow_h[j][i]; cow_v[i][R]=0; } for(int i=0;i<R;i++) h[i]=get_tile(cow_h[i]); for(int i=0;i<C;i++) v[i]=get_tile(cow_v[i]); printf("%d\n",lcm(h,R,C)*lcm(v,C,R)); return 0; }
4882d873ddd04a852e1e309f86ae90be2a383808
556bc516271dfe48b13850d51a6f65dce425adc4
/Random/geeksforgeeks/UNDERSTOOD/Print substring of a given string without using any string function and loop in C/recursive.cpp
297cd03aa9de1c1e4c3742433e023cbeff888392
[]
no_license
nur-alam/Problem-Solving
4fae30499b5dd802854b7efa0b702b3f173fa236
b0db93d597142590010b60bfa2054409a6ca6754
refs/heads/master
2021-01-13T11:10:06.766089
2019-01-16T12:01:52
2019-01-16T12:01:52
77,365,261
2
0
null
null
null
null
UTF-8
C++
false
false
271
cpp
recursive.cpp
#include<bits/stdc++.h> using namespace std; void mysubstr(char str[], int low, int high) { if(low<=high){ cout << str[low]; mysubstr(str, low+1, high); } } int main(){ char str[] = "geeksforgeeks"; mysubstr(str,1,3); return 0; }
4759bc6b384457f84a28b043c050f78905ae8114
513aa0c4f7b10383eb76a48972e225b227016249
/CODEBLOCKS/chefnrectarray.cpp
79987fcc94ee00cd3c4cff745e56a9b01b9c72ce
[]
no_license
diksha1996/mycodes
d83ff0a773ff9ecb2dd80ec3ec5da86457899439
016cbb92abc4bf625d6b6c652b05215b740515df
refs/heads/master
2020-12-31T00:41:53.891042
2017-02-01T16:21:10
2017-02-01T16:21:10
80,544,296
0
0
null
null
null
null
UTF-8
C++
false
false
997
cpp
chefnrectarray.cpp
#include <bits/stdc++.h> #define ll long long #define maxn 100005 #define slld(t) scanf("%lld",&t) #define sd(t) scanf("%d",&t) #define pd(t) printf("%d\n",t) #define plld(t) printf("%lld\n",t) #define foll(i,n) for(long long i=0;i<n;i++) #define fo(i,n) for(int i=0;i<n;i++) #define PI 3.14159265 int arr[10000][10000]; using namespace std; int solve(int i,int j,int r,int c){ int max = INT_MIN; int sum=0; for(int p=i;p<i+r;p++){ for(int q=j;q<j+c;q++){ if(arr[p][q]>max) max=arr[p][q]; } } //cout<<max<<endl; for(int p=i;p<i+r;p++){ for(int q=j;q<j+c;q++){ sum = sum+(max-arr[p][q]); } } // cout<<sum<<endl; return sum; } int main(){ int n,m,q,r,c,min,sum; cin>>n>>m; fo(i,n){ fo(j,m){ cin>>arr[i][j]; } } cin>>q; while(q--){ min = INT_MAX; cin>>r>>c; if(r==1&&c==1){ min=0; } else{ fo(i,n-r+1){ fo(j,m-c+1){ //cout<<i<<" "<<j<<endl; sum=solve(i,j,r,c); if(sum<min) min = sum; } } } cout<<min<<endl; } }
4dd5ae047afc243a7c64ffd32c2448ddc8bc2bd3
7afbd354522a7ccf234d9c74c75a1915925f9c06
/makai/AcquisitionBroker/src/DataHandler.cc
a6c3020a77932ef3a1c7b3d40275f76f05615f71
[]
no_license
vinipletsch/opq
70209cb61428cf495db0c13812036f69be4f981a
0795f6140bc93c0a74d8ac788bdea547428517b5
refs/heads/master
2020-03-29T23:42:54.418212
2018-09-26T00:41:41
2018-09-26T00:41:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,899
cc
DataHandler.cc
#include <zmqpp/socket.hpp> #include <zmqpp/message.hpp> #include "DataHandler.h" #include "MongoDriver.h" #include "util.h" #include <syslog.h> #include "opq.pb.h" using namespace std; DataHandler::DataHandler(Config &c, zmqpp::context &ctx) : _ctx(ctx), _config(c) { } void DataHandler::handle_data_loop() { MongoDriver mongo(_config.mongo_uri); //Socket that pulls data from boxes. auto box_pull = zmqpp::socket{_ctx, zmqpp::socket_type::pull}; auto server_cert = load_certificate(_config.private_cert); box_pull.set(zmqpp::socket_option::curve_server, true); box_pull.set(zmqpp::socket_option::curve_secret_key, server_cert.second); box_pull.set(zmqpp::socket_option::zap_domain, "global"); box_pull.bind(_config.box_interface_pull); _done = false; while (!_done) { //Receive a data message zmqpp::message zm; box_pull.receive(zm); //Deserialize auto serialized_resp = zm.get(0); opq::proto::RequestDataMessage header; header.ParseFromString(serialized_resp); //Get the boxID and the event number auto sequence_number = header.sequence_number(); if(header.type() == header.RESP) { std::vector<opq::proto::DataMessage> messages; syslog(LOG_NOTICE, "%s", ("Event " + std::to_string(sequence_number) + ": Received data from box " + std::to_string(header.boxid()) + " with " + std::to_string((int)zm.parts() -1) + " parts").c_str() ); //Push every part of the message except for the header to redis. for (size_t i = 1; i < zm.parts(); i++) { opq::proto::DataMessage m; if(m.ParseFromString(zm.get(i))); messages.push_back(m); } if(messages.size() > 0) mongo.append_data_to_event(messages, sequence_number); } } }
72c7977cc1c938b122d9b67a5eb51eb05a91dfaa
e68c1f9134b44ddea144f7efa7523076f3f12d3a
/FinalCode/Barbarian_Male_1HT_Attack.cpp
af512b86f936f18cb8657bac83de1d08acc3478a
[]
no_license
iso5930/Direct-3D-Team-Portfolio
4ac710ede0c9176702595cba5579af42887611cf
84e64eb4e91c7e5b4aed77212cd08cfee038fcd3
refs/heads/master
2021-08-23T08:15:00.128591
2017-12-04T06:14:39
2017-12-04T06:14:39
112,998,717
0
0
null
null
null
null
UTF-8
C++
false
false
607
cpp
Barbarian_Male_1HT_Attack.cpp
#include "StdAfx.h" #include "Barbarian_Male_1HT_Attack.h" CBarbarian_Male_1HT_Attack::CBarbarian_Male_1HT_Attack(void) { m_eStateType = STATE_TYPE_BARBARIAN_MALE_1HT_ATTACK; } CBarbarian_Male_1HT_Attack::~CBarbarian_Male_1HT_Attack(void) { } void CBarbarian_Male_1HT_Attack::Initialize() { CPlayerState::Initialize(); // SetAnimation m_pOwner->SetAnimation(107); // Clear m_pPathFindCom->Clear(); } CPlayerState* CBarbarian_Male_1HT_Attack::Action() { if(m_pAnimController->m_dFrameTime - 0.25 <= m_pAnimController->GetTrackPos()) { return new CBarbarian_Male_1HT_Idle; } return NULL; }
ce5d0256b64bc67a538cf31a5839ead33fefd636
f011cb91d1cc5ef05ab01bed33e7b22c518ad92e
/src/jni/FbxColor.cpp
2ae478626b90d3c3557058538d3058afb0c21200
[]
no_license
aerror2/FbxsdkJNI
f105681a779c6a2487e110d9fac5309b4fa608ef
d1886e4bdcfefbe2cb6af0d539d92c70bd277b6c
refs/heads/master
2021-01-20T20:10:44.740121
2017-03-29T18:10:30
2017-03-29T18:10:30
64,756,206
1
0
null
null
null
null
UTF-8
C++
false
false
2,925
cpp
FbxColor.cpp
//copyright by aerror 2016 #include <jni.h> #include <fbxsdk.h> #include "JNILocalConverter.h" /// FbxColor () extern "C" JNIEXPORT jlong JNICALL Java_fbxsdk_FbxColor_meCreate(JNIEnv * __env, jclass __jc) { JNILocalConverter _lcvt(__env,__jc); jlong ret=(jlong)_lcvt.c2j_obj_pt<jlong, FbxColor>( new FbxColor( )); return ret; } /// FbxColor (const double pRed, const double pGreen, const double pBlue, const double pAlpha=1.0) extern "C" JNIEXPORT jlong JNICALL Java_fbxsdk_FbxColor_meCreate1(JNIEnv * __env, jclass __jc,jdouble pRed,jdouble pGreen,jdouble pBlue,jdouble pAlpha) { JNILocalConverter _lcvt(__env,__jc); jlong ret=(jlong)_lcvt.c2j_obj_pt<jlong, FbxColor>( new FbxColor( (const double ) _lcvt.j2c<jdouble,const double >(pRed) , (const double ) _lcvt.j2c<jdouble,const double >(pGreen) , (const double ) _lcvt.j2c<jdouble,const double >(pBlue) , (const double ) _lcvt.j2c<jdouble,const double >(pAlpha) )); return ret; } /// FbxColor (const FbxDouble3 &pRGB, const double pAlpha=1.0) extern "C" JNIEXPORT jlong JNICALL Java_fbxsdk_FbxColor_meCreate2(JNIEnv * __env, jclass __jc,jobject pRGB,jdouble pAlpha) { JNILocalConverter _lcvt(__env,__jc); jlong ret=(jlong)_lcvt.c2j_obj_pt<jlong, FbxColor>( new FbxColor( (const FbxDouble3 &) * _lcvt.j2c_object_ref<jobject,FbxDouble3 >(pRGB) , (const double ) _lcvt.j2c<jdouble,const double >(pAlpha) )); return ret; } /// FbxColor (const FbxDouble4 &pRGBA) extern "C" JNIEXPORT jlong JNICALL Java_fbxsdk_FbxColor_meCreate3(JNIEnv * __env, jclass __jc,jobject pRGBA) { JNILocalConverter _lcvt(__env,__jc); jlong ret=(jlong)_lcvt.c2j_obj_pt<jlong, FbxColor>( new FbxColor( (const FbxDouble4 &) * _lcvt.j2c_object_ref<jobject,FbxDouble4 >(pRGBA) )); return ret; } /// ~FbxColor () extern "C" JNIEXPORT void JNICALL Java_fbxsdk_FbxColor_meDestroy(JNIEnv * __env, jclass __jc,jlong lpjFbxColor) { JNILocalConverter _lcvt(__env,__jc); delete ((FbxColor *) lpjFbxColor ); } /// void Set (const double pRed, const double pGreen, const double pBlue, const double pAlpha=1.0) extern "C" JNIEXPORT void JNICALL Java_fbxsdk_FbxColor_Set(JNIEnv * __env, jclass __jc,jlong lpjFbxColor,jdouble pRed,jdouble pGreen,jdouble pBlue,jdouble pAlpha) { JNILocalConverter _lcvt(__env,__jc); ((FbxColor *) lpjFbxColor)->Set( (const double ) _lcvt.j2c<jdouble,const double >(pRed) , (const double ) _lcvt.j2c<jdouble,const double >(pGreen) , (const double ) _lcvt.j2c<jdouble,const double >(pBlue) , (const double ) _lcvt.j2c<jdouble,const double >(pAlpha) ); } /// bool IsValid () const extern "C" JNIEXPORT jboolean JNICALL Java_fbxsdk_FbxColor_IsValid(JNIEnv * __env, jclass __jc,jlong lpjFbxColor) { JNILocalConverter _lcvt(__env,__jc); jboolean ret=(jboolean)_lcvt.c2j<jboolean, bool >( ((FbxColor *) lpjFbxColor)->IsValid( )); return ret; }
095a5f5a80eaade3d9a716fc24c10df6367802da
db6f3e6486ad8367c62163a4f124da185a64ab5d
/include/retdec/cpdetect/cptypes.h
40abc4316dc2850da659dcaeb51843df1a3ed9a3
[ "MIT", "Zlib", "JSON", "LicenseRef-scancode-unknown-license-reference", "MPL-2.0", "BSD-3-Clause", "GPL-2.0-only", "NCSA", "WTFPL", "BSL-1.0", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
avast/retdec
c199854e06454a0e41f5af046ba6f5b9bfaaa4b4
b9791c884ad8f5b1c1c7f85c88301316010bc6f2
refs/heads/master
2023-08-31T16:03:49.626430
2023-08-07T08:15:07
2023-08-14T14:09:09
113,967,646
3,111
483
MIT
2023-08-17T05:02:35
2017-12-12T09:04:24
C++
UTF-8
C++
false
false
6,364
h
cptypes.h
/** * @file include/retdec/cpdetect/cptypes.h * @brief cpdetectl types and structures. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_CPDETECT_CPTYPES_H #define RETDEC_CPDETECT_CPTYPES_H #include <limits> #include <vector> #include "retdec/cpdetect/settings.h" #include "retdec/fileformat/fftypes.h" namespace retdec { namespace cpdetect { /** * Error codes of library */ enum class ReturnCode { OK, ARG, FILE_NOT_EXIST, FILE_PROBLEM, ENTRY_POINT_DETECTION, UNKNOWN_FORMAT, FORMAT_PARSER_PROBLEM, MACHO_AR_DETECTED, ARCHIVE_DETECTED, UNKNOWN_CP, }; /** * Type of tool detection */ enum class SearchType { EXACT_MATCH, ///< only identical signatures MOST_SIMILAR, ///< the most similar signature SIM_LIST ///< list of similar signatures }; inline std::ostream& operator<<(std::ostream& os, const SearchType& st) { switch (st) { case SearchType::EXACT_MATCH: os << "EXACT_MATCH"; break; case SearchType::MOST_SIMILAR: os << "MOST_SIMILAR"; break; case SearchType::SIM_LIST: os << "SIM_LIST"; break; } return os; } /** * Source from which result was obtained */ enum class DetectionMethod { UNKNOWN, ///< unknown detection method COMBINED, ///< combination of methods SIGNATURE, ///< yara or slashed signature DWARF_DEBUG_H, ///< DWARF debug information SECTION_TABLE_H, ///< section table IMPORT_TABLE_H, ///< import symbols EXPORT_TABLE_H, ///< export symbols SYMBOL_TABLE_H, ///< symbols LINKER_VERSION_H, ///< linker version LINKED_LIBRARIES_H, ///< specific libraries STRING_SEARCH_H, ///< specific strings DYNAMIC_ENTRIES_H, ///< .dynamic section COMMENT_H, ///< .comment section NOTE_H, ///< .note section MANIFEST_H, ///< manifest resource HEADER_H, ///< MZ header YARA_RULE, ///< Heuristic detection by a YARA rule OTHER_H ///< other heuristic }; /** * Strength of used heuristic */ enum class DetectionStrength { LOW, MEDIUM, HIGH, SURE }; /** * Type of detected tool */ enum class ToolType { UNKNOWN, COMPILER, LINKER, INSTALLER, PACKER, OTHER }; /** * Packing detection level */ enum class Packed { NOT_PACKED, PROBABLY_NO, PROBABLY_YES, PACKED }; /** * Search parameters */ struct DetectParams { SearchType searchType; ///< type of search bool internal; ///< use of internal signature database bool external; ///< use of external signature database std::size_t epBytesCount; DetectParams( SearchType searchType_, bool internal_, bool external_, std::size_t epBytesCount_ = EP_BYTES_SIZE); }; /** * Structure with results of tool detection */ struct DetectResult { ToolType type = ToolType::UNKNOWN; std::string name; std::string versionInfo; std::string additionalInfo; /// total number of significant nibbles unsigned long long impCount = 0; /// matched number of significant nibbles unsigned long long agreeCount = 0; /// detection type DetectionMethod source = DetectionMethod::UNKNOWN; /// detection strength DetectionStrength strength = DetectionStrength::LOW; bool isReliable() const; bool isCompiler() const; bool isLinker() const; bool isInstaller() const; bool isPacker() const; bool isKnownType() const; bool isUnknownType() const; }; /** * Detected programming language */ struct DetectLanguage { bool bytecode = false; /// < @c true if bytecode is detected std::string name; ///< name of programming language std::string additionalInfo; ///< some additional information }; /** * All information about used tools * * If @a entryPointOffset is @c false, value of @a epOffset is undefined. * If @a entryPointSection is @c false, values of @a epSection are undefined. * If @a entryPointAddress is @c false, values of @a epAddress and @a imageBase * are undefined. * * Value std::numeric_limits<long long unsigned int>::max() mean unspecified value * or error for unsigned integer types. */ struct ToolInformation { /// error and warning messages std::vector<std::string> errorMessages; /// detected tools (compilers, packers...) std::vector<DetectResult> detectedTools; /// detected programming language(s) std::vector<DetectLanguage> detectedLanguages; /// @c false if file has no has no or invalid EP offset bool entryPointOffset = false; /// entry point offset std::uint64_t epOffset = std::numeric_limits<std::uint64_t>::max(); /// @c false if file has no has no or invalid EP address bool entryPointAddress = false; /// entry point address std::uint64_t epAddress = std::numeric_limits<std::uint64_t>::max(); /// image base address std::uint64_t imageBase = std::numeric_limits<std::uint64_t>::max(); /// offset of the file overlay. 0 if no overlay uint64_t overlayOffset = 0; /// length of the file overlay. 0 if no overlay size_t overlaySize = 0; /// @c false if file has no or invalid EP section bool entryPointSection = false; /// entry point section retdec::fileformat::Section epSection; /// hexadecimal representation of entry point bytes std::string epBytes; /// @name Adding result methods /// @{ void addTool( DetectionMethod source, DetectionStrength strength, ToolType toolType, const std::string &name, const std::string &version = "", const std::string &extra = ""); void addTool( std::size_t matchNibbles, std::size_t totalNibbles, ToolType toolType, const std::string &name, const std::string &version = "", const std::string &extra = ""); void addLanguage( const std::string &name, const std::string &extra = "", bool bytecode = false); /// @} /// @name Query methods /// @{ bool isReliableResult(std::size_t resultIndex) const; bool hasReliableResult() const; Packed isPacked() const; /// @} }; /** * Similarity with signature */ struct Similarity { unsigned long long same = 0; ///< matched number of significant nibbles unsigned long long total = 0; ///< total number of significant nibbles double ratio = 0.0; ///< @a same divided by @a total }; std::string detectionMetodToString(DetectionMethod method); std::string toolTypeToString(ToolType toolType); std::string packedToString(Packed packed); } // namespace cpdetect } // namespace retdec #endif
454c50efb1589c6265c9dc9b6526e947601e427b
dd53cfa625675dafe268e9ec3fbe2d8f29d3e4a1
/XiAnalyzer/XiMassPt/plugins/SealModule.cc
31418dbca715c45366cf136444da88884d83db24
[]
no_license
BenjaminTran/XI_CMSSW8_0_24
8b8c6f857d722b7d3ef80f6567a2057f366b3bcd
cc3ef866684701d68c73e841241ec20a0c52f096
refs/heads/master
2021-01-21T10:55:23.275112
2017-08-03T16:29:42
2017-08-03T16:29:42
91,714,492
0
0
null
null
null
null
UTF-8
C++
false
false
189
cc
SealModule.cc
#include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "XiAnalyzer/XiMassPt/interface/XiMassPt.h" DEFINE_FWK_MODULE(XiMassPt);
85823b29c006c11946bb54c07970ead1cc2e8019
c1bdc9e035765da0025919ad38a45e0bc0aafc80
/Source/MultiverseLegends/Private/Attributes/OffensiveAttributeSet.cpp
583b9ed37353ea85b5d499ba46b3fd06e3300f48
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
yasinallahdev/multiverse-legends
b2fb969ff579738b9b3593891b0bd5ecac195ba5
62b1562078b5c4882b581088b51ec153ec81dd2d
refs/heads/master
2020-12-04T13:31:45.610780
2020-06-26T20:54:13
2020-06-26T20:54:13
231,780,945
1
0
null
null
null
null
UTF-8
C++
false
false
1,801
cpp
OffensiveAttributeSet.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "OffensiveAttributeSet.h" #include "UnrealNetwork.h" void UOffensiveAttributeSet::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const { DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BaseAttackDamage, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BonusAttackDamage, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BaseFlatPhysicalArmorPenetration, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BonusFlatPhysicalArmorPenetration, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BaseFlatMagicalArmorPenetration, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BonusFlatMagicalArmorPenetration, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BaseAttackSpeed, COND_None, REPNOTIFY_Always); DOREPLIFETIME_CONDITION_NOTIFY(UOffensiveAttributeSet, BonusAttackSpeed, COND_None, REPNOTIFY_Always); } DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BaseAttackDamage); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BonusAttackDamage); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BaseFlatPhysicalArmorPenetration); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BonusFlatPhysicalArmorPenetration); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BaseFlatMagicalArmorPenetration); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BonusFlatMagicalArmorPenetration); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BaseAttackSpeed); DEFINE_ATTRIBUTE_FUNCTION(UOffensiveAttributeSet, BonusAttackSpeed);
20cbe74aa2ccc12315ac63e2ef8f51f107706d70
252d885e6aa69d67ab76ca5c17785a41094d1cdd
/SFML Tries/Main.cpp
5ddcc84bea86dd7540a3979f604436dd89d9b0c2
[]
no_license
AlexisAubineau/Project-Shooter
913d8fb0e16057c27ef7425daf02aebd2aa12983
b97ab43fd55e4a2426460233d60c1a89e2683d0c
refs/heads/master
2021-05-22T15:28:19.748283
2020-04-19T09:46:37
2020-04-19T09:46:37
252,976,870
0
0
null
null
null
null
UTF-8
C++
false
false
155
cpp
Main.cpp
// Let's start here as our entry point ok? // #include "stdafx.h" #include "Game.h" int _tmain(int argc, _TCHAR* argv[]) { Game::Start(); return 0; }
f7af5985551c8bb6faedcde08b3ea27afa7b9f77
0efb71923c02367a1194a9b47779e8def49a7b9f
/Oblig1/les/1.85/phi
39a3831ee05f4df3997e39ac4379e55e2479a731
[]
no_license
andergsv/blandet
bbff505e8663c7547b5412700f51e3f42f088d78
f648b164ea066c918e297001a8049dd5e6f786f9
refs/heads/master
2021-01-17T13:23:44.372215
2016-06-14T21:32:00
2016-06-14T21:32:00
41,495,450
0
0
null
null
null
null
UTF-8
C++
false
false
214,294
phi
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class surfaceScalarField; location "1.85"; object phi; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -1 0 0 0 0]; internalField nonuniform List<scalar> 17320 ( 1.76391e-05 7.36088e-06 1.16203e-05 6.01885e-06 8.67842e-06 2.94184e-06 7.35742e-06 1.321e-06 6.72156e-06 6.35858e-07 6.33859e-06 3.82977e-07 6.07852e-06 2.60061e-07 5.87536e-06 2.03166e-07 5.70123e-06 1.74131e-07 5.58539e-06 1.15837e-07 5.4789e-06 1.06489e-07 5.39172e-06 8.71807e-08 5.29886e-06 9.28636e-08 5.24078e-06 5.80733e-08 5.12863e-06 1.12155e-07 5.09264e-06 3.59926e-08 4.97673e-06 1.15908e-07 5.01844e-06 -4.17079e-08 4.78104e-06 2.37391e-07 -6.13908e-07 5.39495e-06 2.54665e-05 6.89438e-06 2.32486e-05 8.23678e-06 2.09856e-05 5.20478e-06 1.93235e-05 2.9831e-06 1.80779e-05 1.88151e-06 1.71084e-05 1.35247e-06 1.63702e-05 9.98264e-07 1.57756e-05 7.97732e-07 1.53028e-05 6.46931e-07 1.49395e-05 4.7918e-07 1.46308e-05 4.15155e-07 1.4379e-05 3.39002e-07 1.41411e-05 3.30737e-07 1.39565e-05 2.42684e-07 1.37161e-05 3.52595e-07 1.35885e-05 1.63549e-07 1.33327e-05 3.71712e-07 1.33258e-05 -3.48363e-08 1.31816e-05 3.8167e-07 -7.49405e-07 1.33171e-05 2.66308e-05 5.26361e-06 2.71527e-05 7.71483e-06 2.67746e-05 5.58288e-06 2.62562e-05 3.50155e-06 2.56069e-05 2.53082e-06 2.48701e-05 2.08925e-06 2.4169e-05 1.69931e-06 2.35022e-05 1.46457e-06 2.29302e-05 1.2189e-06 2.24526e-05 9.56766e-07 2.20288e-05 8.3902e-07 2.16795e-05 6.88265e-07 2.13549e-05 6.55312e-07 2.10852e-05 5.12411e-07 2.07818e-05 6.56051e-07 2.05764e-05 3.6895e-07 2.02791e-05 6.69009e-07 2.01567e-05 8.75642e-08 2.01492e-05 3.89131e-07 -1.11678e-06 2.05166e-05 2.63406e-05 3.92301e-06 2.75355e-05 6.51995e-06 2.80702e-05 5.04811e-06 2.84588e-05 3.11299e-06 2.86512e-05 2.33841e-06 2.86255e-05 2.11501e-06 2.84865e-05 1.83822e-06 2.8236e-05 1.71512e-06 2.79644e-05 1.49054e-06 2.77034e-05 1.21772e-06 2.74221e-05 1.12035e-06 2.71673e-05 9.43025e-07 2.69226e-05 9.0005e-07 2.66734e-05 7.61588e-07 2.64287e-05 9.00731e-07 2.62014e-05 5.96254e-07 2.59634e-05 9.07049e-07 2.56968e-05 3.5417e-07 2.56251e-05 4.60807e-07 -6.32351e-07 2.51407e-05 2.60553e-05 2.86771e-06 2.72633e-05 5.31194e-06 2.80234e-05 4.28803e-06 2.84852e-05 2.65123e-06 2.89712e-05 1.85234e-06 2.93316e-05 1.75463e-06 2.95974e-05 1.57239e-06 2.975e-05 1.56256e-06 2.98539e-05 1.38667e-06 2.99206e-05 1.15101e-06 2.9947e-05 1.09393e-06 2.99461e-05 9.43858e-07 2.99774e-05 8.6884e-07 2.99048e-05 8.34169e-07 2.98931e-05 9.12384e-07 2.97914e-05 6.97933e-07 2.97369e-05 9.61636e-07 2.9447e-05 6.44045e-07 2.93663e-05 5.4146e-07 1.62033e-08 2.87178e-05 2.58293e-05 2.0384e-06 2.69677e-05 4.17356e-06 2.78173e-05 3.43842e-06 2.82164e-05 2.2521e-06 2.8702e-05 1.36682e-06 2.91093e-05 1.34731e-06 2.94717e-05 1.21002e-06 2.96894e-05 1.34479e-06 3.0003e-05 1.07308e-06 3.01751e-05 9.78909e-07 3.04123e-05 8.56775e-07 3.04892e-05 8.66968e-07 3.07753e-05 5.82683e-07 3.07753e-05 8.34208e-07 3.10292e-05 6.58429e-07 3.10018e-05 7.25401e-07 3.12313e-05 7.32112e-07 3.09617e-05 9.13688e-07 3.10328e-05 4.70302e-07 8.44723e-07 3.02043e-05 2.56486e-05 1.38975e-06 2.67685e-05 3.05375e-06 2.7685e-05 2.52185e-06 2.79985e-05 1.93859e-06 2.84384e-05 9.2698e-07 2.88567e-05 9.28993e-07 2.92076e-05 8.59112e-07 2.9423e-05 1.12943e-06 2.98663e-05 6.29733e-07 2.99972e-05 8.48058e-07 3.02705e-05 5.83453e-07 3.02971e-05 8.40367e-07 3.06974e-05 1.82359e-07 3.07005e-05 8.31149e-07 3.10048e-05 3.54118e-07 3.10396e-05 6.906e-07 3.13797e-05 3.9196e-07 3.1142e-05 1.15139e-06 3.10852e-05 5.27095e-07 1.84598e-06 3.0084e-05 2.55674e-05 8.22369e-07 2.66237e-05 1.99743e-06 2.74254e-05 1.72015e-06 2.79355e-05 1.42846e-06 2.83706e-05 4.91863e-07 2.87199e-05 5.79738e-07 2.89877e-05 5.91312e-07 2.93159e-05 8.0124e-07 2.96186e-05 3.26985e-07 2.97939e-05 6.72821e-07 3.00141e-05 3.63244e-07 3.03171e-05 5.37313e-07 3.04466e-05 5.2863e-08 3.06706e-05 6.07226e-07 3.07881e-05 2.36601e-07 3.09484e-05 5.30251e-07 3.11143e-05 2.26039e-07 3.14915e-05 7.74264e-07 3.17441e-05 2.74452e-07 7.91108e-07 3.2799e-05 2.54793e-05 3.43032e-07 2.64529e-05 1.02385e-06 2.72981e-05 8.7497e-07 2.79637e-05 7.62891e-07 2.82911e-05 1.64431e-07 2.85403e-05 3.30486e-07 2.88894e-05 2.42297e-07 2.92227e-05 4.67892e-07 2.93938e-05 1.5587e-07 2.97333e-05 3.33344e-07 2.99663e-05 1.30273e-07 3.01983e-05 3.05316e-07 3.02891e-05 -3.7983e-08 3.05494e-05 3.46966e-07 3.06511e-05 1.34869e-07 3.09047e-05 2.7669e-07 3.09913e-05 1.39371e-07 3.14635e-05 3.02101e-07 3.16127e-05 1.25296e-07 2.17603e-07 3.21862e-05 2.5417e-05 -7.39995e-08 2.6417e-05 2.39329e-08 2.72909e-05 9.90925e-10 2.79025e-05 1.51274e-07 2.81551e-05 -8.81105e-08 2.85083e-05 -2.27354e-08 2.88695e-05 -1.18869e-07 2.91564e-05 1.80965e-07 2.94188e-05 -1.06567e-07 2.97338e-05 1.8335e-08 2.98753e-05 -1.11762e-08 3.00586e-05 1.2204e-07 3.024e-05 -2.19442e-07 3.05056e-05 8.13645e-08 3.06312e-05 9.30663e-09 3.0845e-05 6.28628e-08 3.11161e-05 -1.3168e-07 3.13621e-05 5.61168e-08 3.15671e-05 -7.97769e-08 -2.0356e-07 3.19883e-05 2.54164e-05 -4.90415e-07 2.64198e-05 -9.79435e-07 2.72568e-05 -8.36051e-07 2.78897e-05 -4.81596e-07 2.82044e-05 -4.02789e-07 2.85586e-05 -3.76948e-07 2.88052e-05 -3.65531e-07 2.91893e-05 -2.03121e-07 2.9433e-05 -3.50226e-07 2.96729e-05 -2.21526e-07 2.98001e-05 -1.3843e-07 3.01125e-05 -1.90384e-07 3.02458e-05 -3.52672e-07 3.04927e-05 -1.6554e-07 3.06405e-05 -1.38557e-07 3.0898e-05 -1.94625e-07 3.10909e-05 -3.24532e-07 3.1388e-05 -2.41012e-07 3.14943e-05 -1.86121e-07 -4.24637e-07 3.17154e-05 2.54429e-05 -9.33301e-07 2.64508e-05 -1.98734e-06 2.73325e-05 -1.71774e-06 2.79819e-05 -1.13096e-06 2.8266e-05 -6.86977e-07 2.85507e-05 -6.61571e-07 2.88396e-05 -6.54427e-07 2.92382e-05 -6.01714e-07 2.94304e-05 -5.42463e-07 2.97193e-05 -5.10434e-07 2.99798e-05 -3.98917e-07 3.01966e-05 -4.07162e-07 3.02885e-05 -4.44637e-07 3.05126e-05 -3.89578e-07 3.07044e-05 -3.30408e-07 3.09403e-05 -4.30502e-07 3.11165e-05 -5.00729e-07 3.1353e-05 -4.77515e-07 3.16278e-05 -4.60923e-07 -6.16878e-07 3.182e-05 2.55462e-05 -1.47949e-06 2.65798e-05 -3.02093e-06 2.74058e-05 -2.54381e-06 2.80386e-05 -1.7637e-06 2.83441e-05 -9.92493e-07 2.8674e-05 -9.91523e-07 2.89821e-05 -9.62458e-07 2.93181e-05 -9.37734e-07 2.95452e-05 -7.69541e-07 2.98656e-05 -8.30875e-07 3.0056e-05 -5.8932e-07 3.02816e-05 -6.32787e-07 3.04019e-05 -5.64922e-07 3.06142e-05 -6.01807e-07 3.07738e-05 -4.9002e-07 3.10333e-05 -6.90027e-07 3.12035e-05 -6.70975e-07 3.15177e-05 -7.91688e-07 3.17894e-05 -7.32596e-07 -8.03573e-07 3.19761e-05 2.5673e-05 -2.15249e-06 2.67221e-05 -4.07007e-06 2.75858e-05 -3.40748e-06 2.80907e-05 -2.26855e-06 2.84838e-05 -1.38562e-06 2.88501e-05 -1.35786e-06 2.91649e-05 -1.2772e-06 2.94799e-05 -1.25273e-06 2.97539e-05 -1.04359e-06 3.00271e-05 -1.10409e-06 3.02054e-05 -7.67581e-07 3.04219e-05 -8.49257e-07 3.05784e-05 -7.21437e-07 3.07943e-05 -8.17704e-07 3.09348e-05 -6.30535e-07 3.11746e-05 -9.2988e-07 3.13445e-05 -8.40822e-07 3.16517e-05 -1.09886e-06 3.18935e-05 -9.74479e-07 -1.09434e-06 3.21843e-05 2.58288e-05 -2.98124e-06 2.69507e-05 -5.19206e-06 2.78239e-05 -4.28061e-06 2.82478e-05 -2.69248e-06 2.86927e-05 -1.83047e-06 2.90908e-05 -1.75601e-06 2.94403e-05 -1.62673e-06 2.97152e-05 -1.52756e-06 2.99891e-05 -1.31758e-06 3.01921e-05 -1.30704e-06 3.03815e-05 -9.56929e-07 3.05427e-05 -1.01052e-06 3.06942e-05 -8.72973e-07 3.083e-05 -9.53422e-07 3.09525e-05 -7.53048e-07 3.11004e-05 -1.0778e-06 3.11925e-05 -9.32876e-07 3.14037e-05 -1.31015e-06 3.1558e-05 -1.12873e-06 -1.36495e-06 3.18286e-05 2.60289e-05 -4.01017e-06 2.7246e-05 -6.40912e-06 2.80373e-05 -5.07192e-06 2.84923e-05 -3.14753e-06 2.89721e-05 -2.3102e-06 2.93271e-05 -2.1111e-06 2.95838e-05 -1.8834e-06 2.97275e-05 -1.67124e-06 2.98641e-05 -1.4542e-06 2.98962e-05 -1.33911e-06 2.99557e-05 -1.01643e-06 2.99455e-05 -1.00038e-06 2.99496e-05 -8.77021e-07 2.99012e-05 -9.04996e-07 2.98739e-05 -7.25746e-07 2.97839e-05 -9.87831e-07 2.9696e-05 -8.45034e-07 2.96272e-05 -1.24129e-06 2.9554e-05 -1.05554e-06 -1.45122e-06 2.96403e-05 2.63044e-05 -5.31455e-06 2.75515e-05 -7.65622e-06 2.80714e-05 -5.59184e-06 2.84443e-05 -3.52037e-06 2.86443e-05 -2.51029e-06 2.86217e-05 -2.08847e-06 2.84685e-05 -1.7302e-06 2.82334e-05 -1.43609e-06 2.79731e-05 -1.19396e-06 2.76743e-05 -1.04023e-06 2.74313e-05 -7.73507e-07 2.71546e-05 -7.23667e-07 2.69095e-05 -6.31899e-07 2.66456e-05 -6.41138e-07 2.64281e-05 -5.08197e-07 2.61356e-05 -6.95306e-07 2.58934e-05 -6.02893e-07 2.55617e-05 -9.09541e-07 2.53302e-05 -8.24046e-07 -1.31278e-06 2.51917e-05 2.66042e-05 -6.91876e-06 2.71633e-05 -8.21533e-06 2.67708e-05 -5.19935e-06 2.62465e-05 -2.99606e-06 2.56058e-05 -1.86957e-06 2.48691e-05 -1.35179e-06 2.41535e-05 -1.01462e-06 2.35066e-05 -7.89145e-07 2.29334e-05 -6.20782e-07 2.243e-05 -5.36794e-07 2.20342e-05 -3.7777e-07 2.16659e-05 -3.55373e-07 2.1349e-05 -3.14934e-07 2.10418e-05 -3.33985e-07 2.07878e-05 -2.54188e-07 2.04689e-05 -3.76395e-07 2.02012e-05 -3.35144e-07 1.97879e-05 -4.96248e-07 1.94302e-05 -4.66414e-07 -4.6487e-07 1.85823e-05 2.54494e-05 -7.36817e-06 2.32491e-05 -6.01501e-06 2.09839e-05 -2.93412e-06 1.93168e-05 -1.32901e-06 1.80792e-05 -6.31921e-07 1.71084e-05 -3.80979e-07 1.63609e-05 -2.67149e-07 1.57758e-05 -2.04088e-07 1.53098e-05 -1.54714e-07 1.49196e-05 -1.46594e-07 1.46321e-05 -9.0262e-08 1.43683e-05 -9.15868e-08 1.41386e-05 -8.52843e-08 1.39074e-05 -1.02719e-07 1.37209e-05 -6.77472e-08 1.34687e-05 -1.24211e-07 1.32425e-05 -1.08909e-07 1.2914e-05 -1.67793e-07 1.26537e-05 -2.06108e-07 -7.45645e-08 1.22634e-05 1.76318e-05 1.16168e-05 8.6827e-06 7.35369e-06 6.72177e-06 6.34079e-06 6.07364e-06 5.86955e-06 5.71484e-06 5.56824e-06 5.47798e-06 5.38639e-06 5.30111e-06 5.19839e-06 5.13064e-06 5.00643e-06 4.89752e-06 4.72973e-06 4.52362e-06 4.44906e-06 5.77917e-06 -3.78354e-07 -5.8596e-09 6.14075e-06 -1.25737e-07 -2.35844e-07 6.43874e-06 -3.88772e-09 -2.9411e-07 6.70649e-06 2.56062e-08 -2.93352e-07 6.94753e-06 -6.67459e-08 -1.743e-07 7.14976e-06 -2.07154e-07 4.93003e-09 7.316e-06 -3.17295e-07 1.51052e-07 7.43641e-06 -3.84527e-07 2.64121e-07 7.50996e-06 -3.92326e-07 3.18777e-07 7.55064e-06 -3.56874e-07 3.16192e-07 7.58095e-06 -2.66365e-07 2.36057e-07 7.63331e-06 -1.50392e-07 9.80314e-08 7.75294e-06 1.28995e-09 -1.20918e-07 7.93504e-06 1.69279e-07 -3.51387e-07 8.22724e-06 3.38151e-07 -6.30344e-07 8.61484e-06 5.06175e-07 -8.9378e-07 9.0554e-06 5.90981e-07 -1.03154e-06 9.54522e-06 6.18527e-07 -1.10835e-06 9.97262e-06 5.37544e-07 -9.64941e-07 1.02765e-05 3.56675e-07 -6.60546e-07 1.0467e-05 1.34933e-07 -3.25451e-07 1.05117e-05 -7.06583e-08 2.59545e-08 1.04788e-05 -2.5274e-07 2.85646e-07 1.04001e-05 -3.6687e-07 4.45617e-07 1.03179e-05 -4.31877e-07 5.1407e-07 1.02567e-05 -4.30801e-07 4.92016e-07 1.02361e-05 -3.98662e-07 4.19261e-07 1.02724e-05 -3.4974e-07 3.13375e-07 1.03339e-05 -2.90299e-07 2.28796e-07 1.04364e-05 -2.63533e-07 1.61046e-07 1.05442e-05 -2.09053e-07 1.0129e-07 1.06638e-05 -1.75766e-07 5.61646e-08 1.07973e-05 -1.58315e-07 2.47695e-08 1.09207e-05 -1.4807e-07 2.46658e-08 1.104e-05 -1.37947e-07 1.86259e-08 1.11521e-05 -1.31025e-07 1.90041e-08 1.12638e-05 -1.03977e-07 -7.71215e-09 1.13688e-05 -7.51563e-08 -2.98657e-08 1.14937e-05 -3.6051e-08 -8.88724e-08 1.16162e-05 5.04506e-08 -1.72977e-07 1.17912e-05 1.18229e-07 -2.9322e-07 1.19942e-05 2.30861e-07 -4.33892e-07 1.22751e-05 3.23892e-07 -6.04729e-07 1.26046e-05 3.98971e-07 -7.28465e-07 1.29639e-05 4.28262e-07 -7.87598e-07 1.33791e-05 3.7617e-07 -7.9133e-07 1.37849e-05 2.91026e-07 -6.96806e-07 1.41936e-05 7.25653e-08 -4.8131e-07 1.45851e-05 -1.84886e-07 -2.06597e-07 1.48957e-05 -5.20273e-07 2.09679e-07 1.51564e-05 -9.70773e-07 7.1005e-07 1.52866e-05 -1.41658e-06 1.28635e-06 1.53158e-05 -1.95183e-06 1.92262e-06 1.52671e-05 -2.402e-06 2.45076e-06 1.51513e-05 -2.78262e-06 2.89843e-06 1.49738e-05 -3.10463e-06 3.28207e-06 1.4665e-05 -3.21157e-06 3.52039e-06 1.42464e-05 -3.14827e-06 3.56682e-06 1.37172e-05 -2.90722e-06 3.43643e-06 1.3188e-05 -2.3497e-06 2.87896e-06 1.28677e-05 -1.65372e-06 1.97404e-06 1.27632e-05 -7.21889e-07 8.26329e-07 1.28591e-05 2.64478e-07 -3.6036e-07 1.30946e-05 1.22616e-06 -1.46166e-06 1.36438e-05 2.04808e-06 -2.59727e-06 1.42714e-05 2.5946e-06 -3.22218e-06 1.49161e-05 2.89114e-06 -3.53588e-06 1.57436e-05 3.18471e-06 -4.01222e-06 1.6759e-05 3.41015e-06 -4.42557e-06 1.76953e-05 3.4396e-06 -4.37589e-06 1.85521e-05 3.24484e-06 -4.10163e-06 1.93873e-05 2.87366e-06 -3.70886e-06 2.01582e-05 2.34121e-06 -3.11206e-06 2.08163e-05 1.65808e-06 -2.31621e-06 2.13611e-05 9.07315e-07 -1.45213e-06 2.18126e-05 1.94338e-08 -4.709e-07 2.21298e-05 -7.26973e-07 4.09708e-07 2.24736e-05 -1.60076e-06 1.25699e-06 2.2795e-05 -2.38838e-06 2.06698e-06 2.31833e-05 -3.07103e-06 2.6827e-06 2.36339e-05 -3.89238e-06 3.44182e-06 2.41491e-05 -4.58733e-06 4.07213e-06 2.47758e-05 -5.31956e-06 4.69283e-06 2.54231e-05 -6.10069e-06 5.45346e-06 2.61451e-05 -6.83657e-06 6.11455e-06 2.69361e-05 -7.53973e-06 6.74868e-06 2.7697e-05 -8.28451e-06 7.52366e-06 2.84696e-05 -8.8713e-06 8.09867e-06 2.91403e-05 -9.47592e-06 8.8052e-06 2.97417e-05 -9.97989e-06 9.37853e-06 3.02376e-05 -1.02817e-05 9.78575e-06 3.05322e-05 -1.06895e-05 1.03949e-05 3.06944e-05 -1.07577e-05 1.05954e-05 3.07138e-05 -1.0792e-05 1.07726e-05 3.05326e-05 -1.08466e-05 1.10278e-05 3.03275e-05 -1.05546e-05 1.07597e-05 2.99732e-05 -1.04717e-05 1.0826e-05 2.96187e-05 -1.02862e-05 1.06406e-05 2.92907e-05 -9.96969e-06 1.02977e-05 2.89722e-05 -9.87281e-06 1.01914e-05 2.88024e-05 -9.65966e-06 9.82944e-06 2.86767e-05 -9.45684e-06 9.58255e-06 2.87564e-05 -9.28875e-06 9.20905e-06 2.89194e-05 -9.1738e-06 9.01076e-06 2.92891e-05 -9.03176e-06 8.66213e-06 2.98717e-05 -8.70121e-06 8.11861e-06 3.05754e-05 -8.70949e-06 8.0057e-06 3.13489e-05 -8.00519e-06 7.23172e-06 3.22553e-05 -7.65139e-06 6.74505e-06 3.30948e-05 -6.67125e-06 5.83176e-06 3.39421e-05 -5.75033e-06 4.90302e-06 3.46752e-05 -4.66501e-06 3.93191e-06 3.53544e-05 -3.12405e-06 2.44487e-06 3.59194e-05 -2.07276e-06 1.50768e-06 3.64115e-05 -4.36245e-07 -5.57925e-08 3.66843e-05 9.06288e-07 -1.17911e-06 3.69498e-05 2.06844e-06 -2.33395e-06 3.69951e-05 3.84394e-06 -3.88921e-06 3.70347e-05 4.49216e-06 -4.53176e-06 3.69584e-05 6.0116e-06 -5.93533e-06 3.68166e-05 6.69258e-06 -6.55081e-06 3.66807e-05 7.43001e-06 -7.29403e-06 3.64641e-05 8.23812e-06 -8.02159e-06 3.62482e-05 8.42129e-06 -8.20533e-06 3.60045e-05 8.74731e-06 -8.50359e-06 3.56994e-05 8.99445e-06 -8.68934e-06 3.53613e-05 8.64728e-06 -8.3092e-06 3.49433e-05 8.55673e-06 -8.13872e-06 3.44292e-05 8.14552e-06 -7.63145e-06 3.39006e-05 7.3072e-06 -6.77862e-06 3.32624e-05 6.71989e-06 -6.08164e-06 3.25826e-05 5.71635e-06 -5.03654e-06 3.185e-05 4.54852e-06 -3.81596e-06 3.10978e-05 3.52518e-06 -2.77294e-06 3.0306e-05 2.31003e-06 -1.51827e-06 2.95193e-05 9.9975e-07 -2.13018e-07 2.86528e-05 -1.90805e-07 1.05728e-06 2.78126e-05 -1.40948e-06 2.24973e-06 2.68906e-05 -2.40132e-06 3.3233e-06 2.58511e-05 -3.35613e-06 4.39563e-06 2.48842e-05 -4.28874e-06 5.2556e-06 2.38363e-05 -4.1387e-06 5.18663e-06 2.28889e-05 -5.1011e-06 6.04848e-06 2.1831e-05 -5.59964e-06 6.65753e-06 2.08359e-05 -4.63236e-06 5.62746e-06 1.97036e-05 -3.74335e-06 4.87569e-06 1.8696e-05 -4.39179e-06 5.39942e-06 1.81409e-05 -4.805e-06 5.3601e-06 1.78592e-05 -4.28044e-06 4.56212e-06 1.78145e-05 -1.73698e-06 1.78165e-06 1.76906e-05 -8.40417e-07 9.64338e-07 1.71693e-05 -1.08863e-06 1.60991e-06 1.6991e-05 -3.02555e-06 3.20382e-06 1.69441e-05 -3.90699e-06 3.95395e-06 1.75725e-05 -5.93342e-06 5.30499e-06 1.80981e-05 -6.33981e-06 5.81418e-06 1.84688e-05 -4.08801e-06 3.71741e-06 1.89542e-05 -2.63862e-06 2.15317e-06 1.86889e-05 -2.30498e-06 2.57028e-06 1.86912e-05 -2.50408e-06 2.5018e-06 1.85141e-05 -4.24534e-06 4.42245e-06 1.82173e-05 -5.7901e-06 6.08687e-06 1.92069e-05 -1.0826e-05 9.83634e-06 2.06968e-05 -1.68675e-05 1.53776e-05 2.21887e-05 -2.18025e-05 2.03106e-05 2.2698e-05 -2.38791e-05 2.33698e-05 2.25068e-05 -2.41785e-05 2.43697e-05 2.24432e-05 -2.2994e-05 2.30576e-05 2.24326e-05 -1.96649e-05 1.96754e-05 2.20204e-05 -1.62401e-05 1.66523e-05 2.19013e-05 -1.28126e-05 1.29317e-05 2.20271e-05 -7.70692e-06 7.58113e-06 2.1748e-05 -2.49116e-06 2.77021e-06 2.18324e-05 2.34373e-06 -2.42807e-06 2.19013e-05 7.99017e-06 -8.0591e-06 2.13094e-05 1.17061e-05 -1.11141e-05 2.13885e-05 1.32706e-05 -1.33497e-05 2.20015e-05 1.66479e-05 -1.7261e-05 2.34414e-05 2.16976e-05 -2.31375e-05 2.44559e-05 2.77272e-05 -2.87417e-05 2.36439e-05 3.21647e-05 -3.13527e-05 2.25019e-05 3.2875e-05 -3.1733e-05 2.13886e-05 3.16455e-05 -3.05322e-05 1.88382e-05 2.92412e-05 -2.66907e-05 1.65257e-05 2.50517e-05 -2.27391e-05 1.59348e-05 2.1314e-05 -2.07232e-05 1.41495e-05 2.0161e-05 -1.83757e-05 1.32299e-05 1.71778e-05 -1.62582e-05 1.3128e-05 1.62412e-05 -1.61393e-05 1.13628e-05 1.59915e-05 -1.42262e-05 1.15813e-05 1.31526e-05 -1.33711e-05 1.10017e-05 1.34377e-05 -1.28581e-05 1.01943e-05 1.09175e-05 -1.01102e-05 9.48621e-06 1.08722e-05 -1.0164e-05 8.17203e-06 8.71354e-06 -7.39936e-06 7.0484e-06 8.77466e-06 -7.65102e-06 7.32312e-06 5.93491e-06 -6.20963e-06 5.70124e-06 7.38806e-06 -5.76618e-06 6.50894e-06 3.39683e-06 -4.20454e-06 6.83309e-06 -6.90192e-06 6.57778e-06 1.32768e-05 -3.38118e-07 1.33206e-05 -1.69492e-07 1.33708e-05 -5.41286e-08 1.34514e-05 -5.49345e-08 1.35345e-05 -1.49942e-07 1.36096e-05 -2.82182e-07 1.36854e-05 -3.93091e-07 1.37368e-05 -4.35993e-07 1.3759e-05 -4.14523e-07 1.37523e-05 -3.50121e-07 1.37361e-05 -2.50183e-07 1.37241e-05 -1.38423e-07 1.37484e-05 -2.29423e-08 1.37966e-05 1.21049e-07 1.38924e-05 2.42323e-07 1.40493e-05 3.49314e-07 1.42382e-05 4.02046e-07 1.44615e-05 3.9522e-07 1.4677e-05 3.22031e-07 1.48461e-05 1.87633e-07 1.49585e-05 2.24766e-08 1.50387e-05 -1.5081e-07 1.50813e-05 -2.95317e-07 1.51059e-05 -3.91501e-07 1.51326e-05 -4.58624e-07 1.51736e-05 -4.7178e-07 1.52253e-05 -4.50305e-07 1.53182e-05 -4.42645e-07 1.54074e-05 -3.79515e-07 1.55164e-05 -3.7253e-07 1.56398e-05 -3.32499e-07 1.57578e-05 -2.9377e-07 1.59021e-05 -3.02547e-07 1.60119e-05 -2.57942e-07 1.61349e-05 -2.60935e-07 1.6252e-05 -2.4812e-07 1.63513e-05 -2.03307e-07 1.64682e-05 -1.91985e-07 1.65703e-05 -1.38208e-07 1.66975e-05 -7.66999e-08 1.68493e-05 -3.35599e-08 1.70151e-05 6.50554e-08 1.72376e-05 1.01413e-07 1.74973e-05 1.39208e-07 1.77787e-05 1.46929e-07 1.8099e-05 5.57852e-08 1.84334e-05 -4.3333e-08 1.87537e-05 -2.47714e-07 1.90972e-05 -5.28424e-07 1.93831e-05 -8.06169e-07 1.96368e-05 -1.22443e-06 1.98252e-05 -1.60499e-06 1.99028e-05 -2.02942e-06 1.99482e-05 -2.44747e-06 1.98516e-05 -2.68594e-06 1.96812e-05 -2.93426e-06 1.94376e-05 -2.96802e-06 1.9152e-05 -2.86266e-06 1.88884e-05 -2.64356e-06 1.86409e-05 -2.1022e-06 1.84682e-05 -1.48105e-06 1.84145e-05 -6.68167e-07 1.8469e-05 2.09912e-07 1.86692e-05 1.02604e-06 1.8933e-05 1.7842e-06 1.92374e-05 2.29023e-06 1.95576e-05 2.57096e-06 1.99675e-05 2.77477e-06 2.05141e-05 2.86359e-06 2.11383e-05 2.81541e-06 2.17605e-05 2.62263e-06 2.2391e-05 2.24315e-06 2.30444e-05 1.68778e-06 2.35786e-05 1.12391e-06 2.41464e-05 3.39487e-07 2.46275e-05 -4.61694e-07 2.50752e-05 -1.17467e-06 2.55555e-05 -2.08101e-06 2.60368e-05 -2.86971e-06 2.66124e-05 -3.64661e-06 2.71944e-05 -4.47436e-06 2.78141e-05 -5.20706e-06 2.8498e-05 -6.00348e-06 2.91623e-05 -6.76491e-06 2.98005e-05 -7.47479e-06 3.0406e-05 -8.14525e-06 3.0901e-05 -8.77955e-06 3.1334e-05 -9.30427e-06 3.15958e-05 -9.73774e-06 3.17067e-05 -1.00908e-05 3.17241e-05 -1.02991e-05 3.15237e-05 -1.04891e-05 3.12244e-05 -1.04583e-05 3.08669e-05 -1.04345e-05 3.03555e-05 -1.03353e-05 2.98815e-05 -1.00806e-05 2.94167e-05 -1.00068e-05 2.9e-05 -9.8695e-06 2.87015e-05 -9.67118e-06 2.85208e-05 -9.69206e-06 2.84113e-05 -9.5502e-06 2.84455e-05 -9.49105e-06 2.87094e-05 -9.55264e-06 2.90253e-05 -9.48964e-06 2.96005e-05 -9.60701e-06 3.03986e-05 -9.49927e-06 3.11673e-05 -9.47817e-06 3.21389e-05 -8.97677e-06 3.30598e-05 -8.57233e-06 3.39924e-05 -7.60388e-06 3.48249e-05 -6.58281e-06 3.55477e-05 -5.3878e-06 3.62554e-05 -3.83179e-06 3.68053e-05 -2.62263e-06 3.72588e-05 -8.89729e-07 3.75758e-05 5.89274e-07 3.77358e-05 1.90842e-06 3.78159e-05 3.76383e-06 3.76599e-05 4.64816e-06 3.75302e-05 6.14128e-06 3.71811e-05 7.04168e-06 3.68611e-05 7.75007e-06 3.64678e-05 8.63136e-06 3.60324e-05 8.85674e-06 3.55692e-05 9.21046e-06 3.51047e-05 9.45893e-06 3.45907e-05 9.16129e-06 3.40855e-05 9.06194e-06 3.35831e-05 8.64791e-06 3.30352e-05 7.85511e-06 3.25108e-05 7.2443e-06 3.19318e-05 6.29534e-06 3.13143e-05 5.16602e-06 3.06112e-05 4.22833e-06 2.98971e-05 3.02413e-06 2.91417e-05 1.75507e-06 2.82782e-05 6.72784e-07 2.73697e-05 -5.01003e-07 2.63987e-05 -1.43039e-06 2.54103e-05 -2.36768e-06 2.43586e-05 -3.23701e-06 2.3359e-05 -3.13913e-06 2.23045e-05 -4.04658e-06 2.11379e-05 -4.43306e-06 2.01044e-05 -3.59889e-06 1.89307e-05 -2.56961e-06 1.80082e-05 -3.46928e-06 1.73782e-05 -4.175e-06 1.7204e-05 -4.1063e-06 1.74125e-05 -1.94547e-06 1.73304e-05 -7.58324e-07 1.72063e-05 -9.64551e-07 1.69633e-05 -2.78248e-06 1.69118e-05 -3.85555e-06 1.74372e-05 -6.45878e-06 1.73562e-05 -6.25879e-06 1.79356e-05 -4.66745e-06 1.80441e-05 -2.74709e-06 1.76018e-05 -1.86273e-06 1.79257e-05 -2.82796e-06 1.74654e-05 -3.78508e-06 1.75614e-05 -5.88601e-06 1.88634e-05 -1.2128e-05 2.05051e-05 -1.85092e-05 2.17815e-05 -2.30789e-05 2.20068e-05 -2.41044e-05 2.18033e-05 -2.3975e-05 2.15234e-05 -2.27141e-05 2.15955e-05 -1.97369e-05 2.14605e-05 -1.61051e-05 2.1279e-05 -1.26311e-05 2.12113e-05 -7.63922e-06 2.11115e-05 -2.39134e-06 2.0814e-05 2.64124e-06 2.11874e-05 7.61673e-06 2.08576e-05 1.20359e-05 2.06634e-05 1.34648e-05 2.14479e-05 1.58634e-05 2.25344e-05 2.06111e-05 2.41141e-05 2.61475e-05 2.45884e-05 3.16904e-05 2.3033e-05 3.44304e-05 2.17317e-05 3.29468e-05 2.04548e-05 3.0518e-05 1.75961e-05 2.79104e-05 1.60538e-05 2.28563e-05 1.57393e-05 2.04756e-05 1.34966e-05 1.94204e-05 1.36907e-05 1.60471e-05 1.34316e-05 1.62505e-05 1.28727e-05 1.37115e-05 1.26525e-05 1.3658e-05 1.23567e-05 1.12132e-05 1.14423e-05 1.17866e-05 1.23497e-05 7.80618e-06 1.10908e-05 1.00336e-05 1.1655e-05 5.37069e-06 1.14514e-05 7.59167e-06 1.13272e-05 3.521e-06 5.60988e-06 1.25504e-05 2.02658e-05 -8.73094e-08 1.99967e-05 9.95326e-08 1.98454e-05 9.71605e-08 1.98433e-05 -5.28068e-08 1.99284e-05 -2.35025e-07 2.00169e-05 -3.7065e-07 2.00595e-05 -4.35714e-07 2.00617e-05 -4.38227e-07 2.00324e-05 -3.8521e-07 2.00004e-05 -3.18076e-07 1.99651e-05 -2.14885e-07 1.9945e-05 -1.18349e-07 1.99392e-05 -1.71872e-08 1.99652e-05 9.50511e-08 2.00216e-05 1.86002e-07 2.01072e-05 2.63695e-07 2.02167e-05 2.92524e-07 2.0338e-05 2.73875e-07 2.04475e-05 2.12559e-07 2.05372e-05 9.79441e-08 2.06039e-05 -4.42164e-08 2.0643e-05 -1.89878e-07 2.06792e-05 -3.31525e-07 2.06925e-05 -4.04812e-07 2.07255e-05 -4.91639e-07 2.07683e-05 -5.14615e-07 2.08116e-05 -4.9357e-07 2.08888e-05 -5.19861e-07 2.09675e-05 -4.58202e-07 2.10459e-05 -4.50977e-07 2.11532e-05 -4.39755e-07 2.12403e-05 -3.80866e-07 2.13496e-05 -4.11893e-07 2.14529e-05 -3.61159e-07 2.15245e-05 -3.32601e-07 2.16488e-05 -3.72348e-07 2.17137e-05 -2.68223e-07 2.18152e-05 -2.93484e-07 2.19234e-05 -2.46416e-07 2.20049e-05 -1.58191e-07 2.21565e-05 -1.85233e-07 2.23005e-05 -7.88711e-08 2.24716e-05 -6.97089e-08 2.26973e-05 -8.65357e-08 2.29263e-05 -8.19859e-08 2.31732e-05 -1.91179e-07 2.34422e-05 -3.12353e-07 2.36985e-05 -5.03939e-07 2.39403e-05 -7.70255e-07 2.41882e-05 -1.05412e-06 2.43514e-05 -1.38756e-06 2.45058e-05 -1.75944e-06 2.45623e-05 -2.0859e-06 2.45453e-05 -2.43047e-06 2.4472e-05 -2.61262e-06 2.43224e-05 -2.78467e-06 2.41392e-05 -2.78479e-06 2.39169e-05 -2.6404e-06 2.36748e-05 -2.4014e-06 2.34661e-05 -1.89354e-06 2.33284e-05 -1.34332e-06 2.3304e-05 -6.43789e-07 2.33808e-05 1.33062e-07 2.3542e-05 8.649e-07 2.38069e-05 1.51932e-06 2.40825e-05 2.01462e-06 2.43535e-05 2.29993e-06 2.46891e-05 2.43914e-06 2.50452e-05 2.50748e-06 2.5509e-05 2.35164e-06 2.5972e-05 2.15963e-06 2.64485e-05 1.76669e-06 2.69493e-05 1.187e-06 2.74197e-05 6.53477e-07 2.79117e-05 -1.52504e-07 2.83628e-05 -9.12841e-07 2.88491e-05 -1.66097e-06 2.93155e-05 -2.54732e-06 2.9789e-05 -3.34321e-06 3.02778e-05 -4.13546e-06 3.07702e-05 -4.96674e-06 3.12476e-05 -5.6845e-06 3.16878e-05 -6.44364e-06 3.20619e-05 -7.13905e-06 3.23755e-05 -7.78842e-06 3.25883e-05 -8.35798e-06 3.26701e-05 -8.86136e-06 3.26543e-05 -9.28846e-06 3.24885e-05 -9.57197e-06 3.21967e-05 -9.79903e-06 3.18658e-05 -9.96816e-06 3.13771e-05 -1.00004e-05 3.08971e-05 -9.97833e-06 3.03569e-05 -9.89425e-06 2.97886e-05 -9.76702e-06 2.9387e-05 -9.67902e-06 2.89927e-05 -9.61253e-06 2.86999e-05 -9.5767e-06 2.85555e-05 -9.52675e-06 2.84449e-05 -9.58144e-06 2.84242e-05 -9.5295e-06 2.85694e-05 -9.6363e-06 2.88604e-05 -9.84364e-06 2.92575e-05 -9.88676e-06 2.98761e-05 -1.02256e-05 3.06779e-05 -1.03011e-05 3.14379e-05 -1.02382e-05 3.24116e-05 -9.95046e-06 3.32148e-05 -9.37555e-06 3.41142e-05 -8.50323e-06 3.48355e-05 -7.30408e-06 3.55326e-05 -6.08494e-06 3.62053e-05 -4.50451e-06 3.67398e-05 -3.15707e-06 3.72215e-05 -1.37142e-06 3.76621e-05 1.48672e-07 3.78515e-05 1.71898e-06 3.80473e-05 3.56799e-06 3.79878e-05 4.70767e-06 3.7903e-05 6.22609e-06 3.76114e-05 7.33329e-06 3.72877e-05 8.07378e-06 3.68288e-05 9.09024e-06 3.62367e-05 9.44884e-06 3.55661e-05 9.88105e-06 3.48528e-05 1.01723e-05 3.40845e-05 9.92955e-06 3.33172e-05 9.8293e-06 3.25879e-05 9.37719e-06 3.18904e-05 8.55261e-06 3.12294e-05 7.90532e-06 3.05968e-05 6.92788e-06 3.00028e-05 5.75999e-06 2.93863e-05 4.84487e-06 2.87645e-05 3.64595e-06 2.80436e-05 2.47595e-06 2.72031e-05 1.51328e-06 2.63291e-05 3.72979e-07 2.53834e-05 -4.84676e-07 2.45076e-05 -1.49192e-06 2.34511e-05 -2.18042e-06 2.24252e-05 -2.11326e-06 2.13272e-05 -2.94855e-06 2.03814e-05 -3.4873e-06 1.95932e-05 -2.81068e-06 1.88285e-05 -1.80489e-06 1.80167e-05 -2.65751e-06 1.72122e-05 -3.37052e-06 1.68314e-05 -3.72547e-06 1.69155e-05 -2.02961e-06 1.69112e-05 -7.53974e-07 1.72068e-05 -1.26013e-06 1.69223e-05 -2.49802e-06 1.73634e-05 -4.29666e-06 1.73625e-05 -6.45783e-06 1.71226e-05 -6.01887e-06 1.78058e-05 -5.35068e-06 1.70683e-05 -2.0096e-06 1.7114e-05 -1.90843e-06 1.71849e-05 -2.89889e-06 1.65401e-05 -3.14025e-06 1.71943e-05 -6.54019e-06 1.85936e-05 -1.35274e-05 1.96955e-05 -1.96111e-05 1.99636e-05 -2.3347e-05 2.0188e-05 -2.43289e-05 2.02053e-05 -2.39923e-05 1.99308e-05 -2.24395e-05 1.99663e-05 -1.97724e-05 1.99924e-05 -1.61313e-05 2.00004e-05 -1.26391e-05 1.98724e-05 -7.51119e-06 1.97438e-05 -2.26272e-06 1.96791e-05 2.70588e-06 1.98478e-05 7.44806e-06 2.0314e-05 1.15696e-05 1.99834e-05 1.37955e-05 2.08021e-05 1.50446e-05 2.1984e-05 1.94292e-05 2.31726e-05 2.49589e-05 2.4684e-05 3.0179e-05 2.44209e-05 3.46935e-05 2.22119e-05 3.51559e-05 2.08772e-05 3.18527e-05 1.96275e-05 2.91601e-05 1.67143e-05 2.57694e-05 1.61799e-05 2.101e-05 1.53844e-05 2.0216e-05 1.46518e-05 1.67797e-05 1.45362e-05 1.6366e-05 1.4875e-05 1.33727e-05 1.40089e-05 1.45241e-05 1.54102e-05 9.81201e-06 1.45257e-05 1.2671e-05 1.47185e-05 7.6134e-06 1.47306e-05 1.00215e-05 1.43316e-05 5.76975e-06 1.49515e-05 6.97172e-06 1.42973e-05 4.17518e-06 4.71821e-06 1.5189e-05 2.51275e-05 -7.41376e-08 2.51887e-05 3.8359e-08 2.52836e-05 2.19356e-09 2.53854e-05 -1.5457e-07 2.54709e-05 -3.20511e-07 2.55167e-05 -4.1642e-07 2.55172e-05 -4.36284e-07 2.54941e-05 -4.1507e-07 2.54406e-05 -3.31723e-07 2.54049e-05 -2.82388e-07 2.536e-05 -1.69996e-07 2.53276e-05 -8.59563e-08 2.53314e-05 -2.09256e-08 2.53446e-05 8.17673e-08 2.53925e-05 1.38094e-07 2.54675e-05 1.88739e-07 2.55514e-05 2.08594e-07 2.56299e-05 1.95388e-07 2.57044e-05 1.38119e-07 2.57503e-05 5.20522e-08 2.57909e-05 -8.48744e-08 2.57999e-05 -1.98865e-07 2.58208e-05 -3.52458e-07 2.58223e-05 -4.06248e-07 2.58487e-05 -5.18022e-07 2.58726e-05 -5.38551e-07 2.59013e-05 -5.22252e-07 2.59546e-05 -5.73175e-07 2.59948e-05 -4.98438e-07 2.60601e-05 -5.16272e-07 2.61051e-05 -4.84783e-07 2.61763e-05 -4.52026e-07 2.62368e-05 -4.72395e-07 2.63039e-05 -4.28215e-07 2.63714e-05 -4.00106e-07 2.64431e-05 -4.44105e-07 2.65233e-05 -3.48361e-07 2.65861e-05 -3.5632e-07 2.66811e-05 -3.41452e-07 2.67612e-05 -2.38228e-07 2.68595e-05 -2.83543e-07 2.69943e-05 -2.13655e-07 2.71258e-05 -2.01287e-07 2.7293e-05 -2.53689e-07 2.74861e-05 -2.7511e-07 2.76727e-05 -3.77761e-07 2.78692e-05 -5.08866e-07 2.80684e-05 -7.0316e-07 2.82322e-05 -9.34048e-07 2.83741e-05 -1.19598e-06 2.84985e-05 -1.51198e-06 2.85146e-05 -1.77556e-06 2.85443e-05 -2.1156e-06 2.84349e-05 -2.321e-06 2.83104e-05 -2.48818e-06 2.81547e-05 -2.62899e-06 2.78989e-05 -2.529e-06 2.77006e-05 -2.44209e-06 2.74404e-05 -2.14119e-06 2.72713e-05 -1.7244e-06 2.71648e-05 -1.23679e-06 2.71254e-05 -6.04428e-07 2.72313e-05 2.71901e-08 2.73845e-05 7.11659e-07 2.76434e-05 1.26039e-06 2.79525e-05 1.70552e-06 2.82608e-05 1.99168e-06 2.86154e-05 2.08449e-06 2.89816e-05 2.14132e-06 2.9388e-05 1.94525e-06 2.98206e-05 1.72703e-06 3.02625e-05 1.32474e-06 3.06477e-05 8.01852e-07 3.10645e-05 2.36688e-07 3.14557e-05 -5.43697e-07 3.18058e-05 -1.26295e-06 3.21866e-05 -2.04178e-06 3.25068e-05 -2.86755e-06 3.28224e-05 -3.65882e-06 3.31007e-05 -4.41377e-06 3.33209e-05 -5.18691e-06 3.35222e-05 -5.88577e-06 3.36064e-05 -6.52787e-06 3.36286e-05 -7.16126e-06 3.35714e-05 -7.7312e-06 3.34157e-05 -8.20226e-06 3.31185e-05 -8.56419e-06 3.2739e-05 -8.90899e-06 3.22914e-05 -9.12436e-06 3.18282e-05 -9.33581e-06 3.13172e-05 -9.45711e-06 3.07866e-05 -9.46981e-06 3.02993e-05 -9.49102e-06 2.97984e-05 -9.39337e-06 2.94069e-05 -9.37548e-06 2.91172e-05 -9.38936e-06 2.88536e-05 -9.34893e-06 2.86737e-05 -9.3968e-06 2.85571e-05 -9.41018e-06 2.84387e-05 -9.46302e-06 2.84544e-05 -9.54516e-06 2.85509e-05 -9.73286e-06 2.8753e-05 -1.00457e-05 2.9121e-05 -1.02548e-05 2.9627e-05 -1.07315e-05 3.02393e-05 -1.09135e-05 3.09097e-05 -1.09085e-05 3.16367e-05 -1.06775e-05 3.2284e-05 -1.00228e-05 3.29632e-05 -9.18251e-06 3.35756e-05 -7.91644e-06 3.41686e-05 -6.67788e-06 3.47727e-05 -5.10866e-06 3.52606e-05 -3.64499e-06 3.57924e-05 -1.90323e-06 3.6312e-05 -3.70921e-07 3.66143e-05 1.41673e-06 3.69834e-05 3.19885e-06 3.71679e-05 4.52321e-06 3.72853e-05 6.10866e-06 3.72437e-05 7.37485e-06 3.70974e-05 8.22008e-06 3.67713e-05 9.41641e-06 3.62698e-05 9.95031e-06 3.56635e-05 1.04874e-05 3.48402e-05 1.09955e-05 3.39267e-05 1.08431e-05 3.29612e-05 1.07948e-05 3.19485e-05 1.03899e-05 3.10072e-05 9.49396e-06 3.01039e-05 8.80862e-06 2.93456e-05 7.68618e-06 2.86196e-05 6.48601e-06 2.79364e-05 5.52803e-06 2.72415e-05 4.34088e-06 2.65406e-05 3.17682e-06 2.57288e-05 2.32505e-06 2.49179e-05 1.18389e-06 2.40296e-05 4.03638e-07 2.32097e-05 -6.72062e-07 2.23468e-05 -1.31745e-06 2.15295e-05 -1.29595e-06 2.04637e-05 -1.88276e-06 1.96016e-05 -2.62521e-06 1.87588e-05 -1.96786e-06 1.84009e-05 -1.44702e-06 1.77639e-05 -2.02053e-06 1.72495e-05 -2.85613e-06 1.70292e-05 -3.50515e-06 1.71062e-05 -2.1066e-06 1.73037e-05 -9.51523e-07 1.76342e-05 -1.59057e-06 1.74917e-05 -2.35557e-06 1.80029e-05 -4.8078e-06 1.72918e-05 -5.74679e-06 1.75025e-05 -6.22951e-06 1.75799e-05 -5.42812e-06 1.65833e-05 -1.01296e-06 1.68977e-05 -2.22283e-06 1.63931e-05 -2.39429e-06 1.59361e-05 -2.68323e-06 1.69586e-05 -7.56277e-06 1.8088e-05 -1.46567e-05 1.80023e-05 -1.95254e-05 1.78225e-05 -2.31672e-05 1.82179e-05 -2.47243e-05 1.84574e-05 -2.42318e-05 1.84337e-05 -2.24158e-05 1.813e-05 -1.94687e-05 1.81401e-05 -1.61414e-05 1.78762e-05 -1.23752e-05 1.79208e-05 -7.55575e-06 1.7604e-05 -1.9459e-06 1.78881e-05 2.42177e-06 1.81675e-05 7.16862e-06 1.90577e-05 1.06795e-05 1.92095e-05 1.36437e-05 1.95446e-05 1.47095e-05 2.13342e-05 1.76396e-05 2.24439e-05 2.38492e-05 2.3649e-05 2.89739e-05 2.49859e-05 3.33566e-05 2.39762e-05 3.61656e-05 2.16473e-05 3.41815e-05 2.07462e-05 3.00612e-05 1.87745e-05 2.77411e-05 1.71277e-05 2.26568e-05 1.6566e-05 2.07777e-05 1.67761e-05 1.65696e-05 1.57172e-05 1.74249e-05 1.69145e-05 1.21753e-05 1.63319e-05 1.51067e-05 1.65089e-05 9.63497e-06 1.67824e-05 1.23975e-05 1.62666e-05 8.12925e-06 1.68725e-05 9.41558e-06 1.61056e-05 6.53659e-06 1.66276e-05 6.44974e-06 1.6627e-05 4.17584e-06 4.40388e-06 1.69413e-05 2.86941e-05 -5.0422e-08 2.88829e-05 -1.50518e-07 2.91573e-05 -2.72162e-07 2.93763e-05 -3.73534e-07 2.94928e-05 -4.37067e-07 2.95164e-05 -4.39968e-07 2.94822e-05 -4.02104e-07 2.94359e-05 -3.68817e-07 2.93635e-05 -2.59304e-07 2.93126e-05 -2.31509e-07 2.92788e-05 -1.36142e-07 2.92651e-05 -7.22768e-08 2.9273e-05 -2.88146e-08 2.93042e-05 5.05285e-08 2.93512e-05 9.11543e-08 2.94174e-05 1.22461e-07 2.95005e-05 1.255e-07 2.95638e-05 1.3212e-07 2.96372e-05 6.47156e-08 2.96742e-05 1.50039e-08 2.96882e-05 -9.88156e-08 2.96845e-05 -1.95143e-07 2.96685e-05 -3.36472e-07 2.96453e-05 -3.83064e-07 2.96455e-05 -5.18181e-07 2.96443e-05 -5.37358e-07 2.96578e-05 -5.35778e-07 2.96956e-05 -6.10949e-07 2.97052e-05 -5.08052e-07 2.97569e-05 -5.68046e-07 2.97663e-05 -4.94166e-07 2.97832e-05 -4.68942e-07 2.98376e-05 -5.2672e-07 2.982e-05 -4.10641e-07 2.98966e-05 -4.76724e-07 2.99257e-05 -4.73206e-07 2.99826e-05 -4.05197e-07 3.0062e-05 -4.35781e-07 3.01141e-05 -3.93577e-07 3.02057e-05 -3.29738e-07 3.02736e-05 -3.51529e-07 3.03605e-05 -3.005e-07 3.04716e-05 -3.12419e-07 3.05788e-05 -3.60834e-07 3.07056e-05 -4.01994e-07 3.08567e-05 -5.28845e-07 3.09706e-05 -6.22783e-07 3.11225e-05 -8.55003e-07 3.12072e-05 -1.01874e-06 3.12754e-05 -1.26417e-06 3.1309e-05 -1.5456e-06 3.125e-05 -1.71662e-06 3.11648e-05 -2.03036e-06 3.09968e-05 -2.153e-06 3.07822e-05 -2.27357e-06 3.05541e-05 -2.40092e-06 3.02662e-05 -2.24107e-06 3.00266e-05 -2.20255e-06 2.97951e-05 -1.90967e-06 2.9614e-05 -1.54331e-06 2.95454e-05 -1.16813e-06 2.94965e-05 -5.55589e-07 2.96057e-05 -8.1959e-08 2.97831e-05 5.34277e-07 3.00239e-05 1.01956e-06 3.03645e-05 1.36492e-06 3.07073e-05 1.64884e-06 3.10709e-05 1.72093e-06 3.14968e-05 1.71542e-06 3.18801e-05 1.56198e-06 3.23089e-05 1.29825e-06 3.27217e-05 9.11934e-07 3.30859e-05 4.37643e-07 3.34582e-05 -1.35669e-07 3.37458e-05 -8.31258e-07 3.40091e-05 -1.52626e-06 3.42209e-05 -2.25355e-06 3.43624e-05 -3.00912e-06 3.44532e-05 -3.74963e-06 3.44711e-05 -4.43163e-06 3.43942e-05 -5.11006e-06 3.42837e-05 -5.7752e-06 3.40833e-05 -6.32753e-06 3.38061e-05 -6.88406e-06 3.3446e-05 -7.37106e-06 3.301e-05 -7.76622e-06 3.25324e-05 -8.08659e-06 3.20011e-05 -8.37768e-06 3.15402e-05 -8.66351e-06 3.11036e-05 -8.89916e-06 3.06225e-05 -8.97603e-06 3.02436e-05 -9.0909e-06 2.98498e-05 -9.09723e-06 2.9554e-05 -9.09763e-06 2.93475e-05 -9.16894e-06 2.9151e-05 -9.19282e-06 2.89889e-05 -9.18684e-06 2.88139e-05 -9.22181e-06 2.86578e-05 -9.25408e-06 2.84792e-05 -9.28438e-06 2.83721e-05 -9.43813e-06 2.8293e-05 -9.65373e-06 2.83032e-05 -1.0056e-05 2.84857e-05 -1.04373e-05 2.8719e-05 -1.09649e-05 2.90301e-05 -1.12245e-05 2.93904e-05 -1.12689e-05 2.97273e-05 -1.10143e-05 3.00684e-05 -1.03639e-05 3.04608e-05 -9.57496e-06 3.0969e-05 -8.42459e-06 3.14064e-05 -7.11532e-06 3.19804e-05 -5.68264e-06 3.24729e-05 -4.13753e-06 3.3014e-05 -2.44424e-06 3.34993e-05 -8.56228e-07 3.39826e-05 9.33418e-07 3.44553e-05 2.72615e-06 3.48068e-05 4.1717e-06 3.51868e-05 5.72866e-06 3.54822e-05 7.07941e-06 3.56632e-05 8.03908e-06 3.56957e-05 9.38393e-06 3.55788e-05 1.00672e-05 3.52098e-05 1.08563e-05 3.45723e-05 1.1633e-05 3.37637e-05 1.16517e-05 3.27603e-05 1.17983e-05 3.16299e-05 1.15202e-05 3.04874e-05 1.06364e-05 2.93638e-05 9.93223e-06 2.83746e-05 8.67539e-06 2.74284e-05 7.43228e-06 2.6651e-05 6.30534e-06 2.58881e-05 5.10383e-06 2.50723e-05 3.99264e-06 2.42806e-05 3.11676e-06 2.35711e-05 1.89331e-06 2.28333e-05 1.14146e-06 2.20199e-05 1.41372e-07 2.1229e-05 -5.26519e-07 2.0446e-05 -5.12946e-07 1.96211e-05 -1.05794e-06 1.91006e-05 -2.10463e-06 1.84646e-05 -1.33189e-06 1.83119e-05 -1.29435e-06 1.76219e-05 -1.33051e-06 1.72974e-05 -2.5316e-06 1.71316e-05 -3.3394e-06 1.71639e-05 -2.13892e-06 1.75205e-05 -1.30805e-06 1.76338e-05 -1.70393e-06 1.79335e-05 -2.65525e-06 1.79679e-05 -4.84215e-06 1.73106e-05 -5.08953e-06 1.77686e-05 -6.68755e-06 1.68622e-05 -4.52172e-06 1.6469e-05 -6.19787e-07 1.64245e-05 -2.17828e-06 1.54306e-05 -1.40035e-06 1.53947e-05 -2.64733e-06 1.67334e-05 -8.90151e-06 1.68886e-05 -1.4812e-05 1.62734e-05 -1.89101e-05 1.64158e-05 -2.33097e-05 1.65674e-05 -2.48759e-05 1.6794e-05 -2.44584e-05 1.6729e-05 -2.23509e-05 1.6256e-05 -1.89956e-05 1.58919e-05 -1.57773e-05 1.5345e-05 -1.18283e-05 1.50995e-05 -7.31029e-06 1.5018e-05 -1.86433e-06 1.55249e-05 1.91483e-06 1.6305e-05 6.38849e-06 1.6943e-05 1.00415e-05 1.84272e-05 1.21595e-05 1.85882e-05 1.45485e-05 1.99454e-05 1.62824e-05 2.19149e-05 2.18798e-05 2.26355e-05 2.82533e-05 2.39955e-05 3.19966e-05 2.47522e-05 3.54089e-05 2.30893e-05 3.58443e-05 2.17512e-05 3.13993e-05 2.06107e-05 2.88817e-05 1.95596e-05 2.37078e-05 1.79767e-05 2.23606e-05 1.86148e-05 1.59316e-05 1.77189e-05 1.83208e-05 1.76803e-05 1.22139e-05 1.79471e-05 1.48399e-05 1.75167e-05 1.00653e-05 1.83301e-05 1.15841e-05 1.78242e-05 8.63514e-06 1.84245e-05 8.8153e-06 1.825e-05 6.7111e-06 1.83945e-05 6.30521e-06 1.83864e-05 4.18392e-06 4.15489e-06 1.86354e-05 3.02844e-05 -1.30523e-07 3.06291e-05 -4.95263e-07 3.10081e-05 -6.51136e-07 3.12923e-05 -6.57715e-07 3.14412e-05 -5.85955e-07 3.14471e-05 -4.45907e-07 3.14058e-05 -3.60754e-07 3.13114e-05 -2.74476e-07 3.12387e-05 -1.86617e-07 3.1192e-05 -1.84817e-07 3.11556e-05 -9.96559e-08 3.11675e-05 -8.41676e-08 3.11812e-05 -4.25768e-08 3.12332e-05 -1.41751e-09 3.1297e-05 2.73215e-08 3.13651e-05 5.43122e-08 3.14532e-05 3.74303e-08 3.15184e-05 6.69338e-08 3.15845e-05 -1.41574e-09 3.1644e-05 -4.44256e-08 3.16477e-05 -1.02544e-07 3.16667e-05 -2.14202e-07 3.16412e-05 -3.10931e-07 3.16017e-05 -3.43514e-07 3.15829e-05 -4.99396e-07 3.15384e-05 -4.92894e-07 3.15277e-05 -5.25065e-07 3.15342e-05 -6.17468e-07 3.15382e-05 -5.12088e-07 3.1566e-05 -5.95818e-07 3.15906e-05 -5.18736e-07 3.15919e-05 -4.70282e-07 3.16076e-05 -5.4234e-07 3.15955e-05 -3.9854e-07 3.16053e-05 -4.86579e-07 3.16147e-05 -4.82605e-07 3.16366e-05 -4.27085e-07 3.16933e-05 -4.92537e-07 3.17295e-05 -4.2968e-07 3.18179e-05 -4.18189e-07 3.18697e-05 -4.03306e-07 3.19426e-05 -3.73431e-07 3.20296e-05 -3.9944e-07 3.20872e-05 -4.18376e-07 3.21719e-05 -4.86717e-07 3.22461e-05 -6.03069e-07 3.23166e-05 -6.93287e-07 3.23779e-05 -9.16264e-07 3.24205e-05 -1.06139e-06 3.24254e-05 -1.26908e-06 3.23852e-05 -1.50532e-06 3.22984e-05 -1.62991e-06 3.21407e-05 -1.8726e-06 3.19294e-05 -1.94173e-06 3.16883e-05 -2.03246e-06 3.13842e-05 -2.09684e-06 3.11052e-05 -1.96203e-06 3.08175e-05 -1.91482e-06 3.05888e-05 -1.68097e-06 3.03936e-05 -1.34814e-06 3.03043e-05 -1.07879e-06 3.03011e-05 -5.52373e-07 3.03608e-05 -1.41673e-07 3.05864e-05 3.08642e-07 3.08257e-05 7.80265e-07 3.11506e-05 1.03999e-06 3.1527e-05 1.27249e-06 3.18729e-05 1.37504e-06 3.22877e-05 1.30057e-06 3.26828e-05 1.1669e-06 3.30681e-05 9.12974e-07 3.3437e-05 5.43035e-07 3.37876e-05 8.7039e-08 3.40633e-05 -4.11434e-07 3.42708e-05 -1.03874e-06 3.44449e-05 -1.70038e-06 3.45241e-05 -2.33267e-06 3.45142e-05 -2.99928e-06 3.44426e-05 -3.67801e-06 3.42989e-05 -4.28794e-06 3.40941e-05 -4.90523e-06 3.38283e-05 -5.50939e-06 3.35544e-05 -6.05365e-06 3.31799e-05 -6.50961e-06 3.27245e-05 -6.91564e-06 3.22793e-05 -7.32098e-06 3.18315e-05 -7.63884e-06 3.1455e-05 -8.0012e-06 3.11444e-05 -8.35289e-06 3.08095e-05 -8.56424e-06 3.0514e-05 -8.68058e-06 3.02568e-05 -8.83365e-06 3.00359e-05 -8.87636e-06 2.98708e-05 -8.93249e-06 2.96926e-05 -8.99074e-06 2.9479e-05 -8.9793e-06 2.92383e-05 -8.94612e-06 2.89155e-05 -8.89901e-06 2.85565e-05 -8.895e-06 2.81986e-05 -8.92649e-06 2.78168e-05 -9.05634e-06 2.7445e-05 -9.28196e-06 2.71483e-05 -9.75927e-06 2.69666e-05 -1.02555e-05 2.67812e-05 -1.07795e-05 2.65893e-05 -1.10325e-05 2.63929e-05 -1.10725e-05 2.6335e-05 -1.09564e-05 2.65166e-05 -1.05454e-05 2.68741e-05 -9.93245e-06 2.73824e-05 -8.9329e-06 2.78923e-05 -7.62522e-06 2.8532e-05 -6.32239e-06 2.90721e-05 -4.67762e-06 2.96376e-05 -3.00976e-06 3.01001e-05 -1.31869e-06 3.06103e-05 4.23144e-07 3.10203e-05 2.3162e-06 3.13946e-05 3.79735e-06 3.18051e-05 5.31818e-06 3.23522e-05 6.53237e-06 3.28439e-05 7.54734e-06 3.32825e-05 8.94535e-06 3.36307e-05 9.71904e-06 3.36701e-05 1.08169e-05 3.349e-05 1.18131e-05 3.3014e-05 1.21277e-05 3.21565e-05 1.26558e-05 3.1168e-05 1.25087e-05 2.99987e-05 1.18057e-05 2.88073e-05 1.11237e-05 2.76667e-05 9.81593e-06 2.65196e-05 8.57945e-06 2.55056e-05 7.31934e-06 2.4752e-05 5.85743e-06 2.39546e-05 4.79e-06 2.31943e-05 3.87703e-06 2.2424e-05 2.66363e-06 2.1742e-05 1.82351e-06 2.10756e-05 8.07758e-07 2.04851e-05 6.39698e-08 1.96539e-05 3.18274e-07 1.9001e-05 -4.05107e-07 1.85244e-05 -1.62803e-06 1.81984e-05 -1.00581e-06 1.82098e-05 -1.30576e-06 1.77593e-05 -8.80047e-07 1.75662e-05 -2.33853e-06 1.73382e-05 -3.1114e-06 1.73575e-05 -2.15824e-06 1.76357e-05 -1.58623e-06 1.76034e-05 -1.67158e-06 1.81334e-05 -3.18528e-06 1.75764e-05 -4.28515e-06 1.73881e-05 -4.9012e-06 1.74543e-05 -6.75372e-06 1.62299e-05 -3.2974e-06 1.63013e-05 -6.91171e-07 1.58088e-05 -1.68578e-06 1.46469e-05 -2.38465e-07 1.53029e-05 -3.30331e-06 1.59493e-05 -9.54785e-06 1.52584e-05 -1.41211e-05 1.54362e-05 -1.90879e-05 1.54185e-05 -2.3292e-05 1.49471e-05 -2.44044e-05 1.50751e-05 -2.45864e-05 1.45806e-05 -2.18564e-05 1.40823e-05 -1.84973e-05 1.31224e-05 -1.48174e-05 1.23962e-05 -1.11022e-05 1.18287e-05 -6.74276e-06 1.22657e-05 -2.3013e-06 1.24637e-05 1.71684e-06 1.43318e-05 4.52032e-06 1.50878e-05 9.28549e-06 1.63e-05 1.09472e-05 1.77392e-05 1.31094e-05 1.83752e-05 1.56463e-05 2.08822e-05 1.93728e-05 2.22851e-05 2.68503e-05 2.2903e-05 3.13787e-05 2.41372e-05 3.41748e-05 2.38294e-05 3.61521e-05 2.2621e-05 3.26078e-05 2.09754e-05 3.05272e-05 2.07707e-05 2.39125e-05 1.938e-05 2.37513e-05 1.8846e-05 1.64656e-05 1.86677e-05 1.84991e-05 1.82006e-05 1.26811e-05 1.89558e-05 1.40847e-05 1.85691e-05 1.0452e-05 1.92652e-05 1.0888e-05 1.92242e-05 8.67613e-06 1.97856e-05 8.25398e-06 1.98569e-05 6.63974e-06 2.03324e-05 5.82969e-06 2.02545e-05 4.2619e-06 4.05775e-06 2.03516e-05 3.03819e-05 -4.28499e-07 3.09911e-05 -1.10438e-06 3.14745e-05 -1.1346e-06 3.16887e-05 -8.719e-07 3.17763e-05 -6.73511e-07 3.17575e-05 -4.27128e-07 3.17008e-05 -3.04029e-07 3.16012e-05 -1.74914e-07 3.15398e-05 -1.25219e-07 3.14838e-05 -1.28824e-07 3.14609e-05 -7.67069e-08 3.14936e-05 -1.16882e-07 3.15317e-05 -8.06864e-08 3.16134e-05 -8.31309e-08 3.17149e-05 -7.42014e-08 3.17876e-05 -1.83923e-08 3.18625e-05 -3.74267e-08 3.19142e-05 1.51719e-08 3.19313e-05 -1.84346e-08 3.19714e-05 -8.45426e-08 3.19602e-05 -9.1389e-08 3.20014e-05 -2.5539e-07 3.1966e-05 -2.75536e-07 3.1973e-05 -3.5052e-07 3.19435e-05 -4.69844e-07 3.18864e-05 -4.3584e-07 3.18876e-05 -5.2627e-07 3.18425e-05 -5.72335e-07 3.18423e-05 -5.11878e-07 3.18375e-05 -5.9102e-07 3.18513e-05 -5.3258e-07 3.18509e-05 -4.69903e-07 3.18401e-05 -5.31462e-07 3.18667e-05 -4.25162e-07 3.18444e-05 -4.64246e-07 3.18605e-05 -4.98709e-07 3.18685e-05 -4.35095e-07 3.1878e-05 -5.02103e-07 3.19096e-05 -4.61218e-07 3.19341e-05 -4.42726e-07 3.19984e-05 -4.67579e-07 3.2054e-05 -4.29031e-07 3.21261e-05 -4.71511e-07 3.22066e-05 -4.9887e-07 3.22611e-05 -5.41289e-07 3.23111e-05 -6.53007e-07 3.23559e-05 -7.38102e-07 3.23506e-05 -9.11015e-07 3.23581e-05 -1.06884e-06 3.23034e-05 -1.21442e-06 3.22283e-05 -1.43017e-06 3.21268e-05 -1.5284e-06 3.19348e-05 -1.68066e-06 3.1757e-05 -1.76388e-06 3.15186e-05 -1.7941e-06 3.12587e-05 -1.83689e-06 3.10289e-05 -1.73225e-06 3.0778e-05 -1.66394e-06 3.05709e-05 -1.47387e-06 3.04104e-05 -1.18762e-06 3.02791e-05 -9.47539e-07 3.02998e-05 -5.73039e-07 3.03257e-05 -1.67624e-07 3.0495e-05 1.39349e-07 3.0741e-05 5.34277e-07 3.09848e-05 7.96157e-07 3.1317e-05 9.40342e-07 3.16455e-05 1.04653e-06 3.19999e-05 9.46157e-07 3.23997e-05 7.67124e-07 3.27606e-05 5.52046e-07 3.31053e-05 1.98396e-07 3.34009e-05 -2.08619e-07 3.36394e-05 -6.49949e-07 3.37481e-05 -1.14739e-06 3.38067e-05 -1.75902e-06 3.37793e-05 -2.30528e-06 3.36898e-05 -2.90976e-06 3.35579e-05 -3.54612e-06 3.34334e-05 -4.16341e-06 3.32904e-05 -4.76226e-06 3.30956e-05 -5.3146e-06 3.28753e-05 -5.83336e-06 3.25615e-05 -6.19575e-06 3.22283e-05 -6.58241e-06 3.19244e-05 -7.01712e-06 3.16692e-05 -7.38367e-06 3.14502e-05 -7.78214e-06 3.12108e-05 -8.11354e-06 3.09466e-05 -8.30005e-06 3.07122e-05 -8.44617e-06 3.04533e-05 -8.5747e-06 3.02466e-05 -8.66968e-06 2.99908e-05 -8.67665e-06 2.9678e-05 -8.67801e-06 2.93419e-05 -8.64314e-06 2.89214e-05 -8.52564e-06 2.84347e-05 -8.41233e-06 2.78872e-05 -8.34751e-06 2.7296e-05 -8.33528e-06 2.6595e-05 -8.35536e-06 2.58625e-05 -8.54942e-06 2.52091e-05 -9.10588e-06 2.4504e-05 -9.55047e-06 2.35583e-05 -9.83377e-06 2.26158e-05 -1.009e-05 2.20985e-05 -1.05552e-05 2.22208e-05 -1.10788e-05 2.27747e-05 -1.10994e-05 2.35195e-05 -1.06772e-05 2.42921e-05 -9.70549e-06 2.50073e-05 -8.34043e-06 2.56764e-05 -6.99151e-06 2.62366e-05 -5.23779e-06 2.67644e-05 -3.53758e-06 2.72697e-05 -1.82402e-06 2.7643e-05 4.98177e-08 2.77886e-05 2.17065e-06 2.79399e-05 3.64605e-06 2.81727e-05 5.08537e-06 2.85345e-05 6.17056e-06 2.90414e-05 7.04049e-06 2.98119e-05 8.17485e-06 3.05033e-05 9.02756e-06 3.09789e-05 1.03413e-05 3.1296e-05 1.1496e-05 3.12614e-05 1.21623e-05 3.0795e-05 1.31222e-05 3.01174e-05 1.31863e-05 2.91121e-05 1.2811e-05 2.80198e-05 1.22159e-05 2.68919e-05 1.09439e-05 2.5768e-05 9.70333e-06 2.46907e-05 8.3966e-06 2.38046e-05 6.74359e-06 2.29586e-05 5.63593e-06 2.2325e-05 4.51073e-06 2.16839e-05 3.30469e-06 2.09585e-05 2.54892e-06 2.03359e-05 1.43038e-06 1.98856e-05 5.14219e-07 1.92323e-05 9.71624e-07 1.88215e-05 5.63002e-09 1.83378e-05 -1.14425e-06 1.82503e-05 -9.18334e-07 1.81901e-05 -1.24559e-06 1.80311e-05 -7.20995e-07 1.78419e-05 -2.14937e-06 1.75186e-05 -2.78805e-06 1.74696e-05 -2.10925e-06 1.74936e-05 -1.61032e-06 1.75269e-05 -1.70485e-06 1.78207e-05 -3.47902e-06 1.70649e-05 -3.52937e-06 1.70566e-05 -4.8929e-06 1.66786e-05 -6.37575e-06 1.58213e-05 -2.4401e-06 1.60661e-05 -9.35914e-07 1.50568e-05 -6.76533e-07 1.42648e-05 5.53576e-07 1.52129e-05 -4.25144e-06 1.46712e-05 -9.0062e-06 1.4496e-05 -1.39459e-05 1.50947e-05 -1.96865e-05 1.42649e-05 -2.24623e-05 1.37733e-05 -2.39128e-05 1.32856e-05 -2.40987e-05 1.22741e-05 -2.08449e-05 1.14201e-05 -1.76433e-05 1.01764e-05 -1.35737e-05 9.3947e-06 -1.03205e-05 8.60557e-06 -5.95363e-06 9.45983e-06 -3.15557e-06 9.96207e-06 1.2146e-06 1.11174e-05 3.36499e-06 1.36764e-05 6.72646e-06 1.44502e-05 1.01734e-05 1.66903e-05 1.08694e-05 1.72169e-05 1.51197e-05 1.8694e-05 1.78957e-05 2.12904e-05 2.42539e-05 2.21042e-05 3.05649e-05 2.33103e-05 3.29687e-05 2.38387e-05 3.56237e-05 2.39049e-05 3.25415e-05 2.22085e-05 3.22237e-05 2.15745e-05 2.45464e-05 2.07715e-05 2.45543e-05 1.96335e-05 1.76036e-05 1.9785e-05 1.83476e-05 1.91785e-05 1.32877e-05 1.97786e-05 1.34846e-05 1.97809e-05 1.04498e-05 2.04668e-05 1.02021e-05 2.03707e-05 8.77222e-06 2.10228e-05 7.60186e-06 2.11317e-05 6.53087e-06 2.17978e-05 5.16353e-06 2.20232e-05 4.03658e-06 3.73756e-06 2.23433e-05 3.25288e-05 -1.58336e-07 3.19975e-05 -5.73047e-07 3.16168e-05 -7.53879e-07 3.15158e-05 -7.70979e-07 3.1463e-05 -6.20663e-07 3.14382e-05 -4.0236e-07 3.14344e-05 -3.00253e-07 3.13932e-05 -1.33712e-07 3.13999e-05 -1.31881e-07 3.13622e-05 -9.10902e-08 3.13864e-05 -1.00977e-07 3.13952e-05 -1.25683e-07 3.14207e-05 -1.06101e-07 3.1462e-05 -1.24458e-07 3.14921e-05 -1.04276e-07 3.15522e-05 -7.84917e-08 3.15951e-05 -8.03643e-08 3.16709e-05 -6.06226e-08 3.17172e-05 -6.47297e-08 3.17762e-05 -1.4356e-07 3.18031e-05 -1.18322e-07 3.18178e-05 -2.70012e-07 3.18245e-05 -2.82311e-07 3.18218e-05 -3.47788e-07 3.18107e-05 -4.58712e-07 3.17989e-05 -4.24111e-07 3.17901e-05 -5.17386e-07 3.17371e-05 -5.19402e-07 3.17267e-05 -5.01448e-07 3.16838e-05 -5.48126e-07 3.16776e-05 -5.26348e-07 3.16936e-05 -4.85907e-07 3.16992e-05 -5.37062e-07 3.17375e-05 -4.63452e-07 3.17318e-05 -4.58557e-07 3.17379e-05 -5.04869e-07 3.1692e-05 -3.89178e-07 3.16702e-05 -4.8029e-07 3.16766e-05 -4.67599e-07 3.16608e-05 -4.26955e-07 3.1746e-05 -5.52789e-07 3.18161e-05 -4.99115e-07 3.19094e-05 -5.64762e-07 3.20178e-05 -6.07368e-07 3.20724e-05 -5.9581e-07 3.21354e-05 -7.16059e-07 3.21298e-05 -7.32461e-07 3.21048e-05 -8.86006e-07 3.20471e-05 -1.01113e-06 3.1971e-05 -1.1384e-06 3.18602e-05 -1.31935e-06 3.17587e-05 -1.42684e-06 3.16234e-05 -1.54535e-06 3.14813e-05 -1.62183e-06 3.13266e-05 -1.63938e-06 3.11436e-05 -1.65392e-06 3.09727e-05 -1.56132e-06 3.07595e-05 -1.45072e-06 3.05961e-05 -1.31048e-06 3.04539e-05 -1.0454e-06 3.03595e-05 -8.5314e-07 3.03536e-05 -5.67157e-07 3.04089e-05 -2.2297e-07 3.05187e-05 2.96213e-08 3.0698e-05 3.54896e-07 3.0912e-05 5.82228e-07 3.11603e-05 6.91999e-07 3.14607e-05 7.46127e-07 3.17507e-05 6.56118e-07 3.20913e-05 4.26541e-07 3.24337e-05 2.09667e-07 3.26949e-05 -6.28003e-08 3.29335e-05 -4.47239e-07 3.30808e-05 -7.97215e-07 3.31461e-05 -1.21272e-06 3.31266e-05 -1.73947e-06 3.31126e-05 -2.29132e-06 3.30723e-05 -2.86943e-06 3.30402e-05 -3.51406e-06 3.30068e-05 -4.12992e-06 3.29139e-05 -4.66944e-06 3.27439e-05 -5.14453e-06 3.24937e-05 -5.58319e-06 3.22421e-05 -5.94419e-06 3.20226e-05 -6.36285e-06 3.18272e-05 -6.82173e-06 3.16603e-05 -7.2168e-06 3.14234e-05 -7.5452e-06 3.11237e-05 -7.81393e-06 3.0829e-05 -8.00529e-06 3.05635e-05 -8.1807e-06 3.03124e-05 -8.32362e-06 3.00204e-05 -8.37766e-06 2.97356e-05 -8.39182e-06 2.93608e-05 -8.30324e-06 2.89338e-05 -8.21616e-06 2.84112e-05 -8.00298e-06 2.77669e-05 -7.76804e-06 2.70265e-05 -7.60709e-06 2.60727e-05 -7.38148e-06 2.48975e-05 -7.18022e-06 2.37446e-05 -7.39649e-06 2.24089e-05 -7.77021e-06 2.04631e-05 -7.60468e-06 1.84856e-05 -7.8562e-06 1.75726e-05 -9.17706e-06 1.78959e-05 -1.08786e-05 1.88636e-05 -1.20464e-05 1.99475e-05 -1.21833e-05 2.09007e-05 -1.16304e-05 2.1651e-05 -1.04558e-05 2.23075e-05 -8.99696e-06 2.27521e-05 -7.43608e-06 2.33001e-05 -5.78576e-06 2.38472e-05 -4.08465e-06 2.43808e-05 -2.3577e-06 2.4822e-05 -3.91355e-07 2.50896e-05 1.9031e-06 2.49892e-05 3.7464e-06 2.49016e-05 5.17298e-06 2.50537e-05 6.01848e-06 2.53303e-05 6.76392e-06 2.59047e-05 7.60037e-06 2.67063e-05 8.22602e-06 2.75336e-05 9.51397e-06 2.81639e-05 1.08657e-05 2.85255e-05 1.18007e-05 2.85702e-05 1.30774e-05 2.82916e-05 1.3465e-05 2.75962e-05 1.35064e-05 2.67167e-05 1.30954e-05 2.58033e-05 1.18572e-05 2.48573e-05 1.06494e-05 2.38829e-05 9.37095e-06 2.29702e-05 7.65629e-06 2.22193e-05 6.38682e-06 2.15698e-05 5.16029e-06 2.09296e-05 3.94482e-06 2.02955e-05 3.18308e-06 1.98838e-05 1.84206e-06 1.94919e-05 9.06114e-07 1.90667e-05 1.3968e-06 1.88932e-05 1.792e-07 1.84449e-05 -6.95973e-07 1.83783e-05 -8.51716e-07 1.81053e-05 -9.72639e-07 1.80486e-05 -6.64289e-07 1.7874e-05 -1.97479e-06 1.74712e-05 -2.38525e-06 1.73377e-05 -1.97573e-06 1.71809e-05 -1.45351e-06 1.74312e-05 -1.95518e-06 1.74625e-05 -3.51031e-06 1.68645e-05 -2.93137e-06 1.67807e-05 -4.80907e-06 1.59258e-05 -5.52083e-06 1.5566e-05 -2.08031e-06 1.58685e-05 -1.23845e-06 1.44805e-05 7.11459e-07 1.44625e-05 5.71636e-07 1.46096e-05 -4.39862e-06 1.38725e-05 -8.26906e-06 1.45381e-05 -1.46115e-05 1.4321e-05 -1.94695e-05 1.3184e-05 -2.13253e-05 1.27013e-05 -2.343e-05 1.12985e-05 -2.2696e-05 1.00067e-05 -1.9553e-05 8.72277e-06 -1.63593e-05 7.38482e-06 -1.22357e-05 6.39772e-06 -9.3334e-06 6.30175e-06 -5.85766e-06 6.37782e-06 -3.23164e-06 8.37668e-06 -7.84258e-07 8.64311e-06 3.09856e-06 1.10817e-05 4.28786e-06 1.23322e-05 8.92293e-06 1.40013e-05 9.20027e-06 1.64488e-05 1.26723e-05 1.71732e-05 1.71712e-05 1.98666e-05 2.15605e-05 2.11481e-05 2.92835e-05 2.24541e-05 3.16627e-05 2.29243e-05 3.51536e-05 2.38673e-05 3.15985e-05 2.32476e-05 3.28433e-05 2.23709e-05 2.54232e-05 2.18782e-05 2.5047e-05 2.08483e-05 1.86335e-05 2.10561e-05 1.81398e-05 2.06388e-05 1.3705e-05 2.10845e-05 1.30388e-05 2.08292e-05 1.07051e-05 2.15031e-05 9.52812e-06 2.15256e-05 8.74969e-06 2.23298e-05 6.79771e-06 2.26393e-05 6.22138e-06 2.3137e-05 4.66582e-06 2.34038e-05 3.76979e-06 2.98247e-06 2.41589e-05 3.21319e-05 -1.04026e-07 3.18412e-05 -2.82388e-07 3.15783e-05 -4.91009e-07 3.13522e-05 -5.44832e-07 3.12447e-05 -5.13194e-07 3.12534e-05 -4.11055e-07 3.12804e-05 -3.27258e-07 3.13705e-05 -2.23835e-07 3.14104e-05 -1.71766e-07 3.14683e-05 -1.48941e-07 3.14917e-05 -1.24432e-07 3.14763e-05 -1.10253e-07 3.14928e-05 -1.22609e-07 3.14583e-05 -8.99929e-08 3.14722e-05 -1.18095e-07 3.14849e-05 -9.12253e-08 3.14894e-05 -8.49074e-08 3.15415e-05 -1.12717e-07 3.15646e-05 -8.77995e-08 3.15849e-05 -1.6385e-07 3.16231e-05 -1.56564e-07 3.16084e-05 -2.55305e-07 3.16311e-05 -3.0501e-07 3.16291e-05 -3.45774e-07 3.16226e-05 -4.52198e-07 3.16254e-05 -4.26884e-07 3.16163e-05 -5.08305e-07 3.16022e-05 -5.05352e-07 3.15905e-05 -4.89709e-07 3.15919e-05 -5.49489e-07 3.15903e-05 -5.2478e-07 3.16019e-05 -4.97487e-07 3.15956e-05 -5.30829e-07 3.16008e-05 -4.68582e-07 3.15773e-05 -4.35043e-07 3.15634e-05 -4.91037e-07 3.15724e-05 -3.98155e-07 3.157e-05 -4.77861e-07 3.16143e-05 -5.11924e-07 3.16704e-05 -4.83041e-07 3.17039e-05 -5.86332e-07 3.1765e-05 -5.60151e-07 3.18158e-05 -6.15616e-07 3.1832e-05 -6.23512e-07 3.18767e-05 -6.40551e-07 3.18782e-05 -7.17576e-07 3.18831e-05 -7.37359e-07 3.18637e-05 -8.66551e-07 3.18366e-05 -9.84112e-07 3.17869e-05 -1.08861e-06 3.17469e-05 -1.27937e-06 3.16706e-05 -1.35051e-06 3.15806e-05 -1.45541e-06 3.14699e-05 -1.51116e-06 3.13181e-05 -1.48757e-06 3.11441e-05 -1.47987e-06 3.09709e-05 -1.38819e-06 3.07995e-05 -1.27929e-06 3.06625e-05 -1.17346e-06 3.05682e-05 -9.5111e-07 3.05111e-05 -7.96064e-07 3.05011e-05 -5.57117e-07 3.05375e-05 -2.59433e-07 3.06179e-05 -5.07572e-08 3.0756e-05 2.16845e-07 3.09501e-05 3.88138e-07 3.11777e-05 4.64404e-07 3.14528e-05 4.7101e-07 3.17183e-05 3.9062e-07 3.19787e-05 1.66125e-07 3.2222e-05 -3.3616e-08 3.24108e-05 -2.51668e-07 3.25342e-05 -5.70599e-07 3.26389e-05 -9.01866e-07 3.2696e-05 -1.26985e-06 3.27184e-05 -1.76193e-06 3.27491e-05 -2.322e-06 3.2769e-05 -2.88936e-06 3.27439e-05 -3.48894e-06 3.26475e-05 -4.03351e-06 3.25142e-05 -4.53616e-06 3.23042e-05 -4.93453e-06 3.21303e-05 -5.40922e-06 3.1984e-05 -5.79791e-06 3.18814e-05 -6.2603e-06 3.17117e-05 -6.65201e-06 3.14706e-05 -6.97571e-06 3.11823e-05 -7.25689e-06 3.08411e-05 -7.47273e-06 3.06136e-05 -7.77777e-06 3.03288e-05 -7.89593e-06 3.00613e-05 -8.05609e-06 2.97351e-05 -8.05146e-06 2.93626e-05 -8.01929e-06 2.89183e-05 -7.85896e-06 2.8338e-05 -7.6359e-06 2.7623e-05 -7.28793e-06 2.67152e-05 -6.86031e-06 2.5588e-05 -6.4799e-06 2.39489e-05 -5.74235e-06 2.23034e-05 -5.53468e-06 2.04159e-05 -5.50905e-06 1.73356e-05 -4.68987e-06 1.4297e-05 -4.56609e-06 1.31164e-05 -6.67562e-06 1.37224e-05 -9.78308e-06 1.48787e-05 -1.20348e-05 1.58554e-05 -1.30231e-05 1.66148e-05 -1.29427e-05 1.71351e-05 -1.21507e-05 1.7559e-05 -1.08798e-05 1.79629e-05 -9.40085e-06 1.83684e-05 -7.84158e-06 1.89145e-05 -6.33187e-06 1.95706e-05 -4.74077e-06 2.02387e-05 -3.02573e-06 2.08608e-05 -1.01352e-06 2.14963e-05 1.2676e-06 2.16634e-05 3.57938e-06 2.17155e-05 5.12081e-06 2.17316e-05 6.00239e-06 2.18373e-05 6.65827e-06 2.23074e-05 7.13018e-06 2.29356e-05 7.59783e-06 2.3696e-05 8.75357e-06 2.45942e-05 9.96761e-06 2.52042e-05 1.11907e-05 2.56169e-05 1.26647e-05 2.5732e-05 1.33499e-05 2.54338e-05 1.38046e-05 2.49009e-05 1.36284e-05 2.42286e-05 1.25295e-05 2.34871e-05 1.1391e-05 2.28245e-05 1.00335e-05 2.20921e-05 8.38871e-06 2.14316e-05 7.04731e-06 2.09094e-05 5.68249e-06 2.03449e-05 4.50925e-06 1.97567e-05 3.77128e-06 1.94129e-05 2.18595e-06 1.89661e-05 1.35289e-06 1.87171e-05 1.6458e-06 1.87034e-05 1.92856e-07 1.83594e-05 -3.51916e-07 1.82839e-05 -7.76223e-07 1.79453e-05 -6.34124e-07 1.80901e-05 -8.09025e-07 1.80355e-05 -1.92025e-06 1.77574e-05 -2.10715e-06 1.75942e-05 -1.81253e-06 1.72874e-05 -1.14665e-06 1.75707e-05 -2.23853e-06 1.73195e-05 -3.25905e-06 1.68478e-05 -2.4597e-06 1.65418e-05 -4.50309e-06 1.53609e-05 -4.33995e-06 1.54743e-05 -2.19365e-06 1.54172e-05 -1.18136e-06 1.43758e-05 1.75289e-06 1.46473e-05 3.00147e-07 1.39624e-05 -3.71378e-06 1.38383e-05 -8.14494e-06 1.38783e-05 -1.46515e-05 1.26354e-05 -1.82266e-05 1.16615e-05 -2.03514e-05 1.06319e-05 -2.24004e-05 8.92717e-06 -2.09912e-05 7.7973e-06 -1.84232e-05 6.18012e-06 -1.47422e-05 5.24706e-06 -1.13027e-05 3.93597e-06 -8.02232e-06 4.45565e-06 -6.37733e-06 3.96516e-06 -2.74115e-06 5.15533e-06 -1.97443e-06 7.74861e-06 5.05279e-07 8.15757e-06 3.8789e-06 1.25757e-05 4.50479e-06 1.15521e-05 1.02239e-05 1.4565e-05 9.65937e-06 1.53479e-05 1.63882e-05 1.76726e-05 1.92359e-05 1.97066e-05 2.72494e-05 2.19914e-05 2.93779e-05 2.25473e-05 3.45977e-05 2.34296e-05 3.07162e-05 2.3728e-05 3.25449e-05 2.31286e-05 2.60226e-05 2.30596e-05 2.5116e-05 2.23393e-05 1.93537e-05 2.23864e-05 1.80927e-05 2.1865e-05 1.42264e-05 2.24164e-05 1.24874e-05 2.21272e-05 1.09943e-05 2.27655e-05 8.88984e-06 2.30547e-05 8.46053e-06 2.3995e-05 5.8574e-06 2.45249e-05 5.69153e-06 2.4922e-05 4.26866e-06 2.50797e-05 3.61206e-06 2.10136e-06 2.59608e-05 3.19764e-05 -9.21656e-08 3.18427e-05 -1.48704e-07 3.16409e-05 -2.89165e-07 3.14084e-05 -3.12327e-07 3.12691e-05 -3.73944e-07 3.11877e-05 -3.29578e-07 3.11515e-05 -2.91039e-07 3.12009e-05 -2.73323e-07 3.12224e-05 -1.93257e-07 3.12931e-05 -2.19577e-07 3.13172e-05 -1.48577e-07 3.13371e-05 -1.301e-07 3.13744e-05 -1.59984e-07 3.1367e-05 -8.25861e-08 3.14165e-05 -1.67526e-07 3.14379e-05 -1.12649e-07 3.1469e-05 -1.16052e-07 3.15164e-05 -1.60057e-07 3.15211e-05 -9.25417e-08 3.15414e-05 -1.84186e-07 3.15551e-05 -1.70226e-07 3.15597e-05 -2.59888e-07 3.15659e-05 -3.11194e-07 3.15845e-05 -3.64413e-07 3.15787e-05 -4.46341e-07 3.15773e-05 -4.25501e-07 3.1593e-05 -5.24018e-07 3.15615e-05 -4.7386e-07 3.1564e-05 -4.9221e-07 3.15436e-05 -5.29144e-07 3.14992e-05 -4.8035e-07 3.14987e-05 -4.96941e-07 3.14584e-05 -4.90553e-07 3.14735e-05 -4.83725e-07 3.15052e-05 -4.66717e-07 3.15218e-05 -5.07612e-07 3.15972e-05 -4.73527e-07 3.16187e-05 -4.99375e-07 3.16528e-05 -5.46078e-07 3.16726e-05 -5.02852e-07 3.16634e-05 -5.77118e-07 3.1678e-05 -5.74733e-07 3.16644e-05 -6.02062e-07 3.16935e-05 -6.52596e-07 3.17068e-05 -6.53815e-07 3.17453e-05 -7.56063e-07 3.17861e-05 -7.78177e-07 3.18084e-05 -8.88872e-07 3.18286e-05 -1.00426e-06 3.18046e-05 -1.06464e-06 3.17357e-05 -1.21045e-06 3.16581e-05 -1.27295e-06 3.15065e-05 -1.30384e-06 3.13848e-05 -1.38938e-06 3.12422e-05 -1.34504e-06 3.11098e-05 -1.34743e-06 3.1026e-05 -1.30444e-06 3.0919e-05 -1.17228e-06 3.08465e-05 -1.10089e-06 3.07798e-05 -8.84445e-07 3.07043e-05 -7.20555e-07 3.06619e-05 -5.14777e-07 3.06912e-05 -2.88733e-07 3.07358e-05 -9.52961e-08 3.08946e-05 5.80174e-08 3.10797e-05 2.0302e-07 3.12832e-05 2.60894e-07 3.15169e-05 2.37347e-07 3.16765e-05 2.30973e-07 3.18178e-05 2.48875e-08 3.19307e-05 -1.46521e-07 3.20353e-05 -3.56239e-07 3.21201e-05 -6.5548e-07 3.22279e-05 -1.00959e-06 3.23425e-05 -1.3845e-06 3.24428e-05 -1.86221e-06 3.24939e-05 -2.37313e-06 3.24942e-05 -2.88962e-06 3.24264e-05 -3.42118e-06 3.2276e-05 -3.88311e-06 3.21556e-05 -4.41572e-06 3.20126e-05 -4.7915e-06 3.19138e-05 -5.3105e-06 3.18108e-05 -5.69491e-06 3.16251e-05 -6.07455e-06 3.13733e-05 -6.40028e-06 3.1072e-05 -6.67436e-06 3.08576e-05 -7.04253e-06 3.05673e-05 -7.18234e-06 3.03215e-05 -7.53201e-06 2.99536e-05 -7.52806e-06 2.95443e-05 -7.64674e-06 2.90838e-05 -7.59101e-06 2.8433e-05 -7.36847e-06 2.78358e-05 -7.26177e-06 2.68841e-05 -6.68416e-06 2.58588e-05 -6.26266e-06 2.4615e-05 -5.61649e-06 2.27095e-05 -4.57437e-06 2.08874e-05 -3.92031e-06 1.86613e-05 -3.30855e-06 1.48136e-05 -1.66134e-06 1.10323e-05 -9.08603e-07 9.61349e-06 -3.14728e-06 9.83163e-06 -6.89376e-06 1.03616e-05 -1.03131e-05 1.09021e-05 -1.25753e-05 1.14332e-05 -1.35542e-05 1.20018e-05 -1.35113e-05 1.25365e-05 -1.26854e-05 1.3059e-05 -1.14023e-05 1.35316e-05 -9.87341e-06 1.40186e-05 -8.32859e-06 1.44499e-05 -6.76314e-06 1.50237e-05 -5.31459e-06 1.56592e-05 -3.66123e-06 1.62488e-05 -1.60313e-06 1.68498e-05 6.66603e-07 1.73529e-05 3.0763e-06 1.77899e-05 4.68378e-06 1.80391e-05 5.7532e-06 1.82592e-05 6.43819e-06 1.87065e-05 6.68288e-06 1.93053e-05 6.99902e-06 1.99881e-05 8.07073e-06 2.08497e-05 9.10609e-06 2.15034e-05 1.05369e-05 2.21945e-05 1.19737e-05 2.25763e-05 1.29681e-05 2.26419e-05 1.3739e-05 2.25844e-05 1.36858e-05 2.22892e-05 1.28247e-05 2.18159e-05 1.18643e-05 2.13626e-05 1.04869e-05 2.08402e-05 8.91111e-06 2.03665e-05 7.52102e-06 2.0047e-05 6.00192e-06 1.96009e-05 4.95537e-06 1.92709e-05 4.10127e-06 1.91242e-05 2.33264e-06 1.86336e-05 1.84358e-06 1.85214e-05 1.758e-06 1.84846e-05 2.2961e-07 1.83035e-05 -1.70852e-07 1.80962e-05 -5.68858e-07 1.76062e-05 -1.4411e-07 1.7704e-05 -9.06873e-07 1.75699e-05 -1.78618e-06 1.72823e-05 -1.81953e-06 1.6952e-05 -1.48222e-06 1.65348e-05 -7.29476e-07 1.67031e-05 -2.40685e-06 1.63461e-05 -2.90199e-06 1.62417e-05 -2.35532e-06 1.57738e-05 -4.03517e-06 1.48973e-05 -3.46348e-06 1.52354e-05 -2.53171e-06 1.48659e-05 -8.11927e-07 1.4402e-05 2.21682e-06 1.43835e-05 3.18683e-07 1.36112e-05 -2.94154e-06 1.35031e-05 -8.03682e-06 1.23979e-05 -1.35463e-05 1.06315e-05 -1.64602e-05 9.42509e-06 -1.9145e-05 8.30578e-06 -2.12811e-05 7.03644e-06 -1.97219e-05 5.76025e-06 -1.7147e-05 4.32807e-06 -1.331e-05 3.39326e-06 -1.03679e-05 2.26135e-06 -6.8904e-06 2.62352e-06 -6.73951e-06 3.41465e-06 -3.53228e-06 2.43142e-06 -9.91198e-07 6.13906e-06 -3.20236e-06 3.69853e-06 6.31943e-06 8.41959e-06 -2.16267e-07 8.82429e-06 9.81921e-06 1.28911e-05 5.59256e-06 1.42021e-05 1.50772e-05 1.56397e-05 1.77983e-05 1.71361e-05 2.57531e-05 2.00269e-05 2.6487e-05 2.14288e-05 3.31958e-05 2.26388e-05 2.95061e-05 2.36687e-05 3.15151e-05 2.36832e-05 2.60081e-05 2.39962e-05 2.4803e-05 2.34625e-05 1.98875e-05 2.37384e-05 1.78168e-05 2.33498e-05 1.46149e-05 2.3804e-05 1.20332e-05 2.37744e-05 1.10239e-05 2.44512e-05 8.21301e-06 2.48855e-05 8.02623e-06 2.5588e-05 5.15488e-06 2.62404e-05 5.03915e-06 2.70808e-05 3.42826e-06 2.74651e-05 3.22777e-06 1.35607e-06 2.82104e-05 3.18017e-05 -1.78406e-07 3.18131e-05 -1.60115e-07 3.17299e-05 -2.05991e-07 3.16188e-05 -2.01216e-07 3.14758e-05 -2.30955e-07 3.13642e-05 -2.17969e-07 3.12924e-05 -2.19238e-07 3.1254e-05 -2.34926e-07 3.12331e-05 -1.72371e-07 3.12377e-05 -2.24209e-07 3.12507e-05 -1.6154e-07 3.12741e-05 -1.5351e-07 3.12992e-05 -1.85067e-07 3.13265e-05 -1.09935e-07 3.13413e-05 -1.82244e-07 3.13776e-05 -1.48969e-07 3.14053e-05 -1.43758e-07 3.1441e-05 -1.95738e-07 3.15033e-05 -1.54888e-07 3.15265e-05 -2.07398e-07 3.15855e-05 -2.29163e-07 3.1596e-05 -2.70385e-07 3.16042e-05 -3.19463e-07 3.16125e-05 -3.72722e-07 3.1574e-05 -4.07855e-07 3.15817e-05 -4.33152e-07 3.15528e-05 -4.95164e-07 3.15263e-05 -4.47334e-07 3.15373e-05 -5.0321e-07 3.14942e-05 -4.8603e-07 3.14859e-05 -4.72013e-07 3.15063e-05 -5.17374e-07 3.14886e-05 -4.72829e-07 3.15384e-05 -5.33556e-07 3.15745e-05 -5.02795e-07 3.15988e-05 -5.31969e-07 3.16345e-05 -5.09216e-07 3.16347e-05 -4.99523e-07 3.16378e-05 -5.49192e-07 3.1633e-05 -4.98058e-07 3.16434e-05 -5.87546e-07 3.16751e-05 -6.06419e-07 3.1706e-05 -6.32978e-07 3.17616e-05 -7.08208e-07 3.17997e-05 -6.91883e-07 3.18254e-05 -7.81721e-07 3.18462e-05 -7.98984e-07 3.18127e-05 -8.55415e-07 3.17866e-05 -9.78193e-07 3.17224e-05 -1.00043e-06 3.16433e-05 -1.13136e-06 3.1575e-05 -1.20462e-06 3.14858e-05 -1.2146e-06 3.1411e-05 -1.31463e-06 3.13399e-05 -1.27386e-06 3.1255e-05 -1.26255e-06 3.1176e-05 -1.22544e-06 3.10997e-05 -1.096e-06 3.10008e-05 -1.00198e-06 3.09493e-05 -8.32953e-07 3.08882e-05 -6.59445e-07 3.0865e-05 -4.91604e-07 3.09049e-05 -3.28638e-07 3.09553e-05 -1.45644e-07 3.10612e-05 -4.78963e-08 3.11813e-05 8.28946e-08 3.13033e-05 1.3887e-07 3.1424e-05 1.16705e-07 3.15289e-05 1.2606e-07 3.16045e-05 -5.06939e-08 3.16816e-05 -2.2365e-07 3.17967e-05 -4.71296e-07 3.19068e-05 -7.65599e-07 3.20472e-05 -1.15005e-06 3.21921e-05 -1.52938e-06 3.22824e-05 -1.95245e-06 3.23314e-05 -2.4222e-06 3.22926e-05 -2.85078e-06 3.22223e-05 -3.35094e-06 3.20853e-05 -3.7461e-06 3.19548e-05 -4.28521e-06 3.18111e-05 -4.64777e-06 3.15881e-05 -5.08747e-06 3.1377e-05 -5.48387e-06 3.10802e-05 -5.77767e-06 3.08681e-05 -6.18824e-06 3.05773e-05 -6.38356e-06 3.02912e-05 -6.75643e-06 2.99162e-05 -6.80736e-06 2.93793e-05 -6.99505e-06 2.88652e-05 -7.01398e-06 2.80975e-05 -6.87907e-06 2.73698e-05 -6.86326e-06 2.64562e-05 -6.45491e-06 2.52861e-05 -6.09163e-06 2.41997e-05 -5.59777e-06 2.27974e-05 -4.86039e-06 2.0886e-05 -3.70507e-06 1.91648e-05 -2.85318e-06 1.68929e-05 -1.64838e-06 1.28555e-05 7.28873e-07 8.94754e-06 2.24658e-06 6.92517e-06 1.11376e-06 6.0262e-06 -2.24831e-06 5.56766e-06 -6.43522e-06 5.71528e-06 -1.04607e-05 6.43714e-06 -1.32971e-05 7.38614e-06 -1.45032e-05 8.24802e-06 -1.43731e-05 8.95113e-06 -1.33885e-05 9.54489e-06 -1.1996e-05 1.00417e-05 -1.03703e-05 1.04494e-05 -8.73626e-06 1.07628e-05 -7.07651e-06 1.10471e-05 -5.59888e-06 1.13102e-05 -3.92436e-06 1.16214e-05 -1.91433e-06 1.20228e-05 2.65213e-07 1.27101e-05 2.38902e-06 1.33328e-05 4.06108e-06 1.38286e-05 5.25737e-06 1.44416e-05 5.8252e-06 1.50891e-05 6.03535e-06 1.55987e-05 6.48945e-06 1.62229e-05 7.44654e-06 1.70497e-05 8.27926e-06 1.78016e-05 9.78497e-06 1.85135e-05 1.12618e-05 1.90569e-05 1.24247e-05 1.94758e-05 1.33201e-05 1.96969e-05 1.34647e-05 1.97904e-05 1.27312e-05 1.97651e-05 1.18895e-05 1.96154e-05 1.06366e-05 1.94132e-05 9.11325e-06 1.91819e-05 7.75238e-06 1.89562e-05 6.22758e-06 1.86615e-05 5.25005e-06 1.86613e-05 4.10148e-06 1.85987e-05 2.39525e-06 1.81483e-05 2.29395e-06 1.82029e-05 1.70344e-06 1.81657e-05 2.66853e-07 1.8038e-05 -4.31882e-08 1.76585e-05 -1.89362e-07 1.73217e-05 1.92661e-07 1.7536e-05 -1.12119e-06 1.74373e-05 -1.68746e-06 1.71015e-05 -1.48371e-06 1.66187e-05 -9.9944e-07 1.6219e-05 -3.29721e-07 1.61859e-05 -2.37378e-06 1.57506e-05 -2.46668e-06 1.58601e-05 -2.46485e-06 1.52223e-05 -3.39738e-06 1.48605e-05 -3.10167e-06 1.5152e-05 -2.82314e-06 1.4669e-05 -3.28923e-07 1.45992e-05 2.28658e-06 1.42154e-05 7.02508e-07 1.34579e-05 -2.18406e-06 1.26216e-05 -7.20051e-06 1.08012e-05 -1.17259e-05 8.86823e-06 -1.45272e-05 7.95161e-06 -1.82284e-05 6.82358e-06 -2.01531e-05 5.34185e-06 -1.82401e-05 3.97454e-06 -1.57797e-05 3.0553e-06 -1.23907e-05 1.96575e-06 -9.27833e-06 1.443e-06 -6.36765e-06 9.98944e-07 -6.29545e-06 1.51608e-06 -4.04941e-06 -1.50304e-07 6.75181e-07 2.96309e-06 -6.31576e-06 3.39562e-06 5.8869e-06 6.55529e-06 -3.37594e-06 6.42155e-06 9.95295e-06 1.04955e-05 1.51864e-06 1.08576e-05 1.47151e-05 1.38017e-05 1.48542e-05 1.5424e-05 2.41308e-05 1.80389e-05 2.38721e-05 1.99571e-05 3.12777e-05 2.14268e-05 2.80364e-05 2.29592e-05 2.99827e-05 2.35906e-05 2.53766e-05 2.44453e-05 2.39483e-05 2.43587e-05 1.99741e-05 2.51095e-05 1.7066e-05 2.51459e-05 1.45785e-05 2.55674e-05 1.16117e-05 2.57938e-05 1.07976e-05 2.64673e-05 7.53949e-06 2.69768e-05 7.5167e-06 2.74469e-05 4.68474e-06 2.80982e-05 4.38789e-06 2.90553e-05 2.47116e-06 2.96175e-05 2.66557e-06 6.47555e-07 3.0326e-05 3.18592e-05 -2.17611e-07 3.18488e-05 -1.49712e-07 3.17524e-05 -1.09511e-07 3.164e-05 -8.88825e-08 3.14893e-05 -8.02671e-08 3.13749e-05 -1.03524e-07 3.12879e-05 -1.32226e-07 3.12476e-05 -1.94664e-07 3.12539e-05 -1.78644e-07 3.12539e-05 -2.24174e-07 3.13028e-05 -2.10516e-07 3.13255e-05 -1.76161e-07 3.13633e-05 -2.22928e-07 3.1405e-05 -1.51626e-07 3.14197e-05 -1.96879e-07 3.14749e-05 -2.04206e-07 3.14841e-05 -1.5296e-07 3.1531e-05 -2.42645e-07 3.15688e-05 -1.92629e-07 3.15868e-05 -2.25468e-07 3.16434e-05 -2.85721e-07 3.16358e-05 -2.6284e-07 3.16507e-05 -3.34321e-07 3.16465e-05 -3.68496e-07 3.16177e-05 -3.79039e-07 3.16124e-05 -4.27907e-07 3.15881e-05 -4.70826e-07 3.15831e-05 -4.42359e-07 3.15842e-05 -5.0435e-07 3.15859e-05 -4.87724e-07 3.16032e-05 -4.89259e-07 3.16095e-05 -5.23668e-07 3.16197e-05 -4.83086e-07 3.16187e-05 -5.32539e-07 3.16184e-05 -5.02538e-07 3.16098e-05 -5.23356e-07 3.16337e-05 -5.33085e-07 3.16531e-05 -5.1896e-07 3.16804e-05 -5.76403e-07 3.17401e-05 -5.57838e-07 3.17603e-05 -6.07695e-07 3.1788e-05 -6.34087e-07 3.18061e-05 -6.51079e-07 3.1796e-05 -6.98153e-07 3.18026e-05 -6.98453e-07 3.17894e-05 -7.68545e-07 3.17901e-05 -7.99666e-07 3.17854e-05 -8.50743e-07 3.17622e-05 -9.54946e-07 3.17641e-05 -1.00235e-06 3.17202e-05 -1.08749e-06 3.16882e-05 -1.17259e-06 3.16458e-05 -1.17225e-06 3.15625e-05 -1.23129e-06 3.15085e-05 -1.2199e-06 3.14066e-05 -1.16062e-06 3.13175e-05 -1.13637e-06 3.12469e-05 -1.0254e-06 3.11532e-05 -9.08287e-07 3.11147e-05 -7.94399e-07 3.10862e-05 -6.30981e-07 3.10608e-05 -4.66186e-07 3.10747e-05 -3.42566e-07 3.10994e-05 -1.70349e-07 3.11214e-05 -6.9854e-08 3.11807e-05 2.36182e-08 3.12499e-05 6.96316e-08 3.13292e-05 3.73589e-08 3.14615e-05 -6.15882e-09 3.15623e-05 -1.51534e-07 3.16852e-05 -3.46585e-07 3.18058e-05 -5.91847e-07 3.1909e-05 -8.68797e-07 3.19763e-05 -1.21734e-06 3.20278e-05 -1.58087e-06 3.20298e-05 -1.95445e-06 3.1986e-05 -2.37843e-06 3.19183e-05 -2.78309e-06 3.17987e-05 -3.23133e-06 3.16659e-05 -3.6133e-06 3.14686e-05 -4.08793e-06 3.12659e-05 -4.44502e-06 3.09902e-05 -4.81184e-06 3.07149e-05 -5.20856e-06 3.03829e-05 -5.44563e-06 3.00173e-05 -5.82269e-06 2.95563e-05 -5.92249e-06 2.88882e-05 -6.08834e-06 2.82214e-05 -6.14062e-06 2.73767e-05 -6.15029e-06 2.64848e-05 -6.12217e-06 2.54422e-05 -5.83638e-06 2.42527e-05 -5.67376e-06 2.30143e-05 -5.21659e-06 2.1722e-05 -4.79929e-06 2.02548e-05 -4.13059e-06 1.84878e-05 -3.09333e-06 1.69178e-05 -2.13512e-06 1.4725e-05 -6.60395e-07 1.1167e-05 1.90961e-06 7.53229e-06 4.36362e-06 4.85237e-06 4.92651e-06 3.15058e-06 2.81555e-06 2.1919e-06 -1.28963e-06 1.89085e-06 -6.13416e-06 2.0584e-06 -1.06283e-05 2.57325e-06 -1.3812e-05 3.28537e-06 -1.52154e-05 4.02128e-06 -1.5109e-05 4.74763e-06 -1.41148e-05 5.34481e-06 -1.25932e-05 5.83235e-06 -1.08578e-05 6.23527e-06 -9.13918e-06 6.56821e-06 -7.40945e-06 6.72283e-06 -5.75349e-06 6.83233e-06 -4.03386e-06 7.0653e-06 -2.1473e-06 7.411e-06 -8.04857e-08 8.04493e-06 1.75509e-06 8.79738e-06 3.30864e-06 9.71817e-06 4.33658e-06 1.05341e-05 5.00928e-06 1.12133e-05 5.35616e-06 1.18181e-05 5.88467e-06 1.26116e-05 6.65296e-06 1.32765e-05 7.61441e-06 1.38559e-05 9.20558e-06 1.46572e-05 1.04604e-05 1.54639e-05 1.1618e-05 1.60022e-05 1.27818e-05 1.65259e-05 1.2941e-05 1.7024e-05 1.22331e-05 1.73102e-05 1.16033e-05 1.75245e-05 1.04223e-05 1.77304e-05 8.90738e-06 1.7744e-05 7.73873e-06 1.77301e-05 6.24148e-06 1.77504e-05 5.22975e-06 1.79765e-05 3.87547e-06 1.78009e-05 2.57081e-06 1.75656e-05 2.52923e-06 1.77584e-05 1.51063e-06 1.7618e-05 4.07301e-07 1.74466e-05 1.28156e-07 1.69272e-05 3.30054e-07 1.69042e-05 2.15713e-07 1.71369e-05 -1.35387e-06 1.68408e-05 -1.39138e-06 1.64104e-05 -1.05336e-06 1.59211e-05 -5.10131e-07 1.57664e-05 -1.75011e-07 1.56146e-05 -2.22199e-06 1.52467e-05 -2.09879e-06 1.521e-05 -2.42814e-06 1.44024e-05 -2.58975e-06 1.4368e-05 -3.0673e-06 1.45506e-05 -3.00575e-06 1.41718e-05 4.99137e-08 1.42897e-05 2.16865e-06 1.385e-05 1.14218e-06 1.30195e-05 -1.35349e-06 1.14008e-05 -5.58182e-06 9.25604e-06 -9.58119e-06 7.99455e-06 -1.32657e-05 6.85589e-06 -1.70897e-05 4.6754e-06 -1.79726e-05 2.77574e-06 -1.63405e-05 1.95113e-06 -1.49551e-05 1.21844e-06 -1.1658e-05 4.67142e-07 -8.52703e-06 5.37861e-07 -6.43837e-06 1.93504e-07 -5.95109e-06 8.17307e-07 -4.67321e-06 1.4154e-06 7.7084e-08 1.54248e-06 -6.44283e-06 3.86638e-06 3.563e-06 7.22317e-06 -6.73272e-06 6.51387e-06 1.06622e-05 1.29891e-05 -4.95656e-06 9.27397e-06 1.84302e-05 1.19312e-05 1.21969e-05 1.29017e-05 2.31602e-05 1.52098e-05 2.1564e-05 1.79712e-05 2.85163e-05 2.00758e-05 2.59317e-05 2.22533e-05 2.78052e-05 2.35369e-05 2.4093e-05 2.49184e-05 2.25669e-05 2.52754e-05 1.9617e-05 2.63145e-05 1.6027e-05 2.67131e-05 1.41799e-05 2.73913e-05 1.09335e-05 2.79182e-05 1.02707e-05 2.84803e-05 6.97735e-06 2.90224e-05 6.97459e-06 2.9489e-05 4.21821e-06 3.01726e-05 3.70429e-06 3.07845e-05 1.85919e-06 3.13229e-05 2.12725e-06 -1.1204e-07 3.20825e-05 3.19583e-05 -1.99804e-07 3.18982e-05 -8.96685e-08 3.17672e-05 2.15644e-08 3.16338e-05 4.44553e-08 3.15166e-05 3.69586e-08 3.14243e-05 -1.12531e-08 3.14012e-05 -1.09139e-07 3.13993e-05 -1.92729e-07 3.14442e-05 -2.23569e-07 3.14884e-05 -2.68354e-07 3.15322e-05 -2.5429e-07 3.15632e-05 -2.07137e-07 3.15715e-05 -2.31308e-07 3.15766e-05 -1.56743e-07 3.15762e-05 -1.96456e-07 3.15875e-05 -2.15482e-07 3.16014e-05 -1.66822e-07 3.16243e-05 -2.65617e-07 3.16389e-05 -2.07203e-07 3.16528e-05 -2.39401e-07 3.1661e-05 -2.93884e-07 3.16561e-05 -2.57922e-07 3.16651e-05 -3.43359e-07 3.16729e-05 -3.76307e-07 3.16752e-05 -3.81296e-07 3.16991e-05 -4.5179e-07 3.17028e-05 -4.74525e-07 3.17127e-05 -4.5232e-07 3.1725e-05 -5.16572e-07 3.17274e-05 -4.90179e-07 3.17206e-05 -4.82467e-07 3.1732e-05 -5.35072e-07 3.17329e-05 -4.83916e-07 3.17288e-05 -5.28443e-07 3.17556e-05 -5.29404e-07 3.17554e-05 -5.23109e-07 3.1786e-05 -5.6369e-07 3.18032e-05 -5.36178e-07 3.18119e-05 -5.85117e-07 3.18277e-05 -5.7366e-07 3.18079e-05 -5.87828e-07 3.18106e-05 -6.36785e-07 3.17827e-05 -6.23185e-07 3.17678e-05 -6.83284e-07 3.17778e-05 -7.08474e-07 3.17714e-05 -7.62096e-07 3.17958e-05 -8.24053e-07 3.18128e-05 -8.67774e-07 3.1813e-05 -9.55169e-07 3.18091e-05 -9.98401e-07 3.17731e-05 -1.05153e-06 3.17153e-05 -1.11481e-06 3.16541e-05 -1.11106e-06 3.1562e-05 -1.13914e-06 3.14889e-05 -1.14682e-06 3.14009e-05 -1.07259e-06 3.13169e-05 -1.05238e-06 3.12491e-05 -9.57575e-07 3.11753e-05 -8.34542e-07 3.11192e-05 -7.38256e-07 3.10658e-05 -5.77642e-07 3.10355e-05 -4.35836e-07 3.10151e-05 -3.22164e-07 3.10365e-05 -1.91738e-07 3.10592e-05 -9.25842e-08 3.11253e-05 -4.25183e-08 3.11961e-05 -1.15892e-09 3.12685e-05 -3.49658e-08 3.13658e-05 -1.03523e-07 3.14345e-05 -2.20254e-07 3.14862e-05 -3.98191e-07 3.15184e-05 -6.24074e-07 3.15313e-05 -8.81751e-07 3.15026e-05 -1.18863e-06 3.14645e-05 -1.5427e-06 3.13887e-05 -1.87865e-06 3.12941e-05 -2.28385e-06 3.11655e-05 -2.65456e-06 3.09806e-05 -3.04642e-06 3.07808e-05 -3.41343e-06 3.04687e-05 -3.77587e-06 3.01507e-05 -4.12702e-06 2.97547e-05 -4.41584e-06 2.92419e-05 -4.69569e-06 2.86401e-05 -4.84386e-06 2.78833e-05 -5.06595e-06 2.70668e-05 -5.10598e-06 2.61013e-05 -5.12281e-06 2.51071e-05 -5.14639e-06 2.39512e-05 -4.99443e-06 2.26714e-05 -4.84235e-06 2.13508e-05 -4.51579e-06 1.98747e-05 -4.19764e-06 1.83553e-05 -3.69716e-06 1.66999e-05 -3.14398e-06 1.51508e-05 -2.58144e-06 1.36451e-05 -1.58764e-06 1.15525e-05 -4.24864e-08 8.7061e-06 2.18597e-06 5.9132e-06 4.70251e-06 3.76469e-06 6.51213e-06 2.24236e-06 6.44884e-06 9.73861e-07 4.08405e-06 -2.0592e-07 -1.09851e-07 -1.22472e-06 -5.11536e-06 -1.65867e-06 -1.01943e-05 -1.39317e-06 -1.40775e-05 -6.12441e-07 -1.59961e-05 3.23756e-07 -1.60452e-05 1.09799e-06 -1.48891e-05 1.70152e-06 -1.31967e-05 2.17664e-06 -1.13329e-05 2.47671e-06 -9.43925e-06 2.66027e-06 -7.59301e-06 2.76879e-06 -5.86201e-06 2.83635e-06 -4.10143e-06 2.98477e-06 -2.29572e-06 3.41048e-06 -5.06197e-07 4.04718e-06 1.1184e-06 4.90183e-06 2.45398e-06 5.82576e-06 3.41265e-06 6.72738e-06 4.10767e-06 7.48564e-06 4.5979e-06 8.11793e-06 5.25238e-06 8.85569e-06 5.9152e-06 9.30307e-06 7.16703e-06 9.96921e-06 8.53945e-06 1.08299e-05 9.59971e-06 1.15604e-05 1.08876e-05 1.23324e-05 1.20098e-05 1.33177e-05 1.19557e-05 1.40248e-05 1.1526e-05 1.46165e-05 1.10117e-05 1.53552e-05 9.68354e-06 1.58068e-05 8.45584e-06 1.61348e-05 7.41072e-06 1.63974e-05 5.97887e-06 1.65664e-05 5.06068e-06 1.68997e-05 3.54226e-06 1.68627e-05 2.60781e-06 1.69817e-05 2.41019e-06 1.70628e-05 1.42956e-06 1.6874e-05 5.96035e-07 1.68014e-05 2.0079e-07 1.65815e-05 5.4993e-07 1.6789e-05 8.22966e-09 1.68622e-05 -1.42704e-06 1.63092e-05 -8.38384e-07 1.59287e-05 -6.72883e-07 1.54937e-05 -7.51735e-08 1.54742e-05 -1.55472e-07 1.49107e-05 -1.65849e-06 1.46518e-05 -1.83986e-06 1.40592e-05 -1.83555e-06 1.30712e-05 -1.60181e-06 1.29768e-05 -2.97285e-06 1.28256e-05 -2.85454e-06 1.29643e-05 -8.88259e-08 1.33462e-05 1.7868e-06 1.31565e-05 1.3319e-06 1.22451e-05 -4.42126e-07 1.02711e-05 -3.60781e-06 8.43432e-06 -7.74442e-06 7.06933e-06 -1.19007e-05 4.6674e-06 -1.46878e-05 1.91339e-06 -1.52186e-05 6.11626e-07 -1.50387e-05 -2.20286e-07 -1.41231e-05 -1.10914e-06 -1.07692e-05 -1.68243e-06 -7.95373e-06 -2.12058e-06 -6.00023e-06 -2.4924e-06 -5.57927e-06 -2.43963e-06 -4.72598e-06 -1.85487e-06 -5.07675e-07 -3.41964e-06 -4.87807e-06 -1.65554e-06 1.7989e-06 -1.71053e-06 -6.67773e-06 1.15233e-06 7.79939e-06 7.00271e-06 -1.08069e-05 6.0146e-06 1.94183e-05 1.17886e-05 6.42294e-06 1.03959e-05 2.45529e-05 1.2351e-05 1.96089e-05 1.5523e-05 2.53444e-05 1.82338e-05 2.3221e-05 2.08496e-05 2.51894e-05 2.28951e-05 2.20475e-05 2.4775e-05 2.0687e-05 2.57093e-05 1.86827e-05 2.70078e-05 1.47285e-05 2.77915e-05 1.33961e-05 2.86613e-05 1.00637e-05 2.94388e-05 9.49332e-06 3.00555e-05 6.36065e-06 3.07696e-05 6.26049e-06 3.13721e-05 3.61569e-06 3.20638e-05 3.01257e-06 3.24212e-05 1.50176e-06 3.29654e-05 1.58307e-06 -6.92127e-07 3.35455e-05 3.21411e-05 -1.56558e-07 3.20243e-05 2.71294e-08 3.18532e-05 1.92659e-07 3.17081e-05 1.89551e-07 3.16032e-05 1.41842e-07 3.1554e-05 3.79259e-08 3.15458e-05 -1.00907e-07 3.15513e-05 -1.98255e-07 3.15744e-05 -2.46628e-07 3.15859e-05 -2.79892e-07 3.15887e-05 -2.57087e-07 3.15992e-05 -2.17671e-07 3.16043e-05 -2.36394e-07 3.16231e-05 -1.75491e-07 3.16388e-05 -2.12162e-07 3.16509e-05 -2.2762e-07 3.16683e-05 -1.84198e-07 3.16658e-05 -2.63154e-07 3.16822e-05 -2.23535e-07 3.16868e-05 -2.44084e-07 3.17009e-05 -3.07966e-07 3.17182e-05 -2.75198e-07 3.17326e-05 -3.57779e-07 3.17404e-05 -3.84094e-07 3.17409e-05 -3.81759e-07 3.17387e-05 -4.49642e-07 3.17108e-05 -4.46573e-07 3.17102e-05 -4.51747e-07 3.16901e-05 -4.96501e-07 3.16772e-05 -4.77212e-07 3.1682e-05 -4.87318e-07 3.1672e-05 -5.25081e-07 3.16762e-05 -4.88096e-07 3.16738e-05 -5.26012e-07 3.16713e-05 -5.26973e-07 3.16595e-05 -5.11225e-07 3.16535e-05 -5.57728e-07 3.16457e-05 -5.28353e-07 3.1614e-05 -5.53453e-07 3.16056e-05 -5.65292e-07 3.15873e-05 -5.69463e-07 3.1561e-05 -6.10498e-07 3.15548e-05 -6.1703e-07 3.15397e-05 -6.68158e-07 3.15308e-05 -6.99594e-07 3.15128e-05 -7.44117e-07 3.14961e-05 -8.07323e-07 3.14613e-05 -8.32957e-07 3.14087e-05 -9.02527e-07 3.13591e-05 -9.48841e-07 3.12825e-05 -9.74906e-07 3.12031e-05 -1.03542e-06 3.11208e-05 -1.02881e-06 3.10247e-05 -1.04305e-06 3.09219e-05 -1.04398e-06 3.08223e-05 -9.73029e-07 3.07143e-05 -9.44328e-07 3.06181e-05 -8.61375e-07 3.05351e-05 -7.51569e-07 3.04561e-05 -6.59233e-07 3.04068e-05 -5.28398e-07 3.03567e-05 -3.85726e-07 3.03338e-05 -2.99247e-07 3.03249e-05 -1.82789e-07 3.03207e-05 -8.84526e-08 3.0342e-05 -6.38054e-08 3.03627e-05 -2.18544e-08 3.03794e-05 -5.16206e-08 3.03981e-05 -1.22284e-07 3.04091e-05 -2.31185e-07 3.03979e-05 -3.86999e-07 3.03767e-05 -6.02884e-07 3.0337e-05 -8.421e-07 3.0261e-05 -1.11266e-06 3.01535e-05 -1.43516e-06 3.0002e-05 -1.72715e-06 2.9791e-05 -2.07279e-06 2.95223e-05 -2.38588e-06 2.91828e-05 -2.70695e-06 2.87815e-05 -3.01209e-06 2.827e-05 -3.26438e-06 2.76796e-05 -3.53669e-06 2.69631e-05 -3.69931e-06 2.61069e-05 -3.83945e-06 2.52472e-05 -3.98424e-06 2.42601e-05 -4.07881e-06 2.31563e-05 -4.0022e-06 2.1905e-05 -3.87153e-06 2.05395e-05 -3.78084e-06 1.91285e-05 -3.58339e-06 1.75609e-05 -3.27476e-06 1.59558e-05 -2.91074e-06 1.43989e-05 -2.64069e-06 1.28715e-05 -2.1698e-06 1.13402e-05 -1.61267e-06 9.81843e-06 -1.05967e-06 8.29541e-06 -6.46295e-08 6.78411e-06 1.46881e-06 5.14795e-06 3.82214e-06 3.47445e-06 6.37601e-06 2.0611e-06 7.92548e-06 9.04875e-07 7.60507e-06 -2.43343e-07 5.23226e-06 -1.33798e-06 9.84791e-07 -2.42766e-06 -4.02568e-06 -3.36887e-06 -9.2531e-06 -3.78613e-06 -1.36602e-05 -3.5281e-06 -1.62541e-05 -2.8836e-06 -1.66897e-05 -2.18006e-06 -1.55926e-05 -1.62125e-06 -1.37556e-05 -1.24284e-06 -1.17113e-05 -9.97081e-07 -9.685e-06 -8.35914e-07 -7.75418e-06 -7.39801e-07 -5.95812e-06 -6.56097e-07 -4.18513e-06 -4.39249e-07 -2.51257e-06 -2.35659e-08 -9.2188e-07 5.10157e-07 5.84676e-07 1.26222e-06 1.70192e-06 2.06545e-06 2.60941e-06 2.8505e-06 3.32262e-06 3.48176e-06 3.96665e-06 4.12355e-06 4.61058e-06 4.60526e-06 5.4335e-06 5.16475e-06 6.60753e-06 6.06058e-06 7.64361e-06 6.83058e-06 8.82971e-06 7.62344e-06 1.00947e-05 8.82784e-06 1.08054e-05 1.00333e-05 1.07502e-05 1.09324e-05 1.06269e-05 1.20008e-05 9.9433e-06 1.30046e-05 8.6797e-06 1.35697e-05 7.89077e-06 1.43585e-05 6.62184e-06 1.49497e-05 5.38775e-06 1.52554e-05 4.75494e-06 1.57032e-05 3.09443e-06 1.60011e-05 2.30992e-06 1.62401e-05 2.17119e-06 1.60284e-05 1.6413e-06 1.58667e-05 7.57747e-07 1.60365e-05 3.09983e-08 1.60719e-05 5.14543e-07 1.62435e-05 -1.6344e-07 1.60246e-05 -1.20812e-06 1.55862e-05 -3.9997e-07 1.53026e-05 -3.89268e-07 1.49164e-05 3.11031e-07 1.46799e-05 8.10155e-08 1.40117e-05 -9.90279e-07 1.39713e-05 -1.79945e-06 1.29888e-05 -8.53091e-07 1.20202e-05 -6.33207e-07 1.14167e-05 -2.36935e-06 1.10511e-05 -2.48896e-06 1.15811e-05 -6.18766e-07 1.22708e-05 1.09704e-06 1.25108e-05 1.0919e-06 1.15769e-05 4.91851e-07 9.77692e-06 -1.80788e-06 7.84548e-06 -5.81298e-06 5.61078e-06 -9.66604e-06 2.98879e-06 -1.20658e-05 1.07969e-06 -1.33095e-05 -2.00063e-07 -1.37589e-05 -1.25254e-06 -1.30707e-05 -2.83339e-06 -9.18834e-06 -5.23989e-06 -5.54722e-06 -6.24281e-06 -4.99732e-06 -6.57838e-06 -5.24369e-06 -7.32621e-06 -3.97815e-06 -6.81312e-06 -1.02076e-06 -8.73488e-06 -2.95631e-06 -8.72152e-06 1.78554e-06 -7.75533e-06 -7.64393e-06 -6.1147e-06 6.15876e-06 -3.84559e-06 -1.30761e-05 1.10483e-06 1.44679e-05 5.39589e-06 2.13188e-06 5.40864e-06 2.45402e-05 1.00204e-05 1.49971e-05 1.27277e-05 2.26371e-05 1.56614e-05 2.02873e-05 1.86554e-05 2.21954e-05 2.15516e-05 1.91512e-05 2.39549e-05 1.82838e-05 2.55059e-05 1.71317e-05 2.70075e-05 1.3227e-05 2.82455e-05 1.21581e-05 2.92106e-05 9.09855e-06 3.02655e-05 8.43843e-06 3.10513e-05 5.57486e-06 3.19725e-05 5.33924e-06 3.2541e-05 3.04719e-06 3.32288e-05 2.32482e-06 3.36302e-05 1.10031e-06 3.42833e-05 9.29996e-07 -1.02816e-06 3.46193e-05 3.1744e-05 -7.19471e-08 3.15747e-05 1.96377e-07 3.13908e-05 3.76597e-07 3.12474e-05 3.32996e-07 3.11757e-05 2.13495e-07 3.11289e-05 8.47362e-08 3.11188e-05 -9.08021e-08 3.11127e-05 -1.92171e-07 3.11136e-05 -2.47525e-07 3.11115e-05 -2.77811e-07 3.10952e-05 -2.40744e-07 3.11021e-05 -2.2463e-07 3.10958e-05 -2.30028e-07 3.11031e-05 -1.82803e-07 3.11033e-05 -2.1241e-07 3.10964e-05 -2.20734e-07 3.10982e-05 -1.8598e-07 3.108e-05 -2.44926e-07 3.10687e-05 -2.12273e-07 3.10575e-05 -2.32848e-07 3.10405e-05 -2.90984e-07 3.10302e-05 -2.64905e-07 3.10183e-05 -3.45839e-07 3.09943e-05 -3.60091e-07 3.09751e-05 -3.62589e-07 3.09433e-05 -4.1785e-07 3.09026e-05 -4.05876e-07 3.08739e-05 -4.23067e-07 3.08324e-05 -4.54929e-07 3.0802e-05 -4.46844e-07 3.07755e-05 -4.60855e-07 3.07383e-05 -4.87865e-07 3.07141e-05 -4.63882e-07 3.06686e-05 -4.8052e-07 3.06202e-05 -4.7858e-07 3.05743e-05 -4.65341e-07 3.0514e-05 -4.97411e-07 3.04685e-05 -4.82835e-07 3.04195e-05 -5.04455e-07 3.03758e-05 -5.21589e-07 3.03304e-05 -5.24024e-07 3.0282e-05 -5.62149e-07 3.02285e-05 -5.63554e-07 3.01569e-05 -5.9655e-07 3.00949e-05 -6.37559e-07 3.00114e-05 -6.60659e-07 2.99219e-05 -7.17812e-07 2.98451e-05 -7.56084e-07 2.97395e-05 -7.96989e-07 2.96335e-05 -8.42794e-07 2.9526e-05 -8.67463e-07 2.93846e-05 -8.93968e-07 2.92516e-05 -8.95862e-07 2.91063e-05 -8.97742e-07 2.89461e-05 -8.83708e-07 2.88087e-05 -8.35673e-07 2.86579e-05 -7.93517e-07 2.85245e-05 -7.27971e-07 2.84093e-05 -6.36435e-07 2.82986e-05 -5.48441e-07 2.82093e-05 -4.39144e-07 2.81436e-05 -3.20015e-07 2.80788e-05 -2.34473e-07 2.80336e-05 -1.37604e-07 2.80103e-05 -6.5114e-08 2.79788e-05 -3.23544e-08 2.79764e-05 -1.93624e-08 2.79643e-05 -3.95767e-08 2.79521e-05 -1.10089e-07 2.79362e-05 -2.15228e-07 2.7886e-05 -3.36839e-07 2.78077e-05 -5.24558e-07 2.76852e-05 -7.19588e-07 2.75108e-05 -9.3825e-07 2.72673e-05 -1.19174e-06 2.69773e-05 -1.43707e-06 2.66031e-05 -1.69861e-06 2.6169e-05 -1.95181e-06 2.56515e-05 -2.18943e-06 2.50259e-05 -2.38655e-06 2.434e-05 -2.57843e-06 2.35398e-05 -2.7365e-06 2.26354e-05 -2.79494e-06 2.16322e-05 -2.83618e-06 2.052e-05 -2.87208e-06 1.92818e-05 -2.84055e-06 1.79601e-05 -2.68051e-06 1.65745e-05 -2.48596e-06 1.50881e-05 -2.29441e-06 1.35529e-05 -2.0482e-06 1.19991e-05 -1.72095e-06 1.04635e-05 -1.37514e-06 9.11467e-06 -1.29189e-06 8.05284e-06 -1.10797e-06 7.13187e-06 -6.917e-07 6.32377e-06 -2.51571e-07 5.53578e-06 7.23365e-07 4.5139e-06 2.49069e-06 3.49402e-06 4.84201e-06 2.75808e-06 7.11195e-06 2.31434e-06 8.36921e-06 1.82098e-06 8.09844e-06 9.50622e-07 6.10262e-06 -2.45708e-07 2.18112e-06 -1.81862e-06 -2.45277e-06 -3.56464e-06 -7.50708e-06 -4.96549e-06 -1.22594e-05 -5.64974e-06 -1.55699e-05 -5.65862e-06 -1.66809e-05 -5.35679e-06 -1.58944e-05 -5.00239e-06 -1.411e-05 -4.73904e-06 -1.19747e-05 -4.58102e-06 -9.84303e-06 -4.48806e-06 -7.84713e-06 -4.45103e-06 -5.99516e-06 -4.34267e-06 -4.29349e-06 -4.14493e-06 -2.71031e-06 -3.82982e-06 -1.237e-06 -3.33538e-06 9.02339e-08 -2.76754e-06 1.13408e-06 -2.16615e-06 2.00802e-06 -1.52892e-06 2.6854e-06 -8.66371e-07 3.3041e-06 -2.96034e-07 4.04024e-06 2.56181e-07 4.88128e-06 1.11124e-06 5.75247e-06 1.91295e-06 6.84191e-06 2.67652e-06 8.06615e-06 3.86237e-06 8.90886e-06 5.4105e-06 9.25726e-06 6.70751e-06 9.45321e-06 8.00585e-06 9.3286e-06 9.50598e-06 8.44317e-06 1.05696e-05 7.61606e-06 1.15395e-05 6.92087e-06 1.25868e-05 5.57456e-06 1.29828e-05 4.99175e-06 1.34856e-05 4.25216e-06 1.43026e-05 2.27741e-06 1.50295e-05 1.58303e-06 1.52744e-05 1.92625e-06 1.50351e-05 1.88062e-06 1.50709e-05 7.21906e-07 1.53175e-05 -2.15572e-07 1.53603e-05 4.71804e-07 1.53835e-05 -1.86637e-07 1.51567e-05 -9.81381e-07 1.51457e-05 -3.88934e-07 1.48913e-05 -1.34934e-07 1.43351e-05 8.67325e-07 1.36822e-05 7.3385e-07 1.33568e-05 -6.64909e-07 1.34998e-05 -1.94245e-06 1.27433e-05 -9.65184e-08 1.18228e-05 2.87254e-07 1.0627e-05 -1.1735e-06 1.00306e-05 -1.8926e-06 1.04202e-05 -1.00836e-06 1.13884e-05 1.28861e-07 1.18112e-05 6.69113e-07 1.10283e-05 1.27473e-06 9.4857e-06 -2.65292e-07 7.38366e-06 -3.71094e-06 5.12431e-06 -7.40669e-06 3.11955e-06 -1.0061e-05 1.30119e-06 -1.14911e-05 -5.33632e-07 -1.19241e-05 -2.69621e-06 -1.09081e-05 -5.46397e-06 -6.42058e-06 -7.58565e-06 -3.42555e-06 -7.75813e-06 -4.82483e-06 -7.76237e-06 -5.23946e-06 -8.58482e-06 -3.1557e-06 -8.44133e-06 -1.16425e-06 -9.02946e-06 -2.36818e-06 -7.84977e-06 6.05856e-07 -8.35107e-06 -7.14263e-06 -8.99531e-06 6.80301e-06 -7.00084e-06 -1.50705e-05 -6.69743e-06 1.41645e-05 -3.06519e-06 -1.50036e-06 1.67992e-06 1.97951e-05 7.15898e-06 9.51809e-06 9.62849e-06 2.01675e-05 1.30188e-05 1.68969e-05 1.64127e-05 1.88015e-05 1.9706e-05 1.58579e-05 2.23543e-05 1.56355e-05 2.45986e-05 1.48874e-05 2.64054e-05 1.14201e-05 2.81247e-05 1.04388e-05 2.92477e-05 7.97557e-06 3.06219e-05 7.06427e-06 3.15608e-05 4.63588e-06 3.25459e-05 4.35424e-06 3.31432e-05 2.44981e-06 3.38441e-05 1.62399e-06 3.42448e-05 6.99616e-07 3.48239e-05 3.50824e-07 -1.02479e-06 3.48206e-05 2.9535e-05 3.33426e-08 2.9364e-05 3.67378e-07 2.92334e-05 5.07131e-07 2.9152e-05 4.14415e-07 2.90985e-05 2.66978e-07 2.90783e-05 1.04976e-07 2.90566e-05 -6.90941e-08 2.90322e-05 -1.67777e-07 2.90046e-05 -2.19929e-07 2.89564e-05 -2.29661e-07 2.89277e-05 -2.11999e-07 2.89064e-05 -2.03299e-07 2.88768e-05 -2.00503e-07 2.88662e-05 -1.72134e-07 2.88366e-05 -1.82815e-07 2.8803e-05 -1.87188e-07 2.87816e-05 -1.64511e-07 2.87333e-05 -1.96701e-07 2.87091e-05 -1.88064e-07 2.86823e-05 -2.06018e-07 2.86394e-05 -2.48123e-07 2.86194e-05 -2.44912e-07 2.85647e-05 -2.91068e-07 2.85133e-05 -3.08678e-07 2.84621e-05 -3.11377e-07 2.83887e-05 -3.44526e-07 2.83299e-05 -3.4703e-07 2.82661e-05 -3.59321e-07 2.81944e-05 -3.8322e-07 2.81296e-05 -3.82004e-07 2.80586e-05 -3.89844e-07 2.79744e-05 -4.03645e-07 2.79013e-05 -3.90823e-07 2.78157e-05 -3.94936e-07 2.77323e-05 -3.95216e-07 2.76555e-05 -3.88445e-07 2.75648e-05 -4.06711e-07 2.74837e-05 -4.01764e-07 2.73906e-05 -4.11404e-07 2.72962e-05 -4.27139e-07 2.72034e-05 -4.31246e-07 2.70988e-05 -4.57573e-07 2.70026e-05 -4.67313e-07 2.68959e-05 -4.89868e-07 2.67795e-05 -5.21192e-07 2.666e-05 -5.41116e-07 2.65205e-05 -5.78356e-07 2.6374e-05 -6.09507e-07 2.62156e-05 -6.38669e-07 2.60451e-05 -6.72293e-07 2.58704e-05 -6.9273e-07 2.56843e-05 -7.07872e-07 2.54998e-05 -7.11355e-07 2.53088e-05 -7.06728e-07 2.51169e-05 -6.91769e-07 2.49363e-05 -6.55157e-07 2.47559e-05 -6.13072e-07 2.45848e-05 -5.56924e-07 2.4435e-05 -4.86601e-07 2.42954e-05 -4.08865e-07 2.41798e-05 -3.23461e-07 2.40955e-05 -2.35718e-07 2.40178e-05 -1.56825e-07 2.39679e-05 -8.77357e-08 2.39311e-05 -2.83151e-08 2.38992e-05 -4.60462e-10 2.38769e-05 2.96181e-09 2.38504e-05 -1.30449e-08 2.38085e-05 -6.82131e-08 2.37424e-05 -1.49114e-07 2.36524e-05 -2.46837e-07 2.351e-05 -3.82128e-07 2.33218e-05 -5.3145e-07 2.30787e-05 -6.9512e-07 2.27671e-05 -8.80153e-07 2.23925e-05 -1.06249e-06 2.19379e-05 -1.24396e-06 2.1399e-05 -1.41297e-06 2.07629e-05 -1.55328e-06 2.00467e-05 -1.67032e-06 1.9228e-05 -1.75976e-06 1.83041e-05 -1.81263e-06 1.73211e-05 -1.81192e-06 1.62491e-05 -1.76417e-06 1.50769e-05 -1.69991e-06 1.3818e-05 -1.58163e-06 1.25188e-05 -1.38133e-06 1.11335e-05 -1.10069e-06 9.65346e-06 -8.14324e-07 8.35009e-06 -7.4483e-07 7.38434e-06 -7.55205e-07 6.62364e-06 -6.14434e-07 5.93768e-06 -6.05939e-07 5.4175e-06 -5.87781e-07 5.00595e-06 -2.80155e-07 4.4614e-06 2.92978e-07 3.8384e-06 1.34637e-06 3.27493e-06 3.05416e-06 2.99503e-06 5.12192e-06 3.16031e-06 6.94667e-06 3.59926e-06 7.93026e-06 3.94346e-06 7.75424e-06 4.03706e-06 6.00903e-06 3.588e-06 2.63017e-06 2.60418e-06 -1.46895e-06 3.56852e-07 -5.25976e-06 -2.68206e-06 -9.22047e-06 -5.20115e-06 -1.30508e-05 -6.67749e-06 -1.52045e-05 -7.37616e-06 -1.51958e-05 -7.69554e-06 -1.37906e-05 -7.88291e-06 -1.17873e-05 -8.03959e-06 -9.68634e-06 -8.1769e-06 -7.70983e-06 -8.26172e-06 -5.91034e-06 -8.28311e-06 -4.2721e-06 -8.2059e-06 -2.78752e-06 -8.00232e-06 -1.44058e-06 -7.69718e-06 -2.14902e-07 -7.26764e-06 7.04541e-07 -6.77827e-06 1.51864e-06 -6.24984e-06 2.15696e-06 -5.67006e-06 2.72432e-06 -4.96965e-06 3.33984e-06 -4.12547e-06 4.0371e-06 -3.22614e-06 4.85314e-06 -2.19266e-06 5.80843e-06 -8.21544e-07 6.69503e-06 6.5653e-07 7.43078e-06 1.99342e-06 7.92036e-06 3.497e-06 7.94963e-06 5.34118e-06 7.48442e-06 7.00102e-06 6.78333e-06 8.27825e-06 6.33883e-06 9.71321e-06 5.4859e-06 1.07014e-05 4.58633e-06 1.09953e-05 4.69785e-06 1.16927e-05 3.55483e-06 1.27549e-05 1.21516e-06 1.36823e-05 6.55622e-07 1.37551e-05 1.8535e-06 1.36284e-05 2.00729e-06 1.4012e-05 3.3836e-07 1.42837e-05 -4.87344e-07 1.44426e-05 3.1296e-07 1.43253e-05 -6.93755e-08 1.39516e-05 -6.07662e-07 1.41092e-05 -5.46489e-07 1.41381e-05 -1.63883e-07 1.38605e-05 1.14491e-06 1.30647e-05 1.52963e-06 1.27256e-05 -3.25758e-07 1.25514e-05 -1.76822e-06 1.24461e-05 8.73148e-09 1.2265e-05 4.68347e-07 1.12089e-05 -1.17351e-07 1.02431e-05 -9.26831e-07 1.026e-05 -1.02522e-06 1.1184e-05 -7.95219e-07 1.13209e-05 5.322e-07 1.05656e-05 2.03008e-06 9.3278e-06 9.72509e-07 7.41085e-06 -1.79399e-06 5.61289e-06 -5.60873e-06 3.72394e-06 -8.17206e-06 1.15851e-06 -8.9257e-06 -1.66304e-06 -9.10259e-06 -4.49074e-06 -8.08039e-06 -6.19094e-06 -4.72037e-06 -6.60253e-06 -3.01396e-06 -6.36105e-06 -5.06631e-06 -6.67217e-06 -4.92834e-06 -7.06782e-06 -2.76005e-06 -7.01224e-06 -1.21982e-06 -7.6151e-06 -1.76532e-06 -6.66901e-06 -3.40232e-07 -7.17617e-06 -6.63548e-06 -7.36811e-06 6.99495e-06 -9.15748e-06 -1.32812e-05 -1.17736e-05 1.67806e-05 -6.67397e-06 -6.60003e-06 -9.09828e-07 1.40309e-05 2.83293e-06 5.77533e-06 6.19883e-06 1.68016e-05 1.04274e-05 1.26684e-05 1.40068e-05 1.52221e-05 1.74668e-05 1.23978e-05 2.05581e-05 1.25442e-05 2.35445e-05 1.19009e-05 2.55638e-05 9.40088e-06 2.74824e-05 8.52019e-06 2.88357e-05 6.62231e-06 3.03674e-05 5.5325e-06 3.12697e-05 3.7336e-06 3.22424e-05 3.38155e-06 3.2826e-05 1.86618e-06 3.33407e-05 1.10931e-06 3.37162e-05 3.24149e-07 3.41926e-05 -1.25574e-07 -9.79345e-07 3.41472e-05 2.50435e-05 1.81569e-07 2.49463e-05 4.64563e-07 2.49549e-05 4.98526e-07 2.49735e-05 3.95848e-07 2.4993e-05 2.47447e-07 2.50003e-05 9.76978e-08 2.4968e-05 -3.6826e-08 2.49258e-05 -1.25482e-07 2.48699e-05 -1.64127e-07 2.48181e-05 -1.77772e-07 2.47807e-05 -1.74661e-07 2.47447e-05 -1.67242e-07 2.47065e-05 -1.62338e-07 2.46771e-05 -1.42696e-07 2.4636e-05 -1.41737e-07 2.45929e-05 -1.44104e-07 2.45593e-05 -1.30932e-07 2.45117e-05 -1.49045e-07 2.44761e-05 -1.52495e-07 2.44339e-05 -1.63809e-07 2.43773e-05 -1.91561e-07 2.43255e-05 -1.93059e-07 2.4254e-05 -2.19626e-07 2.41793e-05 -2.33909e-07 2.41059e-05 -2.37978e-07 2.40217e-05 -2.60314e-07 2.39385e-05 -2.63858e-07 2.38526e-05 -2.73486e-07 2.37551e-05 -2.85714e-07 2.36574e-05 -2.84288e-07 2.35556e-05 -2.88037e-07 2.34456e-05 -2.93631e-07 2.33405e-05 -2.85751e-07 2.32321e-05 -2.8651e-07 2.31235e-05 -2.8662e-07 2.3017e-05 -2.81906e-07 2.29024e-05 -2.921e-07 2.27901e-05 -2.89459e-07 2.26722e-05 -2.93538e-07 2.25485e-05 -3.03503e-07 2.24238e-05 -3.0649e-07 2.22886e-05 -3.22394e-07 2.21535e-05 -3.32194e-07 2.20108e-05 -3.47169e-07 2.18584e-05 -3.68836e-07 2.17032e-05 -3.85843e-07 2.15351e-05 -4.1026e-07 2.13577e-05 -4.32172e-07 2.11708e-05 -4.51784e-07 2.09718e-05 -4.73251e-07 2.07646e-05 -4.85481e-07 2.05514e-05 -4.94749e-07 2.03368e-05 -4.96742e-07 2.01207e-05 -4.90612e-07 1.99072e-05 -4.78243e-07 1.97041e-05 -4.52109e-07 1.95101e-05 -4.19078e-07 1.93305e-05 -3.7732e-07 1.91705e-05 -3.26559e-07 1.90304e-05 -2.68774e-07 1.89145e-05 -2.0752e-07 1.8822e-05 -1.4322e-07 1.87521e-05 -8.70125e-08 1.87001e-05 -3.56463e-08 1.86654e-05 6.314e-09 1.86395e-05 2.5505e-08 1.86118e-05 3.06589e-08 1.85829e-05 1.58275e-08 1.85327e-05 -1.80572e-08 1.84558e-05 -7.21417e-08 1.83451e-05 -1.36123e-07 1.81883e-05 -2.25393e-07 1.79787e-05 -3.21789e-07 1.77091e-05 -4.2557e-07 1.73719e-05 -5.42909e-07 1.69568e-05 -6.47404e-07 1.64697e-05 -7.56851e-07 1.5899e-05 -8.42273e-07 1.52463e-05 -9.00644e-07 1.45124e-05 -9.36429e-07 1.36843e-05 -9.31665e-07 1.27823e-05 -9.10565e-07 1.18269e-05 -8.56536e-07 1.08034e-05 -7.40622e-07 9.67088e-06 -5.67436e-07 8.49088e-06 -4.01631e-07 7.37654e-06 -2.66994e-07 6.39525e-06 -1.19394e-07 5.62683e-06 -4.59111e-08 5.07762e-06 -1.95622e-07 4.66222e-06 -3.39796e-07 4.31945e-06 -2.71669e-07 3.94394e-06 -2.30428e-07 3.57999e-06 -2.23829e-07 3.30508e-06 -5.24919e-09 3.11269e-06 4.85371e-07 3.00192e-06 1.45714e-06 3.13329e-06 2.9228e-06 3.71479e-06 4.54042e-06 4.81559e-06 5.84586e-06 6.22369e-06 6.52216e-06 7.62054e-06 6.35738e-06 8.74625e-06 4.88332e-06 9.45022e-06 1.92621e-06 9.17446e-06 -1.19319e-06 6.76301e-06 -2.8483e-06 2.44312e-06 -4.90058e-06 -2.21987e-06 -8.38779e-06 -5.8156e-06 -1.16088e-05 -8.07695e-06 -1.29344e-05 -9.45713e-06 -1.24104e-05 -1.03765e-05 -1.0868e-05 -1.10322e-05 -9.03061e-06 -1.15269e-05 -7.2151e-06 -1.18931e-05 -5.54418e-06 -1.21251e-05 -4.04002e-06 -1.22276e-05 -2.68506e-06 -1.22123e-05 -1.45592e-06 -1.2028e-05 -3.99169e-07 -1.1745e-05 4.21497e-07 -1.13089e-05 1.08264e-06 -1.07159e-05 1.56394e-06 -9.98953e-06 1.99792e-06 -9.11345e-06 2.46377e-06 -8.08362e-06 3.00727e-06 -6.84534e-06 3.61486e-06 -5.47382e-06 4.4369e-06 -4.07108e-06 5.29229e-06 -2.59325e-06 5.95296e-06 -8.5884e-07 6.18595e-06 1.19722e-06 5.89357e-06 3.11313e-06 5.56851e-06 4.65317e-06 5.24329e-06 6.34811e-06 4.64389e-06 8.03031e-06 3.80371e-06 8.73412e-06 3.88251e-06 9.3895e-06 4.04247e-06 1.03889e-05 2.55541e-06 1.11032e-05 5.00879e-07 1.16069e-05 1.51949e-07 1.19284e-05 1.532e-06 1.24366e-05 1.49904e-06 1.28712e-05 -9.61725e-08 1.30594e-05 -6.75583e-07 1.33885e-05 -1.61816e-08 1.32577e-05 6.14204e-08 1.28505e-05 -2.00438e-07 1.28095e-05 -5.05471e-07 1.27109e-05 -6.52489e-08 1.30343e-05 8.2148e-07 1.3196e-05 1.36791e-06 1.30002e-05 -1.29928e-07 1.22936e-05 -1.06168e-06 1.22698e-05 3.2558e-08 1.26557e-05 8.2503e-08 1.26195e-05 -8.12001e-08 1.20118e-05 -3.19101e-07 1.16727e-05 -6.86142e-07 1.19534e-05 -1.07593e-06 1.1351e-05 1.1346e-06 1.06255e-05 2.75555e-06 9.79348e-06 1.80456e-06 7.97424e-06 2.52574e-08 6.03016e-06 -3.66466e-06 3.99342e-06 -6.13532e-06 1.31832e-06 -6.25061e-06 -1.16077e-06 -6.62349e-06 -3.12394e-06 -6.11722e-06 -3.86192e-06 -3.9824e-06 -4.08315e-06 -2.79273e-06 -4.37048e-06 -4.77898e-06 -5.04046e-06 -4.25835e-06 -5.61467e-06 -2.18584e-06 -5.71299e-06 -1.1215e-06 -6.85308e-06 -6.25233e-07 -6.58408e-06 -6.09235e-07 -7.42948e-06 -5.79008e-06 -7.33376e-06 6.89924e-06 -8.16498e-06 -1.24499e-05 -7.15357e-06 1.57692e-05 -8.3608e-06 -5.3928e-06 -2.95272e-06 8.62287e-06 1.72348e-07 2.65027e-06 4.22107e-06 1.27529e-05 7.86531e-06 9.02416e-06 1.15812e-05 1.15063e-05 1.51764e-05 8.80261e-06 1.83953e-05 9.32538e-06 2.15533e-05 8.74288e-06 2.36568e-05 7.29746e-06 2.57105e-05 6.46643e-06 2.73471e-05 4.98578e-06 2.88984e-05 3.98114e-06 2.9862e-05 2.77005e-06 3.09682e-05 2.27529e-06 3.16216e-05 1.21279e-06 3.21746e-05 5.56339e-07 3.26813e-05 -1.82607e-07 3.31273e-05 -5.71501e-07 -1.16426e-06 3.33122e-05 1.86715e-05 9.23482e-08 1.89562e-05 1.79866e-07 1.92004e-05 2.54312e-07 1.93291e-05 2.67204e-07 1.93912e-05 1.85354e-07 1.94085e-05 8.03561e-08 1.93904e-05 -1.87032e-08 1.93454e-05 -8.04284e-08 1.9302e-05 -1.20797e-07 1.9262e-05 -1.3779e-07 1.9223e-05 -1.35639e-07 1.91815e-05 -1.25682e-07 1.91359e-05 -1.1681e-07 1.9096e-05 -1.02735e-07 1.90525e-05 -9.8284e-08 1.90064e-05 -9.79927e-08 1.89669e-05 -9.13999e-08 1.89166e-05 -9.8749e-08 1.8866e-05 -1.01969e-07 1.88116e-05 -1.09321e-07 1.87432e-05 -1.23224e-07 1.86765e-05 -1.26332e-07 1.85966e-05 -1.39754e-07 1.85106e-05 -1.47868e-07 1.84235e-05 -1.50888e-07 1.83242e-05 -1.61041e-07 1.82238e-05 -1.63431e-07 1.81174e-05 -1.67122e-07 1.80033e-05 -1.71611e-07 1.78889e-05 -1.69904e-07 1.7771e-05 -1.70076e-07 1.76479e-05 -1.70551e-07 1.75274e-05 -1.65245e-07 1.7405e-05 -1.6408e-07 1.7281e-05 -1.6265e-07 1.71584e-05 -1.59323e-07 1.70292e-05 -1.62919e-07 1.69015e-05 -1.61699e-07 1.67707e-05 -1.62796e-07 1.66343e-05 -1.67114e-07 1.64978e-05 -1.69983e-07 1.6354e-05 -1.78553e-07 1.62065e-05 -1.84745e-07 1.60532e-05 -1.93803e-07 1.5891e-05 -2.06639e-07 1.57228e-05 -2.17616e-07 1.55441e-05 -2.31626e-07 1.53568e-05 -2.44809e-07 1.51615e-05 -2.56481e-07 1.49565e-05 -2.68257e-07 1.47465e-05 -2.7556e-07 1.45331e-05 -2.81316e-07 1.43195e-05 -2.83135e-07 1.4108e-05 -2.79068e-07 1.39009e-05 -2.71204e-07 1.37047e-05 -2.55922e-07 1.35215e-05 -2.35888e-07 1.33549e-05 -2.10674e-07 1.32079e-05 -1.79593e-07 1.30841e-05 -1.44916e-07 1.29838e-05 -1.0724e-07 1.29087e-05 -6.81714e-08 1.28556e-05 -3.38558e-08 1.28221e-05 -2.12453e-09 1.28052e-05 2.3225e-08 1.27918e-05 3.88819e-08 1.27775e-05 4.49661e-08 1.2754e-05 3.93263e-08 1.27144e-05 2.15573e-08 1.26476e-05 -5.35938e-09 1.25474e-05 -3.59083e-08 1.23986e-05 -7.65942e-08 1.21989e-05 -1.2218e-07 1.19401e-05 -1.66713e-07 1.16135e-05 -2.16277e-07 1.12241e-05 -2.58091e-07 1.07609e-05 -2.93584e-07 1.02339e-05 -3.15247e-07 9.63488e-06 -3.01671e-07 8.95291e-06 -2.54456e-07 8.1959e-06 -1.7466e-07 7.37337e-06 -8.80323e-08 6.54117e-06 -2.43402e-08 5.74446e-06 5.60904e-08 5.06539e-06 1.11637e-07 4.57514e-06 8.86178e-08 4.24e-06 6.81483e-08 3.96584e-06 1.54764e-07 3.70641e-06 2.13516e-07 3.4126e-06 9.81897e-08 3.12398e-06 -5.11716e-08 2.90628e-06 -5.39756e-08 2.69815e-06 -2.22948e-08 2.48816e-06 -1.38352e-08 2.39018e-06 9.27339e-08 2.43019e-06 4.45359e-07 2.73603e-06 1.1513e-06 3.48807e-06 2.17075e-06 4.80376e-06 3.22473e-06 6.61882e-06 4.0308e-06 8.71678e-06 4.4242e-06 1.07897e-05 4.28443e-06 1.24522e-05 3.22087e-06 1.35244e-05 8.54003e-07 1.45956e-05 -2.26445e-06 1.44227e-05 -2.67532e-06 1.09249e-05 -1.40282e-06 4.68932e-06 -2.1522e-06 -1.47808e-06 -5.44139e-06 -6.13458e-06 -8.27793e-06 -9.29134e-06 -9.25364e-06 -1.14529e-05 -8.70638e-06 -1.30192e-05 -7.46439e-06 -1.41576e-05 -6.07665e-06 -1.49526e-05 -4.74918e-06 -1.54716e-05 -3.52105e-06 -1.57638e-05 -2.39288e-06 -1.58394e-05 -1.38029e-06 -1.57561e-05 -4.82406e-07 -1.55441e-05 2.09467e-07 -1.51422e-05 6.80731e-07 -1.45542e-05 9.75982e-07 -1.37395e-05 1.18315e-06 -1.26696e-05 1.39385e-06 -1.13766e-05 1.71433e-06 -9.94019e-06 2.17843e-06 -8.41936e-06 2.91608e-06 -6.70625e-06 3.57918e-06 -4.8642e-06 4.11091e-06 -2.82124e-06 4.14299e-06 -9.58822e-07 4.03115e-06 6.47116e-07 3.96258e-06 2.45026e-06 3.44015e-06 4.40252e-06 2.69163e-06 5.74342e-06 2.46282e-06 6.62021e-06 3.00572e-06 7.93352e-06 2.72916e-06 8.97816e-06 1.51077e-06 9.26174e-06 2.17301e-07 9.4423e-06 -2.86135e-08 1.01501e-05 8.24216e-07 1.09971e-05 6.51979e-07 1.1145e-05 -2.44046e-07 1.10074e-05 -5.37999e-07 1.13476e-05 -3.56345e-07 1.16e-05 -1.90997e-07 1.16175e-05 -2.17877e-07 1.13937e-05 -2.81743e-07 1.12339e-05 9.45946e-08 1.17895e-05 2.65899e-07 1.26151e-05 5.42284e-07 1.24894e-05 -4.27937e-09 1.18259e-05 -3.98111e-07 1.18446e-05 1.38318e-08 1.21884e-05 -2.61313e-07 1.2541e-05 -4.33764e-07 1.24757e-05 -2.53795e-07 1.24325e-05 -6.42916e-07 1.19916e-05 -6.3511e-07 1.16491e-05 1.47709e-06 1.15974e-05 2.80731e-06 1.07255e-05 2.67644e-06 9.45487e-06 1.2959e-06 7.29768e-06 -1.50747e-06 4.22604e-06 -3.06368e-06 1.79873e-06 -3.8233e-06 2.44171e-07 -5.06893e-06 -1.58467e-06 -4.28838e-06 -2.87039e-06 -2.69667e-06 -3.47651e-06 -2.18661e-06 -4.24702e-06 -4.00846e-06 -4.81974e-06 -3.68564e-06 -5.68818e-06 -1.3174e-06 -6.67921e-06 -1.30462e-07 -8.00459e-06 7.00141e-07 -7.63201e-06 -9.8181e-07 -9.54909e-06 -3.873e-06 -8.53183e-06 5.88198e-06 -8.57784e-06 -1.24039e-05 -3.99529e-06 1.11867e-05 -8.1663e-06 -1.22179e-06 -4.10369e-06 4.56026e-06 -2.08364e-06 6.30212e-07 1.89129e-06 8.77799e-06 4.9179e-06 5.99755e-06 8.81304e-06 7.61112e-06 1.20908e-05 5.52486e-06 1.53154e-05 6.1008e-06 1.84434e-05 5.6149e-06 2.09144e-05 4.82643e-06 2.33502e-05 4.03066e-06 2.52732e-05 3.06279e-06 2.69663e-05 2.28802e-06 2.82512e-05 1.48513e-06 2.95316e-05 9.94914e-07 3.04306e-05 3.13728e-07 3.11457e-05 -1.58711e-07 3.16779e-05 -7.14838e-07 3.20777e-05 -9.71266e-07 -1.44276e-06 3.23562e-05 1.22279e-05 1.27864e-07 1.23275e-05 8.03128e-08 1.24873e-05 9.44365e-08 1.26455e-05 1.09086e-07 1.27477e-05 8.30777e-08 1.27958e-05 3.22767e-08 1.27961e-05 -1.89442e-08 1.27697e-05 -5.40993e-08 1.27232e-05 -7.4288e-08 1.26657e-05 -8.02415e-08 1.26068e-05 -7.67445e-08 1.25491e-05 -6.8009e-08 1.24919e-05 -5.95692e-08 1.24395e-05 -5.03302e-08 1.23866e-05 -4.54731e-08 1.23317e-05 -4.30212e-08 1.228e-05 -3.97542e-08 1.22225e-05 -4.12151e-08 1.21623e-05 -4.17939e-08 1.20973e-05 -4.43155e-08 1.20231e-05 -4.89944e-08 1.19465e-05 -4.97936e-08 1.18608e-05 -5.39985e-08 1.17694e-05 -5.64433e-08 1.16755e-05 -5.6988e-08 1.15738e-05 -5.93527e-08 1.14694e-05 -5.90113e-08 1.13617e-05 -5.94618e-08 1.125e-05 -5.99453e-08 1.1138e-05 -5.78653e-08 1.10244e-05 -5.64689e-08 1.09094e-05 -5.55888e-08 1.07972e-05 -5.2988e-08 1.06845e-05 -5.1431e-08 1.05717e-05 -4.98495e-08 1.04607e-05 -4.83474e-08 1.03472e-05 -4.94064e-08 1.02344e-05 -4.88393e-08 1.01208e-05 -4.92656e-08 1.0005e-05 -5.1251e-08 9.88785e-06 -5.28653e-08 9.76549e-06 -5.61895e-08 9.63994e-06 -5.91929e-08 9.50978e-06 -6.36454e-08 9.37247e-06 -6.93312e-08 9.22904e-06 -7.41875e-08 9.07764e-06 -8.02197e-08 8.91931e-06 -8.64852e-08 8.75501e-06 -9.21763e-08 8.58409e-06 -9.7343e-08 8.4094e-06 -1.00863e-07 8.2324e-06 -1.0432e-07 8.05581e-06 -1.06546e-07 7.8829e-06 -1.06152e-07 7.71554e-06 -1.03848e-07 7.55844e-06 -9.88198e-08 7.41425e-06 -9.17026e-08 7.28561e-06 -8.20362e-08 7.1758e-06 -6.97791e-08 7.08612e-06 -5.52402e-08 7.01803e-06 -3.91412e-08 6.97191e-06 -2.20516e-08 6.94389e-06 -5.84054e-09 6.93384e-06 7.92373e-09 6.93676e-06 2.03083e-08 6.94606e-06 2.95839e-08 6.95548e-06 3.55386e-08 6.95628e-06 3.85266e-08 6.93986e-06 3.79793e-08 6.8982e-06 3.63036e-08 6.82533e-06 3.69639e-08 6.71231e-06 3.64227e-08 6.55088e-06 3.92519e-08 6.33911e-06 4.50548e-08 6.07327e-06 4.95647e-08 5.75523e-06 5.99434e-08 5.39124e-06 7.04154e-08 5.00014e-06 7.58455e-08 4.61808e-06 8.0394e-08 4.27359e-06 9.00348e-08 3.98917e-06 1.09758e-07 3.77452e-06 1.26617e-07 3.60633e-06 1.43849e-07 3.49761e-06 1.64811e-07 3.44219e-06 1.67056e-07 3.41518e-06 1.1563e-07 3.40754e-06 7.5785e-08 3.46099e-06 1.0132e-07 3.54059e-06 1.33908e-07 3.54987e-06 8.89085e-08 3.47818e-06 2.05249e-08 3.41803e-06 6.17156e-09 3.379e-06 1.6735e-08 3.32902e-06 3.61449e-08 3.33799e-06 8.37668e-08 3.51631e-06 2.67037e-07 4.03886e-06 6.28742e-07 5.10286e-06 1.10675e-06 6.75982e-06 1.56777e-06 8.85552e-06 1.9351e-06 1.11674e-05 2.11235e-06 1.36065e-05 1.8453e-06 1.5698e-05 1.12941e-06 1.64518e-05 1.00139e-07 1.58614e-05 -1.67405e-06 1.6108e-05 -2.92187e-06 1.62604e-05 -1.55526e-06 1.31187e-05 9.89544e-07 6.70775e-06 9.69529e-07 -1.94616e-07 -1.37557e-06 -5.39007e-06 -4.05819e-06 -9.27911e-06 -4.81734e-06 -1.23938e-05 -4.34975e-06 -1.48133e-05 -3.65713e-06 -1.66052e-05 -2.95722e-06 -1.78349e-05 -2.29141e-06 -1.85639e-05 -1.66388e-06 -1.8862e-05 -1.08214e-06 -1.87867e-05 -5.57687e-07 -1.84761e-05 -1.01175e-07 -1.79521e-05 1.56753e-07 -1.72636e-05 2.8746e-07 -1.64185e-05 3.3804e-07 -1.54153e-05 3.90693e-07 -1.42154e-05 5.14374e-07 -1.27965e-05 7.59597e-07 -1.11494e-05 1.26896e-06 -9.31523e-06 1.74498e-06 -7.29699e-06 2.09266e-06 -5.3055e-06 2.1515e-06 -3.41734e-06 2.14299e-06 -1.40009e-06 1.94533e-06 5.79378e-07 1.46068e-06 2.12621e-06 1.14479e-06 3.3632e-06 1.22583e-06 4.87768e-06 1.49124e-06 6.43434e-06 1.17251e-06 7.40746e-06 5.37645e-07 7.64343e-06 -1.86676e-08 7.73938e-06 -1.24563e-07 8.37993e-06 1.83659e-07 8.98171e-06 5.02057e-08 9.07836e-06 -3.40693e-07 9.01458e-06 -4.74221e-07 9.13571e-06 -4.7748e-07 9.33199e-06 -3.87277e-07 9.30036e-06 -1.86244e-07 9.07737e-06 -5.8753e-08 9.14168e-06 3.02825e-08 9.32005e-06 8.75309e-08 9.55046e-06 3.11871e-07 9.40797e-06 1.38208e-07 9.1696e-06 -1.59737e-07 9.33676e-06 -1.53324e-07 9.32158e-06 -2.4614e-07 9.00335e-06 -1.15528e-07 8.62685e-06 1.22706e-07 8.05113e-06 -6.72025e-08 7.34293e-06 7.3092e-08 7.89284e-06 9.27184e-07 8.85224e-06 1.84791e-06 9.30076e-06 2.22792e-06 9.47585e-06 1.12081e-06 8.18661e-06 -2.18228e-07 6.08579e-06 -9.62866e-07 4.07302e-06 -1.81052e-06 1.42257e-06 -2.41848e-06 -9.11125e-07 -1.95469e-06 -2.02228e-06 -1.58551e-06 -2.48788e-06 -1.72102e-06 -3.9814e-06 -2.51494e-06 -5.25102e-06 -2.41601e-06 -5.44585e-06 -1.12258e-06 -6.69989e-06 1.12358e-06 -6.49949e-06 4.99747e-07 -6.53873e-06 -9.42572e-07 -9.43935e-06 -9.72377e-07 -8.14865e-06 4.59128e-06 -1.3088e-05 -7.46454e-06 -5.91823e-06 4.01686e-06 -7.14554e-06 5.53041e-09 -5.07006e-06 2.48478e-06 -4.08253e-06 -3.57322e-07 2.3662e-07 4.45884e-06 3.21155e-06 3.02263e-06 7.29342e-06 3.52925e-06 1.02972e-05 2.52112e-06 1.36285e-05 2.76949e-06 1.67271e-05 2.51631e-06 1.95209e-05 2.0326e-06 2.19991e-05 1.55249e-06 2.39872e-05 1.07468e-06 2.56235e-05 6.51645e-07 2.68827e-05 2.26014e-07 2.79281e-05 -5.05284e-08 2.86437e-05 -4.01906e-07 2.90477e-05 -5.62638e-07 2.92092e-05 -8.76328e-07 2.9094e-05 -8.56115e-07 -1.14166e-06 2.87929e-05 4.57692e-06 4.65723e-06 4.75167e-06 4.86076e-06 4.94383e-06 4.97611e-06 4.95717e-06 4.90307e-06 4.82878e-06 4.74854e-06 4.67179e-06 4.60378e-06 4.54421e-06 4.49388e-06 4.44841e-06 4.40539e-06 4.36563e-06 4.32442e-06 4.28263e-06 4.23831e-06 4.18932e-06 4.13952e-06 4.08552e-06 4.02908e-06 3.97209e-06 3.91274e-06 3.85373e-06 3.79427e-06 3.73432e-06 3.67646e-06 3.61999e-06 3.5644e-06 3.51141e-06 3.45998e-06 3.41013e-06 3.36178e-06 3.31238e-06 3.26354e-06 3.21427e-06 3.16302e-06 3.11015e-06 3.05396e-06 2.99477e-06 2.93113e-06 2.8618e-06 2.78761e-06 2.70739e-06 2.6209e-06 2.52873e-06 2.43138e-06 2.33052e-06 2.2262e-06 2.11965e-06 2.0135e-06 1.90965e-06 1.81083e-06 1.71913e-06 1.6371e-06 1.56732e-06 1.51208e-06 1.47294e-06 1.45088e-06 1.44504e-06 1.45297e-06 1.47328e-06 1.50286e-06 1.5384e-06 1.57692e-06 1.6149e-06 1.65121e-06 1.68817e-06 1.72459e-06 1.76385e-06 1.8089e-06 1.85847e-06 1.91841e-06 1.98882e-06 2.06467e-06 2.14506e-06 2.2351e-06 2.34486e-06 2.47147e-06 2.61532e-06 2.78013e-06 2.94719e-06 3.06282e-06 3.1386e-06 3.23992e-06 3.37383e-06 3.46274e-06 3.48327e-06 3.48944e-06 3.50617e-06 3.54232e-06 3.62608e-06 3.89312e-06 4.52186e-06 5.62861e-06 7.19639e-06 9.13149e-06 1.12438e-05 1.30891e-05 1.42186e-05 1.43187e-05 1.26446e-05 9.72277e-06 8.16751e-06 9.15705e-06 1.01266e-05 8.75101e-06 4.69283e-06 -1.24513e-07 -4.47426e-06 -8.13139e-06 -1.10886e-05 -1.338e-05 -1.50439e-05 -1.6126e-05 -1.66837e-05 -1.67849e-05 -1.66282e-05 -1.63407e-05 -1.60027e-05 -1.5612e-05 -1.50976e-05 -1.4338e-05 -1.3069e-05 -1.1324e-05 -9.23139e-06 -7.07988e-06 -4.93689e-06 -2.99157e-06 -1.53089e-06 -3.86096e-07 8.39731e-07 2.33097e-06 3.50348e-06 4.04112e-06 4.02245e-06 3.89789e-06 4.08155e-06 4.13176e-06 3.79106e-06 3.31684e-06 2.83936e-06 2.45209e-06 2.26584e-06 2.20709e-06 2.23737e-06 2.3249e-06 2.63677e-06 2.77498e-06 2.61524e-06 2.46192e-06 2.21578e-06 2.10025e-06 2.22296e-06 2.15576e-06 2.22885e-06 3.15603e-06 5.00394e-06 7.23186e-06 8.35267e-06 8.13444e-06 7.17158e-06 5.36105e-06 2.94257e-06 9.87884e-07 -5.97631e-07 -2.31865e-06 -4.83359e-06 -7.2496e-06 -8.37218e-06 -7.2486e-06 -6.74886e-06 -7.69143e-06 -8.66381e-06 -4.07253e-06 -1.15371e-05 -7.52021e-06 -7.51468e-06 -5.0299e-06 -5.38722e-06 -9.28376e-07 2.09425e-06 5.6235e-06 8.14462e-06 1.09141e-05 1.34304e-05 1.5463e-05 1.70155e-05 1.80902e-05 1.87418e-05 1.89678e-05 1.89173e-05 1.85154e-05 1.79528e-05 1.70764e-05 1.62203e-05 1.50787e-05 6.52536e-07 -6.52536e-07 1.34297e-06 -6.90435e-07 1.93799e-06 -5.9502e-07 2.60488e-06 -6.6689e-07 3.17893e-06 -5.74049e-07 3.67072e-06 -4.91796e-07 4.0574e-06 -3.86676e-07 4.23564e-06 -1.78238e-07 4.14526e-06 9.0375e-08 3.73336e-06 4.119e-07 2.98975e-06 7.43617e-07 1.99315e-06 9.96599e-07 7.58543e-07 1.2346e-06 -5.24627e-07 1.28317e-06 -1.29345e-06 7.68826e-07 -1.28965e-06 -3.80375e-09 -9.6025e-07 -3.294e-07 -1.18775e-06 2.27495e-07 -1.94998e-06 7.62239e-07 -2.57069e-06 6.20704e-07 -2.81351e-06 2.42819e-07 -2.67086e-06 -1.42647e-07 -2.30384e-06 -3.67022e-07 -1.91409e-06 -3.89748e-07 -1.59629e-06 -3.17804e-07 -1.31489e-06 -2.81393e-07 -1.13488e-06 -1.8001e-07 -1.16163e-06 2.67429e-08 -1.4855e-06 3.23869e-07 -1.99632e-06 5.10822e-07 -2.43746e-06 4.4114e-07 -2.59659e-06 1.59132e-07 -2.59672e-06 1.29625e-10 -2.63091e-06 3.41933e-08 -2.7157e-06 8.47875e-08 -2.85849e-06 1.42785e-07 -2.97542e-06 1.16938e-07 -2.88227e-06 -9.315e-08 -2.42386e-06 -4.58414e-07 -1.51281e-06 -9.11054e-07 -2.48144e-07 -1.26466e-06 1.02496e-06 -1.2731e-06 2.17549e-06 -1.15053e-06 3.07032e-06 -8.94828e-07 3.74112e-06 -6.70801e-07 4.37897e-06 -6.37852e-07 5.0518e-06 -6.72828e-07 5.72539e-06 -6.73589e-07 6.33323e-06 -6.07842e-07 6.89437e-06 -5.6114e-07 7.49705e-06 -6.02676e-07 8.01402e-06 -5.16968e-07 8.3169e-06 -3.02887e-07 8.36365e-06 -4.67469e-08 8.17134e-06 1.92309e-07 7.66682e-06 5.04522e-07 6.76102e-06 9.058e-07 5.49074e-06 1.27027e-06 3.99013e-06 1.50062e-06 2.51871e-06 1.47142e-06 1.33814e-06 1.18058e-06 5.64016e-07 7.7412e-07 1.41012e-07 4.23004e-07 1.54808e-07 -1.37963e-08 3.89559e-07 -2.3475e-07 8.05019e-07 -4.15461e-07 1.66968e-06 -8.64666e-07 2.69839e-06 -1.02871e-06 3.54086e-06 -8.42466e-07 4.20854e-06 -6.67681e-07 4.71514e-06 -5.06602e-07 5.10153e-06 -3.86393e-07 5.09609e-06 5.44097e-09 4.39555e-06 7.0054e-07 3.00177e-06 1.39378e-06 1.257e-06 1.74477e-06 -5.62287e-07 1.81929e-06 -2.34046e-06 1.77817e-06 -3.9771e-06 1.63665e-06 -5.36224e-06 1.38514e-06 -6.42808e-06 1.06584e-06 -7.16152e-06 7.3344e-07 -7.50936e-06 3.4784e-07 -7.56493e-06 5.55646e-08 -7.4223e-06 -1.42626e-07 -7.21034e-06 -2.1196e-07 -7.25765e-06 4.7305e-08 -7.78451e-06 5.26862e-07 -8.63094e-06 8.46426e-07 -9.70516e-06 1.07423e-06 -1.05681e-05 8.62912e-07 -1.05501e-05 -1.79935e-08 -9.64513e-06 -9.04953e-07 -8.24139e-06 -1.40374e-06 -6.96799e-06 -1.2734e-06 -6.02973e-06 -9.38264e-07 -4.96532e-06 -1.06441e-06 -3.16486e-06 -1.80046e-06 -9.89173e-07 -2.17569e-06 8.65659e-07 -1.85483e-06 2.42387e-06 -1.55821e-06 3.53272e-06 -1.10885e-06 4.23592e-06 -7.03197e-07 4.16834e-06 6.75812e-08 3.77412e-06 3.9422e-07 3.49423e-06 2.7989e-07 2.99825e-06 4.95978e-07 2.8939e-06 1.04348e-07 3.50036e-06 -6.06455e-07 4.49411e-06 -9.93758e-07 5.56939e-06 -1.07528e-06 6.00793e-06 -4.38539e-07 5.31594e-06 6.91989e-07 3.51011e-06 1.80583e-06 1.30987e-06 2.20023e-06 -6.77231e-07 1.9871e-06 -2.33017e-06 1.65294e-06 -3.66047e-06 1.3303e-06 -4.72891e-06 1.06844e-06 -5.59763e-06 8.68715e-07 -6.33776e-06 7.40129e-07 -7.00915e-06 6.71387e-07 -7.63335e-06 6.24204e-07 -8.22858e-06 5.95232e-07 -8.79257e-06 5.63984e-07 -9.26348e-06 4.70912e-07 -9.58933e-06 3.25849e-07 -9.82244e-06 2.33112e-07 -9.99362e-06 1.71184e-07 -1.0088e-05 9.44099e-08 -1.01228e-05 3.48119e-08 -9.99684e-06 -1.26008e-07 -9.7609e-06 -2.35937e-07 -9.57164e-06 -1.89264e-07 -9.10072e-06 -4.70914e-07 -8.57187e-06 -5.28853e-07 -8.09168e-06 -4.8019e-07 -7.35894e-06 -7.32742e-07 -6.62583e-06 -7.33109e-07 -5.8734e-06 -7.52427e-07 -5.09473e-06 -7.78673e-07 -4.38926e-06 -7.05471e-07 -3.76774e-06 -6.21518e-07 -3.21911e-06 -5.48629e-07 -2.72916e-06 -4.89947e-07 -2.27305e-06 -4.56113e-07 -1.88314e-06 -3.89909e-07 -1.61433e-06 -2.68807e-07 -1.5722e-06 -4.21316e-08 -1.78997e-06 2.17766e-07 -2.2543e-06 4.64328e-07 -2.8367e-06 5.82405e-07 -3.44768e-06 6.10983e-07 -3.99679e-06 5.49102e-07 -4.3494e-06 3.52613e-07 -4.45471e-06 1.05313e-07 -4.13589e-06 -3.18818e-07 -3.3266e-06 -8.09293e-07 -2.10427e-06 -1.22233e-06 -6.0904e-07 -1.49523e-06 1.03163e-06 -1.64067e-06 2.6605e-06 -1.62887e-06 4.09078e-06 -1.43029e-06 5.2583e-06 -1.16752e-06 6.21286e-06 -9.54553e-07 7.04638e-06 -8.33527e-07 7.77594e-06 -7.29557e-07 8.17194e-06 -3.96004e-07 8.1231e-06 4.88482e-08 7.93614e-06 1.86961e-07 7.81928e-06 1.16859e-07 7.73826e-06 8.10131e-08 7.77624e-06 -3.79744e-08 8.00026e-06 -2.24019e-07 8.42107e-06 -4.20817e-07 8.91101e-06 -4.89937e-07 9.31534e-06 -4.04329e-07 9.4626e-06 -1.47265e-07 9.29116e-06 1.71439e-07 8.7958e-06 4.9536e-07 8.05583e-06 7.39972e-07 7.21787e-06 8.37967e-07 6.39661e-06 8.21254e-07 5.65553e-06 7.41081e-07 5.03477e-06 6.20755e-07 4.53829e-06 4.96481e-07 4.16804e-06 3.70256e-07 3.8774e-06 2.90633e-07 3.57207e-06 3.05331e-07 3.20756e-06 3.64518e-07 2.7811e-06 4.26455e-07 2.28636e-06 4.94741e-07 1.78208e-06 5.04275e-07 1.37385e-06 4.08232e-07 1.07029e-06 3.03557e-07 7.95757e-07 2.74537e-07 5.6029e-07 2.35467e-07 3.39556e-07 2.20733e-07 1.4235e-07 1.97206e-07 1.4235e-07 5.83589e-07 -1.23613e-06 1.18611e-06 -1.29296e-06 1.75387e-06 -1.16278e-06 2.3223e-06 -1.23532e-06 2.96837e-06 -1.22012e-06 3.59425e-06 -1.11768e-06 4.09734e-06 -8.89761e-07 4.41798e-06 -4.98879e-07 4.54727e-06 -3.89195e-08 4.47017e-06 4.89005e-07 4.12519e-06 1.08859e-06 3.511e-06 1.61078e-06 2.64961e-06 2.096e-06 1.60922e-06 2.32356e-06 2.82915e-07 2.09513e-06 -1.15103e-06 1.43014e-06 -2.14478e-06 6.64349e-07 -2.54987e-06 6.32587e-07 -2.94414e-06 1.15651e-06 -3.17608e-06 8.52643e-07 -2.86426e-06 -6.90079e-08 -2.48148e-06 -5.25423e-07 -2.15073e-06 -6.97772e-07 -1.90836e-06 -6.32122e-07 -1.94707e-06 -2.79094e-07 -2.05228e-06 -1.7618e-07 -2.13728e-06 -9.50044e-08 -2.34219e-06 2.31646e-07 -2.72312e-06 7.04804e-07 -3.06504e-06 8.5274e-07 -3.29979e-06 6.75892e-07 -3.427e-06 2.86342e-07 -3.41947e-06 -7.40545e-09 -3.3875e-06 2.23007e-09 -3.41157e-06 1.08858e-07 -3.4485e-06 1.79716e-07 -3.37966e-06 4.80933e-08 -3.08412e-06 -3.88686e-07 -2.44521e-06 -1.09733e-06 -1.43921e-06 -1.91705e-06 -1.58328e-07 -2.54555e-06 1.09341e-06 -2.52484e-06 2.06843e-06 -2.12555e-06 2.83386e-06 -1.66026e-06 3.52425e-06 -1.36119e-06 4.24459e-06 -1.35819e-06 4.94969e-06 -1.37793e-06 5.73037e-06 -1.45427e-06 6.60374e-06 -1.48121e-06 7.4358e-06 -1.39321e-06 8.27759e-06 -1.44446e-06 9.14588e-06 -1.38525e-06 1.0006e-05 -1.16297e-06 1.07174e-05 -7.58216e-07 1.11791e-05 -2.6939e-07 1.13519e-05 3.31795e-07 1.11958e-05 1.06187e-06 1.06938e-05 1.7723e-06 9.96511e-06 2.22926e-06 8.84796e-06 2.58856e-06 7.43756e-06 2.59098e-06 5.97173e-06 2.23994e-06 5.00599e-06 1.38875e-06 4.4762e-06 5.15991e-07 4.0432e-06 1.98256e-07 4.0801e-06 -4.52363e-07 4.49205e-06 -1.27662e-06 4.90328e-06 -1.43993e-06 5.38842e-06 -1.3276e-06 5.75629e-06 -1.03555e-06 5.27001e-06 -2.03153e-08 3.57244e-06 1.31117e-06 1.07914e-06 2.49874e-06 -1.53878e-06 3.31846e-06 -3.93508e-06 3.79008e-06 -6.0883e-06 3.89799e-06 -7.95639e-06 3.68738e-06 -9.5021e-06 3.32388e-06 -1.0843e-05 2.97755e-06 -1.19326e-05 2.47476e-06 -1.26443e-05 1.77747e-06 -1.30594e-05 1.14858e-06 -1.31899e-05 4.78366e-07 -1.29512e-05 -1.83147e-07 -1.2611e-05 -4.82844e-07 -1.2172e-05 -6.50909e-07 -1.17009e-05 -4.23804e-07 -1.14702e-05 2.96098e-07 -1.12676e-05 6.43806e-07 -1.11118e-05 9.18434e-07 -1.08857e-05 6.3684e-07 -1.03788e-05 -5.24842e-07 -9.68179e-06 -1.60201e-06 -8.91718e-06 -2.16836e-06 -8.11568e-06 -2.07489e-06 -7.13379e-06 -1.92015e-06 -5.96408e-06 -2.23412e-06 -4.73064e-06 -3.0339e-06 -3.17269e-06 -3.73364e-06 -1.46611e-06 -3.56141e-06 1.16891e-07 -3.14121e-06 1.52889e-06 -2.52085e-06 2.43126e-06 -1.60557e-06 3.18073e-06 -6.81883e-07 3.78954e-06 -2.14588e-07 3.84401e-06 2.25415e-07 4.28955e-06 5.04426e-08 4.99426e-06 -6.00364e-07 4.73896e-06 -3.51162e-07 3.02216e-06 7.23046e-07 4.92889e-07 1.45399e-06 -1.82078e-06 1.87513e-06 -3.81006e-06 2.68126e-06 -5.31678e-06 3.31256e-06 -6.57336e-06 3.45681e-06 -7.70209e-06 3.11583e-06 -8.65562e-06 2.60648e-06 -9.41626e-06 2.09093e-06 -1.00056e-05 1.65775e-06 -1.0463e-05 1.32611e-06 -1.08316e-05 1.1088e-06 -1.115e-05 9.89777e-07 -1.14476e-05 9.21815e-07 -1.17238e-05 8.71396e-07 -1.19363e-05 7.76478e-07 -1.20287e-05 5.63335e-07 -1.19905e-05 2.87593e-07 -1.18636e-05 1.06215e-07 -1.1697e-05 4.63501e-09 -1.14808e-05 -1.21807e-07 -1.11895e-05 -2.5652e-07 -1.08265e-05 -4.88942e-07 -1.03773e-05 -6.85214e-07 -9.81561e-06 -7.5091e-07 -9.17641e-06 -1.11012e-06 -8.41359e-06 -1.29167e-06 -7.6611e-06 -1.23267e-06 -6.69244e-06 -1.70141e-06 -5.609e-06 -1.81655e-06 -4.54919e-06 -1.81223e-06 -3.39892e-06 -1.92895e-06 -2.32504e-06 -1.77934e-06 -1.33581e-06 -1.61075e-06 -4.50408e-07 -1.43403e-06 2.8409e-07 -1.22444e-06 8.3736e-07 -1.00938e-06 1.17464e-06 -7.27193e-07 1.23583e-06 -3.29992e-07 9.08005e-07 2.85693e-07 1.37822e-07 9.87948e-07 -8.23862e-07 1.42601e-06 -1.80227e-06 1.56081e-06 -2.68078e-06 1.48949e-06 -3.40119e-06 1.26951e-06 -3.87131e-06 8.22736e-07 -3.94562e-06 1.79625e-07 -3.61879e-06 -6.45646e-07 -2.71575e-06 -1.71234e-06 -1.25949e-06 -2.67859e-06 6.07379e-07 -3.3621e-06 2.74547e-06 -3.77876e-06 4.97405e-06 -3.85746e-06 7.1838e-06 -3.64003e-06 9.43581e-06 -3.41953e-06 1.18001e-05 -3.3188e-06 1.40975e-05 -3.13099e-06 1.61058e-05 -2.7378e-06 1.76271e-05 -1.91729e-06 1.81753e-05 -4.99399e-07 1.70715e-05 1.29077e-06 1.49978e-05 2.1905e-06 1.32768e-05 1.80209e-06 1.23349e-05 9.03913e-07 1.19978e-05 1.13029e-07 1.20592e-05 -4.82165e-07 1.21938e-05 -6.24566e-07 1.21e-05 -3.10484e-07 1.16354e-05 3.17314e-07 1.08102e-05 9.96657e-07 9.77112e-06 1.53441e-06 8.66401e-06 1.84708e-06 7.62285e-06 1.87913e-06 6.66924e-06 1.77486e-06 5.80957e-06 1.60075e-06 5.06636e-06 1.36396e-06 4.46657e-06 1.09627e-06 4.06607e-06 7.70756e-07 3.8283e-06 5.28405e-07 3.67653e-06 4.571e-07 3.57495e-06 4.66099e-07 3.48979e-06 5.11615e-07 3.38302e-06 6.01509e-07 3.14975e-06 7.37545e-07 2.71034e-06 8.47644e-07 2.06663e-06 9.4726e-07 1.42492e-06 9.16245e-07 9.95613e-07 6.64778e-07 6.40249e-07 5.76097e-07 2.65598e-07 5.71858e-07 4.07947e-07 3.5239e-07 -1.58851e-06 7.1812e-07 -1.65869e-06 1.19311e-06 -1.63777e-06 1.76559e-06 -1.80781e-06 2.42963e-06 -1.88415e-06 3.0724e-06 -1.76046e-06 3.57004e-06 -1.3874e-06 3.93272e-06 -8.61562e-07 4.11883e-06 -2.2503e-07 4.0456e-06 5.62234e-07 3.76574e-06 1.36845e-06 3.33767e-06 2.03886e-06 2.82325e-06 2.61042e-06 2.12739e-06 3.01941e-06 9.97082e-07 3.22545e-06 -4.40293e-07 2.86752e-06 -1.58547e-06 1.80952e-06 -2.07252e-06 1.11963e-06 -2.10246e-06 1.18646e-06 -1.95814e-06 7.08322e-07 -1.51525e-06 -5.11902e-07 -9.01262e-07 -1.13941e-06 -4.65944e-07 -1.13309e-06 -3.20076e-07 -7.7799e-07 -6.42194e-07 4.30243e-08 -1.33149e-06 5.13114e-07 -2.00456e-06 5.78066e-07 -2.41576e-06 6.42844e-07 -2.78988e-06 1.07892e-06 -3.15196e-06 1.21482e-06 -3.32026e-06 8.44192e-07 -3.49696e-06 4.63038e-07 -3.59915e-06 9.47843e-08 -3.48085e-06 -1.16065e-07 -3.32557e-06 -4.64217e-08 -3.23969e-06 9.38294e-08 -3.1009e-06 -9.06909e-08 -2.803e-06 -6.8659e-07 -2.26358e-06 -1.63675e-06 -1.4737e-06 -2.70692e-06 -5.29721e-07 -3.48953e-06 3.83133e-07 -3.4377e-06 9.83115e-07 -2.72553e-06 1.38272e-06 -2.05986e-06 1.90932e-06 -1.88779e-06 2.52751e-06 -1.97638e-06 3.08152e-06 -1.93194e-06 3.71359e-06 -2.08634e-06 4.48728e-06 -2.2549e-06 5.3231e-06 -2.22902e-06 6.25043e-06 -2.3718e-06 7.1756e-06 -2.31042e-06 8.13929e-06 -2.12666e-06 9.05022e-06 -1.66914e-06 9.7993e-06 -1.01847e-06 1.04223e-05 -2.91172e-07 1.08487e-05 6.35451e-07 1.10736e-05 1.54738e-06 1.09366e-05 2.36625e-06 1.03919e-05 3.13331e-06 9.54111e-06 3.44175e-06 8.63579e-06 3.14526e-06 7.79947e-06 2.22507e-06 6.74902e-06 1.56644e-06 6.01777e-06 9.29506e-07 5.69151e-06 -1.26098e-07 5.72986e-06 -1.31498e-06 5.85357e-06 -1.56365e-06 5.26663e-06 -7.40662e-07 3.25486e-06 9.76216e-07 4.93577e-07 2.74097e-06 -2.30219e-06 4.10693e-06 -5.03581e-06 5.23236e-06 -7.50519e-06 5.78784e-06 -9.5305e-06 5.81539e-06 -1.11696e-05 5.53707e-06 -1.26409e-05 5.15871e-06 -1.39325e-05 4.61546e-06 -1.4994e-05 4.03905e-06 -1.57911e-05 3.27186e-06 -1.63244e-05 2.31081e-06 -1.66161e-05 1.44021e-06 -1.66565e-05 5.18766e-07 -1.64602e-05 -3.79403e-07 -1.61256e-05 -8.17401e-07 -1.55397e-05 -1.23682e-06 -1.47885e-05 -1.17506e-06 -1.39962e-05 -4.96151e-07 -1.31502e-05 -2.02244e-07 -1.22309e-05 -7.81948e-10 -1.14064e-05 -1.87738e-07 -1.08444e-05 -1.08683e-06 -1.06685e-05 -1.77785e-06 -1.06962e-05 -2.1407e-06 -1.05876e-05 -2.18346e-06 -1.00641e-05 -2.44367e-06 -9.30443e-06 -2.99379e-06 -8.49294e-06 -3.84538e-06 -7.59555e-06 -4.63104e-06 -6.31797e-06 -4.83899e-06 -4.8766e-06 -4.58258e-06 -3.46805e-06 -3.9294e-06 -2.18882e-06 -2.8848e-06 -1.22218e-06 -1.64853e-06 -6.89315e-07 -7.47451e-07 -4.03403e-07 -6.04964e-08 -7.0653e-07 3.53569e-07 -1.88232e-06 5.75421e-07 -3.37252e-06 1.13905e-06 -4.52141e-06 1.87194e-06 -5.76496e-06 2.69753e-06 -7.22856e-06 3.33873e-06 -8.40218e-06 3.85489e-06 -9.1735e-06 4.08387e-06 -9.65335e-06 3.93667e-06 -1.0031e-05 3.49351e-06 -1.03553e-05 2.93073e-06 -1.0639e-05 2.37469e-06 -1.08885e-05 1.90716e-06 -1.11298e-05 1.56741e-06 -1.13662e-05 1.34521e-06 -1.1569e-05 1.1926e-06 -1.17538e-05 1.10662e-06 -1.19121e-05 1.02969e-06 -1.20032e-05 8.67571e-07 -1.20696e-05 6.29709e-07 -1.2117e-05 3.3499e-07 -1.20697e-05 5.89548e-08 -1.1891e-05 -1.74046e-07 -1.16555e-05 -3.57288e-07 -1.13751e-05 -5.36974e-07 -1.10547e-05 -8.09342e-07 -1.06296e-05 -1.11025e-06 -1.00535e-05 -1.32704e-06 -9.48758e-06 -1.67605e-06 -8.74381e-06 -2.03544e-06 -7.93898e-06 -2.03751e-06 -7.00184e-06 -2.63854e-06 -5.80561e-06 -3.01278e-06 -4.6549e-06 -2.96295e-06 -3.38271e-06 -3.20114e-06 -2.1635e-06 -2.99855e-06 -1.02489e-06 -2.74937e-06 9.44773e-08 -2.5534e-06 1.14971e-06 -2.27968e-06 1.98611e-06 -1.84578e-06 2.40486e-06 -1.14594e-06 2.17209e-06 -9.72276e-08 1.20799e-06 1.2498e-06 -1.20505e-07 2.31644e-06 -1.4264e-06 2.7319e-06 -2.55411e-06 2.68853e-06 -3.47409e-06 2.40947e-06 -4.20346e-06 1.99888e-06 -4.72435e-06 1.34363e-06 -4.89538e-06 3.50655e-07 -4.55258e-06 -9.88445e-07 -3.61113e-06 -2.65378e-06 -2.04411e-06 -4.24562e-06 -9.68946e-08 -5.30931e-06 1.9664e-06 -5.84205e-06 4.13167e-06 -6.02272e-06 6.40461e-06 -5.91297e-06 8.65236e-06 -5.66728e-06 1.0919e-05 -5.58544e-06 1.33446e-05 -5.55663e-06 1.54582e-05 -4.85135e-06 1.71362e-05 -3.5953e-06 1.91292e-05 -2.49244e-06 2.12367e-05 -8.16644e-07 2.18536e-05 1.57354e-06 2.00085e-05 3.64716e-06 1.71486e-05 3.76383e-06 1.48431e-05 2.41856e-06 1.3548e-05 8.12959e-07 1.30324e-05 -1.09028e-07 1.26423e-05 7.96353e-08 1.19127e-05 1.04693e-06 1.08236e-05 2.0858e-06 9.54907e-06 2.80889e-06 8.28009e-06 3.11607e-06 7.14038e-06 3.01884e-06 6.11574e-06 2.7995e-06 5.15697e-06 2.55952e-06 4.31282e-06 2.20811e-06 3.67028e-06 1.73882e-06 3.22701e-06 1.21403e-06 2.90466e-06 8.50749e-07 2.68078e-06 6.80977e-07 2.53776e-06 6.09125e-07 2.42778e-06 6.2159e-07 2.26313e-06 7.66167e-07 1.99297e-06 1.0077e-06 1.65084e-06 1.18978e-06 1.37091e-06 1.22719e-06 1.19025e-06 1.09691e-06 1.06143e-06 7.9359e-07 8.1248e-07 8.25049e-07 3.74135e-07 1.0102e-06 7.82082e-07 1.85251e-07 -1.77377e-06 4.6727e-07 -1.94071e-06 9.48925e-07 -2.11942e-06 1.57562e-06 -2.43451e-06 2.25761e-06 -2.56614e-06 2.87988e-06 -2.38272e-06 3.40662e-06 -1.91414e-06 3.74895e-06 -1.20389e-06 3.88588e-06 -3.61964e-07 3.80429e-06 6.4383e-07 3.58975e-06 1.58299e-06 3.23465e-06 2.39396e-06 2.73647e-06 3.10859e-06 2.10741e-06 3.64847e-06 1.36101e-06 3.97185e-06 4.50694e-07 3.77784e-06 -5.80569e-07 2.84079e-06 -1.29426e-06 1.83333e-06 -1.22842e-06 1.12062e-06 -7.59842e-07 2.39739e-07 -2.13042e-07 -1.0587e-06 3.34384e-07 -1.68684e-06 7.17808e-07 -1.51651e-06 9.07004e-07 -9.67186e-07 7.84275e-07 1.65753e-07 1.08275e-07 1.18911e-06 -1.02221e-06 1.70855e-06 -1.85129e-06 1.47192e-06 -2.24951e-06 1.47714e-06 -2.74174e-06 1.70705e-06 -3.16837e-06 1.27083e-06 -3.26263e-06 5.573e-07 -3.26455e-06 9.66971e-08 -3.17474e-06 -2.05874e-07 -3.01509e-06 -2.06068e-07 -2.9138e-06 -7.46244e-09 -2.85251e-06 -1.51982e-07 -2.72475e-06 -8.14352e-07 -2.41234e-06 -1.94916e-06 -1.88552e-06 -3.23375e-06 -1.27431e-06 -4.10074e-06 -7.82179e-07 -3.92983e-06 -5.0601e-07 -3.0017e-06 -2.0987e-07 -2.356e-06 1.54577e-07 -2.25224e-06 5.74389e-07 -2.39619e-06 1.07311e-06 -2.43066e-06 1.65525e-06 -2.66848e-06 2.28577e-06 -2.88542e-06 3.0474e-06 -2.99065e-06 3.92767e-06 -3.25207e-06 4.84698e-06 -3.22973e-06 5.93657e-06 -3.21625e-06 6.94662e-06 -2.67919e-06 7.8443e-06 -1.91615e-06 8.58644e-06 -1.03331e-06 9.15939e-06 6.24951e-08 9.5478e-06 1.15897e-06 9.64567e-06 2.26838e-06 9.63202e-06 3.14695e-06 9.33531e-06 3.73846e-06 8.86702e-06 3.61354e-06 7.87169e-06 3.22041e-06 6.8826e-06 2.55552e-06 6.18693e-06 1.62517e-06 5.93791e-06 1.22928e-07 5.90878e-06 -1.28585e-06 4.61369e-06 -2.68557e-07 1.75593e-06 2.11709e-06 -1.62439e-06 4.35654e-06 -4.71621e-06 5.83279e-06 -7.47385e-06 6.86457e-06 -9.70302e-06 7.46154e-06 -1.15359e-05 7.62068e-06 -1.30177e-05 7.29726e-06 -1.42064e-05 6.72571e-06 -1.51583e-05 6.11068e-06 -1.59397e-05 5.39686e-06 -1.65332e-05 4.63249e-06 -1.70128e-05 3.7515e-06 -1.73501e-05 2.6481e-06 -1.75136e-05 1.60369e-06 -1.7579e-05 5.84119e-07 -1.75344e-05 -4.23967e-07 -1.72847e-05 -1.06711e-06 -1.68828e-05 -1.63869e-06 -1.6297e-05 -1.76092e-06 -1.53919e-05 -1.40124e-06 -1.45152e-05 -1.07886e-06 -1.36351e-05 -8.80959e-07 -1.29293e-05 -8.93532e-07 -1.27158e-05 -1.3003e-06 -1.26311e-05 -1.86252e-06 -1.23959e-05 -2.37592e-06 -1.18994e-05 -2.67994e-06 -1.14267e-05 -2.91643e-06 -1.10232e-05 -3.39722e-06 -1.05451e-05 -4.32347e-06 -1.01956e-05 -4.9806e-06 -9.66878e-06 -5.3658e-06 -8.94104e-06 -5.31032e-06 -8.12352e-06 -4.74691e-06 -7.34759e-06 -3.66073e-06 -6.67418e-06 -2.32194e-06 -6.15397e-06 -1.26766e-06 -6.03775e-06 -1.76715e-07 -6.08286e-06 3.9868e-07 -6.331e-06 8.23557e-07 -6.9641e-06 1.77215e-06 -7.72925e-06 2.63708e-06 -8.43067e-06 3.39896e-06 -9.03609e-06 3.94415e-06 -9.44012e-06 4.25892e-06 -9.6396e-06 4.28336e-06 -9.69138e-06 3.98845e-06 -9.72999e-06 3.53213e-06 -9.80663e-06 3.00736e-06 -9.91137e-06 2.47943e-06 -1.00295e-05 2.02524e-06 -1.0175e-05 1.71299e-06 -1.0358e-05 1.52821e-06 -1.05404e-05 1.37494e-06 -1.07003e-05 1.26656e-06 -1.08817e-05 1.21104e-06 -1.10495e-05 1.03541e-06 -1.1175e-05 7.55232e-07 -1.13061e-05 4.66078e-07 -1.13802e-05 1.32995e-07 -1.13943e-05 -1.59958e-07 -1.12841e-05 -4.67418e-07 -1.10225e-05 -7.98616e-07 -1.07122e-05 -1.11959e-06 -1.03752e-05 -1.44729e-06 -9.90578e-06 -1.79645e-06 -9.37279e-06 -2.20904e-06 -8.69336e-06 -2.71486e-06 -7.83051e-06 -2.90036e-06 -6.97492e-06 -3.49413e-06 -5.79854e-06 -4.18916e-06 -4.63023e-06 -4.13125e-06 -3.42581e-06 -4.40556e-06 -2.23267e-06 -4.19169e-06 -1.15323e-06 -3.82881e-06 -6.89131e-08 -3.63771e-06 1.04604e-06 -3.39463e-06 2.0436e-06 -2.84334e-06 2.5461e-06 -1.64844e-06 2.26101e-06 1.87861e-07 1.28612e-06 2.22468e-06 1.43771e-07 3.45879e-06 -8.77668e-07 3.75334e-06 -1.91088e-06 3.72174e-06 -2.85062e-06 3.34921e-06 -3.5735e-06 2.72176e-06 -3.97904e-06 1.74916e-06 -3.99211e-06 3.63729e-07 -3.68404e-06 -1.29651e-06 -2.88745e-06 -3.45037e-06 -1.50879e-06 -5.62428e-06 4.21427e-07 -7.23953e-06 2.49785e-06 -7.91848e-06 4.45559e-06 -7.98046e-06 6.44997e-06 -7.90735e-06 8.53622e-06 -7.75353e-06 1.03349e-05 -7.38408e-06 1.22876e-05 -7.50938e-06 1.50506e-05 -7.61433e-06 1.7424e-05 -5.96871e-06 1.85963e-05 -3.66476e-06 2.00884e-05 -2.30869e-06 2.23214e-05 -6.59475e-07 2.35421e-05 2.4264e-06 2.21358e-05 5.1702e-06 1.91175e-05 5.43685e-06 1.63421e-05 3.58833e-06 1.44994e-05 1.7337e-06 1.33682e-05 1.21081e-06 1.23404e-05 2.07475e-06 1.10208e-05 3.40533e-06 9.56855e-06 4.26119e-06 8.24547e-06 4.43915e-06 7.05032e-06 4.21399e-06 5.98864e-06 3.86119e-06 5.0953e-06 3.45286e-06 4.33377e-06 2.96964e-06 3.65312e-06 2.41946e-06 3.0281e-06 1.83905e-06 2.43765e-06 1.4412e-06 1.98258e-06 1.13605e-06 1.697e-06 8.94713e-07 1.52535e-06 7.93231e-07 1.33597e-06 9.55555e-07 1.18063e-06 1.16303e-06 1.12355e-06 1.24685e-06 1.19834e-06 1.15241e-06 1.23274e-06 1.06251e-06 1.11624e-06 9.10092e-07 8.80746e-07 1.06054e-06 4.82409e-07 1.40854e-06 1.26449e-06 8.60661e-08 -1.85983e-06 2.70855e-07 -2.1255e-06 6.51857e-07 -2.50042e-06 1.14693e-06 -2.92958e-06 1.70266e-06 -3.12187e-06 2.22395e-06 -2.904e-06 2.66842e-06 -2.35861e-06 2.9841e-06 -1.51957e-06 3.15609e-06 -5.33952e-07 3.24112e-06 5.5879e-07 3.16477e-06 1.65934e-06 2.8602e-06 2.69854e-06 2.42228e-06 3.54652e-06 1.9522e-06 4.11854e-06 1.4446e-06 4.47945e-06 7.10972e-07 4.51147e-06 -1.8552e-07 3.73728e-06 -7.26681e-07 2.37449e-06 -6.65546e-07 1.05949e-06 -1.70902e-07 -2.54904e-07 3.30895e-07 -1.5605e-06 7.13055e-07 -2.069e-06 1.02077e-06 -1.82423e-06 1.19433e-06 -1.14074e-06 1.2821e-06 7.79847e-08 1.07538e-06 1.39584e-06 1.96336e-07 2.58759e-06 -9.61545e-07 2.62981e-06 -1.60533e-06 2.12093e-06 -1.96871e-06 2.07042e-06 -2.51344e-06 1.81556e-06 -2.89228e-06 9.36138e-07 -2.95939e-06 1.63808e-07 -2.90335e-06 -2.61917e-07 -2.81052e-06 -2.98892e-07 -2.72408e-06 -9.39001e-08 -2.68497e-06 -1.91099e-07 -2.6391e-06 -8.60216e-07 -2.47232e-06 -2.11594e-06 -2.18237e-06 -3.5237e-06 -1.83725e-06 -4.44585e-06 -1.6191e-06 -4.14797e-06 -1.49055e-06 -3.13025e-06 -1.32415e-06 -2.5224e-06 -1.13469e-06 -2.4417e-06 -9.74514e-07 -2.55636e-06 -6.64935e-07 -2.74024e-06 -3.11452e-07 -3.02196e-06 2.68563e-07 -3.46543e-06 9.60417e-07 -3.6825e-06 1.77865e-06 -4.07031e-06 2.74764e-06 -4.19871e-06 3.97854e-06 -4.44716e-06 5.13472e-06 -3.83537e-06 6.12053e-06 -2.90196e-06 6.90974e-06 -1.82252e-06 7.46926e-06 -4.97026e-07 7.79122e-06 8.37012e-07 8.02477e-06 2.03483e-06 8.04562e-06 3.12611e-06 7.88102e-06 3.90306e-06 7.37667e-06 4.1179e-06 6.59362e-06 4.00345e-06 5.84528e-06 3.30387e-06 5.4093e-06 2.06115e-06 5.27499e-06 2.57244e-07 3.63893e-06 3.50214e-07 5.63553e-07 2.80682e-06 -2.89816e-06 5.57881e-06 -5.90413e-06 7.3625e-06 -8.51e-06 8.43866e-06 -1.06247e-05 8.9793e-06 -1.2101e-05 8.93778e-06 -1.31278e-05 8.64755e-06 -1.38387e-05 8.00817e-06 -1.43906e-05 7.27757e-06 -1.47503e-05 6.47041e-06 -1.50139e-05 5.66044e-06 -1.51569e-05 4.77544e-06 -1.51886e-05 3.7832e-06 -1.52746e-05 2.73416e-06 -1.54195e-05 1.74854e-06 -1.55275e-05 6.92153e-07 -1.5767e-05 -1.84527e-07 -1.58081e-05 -1.026e-06 -1.57543e-05 -1.69251e-06 -1.56259e-05 -1.88928e-06 -1.51228e-05 -1.90434e-06 -1.44344e-05 -1.76729e-06 -1.36587e-05 -1.65662e-06 -1.27957e-05 -1.75652e-06 -1.2127e-05 -1.96904e-06 -1.14979e-05 -2.49159e-06 -1.08252e-05 -3.04862e-06 -1.03056e-05 -3.19959e-06 -9.97202e-06 -3.24996e-06 -9.72908e-06 -3.64016e-06 -9.74797e-06 -4.30458e-06 -9.76722e-06 -4.96135e-06 -9.69681e-06 -5.43621e-06 -9.64586e-06 -5.36127e-06 -9.50252e-06 -4.89025e-06 -9.24438e-06 -3.91887e-06 -8.73619e-06 -2.83013e-06 -8.21559e-06 -1.78827e-06 -7.69128e-06 -7.01021e-07 -7.46774e-06 1.75139e-07 -7.54634e-06 9.02158e-07 -7.62443e-06 1.85024e-06 -7.77458e-06 2.78724e-06 -7.87449e-06 3.49886e-06 -7.88393e-06 3.95359e-06 -7.76759e-06 4.14259e-06 -7.56392e-06 4.07968e-06 -7.34654e-06 3.77107e-06 -7.1767e-06 3.36229e-06 -7.0944e-06 2.92506e-06 -7.10969e-06 2.49473e-06 -7.2277e-06 2.14325e-06 -7.4142e-06 1.89949e-06 -7.64578e-06 1.75979e-06 -7.93858e-06 1.66774e-06 -8.25105e-06 1.57903e-06 -8.50968e-06 1.46967e-06 -8.78775e-06 1.31347e-06 -9.09448e-06 1.06197e-06 -9.35694e-06 7.28538e-07 -9.61218e-06 3.88236e-07 -9.79801e-06 2.58728e-08 -9.89956e-06 -3.65876e-07 -9.89311e-06 -8.0506e-07 -9.7222e-06 -1.29051e-06 -9.49161e-06 -1.67788e-06 -9.18283e-06 -2.10523e-06 -8.77245e-06 -2.61941e-06 -8.2627e-06 -3.22461e-06 -7.42898e-06 -3.73408e-06 -6.67918e-06 -4.24394e-06 -5.65418e-06 -5.21415e-06 -4.44487e-06 -5.34056e-06 -3.28829e-06 -5.56215e-06 -2.12015e-06 -5.35983e-06 -1.02684e-06 -4.92212e-06 1.46423e-07 -4.81097e-06 1.4142e-06 -4.66241e-06 2.53238e-06 -3.96153e-06 3.09658e-06 -2.21263e-06 2.8747e-06 4.09736e-07 2.10552e-06 2.99386e-06 1.25797e-06 4.30634e-06 3.62035e-07 4.64928e-06 -5.66257e-07 4.65003e-06 -1.51757e-06 4.30052e-06 -2.27e-06 3.47419e-06 -2.65628e-06 2.13544e-06 -2.61217e-06 3.19621e-07 -2.25467e-06 -1.65401e-06 -1.63586e-06 -4.06918e-06 -6.50058e-07 -6.61008e-06 7.90806e-07 -8.6804e-06 2.74451e-06 -9.87218e-06 4.68034e-06 -9.91629e-06 6.27697e-06 -9.50398e-06 8.15753e-06 -9.6341e-06 1.03753e-05 -9.60184e-06 1.1983e-05 -9.11714e-06 1.37581e-05 -9.38944e-06 1.66791e-05 -8.88964e-06 1.8885e-05 -5.87064e-06 1.97793e-05 -3.20301e-06 2.11497e-05 -2.02989e-06 2.32679e-05 3.08241e-07 2.40672e-05 4.37086e-06 2.2391e-05 7.1131e-06 1.93666e-05 6.61271e-06 1.6598e-05 4.50226e-06 1.44824e-05 3.32638e-06 1.27502e-05 3.80703e-06 1.10126e-05 5.14287e-06 9.10184e-06 6.17197e-06 7.2946e-06 6.24639e-06 6.00778e-06 5.5008e-06 5.31927e-06 4.5497e-06 4.82264e-06 3.94949e-06 4.30307e-06 3.48921e-06 3.74352e-06 2.97902e-06 3.08971e-06 2.49285e-06 2.43273e-06 2.09818e-06 1.8837e-06 1.68507e-06 1.53107e-06 1.24735e-06 1.35905e-06 9.65249e-07 1.22553e-06 1.08908e-06 1.13816e-06 1.2504e-06 1.13206e-06 1.25295e-06 1.14971e-06 1.13476e-06 1.07741e-06 1.13481e-06 8.87352e-07 1.10015e-06 7.36225e-07 1.21167e-06 4.39237e-07 1.70553e-06 1.70373e-06 -6.72763e-08 -1.79256e-06 -8.95657e-08 -2.10321e-06 6.05359e-08 -2.65052e-06 3.19455e-07 -3.1885e-06 6.75836e-07 -3.47825e-06 1.07671e-06 -3.30488e-06 1.46688e-06 -2.74878e-06 1.80211e-06 -1.85481e-06 2.0712e-06 -8.03043e-07 2.23005e-06 3.99943e-07 2.21132e-06 1.67807e-06 2.06046e-06 2.84941e-06 1.83328e-06 3.77369e-06 1.49183e-06 4.45999e-06 1.05816e-06 4.91312e-06 5.85258e-07 4.98436e-06 5.77512e-08 4.26479e-06 -3.74024e-07 2.80626e-06 -3.88782e-07 1.07425e-06 -5.77132e-08 -5.85972e-07 3.4024e-08 -1.65224e-06 2.07827e-08 -2.05576e-06 1.62781e-07 -1.96623e-06 5.17775e-07 -1.49574e-06 8.83356e-07 -2.87597e-07 1.11439e-06 1.1648e-06 7.56813e-07 2.94517e-06 -2.13297e-07 3.59991e-06 -1.09348e-06 3.00111e-06 -1.5102e-06 2.48714e-06 -1.86764e-06 2.173e-06 -2.30579e-06 1.37429e-06 -2.54402e-06 4.02034e-07 -2.57709e-06 -2.28843e-07 -2.49083e-06 -3.85152e-07 -2.36921e-06 -2.15522e-07 -2.31252e-06 -2.47786e-07 -2.32073e-06 -8.52005e-07 -2.36242e-06 -2.07425e-06 -2.3963e-06 -3.48982e-06 -2.38054e-06 -4.46162e-06 -2.40954e-06 -4.11897e-06 -2.46984e-06 -3.06995e-06 -2.57427e-06 -2.41797e-06 -2.68105e-06 -2.33493e-06 -2.7445e-06 -2.49291e-06 -2.65949e-06 -2.82526e-06 -2.33593e-06 -3.34552e-06 -1.93431e-06 -3.86705e-06 -1.35883e-06 -4.25799e-06 -5.09102e-07 -4.92003e-06 6.17358e-07 -5.32517e-06 1.8726e-06 -5.7024e-06 3.11494e-06 -5.07772e-06 4.22671e-06 -4.01373e-06 5.20649e-06 -2.80229e-06 5.91278e-06 -1.20332e-06 6.38216e-06 3.67636e-07 6.56566e-06 1.85133e-06 6.53321e-06 3.15856e-06 6.31951e-06 4.11676e-06 5.73181e-06 4.7056e-06 5.17212e-06 4.56314e-06 4.60006e-06 3.87592e-06 4.13639e-06 2.52482e-06 2.69567e-06 1.69797e-06 -4.01448e-07 3.44733e-06 -3.92159e-06 6.32695e-06 -6.7764e-06 8.43362e-06 -8.88055e-06 9.46665e-06 -1.0505e-05 1.00631e-05 -1.15615e-05 1.00358e-05 -1.21901e-05 9.5664e-06 -1.23621e-05 8.81948e-06 -1.23329e-05 7.97898e-06 -1.21514e-05 7.09608e-06 -1.18989e-05 6.21795e-06 -1.16176e-05 5.37918e-06 -1.13992e-05 4.557e-06 -1.11879e-05 3.57188e-06 -1.09987e-05 2.54502e-06 -1.10029e-05 1.75271e-06 -1.10692e-05 7.5847e-07 -1.1262e-05 8.22443e-09 -1.14281e-05 -8.59864e-07 -1.16354e-05 -1.48521e-06 -1.17877e-05 -1.73702e-06 -1.18257e-05 -1.86632e-06 -1.15645e-05 -2.02847e-06 -1.09927e-05 -2.22847e-06 -1.03352e-05 -2.41399e-06 -9.65961e-06 -2.64461e-06 -9.08364e-06 -3.06756e-06 -8.72935e-06 -3.40292e-06 -8.46942e-06 -3.45952e-06 -8.16636e-06 -3.55302e-06 -7.91331e-06 -3.89321e-06 -7.76113e-06 -4.45677e-06 -7.5994e-06 -5.12308e-06 -7.73118e-06 -5.30443e-06 -8.03143e-06 -5.06102e-06 -8.17244e-06 -4.74924e-06 -8.07284e-06 -4.01848e-06 -7.84641e-06 -3.05655e-06 -7.43723e-06 -2.19746e-06 -6.98194e-06 -1.15631e-06 -6.68356e-06 -1.23243e-07 -6.49908e-06 7.17688e-07 -6.33253e-06 1.68368e-06 -6.10439e-06 2.5591e-06 -5.80638e-06 3.20085e-06 -5.44693e-06 3.59415e-06 -5.0671e-06 3.76275e-06 -4.67662e-06 3.6892e-06 -4.34111e-06 3.43556e-06 -4.08252e-06 3.10371e-06 -3.9084e-06 2.75094e-06 -3.83415e-06 2.42048e-06 -3.86256e-06 2.17166e-06 -3.94806e-06 1.98499e-06 -4.06038e-06 1.87211e-06 -4.22719e-06 1.83456e-06 -4.50726e-06 1.8591e-06 -4.81483e-06 1.77724e-06 -5.15279e-06 1.65143e-06 -5.56504e-06 1.47422e-06 -5.97344e-06 1.13693e-06 -6.34854e-06 7.63343e-07 -6.71273e-06 3.90064e-07 -6.97953e-06 -9.90802e-08 -7.24306e-06 -5.41526e-07 -7.42682e-06 -1.10675e-06 -7.47523e-06 -1.62948e-06 -7.42745e-06 -2.15301e-06 -7.23474e-06 -2.81212e-06 -7.03416e-06 -3.42519e-06 -6.51219e-06 -4.25605e-06 -5.96628e-06 -4.78985e-06 -5.29994e-06 -5.88049e-06 -4.18692e-06 -6.45359e-06 -3.10769e-06 -6.64137e-06 -2.06526e-06 -6.40227e-06 -1.08501e-06 -5.90237e-06 2.74441e-07 -6.17042e-06 1.98679e-06 -6.37475e-06 3.4565e-06 -5.43124e-06 4.17894e-06 -2.93508e-06 4.06779e-06 5.20886e-07 3.50155e-06 3.56011e-06 2.82485e-06 4.98304e-06 2.03364e-06 5.44049e-06 1.12364e-06 5.56003e-06 3.72594e-07 5.05157e-06 -8.04425e-08 3.92723e-06 -3.09081e-07 2.36408e-06 -3.06072e-07 3.16613e-07 -8.50645e-08 -1.87502e-06 3.72927e-07 -4.52717e-06 1.045e-06 -7.28216e-06 1.8792e-06 -9.51459e-06 3.00392e-06 -1.09969e-05 4.66265e-06 -1.1575e-05 6.33863e-06 -1.118e-05 7.68984e-06 -1.09853e-05 9.55142e-06 -1.14634e-05 1.16097e-05 -1.11754e-05 1.30904e-05 -1.08702e-05 1.54839e-05 -1.12831e-05 1.86669e-05 -9.05365e-06 2.01823e-05 -4.71841e-06 2.07071e-05 -2.55469e-06 2.22056e-05 -1.1903e-06 2.38541e-05 2.72243e-06 2.382e-05 7.14714e-06 2.1564e-05 8.86876e-06 1.85165e-05 7.54978e-06 1.59429e-05 5.89993e-06 1.36698e-05 6.08019e-06 1.15733e-05 7.23929e-06 9.74422e-06 8.00108e-06 7.97535e-06 8.01527e-06 6.39641e-06 7.07973e-06 5.27331e-06 5.67281e-06 4.62579e-06 4.59701e-06 4.15255e-06 3.96245e-06 3.62454e-06 3.50702e-06 3.07678e-06 3.04061e-06 2.58838e-06 2.58658e-06 2.11427e-06 2.15918e-06 1.66521e-06 1.69641e-06 1.28007e-06 1.35038e-06 9.73014e-07 1.39613e-06 8.22323e-07 1.40109e-06 8.09604e-07 1.26567e-06 8.04389e-07 1.13998e-06 7.92705e-07 1.14649e-06 6.41075e-07 1.25178e-06 4.91813e-07 1.36093e-06 3.38073e-07 1.85927e-06 2.0418e-06 -2.88339e-07 -1.50422e-06 -5.57009e-07 -1.83454e-06 -6.78945e-07 -2.52859e-06 -6.66166e-07 -3.20128e-06 -5.01347e-07 -3.64307e-06 -1.94921e-07 -3.61131e-06 1.61541e-07 -3.10524e-06 5.30455e-07 -2.22372e-06 8.63745e-07 -1.13633e-06 1.09138e-06 1.72313e-07 1.17674e-06 1.5927e-06 1.1918e-06 2.83434e-06 1.11439e-06 3.85111e-06 8.96426e-07 4.67795e-06 6.3899e-07 5.17056e-06 3.32629e-07 5.29073e-06 -1.19357e-07 4.71677e-06 -4.28022e-07 3.11493e-06 -4.93537e-07 1.13976e-06 -6.09616e-07 -4.69893e-07 -1.0803e-06 -1.18155e-06 -1.3237e-06 -1.81236e-06 -1.08166e-06 -2.20827e-06 -5.90564e-07 -1.98683e-06 -5.64479e-08 -8.21713e-07 4.23179e-07 6.85173e-07 6.79895e-07 2.68846e-06 1.8091e-07 4.0989e-06 -6.47664e-07 3.82968e-06 -1.17087e-06 3.01035e-06 -1.45635e-06 2.45848e-06 -1.74393e-06 1.66187e-06 -1.96554e-06 6.23653e-07 -2.04055e-06 -1.53842e-07 -1.97791e-06 -4.4779e-07 -1.85193e-06 -3.41504e-07 -1.79417e-06 -3.05543e-07 -1.86522e-06 -7.80953e-07 -2.13941e-06 -1.80006e-06 -2.46401e-06 -3.16522e-06 -2.7838e-06 -4.14183e-06 -3.09381e-06 -3.80896e-06 -3.46084e-06 -2.70292e-06 -3.90114e-06 -1.97767e-06 -4.23897e-06 -1.9971e-06 -4.51442e-06 -2.21746e-06 -4.57941e-06 -2.76027e-06 -4.39143e-06 -3.5335e-06 -4.27149e-06 -3.98699e-06 -3.84962e-06 -4.67986e-06 -3.05002e-06 -5.71964e-06 -1.94233e-06 -6.43286e-06 -7.76438e-07 -6.86829e-06 5.32458e-07 -6.38661e-06 1.70774e-06 -5.18902e-06 2.80999e-06 -3.90454e-06 3.73951e-06 -2.13284e-06 4.44423e-06 -3.37081e-07 4.79739e-06 1.49817e-06 4.86673e-06 3.08922e-06 4.61704e-06 4.36645e-06 4.26705e-06 5.05559e-06 3.84171e-06 4.98848e-06 3.19592e-06 4.52171e-06 2.05007e-06 3.67067e-06 -5.90318e-07 4.33835e-06 -3.9865e-06 6.84351e-06 -6.88809e-06 9.22855e-06 -8.79007e-06 1.03356e-05 -9.97618e-06 1.06528e-05 -1.06045e-05 1.06914e-05 -1.07034e-05 1.01347e-05 -1.06113e-05 9.47427e-06 -1.02677e-05 8.47588e-06 -9.94261e-06 7.65389e-06 -9.5296e-06 6.68307e-06 -9.14438e-06 5.83272e-06 -8.72933e-06 4.96413e-06 -8.40769e-06 4.23536e-06 -8.23839e-06 3.40258e-06 -8.11375e-06 2.42038e-06 -8.05615e-06 1.69511e-06 -8.05047e-06 7.52793e-07 -7.96164e-06 -8.06038e-08 -7.85675e-06 -9.64762e-07 -7.74459e-06 -1.59737e-06 -7.5239e-06 -1.95771e-06 -7.23508e-06 -2.15515e-06 -6.98026e-06 -2.28328e-06 -6.67001e-06 -2.53873e-06 -6.1868e-06 -2.8972e-06 -5.62236e-06 -3.20906e-06 -5.20329e-06 -3.48663e-06 -5.06776e-06 -3.53845e-06 -5.01585e-06 -3.51143e-06 -4.92738e-06 -3.64149e-06 -4.81446e-06 -4.00613e-06 -4.75076e-06 -4.52047e-06 -4.88446e-06 -4.98938e-06 -5.18693e-06 -5.00196e-06 -5.39816e-06 -4.84978e-06 -5.56865e-06 -4.57875e-06 -5.6096e-06 -3.97753e-06 -5.43968e-06 -3.22647e-06 -5.13894e-06 -2.4982e-06 -4.74869e-06 -1.54656e-06 -4.28955e-06 -5.82381e-07 -3.91515e-06 3.43283e-07 -3.52886e-06 1.29739e-06 -3.13246e-06 2.16269e-06 -2.74134e-06 2.80973e-06 -2.36626e-06 3.21907e-06 -2.00129e-06 3.39777e-06 -1.65858e-06 3.3465e-06 -1.38759e-06 3.16457e-06 -1.20246e-06 2.91857e-06 -1.10838e-06 2.65686e-06 -1.08615e-06 2.39824e-06 -1.15849e-06 2.244e-06 -1.30203e-06 2.12853e-06 -1.47261e-06 2.04269e-06 -1.66514e-06 2.02709e-06 -1.83024e-06 2.0242e-06 -2.04536e-06 1.99236e-06 -2.26481e-06 1.87088e-06 -2.49047e-06 1.69989e-06 -2.80153e-06 1.44798e-06 -3.02754e-06 9.89354e-07 -3.27126e-06 6.33785e-07 -3.53088e-06 1.60539e-07 -3.72559e-06 -3.46813e-07 -3.94862e-06 -8.83718e-07 -4.07771e-06 -1.50039e-06 -4.24808e-06 -1.98263e-06 -4.27385e-06 -2.78635e-06 -4.34311e-06 -3.35593e-06 -4.3017e-06 -4.29747e-06 -4.11681e-06 -4.97474e-06 -3.90104e-06 -6.09625e-06 -3.16572e-06 -7.18891e-06 -2.18808e-06 -7.61902e-06 -1.19363e-06 -7.39672e-06 -4.64176e-07 -6.63183e-06 5.04475e-07 -7.13907e-06 2.19134e-06 -8.06162e-06 4.20768e-06 -7.44757e-06 5.50114e-06 -4.22854e-06 5.77298e-06 2.4904e-07 5.4671e-06 3.86599e-06 4.89892e-06 5.55122e-06 4.18982e-06 6.14959e-06 3.46226e-06 6.28759e-06 2.87394e-06 5.63989e-06 2.50376e-06 4.29741e-06 2.36461e-06 2.50323e-06 2.40069e-06 2.80537e-07 2.51273e-06 -1.98707e-06 2.83452e-06 -4.84896e-06 3.44946e-06 -7.89709e-06 4.03636e-06 -1.01015e-05 4.29949e-06 -1.126e-05 4.87785e-06 -1.21534e-05 6.51643e-06 -1.28185e-05 8.21912e-06 -1.2688e-05 9.65389e-06 -1.28982e-05 1.16669e-05 -1.31885e-05 1.32374e-05 -1.24406e-05 1.45221e-05 -1.25679e-05 1.73958e-05 -1.19273e-05 2.01001e-05 -7.42268e-06 2.07845e-05 -3.23906e-06 2.14116e-05 -1.81739e-06 2.3111e-05 1.02295e-06 2.39402e-05 6.318e-06 2.28328e-05 9.9761e-06 2.02135e-05 1.01691e-05 1.73327e-05 8.7808e-06 1.50351e-05 8.37775e-06 1.28842e-05 9.39016e-06 1.07474e-05 1.0138e-05 9.27126e-06 9.49138e-06 8.36321e-06 7.98779e-06 7.38607e-06 6.64995e-06 6.34528e-06 5.6378e-06 5.43653e-06 4.8712e-06 4.5324e-06 4.41115e-06 3.57177e-06 4.00124e-06 2.72684e-06 3.43151e-06 2.09454e-06 2.79148e-06 1.64386e-06 2.1471e-06 1.28998e-06 1.70426e-06 1.01385e-06 1.67227e-06 8.46426e-07 1.56851e-06 7.52524e-07 1.35957e-06 6.92119e-07 1.20038e-06 6.55058e-07 1.18355e-06 4.59663e-07 1.44717e-06 3.18564e-07 1.50203e-06 1.55436e-07 2.02239e-06 2.19724e-06 -6.08984e-07 -8.95233e-07 -1.14422e-06 -1.29931e-06 -1.58446e-06 -2.08834e-06 -1.80567e-06 -2.98007e-06 -1.78496e-06 -3.66378e-06 -1.58692e-06 -3.80935e-06 -1.26253e-06 -3.42962e-06 -8.63714e-07 -2.62253e-06 -4.59528e-07 -1.54052e-06 -1.57061e-07 -1.30154e-07 6.44124e-08 1.37123e-06 1.80315e-07 2.71844e-06 1.80495e-07 3.85093e-06 1.03304e-07 4.75515e-06 -3.99675e-08 5.31383e-06 -2.57053e-07 5.50781e-06 -5.28268e-07 4.98799e-06 -8.05944e-07 3.3926e-06 -1.11505e-06 1.44887e-06 -1.78738e-06 2.02432e-07 -2.35251e-06 -6.1642e-07 -2.29055e-06 -1.87432e-06 -2.07063e-06 -2.42819e-06 -1.65501e-06 -2.40245e-06 -1.07099e-06 -1.40573e-06 -3.66145e-07 -1.96756e-08 3.10881e-07 2.01143e-06 2.93211e-07 4.11657e-06 -2.57294e-07 4.38019e-06 -7.58075e-07 3.51113e-06 -1.02184e-06 2.72224e-06 -1.15855e-06 1.79858e-06 -1.29242e-06 7.57522e-07 -1.36173e-06 -8.45354e-08 -1.32759e-06 -4.81925e-07 -1.19403e-06 -4.75062e-07 -1.10648e-06 -3.93101e-07 -1.2279e-06 -6.59529e-07 -1.64674e-06 -1.38122e-06 -2.19934e-06 -2.61262e-06 -2.81667e-06 -3.5245e-06 -3.39401e-06 -3.23162e-06 -4.01874e-06 -2.07819e-06 -4.70586e-06 -1.29054e-06 -5.31975e-06 -1.38321e-06 -5.79286e-06 -1.74435e-06 -5.97751e-06 -2.57562e-06 -6.12708e-06 -3.38394e-06 -6.28868e-06 -3.82539e-06 -5.94048e-06 -5.02805e-06 -5.33139e-06 -6.32873e-06 -4.45284e-06 -7.31141e-06 -3.38932e-06 -7.93182e-06 -2.21656e-06 -7.55937e-06 -1.0345e-06 -6.37107e-06 1.04838e-07 -5.04389e-06 1.17521e-06 -3.20321e-06 2.04812e-06 -1.20999e-06 2.62473e-06 9.21558e-07 2.93465e-06 2.77929e-06 3.00201e-06 4.2991e-06 2.92583e-06 5.13176e-06 2.44627e-06 5.46804e-06 1.4902e-06 5.47778e-06 -4.56628e-07 5.6175e-06 -3.43106e-06 7.31279e-06 -6.32339e-06 9.73583e-06 -8.15961e-06 1.10648e-05 -8.99107e-06 1.11671e-05 -9.41713e-06 1.10788e-05 -9.31434e-06 1.05886e-05 -9.01814e-06 9.83851e-06 -8.58174e-06 9.03787e-06 -8.13891e-06 8.03306e-06 -7.74566e-06 7.26064e-06 -7.41166e-06 6.34906e-06 -7.16031e-06 5.58138e-06 -6.88267e-06 4.68649e-06 -6.59736e-06 3.95006e-06 -6.40195e-06 3.20717e-06 -6.31292e-06 2.33134e-06 -6.17579e-06 1.55798e-06 -6.11361e-06 6.90614e-07 -6.04284e-06 -1.51373e-07 -6.01477e-06 -9.92833e-07 -5.98668e-06 -1.62545e-06 -5.83721e-06 -2.10718e-06 -5.48575e-06 -2.50661e-06 -4.89109e-06 -2.87794e-06 -4.15596e-06 -3.27386e-06 -3.397e-06 -3.65615e-06 -2.73527e-06 -3.87079e-06 -2.27148e-06 -3.95041e-06 -1.94816e-06 -3.86178e-06 -1.65166e-06 -3.80793e-06 -1.38945e-06 -3.9037e-06 -1.26449e-06 -4.13109e-06 -1.28657e-06 -4.49839e-06 -1.52596e-06 -4.74999e-06 -1.8198e-06 -4.70812e-06 -2.0563e-06 -4.61328e-06 -2.31873e-06 -4.31632e-06 -2.42534e-06 -3.87092e-06 -2.36035e-06 -3.29146e-06 -2.21528e-06 -2.64327e-06 -1.88981e-06 -1.87203e-06 -1.41336e-06 -1.05883e-06 -8.71455e-07 -1.98617e-07 -2.42276e-07 6.68215e-07 3.98959e-07 1.52146e-06 9.93889e-07 2.2148e-06 1.4864e-06 2.72656e-06 1.88325e-06 3.00092e-06 2.19389e-06 3.03586e-06 2.36519e-06 2.99327e-06 2.42526e-06 2.85851e-06 2.40813e-06 2.67399e-06 2.29577e-06 2.51061e-06 2.16123e-06 2.37853e-06 1.96654e-06 2.32322e-06 1.70409e-06 2.30514e-06 1.34132e-06 2.38986e-06 9.40622e-07 2.4249e-06 5.11321e-07 2.42166e-06 2.58783e-08 2.35633e-06 -3.54767e-07 2.08053e-06 -6.7134e-07 1.76456e-06 -9.77185e-07 1.2952e-06 -1.2243e-06 8.80896e-07 -1.36787e-06 3.04115e-07 -1.44692e-06 -2.67764e-07 -1.50566e-06 -8.2498e-07 -1.35359e-06 -1.65246e-06 -1.20515e-06 -2.13107e-06 -1.04578e-06 -2.94573e-06 -9.53476e-07 -3.44823e-06 -1.00282e-06 -4.24812e-06 -1.14527e-06 -4.83229e-06 -1.44593e-06 -5.7956e-06 -1.36273e-06 -7.2721e-06 -6.49608e-07 -8.33214e-06 4.82089e-07 -8.52841e-06 1.3267e-06 -7.47643e-06 1.77818e-06 -7.59055e-06 2.56285e-06 -8.8463e-06 4.41635e-06 -9.30107e-06 6.45255e-06 -6.26473e-06 7.54319e-06 -8.41599e-07 7.77414e-06 3.63504e-06 7.46905e-06 5.85631e-06 6.92085e-06 6.69779e-06 6.38354e-06 6.8249e-06 6.01767e-06 6.00576e-06 5.73756e-06 4.57752e-06 5.54878e-06 2.692e-06 5.45287e-06 3.76454e-07 5.38799e-06 -1.92219e-06 5.42258e-06 -4.88354e-06 5.78792e-06 -8.26244e-06 6.3851e-06 -1.06987e-05 6.69885e-06 -1.15738e-05 6.54299e-06 -1.19975e-05 7.09443e-06 -1.337e-05 8.80914e-06 -1.44027e-05 1.04e-05 -1.4489e-05 1.22251e-05 -1.50136e-05 1.41296e-05 -1.43451e-05 1.48788e-05 -1.33171e-05 1.64975e-05 -1.3546e-05 1.9502e-05 -1.04271e-05 2.10014e-05 -4.7385e-06 2.11921e-05 -2.00813e-06 2.22452e-05 -3.0135e-08 2.35535e-05 5.00969e-06 2.33619e-05 1.01678e-05 2.14795e-05 1.20514e-05 1.88173e-05 1.1443e-05 1.62634e-05 1.09317e-05 1.40736e-05 1.158e-05 1.22026e-05 1.20089e-05 1.06305e-05 1.10634e-05 9.45978e-06 9.15854e-06 8.58918e-06 7.52054e-06 7.63025e-06 6.59673e-06 6.52568e-06 5.97577e-06 5.46604e-06 5.47079e-06 4.44052e-06 5.02677e-06 3.32482e-06 4.54721e-06 2.30261e-06 3.81369e-06 1.56581e-06 2.8839e-06 1.17071e-06 2.09936e-06 1.07104e-06 1.77194e-06 1.0439e-06 1.59566e-06 9.75426e-07 1.42804e-06 8.42673e-07 1.33314e-06 7.64815e-07 1.26141e-06 5.85055e-07 1.62693e-06 3.24307e-07 1.76278e-06 2.07418e-07 2.13928e-06 2.40465e-06 -8.58835e-07 -3.63972e-08 -1.69977e-06 -4.58373e-07 -2.41565e-06 -1.37246e-06 -2.87132e-06 -2.52441e-06 -3.0606e-06 -3.47449e-06 -2.99034e-06 -3.87962e-06 -2.71925e-06 -3.70071e-06 -2.3189e-06 -3.02289e-06 -1.88566e-06 -1.97376e-06 -1.50114e-06 -5.14665e-07 -1.19565e-06 1.06573e-06 -9.79318e-07 2.50211e-06 -8.53849e-07 3.72546e-06 -7.87251e-07 4.68855e-06 -8.07226e-07 5.33381e-06 -9.27609e-07 5.62819e-06 -1.1187e-06 5.17908e-06 -1.39642e-06 3.67033e-06 -1.96346e-06 2.01591e-06 -2.85841e-06 1.09738e-06 -3.16634e-06 -3.08492e-07 -3.3964e-06 -1.64426e-06 -3.34558e-06 -2.47901e-06 -2.9414e-06 -2.80663e-06 -2.20302e-06 -2.14411e-06 -1.36421e-06 -8.58492e-07 -5.24629e-07 1.17186e-06 7.83852e-08 3.51356e-06 2.28313e-08 4.43574e-06 -2.51993e-07 3.78595e-06 -4.02813e-07 2.87306e-06 -4.53442e-07 1.84921e-06 -5.28237e-07 8.32317e-07 -6.08653e-07 -4.11999e-09 -6.15751e-07 -4.74827e-07 -5.12628e-07 -5.78185e-07 -4.24761e-07 -4.80968e-07 -5.82011e-07 -5.0228e-07 -1.09235e-06 -8.7088e-07 -1.85227e-06 -1.85271e-06 -2.71684e-06 -2.65992e-06 -3.50194e-06 -2.44652e-06 -4.23947e-06 -1.34066e-06 -5.04127e-06 -4.88741e-07 -5.78025e-06 -6.44235e-07 -6.35706e-06 -1.16753e-06 -6.82471e-06 -2.10797e-06 -7.29281e-06 -2.91584e-06 -7.49623e-06 -3.62197e-06 -7.35164e-06 -5.17265e-06 -7.08555e-06 -6.59482e-06 -6.55903e-06 -7.83792e-06 -5.78723e-06 -8.70363e-06 -4.72551e-06 -8.62108e-06 -3.49617e-06 -7.60041e-06 -2.33246e-06 -6.2076e-06 -1.32805e-06 -4.20761e-06 -4.64842e-07 -2.0732e-06 3.01568e-07 1.55147e-07 8.53314e-07 2.22754e-06 1.12172e-06 4.03069e-06 1.10933e-06 5.14415e-06 7.49455e-07 5.82792e-06 -2.77995e-07 6.50523e-06 -2.53979e-06 7.8793e-06 -5.24676e-06 1.00198e-05 -7.24126e-06 1.17303e-05 -7.92371e-06 1.17472e-05 -7.96361e-06 1.1207e-05 -7.93545e-06 1.10507e-05 -7.50395e-06 1.01572e-05 -7.14446e-06 9.47902e-06 -6.68725e-06 8.58066e-06 -6.46947e-06 7.81528e-06 -6.21298e-06 7.00416e-06 -5.97628e-06 6.11236e-06 -5.76349e-06 5.36858e-06 -5.56521e-06 4.48822e-06 -5.29891e-06 3.68375e-06 -4.94657e-06 2.85483e-06 -4.72914e-06 2.11391e-06 -4.44578e-06 1.27462e-06 -4.18501e-06 4.2984e-07 -3.98912e-06 -3.47257e-07 -3.84894e-06 -1.13302e-06 -3.6779e-06 -1.79648e-06 -3.48115e-06 -2.30393e-06 -3.19166e-06 -2.7961e-06 -2.81647e-06 -3.25314e-06 -2.46465e-06 -3.62568e-06 -2.07678e-06 -4.04402e-06 -1.63734e-06 -4.31023e-06 -1.0612e-06 -4.52656e-06 -3.97678e-07 -4.5253e-06 3.54506e-07 -4.56011e-06 1.06953e-06 -4.61872e-06 1.68095e-06 -4.74251e-06 2.02423e-06 -4.84167e-06 2.09114e-06 -4.8169e-06 1.95592e-06 -4.5729e-06 1.64453e-06 -4.30189e-06 1.3557e-06 -4.02749e-06 1.18701e-06 -3.70224e-06 1.13891e-06 -3.24335e-06 1.25443e-06 -2.75879e-06 1.51112e-06 -2.12872e-06 1.89085e-06 -1.43856e-06 2.39221e-06 -6.99984e-07 2.98332e-06 7.7108e-08 3.67125e-06 8.33533e-07 4.36155e-06 1.5245e-06 5.00319e-06 2.08492e-06 5.55756e-06 2.44655e-06 5.94338e-06 2.65004e-06 6.20318e-06 2.73347e-06 6.27143e-06 2.79025e-06 6.19042e-06 2.755e-06 6.00192e-06 2.6991e-06 5.74963e-06 2.63083e-06 5.44173e-06 2.63113e-06 5.07481e-06 2.67205e-06 4.77576e-06 2.68891e-06 4.45485e-06 2.7458e-06 4.14951e-06 2.727e-06 3.8478e-06 2.65804e-06 3.45409e-06 2.47425e-06 2.95859e-06 2.26005e-06 2.35767e-06 1.89613e-06 1.79306e-06 1.4455e-06 1.20402e-06 8.93157e-07 8.4529e-07 9.09645e-08 6.49482e-07 -6.29173e-07 6.30782e-07 -1.63376e-06 8.10909e-07 -2.3112e-06 1.156e-06 -3.29082e-06 1.51634e-06 -3.80857e-06 1.86242e-06 -4.5942e-06 2.13748e-06 -5.10735e-06 1.84042e-06 -5.49854e-06 1.29354e-06 -6.72522e-06 1.22662e-06 -8.26522e-06 2.1184e-06 -9.4202e-06 3.38776e-06 -8.74579e-06 4.02025e-06 -8.22304e-06 4.06616e-06 -8.89221e-06 4.75698e-06 -9.99189e-06 6.73368e-06 -8.24143e-06 8.71153e-06 -2.81945e-06 9.8773e-06 2.46926e-06 1.01714e-05 5.56218e-06 9.94062e-06 6.9286e-06 9.57394e-06 7.19157e-06 9.35341e-06 6.22629e-06 9.27522e-06 4.65571e-06 9.32496e-06 2.64226e-06 9.34062e-06 3.60799e-07 9.11466e-06 -1.69623e-06 8.67609e-06 -4.44497e-06 8.5031e-06 -8.08945e-06 8.66167e-06 -1.08572e-05 8.98852e-06 -1.19006e-05 9.12875e-06 -1.21378e-05 8.97123e-06 -1.32125e-05 9.83401e-06 -1.52655e-05 1.16003e-05 -1.62553e-05 1.32514e-05 -1.66647e-05 1.52333e-05 -1.63271e-05 1.61899e-05 -1.42736e-05 1.66116e-05 -1.39677e-05 1.87905e-05 -1.2606e-05 2.09239e-05 -6.87192e-06 2.129e-05 -2.37424e-06 2.16824e-05 -4.22516e-07 2.29994e-05 3.69272e-06 2.35313e-05 9.63588e-06 2.22899e-05 1.32928e-05 2.00813e-05 1.36516e-05 1.75611e-05 1.34518e-05 1.5371e-05 1.37701e-05 1.3555e-05 1.3825e-05 1.18314e-05 1.2787e-05 1.05914e-05 1.03985e-05 1.00702e-05 8.04171e-06 9.57718e-06 7.08979e-06 8.47127e-06 7.08169e-06 6.96844e-06 6.97361e-06 5.4931e-06 6.50211e-06 4.2791e-06 5.76121e-06 3.25403e-06 4.83876e-06 2.23302e-06 3.90491e-06 1.27179e-06 3.06059e-06 7.42353e-07 2.30137e-06 5.95255e-07 1.74276e-06 6.00566e-07 1.42273e-06 6.54127e-07 1.27958e-06 5.93203e-07 1.32233e-06 6.63246e-07 1.55689e-06 5.12856e-07 1.91317e-06 2.09687e-07 2.44245e-06 2.61434e-06 -9.1921e-07 8.82812e-07 -2.00053e-06 6.22948e-07 -3.03229e-06 -3.40698e-07 -3.79699e-06 -1.75971e-06 -4.20907e-06 -3.06241e-06 -4.27963e-06 -3.80906e-06 -4.07748e-06 -3.90286e-06 -3.68737e-06 -3.413e-06 -3.23893e-06 -2.42221e-06 -2.76679e-06 -9.86801e-07 -2.33231e-06 6.31249e-07 -1.97892e-06 2.14872e-06 -1.6905e-06 3.43704e-06 -1.50875e-06 4.5068e-06 -1.47929e-06 5.30434e-06 -1.5624e-06 5.7113e-06 -1.74052e-06 5.3572e-06 -2.12927e-06 4.05908e-06 -3.00223e-06 2.88886e-06 -3.78625e-06 1.8814e-06 -4.03013e-06 -6.46106e-08 -4.35302e-06 -1.32137e-06 -4.26453e-06 -2.5675e-06 -4.0892e-06 -2.98196e-06 -3.41013e-06 -2.82318e-06 -2.54107e-06 -1.72755e-06 -1.52384e-06 1.5463e-07 -4.24308e-07 2.41402e-06 5.45727e-08 3.95686e-06 1.54174e-07 3.68635e-06 2.14122e-07 2.81311e-06 2.38951e-07 1.82438e-06 1.9749e-07 8.73778e-07 9.53401e-08 9.80301e-08 2.10291e-08 -4.00516e-07 1.28078e-08 -5.69964e-07 6.82645e-08 -5.36425e-07 -4.57136e-08 -3.88302e-07 -5.10869e-07 -4.05724e-07 -1.30424e-06 -1.05934e-06 -2.27196e-06 -1.6922e-06 -3.13322e-06 -1.58526e-06 -3.85849e-06 -6.15397e-07 -4.68901e-06 3.41789e-07 -5.52831e-06 1.95064e-07 -6.35561e-06 -3.40241e-07 -7.1763e-06 -1.28728e-06 -7.76867e-06 -2.32346e-06 -8.11073e-06 -3.2799e-06 -8.46195e-06 -4.82143e-06 -8.59645e-06 -6.46032e-06 -8.41433e-06 -8.02004e-06 -7.90639e-06 -9.21157e-06 -7.01029e-06 -9.51718e-06 -5.8359e-06 -8.77481e-06 -4.74866e-06 -7.29485e-06 -3.72418e-06 -5.23209e-06 -2.7742e-06 -3.02317e-06 -1.98407e-06 -6.34986e-07 -1.32131e-06 1.56478e-06 -9.23663e-07 3.63305e-06 -8.83408e-07 5.1039e-06 -1.22028e-06 6.16479e-06 -2.29776e-06 7.58272e-06 -4.26779e-06 9.84932e-06 -6.17857e-06 1.19305e-05 -6.98012e-06 1.25319e-05 -6.78624e-06 1.15533e-05 -6.61935e-06 1.10401e-05 -6.26645e-06 1.06978e-05 -5.84679e-06 9.73749e-06 -5.66237e-06 9.2946e-06 -5.37521e-06 8.29351e-06 -5.22791e-06 7.66798e-06 -5.06404e-06 6.84028e-06 -4.87864e-06 5.92696e-06 -4.58549e-06 5.07543e-06 -4.23834e-06 4.14107e-06 -3.91528e-06 3.36068e-06 -3.51699e-06 2.45654e-06 -3.13236e-06 1.72928e-06 -2.76267e-06 9.04929e-07 -2.4533e-06 1.20477e-07 -2.20751e-06 -5.9305e-07 -2.02965e-06 -1.31088e-06 -1.84022e-06 -1.98591e-06 -1.60387e-06 -2.54028e-06 -1.2404e-06 -3.15958e-06 -8.26173e-07 -3.66736e-06 -3.24771e-07 -4.12709e-06 2.0664e-07 -4.57543e-06 7.21706e-07 -4.82529e-06 1.19452e-06 -4.99937e-06 1.65896e-06 -4.98974e-06 2.16792e-06 -5.06907e-06 2.6738e-06 -5.12459e-06 3.20154e-06 -5.27026e-06 3.59621e-06 -5.23634e-06 3.98074e-06 -5.20143e-06 4.41774e-06 -5.00991e-06 4.82619e-06 -4.71034e-06 5.0274e-06 -4.22869e-06 5.07192e-06 -3.74676e-06 5.02192e-06 -3.19335e-06 5.02947e-06 -2.76634e-06 5.18545e-06 -2.2847e-06 5.51966e-06 -1.77277e-06 5.96052e-06 -1.14085e-06 6.53144e-06 -4.93811e-07 7.15647e-06 2.08508e-07 7.84039e-06 8.4058e-07 8.43199e-06 1.49332e-06 8.91859e-06 1.95995e-06 9.27684e-06 2.29179e-06 9.46795e-06 2.54237e-06 9.51014e-06 2.74805e-06 9.42457e-06 2.84057e-06 9.27067e-06 2.85301e-06 9.03308e-06 2.86842e-06 8.77389e-06 2.89032e-06 8.42595e-06 3.01999e-06 8.03628e-06 3.07859e-06 7.66619e-06 3.11588e-06 7.23272e-06 3.16048e-06 6.76328e-06 3.12748e-06 6.33132e-06 2.9062e-06 5.96034e-06 2.63103e-06 5.54383e-06 2.31263e-06 5.24899e-06 1.74035e-06 4.90623e-06 1.23592e-06 4.52862e-06 4.68571e-07 4.12032e-06 -2.20877e-07 3.73284e-06 -1.24627e-06 3.60406e-06 -2.18243e-06 3.69669e-06 -3.38345e-06 3.8491e-06 -3.96098e-06 3.93866e-06 -4.68376e-06 4.43986e-06 -5.60855e-06 4.8557e-06 -5.91437e-06 4.57669e-06 -6.44621e-06 4.00784e-06 -7.69638e-06 4.00121e-06 -9.41356e-06 5.0636e-06 -9.80818e-06 6.1769e-06 -9.33634e-06 6.33219e-06 -9.0475e-06 6.03937e-06 -9.69907e-06 6.98281e-06 -9.18487e-06 9.23015e-06 -5.06679e-06 1.13294e-05 3.70016e-07 1.24928e-05 4.39876e-06 1.28579e-05 6.56354e-06 1.28135e-05 7.2359e-06 1.2638e-05 6.40184e-06 1.24346e-05 4.85907e-06 1.25368e-05 2.54011e-06 1.31118e-05 -2.14233e-07 1.32536e-05 -1.83802e-06 1.24663e-05 -3.65765e-06 1.17584e-05 -7.38153e-06 1.14961e-05 -1.0595e-05 1.1311e-05 -1.17156e-05 1.15327e-05 -1.23595e-05 1.1652e-05 -1.33317e-05 1.17701e-05 -1.53836e-05 1.29081e-05 -1.73932e-05 1.42219e-05 -1.79785e-05 1.59273e-05 -1.80325e-05 1.74774e-05 -1.58237e-05 1.75491e-05 -1.40394e-05 1.85484e-05 -1.36053e-05 2.07118e-05 -9.03529e-06 2.14458e-05 -3.10833e-06 2.14674e-05 -4.44076e-07 2.24975e-05 2.6626e-06 2.33998e-05 8.73362e-06 2.28873e-05 1.38053e-05 2.11157e-05 1.54232e-05 1.89032e-05 1.56643e-05 1.67627e-05 1.59106e-05 1.48884e-05 1.56993e-05 1.34039e-05 1.42716e-05 1.19809e-05 1.18215e-05 1.04223e-05 9.60031e-06 9.04754e-06 8.46458e-06 8.09593e-06 8.03329e-06 7.20607e-06 7.86347e-06 6.16949e-06 7.53869e-06 5.0643e-06 6.8664e-06 4.05721e-06 5.84586e-06 3.04372e-06 4.91839e-06 1.97679e-06 4.12752e-06 1.00645e-06 3.27171e-06 4.0747e-07 2.34174e-06 2.29305e-07 1.6009e-06 2.59919e-07 1.24896e-06 3.44467e-07 1.23778e-06 2.83221e-07 1.61813e-06 4.95463e-07 1.70093e-06 2.13293e-07 2.72462e-06 2.82763e-06 -1.15116e-06 2.03397e-06 -2.31769e-06 1.78948e-06 -3.40508e-06 7.46691e-07 -4.33233e-06 -8.32459e-07 -4.99881e-06 -2.39593e-06 -5.27839e-06 -3.52947e-06 -5.19535e-06 -3.98591e-06 -4.83508e-06 -3.77326e-06 -4.40189e-06 -2.8554e-06 -3.89751e-06 -1.49118e-06 -3.37994e-06 1.13685e-07 -2.91848e-06 1.68725e-06 -2.54632e-06 3.06489e-06 -2.30517e-06 4.26565e-06 -2.19777e-06 5.19695e-06 -2.17315e-06 5.68668e-06 -2.26657e-06 5.45062e-06 -2.69426e-06 4.48678e-06 -3.43645e-06 3.63106e-06 -3.75237e-06 2.19732e-06 -4.07894e-06 2.61957e-07 -4.45273e-06 -9.47576e-07 -4.74053e-06 -2.27971e-06 -4.73571e-06 -2.98678e-06 -4.36392e-06 -3.19497e-06 -3.56899e-06 -2.52248e-06 -2.48321e-06 -9.31159e-07 -1.21482e-06 1.14563e-06 -2.22722e-07 2.96476e-06 2.62828e-07 3.2008e-06 5.8976e-07 2.48618e-06 7.25203e-07 1.68894e-06 7.14516e-07 8.84464e-07 6.06503e-07 2.06042e-07 4.67489e-07 -2.61501e-07 3.66068e-07 -4.68543e-07 3.29912e-07 -5.00269e-07 2.39886e-07 -2.98275e-07 -6.28943e-08 -1.02944e-07 -6.85768e-07 -4.36471e-07 -1.64347e-06 -7.34493e-07 -2.56744e-06 -6.61294e-07 -3.30045e-06 1.17613e-07 -4.09519e-06 1.13653e-06 -4.99798e-06 1.09785e-06 -5.8556e-06 5.17377e-07 -6.72378e-06 -4.19099e-07 -7.50477e-06 -1.54248e-06 -8.11869e-06 -2.66598e-06 -8.7275e-06 -4.21262e-06 -9.17798e-06 -6.00984e-06 -9.48402e-06 -7.714e-06 -9.52345e-06 -9.17213e-06 -9.05658e-06 -9.98405e-06 -8.05516e-06 -9.77623e-06 -6.95293e-06 -8.39708e-06 -5.74348e-06 -6.44154e-06 -4.71518e-06 -4.05148e-06 -3.84795e-06 -1.50221e-06 -3.05774e-06 7.74563e-07 -2.45885e-06 3.03416e-06 -2.24558e-06 4.89062e-06 -2.62804e-06 6.54725e-06 -3.81331e-06 8.76799e-06 -5.29599e-06 1.1332e-05 -6.17597e-06 1.28105e-05 -5.96352e-06 1.23194e-05 -5.333e-06 1.09228e-05 -5.14661e-06 1.08537e-05 -4.74705e-06 1.02982e-05 -4.54786e-06 9.5383e-06 -4.37035e-06 9.11709e-06 -4.2378e-06 8.16095e-06 -4.06859e-06 7.49878e-06 -3.8226e-06 6.59429e-06 -3.53915e-06 5.64351e-06 -3.18002e-06 4.7163e-06 -2.74286e-06 3.70391e-06 -2.2703e-06 2.88813e-06 -1.80484e-06 1.99108e-06 -1.32629e-06 1.25073e-06 -8.75577e-07 4.54218e-07 -5.12591e-07 -2.42509e-07 -1.62442e-07 -9.43199e-07 1.39152e-07 -1.61248e-06 4.64036e-07 -2.31079e-06 7.89156e-07 -2.8654e-06 1.16343e-06 -3.53385e-06 1.55914e-06 -4.06307e-06 2.00298e-06 -4.57092e-06 2.41325e-06 -4.9857e-06 2.86368e-06 -5.27572e-06 3.38943e-06 -5.52512e-06 4.02514e-06 -5.62545e-06 4.66894e-06 -5.71287e-06 5.27624e-06 -5.7319e-06 5.77498e-06 -5.76899e-06 6.02638e-06 -5.48774e-06 6.19032e-06 -5.36537e-06 6.34506e-06 -5.16465e-06 6.68315e-06 -5.04843e-06 7.20452e-06 -4.75006e-06 7.87107e-06 -4.41331e-06 8.5315e-06 -3.85378e-06 9.05523e-06 -3.29007e-06 9.3886e-06 -2.61807e-06 9.6554e-06 -2.03957e-06 9.92628e-06 -1.41173e-06 1.02571e-05 -8.24655e-07 1.06737e-05 -2.08104e-07 1.11445e-05 3.6984e-07 1.16643e-05 9.73472e-07 1.21714e-05 1.45286e-06 1.25839e-05 1.87926e-06 1.28573e-05 2.26906e-06 1.30256e-05 2.57966e-06 1.30291e-05 2.83716e-06 1.2874e-05 3.00805e-06 1.25288e-05 3.21368e-06 1.20285e-05 3.39053e-06 1.15423e-05 3.50624e-06 1.10571e-05 3.5638e-06 1.06205e-05 3.55243e-06 1.03024e-05 3.47864e-06 1.00661e-05 3.36381e-06 9.72135e-06 3.2509e-06 9.29401e-06 3.05837e-06 8.71666e-06 2.88998e-06 8.10646e-06 2.35055e-06 7.68851e-06 1.65386e-06 7.41665e-06 7.40431e-07 7.35643e-06 -1.60653e-07 7.22107e-06 -1.11091e-06 6.97092e-06 -1.93228e-06 6.87009e-06 -3.28262e-06 7.04825e-06 -4.13914e-06 6.90391e-06 -4.53943e-06 6.68919e-06 -5.39383e-06 6.97875e-06 -6.20393e-06 7.28595e-06 -6.75341e-06 7.1542e-06 -7.56463e-06 6.68525e-06 -8.94461e-06 6.8912e-06 -1.00141e-05 7.8555e-06 -1.03006e-05 8.45256e-06 -9.64455e-06 8.05936e-06 -9.30587e-06 7.95617e-06 -9.08169e-06 9.5942e-06 -6.70482e-06 1.20421e-05 -2.07785e-06 1.3995e-05 2.44578e-06 1.51238e-05 5.43483e-06 1.57184e-05 6.64124e-06 1.60765e-05 6.0438e-06 1.60479e-05 4.88761e-06 1.56945e-05 2.89351e-06 1.58588e-05 -3.78473e-07 1.63825e-05 -2.36176e-06 1.60121e-05 -3.28721e-06 1.49039e-05 -6.27335e-06 1.42218e-05 -9.9129e-06 1.38349e-05 -1.13286e-05 1.37094e-05 -1.2234e-05 1.40472e-05 -1.36695e-05 1.4035e-05 -1.53715e-05 1.43857e-05 -1.77439e-05 1.53136e-05 -1.89065e-05 1.64094e-05 -1.91283e-05 1.82324e-05 -1.76467e-05 1.87725e-05 -1.45795e-05 1.87961e-05 -1.36289e-05 2.04417e-05 -1.0681e-05 2.16641e-05 -4.33067e-06 2.15878e-05 -3.67799e-07 2.20465e-05 2.20391e-06 2.30723e-05 7.70781e-06 2.32921e-05 1.35855e-05 2.19944e-05 1.67209e-05 2.00505e-05 1.76082e-05 1.80631e-05 1.7898e-05 1.60508e-05 1.77116e-05 1.44253e-05 1.58971e-05 1.28889e-05 1.33579e-05 1.11653e-05 1.13239e-05 9.72988e-06 9.9e-06 8.72593e-06 9.03725e-06 7.95569e-06 8.6337e-06 7.15215e-06 8.34223e-06 6.08318e-06 7.93537e-06 4.88979e-06 7.03925e-06 3.77223e-06 6.03594e-06 2.71073e-06 5.18902e-06 1.56127e-06 4.42116e-06 4.93849e-07 3.40916e-06 -2.84534e-08 2.1232e-06 -5.81756e-08 1.27868e-06 3.43956e-08 1.14521e-06 2.71287e-07 1.38124e-06 5.60385e-08 1.91617e-06 1.07521e-07 2.67314e-06 2.93515e-06 -1.08604e-06 3.12001e-06 -2.21906e-06 2.9225e-06 -3.30425e-06 1.83188e-06 -4.29083e-06 1.54125e-07 -5.14423e-06 -1.54253e-06 -5.7208e-06 -2.9529e-06 -5.89023e-06 -3.81648e-06 -5.66528e-06 -3.99821e-06 -5.24416e-06 -3.27653e-06 -4.75651e-06 -1.97883e-06 -4.20317e-06 -4.39655e-07 -3.67887e-06 1.16295e-06 -3.23545e-06 2.62147e-06 -2.8931e-06 3.9233e-06 -2.66389e-06 4.96773e-06 -2.53166e-06 5.55445e-06 -2.58564e-06 5.5046e-06 -2.9822e-06 4.88334e-06 -3.38522e-06 4.03408e-06 -3.49545e-06 2.30755e-06 -3.78231e-06 5.48817e-07 -4.01668e-06 -7.13202e-07 -4.33298e-06 -1.9634e-06 -4.62766e-06 -2.69211e-06 -4.67831e-06 -3.14431e-06 -4.22948e-06 -2.97131e-06 -3.29397e-06 -1.86668e-06 -2.06714e-06 -8.11979e-08 -7.73195e-07 1.67082e-06 4.36602e-08 2.38395e-06 5.97704e-07 1.93214e-06 8.8689e-07 1.39976e-06 9.63851e-07 8.07503e-07 9.09235e-07 2.60658e-07 7.88893e-07 -1.41159e-07 6.62892e-07 -3.42542e-07 5.24758e-07 -3.62135e-07 3.57477e-07 -1.30995e-07 2.15142e-07 3.93917e-08 -8.41545e-08 -1.37175e-07 -8.2982e-07 1.11727e-08 -1.6768e-06 1.85689e-07 -2.25413e-06 6.94945e-07 -2.87745e-06 1.75984e-06 -3.84435e-06 2.06475e-06 -4.7318e-06 1.40483e-06 -5.62507e-06 4.74166e-07 -6.46573e-06 -7.01814e-07 -7.09995e-06 -2.03177e-06 -7.83003e-06 -3.48254e-06 -8.71962e-06 -5.12025e-06 -9.57761e-06 -6.85601e-06 -1.02355e-05 -8.5142e-06 -1.03814e-05 -9.83817e-06 -9.88502e-06 -1.02726e-05 -8.89741e-06 -9.38468e-06 -7.65836e-06 -7.68059e-06 -6.45824e-06 -5.2516e-06 -5.36656e-06 -2.59389e-06 -4.47751e-06 -1.14482e-07 -3.89206e-06 2.44872e-06 -3.73362e-06 4.73218e-06 -4.1281e-06 6.94173e-06 -4.99735e-06 9.63724e-06 -5.8698e-06 1.22045e-05 -5.8564e-06 1.27971e-05 -4.80366e-06 1.12667e-05 -4.16352e-06 1.02827e-05 -3.99041e-06 1.06806e-05 -3.47918e-06 9.78698e-06 -3.31909e-06 9.37821e-06 -3.13147e-06 8.92947e-06 -2.99058e-06 8.02006e-06 -2.71768e-06 7.22588e-06 -2.39325e-06 6.26987e-06 -2.01344e-06 5.2637e-06 -1.52256e-06 4.22542e-06 -1.01603e-06 3.19738e-06 -4.41181e-07 2.31328e-06 1.53811e-07 1.39609e-06 7.26373e-07 6.7817e-07 1.25367e-06 -7.30834e-08 1.7511e-06 -7.39939e-07 2.19473e-06 -1.38682e-06 2.59416e-06 -2.01191e-06 2.98213e-06 -2.69876e-06 3.38793e-06 -3.2712e-06 3.82254e-06 -3.96847e-06 4.2347e-06 -4.47523e-06 4.73454e-06 -5.07075e-06 5.26979e-06 -5.52095e-06 5.77227e-06 -5.7782e-06 6.28963e-06 -6.04249e-06 6.82334e-06 -6.15916e-06 7.2053e-06 -6.09483e-06 7.53683e-06 -6.06343e-06 7.81388e-06 -6.04604e-06 8.14093e-06 -5.81479e-06 8.63668e-06 -5.86113e-06 9.20092e-06 -5.72889e-06 9.68021e-06 -5.52772e-06 1.00961e-05 -5.16591e-06 1.04928e-05 -4.81004e-06 1.09604e-05 -4.32143e-06 1.15728e-05 -3.90241e-06 1.22946e-05 -3.33991e-06 1.30414e-05 -2.78633e-06 1.37827e-05 -2.15304e-06 1.44398e-05 -1.48181e-06 1.49758e-05 -7.4409e-07 1.53964e-05 -5.07645e-08 1.57307e-05 6.39208e-07 1.59301e-05 1.25349e-06 1.60622e-05 1.74714e-06 1.61214e-05 2.20982e-06 1.61042e-05 2.5969e-06 1.60635e-05 2.87784e-06 1.59416e-05 3.12999e-06 1.57861e-05 3.36917e-06 1.55685e-05 3.60809e-06 1.52465e-05 3.82828e-06 1.48574e-05 3.95286e-06 1.44206e-05 3.98918e-06 1.39202e-05 3.97912e-06 1.34371e-05 3.84693e-06 1.28558e-05 3.83214e-06 1.22645e-05 3.6497e-06 1.19179e-05 3.23653e-06 1.16402e-05 2.6283e-06 1.13447e-05 1.94936e-06 1.08869e-05 1.19824e-06 1.05322e-05 1.94045e-07 1.04411e-05 -1.01986e-06 1.02572e-05 -1.74836e-06 9.76342e-06 -2.78883e-06 9.73897e-06 -4.11469e-06 9.96394e-06 -4.7644e-06 9.77205e-06 -5.20194e-06 9.43037e-06 -5.86225e-06 9.4926e-06 -6.81564e-06 9.75616e-06 -7.8282e-06 9.62847e-06 -8.81692e-06 9.30326e-06 -9.68892e-06 9.57953e-06 -1.05769e-05 1.01595e-05 -1.02246e-05 1.01434e-05 -9.28974e-06 9.66732e-06 -8.6056e-06 1.02853e-05 -7.32278e-06 1.23816e-05 -4.17412e-06 1.46869e-05 1.40382e-07 1.64827e-05 3.63903e-06 1.76506e-05 5.47338e-06 1.84643e-05 5.23008e-06 1.9105e-05 4.24699e-06 1.9358e-05 2.64047e-06 1.92443e-05 -2.64794e-07 1.90522e-05 -2.16964e-06 1.87512e-05 -2.98626e-06 1.78379e-05 -5.35999e-06 1.67702e-05 -8.84522e-06 1.62058e-05 -1.07642e-05 1.5785e-05 -1.18132e-05 1.58392e-05 -1.37238e-05 1.59452e-05 -1.54775e-05 1.5817e-05 -1.76157e-05 1.63242e-05 -1.94137e-05 1.70613e-05 -1.98653e-05 1.85904e-05 -1.91758e-05 1.97318e-05 -1.57209e-05 1.94534e-05 -1.33506e-05 2.03365e-05 -1.1564e-05 2.17232e-05 -5.71739e-06 2.17406e-05 -3.85107e-07 2.17318e-05 2.21269e-06 2.28121e-05 6.62753e-06 2.33086e-05 1.3089e-05 2.26292e-05 1.74003e-05 2.11352e-05 1.91022e-05 1.90456e-05 1.99876e-05 1.71624e-05 1.95948e-05 1.53591e-05 1.77004e-05 1.35325e-05 1.51844e-05 1.20501e-05 1.28063e-05 1.07463e-05 1.12038e-05 9.35299e-06 1.04306e-05 7.75592e-06 1.02308e-05 6.37997e-06 9.71818e-06 5.44888e-06 8.86646e-06 4.74339e-06 7.74474e-06 4.00402e-06 6.77531e-06 3.11426e-06 6.07879e-06 2.20465e-06 5.33077e-06 1.30112e-06 4.31269e-06 4.54392e-07 2.96992e-06 -1.03263e-07 1.83634e-06 7.80111e-08 9.63938e-07 2.76526e-08 1.4316e-06 2.83316e-08 1.91549e-06 -1.03586e-08 2.71183e-06 2.92479e-06 -6.81261e-07 3.80127e-06 -1.48682e-06 3.72806e-06 -2.37528e-06 2.72034e-06 -3.36447e-06 1.14331e-06 -4.33909e-06 -5.67906e-07 -5.2365e-06 -2.0555e-06 -5.82723e-06 -3.22575e-06 -5.98856e-06 -3.83688e-06 -5.72079e-06 -3.5443e-06 -5.2558e-06 -2.44381e-06 -4.72077e-06 -9.74694e-07 -4.14766e-06 5.89848e-07 -3.63361e-06 2.10742e-06 -3.19057e-06 3.48025e-06 -2.83913e-06 4.61629e-06 -2.58948e-06 5.30479e-06 -2.54724e-06 5.46236e-06 -2.75847e-06 5.09457e-06 -2.81614e-06 4.09175e-06 -2.8774e-06 2.36881e-06 -3.05519e-06 7.26606e-07 -3.19121e-06 -5.77177e-07 -3.47891e-06 -1.67571e-06 -3.75505e-06 -2.41596e-06 -4.08978e-06 -2.80958e-06 -4.18051e-06 -2.88058e-06 -3.65015e-06 -2.39703e-06 -2.63005e-06 -1.1013e-06 -1.35217e-06 3.92947e-07 -2.89376e-07 1.32115e-06 3.88215e-07 1.25455e-06 8.14429e-07 9.73542e-07 1.00437e-06 6.17564e-07 1.02209e-06 2.4294e-07 9.558e-07 -7.48735e-08 7.96561e-07 -1.83303e-07 5.64025e-07 -1.29599e-07 3.89123e-07 4.39075e-08 3.44392e-07 8.41221e-08 2.40636e-07 -3.34183e-08 -2.5603e-07 5.07839e-07 -1.01999e-06 9.4965e-07 -1.45408e-06 1.12903e-06 -1.60218e-06 1.90794e-06 -2.08325e-06 2.54582e-06 -2.78521e-06 2.10679e-06 -3.60456e-06 1.29352e-06 -4.48665e-06 1.8028e-07 -5.28029e-06 -1.23813e-06 -6.19804e-06 -2.56478e-06 -7.3533e-06 -3.96498e-06 -8.55228e-06 -5.65704e-06 -9.77616e-06 -7.29031e-06 -1.07013e-05 -8.91306e-06 -1.09671e-05 -1.00068e-05 -1.04425e-05 -9.90923e-06 -9.42955e-06 -8.69356e-06 -8.16e-06 -6.52116e-06 -6.79566e-06 -3.95823e-06 -5.80635e-06 -1.10379e-06 -5.05556e-06 1.69792e-06 -4.82212e-06 4.49874e-06 -5.13208e-06 7.25169e-06 -5.55512e-06 1.00603e-05 -5.49289e-06 1.21422e-05 -4.64856e-06 1.19528e-05 -3.35843e-06 9.97657e-06 -2.9246e-06 9.84884e-06 -2.6427e-06 1.03987e-05 -2.24454e-06 9.38882e-06 -2.06081e-06 9.19448e-06 -1.73969e-06 8.60835e-06 -1.48885e-06 7.76922e-06 -1.17848e-06 6.91551e-06 -7.24563e-07 5.81595e-06 -2.55315e-07 4.79445e-06 2.73319e-07 3.69678e-06 8.84722e-07 2.58598e-06 1.5473e-06 1.65069e-06 2.20033e-06 7.4306e-07 2.85331e-06 2.51901e-08 3.43192e-06 -6.51691e-07 4.0063e-06 -1.31433e-06 4.49695e-06 -1.87747e-06 4.96824e-06 -2.48319e-06 5.3951e-06 -3.12562e-06 5.83769e-06 -3.71378e-06 6.34677e-06 -4.47755e-06 6.79745e-06 -4.92591e-06 7.16176e-06 -5.43506e-06 7.65523e-06 -6.01443e-06 8.09547e-06 -6.21844e-06 8.41235e-06 -6.35937e-06 8.90178e-06 -6.6486e-06 9.29818e-06 -6.49123e-06 9.73838e-06 -6.50363e-06 1.02774e-05 -6.58504e-06 1.08409e-05 -6.37834e-06 1.13261e-05 -6.34628e-06 1.17965e-05 -6.19934e-06 1.21972e-05 -5.92837e-06 1.27432e-05 -5.71196e-06 1.34197e-05 -5.48649e-06 1.41268e-05 -5.02858e-06 1.48882e-05 -4.66375e-06 1.56349e-05 -4.0866e-06 1.63665e-05 -3.51798e-06 1.70679e-05 -2.85444e-06 1.77449e-05 -2.15879e-06 1.83884e-05 -1.38757e-06 1.89723e-05 -6.34662e-07 1.94581e-05 1.53399e-07 1.98478e-05 8.63787e-07 2.00164e-05 1.57858e-06 2.00881e-05 2.1381e-06 1.99997e-05 2.68531e-06 1.97719e-05 3.10562e-06 1.94681e-05 3.43376e-06 1.91292e-05 3.70805e-06 1.87962e-05 3.94117e-06 1.84524e-05 4.17208e-06 1.80696e-05 4.33559e-06 1.77446e-05 4.31423e-06 1.73616e-05 4.36212e-06 1.68832e-05 4.32529e-06 1.64798e-05 4.23551e-06 1.60365e-05 4.09303e-06 1.55832e-05 3.68988e-06 1.506e-05 3.15147e-06 1.46842e-05 2.32516e-06 1.43327e-05 1.54975e-06 1.3864e-05 6.62677e-07 1.3513e-05 -6.68771e-07 1.35568e-05 -1.79219e-06 1.31187e-05 -2.35073e-06 1.24508e-05 -3.44674e-06 1.22537e-05 -4.56736e-06 1.24243e-05 -5.37255e-06 1.22001e-05 -5.63799e-06 1.19331e-05 -6.54869e-06 1.20752e-05 -7.97032e-06 1.22432e-05 -8.98485e-06 1.202e-05 -9.46574e-06 1.18007e-05 -1.03577e-05 1.18974e-05 -1.03212e-05 1.20903e-05 -9.48263e-06 1.18243e-05 -8.3396e-06 1.16148e-05 -7.11327e-06 1.27825e-05 -5.34181e-06 1.47647e-05 -1.84188e-06 1.68406e-05 1.56312e-06 1.86672e-05 3.64678e-06 2.00776e-05 3.81969e-06 2.08286e-05 3.49605e-06 2.13748e-05 2.09426e-06 2.17758e-05 -6.65812e-07 2.16053e-05 -1.99917e-06 2.11435e-05 -2.52446e-06 2.02635e-05 -4.47996e-06 1.88704e-05 -7.4521e-06 1.79623e-05 -9.85614e-06 1.74585e-05 -1.13093e-05 1.72064e-05 -1.34717e-05 1.73721e-05 -1.56432e-05 1.7207e-05 -1.74506e-05 1.73639e-05 -1.95706e-05 1.79166e-05 -2.0418e-05 1.88692e-05 -2.01284e-05 2.02411e-05 -1.70928e-05 2.02692e-05 -1.33787e-05 2.04334e-05 -1.17282e-05 2.16568e-05 -6.94081e-06 2.19891e-05 -7.17418e-07 2.17514e-05 2.4504e-06 2.24018e-05 5.97718e-06 2.33099e-05 1.21808e-05 2.30802e-05 1.76301e-05 2.19544e-05 2.02279e-05 2.02437e-05 2.16983e-05 1.82011e-05 2.16374e-05 1.60955e-05 1.98059e-05 1.40801e-05 1.71999e-05 1.25326e-05 1.43537e-05 1.1089e-05 1.26474e-05 9.32812e-06 1.21915e-05 7.87064e-06 1.16882e-05 6.49642e-06 1.10924e-05 5.16742e-06 1.01955e-05 4.01029e-06 8.90188e-06 3.20287e-06 7.58272e-06 2.76447e-06 6.51719e-06 2.42607e-06 5.66917e-06 2.19528e-06 4.54348e-06 1.57209e-06 3.59311e-06 7.06925e-07 2.70151e-06 1.09905e-07 1.56096e-06 9.42643e-08 1.44724e-06 5.86963e-08 1.95106e-06 7.63756e-08 2.69415e-06 3.00117e-06 -1.28181e-07 3.92945e-06 -4.51658e-07 4.05154e-06 -8.832e-07 3.15188e-06 -1.4996e-06 1.75971e-06 -2.36909e-06 3.01581e-07 -3.4272e-06 -9.97388e-07 -4.49365e-06 -2.15929e-06 -5.29121e-06 -3.03933e-06 -5.53443e-06 -3.30107e-06 -5.27995e-06 -2.69829e-06 -4.79588e-06 -1.45877e-06 -4.25317e-06 4.71418e-08 -3.66648e-06 1.52073e-06 -3.1237e-06 2.93747e-06 -2.65655e-06 4.14914e-06 -2.31207e-06 4.96031e-06 -2.1405e-06 5.29079e-06 -2.1219e-06 5.07598e-06 -2.00051e-06 3.97036e-06 -2.08894e-06 2.45723e-06 -2.29608e-06 9.3375e-07 -2.38816e-06 -4.85095e-07 -2.44659e-06 -1.61728e-06 -2.5747e-06 -2.28785e-06 -2.82564e-06 -2.55865e-06 -3.16719e-06 -2.53903e-06 -3.26891e-06 -2.29531e-06 -2.66575e-06 -1.70447e-06 -1.64532e-06 -6.27478e-07 -6.05949e-07 2.81781e-07 1.19677e-07 5.2892e-07 5.98182e-07 4.95037e-07 8.97505e-07 3.18241e-07 9.88861e-07 1.51584e-07 9.59731e-07 -4.5744e-08 8.39246e-07 -6.28182e-08 6.84008e-07 2.56393e-08 5.95529e-07 1.32386e-07 5.7212e-07 1.07531e-07 4.10197e-07 1.28505e-07 1.45627e-07 7.72409e-07 -4.14808e-07 1.51008e-06 -7.86678e-07 1.5009e-06 -6.42245e-07 1.76351e-06 -5.74722e-07 2.4783e-06 -8.3252e-07 2.36459e-06 -1.18612e-06 1.64712e-06 -1.82851e-06 8.22668e-07 -2.77888e-06 -2.87759e-07 -3.81435e-06 -1.52932e-06 -4.98433e-06 -2.795e-06 -6.487e-06 -4.15437e-06 -8.1725e-06 -5.60481e-06 -9.67279e-06 -7.41277e-06 -1.07717e-05 -8.90788e-06 -1.1084e-05 -9.59694e-06 -1.05496e-05 -9.22799e-06 -9.49237e-06 -7.57839e-06 -8.30756e-06 -5.14304e-06 -7.178e-06 -2.23335e-06 -6.38045e-06 9.00367e-07 -5.92687e-06 4.04517e-06 -5.72985e-06 7.05466e-06 -5.49927e-06 9.8297e-06 -4.75505e-06 1.1398e-05 -3.40582e-06 1.06036e-05 -2.18194e-06 8.75269e-06 -1.77448e-06 9.44138e-06 -1.31623e-06 9.94043e-06 -8.70277e-07 8.94287e-06 -5.82053e-07 8.90626e-06 -1.5566e-07 8.18196e-06 2.93123e-07 7.32044e-06 7.28944e-07 6.47969e-06 1.18937e-06 5.35553e-06 1.76019e-06 4.22364e-06 2.34684e-06 3.11013e-06 3.01102e-06 1.9218e-06 3.72241e-06 9.39299e-07 4.41026e-06 5.52118e-08 5.08964e-06 -6.54185e-07 5.6805e-06 -1.24255e-06 6.25377e-06 -1.8876e-06 6.78012e-06 -2.40382e-06 7.34141e-06 -3.04448e-06 7.84812e-06 -3.63234e-06 8.30002e-06 -4.16568e-06 8.77749e-06 -4.95503e-06 9.32835e-06 -5.47677e-06 9.71174e-06 -5.81846e-06 1.01391e-05 -6.44176e-06 1.06009e-05 -6.68025e-06 1.09525e-05 -6.71098e-06 1.13721e-05 -7.06816e-06 1.18863e-05 -7.00542e-06 1.23176e-05 -6.935e-06 1.28493e-05 -7.11668e-06 1.34024e-05 -6.93144e-06 1.39245e-05 -6.86845e-06 1.46037e-05 -6.8785e-06 1.53031e-05 -6.62775e-06 1.60962e-05 -6.50508e-06 1.68765e-05 -6.26676e-06 1.76574e-05 -5.80953e-06 1.84247e-05 -5.43102e-06 1.91992e-05 -4.86114e-06 1.99455e-05 -4.2642e-06 2.06693e-05 -3.57833e-06 2.13432e-05 -2.83269e-06 2.19737e-05 -2.01806e-06 2.25462e-05 -1.2071e-06 2.30006e-05 -3.01079e-07 2.33887e-05 4.75757e-07 2.36658e-05 1.3014e-06 2.37718e-05 2.03213e-06 2.38214e-05 2.63576e-06 2.36745e-05 3.25252e-06 2.34073e-05 3.70091e-06 2.30163e-05 4.09905e-06 2.25302e-05 4.42735e-06 2.20313e-05 4.67091e-06 2.1517e-05 4.84989e-06 2.09417e-05 4.88954e-06 2.05026e-05 4.80122e-06 2.00628e-05 4.76512e-06 1.96526e-05 4.64573e-06 1.92195e-05 4.52611e-06 1.89139e-05 3.99544e-06 1.84929e-05 3.57252e-06 1.79879e-05 2.8301e-06 1.75911e-05 1.94661e-06 1.72972e-05 9.56577e-07 1.67072e-05 -7.87892e-08 1.64166e-05 -1.5016e-06 1.62691e-05 -2.20325e-06 1.56392e-05 -2.81685e-06 1.48481e-05 -3.7762e-06 1.46782e-05 -5.20272e-06 1.48054e-05 -5.76518e-06 1.46247e-05 -6.36799e-06 1.4437e-05 -7.78259e-06 1.45461e-05 -9.09398e-06 1.44838e-05 -9.40346e-06 1.41371e-05 -1.00109e-05 1.37966e-05 -9.98079e-06 1.38653e-05 -9.55129e-06 1.39147e-05 -8.38901e-06 1.34838e-05 -6.68237e-06 1.37616e-05 -5.61965e-06 1.50028e-05 -3.08308e-06 1.66117e-05 -4.57717e-08 1.85006e-05 1.75791e-06 2.046e-05 1.86032e-06 2.16954e-05 2.26067e-06 2.25777e-05 1.21194e-06 2.30964e-05 -1.18452e-06 2.28376e-05 -1.74039e-06 2.23239e-05 -2.01079e-06 2.16494e-05 -3.80537e-06 2.03828e-05 -6.18558e-06 1.92507e-05 -8.72398e-06 1.85038e-05 -1.05624e-05 1.79141e-05 -1.2882e-05 1.81836e-05 -1.59127e-05 1.84421e-05 -1.77091e-05 1.85347e-05 -1.96632e-05 1.89745e-05 -2.08578e-05 1.94482e-05 -2.06021e-05 2.0613e-05 -1.82577e-05 2.10959e-05 -1.38616e-05 2.07404e-05 -1.13727e-05 2.16128e-05 -7.8132e-06 2.22196e-05 -1.32428e-06 2.18761e-05 2.79397e-06 2.20814e-05 5.77183e-06 2.30533e-05 1.12089e-05 2.34714e-05 1.7212e-05 2.25017e-05 2.11976e-05 2.12231e-05 2.29769e-05 1.93392e-05 2.35214e-05 1.69097e-05 2.22354e-05 1.47461e-05 1.93635e-05 1.26103e-05 1.64896e-05 1.08637e-05 1.4394e-05 9.40106e-06 1.36541e-05 7.92345e-06 1.31659e-05 7.07552e-06 1.19403e-05 6.28847e-06 1.09825e-05 5.24445e-06 9.9459e-06 3.99077e-06 8.83641e-06 3.02309e-06 7.48486e-06 2.50841e-06 6.18384e-06 2.00492e-06 5.04698e-06 1.58331e-06 4.01472e-06 1.01561e-06 3.2692e-06 4.22286e-07 2.15428e-06 -2.54122e-08 1.89494e-06 2.02351e-07 1.7233e-06 1.69795e-07 2.72671e-06 3.17097e-06 3.64823e-07 3.56463e-06 4.45263e-07 3.9711e-06 3.0975e-07 3.2874e-06 -5.64188e-08 2.12588e-06 -6.01652e-07 8.46814e-07 -1.30077e-06 -2.98275e-07 -2.17937e-06 -1.28069e-06 -3.25857e-06 -1.96013e-06 -4.28841e-06 -2.27123e-06 -4.69986e-06 -2.28684e-06 -4.44022e-06 -1.71841e-06 -3.91062e-06 -4.82463e-07 -3.36058e-06 9.70692e-07 -2.7707e-06 2.34758e-06 -2.19038e-06 3.56882e-06 -1.72258e-06 4.49251e-06 -1.34535e-06 4.91356e-06 -1.07062e-06 4.80125e-06 -7.96493e-07 3.69623e-06 -6.94072e-07 2.35481e-06 -7.34431e-07 9.74109e-07 -8.19766e-07 -3.9976e-07 -1.00165e-06 -1.4354e-06 -1.24347e-06 -2.04604e-06 -1.41212e-06 -2.39e-06 -1.59217e-06 -2.35898e-06 -1.90658e-06 -1.98091e-06 -2.01304e-06 -1.598e-06 -1.48636e-06 -1.15416e-06 -7.28986e-07 -4.75592e-07 -9.32529e-08 -1.06813e-07 3.89847e-07 1.19371e-08 6.90598e-07 1.74897e-08 8.10146e-07 3.20366e-08 8.22132e-07 -5.773e-08 8.13117e-07 -5.38033e-08 8.13073e-07 2.56832e-08 8.45536e-07 9.9923e-08 8.30608e-07 1.22459e-07 6.17884e-07 3.41228e-07 4.58629e-07 9.31664e-07 1.84567e-07 1.78415e-06 -2.34145e-07 1.91962e-06 -2.30041e-07 1.75941e-06 1.42282e-07 2.10598e-06 2.35855e-07 2.27102e-06 1.01139e-07 1.78183e-06 -1.0011e-07 1.02392e-06 -6.09022e-07 2.21153e-07 -1.4969e-06 -6.41433e-07 -2.69347e-06 -1.59844e-06 -4.14163e-06 -2.7062e-06 -5.76894e-06 -3.9775e-06 -7.42765e-06 -5.75406e-06 -9.06473e-06 -7.27081e-06 -1.02606e-05 -8.40112e-06 -1.0558e-05 -8.93053e-06 -1.00022e-05 -8.13418e-06 -9.01478e-06 -6.13048e-06 -7.89954e-06 -3.3486e-06 -6.94339e-06 -5.5777e-08 -6.16173e-06 3.26351e-06 -5.47227e-06 6.3652e-06 -4.54897e-06 8.90641e-06 -3.32473e-06 1.01738e-05 -1.86046e-06 9.13929e-06 -8.99147e-07 7.79138e-06 -4.62996e-07 9.00523e-06 3.06088e-07 9.17134e-06 8.38854e-07 8.4101e-06 1.43965e-06 8.30546e-06 1.98717e-06 7.63443e-06 2.47054e-06 6.83707e-06 3.02678e-06 5.92344e-06 3.5444e-06 4.83791e-06 4.12536e-06 3.64268e-06 4.79561e-06 2.43988e-06 5.50016e-06 1.21724e-06 6.19374e-06 2.4572e-07 6.86027e-06 -6.11318e-07 7.48026e-06 -1.27418e-06 8.0931e-06 -1.8554e-06 8.62454e-06 -2.41904e-06 9.13748e-06 -2.91676e-06 9.6649e-06 -3.5719e-06 1.02514e-05 -4.21887e-06 1.08174e-05 -4.7316e-06 1.12904e-05 -5.42804e-06 1.17855e-05 -5.97194e-06 1.22608e-05 -6.29371e-06 1.26558e-05 -6.83676e-06 1.30327e-05 -7.05711e-06 1.35759e-05 -7.25423e-06 1.39503e-05 -7.44253e-06 1.44283e-05 -7.48349e-06 1.49654e-05 -7.47202e-06 1.55948e-05 -7.74617e-06 1.63565e-05 -7.69306e-06 1.71142e-05 -7.62613e-06 1.79467e-05 -7.71107e-06 1.87495e-05 -7.43049e-06 1.96434e-05 -7.39901e-06 2.0495e-05 -7.11834e-06 2.13033e-05 -6.61791e-06 2.2201e-05 -6.32869e-06 2.30061e-05 -5.66618e-06 2.37688e-05 -5.02696e-06 2.45309e-05 -4.34039e-06 2.51962e-05 -3.49806e-06 2.58443e-05 -2.66614e-06 2.63765e-05 -1.73925e-06 2.68716e-05 -7.96207e-07 2.71845e-05 1.62847e-07 2.74888e-05 9.97137e-07 2.75828e-05 1.93811e-06 2.75712e-05 2.64734e-06 2.74535e-05 3.37027e-06 2.71927e-05 3.96167e-06 2.68354e-05 4.45629e-06 2.6386e-05 4.87676e-06 2.57869e-05 5.27006e-06 2.52134e-05 5.42339e-06 2.45132e-05 5.58973e-06 2.38199e-05 5.49449e-06 2.31604e-05 5.42466e-06 2.2626e-05 5.18007e-06 2.20343e-05 5.1179e-06 2.16016e-05 4.42813e-06 2.12571e-05 3.91704e-06 2.08584e-05 3.22871e-06 2.03194e-05 2.48568e-06 2.00341e-05 1.2418e-06 1.95773e-05 3.78101e-07 1.88496e-05 -7.73953e-07 1.84345e-05 -1.78816e-06 1.80925e-05 -2.4748e-06 1.75246e-05 -3.20837e-06 1.70086e-05 -4.68666e-06 1.71045e-05 -5.86106e-06 1.72881e-05 -6.55165e-06 1.69601e-05 -7.45458e-06 1.6762e-05 -8.8959e-06 1.6646e-05 -9.28739e-06 1.62836e-05 -9.64856e-06 1.57514e-05 -9.44858e-06 1.55259e-05 -9.32577e-06 1.56391e-05 -8.50217e-06 1.53309e-05 -6.37419e-06 1.51753e-05 -5.4641e-06 1.5635e-05 -3.54279e-06 1.65537e-05 -9.64469e-07 1.8196e-05 1.15705e-07 2.01991e-05 -1.42804e-07 2.15451e-05 9.14637e-07 2.2686e-05 7.10505e-08 2.35105e-05 -2.00901e-06 2.34963e-05 -1.72617e-06 2.30018e-05 -1.51632e-06 2.23482e-05 -3.15178e-06 2.13535e-05 -5.19089e-06 2.03791e-05 -7.74959e-06 1.94026e-05 -9.5859e-06 1.84937e-05 -1.19731e-05 1.86423e-05 -1.60613e-05 1.93998e-05 -1.84666e-05 1.97127e-05 -1.99762e-05 2.01619e-05 -2.1307e-05 2.03859e-05 -2.08261e-05 2.11246e-05 -1.89963e-05 2.18146e-05 -1.45516e-05 2.13863e-05 -1.09444e-05 2.1575e-05 -8.00187e-06 2.23892e-05 -2.13847e-06 2.20363e-05 3.14685e-06 2.19502e-05 5.85798e-06 2.27477e-05 1.04114e-05 2.34858e-05 1.64739e-05 2.32725e-05 2.14109e-05 2.19628e-05 2.42866e-05 2.0455e-05 2.50292e-05 1.82057e-05 2.44847e-05 1.56213e-05 2.19479e-05 1.35629e-05 1.85481e-05 1.16396e-05 1.63172e-05 1.01848e-05 1.51089e-05 9.16531e-06 1.41853e-05 7.93302e-06 1.31726e-05 6.88487e-06 1.20307e-05 6.06426e-06 1.07665e-05 5.29339e-06 9.60728e-06 4.36029e-06 8.41797e-06 3.46266e-06 7.08147e-06 2.59893e-06 5.91071e-06 1.63776e-06 4.97589e-06 9.94019e-07 3.91295e-06 2.76861e-07 2.87144e-06 8.08129e-08 2.09099e-06 -1.64073e-07 1.96818e-06 4.67159e-08 2.51592e-06 3.21768e-06 7.16523e-07 2.84811e-06 1.17483e-06 3.51279e-06 1.40264e-06 3.05958e-06 1.36512e-06 2.1634e-06 1.07719e-06 1.13474e-06 5.94815e-07 1.84101e-07 -4.05967e-08 -6.45276e-07 -8.51433e-07 -1.1493e-06 -1.80861e-06 -1.31405e-06 -2.75796e-06 -1.33748e-06 -3.28783e-06 -1.18854e-06 -3.1494e-06 -6.20895e-07 -2.6201e-06 4.41395e-07 -1.9754e-06 1.70288e-06 -1.31865e-06 2.91208e-06 -7.16099e-07 3.88996e-06 -1.38545e-07 4.33601e-06 4.08611e-07 4.25409e-06 8.3654e-07 3.2683e-06 1.08536e-06 2.10598e-06 1.21468e-06 8.44793e-07 1.16151e-06 -3.46589e-07 9.6468e-07 -1.23856e-06 6.94611e-07 -1.77597e-06 3.23436e-07 -2.01883e-06 7.49508e-09 -2.04304e-06 -1.08969e-07 -1.86444e-06 -3.36043e-07 -1.37093e-06 -5.4622e-07 -9.43981e-07 -4.11953e-07 -6.09859e-07 -9.55883e-08 -4.23177e-07 1.97753e-07 -2.81404e-07 4.02842e-07 -1.876e-07 5.24666e-07 -8.97875e-08 5.62002e-07 -9.50656e-08 5.90722e-07 -8.2523e-08 6.5472e-07 -3.83149e-08 7.02463e-07 5.21797e-08 6.66995e-07 1.57926e-07 5.72351e-07 4.35872e-07 5.78028e-07 9.25987e-07 6.66687e-07 1.69549e-06 4.26573e-07 2.15973e-06 1.34683e-07 2.0513e-06 2.37334e-07 2.00333e-06 4.47538e-07 2.06081e-06 3.85044e-07 1.84433e-06 6.90954e-08 1.33986e-06 -3.9826e-07 6.88508e-07 -9.5437e-07 -8.5323e-08 -1.58793e-06 -9.64882e-07 -2.31507e-06 -1.97906e-06 -3.21215e-06 -3.08042e-06 -4.49537e-06 -4.47084e-06 -6.02623e-06 -5.73995e-06 -7.61889e-06 -6.80845e-06 -8.89064e-06 -7.65878e-06 -9.21257e-06 -7.81225e-06 -8.64555e-06 -6.69751e-06 -7.70571e-06 -4.28843e-06 -6.50972e-06 -1.25177e-06 -5.34743e-06 2.10122e-06 -4.18529e-06 5.20305e-06 -2.79735e-06 7.51848e-06 -1.32344e-06 8.69984e-06 1.79709e-07 7.63614e-06 1.05046e-06 6.92063e-06 1.75217e-06 8.30352e-06 2.48181e-06 8.44171e-06 3.06627e-06 7.82564e-06 3.78582e-06 7.58592e-06 4.42724e-06 6.99301e-06 5.01225e-06 6.25206e-06 5.60114e-06 5.33455e-06 6.20756e-06 4.23149e-06 6.85922e-06 2.99101e-06 7.55888e-06 1.74023e-06 8.2666e-06 5.09516e-07 8.92687e-06 -4.14548e-07 9.55359e-06 -1.23804e-06 1.00926e-05 -1.81314e-06 1.06504e-05 -2.41324e-06 1.11573e-05 -2.92593e-06 1.16848e-05 -3.44422e-06 1.22084e-05 -4.09553e-06 1.27582e-05 -4.76872e-06 1.3255e-05 -5.22837e-06 1.37761e-05 -5.94918e-06 1.42154e-05 -6.41124e-06 1.46722e-05 -6.75048e-06 1.51365e-05 -7.30101e-06 1.54922e-05 -7.41286e-06 1.59766e-05 -7.73862e-06 1.65782e-05 -8.04411e-06 1.7202e-05 -8.1073e-06 1.79895e-05 -8.25956e-06 1.87643e-05 -8.52096e-06 1.9568e-05 -8.49679e-06 2.05154e-05 -8.57346e-06 2.14503e-05 -8.64603e-06 2.23268e-05 -8.30692e-06 2.31912e-05 -8.26346e-06 2.40715e-05 -7.99859e-06 2.48663e-05 -7.41276e-06 2.57415e-05 -7.20391e-06 2.65323e-05 -6.45694e-06 2.72592e-05 -5.75386e-06 2.80246e-05 -5.1058e-06 2.86343e-05 -4.10773e-06 2.9285e-05 -3.31683e-06 2.98323e-05 -2.28655e-06 3.03478e-05 -1.31173e-06 3.07549e-05 -2.44282e-07 3.10092e-05 7.42845e-07 3.12055e-05 1.7418e-06 3.11935e-05 2.65937e-06 3.11212e-05 3.44255e-06 3.08871e-05 4.19581e-06 3.05029e-05 4.84044e-06 3.00732e-05 5.3065e-06 2.94805e-05 5.86272e-06 2.88642e-05 6.03966e-06 2.815e-05 6.30399e-06 2.74065e-05 6.23792e-06 2.65787e-05 6.25253e-06 2.59121e-05 5.8466e-06 2.52851e-05 5.7449e-06 2.46602e-05 5.05309e-06 2.40972e-05 4.48e-06 2.36429e-05 3.68308e-06 2.30642e-05 3.06434e-06 2.25254e-05 1.78059e-06 2.21214e-05 7.82155e-07 2.14139e-05 -6.65246e-08 2.07781e-05 -1.15231e-06 2.03876e-05 -2.08429e-06 2.0151e-05 -2.97175e-06 1.9736e-05 -4.27168e-06 1.94575e-05 -5.58264e-06 1.95952e-05 -6.68927e-06 1.93323e-05 -7.19167e-06 1.88377e-05 -8.40137e-06 1.85012e-05 -8.95082e-06 1.81711e-05 -9.31853e-06 1.76001e-05 -8.87752e-06 1.70205e-05 -8.74616e-06 1.69788e-05 -8.46054e-06 1.68353e-05 -6.23068e-06 1.65866e-05 -5.21539e-06 1.65321e-05 -3.48827e-06 1.68263e-05 -1.25868e-06 1.81071e-05 -1.16514e-06 1.98516e-05 -1.88725e-06 2.12177e-05 -4.51477e-07 2.24626e-05 -1.17381e-06 2.31354e-05 -2.68186e-06 2.32047e-05 -1.79549e-06 2.30552e-05 -1.36679e-06 2.26687e-05 -2.76528e-06 2.19451e-05 -4.46729e-06 2.10891e-05 -6.89354e-06 1.99548e-05 -8.45166e-06 1.89152e-05 -1.09335e-05 1.87129e-05 -1.5859e-05 1.95349e-05 -1.92886e-05 2.02104e-05 -2.06517e-05 2.07311e-05 -2.18277e-05 2.1016e-05 -2.11111e-05 2.13705e-05 -1.93508e-05 2.22238e-05 -1.54048e-05 2.20777e-05 -1.07983e-05 2.17997e-05 -7.72392e-06 2.24068e-05 -2.74553e-06 2.23411e-05 3.21253e-06 2.18049e-05 6.39422e-06 2.24528e-05 9.76355e-06 2.32895e-05 1.56372e-05 2.36096e-05 2.10907e-05 2.28677e-05 2.50285e-05 2.11213e-05 2.67756e-05 1.94382e-05 2.61678e-05 1.70496e-05 2.43364e-05 1.45258e-05 2.1072e-05 1.27741e-05 1.80689e-05 1.11157e-05 1.67673e-05 1.00073e-05 1.52937e-05 9.05827e-06 1.41217e-05 7.91121e-06 1.31777e-05 6.95877e-06 1.17189e-05 6.12075e-06 1.04453e-05 5.07698e-06 9.46174e-06 4.00159e-06 8.15686e-06 2.84212e-06 7.07019e-06 2.10247e-06 5.71553e-06 1.24773e-06 4.76769e-06 5.67459e-07 3.55171e-06 3.97086e-08 2.61874e-06 -1.37962e-07 2.14585e-06 -3.37829e-08 2.41174e-06 3.1839e-06 8.88789e-07 1.95932e-06 1.57207e-06 2.82951e-06 2.01695e-06 2.61471e-06 2.20714e-06 1.97321e-06 2.17272e-06 1.16916e-06 1.94887e-06 4.07956e-07 1.53589e-06 -2.32301e-07 1.04076e-06 -6.54164e-07 5.29503e-07 -8.02799e-07 -6.29319e-08 -7.45045e-07 -7.51707e-07 -4.9977e-07 -1.22652e-06 -1.46081e-07 -1.22039e-06 4.35263e-07 -7.50172e-07 1.23267e-06 -3.2231e-08 2.19413e-06 8.24925e-07 3.0328e-06 1.67849e-06 3.48244e-06 2.4298e-06 3.50279e-06 2.94093e-06 2.75717e-06 3.24594e-06 1.80097e-06 3.33137e-06 7.59363e-07 3.24715e-06 -2.6236e-07 2.98055e-06 -9.71966e-07 2.64907e-06 -1.44449e-06 2.33647e-06 -1.70622e-06 1.98361e-06 -1.69018e-06 1.59482e-06 -1.47565e-06 1.39425e-06 -1.17035e-06 1.23609e-06 -7.85823e-07 1.08146e-06 -4.55236e-07 9.59053e-07 -3.00767e-07 8.68728e-07 -1.91079e-07 7.88619e-07 -1.07491e-07 7.38653e-07 -3.98223e-08 6.76535e-07 -3.29472e-08 6.34088e-07 -4.00764e-08 6.39273e-07 -4.35001e-08 6.71283e-07 2.017e-08 7.1051e-07 1.187e-07 7.89467e-07 3.56915e-07 9.58217e-07 7.57237e-07 1.30468e-06 1.34902e-06 1.53246e-06 1.93195e-06 1.48815e-06 2.0956e-06 1.38423e-06 2.10725e-06 1.36461e-06 2.08043e-06 1.40051e-06 1.80843e-06 1.26568e-06 1.47469e-06 9.16996e-07 1.03719e-06 4.88159e-07 3.43514e-07 4.91884e-08 -5.25911e-07 -4.26838e-07 -1.50303e-06 -8.27747e-07 -2.67951e-06 -1.32424e-06 -3.97436e-06 -2.24225e-06 -4.82194e-06 -3.5825e-06 -5.46821e-06 -5.1284e-06 -6.11288e-06 -6.31042e-06 -6.63022e-06 -6.63813e-06 -6.3698e-06 -6.02189e-06 -4.90467e-06 -4.80809e-06 -2.46557e-06 -3.44792e-06 7.41047e-07 -2.07433e-06 3.82946e-06 -6.41271e-07 6.08542e-06 9.02965e-07 7.15561e-06 2.16967e-06 6.36943e-06 3.03634e-06 6.05396e-06 4.12185e-06 7.218e-06 5.08764e-06 7.47592e-06 5.80275e-06 7.11053e-06 6.55744e-06 6.83123e-06 7.21155e-06 6.3389e-06 7.86195e-06 5.60166e-06 8.52222e-06 4.67428e-06 9.25518e-06 3.49853e-06 9.99066e-06 2.25554e-06 1.06922e-05 1.03873e-06 1.12963e-05 -9.46623e-08 1.18834e-05 -1.00165e-06 1.24089e-05 -1.76347e-06 1.28761e-05 -2.28038e-06 1.33167e-05 -2.8538e-06 1.38026e-05 -3.41191e-06 1.43407e-05 -3.98227e-06 1.48848e-05 -4.63968e-06 1.54188e-05 -5.30265e-06 1.59411e-05 -5.75065e-06 1.6357e-05 -6.36513e-06 1.6829e-05 -6.88327e-06 1.72986e-05 -7.22006e-06 1.7729e-05 -7.73143e-06 1.83519e-05 -8.03576e-06 1.89411e-05 -8.32774e-06 1.97088e-05 -8.8118e-06 2.0451e-05 -8.84959e-06 2.12722e-05 -9.08076e-06 2.22956e-05 -9.54431e-06 2.31282e-05 -9.32939e-06 2.39667e-05 -9.41195e-06 2.48329e-05 -9.51228e-06 2.56355e-05 -9.10953e-06 2.64185e-05 -9.04642e-06 2.71536e-05 -8.7337e-06 2.78734e-05 -8.13252e-06 2.85399e-05 -7.87041e-06 2.91999e-05 -7.11695e-06 2.98328e-05 -6.38682e-06 3.0504e-05 -5.77698e-06 3.11267e-05 -4.73038e-06 3.17533e-05 -3.94347e-06 3.23652e-05 -2.89841e-06 3.2905e-05 -1.85155e-06 3.34358e-05 -7.75104e-07 3.37971e-05 3.81566e-07 3.40844e-05 1.45451e-06 3.42606e-05 2.4832e-06 3.42602e-05 3.44288e-06 3.41848e-05 4.27121e-06 3.3897e-05 5.1283e-06 3.34844e-05 5.71904e-06 3.29829e-05 6.36426e-06 3.23811e-05 6.64142e-06 3.1669e-05 7.01608e-06 3.09267e-05 6.98027e-06 3.00996e-05 7.07966e-06 2.92751e-05 6.67104e-06 2.85372e-05 6.48283e-06 2.77199e-05 5.87034e-06 2.69824e-05 5.21755e-06 2.63187e-05 4.34682e-06 2.57003e-05 3.68267e-06 2.49083e-05 2.5726e-06 2.43511e-05 1.3394e-06 2.3709e-05 5.75542e-07 2.31143e-05 -5.57593e-07 2.26867e-05 -1.65671e-06 2.24436e-05 -2.72863e-06 2.21721e-05 -4.00013e-06 2.17805e-05 -5.19107e-06 2.15581e-05 -6.46694e-06 2.12801e-05 -6.91359e-06 2.06457e-05 -7.76704e-06 2.01393e-05 -8.4444e-06 1.97978e-05 -8.97698e-06 1.91861e-05 -8.26581e-06 1.83065e-05 -7.86664e-06 1.79654e-05 -8.11938e-06 1.79467e-05 -6.21197e-06 1.77594e-05 -5.02812e-06 1.73574e-05 -3.0863e-06 1.73208e-05 -1.22204e-06 1.81793e-05 -2.02367e-06 1.92865e-05 -2.99447e-06 2.05439e-05 -1.70889e-06 2.18483e-05 -2.47819e-06 2.25217e-05 -3.35522e-06 2.27761e-05 -2.04995e-06 2.27613e-05 -1.3519e-06 2.24455e-05 -2.44957e-06 2.18777e-05 -3.89946e-06 2.10384e-05 -6.05423e-06 2.00263e-05 -7.43954e-06 1.92036e-05 -1.01108e-05 1.86824e-05 -1.53378e-05 1.90269e-05 -1.96331e-05 1.98357e-05 -2.14605e-05 2.05097e-05 -2.25016e-05 2.09795e-05 -2.15809e-05 2.11918e-05 -1.95632e-05 2.21142e-05 -1.63272e-05 2.24792e-05 -1.11633e-05 2.21462e-05 -7.39085e-06 2.23689e-05 -2.96829e-06 2.25809e-05 3.00055e-06 2.19524e-05 7.02268e-06 2.20458e-05 9.67018e-06 2.31206e-05 1.45624e-05 2.35507e-05 2.06606e-05 2.35507e-05 2.50285e-05 2.24543e-05 2.7872e-05 2.02212e-05 2.84009e-05 1.82678e-05 2.62897e-05 1.59498e-05 2.33899e-05 1.3672e-05 2.03468e-05 1.25567e-05 1.78826e-05 1.10744e-05 1.6776e-05 9.92101e-06 1.52751e-05 9.27299e-06 1.38258e-05 8.14672e-06 1.28452e-05 6.84924e-06 1.17428e-05 5.84919e-06 1.04618e-05 4.92207e-06 9.08397e-06 4.14788e-06 7.84438e-06 2.99221e-06 6.8712e-06 2.29595e-06 5.46395e-06 1.44681e-06 4.40085e-06 9.43697e-07 3.12184e-06 4.05798e-07 2.68375e-06 2.77533e-07 2.54e-06 3.46143e-06 8.86128e-07 1.07319e-06 1.78529e-06 1.93034e-06 2.47601e-06 1.92399e-06 2.88901e-06 1.5602e-06 3.05228e-06 1.00589e-06 2.99947e-06 4.60762e-07 2.76419e-06 2.97892e-09 2.43179e-06 -3.21762e-07 2.07449e-06 -4.45499e-07 1.72896e-06 -3.99513e-07 1.4396e-06 -2.10412e-07 1.16918e-06 1.24344e-07 1.01123e-06 5.93211e-07 1.14522e-06 1.09868e-06 1.62121e-06 1.71814e-06 2.40914e-06 2.24487e-06 3.32168e-06 2.56991e-06 4.18577e-06 2.6387e-06 4.81682e-06 2.12612e-06 5.20373e-06 1.41406e-06 5.33957e-06 6.23519e-07 5.26031e-06 -1.83095e-07 5.05737e-06 -7.69026e-07 4.77038e-06 -1.1575e-06 4.38775e-06 -1.3236e-06 4.02512e-06 -1.32755e-06 3.66673e-06 -1.11727e-06 3.23857e-06 -7.42193e-07 2.95346e-06 -5.0071e-07 2.83705e-06 -3.38828e-07 2.76546e-06 -2.29178e-07 2.68719e-06 -1.12806e-07 2.58907e-06 -9.369e-09 2.5123e-06 3.69392e-08 2.42602e-06 5.33381e-08 2.31598e-06 6.99611e-08 2.19387e-06 7.86106e-08 2.09499e-06 1.19047e-07 2.03028e-06 1.83409e-07 2.0633e-06 3.23896e-07 2.22197e-06 5.98569e-07 2.61628e-06 9.54721e-07 3.12835e-06 1.41988e-06 3.55177e-06 1.67219e-06 3.86465e-06 1.79436e-06 4.13842e-06 1.80666e-06 4.34921e-06 1.59764e-06 4.50116e-06 1.32275e-06 4.63659e-06 9.01768e-07 4.70998e-06 2.70114e-07 4.66276e-06 -4.78691e-07 4.45884e-06 -1.2991e-06 3.99079e-06 -2.21146e-06 3.15304e-06 -3.13661e-06 2.22758e-06 -3.89648e-06 1.36415e-06 -4.60477e-06 3.13123e-07 -5.06186e-06 -1.21008e-06 -5.10702e-06 -2.71431e-06 -4.86556e-06 -3.23958e-06 -4.3794e-06 -2.49248e-06 -3.21267e-06 -9.29125e-07 -8.2231e-07 8.75831e-07 2.02451e-06 2.59795e-06 4.36329e-06 3.93429e-06 5.81927e-06 4.7176e-06 5.58612e-06 5.36561e-06 5.40595e-06 6.417e-06 6.16661e-06 7.52152e-06 6.37139e-06 8.41892e-06 6.21313e-06 9.2987e-06 5.95145e-06 1.01399e-05 5.49774e-06 1.10019e-05 4.73967e-06 1.18094e-05 3.86678e-06 1.25246e-05 2.78329e-06 1.31927e-05 1.58738e-06 1.38693e-05 3.62151e-07 1.4406e-05 -6.31345e-07 1.48365e-05 -1.43213e-06 1.51699e-05 -2.09686e-06 1.56478e-05 -2.75833e-06 1.61157e-05 -3.32163e-06 1.65892e-05 -3.88543e-06 1.70532e-05 -4.44631e-06 1.7559e-05 -5.14546e-06 1.80191e-05 -5.76279e-06 1.85498e-05 -6.28133e-06 1.89983e-05 -6.81355e-06 1.94778e-05 -7.36286e-06 2.00551e-05 -7.79735e-06 2.06353e-05 -8.31157e-06 2.13955e-05 -8.79597e-06 2.21465e-05 -9.07877e-06 2.29325e-05 -9.59775e-06 2.39524e-05 -9.86955e-06 2.47384e-05 -9.86674e-06 2.55361e-05 -1.0342e-05 2.63486e-05 -1.01419e-05 2.69731e-05 -1.00364e-05 2.76452e-05 -1.01844e-05 2.81963e-05 -9.66063e-06 2.87044e-05 -9.5545e-06 2.9118e-05 -9.14733e-06 2.96323e-05 -8.64683e-06 3.0049e-05 -8.28706e-06 3.0467e-05 -7.53497e-06 3.10367e-05 -6.95646e-06 3.15155e-05 -6.25582e-06 3.2153e-05 -5.3679e-06 3.27423e-05 -4.53273e-06 3.33687e-05 -3.52478e-06 3.39974e-05 -2.4803e-06 3.45211e-05 -1.29885e-06 3.51372e-05 -2.34505e-07 3.54761e-05 1.1156e-06 3.59226e-05 2.03677e-06 3.61389e-05 3.22658e-06 3.62577e-05 4.15234e-06 3.62596e-05 5.12646e-06 3.6023e-05 5.95556e-06 3.57478e-05 6.63944e-06 3.53246e-05 7.0647e-06 3.47458e-05 7.59488e-06 3.40935e-05 7.63256e-06 3.33944e-05 7.77872e-06 3.24949e-05 7.57051e-06 3.17461e-05 7.23164e-06 3.0839e-05 6.77751e-06 2.99969e-05 6.05957e-06 2.91339e-05 5.20982e-06 2.84244e-05 4.39226e-06 2.75738e-05 3.42319e-06 2.68383e-05 2.07484e-06 2.61977e-05 1.21618e-06 2.55546e-05 8.54798e-08 2.50652e-05 -1.16727e-06 2.47283e-05 -2.39177e-06 2.43264e-05 -3.59822e-06 2.38188e-05 -4.68352e-06 2.33054e-05 -5.95347e-06 2.29156e-05 -6.52383e-06 2.22162e-05 -7.06765e-06 2.15384e-05 -7.7666e-06 2.10119e-05 -8.45048e-06 2.0319e-05 -7.5729e-06 1.93585e-05 -6.90606e-06 1.86287e-05 -7.38957e-06 1.85059e-05 -6.08919e-06 1.84714e-05 -4.99366e-06 1.79596e-05 -2.57452e-06 1.77927e-05 -1.05513e-06 1.81227e-05 -2.35366e-06 1.85045e-05 -3.3762e-06 1.95884e-05 -2.79286e-06 2.07766e-05 -3.66634e-06 2.14881e-05 -4.06677e-06 2.20155e-05 -2.57736e-06 2.2191e-05 -1.52737e-06 2.2115e-05 -2.37355e-06 2.15648e-05 -3.34932e-06 2.07132e-05 -5.20264e-06 2.00386e-05 -6.76495e-06 1.95979e-05 -9.67003e-06 1.89316e-05 -1.46715e-05 1.88889e-05 -1.95903e-05 1.95557e-05 -2.21274e-05 2.03499e-05 -2.32958e-05 2.09852e-05 -2.22162e-05 2.108e-05 -1.9658e-05 2.17139e-05 -1.69611e-05 2.25111e-05 -1.19605e-05 2.2333e-05 -7.21279e-06 2.24154e-05 -3.0507e-06 2.26304e-05 2.7856e-06 2.2167e-05 7.48609e-06 2.17503e-05 1.00868e-05 2.26716e-05 1.36411e-05 2.36262e-05 1.9706e-05 2.36201e-05 2.50346e-05 2.33132e-05 2.81789e-05 2.17234e-05 2.99907e-05 1.91029e-05 2.89103e-05 1.72049e-05 2.52879e-05 1.51254e-05 2.24263e-05 1.31946e-05 1.98134e-05 1.25001e-05 1.74705e-05 1.11745e-05 1.66006e-05 1.00094e-05 1.49909e-05 9.32066e-06 1.35339e-05 8.27759e-06 1.27859e-05 7.18419e-06 1.15552e-05 5.94058e-06 1.03276e-05 4.49907e-06 9.2859e-06 3.86821e-06 7.50205e-06 2.99899e-06 6.33317e-06 2.24939e-06 5.15045e-06 1.30071e-06 4.07053e-06 3.70782e-07 3.61368e-06 -5.56738e-08 2.96646e-06 3.40576e-06 2.70865e-07 8.02324e-07 1.32265e-06 8.78562e-07 2.1997e-06 1.04694e-06 2.84379e-06 9.16108e-07 3.23003e-06 6.19653e-07 3.3945e-06 2.96297e-07 3.39411e-06 3.36698e-09 3.26749e-06 -1.95142e-07 3.12096e-06 -2.98967e-07 3.00496e-06 -2.83521e-07 2.94623e-06 -1.51675e-07 3.00897e-06 6.1601e-08 3.18682e-06 4.15356e-07 3.51055e-06 7.74949e-07 4.00387e-06 1.22482e-06 4.65959e-06 1.58915e-06 5.45088e-06 1.77862e-06 6.23943e-06 1.85015e-06 6.84564e-06 1.51991e-06 7.24089e-06 1.0188e-06 7.39619e-06 4.68222e-07 7.30259e-06 -8.94932e-08 7.06816e-06 -5.34602e-07 6.69369e-06 -7.83032e-07 6.25627e-06 -8.86175e-07 5.78622e-06 -8.57496e-07 5.34165e-06 -6.72694e-07 5.08362e-06 -4.84167e-07 4.92003e-06 -3.37113e-07 4.77203e-06 -1.90835e-07 4.61511e-06 -7.22594e-08 4.50671e-06 -4.39865e-09 4.44803e-06 4.93068e-08 4.42097e-06 6.40025e-08 4.41204e-06 6.22688e-08 4.41338e-06 6.86155e-08 4.40273e-06 8.92609e-08 4.39743e-06 1.24347e-07 4.39314e-06 1.87697e-07 4.42826e-06 2.8878e-07 4.55933e-06 4.67496e-07 4.84481e-06 6.69247e-07 5.29688e-06 9.67806e-07 5.82078e-06 1.14829e-06 6.35198e-06 1.26316e-06 6.85885e-06 1.29979e-06 7.27787e-06 1.17862e-06 7.66953e-06 9.31087e-07 7.97518e-06 5.96119e-07 8.16391e-06 8.1383e-08 8.22917e-06 -5.43947e-07 8.18492e-06 -1.25486e-06 8.03466e-06 -2.06119e-06 7.76243e-06 -2.86438e-06 7.32175e-06 -3.4558e-06 6.56661e-06 -3.84963e-06 5.46401e-06 -3.95926e-06 4.22018e-06 -3.86319e-06 3.02718e-06 -3.67257e-06 1.96378e-06 -3.316e-06 1.39332e-06 -2.64221e-06 1.88484e-06 -1.31382e-06 3.48398e-06 4.2537e-07 5.49135e-06 2.35592e-06 7.29578e-06 4.01483e-06 8.36922e-06 4.51268e-06 9.1554e-06 4.61978e-06 1.01114e-05 5.21066e-06 1.09823e-05 5.50049e-06 1.18827e-05 5.31266e-06 1.27809e-05 5.05332e-06 1.363e-05 4.64855e-06 1.44327e-05 3.93699e-06 1.52694e-05 3.03014e-06 1.6058e-05 1.99462e-06 1.66887e-05 9.5676e-07 1.71212e-05 -7.03699e-08 1.74645e-05 -9.74683e-07 1.78837e-05 -1.8513e-06 1.82176e-05 -2.43079e-06 1.85534e-05 -3.09417e-06 1.89209e-05 -3.68914e-06 1.93296e-05 -4.29413e-06 1.98328e-05 -4.94947e-06 2.02696e-05 -5.58226e-06 2.06749e-05 -6.16804e-06 2.12101e-05 -6.81661e-06 2.17313e-05 -7.33476e-06 2.23941e-05 -8.02567e-06 2.31573e-05 -8.56053e-06 2.38659e-05 -9.02019e-06 2.47342e-05 -9.66421e-06 2.56063e-05 -9.95093e-06 2.63193e-05 -1.03107e-05 2.71291e-05 -1.06794e-05 2.77638e-05 -1.05014e-05 2.82186e-05 -1.07969e-05 2.87113e-05 -1.06345e-05 2.90261e-05 -1.03513e-05 2.9238e-05 -1.03963e-05 2.94817e-05 -9.90427e-06 2.96363e-05 -9.70914e-06 2.97292e-05 -9.24023e-06 2.99751e-05 -8.89279e-06 3.01821e-05 -8.49397e-06 3.04322e-05 -7.7851e-06 3.09431e-05 -7.46741e-06 3.1375e-05 -6.68769e-06 3.20177e-05 -6.01057e-06 3.26184e-05 -5.13349e-06 3.32617e-05 -4.16809e-06 3.39802e-05 -3.19878e-06 3.45173e-05 -1.83595e-06 3.51738e-05 -8.90925e-07 3.5672e-05 6.17324e-07 3.61638e-05 1.54496e-06 3.65993e-05 2.79113e-06 3.67662e-05 3.98541e-06 3.70599e-05 4.83279e-06 3.7043e-05 5.97249e-06 3.70582e-05 6.62423e-06 3.68743e-05 7.24855e-06 3.65712e-05 7.89802e-06 3.61749e-05 8.02883e-06 3.57094e-05 8.2443e-06 3.49976e-05 8.28229e-06 3.43507e-05 7.87849e-06 3.35385e-05 7.58978e-06 3.2678e-05 6.92006e-06 3.18103e-05 6.07751e-06 3.09557e-05 5.24686e-06 3.01321e-05 4.24681e-06 2.92505e-05 2.95636e-06 2.84866e-05 1.98015e-06 2.77902e-05 7.81823e-07 2.71681e-05 -5.45177e-07 2.66065e-05 -1.83017e-06 2.60033e-05 -2.99502e-06 2.54022e-05 -4.08244e-06 2.47353e-05 -5.28659e-06 2.42199e-05 -6.0084e-06 2.33709e-05 -6.21863e-06 2.25808e-05 -6.97653e-06 2.17979e-05 -7.66756e-06 2.09012e-05 -6.6762e-06 1.99053e-05 -5.91016e-06 1.89458e-05 -6.4301e-06 1.86481e-05 -5.79149e-06 1.85005e-05 -4.84609e-06 1.80402e-05 -2.11421e-06 1.79914e-05 -1.0063e-06 1.77706e-05 -2.13285e-06 1.77179e-05 -3.32349e-06 1.85061e-05 -3.58105e-06 1.94396e-05 -4.59986e-06 2.02744e-05 -4.90157e-06 2.09178e-05 -3.22074e-06 2.11637e-05 -1.77324e-06 2.12989e-05 -2.50881e-06 2.0807e-05 -2.85741e-06 2.02445e-05 -4.64011e-06 1.98895e-05 -6.40994e-06 1.97095e-05 -9.49006e-06 1.95997e-05 -1.45618e-05 1.95749e-05 -1.95655e-05 2.01903e-05 -2.27427e-05 2.09788e-05 -2.40843e-05 2.15337e-05 -2.2771e-05 2.15544e-05 -1.96787e-05 2.16119e-05 -1.70186e-05 2.23332e-05 -1.26818e-05 2.24467e-05 -7.32622e-06 2.23681e-05 -2.97214e-06 2.25358e-05 2.61789e-06 2.22035e-05 7.81845e-06 2.16607e-05 1.06296e-05 2.20029e-05 1.32989e-05 2.33943e-05 1.83146e-05 2.39318e-05 2.44971e-05 2.34816e-05 2.8629e-05 2.28956e-05 3.05767e-05 2.09132e-05 3.08927e-05 1.81009e-05 2.81002e-05 1.65059e-05 2.40213e-05 1.48341e-05 2.14852e-05 1.29816e-05 1.93231e-05 1.25678e-05 1.70144e-05 1.14082e-05 1.61506e-05 1.04212e-05 1.45209e-05 9.81794e-06 1.33891e-05 8.32718e-06 1.30459e-05 7.59146e-06 1.10633e-05 6.75935e-06 1.0118e-05 5.50821e-06 8.7532e-06 4.96413e-06 6.87725e-06 3.58047e-06 6.53411e-06 3.10273e-06 4.54827e-06 1.92535e-06 4.79106e-06 1.69893e-06 3.19287e-06 5.10469e-06 7.96465e-07 1.43918e-06 2.19201e-06 2.81477e-06 3.26012e-06 3.56135e-06 3.71577e-06 3.78475e-06 3.80456e-06 3.83723e-06 3.92161e-06 4.08124e-06 4.37568e-06 4.79924e-06 5.39372e-06 6.08909e-06 6.83617e-06 7.57797e-06 8.13293e-06 8.49119e-06 8.63396e-06 8.57042e-06 8.32147e-06 7.98405e-06 7.61195e-06 7.24647e-06 6.99303e-06 6.82224e-06 6.71392e-06 6.68414e-06 6.71317e-06 6.76493e-06 6.83901e-06 6.92768e-06 7.00857e-06 7.09619e-06 7.17774e-06 7.27222e-06 7.37105e-06 7.48685e-06 7.66112e-06 7.89648e-06 8.25955e-06 8.67938e-06 9.15494e-06 9.6634e-06 1.01452e-05 1.0595e-05 1.09845e-05 1.12756e-05 1.14417e-05 1.14732e-05 1.13346e-05 1.0921e-05 1.03636e-05 9.79604e-06 9.35718e-06 9.06081e-06 8.82467e-06 8.38763e-06 7.71946e-06 7.23196e-06 7.29697e-06 8.19124e-06 9.6088e-06 1.08993e-05 1.19832e-05 1.31816e-05 1.42566e-05 1.51933e-05 1.6145e-05 1.70847e-05 1.79096e-05 1.86236e-05 1.91661e-05 1.96519e-05 1.99913e-05 2.02736e-05 2.04893e-05 2.07412e-05 2.10888e-05 2.14718e-05 2.18705e-05 2.23745e-05 2.29068e-05 2.34874e-05 2.41945e-05 2.49584e-05 2.57379e-05 2.65559e-05 2.73215e-05 2.80522e-05 2.86967e-05 2.91587e-05 2.95071e-05 2.97654e-05 2.97945e-05 2.98006e-05 2.97469e-05 2.95421e-05 2.94672e-05 2.93406e-05 2.93095e-05 2.94274e-05 2.95956e-05 2.99291e-05 3.04674e-05 3.10114e-05 3.17459e-05 3.24441e-05 3.31791e-05 3.39122e-05 3.45211e-05 3.51379e-05 3.56994e-05 3.60653e-05 3.65224e-05 3.66186e-05 3.69197e-05 3.69568e-05 3.70302e-05 3.69848e-05 3.68612e-05 3.66847e-05 3.64254e-05 3.60183e-05 3.55876e-05 3.50387e-05 3.43273e-05 3.36262e-05 3.27914e-05 3.20017e-05 3.11421e-05 3.03493e-05 2.96128e-05 2.88546e-05 2.80817e-05 2.73365e-05 2.65773e-05 2.56864e-05 2.49336e-05 2.39016e-05 2.29735e-05 2.19635e-05 2.09147e-05 1.98803e-05 1.88496e-05 1.84182e-05 1.81342e-05 1.78017e-05 1.77597e-05 1.72368e-05 1.71171e-05 1.749e-05 1.81951e-05 1.91077e-05 1.96044e-05 1.99843e-05 2.00458e-05 1.96902e-05 1.94725e-05 1.91495e-05 1.94957e-05 2.03116e-05 2.10567e-05 2.16838e-05 2.19692e-05 2.22557e-05 2.22525e-05 2.18862e-05 2.2136e-05 2.23909e-05 2.2189e-05 2.23788e-05 2.21382e-05 2.16537e-05 2.16029e-05 2.26566e-05 2.40162e-05 2.39036e-05 2.31276e-05 2.22872e-05 1.98553e-05 1.71858e-05 1.59318e-05 1.45318e-05 1.31705e-05 1.30629e-05 1.14445e-05 1.06074e-05 1.02822e-05 8.4874e-06 8.49524e-06 7.0844e-06 6.56229e-06 5.44538e-06 3.78402e-06 2.8089e-06 1.79723e-06 3.52314e-06 3.05464e-06 2.66825e-06 8.54894e-07 4.16755e-06 -1.49931e-06 4.26445e-06 -9.68945e-08 3.67555e-06 5.88893e-07 1.68091e-06 1.99464e-06 1.76561e-07 1.50435e-06 7.66505e-08 9.9911e-08 1.25543e-06 -1.17878e-06 2.75891e-06 -1.50348e-06 3.92177e-06 -1.16286e-06 4.42616e-06 -5.04388e-07 4.62213e-06 -1.95973e-07 4.67258e-06 -5.04501e-08 4.50467e-06 1.6791e-07 4.52764e-06 -2.29651e-08 4.56007e-06 -3.24334e-08 4.41654e-06 1.43536e-07 4.20315e-06 2.13389e-07 1.19094e-07 1.19767e-05 3.62837e-06 1.0978e-05 1.85361e-06 1.08862e-05 -1.40751e-06 9.41836e-06 1.3709e-06 8.24065e-06 1.7666e-06 6.01595e-06 4.21935e-06 4.44003e-06 3.08027e-06 4.82569e-06 -2.8575e-07 6.69731e-06 -3.05041e-06 8.87489e-06 -3.68106e-06 1.0501e-05 -2.789e-06 1.13689e-05 -1.37229e-06 1.17238e-05 -5.50876e-07 1.1793e-05 -1.19605e-07 1.15672e-05 3.93751e-07 1.14787e-05 6.55021e-08 1.13623e-05 8.39157e-08 1.1014e-05 4.91924e-07 1.06501e-05 5.77245e-07 2.73356e-07 1.69404e-05 1.87698e-06 1.78283e-05 9.65664e-07 1.78458e-05 -1.42499e-06 1.54701e-05 3.74661e-06 1.35964e-05 3.6403e-06 1.16451e-05 6.17062e-06 1.02619e-05 4.46348e-06 1.08542e-05 -8.78046e-07 1.25864e-05 -4.78256e-06 1.46785e-05 -5.77321e-06 1.61368e-05 -4.24726e-06 1.69972e-05 -2.23275e-06 1.74267e-05 -9.80318e-07 1.74793e-05 -1.72199e-07 1.7284e-05 5.89053e-07 1.70804e-05 2.69127e-07 1.68565e-05 3.0775e-07 1.64257e-05 9.22757e-07 1.59554e-05 1.04749e-06 4.64053e-07 1.7973e-05 8.45312e-07 2.10243e-05 -2.08563e-06 2.33278e-05 -3.72853e-06 2.19902e-05 5.08416e-06 1.98316e-05 5.79893e-06 1.79811e-05 8.02112e-06 1.69253e-05 5.51931e-06 1.77145e-05 -1.66721e-06 1.90702e-05 -6.13827e-06 2.06744e-05 -7.37749e-06 2.16555e-05 -5.22828e-06 2.20956e-05 -2.67294e-06 2.24293e-05 -1.31398e-06 2.23383e-05 -8.11688e-08 2.21431e-05 7.84264e-07 2.1906e-05 5.06154e-07 2.15914e-05 6.22434e-07 2.11673e-05 1.34679e-06 2.06455e-05 1.5693e-06 7.02941e-07 1.85408e-05 9.39989e-07 2.18967e-05 -5.44161e-06 2.56983e-05 -7.53014e-06 2.70027e-05 3.77981e-06 2.6042e-05 6.75963e-06 2.44136e-05 9.64947e-06 2.36367e-05 6.2962e-06 2.4497e-05 -2.52741e-06 2.54836e-05 -7.12489e-06 2.64888e-05 -8.38268e-06 2.69146e-05 -5.65414e-06 2.6745e-05 -2.50332e-06 2.68386e-05 -1.40758e-06 2.65329e-05 2.24562e-07 2.62374e-05 1.07967e-06 2.60358e-05 7.07799e-07 2.56583e-05 9.99892e-07 2.52808e-05 1.72437e-06 2.48082e-05 2.04187e-06 9.52487e-07 2.01376e-05 1.15396e-06 2.33214e-05 -8.62533e-06 2.63442e-05 -1.05529e-05 2.94683e-05 6.55651e-07 3.08468e-05 5.38116e-06 3.01111e-05 1.03852e-05 2.97231e-05 6.68414e-06 3.04305e-05 -3.23475e-06 3.09308e-05 -7.62516e-06 3.13138e-05 -8.76577e-06 3.13022e-05 -5.64247e-06 3.05069e-05 -1.70801e-06 3.02818e-05 -1.18248e-06 2.98141e-05 6.92219e-07 2.93271e-05 1.56665e-06 2.91867e-05 8.4819e-07 2.89203e-05 1.26635e-06 2.86826e-05 1.96211e-06 2.83355e-05 2.38888e-06 1.1512e-06 2.23374e-05 1.15994e-06 2.53975e-05 -1.16855e-05 2.71657e-05 -1.23211e-05 2.99897e-05 -2.16835e-06 3.3041e-05 2.32986e-06 3.37021e-05 9.72405e-06 3.40739e-05 6.3124e-06 3.45412e-05 -3.70212e-06 3.45496e-05 -7.63348e-06 3.42672e-05 -8.48344e-06 3.38612e-05 -5.2364e-06 3.25808e-05 -4.27678e-07 3.2132e-05 -7.33627e-07 3.17772e-05 1.04698e-06 3.1136e-05 2.20791e-06 3.08485e-05 1.13566e-06 3.0698e-05 1.41688e-06 3.07871e-05 1.87294e-06 3.08329e-05 2.34314e-06 1.11837e-06 2.47001e-05 6.18753e-07 2.70765e-05 -1.40619e-05 2.83945e-05 -1.36392e-05 3.01826e-05 -3.95649e-06 3.32869e-05 -7.74397e-07 3.48927e-05 8.11827e-06 3.60634e-05 5.14172e-06 3.61364e-05 -3.77518e-06 3.57101e-05 -7.20721e-06 3.51977e-05 -7.97103e-06 3.45615e-05 -4.60017e-06 3.29208e-05 1.21303e-06 3.23101e-05 -1.22924e-07 3.2388e-05 9.69074e-07 3.20842e-05 2.51171e-06 3.17456e-05 1.47426e-06 3.14816e-05 1.68091e-06 3.15877e-05 1.76686e-06 3.18636e-05 2.06717e-06 8.11995e-07 2.69779e-05 -3.98291e-07 2.84978e-05 -1.55818e-05 2.96711e-05 -1.48125e-05 3.06365e-05 -4.92187e-06 3.30871e-05 -3.22501e-06 3.48214e-05 6.38398e-06 3.65527e-05 3.41039e-06 3.64402e-05 -3.66262e-06 3.53216e-05 -6.0886e-06 3.47813e-05 -7.43077e-06 3.45658e-05 -4.38461e-06 3.28698e-05 2.90897e-06 3.18306e-05 9.1631e-07 3.21995e-05 6.00166e-07 3.261e-05 2.10119e-06 3.24984e-05 1.58583e-06 3.21214e-05 2.05793e-06 3.21106e-05 1.77765e-06 3.22522e-05 1.92558e-06 5.18779e-07 2.9214e-05 -1.40189e-06 2.98208e-05 -1.61886e-05 3.05317e-05 -1.55234e-05 3.09879e-05 -5.37801e-06 3.28132e-05 -5.05032e-06 3.41814e-05 5.01573e-06 3.58211e-05 1.77074e-06 3.61132e-05 -3.95472e-06 3.4742e-05 -4.71744e-06 3.3608e-05 -6.29672e-06 3.3962e-05 -4.73868e-06 3.32511e-05 3.6199e-06 3.19062e-05 2.26118e-06 3.18589e-05 6.47475e-07 3.27228e-05 1.23733e-06 3.31695e-05 1.13908e-06 3.29993e-05 2.2282e-06 3.28504e-05 1.92648e-06 3.27214e-05 2.05458e-06 3.63097e-07 3.13282e-05 -2.4041e-06 3.11061e-05 -1.59665e-05 3.11624e-05 -1.55797e-05 3.14855e-05 -5.70115e-06 3.27241e-05 -6.28882e-06 3.36644e-05 4.07543e-06 3.4642e-05 7.93062e-07 3.50451e-05 -4.35783e-06 3.44254e-05 -4.09768e-06 3.28387e-05 -4.71003e-06 3.27784e-05 -4.67835e-06 3.32965e-05 3.10175e-06 3.25938e-05 2.96386e-06 3.19945e-05 1.24683e-06 3.24093e-05 8.22508e-07 3.32865e-05 2.61925e-07 3.38743e-05 1.64036e-06 3.37236e-05 2.07717e-06 3.34074e-05 2.37082e-06 2.28761e-07 3.30392e-05 -3.36084e-06 3.22022e-05 -1.51295e-05 3.18204e-05 -1.5198e-05 3.21034e-05 -5.9841e-06 3.26556e-05 -6.84101e-06 3.35105e-05 3.22051e-06 3.44532e-05 -1.4968e-07 3.44149e-05 -4.31949e-06 3.39441e-05 -3.62686e-06 3.25428e-05 -3.30876e-06 3.18192e-05 -3.9548e-06 3.26053e-05 2.31573e-06 3.27559e-05 2.81319e-06 3.24217e-05 1.58111e-06 3.23091e-05 9.35035e-07 3.29168e-05 -3.45727e-07 3.40272e-05 5.29907e-07 3.40732e-05 2.03122e-06 3.38784e-05 2.56562e-06 -5.37132e-08 3.41837e-05 -3.99905e-06 3.31455e-05 -1.40913e-05 3.24701e-05 -1.45226e-05 3.23917e-05 -5.90564e-06 3.23462e-05 -6.79556e-06 3.33613e-05 2.20546e-06 3.43052e-05 -1.0936e-06 3.38555e-05 -3.86981e-06 3.28637e-05 -2.63503e-06 3.17608e-05 -2.20591e-06 3.0987e-05 -3.18097e-06 3.17166e-05 1.5861e-06 3.22986e-05 2.2312e-06 3.24856e-05 1.39417e-06 3.2458e-05 9.62635e-07 3.26578e-05 -5.45569e-07 3.36065e-05 -4.18821e-07 3.37138e-05 1.92395e-06 3.38534e-05 2.42604e-06 -5.72776e-07 3.48646e-05 -4.2443e-06 3.40433e-05 -1.327e-05 3.25533e-05 -1.30325e-05 3.17574e-05 -5.10976e-06 3.15173e-05 -6.55546e-06 3.25013e-05 1.22145e-06 3.2741e-05 -1.33331e-06 3.21869e-05 -3.31578e-06 3.14416e-05 -1.88969e-06 3.09758e-05 -1.74016e-06 3.02436e-05 -2.4487e-06 3.09426e-05 8.8706e-07 3.1853e-05 1.32077e-06 3.24037e-05 8.43502e-07 3.2548e-05 8.18368e-07 3.23245e-05 -3.22061e-07 3.28349e-05 -9.29288e-07 3.29167e-05 1.84213e-06 3.33249e-05 2.01789e-06 -1.22637e-06 3.53478e-05 -4.77154e-06 3.42843e-05 -1.22066e-05 3.14576e-05 -1.02058e-05 3.04273e-05 -4.07945e-06 3.01108e-05 -6.23896e-06 3.0638e-05 6.9423e-07 3.04615e-05 -1.15673e-06 3.04644e-05 -3.31873e-06 3.04655e-05 -1.89073e-06 3.0479e-05 -1.75371e-06 2.99724e-05 -1.94204e-06 3.08934e-05 -3.39566e-08 3.17975e-05 4.16601e-07 3.21169e-05 5.24162e-07 3.22292e-05 7.06087e-07 3.20331e-05 -1.25951e-07 3.20379e-05 -9.34093e-07 3.18678e-05 2.01225e-06 3.24787e-05 1.40691e-06 -1.83278e-06 3.52785e-05 -5.90291e-06 3.33473e-05 -1.02754e-05 3.0774e-05 -7.6325e-06 3.00962e-05 -3.40167e-06 2.89323e-05 -5.07508e-06 2.91979e-05 4.28638e-07 2.92653e-05 -1.22411e-06 2.95822e-05 -3.63563e-06 2.98828e-05 -2.19136e-06 2.99465e-05 -1.81742e-06 2.98812e-05 -1.87675e-06 3.05822e-05 -7.3494e-07 3.07405e-05 2.58307e-07 3.06534e-05 6.11284e-07 3.08079e-05 5.51561e-07 3.07511e-05 -6.90796e-08 3.0396e-05 -5.79036e-07 3.05207e-05 1.88758e-06 3.12278e-05 6.99762e-07 -1.92404e-06 3.44486e-05 -7.03935e-06 3.22461e-05 -8.07285e-06 3.06148e-05 -6.00121e-06 2.9767e-05 -2.55387e-06 2.79197e-05 -3.22776e-06 2.84032e-05 -5.48141e-08 2.84129e-05 -1.23385e-06 2.81435e-05 -3.36626e-06 2.8104e-05 -2.15187e-06 2.77358e-05 -1.44922e-06 2.73851e-05 -1.52598e-06 2.72562e-05 -6.06105e-07 2.70004e-05 5.14129e-07 2.70272e-05 5.84464e-07 2.71509e-05 4.27833e-07 2.70209e-05 6.09966e-08 2.67558e-05 -3.1401e-07 2.73262e-05 1.3172e-06 2.76791e-05 3.46907e-07 -1.41285e-06 3.223e-05 -6.91319e-06 2.96743e-05 -5.51715e-06 2.77219e-05 -4.0488e-06 2.64769e-05 -1.30883e-06 2.48427e-05 -1.59357e-06 2.5179e-05 -3.91113e-07 2.47449e-05 -7.99727e-07 2.36305e-05 -2.2519e-06 2.28643e-05 -1.38567e-06 2.20474e-05 -6.32303e-07 2.13618e-05 -8.40407e-07 2.0986e-05 -2.30292e-07 2.0986e-05 5.1412e-07 2.11833e-05 3.87185e-07 2.12709e-05 3.40227e-07 2.12378e-05 9.41007e-08 2.11659e-05 -2.42113e-07 2.17596e-05 7.2344e-07 2.17789e-05 3.27701e-07 -7.06602e-07 2.59225e-05 -4.04276e-06 2.24695e-05 -2.06423e-06 1.98871e-05 -1.46633e-06 1.88084e-05 -2.30189e-07 1.76856e-05 -4.70718e-07 1.75666e-05 -2.7217e-07 1.69621e-05 -1.95221e-07 1.55835e-05 -8.73208e-07 1.46923e-05 -4.9455e-07 1.41185e-05 -5.84318e-08 1.35599e-05 -2.81818e-07 1.3371e-05 -4.13751e-08 1.36166e-05 2.68485e-07 1.38448e-05 1.59002e-07 1.4006e-05 1.78963e-07 1.40539e-05 4.62699e-08 1.39724e-05 -1.60626e-07 1.44292e-05 2.66582e-07 1.44532e-05 3.03771e-07 -1.50457e-07 1.10359e-05 8.97169e-06 7.50536e-06 7.27517e-06 6.80445e-06 6.53228e-06 6.33706e-06 5.46385e-06 4.9693e-06 4.91087e-06 4.62905e-06 4.58767e-06 4.85616e-06 5.01516e-06 5.19412e-06 5.24039e-06 5.07977e-06 5.34635e-06 5.65012e-06 ) ; boundaryField { inlet { type calculated; value nonuniform List<scalar> 20 ( -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 -2.5e-05 ) ; } outlet { type calculated; value nonuniform List<scalar> 20 ( 4.08405e-06 1.04958e-05 1.57647e-05 2.04066e-05 2.45586e-05 2.81368e-05 3.08657e-05 3.217e-05 3.25454e-05 3.28771e-05 3.35417e-05 3.41609e-05 3.43725e-05 3.39785e-05 3.30851e-05 3.13191e-05 2.71679e-05 2.10726e-05 1.3897e-05 5.49967e-06 ) ; } walls { type calculated; value uniform 0; } frontAndBack { type empty; value nonuniform 0(); } } // ************************************************************************* //
a53bb17866e57dad70684b26ac85bee6edb02876
c1e3fcbe701691d23c16bc5e4cf72730bb1c35c1
/pkg/CppCommon/include/common/uint256.inl
f3a58163eb903cc21bbf950ed792c5fdf044c9d4
[ "MIT" ]
permissive
Shuooang/Winpache
a3d4c475140767a6490008a6fa4b44b5880d601d
d4d9aa6d839a2908269be8d61acba18bcf738f3f
refs/heads/main
2023-07-18T11:24:52.017248
2021-09-08T17:31:16
2021-09-08T17:31:16
377,214,088
7
2
null
null
null
null
UTF-8
C++
false
false
6,522
inl
uint256.inl
/*! \file uint256.inl \brief Unsigned 256-bit integer type inline implementation \author Ivan Shynkarenka \date 11.10.2017 \copyright MIT License */ namespace CppCommon { inline uint256_t::uint256_t() noexcept : _upper(0), _lower(0) { } inline uint256_t::uint256_t(int8_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(uint8_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(int16_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(uint16_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(int32_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(uint32_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(int64_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(uint64_t value) noexcept : _upper(0), _lower(value) { } inline uint256_t::uint256_t(uint128_t value) noexcept : _upper(0), _lower(value) { } template <typename T> inline uint256_t::uint256_t(const T& value) noexcept : _upper(0), _lower(value) { static_assert((std::is_integral<T>::value || std::is_same<T, uint128_t>::value || std::is_same<T, uint256_t>::value), "Input argument type must be an integer!"); } template <typename TUpper, typename TLower> inline uint256_t::uint256_t(const TUpper& upper, const TLower& lower) noexcept : _upper(upper), _lower(lower) { static_assert(((std::is_integral<TUpper>::value || std::is_same<TUpper, uint128_t>::value || std::is_same<TUpper, uint256_t>::value) && (std::is_integral<TLower>::value || std::is_same<TLower, uint128_t>::value || std::is_same<TLower, uint256_t>::value)), "Input argument types must be integers!"); } template <typename TUpperUpper, typename TUpperLower, typename TLowerUpper, typename TLowerLower> inline uint256_t::uint256_t(const TUpperUpper& upper_upper, const TUpperLower& upper_lower, const TLowerUpper& lower_upper, const TLowerLower& lower_lower) noexcept : _upper(upper_upper, upper_lower), _lower(lower_upper, lower_lower) { static_assert((std::is_integral<TUpperUpper>::value && std::is_integral<TUpperLower>::value && std::is_integral<TLowerUpper>::value && std::is_integral<TLowerLower>::value), "Input argument types must be integers!"); } template <typename T> inline uint256_t& uint256_t::operator=(const T& value) noexcept { static_assert((std::is_integral<T>::value || std::is_same<T, uint128_t>::value || std::is_same<T, uint256_t>::value), "Input argument type must be an integer!"); _upper = 0; _lower = value; return *this; } inline uint256_t operator+(const uint256_t& value1, const uint256_t& value2) noexcept { return uint256_t(value1._upper + value2._upper + (((value1._lower + value2._lower) < value1._lower) ? 1 : 0), value1._lower + value2._lower); } inline uint256_t operator-(const uint256_t& value1, const uint256_t& value2) noexcept { return uint256_t(value1._upper - value2._upper - (((value1._lower - value2._lower) > value1._lower) ? 1 : 0), value1._lower - value2._lower); } inline uint256_t operator/(const uint256_t& value1, const uint256_t& value2) { return uint256_t::divmod(value1, value2).first; } inline uint256_t operator%(const uint256_t& value1, const uint256_t& value2) { return uint256_t::divmod(value1, value2).second; } inline uint256_t operator&(const uint256_t& value1, const uint256_t& value2) noexcept { return uint256_t(value1._upper & value2._upper, value1._lower & value2._lower); } inline uint256_t operator|(const uint256_t& value1, const uint256_t& value2) noexcept { return uint256_t(value1._upper | value2._upper, value1._lower | value2._lower); } inline uint256_t operator^(const uint256_t& value1, const uint256_t& value2) noexcept { return uint256_t(value1._upper ^ value2._upper, value1._lower ^ value2._lower); } inline bool operator==(const uint256_t& value1, const uint256_t& value2) noexcept { return ((value1._upper == value2._upper) && (value1._lower == value2._lower)); } inline bool operator!=(const uint256_t& value1, const uint256_t& value2) noexcept { return ((value1._upper != value2._upper) || (value1._lower != value2._lower)); } inline bool operator<(const uint256_t& value1, const uint256_t& value2) noexcept { return (value1._upper == value2._upper) ? (value1._lower < value2._lower) : (value1._upper < value2._upper); } inline bool operator>(const uint256_t& value1, const uint256_t& value2) noexcept { return (value1._upper == value2._upper) ? (value1._lower > value2._lower) : (value1._upper > value2._upper); } inline bool operator<=(const uint256_t& value1, const uint256_t& value2) noexcept { return ((value1 < value2) || (value1 == value2)); } inline bool operator>=(const uint256_t& value1, const uint256_t& value2) noexcept { return ((value1 > value2) || (value1 == value2)); } inline bool operator&&(const uint256_t& value1, const uint256_t& value2) noexcept { return ((bool)value1 && (bool)value2); } inline bool operator||(const uint256_t& value1, const uint256_t& value2) noexcept { return ((bool)value1 || (bool)value2); } inline std::ostream& operator<<(std::ostream& os, const uint256_t& value) { if (os.flags() & os.oct) os << value.string(8); else if (os.flags() & os.dec) os << value.string(10); else if (os.flags() & os.hex) os << value.string(16); return os; } inline std::wostream& operator<<(std::wostream& os, const uint256_t& value) { if (os.flags() & os.oct) os << value.wstring(8); else if (os.flags() & os.dec) os << value.wstring(10); else if (os.flags() & os.hex) os << value.wstring(16); return os; } inline void uint256_t::swap(uint256_t& value) noexcept { using std::swap; swap(_upper, value._upper); swap(_lower, value._lower); } inline void swap(uint256_t& value1, uint256_t& value2) noexcept { value1.swap(value2); } } // namespace CppCommon namespace std { template <> struct hash<CppCommon::uint256_t> { typedef CppCommon::uint256_t argument_type; typedef size_t result_type; result_type operator() (const argument_type& value) const { result_type result = 17; std::hash<CppCommon::uint128_t> hasher; result = result * 31 + hasher(value.upper()); result = result * 31 + hasher(value.lower()); return result; } }; } // namespace std
f029c01d1b2565159b9286675cd4b489c957451a
996e3a87e3cb335718ffb1be9b56ee241b067d0f
/src/animation.cpp
4f6cca56c350cfc46f15fb2a0775d765374a2f51
[]
no_license
claudiojrt/sdl_tutorial
c125d730467758f0ee9e7ee6c7af24a871aeef0a
2bddc0712399bacf234d49a8bc9784bf972b6444
refs/heads/master
2020-04-15T05:56:57.542438
2019-01-09T00:14:12
2019-01-09T00:14:12
164,442,876
0
0
null
null
null
null
UTF-8
C++
false
false
1,269
cpp
animation.cpp
#include <animation.hpp> void Animation::loadFromFile(SDL_Renderer* renderer, std::string path, int frames, int animationSpeedVSync) { mAnimationSpeedVSync = animationSpeedVSync; mFrames = frames; mSpritesheet.loadFromFile(renderer, path.c_str()); mWidth = mSpritesheet.getWidth() / mFrames; mHeight = mSpritesheet.getHeight(); for(int i = 1; i <= mFrames; i++) { mSpriteClips.push_back({i * mWidth - mWidth, 0 ,mWidth , mHeight}); } } void Animation::render(int x, int y, SDL_Rect camera) { mSpritesheet.render(x, y, mSpriteClips[mCounter/mAnimationSpeedVSync], camera, 1); //Each time it renders, it calculates via animation speed what frame will be the next if(mAnimationSpeedVSync > 0) { mCounter++; if(mCounter / mAnimationSpeedVSync >= mFrames) mCounter = 0; } } void Animation::setColor(int r, int g, int b) { mSpritesheet.setColor(r, g, b); } void Animation::setRotationAngle(double angle) { mSpritesheet.setRotationAngle(angle); } void Animation::setCenter(SDL_Point* center) { mSpritesheet.setCenter(center); } void Animation::setFlipMode(SDL_RendererFlip mode) { mSpritesheet.setFlipMode(mode); } int Animation::getWidth() { return mWidth; } int Animation::getHeight() { return mHeight; }
835dd0d773ae783430594410d7a292ad199fb761
243fb0873ae258e3236ee23b37848405d450ce8c
/include/mystd/meta/max.h
41f9f89a15810213dfe96cd09c7bad3f6c647762
[]
no_license
TiagoRabello/mystd
27261dbc33bacb02503b7a4646f5635b829b8a65
021e7abd5676b3345bd92de8867e8ae765e7491b
refs/heads/master
2021-01-18T14:58:40.430747
2014-08-09T04:47:45
2014-08-09T04:47:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,058
h
max.h
#ifndef _MYSTD_META_MAX #define _MYSTD_META_MAX #include <type_traits> // for std::conditional and std::integral_constant namespace mystd { namespace meta { /////////////////////////////////////////////////////////////////////////// /// Obtains the maximum value among a list of compile-time numbers. /// /// Compile-time Complexity: O(N) /////////////////////////////////////////////////////////////////////////// template<int... numbers> struct max; /////////////////////////////////////////////////////////////////////////// // max implementation. /////////////////////////////////////////////////////////////////////////// template<int number> struct max<number> : std::integral_constant<int, number> { }; template<int max_value, int head, int... tail> struct max<max_value, head, tail...> : conditional_t<(head > max_value), max< head, tail...> , max<max_value, tail...>> {}; } // End of meta namespace. } // End of mystd namespace. #endif
e501484b8a69ca8c767a637b58bfa0d580fa6e17
432414537039f2bfaf3e34cc0e16171b678ba163
/src/pp6Utils/ParticleInfo.hpp
5b4013b6760b8c569527bedaf0a19bbda0a30492
[]
no_license
dpohanlon/pp6Calculator
310b8b17890096f80543624e1989fe963499f148
4e1f94da10c6a00dda8e08a4dc3436fff4e8fe63
refs/heads/master
2021-01-17T11:51:40.468277
2014-03-27T17:58:40
2014-03-27T17:58:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
705
hpp
ParticleInfo.hpp
#ifndef PARTICLEINFO_HPP #define PARTICLEINFO_HPP #include <map> #include "MyFileReader.hpp" class ParticleInfo { public: ParticleInfo(std::string fileName); ~ParticleInfo(void); int getPDGCode(std::string name); int getCharge(int pdg); std::string getName(int pdg); double getMassMeV(int pdg); double getMassGeV(int pdg); private: struct ParticleRecord { std::string name; int pdg; int charge; double mass; }; std::map<std::string, ParticleRecord *> names; std::map<int, ParticleRecord *> pdgs; ParticleInfo(const ParticleInfo & p); inline ParticleInfo & operator=(const ParticleInfo &); }; #endif
19d187c7c6c152559983a703dff11c97062ef060
a411a55762de11dc2c9d913ff33d2f1477ac02cf
/lte/gateway/c/core/oai/tasks/nas/ies/ShortMac.hpp
3f8b51f66fdb03133829b7c862571c247fd6c12e
[ "BSD-3-Clause" ]
permissive
magma/magma
0dc48c1513d9968bd05fb7589f302c192b7c0f94
0e1d895dfe625681229e181fbc2dbad83e13c5cb
refs/heads/master
2023-09-04T09:31:56.140395
2023-08-29T13:54:49
2023-08-29T13:54:49
170,803,235
1,219
525
NOASSERTION
2023-09-07T17:45:42
2019-02-15T04:46:24
C++
UTF-8
C++
false
false
1,287
hpp
ShortMac.hpp
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the terms found in the LICENSE file in the root of this source tree. * * 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. *------------------------------------------------------------------------------- * For more information about the OpenAirInterface (OAI) Software Alliance: * contact@openairinterface.org */ #pragma once #include <stdint.h> #define SHORT_MAC_MINIMUM_LENGTH 1 #define SHORT_MAC_MAXIMUM_LENGTH 3 typedef uint16_t short_mac_t; #define SHORT_MAC_FMT "%" PRIX16 int encode_short_mac(short_mac_t* shortmac, uint8_t iei, uint8_t* buffer, uint32_t len); int decode_short_mac(short_mac_t* shortmac, uint8_t iei, uint8_t* buffer, uint32_t len);
7ab025316143a20486e5d45ba9114a43f13dd1b3
ef8f1138ed718b594f898cfd9448e5fd8d64c615
/week3/6 Maximum Number of Prizes/main.cpp
bc3741161431ab1397d15148deab2f30372c07b7
[]
no_license
AhmedRamadan6/Coursera-Algorithmic-Toolbox
0f861cacd03070b02e382df93d7319e219744313
e1a23fd12850f5af079da30d7ed72cc6101d529c
refs/heads/master
2021-04-24T06:00:31.678778
2020-04-05T13:22:13
2020-04-05T13:22:13
250,088,919
1
0
null
null
null
null
UTF-8
C++
false
false
582
cpp
main.cpp
#include <iostream> #include <vector> using std::vector; vector<int> optimal_summands(int n) { vector<int> summands; for(int i=1;i<=n;i++) { n-=i; if(n<=i) { summands.push_back(i+n); break; } else summands.push_back(i); } return summands; } int main() { int n; std::cin >> n; vector<int> summands = optimal_summands(n); int L = summands.size(); std::cout << L << '\n'; for (size_t i = 0; i <L; ++i) { std::cout << summands[i] << ' '; } }
b65d3eae18ad03e2375266ee2d307692e73eeee3
6280d52ececb26fcbfdcfe906a6d02324363225e
/Marlin-bugfix-2.0.x/Marlin-bugfix-2.0.x/Marlin/src/module/probe.h
928eb43ab5fab6b0813dfa099fc2de9254efdd2d
[ "MIT", "GPL-3.0-only", "GPL-1.0-or-later" ]
permissive
SOliasS/Ender5plusSKRv1.3
aaf4b8b225b40335b9185e1ee19f50eabf76b658
a80ec20e0088fe615fc1f3c465469b43a63e6f73
refs/heads/master
2022-11-27T12:00:57.819603
2019-12-08T14:50:41
2019-12-08T14:50:41
224,746,129
0
0
MIT
2022-11-10T01:03:46
2019-11-28T23:54:42
C++
UTF-8
C++
false
false
4,759
h
probe.h
/** * Marlin 3D Printer Firmware * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ #pragma once /** * probe.h - Move, deploy, enable, etc. */ #include "../inc/MarlinConfig.h" #if HAS_BED_PROBE extern xyz_pos_t probe_offset; bool set_probe_deployed(const bool deploy); #ifdef Z_AFTER_PROBING void move_z_after_probing(); #endif enum ProbePtRaise : unsigned char { PROBE_PT_NONE, // No raise or stow after run_z_probe PROBE_PT_STOW, // Do a complete stow after run_z_probe PROBE_PT_RAISE, // Raise to "between" clearance after run_z_probe PROBE_PT_BIG_RAISE // Raise to big clearance after run_z_probe }; float probe_at_point(const float &rx, const float &ry, const ProbePtRaise raise_after=PROBE_PT_NONE, const uint8_t verbose_level=0, const bool probe_relative=true); inline float probe_at_point(const xy_pos_t &pos, const ProbePtRaise raise_after=PROBE_PT_NONE, const uint8_t verbose_level=0, const bool probe_relative=true) { return probe_at_point(pos.x, pos.y, raise_after, verbose_level, probe_relative); } #define DEPLOY_PROBE() set_probe_deployed(true) #define STOW_PROBE() set_probe_deployed(false) #if HAS_HEATED_BED && ENABLED(WAIT_FOR_BED_HEATER) extern const char msg_wait_for_bed_heating[25]; #endif #else constexpr xyz_pos_t probe_offset{0}; #define DEPLOY_PROBE() #define STOW_PROBE() #endif #if HAS_BED_PROBE || ENABLED(PROBE_MANUALLY) #if IS_KINEMATIC constexpr float printable_radius = ( #if ENABLED(DELTA) DELTA_PRINTABLE_RADIUS #elif IS_SCARA SCARA_PRINTABLE_RADIUS #endif ); inline float probe_radius() { return printable_radius - ( #if HAS_BED_PROBE _MAX(MIN_PROBE_EDGE, HYPOT(probe_offset.x, probe_offset.y)) #else MIN_PROBE_EDGE #endif ); } #endif inline float probe_min_x() { return ( #if IS_KINEMATIC (X_CENTER) - probe_radius() #else _MAX((X_MIN_BED) + (MIN_PROBE_EDGE_LEFT), (X_MIN_POS) + probe_offset.x) #endif ); } inline float probe_max_x() { return ( #if IS_KINEMATIC (X_CENTER) + probe_radius() #else _MIN((X_MAX_BED) - (MIN_PROBE_EDGE_RIGHT), (X_MAX_POS) + probe_offset.x) #endif ); } inline float probe_min_y() { return ( #if IS_KINEMATIC (Y_CENTER) - probe_radius() #else _MAX((Y_MIN_BED) + (MIN_PROBE_EDGE_FRONT), (Y_MIN_POS) + probe_offset.y) #endif ); } inline float probe_max_y() { return ( #if IS_KINEMATIC (Y_CENTER) + probe_radius() #else _MIN((Y_MAX_BED) - (MIN_PROBE_EDGE_BACK), (Y_MAX_POS) + probe_offset.y) #endif ); } #if NEEDS_THREE_PROBE_POINTS // Retrieve three points to probe the bed. Any type exposing set(X,Y) may be used. template <typename T> inline void get_three_probe_points(T points[3]) { #if ENABLED(HAS_FIXED_3POINT) points[0].set(PROBE_PT_1_X, PROBE_PT_1_Y); points[1].set(PROBE_PT_2_X, PROBE_PT_2_Y); points[2].set(PROBE_PT_3_X, PROBE_PT_3_Y); #else #if IS_KINEMATIC constexpr float SIN0 = 0.0, SIN120 = 0.866025, SIN240 = -0.866025, COS0 = 1.0, COS120 = -0.5 , COS240 = -0.5; points[0].set((X_CENTER) + probe_radius() * COS0, (Y_CENTER) + probe_radius() * SIN0); points[1].set((X_CENTER) + probe_radius() * COS120, (Y_CENTER) + probe_radius() * SIN120); points[2].set((X_CENTER) + probe_radius() * COS240, (Y_CENTER) + probe_radius() * SIN240); #else points[0].set(probe_min_x(), probe_min_y()); points[1].set(probe_max_x(), probe_min_y()); points[2].set((probe_max_x() - probe_min_x()) / 2, probe_max_y()); #endif #endif } #endif #endif #if HAS_Z_SERVO_PROBE void servo_probe_init(); #endif #if QUIET_PROBING void probing_pause(const bool p); #endif
c53c39ff1b0ce7266d28d319684ef1af51fb2655
ed6ce53c235e0bc64c0b86052829c488e123cabf
/sorting/sort-0-1-2.cpp
abdce9c79446820a749700c4dde494b61dea806b
[ "MIT" ]
permissive
Strider-7/code
6a2cf94407c0d004fb6fbcdcb3679779e40b1eb0
e096c0d0633b53a07bf3f295cb3bd685b694d4ce
refs/heads/master
2022-12-14T20:12:52.568623
2020-09-04T13:27:16
2020-09-04T13:27:16
292,848,664
0
0
null
null
null
null
UTF-8
C++
false
false
756
cpp
sort-0-1-2.cpp
#include <bits/stdc++.h> using namespace std; // group 0,1,2 together void sort(int arr[], int n) { int l = 0, mid = 0, h = n - 1; while (mid <= h) { switch (arr[mid]) { case 0: swap(arr[l], arr[mid]); l++; mid++; break; case 1: mid++; break; case 2: swap(arr[mid], arr[h]); h--; break; default: break; } } } int main() { int arr[] = {2, 1, 2, 0, 2, 0, 1, 2, 2, 1, 0}; int n = sizeof(arr) / sizeof(arr[0]); sort(arr, n); for (auto &&i : arr) { cout << i << " "; } return 0; }
9a3a52b6343170afe9f9f5e5b70fa5b4fd29e0c8
ec45ecf96a51caef68fa3c73823ab160f46066bf
/DEngine/Math/simdmath.h
a9e6ae8a5337f3b4c8f1a5e4ccd624c4d6e21f4e
[ "MIT" ]
permissive
norrischiu/DEngine
1a9761da1fad12fb697e918b06abc63f7cc9bfa2
acea553f110b8d10fc7386ff0941b84f6d7ebce7
refs/heads/master
2021-01-21T16:53:10.936347
2018-06-23T09:51:11
2018-06-23T09:51:11
39,889,195
10
1
null
2018-06-23T09:51:11
2015-07-29T11:08:23
C++
UTF-8
C++
false
false
24,284
h
simdmath.h
// simdmath.h: Maths Libraray, defining vector, matrix and quaternion, with Intel SSE4.1 extensions and MSVC++ #ifndef SIMDMATH_H_ #define SIMDMATH_H_ #include <xmmintrin.h> // intrinics #include <smmintrin.h> // intrinics #include <math.h> // sin cos #include "Memory\MemoryManager.h" namespace DE { class SQT; #define PI 3.1415926535f // 4x4 Matrix with SSE __declspec(align(16)) class SIMDMatrix4 { private: __m128 _rows[4]; // column major matrix, requires post-multiply public: friend class SIMDVector3; static const SIMDMatrix4 Identity; static const SIMDMatrix4 Zero; // Default constructor inline SIMDMatrix4() { *this = SIMDMatrix4::Identity; }; // Construct with given value inline SIMDMatrix4(float other[4][4]) { _rows[0] = _mm_setr_ps(other[0][0], other[0][1], other[0][2], other[0][3]); _rows[1] = _mm_setr_ps(other[1][0], other[1][1], other[1][2], other[1][3]); _rows[2] = _mm_setr_ps(other[2][0], other[2][1], other[2][2], other[2][3]); _rows[3] = _mm_setr_ps(other[3][0], other[3][1], other[3][2], other[3][3]); } // Construct with given value, assume input is row major matrix inline SIMDMatrix4(float other[16]) { _rows[0] = _mm_setr_ps(other[0], other[4], other[8], other[12]); _rows[1] = _mm_setr_ps(other[1], other[5], other[9], other[13]); _rows[2] = _mm_setr_ps(other[2], other[6], other[10], other[14]); _rows[3] = _mm_setr_ps(other[3], other[7], other[11], other[15]); } inline SIMDMatrix4(double other[16]) { _rows[0] = _mm_setr_ps(other[0], other[4], other[8], other[12]); _rows[1] = _mm_setr_ps(other[1], other[5], other[9], other[13]); _rows[2] = _mm_setr_ps(other[2], other[6], other[10], other[14]); _rows[3] = _mm_setr_ps(other[3], other[7], other[11], other[15]); } // Construct with given m128 data inline SIMDMatrix4(__m128 data[4]) { _rows[0] = data[0]; _rows[1] = data[1]; _rows[2] = data[2]; _rows[3] = data[3]; } // Copy constructor inline SIMDMatrix4(const SIMDMatrix4& other) { _rows[0] = other._rows[0]; _rows[1] = other._rows[1]; _rows[2] = other._rows[2]; _rows[3] = other._rows[3]; } // Assignment operator inline SIMDMatrix4& operator=(const SIMDMatrix4& other) { _rows[0] = other._rows[0]; _rows[1] = other._rows[1]; _rows[2] = other._rows[2]; _rows[3] = other._rows[3]; return *this; } // Set data values inline void Set(float other[4][4]) { _rows[0] = _mm_setr_ps(other[0][0], other[0][1], other[0][2], other[0][3]); _rows[1] = _mm_setr_ps(other[1][0], other[1][1], other[1][2], other[1][3]); _rows[2] = _mm_setr_ps(other[2][0], other[2][1], other[2][2], other[2][3]); _rows[3] = _mm_setr_ps(other[3][0], other[3][1], other[3][2], other[3][3]); } // Add another matrix to the matrix, store the result back to this inline void Add(SIMDMatrix4& other) { _rows[0] = _mm_add_ps(_rows[0], other._rows[0]); _rows[1] = _mm_add_ps(_rows[1], other._rows[1]); _rows[2] = _mm_add_ps(_rows[2], other._rows[2]); _rows[3] = _mm_add_ps(_rows[3], other._rows[3]); } // Overload + operator inline SIMDMatrix4 operator+(SIMDMatrix4& other) { SIMDMatrix4 result; result._rows[0] = _mm_add_ps(_rows[0], other._rows[0]); result._rows[1] = _mm_add_ps(_rows[1], other._rows[1]); result._rows[2] = _mm_add_ps(_rows[2], other._rows[2]); result._rows[3] = _mm_add_ps(_rows[3], other._rows[3]); return result; } // Overload += operator inline void operator+=(SIMDMatrix4& other) { _rows[0] = _mm_add_ps(_rows[0], other._rows[0]); _rows[1] = _mm_add_ps(_rows[1], other._rows[1]); _rows[2] = _mm_add_ps(_rows[2], other._rows[2]); _rows[3] = _mm_add_ps(_rows[3], other._rows[3]); } // Subtract the matrix by another matrix, store the result back to this inline void Sub(SIMDMatrix4& other) { _rows[0] = _mm_sub_ps(_rows[0], other._rows[0]); _rows[1] = _mm_sub_ps(_rows[1], other._rows[1]); _rows[2] = _mm_sub_ps(_rows[2], other._rows[2]); _rows[3] = _mm_sub_ps(_rows[3], other._rows[3]); } // Overload - operator inline SIMDMatrix4 operator-(SIMDMatrix4& other) { SIMDMatrix4 result; result._rows[0] = _mm_sub_ps(_rows[0], other._rows[0]); result._rows[1] = _mm_sub_ps(_rows[1], other._rows[1]); result._rows[2] = _mm_sub_ps(_rows[2], other._rows[2]); result._rows[3] = _mm_sub_ps(_rows[3], other._rows[3]); return result; } // Overload -= operator inline void operator-=(SIMDMatrix4& other) { _rows[0] = _mm_sub_ps(_rows[0], other._rows[0]); _rows[1] = _mm_sub_ps(_rows[1], other._rows[1]); _rows[2] = _mm_sub_ps(_rows[2], other._rows[2]); _rows[3] = _mm_sub_ps(_rows[3], other._rows[3]); } // Pre-Multiply by another matrix, store the result back to this inline void Multiply(const SIMDMatrix4& mat) { __m128 mat_rows0 = mat._rows[0]; __m128 mat_rows1 = mat._rows[1]; __m128 mat_rows2 = mat._rows[2]; __m128 mat_rows3 = mat._rows[3]; _MM_TRANSPOSE4_PS(mat_rows0, mat_rows1, mat_rows2, mat_rows3); for (int i = 0; i < 4; ++i) { __m128 x = _mm_dp_ps(_rows[i], mat_rows0, 0xF1); __m128 y = _mm_dp_ps(_rows[i], mat_rows1, 0xF2); __m128 z = _mm_dp_ps(_rows[i], mat_rows2, 0xF4); __m128 w = _mm_dp_ps(_rows[i], mat_rows3, 0xF8); _rows[i] = _mm_add_ps(x, y); _rows[i] = _mm_add_ps(_rows[i], z); _rows[i] = _mm_add_ps(_rows[i], w); } } // Overload * operator inline SIMDMatrix4 operator*(const SIMDMatrix4& mat) { __m128 mat_rows0 = mat._rows[0]; __m128 mat_rows1 = mat._rows[1]; __m128 mat_rows2 = mat._rows[2]; __m128 mat_rows3 = mat._rows[3]; _MM_TRANSPOSE4_PS(mat_rows0, mat_rows1, mat_rows2, mat_rows3); SIMDMatrix4 result; for (int i = 0; i < 4; ++i) { __m128 x = _mm_dp_ps(mat_rows0, _rows[i], 0xF1); __m128 y = _mm_dp_ps(mat_rows1, _rows[i], 0xF2); __m128 z = _mm_dp_ps(mat_rows2, _rows[i], 0xF4); __m128 w = _mm_dp_ps(mat_rows3, _rows[i], 0xF8); result._rows[i] = _mm_add_ps(x, y); result._rows[i] = _mm_add_ps(result._rows[i], z); result._rows[i] = _mm_add_ps(result._rows[i], w); } return result; } // Overload *= operator inline void operator*=(const SIMDMatrix4& mat) { __m128 mat_rows0 = mat._rows[0]; __m128 mat_rows1 = mat._rows[1]; __m128 mat_rows2 = mat._rows[2]; __m128 mat_rows3 = mat._rows[3]; _MM_TRANSPOSE4_PS(mat_rows0, mat_rows1, mat_rows2, mat_rows3); for (int i = 0; i < 4; ++i) { __m128 x = _mm_dp_ps(_rows[i], mat_rows0, 0xF1); __m128 y = _mm_dp_ps(_rows[i], mat_rows1, 0xF2); __m128 z = _mm_dp_ps(_rows[i], mat_rows2, 0xF4); __m128 w = _mm_dp_ps(_rows[i], mat_rows3, 0xF8); _rows[i] = _mm_add_ps(x, y); _rows[i] = _mm_add_ps(_rows[i], z); _rows[i] = _mm_add_ps(_rows[i], w); } } // Set a scale transformation given a uniform scale inline void CreateScale(float scalar) { __m128 scale = _mm_set_ps1(scalar); _rows[0] = _mm_insert_ps(_rows[0], scale, 0x0E); _rows[1] = _mm_insert_ps(_rows[1], scale, 0x5D); _rows[2] = _mm_insert_ps(_rows[2], scale, 0xAB); _rows[3] = _mm_set_ps1(1.0f); _rows[3] = _mm_insert_ps(_rows[3], _rows[3], 0x07); } inline void CreateScaleX(float scalar) { __m128 scale = _mm_set_ps1(scalar); __m128 identity = _mm_set_ps1(1.0f); _rows[0] = _mm_insert_ps(_rows[0], scale, 0x0E); _rows[1] = _mm_insert_ps(_rows[1], identity, 0x5D); _rows[2] = _mm_insert_ps(_rows[2], identity, 0xAB); _rows[3] = _mm_insert_ps(identity, identity, 0x07); } inline void CreateScaleY(float scalar) { __m128 scale = _mm_set_ps1(scalar); __m128 identity = _mm_set_ps1(1.0f); _rows[0] = _mm_insert_ps(_rows[0], identity, 0x0E); _rows[1] = _mm_insert_ps(_rows[1], scale, 0x5D); _rows[2] = _mm_insert_ps(_rows[2], identity, 0xAB); _rows[3] = _mm_insert_ps(_rows[3], identity, 0x07); } inline void CreateScaleZ(float scalar) { __m128 scale = _mm_set_ps1(scalar); __m128 identity = _mm_set_ps1(1.0f); _rows[0] = _mm_insert_ps(_rows[0], identity, 0x0E); _rows[1] = _mm_insert_ps(_rows[1], identity, 0x5D); _rows[2] = _mm_insert_ps(_rows[2], scale, 0xAB); _rows[3] = _mm_insert_ps(_rows[3], identity, 0x07); } inline void ScaleXYZ(float scalar) { __m128 scaleX = _mm_setr_ps(scalar, 1.0f, 1.0f, 1.0f); __m128 scaleY = _mm_setr_ps(1.0f, scalar, 1.0f, 1.0f); __m128 scaleZ = _mm_setr_ps(1.0f, 1.0f, scalar, 1.0f); _rows[0] = _mm_mul_ps(_rows[0], scaleX); _rows[1] = _mm_mul_ps(_rows[1], scaleY); _rows[2] = _mm_mul_ps(_rows[2], scaleZ); } // Set a rotation transformation about the X axis given an angle in radian inline void CreateRotationX(float radian) { float cosTheta = cosf(radian); float sinTheta = sinf(radian); _rows[0] = _mm_set_ps1(1.0f); _rows[0] = _mm_insert_ps(_rows[0], _rows[0], 0x0E); _rows[1] = _mm_setr_ps(0.0f, cosTheta, -sinTheta, 0.0f); _rows[2] = _mm_setr_ps(0.0f, sinTheta, cosTheta, 0.0f); _rows[3] = _mm_set_ps1(1.0f); _rows[3] = _mm_insert_ps(_rows[3], _rows[3], 0x07); } // Set a rotation transformation about the Y axis given an angle in radian inline void CreateRotationY(float radian) { float cosTheta = cosf(radian); float sinTheta = sinf(radian); _rows[0] = _mm_setr_ps(cosTheta, 0.0f, sinTheta, 0.0f); _rows[1] = _mm_set_ps1(1.0f); _rows[1] = _mm_insert_ps(_rows[1], _rows[1], 0x0D); _rows[2] = _mm_setr_ps(-sinTheta, 0.0f, cosTheta, 0.0f); _rows[3] = _mm_set_ps1(1.0f); _rows[3] = _mm_insert_ps(_rows[3], _rows[3], 0x07); } // Set a rotation transformation about the Z axis given an angle in radian inline void CreateRotationZ(float radian) { float cosTheta = cosf(radian); float sinTheta = sinf(radian); _rows[0] = _mm_setr_ps(cosTheta, -sinTheta, 0.0f, 0.0f); _rows[1] = _mm_setr_ps(sinTheta, cosTheta, 0.0f, 0.0f); _rows[2] = _mm_set_ps1(1.0f); _rows[2] = _mm_insert_ps(_rows[2], _rows[2], 0x0B); _rows[3] = _mm_set_ps1(1.0f); _rows[3] = _mm_insert_ps(_rows[3], _rows[3], 0x07); } // Interpolate between two matrices with float t, return the resultant matrix // i.e. result = a * (1 - t) + b * t inline friend SIMDMatrix4 Lerp(const SIMDMatrix4& a, const SIMDMatrix4& b, float t) { __m128 resultRows[4]; __m128 oneMinusT = _mm_set_ps1(1.0f - t); __m128 oneT = _mm_set_ps1(t); resultRows[0] = _mm_mul_ps(a._rows[0], oneMinusT); resultRows[0] = _mm_add_ps(resultRows[0], _mm_mul_ps(b._rows[0], oneT)); resultRows[1] = _mm_mul_ps(a._rows[1], oneMinusT); resultRows[1] = _mm_add_ps(resultRows[1], _mm_mul_ps(b._rows[1], oneT)); resultRows[2] = _mm_mul_ps(a._rows[2], oneMinusT); resultRows[2] = _mm_add_ps(resultRows[2], _mm_mul_ps(b._rows[2], oneT)); resultRows[3] = _mm_mul_ps(a._rows[3], oneMinusT); resultRows[3] = _mm_add_ps(resultRows[3], _mm_mul_ps(b._rows[3], oneT)); return SIMDMatrix4(resultRows); } // Set a translation transformation given a vector void CreateTranslation(const SIMDVector3& translation); void SetPosition(const SIMDVector3& translation); // Extract elements from matrix SIMDVector3 GetPosition(); SIMDVector3 GetForward(); SIMDVector3 GetRight(); SIMDVector3 GetUp(); // Set a rotation transformation given a quaternion // void CreateRotationFromQuaternion(const SIMDQuaternion& q); // Set a look-at matrix (vUp MUST be normalized) void CreateLookAt(const SIMDVector3& vEye, const SIMDVector3& vAt, const SIMDVector3& vUp); static SIMDMatrix4 LookAtMatrix(const SIMDVector3& vEye, const SIMDVector3& vAt, const SIMDVector3& vUp); // Set a perspective FOV matrix void CreatePerspectiveFOV(float fFOVy, float fAspectRatio, float fNear, float fFar); static SIMDMatrix4 PerspectiveProjection(float fFOVy, float fAspectRatio, float fNear, float fFar); //Set a orthographic projection matrix // temp void CreateOrthographicProj(unsigned int width, unsigned int height, float zNear, float zFar); static SIMDMatrix4 OrthographicProjection(unsigned int width, unsigned int height, float zNear, float zFar); // Inverts the matrix, store the result back to this void Invert(); SIMDMatrix4 Inverse(); // Transpose the matrix SIMDMatrix4 Transpose(); }; // 3D Vector with SIMD __declspec(align(16)) class SIMDVector3 { private: __m128 _data; // _data.m128_f32[0] = x // _data.m128_f32[1] = y // _data.m128_f32[2] = z // _data.m128_f32[3] = w // right side at multiplication public: friend class SIMDMatrix4; friend class SIMDQuaternion; friend class SQT; static const SIMDVector3 Zero; static const SIMDVector3 UnitX; static const SIMDVector3 UnitY; static const SIMDVector3 UnitZ; static const SIMDVector3 NegativeUnitX; static const SIMDVector3 NegativeUnitY; static const SIMDVector3 NegativeUnitZ; // Default Constructor inline SIMDVector3() { _data = _mm_setr_ps(0.0f, 0.0f, 0.0f, 1.0f); }; // Construct with given float values inline SIMDVector3(float x, float y, float z, float w = 1.0f) { _data = _mm_setr_ps(x, y, z, w); }; // Construct with given m128 data inline SIMDVector3(__m128 value) { _data = value; } // Copy constructor inline SIMDVector3(const SIMDVector3& other) { _data = other._data; } // Assignment constructor inline SIMDVector3& operator=(const SIMDVector3& other) { _data = other._data; return *this; } // Set data values inline void Set(float x, float y, float z) { _data = _mm_setr_ps(x, y, z, 1.0f); } inline void SetX(float x) { __m128 temp = _mm_set_ss(x); _data = _mm_insert_ps(_data, temp, 0x00); } inline void SetY(float y) { __m128 temp = _mm_set_ss(y); _data = _mm_insert_ps(_data, temp, 0x10); } inline void SetZ(float z) { __m128 temp = _mm_set_ss(z); _data = _mm_insert_ps(_data, temp, 0x20); } inline void SetW(float w) { __m128 temp = _mm_set_ss(w); _data = _mm_insert_ps(_data, temp, 0x30); } inline float GetX() const { return _data.m128_f32[0]; } inline float GetY() const { return _data.m128_f32[1]; } inline float GetZ() const { return _data.m128_f32[2]; } inline float GetW() const { return _data.m128_f32[3]; } // Dot product, return a float inline float Dot(const SIMDVector3& other) { __m128 temp = _mm_dp_ps(_data, other._data, 0x78); return temp.m128_f32[3]; } // Add two vector, store result back to this inline void Add(const SIMDVector3& other) { _data = _mm_add_ps(_data, other._data); } // Overload + operator inline SIMDVector3 operator+(const SIMDVector3& other) { SIMDVector3 result; result._data = _mm_add_ps(_data, other._data); return result; } // Overload += operator inline void operator+=(const SIMDVector3& other) { _data = _mm_add_ps(_data, other._data); } // Substract the other vector from this, store result back to this inline void Substract(const SIMDVector3& other) { _data = _mm_sub_ps(_data, other._data); } // Overload - operator inline SIMDVector3 operator-(const SIMDVector3& other) const { SIMDVector3 result; result._data = _mm_sub_ps(_data, other._data); return result; } // Overload -= operator inline void operator-=(const SIMDVector3& other) { _data = _mm_sub_ps(_data, other._data); } // Return negative inline SIMDVector3 operator-() { SIMDVector3 result; __m128 zero = _mm_set_ss(0.0f); result._data = _mm_sub_ps(zero, _data); return result; } // Multiple the vector by a scalar, stire result back to this inline void Multiply(float scalar) { __m128 temp = _mm_set_ps1(scalar); _data = _mm_mul_ps(_data, temp); } // Overload * operator inline SIMDVector3 operator*(float scalar) { SIMDVector3 result; __m128 slr = _mm_set_ps1(scalar); result._data = _mm_mul_ps(_data, slr); return result; } // Normalize the vector, store result back to this inline SIMDVector3& Normalize() { __m128 length = _mm_dp_ps(_data, _data, 0x77); length = _mm_div_ps(_mm_set_ps1(1.0f), _mm_sqrt_ps(length)); // more accurate than _mm_rsqrt_ps _data = _mm_mul_ps(_data, length); return *this; } // Return normalized vector inline SIMDVector3 Normal() { SIMDVector3 result; __m128 length = _mm_dp_ps(_data, _data, 0x77); length = _mm_div_ps(_mm_set_ps1(1.0f), _mm_sqrt_ps(length)); // more accurate than _mm_rsqrt_ps result._data = _mm_mul_ps(_data, length); return result; } inline SIMDVector3& NormalizeAll() { __m128 length = _mm_dp_ps(_data, _data, 0xFF); length = _mm_div_ps(_mm_set_ps1(1.0f), _mm_sqrt_ps(length)); _data = _mm_mul_ps(_data, length); return *this; } // Return the square of the length of vector inline float LengthSquared() const { __m128 length = _mm_dp_ps(_data, _data, 0x78); return length.m128_f32[3]; } // Return the length of vector inline float Length() const { __m128 length = _mm_dp_ps(_data, _data, 0x78); return sqrtf(length.m128_f32[3]); } inline bool iszero() const { return Length() < std::numeric_limits<float>::epsilon(); } // Return the normal of a SIMDVector3 inline friend SIMDVector3 Normal(const SIMDVector3& vec) { SIMDVector3 result = vec; result.Normalize(); return result; } // Return the cross product as SIMDVector3 of two vectors inline friend SIMDVector3 Cross(const SIMDVector3& a, const SIMDVector3& b) { SIMDVector3 result; result._data = _mm_mul_ps(_mm_shuffle_ps(a._data, a._data, _MM_SHUFFLE(3, 0, 2, 1)), _mm_shuffle_ps(b._data, b._data, _MM_SHUFFLE(3, 1, 0, 2))); __m128 temp = _mm_mul_ps(_mm_shuffle_ps(a._data, a._data, _MM_SHUFFLE(3, 1, 0, 2)), _mm_shuffle_ps(b._data, b._data, _MM_SHUFFLE(3, 0, 2, 1))); result._data = _mm_sub_ps(result._data, temp); return result; } // Interpolate between two vectors with float t, return the resultant vector // i.e. result = a * (1 - t) + b * t inline static SIMDVector3 Lerp(const SIMDVector3& a, const SIMDVector3& b, float t) { __m128 tempA = _mm_set_ps1(1.0f - t); tempA = _mm_mul_ps(a._data, tempA); __m128 tempB = _mm_set_ps1(t); tempB = _mm_mul_ps(b._data, tempB); __m128 result = _mm_add_ps(tempA, tempB); return SIMDVector3(result); } // 4-way blend of vectors(colors), return the resultant vector // i.e. result = a * t1 + b * t2 + c * t3 + d * (1 - t1 -t2 - t3) inline friend SIMDVector3 Blend(const SIMDVector3& a, const SIMDVector3& b, const SIMDVector3& c, const SIMDVector3& d, float t1, float t2, float t3) { __m128 tempA = _mm_set_ps1(t1); tempA = _mm_mul_ps(a._data, tempA); __m128 tempB = _mm_set_ps1(t2); tempB = _mm_mul_ps(b._data, tempB); __m128 tempC = _mm_set_ps1(t3); tempC = _mm_mul_ps(c._data, tempC); __m128 tempD = _mm_set_ps1(1.0f - t1 - t2 - t3); tempD = _mm_mul_ps(d._data, tempD); __m128 result = _mm_add_ps(tempA, tempB); result = _mm_add_ps(result, tempC); result = _mm_add_ps(result, tempD); return SIMDVector3(result); } // Transform the vector as a point by a 4x4 Matrix, store result back to this inline void Transform(const SIMDMatrix4& mat) { // set w to 1.0f __m128 one = _mm_set_ss(1.0f); _data = _mm_insert_ps(_data, one, 0x30); __m128 x = _mm_dp_ps(_data, mat._rows[0], 0xF1); __m128 y = _mm_dp_ps(_data, mat._rows[1], 0xF2); __m128 z = _mm_dp_ps(_data, mat._rows[2], 0xF4); __m128 w = _mm_dp_ps(_data, mat._rows[3], 0xF8); _data = _mm_insert_ps(_data, x, 0x00); _data = _mm_insert_ps(_data, y, 0x50); _data = _mm_insert_ps(_data, z, 0xA0); _data = _mm_insert_ps(_data, w, 0xF0); } // Transform the vector by a 4x4 Matrix, store result back to this inline void TransformAsVector(const SIMDMatrix4& mat) { // Set w to 0.0f _data = _mm_insert_ps(_data, _data, 0x08); __m128 x = _mm_dp_ps(_data, mat._rows[0], 0xF1); __m128 y = _mm_dp_ps(_data, mat._rows[1], 0xF2); __m128 z = _mm_dp_ps(_data, mat._rows[2], 0xF4); __m128 w = _mm_dp_ps(_data, mat._rows[3], 0xF8); _data = _mm_insert_ps(_data, x, 0x00); _data = _mm_insert_ps(_data, y, 0x50); _data = _mm_insert_ps(_data, z, 0xA0); _data = _mm_insert_ps(_data, w, 0xF0); } }; __declspec(align(16)) class SIMDQuaternion { private: __m128 _data; // _data.m128_f32[0] = x // _data.m128_f32[1] = y // _data.m128_f32[2] = z // _data.m128_f32[3] = w public: friend class SIMDMatrix4; friend class SIMDVector3; static const SIMDQuaternion Identity; // Default constructor SIMDQuaternion() {}; // Construct with given axis and angle in radian SIMDQuaternion(SIMDVector3& axis, float radian) { __m128 sinTheta = _mm_set_ps1(sinf(radian / 2.0f)); __m128 cosTheta = _mm_set_ps1(cosf(radian / 2.0f)); axis.Normalize(); _data = _mm_mul_ps(axis._data, sinTheta); _data = _mm_insert_ps(_data, cosTheta, 0xF0); } // Construct with direct data SIMDQuaternion(float data[4]) { _data = _mm_setr_ps(data[0], data[1], data[2], data[3]); } // Copy constructor SIMDQuaternion(const SIMDQuaternion& other) { _data = other._data; } // Assignment operator inline SIMDQuaternion& operator=(const SIMDQuaternion& other) { _data = other._data; return *this; } inline float GetX() const { return _data.m128_f32[0]; } inline float GetY() const { return _data.m128_f32[1]; } inline float GetZ() const { return _data.m128_f32[2]; } inline float GetW() const { return _data.m128_f32[3]; } // Return negative inline SIMDQuaternion operator-() const { SIMDQuaternion result; __m128 zero = _mm_set_ss(0.0f); result._data = _mm_sub_ps(zero, _data); return result; } // Multiply this quaternion with another quaternion, store result back to this inline void Multiply(const SIMDQuaternion& other) { __m128 result; __m128 q2X = _mm_shuffle_ps(other._data, other._data, _MM_SHUFFLE(0, 0, 0, 0)); __m128 q2Y = _mm_shuffle_ps(other._data, other._data, _MM_SHUFFLE(1, 1, 1, 1)); __m128 q2Z = _mm_shuffle_ps(other._data, other._data, _MM_SHUFFLE(2, 2, 2, 2)); __m128 q2W = _mm_shuffle_ps(other._data, other._data, _MM_SHUFFLE(3, 3, 3, 3)); q2X = _mm_mul_ps(q2X, _mm_shuffle_ps(_data, _data, _MM_SHUFFLE(0, 1, 2, 3))); q2Y = _mm_mul_ps(q2X, _mm_shuffle_ps(_data, _data, _MM_SHUFFLE(1, 0, 3, 2))); q2Z = _mm_mul_ps(q2X, _mm_shuffle_ps(_data, _data, _MM_SHUFFLE(2, 3, 0, 1))); q2W = _mm_mul_ps(q2W, _data); result = _mm_addsub_ps(_mm_shuffle_ps(q2W, q2W, _MM_SHUFFLE(2, 3, 0, 1)), _mm_shuffle_ps(q2X, q2X, _MM_SHUFFLE(2, 3, 0, 1))); result = _mm_addsub_ps(_mm_shuffle_ps(result, result, _MM_SHUFFLE(2, 0, 3, 1)), _mm_shuffle_ps(q2Y, q2Y, _MM_SHUFFLE(3, 1, 2, 0))); result = _mm_addsub_ps(_mm_shuffle_ps(result, result, _MM_SHUFFLE(3, 1, 0, 2)), _mm_shuffle_ps(q2Z, q2Z, _MM_SHUFFLE(2, 3, 1, 0))); result = _mm_shuffle_ps(result, result, _MM_SHUFFLE(3, 2, 0, 1)); _data = result; } /*SIMDQuaternion operator+(const SIMDQuaternion& other) { SIMDQuaternion result; result._data = _mm_add_ps(_data, other._data); return result; } void operator+=(const SIMDQuaternion& other) { _data = _mm_add_ps(_data, other._data); }*/ inline void Multiply(float scalar) { __m128 temp = _mm_set_ps1(scalar); _data = _mm_mul_ps(_data, temp); } SIMDMatrix4 GetRotationMatrix() { float x, y, z, w; x = _data.m128_f32[0]; y = _data.m128_f32[1]; z = _data.m128_f32[2]; w = _data.m128_f32[3]; __m128 rows[4]; rows[0] = _mm_setr_ps(1 - 2 * (y * y + z * z), 2 * (x * y - w * z), 2 * (x * z + w * y), 0.0f); rows[1] = _mm_setr_ps(2 * (x * y + w * z), 1 - 2 * (x * x + z * z), 2 * (y * z - w * x), 0.0f); rows[2] = _mm_setr_ps(2 * (x * z - w * y), 2 * (y * z + w * x), 1 - 2 * (x * x + y * y), 0.0f); rows[3] = _mm_setr_ps(0.0f, 0.0f, 0.0f, 1.0f); return SIMDMatrix4(rows); } // Normalize the quaternion, store the result to this inline void Normalize() { __m128 length = _mm_dp_ps(_data, _data, 0xFF); length = _mm_div_ps(_mm_set_ps1(1.0f), _mm_sqrt_ps(length)); _data = _mm_mul_ps(_data, length); } // Dot product, return a float inline float Dot(const SIMDQuaternion& other) const { __m128 temp = _mm_dp_ps(_data, other._data, 0xFF); return temp.m128_f32[3]; } // TODO: switch to utility function in namespace static SIMDQuaternion Lerp(SIMDQuaternion a, SIMDQuaternion b, float t) { SIMDQuaternion result; __m128 aFactor = _mm_set_ps1(1.0f - t); __m128 bFactor = _mm_set_ps1(t); result._data = _mm_mul_ps(aFactor, a._data); result._data = _mm_add_ps(result._data, _mm_mul_ps(bFactor, b._data)); return result; } }; typedef SIMDVector3 Vector3; typedef SIMDVector3 Vector4; typedef SIMDMatrix4 Matrix4; typedef SIMDQuaternion Quaternion; } #endif
200ea339432366112d740a0950e291f9065a70e9
f42f51cddb2315bb8c1eb204cd0896273ab37b71
/src/common/Profile.cpp
3233e80c91a88435541038a943893716295e02b8
[ "MIT" ]
permissive
bangush/FBXViewer-1
16cb054f701cfbb365d44510b4334a3ffa8f1a78
f4ad7ba02e4a48737db58269e1673851ea4d09da
refs/heads/master
2021-06-19T04:30:10.997176
2017-05-03T13:25:59
2017-05-03T13:25:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
700
cpp
Profile.cpp
#include "stdafx.h" #include "Windows.h" #include "Profile.h" Profile* Profile::Instance = new Profile(); void Profile::Start(const char* name) { QueryPerformanceFrequency(&Instance->Frequency); QueryPerformanceCounter(&Instance->StartingTime); Instance->name = name; } void Profile::End() { QueryPerformanceCounter(&Instance->EndingTime); Instance->ElapsedMicroseconds.QuadPart = Instance->EndingTime.QuadPart - Instance->StartingTime.QuadPart; double diff = (Instance->ElapsedMicroseconds.QuadPart * 1000000 / Instance->Frequency.QuadPart) / 1000.0; DebugPrintf("[Profile] <%s> uses %.3f ms\n", Instance->name, diff); } Profile::Profile(){} Profile::~Profile(){}
ae7bc39937eb4adc533534ba2b921ebf82544e13
19a1f79e7a3ba00b96de4303c5a21f863bbd96fa
/strawberry.cpp
03d6f6038fca7b1891c470d09c06ed5cc36e6c74
[]
no_license
zhouqihao222/TianChiShe
0cb0ba8cb5331624044fe2b527b058337a947173
5f585b62255d13a7b9da7f327faa88fca2a7bda1
refs/heads/master
2023-03-12T15:56:56.785121
2021-03-01T08:41:32
2021-03-01T08:41:32
342,475,009
0
0
null
null
null
null
UTF-8
C++
false
false
442
cpp
strawberry.cpp
#include "strawberry.h" #include"wall.h" strawberry::strawberry() { is_alive=false; } void strawberry::createstrawberry() { is_alive=true; qsrand(int(time(0))); thestrawberry=(QRectF(wall::thestartX+30+qrand()%((wall::w-50)/30)*20,wall::thestartY+80+qrand()%((wall::h-50)/30)*20,20,20)); } void strawberry::strawberrydel() { thestrawberry.moveTo(-1,-1); } strawberry::~strawberry() { }
d7f1a36321843928468868a478ddea879373f0b4
530da0d50c693098df38369231b191f57b520553
/Gaea/cpp/util/test/RandomTest.cpp
143ad1c71b05025e798c657b200c0199a2296e42
[]
no_license
ycgsb/Gaea
704c22ff93e61d181d601f4ea5090c267af3c46f
d990884b8bd1b9bcc40692fd2c7c3baf99eaec91
refs/heads/master
2021-03-12T20:19:34.907034
2014-03-18T03:38:06
2014-03-18T03:38:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,273
cpp
RandomTest.cpp
#include "RandomTest.h" #include "../Random.h" #include "../../math/Math.h" #include <vector> namespace ycg { void RandomTest::run() { testUniformInt(); testUniformDouble(); testGaussStandard(); testGauss(); } void RandomTest::testUniformInt() { printf("test uniform int:\n"); Random& rnd = Random::instance(); int a = 10, b = 200; double mean = (a+b)/2; double var = Math::sqr(a-b)/12; std::vector<int> numbers; for (int i = 0; i < BIG; ++i) { numbers.push_back(rnd.uniform(a, b)); } double meanData = Math::mean(numbers.cbegin(), numbers.cend()); double varData = Math::var(numbers.cbegin(), numbers.cend()); printf("mean = %lf, meanData = %lf\n", mean, meanData); printf("var = %lf, varData = %lf\n", var, varData); } void RandomTest::testUniformDouble() { printf("test uniform double:\n"); Random& rnd = Random::instance(); double a = 1.0, b = 20.0; double mean = (a + b) / 2; double var = Math::sqr(a - b) / 12; std::vector<double> numbers; for (int i = 0; i < BIG; ++i) { numbers.push_back(rnd.uniform(a, b)); } double meanData = Math::mean(numbers.cbegin(), numbers.cend()); double varData = Math::var(numbers.cbegin(), numbers.cend()); printf("mean = %lf, meanData = %lf\n", mean, meanData); printf("var = %lf, varData = %lf\n", var, varData); } void RandomTest::testGaussStandard() { printf("test uniform random generator.\n"); Random& rnd = Random::instance(); std::vector<double> numbers; for (int i = 0; i < BIG; ++i) { numbers.push_back(rnd.gauss()); } double meanData = Math::mean(numbers.cbegin(), numbers.cend()); double stdData = Math::std(numbers.cbegin(), numbers.cend()); printf("mean = %lf, meanData = %lf\n", 0.0, meanData); printf("std = %lf, stdData = %lf\n", 1.0, stdData); } void RandomTest::testGauss() { printf("test uniform random generator.\n"); Random& rnd = Random::instance(); double mean = 10.0; double std = 2.0; std::vector<double> numbers; for (int i = 0; i < BIG; ++i) { numbers.push_back(rnd.gauss(mean, std)); } double meanData = Math::mean(numbers.cbegin(), numbers.cend()); double stdData = Math::std(numbers.cbegin(), numbers.cend()); printf("mean = %lf, meanData = %lf\n", mean, meanData); printf("std = %lf, stdData = %lf\n", std, stdData); } } //~ namespace ycg
15dbfd97f3807aac8dbfb765bc1ce72d62e6ed3e
857d2b227ef70d695887104edeb38e8994b22093
/src/Sound.h
b906d98c692c0a7cf62e27d7563c8d76f713f4b4
[]
no_license
JAGormley/Wandering
a061f160ed89b6a9c6e61ac120a1f85f766ca452
9de91f44f7096415d6cb82fdc6c6abc6b88333d2
refs/heads/master
2016-08-12T20:54:11.815774
2015-07-02T23:55:39
2015-07-02T23:55:39
35,998,353
1
0
null
null
null
null
UTF-8
C++
false
false
446
h
Sound.h
// // Sound.h // Wandering2 // // Created by J Andrew Gormley on 2015-06-25. // // #ifndef __Wandering2__Sound__ #define __Wandering2__Sound__ #include <stdio.h> #include "ofFmodSoundPlayer.h" #endif /* defined(__Wandering2__Sound__) */ class Sound { public: void loadMusic(); void playMusic(); void playSE(int sId); Sound(); ofFmodSoundPlayer music; ofFmodSoundPlayer se1; ofFmodSoundPlayer se2; };
d3f7d8823c385d018c32dd17748cc2f8e6d44d54
e45a6601116a9e3dc10d9799e1e9a0d980760f26
/AStar.cpp
5fecb42715a1988572d8968d0f86117295a89ce6
[]
no_license
Zedidle/MyAlgorithms
ba7bbc7163e28c85dc96c9d70e6ededab0fc7717
d84deed8b705a41297566bc1c317e1920347624e
refs/heads/master
2023-03-02T21:33:35.780663
2021-02-17T09:03:59
2021-02-17T09:03:59
312,981,093
1
0
null
null
null
null
UTF-8
C++
false
false
3,936
cpp
AStar.cpp
#include "AStar.h" #include "BTree.h" ASart::ASart(int row, int line) :Row(row), Line(line) { int PlainFactor = 10; // 平原系数:数值越大,遇到障碍(不可通过)的概率越低 int CostFactor = 5; // 耗费系数;数值越大,所在区域平均每步所耗费的体力越大 for (int i = 0; i < Row; ++i) { vector<Dot*> m; for (int j = 0; j < Line; ++j) { int cost; if ( j == Line/2 && i > 1 && i < Row - 2) { // 强行障碍 cost = 10; } else { if (i < Row / 2) { // 沼泽区 PlainFactor = 7; CostFactor = 9; } else { // 平原区 PlainFactor = 10; CostFactor = 2; } cost = (rand() % PlainFactor) ? (rand() % CostFactor + CostFactor / 3) : 10; } m.push_back(new Dot(i, j, cost)); } Map.push_back(m); } SetStart(0, 0); } int ASart::CalDistanceToEnd(int row, int line) { return abs(row - EndX) + abs(line - EndY); } void ASart::SetEstimatePower(int power) { EstimatePower = power; } void ASart::SetStart(int row, int line) { if (!(0 <= row < Row) || !(0 <= line < Line)) { cout << "错误,设置的起点不在地图中" << endl; return; } StartX = row; StartY = line; } inline void ASart::SetEnd(int row, int line) { if (!(0 <= row < Row) || !(0 <= line < Line)) { cout << "错误,设置的终点不在地图中" << endl; return; } EndX = row; EndY = line; } void ASart::Find() { int curX = StartX, curY = StartY; int CurStep = 0; Open = new BTree<Dot>(new Dot(curX, curY)); Dot* dot = nullptr; while (!(curX == EndX && curY == EndY)) { Map[curX][curY]->State = 2; if (curX - 1 >= 0 && (dot = Map[curX - 1][curY]) && dot->State == 0 && dot->Cost < 10) { dot->SetStep(CurStep + dot->Cost, EstimatePower * CalDistanceToEnd(curX - 1, curY)); dot->PreDot = Map[curX][curY]; Open->Insert(dot); } if (curX + 1 < Row && (dot = Map[curX + 1][curY]) && dot->State == 0 && dot->Cost < 10) { dot->SetStep(CurStep + dot->Cost, EstimatePower * CalDistanceToEnd(curX + 1, curY)); dot->PreDot = Map[curX][curY]; Open->Insert(dot); } if (curY - 1 >= 0 && (dot = Map[curX][curY - 1]) && dot->State == 0 && dot->Cost < 10) { dot->SetStep(CurStep + dot->Cost, EstimatePower * CalDistanceToEnd(curX, curY-1)); dot->PreDot = Map[curX][curY]; Open->Insert(dot); } if (curY + 1 < Line && (dot = Map[curX][curY + 1]) && dot->State == 0 && dot->Cost < 10) { dot->SetStep(CurStep + dot->Cost, EstimatePower * CalDistanceToEnd(curX, curY+1)); dot->PreDot = Map[curX][curY]; Open->Insert(dot); } if (nullptr != Open->GetMin()) { CurStep = Open->GetMin()->Step; curX = Open->GetMin()->X; curY = Open->GetMin()->Y; Open->Remove(Open->GetMin()); Sleep(50); system("cls"); //cout << "预备可行位置的消耗:"; //Open->PreOrder(); ++Step; cout << "探索步数:" << Step << endl; //cout << "当前位置:" << Open->GetMin()->GetPos() << endl; ShowMap(); } else { cout << "没法抵达" << endl; break; } } dot = nullptr; delete dot; ShowRoute(curX, curY); } void ASart::ShowMap() { cout << endl; for (int i = 0; i < Row; ++i) { for (int j = 0; j < Line; ++j) { cout << Map[i][j]->GetMark(); } cout << endl; } } void ASart::ShowRoute(int row, int line) { cout << "ASart::ShowRoute" << endl; if (!(0 <= row && row < Row) || !(0 <= line && line < Line)) { cout << "错误,点不在地图中" << endl; return; } Dot* curDot = Map[row][line]; while (nullptr != curDot) { curDot->State = 3; curDot = curDot->PreDot; } ShowMap(); cout << "抵达终点,所用路线消耗体力:" << Map[row][line]->Step << endl; } void ASart_Test() { int row = 10; int line = 30; ASart* aSart = new ASart(row, line); aSart->SetStart(0, 0); aSart->SetEnd(row-1, line-1); aSart->SetEstimatePower(3); aSart->Find(); //aSart->ShowMap(); }
68a8d02d81c961ef6d9acfad5d609b9be1cce783
7c236ec3a9b842098a3af722b332e6496d9ee971
/CodingInterviews/63. 股票的最大利润.cpp
ba7410258e85a5b7c7dae97ed1e648e1cda28a81
[ "MIT" ]
permissive
M3stark/LeetCoding
3db52aafc6e051ea0c958b8af1b7d7aec23b7958
da0edbf16830e0b9da89893d0a90539d2e738477
refs/heads/main
2023-08-31T00:08:48.355101
2021-10-01T14:59:08
2021-10-01T14:59:08
361,074,595
9
3
null
null
null
null
UTF-8
C++
false
false
1,427
cpp
63. 股票的最大利润.cpp
/* 剑指 Offer 63. 股票的最大利润 假设把某股票的价格按照时间先后顺序存储在数组中,请问买卖该股票一次可能获得的最大利润是多少? 难度:中等 https://leetcode-cn.com/problems/gu-piao-de-zui-da-li-run-lcof/ */ #include <iostream> #include <vector> #include <algorithm> #include <limits.h> // INT_MAX头文件 using namespace std; class Solution { public: int maxProfit(vector<int> &prices) { int price = INT_MAX, profits = 0; for (int i = 0; i < prices.size(); ++i) { price = min(price, prices[i]); profits = max(profits, prices[i] - price); } return profits; } }; template <typename T> void fcin(vector<T> &v) { for (int i = 0; i < v.size(); ++i) { cin >> v[i]; } } int main() { cout << "***********************************************" << endl; cout << "剑指 Offer 63. 股票的最大利润" << endl; cout << "假设把某股票的价格按照时间先后顺序存储在数组中,请问买卖该股票一次可能获得的最大利润是多少?" << endl; cout << "***********************************************" << endl; int n; cout << "股票开盘天数: "; cin >> n; vector<int> vec(n); fcin(vec); int res = Solution().maxProfit(vec); cout << "股票的最大利润: " << res << endl; return 0; }
d295c16c1e3e4d8a65b01b6f477b322ac5378c1a
4bad21bf381b261f468538729e22877261af7775
/test/app.cpp
dfda93611389b27a3a8757ebf5cdc7c5fbabe805
[]
no_license
LootMaker/Qt_Quwi_Test
41feabcbfdc83509d43349c6ea6ef8ed2858eef3
3edec136aa5de2063a9fcdd870fdcea7d53b43f1
refs/heads/main
2023-08-18T05:23:31.745289
2020-10-16T09:01:43
2020-10-16T09:01:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
341
cpp
app.cpp
#include "app.h" App *g_app; App::App(int &argc, char **argv) :QApplication(argc, argv) { g_app = this; } void App::showLoginDlg() { mainWnd.close(); if (loginDlg.exec() == QDialog::Accepted) { showMainWnd(); } else { quit(); } } void App::showMainWnd() { mainWnd.show(); loginDlg.close(); }
5627511ec2c79bef00f0dc16630f77870902df05
af19e490c4445baeb40a02e51c4c15cce1e8686e
/247. Strobogrammatic Number II.cpp
d227eca0a89f26f509896526e67ca3ff4b6bdbcd
[]
no_license
daviscoder/Leetcode_2016_Pass1
5ddefefa9178cf67c4e24c14a5ea69df86325085
bc1c2196f930a4505317e828eb64da63039ec263
refs/heads/master
2021-01-24T22:07:04.143664
2017-05-05T06:08:21
2017-05-05T06:08:21
66,132,727
1
1
null
null
null
null
UTF-8
C++
false
false
826
cpp
247. Strobogrammatic Number II.cpp
class Solution { public: vector<string> helper (int m, int n) { vector<string> res; if (n == 0) { res.push_back (""); return res; } if (n == 1) { res.push_back ("0"); res.push_back ("1"); res.push_back ("8"); return res; } vector<string> sub = helper (m, n - 2); for (int i = 0; i < sub.size(); i++) { if (m != n) res.push_back ("0" + sub[i] + "0"); res.push_back ("1" + sub[i] + "1"); res.push_back ("8" + sub[i] + "8"); res.push_back ("6" + sub[i] + "9"); res.push_back ("9" + sub[i] + "6"); } return res; } vector<string> findStrobogrammatic(int n) { return helper (n, n); } };
62119e0e4e840ac9a53f0f52e1a7ed4c653a7da0
e7cab3ed773feaaf42c4aff412ee933096043474
/D3D12_Water/D3D12_Water/D3D.h
ad35f6f537b58356db13b4d249d7863b54f4e844
[]
no_license
ma0724/DirectX12_water_test
659467ef4d2bb643576e21fb3a842c33e863a83e
e01db3e238d8ba6fe45802b5d6cf930116dbcde7
refs/heads/master
2021-09-23T06:24:30.377167
2018-06-15T03:38:47
2018-06-15T03:38:47
137,435,574
0
0
null
null
null
null
UTF-8
C++
false
false
2,582
h
D3D.h
#pragma once #include <Windows.h> #include <d3d12.h> #include <d3d12shader.h> #include <dxgi1_4.h> #include <d3dcompiler.h> #include <DirectXMath.h> #include <wrl/client.h> #include <vector> #include <memory> #pragma comment(lib, "d3dcompiler.lib") #pragma comment(lib,"dxgi.lib") #pragma comment(lib,"d3d12.lib") class D3D { private: static constexpr int RTV_NUM = 2; UINT64 m_flames; UINT m_rtvIndex; int m_screenWidth; int m_screenHeight; HWND m_windowHandle; bool m_fullScreen; float m_screenDepth; float m_screenNear; Microsoft::WRL::ComPtr<IDXGIFactory4> m_factory; Microsoft::WRL::ComPtr<IDXGIAdapter3> m_adapter; Microsoft::WRL::ComPtr<ID3D12Device> m_device; Microsoft::WRL::ComPtr<ID3D12CommandQueue> m_commandQueue; HANDLE m_fenceEvent; Microsoft::WRL::ComPtr<ID3D12Fence> m_fence; Microsoft::WRL::ComPtr<IDXGISwapChain3> m_swapChain; Microsoft::WRL::ComPtr<ID3D12GraphicsCommandList> m_commandList; Microsoft::WRL::ComPtr<ID3D12CommandAllocator> m_commandAllocator; Microsoft::WRL::ComPtr<ID3D12Resource> m_renderTarget[RTV_NUM]; Microsoft::WRL::ComPtr<ID3D12DescriptorHeap> m_dh_RTV; D3D12_CPU_DESCRIPTOR_HANDLE m_RTV_handle[RTV_NUM]; Microsoft::WRL::ComPtr<ID3D12Resource> m_depthBuffer; Microsoft::WRL::ComPtr<ID3D12DescriptorHeap> m_dh_DSV; D3D12_CPU_DESCRIPTOR_HANDLE m_DSV_handle; D3D12_RECT m_scissorRect; D3D12_VIEWPORT m_viewPort; DirectX::XMMATRIX m_projectionMatrix; DirectX::XMMATRIX m_worldMatrix; DirectX::XMMATRIX m_orthoMatrix; private: HRESULT CreateMatrix(); HRESULT CreateFactory(); HRESULT CreateDevice(); HRESULT CreateVisualCone(); HRESULT CreateShadowVisualCone(); HRESULT CreateCommandQueue(); HRESULT CreateSwapChain(); HRESULT CreateRenderTargetView(); HRESULT CreateDepthStencilBuffer(); HRESULT CreateCommandList(); //HRESULT Render(); //HRESULT PopulateCommandList(); public: D3D(); ~D3D(); bool Initialize(int, int, bool, HWND, bool, float, float); void BeginScene(float, float, float, float); void EndScene(); HRESULT SetResourceBarrier(ID3D12Resource* resource, D3D12_RESOURCE_STATES BeforeState, D3D12_RESOURCE_STATES AfterState, bool backBuffer); HRESULT ExecuteCommandList(); HRESULT WaitForPreviousFrame(); ID3D12Device* GetDevice(); ID3D12GraphicsCommandList* GetCmdList(); void GetProjectionMatrix(DirectX::XMMATRIX&); void GetWorldMatrix(DirectX::XMMATRIX&); void GetOrthoMatrix(DirectX::XMMATRIX&); ID3D12DescriptorHeap* GetDepthStencilView(); void SetBackBufferRenderTarget(); };
581b4498a064f58a7241f8542d5178025545dd66
328386f90e699a950a4bcf925356cad1800b0799
/THSocketProxyServer.h
e0943077ef3233021187b0f2f9cb7176e8d5f13e
[ "Apache-2.0" ]
permissive
tansoft/tan.h
a39713e5adbbeef35ff7099e7d345c9c9c91b1cc
3380b71b1ed4bf21d2da6fc5bbfc7ea6c4a127d1
refs/heads/main
2023-08-16T01:45:31.735941
2021-10-05T10:46:43
2021-10-05T10:46:43
413,724,892
2
0
null
null
null
null
GB18030
C++
false
false
6,595
h
THSocketProxyServer.h
#pragma once #include <THRawSocketModel.h> class ITHProxyEvent{ public: //only tcp virtual void OnConnect(SOCKET local,SOCKET peer)=0; virtual void OnData(SOCKET local,SOCKET peer,const char* buf,unsigned int len,int direction)=0; virtual void OnClose(SOCKET local,SOCKET peer,int direction)=0; }; #define THSP_VERSION5 0x05 #define THSPAUTH_NOAUTHLOGIN 0x00 #define THSPAUTH_GSSAPI 0x01 #define THSPAUTH_AUTHLOGIN 0x02 #define THSPAUTH_NOMETHOD 0xff #define THSPCMD_CONNECT 0x01 #define THSPCMD_BIND 0x02 #define THSPCMD_UDP 0x03 #define THSPATYP_IPV4 0x01 #define THSPATYP_DOMAIN 0x03 #define THSPATYP_IPV6 0x04 #define THSPREP_SUCCESS 0x00 #define THSPREP_FAILED 0x01 #define THSPREP_CANNOT_CONNECT 0x02 #define THSPREP_NET_CANNOTTO 0x03 #define THSPREP_PC_CANNOTTO 0x04 #define THSPREP_CONNECT_DENIED 0x05 #define THSPREP_TTL_TIMEOUT 0x06 #define THSPREP_CMD_WRONG 0x07 #define THSPREP_ATYP_WRONG 0x08 /** * @brief Socket代理服务器类 * @author Barry * @2013-03-07 新建类 */ /**<pre> 使用Sample: m_proxyrs,m_socketrs 是用于接不同的协议栈的,默认是THRawSocket,两个指针不能给相同的实例 proxyrs是用于socket5proxy标准协议层用的socket层,socketrs是需要访问实际数据时使用的socket层,这样可以把socket代理套接到任意协议栈内 </pre>*/ class THSocketProxyServer : public ITHRawSocketBufferedEventHandler { public: THSocketProxyServer(){ m_proxyrs=&m_rsp; m_socketrs=&m_rss; m_proxyrs->SetHandler(this,NULL); m_socketrs->SetHandler(this,NULL); m_s=INVALID_SOCKET; m_event=NULL; } virtual ~THSocketProxyServer(){ StopProxy(); } BOOL StartProxy(unsigned short port){ StopProxy(); m_s=m_proxyrs->CreateSocket(0,0,port,RawProtocol_Tcp,TRUE,0,FALSE); return m_s!=INVALID_SOCKET; } void StopProxy(){ if (m_s!=INVALID_SOCKET) { m_proxyrs->FreeSocket(m_s); m_s=INVALID_SOCKET; } } void SetEventCb(ITHProxyEvent *event){m_event=event;} void SetSocketLayer(THRawSocket *proxy,THRawSocket *socket){ if (proxy==socket && proxy!=NULL) return; m_proxyrs=(proxy==NULL)?&m_rsp:proxy; m_socketrs=(socket==NULL)?&m_rss:socket; m_proxyrs->SetHandler(this,NULL); m_socketrs->SetHandler(this,NULL); } protected: virtual UINT IsBufferReady(THRawSocket *cls,RAWSOCKET sock,const void *bufdata,int buflen,struct sockaddr_in *paddr,void *adddata) { const unsigned char *buf=(const unsigned char *)bufdata; if (cls==m_proxyrs) { map<RAWSOCKET,RAWSOCKET>::iterator it=m_proxyclients.find(sock); if (it==m_proxyclients.end()){ //init if (buflen>2) { if (buf[0]!=THSP_VERSION5) { cls->FreeSocket(sock); return 0; } else { int methodlen=buf[1]; for(int i=2;i<min(methodlen+2,buflen);i++){ if (buf[i]==THSPAUTH_NOAUTHLOGIN) { unsigned char sdata[2]; sdata[0]=buf[0]; sdata[1]=buf[i]; if (!cls->Send(sock,sdata,2)) { cls->FreeSocket(sock); buflen=0;//force return 0 } break; } } m_proxyclients[sock]=INVALID_SOCKET; return min(methodlen+2,buflen); } } return 0; } else if (it->second==INVALID_SOCKET) { //cmd unsigned short port;char ip[250];int index; if (buflen>=10) { switch(buf[3]){ case THSPATYP_IPV4: memcpy(&port,&buf[8],2); sprintf(ip,"%u.%u.%u.%u",buf[4],buf[5],buf[6],buf[7]); break; case THSPATYP_DOMAIN: index=buf[4]; memcpy(&port,&buf[index+5],2); memcpy((void *)ip,(const void *)&buf[5],index); ip[index]='\0'; break; case THSPATYP_IPV6: default: cls->FreeSocket(sock); return 0; break; } if (buf[1]==THSPCMD_CONNECT) { port=ntohs(port); RAWSOCKET consock=m_socketrs->CreateSocketByHost(THCharset::a2t(ip),port); if (consock==INVALID_SOCKET){ SendRep(cls,sock,THSPREP_TTL_TIMEOUT,m_proxyrs->GetLocalIpN(),0); cls->FreeSocket(sock); return 0; } //finish connect if (!SendRep(cls,sock,THSPREP_SUCCESS,m_proxyrs->GetLocalIpN(),port)){ cls->FreeSocket(sock); return 0; } if (m_event) m_event->OnConnect(sock,consock); it->second=consock; m_sockclients[consock]=sock; return buflen; } else if (buf[1]==THSPCMD_BIND){ //fixme cls->FreeSocket(sock); return 0; } else if (buf[1]==THSPCMD_UDP) { //fixme cls->FreeSocket(sock); return 0; } } return 0; } else { if (m_event) m_event->OnData(sock,it->second,(const char *)bufdata,buflen,0); if (!m_socketrs->Send(it->second,bufdata,buflen)) cls->FreeSocket(sock); return buflen; } } else { map<RAWSOCKET,RAWSOCKET>::iterator it=m_sockclients.find(sock); if (it!=m_sockclients.end()) { if (m_event) m_event->OnData(it->second,sock,(const char *)bufdata,buflen,1); if (!m_proxyrs->Send(it->second,bufdata,buflen)) cls->FreeSocket(sock); } else cls->FreeSocket(sock); return buflen; } return 0; } virtual void AcceptHandler(THRawSocket *cls,RAWSOCKET parent,RAWSOCKET sock, struct sockaddr_in *paddr,struct sockaddr_in *paddrpeer,void *adddata){ } virtual void ErrorHandler(THRawSocket *cls,RAWSOCKET sock,DWORD errcode,void *adddata){ ITHRawSocketBufferedEventHandler::ErrorHandler(cls,sock,errcode,adddata); if (cls==m_proxyrs) { if (sock!=m_s) { if (m_event) m_event->OnClose(sock,m_proxyclients[sock],0); m_proxyclients.erase(sock); } }else if (cls==m_socketrs) { if (m_event) m_event->OnClose(m_sockclients[sock],sock,1); m_sockclients.erase(sock); } } BOOL SendRep(THRawSocket *cls,RAWSOCKET sock,unsigned char Rep,unsigned long ipmark,int port){ char data[10]; unsigned long ip; data[0]=THSP_VERSION5; data[1]=Rep; data[2]=0x00; data[3]=THSPATYP_IPV4; port=htons(port); memcpy((void *)&data[8],(const void *)&port,2); ip=ipmark; memcpy((void *)&data[4],(const void *)&ip,4); return cls->Send(sock,data,sizeof(data)); } RAWSOCKET m_s; THRawSocket *m_proxyrs; ///>通过代理服务的socket层 THRawSocket *m_socketrs; ///>向外请求的socket层,分开两个层便于把不同套接环境接起来 THRawSocket m_rsp; THRawSocket m_rss; map<RAWSOCKET,RAWSOCKET> m_proxyclients; map<RAWSOCKET,RAWSOCKET> m_sockclients; ITHProxyEvent *m_event; };
efc66c8d9e355e3a3ff6c7483ae168d7a32b1e2c
b1ed6a99a59904988f18605855a43703afc10ffb
/tags/reactos-import/reactos/base/shell/explorer/shell/webchild.h
4793a77c9f70a2aeef7872f9c92690e8a832e67e
[]
no_license
svn2github/ros-explorer
0831cd87485b8397cd2c012b930779ad2af5b643
06ea4a5d06acf0ee8481c519e76217fd02409ba7
refs/heads/master
2021-01-10T03:09:27.915688
2013-01-01T10:57:30
2013-01-01T10:57:30
50,790,636
2
2
null
null
null
null
UTF-8
C++
false
false
25,725
h
webchild.h
/* * Copyright 2004, 2005 Martin Fuchs * * 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; either * version 2.1 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // // Explorer clone // // webchild.h // // Martin Fuchs, 08.02.2004 // #ifndef _MSC_VER #include <exdisp.h> // for IConnectionPointContainer #include <exdispid.h> // for DWebBrowserEvents2 IDs #endif #ifndef DISPID_BEFORENAVIGATE // missing in MinGW (as of 07.02.2004) #define DISPID_BEFORENAVIGATE 100 #define DISPID_NAVIGATECOMPLETE 101 #define DISPID_STATUSTEXTCHANGE 102 #define DISPID_QUIT 103 #define DISPID_DOWNLOADCOMPLETE 104 #define DISPID_COMMANDSTATECHANGE 105 #define DISPID_DOWNLOADBEGIN 106 #define DISPID_NEWWINDOW 107 #define DISPID_PROGRESSCHANGE 108 #define DISPID_WINDOWMOVE 109 #define DISPID_WINDOWRESIZE 110 #define DISPID_WINDOWACTIVATE 111 #define DISPID_PROPERTYCHANGE 112 #define DISPID_TITLECHANGE 113 #define DISPID_TITLEICONCHANGE 114 #define DISPID_FRAMEBEFORENAVIGATE 200 #define DISPID_FRAMENAVIGATECOMPLETE 201 #define DISPID_FRAMENEWWINDOW 204 #define DISPID_NAVIGATECOMPLETE2 252 #define DISPID_ONQUIT 253 #define DISPID_ONVISIBLE 254 #define DISPID_ONTOOLBAR 255 #define DISPID_ONMENUBAR 256 #define DISPID_ONSTATUSBAR 257 #define DISPID_ONFULLSCREEN 258 #define DISPID_DOCUMENTCOMPLETE 259 #define DISPID_ONTHEATERMODE 260 #define DISPID_ONADDRESSBAR 261 #define DISPID_WINDOWSETRESIZABLE 262 #define DISPID_WINDOWCLOSING 263 #define DISPID_WINDOWSETLEFT 264 #define DISPID_WINDOWSETTOP 265 #define DISPID_WINDOWSETWIDTH 266 #define DISPID_WINDOWSETHEIGHT 267 #define DISPID_CLIENTTOHOSTWINDOW 268 #define DISPID_SETSECURELOCKICON 269 #define DISPID_FILEDOWNLOAD 270 #define DISPID_NAVIGATEERROR 271 #define DISPID_PRIVACYIMPACTEDSTATECHANGE 272 #endif #ifndef V_INT // missing in MinGW (as of 07.02.2004) #define V_INT(x) V_UNION(x, intVal) #endif #ifdef _MSC_VER #pragma warning(disable: 4355) // use of 'this' for initialization of _connector #endif template<typename T> struct ConnectionPoint : public SIfacePtr<T> { ConnectionPoint(IConnectionPointContainer* pCPC, REFIID riid) { CheckError(pCPC->FindConnectionPoint(riid, &this->_p)); } }; struct EventConnection { EventConnection(IConnectionPoint* connectionpoint, IUnknown* sink) { CheckError(connectionpoint->Advise(sink, &_cookie)); _connectionpoint = connectionpoint; } template<typename T> EventConnection(T& connectionpoint, IUnknown* sink) { CheckError(connectionpoint->Advise(sink, &_cookie)); _connectionpoint = connectionpoint; } /* template<typename T> EventConnection(SIfacePtr<T>& connectionpoint, IUnknown* sink) { CheckError(connectionpoint->Advise(sink, &_cookie)); _connectionpoint = connectionpoint.GetPtr(); } */ /* template<typename T> EventConnection(T& connectionpoint, IUnknown* sink) { CheckError(connectionpoint->Advise(sink, &_cookie)); _connectionpoint = connectionpoint; } */ ~EventConnection() { if (_connectionpoint) _connectionpoint->Unadvise(_cookie); } protected: SIfacePtr<IConnectionPoint> _connectionpoint; DWORD _cookie; }; struct EventConnector : public EventConnection { EventConnector(IUnknown* unknown, REFIID riid, IUnknown* sink) : EventConnection(ConnectionPoint<IConnectionPoint>( SIfacePtr<IConnectionPointContainer>(unknown, IID_IConnectionPointContainer), riid), sink) { } }; struct OleInPlaceClient : public SimpleComObject, public IOleClientSite, public IOleInPlaceSite { protected: HWND _hwnd; public: OleInPlaceClient(HWND hwnd=0) : _hwnd(hwnd) { } void attach(HWND hwnd) { _hwnd = hwnd; } HRESULT attach_control(IOleObject* ole_obj, LONG iVerb=OLEIVERB_INPLACEACTIVATE, HWND hwndParent=0, LPCRECT pRect=NULL) { HRESULT hr = ole_obj->SetClientSite(this); if (FAILED(hr)) return hr; // hr = ole_obj->SetHostNames(app, doc)); hr = ole_obj->DoVerb(iVerb, NULL, this, 0, 0/*hwnd*/, NULL/*&rcPos*/); return hr; } HRESULT detach(IOleObject* ole_obj, DWORD dwSaveOption=OLECLOSE_SAVEIFDIRTY) { HRESULT hr = ole_obj->Close(dwSaveOption); _hwnd = 0; return hr; } STDMETHODIMP QueryInterface(REFIID riid, LPVOID* ppv) { if (IsEqualIID(riid, IID_IOleClientSite)) {*ppv=static_cast<IOleClientSite*>(this); IncRef(); return S_OK;} if (IsEqualIID(riid, IID_IOleInPlaceSite)) {*ppv=static_cast<IOleInPlaceSite*>(this); IncRef(); return S_OK;} if (IsEqualIID(riid, IID_IUnknown)) {*ppv=static_cast<IOleClientSite/*oder auch IOleInPlaceSite*/*>(this); IncRef(); return S_OK;} return E_NOINTERFACE; } STDMETHODIMP_(ULONG) AddRef() {return IncRef();} STDMETHODIMP_(ULONG) Release() {return DecRef();} // IOleWindow: virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE GetWindow(/* [out] */ HWND __RPC_FAR *phwnd) { *phwnd = _hwnd; return S_OK; } virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp(/* [in] */ BOOL fEnterMode) { return E_NOTIMPL; } // IOleClientSite: virtual HRESULT STDMETHODCALLTYPE SaveObject() { return E_NOTIMPL; } virtual HRESULT STDMETHODCALLTYPE GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker, IMoniker __RPC_FAR *__RPC_FAR *ppmk) { return E_NOTIMPL; } virtual HRESULT STDMETHODCALLTYPE GetContainer(IOleContainer __RPC_FAR *__RPC_FAR *ppContainer) { ppContainer = 0; return E_NOINTERFACE; } virtual HRESULT STDMETHODCALLTYPE ShowObject() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnShowWindow(BOOL fShow) { return S_OK; } virtual HRESULT STDMETHODCALLTYPE RequestNewObjectLayout() { return S_OK; } // IOleInPlaceSite: virtual HRESULT STDMETHODCALLTYPE CanInPlaceActivate() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnInPlaceActivate() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnUIActivate() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE GetWindowContext( /* [out] */ IOleInPlaceFrame __RPC_FAR *__RPC_FAR *ppFrame, /* [out] */ IOleInPlaceUIWindow __RPC_FAR *__RPC_FAR *ppDoc, /* [out] */ LPRECT lprcPosRect, /* [out] */ LPRECT lprcClipRect, /* [out][in] */ LPOLEINPLACEFRAMEINFO lpFrameInfo) { ClientRect rect(_hwnd); ppFrame = 0; ppDoc = 0; *lprcPosRect = rect; *lprcClipRect = rect; assert(lpFrameInfo->cb>=sizeof(OLEINPLACEFRAMEINFO)); lpFrameInfo->fMDIApp = FALSE; //@@ lpFrameInfo->hwndFrame = 0; lpFrameInfo->haccel = 0; lpFrameInfo->cAccelEntries = 0; return S_OK; } virtual HRESULT STDMETHODCALLTYPE Scroll(/* [in] */ SIZE scrollExtant) { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnUIDeactivate(/* [in] */ BOOL fUndoable) { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnInPlaceDeactivate() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE DiscardUndoState() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE DeactivateAndUndo() { return S_OK; } virtual HRESULT STDMETHODCALLTYPE OnPosRectChange(/* [in] */ LPCRECT lprcPosRect) { return S_OK; } }; // window with in place activates Active-X Control template<typename BASE, typename SMARTPTR> struct IPCtrlWindow : public BASE { typedef BASE super; IPCtrlWindow(HWND hwnd) : super(hwnd) { } template<typename T> IPCtrlWindow(HWND hwnd, T& info) : super(hwnd, info) { } HRESULT create_control(HWND hwnd, REFIID clsid, REFIID riid) { // Erzeugen einer Instanz des Controls HRESULT hr = _control.CreateInstance(clsid, riid); if (FAILED(hr)) return hr; _client_side.attach(hwnd); hr = _client_side.attach_control(SIfacePtr<IOleObject>(_control, IID_IOleObject)/*, OLEIVERB_INPLACEACTIVATE, hwnd, &Rect(10, 10, 500, 500)*/); if (FAILED(hr)) return hr; // try to get a IOleInPlaceObject interface for window resizing return _control.QueryInterface(IID_IOleInPlaceObject, &_in_place_object); // _in_place_object = _control } protected: LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam) { if (nmsg == WM_SIZE) { if (_in_place_object) { RECT rect = {0, 0, LOWORD(lparam), HIWORD(lparam)}; _in_place_object->SetObjectRects(&rect, &rect); } } else if (nmsg == WM_CLOSE) { _in_place_object = NULL; if (_control) { _client_side.detach(SIfacePtr<IOleObject>(_control, IID_IOleObject), OLECLOSE_NOSAVE); _control = NULL; } } return super::WndProc(nmsg, wparam, lparam); } ComInit _usingCOM; SMARTPTR _control; OleInPlaceClient _client_side; SIfacePtr<IOleInPlaceObject> _in_place_object; }; #include "exdispid.h" struct DWebBrowserEvents2IF { virtual ~DWebBrowserEvents2IF() {} virtual void StatusTextChange(const BStr& text) {} virtual void ProgressChange(long progress, long progressMax) {} virtual void WindowMove() {} virtual void WindowResize() {} virtual void WindowActivate() {} virtual void PropertyChange(const BStr& property) {} virtual void DownloadComplete() {} virtual void CommandStateChange(long command, bool enable) {} virtual void DownloadBegin() {} virtual void NewWindow2(IDispatch** ppDisp, VARIANT_BOOL& cancel) {} virtual void TitleChange(const BStr& text) {} virtual void TitleIconChange(const BStr& text) {} virtual void FrameBeforeNavigate(const BStr& url, long flags, const BStr& targetFrameName, VARIANT* postData, const BStr& headers, VARIANT_BOOL& cancel) {} virtual void FrameNavigateComplete(const BStr& url) {} virtual void FrameNewWindow(const BStr&url, long flags, const BStr& targetFrameName, VARIANT* postData, const BStr& headers, VARIANT_BOOL& processed) {} virtual void BeforeNavigate2(IDispatch* pDisp, const Variant& url, const Variant& flags, const Variant& targetFrameName, const Variant& postData, const Variant& headers, VARIANT_BOOL& cancel) {} virtual void NavigateComplete2(IDispatch* pDisp, const Variant& url) {} virtual void OnQuit() {} virtual void OnVisible(bool Visible) {} virtual void OnToolbar(bool Visible) {} virtual void OnMenubar(bool Visible) {} virtual void OnStatusbar(bool Visible) {} virtual void OnFullscreen(bool Visible) {} virtual void DocumentComplete() {} virtual void OnTheatermode(bool Visible) {} virtual void OnAddressbar(bool Visible) {} virtual void WindowSetResizable(bool Visible) {} virtual void WindowClosing(VARIANT_BOOL IsChildWindow, VARIANT_BOOL& cancel) {} virtual void WindowSetLeft(long Left) {} virtual void WindowSetTop(long Top) {} virtual void WindowSetWidth(long Width) {} virtual void WindowSetHeight(long Height) {} virtual void ClientToHostWindow(long& CX, long& CY) {} virtual void SetSecureLockIcon(long SecureLockIcon) {} virtual void FileDownload(Variant& cancel) {} virtual void NavigateError(IDispatch* pDisp, const Variant& url, const Variant& Frame, const Variant& StatusCode, VARIANT_BOOL& cancel) {} virtual void PrivacyImpactedStateChange(bool bImpacted) {} }; // The web browser control has to be initialized completely before being able, // to display a page, that does not access internet. struct ANSUNC BrowserNavigator { BrowserNavigator(); void attach(IWebBrowser* browser); void goto_url(LPCTSTR url); void set_html_page(const String& html_txt); void navigated(LPCTSTR url); IWebBrowser* get_browser() {return _browser.get();} protected: SIfacePtr<IWebBrowser> _browser; String _new_url; String _new_html_txt; bool _browser_initialized; }; // MinGW defines a wrong FixedDWebBrowserEvents2 interface with virtual functions for DISPID calls, so we use our own, corrected version: interface FixedDWebBrowserEvents2 : public IDispatch { #ifdef __GNUC__ virtual ~FixedDWebBrowserEvents2() {} #endif }; struct ANSUNC DWebBrowserEvents2Impl : public IComSrvBase<FixedDWebBrowserEvents2, DWebBrowserEvents2Impl>, public SimpleComObject, public DWebBrowserEvents2IF { typedef IComSrvBase<FixedDWebBrowserEvents2, DWebBrowserEvents2Impl> super; DWebBrowserEvents2IF* _callback; DWebBrowserEvents2Impl(BrowserNavigator& navigator) : super(DIID_DWebBrowserEvents2), _navigator(navigator) { _callback = this; } /* // IUnknown STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppv) { *ppv = NULL; if (SUCCEEDED(super::QueryInterface(riid, ppv))) return S_OK; return E_NOINTERFACE; } */ // IDispatch STDMETHOD(GetTypeInfoCount)(UINT* pctinfo) {return E_NOTIMPL;} STDMETHOD(GetTypeInfo)(UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) {return E_NOTIMPL;} STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) {return E_NOTIMPL;} STDMETHOD(Invoke)(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS __RPC_FAR *pDispParams, VARIANT __RPC_FAR *pVarResult, EXCEPINFO __RPC_FAR *pExcepInfo, UINT __RPC_FAR *puArgErr) { switch(dispIdMember) { case DISPID_STATUSTEXTCHANGE: _callback->StatusTextChange((BStr)Variant(pDispParams->rgvarg[0])); break; case DISPID_COMMANDSTATECHANGE: _callback->CommandStateChange(Variant(pDispParams->rgvarg[1]), Variant(pDispParams->rgvarg[0])); break; case DISPID_DOWNLOADBEGIN: _callback->DownloadBegin(); break; case DISPID_PROGRESSCHANGE: // sent when download progress is updated _callback->ProgressChange(Variant(pDispParams->rgvarg[1]), Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWMOVE: // sent when main window has been moved _callback->WindowMove(); break; case DISPID_WINDOWRESIZE: // sent when main window has been sized _callback->WindowResize(); break; case DISPID_WINDOWACTIVATE: // sent when main window has been activated _callback->WindowActivate(); break; case DISPID_PROPERTYCHANGE: // sent when the PutProperty method is called _callback->PropertyChange((BStr)Variant(pDispParams->rgvarg[0])); break; case DISPID_TITLECHANGE: // sent when the document title changes _callback->TitleChange((BStr)Variant(pDispParams->rgvarg[0])); break; case DISPID_TITLEICONCHANGE: // sent when the top level window icon may have changed. _callback->TitleIconChange((BStr)Variant(pDispParams->rgvarg[0])); break; // anything below here is not present in DWebBrowserEvents, only in DWebBrowserEvents2: -> case DISPID_FRAMEBEFORENAVIGATE: if (pDispParams->cArgs != 6) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; _callback->FrameBeforeNavigate( (BStr)Variant(&pDispParams->rgvarg[5]), Variant(&pDispParams->rgvarg[4]), (BStr)Variant(&pDispParams->rgvarg[3]), &pDispParams->rgvarg[2], (BStr)Variant(&pDispParams->rgvarg[1]), *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_FRAMENAVIGATECOMPLETE: if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->FrameNavigateComplete((BStr)Variant(pDispParams->rgvarg[0])); break; case DISPID_FRAMENEWWINDOW: if (pDispParams->cArgs != 6) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; _callback->FrameNewWindow((BStr)Variant(&pDispParams->rgvarg[5]), Variant(&pDispParams->rgvarg[4]), (BStr)Variant(&pDispParams->rgvarg[3]), &pDispParams->rgvarg[2], (BStr)Variant(&pDispParams->rgvarg[1]), *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_BEFORENAVIGATE2: // hyperlink clicked on if (pDispParams->cArgs != 7) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; _callback->BeforeNavigate2(Variant(pDispParams->rgvarg[6]), pDispParams->rgvarg[5], &pDispParams->rgvarg[4], pDispParams->rgvarg[3], &pDispParams->rgvarg[2], pDispParams->rgvarg[1], *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_NEWWINDOW2: // sent when a new window should be created if (pDispParams->cArgs != 2) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[1]) != (VT_DISPATCH|VT_BYREF)) return E_INVALIDARG; _callback->NewWindow2(V_DISPATCHREF(&pDispParams->rgvarg[1]), *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_NAVIGATECOMPLETE2:// UIActivate new document if (pDispParams->cArgs != 2) return E_INVALIDARG; // notify the navigator NavigateComplete2(Variant(pDispParams->rgvarg[1]), Variant(pDispParams->rgvarg[0])); _callback->NavigateComplete2(Variant(pDispParams->rgvarg[1]), Variant(pDispParams->rgvarg[0])); break; case DISPID_ONQUIT: _callback->OnQuit(); break; case DISPID_ONVISIBLE: // sent when the window goes visible/hidden if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnVisible(Variant(pDispParams->rgvarg[0])); break; case DISPID_ONTOOLBAR: // sent when the toolbar should be shown/hidden if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnToolbar(Variant(pDispParams->rgvarg[0])); break; case DISPID_ONMENUBAR: // sent when the menubar should be shown/hidden if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnMenubar(Variant(pDispParams->rgvarg[0])); break; case DISPID_ONSTATUSBAR: // sent when the statusbar should be shown/hidden if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnStatusbar(Variant(pDispParams->rgvarg[0])); break; case DISPID_ONFULLSCREEN: // sent when kiosk mode should be on/off if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnFullscreen(Variant(pDispParams->rgvarg[0])); break; case DISPID_DOCUMENTCOMPLETE:// new document goes ReadyState_Complete _callback->DocumentComplete(); break; case DISPID_DOWNLOADCOMPLETE: _callback->DownloadComplete(); break; case DISPID_ONTHEATERMODE: // sent when theater mode should be on/off if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnTheatermode(Variant(pDispParams->rgvarg[0])); break; case DISPID_ONADDRESSBAR: // sent when the address bar should be shown/hidden if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->OnAddressbar(Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWSETRESIZABLE:// sent to set the style of the host window frame if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->WindowSetResizable(Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWCLOSING: // sent before script window.close closes the window if (pDispParams->cArgs != 2) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; _callback->WindowClosing(Variant(pDispParams->rgvarg[1]), *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_WINDOWSETLEFT: // sent when the put_left method is called on the WebOC if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->WindowSetLeft(Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWSETTOP: // sent when the put_top method is called on the WebOC if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->WindowSetTop(Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWSETWIDTH: // sent when the put_width method is called on the WebOC if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->WindowSetWidth(Variant(pDispParams->rgvarg[0])); break; case DISPID_WINDOWSETHEIGHT: // sent when the put_height method is called on the WebOC if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->WindowSetHeight(Variant(pDispParams->rgvarg[0])); break; case DISPID_CLIENTTOHOSTWINDOW:// sent during window.open to request conversion of dimensions { long cx, cy; if (pDispParams->cArgs != 2) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_I4|VT_BYREF)) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[1]) != (VT_I4|VT_BYREF)) return E_INVALIDARG; cx = *V_I4REF(&pDispParams->rgvarg[1]); cy = *V_I4REF(&pDispParams->rgvarg[0]); _callback->ClientToHostWindow(cx, cy); break; } case DISPID_SETSECURELOCKICON:// sent to suggest the appropriate security icon to show if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->SetSecureLockIcon(Variant(pDispParams->rgvarg[0])); break; case DISPID_FILEDOWNLOAD: { // Fired to indicate the File Download dialog is opening if (pDispParams->cArgs != 1) //@@ every time 2 ?! return E_INVALIDARG; Variant var(pDispParams->rgvarg[0]); _callback->FileDownload(var);} break; case DISPID_NAVIGATEERROR: // Fired to indicate the a binding error has occured if (pDispParams->cArgs != 5) return E_INVALIDARG; if (V_VT(&pDispParams->rgvarg[0]) != (VT_BOOL|VT_BYREF)) return E_INVALIDARG; _callback->NavigateError(Variant(pDispParams->rgvarg[4]), Variant(pDispParams->rgvarg[3]), Variant(pDispParams->rgvarg[2]), Variant(pDispParams->rgvarg[1]), *V_BOOLREF(&pDispParams->rgvarg[0])); break; case DISPID_PRIVACYIMPACTEDSTATECHANGE:// Fired when the user's browsing experience is impacted if (pDispParams->cArgs != 1) return E_INVALIDARG; _callback->PrivacyImpactedStateChange(Variant(pDispParams->rgvarg[0])); break; default: return NOERROR; } return S_OK; } protected: BrowserNavigator& _navigator; void NavigateComplete2(IDispatch* pDisp, const Variant& url) { String adr = (BStr)url; _navigator.navigated(adr); } }; /// encapsulation of Web control in MDI child windows struct WebChildWindow : public IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2> >, public DWebBrowserEvents2Impl { typedef IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2> > super; typedef DWebBrowserEvents2Impl web_super; WebChildWindow(HWND hwnd, const WebChildWndInfo& info); static WebChildWindow* create(const FileChildWndInfo& info) { ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition, WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0); return static_cast<WebChildWindow*>(child); } // DWebBrowserEvents2Impl overides -> void BeforeNavigate2(IDispatch* pDisp, const Variant& url, const Variant& flags, const Variant& targetFrameName, const Variant& postData, const Variant& headers, VARIANT_BOOL& cancel) { //String adr = (BStr)url; } void NavigateComplete2(IDispatch* pDisp, const Variant& url) { web_super::NavigateComplete2(pDisp, url); set_url(String(BStr(url))); } void StatusTextChange(const BStr& text) { _statusText = text; SendMessage(_hwndFrame, PM_SETSTATUSTEXT, 0, (LPARAM)_statusText.c_str()); } void ProgressChange(long Progress, long ProgressMax) { } void WindowMove() { } void WindowResize() { } void WindowActivate() { } void PropertyChange(const BStr& Property) { Variant value; _control->GetProperty(Property, &value); } void CommandStateChange(long command/*CSC_NAVIGATEFORWARD, CSC_NAVIGATEBACK*/, bool enable) { } void DownloadBegin() { } void NewWindow2(IDispatch** ppDisp, VARIANT_BOOL& cancel) { //*ppDisp = ; //cancel = TRUE; } void TitleChange(const BStr& text) { SetWindowText(_hwnd, String(text)); } void TitleIconChange(const BStr& text) { } void FrameBeforeNavigate(const BStr& url, long flags, const BStr& targetFrameName, VARIANT* postData, const BStr& headers, VARIANT_BOOL& cancel) { } void FrameNavigateComplete(const BStr& url) { } void FrameNewWindow(const BStr& url, long flags, const BStr& targetFrameName, VARIANT* postData, const BStr& headers, VARIANT_BOOL& processed) { } void OnQuit() { } void OnVisible(bool Visible) { } void OnToolbar(bool Visible) { } void OnMenubar(bool Visible) { } void OnStatusbar(bool Visible) { } void OnFullscreen(bool Visible) { } void DocumentComplete() { } void OnTheatermode(bool Visible) { } void OnAddressbar(bool Visible) { } void WindowSetResizable(bool Visible) { } void WindowClosing(VARIANT_BOOL IsChildWindow, VARIANT_BOOL& cancel) { } void WindowSetLeft(long Left) { } void WindowSetTop(long Top) { } void WindowSetWidth(long Width) { } void WindowSetHeight(long Height) { } void ClientToHostWindow(long& CX, long& CY) { } void SetSecureLockIcon(long SecureLockIcon) { } void FileDownload(Variant& cancel) { } void NavigateError(IDispatch* pDisp, const Variant& url, const Variant& Frame, const Variant& StatusCode, VARIANT_BOOL& cancel) { } void PrivacyImpactedStateChange(bool bImpacted) { } protected: BrowserNavigator _navigator; auto_ptr<EventConnector> _connector; LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam); virtual String jump_to_int(LPCTSTR url); };
beb55a38ebe07e6f84038afc78ddac9a94163623
04b1803adb6653ecb7cb827c4f4aa616afacf629
/content/browser/appcache/appcache_url_loader_request.h
191b860ef4d60f489340165465ded4cfde9bc25d
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
C++
false
false
2,243
h
appcache_url_loader_request.h
// Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_REQUEST_H_ #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_REQUEST_H_ #include "base/memory/weak_ptr.h" #include "content/browser/appcache/appcache_request.h" #include "net/url_request/redirect_info.h" #include "services/network/public/cpp/resource_request.h" #include "services/network/public/cpp/resource_response.h" namespace content { // AppCacheRequest wrapper for the ResourceRequest class for users of // URLLoader. class CONTENT_EXPORT AppCacheURLLoaderRequest : public AppCacheRequest { public: // Factory function to create an instance of the AppCacheResourceRequest // class. static std::unique_ptr<AppCacheURLLoaderRequest> Create( const network::ResourceRequest& request); ~AppCacheURLLoaderRequest() override; // AppCacheRequest overrides. const GURL& GetURL() const override; const std::string& GetMethod() const override; const GURL& GetSiteForCookies() const override; const GURL GetReferrer() const override; bool IsSuccess() const override; bool IsCancelled() const override; bool IsError() const override; int GetResponseCode() const override; std::string GetResponseHeaderByName(const std::string& name) const override; network::ResourceRequest* GetResourceRequest() override; AppCacheURLLoaderRequest* AsURLLoaderRequest() override; void UpdateWithRedirectInfo(const net::RedirectInfo& redirect_info); void set_request(const network::ResourceRequest& request) { request_ = request; } void set_response(const network::ResourceResponseHead& response) { response_ = response; } base::WeakPtr<AppCacheURLLoaderRequest> GetWeakPtr(); protected: explicit AppCacheURLLoaderRequest(const network::ResourceRequest& request); private: network::ResourceRequest request_; network::ResourceResponseHead response_; base::WeakPtrFactory<AppCacheURLLoaderRequest> weak_factory_; DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderRequest); }; } // namespace content #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_REQUEST_H_
242c43ce5a0113c68cbc9e2db7d9207979e9bde6
ba2c85d64fb5a979be13b7eb731ce082d0ecaa02
/SigmaCode2016/src/AutoDrive.cpp
e9a5e5d827b330647be20be8a5f37bff5151127e
[]
no_license
SigmaCats-108/SigmaCode-2016
d8ab440de3812e26f6a916cca41b1bce772246f9
f04e36505f2409fe97d05e32ecfa3ad5d5ed4b42
refs/heads/master
2020-03-28T01:44:12.916641
2016-02-18T19:43:50
2016-02-18T19:43:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,671
cpp
AutoDrive.cpp
/* * AutoDrive.cpp * * Created on: Feb 15, 2016 * Author: Andrew */ #include <AutoDrive.h> AutoDrive::AutoDrive(SigmaDrive* drive) { drive108 = drive; } AutoDrive::~AutoDrive(){}; void AutoDrive::driveStraight(double d, double t, bool stopWhenDone){ //currentSpeed = drive108.getSpeed(); desiredSpeed = d/t; //double accelVal = (desiredSpeed - currentSpeed)/t; //SmartDashboard.putNumber("acceleration Cap: ", accelVal); setValue = desiredSpeed/LowGearMaxSpeed; while(!finished){ drive108->tankDrive(setValue*12, setValue*12); Wait(0.005); drive108->UpdateDiplacement(0.005); if(drive108->GetDisplacement() <= d+6 && drive108->GetDisplacement() >= d-6){ finished = true; } /* else{ d = d - drive108.getDistance(); t = d/desiredSpeed; this.driveStraight(d, t, stopWhenDone); } */ } if(stopWhenDone){ drive108->tankDrive(0.0, 0.0); } } void AutoDrive::turnOnSpot(double theta, double t){ finished = false; arcRadius = DriveWidth; desiredSpeed = (arcRadius*theta)/t; distanceToTravel = desiredSpeed*t; setValue = desiredSpeed/LowGearMaxSpeed; while(!finished){ drive108->tankDrive(setValue*12, -setValue*12); Wait(0.05); angle = drive108->gyro->GetAngle() + angle; drive108->gyro->Reset(); if(angle <= theta+1 && angle >= theta-1){ finished = true; } /* else{ distanceToTravel = distanceToTravel - drive108->getDistance(); t = distanceToTravel/desiredSpeed; this.turnOnSpot(theta, t); } */ } drive108->tankDrive(0.0,0.0); } void AutoDrive::followArc(double r, double theta, double t, bool leftTurn, bool stopWhenDone){ finished = false; arcRadius = r; if(leftTurn){ leftRadius = r - (DriveWidth/2); rightRadius = r + (DriveWidth/2); }else{ leftRadius = r + (DriveWidth/2); rightRadius = r - (DriveWidth/2); } leftDTT = leftRadius*theta; rightDTT = rightRadius*theta; leftSpeed = leftDTT/t; rightSpeed = rightDTT/t; desiredSpeed = (leftSpeed+rightSpeed)/2; leftValue = leftSpeed/LowGearMaxSpeed; rightValue = rightSpeed/LowGearMaxSpeed; while(!finished){ drive108->tankDrive(leftValue, rightValue); Wait(0.005); Ltravelled = (drive108->left1->GetEncVel()*wheelCircum)*0.005 + Ltravelled; Rtravelled = (drive108->right1->GetEncVel()*wheelCircum)*0.005 + Rtravelled; if(Ltravelled <= leftDTT+1 && Ltravelled >= leftDTT-1){ if(Rtravelled <= rightDTT+1 && Rtravelled >= rightDTT-1){ finished = true; } } } if(stopWhenDone){ drive108->tankDrive(0.0, 0.0); } }
d7ec5a1dc083ecf73f9dc3a9e4073facef262bc3
674f269f6ca90298d22452d24656cedb45f1fc95
/plugins/KeyboardGUIPlugin.hh
e4063e842ed9f8d0c2da1faafdb85a4dc2718b92
[ "Apache-2.0" ]
permissive
mingfeisun/gazebo
f4187a5214cafd3fab6921e3cc62f4dadddf14ea
f3eae789c738f040b8fb27c2dc16dc4c06f2495c
refs/heads/master
2021-07-07T05:19:48.545813
2019-01-11T12:35:31
2019-01-11T12:35:31
132,331,071
3
0
null
null
null
null
UTF-8
C++
false
false
1,896
hh
KeyboardGUIPlugin.hh
/* * Copyright (C) 2016 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifndef GAZEBO_PLUGINS_KEYBOARDGUIPLUGIN_HH_ #define GAZEBO_PLUGINS_KEYBOARDGUIPLUGIN_HH_ #include <memory> #include <gazebo/common/Plugin.hh> // See: https://bugreports.qt-project.org/browse/QTBUG-22829 #ifndef Q_MOC_RUN # include <gazebo/gui/gui.hh> #endif namespace gazebo { // Forward declare private data class class KeyboardGUIPluginPrivate; /// \brief A GUI plugin that captures key strokes from gzclient GUI /// and publishes over gz transport topic `~/keyboard/keypress` class GAZEBO_VISIBLE KeyboardGUIPlugin : public GUIPlugin { Q_OBJECT /// \brief Constructor. public: KeyboardGUIPlugin(); /// \brief Destructor. public: virtual ~KeyboardGUIPlugin(); /// \brief Callback for a key press event. /// \param[in] _event Key event protected: void OnKeyPress(const gazebo::common::KeyEvent &_event); /// \brief Qt event filter used to filter child widget events. /// \param[in] _obj Object that is watched by the event filter. /// \param[in] _event Qt event. /// \return True if the event is handled. private: bool eventFilter(QObject *_obj, QEvent *_event); /// \internal /// \brief Pointer to private data. private: std::unique_ptr<KeyboardGUIPluginPrivate> dataPtr; }; } #endif
071724dfedb997e973c4dc205e4de3ec0b2e6c10
bd1cbd63c59d1f0c7fe11f7284b89f778c54f905
/prx_external/parallel_pqp/cuda_errorcheck.h
d033acfe646090540f722a58645b474d13d18885
[]
no_license
warehouse-picking-automation-challenges/rutgers_arm
e40019bec4b00838909c593466f8d3af320752fa
647f5f7a3a87ad5fdc5dae04d61fc252885199c9
refs/heads/master
2021-06-03T20:08:16.371078
2016-08-26T16:37:56
2016-08-26T16:37:56
65,869,656
1
1
null
null
null
null
UTF-8
C++
false
false
1,202
h
cuda_errorcheck.h
#ifndef CUDA_ERROR_CHECK_H #define CUDA_ERROR_CHECK_H #include <stdio.h> #include <stdlib.h> #include <iostream> #define CUDA_ERROR_CHECK #define CUDA_SAFE_CALL( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CUDA_CHECK_ERROR() __cudaCheckError( __FILE__, __LINE__ ) inline void __cudaSafeCall( cudaError err, const char *file, const int line ) { #ifdef CUDA_ERROR_CHECK if ( cudaSuccess != err ) { fprintf( stderr, "cudaSafeCall() failed at %s:%i : %s\n", file, line, cudaGetErrorString( err ) ); exit( -1 ); } #endif return; } inline void __cudaCheckError( const char *file, const int line ) { #ifdef CUDA_ERROR_CHECK cudaError err = cudaGetLastError(); if ( cudaSuccess != err ) { fprintf( stderr, "cudaCheckError() failed at %s:%i : %s\n", file, line, cudaGetErrorString( err ) ); exit( -1 ); } // More careful checking. However, this will affect performance. // Comment away if needed. err = cudaDeviceSynchronize(); if( cudaSuccess != err ) { fprintf( stderr, "cudaCheckError() with sync failed at %s:%i : %s\n", file, line, cudaGetErrorString( err ) ); exit( -1 ); } #endif return; } #endif
aa0116398ca68e069b6e3be402a6a6f0dd88d690
2d35b36c831db8a4f75f60f1e3ab9ac0d538dda2
/leetcode/done/l389.cc
386f2135815e3ac85579c66ec2515126495d1295
[]
no_license
whutaihejin/repo
55ab38f29420e9674ae3f8e84d7c1ea0a085fb40
33137d826ae24dcd0b0552a4b44b7aae1c25a6e7
refs/heads/master
2022-05-02T16:34:13.302691
2022-04-16T04:40:01
2022-04-16T04:40:01
98,664,795
0
0
null
null
null
null
UTF-8
C++
false
false
560
cc
l389.cc
#include <iostream> #include <gtest/gtest.h> using namespace std; namespace { char findTheDifference(string s, string t) { size_t i = 0, limit = s.size() < t.size() ? s.size() : t.size(); char val = 0; for (; i < limit; ++i) { val ^= s[i]; val ^= t[i]; } if (i < s.size()) val ^= s[i]; if (i < t.size()) val ^= t[i]; return val; } } // anonymous namespace TEST(YourTest, Case0) { ASSERT_EQ(2, 2); } int main(int argc, char* argv[]) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
50d239524bc7f82a77e8f6ba7b117a4e1933bdbb
86ed52e38cd8e1dc49e9535468dcac95ba07823c
/JavaScript/Thực Hành/Đồ án đạp gạch/HoTanDat_0306171336_17D/Ai_La_Trieu_Phu/Ai_La_Trieu_Phu/CauHoi.h
d1ac178465d4a9b42bd1744bc764681e2d55bbd6
[]
no_license
khuongsatou/SlidePrograming
cffe781ba9cc44b8fb73dec4a05b98b71082e4da
30170a7e8588bffb9ca75bfe9050a3f491ef0d2d
refs/heads/master
2020-08-28T11:51:05.613693
2019-10-26T10:12:28
2019-10-26T10:12:28
217,688,342
1
0
null
null
null
null
UTF-8
C++
false
false
497
h
CauHoi.h
#pragma once #include <iostream> using namespace std; class CauHoi { private: string cauHoi; string dapAn1; string dapAn2; string dapAn3; string dapAn4; int ketQua; bool daTraLoi; public: CauHoi(); CauHoi(string cauhoi, string dapan1, string dapan2, string dapan3, string dapan4, int ketqua); ~CauHoi(); public: bool KiemTraDapAn(int dapAn); string GetCauHoi(); string GetDapAn1(); string GetDapAn2(); string GetDapAn3(); string GetDapAn4(); int GetDapAn(); bool DaTraLoi(); };
3fac0a408d2c940243f7289db34db0757b512172
be2aba77c0292218f518b1df4ba42e178dc146f9
/DemolisherWeapon/Graphic/Shader/ShaderUtil.cpp
76a06804b13c25c80ddbf3b4849e52136dc9c541
[]
no_license
ShanzhongXinzhijie/DemolisherWeapon
52f52199f5cb452791883168b2acf6730241f333
d3fc64a81282baeed31ff619fa194272f4d76712
refs/heads/master
2021-06-13T15:33:03.716910
2021-02-24T03:07:05
2021-02-24T03:07:05
156,185,052
2
0
null
2019-03-07T01:16:45
2018-11-05T08:34:14
C++
SHIFT_JIS
C++
false
false
536
cpp
ShaderUtil.cpp
#include "DWstdafx.h" #include "ShaderUtil.h" namespace DemolisherWeapon { //定数バッファの作成 void ShaderUtil::CreateConstantBuffer(int size, ID3D11Buffer** buffer) { int bufferSize = size; D3D11_BUFFER_DESC bufferDesc; ZeroMemory(&bufferDesc, sizeof(bufferDesc)); bufferDesc.Usage = D3D11_USAGE_DEFAULT; bufferDesc.ByteWidth = (((bufferSize - 1) / 16) + 1) * 16; bufferDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; GetEngine().GetGraphicsEngine().GetD3DDevice()->CreateBuffer(&bufferDesc, NULL, buffer); } }
f53efd923f13da8c04da0bacce860c1fbcf69edb
1ef4c143df27402ab793bcfc4b5eda40216b0560
/Traveller's app/user.h
adac8d20cb332802bad2d53ba0e6e83b82faeb05
[]
no_license
martinikolaev00/Traveller-s-app
ac820bdbeb59cd6903a50b49a451d8c8e7abac01
4850b0b38c5ff87ec30b6ed26ad7acb5100e6477
refs/heads/master
2022-10-04T07:32:00.167679
2020-06-07T18:35:51
2020-06-07T18:35:51
270,320,092
0
0
null
null
null
null
UTF-8
C++
false
false
1,443
h
user.h
#pragma once #include<fstream> #include<iostream> static int base = 200; /// a short class to help us create login profiles ///@param username - char* for name ///@param password - char* for password ///@param email - char* for email class user { char* username; char* password; char* email; public: /// simple contructor, just allocating mem user(); ///Copy constructor, allocating mem and calling copy function ///@see copy() user(const user& other); ///A constructor to help us set all the needed data user(char* username, char* password, char* email); ///We must not forget to check if this != & other, after that just call del() and copy() user& operator=(const user& other); /// Destructor calls del() ~user(); ///Helps us demermine whether 2 user objects are the same bool operator==(const user& other); ///Returns a copy pointer of username in oder to achieve full encapsulation ///@note must be careful about mem leaks char* getusername(char* buff); ///A function close to operator== bool cmp(const char* username, const char* email, const char* password); ///Helps us to store all of the date for our user in a file ///@note check if file is opened is imporatant void serialize(std::ofstream& ofs); ///Helps us to create a fully working user with data from file ///@note check if file is opened is imporatant void deserialize(std::ifstream& ifs); private: void copy(const user& other); void del(); };
968cec824eb0ef9cadb9630a84123d4493f420e7
6fd072757f7f9ceeff1832513b7393bcef91d4dc
/framework/tarscpp/util/include/util/tc_thread_mutex.h
3ecb2e08d2d71c3e55bf5036275f511c6d3d0a7e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hfcrwx/Tars-v2.4.20
2d6a5f84df434c293cef301d978d38f691d9227f
b0782b3fad556582470cddaa4416874126bd105c
refs/heads/master
2023-07-16T06:02:01.278347
2021-08-28T16:08:40
2021-08-28T16:08:40
400,194,431
0
0
null
null
null
null
UTF-8
C++
false
false
2,582
h
tc_thread_mutex.h
/** * Tencent is pleased to support the open source community by making Tars * available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the * License at * * https://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ #ifndef __TC_THREAD_MUTEX_H #define __TC_THREAD_MUTEX_H #include <atomic> #include <mutex> #include "util/tc_lock.h" #include "util/tc_platform.h" namespace tars { ///////////////////////////////////////////////// /** * @file tc_thread_mutex.h * @brief 线程锁互斥类(兼容TAF4.x版本, 底层直接封装了c++11, 从而跨平台兼容) * * @author jarodruan@upchina.com */ ///////////////////////////////////////////////// class TC_ThreadCond; /** * @brief 线程锁 . * * 不可重复加锁,即同一个线程不可以重复加锁 * * 通常不直接使用,和TC_Monitor配合使用,即TC_ThreadLock; */ class UTIL_DLL_API TC_ThreadMutex { public: TC_ThreadMutex(); virtual ~TC_ThreadMutex(); /** * @brief 加锁 */ void lock() const; /** * @brief 尝试锁 * * @return bool */ bool tryLock() const; /** * @brief 解锁 */ void unlock() const; protected: // noncopyable TC_ThreadMutex(const TC_ThreadMutex&) = delete; void operator=(const TC_ThreadMutex&) = delete; friend class TC_ThreadCond; protected: mutable std::mutex _mutex; }; /** * @brief 线程锁类. * * 采用线程库实现 **/ class UTIL_DLL_API TC_ThreadRecMutex { public: /** * @brief 构造函数 */ TC_ThreadRecMutex(); /** * @brief 析够函数 */ virtual ~TC_ThreadRecMutex(); /** * @brief 锁, 调用pthread_mutex_lock. * */ void lock() const; /** * @brief 解锁, pthread_mutex_unlock. * */ void unlock() const; /** * @brief 尝试锁, 失败抛出异常. * * return : true, 成功锁; false 其他线程已经锁了 */ bool tryLock() const; protected: /** * @brief 友元类 */ friend class TC_ThreadCond; private: /** 锁对象 */ mutable recursive_mutex _mutex; }; } // namespace tars #endif