blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
45ce4666a209d0a18be2f32e9535aaa4eba6cdc6
d5c74645b58a1dd13aa122fb514f35153017eb06
/iBrowser/iBrowser/crossrender/cross_render_core_container.h
fbc1110f8456864de8eb27d6d36644a96b80e011
[]
no_license
brucezhang80/iBrowser
164211172090d5f7723fa5c65f578944cfb9180d
6e271d90a59bcb8e5063044b986da8d1452c7294
refs/heads/master
2021-05-27T10:07:36.772388
2013-10-17T02:43:06
2013-10-17T02:43:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
941
h
// Copyright (c) 2013 The iBrowser 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 _CROSS_RENDER_CORE_CONTAINER_H__ #define _CROSS_RENDER_CORE_CONTAINER_H__ #include <atlwin.h> namespace CrossRender { class CrossRenderCoreContainer : public CWindowImpl<CrossRenderCoreContainer, CAxWindow> { public: BEGIN_MSG_MAP(CrossRenderCoreContainer) MESSAGE_HANDLER(WM_CREATE, OnCreate) MESSAGE_HANDLER(WM_DESTROY, OnDestroy) END_MSG_MAP() CrossRenderCoreContainer(); ~CrossRenderCoreContainer(); static const int kStyle = WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_POPUP; static const int kExStyle = WS_EX_LAYERED; protected: private: LRESULT OnCreate(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); LRESULT OnDestroy(UINT msg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); }; } #endif //_CROSS_RENDER_CORE_CONTAINER_H__
[ "hongsong.tan@wantgame.net" ]
hongsong.tan@wantgame.net
94989830f760d7b36fde413f8d34a88cc2f0c66d
ecab21462fc75df52132b11349d8e7a0dcd3218c
/gen/blink/bindings/modules/v8/V8SpeechSynthesisUtterance.h
a7e69a5c354ceb3f58abe188e5786dc227de9687
[ "Apache-2.0" ]
permissive
mensong/MiniBlink
4688506a0e9e8f0ed5e6d6daaf470255be2a68b8
7a11c52f141d54d5f8e1a9af31867cd120a2c3c4
refs/heads/master
2023-03-29T04:40:53.198842
2021-04-07T01:56:02
2021-04-07T01:56:02
161,746,209
2
1
null
null
null
null
UTF-8
C++
false
false
2,327
h
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #ifndef V8SpeechSynthesisUtterance_h #define V8SpeechSynthesisUtterance_h #include "bindings/core/v8/ScriptWrappable.h" #include "bindings/core/v8/ToV8.h" #include "bindings/core/v8/V8Binding.h" #include "bindings/core/v8/V8DOMWrapper.h" #include "bindings/core/v8/V8EventTarget.h" #include "bindings/core/v8/WrapperTypeInfo.h" #include "modules/ModulesExport.h" #include "modules/speech/SpeechSynthesisUtterance.h" #include "platform/heap/Handle.h" namespace blink { class V8SpeechSynthesisUtterance { public: MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*); MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*); static SpeechSynthesisUtterance* toImpl(v8::Local<v8::Object> object) { return toScriptWrappable(object)->toImpl<SpeechSynthesisUtterance>(); } MODULES_EXPORT static SpeechSynthesisUtterance* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>); MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; static void refObject(ScriptWrappable*); static void derefObject(ScriptWrappable*); template<typename VisitorDispatcher> static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable) { visitor->trace(scriptWrappable->toImpl<SpeechSynthesisUtterance>()); } static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount + 0; static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1; static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8::Isolate*) { } static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) { } }; template <> struct V8TypeOf<SpeechSynthesisUtterance> { typedef V8SpeechSynthesisUtterance Type; }; } // namespace blink #endif // V8SpeechSynthesisUtterance_h
[ "mail0668@gmail.com" ]
mail0668@gmail.com
15b440139f25280806066153a1937aaa326e680c
bb6ebff7a7f6140903d37905c350954ff6599091
/third_party/webrtc/modules/audio_processing/utility/delay_estimator_unittest.cc
ca0901d6db272589367eedee6092d2e14eed5425
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "LicenseRef-scancode-takuya-ooura", "MIT", "BSL-1.0", "LicenseRef-scancode-boost-original", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown", "MS-LPL", "LicenseRef-scancode-google-patent-licens...
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
C++
false
false
22,549
cc
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "testing/gtest/include/gtest/gtest.h" extern "C" { #include "webrtc/modules/audio_processing/utility/delay_estimator.h" #include "webrtc/modules/audio_processing/utility/delay_estimator_internal.h" #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" } #include "webrtc/typedefs.h" namespace { enum { kSpectrumSize = 65 }; // Delay history sizes. enum { kMaxDelay = 100 }; enum { kLookahead = 10 }; // Length of binary spectrum sequence. enum { kSequenceLength = 400 }; const int kEnable[] = { 0, 1 }; const size_t kSizeEnable = sizeof(kEnable) / sizeof(*kEnable); class DelayEstimatorTest : public ::testing::Test { protected: DelayEstimatorTest(); virtual void SetUp(); virtual void TearDown(); void Init(); void InitBinary(); void VerifyDelay(BinaryDelayEstimator* binary_handle, int offset, int delay); void RunBinarySpectra(BinaryDelayEstimator* binary1, BinaryDelayEstimator* binary2, int near_offset, int lookahead_offset, int far_offset); void RunBinarySpectraTest(int near_offset, int lookahead_offset, int ref_robust_validation, int robust_validation); void* handle_; DelayEstimator* self_; void* farend_handle_; DelayEstimatorFarend* farend_self_; BinaryDelayEstimator* binary_; BinaryDelayEstimatorFarend* binary_farend_; int spectrum_size_; // Dummy input spectra. float far_f_[kSpectrumSize]; float near_f_[kSpectrumSize]; uint16_t far_u16_[kSpectrumSize]; uint16_t near_u16_[kSpectrumSize]; uint32_t binary_spectrum_[kSequenceLength + kMaxDelay + kLookahead]; }; DelayEstimatorTest::DelayEstimatorTest() : handle_(NULL), self_(NULL), farend_handle_(NULL), farend_self_(NULL), binary_(NULL), binary_farend_(NULL), spectrum_size_(kSpectrumSize) { // Dummy input data are set with more or less arbitrary non-zero values. memset(far_f_, 1, sizeof(far_f_)); memset(near_f_, 2, sizeof(near_f_)); memset(far_u16_, 1, sizeof(far_u16_)); memset(near_u16_, 2, sizeof(near_u16_)); // Construct a sequence of binary spectra used to verify delay estimate. The // |kSequenceLength| has to be long enough for the delay estimation to leave // the initialized state. binary_spectrum_[0] = 1; for (int i = 1; i < (kSequenceLength + kMaxDelay + kLookahead); i++) { binary_spectrum_[i] = 3 * binary_spectrum_[i - 1]; } } void DelayEstimatorTest::SetUp() { farend_handle_ = WebRtc_CreateDelayEstimatorFarend(kSpectrumSize, kMaxDelay + kLookahead); ASSERT_TRUE(farend_handle_ != NULL); farend_self_ = reinterpret_cast<DelayEstimatorFarend*>(farend_handle_); handle_ = WebRtc_CreateDelayEstimator(farend_handle_, kLookahead); ASSERT_TRUE(handle_ != NULL); self_ = reinterpret_cast<DelayEstimator*>(handle_); binary_farend_ = WebRtc_CreateBinaryDelayEstimatorFarend(kMaxDelay + kLookahead); ASSERT_TRUE(binary_farend_ != NULL); binary_ = WebRtc_CreateBinaryDelayEstimator(binary_farend_, kLookahead); ASSERT_TRUE(binary_ != NULL); } void DelayEstimatorTest::TearDown() { WebRtc_FreeDelayEstimator(handle_); handle_ = NULL; self_ = NULL; WebRtc_FreeDelayEstimatorFarend(farend_handle_); farend_handle_ = NULL; farend_self_ = NULL; WebRtc_FreeBinaryDelayEstimator(binary_); binary_ = NULL; WebRtc_FreeBinaryDelayEstimatorFarend(binary_farend_); binary_farend_ = NULL; } void DelayEstimatorTest::Init() { // Initialize Delay Estimator EXPECT_EQ(0, WebRtc_InitDelayEstimatorFarend(farend_handle_)); EXPECT_EQ(0, WebRtc_InitDelayEstimator(handle_)); // Verify initialization. EXPECT_EQ(0, farend_self_->far_spectrum_initialized); EXPECT_EQ(0, self_->near_spectrum_initialized); EXPECT_EQ(-2, WebRtc_last_delay(handle_)); // Delay in initial state. EXPECT_FLOAT_EQ(0, WebRtc_last_delay_quality(handle_)); // Zero quality. } void DelayEstimatorTest::InitBinary() { // Initialize Binary Delay Estimator (far-end part). WebRtc_InitBinaryDelayEstimatorFarend(binary_farend_); // Initialize Binary Delay Estimator WebRtc_InitBinaryDelayEstimator(binary_); // Verify initialization. This does not guarantee a complete check, since // |last_delay| may be equal to -2 before initialization if done on the fly. EXPECT_EQ(-2, binary_->last_delay); } void DelayEstimatorTest::VerifyDelay(BinaryDelayEstimator* binary_handle, int offset, int delay) { // Verify that we WebRtc_binary_last_delay() returns correct delay. EXPECT_EQ(delay, WebRtc_binary_last_delay(binary_handle)); if (delay != -2) { // Verify correct delay estimate. In the non-causal case the true delay // is equivalent with the |offset|. EXPECT_EQ(offset, delay); } } void DelayEstimatorTest::RunBinarySpectra(BinaryDelayEstimator* binary1, BinaryDelayEstimator* binary2, int near_offset, int lookahead_offset, int far_offset) { int different_validations = binary1->robust_validation_enabled ^ binary2->robust_validation_enabled; WebRtc_InitBinaryDelayEstimatorFarend(binary_farend_); WebRtc_InitBinaryDelayEstimator(binary1); WebRtc_InitBinaryDelayEstimator(binary2); // Verify initialization. This does not guarantee a complete check, since // |last_delay| may be equal to -2 before initialization if done on the fly. EXPECT_EQ(-2, binary1->last_delay); EXPECT_EQ(-2, binary2->last_delay); for (int i = kLookahead; i < (kSequenceLength + kLookahead); i++) { WebRtc_AddBinaryFarSpectrum(binary_farend_, binary_spectrum_[i + far_offset]); int delay_1 = WebRtc_ProcessBinarySpectrum(binary1, binary_spectrum_[i]); int delay_2 = WebRtc_ProcessBinarySpectrum(binary2, binary_spectrum_[i - near_offset]); VerifyDelay(binary1, far_offset + kLookahead, delay_1); VerifyDelay(binary2, far_offset + kLookahead + lookahead_offset + near_offset, delay_2); // Expect the two delay estimates to be offset by |lookahead_offset| + // |near_offset| when we have left the initial state. if ((delay_1 != -2) && (delay_2 != -2)) { EXPECT_EQ(delay_1, delay_2 - lookahead_offset - near_offset); } // For the case of identical signals |delay_1| and |delay_2| should match // all the time, unless one of them has robust validation turned on. In // that case the robust validation leaves the initial state faster. if ((near_offset == 0) && (lookahead_offset == 0)) { if (!different_validations) { EXPECT_EQ(delay_1, delay_2); } else { if (binary1->robust_validation_enabled) { EXPECT_GE(delay_1, delay_2); } else { EXPECT_GE(delay_2, delay_1); } } } } // Verify that we have left the initialized state. EXPECT_NE(-2, WebRtc_binary_last_delay(binary1)); EXPECT_LT(0, WebRtc_binary_last_delay_quality(binary1)); EXPECT_NE(-2, WebRtc_binary_last_delay(binary2)); EXPECT_LT(0, WebRtc_binary_last_delay_quality(binary2)); } void DelayEstimatorTest::RunBinarySpectraTest(int near_offset, int lookahead_offset, int ref_robust_validation, int robust_validation) { BinaryDelayEstimator* binary2 = WebRtc_CreateBinaryDelayEstimator(binary_farend_, kLookahead + lookahead_offset); // Verify the delay for both causal and non-causal systems. For causal systems // the delay is equivalent with a positive |offset| of the far-end sequence. // For non-causal systems the delay is equivalent with a negative |offset| of // the far-end sequence. binary_->robust_validation_enabled = ref_robust_validation; binary2->robust_validation_enabled = robust_validation; for (int offset = -kLookahead; offset < kMaxDelay - lookahead_offset - near_offset; offset++) { RunBinarySpectra(binary_, binary2, near_offset, lookahead_offset, offset); } WebRtc_FreeBinaryDelayEstimator(binary2); binary2 = NULL; binary_->robust_validation_enabled = 0; // Reset reference. } TEST_F(DelayEstimatorTest, CorrectErrorReturnsOfWrapper) { // In this test we verify correct error returns on invalid API calls. // WebRtc_CreateDelayEstimatorFarend() and WebRtc_CreateDelayEstimator() // should return a NULL pointer on invalid input values. // Make sure we have a non-NULL value at start, so we can detect NULL after // create failure. void* handle = farend_handle_; handle = WebRtc_CreateDelayEstimatorFarend(33, kMaxDelay + kLookahead); EXPECT_TRUE(handle == NULL); handle = WebRtc_CreateDelayEstimatorFarend(kSpectrumSize, 1); EXPECT_TRUE(handle == NULL); handle = handle_; handle = WebRtc_CreateDelayEstimator(NULL, kLookahead); EXPECT_TRUE(handle == NULL); handle = WebRtc_CreateDelayEstimator(farend_handle_, -1); EXPECT_TRUE(handle == NULL); // WebRtc_InitDelayEstimatorFarend() and WebRtc_InitDelayEstimator() should // return -1 if we have a NULL pointer as |handle|. EXPECT_EQ(-1, WebRtc_InitDelayEstimatorFarend(NULL)); EXPECT_EQ(-1, WebRtc_InitDelayEstimator(NULL)); // WebRtc_AddFarSpectrumFloat() should return -1 if we have: // 1) NULL pointer as |handle|. // 2) NULL pointer as far-end spectrum. // 3) Incorrect spectrum size. EXPECT_EQ(-1, WebRtc_AddFarSpectrumFloat(NULL, far_f_, spectrum_size_)); // Use |farend_handle_| which is properly created at SetUp(). EXPECT_EQ(-1, WebRtc_AddFarSpectrumFloat(farend_handle_, NULL, spectrum_size_)); EXPECT_EQ(-1, WebRtc_AddFarSpectrumFloat(farend_handle_, far_f_, spectrum_size_ + 1)); // WebRtc_AddFarSpectrumFix() should return -1 if we have: // 1) NULL pointer as |handle|. // 2) NULL pointer as far-end spectrum. // 3) Incorrect spectrum size. // 4) Too high precision in far-end spectrum (Q-domain > 15). EXPECT_EQ(-1, WebRtc_AddFarSpectrumFix(NULL, far_u16_, spectrum_size_, 0)); EXPECT_EQ(-1, WebRtc_AddFarSpectrumFix(farend_handle_, NULL, spectrum_size_, 0)); EXPECT_EQ(-1, WebRtc_AddFarSpectrumFix(farend_handle_, far_u16_, spectrum_size_ + 1, 0)); EXPECT_EQ(-1, WebRtc_AddFarSpectrumFix(farend_handle_, far_u16_, spectrum_size_, 16)); // WebRtc_set_allowed_offset() should return -1 if we have: // 1) NULL pointer as |handle|. // 2) |allowed_offset| < 0. EXPECT_EQ(-1, WebRtc_set_allowed_offset(NULL, 0)); EXPECT_EQ(-1, WebRtc_set_allowed_offset(handle_, -1)); EXPECT_EQ(-1, WebRtc_get_allowed_offset(NULL)); // WebRtc_enable_robust_validation() should return -1 if we have: // 1) NULL pointer as |handle|. // 2) Incorrect |enable| value (not 0 or 1). EXPECT_EQ(-1, WebRtc_enable_robust_validation(NULL, kEnable[0])); EXPECT_EQ(-1, WebRtc_enable_robust_validation(handle_, -1)); EXPECT_EQ(-1, WebRtc_enable_robust_validation(handle_, 2)); // WebRtc_is_robust_validation_enabled() should return -1 if we have NULL // pointer as |handle|. EXPECT_EQ(-1, WebRtc_is_robust_validation_enabled(NULL)); // WebRtc_DelayEstimatorProcessFloat() should return -1 if we have: // 1) NULL pointer as |handle|. // 2) NULL pointer as near-end spectrum. // 3) Incorrect spectrum size. EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFloat(NULL, near_f_, spectrum_size_)); // Use |handle_| which is properly created at SetUp(). EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFloat(handle_, NULL, spectrum_size_)); EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFloat(handle_, near_f_, spectrum_size_ + 1)); // WebRtc_DelayEstimatorProcessFix() should return -1 if we have: // 1) NULL pointer as |handle|. // 3) NULL pointer as near-end spectrum. // 4) Incorrect spectrum size. // 6) Too high precision in near-end spectrum (Q-domain > 15). EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFix(NULL, near_u16_, spectrum_size_, 0)); EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFix(handle_, NULL, spectrum_size_, 0)); EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFix(handle_, near_u16_, spectrum_size_ + 1, 0)); EXPECT_EQ(-1, WebRtc_DelayEstimatorProcessFix(handle_, near_u16_, spectrum_size_, 16)); // WebRtc_last_delay() should return -1 if we have a NULL pointer as |handle|. EXPECT_EQ(-1, WebRtc_last_delay(NULL)); // Free any local memory if needed. WebRtc_FreeDelayEstimator(handle); } TEST_F(DelayEstimatorTest, VerifyAllowedOffset) { // Is set to zero by default. EXPECT_EQ(0, WebRtc_get_allowed_offset(handle_)); for (int i = 1; i >= 0; i--) { EXPECT_EQ(0, WebRtc_set_allowed_offset(handle_, i)); EXPECT_EQ(i, WebRtc_get_allowed_offset(handle_)); Init(); // Unaffected over a reset. EXPECT_EQ(i, WebRtc_get_allowed_offset(handle_)); } } TEST_F(DelayEstimatorTest, VerifyEnableRobustValidation) { // Disabled by default. EXPECT_EQ(0, WebRtc_is_robust_validation_enabled(handle_)); for (size_t i = 0; i < kSizeEnable; ++i) { EXPECT_EQ(0, WebRtc_enable_robust_validation(handle_, kEnable[i])); EXPECT_EQ(kEnable[i], WebRtc_is_robust_validation_enabled(handle_)); Init(); // Unaffected over a reset. EXPECT_EQ(kEnable[i], WebRtc_is_robust_validation_enabled(handle_)); } } TEST_F(DelayEstimatorTest, InitializedSpectrumAfterProcess) { // In this test we verify that the mean spectra are initialized after first // time we call WebRtc_AddFarSpectrum() and Process() respectively. // For floating point operations, process one frame and verify initialization // flag. Init(); EXPECT_EQ(0, WebRtc_AddFarSpectrumFloat(farend_handle_, far_f_, spectrum_size_)); EXPECT_EQ(1, farend_self_->far_spectrum_initialized); EXPECT_EQ(-2, WebRtc_DelayEstimatorProcessFloat(handle_, near_f_, spectrum_size_)); EXPECT_EQ(1, self_->near_spectrum_initialized); // For fixed point operations, process one frame and verify initialization // flag. Init(); EXPECT_EQ(0, WebRtc_AddFarSpectrumFix(farend_handle_, far_u16_, spectrum_size_, 0)); EXPECT_EQ(1, farend_self_->far_spectrum_initialized); EXPECT_EQ(-2, WebRtc_DelayEstimatorProcessFix(handle_, near_u16_, spectrum_size_, 0)); EXPECT_EQ(1, self_->near_spectrum_initialized); } TEST_F(DelayEstimatorTest, CorrectLastDelay) { // In this test we verify that we get the correct last delay upon valid call. // We simply process the same data until we leave the initialized state // (|last_delay| = -2). Then we compare the Process() output with the // last_delay() call. // TODO(bjornv): Update quality values for robust validation. int last_delay = 0; // Floating point operations. Init(); for (int i = 0; i < 200; i++) { EXPECT_EQ(0, WebRtc_AddFarSpectrumFloat(farend_handle_, far_f_, spectrum_size_)); last_delay = WebRtc_DelayEstimatorProcessFloat(handle_, near_f_, spectrum_size_); if (last_delay != -2) { EXPECT_EQ(last_delay, WebRtc_last_delay(handle_)); if (!WebRtc_is_robust_validation_enabled(handle_)) { EXPECT_FLOAT_EQ(7203.f / kMaxBitCountsQ9, WebRtc_last_delay_quality(handle_)); } break; } } // Verify that we have left the initialized state. EXPECT_NE(-2, WebRtc_last_delay(handle_)); EXPECT_LT(0, WebRtc_last_delay_quality(handle_)); // Fixed point operations. Init(); for (int i = 0; i < 200; i++) { EXPECT_EQ(0, WebRtc_AddFarSpectrumFix(farend_handle_, far_u16_, spectrum_size_, 0)); last_delay = WebRtc_DelayEstimatorProcessFix(handle_, near_u16_, spectrum_size_, 0); if (last_delay != -2) { EXPECT_EQ(last_delay, WebRtc_last_delay(handle_)); if (!WebRtc_is_robust_validation_enabled(handle_)) { EXPECT_FLOAT_EQ(7203.f / kMaxBitCountsQ9, WebRtc_last_delay_quality(handle_)); } break; } } // Verify that we have left the initialized state. EXPECT_NE(-2, WebRtc_last_delay(handle_)); EXPECT_LT(0, WebRtc_last_delay_quality(handle_)); } TEST_F(DelayEstimatorTest, CorrectErrorReturnsOfBinaryEstimatorFarend) { // In this test we verify correct output on invalid API calls to the Binary // Delay Estimator (far-end part). BinaryDelayEstimatorFarend* binary = binary_farend_; // WebRtc_CreateBinaryDelayEstimatorFarend() should return -1 if the input // history size is less than 2. This is to make sure the buffer shifting // applies properly. // Make sure we have a non-NULL value at start, so we can detect NULL after // create failure. binary = WebRtc_CreateBinaryDelayEstimatorFarend(1); EXPECT_TRUE(binary == NULL); } TEST_F(DelayEstimatorTest, CorrectErrorReturnsOfBinaryEstimator) { // In this test we verify correct output on invalid API calls to the Binary // Delay Estimator. BinaryDelayEstimator* binary_handle = binary_; // WebRtc_CreateBinaryDelayEstimator() should return -1 if we have a NULL // pointer as |binary_farend| or invalid input values. Upon failure, the // |binary_handle| should be NULL. // Make sure we have a non-NULL value at start, so we can detect NULL after // create failure. binary_handle = WebRtc_CreateBinaryDelayEstimator(NULL, kLookahead); EXPECT_TRUE(binary_handle == NULL); binary_handle = WebRtc_CreateBinaryDelayEstimator(binary_farend_, -1); EXPECT_TRUE(binary_handle == NULL); } TEST_F(DelayEstimatorTest, MeanEstimatorFix) { // In this test we verify that we update the mean value in correct direction // only. With "direction" we mean increase or decrease. int32_t mean_value = 4000; int32_t mean_value_before = mean_value; int32_t new_mean_value = mean_value * 2; // Increasing |mean_value|. WebRtc_MeanEstimatorFix(new_mean_value, 10, &mean_value); EXPECT_LT(mean_value_before, mean_value); EXPECT_GT(new_mean_value, mean_value); // Decreasing |mean_value|. new_mean_value = mean_value / 2; mean_value_before = mean_value; WebRtc_MeanEstimatorFix(new_mean_value, 10, &mean_value); EXPECT_GT(mean_value_before, mean_value); EXPECT_LT(new_mean_value, mean_value); } TEST_F(DelayEstimatorTest, ExactDelayEstimateMultipleNearSameSpectrum) { // In this test we verify that we get the correct delay estimates if we shift // the signal accordingly. We create two Binary Delay Estimators and feed them // with the same signals, so they should output the same results. // We verify both causal and non-causal delays. // For these noise free signals, the robust validation should not have an // impact, hence we turn robust validation on/off for both reference and // delayed near end. for (size_t i = 0; i < kSizeEnable; ++i) { for (size_t j = 0; j < kSizeEnable; ++j) { RunBinarySpectraTest(0, 0, kEnable[i], kEnable[j]); } } } TEST_F(DelayEstimatorTest, ExactDelayEstimateMultipleNearDifferentSpectrum) { // In this test we use the same setup as above, but we now feed the two Binary // Delay Estimators with different signals, so they should output different // results. // For these noise free signals, the robust validation should not have an // impact, hence we turn robust validation on/off for both reference and // delayed near end. const int kNearOffset = 1; for (size_t i = 0; i < kSizeEnable; ++i) { for (size_t j = 0; j < kSizeEnable; ++j) { RunBinarySpectraTest(kNearOffset, 0, kEnable[i], kEnable[j]); } } } TEST_F(DelayEstimatorTest, ExactDelayEstimateMultipleNearDifferentLookahead) { // In this test we use the same setup as above, feeding the two Binary // Delay Estimators with the same signals. The difference is that we create // them with different lookahead. // For these noise free signals, the robust validation should not have an // impact, hence we turn robust validation on/off for both reference and // delayed near end. const int kLookaheadOffset = 1; for (size_t i = 0; i < kSizeEnable; ++i) { for (size_t j = 0; j < kSizeEnable; ++j) { RunBinarySpectraTest(0, kLookaheadOffset, kEnable[i], kEnable[j]); } } } TEST_F(DelayEstimatorTest, AllowedOffsetNoImpactWhenRobustValidationDisabled) { // The same setup as in ExactDelayEstimateMultipleNearSameSpectrum with the // difference that |allowed_offset| is set for the reference binary delay // estimator. binary_->allowed_offset = 10; RunBinarySpectraTest(0, 0, 0, 0); binary_->allowed_offset = 0; // Reset reference. } TEST_F(DelayEstimatorTest, VerifyLookaheadAtCreate) { void* farend_handle = WebRtc_CreateDelayEstimatorFarend(kSpectrumSize, kMaxDelay); ASSERT_TRUE(farend_handle != NULL); void* handle = WebRtc_CreateDelayEstimator(farend_handle, kLookahead); ASSERT_TRUE(handle != NULL); EXPECT_EQ(kLookahead, WebRtc_lookahead(handle)); WebRtc_FreeDelayEstimator(handle); WebRtc_FreeDelayEstimatorFarend(farend_handle); } // TODO(bjornv): Add tests for SoftReset...(...). } // namespace
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
d906b1f2b2ccf7d07b01769af5068c3e9c3c33a7
d99ab6e8586f76c6e6bdec1b2fba73e7d892f5e8
/list.cpp
39cbae138159616284ef115fd216afafb243ede2
[]
no_license
jindalshivam09/cppcodes
661d368c77793a0c8170397711c1eec9eeff1e27
c2913c4d3e144de7a0a60749b675e2f661d5b07b
refs/heads/master
2021-05-16T02:39:47.452998
2020-07-26T18:45:42
2020-07-26T18:45:42
23,185,118
1
0
null
null
null
null
UTF-8
C++
false
false
482
cpp
#include<iostream> #include<list> #include<string> #include<conio.h> #define MAX 10 using namespace std; struct nme{ int n; char name; nme *link; }; nme stru; main() { /*for(int i=0;i<3;i++) cin>>stru[i].n>>stru[i].name;*/ list<nme> stru; typedef list<nme>::iterator L; int j=0; for(L i=stru.begin();j<3;i++,j++) { nme &e=*i; cin>>e.n>>e.name; } j=0; for(L i=stru.begin();j<3;i++,j++) { cout<<" hi "; nme&e=*i; cout<<e.n<<" "<<e.name; } getch(); }
[ "jindalshivam09@gmail.com" ]
jindalshivam09@gmail.com
edbc9e0e4c25461146f30155cac0d780e7441d98
b05bdf464ee2f59e6c16e0138f1a64659589d3ff
/C++ Example_1/MatrixManipulations.cpp
b7e9159139282c77a69d07671d4677ca2a8167f2
[]
no_license
Sun2129/ENSF337Work
3600b64ff724a92beb19a59d35d08f82cd916bae
01b4201c8d61d6b9aa623614c71fc714b87ee9da
refs/heads/main
2023-07-14T16:50:50.361106
2021-08-25T20:26:08
2021-08-25T20:26:08
364,399,043
0
0
null
null
null
null
UTF-8
C++
false
false
3,506
cpp
// lab9ExE.cpp #include <iostream> #include <fstream> #include <iomanip> #include <stdlib.h> using namespace std; #include "matrix.h" void populate_matrix(Matrix& m, int seed); // PROMISES: populates the elements of matrix m with arbitrary double numbers. // using seed to produce different values. bool not_all_digits(const char* str); // REQUIRES: returns true if any charactres in str is not a digit void print(const Matrix& m); // PROMISES: prints the values of the matrix in tabular format. void print_with_sum(const Matrix& m); // PROMISES: prints the matrix in tabular format, plus sum of its rows and columns int main(int argc, const char * argv[]) { int row, col; if (argc < 3){ cout << "\nError: too few arguments"; exit(1); } if(not_all_digits(argv[1])){ cout << " The arguments of " << argv[0] << " must be digits."; exit(1); } if(not_all_digits(argv[2])){ cout << " The arguments of " << argv[0] << " must be digits."; exit(1); } // library function atoi converts a string of digits to integer number row = atoi(argv[1]); col = atoi(argv[2]); Matrix m1(row, col); populate_matrix(m1, 5); cout << "\n\nThe values in matrix m1 are:\n\n"; print(m1); #if 1 Matrix m2 (4, 6); populate_matrix(m2, 6); cout << "\n\nThe values in matrix m2 are: \n"; print (m2); m2.sum_of_rows(); m2.sum_of_cols(); m1 = m2; m2.at(0, 0)=5; m2.at(1, 1)=15; m2.at(2, 2)=25; cout << "\n\nThe new values in matrix m1 and sum of its rows and columns are\n"; print_with_sum(m1); m2.sum_of_rows(); m2.sum_of_cols(); Matrix m3 = m2; m2.at(0, 0)= -5; m2.at(1, 1)= -15; m2.at(2, 2)= -25; cout << "\n\nThe values in matrix m3 and sum of its rows and columns are:\n"; print_with_sum(m3); m2.sum_of_rows(); m2.sum_of_cols(); cout << "\nThe new values in matrix m2 are:\n"; print_with_sum(m2); cout << "\n\nThe values in matrix m3 and sum of it rows and columns are still the same:\n"; print_with_sum(m3); #endif return 0; } void populate_matrix(Matrix& m, int seed) { cout << fixed << setprecision(1); for(int i= 0; i < m.get_rows(); i++) for(int j=m.get_cols()-1; j>=0; j--) m.at(i, j) = (seed + (j+i+1) +(j+1))/3.0; } void print(const Matrix& m) { if(m.get_rows() == 0 && m.get_cols() == 0){ cout << "Matrix is empty." << endl; return; } for (int i=0;i< m.get_rows(); i++){ for(int j = 0; j < m.get_cols(); j++) cout << " " << setw(5) << m.at(i, j); cout << endl; } } void print_with_sum(const Matrix& m) { if(m.get_rows() == 0 && m.get_cols() == 0){ cout << endl << "Your matrix is empty." << endl; return; } for (int i=0;i< m.get_rows(); i++){ for(int j = 0; j < m.get_cols(); j++) cout << " " << setw(5) << m.at(i, j); cout << " |" << setw(5) << m.get_sum_row(i) << endl; } cout << setw(5) << ' '; for(int j =0; j < m.get_cols(); j++) cout<< "------" ; cout << endl; for(int j =0; j < m.get_cols(); j++) cout<< " " << setw(5) << m.get_sum_col(j) ; cout << endl; } bool not_all_digits(const char* str){ for(int i=0; str[i] != '\0'; i++) if(!isdigit(str[i])) return true; return false; }
[ "noreply@github.com" ]
noreply@github.com
4cf624a8b43859ac2b3fdd6dfe62d21064572107
f511ae0179e44722381fc77022e08736b41e9014
/tasks/LineLaser.hpp
ee2f57b7c8e1695da6a751e02e23eaae1aaba669
[]
no_license
abeldavid/avalon_simulation
545cc2bc5eba892a4f20a6695800755557c793d5
80bc4a4fce5d495ef41d31363b1d2510614dffc5
refs/heads/master
2020-03-25T17:21:58.865804
2015-06-02T15:14:54
2015-06-02T15:14:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,079
hpp
/* Generated from orogen/lib/orogen/templates/tasks/LineLaser.hpp */ #ifndef AVALON_SIMULATION_LINELASER_TASK_HPP #define AVALON_SIMULATION_LINELASER_TASK_HPP #include "avalon_simulation/LineLaserBase.hpp" class AvalonPlugin; class OPlugin; namespace avalon_simulation { class LineLaser : public LineLaserBase { friend class LineLaserBase; protected: void update(double time ); public: LineLaser(std::string const& name = "avalon_simulation::LineLaser"); LineLaser(std::string const& name, RTT::ExecutionEngine* engine); ~LineLaser(); /** This hook is called by Orocos when the state machine transitions * from PreOperational to Stopped. If it returns false, then the * component will stay in PreOperational. Otherwise, it goes into * Stopped. * * It is meaningful only if the #needs_configuration has been specified * in the task context definition with (for example): * * task_context "LineLaserName" do * needs_configuration * ... * end */ bool configureHook(); /** This hook is called by Orocos when the state machine transitions * from Stopped to Running. If it returns false, then the component will * stay in Stopped. Otherwise, it goes into Running and updateHook() * will be called. */ bool startHook(); /** This hook is called by Orocos when the component is in the Running * state, at each activity step. Here, the activity gives the "ticks" * when the hook should be called. * * The error(), exception() and fatal() calls, when called in this hook, * allow to get into the associated RunTimeError, Exception and * FatalError states. * * In the first case, updateHook() is still called, and recover() allows * you to go back into the Running state. In the second case, the * errorHook() will be called instead of updateHook(). In Exception, the * component is stopped and recover() needs to be called before starting * it again. Finally, FatalError cannot be recovered. */ void updateHook(); /** This hook is called by Orocos when the component is in the * RunTimeError state, at each activity step. See the discussion in * updateHook() about triggering options. * * Call recovered() to go back in the Runtime state. */ // void errorHook(); /** This hook is called by Orocos when the state machine transitions * from Running to Stopped after stop() has been called. */ // void stopHook(); /** This hook is called by Orocos when the state machine transitions * from Stopped to PreOperational, requiring the call to configureHook() * before calling start() again. */ // void cleanupHook(); private: int auv_id; }; } #endif
[ "fzachert@tzi.de" ]
fzachert@tzi.de
50c9d3f347b68a2dcbf46cd840b9d2f6a07d7d4c
24f34574799d00cf8d749c5cd493dcd91224b8c3
/ProyectoTFG/src/Main/VulkanModel.cpp
bf1471fb3d9cb2d774353e87d05a691911788d97
[]
no_license
DiegoBV/Generacion-de-terrenos-fractales-para-escenas-3D-en-OpenGL-y-Vulkan
11288a80afa6a629247a7b69b10f3bdef7874689
261479a8b4cb87ba0e1be1b02f38d3b554fe40cf
refs/heads/master
2023-03-07T18:28:01.324469
2021-02-14T20:58:09
2021-02-14T20:58:09
208,624,555
1
1
null
null
null
null
UTF-8
C++
false
false
1,231
cpp
#if defined(VULKAN_DEBUG) || defined(VULKAN_RELEASE) #include "VulkanModel.h" #define TINYOBJLOADER_IMPLEMENTATION #include <tiny_obj_loader.h> #include <stdexcept> #include <unordered_map> #define GLM_ENABLE_EXPERIMENTAL #include <gtx/hash.hpp> #include "VulkanManager.h" VulkanModel::VulkanModel(string const& path, bool gamma) { loadModel(path); } void VulkanModel::Draw(RenderShader* shader) { } void VulkanModel::loadModel(string const& path) { tinyobj::attrib_t attrib; std::vector<tinyobj::shape_t> shapes; std::vector<tinyobj::material_t> materials; std::string warn, err; if (!tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, path.c_str())) { throw std::runtime_error(warn + err); } for (const auto& shape : shapes) { for (const auto& index : shape.mesh.indices) { Vertex vertex = {}; vertex.pos = { attrib.vertices[3 * index.vertex_index + 0], attrib.vertices[3 * index.vertex_index + 1], attrib.vertices[3 * index.vertex_index + 2] }; vertex.texCoord = { attrib.texcoords[2 * index.texcoord_index + 0], attrib.texcoords[2 * index.texcoord_index + 1] }; modelVertices.push_back(vertex); modelIndices.push_back(modelIndices.size()); } } } #endif
[ "gonzsa04@ucm.es" ]
gonzsa04@ucm.es
25919e29ffd7add89465eeccac0c3e974b49c8a7
16beacc9072f85de11c6ce6ac01bf377a389b55b
/Tarde/potencia.cpp
47e0ce56493d4321465705f31b8fef256acfbfa2
[]
no_license
gtrias/c-exercicis
4c291a4a3d77c749798a39ae7535bf5999d87fd5
b238cf48f97a9d2b1595f2399a35f79eae864a1f
refs/heads/master
2021-01-10T21:32:23.141359
2015-07-22T19:12:31
2015-07-22T19:12:31
39,524,900
0
0
null
null
null
null
UTF-8
C++
false
false
598
cpp
#include <iostream.h> main (){ int contador; float b, n, resultado; cout << "Introduzca la base: "; cin >> b; cout << "\nIntroduzca el exponente: "; cin >> n; resultado = b; if (b == 0){ resultado = 0; } if (n == 0){ resultado = 1; } if (n < 0){ n = -n; for (contador=1; contador < n; contador++){ resultado = resultado * b; } resultado = 1/resultado; }else{ for (contador=1; contador < n; contador++){ resultado = resultado * b; } } cout << "\nEl restultado es: " << resultado; cin >> b; }
[ "genar@acs.li" ]
genar@acs.li
04fd91bbf580095d1a5c38654ec632a9b7f5cbef
a5d616b6ec1d917a80b98cd388569ba54608431a
/include/triplet_graph/NearestNeighborPC.h
374d69f22c045e8f87441728b8a3c7767b8cd985
[]
no_license
rokusottervanger/triplet_graph
f72ba5e3ef4417dd632e737c903df367eb55e8a8
44b9ac087e611fbde6fd65136516da2bb4c119b5
refs/heads/master
2021-01-17T13:22:09.413173
2016-11-30T08:48:01
2016-11-30T08:48:01
42,044,544
4
1
null
null
null
null
UTF-8
C++
false
false
757
h
#ifndef TRIPLET_GRAPH_NEAREST_NEIGHBOR_PC_H_ #define TRIPLET_GRAPH_NEAREST_NEIGHBOR_PC_H_ #include "ProbabilityCalculator.h" namespace triplet_graph { class NearestNeighborPC : public ProbabilityCalculator { public: double calculateProbability(const Graph& graph, const geo::Vec3d& cur_measurement_pt, const double cur_measurement_std_dev, const OdomModel& odom_model, const AssociatedMeasurement& graph_positions, const int node_index, const AssociatedMeasurement& input_associations, const Path &path) const; }; } #endif
[ "rokusottervanger@gmail.com" ]
rokusottervanger@gmail.com
da2d67d0262cf0db63064f5de1acda36ff1f0791
68adff752592bcf6134b62f6f6cdf7988059197c
/src/key.h
e46c5bd27bff157ed8c38d09546ba634ab9763f7
[]
no_license
EyelessJack71/privcy
059c42b55ade56495df9f4090ce7f3a7abae511c
59e4010d77ea5332de9301cb19f3e8a40bb52835
refs/heads/master
2020-03-30T02:14:02.190844
2018-09-14T12:58:07
2018-09-14T12:58:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,252
h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin Developers // Copyright (c) 2018 The PRiVCY Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_KEY_H #define BITCOIN_KEY_H #include <stdexcept> #include <vector> #include "allocators.h" #include "serialize.h" #include "uint256.h" #include "util.h" #include <openssl/ec.h> // for EC_KEY definition // secp160k1 // const unsigned int PRIVATE_KEY_SIZE = 192; // const unsigned int PUBLIC_KEY_SIZE = 41; // const unsigned int SIGNATURE_SIZE = 48; // // secp192k1 // const unsigned int PRIVATE_KEY_SIZE = 222; // const unsigned int PUBLIC_KEY_SIZE = 49; // const unsigned int SIGNATURE_SIZE = 57; // // secp224k1 // const unsigned int PRIVATE_KEY_SIZE = 250; // const unsigned int PUBLIC_KEY_SIZE = 57; // const unsigned int SIGNATURE_SIZE = 66; // // secp256k1: // const unsigned int PRIVATE_KEY_SIZE = 279; // const unsigned int PUBLIC_KEY_SIZE = 65; // const unsigned int SIGNATURE_SIZE = 72; // // see www.keylength.com // script supports up to 75 for single byte push class key_error : public std::runtime_error { public: explicit key_error(const std::string& str) : std::runtime_error(str) {} }; /** A reference to a CKey: the Hash160 of its serialized public key */ class CKeyID : public uint160 { public: CKeyID() : uint160(0) { } CKeyID(const uint160 &in) : uint160(in) { } }; /** A reference to a CScript: the Hash160 of its serialization (see script.h) */ class CScriptID : public uint160 { public: CScriptID() : uint160(0) { } CScriptID(const uint160 &in) : uint160(in) { } }; /** An encapsulated public key. */ class CPubKey { private: std::vector<unsigned char> vchPubKey; friend class CKey; public: CPubKey() { } CPubKey(const std::vector<unsigned char> &vchPubKeyIn) : vchPubKey(vchPubKeyIn) { } friend bool operator==(const CPubKey &a, const CPubKey &b) { return a.vchPubKey == b.vchPubKey; } friend bool operator!=(const CPubKey &a, const CPubKey &b) { return a.vchPubKey != b.vchPubKey; } friend bool operator<(const CPubKey &a, const CPubKey &b) { return a.vchPubKey < b.vchPubKey; } IMPLEMENT_SERIALIZE( READWRITE(vchPubKey); ) CKeyID GetID() const { return CKeyID(Hash160(vchPubKey)); } uint256 GetHash() const { return Hash(vchPubKey.begin(), vchPubKey.end()); } bool IsValid() const { return vchPubKey.size() == 33 || vchPubKey.size() == 65; } bool IsCompressed() const { return vchPubKey.size() == 33; } std::vector<unsigned char> Raw() const { return vchPubKey; } }; // secure_allocator is defined in allocators.h // CPrivKey is a serialized private key, with all parameters included (279 bytes) typedef std::vector<unsigned char, secure_allocator<unsigned char> > CPrivKey; // CSecret is a serialization of just the secret parameter (32 bytes) typedef std::vector<unsigned char, secure_allocator<unsigned char> > CSecret; /** An encapsulated OpenSSL Elliptic Curve key (public and/or private) */ class CKey { protected: EC_KEY* pkey; bool fSet; bool fCompressedPubKey; // void SetCompressedPubKey(); public: void SetCompressedPubKey(); void SetUnCompressedPubKey(); EC_KEY* GetECKey(); void Reset(); CKey(); CKey(const CKey& b); CKey& operator=(const CKey& b); ~CKey(); bool IsNull() const; bool IsCompressed() const; void MakeNewKey(bool fCompressed); bool SetPrivKey(const CPrivKey& vchPrivKey); bool SetSecret(const CSecret& vchSecret, bool fCompressed = false); CSecret GetSecret(bool &fCompressed) const; CPrivKey GetPrivKey() const; bool SetPubKey(const CPubKey& vchPubKey); CPubKey GetPubKey() const; bool Sign(uint256 hash, std::vector<unsigned char>& vchSig); // create a compact signature (65 bytes), which allows reconstructing the used public key // The format is one header byte, followed by two times 32 bytes for the serialized r and s values. // The header byte: 0x1B = first key with even y, 0x1C = first key with odd y, // 0x1D = second key with even y, 0x1E = second key with odd y bool SignCompact(uint256 hash, std::vector<unsigned char>& vchSig); // reconstruct public key from a compact signature // This is only slightly more CPU intensive than just verifying it. // If this function succeeds, the recovered public key is guaranteed to be valid // (the signature is a valid signature of the given data for that key) bool SetCompactSignature(uint256 hash, const std::vector<unsigned char>& vchSig); bool Verify(uint256 hash, const std::vector<unsigned char>& vchSig); // Verify a compact signature bool VerifyCompact(uint256 hash, const std::vector<unsigned char>& vchSig); bool IsValid(); // Check whether an element of a signature (r or s) is valid. static bool CheckSignatureElement(const unsigned char *vch, int len, bool half); }; /** Check that required EC support is available at runtime */ bool ECC_InitSanityCheck(void); #endif
[ "privcoin@protonmail.com" ]
privcoin@protonmail.com
a450c664faeca94c22e325604efde039f934bcec
69ee3ce91d9a4fba1b583b739b5d4101dc394647
/lab3.cpp
cca77e875548cee058c458416bb09362edcb66ee
[]
no_license
AndyChen1204/Cplusplus_Lab
2b1ad0e3a930464dac622767fb8147afbc5552c3
c0b2ae8cb45c3677e3041a8602d7120dad767258
refs/heads/master
2021-01-19T06:25:29.949307
2015-09-14T15:03:22
2015-09-14T15:03:22
42,383,987
0
0
null
null
null
null
UTF-8
C++
false
false
945
cpp
#include<iostream> #include<cstdlib> #include<cmath> #include<cassert> using namespace std; void CalcArea( double, double, double* ); void CalcArea( double, double, double, double* ); int main( int argc, const char* argv[] ) { cout << "Please enter three lengrh" << endl; double side_a, side_b, side_c; cin >> side_a >> side_b >> side_c; assert( side_a > 0 || side_b > 0 || side_c > 0); double recArea; CalcArea( side_a, side_b, &recArea); cout << "The area of the rectangle is " << recArea << endl; double triArea; CalcArea( side_a, side_b, side_c, &triArea ); cout << "The area of the triangle is " << triArea << endl; } void CalcArea( double side_a, double side_b, double* area ) { *area = side_a * side_b; } void CalcArea( double side_a, double side_b, double side_c, double* area ) { double s = ( side_a + side_b + side_c ) / 2; *area = sqrt( s * ( s - side_a ) * ( s - side_b ) * ( s - side_c ) ); }
[ "andy821204@gmail.com" ]
andy821204@gmail.com
fea48b5bd8d4fc3182ace926594b6933d20b47c0
ad8271700e52ec93bc62a6fa3ee52ef080e320f2
/CatalystRichPresence/CatalystSDK/PamUIEchoCustomizationDataProviderEntity.h
cdbaf4b56d2ff04ef62a86c07f982faec638b86e
[]
no_license
RubberDuckShobe/CatalystRPC
6b0cd4482d514a8be3b992b55ec143273b3ada7b
92d0e2723e600d03c33f9f027c3980d0f087c6bf
refs/heads/master
2022-07-29T20:50:50.640653
2021-03-25T06:21:35
2021-03-25T06:21:35
351,097,185
2
0
null
null
null
null
UTF-8
C++
false
false
606
h
// // Generated with FrostbiteGen by Chod // File: SDK\PamUIEchoCustomizationDataProviderEntity.h // Created: Wed Mar 10 19:03:37 2021 // #ifndef FBGEN_PamUIEchoCustomizationDataProviderEntity_H #define FBGEN_PamUIEchoCustomizationDataProviderEntity_H #include "PamClientUIListWidgetDataProviderEntity.h" class PamUIEchoCustomizationDataProviderEntity : public PamClientUIListWidgetDataProviderEntity // size = 0x30 { public: static void* GetTypeInfo() { return (void*)0x00000001428917E0; } unsigned char _0x30[0x38]; }; // size = 0x68 #endif // FBGEN_PamUIEchoCustomizationDataProviderEntity_H
[ "dog@dog.dog" ]
dog@dog.dog
f39ad7405a603f8b541cf4928f5f050096205cad
cddf00bb532aa52b006037823fde9739fc58ee4c
/3_heterogeneousResAbsorb/compReffXSg.cpp
25b04520c84a0cabe3165b6217fc32d096270384
[]
no_license
ameliajo/reactorPhysics
436e574bc8d71acf7fbe70ffb5b1c572809012da
89fcb93031af09a12c335c87aedb0a69249e6274
refs/heads/master
2021-01-24T10:05:38.378727
2020-02-26T17:43:40
2020-02-26T17:43:40
123,035,954
1
0
null
null
null
null
UTF-8
C++
false
false
6,843
cpp
#include <iostream> #include <vector> #include <fstream> #include <math.h> // This uses the SLBW model that I made in #1, and computes the numerical // resonance integrals and group cross sections for // // T (K) | 6-10 eV | 10-25 eV | 25-50 eV // ----------------------------------------------------------------------- // 300 | RI XS | RI XS | RI XS // 1000 | RI XS | RI XS | RI XS // ----------------------------------------------------------------------- auto narrowResonanceFlux( double sigmaTotU238, double sigmaDilution ){ double sigmaPotU238 = 11.2934; return ( sigmaPotU238 + sigmaDilution ) / ( sigmaTotU238 + sigmaDilution ); } auto wideResonanceFlux( double sigmaAbsU238, double sigmaDilution ){ return ( sigmaDilution ) / ( sigmaAbsU238 + sigmaDilution ); } auto intermediateResonanceFlux( double sigmaAbsU238, double sigmaDilution ){ double lambda = 0.5; double sigmaPotU238 = 11.2934; return ( lambda * sigmaPotU238 + sigmaDilution ) / ( sigmaAbsU238 + lambda * sigmaPotU238 + sigmaDilution ); } auto calcResIntegralXS(){ bool infiniteDilution = true; bool narrowResonance = false; bool wideResonance = false; int vecSize = 5000; std::vector<double> energy(vecSize), capture300(vecSize), capture1000(vecSize), total300(vecSize), total1000(vecSize); std::ifstream in("capture.txt"); int i = 0; while(!in.eof()){ in >> energy[i]; in >> capture300[i]; in >> capture1000[i]; in >> total300[i]; in >> total1000[i]; ++i; } std::vector<double> numerator_300 { 0, 0, 0 }, numerator_1000 { 0, 0, 0 }; std::vector<double> denominator_300 { 0, 0, 0 }, denominator_1000 { 0, 0, 0 }; double eLeft, eRight, sigmaAbsU238_300, sigmaAbsU238_1000, numeratorPiece300, numeratorPiece1000,denominatorPiece300,denominatorPiece1000, sigmaTotU238_300, sigmaTotU238_1000, sigmaDilution; sigmaDilution = 20; for ( int i = 1; i < vecSize; ++i ){ if ( infiniteDilution ){ // THIS IS FOR INFINITE DILUTION // now we're going to integrate from eLeft --> eRight eLeft = energy[i-1], eRight = energy[i], sigmaAbsU238_300 = ( capture300[i-1] + capture300[i] ) / 2.0, sigmaAbsU238_1000 = ( capture1000[i-1] + capture1000[i] ) / 2.0, numeratorPiece300 = sigmaAbsU238_300 * log( eRight / eLeft ), numeratorPiece1000 = sigmaAbsU238_1000 * log( eRight / eLeft ), denominatorPiece300 = log( eRight / eLeft ), denominatorPiece1000 = log( eRight / eLeft ); } else if ( narrowResonance ){ // THIS IS FOR NARROW RESONANCE APPROXIMATION // now we're going to integrate from eLeft --> eRight eLeft = energy[i-1], eRight = energy[i], sigmaTotU238_300 = ( total300[i-1] + total300[i] ) / 2.0, sigmaTotU238_1000 = ( total1000[i-1] + total1000[i] ) / 2.0, sigmaAbsU238_300 = ( capture300[i-1] + capture300[i] ) / 2.0, sigmaAbsU238_1000 = ( capture1000[i-1] + capture1000[i] ) / 2.0; double flux300 = narrowResonanceFlux( sigmaTotU238_300, sigmaDilution ); double flux1000 = narrowResonanceFlux( sigmaTotU238_1000, sigmaDilution ); numeratorPiece300 = flux300 * sigmaAbsU238_300 * log( eRight / eLeft ), numeratorPiece1000 = flux1000 * sigmaAbsU238_1000 * log( eRight / eLeft ), denominatorPiece300 = flux300 * log( eRight / eLeft ), denominatorPiece1000 = flux1000 * log( eRight / eLeft ); } else if ( wideResonance ){ // THIS IS FOR WIDE RESONANCE APPROXIMATION // now we're going to integrate from eLeft --> eRight eLeft = energy[i-1], eRight = energy[i], sigmaTotU238_300 = ( total300[i-1] + total300[i] ) / 2.0, sigmaTotU238_1000 = ( total1000[i-1] + total1000[i] ) / 2.0, sigmaAbsU238_300 = ( capture300[i-1] + capture300[i] ) / 2.0, sigmaAbsU238_1000 = ( capture1000[i-1] + capture1000[i] ) / 2.0; double flux300 = wideResonanceFlux( sigmaAbsU238_300, sigmaDilution ); double flux1000 = wideResonanceFlux( sigmaAbsU238_1000, sigmaDilution ); numeratorPiece300 = flux300 * sigmaAbsU238_300 * log( eRight / eLeft ), numeratorPiece1000 = flux1000 * sigmaAbsU238_1000 * log( eRight / eLeft ), denominatorPiece300 = flux300 * log( eRight / eLeft ), denominatorPiece1000 = flux1000 * log( eRight / eLeft ); } else { // THIS IS FOR INTERMEDIATE RESONANCE APPROXIMATION // now we're going to integrate from eLeft --> eRight eLeft = energy[i-1], eRight = energy[i], sigmaTotU238_300 = ( total300[i-1] + total300[i] ) / 2.0, sigmaTotU238_1000 = ( total1000[i-1] + total1000[i] ) / 2.0, sigmaAbsU238_300 = ( capture300[i-1] + capture300[i] ) / 2.0, sigmaAbsU238_1000 = ( capture1000[i-1] + capture1000[i] ) / 2.0; double flux300 = intermediateResonanceFlux( sigmaAbsU238_300, sigmaDilution ); double flux1000 = intermediateResonanceFlux( sigmaAbsU238_1000, sigmaDilution ); numeratorPiece300 = flux300 * sigmaAbsU238_300 * log( eRight / eLeft ), numeratorPiece1000 = flux1000 * sigmaAbsU238_1000 * log( eRight / eLeft ), denominatorPiece300 = flux300 * log( eRight / eLeft ), denominatorPiece1000 = flux1000 * log( eRight / eLeft ); } int index; if ( eLeft <= 10 ){ index = 0; } else if ( eLeft <= 25 ){ index = 1; } else { index = 2; } numerator_300[index] += numeratorPiece300; numerator_1000[index] += numeratorPiece1000; denominator_300[index] += denominatorPiece300; denominator_1000[index] += denominatorPiece1000; } std::cout << "--------- 6-10 at 300 " << numerator_300[0] << " " << 1.0/ ( denominator_300[0] / numerator_300[0] ) << std::endl; std::cout << "--------- 10-25 at 300 " << numerator_300[1] << " " << 1.0/ (denominator_300[1] / numerator_300[1] ) << std::endl; std::cout << "--------- 25-50 at 300 " << numerator_300[2] << " " << 1.0/ (denominator_300[2] / numerator_300[2] ) << std::endl; std::cout << std::endl; std::cout << std::endl; std::cout << "--------- 6-10 at 1000 " << numerator_1000[0] << " " << 1.0/ ( denominator_1000[0] / numerator_1000[0] ) << std::endl; std::cout << "--------- 10-25 at 1000 " << numerator_1000[1] << " " << 1.0/ (denominator_1000[1] / numerator_1000[1] ) << std::endl; std::cout << "--------- 25-50 at 1000 " << numerator_1000[2] << " " << 1.0/ (denominator_1000[2] / numerator_1000[2] ) << std::endl; std::cout << std::endl; } int main() { calcResIntegralXS(); return 0; }
[ "ameliajo@mit.edu" ]
ameliajo@mit.edu
0cca8acf54217afa3c307a63c757c16d1ad91c51
d2006e6957e94e45c7ac94ce367db9fe7d505eeb
/Tree/construct_binary_tree_from_inorder_and_postorder_traversal.cpp
3df3544c96c70701dcc1f442affe6d387dfe65f3
[]
no_license
JoaoDanielRufino/Algorithms
f4b81ea1518b7cf3404f2f93ecaa9cf4d1a6f51a
34928bbcb24c8f28beb174005318243d2c201513
refs/heads/master
2023-07-09T02:23:44.996374
2023-07-05T01:05:06
2023-07-05T01:05:06
102,634,890
6
1
null
null
null
null
UTF-8
C++
false
false
1,050
cpp
// https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/description/ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: unordered_map<int,int> mp; TreeNode* solve(vector<int>& postorder, int l, int r, int& index) { if(l > r || index < 0) return nullptr; TreeNode *node = new TreeNode(postorder[index--]); int pos = mp[node->val]; node->right = solve(postorder, pos + 1, r, index); node->left = solve(postorder, l, pos - 1, index); return node; } TreeNode* buildTree(vector<int>& inorder, vector<int>& postorder) { for(int i = 0; i < inorder.size(); i++) mp[inorder[i]] = i; int index = postorder.size()-1; return solve(postorder, 0, inorder.size()-1, index); } };
[ "noreply@github.com" ]
noreply@github.com
44f9ae62b0c00448dac48cbd3952cd90017e95e4
4509f3721d6ebea8fd7f4cb23450d2fe56060c77
/src/engine/graphics/include/MaterialInstance.h
8a02021d26da2274ef51da3df582e03b1336d2c2
[]
no_license
Kadowns/RIFE-Engine
54fa0199a4ba6856f3d925cbcf035f60eb53a75f
975373ef1e4104edbfcf5fddc5a065dd9e5b05a7
refs/heads/master
2020-03-28T02:50:08.366865
2019-05-24T15:55:00
2019-05-24T15:55:00
147,600,758
1
0
null
null
null
null
UTF-8
C++
false
false
887
h
#pragma once #include <Material.h> #include <UniformBufferObject.h> namespace Rife::Graphics { class MaterialInstance : public Base::Object{ public: MaterialInstance() { m_name = "MaterialInstance"; } MaterialInstance(Material* baseMaterial, Ubo::MaterialProperties properties); Material* getBaseMaterial() { return p_baseMaterial; } size_t getTexturesSize() { return p_baseMaterial->getTexturesSize(); } std::vector<Texture*>& getTextures() { return p_baseMaterial->getTextures(); } Shader* getShader() { return p_baseMaterial->getShader(); } Ubo::MaterialProperties& getProperties() { return m_properties; } void serialize(std::ofstream& file) { file << (m_name + "\n").c_str(); } private: Material* p_baseMaterial; Ubo::MaterialProperties m_properties; }; }
[ "ricardonovak@yahoo.com.br" ]
ricardonovak@yahoo.com.br
8db756e9b50eb00ec517d515efb7007522c1c73f
112021b2aab61cd24847b72aeb856e887c028d25
/Assignments/Solutions/Samya Jain/Assignment 9/3Sorting.cpp
362c877a509997c649b2fef489d609503d17ae01
[]
no_license
amanraj-iit/DSA_Uplift_Project
0ad8b82da3ebfe7ebd6ab245e3c9fa0179bfbef1
11cf887fdbad4b98b0dfe317f625eedd15460c57
refs/heads/master
2023-07-28T06:37:36.313839
2021-09-15T11:29:34
2021-09-15T11:29:34
406,765,764
10
0
null
null
null
null
UTF-8
C++
false
false
277
cpp
//https://leetcode.com/problems/shuffle-string/ class Solution { public: string restoreString(string s, vector<int>& indices) { string str = s; for (int i = 0; i < s.size(); i++) { str[indices[i]] = s[i]; } return str; } };
[ "samyajain02@gmail.com" ]
samyajain02@gmail.com
0b560fdb48815e919988a5894ba0a7caf82c8fc8
eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86
/Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day2程序包/answers/GD-0629/game/game.cpp
264101766631999af59c9bb33f5506a5f7fd8240
[]
no_license
Orion545/OI-Record
0071ecde8f766c6db1f67b9c2adf07d98fd4634f
fa7d3a36c4a184fde889123d0a66d896232ef14c
refs/heads/master
2022-01-13T19:39:22.590840
2019-05-26T07:50:17
2019-05-26T07:50:17
188,645,194
4
2
null
null
null
null
UTF-8
C++
false
false
1,473
cpp
#include <iostream> #include <fstream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; const int mod=1e9+7; const int mx=1e6+10; int n,m; int f[2][(1<<9)][(1<<9)]; void _out(int x) { for(int i=n-1;i>=0;i--) cerr<<((x>>i)&1); } void solve1() { int full=(1<<n)-1; for(int i=0;i<=full;i++) f[0][i][0]=1; for(int i=1;i<m;i++) { for(int k=0;k<=full;k++) for(int j=0;j<=full;j++) for(int l=0;l<=full;l++) { int st=(l|(((k>>1)^j^full)))&((full>>1)); if(l&((j<<1)&(k^full))) continue; if(((k>>1)&j)==(k>>1)) { (f[i&1][k][st]+=f[(i&1)^1][j][l])%=mod; } } } int ans=0; for(int i=0;i<=full;i++) for(int j=0;j<=full;j++) (ans+=f[(m-1)&1][i][j])%=mod; printf("%d\n",ans); } int a[10][10]; int ans=0; bool check() { for(int i=0;i<n-1;i++) for(int j=0;j<m-1;j++) if(a[i][j+1]^a[i+1][j]) return 0; // if(a[i][j+1]==1 && a[i+1][j]==0) return 0; // else if(!a[i][j+1]^a[i+1][j]) return 0; return 1; } void dfs(int k) { if(k==n*m) { if(check()) { ans++; for(int i=0;i<n;i++,cerr<<endl) for(int j=0;j<m;j++) cerr<<a[i][j]; cerr<<ans<<endl; cerr<<endl; } return ; } a[k/m][k%m]=1; dfs(k+1); a[k/m][k%m]=0; dfs(k+1); } void solve0() { dfs(0); exit(0); } int main() { freopen("game.in","r",stdin); freopen("game.out","w",stdout); scanf("%d%d",&n,&m); if(n==3 && m==3) return printf("112\n",0),0; // solve0(); solve1(); return 0; }
[ "orion545@qq.com" ]
orion545@qq.com
297be386b83c7fd9fd8b7c10ee2690aa904e7e55
9be3d865e4d3f141f6b03fd5daaf09adaed03038
/src/app/common/gen/ids/Commands.h
c5a63d4ff9bd69d875dee57e1b1263e57ab5bd46
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
winnieli1129/connectedhomeip
17ffc14d3bb4b94da35cad7b074a46e430f4888d
5cb5d880e2be1427798c767aaf8c67f696046df8
refs/heads/master
2023-06-30T23:16:50.506830
2021-07-23T09:57:05
2021-07-23T09:57:05
388,645,941
0
0
Apache-2.0
2021-07-23T09:57:06
2021-07-23T01:37:25
null
UTF-8
C++
false
false
32,633
h
/* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // THIS FILE IS GENERATED BY ZAP #pragma once #include <app/util/basic-types.h> namespace chip { namespace app { namespace Clusters { namespace Globals { namespace Commands { namespace Ids { static constexpr CommandId ReadAttributes = 0x00000000; static constexpr CommandId ReadAttributesResponse = 0x00000001; static constexpr CommandId WriteAttributes = 0x00000002; static constexpr CommandId WriteAttributesUndivided = 0x00000003; static constexpr CommandId WriteAttributesResponse = 0x00000004; static constexpr CommandId WriteAttributesNoResponse = 0x00000005; static constexpr CommandId ConfigureReporting = 0x00000006; static constexpr CommandId ConfigureReportingResponse = 0x00000007; static constexpr CommandId ReadReportingConfiguration = 0x00000008; static constexpr CommandId ReadReportingConfigurationResponse = 0x00000009; static constexpr CommandId ReportAttributes = 0x0000000A; static constexpr CommandId DefaultResponse = 0x0000000B; static constexpr CommandId DiscoverAttributes = 0x0000000C; static constexpr CommandId DiscoverAttributesResponse = 0x0000000D; static constexpr CommandId ReadAttributesStructured = 0x0000000E; static constexpr CommandId WriteAttributesStructured = 0x0000000F; static constexpr CommandId WriteAttributesStructuredResponse = 0x00000010; static constexpr CommandId DiscoverCommandsReceived = 0x00000011; static constexpr CommandId DiscoverCommandsReceivedResponse = 0x00000012; static constexpr CommandId DiscoverCommandsGenerated = 0x00000013; static constexpr CommandId DiscoverCommandsGeneratedResponse = 0x00000014; static constexpr CommandId DiscoverAttributesExtended = 0x00000015; static constexpr CommandId DiscoverAttributesExtendedResponse = 0x00000016; } // namespace Ids } // namespace Commands } // namespace Globals namespace Identify { namespace Commands { namespace Ids { static constexpr CommandId Identify = 0x00000000; static constexpr CommandId IdentifyQueryResponse = 0x00000000; static constexpr CommandId IdentifyQuery = 0x00000001; static constexpr CommandId EZModeInvoke = 0x00000002; static constexpr CommandId UpdateCommissionState = 0x00000003; static constexpr CommandId TriggerEffect = 0x00000040; } // namespace Ids } // namespace Commands } // namespace Identify namespace Groups { namespace Commands { namespace Ids { static constexpr CommandId AddGroup = 0x00000000; static constexpr CommandId AddGroupResponse = 0x00000000; static constexpr CommandId ViewGroup = 0x00000001; static constexpr CommandId ViewGroupResponse = 0x00000001; static constexpr CommandId GetGroupMembership = 0x00000002; static constexpr CommandId GetGroupMembershipResponse = 0x00000002; static constexpr CommandId RemoveGroup = 0x00000003; static constexpr CommandId RemoveGroupResponse = 0x00000003; static constexpr CommandId RemoveAllGroups = 0x00000004; static constexpr CommandId AddGroupIfIdentifying = 0x00000005; } // namespace Ids } // namespace Commands } // namespace Groups namespace Scenes { namespace Commands { namespace Ids { static constexpr CommandId AddScene = 0x00000000; static constexpr CommandId AddSceneResponse = 0x00000000; static constexpr CommandId ViewScene = 0x00000001; static constexpr CommandId ViewSceneResponse = 0x00000001; static constexpr CommandId RemoveScene = 0x00000002; static constexpr CommandId RemoveSceneResponse = 0x00000002; static constexpr CommandId RemoveAllScenes = 0x00000003; static constexpr CommandId RemoveAllScenesResponse = 0x00000003; static constexpr CommandId StoreScene = 0x00000004; static constexpr CommandId StoreSceneResponse = 0x00000004; static constexpr CommandId RecallScene = 0x00000005; static constexpr CommandId GetSceneMembership = 0x00000006; static constexpr CommandId GetSceneMembershipResponse = 0x00000006; static constexpr CommandId EnhancedAddScene = 0x00000040; static constexpr CommandId EnhancedAddSceneResponse = 0x00000040; static constexpr CommandId EnhancedViewScene = 0x00000041; static constexpr CommandId EnhancedViewSceneResponse = 0x00000041; static constexpr CommandId CopyScene = 0x00000042; static constexpr CommandId CopySceneResponse = 0x00000042; } // namespace Ids } // namespace Commands } // namespace Scenes namespace OnOff { namespace Commands { namespace Ids { static constexpr CommandId Off = 0x00000000; static constexpr CommandId SampleMfgSpecificOffWithTransition = 0x10020000; static constexpr CommandId On = 0x00000001; static constexpr CommandId SampleMfgSpecificOnWithTransition = 0x10020001; static constexpr CommandId SampleMfgSpecificOnWithTransition2 = 0x10490001; static constexpr CommandId Toggle = 0x00000002; static constexpr CommandId SampleMfgSpecificToggleWithTransition = 0x10020002; static constexpr CommandId SampleMfgSpecificToggleWithTransition2 = 0x10490002; static constexpr CommandId OffWithEffect = 0x00000040; static constexpr CommandId OnWithRecallGlobalScene = 0x00000041; static constexpr CommandId OnWithTimedOff = 0x00000042; } // namespace Ids } // namespace Commands } // namespace OnOff namespace LevelControl { namespace Commands { namespace Ids { static constexpr CommandId MoveToLevel = 0x00000000; static constexpr CommandId Move = 0x00000001; static constexpr CommandId Step = 0x00000002; static constexpr CommandId Stop = 0x00000003; static constexpr CommandId MoveToLevelWithOnOff = 0x00000004; static constexpr CommandId MoveWithOnOff = 0x00000005; static constexpr CommandId StepWithOnOff = 0x00000006; static constexpr CommandId StopWithOnOff = 0x00000007; } // namespace Ids } // namespace Commands } // namespace LevelControl namespace Alarms { namespace Commands { namespace Ids { static constexpr CommandId ResetAlarm = 0x00000000; static constexpr CommandId Alarm = 0x00000000; static constexpr CommandId ResetAllAlarms = 0x00000001; static constexpr CommandId GetAlarmResponse = 0x00000001; static constexpr CommandId GetAlarm = 0x00000002; static constexpr CommandId ResetAlarmLog = 0x00000003; } // namespace Ids } // namespace Commands } // namespace Alarms namespace PowerProfile { namespace Commands { namespace Ids { static constexpr CommandId PowerProfileRequest = 0x00000000; static constexpr CommandId PowerProfileNotification = 0x00000000; static constexpr CommandId PowerProfileStateRequest = 0x00000001; static constexpr CommandId PowerProfileResponse = 0x00000001; static constexpr CommandId GetPowerProfilePriceResponse = 0x00000002; static constexpr CommandId PowerProfileStateResponse = 0x00000002; static constexpr CommandId GetOverallSchedulePriceResponse = 0x00000003; static constexpr CommandId GetPowerProfilePrice = 0x00000003; static constexpr CommandId EnergyPhasesScheduleNotification = 0x00000004; static constexpr CommandId PowerProfilesStateNotification = 0x00000004; static constexpr CommandId EnergyPhasesScheduleResponse = 0x00000005; static constexpr CommandId GetOverallSchedulePrice = 0x00000005; static constexpr CommandId PowerProfileScheduleConstraintsRequest = 0x00000006; static constexpr CommandId EnergyPhasesScheduleRequest = 0x00000006; static constexpr CommandId EnergyPhasesScheduleStateRequest = 0x00000007; static constexpr CommandId EnergyPhasesScheduleStateResponse = 0x00000007; static constexpr CommandId GetPowerProfilePriceExtendedResponse = 0x00000008; static constexpr CommandId EnergyPhasesScheduleStateNotification = 0x00000008; static constexpr CommandId PowerProfileScheduleConstraintsNotification = 0x00000009; static constexpr CommandId PowerProfileScheduleConstraintsResponse = 0x0000000A; static constexpr CommandId GetPowerProfilePriceExtended = 0x0000000B; } // namespace Ids } // namespace Commands } // namespace PowerProfile namespace ApplianceControl { namespace Commands { namespace Ids { static constexpr CommandId ExecutionOfACommand = 0x00000000; static constexpr CommandId SignalStateResponse = 0x00000000; static constexpr CommandId SignalState = 0x00000001; static constexpr CommandId SignalStateNotification = 0x00000001; static constexpr CommandId WriteFunctions = 0x00000002; static constexpr CommandId OverloadPauseResume = 0x00000003; static constexpr CommandId OverloadPause = 0x00000004; static constexpr CommandId OverloadWarning = 0x00000005; } // namespace Ids } // namespace Commands } // namespace ApplianceControl namespace PollControl { namespace Commands { namespace Ids { static constexpr CommandId CheckIn = 0x00000000; static constexpr CommandId CheckInResponse = 0x00000000; static constexpr CommandId FastPollStop = 0x00000001; static constexpr CommandId SetLongPollInterval = 0x00000002; static constexpr CommandId SetShortPollInterval = 0x00000003; } // namespace Ids } // namespace Commands } // namespace PollControl namespace Basic { namespace Commands { namespace Ids { static constexpr CommandId StartUp = 0x00000000; static constexpr CommandId MfgSpecificPing = 0x10020000; static constexpr CommandId ShutDown = 0x00000001; static constexpr CommandId Leave = 0x00000002; } // namespace Ids } // namespace Commands } // namespace Basic namespace OtaSoftwareUpdateProvider { namespace Commands { namespace Ids { static constexpr CommandId QueryImage = 0x00000000; static constexpr CommandId ApplyUpdateRequest = 0x00000001; static constexpr CommandId NotifyUpdateApplied = 0x00000002; static constexpr CommandId QueryImageResponse = 0x00000003; static constexpr CommandId ApplyUpdateRequestResponse = 0x00000004; } // namespace Ids } // namespace Commands } // namespace OtaSoftwareUpdateProvider namespace OtaSoftwareUpdateRequestor { namespace Commands { namespace Ids { static constexpr CommandId AnnounceOtaProvider = 0x00000000; } // namespace Ids } // namespace Commands } // namespace OtaSoftwareUpdateRequestor namespace GeneralCommissioning { namespace Commands { namespace Ids { static constexpr CommandId ArmFailSafe = 0x00000000; static constexpr CommandId ArmFailSafeResponse = 0x00000001; static constexpr CommandId SetRegulatoryConfig = 0x00000002; static constexpr CommandId SetRegulatoryConfigResponse = 0x00000003; static constexpr CommandId CommissioningComplete = 0x00000004; static constexpr CommandId CommissioningCompleteResponse = 0x00000005; } // namespace Ids } // namespace Commands } // namespace GeneralCommissioning namespace NetworkCommissioning { namespace Commands { namespace Ids { static constexpr CommandId ScanNetworks = 0x00000000; static constexpr CommandId ScanNetworksResponse = 0x00000001; static constexpr CommandId AddWiFiNetwork = 0x00000002; static constexpr CommandId AddWiFiNetworkResponse = 0x00000003; static constexpr CommandId UpdateWiFiNetwork = 0x00000004; static constexpr CommandId UpdateWiFiNetworkResponse = 0x00000005; static constexpr CommandId AddThreadNetwork = 0x00000006; static constexpr CommandId AddThreadNetworkResponse = 0x00000007; static constexpr CommandId UpdateThreadNetwork = 0x00000008; static constexpr CommandId UpdateThreadNetworkResponse = 0x00000009; static constexpr CommandId RemoveNetwork = 0x0000000A; static constexpr CommandId RemoveNetworkResponse = 0x0000000B; static constexpr CommandId EnableNetwork = 0x0000000C; static constexpr CommandId EnableNetworkResponse = 0x0000000D; static constexpr CommandId DisableNetwork = 0x0000000E; static constexpr CommandId DisableNetworkResponse = 0x0000000F; static constexpr CommandId GetLastNetworkCommissioningResult = 0x00000010; } // namespace Ids } // namespace Commands } // namespace NetworkCommissioning namespace DiagnosticLogs { namespace Commands { namespace Ids { static constexpr CommandId RetrieveLogsRequest = 0x00000000; static constexpr CommandId RetrieveLogsResponse = 0x00000001; } // namespace Ids } // namespace Commands } // namespace DiagnosticLogs namespace SoftwareDiagnostics { namespace Commands { namespace Ids { static constexpr CommandId ResetWatermarks = 0x00000000; } // namespace Ids } // namespace Commands } // namespace SoftwareDiagnostics namespace ThreadNetworkDiagnostics { namespace Commands { namespace Ids { static constexpr CommandId ResetCounts = 0x00000000; } // namespace Ids } // namespace Commands } // namespace ThreadNetworkDiagnostics namespace WiFiNetworkDiagnostics { namespace Commands { namespace Ids { static constexpr CommandId ResetCounts = 0x00000000; } // namespace Ids } // namespace Commands } // namespace WiFiNetworkDiagnostics namespace EthernetNetworkDiagnostics { namespace Commands { namespace Ids { static constexpr CommandId ResetCounts = 0x00000000; } // namespace Ids } // namespace Commands } // namespace EthernetNetworkDiagnostics namespace BridgedDeviceBasic { namespace Commands { namespace Ids { static constexpr CommandId StartUp = 0x00000000; static constexpr CommandId ShutDown = 0x00000001; static constexpr CommandId Leave = 0x00000002; static constexpr CommandId ReachableChanged = 0x00000003; } // namespace Ids } // namespace Commands } // namespace BridgedDeviceBasic namespace OperationalCredentials { namespace Commands { namespace Ids { static constexpr CommandId SetFabric = 0x00000000; static constexpr CommandId SetFabricResponse = 0x00000001; static constexpr CommandId OpCSRRequest = 0x00000004; static constexpr CommandId OpCSRResponse = 0x00000005; static constexpr CommandId AddOpCert = 0x00000006; static constexpr CommandId OpCertResponse = 0x00000008; static constexpr CommandId UpdateFabricLabel = 0x00000009; static constexpr CommandId RemoveFabric = 0x0000000A; static constexpr CommandId RemoveAllFabrics = 0x0000000B; static constexpr CommandId AddTrustedRootCertificate = 0x000000A1; static constexpr CommandId RemoveTrustedRootCertificate = 0x000000A2; } // namespace Ids } // namespace Commands } // namespace OperationalCredentials namespace DoorLock { namespace Commands { namespace Ids { static constexpr CommandId LockDoor = 0x00000000; static constexpr CommandId LockDoorResponse = 0x00000000; static constexpr CommandId UnlockDoor = 0x00000001; static constexpr CommandId UnlockDoorResponse = 0x00000001; static constexpr CommandId Toggle = 0x00000002; static constexpr CommandId ToggleResponse = 0x00000002; static constexpr CommandId UnlockWithTimeout = 0x00000003; static constexpr CommandId UnlockWithTimeoutResponse = 0x00000003; static constexpr CommandId GetLogRecord = 0x00000004; static constexpr CommandId GetLogRecordResponse = 0x00000004; static constexpr CommandId SetPin = 0x00000005; static constexpr CommandId SetPinResponse = 0x00000005; static constexpr CommandId GetPin = 0x00000006; static constexpr CommandId GetPinResponse = 0x00000006; static constexpr CommandId ClearPin = 0x00000007; static constexpr CommandId ClearPinResponse = 0x00000007; static constexpr CommandId ClearAllPins = 0x00000008; static constexpr CommandId ClearAllPinsResponse = 0x00000008; static constexpr CommandId SetUserStatus = 0x00000009; static constexpr CommandId SetUserStatusResponse = 0x00000009; static constexpr CommandId GetUserStatus = 0x0000000A; static constexpr CommandId GetUserStatusResponse = 0x0000000A; static constexpr CommandId SetWeekdaySchedule = 0x0000000B; static constexpr CommandId SetWeekdayScheduleResponse = 0x0000000B; static constexpr CommandId GetWeekdaySchedule = 0x0000000C; static constexpr CommandId GetWeekdayScheduleResponse = 0x0000000C; static constexpr CommandId ClearWeekdaySchedule = 0x0000000D; static constexpr CommandId ClearWeekdayScheduleResponse = 0x0000000D; static constexpr CommandId SetYeardaySchedule = 0x0000000E; static constexpr CommandId SetYeardayScheduleResponse = 0x0000000E; static constexpr CommandId GetYeardaySchedule = 0x0000000F; static constexpr CommandId GetYeardayScheduleResponse = 0x0000000F; static constexpr CommandId ClearYeardaySchedule = 0x00000010; static constexpr CommandId ClearYeardayScheduleResponse = 0x00000010; static constexpr CommandId SetHolidaySchedule = 0x00000011; static constexpr CommandId SetHolidayScheduleResponse = 0x00000011; static constexpr CommandId GetHolidaySchedule = 0x00000012; static constexpr CommandId GetHolidayScheduleResponse = 0x00000012; static constexpr CommandId ClearHolidaySchedule = 0x00000013; static constexpr CommandId ClearHolidayScheduleResponse = 0x00000013; static constexpr CommandId SetUserType = 0x00000014; static constexpr CommandId SetUserTypeResponse = 0x00000014; static constexpr CommandId GetUserType = 0x00000015; static constexpr CommandId GetUserTypeResponse = 0x00000015; static constexpr CommandId SetRfid = 0x00000016; static constexpr CommandId SetRfidResponse = 0x00000016; static constexpr CommandId GetRfid = 0x00000017; static constexpr CommandId GetRfidResponse = 0x00000017; static constexpr CommandId ClearRfid = 0x00000018; static constexpr CommandId ClearRfidResponse = 0x00000018; static constexpr CommandId ClearAllRfids = 0x00000019; static constexpr CommandId ClearAllRfidsResponse = 0x00000019; static constexpr CommandId OperationEventNotification = 0x00000020; static constexpr CommandId ProgrammingEventNotification = 0x00000021; } // namespace Ids } // namespace Commands } // namespace DoorLock namespace WindowCovering { namespace Commands { namespace Ids { static constexpr CommandId UpOrOpen = 0x00000000; static constexpr CommandId DownOrClose = 0x00000001; static constexpr CommandId StopMotion = 0x00000002; static constexpr CommandId GoToLiftValue = 0x00000004; static constexpr CommandId GoToLiftPercentage = 0x00000005; static constexpr CommandId GoToTiltValue = 0x00000007; static constexpr CommandId GoToTiltPercentage = 0x00000008; } // namespace Ids } // namespace Commands } // namespace WindowCovering namespace BarrierControl { namespace Commands { namespace Ids { static constexpr CommandId BarrierControlGoToPercent = 0x00000000; static constexpr CommandId BarrierControlStop = 0x00000001; } // namespace Ids } // namespace Commands } // namespace BarrierControl namespace Thermostat { namespace Commands { namespace Ids { static constexpr CommandId SetpointRaiseLower = 0x00000000; static constexpr CommandId CurrentWeeklySchedule = 0x00000000; static constexpr CommandId SetWeeklySchedule = 0x00000001; static constexpr CommandId RelayStatusLog = 0x00000001; static constexpr CommandId GetWeeklySchedule = 0x00000002; static constexpr CommandId ClearWeeklySchedule = 0x00000003; static constexpr CommandId GetRelayStatusLog = 0x00000004; } // namespace Ids } // namespace Commands } // namespace Thermostat namespace ColorControl { namespace Commands { namespace Ids { static constexpr CommandId MoveToHue = 0x00000000; static constexpr CommandId MoveHue = 0x00000001; static constexpr CommandId StepHue = 0x00000002; static constexpr CommandId MoveToSaturation = 0x00000003; static constexpr CommandId MoveSaturation = 0x00000004; static constexpr CommandId StepSaturation = 0x00000005; static constexpr CommandId MoveToHueAndSaturation = 0x00000006; static constexpr CommandId MoveToColor = 0x00000007; static constexpr CommandId MoveColor = 0x00000008; static constexpr CommandId StepColor = 0x00000009; static constexpr CommandId MoveToColorTemperature = 0x0000000A; static constexpr CommandId EnhancedMoveToHue = 0x00000040; static constexpr CommandId EnhancedMoveHue = 0x00000041; static constexpr CommandId EnhancedStepHue = 0x00000042; static constexpr CommandId EnhancedMoveToHueAndSaturation = 0x00000043; static constexpr CommandId ColorLoopSet = 0x00000044; static constexpr CommandId StopMoveStep = 0x00000047; static constexpr CommandId MoveColorTemperature = 0x0000004B; static constexpr CommandId StepColorTemperature = 0x0000004C; } // namespace Ids } // namespace Commands } // namespace ColorControl namespace IasZone { namespace Commands { namespace Ids { static constexpr CommandId ZoneEnrollResponse = 0x00000000; static constexpr CommandId ZoneStatusChangeNotification = 0x00000000; static constexpr CommandId InitiateNormalOperationMode = 0x00000001; static constexpr CommandId ZoneEnrollRequest = 0x00000001; static constexpr CommandId InitiateTestMode = 0x00000002; static constexpr CommandId InitiateNormalOperationModeResponse = 0x00000002; static constexpr CommandId InitiateTestModeResponse = 0x00000003; } // namespace Ids } // namespace Commands } // namespace IasZone namespace IasAce { namespace Commands { namespace Ids { static constexpr CommandId Arm = 0x00000000; static constexpr CommandId ArmResponse = 0x00000000; static constexpr CommandId Bypass = 0x00000001; static constexpr CommandId GetZoneIdMapResponse = 0x00000001; static constexpr CommandId Emergency = 0x00000002; static constexpr CommandId GetZoneInformationResponse = 0x00000002; static constexpr CommandId Fire = 0x00000003; static constexpr CommandId ZoneStatusChanged = 0x00000003; static constexpr CommandId Panic = 0x00000004; static constexpr CommandId PanelStatusChanged = 0x00000004; static constexpr CommandId GetZoneIdMap = 0x00000005; static constexpr CommandId GetPanelStatusResponse = 0x00000005; static constexpr CommandId GetZoneInformation = 0x00000006; static constexpr CommandId SetBypassedZoneList = 0x00000006; static constexpr CommandId GetPanelStatus = 0x00000007; static constexpr CommandId BypassResponse = 0x00000007; static constexpr CommandId GetBypassedZoneList = 0x00000008; static constexpr CommandId GetZoneStatusResponse = 0x00000008; static constexpr CommandId GetZoneStatus = 0x00000009; } // namespace Ids } // namespace Commands } // namespace IasAce namespace IasWd { namespace Commands { namespace Ids { static constexpr CommandId StartWarning = 0x00000000; static constexpr CommandId Squawk = 0x00000001; } // namespace Ids } // namespace Commands } // namespace IasWd namespace TvChannel { namespace Commands { namespace Ids { static constexpr CommandId ChangeChannel = 0x00000000; static constexpr CommandId ChangeChannelResponse = 0x00000000; static constexpr CommandId ChangeChannelByNumber = 0x00000001; static constexpr CommandId SkipChannel = 0x00000002; } // namespace Ids } // namespace Commands } // namespace TvChannel namespace TargetNavigator { namespace Commands { namespace Ids { static constexpr CommandId NavigateTarget = 0x00000000; static constexpr CommandId NavigateTargetResponse = 0x00000000; } // namespace Ids } // namespace Commands } // namespace TargetNavigator namespace MediaPlayback { namespace Commands { namespace Ids { static constexpr CommandId MediaPlay = 0x00000000; static constexpr CommandId MediaPlayResponse = 0x00000000; static constexpr CommandId MediaPause = 0x00000001; static constexpr CommandId MediaPauseResponse = 0x00000001; static constexpr CommandId MediaStop = 0x00000002; static constexpr CommandId MediaStopResponse = 0x00000002; static constexpr CommandId MediaStartOver = 0x00000003; static constexpr CommandId MediaStartOverResponse = 0x00000003; static constexpr CommandId MediaPrevious = 0x00000004; static constexpr CommandId MediaPreviousResponse = 0x00000004; static constexpr CommandId MediaNext = 0x00000005; static constexpr CommandId MediaNextResponse = 0x00000005; static constexpr CommandId MediaRewind = 0x00000006; static constexpr CommandId MediaRewindResponse = 0x00000006; static constexpr CommandId MediaFastForward = 0x00000007; static constexpr CommandId MediaFastForwardResponse = 0x00000007; static constexpr CommandId MediaSkipForward = 0x00000008; static constexpr CommandId MediaSkipForwardResponse = 0x00000008; static constexpr CommandId MediaSkipBackward = 0x00000009; static constexpr CommandId MediaSkipBackwardResponse = 0x00000009; static constexpr CommandId MediaSeek = 0x0000000A; static constexpr CommandId MediaSeekResponse = 0x0000000B; } // namespace Ids } // namespace Commands } // namespace MediaPlayback namespace MediaInput { namespace Commands { namespace Ids { static constexpr CommandId SelectInput = 0x00000000; static constexpr CommandId ShowInputStatus = 0x00000001; static constexpr CommandId HideInputStatus = 0x00000002; static constexpr CommandId RenameInput = 0x00000003; } // namespace Ids } // namespace Commands } // namespace MediaInput namespace LowPower { namespace Commands { namespace Ids { static constexpr CommandId Sleep = 0x00000000; } // namespace Ids } // namespace Commands } // namespace LowPower namespace KeypadInput { namespace Commands { namespace Ids { static constexpr CommandId SendKey = 0x00000000; static constexpr CommandId SendKeyResponse = 0x00000000; } // namespace Ids } // namespace Commands } // namespace KeypadInput namespace ContentLauncher { namespace Commands { namespace Ids { static constexpr CommandId LaunchContent = 0x00000000; static constexpr CommandId LaunchContentResponse = 0x00000000; static constexpr CommandId LaunchURL = 0x00000001; static constexpr CommandId LaunchURLResponse = 0x00000001; } // namespace Ids } // namespace Commands } // namespace ContentLauncher namespace AudioOutput { namespace Commands { namespace Ids { static constexpr CommandId SelectOutput = 0x00000000; static constexpr CommandId RenameOutput = 0x00000001; } // namespace Ids } // namespace Commands } // namespace AudioOutput namespace ApplicationLauncher { namespace Commands { namespace Ids { static constexpr CommandId LaunchApp = 0x00000000; static constexpr CommandId LaunchAppResponse = 0x00000000; } // namespace Ids } // namespace Commands } // namespace ApplicationLauncher namespace ApplicationBasic { namespace Commands { namespace Ids { static constexpr CommandId ChangeStatus = 0x00000000; } // namespace Ids } // namespace Commands } // namespace ApplicationBasic namespace AccountLogin { namespace Commands { namespace Ids { static constexpr CommandId GetSetupPIN = 0x00000000; static constexpr CommandId GetSetupPINResponse = 0x00000000; static constexpr CommandId Login = 0x00000001; } // namespace Ids } // namespace Commands } // namespace AccountLogin namespace TestCluster { namespace Commands { namespace Ids { static constexpr CommandId Test = 0x00000000; static constexpr CommandId TestSpecificResponse = 0x00000000; static constexpr CommandId TestNotHandled = 0x00000001; static constexpr CommandId TestSpecific = 0x00000002; static constexpr CommandId TestUnknownCommand = 0x00000003; } // namespace Ids } // namespace Commands } // namespace TestCluster namespace Messaging { namespace Commands { namespace Ids { static constexpr CommandId DisplayMessage = 0x00000000; static constexpr CommandId GetLastMessage = 0x00000000; static constexpr CommandId CancelMessage = 0x00000001; static constexpr CommandId MessageConfirmation = 0x00000001; static constexpr CommandId DisplayProtectedMessage = 0x00000002; static constexpr CommandId GetMessageCancellation = 0x00000002; static constexpr CommandId CancelAllMessages = 0x00000003; } // namespace Ids } // namespace Commands } // namespace Messaging namespace ApplianceEventsAndAlert { namespace Commands { namespace Ids { static constexpr CommandId GetAlerts = 0x00000000; static constexpr CommandId GetAlertsResponse = 0x00000000; static constexpr CommandId AlertsNotification = 0x00000001; static constexpr CommandId EventsNotification = 0x00000002; } // namespace Ids } // namespace Commands } // namespace ApplianceEventsAndAlert namespace ApplianceStatistics { namespace Commands { namespace Ids { static constexpr CommandId LogNotification = 0x00000000; static constexpr CommandId LogRequest = 0x00000000; static constexpr CommandId LogResponse = 0x00000001; static constexpr CommandId LogQueueRequest = 0x00000001; static constexpr CommandId LogQueueResponse = 0x00000002; static constexpr CommandId StatisticsAvailable = 0x00000003; } // namespace Ids } // namespace Commands } // namespace ApplianceStatistics namespace ElectricalMeasurement { namespace Commands { namespace Ids { static constexpr CommandId GetProfileInfoResponseCommand = 0x00000000; static constexpr CommandId GetProfileInfoCommand = 0x00000000; static constexpr CommandId GetMeasurementProfileResponseCommand = 0x00000001; static constexpr CommandId GetMeasurementProfileCommand = 0x00000001; } // namespace Ids } // namespace Commands } // namespace ElectricalMeasurement namespace Binding { namespace Commands { namespace Ids { static constexpr CommandId Bind = 0x00000000; static constexpr CommandId Unbind = 0x00000001; } // namespace Ids } // namespace Commands } // namespace Binding namespace SampleMfgSpecificCluster { namespace Commands { namespace Ids { static constexpr CommandId CommandOne = 0x10020000; } // namespace Ids } // namespace Commands } // namespace SampleMfgSpecificCluster namespace SampleMfgSpecificCluster2 { namespace Commands { namespace Ids { static constexpr CommandId CommandTwo = 0x10490000; } // namespace Ids } // namespace Commands } // namespace SampleMfgSpecificCluster2 } // namespace Clusters } // namespace app } // namespace chip
[ "noreply@github.com" ]
noreply@github.com
9d39b9aab1ea2c009cc51b5b88c9d28a021b052a
4ba4b9de9fc1afe23da48f9dddd7aa071a629b66
/ofApp.h
080ae5e0b451f42965482d4e5c66ead3684728d1
[]
no_license
13beehiqbal/HQPlayer
f3951482574f6409f9436601869b8dc7bb52053f
5b485ba05a25c93ec7d96a3e5e352d06ccee30f4
refs/heads/master
2020-04-23T15:19:40.341846
2019-03-05T10:13:40
2019-03-05T10:13:40
171,261,547
0
1
null
null
null
null
UTF-8
C++
false
false
1,920
h
#pragma once #include "HQPlayer.h" #include "ofMain.h" #include "ofxUI.h" class ofApp : public ofBaseApp{ public: void setup();//setups the program by reading all data from files and setting gui and default values of widgets void update();//updates in background the values changing void draw();//draws constantly changing features like slider values etc void exit(); //writes files , delete (frees memory) ofTrueTypeFont* listplay; void keyPressed(int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void windowResized(int w, int h); void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); void drawGrid(float x, float y); ofxUIRangeSlider* range; void setGUI(); ofxUIToggle* markfavSearch; ofxUILabelButton* queueSearch; ofxUILabelButton* playSearch; ofxUILabelButton* deleteSearch; song* searchedSong; int searchedIndex; ofxUISuperCanvas *gui3; HQPlayer* HQplayer; ofxUILabel* current; ofxUITextInput *textInput; ofxUITextInput *textInput1; ofxUITextInput *textInput2; ofxUISlider * track; ofxUISlider * equalizer0; ofxUISlider * equalizer1; ofxUISlider * equalizer2; ofxUISlider * equalizer3; ofxUISlider * equalizer4; ofxUISlider * equalizer5; ofxUISlider * equalizer6; ofxUISlider * equalizer7; ofxUISlider * equalizer8; ofxUISlider * equalizer9; ofxUISlider * equalizer10; ofxUISlider * equalizer11; ofxUISlider * equalizer12; ofxUISlider * equalizer13; ofxUICircleSlider* beats; bool hideGUI; float red, green, blue; bool bdrawGrid; bool bdrawPadding; Heap* mostPlayed; void guiEvent(ofxUIEventArgs &e); string playlist; int min,max; int selection; int nBandsToGet; float * fftSmoothed; ofImage *img; };
[ "noreply@github.com" ]
noreply@github.com
8437636961851d69484db593522e1569bc076272
3ea34c23f90326359c3c64281680a7ee237ff0f2
/Data/2138/E
8b2df0a8696fc26e22b313d1b71d617b57a14136
[]
no_license
lcnbr/EM
c6b90c02ba08422809e94882917c87ae81b501a2
aec19cb6e07e6659786e92db0ccbe4f3d0b6c317
refs/heads/master
2023-04-28T20:25:40.955518
2020-02-16T23:14:07
2020-02-16T23:14:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
80,893
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "Data/2138"; object E; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 4096 ( (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7394.25151602914,4166.60999694062,3227.64151908694) (-7795.85578456736,3967.50324338984,7055.99406026461) (-8829.17056746552,3597.0443176028,12288.1203101276) (-10745.0314702807,3045.76349124482,19987.3882891689) (-14162.7368889505,2298.0438346023,31852.0813435269) (-20296.2332772851,1422.5820885787,50725.7325322244) (-31433.2203822471,673.306687538106,81485.6462269576) (-51567.3547281365,216.549888457974,132836.451066676) (-85149.0718049335,67.2525340053494,217918.270337575) (-118777.470662977,25.3728628961828,336670.368137685) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7746.03177498997,8789.16444051298,3123.47733141588) (-8155.54552859194,8467.65166221809,6778.87444118457) (-9214.54226766356,7783.32196329076,11807.1390631562) (-11202.215749417,6718.37520212276,19336.7431017017) (-14732.7603010477,5248.01739856161,31119.5298387795) (-21020.7032246375,3485.41766548459,50077.3974865097) (-32258.5412489974,1879.65843378369,81129.5869892611) (-52293.7189992656,859.009932020221,132780.845944888) (-85635.387577208,459.677249093797,218023.808807055) (-119009.696624414,232.74102945132,336826.137264848) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8667.36359931917,14605.8381100965,2850.68992973526) (-9102.27555017232,14181.4147540573,6239.20238807143) (-10187.707324244,13258.6657203012,10951.5659553096) (-12276.0789496684,11825.2049279002,18120.8151792031) (-16044.6845352009,9777.04640715458,29636.4707057992) (-22738.5384773473,7164.76815103515,48695.6586975951) (-34348.1763555444,4578.89822260893,80344.5952643296) (-54185.5787084032,2807.52398363146,132581.659921096) (-86847.9793911082,1863.25076866453,218026.065792655) (-119570.190040086,993.546119039118,336835.45074322) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-10494.3055008925,22612.6239957868,2487.51961520363) (-10961.1413986855,22148.3865150088,5481.68925293977) (-12082.2959991369,21124.8143119863,9697.83666038464) (-14303.1554075742,19533.6335230227,16292.5634728279) (-18430.7864512227,17184.935710143,27315.4606210692) (-25869.4958370182,14012.6282928434,46337.0963162832) (-38398.9463335858,10510.0660932228,78804.87477925) (-57935.1132412586,7674.95877634677,131872.553227729) (-89127.6106478682,5458.97311942092,217404.441524806) (-120568.234724101,2910.54641934474,336055.675948729) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-13841.0960949231,34387.5573987253,2066.16269198075) (-14322.6563847201,33948.2843645184,4588.92122718799) (-15462.8718381705,32960.9736011569,8215.63377618977) (-17777.9436200259,31447.85157736,14079.3593418769) (-22249.9871819959,29159.9865474731,24354.2956865441) (-30589.1129808892,25950.2529539532,43005.7840063016) (-44563.01798961,21985.0010445922,76093.8670445424) (-63658.0700839587,17616.1605941861,129810.735310672) (-92445.213291701,12639.5859897948,215075.335732082) (-121993.685779365,6679.7725485564,333299.795382213) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-19856.2728499436,52607.222807917,1636.60744075471) (-20339.8178202451,52250.4207355597,3674.28888995405) (-21441.592202583,51395.2727877672,6681.5819059275) (-23704.2466013494,50047.4786853555,11786.2013992795) (-28195.6493587227,47902.4099708811,21239.4273345994) (-36670.9240740778,44676.7846546372,39183.8197080122) (-50706.3366107943,40009.9807571456,71865.1766062648) (-68972.560717787,33496.6941440081,124957.20377423) (-96116.0018485565,24475.9731820452,209236.818430608) (-123831.254648423,13055.5170432446,326692.328584182) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-30892.1386968267,82279.1338597424,1220.22764500047) (-31327.2167950465,82001.6434525303,2796.22172308675) (-32314.625869308,81281.9776056804,5224.14277448719) (-34370.8844511532,80056.0520975062,9586.45381349287) (-38534.923524642,77993.7232557461,18030.0640532657) (-46483.1369654374,74593.8635476541,34596.1221256808) (-59673.422612246,68818.1266387937,65461.3988562895) (-76321.6230641671,59219.7993484704,116059.916715999) (-101619.733320648,44271.2697292591,197884.353489378) (-126869.143591454,24133.8249481309,313675.189176056) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-51026.8982098825,132488.796724671,817.235344954066) (-51368.8031803172,132201.522525655,1986.15945215246) (-52171.6747087757,131522.527108584,3917.28465803964) (-53852.4545892499,130328.734431767,7497.05691301668) (-57286.2984285265,128157.420359998,14619.6582372846) (-63887.0668402645,124212.926953185,28887.6616719999) (-74926.7500301399,116661.650938748,55970.8874021662) (-88433.1647255461,102427.798490792,101196.052985411) (-111539.61181403,79250.8470607764,177756.087467923) (-132635.316191098,44961.660366508,289563.568240584) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-84817.5195021583,216780.687243244,525.628983552974) (-85044.1198906695,216465.651569466,1305.61983042973) (-85579.399109202,215732.951088117,2674.59496005319) (-86715.3658892865,214391.020717643,5327.67456345007) (-88996.2105569821,211780.515082473,10700.7903979544) (-93258.1204318246,206703.122357735,21468.7154252327) (-100479.746492727,196701.556733977,41908.5561227401) (-111276.414241122,177550.176146871,78062.5927077861) (-129841.494240998,143709.838094753,143445.09591473) (-142697.774124743,86471.8438058417,244632.68660015) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-118651.989360952,335154.804617402,277.871986822022) (-118769.748904173,334845.087758202,668.184702262982) (-119037.5935397,334069.511480109,1369.21784999964) (-119601.842262774,332555.511773512,2806.56905694097) (-120699.954669813,329537.588885208,5749.44992405484) (-122741.989790432,323551.369592627,11643.1924795826) (-126352.541017513,311738.732364441,22958.5578666256) (-132498.686345965,288721.510634118,44285.9097253023) (-142688.549579409,244450.665929025,86233.6314703939) (-143741.348025203,158220.982475302,158225.840826165) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1116117.27776902,3754.51818380929,2846.70057481352) (1115432.23273121,3545.21370696558,6186.1463958) (1113760.52751896,3152.98312246182,10556.2132305154) (1110640.81882213,2541.10762386732,16742.0033578945) (1105104.74103331,1692.08882288451,25895.1846564413) (1095253.46393392,683.107825429776,39775.1276633567) (1077131.3390792,-183.417088623636,61506.7333341267) (1041263.75630833,-577.538912933574,99365.9092542784) (960282.515610327,-470.031426381799,184517.101309109) (740227.425543727,-221.220779280948,455846.173925353) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1115545.35048853,7866.89568703788,2708.9882769488) (1114836.75944775,7522.92355562651,5851.72149567368) (1113115.41947416,6785.78621662972,10001.704703325) (1109888.57015646,5590.924786373,15973.849678601) (1104170.14009566,3886.69769421859,24989.0884542582) (1094034.71331824,1759.4229968621,38970.1047836866) (1075663.90028702,-226.695692607814,61203.6898953925) (1039985.65552993,-1100.6239750325,99560.1484719936) (959490.329340528,-805.615344902226,184882.763516255) (739873.860925195,-335.968148777534,456226.70137976) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1114033.00287127,12836.0157620919,2443.26149797436) (1113290.86764428,12408.3000909867,5277.48981184112) (1111514.52066333,11446.3208957331,9027.47518892951) (1108128.38572563,9839.03992076548,14487.6434229803) (1101988.97181635,7388.96250996362,23064.4702993834) (1091001.28505648,4038.56994804641,37158.2478580702) (1071599.34002227,537.635952464965,60559.1478789149) (1036300.00127325,-966.517004138541,100052.208970165) (957363.895891365,-430.917668806687,185578.384055216) (738986.885964406,-1.25258719387662,456799.340532871) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1111002.55059412,19375.8624195373,2076.04529121623) (1110232.79933103,18928.0090456636,4475.14365054816) (1108423.90853397,17901.7908314436,7626.21722541317) (1104837.00569408,16169.1514387197,12268.6926495068) (1097973.70282105,13389.8137448222,19976.1001861202) (1085117.28871559,9276.76603281667,33863.8675924818) (1062518.88575045,4326.54932848571,59269.8701761475) (1027800.62509276,1901.58274288351,100778.780138788) (952993.212612651,2091.18249923955,186248.604753791) (737309.609574731,1448.47568983137,457033.78022174) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1105518.7376351,28489.3160425767,1639.46069060517) (1104746.060509,28079.8188061881,3531.682080013) (1102929.70145219,27153.7513239585,5999.89634089457) (1099190.96772293,25650.7659651309,9662.11851517978) (1091546.61112881,23267.7460997072,16100.335893259) (1075913.89459545,19865.8034729637,29121.0389204914) (1046128.40999574,15842.5006708343,57026.407636502) (1011954.95740503,12305.0219769866,101122.688957172) (946101.030601139,8966.91802711131,185813.457580033) (734803.231757985,4823.57312953617,455754.190646646) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1095783.25268461,41747.9794829773,1214.55906869566) (1095026.25583501,41417.9564895462,2623.09577381173) (1093304.69223003,40681.1053198762,4462.20538893969) (1089669.97166283,39535.4784362158,7316.02269748436) (1081985.31732126,37680.5675248226,12834.9826361038) (1065939.48423194,34931.5808658245,25271.5449808839) (1035741.76092989,31088.2846103602,53690.4115443876) (1002998.33084601,26197.556916794,97939.7330843564) (940091.017466687,19034.1995389347,181778.180300985) (731856.575425368,10054.9563223109,450971.715078039) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1077762.12208982,62353.557594813,852.909145212102) (1077096.69748361,62098.9910578583,1860.7083419687) (1075592.04276508,61546.6819766766,3201.21109459565) (1072318.50434735,60718.5163248301,5441.53245116252) (1065172.70759118,59389.728865302,10137.4880385814) (1049840.49985512,57305.6733361679,21552.5067913058) (1020515.11005558,53615.1944637195,48949.8123137437) (990893.388518501,47149.3459246701,90895.7597669457) (931158.372335403,34404.2420694682,172860.359623854) (726814.085934913,18400.8436573369,440943.990806268) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1041839.82786588,99056.6105028967,542.969059884626) (1041310.28238573,98823.1729135195,1252.449681883) (1040100.61009594,98365.2103710217,2274.38452651287) (1037452.10182428,97712.5428223718,4088.54965915282) (1031557.60654903,96692.0637013294,8055.05788910892) (1018562.25751594,95052.0666184184,17972.0882944619) (992917.296758572,91255.4578032093,42600.5262098959) (973473.846023826,79735.1444806638,78220.4649481003) (913225.006298358,61093.1319492974,156879.704999506) (715206.589993719,34973.1683129751,422578.222202739) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (960589.505398183,183416.552624697,345.781021604484) (960237.469293854,183177.422740417,822.690053945078) (959446.543473073,182690.706767976,1583.99911840531) (957708.110875439,181891.598474352,3094.21474534877) (954002.239716587,180427.200526474,6473.37569029813) (946473.931252913,177570.458714814,14335.679952841) (932834.268359217,171150.893462222,31238.9774856365) (913533.881308611,156632.986326785,59643.5881335269) (859128.683654092,131094.112529397,130785.177702024) (679991.089101885,85539.5640568739,387642.66677514) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (740314.299304051,454383.064288413,179.947714883218) (740127.057447607,454141.267734415,432.044412723981) (739741.123401461,453598.770284226,858.011999024026) (738899.064322732,452603.634443823,1757.81748785642) (737177.87779741,450680.262536693,3739.67105417855) (733806.93502599,446791.744971933,8082.20802436899) (727503.686506163,438593.834767471,16895.7872391557) (715353.520611283,421604.661834904,34184.652817553) (679998.732908448,387407.989773292,85296.2411295106) (552910.758367956,302133.277712485,302163.169124306) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-19090.6522008605,2946.86070281191,2148.32122339783) (-19879.7418195588,2777.53908882778,4570.00864160493) (-21685.2906449264,2385.59375844459,7517.4850034447) (-24971.2884045014,1707.42396050235,11309.4202259171) (-30567.9506912234,711.129500562774,16158.2344062008) (-39943.0682569655,-558.808734438859,21800.8272879642) (-55307.6877122569,-1706.81813004188,25833.924165835) (-79720.1276197396,-1968.92632656466,18673.986376794) (-114816.699576221,-1346.24724340166,-34993.2992369971) (-141039.793224276,-601.168007689556,-283237.660504825) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-19790.130932155,6158.33118335817,2011.26289644098) (-20580.6258662324,5850.09988463455,4243.33937088675) (-22401.2247248916,5084.11442714337,6948.71485759521) (-25729.6780280274,3730.79627404909,10430.8426848752) (-31446.2948853475,1644.94328459737,15000.7158381561) (-41094.9926834411,-1274.6977020398,20733.5627637038) (-56803.3463879926,-4310.26868935785,25691.5119543133) (-80930.747632981,-4869.30888342665,19395.5496303699) (-115407.423606279,-3009.21489626592,-34156.4778134638) (-141243.218397247,-1241.93439777026,-282511.380144556) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-21472.5390785187,9792.26559634475,1758.85949318662) (-22260.4545980543,9402.35418299104,3645.17939348291) (-24102.1142416672,8397.79622101509,5835.38446083782) (-27495.885957985,6541.31822004919,8536.3861547161) (-33525.7733645479,3363.6480673849,12219.6785091199) (-44189.0993586129,-1825.54372348119,17848.1609019516) (-61806.1518953176,-8526.75747137065,25357.3935578267) (-85252.8305257851,-9491.17347910402,21419.341908727) (-117272.526430759,-4846.96910426121,-32219.2296047376) (-141824.473528006,-1695.32135027847,-281067.231203523) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24738.068844809,14038.4482862539,1381.6887053444) (-25511.2139260673,13643.6298904801,2771.67821123043) (-27321.3655340731,12619.24239087,4182.75806573762) (-30782.3651905835,10670.5808586226,5560.11826812192) (-37489.6767856281,7036.87753150093,7237.52036694612) (-51048.1754928084,129.902558057692,11334.7902500801) (-77383.8639069277,-12008.4842903076,24606.5186826757) (-99494.6689340427,-13925.8689450503,26223.760131769) (-122024.047393044,-4836.32806146857,-28882.3689489446) (-143121.464052553,-1086.02885106652,-279173.335864644) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-30475.7201080954,18970.8668365566,949.291149217893) (-31202.6539520439,18628.3976872693,1800.48976981584) (-32916.0727144427,17796.2375463481,2356.52073720775) (-36347.5762570777,16336.3404765609,2116.55705562409) (-43815.5773596688,13828.3713607585,574.50367108012) (-62891.7575868729,9956.53767069,-559.227302943679) (-125023.8786511,5529.54144691951,22942.287562932) (-148112.96809354,3458.1061969369,35513.4898757978) (-131435.704066574,3046.0484656224,-24944.9000271902) (-145282.998962386,1905.32593554638,-277962.772136981) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-39974.1009674629,24044.1826991099,571.289745874843) (-40638.6557386023,23777.8028143766,974.048148658163) (-42151.1145520137,23230.7913028123,882.553130576299) (-45310.194842771,22412.4246359034,-326.112566972783) (-52531.4216770567,21049.0707797175,-3142.82103132735) (-71545.9352198246,18971.539491546,-4785.15144407368) (-130765.190944064,16004.9336226932,21133.6602103792) (-152129.74338792,14287.098000312,35319.9945973013) (-136003.778826409,10279.8826337127,-25931.791321422) (-147531.775531772,5089.6074970362,-279840.46996933) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-55398.629385121,26778.2388208066,313.947309537185) (-55957.2873930077,26612.4301082484,420.556848563547) (-57194.1621929977,26353.5537607534,-28.7486951344562) (-59910.7994749255,26163.0010532708,-1662.76933391027) (-66521.3838149318,26089.7656212886,-5122.12081307802) (-85141.1032008154,26303.8623167364,-7585.58862594765) (-146970.98569788,26223.8930122874,19568.799694313) (-166768.2357238,29950.9331864055,31453.8407068) (-142898.64967244,16672.4937195516,-30994.4964146937) (-151216.524852675,6887.60227826255,-284874.628452164) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-79930.2813583689,18287.1129489025,148.487052426843) (-80367.2292717647,18187.5429071045,138.137867356487) (-81319.716356978,18111.707892666,-312.437855330218) (-83442.5315611144,18370.2875738659,-1737.83903424429) (-88901.1264273496,19554.5757871415,-4856.66426726109) (-105953.451421692,23349.3516598112,-7499.19271648891) (-173356.139607199,31485.5307582463,23399.8578596902) (-141628.790715105,20087.9210340951,18252.7587072948) (-148524.837710457,7244.42016112244,-40682.0717690279) (-156919.790999275,-115.884459656324,-291664.952081748) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-115175.909693817,-36145.8909711178,85.6709682682452) (-115451.660280667,-36236.9652460647,86.5606521952627) (-116041.428949325,-36326.5701490452,-99.9369273711091) (-117342.998374855,-36251.686711483,-539.60143538167) (-120350.043047929,-35756.9030983937,-988.587828987371) (-127590.86594004,-34497.1654619488,809.978442020121) (-143470.139694279,-33649.2033974503,12136.3726074743) (-148815.895944238,-41031.3810673654,5492.7039180221) (-162674.619520126,-47610.5322181582,-47961.7885721516) (-165408.555837805,-41290.6433079809,-291500.13282782) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-141306.171301437,-284677.22763344,39.0592241550003) (-141453.092388001,-284790.546919363,60.0426893302105) (-141731.146613617,-284956.906786377,49.9012980684554) (-142338.591189962,-285150.697692454,73.8197479121687) (-143634.714160183,-285375.955807345,392.716370770173) (-146363.795174614,-285886.347519688,1839.88058539281) (-151446.448147198,-287838.96421007,4867.02800772965) (-157131.43584586,-292756.84735542,-1035.29729087563) (-165468.09419713,-291719.890256415,-41571.8601907666) (-159759.104222967,-250147.689978633,-250157.698972842) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-22555.5081002776,2077.91131781652,1386.94458160105) (-23245.1233193476,1929.8161268019,2822.5099545924) (-24730.9123364856,1570.74969255238,4297.38195360069) (-27347.2185311456,907.61239642544,5765.69968381576) (-31517.6118673137,-168.059075007441,6883.41993491517) (-37939.8519577028,-1673.71031202523,6553.91394768053) (-47216.5413740475,-3165.6738355318,1628.44144500532) (-58804.8774409571,-3197.23799810983,-16089.5707356746) (-68224.3226718646,-1951.62373307029,-60730.3239069343) (-59436.8227659176,-813.227411250881,-141520.066954024) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-23209.2651280546,4239.4346582509,1257.6108554638) (-23872.0613403935,3964.5063755382,2514.35608088971) (-25304.20088654,3251.22961431616,3736.85232077768) (-27807.9765903617,1908.10165524704,4814.66162428606) (-31820.2488907532,-457.619417574423,5478.17597226181) (-38069.0548291991,-4353.63781382205,5132.16561982375) (-47273.9622756156,-9273.59343592403,1710.7011078459) (-58487.5783007799,-9174.49648151264,-14755.20974095) (-67727.6855925624,-4873.24077647886,-59513.3307112518) (-59136.2750115886,-1832.00285177835,-140601.498656436) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24688.9403108801,6445.92768341575,1009.90820720035) (-25298.2182731898,6085.08597237775,1927.09228549221) (-26625.4378834934,5134.05695113532,2567.5885904979) (-28872.7503342139,3242.55569915801,2609.99892281924) (-32498.0745224892,-582.055134082396,1706.73579726663) (-38530.3698901075,-8654.58436270184,348.952877628484) (-48672.8319341737,-24072.2674200175,2014.30690057983) (-58400.4703472518,-23703.2494870979,-10309.300272379) (-66562.2286402146,-9584.88532773928,-56307.9535116481) (-58419.4952782471,-2979.64766278481,-138565.286950404) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-27460.2431632574,8498.43146550064,669.670536370836) (-27996.5423050947,8144.60016999063,1095.48471779059) (-29121.6186553351,7213.53412908988,816.26066110041) (-30930.091044915,5270.67222306765,-1064.13000847868) (-33800.6697372393,852.15844901445,-6187.35063996208) (-39407.1382935681,-11592.2991556059,-14890.6730462998) (-59425.4058855842,-59527.1628782003,2605.76439053304) (-62121.7901845637,-62462.4380777942,3992.07423175428) (-63873.4869521393,-14224.5038213082,-49518.8677155848) (-57024.2417702063,-3215.24407875817,-135380.493581978) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-32095.4255698355,9825.55629947784,292.580627761059) (-32528.6066689036,9547.14950812828,215.984006482772) (-33361.5442506083,8889.026972994,-1014.0373012545) (-34443.8776995798,7651.90134481246,-5298.96498049399) (-35204.8103553433,5330.93263242714,-18388.5061682344) (-31779.377034032,1474.65189308854,-62567.8377697773) (-3.23690379868086e-05,-7.30824305886684e-06,2.02391016856269e-05) (-482.270079005705,-399.786876750241,52509.8044724401) (-53451.4131538844,-1382.32930797411,-38316.6609536066) (-54523.5239958753,-252.120107911228,-132039.25989099) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-39107.6439247792,8963.54567599503,-4.44641919850806) (-39431.05718315,8777.37513483,-442.270601356636) (-39949.0304427302,8480.77345937508,-2236.10119701872) (-40426.1563078988,8050.97307144718,-7519.21145852605) (-39913.5382315531,7257.93632658126,-22064.0985981937) (-33822.8243671669,5551.22527858155,-63863.7828363443) (-2.90268395046636e-05,-9.2165322608261e-06,1.57004748629963e-05) (-172.315412818305,-138.979077127669,51741.6204697648) (-52185.8110462317,3551.79590718392,-37010.4725255648) (-54548.7729553213,1476.17209653297,-131721.767306397) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-48854.0317895456,2567.7904782458,-148.842397821232) (-49073.1192635681,2514.46785674103,-770.103249183291) (-49309.7800739941,2576.93535307789,-2750.64726187742) (-49307.1466335471,2971.55658981896,-8274.88362162086) (-47888.922322327,4017.04425209225,-23666.4530397387) (-39738.1825399312,5739.26286113859,-69257.4112831779) (-7.84745965956867e-05,3.05347660153724e-05,2.15098281317335e-05) (-220.60104360047,55304.4023538976,55579.1261497462) (-56077.3282813753,11227.539760409,-38917.9390945359) (-56824.5119794036,1267.72912345412,-133101.508994728) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-60645.9370889565,-16524.9424803623,-191.611310813164) (-60779.9716621344,-16491.9615697747,-772.439493933235) (-60853.4327393666,-16212.2358666925,-2449.55189178007) (-60578.1292471868,-15141.4372226714,-7200.96039322251) (-58722.5617331558,-11511.6832964823,-21850.797538853) (-49359.6301654393,2059.96776541634,-74765.3236993824) (-398.581921812132,61682.2495096258,55302.0474679529) (-55765.2954939961,13167.1392506847,11575.8153500468) (-70270.8355178823,-6707.85376641168,-48742.7933157062) (-61654.5999053606,-8498.30985354867,-134241.945432619) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-69792.2630615341,-61761.9177410621,-146.67137157223) (-69858.7988652426,-61728.1715960591,-503.322760707674) (-69859.1470940777,-61504.9466374924,-1392.89384512804) (-69639.5185538821,-60728.5139949546,-3509.29689381787) (-68699.4610539707,-58510.3232277691,-8161.23895648285) (-65944.7583683114,-52778.9061650538,-14968.4725977496) (-62469.1772162707,-41204.7301283305,6917.54456219689) (-71570.0212386213,-48978.0255814913,-8183.16531123667) (-77012.8773059058,-50131.0041170088,-50421.7571748533) (-63160.5782832442,-35482.8743224207,-125685.170260552) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-60310.9753634273,-142672.810539035,-84.3031400269455) (-60346.2521156768,-142679.669130808,-239.645877599968) (-60343.5077084145,-142581.491835903,-550.739584383917) (-60257.2274268036,-142169.687826223,-1190.92951625301) (-59949.7662016086,-141097.681903363,-2288.51879922497) (-59339.7881729462,-138911.542293497,-3179.88967245856) (-59205.8508908069,-135869.54336891,-755.673688250192) (-62443.4048125503,-135136.831786172,-9284.89851685309) (-63336.5100606203,-125837.172185367,-35710.314585002) (-50664.815225002,-90134.697967759,-90152.7799376258) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24592.3648557706,1305.42188190736,731.434873586811) (-25054.1633939873,1183.65125264929,1356.82369557674) (-26013.9425662744,915.880659090258,1723.97326627316) (-27612.3904891608,397.680155114588,1591.465069175) (-29893.1312416467,-490.935693084469,457.920136586977) (-33009.9189259631,-1799.91750201669,-2672.09539313713) (-36891.132467101,-3216.30286719794,-9781.20143288872) (-40577.5542990917,-2883.30299688978,-25125.2215778623) (-40398.7337088972,-1483.58696704362,-51467.2235737905) (-28809.8752604442,-525.812124029629,-81568.358955185) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25076.2215376182,2519.38266065859,652.995630809241) (-25493.4352377356,2323.80182577388,1134.21895502353) (-26348.3604410001,1802.59032029867,1291.66884827435) (-27695.7112798868,762.108638972479,814.975053945653) (-29504.8664073423,-1212.76108371391,-778.582038839882) (-31771.6913796799,-4842.0353201706,-4033.82767020713) (-34529.0839554823,-10647.7381155872,-9347.27074195506) (-38021.196370037,-9042.92309456015,-23654.0325750241) (-38695.5586703814,-3711.83872282525,-50457.9077414237) (-28034.7158835752,-1136.75495938914,-80948.5240340621) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26140.5070697963,3525.12364933612,445.825770236195) (-26475.9036270609,3277.79978391213,669.513165973079) (-27113.0212821999,2591.24110216557,368.445782815047) (-27914.259151877,1184.31208985806,-1012.24885040502) (-28561.386869955,-1869.32432828763,-4292.37325836546) (-28442.0788961247,-9504.60484952889,-9718.0947229814) (-26684.3459764493,-34791.8415639809,-7562.47723231111) (-29457.3223723431,-27361.0454949297,-18187.5028068531) (-33875.0921333536,-6856.41026079138,-47730.0677757661) (-26094.7945052432,-1570.99308579596,-79620.5304223795) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-28101.212432062,3958.11096729999,207.981950840297) (-28318.416099627,3724.08556263677,83.569966642872) (-28617.7337236334,3096.56309047882,-925.636953369044) (-28617.822620714,1858.78385216204,-3912.37713987574) (-27360.0134063417,-467.645455014139,-11754.7123440546) (-21906.9692190555,-3893.68244201601,-34865.8038260805) (-1.59286921227683e-05,-2.07818475215475e-06,8.25729524276417e-06) (-349.950371602233,-768.846418281533,2526.85050582497) (-22166.8911440754,-3777.31390334506,-42258.8416596794) (-22277.7835445688,-700.014241060776,-77876.2787300821) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-31174.8849166395,3073.95141669085,-36.3811025834509) (-31250.8136026478,2903.80734761375,-493.895953821046) (-31197.8156180214,2508.57839559973,-2069.63989152937) (-30391.1549055269,1816.34820822026,-6079.92704164247) (-27509.9542194414,734.245881685966,-14976.6745142366) (-19343.0764243485,-502.742397965415,-30803.9151679572) (2.0977363744022e-06,-5.85301672225194e-07,-3.8302043443719e-05) (-3.36788055936953e-05,-9.62711565653218e-07,-2.57843342624224e-06) (-95.6764854621426,3.08774045565018,-38934.680231339) (-16924.5938821357,-185.862888608661,-77047.7616975008) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-35336.2530442872,-474.42257857309,-223.016885228668) (-35284.779416832,-566.115935483337,-899.37136844893) (-34932.6628437983,-660.034479971431,-2747.1260918095) (-33550.3061075742,-708.027667074252,-7098.60041684142) (-29623.8268844346,-615.375229993378,-16038.6906522736) (-19967.2314636456,-298.740880983548,-30098.2850727638) (-2.284370722705e-07,-2.64672520915023e-06,-2.91384743933305e-05) (-2.52948216975961e-05,-4.966913446423e-06,4.02383774796439e-07) (-438.532182605535,-192.134322059676,-38933.9976063632) (-16241.942501224,-706.082369224993,-76720.6085798571) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-40117.1735909151,-8921.79183506136,-289.488942141911) (-39994.2269213518,-8915.1764691209,-1019.32075071123) (-39439.4291866598,-8714.09490358753,-2835.61121443528) (-37733.8100482135,-8122.4090342755,-6994.56643256531) (-33208.1066058671,-6666.4168478155,-15624.340531205) (-22315.903749329,-3730.32547919242,-29615.0347236071) (-4.05787710898152e-06,-4.52977385301637e-05,-3.43524577349992e-05) (-4.40046183308881e-05,4.66046200715464e-06,1.55770669542807e-07) (-245.366923118216,-2822.82675944295,-39272.8368405357) (-17455.6044996023,-3490.39517495379,-75857.4315145899) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-43999.8446768998,-25300.6017834778,-267.2824636463) (-43844.4637882677,-25242.9522616358,-875.014545002704) (-43241.0389040922,-24921.3932717058,-2280.110012155) (-41534.2808375524,-23955.982401545,-5490.38505451857) (-37029.734309452,-21260.1033322381,-12589.5259937922) (-25611.0031863685,-14287.1895109912,-25781.2889410651) (-5.347208781131e-05,6.24796724672491e-06,-6.06106294808073e-07) (-80.173423757953,-2380.51597470516,-2733.45986610609) (-22715.0905649384,-13276.3534961783,-39835.6780823148) (-22815.86223755,-9910.9858532823,-72253.8250718143) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-43033.3052694305,-51882.2711407136,-177.288434866232) (-42895.4583466011,-51857.072518738,-526.508696403764) (-42422.4608604146,-51645.7537364859,-1238.83446528736) (-41143.697435279,-51012.6837260873,-2677.9542593508) (-37766.1395742329,-49392.679755565,-5478.69931575856) (-28482.5496271888,-45791.9473272319,-11436.1502406357) (136.428867117089,-37562.7001678842,-2121.28562431297) (-23010.6422781566,-39565.6731947936,-13495.5073647008) (-31132.4600134736,-36263.3874012916,-36388.8907520217) (-24293.1787319642,-22873.5190483677,-62293.7571082152) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-30189.5574522328,-81912.4655015433,-91.223550360322) (-30119.4701836416,-81934.5968039232,-240.481197227098) (-29886.6854177911,-81856.514338618,-486.54288573444) (-29286.2396528167,-81530.8035408921,-939.410844924852) (-27848.8052718715,-80708.4279672305,-1724.62356299232) (-24707.8215609707,-79129.0324714569,-3019.50503074914) (-19517.729088255,-76298.2085847577,-3972.11841644056) (-23452.4290126052,-72418.5080170732,-10110.2593941029) (-24478.3693940158,-62303.7058673983,-22928.0815946126) (-17800.3074937081,-39342.4818385281,-39323.6265357565) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25602.6277966437,756.898249774477,253.364691105526) (-25848.0490023551,676.638752906216,370.611546568927) (-26330.3626303182,537.977682028146,149.053928583447) (-27032.247309722,286.685521925683,-717.774772781139) (-27813.6551046328,-99.9022571048757,-2697.34865269295) (-28604.8632596905,-567.979777134413,-6534.42454182883) (-29211.37320796,-870.253852884547,-13343.9299480897) (-28989.3039132119,-320.598289247803,-24611.5820447287) (-25683.758605104,187.759066339462,-39514.3162148415) (-16159.3536034251,219.995064551044,-52384.8329364455) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25879.5903959664,1320.84383497573,239.42327315054) (-26072.2555190222,1212.55149096092,282.330816383444) (-26459.4210788273,952.346873598701,-20.9777373594606) (-26911.1185647891,474.152117120365,-993.037047654452) (-27186.8632288754,-330.683172020252,-3080.2593112036) (-27106.1408958701,-1541.37521181734,-6772.41436033209) (-26678.070456394,-2803.63464226394,-12690.0470700319) (-26574.0003375444,-439.675091245971,-24018.1663005257) (-24191.0282785495,1086.39571026849,-39421.3333362832) (-15498.9436441801,776.802624731082,-52513.9131358584) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26467.8832688506,1518.32956702982,129.890467004857) (-26586.2139640569,1387.74435313974,65.0079418224693) (-26746.5096652888,1057.88654814201,-407.043349630631) (-26635.6077343184,458.290671322174,-1669.83332139712) (-25713.0071765981,-678.647911051951,-4170.24827572205) (-23282.5477332367,-2957.77719598405,-7913.3774544475) (-19131.5307306792,-8145.77883460413,-10124.0485078763) (-19471.1911607377,1779.19464882546,-22329.0494595507) (-20396.2017508965,4860.41293257682,-39581.9570643222) (-14004.0676069581,2242.29864452776,-53138.1799823814) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-27576.0050806535,964.951406043308,28.1708095756797) (-27581.216468442,848.769093515552,-170.053561983427) (-27396.9006283453,579.692670157166,-912.692779288572) (-26500.8114563556,103.903819991258,-2675.31709231373) (-23798.4620460963,-621.528775515641,-6293.98758809301) (-16859.6412574411,-1322.0271924668,-12977.0655532227) (-1.31990254464587e-05,-9.82456024303123e-07,-2.71204587755999e-06) (-155.817188077279,-431.511966584222,-19030.2261151004) (-12596.8133702783,18289.6475201111,-42029.5384764334) (-11454.9201185054,4647.89872319494,-55258.0019811709) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-29206.8171127177,-937.044574227109,-66.0718236471077) (-29071.9239338256,-1007.16953494391,-389.022864008169) (-28569.366384045,-1143.94600852868,-1293.83341929957) (-26997.4786617277,-1320.05910164551,-3263.54674146299) (-23147.4306033493,-1405.74815353444,-6841.85097953733) (-14814.0768889272,-1158.56785453865,-11534.3098528876) (2.05900838453888e-06,2.7142285410498e-07,-1.98352878668316e-06) (-2.95696444380495e-05,1.01035083318101e-06,-6.93401249556069e-06) (-102.509294593472,-298.531121220326,-55433.9166177687) (-8463.29130801345,531.363004778387,-59778.6834734668) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-31061.5596294789,-5083.27780672487,-128.460182311544) (-30819.0278389762,-5101.15975865035,-500.221536463602) (-30102.3306917784,-5070.58079774635,-1403.9188992692) (-28134.1953782553,-4870.99061203582,-3269.09811819728) (-23654.3096320758,-4208.77181581381,-6435.59170827714) (-14667.7580213198,-2681.67219819845,-10211.9608069456) (8.38367994523387e-08,-8.48655499856611e-07,-8.96685270350242e-13) (-2.09988386176923e-05,1.42858744617051e-06,-4.71422058957913e-06) (-463.223866033126,43.3658973424203,-54354.0823113091) (-8031.20866366876,-1889.56476559552,-60143.8883784741) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-32555.1974396526,-12509.7101282594,-135.54382973641) (-32276.3824006187,-12490.7790659746,-463.769043151227) (-31465.0387914706,-12314.6898817147,-1194.05035437214) (-29396.6768382112,-11805.1879601933,-2596.98621621863) (-24773.6795251706,-10399.7035902791,-4840.48152245239) (-15470.9991803297,-6985.10375626992,-7381.95453338034) (-2.97563928761801e-06,-2.73110389161628e-06,-1.07452126591087e-12) (-3.67736307850322e-05,1.13335730500247e-06,-6.93575847920967e-06) (-500.698766826715,-25240.9241940126,-56188.5919784747) (-8556.52745069379,-8844.43591605104,-58132.7978769535) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-32381.3247794964,-24032.0653482975,-96.1646773631594) (-32118.8817153112,-24014.2998198995,-298.225996392623) (-31359.4466159383,-23846.7043093922,-647.803856873769) (-29539.1955480485,-23340.5133336071,-1107.56377296189) (-25452.5135422539,-21793.100568625,-1291.38756181435) (-16694.5134319109,-17023.1434376967,-169.837634845935) (-4.79781256919617e-05,-4.34315592211785e-06,-4.50574041608685e-06) (-286.93221060853,-25185.6595639668,-25175.3374414748) (-11793.1610254451,-21599.7286426187,-39738.4625323605) (-10804.6382432313,-11372.0405027245,-49222.0819399999) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-28200.3376548853,-38811.2216677327,-53.8112951112049) (-28005.4554521889,-38855.1536565382,-102.960352893847) (-27461.0279718012,-38866.2977411577,-44.7998097448232) (-26213.2068833596,-38897.2448554206,581.441160161385) (-23490.1338669986,-39184.8996020162,3697.23448631976) (-17315.841232604,-41718.2397840156,17225.622438051) (-752.862437558069,-56968.4567108136,-25176.4124232971) (-12086.5189804973,-39795.2678098205,-21490.9274751011) (-15270.5218606514,-29494.0956369072,-29458.4986336306) (-10933.5884468036,-16340.0265894104,-37850.1028321166) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-17451.2794351419,-51528.6035915252,-20.8960932911925) (-17351.2717875915,-51626.3792092904,-17.8689365898083) (-17090.8413456657,-51759.0347561539,79.0240062800133) (-16516.4279704874,-52016.7615343077,428.729002833694) (-15365.5236186962,-52572.1597921003,1332.7075397534) (-13189.0462434521,-54093.5099078438,2189.20234605878) (-9938.47236773271,-56502.8662617006,-7855.64482357571) (-11264.8916954679,-48770.9724469653,-11067.4775035657) (-11072.4802283893,-37746.2575772641,-16221.2047288256) (-7380.80143133969,-21511.761973543,-21468.9754070629) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26010.7304009293,380.488734515809,27.6138697583991) (-26121.9986009449,374.896269273412,-73.3328009267638) (-26297.5621482335,393.305313025348,-499.438596035049) (-26465.2296132035,429.740818352598,-1496.19711090345) (-26409.3596077234,567.187815897227,-3467.68042370704) (-26009.6103664466,966.949544271682,-7029.8828612214) (-25030.6921888216,1675.5199792937,-12886.0838596507) (-23039.8110394057,2112.60285010682,-20948.1795835585) (-18658.2260135144,1679.73738854547,-29653.4495636937) (-10792.0092775799,850.993081584605,-35871.7869711192) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26111.0197038815,561.13208110205,50.7859613296369) (-26186.7240558008,569.845899371198,-29.6951319884537) (-26310.4517593567,589.491851258282,-374.850989692308) (-26319.0461429159,690.141660712813,-1227.32425392805) (-25960.3565724398,1082.0368776823,-2968.67997215297) (-25072.0434656264,2237.37717928982,-6273.20503741805) (-23612.6156828937,4726.65238891724,-12389.7922205518) (-22244.700458711,6717.76001660362,-21324.2492658928) (-18322.460058277,4909.4150264673,-30422.4951240877) (-10665.5575359474,2264.8401318471,-36669.7282825878) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26321.3353044321,356.738185571097,57.8459311110175) (-26352.0073407411,358.231173917717,35.2540332459268) (-26326.4871115751,374.452314152453,-169.728983364029) (-25963.6308592948,551.069411222096,-702.633608894533) (-24850.2720124074,1212.39767865145,-1695.72957405609) (-22490.6898967393,3444.42218781858,-3694.63241907873) (-18792.3303045117,10938.5577371046,-10245.7381934415) (-21136.3740430666,21115.1029219992,-22977.8982165139) (-18213.179257617,12671.2727893266,-32922.7784726296) (-10625.7423076382,4787.73551557683,-38823.99915569) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26704.5896762873,-604.954584335799,90.2773655387624) (-26662.364649295,-604.082158245016,133.738878551406) (-26408.2598811246,-563.005865624583,82.5563111060189) (-25516.1999857392,-411.310472996425,60.3247247107188) (-23192.9312623762,4.93669089606472,662.254928753624) (-17322.65743545,705.445001342928,3864.24829323759) (-1.19148428199195e-05,8.65240062104894e-06,-7.53459432065029e-06) (-24969.3000869036,-348.192101969689,-31233.4940702294) (-21230.8863282153,30720.8437388539,-40648.9920618191) (-11421.4267544322,7625.63820987365,-43520.3881201804) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-27207.577992573,-2723.63761639562,119.443911909248) (-27060.7521619237,-2710.18976403337,214.379745800828) (-26584.2003610256,-2644.01733910998,310.225196266771) (-25226.0978904696,-2458.13050967375,585.664461687306) (-22037.5298359437,-1987.36513223752,1468.0655174112) (-14764.5170956605,-1091.61314094645,3215.56386643632) (7.23996121862762e-06,1.46522244356482e-06,2.46968192980696e-06) (-2.09013822556854e-05,5.72802494311735e-06,-1.18229574898637e-05) (-38864.606790732,-677.332354386859,-63562.1114504384) (-14341.3778987234,976.528565978982,-51034.9152158367) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-27486.7816954617,-6430.53613585115,132.120585438705) (-27276.0976652067,-6410.19017975992,289.190827401051) (-26684.3092526677,-6329.02272174913,556.17477092766) (-25126.5579081886,-6071.77746401034,1162.18425519981) (-21621.4904791825,-5334.13479621331,2476.13476628594) (-14086.284838289,-3535.07267434137,4338.12111664984) (8.66801001101914e-07,1.09918634027983e-06,6.72893215361778e-14) (-1.42899541747838e-05,7.65759913538325e-06,-8.63845856788512e-06) (-36337.630421971,30.7870858852332,-61616.3915988825) (-14411.7272054566,-2392.7763378272,-51866.568153306) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-27025.9520047701,-12092.0702162753,132.288645548955) (-26805.7426668133,-12100.5671209942,352.025852976868) (-26227.1368349837,-12041.855860676,826.957035417435) (-24776.7939316578,-11807.6427779301,1942.93944278331) (-21540.8567728841,-10951.6625310572,4327.64442534282) (-14470.2177167878,-8131.59200495376,7923.3822924094) (-1.36275379559247e-06,-1.05693369000812e-07,-9.4202309155959e-14) (-1.89233400004486e-05,2.9543791551544e-07,-1.0488129658918e-05) (-39947.7597944423,-36453.8073169684,-63982.1911098796) (-14414.8108948694,-11094.312894424,-49422.3711091027) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24962.0835640068,-19656.2408501392,144.929418379997) (-24772.4427648109,-19715.2643009271,413.187647815896) (-24313.3108380049,-19773.770784754,1098.96679396065) (-23298.0797738787,-19826.3827395999,2876.59098145943) (-21180.2178896945,-19614.5056533792,7267.13845121939) (-16429.9833393395,-17350.1309373258,16221.14729102) (-2.98909912507428e-05,-1.02274332130977e-05,-7.2880910738146e-06) (-29294.1655147107,-36703.0690242552,-36421.4651045169) (-21067.7067970617,-24990.8554492198,-38609.8712006555) (-10695.1655907447,-11503.2507277727,-38310.40601979) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-20056.3129644596,-27904.5289071275,104.263366560319) (-19933.5276627989,-28045.130282609,362.201558854088) (-19651.9579839154,-28310.3428495794,1089.70363579071) (-19185.0393938873,-28958.8562522015,3194.00965891321) (-18859.2474152076,-30779.4222698836,9728.03982362969) (-21386.8272896885,-37280.9326976437,33729.8276410257) (-44185.3756196924,-65800.9671501358,-36405.2533983717) (-21850.6260458803,-38765.1979498257,-24579.0174074175) (-14573.1144968766,-25192.0601595158,-25075.2200609059) (-7922.92420815768,-12758.9202557552,-26830.2147715628) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-11500.5170695219,-33917.634578935,62.343306189822) (-11434.725835057,-34108.539424969,209.206496018972) (-11304.20499714,-34480.7269030145,592.954200927248) (-11124.5874851194,-35288.8374486597,1531.09491202057) (-11059.9465105995,-36996.1480490905,3442.24358312509) (-11791.3133371906,-40679.1321073331,5442.7100865569) (-14799.2952538553,-46362.6283428791,-9134.80583457794) (-10929.6949069387,-37386.7640570712,-10848.4365158651) (-7961.49017025405,-26620.6604913123,-12530.8262422107) (-4471.60164421597,-14125.4051695537,-14073.5411155299) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26135.4225599071,141.087669741001,-16.3955107577125) (-26189.7317498375,190.852037416674,-139.514399283871) (-26225.6549649148,324.195916752387,-535.617499361638) (-26156.9609976323,552.050503488398,-1395.93661842261) (-25791.618396073,1029.11052783892,-3042.78835791099) (-24998.9033569577,1932.85906973829,-5986.35443714148) (-23425.7732737542,3092.40983250971,-10683.6831847174) (-20449.5581868257,2914.26646216975,-16188.2024994626) (-15531.7356311832,2071.66774355034,-21386.3606253517) (-8512.89882786252,1016.35341691271,-24681.8244919734) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26135.064625194,146.655322579316,18.4772684702244) (-26178.0804873974,231.530341422351,-30.8446039342594) (-26209.3800117571,440.080453745524,-247.800888525597) (-26133.0302396256,922.585593087436,-804.351881414174) (-25812.9184235509,2109.25043019101,-2031.92993265332) (-25174.3453917615,4762.89987939816,-4759.66881617684) (-23958.0982688924,9511.34647076573,-10833.1228684345) (-21029.3086387148,7880.40972375192,-17014.6579500072) (-16001.0462259313,5103.47990974965,-22367.8839485509) (-8749.1972395142,2346.40687232803,-25614.2977004) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26113.878246244,-174.392282862605,113.590547253794) (-26135.5131686519,-89.799087354582,218.425803941198) (-26140.462515972,144.296368992616,328.185293095414) (-26031.3542294503,846.175235858262,472.319020480919) (-25785.6290585587,2799.28961496429,717.636881864458) (-25656.8342547352,8565.77934739777,80.9017718589525) (-26449.1350218202,29605.2450648092,-12356.1921048694) (-23189.7518691562,17269.8521006416,-19692.2566556676) (-17470.6124904606,9669.42819940423,-25000.7717124778) (-9413.94694679998,3992.01301170764,-27858.1732126923) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25982.9342001734,-1127.64174210171,231.593983129054) (-25989.1672217166,-1070.40404641332,539.001514618836) (-25960.9810405665,-867.733623548567,1103.75266660442) (-25788.4837891579,-274.905399950484,2497.11710582425) (-25581.8733651404,1085.00286596296,6600.34595758605) (-26589.8439746305,3229.82986781124,21203.4819763506) (-39296.2789822454,-44.4445373273788,-24607.0634706697) (-29608.7047678899,24450.2194033202,-27148.0260923677) (-21142.6856320261,13001.9257439167,-30568.7243330691) (-10857.8564456848,4670.4517228515,-31810.7333529544) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25694.6058895004,-2975.79105563109,335.177210460498) (-25659.4464724559,-2942.00461105488,805.472085629414) (-25574.0913008587,-2811.50974181291,1739.13914372246) (-25233.9494706124,-2433.46622861165,3905.55155252193) (-24217.4450298907,-1649.69497180041,8820.16458423757) (-20235.3749571215,-469.133714163951,17989.9860276672) (-1.69890810312252e-05,1.46215107396031e-05,1.12695232570898e-05) (-39152.9194413155,-182.236732630429,-38421.6962959605) (-27334.0390164763,1811.68662062047,-38762.0249469179) (-12923.8524012318,908.068499958725,-36417.1672215168) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25000.8405331033,-5839.04802832367,377.315810335346) (-24951.1632787854,-5852.12856241352,962.505375272754) (-24849.9026139678,-5829.03642320723,2145.62541797369) (-24494.5024562869,-5668.88233361114,4748.98607107118) (-23353.6677301676,-5224.05651250065,10055.5248627557) (-18982.4196123708,-3926.70613823927,18409.2320609112) (-1.05058214241301e-05,1.88865628957622e-05,8.63066454311071e-06) (-36641.9289512807,22.6837323256283,-36120.5048445972) (-27678.4068654362,-3537.41803199483,-39430.6237485097) (-13315.5120696895,-2379.51835468457,-37239.2520296366) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-23461.2591578426,-9777.90622535798,374.165350103683) (-23424.8290836321,-9870.14858473722,1011.27178924154) (-23372.0792958229,-9992.13728116678,2319.31510804045) (-23171.8448114436,-10167.2844314851,5212.76808569421) (-22507.251405024,-10429.0305631767,11384.1367685053) (-19335.05847361,-9993.35054511898,22315.6219322163) (-1.30878529412165e-05,2.01938686601564e-05,1.1904127916301e-05) (-40413.6322483844,-29124.7513665871,-39624.1074375598) (-27408.6901914157,-17500.3271860271,-38200.2678865528) (-12734.8621940363,-7380.88422843473,-34878.8507136422) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-20554.1714931312,-14530.2632337892,344.444937551932) (-20555.7056100346,-14669.3482320183,926.907430059017) (-20584.5179266825,-14954.6484540083,2160.62569157175) (-20708.9524727262,-15578.9103902418,4983.12434917793) (-21390.055261637,-17163.2134580582,11927.1446160111) (-24840.9869963754,-22129.6361285028,32474.433856439) (-44799.5510875949,-43871.8493414063,-28948.1362061308) (-30368.1060482483,-29075.9472796531,-27922.9997595223) (-20038.5497655315,-18413.4640257506,-28039.0199513175) (-9888.39618983212,-8705.27559973347,-27521.397980941) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-15629.2135182375,-19189.9296148401,232.566934827358) (-15665.1105236818,-19365.574247984,660.375811678368) (-15726.9352135926,-19788.7775231955,1569.48211054786) (-15966.8246750627,-20726.2474631173,3498.60446460259) (-16883.4921984906,-22789.3300630086,7148.96585283606) (-19840.5033960312,-27452.267204824,10925.2730354982) (-27038.4204286448,-36171.2135605921,-13922.3179363578) (-19995.7770049131,-27698.72797942,-17154.3862775681) (-13367.4873638157,-18477.8005959885,-18295.6768403871) (-6817.02468915417,-9245.12628509784,-18861.7256740211) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8539.66636577066,-22276.5603640041,125.780045413558) (-8553.38041278348,-22463.140459558,342.000834712299) (-8584.72495233562,-22941.7111284729,775.454395183386) (-8743.10671620441,-23933.9638829523,1601.69004610557) (-9233.20590168741,-25708.7787294718,2694.39810365942) (-10361.3944489982,-28625.8981260064,2438.1101366528) (-11984.0188282412,-31329.9505368343,-5218.42931273009) (-9692.66157093355,-26317.6347242598,-7836.55590389685) (-6741.5556649048,-18547.6142558914,-8986.6767493447) (-3518.02844927037,-9590.9129931275,-9594.46323626211) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26214.8337371485,58.891225684294,20.519951553409) (-26231.7501557177,116.010575038155,-53.4722176038273) (-26193.8172377799,252.892223381643,-338.202168111104) (-26028.1505898615,497.495711089575,-964.508286976877) (-25584.306967691,985.897803441844,-2157.71751880296) (-24662.1873699669,1789.44502101953,-4283.87852680915) (-22796.3947328409,2608.9677600555,-7522.22482778063) (-19361.3191905613,2374.08878049123,-10984.5526045305) (-14211.4350025965,1649.40715801822,-13954.2603911432) (-7557.16118233658,804.143922846424,-15714.1419595133) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26130.7657915003,10.259631864546,44.3327601282475) (-26166.9460235177,104.044458289891,45.1644129893497) (-26186.1091845588,337.524762027565,-62.7389528535427) (-26146.7295197554,864.707101527833,-416.251063159287) (-25971.4788176316,2029.53778990896,-1301.33065554506) (-25496.733607672,4240.8402401328,-3430.33765874687) (-24102.0348346715,7053.11528934973,-7730.54862226153) (-20531.3667255409,5807.10200529441,-11661.5037602428) (-15011.9341347421,3710.11747843903,-14711.3261718491) (-7932.11278500233,1711.59722811885,-16435.8639316351) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25959.7426288882,-291.362875264571,147.486889773542) (-26007.0537022349,-189.583320103932,312.65520175076) (-26118.7847501176,102.257174404227,526.24502351918) (-26336.7463495292,899.565472923144,796.778772199281) (-26776.3606289731,2881.97951932568,935.068613191459) (-27504.5044514864,7616.89809384398,-593.319043770633) (-27879.4295921084,16805.3377933394,-8915.24697746761) (-23558.3805617755,10934.0124720464,-13673.5287516056) (-16913.5969771383,6082.62597116126,-16603.052757648) (-8811.02762600043,2585.13453738573,-18079.5093877096) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25492.4072144559,-1060.26495767999,278.375096699315) (-25596.9986068671,-985.56203482179,682.185196563669) (-25865.9873635858,-709.17066420855,1398.61935819275) (-26461.6741334586,101.350791986109,2870.02438343744) (-27914.6949654973,2336.49319216894,5748.33231095264) (-31406.6843438282,9529.29235942126,8652.77841458147) (-38363.1066343156,39240.6947053412,-14715.7508453519) (-29815.1854522975,14861.6950611007,-18436.9527499956) (-20289.3930878894,6809.97588558324,-20017.5952085609) (-10245.521163183,2612.57918163435,-20657.37513531) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24752.7641454595,-2404.19816966436,402.091467942934) (-24880.6629904257,-2368.19551413225,1005.94146522569) (-25282.0299658829,-2212.23346572933,2216.94293177533) (-26269.1497123756,-1782.73387692952,5136.22784245414) (-28854.3872429237,-878.145255700875,12987.8085033573) (-36804.2556810788,677.832200365634,38408.149386375) (-68145.720001675,-184.552737703862,-39021.1257220733) (-39149.843990029,2230.89207308947,-26393.3981853399) (-24293.6570139907,1470.53300744712,-24094.3373096961) (-11758.0146471717,554.89257914439,-23202.4884612728) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-23521.8076869038,-4332.43565774965,449.204641885719) (-23673.9904037884,-4357.82114467189,1161.65739742667) (-24147.7498740226,-4380.43721215363,2627.70840390372) (-25343.0575574464,-4368.45864336598,6061.98827149874) (-28324.9228044425,-4412.85977254446,14567.9578626123) (-36916.7408570039,-4348.09882385053,37528.2101314639) (-66499.7564654388,-264.077629298888,-36548.821794555) (-40128.1496203142,-3798.99116103039,-27032.7178913904) (-25117.146449835,-3247.64451201309,-24875.8007875398) (-12124.6159653931,-1776.31877757649,-23735.4855351134) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-21469.472956404,-6776.50030239756,452.278443211991) (-21623.0847394823,-6882.24066151523,1174.95361590805) (-22109.5912956717,-7097.94072708662,2629.96913068951) (-23324.6766408435,-7595.16327598565,6009.50559271518) (-26373.4518455906,-9193.89068848023,14656.7369492158) (-35280.7244337599,-15385.0237097373,41639.327795261) (-68901.8647906027,-44576.7908921064,-40029.1469264794) (-38805.3823067993,-18999.0965281607,-26437.2915009388) (-23643.4711039515,-10093.8007910079,-23356.3543094094) (-11300.2669490274,-4533.57219794353,-22033.6961340465) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-18207.2738683615,-9525.70925827483,402.311331107053) (-18376.8927993899,-9657.38332661921,998.641185563699) (-18811.462461553,-9994.51274589988,2122.1577392497) (-19832.1367467256,-10751.398532573,4401.57726983676) (-22160.7988720104,-12570.7659839486,8549.19617567623) (-27231.9154095507,-17011.6092577946,12566.7101369018) (-36576.8060848513,-25934.7865975779,-14298.0391603622) (-27647.8239148145,-18588.7205445299,-17428.6972774311) (-18163.7414313551,-11677.0924442335,-17720.213958392) (-8970.78866329007,-5614.93105199412,-17556.4626308717) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-13369.7930509171,-12057.9009094644,272.771183871009) (-13535.3183997853,-12191.5732531504,677.168986504095) (-13862.1975871806,-12579.753082702,1397.67169689416) (-14575.3511592478,-13412.3436614781,2667.14330998268) (-16037.4150081381,-15009.1677317309,4259.4678674106) (-18581.9635080014,-17818.0262230709,3807.34494465618) (-21445.1758535676,-20970.203161995,-6750.4830660122) (-17618.2606268908,-17289.4199599523,-10427.3000286071) (-12070.9584472448,-11785.399202192,-11615.5221872121) (-6115.66226040053,-5927.2646659088,-12004.5510020521) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7088.60743005407,-13651.0938314626,142.13398628219) (-7175.15634246668,-13761.5806565717,333.917319386245) (-7339.13685545774,-14156.3170925399,664.893232347364) (-7706.64588906919,-14973.6469386404,1189.73568237198) (-8395.4262532874,-16266.1414073769,1608.92970961603) (-9366.75381205097,-18049.5152688358,845.778118429984) (-10056.4918717263,-19160.1529468893,-2891.79905319009) (-8518.53593810801,-16487.4288448699,-4867.91580109655) (-5982.1265645082,-11710.69500638,-5702.04909730563) (-3070.822980082,-6029.53051804869,-6046.98871435403) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26222.1716054012,-12.4492562877321,19.7871245390897) (-26261.9904135048,30.8694531365307,19.1579291951029) (-26182.0006988873,113.964550516709,-106.623160216037) (-25971.005883254,262.602060962716,-426.369927785842) (-25514.9844514763,550.184306840846,-1045.87675083748) (-24523.3733177934,974.20417596073,-2158.89497897252) (-22485.0640106351,1352.59839978694,-3822.82410097061) (-18881.0783336211,1227.36940562882,-5530.43436354118) (-13677.3494050859,837.724395097906,-6902.24435614381) (-7201.2481284684,405.966468805448,-7664.12387882281) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-26112.5297959025,-58.6881267135479,28.0028748296946) (-26178.2055539,6.08318455656178,64.0486737949602) (-26185.4138673482,150.232048330596,27.0858587694661) (-26177.7614730688,472.420702134356,-151.700829092946) (-26065.6629406591,1124.78107030049,-632.113469525558) (-25565.1642244366,2203.75530144371,-1793.23397824451) (-23918.2275745668,3295.04078785961,-3919.48362641905) (-20176.4502879191,2805.63603586915,-5852.66669427923) (-14569.6054789122,1813.46721530396,-7270.73817031209) (-7616.96469295817,842.562036924361,-8022.48183047245) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25866.6697206662,-233.313818319738,81.5527833833537) (-25976.9452027409,-155.942900877153,213.470369325179) (-26141.606776921,30.2018672502962,356.322577210058) (-26504.3372739337,505.401310417601,490.932893334686) (-27136.3096261006,1564.46292536586,411.200035402822) (-27774.079354967,3629.07967905557,-744.549438726533) (-27256.9941329553,6310.11374273066,-4382.05785275229) (-23058.9687961784,4709.04722595001,-6784.88080842672) (-16460.1889489299,2767.07421267627,-8191.89583401149) (-8502.94879269789,1203.96255943958,-8861.37518982845) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-25250.2815402821,-635.754276110478,160.314783616055) (-25458.0296397743,-577.276022273212,442.678937917843) (-25878.0171694321,-396.140027929591,881.050638946778) (-26772.8249431724,92.7773125035901,1604.82544657211) (-28530.8811879188,1279.74344513261,2505.73114922553) (-31291.9630788841,4064.35509856224,1955.73446477533) (-33552.6102251847,9406.87787880453,-5951.52608042933) (-27839.3150089242,5484.99821227659,-8703.34751012684) (-19318.8249901925,2817.0858973048,-9723.92729245928) (-9798.30903748226,1134.5388394537,-10101.7156981729) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-24307.1441020482,-1321.3919355767,240.017616055736) (-24564.7011220781,-1295.07703367046,641.856759104488) (-25200.8374467981,-1195.80820313319,1360.33241522677) (-26659.2427168223,-938.616082137339,2781.81881431183) (-29678.9378982898,-410.952351828206,5297.06526663633) (-35265.8223373567,496.106900857346,7326.88012061949) (-42915.2268867734,1349.02465154483,-9845.75976702768) (-33314.9733356829,1177.37833345053,-11373.0105425305) (-22140.1756355318,640.131403936644,-11349.537427623) (-10993.5644425371,219.457141722812,-11198.9059345188) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-22834.3865974606,-2270.35636677498,261.543341753811) (-23131.3788561665,-2291.4390803681,715.293840830528) (-23875.9455432035,-2328.25025893185,1575.93156580588) (-25631.2552263689,-2355.40295104525,3280.91610363329) (-29196.698963054,-2454.98473254859,6196.72464296536) (-35705.0828372321,-2708.76176908515,8189.93529313505) (-44231.6879355724,-2737.22836813941,-9991.88021703689) (-34518.3095214012,-2523.26881479895,-11901.0731676968) (-22835.6074775924,-1800.2161063593,-11742.2646296501) (-11270.3455577575,-943.432791246559,-11433.6451043201) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-20578.1293327512,-3418.74247597806,257.042485547604) (-20866.9355341201,-3488.82701684288,698.281216660573) (-21617.0886969806,-3646.43167091706,1523.96002995323) (-23333.6992266164,-3975.83577477343,3153.41543945595) (-26775.4378704504,-4856.54623150868,5956.96296327401) (-33022.5925365635,-7226.99861168722,8217.06790867194) (-41525.8041045696,-12191.0480165,-9705.17312897387) (-32063.8518071622,-7828.48007029174,-11141.4923731226) (-21110.4375569613,-4598.73531306186,-10876.006713414) (-10392.2072696051,-2166.00572194345,-10561.4934621415) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-17176.0565062584,-4670.05300283688,220.093164756629) (-17460.3974540087,-4755.46305567253,570.233858206956) (-18106.4600078597,-4967.50241789468,1186.30215149253) (-19477.5925761531,-5416.54295931969,2272.46516546699) (-22003.8394102992,-6397.75664190232,3656.71611415567) (-25865.7308662221,-8312.48795577629,3376.02091491439) (-29424.7819256597,-10756.9245840223,-5210.12667675362) (-24346.6481607805,-8512.93700318754,-7826.84549787815) (-16634.1486591549,-5548.97096636324,-8406.20261678137) (-8340.71459197931,-2721.57820437753,-8480.70420565636) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-12405.6754461747,-5783.14640538501,148.975797802508) (-12646.6409874688,-5869.85097585548,374.686305670908) (-13116.0813069194,-6092.75670387154,753.824311384978) (-14043.3455203143,-6551.12186667871,1356.39757980914) (-15554.9075387999,-7372.91983986768,1849.05330843626) (-17519.8183312558,-8604.57809616028,1078.99827207381) (-18711.4451445588,-9593.10152538489,-2818.55549557242) (-15957.5593813909,-8180.0741875288,-4812.11955673301) (-11187.5465434766,-5680.35640044397,-5564.14602642125) (-5700.66723865583,-2877.9518631944,-5822.76738935037) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6504.16156249635,-6447.83103572375,80.2387627805803) (-6632.52457338176,-6518.59113283839,186.347150678739) (-6862.58084686051,-6743.31495728024,360.349395488451) (-7328.86944771682,-7186.27179340284,617.722880860868) (-8030.46036255226,-7848.74678917982,728.583939437352) (-8812.13798382682,-8661.97232979053,231.362344844851) (-9077.07194737687,-9045.0660558684,-1296.09304902093) (-7819.51823762148,-7882.06907961562,-2293.11585742098) (-5560.3017064432,-5653.81264818174,-2741.48446774827) (-2847.65334311194,-2919.27559688542,-2923.33037102676) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) ) ; boundaryField { fuel { type fixedValue; value uniform (0.1 0 0); } air { type fixedValue; value uniform (-0.1 0 0); } outlet { type zeroGradient; } frontAndBack { type empty; } } // ************************************************************************* //
[ "huberlulu@gmail.com" ]
huberlulu@gmail.com
9a2a1b306e6c364de900f3c5aabca26b18ca8d00
31b41446d2b11f7378eab6ff1ca139d8602c4a03
/include/fast_io_core_impl/integers/sto/sto.h
2d881d1c2efe6ad2538d7fff37f2a088f24d567f
[ "MIT" ]
permissive
BornIncompetence/fast_io
d66c0ad45bee8232f9861f81f9809f118b546902
4a2ce333d292753369df4202af090abe0142725a
refs/heads/master
2023-02-07T00:05:01.158373
2020-12-17T00:54:15
2020-12-17T00:54:15
273,757,379
0
0
NOASSERTION
2020-06-20T17:48:59
2020-06-20T17:48:58
null
UTF-8
C++
false
false
8,642
h
#pragma once namespace fast_io { namespace details { template<char8_t base,my_unsigned_integral T> inline constexpr void detect_overflow(T const t1,T const t2,std::size_t length) { constexpr std::size_t max_size{cal_max_int_size<T,base>()}; constexpr std::remove_cvref_t<T> mx_val(std::numeric_limits<std::remove_cvref_t<T>>::max()/static_cast<std::remove_cvref_t<T>>(base)); if(max_size<=length)[[unlikely]] { if((max_size<length)|(t1<base)|(mx_val<t2))[[unlikely]] throw_input_overflow_error(); } } template<char8_t base,my_unsigned_integral T> inline constexpr void detect_signed_overflow(T const t1,T const t2,std::size_t length,bool sign) { constexpr std::size_t max_size{cal_max_int_size<T,base>()}; constexpr std::remove_cvref_t<T> mx_val(std::numeric_limits<std::remove_cvref_t<T>>::max()/static_cast<std::remove_cvref_t<T>>(base)); if(max_size<=length)[[unlikely]] { if((max_size<length)|(t1<base)|(mx_val<t2)|(static_cast<T>(get_int_max_unsigned<T>()+sign)<t1))[[unlikely]] throw_input_overflow_error(); } } template<my_integral T,char8_t base,bool no_dec=false,character_input_stream input> inline constexpr T input_base_number(input& in) { using unsigned_char_type = std::make_unsigned_t<typename input::char_type>; using unsigned_t = my_make_unsigned_t<std::remove_cvref_t<T>>; if constexpr(my_unsigned_integral<T>) { if constexpr(sizeof(unsigned_t)==16) { //special optimization for uint128_t std::size_t length{}; auto ig{igenerator(in)}; auto it{begin(ig)}; auto ed{end(ig)}; bool okay{}; for(;it!=ed&&*it==u8'0';++it) okay=true; std::uint64_t t{}; for(;it!=ed;++it) { unsigned_char_type e(static_cast<unsigned_char_type>(*it)-u8'0'); if constexpr(base<=10) { if(base<=e)[[unlikely]] break; t*=base; t+=e; } else { constexpr char8_t bm10{base-10}; if(e<=10) { t*=base; t+=e; } else if(static_cast<unsigned_char_type>(e-=17)<bm10||static_cast<unsigned_char_type>(e-=32)<bm10) { t*=base; t+=e+10; } else[[unlikely]] break; } if(++length==19)[[unlikely]] break; } if(it!=ed&&length==19) //phase 2 { unsigned_t t2(t); unsigned_t t3{}; for(++it;it!=ed;++it) { unsigned_char_type e(static_cast<unsigned_char_type>(*it)-u8'0'); if constexpr(base<=10) { if(base<=e)[[unlikely]] break; t3=t2; t2*=base; t2+=e; } else { constexpr char8_t bm10{base-10}; if(e<=10) { t3=t2; t2*=base; t2+=e; } else if(static_cast<unsigned_char_type>(e-=17)<bm10||static_cast<unsigned_char_type>(e-=32)<bm10) { t3=t2; t2*=base; t2+=e+10; } else[[unlikely]] break; } ++length; } detect_overflow<base>(t2,t3,length); return t2; }; if(!length&&!okay)[[unlikely]] throw_malformed_input(); return t; } else { unsigned_t t{},t1{}; std::size_t length{}; auto ig{igenerator(in)}; auto it{begin(ig)}; auto ed{end(ig)}; bool okay{}; for(;it!=ed&&*it==u8'0';++it) okay=true; for(;it!=ed;++it) { unsigned_char_type ch(*it); if constexpr(base<=10) { unsigned_char_type const e(ch-u8'0'); if(base<=e)[[unlikely]] break; t1=t; t*=base; t+=e; } else { constexpr unsigned_char_type mns{base-10}; unsigned_char_type ch1(ch-static_cast<unsigned_char_type>(u8'0')); unsigned_char_type ch2(ch-static_cast<unsigned_char_type>(u8'A')); unsigned_char_type ch3(ch-static_cast<unsigned_char_type>(u8'a')); if(ch2<mns) ch1=ch2+static_cast<unsigned_char_type>(10); else if(ch3<mns) ch1=ch3+static_cast<unsigned_char_type>(10); else if(static_cast<unsigned_char_type>(9)<ch1)[[unlikely]] break; t=(t1=t)*static_cast<unsigned_char_type>(base)+ch1; } ++length; } if(!length)[[unlikely]] throw_malformed_input(); detect_overflow<base>(t,t1,length); return t; } } else { std::size_t length{}; auto ig{igenerator(in)}; auto it{begin(ig)}; auto ed{end(ig)}; if(it==ed) #ifdef __cpp_exceptions throw fast_io::eof(); #else fast_terminate(); #endif auto const sign{*it=='-'}; if(sign) ++it; bool okay{}; for(;it!=ed&&*it==u8'0';++it) okay=true; if constexpr(sizeof(unsigned_t)==16) { std::uint64_t t{}; for(;it!=ed;++it) { unsigned_char_type e(static_cast<unsigned_char_type>(*it)-u8'0'); if constexpr(base<=10) { if(base<=e)[[unlikely]] break; t*=base; t+=e; } else { constexpr char8_t bm10{base-10}; if(e<=10) { t*=base; t+=e; } else if(static_cast<unsigned_char_type>(e-=17)<bm10||static_cast<unsigned_char_type>(e-=32)<bm10) { t*=base; t+=e+10; } else[[unlikely]] break; } if(++length==19)[[unlikely]] break; } if(it!=ed&&length==19) //phase 2 { unsigned_t t2(t); unsigned_t t3{}; for(++it;it!=ed;++it) { unsigned_char_type e(static_cast<unsigned_char_type>(*it)-u8'0'); if constexpr(base<=10) { if(base<=e)[[unlikely]] break; t3=t2; t2*=base; t2+=e; } else { constexpr char8_t bm10{base-10}; if(e<=10) { t3=t2; t2*=base; t2+=e; } else if(static_cast<unsigned_char_type>(e-=17)<bm10||static_cast<unsigned_char_type>(e-=32)<bm10) { t3=t2; t2*=base; t2+=e+10; } else[[unlikely]] break; } ++length; } detect_signed_overflow<base>(t2,t3,length,sign); if(sign) return -static_cast<T>(t2); else if(!length&&!okay)[[unlikely]] throw_malformed_input(); return static_cast<T>(t2); }; if(sign) return -static_cast<T>(t); else if(!length&&!okay)[[unlikely]] throw_malformed_input(); return t; } else { unsigned_t t{},t1{}; for(;it!=ed;++it) { if constexpr(base<=10) { unsigned_char_type const e(static_cast<unsigned_char_type>(*it)-u8'0'); if(base<=e)[[unlikely]] break; t1=t; t*=base; t+=e; } else { unsigned_char_type e(static_cast<unsigned_char_type>(*it)-u8'0'); constexpr char8_t bm10{base-10}; if(e<=10) { t1=t; t*=base; t+=e; } else if(static_cast<unsigned_char_type>(e-=17)<bm10||static_cast<unsigned_char_type>(e-=32)<bm10) { t1=t; t*=base; t+=e+10; } else[[unlikely]] break; } ++length; } detect_signed_overflow<base>(t,t1,length,sign); if(sign) return -static_cast<T>(t); else if(!length&&!okay)[[unlikely]] throw_malformed_input(); return static_cast<T>(t); } } } } template<char8_t base,bool uppercase,character_input_stream input,details::my_integral T> inline constexpr void space_scan_define(input& in,manip::base_t<base,uppercase,T> v) { v.reference=details::input_base_number<std::remove_cvref_t<T>,base>(in); } template<character_input_stream input,details::my_integral T> inline constexpr void space_scan_define(input& in,T& a) { a=details::input_base_number<std::remove_cvref_t<T>,10>(in); } template<char8_t base,bool uppercase,character_input_stream input,typename T> requires std::same_as<std::byte,std::remove_cvref_t<T>> inline constexpr void space_scan_define(input& in,manip::base_t<base,uppercase,T> v) { v.reference=static_cast<std::byte>(details::input_base_number<char8_t,base>(in)); } template<character_input_stream input> inline constexpr void space_scan_define(input& in,std::byte& a) { a=std::byte(details::input_base_number<char8_t,10>(in)); } /* template<char8_t base,bool uppercase,character_input_stream input,typename T> requires std::same_as<std::byte,std::remove_cvref_t<T>> inline constexpr void scan_define(input& in,manip::no_decoration<manip::base_t<base,uppercase,T>> v) { v.reference.reference=static_cast<std::byte>(details::input_base_number<char8_t,base>(in)); } template<character_input_stream input,std::integral T> inline constexpr void scan_define(input& in,manip::no_decoration<T> v) { v.reference=details::input_base_number<std::remove_cvref_t<T>,10>(in); } template<char8_t base,bool uppercase,character_input_stream input,std::integral T> inline constexpr void scan_define(input& in,manip::no_decoration<manip::base_t<base,uppercase,T>> v) { v.reference.reference=details::input_base_number<std::remove_cvref_t<T>,base>(in); } */ }
[ "euloanty@live.com" ]
euloanty@live.com
1cf1a0cdd4606e922ae2aa08d1f716f4eee15ff9
fbee47d54b428b41d7a54085d37e8705aebd8e13
/tc/conditional_range.h
d2faf3330bb87574ddca53f10e615eae7bf83a17
[ "BSL-1.0" ]
permissive
shaho1090/range
0fc3b117c05ad07ea5b459207769955fce965d40
dde90fdc74765098fa7bdcafdb3b0ea51fe5254a
refs/heads/master
2021-05-25T12:53:32.512470
2020-03-16T09:25:49
2020-03-16T09:25:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,391
h
// think-cell public library // // Copyright (C) 2016-2020 think-cell Software GmbH // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt #pragma once #include "range_defines.h" #include "range_fwd.h" #include "range_adaptor.h" #include "index_range.h" #include "meta.h" #include "size.h" #include "type_list.h" #include "variant.h" #include "interval.h" namespace tc { namespace no_adl { // MSVC 15.8 complains if declared inside select_range_adaptor template<typename... Rng> using select_range_adaptor_size_result_t = tc::common_type_t<decltype(tc::size_raw(std::declval<Rng const&>()))...>; template<typename... Rng> struct select_range_adaptor { private: std::variant<decltype(tc::make_reference_or_value(std::declval<Rng>()))...> m_ubaserng; public: template<typename... FuncRng> explicit select_range_adaptor(aggregate_tag_t, int n, FuncRng&&... funcrng) noexcept : m_ubaserng([&]() noexcept { STATICASSERTEQUAL( sizeof...(Rng), sizeof...(FuncRng) ); _ASSERT( tc::make_interval(0, tc::explicit_cast<int>(sizeof...(Rng))).contains(n) ); return tc::invoke_with_constant<std::index_sequence_for<FuncRng...>>( [&](auto nconstIndex) noexcept { return decltype(m_ubaserng)( std::in_place_index<nconstIndex()>, tc::aggregate_tag, std::get<nconstIndex()>(std::forward_as_tuple(std::forward<FuncRng>(funcrng)...))() ); }, n ); }()) {} private: template<typename Sink> using enumerate_result_t = tc::common_type_t<decltype(tc::for_each(*tc::as_const(tc::as_lvalue(tc::make_reference_or_value(std::declval<Rng>()))), std::declval<Sink>()))..., INTEGRAL_CONSTANT(tc::continue_)>; public: template<typename Sink> auto operator()(Sink&& sink) const& MAYTHROW -> enumerate_result_t<Sink> { return tc::visit<enumerate_result_t<Sink>>( m_ubaserng, [&](auto const& baserng) noexcept { return tc::for_each(*baserng, std::forward<Sink>(sink)); } ); } private: template<typename Sink> using enumerate_reversed_result_t = tc::common_type_t<decltype(tc::for_each(tc::reverse(*tc::as_const(tc::as_lvalue(tc::make_reference_or_value(std::declval<Rng>())))), std::declval<Sink>()))..., INTEGRAL_CONSTANT(tc::continue_)>; public: template<typename Sink> static auto enumerate_reversed(select_range_adaptor<Rng...> const& rngThis, Sink&& sink) MAYTHROW -> enumerate_reversed_result_t<Sink> { return tc::visit<enumerate_reversed_result_t<Sink>>( rngThis.m_ubaserng, [&](auto const& baserng) noexcept { return tc::for_each(tc::reverse(*baserng), std::forward<Sink>(sink)); } ); } template<ENABLE_SFINAE> auto size() const& noexcept -> select_range_adaptor_size_result_t<SFINAE_TYPE(Rng)...> { return tc::visit<select_range_adaptor_size_result_t<Rng...>>( m_ubaserng, [](auto const& baserng) noexcept { return tc::size_raw(*baserng); } ); } bool empty() const& noexcept { return tc::visit( m_ubaserng, [](auto const& baserng) noexcept { return tc::empty(*baserng); } ); } }; template<typename SelectRangeAdaptor, typename... Rng> // Using tc::void_t<...> instead of decltype(std::declval<...>(), void()) does not compile with MSVC 15.8 struct range_value<SelectRangeAdaptor, select_range_adaptor<Rng...>, decltype(std::declval<tc::common_range_value_t<decltype(std::declval<Rng>())...>>(), void())> final { using type = tc::common_range_value_t<decltype(std::declval<Rng>())...>; }; } using no_adl::select_range_adaptor; template<typename... FuncRng> auto select_range_impl(std::true_type, int n, FuncRng&&... funcrng) noexcept -> tc::common_reference_xvalue_as_ref_t<decltype(std::declval<FuncRng>()())...> { #if TC_WIN // The following assert must not hold: A function pointer to a function that returns a fixed size array by reference must also return a fixed size array by reference, not by value! // If MSVC fixed that bug, please unify select_range. static_assert( std::is_same< decltype(std::declval< int (&())[3] >()()), int [3] >::value ); tc::storage_for<tc::common_reference_xvalue_as_ref_t<decltype(std::declval<FuncRng>()())...>> result; scope_exit(result.dtor()); _ASSERT(0<=n && n<sizeof...(FuncRng)); tc::invoke_with_constant<std::index_sequence_for<FuncRng...>>( [&](auto nconstIndex) noexcept { result.ctor(std::get<nconstIndex()>(std::forward_as_tuple(std::forward<FuncRng>(funcrng)...))()); }, n ); return *tc_move(result); #else static_assert( std::is_same< decltype(std::declval< int (&())[3] >()()), int (&)[3] >::value ); return tc::invoke_with_constant<std::index_sequence_for<FuncRng...>>( [&](auto nconstIndex) noexcept -> tc::common_reference_xvalue_as_ref_t<decltype(std::declval<FuncRng>()())...> { return std::get<nconstIndex()>(std::forward_as_tuple(std::forward<FuncRng>(funcrng)...))(); }, n ); #endif } template<typename... FuncRng> auto select_range_impl(std::false_type, int n, FuncRng&&... funcrng) return_ctor_noexcept( select_range_adaptor<decltype(std::declval<FuncRng>()())...>, (aggregate_tag, n, std::forward<FuncRng>(funcrng)...) ) template<typename... FuncRng> auto select_range(int n, FuncRng&&... funcrng) noexcept { return select_range_impl(tc::has_common_reference_xvalue_as_ref<tc::type::list<decltype(std::forward<FuncRng>(funcrng)())...>>(), n, std::forward<FuncRng>(funcrng)...); } template<typename FuncRngTrue, typename FuncRngFalse> auto conditional_range(tc::bool_context b, FuncRngTrue&& funcrngTrue, FuncRngFalse&& funcrngFalse) { return select_range(b ? 0 : 1, std::forward<FuncRngTrue>(funcrngTrue), std::forward<FuncRngFalse>(funcrngFalse)); } template<typename FuncRngTrue> auto conditional_range(tc::bool_context b, FuncRngTrue&& funcrngTrue) noexcept { return conditional_range(b, std::forward<FuncRngTrue>(funcrngTrue), MAKE_LAZY(tc::empty_range())); } } #include <boost/vmd/assert.hpp> // BOOST_PP_VARIADIC_SIZE returns always at least 1, so there is no point of checking against 0. However, empty __VA_ARGS__ will trigger a compilation error in MAKE_LAZY // The macro might not compile, when the ranges contain top-level commas, even when expanded from another macro. Using parens helps, e.g., // tc_conditional_range(b, MAKE_CONSTEXR_ARRAY(0)) // fails to compile on MSVC 15.8. However, // tc_conditional_range(b, (MAKE_CONSTEXR_ARRAY(0))) // compiles. #define tc_conditional_range(b, ...) \ BOOST_VMD_ASSERT(BOOST_PP_LESS_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 2)) \ tc::conditional_range(b, \ MAKE_LAZY(BOOST_PP_VARIADIC_ELEM(0, __VA_ARGS__)) \ BOOST_PP_COMMA_IF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 2)) \ BOOST_PP_EXPR_IF(BOOST_PP_EQUAL(BOOST_PP_VARIADIC_SIZE(__VA_ARGS__), 2), MAKE_LAZY(BOOST_PP_VARIADIC_ELEM(1, __VA_ARGS__))) \ ) namespace tc { template<typename Rng, typename Fn> auto transform_range_if(tc::bool_context b, Rng&& rng, Fn fn) noexcept { return conditional_range(b, /*funcrngTrue*/[&]() noexcept -> decltype(auto) { return fn(std::forward<Rng>(rng)); }, /*funcrngFalse*/[&]() noexcept -> decltype(auto) { return std::forward<Rng>(rng); } ); } }
[ "treh@think-cell.com" ]
treh@think-cell.com
5a78259df9f356764bc32b93bb8950571e1668dd
95d8806bbd272396bb44166a543ac8d33ef85ac8
/sdk/cpp_plugin/plugin.cpp
49512d5277bcd18503ff3344bec8ae7f6411cf9c
[]
no_license
tmud/tortilla
522e351e091865b835c1382c5513e4143ef74a97
cdea0f3409e9053763aad79fa01c719bce4dc579
refs/heads/master
2022-05-01T14:50:15.337163
2022-04-16T20:09:27
2022-04-16T20:09:27
23,519,550
29
9
null
2019-03-27T15:51:42
2014-08-31T17:56:22
C++
WINDOWS-1251
C++
false
false
1,062
cpp
#include "stdafx.h" int get_name(lua_State *L) { lua_pushstring(L, "Пример плагина"); return 1; } int get_description(lua_State *L) { lua_pushstring(L, "Этот плагин собран из примера в SDK мад-клиента"); return 1; } int get_version(lua_State *L) { lua_pushstring(L, "1.0"); return 1; } int init(lua_State *L) { luaT_run(L, "addMenu", "sdd", "Плагины/Пример...", 1, 2); return 0; } int menucmd(lua_State *L) { if (!luaT_check(L, 1, LUA_TNUMBER)) return 0; int menuid = lua_tointeger(L, 1); lua_pop(L, 1); if (menuid == 1) { MessageBox(NULL, L"Мы в методе плагина", L"plugin", MB_OK); } return 0; } static const luaL_Reg plugin_methods[] = { { "name", get_name }, { "description", get_description }, { "version", get_version }, { "init", init }, { "menucmd", menucmd }, { NULL, NULL } }; int WINAPI plugin_open(lua_State *L) { luaL_newlib(L, plugin_methods); return 1; }
[ "gm79@list.ru" ]
gm79@list.ru
385df8b2c4ae52078614b7148b98ae4d752b6fcb
145de16a64762cf6d41aa6404a8ee01f5bdfb134
/E_5_3/src/main.cpp
c208a0d271e1270bc283714301f1b6ba4edc60b6
[]
no_license
dafer45/DattaQuantumTransportAtomToTransistor
d90c377edc2098cd0de010b7751940f9211a2a04
e63a0db721d42f31c7f6fa958e721a2eba3e9426
refs/heads/master
2020-03-21T02:27:04.135515
2020-01-14T16:12:44
2020-01-14T16:12:44
137,998,984
15
3
null
null
null
null
UTF-8
C++
false
false
7,303
cpp
/* Copyright 2018 Kristofer Björnson * * 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. */ /** @package TBTKQuantumTransportAtomToTransistor * @file main.cpp * @brief Exercise 5.3 * * Solution to exercise 5.3 in the book "Quantum Transport: Atom to * Transistor, S. Datta (2005)". * * @author Kristofer Björnson */ #include "TBTK/Model.h" #include "TBTK/PropertyExtractor/BlockDiagonalizer.h" #include "TBTK/Range.h" #include "TBTK/Solver/BlockDiagonalizer.h" #include "TBTK/Streams.h" #include "TBTK/TBTK.h" #include "TBTK/UnitHandler.h" #include "TBTK/Visualization/MatPlotLib/Plotter.h" #include <complex> using namespace std; using namespace TBTK; using namespace Visualization::MatPlotLib; complex<double> i(0, 1); int main(int argc, char **argv){ //Initialize TBTK. Initialize(); //Set the natural units. Argument order: (angle, charge, count, energy, //length, temperature, time). UnitHandler::setScales( {"1 rad", "1 C", "1 pcs", "1 eV", "1 Ao", "1 K", "1 s"} ); //Parameters. double a = 1; double E_sa = -8.3431; double E_sc = -2.6569; double E_ss = -6.4513/4; double E_sapc = 4.48/4; double E_xx = 1.9546/4; double E_pa = 1.0414; double E_pc = 3.6686; double E_pasc = -5.7839/4; double E_s_apc = 4.8422/4; double E_xy = 5.0779/4; double E_s_a = 8.5914; double E_s_c = 6.7386; double E_pas_c = -4.8077/4; double delta_a = 0.38/3; double delta_c = 0.013/3; Vector3d d1({0, a/2, a/2}); Vector3d d2({a/2, 0, a/2}); Vector3d d3({a/2, a/2, 0}); //Setup the model. Model model; for(int n = 0; n < 200; n++){ Vector3d k; if(n < 100) k = Vector3d({M_PI*(1 - n/100.), M_PI*(1 - n/100.), M_PI*(1 - n/100.)}); else k = Vector3d({2*M_PI*(n-100)/100., 0, 0}); double kd1 = Vector3d::dotProduct(k, d1); double kd2 = Vector3d::dotProduct(k, d2); double kd3 = Vector3d::dotProduct(k, d3); complex<double> g_0 = (1. + exp(-i*kd1) + exp(-i*kd2) + exp(-i*kd3))/4.; complex<double> g_1 = (1. + exp(-i*kd1) - exp(-i*kd2) - exp(-i*kd3))/4.; complex<double> g_2 = (1. - exp(-i*kd1) + exp(-i*kd2) - exp(-i*kd3))/4.; complex<double> g_3 = (1. - exp(-i*kd1) - exp(-i*kd2) + exp(-i*kd3))/4.; for(int s = 0; s < 2; s++){ //Diagonal entries. model << HoppingAmplitude(E_sa, {n, 0, s}, {n, 0, s}); model << HoppingAmplitude(E_sc, {n, 1, s}, {n, 1, s}); model << HoppingAmplitude(E_pa, {n, 2, s}, {n, 2, s}); model << HoppingAmplitude(E_pa, {n, 3, s}, {n, 3, s}); model << HoppingAmplitude(E_pa, {n, 4, s}, {n, 4, s}); model << HoppingAmplitude(E_pc, {n, 5, s}, {n, 5, s}); model << HoppingAmplitude(E_pc, {n, 6, s}, {n, 6, s}); model << HoppingAmplitude(E_pc, {n, 7, s}, {n, 7, s}); model << HoppingAmplitude(E_s_a, {n, 8, s}, {n, 8, s}); model << HoppingAmplitude(E_s_c, {n, 9, s}, {n, 9, s}); //Off-diagonal entries. model << HoppingAmplitude(4*E_ss*g_0, {n, 0, s}, {n, 1, s}) + HC; model << HoppingAmplitude(4*E_sapc*g_1, {n, 0, s}, {n, 5, s}) + HC; model << HoppingAmplitude(4*E_sapc*g_2, {n, 0, s}, {n, 6, s}) + HC; model << HoppingAmplitude(4*E_sapc*g_3, {n, 0, s}, {n, 7, s}) + HC; model << HoppingAmplitude(4*E_pasc*conj(g_1), {n, 1, s}, {n, 2, s}) + HC; model << HoppingAmplitude(4*E_pasc*conj(g_2), {n, 1, s}, {n, 3, s}) + HC; model << HoppingAmplitude(4*E_pasc*conj(g_3), {n, 1, s}, {n, 4, s}) + HC; model << HoppingAmplitude(4*E_xx*g_0, {n, 2, s}, {n, 5, s}) + HC; model << HoppingAmplitude(4*E_xy*g_3, {n, 2, s}, {n, 6, s}) + HC; model << HoppingAmplitude(4*E_xy*g_2, {n, 2, s}, {n, 7, s}) + HC; model << HoppingAmplitude(4*E_pas_c*g_1, {n, 2, s}, {n, 9, s}) + HC; model << HoppingAmplitude(4*E_xy*g_3, {n, 3, s}, {n, 5, s}) + HC; model << HoppingAmplitude(4*E_xx*g_0, {n, 3, s}, {n, 6, s}) + HC; model << HoppingAmplitude(4*E_xy*g_1, {n, 3, s}, {n, 7, s}) + HC; model << HoppingAmplitude(4*E_pas_c*g_2, {n, 3, s}, {n, 9, s}) + HC; model << HoppingAmplitude(4*E_xy*g_2, {n, 4, s}, {n, 5, s}) + HC; model << HoppingAmplitude(4*E_xy*g_1, {n, 4, s}, {n, 6, s}) + HC; model << HoppingAmplitude(4*E_xx*g_0, {n, 4, s}, {n, 7, s}) + HC; model << HoppingAmplitude(4*E_pas_c*g_3, {n, 4, s}, {n, 9, s}) + HC; model << HoppingAmplitude(4*E_s_apc*conj(g_1), {n, 5, s}, {n, 8, s}) + HC; model << HoppingAmplitude(4*E_s_apc*conj(g_2), {n, 6, s}, {n, 8, s}) + HC; model << HoppingAmplitude(4*E_s_apc*conj(g_3), {n, 7, s}, {n, 8, s}) + HC; } //Spin-orbit terms. model << HoppingAmplitude(-i*delta_a, {n, 2, 0}, {n, 3, 0}) + HC; model << HoppingAmplitude(delta_a, {n, 2, 0}, {n, 4, 1}) + HC; model << HoppingAmplitude(i*delta_a, {n, 3, 0}, {n, 2, 0}) + HC; model << HoppingAmplitude(-i*delta_a, {n, 3, 0}, {n, 4, 1}) + HC; model << HoppingAmplitude(-delta_a, {n, 4, 0}, {n, 2, 1}) + HC; model << HoppingAmplitude(i*delta_a, {n, 4, 0}, {n, 3, 1}) + HC; model << HoppingAmplitude(-delta_a, {n, 2, 1}, {n, 4, 0}) + HC; model << HoppingAmplitude(i*delta_a, {n, 2, 1}, {n, 3, 1}) + HC; model << HoppingAmplitude(-i*delta_a, {n, 3, 1}, {n, 4, 0}) + HC; model << HoppingAmplitude(-i*delta_a, {n, 3, 1}, {n, 2, 1}) + HC; model << HoppingAmplitude(delta_a, {n, 4, 1}, {n, 2, 0}) + HC; model << HoppingAmplitude(i*delta_a, {n, 4, 1}, {n, 3, 0}) + HC; model << HoppingAmplitude(-i*delta_c, {n, 5, 0}, {n, 6, 0}) + HC; model << HoppingAmplitude(delta_c, {n, 5, 0}, {n, 7, 1}) + HC; model << HoppingAmplitude(i*delta_c, {n, 6, 0}, {n, 5, 0}) + HC; model << HoppingAmplitude(-i*delta_c, {n, 6, 0}, {n, 7, 1}) + HC; model << HoppingAmplitude(-delta_c, {n, 7, 0}, {n, 5, 1}) + HC; model << HoppingAmplitude(i*delta_c, {n, 7, 0}, {n, 6, 1}) + HC; model << HoppingAmplitude(-delta_c, {n, 5, 1}, {n, 7, 0}) + HC; model << HoppingAmplitude(i*delta_c, {n, 5, 1}, {n, 6, 1}) + HC; model << HoppingAmplitude(-i*delta_c, {n, 6, 1}, {n, 7, 0}) + HC; model << HoppingAmplitude(-i*delta_c, {n, 6, 1}, {n, 5, 1}) + HC; model << HoppingAmplitude(delta_c, {n, 7, 1}, {n, 5, 0}) + HC; model << HoppingAmplitude(i*delta_c, {n, 7, 1}, {n, 6, 0}) + HC; } model.construct(); //Setup and run the solver. Solver::BlockDiagonalizer solver; solver.setModel(model); solver.run(); //Extract the eigenvalues. PropertyExtractor::BlockDiagonalizer propertyExtractor(solver); Array<double> eigenValues({20, 200}); for(unsigned int n = 0; n < 200; n++){ for(unsigned int e = 0; e < 20; e++) eigenValues[{e, n}] = propertyExtractor.getEigenValue({(int)n}, e); } //Plot the eigenvalues. Plotter plotter; plotter.setLabelX("k"); plotter.setLabelY("Energy (eV)"); plotter.setBoundsY(-3, 3); for(int n = 0; n < 20; n++){ plotter.plot( eigenValues.getSlice({n, IDX_ALL}), {{"color", "black"}, {"linestyle", "-"}} ); } plotter.save("figures/Spectrum.png"); return 0; }
[ "dafer45@hotmail.com" ]
dafer45@hotmail.com
67534c4e6031b93fd03e8cf98e9bb0c7749b7465
5162ecef09ce3e8e2b1b83620cd93067ea026555
/src/zerork/elemental_composition.h
7d52265abb0794d3a821f0a49e8535c4f89d456f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LLNL/zero-rk
572c527deb53c7064179d40eebad53e48328c708
ffc09d1f8b9978eb22b2daf192648a20bd0fb125
refs/heads/master
2023-08-23T16:09:45.431124
2023-06-30T18:27:43
2023-06-30T18:28:21
194,750,365
29
19
null
null
null
null
UTF-8
C++
false
false
2,658
h
#ifndef ELEMENTAL_COMPOSITION_H_ #define ELEMENTAL_COMPOSITION_H_ #include <string> #include <vector> #include <memory> //unique_ptr namespace zerork { class ElementalComposition { public: ElementalComposition(); ElementalComposition(std::string name); ElementalComposition(const ElementalComposition&); ElementalComposition& operator=(ElementalComposition rhs); virtual ~ElementalComposition(); //Getters int GetNumAtoms(const std::string&) const; int GetNumHeavyAtoms() const; int GetNumTotalAtoms() const; std::vector<std::string> GetElementVector() const; std::string& name(); const std::string& name() const; std::string ToString() const; std::string ToStringWithSeparator(std::string) const; //Access operators int& operator[](const std::string&); const int& operator[](const std::string&) const; void clear(); //Comparison operators friend bool operator==(const ElementalComposition& lhs, const ElementalComposition& rhs); friend bool operator!=(const ElementalComposition& lhs, const ElementalComposition& rhs); friend bool operator< (const ElementalComposition& lhs, const ElementalComposition& rhs); friend bool operator> (const ElementalComposition& lhs, const ElementalComposition& rhs); friend bool operator<=(const ElementalComposition& lhs, const ElementalComposition& rhs); friend bool operator>=(const ElementalComposition& lhs, const ElementalComposition& rhs); //Arithmetic operators friend ElementalComposition operator+(ElementalComposition lhs, const ElementalComposition& rhs); friend ElementalComposition operator-(ElementalComposition lhs, const ElementalComposition& rhs); ElementalComposition& operator+=(const ElementalComposition& rhs); ElementalComposition& operator-=(const ElementalComposition& rhs); private: class Impl; std::unique_ptr<ElementalComposition::Impl> impl_; }; //Comparison operators bool operator==(const ElementalComposition& lhs, const ElementalComposition& rhs); bool operator!=(const ElementalComposition& lhs, const ElementalComposition& rhs); bool operator< (const ElementalComposition& lhs, const ElementalComposition& rhs); bool operator> (const ElementalComposition& lhs, const ElementalComposition& rhs); bool operator<=(const ElementalComposition& lhs, const ElementalComposition& rhs); bool operator>=(const ElementalComposition& lhs, const ElementalComposition& rhs); //Binary arithmetic operators ElementalComposition operator+(ElementalComposition lhs, const ElementalComposition& rhs); ElementalComposition operator-(ElementalComposition lhs, const ElementalComposition& rhs); } //end namespace zerork #endif
[ "whitesides1@llnl.gov" ]
whitesides1@llnl.gov
3b4334d32793049050c87416275d11dec939e5b1
2398ff66c3a8abf1951e417a6fc2cf874019a9b3
/WiringCode/ProcessingTesting/ProcessingTesting.ino
d5fafe7c3d522d1071045b2e8486c76002cf212d
[]
no_license
adent11/PID-Box
d312b71393e05c14c5eca8aa2de1a9f5c214ea70
02dcc7171c700da8f75b3d677bcbe9a44fd055f4
refs/heads/master
2020-08-28T04:48:38.013696
2020-02-14T19:54:10
2020-02-14T19:54:10
217,595,458
1
1
null
null
null
null
UTF-8
C++
false
false
316
ino
void setup() { // initialize the serial communication: Serial.begin(9600); } void loop() { // send the value of analog input 0: Serial.println(map(analogRead(A0), 0, 1023, 0, 1000)); // wait a bit for the analog-to-digital converter to stabilize after the last // reading: delay(2); }
[ "55511021+adent11@users.noreply.github.com" ]
55511021+adent11@users.noreply.github.com
582000115fb39545099491e43518798daca30436
8ea8f6e538e027b31de6550da5375dc52f8d7a62
/CommandLineReader.hpp
0bf9828681776d28da36f524e87d37fcf4c30cde
[]
no_license
grmoon/dijkstra
793f3226896116add34a30b2fe7da7c505e14d71
42d6b9e329af83bef9b84952078610263cb70e60
refs/heads/master
2021-01-19T09:28:58.911170
2017-02-15T23:14:19
2017-02-15T23:14:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,195
hpp
// // CommandLineReader.hpp // dijkstra // // Created by Gregory Moon & Tim Abbott on 2/3/16. // Copyright © 2016 Gregory Moon. All rights reserved. // #ifndef CommandLineReader_hpp #define CommandLineReader_hpp #include <cstdio> #include <map> #include <stdexcept> #include <stdio.h> #include "City.hpp" #include "InputReader.hpp" #include "Road.hpp" //============================================================================================ // CommandLineReader // // A simple class used for parsing command line input if the user chooses to insert information // about their graph from the command line. //============================================================================================ class CommandLineReader : InputReader{ public: static InputReaderResult *read(); static void cleanBuffer(); private: static std::map<unsigned long, City *> promptCities(); static unsigned long promptRoads(bool optional); static std::vector<Road *> promptRoadDetails(unsigned long numRoads, std::map<unsigned long, City *> cities, bool optional); static unsigned long promptLimit(unsigned long numCities, bool start); }; #endif /* CommandLineReader_hpp */
[ "grmoon@asu.edu" ]
grmoon@asu.edu
9fe8f0f67ca025ea07593f2d93f36cab035dde29
d655ad0a3429049b2e4e7efbb5a0dc916d4a135f
/magma_codes/4_4_12_Inv_CHO_CPU_double/inv_cho_cpu_double_read.cpp
de77a5dd3296fd2a0da9507251cdeb8cec21cffb
[]
no_license
davidrvu/sandbox-CUDA
11bdd3734f3ea51be4abcd5b636bba99db7ae6ab
6bce8989263a4e5688a55dd7017870888b5d4285
refs/heads/master
2021-01-17T05:01:54.809753
2018-02-12T04:31:54
2018-02-12T04:31:54
83,054,789
1
0
null
null
null
null
UTF-8
C++
false
false
6,591
cpp
// David Valenzuela Urrutia // GeoInnova // 14 Marzo 2016 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <cuda.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> #include <cublas.h> #include <cublas_v2.h> #include "flops.h" #include "magma.h" #include "magma_lapack.h" #include "magma_types.h" void print_matrix(double *puntero_a_mat, int size, bool wanna_print_mat){ if(wanna_print_mat){ int size_max_print = 5; if(size<=size_max_print){ int fil, col; for(fil = 0; fil < size ; fil++){ for(col = 0; col < size; col++){ printf("%f ", puntero_a_mat[(fil*size)+col]); } printf("\n"); } printf("_______________________\n"); } else{ int fil, col; for(fil = 0; fil < size_max_print ; fil++){ for(col = 0; col < size_max_print; col++){ printf("%f ", puntero_a_mat[(fil*size)+col]); } printf("\n"); } printf("_______________________\n"); } //printf("Mat[m*m-1] = %f \n", puntero_a_mat[size*size-1]); //printf("Mat[m*m] = %f \n", puntero_a_mat[size*size]); //printf("_______________________\n"); } } int main ( int argc , char** argv ){ magma_init (); // initialize Magma int matrix_size; if(argc >= 2){ matrix_size = atoi(argv[1]); // str2num } else{ matrix_size = 5; } FILE *ptr_myfile; bool wanna_print_mat = true; real_Double_t gflops, gpu_perf; real_Double_t gpu_time_inicial, gpu_time_final, gpu_time_delta; magma_int_t info; // num2str int size_str = (int)((ceil(log10(matrix_size))+1)*sizeof(char)); char matrix_size_str[size_str]; sprintf(matrix_size_str, "%i", matrix_size); printf("matrix_size_str = %s \n", matrix_size_str); // FILENAME char file_name[80] = "/home/david/matrix_data_base/"; char file_name_steps[20] = "mat_"; strcat(file_name_steps, matrix_size_str); strcat(file_name_steps, "x"); strcat(file_name_steps, matrix_size_str); strcat(file_name_steps, "_double_SPD.bin"); strcat(file_name, file_name_steps); printf("file_name = %s \n", file_name); magma_int_t m = matrix_size; // mxm matrix magma_int_t mm = m*m ; // size of a , r , c double *h_mat_in; gflops = FLOPS_SGETRI(m)/1e9; //=================================================================== // Load Matrix File //=================================================================== ptr_myfile=fopen(file_name,"rb"); if (!ptr_myfile){ printf("Unable to open file! : %s \n",file_name); return 1; } magma_dmalloc_cpu(&h_mat_in, mm); double numero; int celda; for (celda = 0; celda < matrix_size*matrix_size; celda++){ fread(&numero,sizeof(double),1,ptr_myfile); h_mat_in[celda] = numero; //printf("%f \n",numero); } fclose(ptr_myfile); printf(" =========================================================== \n"); printf(" Load Matrix File \n"); printf(" =========================================================== \n"); printf(" Matrix Read from BIN file (SIMETRICA Y DEFINIDA POSITIVA) = \n"); print_matrix(h_mat_in,matrix_size,wanna_print_mat); printf(" =========================================================== \n"); printf(" 4_4_12_Inv_CHO_CPU_double \n"); printf(" =========================================================== \n"); printf(" Matriz size = %i \n", m); printf(" ___________________________________________________________ \n"); //=================================================================== // Allocate matrices //=================================================================== printf(" Allocate matrices ... \n"); //=================================================================== // Generate random matrix h_A // for piv //=================================================================== // Initialize the matrix //printf(" Generate random matrix h_A ... \n \n"); //lapackf77_slarnv(&ione, ISEED, &mm , h_A); // random h_A // Symmetrize h_A and increase its diagonal. | OJO: IMPORTANTE!!! magma_smake_hpd(m, h_A, m); // Make a matrix symmetric/symmetric positive definite. Increases diagonal by N, and makes it real. // Sets Aji = conj( Aij ) for j < i, that is, copy lower triangle to upper triangle. /* magma_int_t i, j; for( i=0; i < m; ++i ){ // #define A(i,j) A[i + j*lda] <- OJO!! MUY UTIL!! h_A[i + i*m] = MAGMA_S_MAKE( MAGMA_S_REAL( h_A[i + i*m] ) + m, 0. ); //h_A[i + i*m] = MAGMA_S_MAKE( MAGMA_S_REAL( h_A[i + i*m] ) + 1, 0. ); for( j=0; j < i; ++j ) { h_A[j + i*m] = MAGMA_S_CONJ( h_A[i + j*m] ); } } printf(" Matriz a invertir (SIMETRICA Y DEFINIDA POSITIVA) = h_A = \n"); print_matrix(h_A,m,wanna_print_mat); */ //=================================================================== // Factor the matrix. Both MAGMA and LAPACK will use this factor. //=================================================================== printf(" Factor the matrix. Both MAGMA and LAPACK will use this factor ... \n"); gpu_time_inicial = magma_wtime(); magma_uplo_t uplo = {MagmaLower}; printf(" uplo = %s ===== OK \n", lapack_uplo_const(uplo) ); //opts.uplo = 'Lower'; magma_dpotrf(uplo, m, h_mat_in, m, &info); //=================================================================== // Operation using MAGMA //=================================================================== magma_dpotri(uplo, m, h_mat_in, m, &info ); gpu_time_final = magma_wtime(); if (info != 0){ printf("magma_dpotri returned error %d: %s.\n", (int)info, magma_strerror(info)); } //Copia triangular superior de la invertida, a su triangular inferior. magma_int_t i, j; for( i=0; i < m; ++i ){ for( j=0; j < i; ++j ) { h_mat_in[j + i*m] = h_mat_in[i + j*m]; } } printf(" h_Ainversa (TAMBIÉN ES SIMÉTRICA) = \n"); print_matrix(h_mat_in,m,wanna_print_mat); //=================================================================== // GPU performance //=================================================================== gpu_time_delta = gpu_time_final - gpu_time_inicial; gpu_perf = gflops / gpu_time_delta; printf(" GPU perf = %7.2f | GPU time = %7.10f \n", gpu_perf, gpu_time_delta ); //=================================================================== // Free Memory //=================================================================== printf(" Free Memory ... \n"); magma_free_cpu(h_mat_in); magma_finalize(); // finalize Magma printf(" DONE !! \n"); return 0; }
[ "david.valenzuela.u@gmail.com" ]
david.valenzuela.u@gmail.com
1f4c4fbd797896cb647c3bf2c0d64b0e18f7283f
bf85d6fe20a8a833b39ea5feb5ae8fea93258d51
/Play1/BufferDrawable.h
676d700f85ec0af2ff9f1a296323d96193a32b70
[]
no_license
jblee123/opengl_play1
9a38798e9a936455d959bddddef8338ff820346d
2fbd3da8ce6e50a264c0217b17d048da3fd0323c
refs/heads/master
2016-09-06T08:24:03.060431
2015-03-13T01:56:37
2015-03-13T01:56:37
32,118,809
0
0
null
null
null
null
UTF-8
C++
false
false
686
h
#pragma once #include <vector> #include <GL/glew.h> class BufferDrawable { public: BufferDrawable(); virtual ~BufferDrawable(); virtual void setProgram(GLuint program); virtual void setup(); virtual void cleanup(); protected: void pushCoord4d(float x, float y, float z, std::vector<GLfloat>& coords); void pushCoord4d(float x, float y, std::vector<GLfloat>& coords); void pushCoord3d(float x, float y, float z, std::vector<GLfloat>& coords); void pushCoord3d(float x, float y, std::vector<GLfloat>& coords); void pushCoord2d(float x, float y, std::vector<GLfloat>& coords); GLuint m_program; GLuint m_vao; GLuint m_vbo; };
[ "jblee123@gmail.com" ]
jblee123@gmail.com
670d3ea99a00e4965054dcb53fc1af960baa59b1
2995ccf217790066ff9b61b639096996af193206
/BinaryTree/main.cpp
7abf9b1504f97ed382f9c280915926098a25e3a0
[]
no_license
M0rC1PanN/Implementation-of-data-structures
fcc4f5557864287a845dcb7b8502217b3036b6d9
481b889ec0ed2b26b2d5deb3e256eb262e5df79b
refs/heads/master
2021-08-04T18:20:36.804273
2020-07-19T14:03:00
2020-07-19T14:03:00
200,347,277
0
0
null
null
null
null
UTF-8
C++
false
false
58
cpp
#include "test.h" int main() { TestAll(); return 0; }
[ "soloveym@famcs-steps.yaconnect.com" ]
soloveym@famcs-steps.yaconnect.com
171f8323cac268722fac79a1b2bbb42429d57274
a542c04c1e9ffee6fa48709bd97c9ebcc5665dc4
/imguicolorpicker.cpp
86474c3c76a1a497f651d1360f70f69483e6c6b0
[ "MIT" ]
permissive
aljawary/Stolen-Cheetos
ed05259041f4fec092983e739756766042d82c76
f27ffdec8514df89d6d72b4b319d63933b114695
refs/heads/master
2020-03-31T09:39:31.690751
2018-10-08T15:39:19
2018-10-08T15:39:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
55,297
cpp
// [src] https://github.com/ocornut/imgui/issues/346 // v2.36 // TODO: try to integrate properly within ColorEdit4() // TODO: expose size (how?) // TODO: expose ID in api? // TODO: massage, cleanup #include "ImGui\imgui.h" #define IMGUI_DEFINE_MATH_OPERATORS #include "ImGui\imgui_internal.h" // ImSaturate #define IM_F32_TO_INT8(_VAL) ((int)((_VAL) * 255.0f + 0.5f)) static const char* FindTextDisplayEnd(const char* text, const char* text_end = NULL) { const char* text_display_end = text; if (!text_end) text_end = (const char*)-1; while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) text_display_end++; return text_display_end; } IMGUI_API bool ImGui::MyColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) { float col4[4] = { col[0], col[1], col[2], 1.0f }; if (!MyColorEdit4(label, col4, flags & ~ImGuiColorEditFlags_Alpha)) return false; col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; return true; } // Edit colors components (each component in 0.0f..1.0f range) // Click on colored square to open a color picker (unless ImGuiColorEditFlags_NoPicker is set). Use CTRL-Click to input value and TAB to go to next item. IMGUI_API bool ImGui::MyColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) { ImGuiWindow* window = GetCurrentWindow(); if (window->SkipItems) return false; ImGuiContext& g = *GImGui; const ImGuiStyle& style = g.Style; const ImGuiID id = window->GetID(label); const float w_full = CalcItemWidth(); const float square_sz_with_spacing = (flags & ImGuiColorEditFlags_NoColorSquare) ? 0.0f : (g.FontSize + style.FramePadding.y * 2.0f + style.ItemInnerSpacing.x); // If no mode is specified, defaults to RGB if (!(flags & ImGuiColorEditFlags_ModeMask_)) flags |= ImGuiColorEditFlags_RGB; // If we're not showing any slider there's no point in querying color mode, nor showing the options menu, nor doing any HSV conversions if (flags & ImGuiColorEditFlags_NoSliders) flags = (flags & (~ImGuiColorEditFlags_ModeMask_)) | ImGuiColorEditFlags_RGB | ImGuiColorEditFlags_NoOptions; // Read back edit mode from persistent storage if (!(flags & ImGuiColorEditFlags_NoOptions)) flags = (flags & (~ImGuiColorEditFlags_ModeMask_)) | (g.ColorEditModeStorage.GetInt(id, (flags & ImGuiColorEditFlags_ModeMask_)) & ImGuiColorEditFlags_ModeMask_); // Check that exactly one of RGB/HSV/HEX is set //IM_ASSERT(ImIsPowerOfTwo((int)(flags & ImGuiColorEditFlags_ModeMask_))); // float f[4] = { col[0], col[1], col[2], col[3] }; if (flags & ImGuiColorEditFlags_HSV) ImGui::ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); int i[4] = { IM_F32_TO_INT8(f[0]), IM_F32_TO_INT8(f[1]), IM_F32_TO_INT8(f[2]), IM_F32_TO_INT8(f[3]) }; bool alpha = (flags & ImGuiColorEditFlags_Alpha) != 0; bool value_changed = false; int components = alpha ? 4 : 3; ImGui::BeginGroup(); ImGui::PushID(label); if ((flags & (ImGuiColorEditFlags_RGB | ImGuiColorEditFlags_HSV)) != 0 && (flags & ImGuiColorEditFlags_NoSliders) == 0) { // RGB/HSV 0..255 Sliders const float w_items_all = w_full - square_sz_with_spacing; const float w_item_one = ImMax(1.0f, (float)(int)((w_items_all - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); const float w_item_last = ImMax(1.0f, (float)(int)(w_items_all - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); const bool hide_prefix = (w_item_one <= CalcTextSize("M:999").x); const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; const char* fmt_table[3][4] = { { "%3.0f", "%3.0f", "%3.0f", "%3.0f" }, // Short display { "R:%3.0f", "G:%3.0f", "B:%3.0f", "A:%3.0f" }, // Long display for RGBA { "H:%3.0f", "S:%3.0f", "V:%3.0f", "A:%3.0f" } // Long display for HSVV }; const char** fmt = hide_prefix ? fmt_table[0] : (flags & ImGuiColorEditFlags_HSV) ? fmt_table[2] : fmt_table[1]; ImGui::PushItemWidth(w_item_one); for (int n = 0; n < components; n++) { if (n > 0) ImGui::SameLine(0, style.ItemInnerSpacing.x); if (n + 1 == components) ImGui::PushItemWidth(w_item_last); value_changed |= ImGui::DragInt(ids[n], &i[n], 1.0f, 0, 255, fmt[n]); } ImGui::PopItemWidth(); ImGui::PopItemWidth(); } else if ((flags & ImGuiColorEditFlags_HEX) != 0 && (flags & ImGuiColorEditFlags_NoSliders) == 0) { // RGB Hexadecimal Input const float w_slider_all = w_full - square_sz_with_spacing; char buf[64]; if (alpha) ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", i[0], i[1], i[2], i[3]); else ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", i[0], i[1], i[2]); ImGui::PushItemWidth(w_slider_all); if (ImGui::InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) { value_changed |= true; char* p = buf; while (*p == '#' || ImCharIsSpace(*p)) p++; i[0] = i[1] = i[2] = i[3] = 0; if (alpha) sscanf_s(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) else sscanf_s(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); } ImGui::PopItemWidth(); } const char* label_display_end = FindTextDisplayEnd(label); bool picker_active = false; if (!(flags & ImGuiColorEditFlags_NoColorSquare)) { if (!(flags & ImGuiColorEditFlags_NoSliders)) ImGui::SameLine(0, style.ItemInnerSpacing.x); const ImVec4 col_display(col[0], col[1], col[2], 1.0f); if (ImGui::ColorButton(col_display)) { if (!(flags & ImGuiColorEditFlags_NoPicker)) { ImGui::OpenPopup("picker"); ImGui::SetNextWindowPos(window->DC.LastItemRect.GetBL() + ImVec2(-1, style.ItemSpacing.y)); } } else if (!(flags & ImGuiColorEditFlags_NoOptions) && ImGui::IsItemHovered() && ImGui::IsMouseClicked(1)) { ImGui::OpenPopup("context"); } if (ImGui::BeginPopup("picker")) { picker_active = true; if (label != label_display_end) ImGui::TextUnformatted(label, label_display_end); ImGui::PushItemWidth(256.0f + (alpha ? 2 : 1) * (style.ItemInnerSpacing.x)); value_changed |= ImGui::MyColorPicker4("##picker", col, (flags & ImGuiColorEditFlags_Alpha) | (ImGuiColorEditFlags_RGB | ImGuiColorEditFlags_HSV | ImGuiColorEditFlags_HEX)); ImGui::PopItemWidth(); ImGui::EndPopup(); } if (!(flags & ImGuiColorEditFlags_NoOptions) && ImGui::BeginPopup("context")) { // FIXME-LOCALIZATION if (ImGui::MenuItem("Edit as RGB", NULL, (flags & ImGuiColorEditFlags_RGB) ? 1 : 0)) g.ColorEditModeStorage.SetInt(id, (int)(ImGuiColorEditFlags_RGB)); if (ImGui::MenuItem("Edit as HSV", NULL, (flags & ImGuiColorEditFlags_HSV) ? 1 : 0)) g.ColorEditModeStorage.SetInt(id, (int)(ImGuiColorEditFlags_HSV)); if (ImGui::MenuItem("Edit as Hexadecimal", NULL, (flags & ImGuiColorEditFlags_HEX) ? 1 : 0)) g.ColorEditModeStorage.SetInt(id, (int)(ImGuiColorEditFlags_HEX)); ImGui::EndPopup(); } // Recreate our own tooltip over's ColorButton() one because we want to display correct alpha here //if (ImGui::IsItemHovered()) // ImGui::SetTooltip("Color:\n(%.2f,%.2f,%.2f,%.2f)\n#%02X%02X%02X%02X", col[0], col[1], col[2], col[3], IM_F32_TO_INT8(col[0]), IM_F32_TO_INT8(col[1]), IM_F32_TO_INT8(col[2]), IM_F32_TO_INT8(col[3])); //ImGui::SetTooltip(""); } if (label != label_display_end) { ImGui::SameLine(0, style.ItemInnerSpacing.x); ImGui::TextUnformatted(label, label_display_end); } // Convert back if (!picker_active) { for (int n = 0; n < 4; n++) f[n] = i[n] / 255.0f; if (flags & ImGuiColorEditFlags_HSV) ImGui::ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); if (value_changed) { col[0] = f[0]; col[1] = f[1]; col[2] = f[2]; if (alpha) col[3] = f[3]; } } ImGui::PopID(); ImGui::EndGroup(); return value_changed; } IMGUI_API bool ImGui::MyColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) { float col4[4] = { col[0], col[1], col[2], 1.0f }; if (!MyColorPicker4(label, col4, flags & ~ImGuiColorEditFlags_Alpha)) return false; col[0] = col4[1]; col[1] = col4[1]; col[2] = col4[2]; return true; } // ColorPicker v2.50 WIP // see https://github.com/ocornut/imgui/issues/346 // TODO: Missing color square // TODO: English strings in context menu (see FIXME-LOCALIZATION) bool ImGui::MyColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags) { ImGuiIO& io = ImGui::GetIO(); ImGuiStyle& style = ImGui::GetStyle(); ImDrawList* draw_list = ImGui::GetWindowDrawList(); ImGui::PushID(label); ImGui::BeginGroup(); // Setup bool alpha = (flags & ImGuiColorEditFlags_Alpha) != 0; ImVec2 picker_pos = ImGui::GetCursorScreenPos(); float bars_width = ImGui::GetWindowFontSize() * 1.0f; // Arbitrary smallish width of Hue/Alpha picking bars float sv_picker_size = ImMax(bars_width * 2, ImGui::CalcItemWidth() - (alpha ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; float H, S, V; ImGui::ColorConvertRGBtoHSV(col[0], col[1], col[2], H, S, V); // Color matrix logic bool value_changed = false, hsv_changed = false; //ImGui::BeginGroup(); ImGui::InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); if (ImGui::IsItemActive()) { S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); value_changed = hsv_changed = true; } // Hue bar logic ImGui::SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); ImGui::InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); if (ImGui::IsItemActive()) { H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); value_changed = hsv_changed = true; } // Alpha bar logic if (alpha) { ImGui::SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); ImGui::InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); if (ImGui::IsItemActive()) { col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); value_changed = true; } } const char* label_display_end = FindTextDisplayEnd(label); if (label != label_display_end) { ImGui::SameLine(0, style.ItemInnerSpacing.x); ImGui::TextUnformatted(label, label_display_end); } // Convert back color to RGB if (hsv_changed) ImGui::ColorConvertHSVtoRGB(H >= 1.0f ? H - 10 * 1e-6f : H, S > 0.0f ? S : 10 * 1e-6f, V > 0.0f ? V : 1e-6f, col[0], col[1], col[2]); // R,G,B and H,S,V slider color editor if (!(flags & ImGuiColorEditFlags_NoSliders)) { if ((flags & ImGuiColorEditFlags_ModeMask_) == 0) flags = ImGuiColorEditFlags_RGB | ImGuiColorEditFlags_HSV | ImGuiColorEditFlags_HEX; ImGui::PushItemWidth((alpha ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); ImGuiColorEditFlags sub_flags = (alpha ? ImGuiColorEditFlags_Alpha : 0) | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoColorSquare; //if (flags & ImGuiColorEditFlags_RGB) // value_changed |= ImGui::MyColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_RGB); //if (flags & ImGuiColorEditFlags_HSV) // value_changed |= ImGui::MyColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_HSV); //if (flags & ImGuiColorEditFlags_HEX) // value_changed |= ImGui::MyColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_HEX); ImGui::PopItemWidth(); } // Try to cancel hue wrap (after ColorEdit), if any if (value_changed) { float new_H, new_S, new_V; ImGui::ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); if (new_H <= 0 && H > 0) { if (new_V <= 0 && V != new_V) ImGui::ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); else if (new_S <= 0) ImGui::ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); } } // Render hue bar ImVec4 hue_color_f(1, 1, 1, 1); ImGui::ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); ImU32 hue_colors[] = { IM_COL32(255,0,0,255), IM_COL32(255,255,0,255), IM_COL32(0,255,0,255), IM_COL32(0,255,255,255), IM_COL32(0,0,255,255), IM_COL32(255,0,255,255), IM_COL32(255,0,0,255) }; for (int i = 0; i < 6; ++i) { draw_list->AddRectFilledMultiColor( ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), hue_colors[i], hue_colors[i], hue_colors[i + 1], hue_colors[i + 1]); } float bar0_line_y = (float)(int)(picker_pos.y + H * sv_picker_size + 0.5f); draw_list->AddLine(ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bar0_pos_x + bars_width + 1, bar0_line_y), IM_COL32_WHITE); // Render alpha bar if (alpha) { float alpha = ImSaturate(col[3]); float bar1_line_y = (float)(int)(picker_pos.y + (1.0f - alpha) * sv_picker_size + 0.5f); draw_list->AddRectFilledMultiColor(ImVec2(bar1_pos_x, picker_pos.y), ImVec2(bar1_pos_x + bars_width, picker_pos.y + sv_picker_size), IM_COL32_WHITE, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32_BLACK); draw_list->AddLine(ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bar1_pos_x + bars_width + 1, bar1_line_y), IM_COL32_WHITE); } // Render color matrix ImU32 hue_color32 = ImGui::ColorConvertFloat4ToU32(hue_color_f); draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), IM_COL32_WHITE, hue_color32, hue_color32, IM_COL32_WHITE); draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), IM_COL32_BLACK_TRANS, IM_COL32_BLACK_TRANS, IM_COL32_BLACK, IM_COL32_BLACK); // Render cross-hair const float CROSSHAIR_SIZE = 7.0f; ImVec2 p((float)(int)(picker_pos.x + S * sv_picker_size + 0.5f), (float)(int)(picker_pos.y + (1 - V) * sv_picker_size + 0.5f)); draw_list->AddLine(ImVec2(p.x - CROSSHAIR_SIZE, p.y), ImVec2(p.x - 2, p.y), IM_COL32_WHITE); draw_list->AddLine(ImVec2(p.x + CROSSHAIR_SIZE, p.y), ImVec2(p.x + 2, p.y), IM_COL32_WHITE); draw_list->AddLine(ImVec2(p.x, p.y + CROSSHAIR_SIZE), ImVec2(p.x, p.y + 2), IM_COL32_WHITE); draw_list->AddLine(ImVec2(p.x, p.y - CROSSHAIR_SIZE), ImVec2(p.x, p.y - 2), IM_COL32_WHITE); ImGui::EndGroup(); ImGui::PopID(); return value_changed; } bool ImGui::ColorPicker(const char* label, float* col) { const int EDGE_SIZE = 370; const int EDGE_SIZE2 = 280; const ImVec2 SV_PICKER_SIZE = ImVec2(EDGE_SIZE, EDGE_SIZE2); const float SPACING = ImGui::GetStyle().ItemInnerSpacing.x; const float HUE_PICKER_WIDTH = 20.f; const float CROSSHAIR_SIZE = 7.0f; ImColor color(col[0], col[1], col[2]); bool value_changed = false; ImDrawList* draw_list = ImGui::GetWindowDrawList(); // setup ImVec2 picker_pos = ImGui::GetCursorScreenPos(); float hue, saturation, value; ImGui::ColorConvertRGBtoHSV( color.Value.x, color.Value.y, color.Value.z, hue, saturation, value); // draw hue bar ImColor colors[] = { ImColor(255, 0, 0), ImColor(255, 255, 0), ImColor(0, 255, 0), ImColor(0, 255, 255), ImColor(0, 0, 255), ImColor(255, 0, 255), ImColor(255, 0, 0) }; for (int i = 0; i < 6; ++i) { draw_list->AddRectFilledMultiColor( ImVec2(picker_pos.x + SV_PICKER_SIZE.x + SPACING, picker_pos.y + i * (SV_PICKER_SIZE.y / 6)), ImVec2(picker_pos.x + SV_PICKER_SIZE.x + SPACING + HUE_PICKER_WIDTH, picker_pos.y + (i + 1) * (SV_PICKER_SIZE.y / 6)), colors[i], colors[i], colors[i + 1], colors[i + 1]); } draw_list->AddLine( ImVec2(picker_pos.x + SV_PICKER_SIZE.x + SPACING - 2, picker_pos.y + hue * SV_PICKER_SIZE.y), ImVec2(picker_pos.x + SV_PICKER_SIZE.x + SPACING + 2 + HUE_PICKER_WIDTH, picker_pos.y + hue * SV_PICKER_SIZE.y), ImColor(255, 255, 255)); // draw color matrix { const ImU32 c_oColorBlack = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f, 0.f, 0.f, 1.f)); const ImU32 c_oColorBlackTransparent = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f, 0.f, 0.f, 0.f)); const ImU32 c_oColorWhite = ImGui::ColorConvertFloat4ToU32(ImVec4(1.f, 1.f, 1.f, 1.f)); ImVec4 cHueValue(1, 1, 1, 1); ImGui::ColorConvertHSVtoRGB(hue, 1, 1, cHueValue.x, cHueValue.y, cHueValue.z); ImU32 oHueColor = ImGui::ColorConvertFloat4ToU32(cHueValue); draw_list->AddRectFilledMultiColor( ImVec2(picker_pos.x, picker_pos.y), ImVec2(picker_pos.x + SV_PICKER_SIZE.x, picker_pos.y + SV_PICKER_SIZE.y), c_oColorWhite, oHueColor, oHueColor, c_oColorWhite ); draw_list->AddRectFilledMultiColor( ImVec2(picker_pos.x, picker_pos.y), ImVec2(picker_pos.x + SV_PICKER_SIZE.x, picker_pos.y + SV_PICKER_SIZE.y), c_oColorBlackTransparent, c_oColorBlackTransparent, c_oColorBlack, c_oColorBlack ); } // draw cross-hair float x = saturation * SV_PICKER_SIZE.x; float y = (1 - value) * SV_PICKER_SIZE.y; ImVec2 p(picker_pos.x + x, picker_pos.y + y); draw_list->AddLine(ImVec2(p.x - CROSSHAIR_SIZE, p.y), ImVec2(p.x - 2, p.y), ImColor(255, 255, 255)); draw_list->AddLine(ImVec2(p.x + CROSSHAIR_SIZE, p.y), ImVec2(p.x + 2, p.y), ImColor(255, 255, 255)); draw_list->AddLine(ImVec2(p.x, p.y + CROSSHAIR_SIZE), ImVec2(p.x, p.y + 2), ImColor(255, 255, 255)); draw_list->AddLine(ImVec2(p.x, p.y - CROSSHAIR_SIZE), ImVec2(p.x, p.y - 2), ImColor(255, 255, 255)); // color matrix logic ImGui::InvisibleButton("saturation_value_selector", SV_PICKER_SIZE); if (ImGui::IsItemActive() && ImGui::GetIO().MouseDown[0]) { ImVec2 mouse_pos_in_canvas = ImVec2( ImGui::GetIO().MousePos.x - picker_pos.x, ImGui::GetIO().MousePos.y - picker_pos.y); /**/ if (mouse_pos_in_canvas.x < 0) mouse_pos_in_canvas.x = 0; else if (mouse_pos_in_canvas.x >= SV_PICKER_SIZE.x - 1) mouse_pos_in_canvas.x = SV_PICKER_SIZE.x - 1; /**/ if (mouse_pos_in_canvas.y < 0) mouse_pos_in_canvas.y = 0; else if (mouse_pos_in_canvas.y >= SV_PICKER_SIZE.y - 1) mouse_pos_in_canvas.y = SV_PICKER_SIZE.y - 1; value = 1 - (mouse_pos_in_canvas.y / (SV_PICKER_SIZE.y - 1)); saturation = mouse_pos_in_canvas.x / (SV_PICKER_SIZE.x - 1); value_changed = true; } // hue bar logic ImGui::SetCursorScreenPos(ImVec2(picker_pos.x + SPACING + SV_PICKER_SIZE.x, picker_pos.y)); ImGui::InvisibleButton("hue_selector", ImVec2(HUE_PICKER_WIDTH, SV_PICKER_SIZE.y)); if (ImGui::GetIO().MouseDown[0] && (ImGui::IsItemHovered() || ImGui::IsItemActive())) { ImVec2 mouse_pos_in_canvas = ImVec2( ImGui::GetIO().MousePos.x - picker_pos.x, ImGui::GetIO().MousePos.y - picker_pos.y); /**/ if (mouse_pos_in_canvas.y < 0) mouse_pos_in_canvas.y = 0; else if (mouse_pos_in_canvas.y >= SV_PICKER_SIZE.y - 1) mouse_pos_in_canvas.y = SV_PICKER_SIZE.y - 1; hue = mouse_pos_in_canvas.y / (SV_PICKER_SIZE.y - 1); value_changed = true; } // R,G,B or H,S,V color editor //color = ImColor::HSV(hue >= 1 ? hue - 10 * 1e-6 : hue, saturation > 0 ? saturation : 10 * 1e-6, value > 0 ? value : 1e-6); color = ImColor::HSV(hue, saturation, value); col[0] = color.Value.x; col[1] = color.Value.y; col[2] = color.Value.z; return value_changed; } #include <stdio.h> #include <string> #include <iostream> using namespace std; class nqdzhxb { public: int juhcdl; int iazbhjkma; string ugfybjijxodbl; bool firfpixo; nqdzhxb(); string sdboblirvxru(double bslkjjmcvls, bool cjuexubyeo, bool qoifmzpote, string zryza, double rgqhpmjokaxfl); bool deswwanqydolgscwxynsve(); int xeecflibbn(string ynhqpnkat, string ykpttqh, bool jdxlcib, bool tpwkxtenrlgbby, string lgnaavxzqvg, double vkrdgm, int jgetsqvjwjj, double hfzxgvirqlr); string seraekpctmycyd(bool bagvniwubkeyj, int tpgkmuagui); int fukrdppnogdsmfqqjmydqdoc(double nikduvludom, string akaetls, double hpbxjvscw, double xzodi, int oiqsxijp, int jnkdbpkie, bool lbmjtuo, int lyrrrg); int yceytinjorezpfewtrasx(int irnweoxuuhor, bool vdeckxjwumdd, int hprcdvrjkqm, string fzegzwroderck, string lawqsjsqqc, int zyohamxqiiqgb, double wmgcyvsakdp, bool oyznmvz, string hrpuaiionppatqf); string ratopzqiusntuamyocdjrzszd(double jbzly, int vziplalmjsf, int teikryeyiyw, bool rryyvbhfdurnvor, bool vrhjn, bool lmtkihvv, double nhtnlzsubvnsdx, int cpjaopmbmwkepck); string qgzwmzjiosu(bool terxmphqdvouc); int mnagmdljvlhekgvg(); protected: int pgiecpdd; double mfrzktinxdodprs; int ndwqxupjdmow; int jiforltsoj; int bjdwtgzbd; double rwzbngfejpxnfiavx(bool ihwionwgy, bool ltyeyagkbrjuq, double fuiwnmbcnjlgxi, string srlqfu, bool tedfpydgejqe, double npdsnkirh, bool yffqqyjt, int najnhcj, string jamzyyk); void xtuiabahlfztrhjj(string comazj); void bsocjrbevqaxyumb(int xayzdmhjzm, bool imvbgoyyrt); double wabobhvloqfqttowynkbxehkn(double kaubiszyi, double dzdzptgimcqyo, double vzqxtlb); string mpdckvizihitri(int ahezyydessl, bool aougvyjyq, int yomoyrqwpzdjqs, bool xsyrjcaoscktmjn, int iixffvk); void dmgcrznjyuucfg(int ngsqbm); bool onmzlrgkophhcqteeygce(double kgrndbdl, int sshhnirxbafq, double yrhwogjtqu, int baguysefueuj, int kmlwnr, double vqifyeelddc, string pvcvggkxiwbjg, double jgufn, string rnsqmkqs, string fhqperccitlwp); void iqntklvllzfkmxnkyjlgludil(double bckmvhwdgdnsvxx, int gftbdihmbh, double vhcwnaz, string efrjqrawdxqx, double jevlgbalnigr); double igckgccemwfavupzdnxblal(int okwdt, double eomigf, string dwonmazlypgomkc); private: int egzsscqaceyx; int hsqqpgojfdd; int yjpxpbbiyoluvn; bool wbitim; bool mhjwjgqradoes; int yientsppixlqe(string nesliwhtqr); void oapdjpmqnrpbokcnhzf(double owmqpierguk, double hkwslhv); bool uonkiolthjidbbvylaknvggya(int dajgqwvfltac, double hierg, int baela, bool ncnnbsdhliye, double gwwum); int xfbkewndokgbmva(int hjebvrgkczgsmn, string pqfesdiadotej); }; int nqdzhxb::yientsppixlqe(string nesliwhtqr) { double codnhooaj = 84223; bool dibyhzhswvatess = false; int nlegtbxnpwqtcva = 665; string ppahbvdg = "gzvtmzzcjzqaopxheelkxdlbrwyllggqkw"; int orohvkqjnvk = 2112; int zcsnncrsh = 1148; return 53372; } void nqdzhxb::oapdjpmqnrpbokcnhzf(double owmqpierguk, double hkwslhv) { double lnfpsiqmlklwxyc = 30204; string lbeldotcss = "vnqxsxrbrlmunatokuucqsxj"; double feviwtn = 49486; if (49486 == 49486) { int ol; for (ol = 59; ol > 0; ol--) { continue; } } if (30204 != 30204) { int qphahh; for (qphahh = 52; qphahh > 0; qphahh--) { continue; } } if (49486 != 49486) { int hlqsoqd; for (hlqsoqd = 28; hlqsoqd > 0; hlqsoqd--) { continue; } } if (string("vnqxsxrbrlmunatokuucqsxj") == string("vnqxsxrbrlmunatokuucqsxj")) { int shnxenmyo; for (shnxenmyo = 88; shnxenmyo > 0; shnxenmyo--) { continue; } } if (30204 == 30204) { int hzg; for (hzg = 11; hzg > 0; hzg--) { continue; } } } bool nqdzhxb::uonkiolthjidbbvylaknvggya(int dajgqwvfltac, double hierg, int baela, bool ncnnbsdhliye, double gwwum) { bool gezoofhxywyrh = true; double itkmnsreqix = 41768; double agxtsg = 10177; int epoyxeek = 1268; double vzvirtev = 10760; int neinyhw = 1355; int fbebzwhankt = 1280; if (10760 == 10760) { int fxlqykz; for (fxlqykz = 99; fxlqykz > 0; fxlqykz--) { continue; } } return false; } int nqdzhxb::xfbkewndokgbmva(int hjebvrgkczgsmn, string pqfesdiadotej) { int sqhzhyo = 5501; int ooovsmvr = 970; string diydef = "xuhlmxesmgrijttltbvqcxsvlbcwunnzadcxqbgkcxlghsjyrkzydqbqhvz"; if (string("xuhlmxesmgrijttltbvqcxsvlbcwunnzadcxqbgkcxlghsjyrkzydqbqhvz") == string("xuhlmxesmgrijttltbvqcxsvlbcwunnzadcxqbgkcxlghsjyrkzydqbqhvz")) { int nwoxpa; for (nwoxpa = 7; nwoxpa > 0; nwoxpa--) { continue; } } return 52769; } double nqdzhxb::rwzbngfejpxnfiavx(bool ihwionwgy, bool ltyeyagkbrjuq, double fuiwnmbcnjlgxi, string srlqfu, bool tedfpydgejqe, double npdsnkirh, bool yffqqyjt, int najnhcj, string jamzyyk) { int ygixkmxph = 3501; int wuvcrjtvia = 267; int onhaetyukij = 3141; if (3501 != 3501) { int bl; for (bl = 57; bl > 0; bl--) { continue; } } if (267 == 267) { int pfcscdi; for (pfcscdi = 46; pfcscdi > 0; pfcscdi--) { continue; } } return 43351; } void nqdzhxb::xtuiabahlfztrhjj(string comazj) { bool xxqmbk = false; bool ztbvpmenrwtoir = true; string bddeutjyylmxv = "xkwhwszxxsxthsgsqflcnxnzxzovirjhuclvdjemtsnwvyfchunbgtrfcbbhmrcsckphgmajfcdhkcujhbjyteisuiddqx"; bool lklvotaameug = false; bool gpllogael = true; if (string("xkwhwszxxsxthsgsqflcnxnzxzovirjhuclvdjemtsnwvyfchunbgtrfcbbhmrcsckphgmajfcdhkcujhbjyteisuiddqx") != string("xkwhwszxxsxthsgsqflcnxnzxzovirjhuclvdjemtsnwvyfchunbgtrfcbbhmrcsckphgmajfcdhkcujhbjyteisuiddqx")) { int kgqkxg; for (kgqkxg = 29; kgqkxg > 0; kgqkxg--) { continue; } } } void nqdzhxb::bsocjrbevqaxyumb(int xayzdmhjzm, bool imvbgoyyrt) { int qplsvsmvdjtr = 2093; bool hwlwxnudcoabm = false; bool jntlvenj = false; double gyjndez = 37277; int vjtlnusuxgqegr = 3197; double puezyvqq = 28030; int gpjnuqyvupuxyz = 832; string xmemaawmzd = "rwxiltsinjr"; int mrwekgcjjtfteu = 4586; string ftgrbfwawstl = "hgmkxbllvowvnwrr"; if (2093 == 2093) { int fgwuvy; for (fgwuvy = 78; fgwuvy > 0; fgwuvy--) { continue; } } if (37277 != 37277) { int lyn; for (lyn = 82; lyn > 0; lyn--) { continue; } } if (2093 == 2093) { int wjwdpumxad; for (wjwdpumxad = 25; wjwdpumxad > 0; wjwdpumxad--) { continue; } } if (string("hgmkxbllvowvnwrr") != string("hgmkxbllvowvnwrr")) { int edyzh; for (edyzh = 7; edyzh > 0; edyzh--) { continue; } } if (false != false) { int nq; for (nq = 62; nq > 0; nq--) { continue; } } } double nqdzhxb::wabobhvloqfqttowynkbxehkn(double kaubiszyi, double dzdzptgimcqyo, double vzqxtlb) { double hejjzr = 31594; bool cbiajktvhtd = false; double dreeubgtakfyr = 20618; int ndxhxfj = 1274; bool ajkeuxehdggi = true; double vvqxjxfifcgymj = 23134; if (31594 != 31594) { int rkoesedv; for (rkoesedv = 63; rkoesedv > 0; rkoesedv--) { continue; } } return 97888; } string nqdzhxb::mpdckvizihitri(int ahezyydessl, bool aougvyjyq, int yomoyrqwpzdjqs, bool xsyrjcaoscktmjn, int iixffvk) { double rsoewumwqrivkfz = 4358; int qmtjzkcaskjdjf = 4238; int blknrn = 2428; string ljlma = "cksrbletjnwwbiatybsagjzqqmpfrmlpwgvmtqsaksnnunvxlwiigyyurpu"; string sdhfnrbsbocjkkn = "n"; string zzrlv = "eyjopospkjprrgulvnivjfeo"; bool kdxnm = true; if (true == true) { int ppa; for (ppa = 72; ppa > 0; ppa--) { continue; } } if (true == true) { int dltok; for (dltok = 80; dltok > 0; dltok--) { continue; } } if (string("cksrbletjnwwbiatybsagjzqqmpfrmlpwgvmtqsaksnnunvxlwiigyyurpu") != string("cksrbletjnwwbiatybsagjzqqmpfrmlpwgvmtqsaksnnunvxlwiigyyurpu")) { int izxiyhw; for (izxiyhw = 5; izxiyhw > 0; izxiyhw--) { continue; } } if (string("n") == string("n")) { int qrniv; for (qrniv = 93; qrniv > 0; qrniv--) { continue; } } return string("cpeyompqhymsmqs"); } void nqdzhxb::dmgcrznjyuucfg(int ngsqbm) { string sgwpdra = "sphtbss"; bool ehexsehicnjbwvz = false; double xlymhjshsv = 42556; double kclxpho = 23097; int bmsllhqvueplb = 1727; double dbqzfnojf = 82372; string nhnmgdspezq = "iamxrecglaslmashorqruqdlrpyttuxtticekqagejmbcus"; double ymtpmlmzw = 21264; bool qxpwbccyxm = true; } bool nqdzhxb::onmzlrgkophhcqteeygce(double kgrndbdl, int sshhnirxbafq, double yrhwogjtqu, int baguysefueuj, int kmlwnr, double vqifyeelddc, string pvcvggkxiwbjg, double jgufn, string rnsqmkqs, string fhqperccitlwp) { string niojw = "pghihqdgn"; string brtdirzuivdjn = "cczflkzxigjuwcjedmejyrumysnmjhxjfzeitvfqoxxuxkvw"; string qhavacvmiod = "athwyzejcgusjejqmxvpntfrpzgybnxfhiidfibnyhbjtesblmimsku"; int npite = 2256; string pufiqw = "ldhlqbyincjfzdjhwpfcmutoamgmjhdaivqkiv"; int lmkpycoc = 780; bool vjkuwqcvbd = true; string fwfxmqzewkhtb = "wgk"; string alcldxotc = "vfrk"; string qhoqcs = "zmifcyykzhxelxblqcogczttxrkxnesptzqgaihjqbpznvddqtsejbvjvsdqningrqacwzpplzgzbcito"; if (2256 == 2256) { int dar; for (dar = 43; dar > 0; dar--) { continue; } } if (string("cczflkzxigjuwcjedmejyrumysnmjhxjfzeitvfqoxxuxkvw") == string("cczflkzxigjuwcjedmejyrumysnmjhxjfzeitvfqoxxuxkvw")) { int vwnexm; for (vwnexm = 74; vwnexm > 0; vwnexm--) { continue; } } if (string("cczflkzxigjuwcjedmejyrumysnmjhxjfzeitvfqoxxuxkvw") != string("cczflkzxigjuwcjedmejyrumysnmjhxjfzeitvfqoxxuxkvw")) { int grktx; for (grktx = 69; grktx > 0; grktx--) { continue; } } if (780 == 780) { int yfdvk; for (yfdvk = 55; yfdvk > 0; yfdvk--) { continue; } } if (string("pghihqdgn") != string("pghihqdgn")) { int bclkehhv; for (bclkehhv = 68; bclkehhv > 0; bclkehhv--) { continue; } } return false; } void nqdzhxb::iqntklvllzfkmxnkyjlgludil(double bckmvhwdgdnsvxx, int gftbdihmbh, double vhcwnaz, string efrjqrawdxqx, double jevlgbalnigr) { double tvjjezlmbgsxwdk = 29356; double qnpfqwtp = 18844; int vjzhihhvgrgj = 1818; double pqdfrhqkcujcc = 12286; double djggvst = 48444; double tiyytsi = 47723; int ceqwb = 4923; string uuqyomnzoomsm = "zyiyywyjmjujvnmkgqnfnqqrmuyem"; } double nqdzhxb::igckgccemwfavupzdnxblal(int okwdt, double eomigf, string dwonmazlypgomkc) { double krcjabx = 64633; string pxubhyjacukws = "vseyzdccjxwvjcvebuvejcxvfxryxkmynlqlnfnpevhqtzbfcnssfsyejscrmfrheirx"; int dldckdlhbzn = 728; string hgedghekobol = "wybfsevollwcixshfhzuahongbci"; double gfyypgtyvslwvbt = 17285; string vambnur = "shdjrwrukofzqprwyzqdmmdchwdpysxzdbqongkazfczcito"; int nqxurqg = 5926; if (64633 != 64633) { int kmw; for (kmw = 39; kmw > 0; kmw--) { continue; } } if (728 == 728) { int nhw; for (nhw = 22; nhw > 0; nhw--) { continue; } } if (5926 == 5926) { int nndrngqucu; for (nndrngqucu = 3; nndrngqucu > 0; nndrngqucu--) { continue; } } if (64633 != 64633) { int vat; for (vat = 69; vat > 0; vat--) { continue; } } if (string("shdjrwrukofzqprwyzqdmmdchwdpysxzdbqongkazfczcito") == string("shdjrwrukofzqprwyzqdmmdchwdpysxzdbqongkazfczcito")) { int urzy; for (urzy = 41; urzy > 0; urzy--) { continue; } } return 33739; } string nqdzhxb::sdboblirvxru(double bslkjjmcvls, bool cjuexubyeo, bool qoifmzpote, string zryza, double rgqhpmjokaxfl) { string ztfhhyuhunhrixl = "qqgekykxdkgeqbovnqscualkupg"; bool uakwxlkb = false; double ysdaranjexlvz = 52149; bool bcvetlyl = true; bool kapmmray = false; string ldexyrdnuys = "sfdbdscwpgemsvfbmfsqfxufplnnieksh"; int zeqjongtqpdnl = 1298; double ppcgji = 22832; if (string("sfdbdscwpgemsvfbmfsqfxufplnnieksh") == string("sfdbdscwpgemsvfbmfsqfxufplnnieksh")) { int cibby; for (cibby = 22; cibby > 0; cibby--) { continue; } } if (52149 == 52149) { int gtasxm; for (gtasxm = 23; gtasxm > 0; gtasxm--) { continue; } } if (22832 != 22832) { int nbe; for (nbe = 40; nbe > 0; nbe--) { continue; } } if (true == true) { int ilzdw; for (ilzdw = 62; ilzdw > 0; ilzdw--) { continue; } } if (1298 != 1298) { int gy; for (gy = 100; gy > 0; gy--) { continue; } } return string("kcnyszeubwzy"); } bool nqdzhxb::deswwanqydolgscwxynsve() { bool fcpnnblsqbsep = true; int wyzjoeg = 3963; if (3963 == 3963) { int lnyppofw; for (lnyppofw = 11; lnyppofw > 0; lnyppofw--) { continue; } } if (true != true) { int zbqdrsmul; for (zbqdrsmul = 69; zbqdrsmul > 0; zbqdrsmul--) { continue; } } if (3963 == 3963) { int xoqynthfl; for (xoqynthfl = 51; xoqynthfl > 0; xoqynthfl--) { continue; } } if (3963 == 3963) { int ihiqagpo; for (ihiqagpo = 74; ihiqagpo > 0; ihiqagpo--) { continue; } } if (3963 == 3963) { int cwwz; for (cwwz = 39; cwwz > 0; cwwz--) { continue; } } return false; } int nqdzhxb::xeecflibbn(string ynhqpnkat, string ykpttqh, bool jdxlcib, bool tpwkxtenrlgbby, string lgnaavxzqvg, double vkrdgm, int jgetsqvjwjj, double hfzxgvirqlr) { string dbnggafkkyjxjhk = "yxoorwibazksmnfzgzcltzanpskwwngdhragtcvwhzazykequnybanftejehweywlduljwgvhkhdszrrilfnwgdddlvmtmkq"; double ppgazagkfbwogj = 29731; bool xknre = false; int ruvtbc = 4162; int lwfih = 4393; if (4162 != 4162) { int qvhy; for (qvhy = 99; qvhy > 0; qvhy--) { continue; } } if (4393 != 4393) { int frx; for (frx = 19; frx > 0; frx--) { continue; } } if (29731 == 29731) { int moi; for (moi = 44; moi > 0; moi--) { continue; } } if (4393 == 4393) { int coctst; for (coctst = 97; coctst > 0; coctst--) { continue; } } return 45177; } string nqdzhxb::seraekpctmycyd(bool bagvniwubkeyj, int tpgkmuagui) { int nrqpsdpgkvomfbm = 475; if (475 != 475) { int rcuu; for (rcuu = 66; rcuu > 0; rcuu--) { continue; } } if (475 != 475) { int ircysymqt; for (ircysymqt = 74; ircysymqt > 0; ircysymqt--) { continue; } } if (475 != 475) { int dpvveuo; for (dpvveuo = 84; dpvveuo > 0; dpvveuo--) { continue; } } if (475 != 475) { int yttoonajrw; for (yttoonajrw = 8; yttoonajrw > 0; yttoonajrw--) { continue; } } if (475 != 475) { int gzl; for (gzl = 16; gzl > 0; gzl--) { continue; } } return string("okoarjbnmzj"); } int nqdzhxb::fukrdppnogdsmfqqjmydqdoc(double nikduvludom, string akaetls, double hpbxjvscw, double xzodi, int oiqsxijp, int jnkdbpkie, bool lbmjtuo, int lyrrrg) { bool orjwnqtczvqnbmb = true; bool nynfu = true; string iqnjzsqzxzxhlis = ""; double fshjh = 18975; bool jwehgvyfbcpx = false; bool szeicbhpd = false; double nqzpptfhtr = 3724; string ucjuiobaibcbyth = "juehaqgjxqmxemzzlsogmzehssladmkdsjxsnaucsmylglkznxjoxukazhcwdexjfqyuoojwftwnm"; if (true != true) { int zmm; for (zmm = 30; zmm > 0; zmm--) { continue; } } return 19472; } int nqdzhxb::yceytinjorezpfewtrasx(int irnweoxuuhor, bool vdeckxjwumdd, int hprcdvrjkqm, string fzegzwroderck, string lawqsjsqqc, int zyohamxqiiqgb, double wmgcyvsakdp, bool oyznmvz, string hrpuaiionppatqf) { double vmxckgpdpwh = 51882; bool kgtxqd = true; int yxzfotzznzqqih = 2797; double ezsjxikelffns = 4713; int bczjhm = 1608; string dbngtcvldvkny = "eirzgiqdnbewajkxorciiqzkcvouzjxiertplgnzcclkcmdhc"; return 32210; } string nqdzhxb::ratopzqiusntuamyocdjrzszd(double jbzly, int vziplalmjsf, int teikryeyiyw, bool rryyvbhfdurnvor, bool vrhjn, bool lmtkihvv, double nhtnlzsubvnsdx, int cpjaopmbmwkepck) { bool gpjoiywjxrwkx = false; bool ydofolfyp = false; bool jrichtwnhaoox = false; double scxbjkgqmv = 13057; string dljhod = "mlqmmsimnpbbdngzhakeemfnnpbkbchtvmukeezkieoyjwdsiekkuwfnazjonnkmctaalvcsssocguthqdeorkhalg"; string hieepowrqxbdsxn = "ihofbjfqiordifwflrmavhkloegm"; int vcejy = 1042; int nrtjql = 727; bool xbwrep = false; string hngggxxfx = "shxczvffhictuaofvstlszhdafgxtiyx"; if (string("mlqmmsimnpbbdngzhakeemfnnpbkbchtvmukeezkieoyjwdsiekkuwfnazjonnkmctaalvcsssocguthqdeorkhalg") == string("mlqmmsimnpbbdngzhakeemfnnpbkbchtvmukeezkieoyjwdsiekkuwfnazjonnkmctaalvcsssocguthqdeorkhalg")) { int rdk; for (rdk = 22; rdk > 0; rdk--) { continue; } } if (false == false) { int wxg; for (wxg = 86; wxg > 0; wxg--) { continue; } } if (false == false) { int obszdimre; for (obszdimre = 28; obszdimre > 0; obszdimre--) { continue; } } return string("vzfhfhr"); } string nqdzhxb::qgzwmzjiosu(bool terxmphqdvouc) { bool hjmouiep = false; if (false != false) { int ef; for (ef = 24; ef > 0; ef--) { continue; } } return string("kq"); } int nqdzhxb::mnagmdljvlhekgvg() { double lfise = 66023; string qhqkrwhpwzkyws = "fvuyzrobyqervlsvuhoibvqos"; string ceahobwkryvfvs = "lixltjnqkmqtkcuchhanozxrcfjnehyfagwlnhrpfzaszurhawujrkvuqjhylarwlqfmmffofxqti"; string jjfbhehh = "anqrugemnskpstcineclnijkhholsineudfgvslhoybwkngjwodrhthgkcpqmozldlhogx"; string gcgildugsnxvpf = "nduxehtqrijezyyljxgqmplemdfuqerxgcodszlwfbccoztbun"; string fqtyouczsp = "eqsfeffqeqjrzqpefuobrtlnhyekwxpcgsyd"; return 57454; } nqdzhxb::nqdzhxb() { this->sdboblirvxru(17728, true, false, string("sgktqons"), 11145); this->deswwanqydolgscwxynsve(); this->xeecflibbn(string("eatzhpaoyjpmojduoljqydp"), string("sweiaykxreuriutlbthrmqmztpesdrbmpyoienkqlwl"), true, true, string("bhmudathpbzgjoalpvfytjsjcfqezzqhvohbjretrbzmwrxslchsznsndbubwduitjmdwqrtgdayaxzbohgluprocib"), 13220, 317, 3605); this->seraekpctmycyd(true, 3731); this->fukrdppnogdsmfqqjmydqdoc(12684, string("tuswyrhhwnvmyaltdlpzlkdcfnlnkypyezjslgeeqcuideiijexhufwakjpojumfxkslflbboankcovoypvisven"), 21063, 12235, 7270, 2068, false, 41); this->yceytinjorezpfewtrasx(154, true, 394, string("gucigbpmmmvaxuhzbuzwhjgpoixihmxribxsunrf"), string("gcdikwkt"), 5594, 18720, false, string("tagekasoygmmsxxfqlsw")); this->ratopzqiusntuamyocdjrzszd(13435, 6485, 6099, false, true, false, 38796, 6208); this->qgzwmzjiosu(false); this->mnagmdljvlhekgvg(); this->rwzbngfejpxnfiavx(false, false, 7031, string("knrcbpopivkhgmpxpxqg"), false, 67487, false, 106, string("sggpnliixyosnojcxzuhqhjumttgczgszipmhczzpzrqzjodbfntvyumfwjoqozfbfjmhlgcxkhnjtlbzvbx")); this->xtuiabahlfztrhjj(string("myscsabyhnm")); this->bsocjrbevqaxyumb(1483, false); this->wabobhvloqfqttowynkbxehkn(28375, 4182, 5661); this->mpdckvizihitri(3483, false, 2209, false, 2241); this->dmgcrznjyuucfg(6382); this->onmzlrgkophhcqteeygce(90503, 4172, 23608, 8477, 2574, 32593, string("nvltvjgfvyjlwultxaddaotaslylbrptnqqeqrypuphpcsu"), 38024, string("mtjpaqqotjaukljgyzqeogpnyalmysxkhsppgdcdizfrdycgvwmokmhypiszmhdezbrzictrhinrlauugwfsmkzhfpiehkq"), string("cdjjglvsrnzzqyufxyudlkvjiavhvsvypwsbcpgecm")); this->iqntklvllzfkmxnkyjlgludil(16608, 3755, 34634, string("ivgbipchjtwbdqpiitkhapchxzrdafpaaadcqcoazwcjwnepmxacoemdcmdyrmvorcgurlmyjcspvipow"), 38752); this->igckgccemwfavupzdnxblal(3371, 13140, string("dfwjjkxldzenqqjzpvotfnwdsfletudymdgkdmoxifjirhcjhailhxksjcocvvrdfmaeetmvslsdswyiejklx")); this->yientsppixlqe(string("hvexmfyblfsnbpzyarngadlalvhndpqgaaufaiibxkzfefrlppkdaqkhvvlnavjzknskprmdadlutqyjmljsuqmzzytsfnmpj")); this->oapdjpmqnrpbokcnhzf(43131, 5343); this->uonkiolthjidbbvylaknvggya(2054, 30059, 3987, true, 29640); this->xfbkewndokgbmva(828, string("gedmwxnphtvjuusdpzdhravhqcfrkgsswpagfcwiuzrumzbsjxzxlairrykqrnrvfqcjrmbclygsc")); } #include <stdio.h> #include <string> #include <iostream> using namespace std; class gpgqxpb { public: double gcyltjgiqn; gpgqxpb(); int swpbnjerrijz(int ziovppbalofz, int mfylsfszfpftefw, int mtbacc, string owkfe, string bisekdwrwosjb, int yekpjatqyl, double rqganpvldfzyt, double wiopro); int zvkdqlitrstoi(string owaxkokbhal, double ylltygi, bool cvrhbapqb, double irnqkfjph, bool zyothi, string lieostyil, string hvktix); void odxmcgsbdtmmcsfdf(double fuhifdrypnrowr, string gphgdpicqdro, bool vlnstr, int bajlfqdjxthvk, bool myeszkexm, double sxdogac, double kvxsjdy, string qkhzwmrzre, string lhwcebaebsmik, string igtapnwcji); string jeysykegyrwwiupbc(string eurtvyzgawxol, double oylega, int ijmtgh, double qqbfwxad, string rmvaguc, string ixvioonqp, string szkbftfnfvlhhy, bool bygqphcgao, int gmzbbjr); int dnvtigrrpezaiwk(double lmdvilik, double xrrdl); bool eklpisgscix(bool paphkgykosox, string csifxqlgzsdu, string adjgjh, bool rwrinpfc, string tlhhwymrdzbbc, double vyesdotsfz, string ejcfjmnifbrqyt); int yuvkrgdsiphfeegwpxoriide(string drcyefkqsyav, int tzochb, int ukwefhsvykokuim, int qhqepzixwjdmv, string zfffykvuqexgu, double kfrmmflrrhvwd, int xglwbkonborjby, int uqbxehzkesdlm, int rukywlphcvim); string aiwsmgljifkonqvmzvahsx(double vbjvjr, string ygdviizhdo, string maccfunski, int ikhssfxhgqmngd); protected: int yakcxqyrkydv; int mqyfpb; bool rvzndxvtyx; double pnfjxkeouvd; void gpplnzrmahycvyqltuvi(string nonrdjjyucef, bool hluymspqggzrahv, bool mpcqjhemihxpca, double zrkipuflkjwj, double zdortlxuytx, bool spohcqzazwotu, string lnbcvprfuexd, string vspkcmfbyt, int fbtfgrfw, string ntfcy); double drmyfamskqf(int bewzzhawvoai, int ttsyvdi, double mvaqpgdihjzqf, double hszxct, bool jdxdxltenbkubh, double pdqngaslhhldxv, double qquxgpgo, string dnlvtcfn, double dqobaqt, string fovfwvz); double xwkzblowabfjrzlp(bool hyeiuqbce, string volzzvwbia, double szsooi, double bohfxzcnsjmpvy, string hpyobpav, double qihpjvrh, bool ouvnu, bool zjpxvqxgjv); double tbaedyfgdypclfkyfxgc(int uatwpuuap, double wjmgzamn, bool lknrxfvbypm, int btgfxhy, string ongecdue, double lxfnkgqocgzwdvr, double crywxisaxqd); double bjjvsjqdsmmpjdsg(double zqbua, string bhcowddxavp, string uqzhlupthjwocl, int fslygtahmi, int mpudsvuvh, string etnhy, int dnebgwcr, string fvadmzmruickqj, bool kwhgpqvde, double ljxkzmizzjat); void ffkcoguklotxz(int mlznyan, double fmsswcx, string zholhmblzh, bool pchegifaxhjrm, string lzovf, bool gnxjaooygdxpej, int mszkmfcztyers, string wwhaizptxdbrzyo); double mblbdlhoubrozqdnpxzqerqsd(int xliyfpeecq, int ndfyvghzyy, bool gbvcwonglm, bool negqcbdku, bool fbvsamxfiklwhwk, string fasnxinwcbii, bool dorduldt, int otzot, bool injnzcwkpvmm); private: string uzbphy; bool dtmzmkq; int ptmutocahdorwnx; bool pdbkwtzobdlip; string cwfbtdf; void ehaulsagdeoku(double rdvevppf, double mvqabejliyeyjka, bool yamsjpnywkkv); int ydfngpnauqaygls(double tntxtwjd, bool cntli, bool adirjojx, double wiwprup, string glfvhcam); }; void gpgqxpb::ehaulsagdeoku(double rdvevppf, double mvqabejliyeyjka, bool yamsjpnywkkv) { string yyvxyboqskzae = "itckjutoyuidukquuhxistclvtywrnjlrbujexlwcpjukbcqpfdhevp"; } int gpgqxpb::ydfngpnauqaygls(double tntxtwjd, bool cntli, bool adirjojx, double wiwprup, string glfvhcam) { double emvfydtqj = 5195; bool frxrihcu = true; double woddn = 81296; string vgthprxpojqzv = "ektbmzjuradsscjnnknqbmktuzsceujyrrzwzxiojyuypjzissmhsvbzgflujofqzpjlvlalhocopdlykeaxo"; double cnvslzf = 11852; int onkakjj = 858; double eporhji = 63672; double whzoxuaqed = 5805; bool wuskhib = true; double bkllmhxdltuo = 75097; if (81296 != 81296) { int xgspfntgz; for (xgspfntgz = 31; xgspfntgz > 0; xgspfntgz--) { continue; } } return 18627; } void gpgqxpb::gpplnzrmahycvyqltuvi(string nonrdjjyucef, bool hluymspqggzrahv, bool mpcqjhemihxpca, double zrkipuflkjwj, double zdortlxuytx, bool spohcqzazwotu, string lnbcvprfuexd, string vspkcmfbyt, int fbtfgrfw, string ntfcy) { int oujtmorvb = 3652; bool mtinoijs = true; double jepdoyazoezne = 24016; bool wwqvrdoh = true; double egeya = 2932; bool lldmr = false; } double gpgqxpb::drmyfamskqf(int bewzzhawvoai, int ttsyvdi, double mvaqpgdihjzqf, double hszxct, bool jdxdxltenbkubh, double pdqngaslhhldxv, double qquxgpgo, string dnlvtcfn, double dqobaqt, string fovfwvz) { int wfbxzqxad = 1355; bool hdgxxurtmkqpco = true; int rynvhaxuqwvceqq = 2520; int zvgxzr = 2957; bool xxpdrecsigah = false; double qotmigmqbvbyqz = 23823; int zdookluwzbka = 41; int pqhprtwpkdwdox = 3011; if (41 != 41) { int iwhxzg; for (iwhxzg = 76; iwhxzg > 0; iwhxzg--) { continue; } } if (false == false) { int mdzxpjirtw; for (mdzxpjirtw = 21; mdzxpjirtw > 0; mdzxpjirtw--) { continue; } } return 14881; } double gpgqxpb::xwkzblowabfjrzlp(bool hyeiuqbce, string volzzvwbia, double szsooi, double bohfxzcnsjmpvy, string hpyobpav, double qihpjvrh, bool ouvnu, bool zjpxvqxgjv) { int zwutvbqijmvfc = 567; string mycvyanifxy = "kporjsdkwufuyfdqskzzgkdzyvixtfoupvxemmjgttgkyjgojjpptxeyerbihfbjgtxhpdaplswvwcpaniyljnwfqggaoeh"; string grbmz = "klcpktfhgshinpylhbjqluvppstowbjfrzxvkvjtjxixqpclwottnqmkvdnagazyototuovgxcwcheutnurg"; string zvblgsjnpift = "tigzogvwnsowvqg"; bool juffvxwd = false; bool omgwwjwh = true; int wtyhdcdgksl = 2294; double ampfwhqwmuii = 20453; int hsrewujuryozjkx = 1394; if (string("klcpktfhgshinpylhbjqluvppstowbjfrzxvkvjtjxixqpclwottnqmkvdnagazyototuovgxcwcheutnurg") != string("klcpktfhgshinpylhbjqluvppstowbjfrzxvkvjtjxixqpclwottnqmkvdnagazyototuovgxcwcheutnurg")) { int yf; for (yf = 46; yf > 0; yf--) { continue; } } return 62552; } double gpgqxpb::tbaedyfgdypclfkyfxgc(int uatwpuuap, double wjmgzamn, bool lknrxfvbypm, int btgfxhy, string ongecdue, double lxfnkgqocgzwdvr, double crywxisaxqd) { int urdlgy = 246; double excyy = 17899; double ibotzrdjjwn = 27495; string dxwtleg = "cehjvgxxnxmieae"; return 83697; } double gpgqxpb::bjjvsjqdsmmpjdsg(double zqbua, string bhcowddxavp, string uqzhlupthjwocl, int fslygtahmi, int mpudsvuvh, string etnhy, int dnebgwcr, string fvadmzmruickqj, bool kwhgpqvde, double ljxkzmizzjat) { int pphssog = 4982; double nwsgtrhbkezj = 77573; string cbincrbkbsuvvb = "thukjnfaxumvnqvtdapfvcshqxfdpbfwipsesewrribxsejxoaeuzothkdidakhbgazfsqsdfpfyzclbifjlwzhfxszzyicqf"; int ognugmms = 1596; string fuyvcexplzs = "esoesxtwgoqdyzwxbzjmunjsnkaekkvmrtqfeuinwt"; int hlbqflsbbaejnj = 2011; return 10776; } void gpgqxpb::ffkcoguklotxz(int mlznyan, double fmsswcx, string zholhmblzh, bool pchegifaxhjrm, string lzovf, bool gnxjaooygdxpej, int mszkmfcztyers, string wwhaizptxdbrzyo) { string etggzgg = "kesxqrsipxflqrlsmrcaeyzikwrybkslapkfvgkgziawhfpfplajabrizfd"; double gjdbvdht = 35098; double jxoazifcdd = 4304; double viwgoelsdr = 4854; int tfbccfrrtryiwxj = 253; if (4854 == 4854) { int otiy; for (otiy = 7; otiy > 0; otiy--) { continue; } } if (253 == 253) { int cgvkrik; for (cgvkrik = 78; cgvkrik > 0; cgvkrik--) { continue; } } if (4304 != 4304) { int fkytz; for (fkytz = 38; fkytz > 0; fkytz--) { continue; } } } double gpgqxpb::mblbdlhoubrozqdnpxzqerqsd(int xliyfpeecq, int ndfyvghzyy, bool gbvcwonglm, bool negqcbdku, bool fbvsamxfiklwhwk, string fasnxinwcbii, bool dorduldt, int otzot, bool injnzcwkpvmm) { bool cezucvyr = false; string zlejemoovg = "qhvbkiltrpwecazjwqmcejcqbxakhgtgvrpsipwdjkkfauhfgpuoevtrvyiqwwqy"; if (string("qhvbkiltrpwecazjwqmcejcqbxakhgtgvrpsipwdjkkfauhfgpuoevtrvyiqwwqy") == string("qhvbkiltrpwecazjwqmcejcqbxakhgtgvrpsipwdjkkfauhfgpuoevtrvyiqwwqy")) { int zmrjb; for (zmrjb = 33; zmrjb > 0; zmrjb--) { continue; } } return 50554; } int gpgqxpb::swpbnjerrijz(int ziovppbalofz, int mfylsfszfpftefw, int mtbacc, string owkfe, string bisekdwrwosjb, int yekpjatqyl, double rqganpvldfzyt, double wiopro) { string onswepdvnplfwe = "kgufqdhkpiksxjlqajxjcgszbvhhigfzmibbulujqzskcjzqmrg"; double bhxsxvv = 13362; string rnpofxigesn = "hqgonxqjxjryeggtvfvtijfjgiqnwo"; bool ybadtbznpzv = true; if (string("hqgonxqjxjryeggtvfvtijfjgiqnwo") != string("hqgonxqjxjryeggtvfvtijfjgiqnwo")) { int jiccjn; for (jiccjn = 30; jiccjn > 0; jiccjn--) { continue; } } if (string("kgufqdhkpiksxjlqajxjcgszbvhhigfzmibbulujqzskcjzqmrg") != string("kgufqdhkpiksxjlqajxjcgszbvhhigfzmibbulujqzskcjzqmrg")) { int cgbl; for (cgbl = 82; cgbl > 0; cgbl--) { continue; } } if (true != true) { int wascijbgsm; for (wascijbgsm = 1; wascijbgsm > 0; wascijbgsm--) { continue; } } if (true != true) { int jodjpngxlo; for (jodjpngxlo = 93; jodjpngxlo > 0; jodjpngxlo--) { continue; } } if (string("kgufqdhkpiksxjlqajxjcgszbvhhigfzmibbulujqzskcjzqmrg") != string("kgufqdhkpiksxjlqajxjcgszbvhhigfzmibbulujqzskcjzqmrg")) { int tbmhykjveb; for (tbmhykjveb = 51; tbmhykjveb > 0; tbmhykjveb--) { continue; } } return 44939; } int gpgqxpb::zvkdqlitrstoi(string owaxkokbhal, double ylltygi, bool cvrhbapqb, double irnqkfjph, bool zyothi, string lieostyil, string hvktix) { double gckycalhtkq = 16031; string wicnxzwlu = "srbtznbtvftkzokhurbhlnybcnwt"; int qsdcifh = 2693; bool rsneegkob = false; return 65324; } void gpgqxpb::odxmcgsbdtmmcsfdf(double fuhifdrypnrowr, string gphgdpicqdro, bool vlnstr, int bajlfqdjxthvk, bool myeszkexm, double sxdogac, double kvxsjdy, string qkhzwmrzre, string lhwcebaebsmik, string igtapnwcji) { double uqvqpcaep = 20783; double qcxrdxjqvqdizp = 62237; double ucsfzjjxyayud = 48701; bool pzdiuhpznsop = false; bool jnprfwfm = false; double comog = 15854; int rtzhsep = 4938; string susnbfdktornqba = "wvvmodrlaotipycklwfeyrtwvcnygayoailpdpbcvckgcupzahkwouafqm"; if (20783 == 20783) { int ld; for (ld = 98; ld > 0; ld--) { continue; } } if (20783 != 20783) { int bdtxtylb; for (bdtxtylb = 6; bdtxtylb > 0; bdtxtylb--) { continue; } } } string gpgqxpb::jeysykegyrwwiupbc(string eurtvyzgawxol, double oylega, int ijmtgh, double qqbfwxad, string rmvaguc, string ixvioonqp, string szkbftfnfvlhhy, bool bygqphcgao, int gmzbbjr) { string znlajuhykgvu = "nopbvbwuyalafehebehvkvpqwsiffdefykszjdzpcjnzjcxwpmn"; double mbvkrazzajz = 29851; double rrxnw = 51946; string jdvuiomq = "ehtghpcnwqojfhstakdepicvhrnvwhteahttayentiorzaioviickaienctymkzvy"; int odmmlmayfchg = 713; double igckmwatb = 58635; bool ckslopr = true; bool hcvjapocllfp = false; int msgalneojoun = 1512; if (29851 != 29851) { int sxemlhwn; for (sxemlhwn = 93; sxemlhwn > 0; sxemlhwn--) { continue; } } if (1512 != 1512) { int svysiweweb; for (svysiweweb = 77; svysiweweb > 0; svysiweweb--) { continue; } } return string("eifivkjadulxtpmm"); } int gpgqxpb::dnvtigrrpezaiwk(double lmdvilik, double xrrdl) { return 40037; } bool gpgqxpb::eklpisgscix(bool paphkgykosox, string csifxqlgzsdu, string adjgjh, bool rwrinpfc, string tlhhwymrdzbbc, double vyesdotsfz, string ejcfjmnifbrqyt) { int buqinuqh = 697; int cpzpxaaiiqky = 168; double nbkkwyrmxtav = 4999; int jdnseceu = 63; int grjvb = 4043; string vesqsmno = "pdzfrxyejlmjehtxkhsztsgyygynztagbnergyknwjw"; double drpakybpvj = 48739; int wcjleqnczua = 2509; if (2509 != 2509) { int mrw; for (mrw = 52; mrw > 0; mrw--) { continue; } } if (2509 == 2509) { int heu; for (heu = 62; heu > 0; heu--) { continue; } } if (63 != 63) { int siroh; for (siroh = 69; siroh > 0; siroh--) { continue; } } return true; } int gpgqxpb::yuvkrgdsiphfeegwpxoriide(string drcyefkqsyav, int tzochb, int ukwefhsvykokuim, int qhqepzixwjdmv, string zfffykvuqexgu, double kfrmmflrrhvwd, int xglwbkonborjby, int uqbxehzkesdlm, int rukywlphcvim) { bool ksmckkljdslytp = false; double hhcdauxoc = 28488; string fquwnugbg = "udvfmqjyofszrvkqhiyvbrvbbuedeuafuhjojluscclgfbrqikbjcuslfjewnhozsxpteuudw"; string iiihq = "cwbymzggmqmgsczfwwmkjyrmcrlynrugxlvkqfprupniqlkwghjpwbrqbassjgopotncwgypvwklpgiytqftlmuqxgqhfoo"; int lgcsvdsohgdf = 2793; int dtebcaohfldwukq = 4656; string ilkpza = "fkdkquhpuidcbmzlgagib"; bool kfjhgexsnexa = true; int hnxpsbrq = 1440; int lpzxtmzntcir = 265; if (4656 != 4656) { int lubi; for (lubi = 97; lubi > 0; lubi--) { continue; } } if (string("fkdkquhpuidcbmzlgagib") != string("fkdkquhpuidcbmzlgagib")) { int lhrsnjsosd; for (lhrsnjsosd = 3; lhrsnjsosd > 0; lhrsnjsosd--) { continue; } } if (265 != 265) { int kj; for (kj = 68; kj > 0; kj--) { continue; } } if (string("cwbymzggmqmgsczfwwmkjyrmcrlynrugxlvkqfprupniqlkwghjpwbrqbassjgopotncwgypvwklpgiytqftlmuqxgqhfoo") != string("cwbymzggmqmgsczfwwmkjyrmcrlynrugxlvkqfprupniqlkwghjpwbrqbassjgopotncwgypvwklpgiytqftlmuqxgqhfoo")) { int gvvslhb; for (gvvslhb = 6; gvvslhb > 0; gvvslhb--) { continue; } } return 4104; } string gpgqxpb::aiwsmgljifkonqvmzvahsx(double vbjvjr, string ygdviizhdo, string maccfunski, int ikhssfxhgqmngd) { int fnqlwyrhiysyk = 2466; double apivklzwja = 844; string tpiktpqu = "sophlogsfnemuqsktypizjsypghfcdfcetdrnxheffdcqfqjbbycjudoxgi"; if (844 != 844) { int bjtwnacqod; for (bjtwnacqod = 37; bjtwnacqod > 0; bjtwnacqod--) { continue; } } return string("k"); } gpgqxpb::gpgqxpb() { this->swpbnjerrijz(945, 1158, 4626, string("bujhttsukocaoezdqcsysuduzdtxkbnepxbqsswynkrqgblnhqpoxmgmqpvvkkfctuu"), string("slyqymiuojkhmsbussvdiwizmduxsdyyjhdzcyuvnfjwczgjyjvgciccueeikfduwapkzrwoh"), 3749, 11418, 71708); this->zvkdqlitrstoi(string("qeykxxtjzqphhvsddznrhmcwdvkcumtyvmngaslb"), 1163, true, 15971, false, string("wjhepbbdjjifbjxiizeibnfpijwfvuuslrjmcaklvhmzmqwdsejjxd"), string("mcupnllovlcsmpoygacdjmchdjdbxobycjqaoopcohkaaiepfnxsttqlgnnenvjpsfhrdyqvxfspxbxrjbtfkt")); this->odxmcgsbdtmmcsfdf(4446, string("pcfpeekfgpdlilzrupzvyvowbhsloduepnyiaixjggczhzkefllhndircilkbxdhqzzoaazrfgsvxgdrodgioycvcbsz"), true, 1238, false, 28844, 1751, string("npzrzoel"), string("qnlfokpasdswuekaikqcebqabp"), string("hykxqvbfplyptjwqpaxtnadbwkgojtuzdlizwccebwmrpzrpognkoapdkdwdmdiekwsvxxqvozalahixqrkrvwqemlltkqo")); this->jeysykegyrwwiupbc(string("hipmmbkowleklxrivtsczvqq"), 71526, 1987, 260, string("lkgqrauycjpeoah"), string("zmjn"), string("lmfapimhkifxnzpmhenslaoyolkftcstrbsesgzyyflovabskyuvvtfzifqltmfnnaxhsd"), true, 1347); this->dnvtigrrpezaiwk(3087, 4885); this->eklpisgscix(true, string("egylixpaziknwdcicasqnvywezyhvcx"), string("kxsbcwdklzcmqpnrsijbhavxdxfpbxrjovnkomrmeuxruowibdfjmfcitswujgfobszwkjtbbkbrib"), true, string("ijdjwhrztlhacrqtwuzztn"), 2210, string("mfxcgzprnjdjozbtkabburcztyepnzutyqvxongfgnjxhqcnmfcgqrelsrrfixraokrnftlvzhqlshuea")); this->yuvkrgdsiphfeegwpxoriide(string("mkbeyhyztsoswcmjkzwchsxxcqxoyfehlrehcmnjebxjvvjatkrfvyg"), 1226, 3115, 4652, string("xxqtpkgwwgiafnudqwwpzomkryelxfezrquzvpbqpaldowpzlgrqdwhutmscbhmdw"), 37000, 2218, 1542, 1647); this->aiwsmgljifkonqvmzvahsx(28672, string("pctgj"), string("btktoouzzrjqxqgkfxailcspebembjjicxipgvolwpdeupjydszndbbuwtuwunwtaglkhjau"), 4852); this->gpplnzrmahycvyqltuvi(string("gywslrkjirfrn"), true, true, 22794, 3540, false, string("fuhwpaelhnzwzastwgwwyhvpnupsycgfhsahlylhnycgncydwyufdb"), string("medqapngkorofzbytkvgxyfhcmshnkqofszloumhcdndzbhgjumnqepqbylbvxeqaueqstlarakvhomdljugjzinsohodqejy"), 384, string("wwowlfdhdlejiooiwqzhacwzrgkxlivupiaqtlhgnpxxkuktvtevbnjenbgajkplkgtjggpuktwhegawbhuexrlicdcihsmcef")); this->drmyfamskqf(4114, 3789, 12664, 13197, false, 24753, 21586, string("wtaqdyoipghrxkcekjhhkwmxshxgxcqsxfhxnujpwyemyzdvefzcxmluahrvjekxec"), 25211, string("efgkrqigeyydppssqszyeabjdycznjfphaedknprrngqemzyspgumcpfaiduvjamejrjsoxmhnsvkrdimwf")); this->xwkzblowabfjrzlp(false, string("extiyitehxasdfkdyamasbarslhojmaoywlnipfyurceogphidpetfhkyezlasgorb"), 78277, 40396, string("vyintzadxcoyuwjzyvhhvdgnpxiclkleialvkfotqgphssvbrkamkqpyphbllbgjckbfaqswepbiizicqw"), 2094, true, false); this->tbaedyfgdypclfkyfxgc(2306, 52499, true, 373, string("qlxtjcqlnnkfhfpjzpqyukupwxfsxscximobwpaxklurzrgfkrfecwbtjwnvjgzexbbljymc"), 2741, 7700); this->bjjvsjqdsmmpjdsg(6194, string("wpmtlocydcyeqbfyvzgnauytsagypufaolkqcgwkkmyfpwctzymrwhjnimsvvzzyrssnilgap"), string("apxnxdumzjxvhsuxksjiqhnkogillnvonbivkpnodxygjkrhzwtwyirlducbrowsbrccqfbpazznbusgtmwwclttsuac"), 4525, 3715, string("pavgrcezuroexnybjoxefnwrhuweowmrebqwwdozvrjlnapzcmdhgzrwam"), 3903, string("klzavfqgdvlofkxgoymifcpeqtshnlyecnqunjncerhvujbnsaq"), false, 4541); this->ffkcoguklotxz(847, 28736, string("quqyobopkfmzkticuivnrqeyuqcdbawwggrchmf"), true, string("iqhoqcswxpxsgnehkwldnawrgkcauwshwksuwsunqlkbtmqmftrygdqumnrja"), true, 1219, string("blapqyrrhvrfoyzpay")); this->mblbdlhoubrozqdnpxzqerqsd(1706, 1079, true, true, true, string("wy"), false, 3731, true); this->ehaulsagdeoku(19643, 38144, true); this->ydfngpnauqaygls(12272, true, false, 3060, string("sdziyzbzron")); }
[ "43963987+aljawary@users.noreply.github.com" ]
43963987+aljawary@users.noreply.github.com
d682d9d9696057ebeb5b78cf6bae491a6c721263
14f05acd1f119c80ca133e74457088b1bd29b2e4
/code/source/Utility/tMath.cc
4786e5f4daca3bec5a29c5c33d8149f552b4a5d2
[ "BSD-2-Clause" ]
permissive
tatewake/shapeblaster-ios
144b9c95b8332a7fc4c8bcd72c3ed63b42f1380f
c121a254e3e96736c3135ce14c9e11603621c2b5
refs/heads/master
2021-01-17T17:07:10.871638
2014-01-30T20:39:54
2014-01-30T20:39:54
16,191,329
2
0
null
null
null
null
UTF-8
C++
false
false
730
cc
#include "Utility/package.h" //--------------------------------------------------------------------------------- // Written by Terence J. Grant - tjgrant [at] tatewake [dot] com // Find the full tutorial at: http://gamedev.tutsplus.com/series/ //---------------------------------------------------------------------------------- const float tMath::PI = 3.141592653589793f; // A mathematical constant for the ratio of the circumference of a circle to its diameter, expressed as pi, with a value of 3.141592653589793. static bool randomInit = false; float tMath::random() { if (!randomInit) { srand((uint32_t)time(NULL)); randomInit = true; } return (float)::rand() / (float)RAND_MAX; }
[ "tjgrant@tatewake.com" ]
tjgrant@tatewake.com
578f67b97bb52847597a2dfc2bb964cf55dbae9b
7261b4cfaaa633a2a83631755ae4ad52b2caaab7
/cnes/src/otb/JSDDateTime.h
482140dc3bac1afc91b5f8e6ab903b19cb39d40a
[ "MIT" ]
permissive
ossimlabs/ossim-plugins
54c06555c92fb595f8270b63902a4e7ef1cc1e51
6575511a70d4594f0eef6d5800d60ea4b8fc0866
refs/heads/dev
2023-07-24T12:18:05.047728
2023-07-12T16:34:15
2023-07-12T16:34:15
43,512,138
12
24
MIT
2023-06-14T12:56:23
2015-10-01T18:04:33
C++
UTF-8
C++
false
false
2,778
h
//---------------------------------------------------------------------------- // // "Copyright Centre National d'Etudes Spatiales" // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // //---------------------------------------------------------------------------- // $Id$ #ifndef JSDDateTime_h #define JSDDateTime_h #include <ossim/plugin/ossimPluginConstants.h> #include <otb/JulianDate.h> #include <otb/MJDDateTime.h> namespace ossimplugins { class CivilDateTime; class GMSTDateTime; class JulianDate; /** * @brief This class represents a date */ class OSSIM_PLUGINS_DLL JSDDateTime { public: /** * @brief constructor */ JSDDateTime(); /** * @brief Destructor */ ~JSDDateTime(); /** * @brief Copy constructor */ JSDDateTime(const JSDDateTime& rhs); /** * @brief Constructor with date initialisation */ JSDDateTime(JulianDate day0hTU, double second, double decimal); /** * @brief Constructor with date initialisation using a CivilDateTime */ JSDDateTime(CivilDateTime& rhs); /** * @brief Constructor with date initialisation using a CivilDateTime */ JSDDateTime(JulianDate& rhs); /** * @brief Constructor with date initialisation using a MJDDateTime (Modified Julian Date - Used for ENVISAT) */ JSDDateTime(MJDDateTime& rhs); /** * @brief Affectation operator */ JSDDateTime& operator=(const JSDDateTime& rhs); JulianDate get_day0hTU() const { return _day0hTU; } double get_second() const { return _second; } double get_decimal() const { return _decimal; } void set_day0hTU(JulianDate day) { _day0hTU = day; } void set_second(double second) { _second = second; } void set_decimal(double decimal) { _decimal = decimal; } void NormDate() ; /** * @brief This function converts the current JSDDateTime into Julian Date * @return 0 if no error or an int greater than 0 indicating the error * @param julianDate [out] The classe that receives the result of the conversion of the current JSDDateTime in JulianDate */ int AsJulianDate(JulianDate* julian); /** * @brief This function converts the current JSDDateTime into GMST Date * @return 0 if no error or an int greater than 0 indicating the error * @param julianDate [out] The class that receives the result of the conversion of the current JSDDateTime into GMST Date */ int AsGMSTDateTime(GMSTDateTime* GMST); operator JulianDate() ; operator GMSTDateTime() ; protected: /** * @brief Julian day at 0h00 UT */ JulianDate _day0hTU; double _second; double _decimal; private: }; } #endif
[ "okramer@radiantblue.com" ]
okramer@radiantblue.com
8d4f5f58516e52219cba1bf91c5c525d8842af34
d4baaa6748dda226b88a1afb2fba2b6c6f54a3cc
/QuestionAnswer_2/server/source/main.cpp
3b099b661b935cb92e125d7502e1ad990e62d647
[]
no_license
zhangjiuchao/ProgramDesign
8343363e9ebd4ad8bc2beb051c36f450cda653fe
175c286b2ed2eca3c386f7aaf7ec13404989a95f
refs/heads/master
2020-06-30T18:34:16.947478
2016-08-26T15:20:53
2016-08-26T15:20:53
66,571,078
0
0
null
null
null
null
GB18030
C++
false
false
3,696
cpp
#include <QtGui/QApplication> #include "mainwindow.h" #include "QAS_server.h" #include <QTextCodec> #include <QMessageBox> void LoadAccountInformation(); QMap<QString,QString> ID_Name; QMap<QString,QuestInfor*> questMap; QVector<QuestInfor*> popular_value_vec; QMap<QString,QString> ID_Password; QMutex mutex; QSet<QString> online_set; MainWindow *w; int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextCodec *codec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForTr(codec); QTextCodec::setCodecForLocale(QTextCodec::codecForLocale()); QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale()); QFont font=a.font(); font.setPointSize(10); a.addLibraryPath("./plugins"); a.setFont(font); LoadAccountInformation(); if(LoadQuestion()) { w=new MainWindow; w->show(); } return a.exec(); } void LoadAccountInformation() { QString str="Data\\IDPassword.txt"; QFile file1(str); try{ if(!file1.open(QIODevice::ReadOnly)) throw QString("账号信息文件打开失败"); QString IDstring=""; QString Passwordstring=""; QString Namestring=""; QTextStream in(&file1); if(!file1.atEnd()) { str=in.readAll(); str=str.simplified(); QStringList instring=str.split(' '); while(instring.size()>0) { IDstring=instring.takeFirst(); Passwordstring=instring.takeFirst(); Namestring=instring.takeFirst(); ID_Password.insert(IDstring,Passwordstring); ID_Name.insert(IDstring,Namestring); } } file1.close(); } catch(QString message) { QMessageBox *msg = new QMessageBox; msg->setText(message); msg->exec(); } } bool LoadQuestion() { QString file_to_open="Data\\all_question.txt"; QFile file(file_to_open); try{ if(!file.open(QIODevice::ReadOnly)) throw QString("问题文件打开失败"); QTextStream in(&file); while(!in.atEnd()) { QuestInfor *newQuestion=new QuestInfor("","","","",""); in>>newQuestion; questMap.insert(newQuestion->getID(),newQuestion); popular_value_vec.push_back(newQuestion); } file.close(); return true; } catch(QString message) { QMessageBox *msg=new QMessageBox; msg->setText(message); msg->exec(); return false; } } bool compare(QuestInfor * question1, QuestInfor *question2) { int popular_value_1=question1->get_popular_value(); int popular_value_2=question2->get_popular_value(); return popular_value_1>popular_value_2; } //关键字搜索函数 QVector<QuestInfor*> find_question(QStringList str) { QVector<QuestInfor*> result; QMap<QString,QuestInfor*>::const_iterator it=questMap.begin(), iter=questMap.end(); while(it!=iter) { QuestInfor *question=it.value(); if(question->find(str)) { result.push_back(question); } ++it; } return result; } //按日期搜索函数 QVector<QuestInfor*> find_question(QString str) { QVector<QuestInfor*> result; QMap<QString,QuestInfor*>::const_iterator it=questMap.begin(), iter=questMap.end(); while(it!=iter) { if((it.key()).contains(str)) { result.push_back(it.value()); } it++; } return result; }
[ "1665327050@qq.com" ]
1665327050@qq.com
e3f85a628962653ff833827116be20d06aeb04a3
04bbe1f333584ad2d0f9d21f6683f49de4b6e53e
/1aa_newthing/rsa.cpp
0dcd2c03f95a09d40657741244028501c9879ffe
[]
no_license
ZeroNerodaHero/cs
e4a5e448ca2fd9748454c6aa85a3248a2465c1aa
5f76f4dd623e9d3c5e3fd6011bc8f1963388b3a7
refs/heads/master
2020-03-15T15:32:08.756359
2018-08-03T01:07:30
2018-08-03T01:07:30
132,214,504
1
1
null
null
null
null
UTF-8
C++
false
false
906
cpp
#include <iostream> int modp(int b, int p, int n){ int t = 1;; for(int i = 0; i < p; i++){ t = (t * b)%n; } return t; } int gcd(int a, int b){ if(a%b == 0) return b; return gcd(b,a%b); } int lcm(int a, int b){ return (a * b)/gcd(a,b); } int e, d, n; int encrypt(int m){ return modp(m,e,n); } int decrypt(int m){ return modp(m,d,n); } int main(){ int p = 17; int q = 47; n = p * q; int tot = lcm((p-1),(q-1)); for(e = 7; e < tot; e++){ if(gcd(e,tot) == 1) break; } for(d = 2; d < tot; d++){ if((e*d)%tot == 1) break; } std::cout << "n- " << n << "\ne- "<< e << "\nd- " << d << std::endl; for(int i = 100; i < 110; i++){ int enc = encrypt(i); int dec = decrypt(enc); std::cout << i <<" Enc: " << enc << "\tDec: "<< dec << std::endl; } return 0; }
[ "billyz404meter@gmail.com" ]
billyz404meter@gmail.com
33ca65587f6392cb34e293d9440097969233c42c
bbe1c6b2bf4ea71b0a8d2d0bb14042ccef2c62f0
/src/engine/Texture.hpp
0cf8e27829ad2487dd24d258ae951748d9495ea7
[]
no_license
Steven1811/BombermanGL
7db4d90add434e424d4b0206fe81b34513a680cf
33b5ce1d639e6a36e0387d53947c2d929e0e65da
refs/heads/master
2020-04-01T04:59:24.148116
2018-10-27T19:50:40
2018-10-27T19:50:40
152,885,192
0
0
null
null
null
null
UTF-8
C++
false
false
416
hpp
#ifndef TEXTURE_H #define TEXTURE_H #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <GLFW/glfw3.h> #include <SOIL.h> #include "Logger.hpp" namespace Engine { class Texture { private: int width, height = 0; GLuint textureId; public: Texture(const char* path); GLuint getTextureId(); void draw(); ~Texture(); }; } #endif
[ "s0553035@htw-berlin.de" ]
s0553035@htw-berlin.de
3e0bdd9bd9ded9e7e733c5e18000c76451154c5d
63ba91de14d218aafce9b9fef4d68f072dc511d2
/uva/solved/1124/1124.cpp
3c1cd607d1a9f721ce8b9adc2b02bb6c155818f3
[]
no_license
anas-didi95/programming-practices
bd1b57ea88db274f7c4b926cf2baf7360b3efe41
cb0fb132e322b190edc11a8f71a231912c14ede5
refs/heads/master
2021-04-27T11:41:15.594540
2018-03-06T10:22:00
2018-03-06T10:22:00
122,566,060
0
0
null
null
null
null
UTF-8
C++
false
false
157
cpp
#include <iostream> #include <string> using namespace std; int main() { string s; while (getline(cin, s)) cout << s << endl; return 0; }
[ "anas.didi95@gmail.com" ]
anas.didi95@gmail.com
bd36eff8fc5eb4776e3b25e2204d66274f99cf1b
7fd0e5ec56ec72a748ea20294607fc181ab6074c
/expression_tree_2.cpp
d81baa4238e60b0d32ae9d00569a073c04f2d4e4
[]
no_license
siddhart18/cs204lab
23810c395a885d858f466a772ab99c1bb90e43f3
105a534890d925e9105ffc37bcdefeaef7163fcd
refs/heads/master
2020-06-28T10:33:00.225140
2019-11-13T14:00:30
2019-11-13T14:00:30
200,210,793
0
0
null
null
null
null
UTF-8
C++
false
false
9,192
cpp
#include <bits/stdc++.h> #include <time.h> #include <stdlib.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define pb push_back #define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define ll long long #define ull unsigned long long #define gcd(a,b) __gcd((a),(b)) #define lcm(a,b) ((a)*(b))/__gcd((a),(b)) #define clr(x) x.clear() #define vi vector<int> #define vll vector<long long> #define vvi vector<vi> #define hell 1000000007 #define ii pair<int,int> #define pll pair<ll,ll> #define vii vector<ii> #define vpll vector<pll> #define all(a) a.begin(),a.end() #define INF LLONG_MAX #define ll long long using namespace std; map<string,ll> mp; map<string,ll>::iterator it; ll pow(ll base,ll power){ if(power<0) return 0; ll res=1; for(int i=0;i<power;i++) res*=base; return res; } struct et { string value; et* left, *right; }; bool isOperator(string c) { if (c == "+" || c == "-" || c == "*" || c == "/" || c == "^") return true; return false; } bool isOperator(char c) { if (c == '+' || c == '-' || c == '*' || c == '/' || c == '^') return true; return false; } void postorder(et *t) { if(t) { postorder(t->left); postorder(t->right); cout<<t->value<<" "; } } et* newNode(string v) { et *temp = new et; temp->left = temp->right = NULL; temp->value = v; return temp; }; et* constructTree(vector<string> postfix) { stack<et *> st; et *t, *t1, *t2; for (int i=0; i<postfix.size() ; i++) { if (!isOperator(postfix[i])) { t = newNode(postfix[i]); st.push(t); } else { t = newNode(postfix[i]); t1 = st.top(); st.pop(); t2 = st.top(); st.pop(); t->right = t1; t->left = t2; st.push(t); } } t = st.top(); st.pop(); return t; } int prec(char c) { if(c == '^') return 3; else if(c == '*' || c == '/') return 2; else if(c == '+' || c == '-') return 1; else return -1; } ll eval(et* root) { if (!root) return 0; if (!root->left && !root->right){ bool is_number=true; for(int i=0;i<root->value.size();i++) { if(root->value[i]>='0'&&root->value[i]<='9') continue; else{ is_number=false; break; } } if(is_number) return stoll(root->value); else { it=mp.find(root->value); return it->second; } } ll l_val = eval(root->left); ll r_val = eval(root->right); if (root->value=="+") return l_val+r_val; if (root->value=="-") return l_val-r_val; if (root->value=="*") return l_val*r_val; if (root->value=="/") return l_val/r_val; return pow(l_val,r_val); } int cnt=0; bool cant_be_evaluated=false; ll evaluate_value(string s){ std::stack<char> st; st.push('N'); int l = s.length(); vector<string> ns; for(int i = 0; i < l; i++) { if(s[i] >= '0' && s[i] <= '9') { int j=i; string str; while(( j<s.length() )&&(s[j] >= '0' && s[j] <= '9')){ str.pb(s[j]); j++; } i=j-1; ns.pb(str); if(cnt) goto label; continue; } else if((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z')){ int j=i; string var; while((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')){ var.pb(s[j]); j++; } i=j-1; ns.pb(var); if(cnt) goto label; continue; } else if(s[i] == ')') { label: while(st.top() != 'N' && st.top() != '(') { char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } if(st.top() == '(') st.pop(); if(cnt) cnt--; if(cnt) goto label; else continue; } else if(s[i] == '(') st.push('('); else{ if(s[i]=='-'&&(i==0||s[i-1]=='('||isOperator(s[i-1]))){ cnt++; st.push('('); ns.pb("0"); } while(st.top() != 'N' && prec(s[i]) <= prec(st.top())) { if(s[i]=='^'&&st.top()=='^') break; char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } st.push(s[i]); } } while(st.top() != 'N') { char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } for(int i=0;i<ns.size();i++){ if(isOperator(ns[i])) continue; bool is_number=true; for(int j=0;j<ns[i].size();j++) { if(ns[i][j]>='0'&&ns[i][j]<='9') continue; else{ is_number=false; break; } } if(!is_number){ it=mp.find(ns[i]); if(it==mp.end()) { cant_be_evaluated=true; return 0; } } } et* r = constructTree(ns); ll result=eval(r); return result; } void infixToPostfix(string s) { bool is_assignment=false; int i; for(i=0;i<s.length();i++) { if(s[i]=='='){ is_assignment=true; break; } } if(is_assignment){ ll value=evaluate_value(s.substr(i+1,s.length()-i-2)); string variable=s.substr(1,i-1); if(cant_be_evaluated){ cout<<"CANT BE EVALUATED\n"; cant_be_evaluated=false; } else{ it=mp.find(variable); if(it==mp.end()) mp.insert({variable,value}); else it->second=value; } return; } std::stack<char> st; st.push('N'); int l = s.length(); vector<string> ns; for(int i = 0; i < l; i++) { if(s[i] >= '0' && s[i] <= '9') { int j=i; string str; while(( j<s.length() )&&(s[j] >= '0' && s[j] <= '9')){ str.pb(s[j]); j++; } i=j-1; ns.pb(str); if(cnt) goto label; continue; } else if((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z')){ int j=i; string var; while((s[j]>='a'&&s[j]<='z')||(s[j]>='A'&&s[j]<='Z')){ var.pb(s[j]); j++; } i=j-1; ns.pb(var); if(cnt) goto label; continue; } else if(s[i] == ')') { label: while(st.top() != 'N' && st.top() != '(') { char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } if(st.top() == '(') st.pop(); if(cnt) cnt--; if(cnt) goto label; else continue; } else if(s[i] == '(') st.push('('); else{ if(s[i]=='-'&&(i==0||s[i-1]=='('||isOperator(s[i-1]))){ cnt++; st.push('('); ns.pb("0"); } while(st.top() != 'N' && prec(s[i]) <= prec(st.top())) { if(s[i]=='^'&&st.top()=='^') break; char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } st.push(s[i]); } } while(st.top() != 'N') { char c = st.top(); st.pop(); string str=""; str+=c; ns.pb(str); } for(int i=0;i<ns.size();i++){ if(isOperator(ns[i])) continue; bool is_number=true; for(int j=0;j<ns[i].size();j++) { if(ns[i][j]>='0'&&ns[i][j]<='9') continue; else{ is_number=false; break; } } if(!is_number){ it=mp.find(ns[i]); if(it==mp.end()) { cout<<"CANT BE EVALUATED\n"; return; } } } et* r = constructTree(ns); ll result=eval(r); cout<<result<<"\n"; } int main() { ll n; cin>>n; cin.ignore(); while(n--){ ll rows; cin>>rows; cin.ignore(); while(rows--){ string str="(",str2; getline(cin,str2); str+=str2; str+=")"; infixToPostfix(str); } mp.clear(); } return 0; }
[ "siddhart18a@iitg.ac.in" ]
siddhart18a@iitg.ac.in
424262c65aa6a5c97c6da73c51693d1076db0441
b343820292bb28211a637033e3a4cdbb02921ccd
/ppp2020.Rcheck/00_pkg_src/ppp2020/src-i386/RcppExports.cpp
e120f8dce8639d86362120c8d998abbf8179b69b
[]
no_license
mintbora/test2
48187070f46de47e01f7a1543fa7474361460227
3f326cd7fac7251068e6153f8842e6c7d1834286
refs/heads/master
2021-05-19T17:52:23.376896
2020-04-07T05:27:17
2020-04-07T05:27:17
252,054,510
0
0
null
null
null
null
UTF-8
C++
false
false
2,872
cpp
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; // rcpparma_hello_world arma::mat rcpparma_hello_world(); RcppExport SEXP _ppp2020_rcpparma_hello_world() { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; rcpp_result_gen = Rcpp::wrap(rcpparma_hello_world()); return rcpp_result_gen; END_RCPP } // rcpparma_outerproduct arma::mat rcpparma_outerproduct(const arma::colvec& x); RcppExport SEXP _ppp2020_rcpparma_outerproduct(SEXP xSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const arma::colvec& >::type x(xSEXP); rcpp_result_gen = Rcpp::wrap(rcpparma_outerproduct(x)); return rcpp_result_gen; END_RCPP } // rcpparma_innerproduct double rcpparma_innerproduct(const arma::colvec& x); RcppExport SEXP _ppp2020_rcpparma_innerproduct(SEXP xSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const arma::colvec& >::type x(xSEXP); rcpp_result_gen = Rcpp::wrap(rcpparma_innerproduct(x)); return rcpp_result_gen; END_RCPP } // rcpparma_bothproducts Rcpp::List rcpparma_bothproducts(const arma::colvec& x); RcppExport SEXP _ppp2020_rcpparma_bothproducts(SEXP xSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< const arma::colvec& >::type x(xSEXP); rcpp_result_gen = Rcpp::wrap(rcpparma_bothproducts(x)); return rcpp_result_gen; END_RCPP } // dzip double dzip(double p, double theta, int y, bool loga); RcppExport SEXP _ppp2020_dzip(SEXP pSEXP, SEXP thetaSEXP, SEXP ySEXP, SEXP logaSEXP) { BEGIN_RCPP Rcpp::RObject rcpp_result_gen; Rcpp::RNGScope rcpp_rngScope_gen; Rcpp::traits::input_parameter< double >::type p(pSEXP); Rcpp::traits::input_parameter< double >::type theta(thetaSEXP); Rcpp::traits::input_parameter< int >::type y(ySEXP); Rcpp::traits::input_parameter< bool >::type loga(logaSEXP); rcpp_result_gen = Rcpp::wrap(dzip(p, theta, y, loga)); return rcpp_result_gen; END_RCPP } static const R_CallMethodDef CallEntries[] = { {"_ppp2020_rcpparma_hello_world", (DL_FUNC) &_ppp2020_rcpparma_hello_world, 0}, {"_ppp2020_rcpparma_outerproduct", (DL_FUNC) &_ppp2020_rcpparma_outerproduct, 1}, {"_ppp2020_rcpparma_innerproduct", (DL_FUNC) &_ppp2020_rcpparma_innerproduct, 1}, {"_ppp2020_rcpparma_bothproducts", (DL_FUNC) &_ppp2020_rcpparma_bothproducts, 1}, {"_ppp2020_dzip", (DL_FUNC) &_ppp2020_dzip, 4}, {NULL, NULL, 0} }; RcppExport void R_init_ppp2020(DllInfo *dll) { R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); R_useDynamicSymbols(dll, FALSE); }
[ "mintbora0125@gmail.com" ]
mintbora0125@gmail.com
2318cf090f571034c4b89dd413a246d6de585748
11679f3adec2b14ddeaa8b7a72536e3612bc4b44
/sourceCode/mainContainers/sceneContainers/RegisteredDistances.h
4bd60dbc81d849123d8014f5b70dee42020dc2bd
[]
no_license
dtbinh/vrep_altair
26eadd039c0fe7e798b49486b187a21c743138bd
ad296b68b1deb11c49937e477ccee64b2e67050d
refs/heads/master
2021-01-24T22:44:02.877012
2014-03-13T16:59:00
2014-03-13T16:59:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,587
h
// This file is part of V-REP, the Virtual Robot Experimentation Platform. // // Copyright 2006-2014 Dr. Marc Andreas Freese. All rights reserved. // marc@coppeliarobotics.com // www.coppeliarobotics.com // // V-REP is dual-licensed, under the terms of EITHER (at your option): // 1. V-REP commercial license (contact us for details) // 2. GNU GPL (see below) // // GNU GPL license: // ------------------------------------------------------------------- // V-REP 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. // // V-REP 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 V-REP. If not, see <http://www.gnu.org/licenses/>. // ------------------------------------------------------------------- // // This file was automatically created for V-REP release V3.1.0 on January 20th 2014 #pragma once #include "RegDist.h" #include <vector> #include "MainCont.h" class CRegisteredDistances : public CMainCont { public: CRegisteredDistances(); virtual ~CRegisteredDistances(); void simulationAboutToStart(); void simulationEnded(); void renderYour3DStuff(CViewableBase* renderingObject,int displayAttrib); int addNewObject(int obj1ID,int obj2ID,std::string objName); void addObject(CRegDist* newDistObj,bool objectIsACopy); void addObjectWithSuffixOffset(CRegDist* newDistObj,bool objectIsACopy,int suffixOffset); void getMinAndMaxNameSuffixes(int& minSuffix,int& maxSuffix); bool canSuffix1BeSetToSuffix2(int suffix1,int suffix2); void setSuffix1ToSuffix2(int suffix1,int suffix2); bool removeObject(int objID); CRegDist* getObject(int objID); CRegDist* getObject(std::string objName); void removeAllDistanceObjects(); void resetAllDistances(bool exceptExplicitHandling); void announceObjectWillBeErased(int objID); void announceGroupWillBeErased(int groupID); void setUpDefaultValues(); float handleAllDistances(bool exceptExplicitHandling); bool setObjectName(int objID,std::string newName); void displayDistanceSegments(); // Variable that need to be serialized on an individual basis: std::vector<CRegDist*> distanceObjects; };
[ "arena.riccardo@live.it" ]
arena.riccardo@live.it
f4a154a82f2bb92ba8132158dfc2a072d0dde70e
d8e1ed3f4c4e951985849c1109ab64c985e09e4b
/rush00/Collection/RocketsCollection.hpp
69a695fa16fa746b753e0b7bbbce9545755dd1d9
[]
no_license
keuhdall/Piscine_cpp
e46ca94bba2ecc892bca372f40d06df3ccce6392
5c082e691a76d66cc8444c77b89943de5f6c7fde
refs/heads/master
2021-04-18T19:15:24.073263
2018-04-21T15:33:55
2018-04-21T15:33:55
126,261,109
0
0
null
null
null
null
UTF-8
C++
false
false
454
hpp
#ifndef ROCKETSCOLLECTION_HPP # define ROCKETSCOLLECTION_HPP # include "ACollection.hpp" # include "../Object/Rocket.hpp" class RocketsCollection: public ACollection { public: RocketsCollection(void); RocketsCollection(const RocketsCollection &copy); RocketsCollection &operator=(const RocketsCollection &copy); ~RocketsCollection(void); void updateObjects(void); void fire(int y, int x); }; #endif
[ "lmarques@student.42.fr" ]
lmarques@student.42.fr
67596122d14c4158ab7ba7187dd09cd67c3e2072
be4952850ad6a8b0abe50de671c495c6add9fae7
/codeforce/CF_1512A.cpp
277da0651ab179883ceb5c525f41e448b7b2d2c6
[]
no_license
ss5ssmi/OJ
296cb936ecf7ef292e91f24178c9c08bd2d241b5
267184cef5f1bc1f222950a71fe705bbc5f0bb3e
refs/heads/master
2022-10-29T18:15:14.290028
2022-10-12T04:42:47
2022-10-12T04:42:47
103,818,651
0
0
null
null
null
null
UTF-8
C++
false
false
299
cpp
#include<stdio.h> int main(){ int t; scanf("%d", &t); while(t--){ int n, a, b[101]={0}, c[101]={0}; scanf("%d", &n); for(int i=0;i<n;i++){ scanf("%d", &a); b[a]++, c[a] = i+1; } for(int i=1;i<101;i++){ if(b[i]==1){ printf("%d\n", c[i]); break; } } } return 0; }
[ "imss5ss@outlook.com" ]
imss5ss@outlook.com
7b17590eb0ac2d861d8f641384aa1bfcc40dbca5
9ef3261146a77a81db270bcdc33e4b3261beeddf
/src/3rdParty/ogdf-2020/src/ogdf/layered/SplitHeuristic.cpp
da5536ec7fc7241f797c76c63f491c8ddba7e1e5
[ "MIT", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "LGPL-2.1-or-later", "LGPL-2.0-or-later", "EPL-1.0", "LicenseRef-scancode-generic-exception", "GPL-1.0-or-later", "BSL-1.0", "LGPL-2.0-only", "BSD-2-Clause" ]
permissive
MichaelTiernan/qvge
f5464d69fc9adaec79ec46125b95bec05afd591d
aff978d8592e07e24af4b8bab7c3204a7e7fb3fb
refs/heads/master
2020-12-30T07:58:22.867560
2020-09-24T22:07:10
2020-09-24T22:07:10
238,916,864
0
0
MIT
2020-02-07T12:31:57
2020-02-07T12:31:56
null
UTF-8
C++
false
false
2,412
cpp
/** \file * \brief Implementation of split heuristic. * * \author Andrea Wagner * * \par License: * This file is part of the Open Graph Drawing Framework (OGDF). * * \par * Copyright (C)<br> * See README.md in the OGDF root directory for details. * * \par * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * Version 2 or 3 as published by the Free Software Foundation; * see the file LICENSE.txt included in the packaging of this file * for details. * * \par * 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. * * \par * You should have received a copy of the GNU General Public * License along with this program; if not, see * http://www.gnu.org/copyleft/gpl.html */ #include <ogdf/layered/SplitHeuristic.h> namespace ogdf { void SplitHeuristic::init (const HierarchyLevels &levels) { cleanup(); m_cm = new CrossingsMatrix(levels); } void SplitHeuristic::cleanup() { delete m_cm; m_cm = nullptr; } // ordinary call void SplitHeuristic::call(Level &L) { m_cm->init(L); m_buffer = Array<node>(L.size()); recCall(L, 0, L.size() - 1); m_buffer = Array<node>(-1); } // SimDraw call void SplitHeuristic::call(Level &L, const EdgeArray<uint32_t> *edgeSubGraphs) { // only difference to call is the different calculation of the crossingsmatrix m_cm->init(L, edgeSubGraphs); m_buffer = Array<node>(L.size()); recCall(L, 0, L.size() - 1); m_buffer = Array<node>(-1); } void SplitHeuristic::recCall(Level &L, int low, int high) { if (high <= low) return; const HierarchyLevels &levels = L.levels(); CrossingsMatrix &crossings = *m_cm; int up = high, down = low; // chooses L[low] as pivot int i; for (i = low+1; i <= high; i++) { if (crossings(i,low) < crossings(low,i)) m_buffer[down++] = L[i]; } // use two for-loops in order to keep the number of swaps low for (i = high; i >= low+1; i--) { if (crossings(i,low) >= crossings(low,i)) m_buffer[up--] = L[i]; } m_buffer[down] = L[low]; for (i = low; i < high; i++) { int j = levels.pos(m_buffer[i]); if (i != j) { L.swap(i,j); crossings.swap(i,j); } } recCall(L,low,down-1); recCall(L,up+1,high); } }
[ "ars.masiuk@gmail.com" ]
ars.masiuk@gmail.com
6af3bdecfcd3074b04d05b823c490e0dc85ec661
866ac3eef6b18e58517be3b5343d69bd7e8dc474
/soft/project/lib-application/src/log_wnd.cpp
a1dea16271c28aa0a8857ca1f8ecd43449f08fdd
[]
no_license
z80/IPM
6fd1667e4407c4d86cf8f3603d1ee90ff40d96f4
cea3df3eab682c704fd64735bb77c107487133a5
refs/heads/master
2021-01-22T21:28:33.416169
2015-04-07T21:00:49
2015-04-07T21:00:49
3,706,641
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
1,940
cpp
#include "log_wnd.h" #include "ui_log_wnd.h" class LogWnd::PD { public: Ui_LogWnd ui; int linesCnt; QQueue<QString> l; QString log; }; LogWnd::LogWnd( QWidget * parent ) : QWidget( parent ) { pd = new PD(); pd->linesCnt = 128; pd->ui.setupUi( this ); connect( this, SIGNAL(sigLog(const QString &)), this, SLOT(slotLog(const QString &)), Qt::QueuedConnection ); connect( this, SIGNAL(sigLinesCnt(int)), this, SLOT(slotLinesCnt(int)), Qt::QueuedConnection ); connect( this, SIGNAL(sigClear()), this, SLOT(slotClear()), Qt::QueuedConnection ); connect( pd->ui.clear, SIGNAL(clicked()), this, SLOT(slotClear()), Qt::QueuedConnection ); } LogWnd::~LogWnd() { delete pd; } void LogWnd::log( const QString & stri ) { emit sigLog( stri ); } void LogWnd::setLinesCnt( int cnt ) { emit sigLinesCnt( cnt ); } void LogWnd::clear() { emit sigClear(); } void LogWnd::slotLog( const QString & stri ) { if ( stri.size() > 0 ) pd->l.enqueue( stri ); while ( pd->l.size() > pd->linesCnt ) pd->l.dequeue(); // Готовим к выводу. pd->log.clear(); QQueue< QString >::iterator i; for ( i=pd->l.begin(); i!=pd->l.end(); i++ ) { pd->log.append( *i ); pd->log.append( "<br>" ); } pd->ui.log->setHtml( pd->log ); // Сдвигаем в конец текста. //moveCursor( QTextCursor::End, QTextCursor::MoveAnchor ); // Слайдеры сдвинутся так, чтобы курсор был видимым. //ensureCursorVisible(); pd->ui.log->verticalScrollBar()->setValue( pd->ui.log->verticalScrollBar()->maximum() ); } void LogWnd::slotLinesCnt( int cnt ) { pd->linesCnt = cnt; } void LogWnd::slotClear() { pd->l.clear(); pd->ui.log->clear(); }
[ "bashkirov.sergey@gmail.com" ]
bashkirov.sergey@gmail.com
060017ae31b709b7d1cf4c2da51d9a1466c907b9
4bea57e631734f8cb1c230f521fd523a63c1ff23
/projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/0.06/Ma
c268df42ab024fedc8a8b572bf887e3674643ba2
[]
no_license
andytorrestb/cfal
76217f77dd43474f6b0a7eb430887e8775b78d7f
730fb66a3070ccb3e0c52c03417e3b09140f3605
refs/heads/master
2023-07-04T01:22:01.990628
2021-08-01T15:36:17
2021-08-01T15:36:17
294,183,829
1
0
null
null
null
null
UTF-8
C++
false
false
23,883
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.06"; object Ma; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField nonuniform List<scalar> 1900 ( 0 3.80669e-17 4.69254e-19 0 6.14111e-17 4.31401e-18 6.77553e-17 0 3.75572e-17 7.61295e-17 0 4.31547e-18 3.82248e-17 0 4.20856e-20 4.55184e-20 5.9381e-17 3.79379e-17 0 4.66253e-18 0 3.29009e-17 3.29009e-17 0 4.28197e-18 4.49897e-18 6.77553e-17 0 0 0 0 0 0 0 3.27904e-17 5.01552e-17 0 3.79379e-17 0 2.53765e-18 0 0 7.60026e-17 0 7.60026e-17 1.26882e-19 0 0 0 3.80647e-17 7.51936e-17 7.58234e-17 4.82818e-15 4.04254e-13 4.58098e-12 6.58129e-17 1.67751e-16 2.729e-15 2.29379e-13 2.62448e-12 7.01503e-17 6.86585e-17 1.83239e-16 3.10515e-14 4.73416e-12 1.31595e-16 5.77371e-17 2.83212e-15 2.28731e-13 2.62554e-12 2.13773e-17 4.24333e-17 4.82976e-15 4.0427e-13 4.58337e-12 8.52893e-10 9.66439e-09 6.10489e-06 0.000631759 0.0057114 4.96009e-10 6.36631e-09 4.1082e-06 0.000289158 0.00175774 7.33577e-11 4.29777e-09 2.89058e-06 4.52397e-05 2.96066e-05 4.96015e-10 6.36632e-09 4.1082e-06 0.000289158 0.00175774 8.52899e-10 9.6644e-09 6.10489e-06 0.000631759 0.0057114 0.0509133 0.00814622 0.00076663 6.46019e-06 2.84959e-09 6.60374e-14 1.67985e-16 8.20725e-17 2.09933e-17 2.10092e-17 9.43499e-17 1.18878e-16 6.05138e-17 9.22071e-17 6.27775e-17 9.39006e-17 1.79543e-17 4.661e-17 1.37385e-16 6.8243e-17 7.06133e-17 1.24005e-16 7.07448e-17 2.36398e-16 5.68415e-17 1.05901e-16 4.62528e-17 7.63116e-17 1.79918e-16 1.94467e-16 9.18277e-17 3.44146e-17 7.67757e-17 4.18617e-17 1.74802e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.00330067 0.00151093 0.000191223 1.72466e-06 7.48064e-10 1.60984e-14 1.19424e-16 5.4016e-17 1.16963e-16 8.24118e-17 8.67625e-18 1.57533e-16 5.80163e-17 1.76396e-17 1.11866e-18 6.11091e-17 2.09256e-21 1.1057e-17 1.54282e-16 8.04127e-17 1.94929e-19 5.0388e-17 2.41774e-17 1.88834e-16 9.33427e-17 1.08637e-16 1.47849e-16 7.34521e-17 7.34743e-17 6.69017e-18 2.26473e-17 1.21807e-16 5.61253e-17 1.76983e-16 1.77159e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 2.78696e-05 3.41014e-05 8.87879e-06 3.20683e-07 3.64011e-10 1.23424e-14 1.2239e-16 9.09389e-18 1.01563e-18 5.93692e-17 4.47947e-17 1.28429e-16 5.28392e-17 7.67444e-17 6.28766e-17 6.23948e-17 3.36087e-19 8.14962e-18 1.38937e-16 9.5746e-17 3.36971e-18 1.69616e-16 1.15348e-16 3.95343e-17 1.646e-16 5.21153e-17 1.02187e-16 2.08879e-16 8.42022e-18 1.95399e-16 5.66059e-18 7.95317e-18 2.19565e-16 5.63086e-17 1.763e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.00330067 0.00151093 0.000191223 1.72466e-06 7.48064e-10 1.67077e-14 3.86912e-17 8.32901e-17 1.16789e-16 1.29436e-16 1.10075e-16 2.5053e-17 7.68075e-17 1.75143e-16 7.13095e-17 2.90173e-17 6.73567e-18 1.21849e-17 2.86884e-17 3.07127e-17 1.21425e-17 5.29092e-17 1.12755e-19 5.58122e-17 4.13105e-17 1.19272e-16 8.00666e-17 1.13479e-16 7.31725e-17 8.72029e-17 1.45296e-17 1.07565e-16 8.10038e-17 7.69953e-17 1.75859e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.0509133 0.00814622 0.00076663 6.46019e-06 2.84959e-09 6.62538e-14 3.54484e-17 1.02938e-16 3.52384e-17 6.45967e-17 5.1033e-17 8.60853e-19 6.52919e-17 6.32373e-17 1.12773e-16 8.51704e-26 2.4285e-17 9.90227e-22 1.09119e-16 6.92086e-17 2.80727e-30 6.76994e-39 1.57796e-16 1.08234e-16 9.18358e-19 1.89177e-17 1.60608e-17 2.03943e-16 5.14502e-17 6.89828e-17 1.06351e-16 4.93116e-18 1.5918e-16 3.0338e-17 1.74637e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.2343 0.0206903 0.00184997 1.4717e-05 6.38888e-09 1.52536e-13 3.61543e-18 1.03977e-16 8.07869e-18 7.98451e-17 5.41453e-34 4.18435e-17 3.14251e-17 7.41112e-17 8.36121e-18 5.64363e-25 6.30033e-24 1.12669e-20 8.70549e-18 1.29952e-27 5.89079e-29 1.00401e-37 3.56577e-17 8.65999e-18 3.85184e-18 3.65555e-18 4.18788e-17 5.78044e-17 4.16471e-17 2.12137e-17 7.17332e-18 3.88931e-18 5.95455e-17 5.11784e-17 1.7564e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251597 0.0225755 0.0020557 1.66558e-05 7.34779e-09 1.75229e-13 1.29839e-17 6.68454e-17 6.25402e-17 4.61264e-17 2.92848e-32 5.58963e-17 3.32089e-17 1.32518e-17 9.46077e-18 4.16471e-17 1.09391e-22 1.96587e-18 8.90852e-29 4.17167e-17 4.20917e-24 9.95589e-33 3.89698e-23 3.73453e-17 5.599e-17 3.73444e-17 3.79045e-17 1.0932e-20 1.43446e-44 3.72816e-17 8.82632e-29 4.13378e-17 4.16471e-17 4.17268e-17 1.77311e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225872 0.00205752 1.66771e-05 7.36013e-09 1.75249e-13 2.19368e-18 2.28339e-17 2.08932e-17 3.51538e-35 1.96784e-27 3.33353e-46 3.76424e-17 7.03194e-17 7.55729e-17 2.76378e-22 6.47688e-17 2.79392e-17 6.38127e-24 6.61889e-24 2.08217e-20 8.90757e-28 2.08235e-17 2.42557e-20 4.17167e-17 4.17167e-17 4.17666e-17 1.91058e-18 9.11611e-43 4.24526e-24 6.19572e-24 5.59899e-17 3.08523e-17 9.84686e-18 1.75774e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.75295e-13 2.62756e-18 2.50275e-20 1.81271e-19 1.62275e-33 2.49145e-24 4.51219e-41 2.12821e-17 1.41179e-19 4.3148e-18 4.16471e-17 6.47688e-17 2.08249e-17 3.42483e-20 3.50282e-20 3.3651e-18 1.754e-23 7.33908e-20 3.93293e-18 2.24454e-20 4.17168e-17 1.8947e-17 1.8939e-17 5.31462e-41 2.18482e-20 3.32667e-20 4.17167e-17 7.24993e-17 2.2761e-17 1.76582e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75459e-13 6.70261e-18 1.09931e-19 3.32455e-17 1.43276e-28 4.16471e-17 2.81727e-39 3.72816e-17 3.78949e-18 4.07332e-17 2.08933e-17 2.2293e-20 3.79961e-18 5.71823e-18 5.53264e-18 3.12758e-17 8.57372e-21 2.09096e-17 5.58963e-17 3.85079e-18 6.49675e-17 4.19265e-18 4.04991e-18 2.91074e-39 3.78944e-18 5.85176e-18 1.0056e-19 2.23205e-20 7.58494e-18 1.75193e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.77147e-13 2.0354e-18 4.16471e-17 7.0153e-17 1.10119e-23 4.16471e-17 8.57019e-36 2.08932e-17 3.72817e-17 5.08765e-17 2.08932e-17 7.61087e-18 3.72816e-17 5.13836e-17 4.90984e-17 5.13254e-17 2.08937e-17 1.86928e-17 4.16471e-17 4.27369e-17 7.5086e-17 3.91896e-17 4.27029e-17 3.07991e-34 3.72816e-17 5.82622e-17 2.12419e-17 3.9496e-18 1.99048e-18 1.75348e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75986e-13 2.09992e-17 4.16497e-17 4.72219e-17 4.99477e-20 4.68054e-20 4.17167e-17 7.30435e-38 4.16471e-17 7.66014e-17 7.36833e-17 7.52877e-17 6.12839e-25 1.6436e-18 2.08932e-17 9.65241e-24 2.1001e-17 2.09218e-17 4.11581e-24 2.08932e-17 2.01679e-18 2.00034e-18 2.08235e-17 3.00778e-29 3.99904e-40 3.31063e-18 4.00626e-17 3.94805e-17 8.52173e-17 1.75758e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.77385e-13 5.2916e-17 6.98769e-18 2.192e-17 6.69313e-18 7.1436e-18 3.96426e-32 2.39513e-33 2.24457e-20 7.79937e-18 5.70098e-21 8.14525e-18 6.48385e-17 3.73443e-17 4.12738e-24 4.82327e-21 1.99593e-17 2.79482e-17 2.18536e-20 9.24612e-38 3.71906e-17 3.73446e-17 4.23845e-31 9.07781e-25 2.80415e-38 7.70131e-17 4.20201e-17 3.29299e-18 2.63214e-17 1.75762e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.75826e-13 4.28917e-17 5.94709e-17 4.55582e-17 5.0286e-17 6.22054e-17 4.17167e-17 2.06514e-30 3.85614e-18 7.05052e-17 8.34336e-17 7.52693e-17 6.48385e-17 2.14639e-24 2.18478e-20 2.08934e-17 2.61697e-18 4.3947e-24 3.80535e-18 6.88292e-34 2.09983e-17 2.08932e-17 7.2569e-17 6.16112e-22 2.08932e-17 7.59347e-17 5.30232e-17 4.27415e-17 8.37883e-17 1.75723e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75756e-13 3.24832e-18 6.4672e-28 1.3854e-34 3.89633e-17 9.04859e-17 1.16333e-28 1.39288e-19 4.2827e-17 3.36185e-17 4.50585e-18 7.49693e-18 1.11725e-20 1.09919e-20 3.78985e-18 2.1066e-17 3.75813e-17 2.24945e-20 3.75805e-17 9.1554e-30 2.86354e-17 2.08935e-17 3.07826e-17 2.08932e-17 1.35549e-34 1.97978e-17 4.16471e-17 3.16098e-20 1.83256e-17 1.75779e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75625e-13 9.77908e-18 1.97115e-26 2.76283e-32 2.00768e-30 3.86017e-17 6.9043e-25 1.39288e-19 6.25563e-17 3.53356e-17 8.5428e-17 5.9791e-17 1.98601e-18 1.9004e-18 3.72906e-17 7.48008e-17 4.07352e-18 3.86488e-18 4.05618e-18 5.08064e-26 2.61848e-18 1.62268e-18 4.17863e-17 2.08945e-17 2.08932e-17 8.66101e-19 4.18015e-17 7.53064e-18 1.7849e-17 1.75606e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.77333e-13 5.02405e-19 5.02384e-23 5.5803e-31 4.73708e-29 8.34336e-17 1.34414e-22 6.7455e-27 1.97119e-17 4.15547e-17 6.99811e-17 3.78848e-21 1.99662e-17 1.87034e-17 5.90582e-17 3.68424e-17 7.00131e-17 4.28584e-17 3.73443e-17 8.73932e-24 3.73443e-17 1.4653e-17 2.08235e-17 3.79962e-18 1.26174e-31 2.45752e-17 2.39474e-17 2.9368e-18 8.62938e-17 1.77176e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.75908e-13 2.71482e-18 5.13991e-21 1.48483e-26 5.50378e-27 1.21714e-17 2.9529e-17 2.24299e-24 4.16471e-17 9.68906e-18 6.3624e-18 7.78593e-19 6.26808e-19 1.35226e-22 4.71706e-17 6.53894e-18 4.71976e-17 3.67107e-17 5.00473e-23 2.59075e-17 2.3026e-24 3.72874e-17 2.7464e-22 3.72816e-17 2.09246e-27 5.97906e-17 7.17467e-17 2.61091e-17 4.12146e-17 1.77165e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75545e-13 3.49099e-17 7.59131e-18 1.49038e-17 1.25359e-18 6.20985e-17 2.57687e-18 7.01314e-17 3.80257e-17 7.7421e-17 6.50187e-17 7.882e-17 4.36876e-17 2.0545e-17 4.94462e-17 4.59759e-17 4.95191e-17 6.62036e-17 2.15995e-18 2.58379e-17 1.85949e-17 2.13111e-17 1.53224e-17 2.10325e-17 1.25359e-18 2.08932e-17 5.08062e-17 5.72678e-17 8.21256e-17 1.75592e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 3.08039e-13 2.51205e-13 2.50072e-13 2.48606e-13 2.49227e-13 2.48647e-13 2.4857e-13 2.49945e-13 2.49438e-13 2.48692e-13 2.48596e-13 2.49271e-13 2.4853e-13 2.48673e-13 2.48678e-13 2.48658e-13 2.48697e-13 2.49388e-13 2.48681e-13 2.48677e-13 2.48694e-13 2.48712e-13 2.49387e-13 2.48779e-13 2.49989e-13 2.48764e-13 2.4869e-13 2.49516e-13 2.48705e-13 3.08584e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 1.24456e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.00361e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.00361e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.24456e-08 1.66771e-05 0.00205752 0.0225873 0.251657 0.251658 0.0225874 0.00205762 2.61605e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.61605e-05 0.00205762 0.0225874 0.251658 0.252026 0.0227402 0.00308102 0.00228994 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228994 0.00308102 0.0227402 0.252026 0.252535 0.0329681 0.0241973 0.0240736 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240736 0.0241973 0.0329681 0.252535 0.362609 0.260826 0.260438 0.260096 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260096 0.260438 0.260826 0.362609 0.362609 0.260826 0.260438 0.260096 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260096 0.260438 0.260826 0.362609 0.252535 0.0329681 0.0241973 0.0240736 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240735 0.0240736 0.0241973 0.0329681 0.252535 0.252026 0.0227402 0.00308102 0.00228994 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228987 0.00228994 0.00308102 0.0227402 0.252026 0.251658 0.0225874 0.00205762 2.61605e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.01557e-05 2.61605e-05 0.00205762 0.0225874 0.251658 0.251657 0.0225873 0.00205752 1.66771e-05 1.24456e-08 1.0036e-08 1.00361e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.00361e-08 1.00361e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.0036e-08 1.24456e-08 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 3.09422e-13 2.48811e-13 2.48736e-13 2.49706e-13 2.4879e-13 2.48898e-13 2.50949e-13 2.49269e-13 2.48562e-13 2.48682e-13 2.4866e-13 2.48652e-13 2.48541e-13 2.48683e-13 2.48708e-13 2.4869e-13 2.48797e-13 2.49581e-13 2.48799e-13 2.48928e-13 2.51217e-13 2.48952e-13 2.49639e-13 2.48951e-13 2.5115e-13 2.48927e-13 2.48784e-13 2.49397e-13 2.49372e-13 3.10161e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75522e-13 2.08785e-17 2.37625e-18 2.67433e-17 1.38591e-17 1.25359e-18 7.36377e-17 7.50889e-17 2.13809e-17 1.25697e-18 6.82407e-17 7.48885e-17 5.22329e-17 2.50718e-18 2.17985e-17 2.50718e-18 3.93665e-17 3.41255e-17 3.75063e-17 3.13459e-18 2.08958e-18 2.78576e-17 6.37242e-17 3.74131e-17 7.91745e-17 3.14895e-18 3.7632e-17 7.2319e-17 3.18945e-17 1.75288e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.75818e-13 1.83897e-17 2.21253e-17 4.40669e-42 1.28145e-17 4.35423e-24 4.83038e-20 4.83038e-20 1.86068e-18 1.90849e-18 4.17177e-17 4.83038e-20 1.77832e-34 2.08932e-17 6.47136e-41 2.08932e-17 7.75032e-18 3.35698e-17 2.09927e-17 3.79434e-18 3.8031e-18 2.18558e-20 8.0091e-17 1.75503e-17 3.50173e-21 2.13091e-17 2.12853e-17 1.73961e-17 5.16882e-17 1.7583e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.76022e-13 3.21658e-18 2.59454e-37 1.65108e-38 2.2592e-20 2.38269e-20 6.95723e-18 6.95723e-18 4.57583e-17 1.89558e-17 4.20176e-17 6.95723e-18 6.28092e-29 2.08932e-17 6.30013e-36 2.08932e-17 6.32608e-17 4.89653e-17 2.81995e-17 3.73443e-17 3.75016e-17 3.81257e-18 3.80151e-18 1.29099e-20 4.16473e-17 4.43394e-17 4.29149e-17 3.0361e-19 2.88238e-17 1.77163e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75537e-13 5.2386e-18 1.23912e-35 9.55044e-37 4.07248e-18 4.22842e-18 5.93431e-17 5.93432e-17 4.18751e-17 4.3538e-18 8.78956e-17 5.93432e-17 2.87478e-25 4.13735e-24 5.62453e-31 0 4.13917e-18 2.2695e-24 4.04995e-18 1.13283e-30 2.16452e-18 3.7713e-17 3.72833e-17 2.0898e-17 4.16924e-17 2.11739e-18 9.52513e-20 7.54183e-18 2.58804e-17 1.75453e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75716e-13 4.71151e-17 1.1085e-30 4.88121e-35 4.13316e-17 5.88927e-17 0 1.39288e-19 4.16234e-17 5.51227e-17 5.95455e-17 1.39288e-19 1.11628e-23 2.2344e-20 4.51885e-26 0 3.84466e-17 1.17151e-20 3.72827e-17 8.91086e-26 2.92278e-17 2.16785e-17 1.66155e-21 2.17671e-17 2.86117e-17 3.96121e-17 1.33279e-18 1.71469e-18 1.84127e-17 1.75718e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75829e-13 5.78927e-17 8.92085e-26 4.17167e-17 4.27369e-17 5.74934e-17 4.17167e-17 4.48616e-26 3.7559e-17 5.68596e-17 1.39291e-19 0 7.24993e-17 3.95671e-18 4.91265e-22 0 5.34563e-19 2.0176e-18 2.28709e-20 9.7349e-22 2.55474e-17 5.59744e-17 3.48827e-20 6.01742e-17 6.62051e-20 2.2768e-17 2.22603e-17 1.88497e-17 1.78776e-17 1.75783e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.7738e-13 4.88139e-17 9.7467e-22 2.08932e-17 2.08932e-17 0 2.08932e-17 4.61239e-22 2.34366e-20 3.50696e-22 1.41178e-19 0 3.08523e-17 3.9614e-17 1.49744e-19 0 1.48033e-17 2.84392e-17 3.78947e-18 2.97797e-19 3.65323e-17 3.73443e-17 5.91e-18 5.90788e-18 2.09531e-17 3.75012e-17 5.32288e-17 1.34103e-19 6.94776e-17 1.75761e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75799e-13 2.1982e-17 2.98073e-19 2.08235e-17 1.27934e-24 8.00905e-17 1.74806e-17 1.33142e-19 4.00667e-18 4.16471e-17 3.79651e-18 0 4.18384e-17 3.54845e-18 2.09917e-17 0 4.0977e-17 2.08398e-17 3.72816e-17 2.12821e-17 2.13417e-17 0 5.35877e-17 4.80125e-17 2.441e-17 2.10188e-17 5.72181e-17 1.9127e-18 6.67302e-17 1.75721e-13 7.36015e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.75365e-13 4.45256e-17 4.18435e-17 8.9256e-26 4.16471e-17 0 0 2.09649e-17 4.04054e-17 4.16479e-17 3.74094e-17 1.39288e-19 3.73958e-17 5.59851e-17 2.80422e-17 0 2.80418e-17 4.57812e-17 0 4.27369e-17 3.72816e-17 0 3.87004e-17 6.48385e-17 5.97566e-17 3.34938e-17 2.00638e-18 1.93981e-17 1.41222e-19 1.75344e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36014e-09 1.75211e-13 3.26459e-17 5.58963e-17 9.74639e-22 4.16471e-17 0 0 1.46472e-17 1.90457e-17 3.80674e-18 1.44651e-19 1.39288e-19 1.19313e-19 0 1.08966e-21 0 0 4.17863e-17 0 0 0 0 0 6.48385e-17 0 6.79439e-17 5.20759e-17 1.47294e-17 2.03503e-17 1.75095e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225873 0.00205752 1.66771e-05 7.36015e-09 1.76584e-13 4.16528e-17 0 2.98081e-19 2.37953e-20 0 0 4.27916e-17 3.70506e-17 3.73443e-17 4.16963e-17 0 2.08941e-17 0 2.2358e-20 0 0 2.08235e-17 0 0 0 4.17167e-17 0 0 0 2.42557e-20 5.36051e-19 1.26766e-17 3.23664e-17 1.75293e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251657 0.0225872 0.00205752 1.66771e-05 7.36013e-09 1.75499e-13 2.10648e-17 0 4.18436e-17 3.98567e-18 0 4.16471e-17 0 5.79437e-17 0 1.86408e-17 0 1.43866e-17 0 3.96305e-18 0 0 2.08235e-17 0 0 0 4.17167e-17 0 0 0 3.93293e-18 1.44115e-17 1.95994e-17 2.98801e-17 1.75744e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.251597 0.0225755 0.0020557 1.66558e-05 7.34779e-09 1.76942e-13 2.48667e-17 0 3.7346e-17 6.98411e-17 0 4.16471e-17 0 2.08932e-17 0 0 0 4.51519e-17 2.12414e-17 3.95197e-17 0 0 0 0 0 0 0 0 0 0 5.58963e-17 3.95412e-17 1.54346e-18 1.31841e-18 1.77496e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 0.2343 0.0206903 0.00184997 1.4717e-05 6.38888e-09 1.52498e-13 2.98324e-17 1.96212e-17 1.35574e-17 8.91606e-17 3.5101e-19 2.64659e-17 3.16276e-17 1.14787e-17 4.94884e-17 3.96848e-17 2.87553e-18 1.18769e-17 1.00043e-16 5.00096e-17 3.30693e-17 1.65473e-17 6.46366e-18 9.17407e-17 3.17608e-17 3.75147e-17 4.8165e-17 1.793e-18 2.45879e-17 1.63641e-17 1.48132e-17 1.63318e-17 3.17911e-17 5.84797e-17 1.75566e-13 7.36014e-09 1.66771e-05 0.00205752 0.0225873 0.251657 ) ; boundaryField { inlet { type calculated; value uniform 0; } outlet { type calculated; value nonuniform List<scalar> 165 ( 0.2343 0.251597 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251658 0.252026 0.252535 0.362609 0.362609 0.260826 0.260438 0.260096 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260096 0.260438 0.260826 0.362609 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251658 0.252026 0.252535 0.362609 0.251657 0.251657 0.251657 0.251657 0.251657 0.362609 0.252535 0.252026 0.251658 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.362609 0.260826 0.260438 0.260096 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260095 0.260096 0.260438 0.260826 0.362609 0.362609 0.252535 0.252026 0.251658 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251657 0.251597 0.2343 ) ; } obstacle { type calculated; value nonuniform List<scalar> 40 ( 0 0 0 0 0 0 0 0 0 0 0 4.01949e-19 4.51774e-19 0 2.54662e-21 2.71339e-21 0 0 0 0 5.84761e-17 6.30889e-17 3.96965e-15 3.23663e-13 3.60016e-12 1.77229e-17 2.95187e-17 3.91156e-15 3.23705e-13 3.60045e-12 8.52756e-10 9.64258e-09 6.10115e-06 0.000631744 0.00568883 8.5275e-10 9.64258e-09 6.10115e-06 0.000631744 0.00568883 ) ; } empty { type empty; } } // ************************************************************************* //
[ "andytorrestb@gmail.com" ]
andytorrestb@gmail.com
3a6dcfed53bc98fab32833ed11b1989e8a2fc6c2
616f19c9ecab3330a70d7378f5f73bbbc84ee071
/cpp/sizeof/sizeof.cpp
ac5dd5bed64707c37ccf14cbb5f3f1bf07ee1d8c
[]
no_license
rjking58/development
07dd809da012f736d82fde79c051cc2df328e6b7
9566648c6ecfc8b8cb6d166912dd674346da246b
refs/heads/master
2021-10-11T12:25:31.025767
2021-10-01T16:41:06
2021-10-01T16:41:06
14,648,819
0
3
null
null
null
null
UTF-8
C++
false
false
101
cpp
#include <iostream.h> void main() { int ar1[10]; cout << (sizeof(ar1)/sizeof(int)) << endl;; }
[ "richardjking2000@yahoo.com" ]
richardjking2000@yahoo.com
ae35db76dd832c9e57d7d4dee4829a7fea3afeae
fc3b09e0fca56f3601e4a87b5abf97e4e3b359b6
/include/gpumatrix/xpr/ColWiseView.h
8e8f30f2d7b76e19e9af74861817fe0ed1c19b90
[]
no_license
vascokk/gpumatrix
6c038698efdf3cc3ea76edd38b97d8d025674ab3
94e13526bf4272b95b79dc6c4d1eafb7c1d604be
refs/heads/master
2020-06-29T05:07:49.922414
2012-11-14T09:33:25
2012-11-14T09:33:25
6,675,831
1
0
null
null
null
null
UTF-8
C++
false
false
3,055
h
#ifndef COLWISE_VIEW_H_ #define COLWISE_VIEW_H_ #include <gpumatrix/xpr/ColWiseSum.h> #include <gpumatrix/impl/Interface.h> namespace gpumatrix { template <class T/**/> class Matrix; /** * \class XprMMProduct MMProduct.h "gpumatrix/xpr/MMProduct.h" * \brief Expression for matrix-matrix product. * Using formula: * \f[ * M_1\,M_2 * \f] * \note The Rows2 has to be equal to Cols1. */ template<class E> class ColWiseView : public GpuMatrixBase< ColWiseView<E> > { private: ColWiseView(); ColWiseView& operator=(const ColWiseView&); public: typedef typename E::value_type value_type; public: /** Complexity counter. */ // enum { //ops_lhs = E1::ops, //ops_rhs = E2::ops, //M = Rows1 * Cols1 * Cols2, //N = Rows1 * (Cols1 - 1) * Cols2, //ops_plus = M * NumericTraits<value_type>::ops_plus, //ops_muls = N * NumericTraits<value_type>::ops_muls, //ops = ops_plus + ops_muls, //use_meta = Rows1*Cols2 < TVMET_COMPLEXITY_MM_TRIGGER ? true : false // }; //XprVector<ColWiseView<E>> sum() //{ // return XprVector<ColWiseSum<E>>(ColWiseSum<E>(m_expr)); //} typename E::result_type operator += (const Vector<value_type> & x) { typename E::result_type result = m_expr.eval(); impl::colwise_array_compound_op(const_cast<value_type *>(result.data()) , m_expr.rows(),m_expr.cols(), x.data(), Fcnl_colwise_add_eq<value_type,value_type>()); return result; } typename E::result_type operator += (const Map<Vector<value_type>> & x) { typename E::result_type result = m_expr.eval(); impl::colwise_array_compound_op(const_cast<value_type *>(result.data()) , m_expr.rows(),m_expr.cols(), x.data(), Fcnl_colwise_add_eq<value_type,value_type>()); return result; } XprVector<ColWiseSum<E>> sum() { return XprVector<ColWiseSum<E>>(ColWiseSum<E>(m_expr)); } public: /** Constructor. */ explicit ColWiseView(const E& expr) : m_expr(expr) { } /** Copy Constructor. Not explicit! */ #if defined(TVMET_OPTIMIZE_XPR_MANUAL_CCTOR) XprMMProduct(const XprMMProduct& e) : m_lhs(e.m_lhs), m_rhs(e.m_rhs) { } #endif private: ///** Wrapper for meta gemm. */ //static inline //value_type do_gemm(dispatch<true>, const E1& lhs, const E2& rhs, std::size_t i, std::size_t j) { // return meta::gemm<Rows1, // Cols2, // 0>::prod(lhs, rhs, i, j); //} ///** Wrapper for loop gemm. */ //static inline //value_type do_gemm(dispatch<false>, const E1& lhs, const E2& rhs, std::size_t i, std::size_t j) { // return loop::gemm<Rows1>::prod(lhs, rhs, i, j); //} public: public: // debugging Xpr parse tree void print_xpr(std::ostream& os, std::size_t l=0) const { os << IndentLevel(l++) << "ColWiseView<" << std::endl; m_expr.print_xpr(os, l); os << IndentLevel(--l) << ">," << std::endl; } private: const E m_expr; // const E2 m_rhs; }; } // namespace gpumatrix #endif // TVMET_XPR_MMPRODUCT_H
[ "vasco.kk@gmail.com" ]
vasco.kk@gmail.com
bbaedd20f19827d8e8ce16bee58782d2b2d56ad6
263454e4d7f144d15a7676811b4ad4eeb5390a0a
/11877 UVA.cpp
d163489f0319fa8febbcad46660aac5ad897441b
[]
no_license
notorious94/UVa-solution
4d6b90518f499b24d55af75f448445aac5252795
367d62dedbad0c2a2718a1807917dc6965fd39e3
refs/heads/master
2021-06-07T20:24:46.233613
2020-01-27T17:14:19
2020-01-27T17:14:19
94,576,972
3
3
null
null
null
null
UTF-8
C++
false
false
1,376
cpp
#include<bits/stdc++.h> using namespace std; /// M A C R O Starts Here #define pf printf #define sf scanf #define MAX 500000 #define MOD 100000007 #define INF INT_MAX #define pi acos(-1.0) #define get_stl(s) getline(cin,s) #define sif(a) scanf("%d",&a) #define pif(a) printf("%d\n",a) #define puf(a) printf("%llu\n",a) #define pii pair<int, int> #define pdd pair<double, double> #define mem(name, value) memset(name, value, sizeof(name)) #define all(name) name.begin(),name.end() typedef long long ll; typedef unsigned long long ull; int dx[]={0,0,1,-1,-1,1,-1,1}; int dy[]={-1,1,0,0,1,1,-1,-1}; int dz[]={0,0,1,-1,-1,1,-1,1}; int isLeft(double a, double b, double c, double d, double e, double f) { double r = 0.5*((a*(d-f))+(b*(e-c))+((c*f)-(d*e))); if(r==0.00) return 0; if(r<0) return -1; return 1; } double _distance(double x1,double y1,double x2,double y2) { double x1x2 = x1 - x2; double y1y2 = y1 - y2; return sqrt((x1x2*x1x2)+(y1y2*y1y2)); } int main() { //freopen("in.txt","r", stdin); //freopen("out.txt","w", stdout); ios_base::sync_with_stdio(false); cin.tie(NULL); int n; while(scanf("%d",&n)) { if(!n) break; int s = 0; while(n>=3) { s+=(n/3); n = (n/3)+(n%3); if(n==2) n++; } pif(s); } return 0; }
[ "noreply@github.com" ]
noreply@github.com
6041b6719b94cee6eceb99fabe41c1a6c2b58c77
f2b2ee9f32d033211f63a6bc6b84202bad175b44
/Test/TestVirtual/airplane.h
ade789a56a3a3f0d4d6133909efe4d8918cc25c6
[]
no_license
whjbinghun/learning
d10053e80983d72bcf7a8b734fb3d3311adc33b2
798367bb4f2a116317b49e726f8f2f0deb30c704
refs/heads/master
2021-01-18T23:31:11.933176
2016-12-30T05:21:11
2016-12-30T05:21:11
18,207,394
3
0
null
null
null
null
UTF-8
C++
false
false
168
h
#ifndef AIRPLANE_H #define AIRPLANE_H class AirPlane { public: AirPlane(); public: virtual void fly( const AirPlane& destination )=0; }; #endif // AIRPLANE_H
[ "binghunjin@163.com" ]
binghunjin@163.com
02d64a077631e2e6fc2732a6f19c588a15f25971
a41b4e9fc1217b955059719039a926bd93de7f19
/echo-master/a.cpp
785b9cd5e011caab9cf8e204a1a855f001176657
[ "Unlicense" ]
permissive
Lilly-yang/UCA-Pragramming_Challenges
ae09be275ea137ebf1e341ac7330db30502d3178
554e10c0e387be8dbd2d59be545f25e4edac1451
refs/heads/main
2023-02-25T11:20:36.258978
2021-02-05T03:35:15
2021-02-05T03:35:15
336,152,958
0
0
null
null
null
null
UTF-8
C++
false
false
66
cpp
#include <iostream> int main(){ std::cout << "hello world"; }
[ "noreply@github.com" ]
noreply@github.com
6f51312c2c16df1df5e4b7f745b972e5299f5d60
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/components/security_interstitials/content/blocked_interception_blocking_page.h
78db0bd5d4f3769ccc49f80a8b880274e9553f18
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
C++
false
false
1,935
h
// Copyright 2019 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 COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_BLOCKED_INTERCEPTION_BLOCKING_PAGE_H_ #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_BLOCKED_INTERCEPTION_BLOCKING_PAGE_H_ #include "base/macros.h" #include "components/security_interstitials/content/ssl_blocking_page_base.h" #include "components/security_interstitials/content/ssl_cert_reporter.h" #include "components/security_interstitials/core/blocked_interception_ui.h" #include "net/ssl/ssl_info.h" class BlockedInterceptionBlockingPage : public SSLBlockingPageBase { public: // Interstitial type, used in tests. static const security_interstitials::SecurityInterstitialPage::TypeID kTypeForTesting; BlockedInterceptionBlockingPage( content::WebContents* web_contents, int cert_error, const GURL& request_url, std::unique_ptr<SSLCertReporter> ssl_cert_reporter, const net::SSLInfo& ssl_info, std::unique_ptr< security_interstitials::SecurityInterstitialControllerClient> controller_client); ~BlockedInterceptionBlockingPage() override; // SecurityInterstitialPage method: security_interstitials::SecurityInterstitialPage::TypeID GetTypeForTesting() override; protected: // SecurityInterstitialPage implementation: void CommandReceived(const std::string& command) override; bool ShouldCreateNewNavigation() const override; void PopulateInterstitialStrings( base::DictionaryValue* load_time_data) override; private: const net::SSLInfo ssl_info_; const std::unique_ptr<security_interstitials::BlockedInterceptionUI> blocked_interception_ui_; DISALLOW_COPY_AND_ASSIGN(BlockedInterceptionBlockingPage); }; #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_BLOCKED_INTERCEPTION_BLOCKING_PAGE_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
ad9fe75dd7a596e829db98813ab8444c59cb5116
73e7c20803be5d8ae467af1feba8a4a7fe219f4b
/Modules/Filtering/ImageNoise/include/itkShotNoiseImageFilter.h
65df1ea2b5890c81b5f13659e67f54e066d218ed
[ "LicenseRef-scancode-other-permissive", "SMLNJ", "BSD-3-Clause", "LicenseRef-scancode-mit-old-style", "LicenseRef-scancode-free-unknown", "BSD-4.3TAHOE", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "IJG", ...
permissive
CIBC-Internal/itk
deaa8aabe3995f3465ec70a46805bd333967ed5b
6f7b1014a73857115d6da738583492008bea8205
refs/heads/master
2021-01-10T18:48:58.502855
2018-01-26T21:25:51
2018-01-26T21:25:51
31,582,564
0
2
Apache-2.0
2018-05-21T07:59:53
2015-03-03T06:12:12
C++
UTF-8
C++
false
false
3,746
h
/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0.txt * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * *=========================================================================*/ #ifndef itkShotNoiseImageFilter_h #define itkShotNoiseImageFilter_h #include "itkNoiseBaseImageFilter.h" namespace itk { /** \class ShotNoiseImageFilter * * \brief Alter an image with shot noise. * * The shot noise follows a Poisson distribution. * * \author Gaetan Lehmann * * This code was contributed in the Insight Journal paper "Noise * Simulation". https://hdl.handle.net/10380/3158 * * \ingroup ITKImageNoise */ template <class TInputImage, class TOutputImage=TInputImage> class ShotNoiseImageFilter : public NoiseBaseImageFilter<TInputImage,TOutputImage > { public: /** Standard class typedefs. */ typedef ShotNoiseImageFilter Self; typedef NoiseBaseImageFilter< TInputImage,TOutputImage > Superclass; typedef SmartPointer<Self> Pointer; typedef SmartPointer<const Self> ConstPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); /** Run-time type information (and related methods). */ itkTypeMacro(ShotNoiseImageFilter, NoiseBaseImageFilter); /** Superclass typedefs. */ typedef typename Superclass::OutputImageType OutputImageType; typedef typename Superclass::OutputImagePointer OutputImagePointer; typedef typename Superclass::OutputImageRegionType OutputImageRegionType; typedef typename Superclass::OutputImagePixelType OutputImagePixelType; /** Some convenient typedefs. */ typedef TInputImage InputImageType; typedef typename InputImageType::Pointer InputImagePointer; typedef typename InputImageType::ConstPointer InputImageConstPointer; typedef typename InputImageType::RegionType InputImageRegionType; typedef typename InputImageType::PixelType InputImagePixelType; /** \brief a value to map the pixel value to the actual number of photon. * * This value defaults to 1.0. The scaling can be seen as the * inverse of the gain used during the acquisition. The noisy signal * is then scaled back to its input intensity range. */ itkGetConstMacro(Scale, double); itkSetMacro(Scale, double); #ifdef ITK_USE_CONCEPT_CHECKING /** Begin concept checking */ itkConceptMacro(InputConvertibleToOutputCheck, (Concept::Convertible<typename TInputImage::PixelType, typename TOutputImage::PixelType>) ); /** End concept checking */ #endif protected: ShotNoiseImageFilter(); virtual ~ShotNoiseImageFilter() { } void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE; void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, ThreadIdType threadId ) ITK_OVERRIDE; private: ShotNoiseImageFilter(const Self&) ITK_DELETE_FUNCTION; void operator=(const Self&) ITK_DELETE_FUNCTION; double m_Scale; }; } // end namespace itk #ifndef ITK_MANUAL_INSTANTIATION #include "itkShotNoiseImageFilter.hxx" #endif #endif
[ "ayla@sci.utah.edu" ]
ayla@sci.utah.edu
0a28e9251a92c78637099046ce9be8ae5bdf82a4
4cb4df1b8c4c1e591ac7c8fc9874b2b2edfb9884
/CPP/ADVANCE/V_STL/III_容器/VI_priority_queue_优先级队列/优先级队列 priority_queue基本操作.cpp
22d2dcf45b708da021266285812deac2d7b23d6c
[]
no_license
Gmrakari/Curious_realize
c377aae72dc62bf7bb25c4ffcd6aef20fa9a127d
38ef05f72dd2664fcac4915291417f9ef2120933
refs/heads/master
2021-12-19T01:39:35.806220
2021-12-09T03:09:53
2021-12-09T03:09:53
175,038,985
1
0
null
null
null
null
UTF-8
C++
false
false
983
cpp
#define _CRT_SECURE_NO_WARNINGS #include "iostream" using namespace std; #include "queue" //date:2019-06-29 14:49 //Author : null //Project:优先级队列 priority_queue基本操作 // void main81() { priority_queue<int> p1;//默认情况下 是 最大值优先级队列 priority_queue<int,vector<int>,less<int>> p2;//提前定义好的预定义函数 priority_queue<int,vector<int>,greater<int>> p3;//最小值优先级队列 p1.push(33); p1.push(11); p1.push(55); p1.push(22); cout<<"队头元素: "<<p1.top()<<endl; cout<<"队列的大小 "<<p1.size()<<endl; while(p1.size() > 0) { cout<<p1.top()<<" "; p1.pop(); } cout<<"测试最小值优先级队列"<<endl; p3.push(33); p3.push(11); p3.push(55); p3.push(22); cout<<"队头元素: "<<p3.top()<<endl; cout<<"队列的大小 "<<p3.size()<<endl; while(p3.size() > 0) { cout<<p3.top()<<" "; p3.pop(); } } void main() { main81(); cout<<"hellc"<<endl; system("pause"); return 0; }
[ "swift.chou@outlook.com" ]
swift.chou@outlook.com
04ee3f1ab855c769b12f8dbade4d44281f7563c4
da3c0a0937900e28cbe40e0323192e093af592d4
/src/integrators/Headers/mvrpmd_special.hpp
1c17aea52fa6e73ffaa4aad6b69bc6e030575a31
[]
no_license
ElliotEklund/MAVARIC_v2.0
a8d4ebc5614c3e56583a7698bc7e0de37a21ac2a
25b213b3954f479fd2d2c1e82ad5a567267f6940
refs/heads/master
2023-06-28T11:00:20.550305
2021-07-22T03:12:31
2021-07-22T03:12:31
387,864,745
0
0
null
null
null
null
UTF-8
C++
false
false
801
hpp
#ifndef mvrpmd_special_hpp #define mvrpmd_special_hpp #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> #include <math.h> #include "Forces_MTS.hpp" using namespace boost::numeric::ublas; class mvrpmd_special{ public: mvrpmd_special(Forces_MTS *F_In,int nuc_beads, int elec_beads, int num_states,double dt); void step(vector<double> &Q, vector<double> &P, matrix<double> &x, matrix<double> &p); private: double dt, dt_half, dt_tenth; vector<double> P_half; matrix<double> x_next, p_next; matrix<double> x_half, p_half; Forces_MTS *F; }; #endif
[ "ece52@cornell.edu" ]
ece52@cornell.edu
6afad6070e8d747ba979fb448c2a361597014d96
e62e19960bf4ac615adbaf9c458b26131592be39
/lab_huffman/huffman_tree.cpp
62c2ba682fa4306bff971998b641ce99868491e0
[]
no_license
ZaitianFu/Data-Structure
e15e5ce9f43640372f558cbd9bf005e3675ebf51
d3cb93927b7191d929bd143f08e3e569948d30ee
refs/heads/master
2020-04-18T21:43:30.601265
2019-01-27T05:57:46
2019-01-27T05:57:46
167,772,876
0
0
null
null
null
null
UTF-8
C++
false
false
10,311
cpp
/** * @file huffman_tree.cpp * Implementation of a Huffman Tree class. * * @author Chase Geigle - Created * @author Nathan Walters - Modified * @date Summer 2012 * @date Fall 2017 */ #include <algorithm> #include <iostream> #include <queue> #include <utility> #include "huffman_tree.h" using namespace std; HuffmanTree::HuffmanTree(vector<Frequency> frequencies) { std::stable_sort(frequencies.begin(), frequencies.end()); buildTree(frequencies); vector<bool> path; buildMap(root_, path); } HuffmanTree::HuffmanTree(const HuffmanTree& other) { copy(other); } HuffmanTree::HuffmanTree(BinaryFileReader& bfile) { root_ = readTree(bfile); vector<bool> path; buildMap(root_, path); } HuffmanTree::~HuffmanTree() { clear(root_); } const HuffmanTree& HuffmanTree::operator=(const HuffmanTree& rhs) { if (this != &rhs) { clear(root_); copy(rhs); } return *this; } void HuffmanTree::clear(TreeNode* current) { if (current == NULL) return; clear(current->left); clear(current->right); delete current; } void HuffmanTree::copy(const HuffmanTree& rhs) { root_ = copy(rhs.root_); } HuffmanTree::TreeNode* HuffmanTree::copy(const TreeNode* current) { if (current == NULL) return NULL; TreeNode* node = new TreeNode(current->freq); node->left = copy(current->left); node->right = copy(current->right); return node; } HuffmanTree::TreeNode* HuffmanTree::removeSmallest(queue<TreeNode*>& singleQueue, queue<TreeNode*>& mergeQueue) { TreeNode* smallest = NULL; if (singleQueue.empty()) { if (mergeQueue.empty()) return NULL; else { smallest=mergeQueue.front(); mergeQueue.pop(); return smallest; } } else { if (mergeQueue.empty()) { smallest=singleQueue.front(); singleQueue.pop(); return smallest; } else { smallest= singleQueue.front(); if (mergeQueue.front()->freq.getFrequency() >singleQueue.front()->freq.getFrequency()) { singleQueue.pop(); return smallest; } else { smallest=mergeQueue.front(); mergeQueue.pop(); return smallest; } } } /** * @todo Your code here! * * Remove the smallest TreeNode * from the two queues given as * parameters. The entries on the queues are in sorted order, so the * smaller of the two queues heads is the smallest item in either of * the queues. Return this item after removing it from its queue. */ // your code! } void HuffmanTree::buildTree(const vector<Frequency>& frequencies) { queue<TreeNode*> singleQueue; // Queue containing the leaf nodes queue<TreeNode*> mergeQueue; // Queue containing the inner nodes for (unsigned long i=0; i<frequencies.size();i++) { TreeNode* temp = new TreeNode(frequencies[i]); singleQueue.push(temp); } while(singleQueue.size()+mergeQueue.size() != 1) { TreeNode* mostSmall = removeSmallest(singleQueue, mergeQueue); TreeNode* secondSmall = removeSmallest(singleQueue, mergeQueue); TreeNode* parent = new TreeNode(mostSmall->freq.getFrequency()+secondSmall->freq.getFrequency()); parent->left = mostSmall; parent->right = secondSmall; mergeQueue.push(parent); } if(singleQueue.empty()) root_ = mergeQueue.front(); else root_ = singleQueue.front(); } /** * @todo Your code here! * * First, place all of the leaf nodes into the singleQueue in * increasing order of frequency. Note: frequencies is already sorted * for you. * * Next, until there is only one node on the two queues (that is, one * of the queues is empty and one has a single node), remove the two * smallest entries from the two queues. Then, create a new internal * node with these nodes as children, whose frequency is the sum of * these two children's frequencies. Place the new internal node onto * the back of the mergeQueue. * * Finally, when there is a single node left, it is the root. Assign it * to the root and you're done! */ string HuffmanTree::decodeFile(BinaryFileReader& bfile) { stringstream ss; decode(ss, bfile); return ss.str(); } void HuffmanTree::decode(stringstream& ss, BinaryFileReader& bfile) { TreeNode* current = root_; while (bfile.hasBits()) { /** * @todo Your code here! * * This code is reading in all of the bits in the binary file * given. After reading a bit, we go left if the bit was a 0 (or * false), and we go right if the bit was a 1 (or true). * * Special case: if we are at a leaf node, we should "print" its * character to the stringstream (with operator<<, just like cout) * and start traversing from the root node again. */ if(bfile.getNextBit()) current = current->right; else current = current->left; if(current->left ==NULL && current->right==NULL) { ss<<(current->freq.getCharacter()); current = root_; } } } void HuffmanTree::writeTree(BinaryFileWriter& bfile) { writeTree(root_, bfile); } void HuffmanTree::writeTree(TreeNode* current, BinaryFileWriter& bfile) { /** * @todo Your code here! * * This code is writing the current HuffmanTree in a compressed format * to the given BinaryFileWriter. The strategy for doing so is as * follows: * 1. If we are a leaf node, write the bit "1" followed by the * byte that is the character of this node. * 2. If we are an internal node, writ the bit "0", and then * encode the left and right subtree, recursively. * * Note that we don't encode the frequencies in this compressed * version: this is fine, as the structure of the tree still reflects * what the relative frequencies were. */ if(current->left==NULL && current->right==NULL) { bfile.writeBit(1); bfile.writeByte(current->freq.getCharacter()); } else { bfile.writeBit(0); HuffmanTree::writeTree(current->left,bfile ); HuffmanTree::writeTree(current->right,bfile ); } } HuffmanTree::TreeNode* HuffmanTree::readTree(BinaryFileReader& bfile) { /** * @todo Your code here! * * This code is reading a HuffanTree in from a file in the format that * we wrote it above. The strategy, then, is as follows: * 1. If the file has no more bits, we're done. * 2. If we read a 1 bit, we are a leaf node: create a new * TreeNode with the character that is the next byte in the * file (its frequency should be 0, since we are ignoring * frequency data now). * 3. If we read a 0 bit, create a new internal node (with * frequency 0, since we are ignoring them now, and set its left * child and right children to be the subtrees built recursively. * 4. Your function should return the TreeNode it creates, or NULL * if it did not create one. */ while( bfile.hasBits() ) { if(bfile.getNextBit()) { TreeNode* leaf = new TreeNode(Frequency(bfile.getNextByte(), 0)); return leaf; } else { TreeNode* internal = new TreeNode(0); internal->left = HuffmanTree::readTree(bfile); internal->right = HuffmanTree::readTree(bfile); return internal; } } return NULL; // replaceme! } void HuffmanTree::buildMap(TreeNode* current, vector<bool>& path) { // Base case: leaf node. if (current->left == NULL && current->right == NULL) { bitsMap_[current->freq.getCharacter()] = path; return; } // Move left path.push_back(false); buildMap(current->left, path); path.pop_back(); // Move right path.push_back(true); buildMap(current->right, path); path.pop_back(); } void HuffmanTree::printInOrder() const { printInOrder(root_); cout << endl; } void HuffmanTree::printInOrder(const TreeNode* current) const { if (current == NULL) return; printInOrder(current->left); cout << current->freq.getCharacter() << ":" << current->freq.getFrequency() << " "; printInOrder(current->right); } void HuffmanTree::writeToFile(const string& data, BinaryFileWriter& bfile) { for (auto it = data.begin(); it != data.end(); ++it) writeToFile(*it, bfile); } void HuffmanTree::writeToFile(char c, BinaryFileWriter& bfile) { vector<bool> bits = getBitsForChar(c); for (auto it = bits.begin(); it != bits.end(); ++it) bfile.writeBit(*it); } vector<bool> HuffmanTree::getBitsForChar(char c) { return bitsMap_[c]; } // class for generic printing template <typename TreeNode> class HuffmanTreeNodeDescriptor : public GenericNodeDescriptor<HuffmanTreeNodeDescriptor<TreeNode>> { public: HuffmanTreeNodeDescriptor(const TreeNode* root) : subRoot_(root) { /* nothing */ } string key() const { std::stringstream ss; char ch = subRoot_->freq.getCharacter(); int freq = subRoot_->freq.getFrequency(); // print the sum of the two child frequencies if (ch == '\0') ss << freq; // print the leaf containing a character and its count else { if (ch == '\n') ss << "\\n"; else ss << ch; ss << ":" << freq; } return ss.str(); } bool isNull() const { return subRoot_ == NULL; } HuffmanTreeNodeDescriptor left() const { return HuffmanTreeNodeDescriptor(subRoot_->left); } HuffmanTreeNodeDescriptor right() const { return HuffmanTreeNodeDescriptor(subRoot_->right); } private: const TreeNode* subRoot_; }; int HuffmanTree::height(const TreeNode* subRoot) const { if (subRoot == NULL) return -1; return 1 + std::max(height(subRoot->left), height(subRoot->right)); } void HuffmanTree::print(std::ostream& out) const { int h = height(root_); if (h > _max_print_height) { out << "Tree is too big to print. Try with a small file (e.g. " "data/small.txt)" << endl; return; } printTree(HuffmanTreeNodeDescriptor<TreeNode>(root_), out); }
[ "noreply@github.com" ]
noreply@github.com
f4d33612ad7eae0a1be2522d5df3d9c1ccc3a8ff
405ef4b84d0c0f1aca42979094ae1bac52b98638
/projects/afl_server/afl_client.cpp
b05ed76e2e53b57424965ffe9544d033effc408c
[ "BSD-3-Clause" ]
permissive
HaikuArchives/Stamina
3cf68744f759c0e945efe745942b6eb51c4a7004
32d10f940e4747d63d6a9388e62fdeae8934e6d7
refs/heads/master
2020-05-18T15:29:40.638803
2015-06-30T15:04:30
2015-06-30T15:04:50
38,315,667
0
0
null
null
null
null
UTF-8
C++
false
false
2,601
cpp
/* [BSD-style license for Stamina and Charisma] * Copyright (c) 1997-2009, Sylvain Demongeot * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY Sylvain Demongeot ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL Sylvain Demongeot BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* Nom : afl_client.cpp Type : Source C Auteur : Sylvain Demongeot Date de Création: Février 1998 Projet : afl_server Environnement : BeOS Fonction : vérouillage coopératif de fichiers (partie client) Remarques : - Bugs : - Copyright : © Sylvain Demongeot. Reproduction interdite */ #include <loadbufimage.h> #include <afl_client.h> extern char afl_server[4531]; static thread_id server_thread=0; int afl_init(void) { server_thread=loadbufimage(afl_server,sizeof afl_server,AFL_SERVER_NAME); if(server_thread<0) return server_thread; resume_thread(server_thread); return 0; } int afl_lock(const char *path) { thread_id tid; status_t status; int r; do{ r=afl_talk(AFLMSG_LOCK,path,&tid,sizeof tid); if(r==AFLMSG_ISLOCKED) wait_for_thread(tid,&status); }while(r==AFLMSG_ISLOCKED); return r; } int afl_unlock(const char *path) { return afl_talk(AFLMSG_UNLOCK,path,NULL,0); } int afl_talk(int code, const char *path, void *reply, int replysize) { thread_id tid; int r; if(server_thread<=0) return-1; r=send_data(server_thread,code,path,strlen(path)+1); if(r) return r; r=receive_data(&tid,reply,replysize); // printf("tid=%d\n",tid); return r; }
[ "waddlesplash@gmail.com" ]
waddlesplash@gmail.com
6f1d9e8c8e6ad8bdf02882b4dde509d7303a5b4d
a784a8306b484528e74499373b37c1802c0f4533
/wray/Shapes.cpp
453fc1eaa10ac730bb4decda1c546c5d065b74b0
[]
no_license
Staringxin/WRay
2bbab4c3ef32ae1e06d06f96d472100f1591c5ed
9732ad498d9e185fac307ad1dffd865990ed53b3
refs/heads/master
2020-04-14T01:58:26.131023
2018-07-06T06:44:31
2018-07-06T06:44:31
null
0
0
null
null
null
null
GB18030
C++
false
false
916
cpp
// Shapes.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; #include "Vector3.h" #include "Ray.h" #include "DifferentialGeometry.h" #include "Triangle.h" #include "BoundingBox.h"/* int main() { // // Vector3 v1(1,2,3); // Vector3 v2(2,3,4); // Vector3 v3(3,4,5); // DifferentialGeometry DG; // cout<<DG.position.x<<DG.position.y<<DG.position.z<<endl; // cout<<DG.normal.x<<DG.normal.y<<DG.normal.z<<endl; // cout<<DG.tangent.x<<DG.tangent.y<<DG.tangent.z<<endl; // cout<<DG.bitangent.x<<DG.bitangent.y<<DG.bitangent.z<<endl; // cout<<DG.texCoord.x<<DG.texCoord.y<<endl; // cout<<DG.rayDir.x<<DG.rayDir.y<<DG.rayDir.z<<endl; // cout<<DG.mtlId<<endl; WTriangle t; t.point1=Vector3(0,-2,0); t.point2=Vector3(1,2,0); t.point3=Vector3(0,0,1); WBoundingBox b(t); b.pMin.showCoords(); b.pMax.showCoords(); system("pause"); return 0; }*/
[ "549088764@qq.com" ]
549088764@qq.com
109b7e9bf649e79cbd2e5b65b06c87034af1789e
11f4c7f67fd8e515c40828e45049088051416cf8
/lidarlite_node/include/I2C_DeviceLib.h
54a73ca9e64c1f632ddb99da555c0891f6a6adac
[]
no_license
iDriveJeep/iDrive
89eb62dc13f9128953b337934d69222ff5805ca8
5c984eb5b30855aa32136b67ebc6ae27f81e71ae
refs/heads/master
2022-10-08T11:03:55.307462
2020-06-12T06:35:56
2020-06-12T06:35:56
271,713,743
4
0
null
null
null
null
UTF-8
C++
false
false
588
h
#ifndef I2C_DEVICE_H #define I2C_DEVICE_H #include <vector> #include <iostream> class I2C_Device { public: I2C_Device(unsigned char _kI2CBus, char _I2CDevice_Address); ~I2C_Device() ; char I2CDevice_Address; unsigned char kI2CBus; int I2C_FileDescriptor; int error; int write_I2CDevice (int writeRegister, int writeValue); int write_I2CDevice_block_of_u8(std::vector<std::uint8_t> bloques); int read_I2CDevice (int readRegister); private: bool open_I2CDevice (); void close_I2CDevice (); }; #endif //
[ "iDriveJeep2020@gmail.com" ]
iDriveJeep2020@gmail.com
6b11592caf5a30ee3a5dc9827d54fbf700fb492f
fb4958b43a2d9a8ed65794dace708f2128144300
/src/test_mhmc_age.cpp
faa223872035c755173ec6682d87a7c0eb4f5964
[]
no_license
DiegoVergara/DropOut-HMC_cpp
b8332662f5e4c3abc46ca5979f9e519e8cc66176
99ac8636c5655d9f7ab1eefc5110f4d4a84148bb
refs/heads/master
2021-05-04T00:51:08.062622
2018-02-05T20:42:41
2018-02-05T20:42:41
120,352,400
0
0
null
null
null
null
UTF-8
C++
false
false
3,654
cpp
//#include "hmc.hpp" #include "utils/c_utils.hpp" #include <iostream> #include <stdlib.h> #include <cstdlib> #include <cfloat> #include <cmath> #include <vector> #include <Eigen/Sparse> #include <chrono> #include <ctime> #include <random> #include <Eigen/Core> #include <Eigen/Dense> #include <Eigen/Cholesky> #include "likelihood/CPU_mhmc.hpp" using namespace Eigen; using namespace std; int main(int argc, char const *argv[]) { C_utils utils; string path; if(argc != 3) { cerr <<"Incorrect input list" << endl; cerr <<"exiting..." << endl; return EXIT_FAILURE; } else{ string train_csv_path, test_csv_path; if(strcmp(argv[1], "-path") == 0) { path=argv[2]; } } const int dir_err = system(("mkdir -p "+path).c_str()); if (-1 == dir_err) { printf("Error creating directory!n"); exit(1); } path = path+"/"; cout << "Read Data" << endl; MatrixXd X_train; MatrixXd X_test; VectorXd Y_train; VectorXd Y_test; utils.read_Data("../data/MNIST/vgg_face_avg/X_train.csv",X_train); utils.read_Data("../data/MNIST/vgg_face_avg/X_test.csv",X_test); utils.read_Labels("../data/MNIST/vgg_face_avg/Y_train.csv",Y_train); utils.read_Labels("../data/MNIST/vgg_face_avg/Y_test.csv",Y_test); cout << "Init" << endl; VectorXd predicted_labels; double lambda = 0.1; int epochs = 100; int mini_batch=1000; int num_batches=X_train.rows()/mini_batch; int iterations = epochs*num_batches; int warmup = 10*num_batches; double step_size = 1e-4; int num_steps = 1e1; int samples = 1000; int psamples = 50; cout << "Lambda: " << lambda << ", Warmup: " << warmup << ", Iterations: " << iterations << ", Epochs: " << epochs << ", Mini Batch: " << mini_batch << ", Samples: "<< samples << ", Step Size: " << step_size << ", Num Steps:" << num_steps << endl; CPU_Hamiltonian_MC hmc; hmc.init(X_train, Y_train, lambda, warmup, iterations, mini_batch, step_size, num_steps, true, true, samples, path); cout << "Init run" << endl; auto start = chrono::high_resolution_clock::now(); hmc.run(); auto finish = chrono::high_resolution_clock::now(); chrono::duration<double> elapsed = finish - start; cout << "Elapsed Simulation time: " << elapsed.count() << " s\n"; cout << "Init predict" << endl; predicted_labels = hmc.predict(X_test, psamples, false); cout << "Prob" << endl; MatrixXd predict_proba = hmc.get_predict_proba(); utils.writeToCSVfile(path+"predict_proba_mean.csv", predict_proba); utils.writeToCSVfile(path+"predict_proba_max.csv", (predict_proba.rowwise().maxCoeff())); MatrixXd predict_proba_std = hmc.get_predict_proba_std(); utils.writeToCSVfile(path+"predict_proba_std.csv", predict_proba_std); utils.writeToCSVfile(path+"Y_test.csv", Y_test); cout << "Mean Prob" << endl; VectorXd mean_prob = predict_proba.colwise().mean(); cout << mean_prob.transpose() << endl; cout << "Std Prob" << endl; VectorXd std_prob = ((predict_proba.rowwise() - mean_prob.transpose()).array().square().colwise().sum() / (predict_proba.rows())).sqrt(); cout << std_prob.transpose() << endl; MatrixXd predict_history = hmc.get_predict_history(); VectorXd histogram(psamples); for (int i = 0; i < predict_history.cols(); ++i){ histogram(i) = utils.calculateAccuracyPercent(Y_test, predict_history.col(i)); } utils.writeToCSVfile(path+"histogram.csv", histogram); utils.writeToCSVfile(path+"Y_hat.csv", predicted_labels); cout << "Init report" << endl; utils.report(Y_test, predicted_labels, true); utils.confusion_matrix(Y_test, predicted_labels, true); utils.calculateAccuracyPercent(Y_test, predicted_labels); return 0; }
[ "reiby-viper@hotmail.com" ]
reiby-viper@hotmail.com
b90b920920cdd3b634e0ffdf6eb6cc4bf43b3dd6
53066aa034ea87cdf2fd2f5cb2077400aaf341c3
/gs/include/coresets/sensitivity_sampling.hpp
8b702a0a1adfee61557e7e8233742a5c99ecd64f
[ "MIT" ]
permissive
sheikhomar/eval-k-means-coresets
7a52c3a62cd792b44d7fb235f83b626b39c0e278
2b55808958b280e012043157119458ff23ab5a27
refs/heads/main
2022-08-18T20:57:48.391538
2022-07-28T05:46:58
2022-07-28T05:46:58
508,222,954
1
0
null
null
null
null
UTF-8
C++
false
false
1,118
hpp
#pragma once #include <algorithm> #include <vector> #include <iostream> #include <clustering/kmeans.hpp> #include <coresets/coreset.hpp> #include <utils/random.hpp> namespace coresets { class SensitivitySampling { public: /** * Number of points that the algorithm should aim to include in the coreset: T */ const size_t TargetSamplesInCoreset; /** * Number of clusters to partition the data into: k */ const size_t NumberOfClusters; SensitivitySampling(size_t numberOfClusters, size_t targetSamplesInCoreset); std::shared_ptr<Coreset> run(const blaze::DynamicMatrix<double> &data); private: utils::Random random; std::shared_ptr<Coreset> generateCoresetPoints(const blaze::DynamicMatrix<double> &data, const clustering::ClusterAssignmentList &clusterAssignments); std::shared_ptr<blaze::DynamicVector<double>> calcCenterWeights(const clustering::ClusterAssignmentList &clusterAssignments, std::shared_ptr<blaze::DynamicVector<size_t>> sampledIndices); }; }
[ "sheikhomar@users.noreply.github.com" ]
sheikhomar@users.noreply.github.com
0b3e07a2c345ea0d11ba317e5cdcb1658361e573
2607df9b1aab1ac402234989f45d93c7444830d8
/Crumble/src/Crumble/Renderer/Renderer2D.cpp
1eec69e6753c165a95f2cffb46bb33d669d14a0e
[ "Apache-2.0" ]
permissive
blanerhodes/Crumble2
6ba4e1bd6f666d5542861edc710850b0988fea3a
6d728a5fe6b6c565e15ec7b3b8574776e3807b8d
refs/heads/master
2023-04-18T04:29:58.568355
2021-04-29T19:34:32
2021-04-29T19:34:32
350,108,192
0
0
null
null
null
null
UTF-8
C++
false
false
5,068
cpp
#include "crpch.h" #include "Renderer2D.h" #include "VertexArray.h" #include "Shader.h" #include "RenderCommand.h" #include "glm/gtc/matrix_transform.hpp" namespace Crumble { struct Renderer2DStorage { Ref<VertexArray> QuadVertexArray; Ref<Shader> TextureShader; Ref<Texture2D> WhiteTexture; }; static Renderer2DStorage* s_Data; void Renderer2D::Init() { s_Data = new Renderer2DStorage(); s_Data->QuadVertexArray = VertexArray::Create(); float squareVertices[5 * 4] = { -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.5f, 0.5f, 0.0f, 1.0f, 1.0f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f }; Ref<VertexBuffer> squareVB; squareVB.reset(VertexBuffer::Create(squareVertices, sizeof(squareVertices))); squareVB->SetLayout({ { ShaderDataType::Float3, "a_Position" }, { ShaderDataType::Float2, "a_TexCoord" } }); s_Data->QuadVertexArray->AddVertexBuffer(squareVB); uint32_t squareIndices[6] = { 0, 1, 2, 2, 3, 0 }; Ref<IndexBuffer> squareIB; squareIB.reset(IndexBuffer::Create(squareIndices, sizeof(squareIndices) / sizeof(uint32_t))); s_Data->QuadVertexArray->SetIndexBuffer(squareIB); s_Data->WhiteTexture = Texture2D::Create(1, 1); uint32_t whiteTextureData = 0xffffffff; s_Data->WhiteTexture->SetData(&whiteTextureData, sizeof(uint32_t)); s_Data->TextureShader = Shader::Create("assets/shaders/Texture.glsl"); s_Data->TextureShader->Bind(); s_Data->TextureShader->SetInt("u_Texture", 0); } void Renderer2D::Shutdown() { delete s_Data; } void Renderer2D::BeginScene(const OrthographicCamera& camera) { s_Data->TextureShader->Bind(); s_Data->TextureShader->SetMat4("u_ViewProjection", camera.GetViewProjectionMatrix()); } void Renderer2D::EndScene() { } void Renderer2D::DrawQuad(const glm::vec2& position, const glm::vec2& size, const glm::vec4& color) { DrawQuad({ position.x, position.y, 0.0f }, size, color); } void Renderer2D::DrawQuad(const glm::vec3& position, const glm::vec2& size, const glm::vec4& color) { s_Data->TextureShader->SetFloat4("u_Color", color); s_Data->TextureShader->SetFloat("u_TilingFactor", 1.0f); s_Data->WhiteTexture->Bind(); glm::mat4 transform = glm::translate(glm::mat4(1.0f), position) * glm::scale(glm::mat4(1.0f), { size.x, size.y, 1.0f }); s_Data->TextureShader->SetMat4("u_Transform", transform); s_Data->QuadVertexArray->Bind(); RenderCommand::DrawIndexed(s_Data->QuadVertexArray); } void Renderer2D::DrawQuad(const glm::vec2& position, const glm::vec2& size, const Ref<Texture2D>& texture, float tilingFactor, const glm::vec4& tintColor) { DrawQuad({ position.x, position.y, 0.0f }, size, texture, tilingFactor, tintColor); } void Renderer2D::DrawQuad(const glm::vec3& position, const glm::vec2& size, const Ref<Texture2D>& texture, float tilingFactor, const glm::vec4& tintColor) { s_Data->TextureShader->SetFloat4("u_Color", tintColor); s_Data->TextureShader->SetFloat("u_TilingFactor", tilingFactor); texture->Bind(); glm::mat4 transform = glm::translate(glm::mat4(1.0f), position) * glm::scale(glm::mat4(1.0f), { size.x, size.y, 1.0f }); s_Data->TextureShader->SetMat4("u_Transform", transform); s_Data->QuadVertexArray->Bind(); RenderCommand::DrawIndexed(s_Data->QuadVertexArray); } void Renderer2D::DrawRotatedQuad(const glm::vec2& position, const glm::vec2& size, float rotation, const glm::vec4& color) { DrawRotatedQuad({ position.x, position.y, 0.0f }, size, rotation, color); } void Renderer2D::DrawRotatedQuad(const glm::vec3& position, const glm::vec2& size, float rotation, const glm::vec4& color) { s_Data->TextureShader->SetFloat4("u_Color", color); s_Data->TextureShader->SetFloat("u_TilingFactor", 1.0f); s_Data->WhiteTexture->Bind(); glm::mat4 transform = glm::translate(glm::mat4(1.0f), position) * glm::rotate(glm::mat4(1.0f), rotation, { 0.0f, 0.0f, 1.0f }) * glm::scale(glm::mat4(1.0f), { size.x, size.y, 1.0f }); s_Data->TextureShader->SetMat4("u_Transform", transform); s_Data->QuadVertexArray->Bind(); RenderCommand::DrawIndexed(s_Data->QuadVertexArray); } void Renderer2D::DrawRotatedQuad(const glm::vec2& position, const glm::vec2& size, float rotation, const Ref<Texture2D>& texture, float tilingFactor, const glm::vec4& tintColor) { DrawRotatedQuad({ position.x, position.y, 0.0f }, size, rotation, texture, tilingFactor, tintColor); } void Renderer2D::DrawRotatedQuad(const glm::vec3& position, const glm::vec2& size, float rotation, const Ref<Texture2D>& texture, float tilingFactor, const glm::vec4& tintColor) { s_Data->TextureShader->SetFloat4("u_Color", tintColor); s_Data->TextureShader->SetFloat("u_TilingFactor", tilingFactor); texture->Bind(); glm::mat4 transform = glm::translate(glm::mat4(1.0f), position) * glm::rotate(glm::mat4(1.0f), rotation, { 0.0f, 0.0f, 1.0f }) * glm::scale(glm::mat4(1.0f), { size.x, size.y, 1.0f }); s_Data->TextureShader->SetMat4("u_Transform", transform); s_Data->QuadVertexArray->Bind(); RenderCommand::DrawIndexed(s_Data->QuadVertexArray); } }
[ "bcr76@txstate.edu" ]
bcr76@txstate.edu
c0ed3b35c2906794b0b003bc3d020498131a7a54
45d1f4928a09441cfe9a37e151a2f4483030b181
/Student.h
14463e9fc72cd06b99eb4abb5dded71f583b4398
[]
no_license
EDavtyan/OOP_HW3
6fcd42ca366a5a9ce730db07857d981afbfac0bc
37c813a53956f676a0498e09554c20a7d9b638b4
refs/heads/master
2020-03-13T00:38:06.530832
2018-04-24T17:55:32
2018-04-24T17:55:32
130,888,380
0
0
null
null
null
null
UTF-8
C++
false
false
666
h
// // Created by Edgar Davtyan on 4/17/18. // #ifndef STUDENT_STUDENT_H #define STUDENT_STUDENT_H #include <string> #include "Date.h" class Student { public: Student(std::string, std::string, std::string); Student(const Student&); void set_birth_date(int, int, int); void set_name(std::string, std::string); std::string get_birth_date(); std::string get_first_name(); std::string get_last_name(); std::string get_id(); private: static int m_count; int idNum; std::string m_id; std::string m_firrstName; std::string m_secondName; Date m_birthDate; std::string m_faculty; }; #endif //STUDENT_STUDENT_H
[ "noreply@github.com" ]
noreply@github.com
6ba113aea4b56196d3542efe627e19cdfe75e9ef
1b8772e3fc0c986e28d48fccf383b626dd0b26a6
/src/HistFactory.h
19b68a6b0f778e43b97f6de64f2f9978e592162e
[]
no_license
jrtomps/SpecTclJson
d3aef5eb7ed058e5536676e8652dcd4c97a93e65
3b66d40bea50217029554690788fef78b57736f9
refs/heads/master
2021-01-10T19:54:17.278410
2016-01-15T16:22:29
2016-01-15T16:22:29
33,197,716
0
0
null
null
null
null
UTF-8
C++
false
false
578
h
#ifndef JSONTOTH1_H #define JSONTOTH1_H #include <iosfwd> #include <memory> #include <TH1.h> namespace Json { class Value; } namespace SpJs { class HistInfo; class HistFactory { public: // Designed to parse json retrieved from list cmd and // turn into an empty TH1 std::unique_ptr<TH1> create(const char* jsonByteRep); std::unique_ptr<TH1> create(const Json::Value& value); // Given an already parsed list command, create the hist // with no content std::unique_ptr<TH1> create(const HistInfo& info); }; } #endif
[ "tompkins@nscl.msu.edu" ]
tompkins@nscl.msu.edu
135e4cb4dbd928ce1fb3be6b22b64f11d680ca50
e6b29fee3a6c328b17eb4366a59915fe5f0f1c04
/Entity.cpp
7167fdf621ade95846897767f064f26a2459b6c2
[]
no_license
iblobtouch/cppPlatformer
a9aad214c2742e36422ed984c9c0476f9c65efb5
ef50303e8d106ea1d4ef9f1bb3d7ffe8a1510ca5
refs/heads/master
2020-07-16T20:17:32.075836
2019-10-03T12:46:50
2019-10-03T12:46:50
205,860,657
0
0
null
null
null
null
UTF-8
C++
false
false
1,951
cpp
#include "Entity.h" std::vector<SDL_Rect> Entity::generateRectsFromSheet(ReadableTexture* sheet, SDL_Point imgSize) { int sw = sheet->getWidth(), sh = sheet->getHeight(); std::vector<SDL_Rect> result; for (int y = 0; y < sh; y += imgSize.y) { for (int x = 0; x < sw; x += imgSize.x) { SDL_Rect tempRect = { x, y, imgSize.x, imgSize.y }; result.push_back(tempRect); } } return result; } Entity::Entity(std::vector<ReadableTexture*>* images, SDL_Point imgSize, int imgScale) { pos = new Point(); accel = new Point(); Entity::imgScale = imgScale; entityScreenRect = { 0, 0, imgSize.x * imgScale, imgSize.y * imgScale }; entityImages = images; for (int i = 0; i < entityImages->size(); i += 1) { entityClipRects.push_back(generateRectsFromSheet(entityImages->at(i), imgSize)); } } Entity::Entity(Point* pos, Point* a, std::vector<ReadableTexture*>* images, SDL_Point imgSize, int imgScale) { Entity::pos = pos; Entity::accel = a; Entity::imgScale = imgScale; entityScreenRect = { 0, 0, imgSize.x * imgScale, imgSize.y * imgScale }; entityImages = images; for (int i = 0; i < entityImages->size(); i += 1) { entityClipRects.push_back(generateRectsFromSheet(entityImages->at(i), imgSize)); } } void Entity::update() { pos->add(accel); entityScreenRect.x = trunc(pos->x); entityScreenRect.y = trunc(pos->y); } std::vector<ReadableTexture*>* Entity::getImages() { return entityImages; } SDL_Point Entity::getImgSize() { return { entityScreenRect.w / imgScale, entityScreenRect.h / imgScale }; } int Entity::getImgScale() { return imgScale; } SDL_Texture* Entity::getCurrentImage() { return entityImages->at(curState)->getTexture(); } SDL_Rect* Entity::getCurrentClip() { return entityClipRects[curState].data() + (curFrame / (ANIMATIONSLOW)); } SDL_Rect Entity::getScreenRect() { return entityScreenRect; } Point* Entity::getPosition() { return pos; } Point* Entity::getAccel() { return accel; }
[ "kingsburynick@ymail.com" ]
kingsburynick@ymail.com
373a0129b6650420788585eaa43495683c0aa0cf
2d361696ad060b82065ee116685aa4bb93d0b701
/include/serial/impl/continfo.hpp
180f943f0621a55071cc7d7cb01ad2654aed24f9
[ "LicenseRef-scancode-public-domain" ]
permissive
AaronNGray/GenomeWorkbench
5151714257ce73bdfb57aec47ea3c02f941602e0
7156b83ec589e0de8f7b0a85699d2a657f3e1c47
refs/heads/master
2022-11-16T12:45:40.377330
2020-07-10T00:54:19
2020-07-10T00:54:19
278,501,064
1
1
null
null
null
null
UTF-8
C++
false
false
10,165
hpp
#ifndef CONTINFO__HPP #define CONTINFO__HPP /* $Id: continfo.hpp 547688 2017-10-03 13:21:50Z gouriano $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Author: Eugene Vasilchenko * * File Description: * !!! PUT YOUR DESCRIPTION HERE !!! */ #include <corelib/ncbistd.hpp> #include <corelib/ncbiutil.hpp> #include <serial/typeinfo.hpp> #include <serial/impl/typeref.hpp> #include <memory> /** @addtogroup TypeInfoCPP * * @{ */ BEGIN_NCBI_SCOPE class CConstContainerElementIterator; class CContainerElementIterator; class NCBI_XSERIAL_EXPORT CContainerTypeInfo : public CTypeInfo { typedef CTypeInfo CParent; public: CContainerTypeInfo(size_t size, TTypeInfo elementType, bool randomOrder); CContainerTypeInfo(size_t size, const CTypeRef& elementType, bool randomOrder); CContainerTypeInfo(size_t size, const char* name, TTypeInfo elementType, bool randomOrder); CContainerTypeInfo(size_t size, const char* name, const CTypeRef& elementType, bool randomOrder); CContainerTypeInfo(size_t size, const string& name, TTypeInfo elementType, bool randomOrder); CContainerTypeInfo(size_t size, const string& name, const CTypeRef& elementType, bool randomOrder); TTypeInfo GetElementType(void) const; bool RandomElementsOrder(void) const; virtual EMayContainType GetMayContainType(TTypeInfo type) const override; virtual void Assign(TObjectPtr dst, TConstObjectPtr src, ESerialRecursionMode how = eRecursive) const override; virtual bool Equals(TConstObjectPtr object1, TConstObjectPtr object2, ESerialRecursionMode how = eRecursive) const override; // iterators methods (private) class CConstIterator { public: CConstIterator(void); ~CConstIterator(void); typedef NCBI_NS_NCBI::TConstObjectPtr TObjectPtr; const CContainerTypeInfo* GetContainerType(void) const; TObjectPtr GetContainerPtr(void) const; void Reset(void); const CContainerTypeInfo* m_ContainerType; TObjectPtr m_ContainerPtr; void* m_IteratorData; }; class CIterator { public: CIterator(void); ~CIterator(void); typedef NCBI_NS_NCBI::TObjectPtr TObjectPtr; const CContainerTypeInfo* GetContainerType(void) const; TObjectPtr GetContainerPtr(void) const; void Reset(void); const CContainerTypeInfo* m_ContainerType; TObjectPtr m_ContainerPtr; void* m_IteratorData; }; bool InitIterator(CConstIterator& it, TConstObjectPtr containerPtr) const; void ReleaseIterator(CConstIterator& it) const; void CopyIterator(CConstIterator& dst, const CConstIterator& src) const; bool NextElement(CConstIterator& it) const; TConstObjectPtr GetElementPtr(const CConstIterator& it) const; bool InitIterator(CIterator& it, TObjectPtr containerPtr) const; void ReleaseIterator(CIterator& it) const; void CopyIterator(CIterator& dst, const CIterator& src) const; bool NextElement(CIterator& it) const; TObjectPtr GetElementPtr(const CIterator& it) const; bool EraseElement(CIterator& it) const; void EraseAllElements(CIterator& it) const; TObjectPtr AddElement(TObjectPtr containerPtr, TConstObjectPtr elementPtr, ESerialRecursionMode how = eRecursive) const; TObjectPtr AddElement(TObjectPtr containerPtr, CObjectIStream& in) const; // corresponding to size() and reserve() respectively size_t GetElementCount(TConstObjectPtr containerPtr) const; void ReserveElements(TObjectPtr containerPtr, size_t new_count) const; typedef bool (*TInitIteratorConst)(CConstIterator&); typedef void (*TReleaseIteratorConst)(CConstIterator&); typedef void (*TCopyIteratorConst)(CConstIterator&, const CConstIterator&); typedef bool (*TNextElementConst)(CConstIterator&); typedef TConstObjectPtr (*TGetElementPtrConst)(const CConstIterator&); typedef bool (*TInitIterator)(CIterator&); typedef void (*TReleaseIterator)(CIterator&); typedef void (*TCopyIterator)(CIterator&, const CIterator&); typedef bool (*TNextElement)(CIterator&); typedef TObjectPtr (*TGetElementPtr)(const CIterator&); typedef bool (*TEraseElement)(CIterator&); typedef void (*TEraseAllElements)(CIterator&); typedef TObjectPtr (*TAddElement)(const CContainerTypeInfo* cType, TObjectPtr cPtr, TConstObjectPtr ePtr, ESerialRecursionMode how); typedef TObjectPtr (*TAddElementIn)(const CContainerTypeInfo* cType, TObjectPtr cPtr, CObjectIStream& in); typedef size_t (*TGetElementCount)(const CContainerTypeInfo* cType, TConstObjectPtr containerPtr); typedef void (*TReserveElements)(const CContainerTypeInfo* cType, TObjectPtr cPtr, size_t new_count); void SetConstIteratorFunctions(TInitIteratorConst, TReleaseIteratorConst, TCopyIteratorConst, TNextElementConst, TGetElementPtrConst); void SetIteratorFunctions(TInitIterator, TReleaseIterator, TCopyIterator, TNextElement, TGetElementPtr, TEraseElement, TEraseAllElements); void SetAddElementFunctions(TAddElement, TAddElementIn); void SetCountFunctions(TGetElementCount, TReserveElements = 0); protected: static void ReadContainer(CObjectIStream& in, TTypeInfo objectType, TObjectPtr objectPtr); static void WriteContainer(CObjectOStream& out, TTypeInfo objectType, TConstObjectPtr objectPtr); static void SkipContainer(CObjectIStream& in, TTypeInfo objectType); static void CopyContainer(CObjectStreamCopier& copier, TTypeInfo objectType); protected: CTypeRef m_ElementType; bool m_RandomOrder; private: void InitContainerTypeInfoFunctions(void); // iterator functions TInitIteratorConst m_InitIteratorConst; TReleaseIteratorConst m_ReleaseIteratorConst; TCopyIteratorConst m_CopyIteratorConst; TNextElementConst m_NextElementConst; TGetElementPtrConst m_GetElementPtrConst; TInitIterator m_InitIterator; TReleaseIterator m_ReleaseIterator; TCopyIterator m_CopyIterator; TNextElement m_NextElement; TGetElementPtr m_GetElementPtr; TEraseElement m_EraseElement; TEraseAllElements m_EraseAllElements; TAddElement m_AddElement; TAddElementIn m_AddElementIn; TGetElementCount m_GetElementCount; TReserveElements m_ReserveElements; }; class NCBI_XSERIAL_EXPORT CConstContainerElementIterator { public: typedef CContainerTypeInfo::CConstIterator TIterator; CConstContainerElementIterator(void); CConstContainerElementIterator(TConstObjectPtr containerPtr, const CContainerTypeInfo* containerType); CConstContainerElementIterator(const CConstContainerElementIterator& src); CConstContainerElementIterator& operator=(const CConstContainerElementIterator& src); void Init(TConstObjectPtr containerPtr, const CContainerTypeInfo* containerType); TTypeInfo GetElementType(void) const; bool Valid(void) const; TMemberIndex GetIndex(void) const; void Next(void); pair<TConstObjectPtr, TTypeInfo> Get(void) const; size_t GetElementCount(void) const; private: TTypeInfo m_ElementType; TIterator m_Iterator; TMemberIndex m_ElementIndex; }; class NCBI_XSERIAL_EXPORT CContainerElementIterator { public: typedef CContainerTypeInfo::CIterator TIterator; CContainerElementIterator(void); CContainerElementIterator(TObjectPtr containerPtr, const CContainerTypeInfo* containerType); CContainerElementIterator(const CContainerElementIterator& src); CContainerElementIterator& operator=(const CContainerElementIterator& src); void Init(TObjectPtr containerPtr, const CContainerTypeInfo* containerType); TTypeInfo GetElementType(void) const; bool Valid(void) const; TMemberIndex GetIndex(void) const; void Next(void); void Erase(void); void EraseAll(void); pair<TObjectPtr, TTypeInfo> Get(void) const; private: TTypeInfo m_ElementType; TIterator m_Iterator; TMemberIndex m_ElementIndex; }; /* @} */ #include <serial/impl/continfo.inl> END_NCBI_SCOPE #endif /* CONTINFO__HPP */
[ "aaronngray@gmail.com" ]
aaronngray@gmail.com
4c954edb9734277e2d2f1b674147b0f8f7dba75c
51faca0ffd1c452a427e551cd8c528a4ac80fc75
/cf/1202/A.cpp
401045b444d4888930bea3bbec25e17d54a00da1
[]
no_license
xLLLxLLLx/xLLLx
37f4127a34374b27f14fe856d854c9a13a9b2e28
7ec2ddf39d903c0cdfd52268edd44b2ccbe7e73b
refs/heads/master
2020-04-18T16:19:24.099657
2019-11-03T05:11:41
2019-11-03T05:11:41
167,631,326
4
0
null
null
null
null
UTF-8
C++
false
false
663
cpp
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int a[N], b[N]; char lx[N], ll[N]; int main() { int T; scanf("%d", &T); for(int o = 1; o <= T; ++o) { a[0] = 0, b[0] = 0; scanf("%s%s", lx + 1, ll + 1); int len = strlen(lx + 1), n = strlen(ll + 1); for(int i = len; i >= 1; --i) { if(lx[i] == '1') { a[++a[0]] = len - i + 1; } } for(int i = n; i >= 1; --i) { if(ll[i] == '1') { b[++b[0]] = n - i + 1; } } if(!a[0] || !b[0]) { printf("0\n"); continue; } else { for(int i = 1; i <= a[0]; ++i) { if(a[i] >= b[1]) { printf("%d\n", a[i] - b[1]); break; } } } } return 0; }
[ "2656020973@qq.com" ]
2656020973@qq.com
000e1a67e75bb33e674ec681f29d88e8c63d5623
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive/3f21eb806bcce3c3eb2a906f293c53f7-39413ce7263ea25f241dc094de53ee70/main.cpp
563e176ed464025496de911da14efd3f081a8ba5
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
143
cpp
#include <iostream> template <typename X> void func (X x) { std::cout << x.x << "\n"; } int main () { func((struct {int x;}){1}); }
[ "francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df" ]
francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df
d1770ef53ec8118e5bc6bbaacf45a290d84fdf2f
d09945668f19bb4bc17087c0cb8ccbab2b2dd688
/codeforce/621-660/628/e2.cpp
97c8d23f983145ffe87fb77645ff250b7f744638
[]
no_license
kmjp/procon
27270f605f3ae5d80fbdb28708318a6557273a57
8083028ece4be1460150aa3f0e69bdb57e510b53
refs/heads/master
2023-09-04T11:01:09.452170
2023-09-03T15:25:21
2023-09-03T15:25:21
30,825,508
23
2
null
2023-08-18T14:02:07
2015-02-15T11:25:23
C++
UTF-8
C++
false
false
2,001
cpp
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<(to);x++) #define FORR(x,arr) for(auto& x:arr) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ALL(a) (a.begin()),(a.end()) #define ZERO(a) memset(a,0,sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) //------------------------------------------------------- const int prime_max = 1100000; vector<int> prime; int NP,divp[prime_max]; void cprime() { if(NP) return; NP++; prime.push_back(1); for(int i=2;i<prime_max;i++) if(divp[i]==0) { //M[i]=NP; for(ll j=i;j>=i&&j<prime_max;j+=i) if(divp[j]==0) divp[j]=NP; prime.push_back(i); NP++; } } int N; int id; vector<int> C[101010]; int mi=2020202; set<int> S[1010101]; queue<int> Q; int D[90000]; void solve() { int i,j,k,l,r,x,y; string s; cprime(); cin>>N; int mi=10101010; FOR(i,N) { cin>>r; vector<int> V; V.push_back(0); while(r>1) { x=divp[r]; if(V.size() && V.back()==x) V.pop_back(); else V.push_back(x); r/=prime[x]; } if(V.size()==1) return _P("1\n"); if(V.size()==2) { x=V[0]; y=V[1]; } else { x=V[1]; y=V[2]; } if(S[x].count(y)) mi=2; C[x].push_back(y); C[y].push_back(x); S[x].insert(y); } if(mi<=2) return _P("%d\n",mi); FOR(i,NP) if(prime[i]>1 && prime[i]<=1000) { FOR(j,NP) D[j]=1010101; D[i]=0; Q.push(i); while(Q.size()) { x=Q.front(); Q.pop(); FORR(e,C[x]) { if(D[e]>=D[x]) mi=min(mi,D[x]+D[e]+1); if(D[e]>D[x]+1) { D[e]=D[x]+1; Q.push(e); } } } } if(mi>N) mi=-1; cout<<mi<<endl; } int main(int argc,char** argv){ string s;int i; if(argc==1) ios::sync_with_stdio(false), cin.tie(0); FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin); cout.tie(0); solve(); return 0; }
[ "kmjp@users.noreply.github.com" ]
kmjp@users.noreply.github.com
b5ed87a389ef819eee03eaa95d573d1d6dfa1585
a454a84de81a55357d09941665beb4e013fce91c
/number_theory/gcd_main.cpp
310886b1fb31186a2bb8ca9c3b20c45b22b0993d
[]
no_license
danielf/lib-puc-icpc
21488435ec932cc6fe941cb27f758bcf20f2359e
13eeead70524c203f53404bc806f3b3c872af663
refs/heads/master
2021-01-13T17:29:51.264694
2016-04-10T16:14:37
2016-04-10T16:14:37
2,602,545
2
2
null
2013-04-10T22:29:06
2011-10-18T22:30:03
C++
UTF-8
C++
false
false
119
cpp
int main() { int x, y; while (scanf(" %d %d", &x, &y) != EOF) printf("%d %d: %d\n", x, y, gcd(x, y)); return 0; }
[ "danielfleischman@gmail.com" ]
danielfleischman@gmail.com
891244dd3bc384a812f5780b71c0d172c54db1a2
994764c18e395e39e924dfed46fc671ca5b2bbdf
/链表/链表/链表/test_1.cpp
5128d41eb53539cf69d452b95b674666464da2ef
[]
no_license
xiaomu00/Exercises
c7c4ab264cd98c17b79fe73315c1dd72ec77c712
d28ee8e9d2c9afcbe3dcb6a691f9af81ddb94c3e
refs/heads/master
2022-12-17T20:41:09.269483
2020-09-27T07:08:39
2020-09-27T07:08:39
267,262,207
1
0
null
null
null
null
GB18030
C++
false
false
3,973
cpp
//#include<iostream> //#include<list> //using namespace std; // // //struct ListNode { //int val; //struct ListNode *next; //ListNode(int x) : //val(x), next(NULL) { //} //}; // // //typedef struct MyList { // ListNode *front = NULL; //}MyList; // //class Solution { // //public: // // // // // /////////////////////////////////////////////////////////////////////////////// // ////反转 // ListNode* ReverseList(ListNode* &pHead) { // if (pHead == NULL || pHead->next == NULL) // return pHead; // ListNode* new_Head = NULL; // while (pHead != NULL) // { // ListNode* p = pHead; // pHead = pHead->next; // p->next = new_Head; // new_Head = p; // } // return new_Head; // // // // /*ListNode* middle = pHead->next; // pHead->next = NULL; // if (middle->next == NULL) // { // middle->next = pHead; // return middle; // } // else{ // ListNode* end = middle->next; // while (middle != NULL) // { // middle->next = pHead; // pHead = middle; // middle = end; // if (end != NULL) // end = end->next; // } // return pHead; // }*/ // // } // // /////////////////////////////////////////////////////////////////////////////// // ////头插 // void insert(ListNode* &Head, int x) // { // if (Head == NULL) // { // Head = new ListNode(x); // } // else // { // ListNode* s = new ListNode(x); // s->next = Head; // Head = s; // } // // } // // /////////////////////////////////////////////////////////////////////////////// // ////尾插 // void push_back(ListNode* &Head, int x) // { // if (Head == NULL) // { // Head = new ListNode(x); // } // else // { // ListNode* s = new ListNode(x); // // ListNode* p = Head; // while (p->next != NULL) // p = p->next; // p->next = s; // } // } // // /////////////////////////////////////////////////////////////////////////////// // ////合并 // ListNode* Merge(ListNode* pHead1, ListNode* pHead2) // { // if (pHead1 == NULL) // return pHead2; // else if (pHead2 == NULL) // return pHead1; // else{ // //定义一个新链表 // // ListNode* new_Head = NULL; // // while (pHead1 && pHead2) // { // //取出小节点 // ListNode* p = pHead1->val < pHead2->val ? pHead1 : pHead2; // // //删除被去掉的节点并将取出的节点尾插到新链表中 // if (pHead1->val < pHead2->val) // { // pHead1 = pHead1->next; // push_back(new_Head,p->val); // } // else if (pHead1->val > pHead2->val) // { // pHead2 = pHead2->next; // push_back(new_Head, p->val); // } // else // { // pHead1 = pHead1->next; // pHead2 = pHead2->next; // push_back(new_Head, p->val); // push_back(new_Head, p->val); // } // } // // ListNode* end = new_Head; // while (end->next != NULL) // end = end->next; // // if (pHead1 && !pHead2) // { // end->next = pHead1; // } // if (!pHead1 && pHead2) // { // end->next = pHead2; // } // // // return new_Head; // } // // } // // // // void show(ListNode* &Head)const // { // ListNode* p = Head; // while(p != NULL) // { // cout << p->val << "-> "; // p = p->next; // } // cout << "Over" << endl; // } // // //}; // //int main() //{ // Solution s; // MyList mls; // s.insert(mls.front, 9); // s.insert(mls.front, 7); // s.insert(mls.front, 5); // s.insert(mls.front, 3); // s.insert(mls.front, 2); // s.show(mls.front); // // MyList mls1; // s.insert(mls1.front, 10); // s.insert(mls1.front, 9); // s.insert(mls1.front, 9); // s.insert(mls1.front, 8); // s.insert(mls1.front, 6); // s.insert(mls1.front, 4); // s.insert(mls1.front, 2); // s.push_back(mls1.front, 100); // s.push_back(mls1.front, 200); // s.show(mls1.front); // // ListNode* n = s.Merge(mls.front, mls1.front); // s.show(n); // // return 0; //}
[ "xiaomu_Y@163.com" ]
xiaomu_Y@163.com
cb699c568ed8d9c2c1080832bdafa104a5e46156
e4eed79db68b7f8b9406d635fbb6557adedde62a
/connect_h.h
2faf6613788263b63939e03c1e3f72b4d3477423
[]
no_license
barretodaniel88/Tesistest
2be605ec0596518b402e7d2cff93c389042486fe
2a5f1bacf25583f056778008a61a9c7ea520ee94
refs/heads/master
2021-03-12T19:21:55.148795
2014-04-09T23:08:44
2014-04-09T23:08:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
486
h
#ifndef CONNECT_H #define CONNECT_H #include <iostream> #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include <stdio.h> #include "jsondecode.cpp" #define DEFAULT_PORT 10000 #define DEFAULT_BUFLEN 2500 char recvbuf[DEFAULT_BUFLEN], sendbuf[DEFAULT_BUFLEN] = "Hola desde el planeta C"; int iResult, iSendResult; int recvbuflen = DEFAULT_BUFLEN; WSADATA wsaData; sockaddr_in local; SOCKET server, client; void myConnect(); #endif // CONNECT_H
[ "barretodaniel88@gmail.com" ]
barretodaniel88@gmail.com
6ea2c3b278ba24670112ed6cd7be14edb84eac3f
2a88b58673d0314ed00e37ab7329ab0bbddd3bdc
/blazetest/src/mathtest/smatsmatsub/SCaMCb.cpp
669072c3cef81b1f7d32357e6f42dc9f971acf53
[ "BSD-3-Clause" ]
permissive
shiver/blaze-lib
3083de9600a66a586e73166e105585a954e324ea
824925ed21faf82bb6edc48da89d3c84b8246cbf
refs/heads/master
2020-09-05T23:00:34.583144
2016-08-24T03:55:17
2016-08-24T03:55:17
66,765,250
2
1
NOASSERTION
2020-04-06T05:02:41
2016-08-28T11:43:51
C++
UTF-8
C++
false
false
4,199
cpp
//================================================================================================= /*! // \file src/mathtest/smatsmatsub/SCaMCb.cpp // \brief Source file for the SCaMCb sparse matrix/sparse matrix subtraction math test // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. Redistribution and use in source and binary // forms, with or without modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright notice, this list // of conditions and the following disclaimer in the documentation and/or other materials // provided with the distribution. // 3. Neither the names of the Blaze development group nor the names of its contributors // may be used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT // SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // DAMAGE. */ //================================================================================================= //************************************************************************************************* // Includes //************************************************************************************************* #include <cstdlib> #include <iostream> #include <blaze/math/CompressedMatrix.h> #include <blaze/math/SymmetricMatrix.h> #include <blazetest/mathtest/Creator.h> #include <blazetest/mathtest/smatsmatsub/OperationTest.h> #include <blazetest/system/MathTest.h> //================================================================================================= // // MAIN FUNCTION // //================================================================================================= //************************************************************************************************* int main() { std::cout << " Running 'SCaMCb'..." << std::endl; using blazetest::mathtest::TypeA; using blazetest::mathtest::TypeB; try { // Matrix type definitions typedef blaze::SymmetricMatrix< blaze::CompressedMatrix<TypeA> > SCa; typedef blaze::CompressedMatrix<TypeB> MCb; // Creator type definitions typedef blazetest::Creator<SCa> CSCa; typedef blazetest::Creator<MCb> CMCb; // Running tests with small matrices for( size_t i=0UL; i<=6UL; ++i ) { for( size_t j=0UL; j<=i*i; ++j ) { for( size_t k=0UL; k<=i*i; ++k ) { RUN_SMATSMATSUB_OPERATION_TEST( CSCa( i, j ), CMCb( i, i, k ) ); } } } // Running tests with large matrices RUN_SMATSMATSUB_OPERATION_TEST( CSCa( 67UL, 7UL ), CMCb( 67UL, 67UL, 13UL ) ); RUN_SMATSMATSUB_OPERATION_TEST( CSCa( 128UL, 16UL ), CMCb( 128UL, 128UL, 8UL ) ); } catch( std::exception& ex ) { std::cerr << "\n\n ERROR DETECTED during sparse matrix/sparse matrix subtraction:\n" << ex.what() << "\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } //*************************************************************************************************
[ "klaus.iglberger@gmail.com" ]
klaus.iglberger@gmail.com
be971e46497090a43c5e10dcede22f93875d0a11
39d65fa98e62751b2fe68133b7a91e6b76049499
/1_참고자료_연구실적/1_3_Objective Saliency and Facial Models for Face Detection in Super Resolution/1_3_1_old_codes_(c++)/testusingadaptthersh.cpp
8d9fb655bec0fde51442e25f52a619f898760294
[]
no_license
cauosg/projects_OSG
386bc0697882677079fe0b12d253a21930398251
8bfde43d00113f221917fd8b141e3ad80f461974
refs/heads/master
2021-03-29T03:57:30.781565
2020-04-13T12:29:33
2020-04-13T12:29:33
247,917,983
0
0
null
null
null
null
UHC
C++
false
false
5,238
cpp
#include <stdio.h> #include <iostream> #include "opencv2/core.hpp" #include "opencv2/features2d.hpp" #include "opencv2/xfeatures2d.hpp" #include "opencv2/highgui.hpp" #include <opencv2/imgproc/imgproc.hpp> #include "opencv2/objdetect.hpp" #define minrect 50 //float c_star[3] = { 244,188,125 }; //float c_star[3] = { 244,205,217 }; //float c_star[3] = { 178,157,172 }; float c_star[3] = { 167,128,116 }; //float c_star[3] = { 0,244,0 }; using namespace cv; using namespace cv::xfeatures2d; using namespace std; string cascadeName = "haarcascades/haarcascade_frontalface_alt.xml"; //string cascadeName = "lbpcascades/lbpcascade_frontalface_improved.xml"; void detectAndDraw(int frcount, Mat& img, CascadeClassifier& cascade, double scale); inline void im2double(Mat &f) { f.convertTo(f, CV_32F); f = f / 255; } inline void normalize(Mat &f) { normalize(f, f, 0, 1, CV_MINMAX); } inline void im2uint8(Mat &f) { f = f * 255; f.convertTo(f, CV_8UC1); } vector<Mat> bgr_to_opponent(Mat img) { vector<Mat> bgr, output; split(img, bgr); output.push_back(sqrtf(1.000f / 2.000f)*bgr[2] - sqrtf(1.000f / 2.000f)*bgr[1]); output.push_back(sqrtf(1.000f / 6.000f)*bgr[2] + sqrtf(1.000f / 6.000f)*bgr[1] - sqrtf(1.000f / 6.000f)*bgr[0] * 2); output.push_back(sqrtf(1.000f / 3.000f)*bgr[2] + sqrtf(1.000f / 3.000f)*bgr[1] + sqrtf(1.000f / 3.000f)*bgr[0]); return output; } Size getXY(VideoCapture cap) { Mat temp; cap >> temp; return Size(temp.cols / minrect, temp.rows / minrect); } void regshow(String title, Mat img, Size psize) { Mat temp; resize(img, temp, psize, 0, 0, INTER_AREA); imshow(title, temp); } void main() { //bgr이 맞다 //r : 2 //g : 1 //b : 0 //푸쉬는 역순 CascadeClassifier cascade; VideoCapture cap("vids/test2.webm"); Mat img; int frcount = 0; //int capcount = 0; //int fps = 10; Size reduced = getXY(cap); if (!cascade.load(cascadeName)) { cerr << "ERROR: Could not load classifier cascade" << endl; return; } Size procsize(1280, 720); while (1) { cap >> img; frcount++; //-------------------------------------------------------------------------------------------------------------- Mat eigen, p720; resize(img, p720, procsize, 0, 0, INTER_AREA); resize(p720, eigen, reduced, 0, 0, INTER_AREA); im2double(eigen); vector<Mat> ibgr; split(eigen, ibgr); Mat one = Mat::ones(eigen.rows, eigen.cols, CV_32F); vector<Mat> bgr; bgr.push_back(one * (c_star[2] / 256)); bgr.push_back(one * (c_star[1] / 256)); bgr.push_back(one * (c_star[0] / 256)); Mat cs_mat; merge(bgr, cs_mat); vector<Mat> opcs = bgr_to_opponent(cs_mat); vector<Mat> oppo = bgr_to_opponent(eigen); Mat sal1, sal2, sal0; float w0 = 2;// float w1 = 50;//sensitivity, 0~1 : 4 float w2 = 0.1353;// exp(w0 - w1 * (oppo[0] - opcs[0]).mul(oppo[0] - opcs[0]), sal1); exp(w0 - w1 * (oppo[1] - opcs[1]).mul(oppo[1] - opcs[1]), sal2); exp(w0 - w1 * (oppo[2] - opcs[2]).mul(oppo[2] - opcs[2]), sal0); sal1 = sal1 * w2; sal2 = sal2 * w2; sal0 = sal0 * w2; Mat sim = sal1.mul(sal2).mul(sal0); Mat n_eigen, n_bgr; regshow("sim", sim, procsize); vector<vector<Point>> contours; vector<Vec4i> hierarchy; threshold(sim, n_eigen, mean(sim).val[0]+0.1, 1.0, THRESH_TOZERO); Mat ne2; n_eigen.copyTo(ne2); im2uint8(ne2); //resize(ne2, ne2, procsize); resize(ne2, ne2, procsize, 0, 0, INTER_AREA); //findContours(ne2, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE, Point(0, 0)); //-------------------------------------------------------------------------------------------------------------- RNG rng(12345); cvtColor(n_eigen, n_bgr, CV_GRAY2BGR); //resize(n_bgr, n_bgr, procsize); resize(n_bgr, n_bgr, procsize, 0, 0, INTER_AREA); im2double(p720); Mat dst = n_bgr.mul(p720); im2uint8(dst); double scale = 1.10000000000000089; detectAndDraw(frcount, dst, cascade, scale); waitKey(10); } } void detectAndDraw(int frcount, Mat& img, CascadeClassifier& cascade, double scale) { if (frcount > 70) { double t = 0; vector<Rect> faces, faces2; const static Scalar colors[] = { Scalar(255,0,0), Scalar(255,128,0), Scalar(255,255,0), Scalar(0,255,0), Scalar(0,128,255), Scalar(0,255,255), Scalar(0,0,255), Scalar(255,0,255) }; Mat gray, smallImg; cvtColor(img, gray, COLOR_BGR2GRAY); t = (double)getTickCount(); cascade.detectMultiScale(gray, faces, scale, 3, 0, Size(minrect, minrect)); //imshow("gg", gray); t = (double)getTickCount() - t; cout << "detection time = " << t * 1000 / getTickFrequency() << "%g ms\n";; for (size_t i = 0; i < faces.size(); i++) { Rect r = faces[i]; Scalar color = colors[i % 8]; /*rectangle(img, cvPoint(cvRound(r.x*scale - 1), cvRound(r.y*scale)), cvPoint(cvRound((r.x + r.width - 1)*scale), cvRound((r.y + r.height - 1)*scale)), color, 3, 8, 0);*/ //int interpx = minrect, interpy = minrect; //int interpx = 80, interpy = 45; int interpx = 0, interpy = 0; rectangle(img, cvPoint(cvRound(r.x*scale), cvRound(r.y*scale)), cvPoint(cvRound((r.x + r.width - interpx)*scale), cvRound((r.y + r.height - interpy)*scale)), color, 3, 8, 0); } } imshow("result", img); }
[ "osg950615@gmail.com" ]
osg950615@gmail.com
408ad9d4ecac96ea08f541ab756db2ac1a67fb8d
2681aae806e4acda1ce35676e1333471d14276a5
/Keyboard.ino
441556ec3804b3f1865e40e385eb7b70df43e07e
[]
no_license
hakan1498/Arduino-QWERTY-keyboard-i2c-peripheral
379325f0fa61e76f98c650a6e287d16ed1d869d0
7ae7765b9daac2bc32f4ba7dd706f65c9dc1c03b
refs/heads/main
2023-02-08T16:04:33.981294
2020-12-30T07:01:45
2020-12-30T07:01:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,703
ino
//Runs on AVR, STM32 etc. //I2C communication on A4 = SDA A5 = SCL A3 = interrupt + pulse out to master //A2 optional LED (active +) //pwm LED on pin PD6 //PD0 PD1 Arduino serial programmer pins //Keyboard drive and input pins : see arrays //Two way i2c communication //Slave on i2c address 10 #include <Wire.h> //================ Keyboard =================== byte port[]={A0,A1,2,3,4,5}; //Uno pin names for output byte pin[]={7,8,9,10,11,12,13}; //Input int code[]={0x08,0x10,0x20,0x40,0x80,0x100,0x200,0x09,0x11,0x21,0x41,0x81,0x101, 0x0A,0x12,0x22,0x42,0x82,0x102,0x202,0x0B,0x13,0x23,0x43,0x83,0x103, 0x0C,0x14,0x24,0x44,0x84,0x104,0x204,0x0D,0x15,0x25,0x45,0x85,0x105}; char chars[]={'Q','W','E','R','T','Y','U','I','O','P','7','8','9', 'A','S','D','F','G','H','J','K','L','#','4','5','6', 'Z','X','C','V','B','N','M',' ','-','0','1','2','3'}; char lastchar; byte slaveAdr = 10, bright; // function that executes whenever data is requested by master void requestEvent() { Wire.write(lastchar); } // function that executes whenever data is sent by master void receiveEvent(int i) { i=1; int x; while(Wire.available()) bright = Wire.read(); // receive byte analogWrite(6,bright); //Master controls keyboard backlight } void setup() { //Serial.begin(9600); Serial.println("Keyboard"); for (byte i=0; i<7; i++) pinMode (pin[i],INPUT_PULLUP); for (byte i=0; i<6; i++) pinMode (port[i],OUTPUT); pinMode(A2, OUTPUT); digitalWrite(A2, LOW); //interrupt pin, active high pinMode(6,OUTPUT); //PWM LED driver bright = 127; analogWrite(6,bright); // Start the I2C Bus as Slave on address Wire.begin(slaveAdr); Wire.onRequest(requestEvent); Wire.onReceive(receiveEvent); // register event } void loop() { int s = scan(),i; //Serial.println(s,HEX); //debug if (s) { //process key code, search array // end search if found in table, i shows position for ( i=0; i<39; i++ ) if (s == code[i]) break; lastchar=chars[i]; //Serial.print(lastchar); //debug while (scan()); //wait for key release, no repeat digitalWrite(A2, HIGH ); digitalWrite(A2, LOW); //pulse interrupt pin delay(100); } // key processed } unsigned int scan(void) { unsigned int x, y=0; // Reset drive pins to High level for (byte j=0; j<6; j++) digitalWrite(port[j],HIGH); // Pull down drive pins one by one and check response for (byte j=0; j<6; j++) { digitalWrite(port[j],LOW); byte mult=1; x=0; // Sum up inputs in variable x for (byte k=0; k<7; k++) { x+= mult*digitalRead(pin[k]); mult=mult*2; } x = 0x7f - x ; // Result is 0x7F if no key pressed x *= 8; // Make room for key position (variable j) on low 3 bits digitalWrite(port[j],HIGH); if (x) y = x + j ; // key pressed if x > 0, save position in y } //all 6 key blocks scanned return(y); } //============= Receiver code example ================== /* // Runs on Arduino Uno // I2C communication on A4 = SDA A5 = SCL A2 = interrupt pin on master and slave // Two way data transfer, master sends 1/sec random backlight LED brightness data #include <Wire.h> String text; bool flag= false ; byte x; void setup() { Serial.begin(9600); pinMode(13,OUTPUT); digitalWrite(13,LOW); pinMode(2, INPUT); attachInterrupt(0, handle, RISING); Wire.begin(); } void loop() { char data; if (flag) { //interrupt flag set flag=false ; //reset interrupt request Wire.requestFrom(10, 1); // digitalWrite(13,HIGH); delay(50); digitalWrite(13, LOW); delay (50); //pulse LED, char received while(Wire.available()) // slave may send less/more than requested { data = Wire.read(); if (data) Serial.print(data); } //get character from keyboard //Process special characters : # Enter, - Delete , or add to string if (data =='-') {text = text.substring(0, text.length()-1); Serial.println(); Serial.println(text); } else if (data =='#') { Serial.println(); Serial.println(text); text = ""; } //string + enter else text += data ; } //interrupt processed // Random backlight to test the communication if (millis() % 1000 == 0) { Wire.beginTransmission(10); // transmit to device #10 Wire.write(random(255)); // sends one byte Wire.endTransmission(); // stop transmitting } } void handle(void) { flag = true; }*/
[ "noreply@github.com" ]
noreply@github.com
10cbc95f5c529085e0c9afd10cd08c207e85dc85
aca211bc55779746930d52226521ecbdf17ccfc8
/Polyhedrus.Native/Delay.cpp
9958bfdb75d0e56dfab4bf6e34d2e85b48d2dc96
[]
no_license
mohabouje/Polyhedrus
e1856418ca1c9e70c4f3ec581c87f74400591209
f529335918c5f3045bb80ea8a15d6b0c11e44159
refs/heads/master
2020-06-12T10:42:41.421707
2018-02-06T22:17:57
2018-02-06T22:17:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,531
cpp
#include "Delay.h" #include "AudioLib/Utils.h" #include "AudioLib/ValueTables.h" using namespace AudioLib; namespace Polyhedrus { Delay::Delay() { diffuseAmount = 0; delayL = 0; delayR = 0; feedbackL = 0; feedbackR = 0; highpass = 0; lowpass = 0; saturate = 0; sync = false; wet = 0; IsEnabled = true; bufferL = 0; bufferR = 0; delayLineL = 0; delayLineR = 0; samplerate = 48000; T = 1.0f / 48000.0f; samplePos = 0; delaySamplesL = 0; delaySamplesR = 0; totalFeedbackL = 0; totalFeedbackR = 0; totalSaturate = 0; delayBufferSize = 0; satInner = 1.0f; satOuter = 1.0f; } Delay::~Delay() { delete bufferL; delete bufferR; delete delayLineL; delete delayLineR; } void Delay::Initialize(int samplerate, int bufferSize) { delayBufferSize = samplerate * 2; bufferL = new float[bufferSize](); bufferR = new float[bufferSize](); delayLineL = new float[delayBufferSize](); delayLineR = new float[delayBufferSize](); this->samplerate = samplerate; this->T = 1.0f / samplerate; diffuserL.Initialize(bufferSize, samplerate); diffuserR.Initialize(bufferSize, samplerate); // I call this only on diffuserL so that the random number generators are out of sync // this gives different diffusion on each channel, widening the sound diffuserL.UpdateParameters(1000.0f, 0.7f); } void Delay::SetParameter(DelayParameters parameter, double value) { switch (parameter) { case DelayParameters::DiffuseAmount: diffuseAmount = (float)value; break; case DelayParameters::DiffuseSize: diffuserL.UpdateParameters((float)(value * samplerate * 0.025), 0.7f); diffuserR.UpdateParameters((float)(value * samplerate * 0.025), 0.7f); break; case DelayParameters::DelayL: delayL = (float)value; break; case DelayParameters::DelayR: delayR = (float)value; break; case DelayParameters::FeedbackL: feedbackL = (float)value; break; case DelayParameters::FeedbackR: feedbackR = (float)value; break; case DelayParameters::Highpass: highpass = (float)value; break; case DelayParameters::Lowpass: lowpass = (float)value; break; case DelayParameters::Saturate: saturate = (float)value; break; case DelayParameters::Sync: sync = value >= 0.5; break; case DelayParameters::Wet: wet = (float)value; break; } Update(); } void Delay::Process(float* inputL, float* inputR, int len) { if (!IsEnabled) { AudioLib::Utils::Copy(inputL, bufferL, len); AudioLib::Utils::Copy(inputR, bufferR, len); return; } for (int i = 0; i < len; i++) { float outL = delayLineL[GetIndex(delaySamplesL)]; float outR = delayLineR[GetIndex(delaySamplesR)]; outL = hpL.Process(outL); outL = lpL.Process(outL); outR = hpR.Process(outR); outR = lpR.Process(outR); //outL = outL * (1 - DiffuseAmount) + diffuserL.Process(outL) * DiffuseAmount; //outR = outR * (1 - DiffuseAmount) + diffuserR.Process(outR) * DiffuseAmount; delayLineL[samplePos] = Utils::CubicNonlin(satInner * (inputL[i] + outL * totalFeedbackL)) * satOuter; delayLineR[samplePos] = Utils::CubicNonlin(satInner * (inputR[i] + outR * totalFeedbackR)) * satOuter; samplePos--; if (samplePos < 0) samplePos += delayBufferSize; bufferL[i] = dryGain * inputL[i] + wetGain * outL; bufferR[i] = dryGain * inputR[i] + wetGain * outR; } } float* Delay::GetOutputL() { return bufferL; } float* Delay::GetOutputR() { return bufferR; } void Delay::ClearBuffers() { for (int i = 0; i < delayBufferSize; i++) { delayLineL[i] = 0.0f; delayLineR[i] = 0.0f; } } void Delay::Update() { wetGain = Utils::Limit(2 * wet, 0.0f, 1.0f); dryGain = Utils::Limit(2 - 2 * wet, 0.0f, 1.0f); if (sync) { delayQL = (Quantization)(int)(Utils::Limit(delayL, 0.0f, 1.0f) * ((int)AudioLib::Quantization::_1d + 0.999f)); delayQR = (Quantization)(int)(Utils::Limit(delayR, 0.0f, 1.0f) * ((int)AudioLib::Quantization::_1d + 0.999f)); delaySamplesL = (int)TempoSync::GetSamplesPerNote(delayQL, Bpm, samplerate); delaySamplesR = (int)TempoSync::GetSamplesPerNote(delayQR, Bpm, samplerate); if (delaySamplesL >= delayBufferSize) delaySamplesL = delayBufferSize - 1; if (delaySamplesR >= delayBufferSize) delaySamplesR = delayBufferSize - 1; } else { delayTimeL = ValueTables::Get(Utils::Limit(delayL, 0.001f, 1.0f), AudioLib::ValueTables::Response2Oct); delayTimeR = ValueTables::Get(Utils::Limit(delayR, 0.001f, 1.0f), AudioLib::ValueTables::Response2Oct); delaySamplesL = (int)(delayTimeL * samplerate); delaySamplesR = (int)(delayTimeR * samplerate); } totalFeedbackL = Utils::Limit(feedbackL, 0.0f, 1.1f); totalFeedbackR = Utils::Limit(feedbackR, 0.0f, 1.1f); totalSaturate = Utils::Limit(saturate, 0, 1); satInner = 0.1f + totalSaturate * 1.9f; satOuter = satInner < 1 ? 1.0f / satInner : 1.0f; lpL.SetFc((float)ValueTables::Get(Utils::Limit(lowpass, 0.01f, 1.0f), AudioLib::ValueTables::Response4Oct)); lpR.SetFc((float)ValueTables::Get(Utils::Limit(lowpass, 0.01f, 1.0f), AudioLib::ValueTables::Response4Oct)); hpL.SetFc((float)ValueTables::Get(Utils::Limit(highpass, 0.0f, 0.99f), AudioLib::ValueTables::Response4Oct) * 0.25f); hpR.SetFc((float)ValueTables::Get(Utils::Limit(highpass, 0.0f, 0.99f), AudioLib::ValueTables::Response4Oct) * 0.25f); } inline int Delay::GetIndex(int offset) { int idx = samplePos + offset; idx = idx % delayBufferSize; return idx; } }
[ "valdiorn@gmail.com" ]
valdiorn@gmail.com
b43fc19e26002f40d6be83f5acf1d9a86b8a8620
0ec9df3bb8b86216e18fe4cb66b6612297245aea
/Sources/CXXBoost/include/boost/math/tools/detail/polynomial_horner3_3.hpp
39aa10ec84680533f026c9f4ea3aade9f47e6720
[]
no_license
jprescott/BoostTestWithLib
78ae59d1ee801201883cf07ab76b8267fadf7daa
8650523cab467c41be60f3a1c144f556e9a7f25c
refs/heads/master
2022-11-18T14:49:00.664753
2020-07-18T21:45:17
2020-07-18T21:45:17
280,749,418
0
1
null
null
null
null
UTF-8
C++
false
false
1,580
hpp
// (C) Copyright John Maddock 2007. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // This file is machine generated, do not edit by hand // Unrolled polynomial evaluation using second order Horners rule #ifndef BOOST_MATH_TOOLS_POLY_EVAL_3_HPP #define BOOST_MATH_TOOLS_POLY_EVAL_3_HPP namespace boost { namespace math { namespace tools { namespace detail { template <class T, class V> inline V evaluate_polynomial_c_imp(const T *, const V&, const mpl::int_<0> *) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(0); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T * a, const V&, const mpl::int_<1> *) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T * a, const V& x, const mpl::int_<2> *) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(a[1] * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T * a, const V& x, const mpl::int_<3> *) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((a[2] * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T * a, const V& x, const mpl::int_<4> *) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(((a[3] * x + a[2]) * x + a[1]) * x + a[0]); } } } } } // namespaces #endif // include guard
[ "jprescott12@icloud.com" ]
jprescott12@icloud.com
e760469ac432025ea23b640d79d7ebb26d74f0c6
8e6656b14438b81f60a8e91d4b54ea3665e7e987
/Programas en C++/programas importantes/for/main.cpp
cec3a216d8c455f290d220134aeb3b32294aa4e4
[]
no_license
elmergustavo/ProgramasC
3e147ddaefaee46631a8dd3fbcadaffcb22c2c2d
e130a2e6b73f808b758566a982453db601cec89b
refs/heads/master
2022-12-24T03:42:20.740185
2020-10-08T22:40:25
2020-10-08T22:40:25
301,031,766
0
0
null
null
null
null
UTF-8
C++
false
false
146
cpp
#include <iostream> using namespace std; int main() { int i; for (i=1; i<=10; i++) { cout<<i<<endl; } return 0; }
[ "elmergustavo79@gmail.com" ]
elmergustavo79@gmail.com
8b73078ceec4e4f5d55cfab9b954d8feef0cae77
76ee558c040c04b917e1e60068e0967d7a0dff5e
/Problems/leetcode/range-sum-query-2d-immutable/main.cpp
f6f1f9c950b0248efbd50fc1edafa71627d2d4e6
[ "MIT" ]
permissive
grand87/timus
145fe3230eb04fe9ebb6cd70eebc2c4900767b84
8edcae276ab74b68fff18da3722460f492534a8a
refs/heads/master
2021-06-04T05:56:36.141217
2020-05-19T05:03:51
2020-05-19T05:03:51
104,487,995
0
0
null
null
null
null
UTF-8
C++
false
false
2,860
cpp
#include <iostream> #include <vector> #include <algorithm> #include <unordered_map> using namespace std; void dump(const vector<vector<int>>& matrix) { const int height = matrix.size(); const int width = matrix[0].size(); for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { cout << matrix[i][j] << " "; } cout << endl; } } class NumMatrix { vector<vector<int>> matrixSum; public: NumMatrix(vector<vector<int>>& matrix) : matrixSum(matrix.size()) { if (matrix.size() > 0) { const int height = matrix.size(); const int width = matrix[0].size(); for (int i = 0; i < height; i++) { matrixSum[i].resize(width); } matrixSum[0][0] = matrix[0][0]; for (int j = 1; j < width; j++) { matrixSum[0][j] = matrixSum[0][j - 1] + matrix[0][j]; } for (int j = 1; j < height; j++) { matrixSum[j][0] = matrixSum[j - 1][0] + matrix[j][0]; } for (int i = 1; i < height; i++) { for (int j = 1; j < width; j++) { matrixSum[i][j] = matrixSum[i][j - 1] + matrixSum[i - 1][j] + matrix[i][j] - matrixSum[i - 1][j - 1]; } } } #ifndef ONLINE_JUDGE dump(matrixSum); #endif } int sumRegion(int row1, int col1, int row2, int col2) { if (row1 > 0 && col1 == 0) return matrixSum[row2][col2] - matrixSum[row1 - 1][col2]; if (row1 == 0 && col1 > 0) return matrixSum[row2][col2] - matrixSum[row2][col1 - 1]; if(row1 > 0 && col1 > 0) return matrixSum[row2][col2] - matrixSum[row1 - 1][col2] - matrixSum[row2][col1 - 1] + matrixSum[row1 - 1][col1 - 1]; return matrixSum[row2][col2]; } }; /** * Your NumMatrix object will be instantiated and called as such: * NumMatrix* obj = new NumMatrix(matrix); * int param_1 = obj->sumRegion(row1,col1,row2,col2); */ int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "rt", stdin); #endif int t = 0; cin >> t; for (int i = 0; i < t; i++) { int n = 0, m = 0, q = 0; cin >> n >> m >> q; vector<vector<int>> matrix(n); for (int j = 0; j < n; j++) { matrix[j].resize(m); for (int k = 0; k < m; k++) { cin >> matrix[j][k]; } } vector<int> queries(q * 4); for (int j = 0; j < q; j++) { for (int k = 0; k < 4; k++) cin >> queries[j * 4 + k]; } NumMatrix* obj = new NumMatrix(matrix); for (int j = 0; j < q; j++) { int base = j * 4; cout << obj->sumRegion(queries[base], queries[base + 1], queries[base + 2], queries[base + 3]) << endl; } } }
[ "grand87@yandex.ru" ]
grand87@yandex.ru
3a9744f05eace14712acccbcd80221a61c296f8c
5c8253eeb1ed030b690f703ebd0a5ae55dfffdaa
/src/mesh/FVMeshVertex.cpp
a31fe5806608e95c1e2d5cf72f57b79a1486eca2
[]
no_license
SummersStarLight/Atlas
4a4cb03848ecf092c72f63b44bf52899dfd15e9a
3472302b3d4d3fa0bba6d3c93b7a97598bbad319
refs/heads/master
2020-04-30T07:48:55.678970
2015-02-19T08:56:23
2015-02-19T08:56:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
98
cpp
#include "FVMesh.h" FVMeshVertex& FVMeshVertexHandle::vertex() { return m->vertices[idx]; };
[ "t.kuipers@ultimaker.com" ]
t.kuipers@ultimaker.com
32dc224fce50ac2791a8c99be7024a8d614b002f
87192091631c8f22ef6dc97975d11decb5676edb
/include/CLIOVectors.h
303ecdd01b4816e73106130cd7300cac3a59af74
[]
no_license
BlackWaters/Linux-API-Kernel-Code
92e684bd7b5eb89be0616c76881a1a53f645b653
24d0131aaa53f9f1a132b55eb83c886ecafe9539
refs/heads/master
2020-04-26T12:51:41.994149
2019-04-16T07:23:36
2019-04-16T07:23:36
173,563,280
0
0
null
null
null
null
UTF-8
C++
false
false
2,961
h
#ifndef CLIOVectors_H #define CLIOVectors_H #include <list> #include <sys/uio.h> #include <vector> #include "CLStatus.h" #include "DefinitionForConst.h" class CLIteratorForIOVectors; struct SLIOVectorItem { struct iovec IOVector; bool bDelete; }; class CLIOVectors { friend class CLIteratorForIOVectors; public: CLIOVectors(); virtual ~CLIOVectors(); CLStatus PushBack(char *pBuffer, size_t nBufferLength, bool bDeleted = false); CLStatus PushFront(char *pBuffer, size_t nBufferLength, bool bDeleted = false); CLStatus PopBack(char **ppBuffer, size_t *pnBufferLength); CLStatus PopFront(char **ppBuffer, size_t *pnBufferLength); void GetIterator(unsigned int Index, CLIteratorForIOVectors& Iter); CLStatus WriteBlock(CLIteratorForIOVectors& Iter, char *pBuf, unsigned Length); CLStatus ReadBlock(CLIteratorForIOVectors& Iter, char *pBuf, unsigned Length); CLStatus WriteBlock(unsigned int Index, char *pBuf, unsigned int Length); CLStatus ReadBlock(unsigned int Index, char *pBuf, unsigned int Length); CLStatus PushBackRangeToAIOVector(CLIOVectors& IOVectors, unsigned int Index, unsigned int Length, int DeleteAction = IOVECTOR_NON_DELETE); CLStatus PushBackRangeToAIOVector(CLIOVectors& IOVectors, CLIteratorForIOVectors& Iter, unsigned int Length, int DeleteAction = IOVECTOR_NON_DELETE); CLStatus FindIOVectors(CLIOVectors& IOVectors, bool bDelete); CLStatus PushBackIOVector(CLIOVectors& IOVectors, int DeleteAction = IOVECTOR_STAIN); void DifferenceBetweenIOVectors(CLIOVectors& Operand, CLIOVectors& Difference); bool IsRangeOverlap(iovec& Range); size_t Size(); int GetNumberOfIOVec(); iovec *GetIOVecArray(); void Clear(); CLStatus GetIndex(CLIteratorForIOVectors& Iter, unsigned int& Index); private: bool IsRangeInAIOVector(char *pAddr, unsigned int Length, std::list<SLIOVectorItem>::iterator& CurrentIter); void GetIndexPosition(unsigned int Index, char **ppAddrForIndex, std::list<SLIOVectorItem>::iterator *pIter); CLStatus TransferBlock(bool bWriteIntoIOVectors, char *pAddrInIOVector, std::list<SLIOVectorItem>::iterator& CurrentIter, char *pBuf, unsigned int Length, char **ppEndAddrInIOVector = 0); CLStatus TransferBlockByIndex(bool bWriteIntoIOVectors, unsigned int Index, char *pBuf, unsigned int Length); CLStatus TransferBlockByIterator(bool bWriteIntoIOVectors, CLIteratorForIOVectors& Iter, char *pBuf, unsigned Length); void DifferenceBetweenRanges(iovec& Range1, iovec& Range2, std::vector<iovec>& vResults); void DifferenceBetweenRangeAndIOVector(iovec& Range, CLIOVectors& IOVector, std::vector<iovec>& vResult); CLStatus PushBufferAtFrontOrBack(char *pBuffer, size_t nBufferLength, bool bDeleted, bool bAtFront); CLStatus PopBufferAtFrontOrBack(char **ppBuffer, size_t *pnBufferLength, bool bAtFront); private: CLIOVectors(const CLIOVectors&); CLIOVectors& operator=(const CLIOVectors&); private: std::list<SLIOVectorItem> m_IOVectors; size_t m_nDataLength; }; #endif
[ "lilin@uestc.edu.cn" ]
lilin@uestc.edu.cn
e3e9ab408fbffdc1f855d46e2e4b9bb3342f3dce
b495209212ba745251914fee2ba6aebf90932b44
/src/CategoriesManager.cpp
e67941d335a88d8ce6fc3e21ef3858821094b39e
[]
no_license
knetikmedia/knetikcloud-tizen-client
21e1d9a0f98ca275f372af05dfb699adf46b7679
28be72af9caa0980570ff20fc798bdcf67b5550a
refs/heads/master
2021-01-13T13:34:44.915887
2018-03-14T16:05:13
2018-03-14T16:05:13
76,421,710
0
0
null
null
null
null
UTF-8
C++
false
false
46,664
cpp
#include <glib-object.h> #include <json-glib/json-glib.h> #include "CategoriesManager.h" #include "NetClient.h" #include "Helpers.h" #include "Error.h" #include "RequestInfo.h" using namespace std; using namespace Tizen::ArtikCloud; CategoriesManager::CategoriesManager() { } CategoriesManager::~CategoriesManager() { } static gboolean __CategoriesManagerresponseHandler(gpointer data) { RequestInfo *request = static_cast<RequestInfo*>(data); g_thread_join(request->thread); // invoke the callback function bool retval = request->processor(*(request->p_chunk), *(request->code), request->errormsg, request->userData, request->handler); delete request; return FALSE; } static gpointer __CategoriesManagerthreadFunc(gpointer data) { RequestInfo *request = static_cast<RequestInfo*>(data); // handle the request NetClient::easycurl(request->host, request->path, request->method, request->queryParams, request->mBody, request->headerList, request->p_chunk, request->code, request->errormsg); request->thread = g_thread_self(); g_idle_add(__CategoriesManagerresponseHandler, static_cast<gpointer>(request)); return NULL; } static bool createCategoryProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(CategoryResource, Error, void* ) = reinterpret_cast<void(*)(CategoryResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; CategoryResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("CategoryResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "CategoryResource", "CategoryResource"); json_node_free(pJson); if ("CategoryResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool createCategoryHelper(char * accessToken, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; if (isprimitive("CategoryResource")) { node = converttoJson(&category, "CategoryResource", ""); } char *jsonStr = category.toJson(); node = json_from_string(jsonStr, NULL); g_free(static_cast<gpointer>(jsonStr)); char *jsonStr1 = json_to_string(node, false); mBody.append(jsonStr1); g_free(static_cast<gpointer>(jsonStr1)); string url("/categories"); int pos; //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("POST"); if(strcmp("PUT", "POST") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = createCategoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), createCategoryProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::createCategoryAsync(char * accessToken, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return createCategoryHelper(accessToken, category, handler, userData, true); } bool CategoriesManager::createCategorySync(char * accessToken, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return createCategoryHelper(accessToken, category, handler, userData, false); } static bool createCategoryTemplateProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(TemplateResource, Error, void* ) = reinterpret_cast<void(*)(TemplateResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; TemplateResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("TemplateResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "TemplateResource", "TemplateResource"); json_node_free(pJson); if ("TemplateResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool createCategoryTemplateHelper(char * accessToken, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; if (isprimitive("TemplateResource")) { node = converttoJson(&_template, "TemplateResource", ""); } char *jsonStr = _template.toJson(); node = json_from_string(jsonStr, NULL); g_free(static_cast<gpointer>(jsonStr)); char *jsonStr1 = json_to_string(node, false); mBody.append(jsonStr1); g_free(static_cast<gpointer>(jsonStr1)); string url("/categories/templates"); int pos; //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("POST"); if(strcmp("PUT", "POST") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = createCategoryTemplateProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), createCategoryTemplateProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::createCategoryTemplateAsync(char * accessToken, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return createCategoryTemplateHelper(accessToken, _template, handler, userData, true); } bool CategoriesManager::createCategoryTemplateSync(char * accessToken, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return createCategoryTemplateHelper(accessToken, _template, handler, userData, false); } static bool deleteCategoryProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(Error, void* ) = reinterpret_cast<void(*)(Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; if (code >= 200 && code < 300) { Error error(code, string("No Error")); handler(error, userData); return true; } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(error, userData); return false; } } static bool deleteCategoryHelper(char * accessToken, std::string id, void(* handler)(Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("DELETE"); if(strcmp("PUT", "DELETE") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = deleteCategoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), deleteCategoryProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::deleteCategoryAsync(char * accessToken, std::string id, void(* handler)(Error, void* ) , void* userData) { return deleteCategoryHelper(accessToken, id, handler, userData, true); } bool CategoriesManager::deleteCategorySync(char * accessToken, std::string id, void(* handler)(Error, void* ) , void* userData) { return deleteCategoryHelper(accessToken, id, handler, userData, false); } static bool deleteCategoryTemplateProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(Error, void* ) = reinterpret_cast<void(*)(Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; if (code >= 200 && code < 300) { Error error(code, string("No Error")); handler(error, userData); return true; } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(error, userData); return false; } } static bool deleteCategoryTemplateHelper(char * accessToken, std::string id, std::string cascade, void(* handler)(Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; itemAtq = stringify(&cascade, "std::string"); queryParams.insert(pair<string, string>("cascade", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("cascade"); } string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories/templates/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("DELETE"); if(strcmp("PUT", "DELETE") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = deleteCategoryTemplateProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), deleteCategoryTemplateProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::deleteCategoryTemplateAsync(char * accessToken, std::string id, std::string cascade, void(* handler)(Error, void* ) , void* userData) { return deleteCategoryTemplateHelper(accessToken, id, cascade, handler, userData, true); } bool CategoriesManager::deleteCategoryTemplateSync(char * accessToken, std::string id, std::string cascade, void(* handler)(Error, void* ) , void* userData) { return deleteCategoryTemplateHelper(accessToken, id, cascade, handler, userData, false); } static bool getCategoriesProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(PageResource«CategoryResource», Error, void* ) = reinterpret_cast<void(*)(PageResource«CategoryResource», Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; PageResource«CategoryResource» out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("PageResource«CategoryResource»")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "PageResource«CategoryResource»", "PageResource«CategoryResource»"); json_node_free(pJson); if ("PageResource«CategoryResource»" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool getCategoriesHelper(char * accessToken, std::string filterSearch, bool filterActive, int size, int page, std::string order, void(* handler)(PageResource«CategoryResource», Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; itemAtq = stringify(&filterSearch, "std::string"); queryParams.insert(pair<string, string>("filter_search", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("filter_search"); } itemAtq = stringify(&filterActive, "bool"); queryParams.insert(pair<string, string>("filter_active", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("filter_active"); } itemAtq = stringify(&size, "int"); queryParams.insert(pair<string, string>("size", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("size"); } itemAtq = stringify(&page, "int"); queryParams.insert(pair<string, string>("page", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("page"); } itemAtq = stringify(&order, "std::string"); queryParams.insert(pair<string, string>("order", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("order"); } string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories"); int pos; //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("GET"); if(strcmp("PUT", "GET") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = getCategoriesProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), getCategoriesProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::getCategoriesAsync(char * accessToken, std::string filterSearch, bool filterActive, int size, int page, std::string order, void(* handler)(PageResource«CategoryResource», Error, void* ) , void* userData) { return getCategoriesHelper(accessToken, filterSearch, filterActive, size, page, order, handler, userData, true); } bool CategoriesManager::getCategoriesSync(char * accessToken, std::string filterSearch, bool filterActive, int size, int page, std::string order, void(* handler)(PageResource«CategoryResource», Error, void* ) , void* userData) { return getCategoriesHelper(accessToken, filterSearch, filterActive, size, page, order, handler, userData, false); } static bool getCategoryProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(CategoryResource, Error, void* ) = reinterpret_cast<void(*)(CategoryResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; CategoryResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("CategoryResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "CategoryResource", "CategoryResource"); json_node_free(pJson); if ("CategoryResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool getCategoryHelper(char * accessToken, std::string id, void(* handler)(CategoryResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("GET"); if(strcmp("PUT", "GET") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = getCategoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), getCategoryProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::getCategoryAsync(char * accessToken, std::string id, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return getCategoryHelper(accessToken, id, handler, userData, true); } bool CategoriesManager::getCategorySync(char * accessToken, std::string id, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return getCategoryHelper(accessToken, id, handler, userData, false); } static bool getCategoryTemplateProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(TemplateResource, Error, void* ) = reinterpret_cast<void(*)(TemplateResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; TemplateResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("TemplateResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "TemplateResource", "TemplateResource"); json_node_free(pJson); if ("TemplateResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool getCategoryTemplateHelper(char * accessToken, std::string id, void(* handler)(TemplateResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories/templates/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("GET"); if(strcmp("PUT", "GET") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = getCategoryTemplateProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), getCategoryTemplateProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::getCategoryTemplateAsync(char * accessToken, std::string id, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return getCategoryTemplateHelper(accessToken, id, handler, userData, true); } bool CategoriesManager::getCategoryTemplateSync(char * accessToken, std::string id, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return getCategoryTemplateHelper(accessToken, id, handler, userData, false); } static bool getCategoryTemplatesProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(PageResource«TemplateResource», Error, void* ) = reinterpret_cast<void(*)(PageResource«TemplateResource», Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; PageResource«TemplateResource» out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("PageResource«TemplateResource»")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "PageResource«TemplateResource»", "PageResource«TemplateResource»"); json_node_free(pJson); if ("PageResource«TemplateResource»" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool getCategoryTemplatesHelper(char * accessToken, int size, int page, std::string order, void(* handler)(PageResource«TemplateResource», Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; itemAtq = stringify(&size, "int"); queryParams.insert(pair<string, string>("size", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("size"); } itemAtq = stringify(&page, "int"); queryParams.insert(pair<string, string>("page", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("page"); } itemAtq = stringify(&order, "std::string"); queryParams.insert(pair<string, string>("order", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("order"); } string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/categories/templates"); int pos; //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("GET"); if(strcmp("PUT", "GET") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = getCategoryTemplatesProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), getCategoryTemplatesProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::getCategoryTemplatesAsync(char * accessToken, int size, int page, std::string order, void(* handler)(PageResource«TemplateResource», Error, void* ) , void* userData) { return getCategoryTemplatesHelper(accessToken, size, page, order, handler, userData, true); } bool CategoriesManager::getCategoryTemplatesSync(char * accessToken, int size, int page, std::string order, void(* handler)(PageResource«TemplateResource», Error, void* ) , void* userData) { return getCategoryTemplatesHelper(accessToken, size, page, order, handler, userData, false); } static bool getTagsProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(PageResource«string», Error, void* ) = reinterpret_cast<void(*)(PageResource«string», Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; PageResource«string» out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("PageResource«string»")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "PageResource«string»", "PageResource«string»"); json_node_free(pJson); if ("PageResource«string»" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool getTagsHelper(char * accessToken, int size, int page, void(* handler)(PageResource«string», Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; itemAtq = stringify(&size, "int"); queryParams.insert(pair<string, string>("size", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("size"); } itemAtq = stringify(&page, "int"); queryParams.insert(pair<string, string>("page", itemAtq)); if( itemAtq.empty()==true){ queryParams.erase("page"); } string mBody = ""; JsonNode* node; JsonArray* json_array; string url("/tags"); int pos; //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("GET"); if(strcmp("PUT", "GET") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = getTagsProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), getTagsProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::getTagsAsync(char * accessToken, int size, int page, void(* handler)(PageResource«string», Error, void* ) , void* userData) { return getTagsHelper(accessToken, size, page, handler, userData, true); } bool CategoriesManager::getTagsSync(char * accessToken, int size, int page, void(* handler)(PageResource«string», Error, void* ) , void* userData) { return getTagsHelper(accessToken, size, page, handler, userData, false); } static bool updateCategoryProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(CategoryResource, Error, void* ) = reinterpret_cast<void(*)(CategoryResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; CategoryResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("CategoryResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "CategoryResource", "CategoryResource"); json_node_free(pJson); if ("CategoryResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool updateCategoryHelper(char * accessToken, std::string id, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; if (isprimitive("CategoryResource")) { node = converttoJson(&category, "CategoryResource", ""); } char *jsonStr = category.toJson(); node = json_from_string(jsonStr, NULL); g_free(static_cast<gpointer>(jsonStr)); char *jsonStr1 = json_to_string(node, false); mBody.append(jsonStr1); g_free(static_cast<gpointer>(jsonStr1)); string url("/categories/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("PUT"); if(strcmp("PUT", "PUT") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = updateCategoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), updateCategoryProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::updateCategoryAsync(char * accessToken, std::string id, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return updateCategoryHelper(accessToken, id, category, handler, userData, true); } bool CategoriesManager::updateCategorySync(char * accessToken, std::string id, CategoryResource category, void(* handler)(CategoryResource, Error, void* ) , void* userData) { return updateCategoryHelper(accessToken, id, category, handler, userData, false); } static bool updateCategoryTemplateProcessor(MemoryStruct_s p_chunk, long code, char* errormsg, void* userData, void(* voidHandler)()) { void(* handler)(TemplateResource, Error, void* ) = reinterpret_cast<void(*)(TemplateResource, Error, void* )> (voidHandler); JsonNode* pJson; char * data = p_chunk.memory; TemplateResource out; if (code >= 200 && code < 300) { Error error(code, string("No Error")); if (isprimitive("TemplateResource")) { pJson = json_from_string(data, NULL); jsonToValue(&out, pJson, "TemplateResource", "TemplateResource"); json_node_free(pJson); if ("TemplateResource" == "std::string") { string* val = (std::string*)(&out); if (val->empty() && p_chunk.size>4) { *val = string(p_chunk.memory, p_chunk.size); } } } else { out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); out.fromJson(data); char *jsonStr = out.toJson(); printf("\n%s\n", jsonStr); g_free(static_cast<gpointer>(jsonStr)); } handler(out, error, userData); return true; //TODO: handle case where json parsing has an error } else { Error error; if (errormsg != NULL) { error = Error(code, string(errormsg)); } else if (p_chunk.memory != NULL) { error = Error(code, string(p_chunk.memory)); } else { error = Error(code, string("Unkown Error")); } handler(out, error, userData); return false; } } static bool updateCategoryTemplateHelper(char * accessToken, std::string id, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData, bool isAsync) { //TODO: maybe delete headerList after its used to free up space? struct curl_slist *headerList = NULL; string accessHeader = "Authorization: Bearer "; accessHeader.append(accessToken); headerList = curl_slist_append(headerList, accessHeader.c_str()); headerList = curl_slist_append(headerList, "Content-Type: application/json"); map <string, string> queryParams; string itemAtq; string mBody = ""; JsonNode* node; JsonArray* json_array; if (isprimitive("TemplateResource")) { node = converttoJson(&_template, "TemplateResource", ""); } char *jsonStr = _template.toJson(); node = json_from_string(jsonStr, NULL); g_free(static_cast<gpointer>(jsonStr)); char *jsonStr1 = json_to_string(node, false); mBody.append(jsonStr1); g_free(static_cast<gpointer>(jsonStr1)); string url("/categories/templates/{id}"); int pos; string s_id("{"); s_id.append("id"); s_id.append("}"); pos = url.find(s_id); url.erase(pos, s_id.length()); url.insert(pos, stringify(&id, "std::string")); //TODO: free memory of errormsg, memorystruct MemoryStruct_s* p_chunk = new MemoryStruct_s(); long code; char* errormsg = NULL; string myhttpmethod("PUT"); if(strcmp("PUT", "PUT") == 0){ if(strcmp("", mBody.c_str()) == 0){ mBody.append("{}"); } } if(!isAsync){ NetClient::easycurl(CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg); bool retval = updateCategoryTemplateProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler)); curl_slist_free_all(headerList); if (p_chunk) { if(p_chunk->memory) { free(p_chunk->memory); } delete (p_chunk); } if (errormsg) { free(errormsg); } return retval; } else{ GThread *thread = NULL; RequestInfo *requestInfo = NULL; requestInfo = new(nothrow) RequestInfo (CategoriesManager::getBasePath(), url, myhttpmethod, queryParams, mBody, headerList, p_chunk, &code, errormsg, userData, reinterpret_cast<void(*)()>(handler), updateCategoryTemplateProcessor);; if(requestInfo == NULL) return false; thread = g_thread_new(NULL, __CategoriesManagerthreadFunc, static_cast<gpointer>(requestInfo)); return true; } } bool CategoriesManager::updateCategoryTemplateAsync(char * accessToken, std::string id, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return updateCategoryTemplateHelper(accessToken, id, _template, handler, userData, true); } bool CategoriesManager::updateCategoryTemplateSync(char * accessToken, std::string id, TemplateResource _template, void(* handler)(TemplateResource, Error, void* ) , void* userData) { return updateCategoryTemplateHelper(accessToken, id, _template, handler, userData, false); }
[ "shawn.stout@knetik.com" ]
shawn.stout@knetik.com
a463a738a876aba4f04a5bef48fd5d4e9a75cdfe
3a648e112b5a1d6442362f862602304443c4e7f6
/10430/main.cpp
613d945ae8c00849ee14f43e69817844c9b25412
[]
no_license
songhii/Algorithm
0e07b07e21bdecb6d2efc963be2e05cea28f7548
e4d61256cff7cf1f834d7d68cdd07fa8c11b8438
refs/heads/main
2023-07-18T13:01:00.557030
2021-08-13T12:18:48
2021-08-13T12:18:48
316,134,353
0
0
null
null
null
null
UTF-8
C++
false
false
353
cpp
// // main.cpp // 10430 // // Created by songhee on 2020/12/30. // #include <iostream> using namespace std; int main(int argc, const char * argv[]) { int A, B, C; cin >> A >> B >> C; cout << (A+B)%C << endl; cout << ((A%C) + (B%C))%C << endl; cout << (A*B)%C << endl; cout << ((A%C) * (B%C))%C << endl; return 0; }
[ "songhi1115@gmail.com" ]
songhi1115@gmail.com
57cc80d1797fd2b252d4eb9e19e0a9b2be8807de
9690507c2f1e5c16df388a88901d006426832be8
/USACO/palsquare.cpp
f81dc0cc9b5caf3287db753d4ea4b9e3c2abf2bd
[]
no_license
ArjumanSreashtho/Problem-Solving
9fe035ec4b5c774af7ef46b8272a8ba63899427f
b52da5510384d4b0f0c49cf5f6dde2d5aaa0a91e
refs/heads/master
2020-05-02T14:02:56.915790
2020-03-31T15:03:26
2020-03-31T15:03:26
177,999,833
0
0
null
null
null
null
UTF-8
C++
false
false
930
cpp
/* ID: onlyjav1 LANG: C++ TASK: palsquare */ #include<bits/stdc++.h> using namespace std; #define LL long long int string base_conversion(int num, int base) { string s; while(num) { int mod = num%base; if(mod >= 10) s+=((char)(mod+7+'0')); else { s+=((char)mod+'0'); } num /= base; } reverse(s.begin(), s.end()); return s; } bool palindrome(string s) { int l = s.size(); for(int i = 0; i < l/2; i++) { if(s[i] != s[l-i-1]) return false; } return true; } int main() { ofstream fout ("palsquare.out"); ifstream fin ("palsquare.in"); int b; fin >> b; for(int i = 1; i <= 300; i++) { string s = base_conversion(i*i,b); if(palindrome(s)) { fout << base_conversion(i,b) << " " << s << endl; } } return 0; }
[ "john@localhost.localdomain" ]
john@localhost.localdomain
fbd1dbcc09850d1a5b11c1361f3ab20e1d1cb711
0d44433c9dbaafbd8695390478d1b0292bccab31
/src/netbase.h
43a32c2feb6873bfe1683c6feb7df783dd516de1
[ "MIT" ]
permissive
1201906289/BitalGO
674acb8eb964113fb8ea635f5861ba5dd7f61907
be00e552cc20b6733311a16a4089c1660837e239
refs/heads/master
2022-11-22T06:31:41.884674
2020-07-25T06:07:29
2020-07-25T06:07:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,667
h
// Copyright (c) 2009-2015 The Bitcoin developers //Copyright (c) 2017-2019 The PIVX developers //Copyright (c) 2020 The BitalGO developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETBASE_H #define BITCOIN_NETBASE_H #if defined(HAVE_CONFIG_H) #include "config/bitalgo-config.h" #endif #include "compat.h" #include "netaddress.h" #include "serialize.h" #include <stdint.h> #include <string> #include <vector> extern int nConnectTimeout; extern bool fNameLookup; /** -timeout default */ static const int DEFAULT_CONNECT_TIMEOUT = 5000; //! -dns default static const int DEFAULT_NAME_LOOKUP = true; class proxyType { public: proxyType(): randomize_credentials(false) {} proxyType(const CService &proxy, bool randomize_credentials=false): proxy(proxy), randomize_credentials(randomize_credentials) {} bool IsValid() const { return proxy.IsValid(); } CService proxy; bool randomize_credentials; }; enum Network ParseNetwork(std::string net); std::string GetNetworkName(enum Network net); void SplitHostPort(std::string in, int& portOut, std::string& hostOut); bool SetProxy(enum Network net, const proxyType &addrProxy); bool GetProxy(enum Network net, proxyType& proxyInfoOut); bool IsProxy(const CNetAddr& addr); bool SetNameProxy(const proxyType &addrProxy); bool HaveNameProxy(); bool LookupHost(const char* pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions, bool fAllowLookup); bool LookupHost(const char* pszName, CNetAddr& addr, bool fAllowLookup); bool Lookup(const char* pszName, CService& addr, int portDefault, bool fAllowLookup); bool Lookup(const char* pszName, std::vector<CService>& vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions); CService LookupNumeric(const char* pszName, int portDefault = 0); bool LookupSubNet(const char* pszName, CSubNet& subnet); bool ConnectSocket(const CService& addr, SOCKET& hSocketRet, int nTimeout, bool* outProxyConnectionFailed = 0); bool ConnectSocketByName(CService& addr, SOCKET& hSocketRet, const char* pszDest, int portDefault, int nTimeout, bool* outProxyConnectionFailed = 0); /** Return readable error string for a network error code */ std::string NetworkErrorString(int err); /** Close socket and set hSocket to INVALID_SOCKET */ bool CloseSocket(SOCKET& hSocket); /** Disable or enable blocking-mode for a socket */ bool SetSocketNonBlocking(SOCKET& hSocket, bool fNonBlocking); /** * Convert milliseconds to a struct timeval for e.g. select. */ struct timeval MillisToTimeval(int64_t nTimeout); #endif // BITCOIN_NETBASE_H
[ "67895702+BitalgoCOIN@users.noreply.github.com" ]
67895702+BitalgoCOIN@users.noreply.github.com
cb9c68d4ed4df88aefbd11ce508560e02ccfc036
2521f019d85941a9732e2bbb1ae18cafff3bbc72
/DeferredRendering/DeferredRendering/Light.cpp
d6409aad1e859160cec66edc7629e7830a55f22e
[]
no_license
vanish87/is-deferred-rendering-vs2012
03418e43cb1620d46f204abbe4cd033fb2ad7fc2
6122759bfa71ecdcd816222e80c3dfc1ceae4fd4
refs/heads/master
2020-05-28T03:25:18.717194
2017-01-29T06:57:57
2017-01-29T06:57:57
32,836,346
1
0
null
null
null
null
UTF-8
C++
false
false
1,967
cpp
#include "Light.h" #include "Context.h" namespace MocapGE { Light::~Light(void) { } void Light::SetType( LightType type ) { this->light_type_ = type; } void Light::SetColor( float4 color ) { this->light_color_ = color; } void Light::AddToScene() { Context::Instance().GetSceneManager().AddLight(this); } void Light::SetCamera( Camera* camera ) { virtual_camera_ = camera; } float Light::GetRange() { return light_attrib_.w(); } void Light::SetRange( float range ) { light_attrib_.w() = range; } void Light::SetAttrib( float4 light_attrib ) { light_attrib_ = light_attrib; } PointLight::PointLight( void ) :Light(LT_POINT) { pos_ = float3(0, 0, 0); } PointLight::~PointLight( void ) { } void PointLight::SetPos( float3 pos ) { pos_ = pos; } void PointLight::UpdateCamera() { throw std::exception("The method or operation is not implemented."); } MocapGE::float3 PointLight::GetPos() { return pos_; } SpotLight::SpotLight( void ) :Light(LT_SPOT) { pos_ = float3(0, 0, 0); dir_ = float3(0, 0, -1); inner_angle_ = Math::PI / 6; outer_angle_ = Math::PI / 4; this->UpdateCamera(); } SpotLight::~SpotLight( void ) { } void SpotLight::SetPos( float3 pos ) { pos_ = pos; this->UpdateCamera(); } void SpotLight::SetDir( float3 dir ) { dir_ = Math::Normalize(dir); this->UpdateCamera(); } void SpotLight::SetOuterAngle( float outer_angle ) { outer_angle_ = outer_angle; this->UpdateCamera(); } void SpotLight::SetInnerAngle( float inner_angle ) { inner_angle_ = inner_angle; } void SpotLight::UpdateCamera() { virtual_camera_->SetProjection(outer_angle_ * 2, 1280/800.0f, 1.0f, 1000.0f); //TODO : rotate up vector dir_ = Math::Normalize(dir_); virtual_camera_->SetView(pos_, pos_+ dir_,float3(0, 1, 0)); } }
[ "vanish8.7@gmail.com@6294a696-770a-505e-ba8e-939081b951f1" ]
vanish8.7@gmail.com@6294a696-770a-505e-ba8e-939081b951f1
4d392f700451b2a07ec75d07412da354cbaa0952
54f06b12037d1f50cf46767b0d75525f46e47f4d
/Programaqueadvinhaasomade5numeros.cpp
585e289c634905acd518502fa333095c9c9057dd
[]
no_license
gilbertosbs/Estudos-Livros
02b3f400da42c56f077d9b650535fd280456d562
f5eac13c93efaba610dfd0d807e92f371458d4f9
refs/heads/master
2022-11-19T03:50:18.506989
2020-07-23T17:34:16
2020-07-23T17:34:16
277,667,081
0
0
null
null
null
null
ISO-8859-1
C++
false
false
558
cpp
//programa que advinha a soma de 5 numeros #include <iostream> #include <iomanip> using namespace std; int main(void) { setlocale(LC_ALL, "Portuguese"); cout << "\nDigite um numero de até 4 algoritmos: "; int x,r; cin >> x; r = 19998 + x; cout <<"\nO resultado da soma é:" << r; cout <<"\nDigite o segundo número:"; cin >> x; cout <<"\nO meu número é: " << (9999 - x); cout <<"\nDigite o 4 número: "; cin >> x; cout << "\nO meu número é :" << (9999-x) << endl; cin.get(); }
[ "noreply@github.com" ]
noreply@github.com
442a7d317930661ae4e6f5ec99a9208da45b3375
e7cb043173ea0a5f451bafca0bfcdb08b542b7d7
/source/SHADER/VertexShader.cpp
bd9d901868e0b34ae9f275925989f0a76c5b7cde
[]
no_license
VisualIdeation/Toirt-Samhlaigh
aa0201c3762798d4186727ef192cc55855a11fef
6fad5ff0f43cc32c02f2d9a33da1e00f064c8924
refs/heads/master
2021-01-19T05:36:16.037374
2011-10-20T16:47:04
2011-10-20T16:47:04
2,125,754
2
0
null
null
null
null
UTF-8
C++
false
false
1,080
cpp
/* * VertexShader.cpp - Methods for VertexShader class. * * Author: Patrick O'Leary * Created: November 12, 2007 * Copyright 2007. All rights reserved. */ #include <iostream> #include <GL/gl.h> #include <GL/glu.h> #include <SHADER/ShaderManager.h> #include <SHADER/VertexShader.h> /* * VertexShader - Constructor for VertexShader. */ VertexShader::VertexShader() { setProgramType(1); setProgramObject(glCreateShaderObjectARB(GL_VERTEX_SHADER_ARB)); CHECK_GL_ERROR(); } // end VertexShader() /* * ~VertexShader - Destructor for VertexShader. */ VertexShader::~VertexShader() { } // end ~VertexShader() /* * CheckGLError - Check for GL error. * parameter file - char* * parameter line - int * return - int */ int VertexShader::CheckGLError(const char * file, int line) { GLenum glError; int returnCode = 0; glError = glGetError(); while (glError != GL_NO_ERROR) { std::cout << "GL Error #" << glError << " in File " << file << " at line: " << line << std::endl; returnCode = 1; glError = glGetError(); } return returnCode; } // end CheckGLError()
[ "olearypatrick@gmail.com" ]
olearypatrick@gmail.com
333495206b7b36e33639438a4e976a6df033d68e
a34fdae90d3497db3c4060064df0162de47fef6f
/bingo.ino
e5c4f3c63f1f48caeaa8861bb0d00004054ae091
[]
no_license
pinheiro-lu/Bingo
f7217d9d67b11bb9179e953adecb7c3d7d1a4ec0
6873ce20820fe9bfa79f1da73d2b1e6aa3436fa6
refs/heads/master
2022-11-15T21:44:02.779678
2020-06-20T14:06:46
2020-06-20T14:06:46
273,719,579
0
0
null
null
null
null
UTF-8
C++
false
false
18,735
ino
/* bingo AUTOR: Luan Pereira Pinheiro SKETCH: Bingo com Arduino DATA: 18/12/2019 */ // INCLUSÃO DE BIBLIOTECAS #include <LiquidCrystal.h> // DEFINIÇÃO DE PINOS DE SAÍDA ANÓDICAS /* #define A-G pinoArduino //pinoDisplayYY3641BH */ #define A 10 //11 #define B 7 //7 #define C 4 //4 #define D 5 //2 #define E 6 //1 #define F 9 //10 #define G 3 //5 // DEFINIÇÃO DE PINOS DE SAÍDA CATÓDICAS #define unidade 2 //6 #define dezena 8 //8 // DEFINIÇÃO DE PINOS DE ENTRADA #define bingo 12 #define proximo 13 // DEFINIÇÃO DE CONSTANTES AUXILIARES #define bounce 800 // DECLARAÇÃO DE FUNÇÕES DE SORTEIO void sorteado0 (byte classe, byte noclasse); void sorteado1 (byte classe, byte noclasse); void sorteado2 (byte classe, byte noclasse); void sorteado3 (byte classe, byte noclasse); void sorteado4 (byte classe, byte noclasse); void sorteado5 (byte classe, byte noclasse); void sorteado6 (byte classe, byte noclasse); void sorteado7 (byte classe, byte noclasse); void sorteado8 (byte classe, byte noclasse); void sorteado9 (byte classe, byte noclasse); // DECLARAÇÃO DE FUNÇÕES FACILITADORAS bool retencaoproximo (); bool retencaobingo (); void (*reset)() = 0; // DECLARAÇÃO DE VARIÁVEIS GLOBAIS byte sorteio; boolean valido; byte numSorteado[75]; byte quantidade = 0; // DECLARAÇÃO DO DISPLAY LiquidCrystal lcd(11, 19, 15, 16, 17, 18); // DECLARAÇÃO DO é byte eagudo[8] = { B00010, B00100, B01110, B10001, B11111, B10000, B01110 }; void setup() { // INÍCIO DO DISPLAY Serial.begin (9600); lcd.begin(16, 2); // CONFIGURAÇÃO DOS PINOS DE SAÍDA for (byte i = 2; i <= 10; i++) { pinMode (i, OUTPUT); } // CONFIGURAÇÃO DOS PINOS DE ENTRADA pinMode(bingo, INPUT); pinMode(proximo, INPUT); // CRIAÇÃO DA SEMENTE INSTÁVEL PARA SORTEIO randomSeed(analogRead(0)); // DEFINIÇÃO DO VALOR PADRÃO PARA OS TERMOS DO VETOR for (byte i = 0; i < 75; i++) { numSorteado[i] = 0; } // IMPOSIÇÃO DO é NO BYTE 0 DA TABELA A01 lcd.createChar(0, eagudo); // TEXTO INICIAL APARENTE NO DISPLAY lcd.setCursor(0, 0); lcd.print("Seja bem-vindo ao"); lcd.setCursor(0, 1); lcd.print("Pilueto's Bingo!"); } void loop() { // DECLARAÇÃO DE VARIÁVEIS DE LOOP byte dezSorteio, uniSorteio; byte BINGO[] = {0, 0, 0, 0, 0}; unsigned long delay1; boolean acabou = true; byte estadobingo = 0; // SORTEIO if (retencaoproximo()) { do { sorteio = random (1, 76); valido = true; for (byte i = 0; i < 75; i++) { if (sorteio == numSorteado[i]) { valido = false; break; } } for (byte i = 0; i < 75; i++) { if (numSorteado[i] == 0) { acabou = false; break; } } // ACABA O BINGO APÓS TODOS OS NÚMEROS SEREM SORTEADOS if (acabou) { lcd.clear(); lcd.print("O Bingo acabou!"); sorteado0(unidade, dezena); delay(1000); reset(); break; } } while (!valido); numSorteado[sorteio - 1] = sorteio; // LETRAS CORRESPONDENTES A CADA NÚMERO if (sorteio <= 15) { lcd.clear(); lcd.print("B"); } else if (sorteio <= 30) { lcd.clear(); lcd.print("I"); } else if (sorteio <= 45) { lcd.clear(); lcd.print("N"); } else if (sorteio <= 60) { lcd.clear(); lcd.print("G"); } else { lcd.clear(); lcd.print("O"); } quantidade++; lcd.print(" "); lcd.print(quantidade); } // IMPRESSÃO DE NÚMEROS NA TELA QUANDO SE APERTA O BOTÃO "BINGO" if (retencaobingo()) { while (!retencaobingo()) { for (byte i = 0; i < 5; i++) { BINGO[i] = 0; } switch (estadobingo) { case 0: lcd.clear(); lcd.print("B:"); for (byte i = 0; i < 15; i++) { if (numSorteado[i] != 0) { lcd.print(" "); lcd.print(numSorteado[i]); Serial.println(numSorteado[i]); } BINGO[0]++; } // APÓS IMPRIMIR OS NÚMEROS O DISPLAY SERÁ GIRADO for (byte i = 0; i < ((BINGO[0] - 5) * 4); i++) { // AO APERTAR O BOTÃO PRÓXIMO A PRÓXIMA LETRA E SEUS NÚMEROS CORRESPONDENTES SERÃO MOSTRADOS if (retencaoproximo()) { estadobingo = 1; break; } // AO APERTAR O BOTÃO BINGO SERÁ QUESTIONADO SE DEU BINGO if (retencaobingo()) { lcd.clear(); while (!retencaobingo() || retencaoproximo()) { lcd.home(); lcd.print("BINGO!?"); // O JOGO ACABARÁ AO APERTAR O BOTÃO BINGO if (retencaobingo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Parab"); lcd.write(byte(0)); lcd.print("ns ao"); lcd.setCursor(3, 1); lcd.print("vencedor!"); delay(1000); reset(); break; } // O JOGO CONTINUARÁ AO APERTAR O BOTÃO PRÓXIMO if (retencaoproximo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Continue se"); lcd.setCursor(2, 1); lcd.print("divertindo!"); goto vai; break; } } } delay1 = millis(); while (millis() - delay1 < 500) { if (millis() - delay1 >= 500) { lcd.scrollDisplayLeft(); } } } estadobingo = 1; break; case 1: lcd.clear(); lcd.print("I:"); for (byte i = 15; i < 30; i++) { if (numSorteado[i] != 0) { lcd.print(" "); lcd.print(numSorteado[i]); Serial.println(numSorteado[i]); } BINGO[1]++; } for (byte i = 0; i < ((BINGO[1] - 5) * 4); i++) { if (retencaoproximo()) { estadobingo = 2; break; } if (retencaobingo()) { lcd.clear(); while (!retencaobingo() || retencaoproximo()) { lcd.home(); lcd.print("BINGO!?"); if (retencaobingo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Parab"); lcd.write(byte(0)); lcd.print("ns ao"); lcd.setCursor(3, 1); lcd.print("vencedor!"); delay(1000); reset(); break; } if (retencaoproximo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Continue se"); lcd.setCursor(2, 1); lcd.print("divertindo!"); goto vai; break; } } } delay1 = millis(); while (millis() - delay1 < 500) { if (millis() - delay1 >= 500) { lcd.scrollDisplayLeft(); } } } estadobingo = 2; break; case 2: lcd.clear(); lcd.print("N:"); for (byte i = 30; i < 45; i++) { if (numSorteado[i] != 0) { lcd.print(" "); lcd.print(numSorteado[i]); Serial.println(numSorteado[i]); } BINGO[2]++; } for (byte i = 0; i < ((BINGO[2] - 5) * 4); i++) { if (retencaoproximo()) { estadobingo = 3; break; } if (retencaobingo()) { lcd.clear(); while (!retencaobingo() || retencaoproximo()) { lcd.home(); lcd.print("BINGO!?"); if (retencaobingo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Parab"); lcd.write(byte(0)); lcd.print("ns ao"); lcd.setCursor(3, 1); lcd.print("vencedor!"); delay(1000); reset(); break; } if (retencaoproximo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Continue se"); lcd.setCursor(2, 1); lcd.print("divertindo!"); goto vai; break; } } } delay1 = millis(); while (millis() - delay1 < 500) { if (millis() - delay1 >= 500) { lcd.scrollDisplayLeft(); } } } estadobingo = 3; break; case 3: lcd.clear(); lcd.print("G:"); for (byte i = 45; i < 60; i++) { if (numSorteado[i] != 0) { lcd.print(" "); lcd.print(numSorteado[i]); Serial.println(numSorteado[i]); } BINGO[3]++; } for (byte i = 0; i < ((BINGO[3] - 5) * 4); i++) { if (retencaoproximo()) { estadobingo = 4; break; } if (retencaobingo()) { lcd.clear(); while (!retencaobingo() || retencaoproximo()) { lcd.home(); lcd.print("BINGO!?"); if (retencaobingo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Parab"); lcd.write(byte(0)); lcd.print("ns ao"); lcd.setCursor(3, 1); lcd.print("vencedor!"); delay(1000); reset(); break; } if (retencaoproximo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Continue se"); lcd.setCursor(2, 1); lcd.print("divertindo!"); goto vai; break; } } } delay1 = millis(); while (millis() - delay1 < 500) { if (millis() - delay1 >= 500) { lcd.scrollDisplayLeft(); } } } estadobingo = 4; break; case 4: lcd.clear(); lcd.print("O:"); for (byte i = 60; i < 75; i++) { if (numSorteado[i] != 0) { lcd.print(" "); lcd.print(numSorteado[i]); Serial.println(numSorteado[i]); } BINGO[4]++; } for (byte i = 0; i < ((BINGO[4] - 5) * 4); i++) { if (retencaoproximo()) { estadobingo = 0; break; } if (retencaobingo()) { lcd.clear(); while (!retencaobingo() || retencaoproximo()) { lcd.home(); lcd.print("BINGO!?"); if (retencaobingo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Parab"); lcd.write(byte(0)); lcd.print("ns ao"); lcd.setCursor(3, 1); lcd.print("vencedor!"); delay(1000); reset(); break; } if (retencaoproximo()) { lcd.clear(); lcd.setCursor(2, 0); lcd.print("Continue se"); lcd.setCursor(2, 1); lcd.print("divertindo!"); goto vai; break; } } } delay1 = millis(); while (millis() - delay1 < 500) { if (millis() - delay1 >= 500) { lcd.scrollDisplayLeft(); } } } estadobingo = 0; break; } } } vai: // usado devido à necessidade de saída de vários loops // SEPARAÇÃO ENTRE DEZENAS E UNIDADES PARA POSTERIOR VISUALIZAÇÃO NO DISPLAY 7 SEGMENTOS uniSorteio = sorteio % 10; dezSorteio = sorteio / 10; // VISUALIZAÇÃO NO DISPLAY 7 SEGMENTOS, ALTERNANDO ENTRE DEZENAS E UNIDADES RÁPIDA E CONTINUAMENTE switch (dezSorteio) { case 0: sorteado0 (dezena, unidade); delay(5); break; case 1: sorteado1 (dezena, unidade); delay(5); break; case 2: sorteado2 (dezena, unidade); delay(5); break; case 3: sorteado3 (dezena, unidade); delay(5); break; case 4: sorteado4 (dezena, unidade); delay(5); break; case 5: sorteado5 (dezena, unidade); delay(5); break; case 6: sorteado6 (dezena, unidade); delay(5); break; case 7: sorteado7 (dezena, unidade); delay(5); break; case 8: sorteado8 (dezena, unidade); delay(5); break; case 9: sorteado9 (dezena, unidade); delay(5); break; } switch (uniSorteio) { case 0: sorteado0 (unidade, dezena); delay(5); break; case 1: sorteado1 (unidade, dezena); delay(5); break; case 2: sorteado2 (unidade, dezena); delay(5); break; case 3: sorteado3 (unidade, dezena); delay(5); break; case 4: sorteado4 (unidade, dezena); delay(5); break; case 5: sorteado5 (unidade, dezena); delay(5); break; case 6: sorteado6 (unidade, dezena); delay(5); break; case 7: sorteado7 (unidade, dezena); delay(5); break; case 8: sorteado8 (unidade, dezena); delay(5); break; case 9: sorteado9 (unidade, dezena); delay(5); break; } } void sorteado0 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, HIGH); digitalWrite (F, HIGH); digitalWrite (G, LOW); } void sorteado1 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, LOW); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, LOW); digitalWrite (E, LOW); digitalWrite (F, LOW); digitalWrite (G, LOW); } void sorteado2 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, LOW); digitalWrite (D, HIGH); digitalWrite (E, HIGH); digitalWrite (F, LOW); digitalWrite (G, HIGH); } void sorteado3 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, LOW); digitalWrite (F, LOW); digitalWrite (G, HIGH); } void sorteado4 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, LOW); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, LOW); digitalWrite (E, LOW); digitalWrite (F, HIGH); digitalWrite (G, HIGH); } void sorteado5 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, LOW); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, LOW); digitalWrite (F, HIGH); digitalWrite (G, HIGH); } void sorteado6 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, LOW); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, HIGH); digitalWrite (F, HIGH); digitalWrite (G, HIGH); } void sorteado7 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, LOW); digitalWrite (E, LOW); digitalWrite (F, LOW); digitalWrite (G, LOW); } void sorteado8 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, HIGH); digitalWrite (F, HIGH); digitalWrite (G, HIGH); } void sorteado9 (byte classe, byte noclasse) { digitalWrite (classe, LOW); digitalWrite (noclasse, HIGH); digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, HIGH); digitalWrite (E, LOW); digitalWrite (F, HIGH); digitalWrite (G, HIGH); } bool retencaoproximo () { static bool estadoBotao; static bool estadoAnt; bool estadoRet = false; unsigned long delayBotao = 0; if ((millis() - delayBotao) > bounce) { estadoBotao = digitalRead(proximo); if (estadoBotao && !estadoAnt) { estadoRet = !estadoRet; delayBotao = millis(); } estadoAnt = estadoBotao; } return estadoRet; } bool retencaobingo () { static bool estadoBotao; static bool estadoAnt; bool estadoRet = false; unsigned long delayBotao = 0; if ((millis() - delayBotao) > bounce) { estadoBotao = digitalRead(bingo); if (estadoBotao && !estadoAnt) { estadoRet = !estadoRet; delayBotao = millis(); } estadoAnt = estadoBotao; } return estadoRet; }
[ "noreply@github.com" ]
noreply@github.com
5017ee0e8f21bf0fd64497c623fab9bdbb1a6505
c22c85b2509deccd0e8089e6aa86ab9cf009faf8
/Rotations/sqct/unitaryapproximator.h
bc0359be2663678c922c130d7dc67aeda410931e
[ "LGPL-3.0-only", "GPL-3.0-only", "BSD-2-Clause" ]
permissive
teaguetomesh/ScaffCC
facc4be8cd82c4c34666b53a9154949f1c9d42b7
52b087a00ac19384a736b4c64631ca67bd1d8054
refs/heads/master
2020-04-15T13:01:13.873540
2019-03-05T19:50:06
2019-03-05T19:50:06
164,698,453
0
0
BSD-2-Clause
2019-01-08T17:19:10
2019-01-08T17:19:09
null
UTF-8
C++
false
false
4,748
h
// Copyright (c) 2012 Vadym Kliuchnikov sqct(dot)software(at)gmail(dot)com, Dmitri Maslov, Michele Mosca // // This file is part of SQCT. // // SQCT is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // SQCT 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 SQCT. If not, see <http://www.gnu.org/licenses/>. // #ifndef UNITARYAPPROXIMATOR_H #define UNITARYAPPROXIMATOR_H #include "matrix2x2.h" #include "epsilonnet.h" #include <memory> #include <vector> /// \brief Perfors approximation of machine precision unitaries by exact /// unitaries over the ring \f$ \mathbb{Z}[\frac{1}{\sqrt{2}},i]\f$ /// \note Class is not thread safe now. Possible solution it to write appropriate copy constructor /// that will share epsilon nets. class unitaryApproximator { public: /// \brief Type of input for approximation - machine precision unitary typedef matrix2x2cd Ma; /// \brief Type of result of approximation - exact unitary typedef matrix2x2<mpz_class> Me; /// \brief Loads epsilon nets from files on hard drive /// \param max_layer Non inclusive upper bound of \f$ sde(|\cdot|^2) \f$ that will be used for approximation unitaryApproximator( int max_layer = 31 ); /// \brief Performs approximation of the special unitary m and writes result into res virtual double approximate( const Ma& m, Me& res ); /// \brief Outputs statistic about time and approximation quality for each layer /// \note Not implemented for this class virtual double statistics( const Ma& m, Me& res ); protected: /// \brief Vector of pointers to all loaded epsilon nets std::vector< std::unique_ptr< epsilonnet > > layers; }; /// \brief Node of index of columns used by indexedUnitaryApproximator struct index_node { double abs2;///< Largest amongst absolute values squared of the column entries int node_id;///< Number of the node short layer_id;///< \f$ sde(|\cdot|^2) \f$ of the entry short swapped;///< True if the largest absolute value cooresponds to the second column entry, false othewise }; /// \brief Perfors approximation of machine precision unitaries by exact /// unitaries over the ring \f$ \mathbb{Z}[\frac{1}{\sqrt{2}},i]\f$. /// Uses index based on absolute values of columns entries to speed up search. /// \note Class is not thread safe now. Possible solution it to write appropriate copy constructor /// that will share epsilon nets. class indexedUnitaryApproximator : public unitaryApproximator { public: /// \brief Loads epsilon nets from files on hard drive. /// If there is no index exists creates one automatically. /// \param max_layer Non inclusive upper bound of \f$ sde(|\cdot|^2) \f$ that will be used for approximation indexedUnitaryApproximator( int max_layer = 31 ); /// \brief Computes absolute values squared of column entries and stores them in sorted array void createIndex(); /// \brief Performs approximation of the special unitary m and writes result into res double approximate( const Ma& m, Me& res ); /// \brief Outputs statistics about time, approximation quality and number of T gates in resulting circuits double statistics( const Ma& m, Me& res ); private: /// \brief Adds all nodes from given layer to index void add_nodes_to_index( int layer_id ); /// \brief Loads index from file void loadIndex(); /// \brief Assumes that there exist approximation within distance epsilon0 /// and check nodes from index_nodes with index in \f$ [0,end1) \cup [start2, index size ) \f$. /// If it fails to find node within epsilon0 it relaxes intial assumption and search further. void approximate_i( size_t end1, size_t start2, double epsilon0 ); /// \brief True if index loaded successfully bool is_index_ok; epsilonnet::vector2double vec; ///< First column of the special unitary that we approximating double bestDist;///< Best distance to approximation that was laready found double abs2val;///< Absolute value squared of the first component of vec epsilonnet::vi curr_res;///< Current best approximation found /// \brief Index nodes sorted by index_node::abs2 std::vector<index_node> index_nodes; }; #endif // UNITARYAPPROXIMATOR_H
[ "ajavadia@princeton.edu" ]
ajavadia@princeton.edu
b573ec018bb739f3fd10ec19216bde48597e7269
991b37492ca2420331a5e3efb235f6c3ff0ab64b
/os/android/iahwc2.h
12c8a26a5c5b7a082a26f35a346c143c36c06f5b
[]
no_license
JeevakaPrabu/IA-Hardware-Composer
fa94cc17a3bc261b05c21ea94a0cc0d8bb178ce8
b30eb352481dc1c745f5f7960f358bd892f8a383
refs/heads/master
2020-12-02T16:17:14.661219
2017-11-14T15:25:46
2017-11-14T16:08:54
96,529,139
0
0
null
2017-07-07T10:44:20
2017-07-07T10:44:19
null
UTF-8
C++
false
false
10,626
h
/* * Copyright (C) 2016 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. */ #ifndef OS_ANDROID_IAHWC2_H_ #define OS_ANDROID_IAHWC2_H_ #include <hardware/hwcomposer2.h> #include <gpudevice.h> #include <hwclayer.h> #include <platformdefines.h> #include <map> #include <utility> #include "hwcservice.h" namespace hwcomposer { class GpuDevice; class NativeDisplay; } namespace android { class HwcService; class IAHWC2 : public hwc2_device_t { public: static int HookDevOpen(const struct hw_module_t *module, const char *name, struct hw_device_t **dev); IAHWC2(); HWC2::Error Init(); hwcomposer::NativeDisplay *GetPrimaryDisplay(); hwcomposer::NativeDisplay *GetExtendedDisplay(uint32_t); public: class Hwc2Layer { public: HWC2::Composition sf_type() const { return sf_type_; } HWC2::Composition validated_type() const { return validated_type_; } void accept_type_change() { sf_type_ = validated_type_; } void set_validated_type(HWC2::Composition type) { validated_type_ = type; } bool type_changed() const { return sf_type_ != validated_type_; } uint32_t z_order() const { return hwc_layer_.GetZorder(); } void set_buffer(buffer_handle_t buffer) { native_handle_.handle_ = buffer; hwc_layer_.SetNativeHandle(&native_handle_); } void set_acquire_fence(int acquire_fence) { if (acquire_fence > 0) hwc_layer_.SetAcquireFence(dup(acquire_fence)); } hwcomposer::HwcLayer *GetLayer() { return &hwc_layer_; } bool IsCursorLayer() const { return is_cursor_layer_; } // Layer hooks HWC2::Error SetCursorPosition(int32_t x, int32_t y); HWC2::Error SetLayerBlendMode(int32_t mode); HWC2::Error SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fence); HWC2::Error SetLayerColor(hwc_color_t color); HWC2::Error SetLayerCompositionType(int32_t type); HWC2::Error SetLayerDataspace(int32_t dataspace); HWC2::Error SetLayerDisplayFrame(hwc_rect_t frame); HWC2::Error SetLayerPlaneAlpha(float alpha); HWC2::Error SetLayerSidebandStream(const native_handle_t *stream); HWC2::Error SetLayerSourceCrop(hwc_frect_t crop); HWC2::Error SetLayerSurfaceDamage(hwc_region_t damage); HWC2::Error SetLayerTransform(int32_t transform); HWC2::Error SetLayerVisibleRegion(hwc_region_t visible); HWC2::Error SetLayerZOrder(uint32_t z); private: // sf_type_ stores the initial type given to us by surfaceflinger, // validated_type_ stores the type after running ValidateDisplay HWC2::Composition sf_type_ = HWC2::Composition::Invalid; HWC2::Composition validated_type_ = HWC2::Composition::Invalid; bool is_cursor_layer_ = false; android_dataspace_t dataspace_ = HAL_DATASPACE_UNKNOWN; hwcomposer::HwcLayer hwc_layer_; struct gralloc_handle native_handle_; }; class HwcDisplay { public: HwcDisplay(); HwcDisplay(const HwcDisplay &) = delete; HWC2::Error Init(hwcomposer::NativeDisplay *display, int display_index, bool disable_explicit_sync); HWC2::Error InitVirtualDisplay(hwcomposer::NativeDisplay *display, uint32_t width, uint32_t height, bool disable_explicit_sync); HWC2::Error RegisterVsyncCallback(hwc2_callback_data_t data, hwc2_function_pointer_t func); HWC2::Error RegisterRefreshCallback(hwc2_callback_data_t data, hwc2_function_pointer_t func); HWC2::Error RegisterHotPlugCallback(hwc2_callback_data_t data, hwc2_function_pointer_t func); // HWC Hooks void FreeAllLayers(); HWC2::Error AcceptDisplayChanges(); HWC2::Error CreateLayer(hwc2_layer_t *layer); HWC2::Error DestroyLayer(hwc2_layer_t layer); HWC2::Error GetActiveConfig(hwc2_config_t *config); HWC2::Error GetChangedCompositionTypes(uint32_t *num_elements, hwc2_layer_t *layers, int32_t *types); HWC2::Error GetClientTargetSupport(uint32_t width, uint32_t height, int32_t format, int32_t dataspace); HWC2::Error GetColorModes(uint32_t *num_modes, int32_t *modes); HWC2::Error GetDisplayAttribute(hwc2_config_t config, int32_t attribute, int32_t *value); HWC2::Error GetDisplayConfigs(uint32_t *num_configs, hwc2_config_t *configs); HWC2::Error GetDisplayName(uint32_t *size, char *name); HWC2::Error GetDisplayRequests(int32_t *display_requests, uint32_t *num_elements, hwc2_layer_t *layers, int32_t *layer_requests); HWC2::Error GetDisplayType(int32_t *type); HWC2::Error GetDozeSupport(int32_t *support); HWC2::Error GetHdrCapabilities(uint32_t *num_types, int32_t *types, float *max_luminance, float *max_average_luminance, float *min_luminance); HWC2::Error GetReleaseFences(uint32_t *num_elements, hwc2_layer_t *layers, int32_t *fences); HWC2::Error PresentDisplay(int32_t *retire_fence); HWC2::Error SetActiveConfig(hwc2_config_t config); HWC2::Error SetClientTarget(buffer_handle_t target, int32_t acquire_fence, int32_t dataspace, hwc_region_t damage); HWC2::Error SetColorMode(int32_t mode); HWC2::Error SetColorTransform(const float *matrix, int32_t hint); HWC2::Error SetOutputBuffer(buffer_handle_t buffer, int32_t release_fence); HWC2::Error SetPowerMode(int32_t mode); HWC2::Error SetVsyncEnabled(int32_t enabled); HWC2::Error ValidateDisplay(uint32_t *num_types, uint32_t *num_requests); Hwc2Layer &get_layer(hwc2_layer_t layer) { return layers_.at(layer); } hwcomposer::NativeDisplay *GetDisplay(); private: hwcomposer::NativeDisplay *display_ = NULL; hwc2_display_t handle_; HWC2::DisplayType type_; int layer_idx_ = 0; std::map<hwc2_layer_t, Hwc2Layer> layers_; Hwc2Layer client_layer_; int32_t color_mode_; uint32_t frame_no_ = 0; // True after validateDisplay bool checkValidateDisplay = false; bool disable_explicit_sync_ = false; }; static IAHWC2 *toIAHWC2(hwc2_device_t *dev) { return static_cast<IAHWC2 *>(dev); } template <typename PFN, typename T> static hwc2_function_pointer_t ToHook(T function) { static_assert(std::is_same<PFN, T>::value, "Incompatible fn pointer"); return reinterpret_cast<hwc2_function_pointer_t>(function); } template <typename T, typename HookType, HookType func, typename... Args> static T DeviceHook(hwc2_device_t *dev, Args... args) { IAHWC2 *hwc = toIAHWC2(dev); return static_cast<T>(((*hwc).*func)(std::forward<Args>(args)...)); } template <typename HookType, HookType func, typename... Args> static int32_t DisplayHook(hwc2_device_t *dev, hwc2_display_t display_handle, Args... args) { IAHWC2 *hwc = toIAHWC2(dev); if (display_handle == HWC_DISPLAY_PRIMARY) { HwcDisplay &display = hwc->primary_display_; return static_cast<int32_t>((display.*func)(std::forward<Args>(args)...)); } if (display_handle == HWC_DISPLAY_VIRTUAL) { return static_cast<int32_t>( (hwc->virtual_display_.*func)(std::forward<Args>(args)...)); } // TODO(kalyank): How do we map extended display id in case of more than // one external display. HwcDisplay *display = hwc->extended_displays_.at(0).get(); return static_cast<int32_t>((display->*func)(std::forward<Args>(args)...)); } template <typename HookType, HookType func, typename... Args> static int32_t LayerHook(hwc2_device_t *dev, hwc2_display_t display_handle, hwc2_layer_t layer_handle, Args... args) { IAHWC2 *hwc = toIAHWC2(dev); if (display_handle == HWC_DISPLAY_PRIMARY) { HwcDisplay &display = hwc->primary_display_; Hwc2Layer &layer = display.get_layer(layer_handle); return static_cast<int32_t>((layer.*func)(std::forward<Args>(args)...)); } if (display_handle == HWC_DISPLAY_VIRTUAL) { Hwc2Layer &layer = hwc->virtual_display_.get_layer(layer_handle); return static_cast<int32_t>((layer.*func)(std::forward<Args>(args)...)); } // TODO(kalyank): How do we map extended display id in case of more than // one external display. HwcDisplay *display = hwc->extended_displays_.at(0).get(); Hwc2Layer &layer = display->get_layer(layer_handle); return static_cast<int32_t>((layer.*func)(std::forward<Args>(args)...)); } // hwc2_device_t hooks static int HookDevClose(hw_device_t *dev); static void HookDevGetCapabilities(hwc2_device_t *dev, uint32_t *out_count, int32_t *out_capabilities); static hwc2_function_pointer_t HookDevGetFunction(struct hwc2_device *device, int32_t descriptor); // Device functions HWC2::Error CreateVirtualDisplay(uint32_t width, uint32_t height, int32_t *format, hwc2_display_t *display); HWC2::Error DestroyVirtualDisplay(hwc2_display_t display); void Dump(uint32_t *size, char *buffer); uint32_t GetMaxVirtualDisplayCount(); HWC2::Error RegisterCallback(int32_t descriptor, hwc2_callback_data_t data, hwc2_function_pointer_t function); hwcomposer::GpuDevice device_; std::vector<std::unique_ptr<HwcDisplay>> extended_displays_; HwcDisplay primary_display_; HwcDisplay virtual_display_; bool disable_explicit_sync_ = false; android::HwcService hwcService_; }; } // namespace android #endif // OS_ANDROID_IAHWC2_H_
[ "kalyan.kondapally@intel.com" ]
kalyan.kondapally@intel.com
3993be0d8fbfb609085bbd99d04c5e5800b0adc1
77b276083446bfdd6d9fe44b79880c7970099076
/Software/STM/APP/Assets/Images/10.cpp
28fc3e573fd38970ac493181b2934df79c2c6569
[ "MIT" ]
permissive
ProrokWielki/Wooden-Clock
9b629ceeab2c53fe714f45bdf69469f485946243
96226750ab4b679764b0b254d3c3c21deb658252
refs/heads/master
2021-06-13T05:24:41.212380
2021-04-18T10:19:41
2021-04-18T10:19:41
145,313,977
2
0
null
null
null
null
UTF-8
C++
false
false
6,191
cpp
#include <stdint.h> uint8_t frame_10[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, };
[ "ProrokWielki@o2.pl" ]
ProrokWielki@o2.pl
0b909d6556ef03ed1b1293f63598505406984122
3c9ffb445ea916d325fcc3fed816b71a4c68956e
/factory/include/bounding_box_factory/bounding_box_factory.hpp
746b1eb28aa8d3456214d8fa30e937e8bdd6acb1
[]
no_license
RobotRose/rose_utils
ca03849f4f3f751eeed02da8b0182a22e69ab3be
5fc0d97866af3657b4228e223d925a531f6b1dd3
refs/heads/master
2020-04-10T11:55:38.978984
2015-03-11T10:02:08
2015-03-11T10:02:08
30,697,605
0
0
null
null
null
null
UTF-8
C++
false
false
1,318
hpp
/*********************************************************************************** * Copyright: Rose B.V. (2014) * * Revision History: * Author: Mathijs de Langen * Date : 2014/02/27 * - File created. * * Description: * description * ***********************************************************************************/ #ifndef BOUNDING_BOX_FACTORY_HPP #define BOUNDING_BOX_FACTORY_HPP #include <ros/ros.h> #include <tf/transform_listener.h> // PCL specific includes #include <pcl_conversions/pcl_conversions.h> #include <pcl/conversions.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <sensor_msgs/PointCloud.h> #include <sensor_msgs/PointCloud2.h> #include <stdio.h> #include <stdlib.h> #include <visualization_msgs/Marker.h> #include "bounding_box/bounding_box.hpp" #include "rose_common/common.hpp" class BoundingBoxFactory { public: BoundingBoxFactory(); ~BoundingBoxFactory(); BoundingBox createBoundingBox( std::string text ); BoundingBox createBoundingBox( const sensor_msgs::PointCloud2& point_cloud, int x1, int y1, int x2, int y2 ); private: tf::TransformListener tf_; ros::Publisher point_cloud_pub_; ros::Publisher marker_pub_; ros::NodeHandle n; visualization_msgs::Marker marker_; }; #endif //BOUNDING_BOX_FACTORY_HPP
[ "langen@robot-rose.nl" ]
langen@robot-rose.nl
d0cb8a4b4fff3a81db43ba5675405138aa14b39d
c875d120d803d8f4890f3c871c6ebaea394f04d2
/01_bfs.cpp
2341812c9d566b2edccab8c6294f2e23d64852be
[]
no_license
rmeena840/Programming-Codes
1472fc0c463851c0e83be9fcca1b75b4ee114c63
f5ea1aa900c24ec289a5014b71b489529b642154
refs/heads/master
2020-05-24T19:16:24.923359
2017-03-14T14:10:16
2019-09-10T04:11:58
84,873,192
0
0
null
2019-09-10T04:12:00
2017-03-13T20:49:31
C++
UTF-8
C++
false
false
742
cpp
#include<bits/stdc++.h> using namespace std; #define ll long long int vector< pair<ll,ll> > G[5]; int dis[5]={INT_MAX}; void intialize(){ for(int i=0;i<5;i++){ dis[i]=INT_MAX; } } void bfs01(int s){ deque<int> Q; Q.push_back(s); dis[s]=0; while(!Q.empty()){ int x=Q.front(); Q.pop_front(); for(int i=0;i<G[x].size();i++){ if(dis[G[x][i].first]>dis[x]+G[x][i].second){ dis[G[x][i].first]=dis[x]+G[x][i].second; if(G[x][i].second==0) Q.push_front(G[x][i].first); else Q.push_back(G[x][i].first); } } } } int main(void){ intialize(); for(int i=0;i<4;i++){ int x,y,w; cin>>x>>y>>w; G[x].push_back(make_pair(y,w)); } bfs01(0); for(int i=0;i<5;i++){ cout<<dis[i]<<endl; } return 0; }
[ "rmeena840@gmail.com" ]
rmeena840@gmail.com
64a9f70c88442fac4ef70ed289d193d633ebbf51
5ce4ae3a7743fa4e32f43275fb8f0b0f17ee754d
/ARTank/Library/Il2cppBuildCache/iOS/il2cppOutput/Il2CppCCFieldValuesTable.cpp
c88f35f70a365b809f7d1ccf2972709d30980d7a
[]
no_license
ManuHP23/ARTankDemoUnityVPDE
2234288e35f25299903955766932d498d5e9306f
ee9d3d5cd5a57ac43f45a36dacfef1da3365787f
refs/heads/main
2023-05-14T15:52:17.778855
2021-06-09T12:21:20
2021-06-09T12:21:20
375,340,713
0
0
null
null
null
null
UTF-8
C++
false
false
122,112
cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable4[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable5[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable6[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable7[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable8[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable9[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable11[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable13[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable14[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable15[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable16[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable18[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable19[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable20[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable21[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable22[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable25[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable26[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable27[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable28[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable29[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable30[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable31[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable32[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable33[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable34[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable35[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable36[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable37[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable38[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable39[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable40[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable41[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable42[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable43[22]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable46[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable47[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable48[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable49[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable50[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable51[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable53[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable55[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable56[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable65[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable66[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable67[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable68[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable69[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable70[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable74[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable75[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable76[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable77[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable78[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable79[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable80[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable81[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable82[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable83[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable84[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable85[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable99[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable101[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable106[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable107[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable108[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable109[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable110[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable112[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable114[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable115[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable116[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable118[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable119[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable120[145]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable121[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable122[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable123[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable126[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable127[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable128[45]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable129[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable130[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable131[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable132[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable133[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable134[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable138[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable139[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable141[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable142[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable143[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable146[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable147[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable152[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable153[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable155[22]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable156[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable157[40]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable158[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable159[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable160[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable161[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable162[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable163[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable164[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable165[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable166[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable167[33]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable168[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable169[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable170[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable171[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable172[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable184[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable185[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable186[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable191[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable195[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable196[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable202[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable204[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable205[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable206[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable210[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable212[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable214[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable215[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable216[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable217[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable218[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable220[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable222[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable224[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable225[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable226[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable227[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable228[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable232[29]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable233[47]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable234[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable235[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable236[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable237[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable238[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable239[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable240[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable241[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable242[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable244[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable245[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable246[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable247[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable248[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable249[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable250[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable252[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable254[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable255[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable256[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable257[23]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable259[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable260[48]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable261[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable262[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable264[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable266[23]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable267[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable268[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable271[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable273[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable274[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable275[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable276[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable277[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable278[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable279[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable280[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable281[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable282[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable283[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable284[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable285[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable286[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable287[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable289[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable291[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable292[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable293[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable294[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable295[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable297[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable298[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable300[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable301[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable302[26]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable304[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable305[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable306[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable308[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable309[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable310[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable311[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable312[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable313[44]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable314[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable315[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable316[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable317[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable318[35]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable319[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable320[396]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable321[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable322[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable323[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable324[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable329[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable332[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable333[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable334[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable335[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable336[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable338[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable339[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable341[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable342[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable343[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable344[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable345[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable346[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable347[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable349[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable350[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable352[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable353[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable354[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable357[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable358[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable359[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable360[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable361[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable362[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable363[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable364[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable365[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable368[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable369[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable370[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable371[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable372[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable373[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable374[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable375[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable376[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable377[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable378[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable380[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable381[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable382[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable383[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable384[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable385[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable386[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable387[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable388[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable389[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable391[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable392[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable393[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable394[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable395[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable396[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable397[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable398[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable399[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable400[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable401[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable404[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable405[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable407[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable408[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable409[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable410[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable411[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable412[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable413[22]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable414[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable415[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable416[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable419[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable420[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable421[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable422[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable423[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable424[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable425[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable426[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable427[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable428[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable429[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable430[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable431[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable433[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable434[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable435[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable436[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable437[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable438[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable441[23]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable444[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable445[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable446[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable448[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable449[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable451[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable452[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable453[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable454[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable455[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable456[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable460[33]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable464[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable465[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable466[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable467[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable468[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable470[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable471[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable473[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable474[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable476[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable477[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable478[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable481[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable483[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable486[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable487[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable489[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable491[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable496[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable497[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable502[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable503[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable505[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable514[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable520[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable523[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable524[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable525[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable530[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable531[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable533[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable534[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable536[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable537[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable539[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable540[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable541[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable543[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable544[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable546[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable547[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable548[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable549[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable551[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable552[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable553[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable555[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable556[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable557[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable559[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable560[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable561[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable562[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable564[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable566[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable567[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable568[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable569[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable570[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable573[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable574[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable575[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable576[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable577[27]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable578[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable579[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable580[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable581[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable582[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable584[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable585[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable587[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable588[42]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable589[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable590[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable591[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable592[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable593[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable594[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable595[84]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable596[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable597[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable598[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable599[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable600[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable601[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable602[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable603[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable604[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable605[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable606[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable607[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable608[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable609[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable610[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable611[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable612[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable613[36]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable614[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable615[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable616[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable617[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable618[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable619[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable620[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable621[31]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable622[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable623[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable624[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable625[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable626[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable627[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable628[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable629[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable630[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable631[38]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable632[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable633[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable635[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable636[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable637[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable638[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable639[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable640[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable641[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable642[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable643[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable644[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable646[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable647[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable648[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable649[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable651[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable652[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable653[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable655[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable658[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable661[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable662[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable663[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable664[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable665[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable675[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable676[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable677[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable679[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable680[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable681[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable687[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable688[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable689[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable690[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable691[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable692[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable694[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable697[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable699[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable700[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable705[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable706[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable707[39]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable709[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable710[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable713[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable714[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable715[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable716[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable718[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable719[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable721[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable722[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable723[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable724[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable726[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable727[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable728[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable729[22]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable730[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable732[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable733[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable734[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable735[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable738[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable739[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable741[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable742[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable743[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable744[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable745[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable746[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable747[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable748[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable749[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable750[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable752[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable753[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable755[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable757[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable758[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable759[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable762[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable763[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable766[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable767[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable771[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable775[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable776[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable777[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable778[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable782[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable783[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable791[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable792[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable793[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable794[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable795[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable796[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable797[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable798[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable799[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable800[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable801[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable803[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable804[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable810[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable811[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable812[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable813[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable814[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable815[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable816[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable817[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable818[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable819[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable820[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable821[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable822[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable823[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable826[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable827[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable828[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable829[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable830[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable831[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable832[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable833[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable834[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable835[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable836[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable837[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable838[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable839[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable840[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable841[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable842[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable844[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable845[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable846[47]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable847[24]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable848[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable849[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable850[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable851[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable852[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable853[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable854[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable855[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable856[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable857[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable858[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable859[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable860[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable861[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable862[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable863[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable864[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable865[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable866[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable867[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable868[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable869[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable870[24]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable871[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable872[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable873[41]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable874[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable875[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable876[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable877[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable878[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable879[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable880[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable881[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable882[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable883[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable884[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable885[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable889[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable890[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable891[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable892[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable893[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable894[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable895[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable896[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable899[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable900[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable901[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable902[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable905[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable906[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable907[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable908[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable909[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable910[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable911[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable912[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable914[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable916[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable917[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable918[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable922[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable923[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable924[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable925[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable926[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable927[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable928[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable929[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable931[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable943[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable944[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable945[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable946[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable947[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable949[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable957[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable958[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable959[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable961[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable966[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable967[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable968[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable970[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable972[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable973[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable974[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable975[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable976[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable977[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable978[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable979[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable980[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable981[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable982[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable983[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable984[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable985[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable986[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable987[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable988[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable989[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable991[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable992[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1002[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1003[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1004[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1005[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1006[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1007[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1008[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1009[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1013[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1014[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1016[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1017[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1018[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1021[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1023[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1024[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1025[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1026[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1027[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1028[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1029[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1030[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1031[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1032[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1033[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1038[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1039[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1040[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1041[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1042[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1043[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1044[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1045[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1046[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1047[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1048[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1049[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1052[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1053[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1055[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1056[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1059[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1063[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1065[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1067[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1068[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1069[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1070[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1071[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1072[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1073[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1074[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1075[45]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1076[39]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1078[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1083[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1084[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1085[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1086[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1087[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1088[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1089[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1091[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1095[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1096[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1097[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1098[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1099[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1100[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1116[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1117[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1118[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1120[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1121[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1122[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1123[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1124[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1127[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1128[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1129[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1130[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1132[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1133[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1145[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1146[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1147[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1148[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1150[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1151[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1153[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1154[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1156[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1157[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1158[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1159[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1160[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1161[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1162[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1163[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1167[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1170[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1171[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1172[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1173[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1174[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1175[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1176[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1177[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1182[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1183[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1188[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1209[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1210[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1214[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1215[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1216[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1217[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1218[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1219[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1220[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1221[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1222[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1223[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1225[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1267[101]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1277[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1284[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1289[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1294[56]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1295[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1296[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1297[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1298[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1299[29]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1301[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1302[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1303[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1304[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1305[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1306[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1307[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1308[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1310[26]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1315[30]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1316[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1318[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1319[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1321[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1322[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1323[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1324[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1325[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1326[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1327[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1328[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1329[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1331[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1332[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1333[57]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1334[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1335[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1336[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1337[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1338[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1339[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1340[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1341[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1342[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1343[20]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1344[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1346[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1347[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1348[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1350[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1353[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1355[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1356[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1357[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1365[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1366[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1367[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1369[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1370[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1371[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1372[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1374[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1375[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1376[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1377[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1379[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1380[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1381[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1382[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1383[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1384[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1389[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1390[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1391[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1392[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1393[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1394[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1395[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1396[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1398[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1399[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1400[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1401[32]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1402[48]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1405[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1429[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1430[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1431[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1432[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1433[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1435[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1436[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1437[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1440[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1444[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1447[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1448[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1449[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1450[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1451[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1453[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1455[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1456[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1459[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1460[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1461[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1462[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1464[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1465[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1470[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1471[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1472[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1475[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1479[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1481[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1482[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1483[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1484[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1485[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1488[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1489[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1490[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1491[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1492[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1493[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1500[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1501[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1502[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1503[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1504[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1507[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1508[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1524[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1526[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1527[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1528[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1529[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1532[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1533[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1534[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1535[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1536[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1537[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1539[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1540[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1542[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1543[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1544[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1546[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1548[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1549[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1550[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1551[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1553[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1554[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1555[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1556[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1558[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1561[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1568[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1569[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1571[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1572[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1573[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1574[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1575[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1576[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1577[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1578[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1579[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1580[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1581[71]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1582[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1583[29]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1584[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1585[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1586[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1587[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1588[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1590[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1592[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1600[14]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1603[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1605[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1606[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1607[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1608[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1609[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1610[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1611[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1612[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1613[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1614[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1618[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1619[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1620[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1622[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1624[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1625[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1627[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1628[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1629[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1634[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1635[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1639[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1642[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1652[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1653[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1655[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1657[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1659[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1662[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1663[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1664[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1665[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1668[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1678[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1680[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1681[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1685[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1686[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1688[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1689[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1690[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1691[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1692[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1693[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1695[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1697[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1698[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1699[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1700[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1701[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1702[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1703[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1704[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1705[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1706[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1707[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1709[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1711[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1713[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1715[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1717[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1718[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1721[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1722[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1723[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1724[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1725[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1726[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1727[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1729[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1862[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1863[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1864[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1865[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1866[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1869[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1870[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1871[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1872[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1873[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1874[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1876[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1877[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1878[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1879[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1880[26]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1882[24]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1883[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1884[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1885[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1886[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1887[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1888[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1890[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1891[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1892[27]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1893[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1894[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1896[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1897[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1898[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1899[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1900[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1901[27]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1902[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1903[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1904[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1906[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1907[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1908[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1912[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1916[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1917[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1918[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1919[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1920[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1921[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1922[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1924[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1925[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1926[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1927[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1928[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1929[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1930[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1931[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1932[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1933[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1934[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1935[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1938[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1939[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1940[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1941[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1942[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1943[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1946[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1947[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1948[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1949[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1950[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1951[138]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1954[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1955[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1956[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1957[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1965[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1966[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1971[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1973[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1977[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1979[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1980[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1981[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1983[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1985[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1986[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1988[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1989[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1994[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1995[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1996[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1997[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1998[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable1999[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2000[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2001[13]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2002[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2003[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2004[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2005[59]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2006[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2007[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2008[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2009[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2010[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2011[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2012[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2013[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2015[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2017[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2018[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2020[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2021[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2022[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2023[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2029[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2032[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2033[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2034[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2038[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2039[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2040[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2041[16]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2042[18]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2043[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2044[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2047[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2048[15]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2049[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2051[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2053[31]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2055[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2058[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2059[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2060[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2061[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2062[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2063[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2064[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2067[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2068[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2069[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2070[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2071[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2072[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2075[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2076[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2077[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2078[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2079[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2081[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2084[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2085[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2086[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2089[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2090[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2091[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2092[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2094[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2098[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2099[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2100[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2101[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2102[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2103[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2105[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2107[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2109[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2110[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2112[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2113[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2114[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2116[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2118[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2120[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2123[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2124[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2125[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2128[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2129[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2130[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2131[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2132[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2133[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2136[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2137[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2139[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2140[11]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2141[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2142[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2145[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2146[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2148[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2149[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2151[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2153[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2154[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2155[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2156[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2157[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2158[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2160[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2162[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2164[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2166[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2167[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2171[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2176[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2177[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2178[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2180[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2181[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2182[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2183[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2184[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2185[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2186[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2187[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2188[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2189[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2190[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2191[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2192[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2195[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2196[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2197[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2199[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2200[17]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2201[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2202[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2203[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2205[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2206[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2209[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2210[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2211[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2212[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2213[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2214[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2215[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2216[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2217[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2223[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2224[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2226[21]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2227[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2228[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2229[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2230[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2231[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2232[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2233[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2234[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2235[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2236[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2237[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2238[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2239[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2240[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2241[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2242[10]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2244[19]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2245[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2246[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2247[12]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2249[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2250[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2251[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2252[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2253[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2254[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2255[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2256[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2257[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2258[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2259[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2260[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2261[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2262[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2263[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2264[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2266[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2267[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2268[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2269[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2270[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2271[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2273[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2274[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2275[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2276[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2277[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2278[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2279[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2280[9]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2281[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2282[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2284[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2285[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2286[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2287[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2288[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2289[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2290[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2291[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2292[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2293[25]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2298[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2301[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2303[7]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2307[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2308[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2312[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2313[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2314[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2315[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2321[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2323[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2324[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2325[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2326[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2327[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2328[6]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2329[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2330[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2333[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2334[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2336[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2337[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2338[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2340[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2341[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2342[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2343[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2345[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2346[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2347[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2351[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2353[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2354[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2355[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2356[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2357[3]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2359[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2360[5]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2361[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2364[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2365[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2366[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2368[8]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2369[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2371[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2373[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2374[2]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2376[1]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2378[4]; IL2CPP_EXTERN_C_CONST int32_t g_FieldOffsetTable2380[1]; IL2CPP_EXTERN_C_CONST int32_t* g_FieldOffsetTable[2382] = { NULL, NULL, NULL, NULL, g_FieldOffsetTable4, g_FieldOffsetTable5, g_FieldOffsetTable6, g_FieldOffsetTable7, g_FieldOffsetTable8, g_FieldOffsetTable9, NULL, g_FieldOffsetTable11, NULL, g_FieldOffsetTable13, g_FieldOffsetTable14, g_FieldOffsetTable15, g_FieldOffsetTable16, NULL, g_FieldOffsetTable18, g_FieldOffsetTable19, g_FieldOffsetTable20, g_FieldOffsetTable21, g_FieldOffsetTable22, NULL, NULL, g_FieldOffsetTable25, g_FieldOffsetTable26, g_FieldOffsetTable27, g_FieldOffsetTable28, g_FieldOffsetTable29, g_FieldOffsetTable30, g_FieldOffsetTable31, g_FieldOffsetTable32, g_FieldOffsetTable33, g_FieldOffsetTable34, g_FieldOffsetTable35, g_FieldOffsetTable36, g_FieldOffsetTable37, g_FieldOffsetTable38, g_FieldOffsetTable39, g_FieldOffsetTable40, g_FieldOffsetTable41, g_FieldOffsetTable42, g_FieldOffsetTable43, NULL, NULL, g_FieldOffsetTable46, g_FieldOffsetTable47, g_FieldOffsetTable48, g_FieldOffsetTable49, g_FieldOffsetTable50, g_FieldOffsetTable51, NULL, g_FieldOffsetTable53, NULL, g_FieldOffsetTable55, g_FieldOffsetTable56, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable65, g_FieldOffsetTable66, g_FieldOffsetTable67, g_FieldOffsetTable68, g_FieldOffsetTable69, g_FieldOffsetTable70, NULL, NULL, NULL, g_FieldOffsetTable74, g_FieldOffsetTable75, g_FieldOffsetTable76, g_FieldOffsetTable77, g_FieldOffsetTable78, g_FieldOffsetTable79, g_FieldOffsetTable80, g_FieldOffsetTable81, g_FieldOffsetTable82, g_FieldOffsetTable83, g_FieldOffsetTable84, g_FieldOffsetTable85, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable99, NULL, g_FieldOffsetTable101, NULL, NULL, NULL, NULL, g_FieldOffsetTable106, g_FieldOffsetTable107, g_FieldOffsetTable108, g_FieldOffsetTable109, g_FieldOffsetTable110, NULL, g_FieldOffsetTable112, NULL, g_FieldOffsetTable114, g_FieldOffsetTable115, g_FieldOffsetTable116, NULL, g_FieldOffsetTable118, g_FieldOffsetTable119, g_FieldOffsetTable120, g_FieldOffsetTable121, g_FieldOffsetTable122, g_FieldOffsetTable123, NULL, NULL, g_FieldOffsetTable126, g_FieldOffsetTable127, g_FieldOffsetTable128, g_FieldOffsetTable129, g_FieldOffsetTable130, g_FieldOffsetTable131, g_FieldOffsetTable132, g_FieldOffsetTable133, g_FieldOffsetTable134, NULL, NULL, NULL, g_FieldOffsetTable138, g_FieldOffsetTable139, NULL, g_FieldOffsetTable141, g_FieldOffsetTable142, g_FieldOffsetTable143, NULL, NULL, g_FieldOffsetTable146, g_FieldOffsetTable147, NULL, NULL, NULL, NULL, g_FieldOffsetTable152, g_FieldOffsetTable153, NULL, g_FieldOffsetTable155, g_FieldOffsetTable156, g_FieldOffsetTable157, g_FieldOffsetTable158, g_FieldOffsetTable159, g_FieldOffsetTable160, g_FieldOffsetTable161, g_FieldOffsetTable162, g_FieldOffsetTable163, g_FieldOffsetTable164, g_FieldOffsetTable165, g_FieldOffsetTable166, g_FieldOffsetTable167, g_FieldOffsetTable168, g_FieldOffsetTable169, g_FieldOffsetTable170, g_FieldOffsetTable171, g_FieldOffsetTable172, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable184, g_FieldOffsetTable185, g_FieldOffsetTable186, NULL, NULL, NULL, NULL, g_FieldOffsetTable191, NULL, NULL, NULL, g_FieldOffsetTable195, g_FieldOffsetTable196, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable202, NULL, g_FieldOffsetTable204, g_FieldOffsetTable205, g_FieldOffsetTable206, NULL, NULL, NULL, g_FieldOffsetTable210, NULL, g_FieldOffsetTable212, NULL, g_FieldOffsetTable214, g_FieldOffsetTable215, g_FieldOffsetTable216, g_FieldOffsetTable217, g_FieldOffsetTable218, NULL, g_FieldOffsetTable220, NULL, g_FieldOffsetTable222, NULL, g_FieldOffsetTable224, g_FieldOffsetTable225, g_FieldOffsetTable226, g_FieldOffsetTable227, g_FieldOffsetTable228, NULL, NULL, NULL, g_FieldOffsetTable232, g_FieldOffsetTable233, g_FieldOffsetTable234, g_FieldOffsetTable235, g_FieldOffsetTable236, g_FieldOffsetTable237, g_FieldOffsetTable238, g_FieldOffsetTable239, g_FieldOffsetTable240, g_FieldOffsetTable241, g_FieldOffsetTable242, NULL, g_FieldOffsetTable244, g_FieldOffsetTable245, g_FieldOffsetTable246, g_FieldOffsetTable247, g_FieldOffsetTable248, g_FieldOffsetTable249, g_FieldOffsetTable250, NULL, g_FieldOffsetTable252, NULL, g_FieldOffsetTable254, g_FieldOffsetTable255, g_FieldOffsetTable256, g_FieldOffsetTable257, NULL, g_FieldOffsetTable259, g_FieldOffsetTable260, g_FieldOffsetTable261, g_FieldOffsetTable262, NULL, g_FieldOffsetTable264, NULL, g_FieldOffsetTable266, g_FieldOffsetTable267, g_FieldOffsetTable268, NULL, NULL, g_FieldOffsetTable271, NULL, g_FieldOffsetTable273, g_FieldOffsetTable274, g_FieldOffsetTable275, g_FieldOffsetTable276, g_FieldOffsetTable277, g_FieldOffsetTable278, g_FieldOffsetTable279, g_FieldOffsetTable280, g_FieldOffsetTable281, g_FieldOffsetTable282, g_FieldOffsetTable283, g_FieldOffsetTable284, g_FieldOffsetTable285, g_FieldOffsetTable286, g_FieldOffsetTable287, NULL, g_FieldOffsetTable289, NULL, g_FieldOffsetTable291, g_FieldOffsetTable292, g_FieldOffsetTable293, g_FieldOffsetTable294, g_FieldOffsetTable295, NULL, g_FieldOffsetTable297, g_FieldOffsetTable298, NULL, g_FieldOffsetTable300, g_FieldOffsetTable301, g_FieldOffsetTable302, NULL, g_FieldOffsetTable304, g_FieldOffsetTable305, g_FieldOffsetTable306, NULL, g_FieldOffsetTable308, g_FieldOffsetTable309, g_FieldOffsetTable310, g_FieldOffsetTable311, g_FieldOffsetTable312, g_FieldOffsetTable313, g_FieldOffsetTable314, g_FieldOffsetTable315, g_FieldOffsetTable316, g_FieldOffsetTable317, g_FieldOffsetTable318, g_FieldOffsetTable319, g_FieldOffsetTable320, g_FieldOffsetTable321, g_FieldOffsetTable322, g_FieldOffsetTable323, g_FieldOffsetTable324, NULL, NULL, NULL, NULL, g_FieldOffsetTable329, NULL, NULL, g_FieldOffsetTable332, g_FieldOffsetTable333, g_FieldOffsetTable334, g_FieldOffsetTable335, g_FieldOffsetTable336, NULL, g_FieldOffsetTable338, g_FieldOffsetTable339, NULL, g_FieldOffsetTable341, g_FieldOffsetTable342, g_FieldOffsetTable343, g_FieldOffsetTable344, g_FieldOffsetTable345, g_FieldOffsetTable346, g_FieldOffsetTable347, NULL, g_FieldOffsetTable349, g_FieldOffsetTable350, NULL, g_FieldOffsetTable352, g_FieldOffsetTable353, g_FieldOffsetTable354, NULL, NULL, g_FieldOffsetTable357, g_FieldOffsetTable358, g_FieldOffsetTable359, g_FieldOffsetTable360, g_FieldOffsetTable361, g_FieldOffsetTable362, g_FieldOffsetTable363, g_FieldOffsetTable364, g_FieldOffsetTable365, NULL, NULL, g_FieldOffsetTable368, g_FieldOffsetTable369, g_FieldOffsetTable370, g_FieldOffsetTable371, g_FieldOffsetTable372, g_FieldOffsetTable373, g_FieldOffsetTable374, g_FieldOffsetTable375, g_FieldOffsetTable376, g_FieldOffsetTable377, g_FieldOffsetTable378, NULL, g_FieldOffsetTable380, g_FieldOffsetTable381, g_FieldOffsetTable382, g_FieldOffsetTable383, g_FieldOffsetTable384, g_FieldOffsetTable385, g_FieldOffsetTable386, g_FieldOffsetTable387, g_FieldOffsetTable388, g_FieldOffsetTable389, NULL, g_FieldOffsetTable391, g_FieldOffsetTable392, g_FieldOffsetTable393, g_FieldOffsetTable394, g_FieldOffsetTable395, g_FieldOffsetTable396, g_FieldOffsetTable397, g_FieldOffsetTable398, g_FieldOffsetTable399, g_FieldOffsetTable400, g_FieldOffsetTable401, NULL, NULL, g_FieldOffsetTable404, g_FieldOffsetTable405, NULL, g_FieldOffsetTable407, g_FieldOffsetTable408, g_FieldOffsetTable409, g_FieldOffsetTable410, g_FieldOffsetTable411, g_FieldOffsetTable412, g_FieldOffsetTable413, g_FieldOffsetTable414, g_FieldOffsetTable415, g_FieldOffsetTable416, NULL, NULL, g_FieldOffsetTable419, g_FieldOffsetTable420, g_FieldOffsetTable421, g_FieldOffsetTable422, g_FieldOffsetTable423, g_FieldOffsetTable424, g_FieldOffsetTable425, g_FieldOffsetTable426, g_FieldOffsetTable427, g_FieldOffsetTable428, g_FieldOffsetTable429, g_FieldOffsetTable430, g_FieldOffsetTable431, NULL, g_FieldOffsetTable433, g_FieldOffsetTable434, g_FieldOffsetTable435, g_FieldOffsetTable436, g_FieldOffsetTable437, g_FieldOffsetTable438, NULL, NULL, g_FieldOffsetTable441, NULL, NULL, g_FieldOffsetTable444, g_FieldOffsetTable445, g_FieldOffsetTable446, NULL, g_FieldOffsetTable448, g_FieldOffsetTable449, NULL, g_FieldOffsetTable451, g_FieldOffsetTable452, g_FieldOffsetTable453, g_FieldOffsetTable454, g_FieldOffsetTable455, g_FieldOffsetTable456, NULL, NULL, NULL, g_FieldOffsetTable460, NULL, NULL, NULL, g_FieldOffsetTable464, g_FieldOffsetTable465, g_FieldOffsetTable466, g_FieldOffsetTable467, g_FieldOffsetTable468, NULL, g_FieldOffsetTable470, g_FieldOffsetTable471, NULL, g_FieldOffsetTable473, g_FieldOffsetTable474, NULL, g_FieldOffsetTable476, g_FieldOffsetTable477, g_FieldOffsetTable478, NULL, NULL, g_FieldOffsetTable481, NULL, g_FieldOffsetTable483, NULL, NULL, g_FieldOffsetTable486, g_FieldOffsetTable487, NULL, g_FieldOffsetTable489, NULL, g_FieldOffsetTable491, NULL, NULL, NULL, NULL, g_FieldOffsetTable496, g_FieldOffsetTable497, NULL, NULL, NULL, NULL, g_FieldOffsetTable502, g_FieldOffsetTable503, NULL, g_FieldOffsetTable505, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable514, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable520, NULL, NULL, g_FieldOffsetTable523, g_FieldOffsetTable524, g_FieldOffsetTable525, NULL, NULL, NULL, NULL, g_FieldOffsetTable530, g_FieldOffsetTable531, NULL, g_FieldOffsetTable533, g_FieldOffsetTable534, NULL, g_FieldOffsetTable536, g_FieldOffsetTable537, NULL, g_FieldOffsetTable539, g_FieldOffsetTable540, g_FieldOffsetTable541, NULL, g_FieldOffsetTable543, g_FieldOffsetTable544, NULL, g_FieldOffsetTable546, g_FieldOffsetTable547, g_FieldOffsetTable548, g_FieldOffsetTable549, NULL, g_FieldOffsetTable551, g_FieldOffsetTable552, g_FieldOffsetTable553, NULL, g_FieldOffsetTable555, g_FieldOffsetTable556, g_FieldOffsetTable557, NULL, g_FieldOffsetTable559, g_FieldOffsetTable560, g_FieldOffsetTable561, g_FieldOffsetTable562, NULL, g_FieldOffsetTable564, NULL, g_FieldOffsetTable566, g_FieldOffsetTable567, g_FieldOffsetTable568, g_FieldOffsetTable569, g_FieldOffsetTable570, NULL, NULL, g_FieldOffsetTable573, g_FieldOffsetTable574, g_FieldOffsetTable575, g_FieldOffsetTable576, g_FieldOffsetTable577, g_FieldOffsetTable578, g_FieldOffsetTable579, g_FieldOffsetTable580, g_FieldOffsetTable581, g_FieldOffsetTable582, NULL, g_FieldOffsetTable584, g_FieldOffsetTable585, NULL, g_FieldOffsetTable587, g_FieldOffsetTable588, g_FieldOffsetTable589, g_FieldOffsetTable590, g_FieldOffsetTable591, g_FieldOffsetTable592, g_FieldOffsetTable593, g_FieldOffsetTable594, g_FieldOffsetTable595, g_FieldOffsetTable596, g_FieldOffsetTable597, g_FieldOffsetTable598, g_FieldOffsetTable599, g_FieldOffsetTable600, g_FieldOffsetTable601, g_FieldOffsetTable602, g_FieldOffsetTable603, g_FieldOffsetTable604, g_FieldOffsetTable605, g_FieldOffsetTable606, g_FieldOffsetTable607, g_FieldOffsetTable608, g_FieldOffsetTable609, g_FieldOffsetTable610, g_FieldOffsetTable611, g_FieldOffsetTable612, g_FieldOffsetTable613, g_FieldOffsetTable614, g_FieldOffsetTable615, g_FieldOffsetTable616, g_FieldOffsetTable617, g_FieldOffsetTable618, g_FieldOffsetTable619, g_FieldOffsetTable620, g_FieldOffsetTable621, g_FieldOffsetTable622, g_FieldOffsetTable623, g_FieldOffsetTable624, g_FieldOffsetTable625, g_FieldOffsetTable626, g_FieldOffsetTable627, g_FieldOffsetTable628, g_FieldOffsetTable629, g_FieldOffsetTable630, g_FieldOffsetTable631, g_FieldOffsetTable632, g_FieldOffsetTable633, NULL, g_FieldOffsetTable635, g_FieldOffsetTable636, g_FieldOffsetTable637, g_FieldOffsetTable638, g_FieldOffsetTable639, g_FieldOffsetTable640, g_FieldOffsetTable641, g_FieldOffsetTable642, g_FieldOffsetTable643, g_FieldOffsetTable644, NULL, g_FieldOffsetTable646, g_FieldOffsetTable647, g_FieldOffsetTable648, g_FieldOffsetTable649, NULL, g_FieldOffsetTable651, g_FieldOffsetTable652, g_FieldOffsetTable653, NULL, g_FieldOffsetTable655, NULL, NULL, g_FieldOffsetTable658, NULL, NULL, g_FieldOffsetTable661, g_FieldOffsetTable662, g_FieldOffsetTable663, g_FieldOffsetTable664, g_FieldOffsetTable665, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable675, g_FieldOffsetTable676, g_FieldOffsetTable677, NULL, g_FieldOffsetTable679, g_FieldOffsetTable680, g_FieldOffsetTable681, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable687, g_FieldOffsetTable688, g_FieldOffsetTable689, g_FieldOffsetTable690, g_FieldOffsetTable691, g_FieldOffsetTable692, NULL, g_FieldOffsetTable694, NULL, NULL, g_FieldOffsetTable697, NULL, g_FieldOffsetTable699, g_FieldOffsetTable700, NULL, NULL, NULL, NULL, g_FieldOffsetTable705, g_FieldOffsetTable706, g_FieldOffsetTable707, NULL, g_FieldOffsetTable709, g_FieldOffsetTable710, NULL, NULL, g_FieldOffsetTable713, g_FieldOffsetTable714, g_FieldOffsetTable715, g_FieldOffsetTable716, NULL, g_FieldOffsetTable718, g_FieldOffsetTable719, NULL, g_FieldOffsetTable721, g_FieldOffsetTable722, g_FieldOffsetTable723, g_FieldOffsetTable724, NULL, g_FieldOffsetTable726, g_FieldOffsetTable727, g_FieldOffsetTable728, g_FieldOffsetTable729, g_FieldOffsetTable730, NULL, g_FieldOffsetTable732, g_FieldOffsetTable733, g_FieldOffsetTable734, g_FieldOffsetTable735, NULL, NULL, g_FieldOffsetTable738, g_FieldOffsetTable739, NULL, g_FieldOffsetTable741, g_FieldOffsetTable742, g_FieldOffsetTable743, g_FieldOffsetTable744, g_FieldOffsetTable745, g_FieldOffsetTable746, g_FieldOffsetTable747, g_FieldOffsetTable748, g_FieldOffsetTable749, g_FieldOffsetTable750, NULL, g_FieldOffsetTable752, g_FieldOffsetTable753, NULL, g_FieldOffsetTable755, NULL, g_FieldOffsetTable757, g_FieldOffsetTable758, g_FieldOffsetTable759, NULL, NULL, g_FieldOffsetTable762, g_FieldOffsetTable763, NULL, NULL, g_FieldOffsetTable766, g_FieldOffsetTable767, NULL, NULL, NULL, g_FieldOffsetTable771, NULL, NULL, NULL, g_FieldOffsetTable775, g_FieldOffsetTable776, g_FieldOffsetTable777, g_FieldOffsetTable778, NULL, NULL, NULL, g_FieldOffsetTable782, g_FieldOffsetTable783, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable791, g_FieldOffsetTable792, g_FieldOffsetTable793, g_FieldOffsetTable794, g_FieldOffsetTable795, g_FieldOffsetTable796, g_FieldOffsetTable797, g_FieldOffsetTable798, g_FieldOffsetTable799, g_FieldOffsetTable800, g_FieldOffsetTable801, NULL, g_FieldOffsetTable803, g_FieldOffsetTable804, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable810, g_FieldOffsetTable811, g_FieldOffsetTable812, g_FieldOffsetTable813, g_FieldOffsetTable814, g_FieldOffsetTable815, g_FieldOffsetTable816, g_FieldOffsetTable817, g_FieldOffsetTable818, g_FieldOffsetTable819, g_FieldOffsetTable820, g_FieldOffsetTable821, g_FieldOffsetTable822, g_FieldOffsetTable823, NULL, NULL, g_FieldOffsetTable826, g_FieldOffsetTable827, g_FieldOffsetTable828, g_FieldOffsetTable829, g_FieldOffsetTable830, g_FieldOffsetTable831, g_FieldOffsetTable832, g_FieldOffsetTable833, g_FieldOffsetTable834, g_FieldOffsetTable835, g_FieldOffsetTable836, g_FieldOffsetTable837, g_FieldOffsetTable838, g_FieldOffsetTable839, g_FieldOffsetTable840, g_FieldOffsetTable841, g_FieldOffsetTable842, NULL, g_FieldOffsetTable844, g_FieldOffsetTable845, g_FieldOffsetTable846, g_FieldOffsetTable847, g_FieldOffsetTable848, g_FieldOffsetTable849, g_FieldOffsetTable850, g_FieldOffsetTable851, g_FieldOffsetTable852, g_FieldOffsetTable853, g_FieldOffsetTable854, g_FieldOffsetTable855, g_FieldOffsetTable856, g_FieldOffsetTable857, g_FieldOffsetTable858, g_FieldOffsetTable859, g_FieldOffsetTable860, g_FieldOffsetTable861, g_FieldOffsetTable862, g_FieldOffsetTable863, g_FieldOffsetTable864, g_FieldOffsetTable865, g_FieldOffsetTable866, g_FieldOffsetTable867, g_FieldOffsetTable868, g_FieldOffsetTable869, g_FieldOffsetTable870, g_FieldOffsetTable871, g_FieldOffsetTable872, g_FieldOffsetTable873, g_FieldOffsetTable874, g_FieldOffsetTable875, g_FieldOffsetTable876, g_FieldOffsetTable877, g_FieldOffsetTable878, g_FieldOffsetTable879, g_FieldOffsetTable880, g_FieldOffsetTable881, g_FieldOffsetTable882, g_FieldOffsetTable883, g_FieldOffsetTable884, g_FieldOffsetTable885, NULL, NULL, NULL, g_FieldOffsetTable889, g_FieldOffsetTable890, g_FieldOffsetTable891, g_FieldOffsetTable892, g_FieldOffsetTable893, g_FieldOffsetTable894, g_FieldOffsetTable895, g_FieldOffsetTable896, NULL, NULL, g_FieldOffsetTable899, g_FieldOffsetTable900, g_FieldOffsetTable901, g_FieldOffsetTable902, NULL, NULL, g_FieldOffsetTable905, g_FieldOffsetTable906, g_FieldOffsetTable907, g_FieldOffsetTable908, g_FieldOffsetTable909, g_FieldOffsetTable910, g_FieldOffsetTable911, g_FieldOffsetTable912, NULL, g_FieldOffsetTable914, NULL, g_FieldOffsetTable916, g_FieldOffsetTable917, g_FieldOffsetTable918, NULL, NULL, NULL, g_FieldOffsetTable922, g_FieldOffsetTable923, g_FieldOffsetTable924, g_FieldOffsetTable925, g_FieldOffsetTable926, g_FieldOffsetTable927, g_FieldOffsetTable928, g_FieldOffsetTable929, NULL, g_FieldOffsetTable931, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable943, g_FieldOffsetTable944, g_FieldOffsetTable945, g_FieldOffsetTable946, g_FieldOffsetTable947, NULL, g_FieldOffsetTable949, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable957, g_FieldOffsetTable958, g_FieldOffsetTable959, NULL, g_FieldOffsetTable961, NULL, NULL, NULL, NULL, g_FieldOffsetTable966, g_FieldOffsetTable967, g_FieldOffsetTable968, NULL, g_FieldOffsetTable970, NULL, g_FieldOffsetTable972, g_FieldOffsetTable973, g_FieldOffsetTable974, g_FieldOffsetTable975, g_FieldOffsetTable976, g_FieldOffsetTable977, g_FieldOffsetTable978, g_FieldOffsetTable979, g_FieldOffsetTable980, g_FieldOffsetTable981, g_FieldOffsetTable982, g_FieldOffsetTable983, g_FieldOffsetTable984, g_FieldOffsetTable985, g_FieldOffsetTable986, g_FieldOffsetTable987, g_FieldOffsetTable988, g_FieldOffsetTable989, NULL, g_FieldOffsetTable991, g_FieldOffsetTable992, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1002, g_FieldOffsetTable1003, g_FieldOffsetTable1004, g_FieldOffsetTable1005, g_FieldOffsetTable1006, g_FieldOffsetTable1007, g_FieldOffsetTable1008, g_FieldOffsetTable1009, NULL, NULL, NULL, g_FieldOffsetTable1013, g_FieldOffsetTable1014, NULL, g_FieldOffsetTable1016, g_FieldOffsetTable1017, g_FieldOffsetTable1018, NULL, NULL, g_FieldOffsetTable1021, NULL, g_FieldOffsetTable1023, g_FieldOffsetTable1024, g_FieldOffsetTable1025, g_FieldOffsetTable1026, g_FieldOffsetTable1027, g_FieldOffsetTable1028, g_FieldOffsetTable1029, g_FieldOffsetTable1030, g_FieldOffsetTable1031, g_FieldOffsetTable1032, g_FieldOffsetTable1033, NULL, NULL, NULL, NULL, g_FieldOffsetTable1038, g_FieldOffsetTable1039, g_FieldOffsetTable1040, g_FieldOffsetTable1041, g_FieldOffsetTable1042, g_FieldOffsetTable1043, g_FieldOffsetTable1044, g_FieldOffsetTable1045, g_FieldOffsetTable1046, g_FieldOffsetTable1047, g_FieldOffsetTable1048, g_FieldOffsetTable1049, NULL, NULL, g_FieldOffsetTable1052, g_FieldOffsetTable1053, NULL, g_FieldOffsetTable1055, g_FieldOffsetTable1056, NULL, NULL, g_FieldOffsetTable1059, NULL, NULL, NULL, g_FieldOffsetTable1063, NULL, g_FieldOffsetTable1065, NULL, g_FieldOffsetTable1067, g_FieldOffsetTable1068, g_FieldOffsetTable1069, g_FieldOffsetTable1070, g_FieldOffsetTable1071, g_FieldOffsetTable1072, g_FieldOffsetTable1073, g_FieldOffsetTable1074, g_FieldOffsetTable1075, g_FieldOffsetTable1076, NULL, g_FieldOffsetTable1078, NULL, NULL, NULL, NULL, g_FieldOffsetTable1083, g_FieldOffsetTable1084, g_FieldOffsetTable1085, g_FieldOffsetTable1086, g_FieldOffsetTable1087, g_FieldOffsetTable1088, g_FieldOffsetTable1089, NULL, g_FieldOffsetTable1091, NULL, NULL, NULL, g_FieldOffsetTable1095, g_FieldOffsetTable1096, g_FieldOffsetTable1097, g_FieldOffsetTable1098, g_FieldOffsetTable1099, g_FieldOffsetTable1100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1116, g_FieldOffsetTable1117, g_FieldOffsetTable1118, NULL, g_FieldOffsetTable1120, g_FieldOffsetTable1121, g_FieldOffsetTable1122, g_FieldOffsetTable1123, g_FieldOffsetTable1124, NULL, NULL, g_FieldOffsetTable1127, g_FieldOffsetTable1128, g_FieldOffsetTable1129, g_FieldOffsetTable1130, NULL, g_FieldOffsetTable1132, g_FieldOffsetTable1133, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1145, g_FieldOffsetTable1146, g_FieldOffsetTable1147, g_FieldOffsetTable1148, NULL, g_FieldOffsetTable1150, g_FieldOffsetTable1151, NULL, g_FieldOffsetTable1153, g_FieldOffsetTable1154, NULL, g_FieldOffsetTable1156, g_FieldOffsetTable1157, g_FieldOffsetTable1158, g_FieldOffsetTable1159, g_FieldOffsetTable1160, g_FieldOffsetTable1161, g_FieldOffsetTable1162, g_FieldOffsetTable1163, NULL, NULL, NULL, g_FieldOffsetTable1167, NULL, NULL, g_FieldOffsetTable1170, g_FieldOffsetTable1171, g_FieldOffsetTable1172, g_FieldOffsetTable1173, g_FieldOffsetTable1174, g_FieldOffsetTable1175, g_FieldOffsetTable1176, g_FieldOffsetTable1177, NULL, NULL, NULL, NULL, g_FieldOffsetTable1182, g_FieldOffsetTable1183, NULL, NULL, NULL, NULL, g_FieldOffsetTable1188, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1209, g_FieldOffsetTable1210, NULL, NULL, NULL, g_FieldOffsetTable1214, g_FieldOffsetTable1215, g_FieldOffsetTable1216, g_FieldOffsetTable1217, g_FieldOffsetTable1218, g_FieldOffsetTable1219, g_FieldOffsetTable1220, g_FieldOffsetTable1221, g_FieldOffsetTable1222, g_FieldOffsetTable1223, NULL, g_FieldOffsetTable1225, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1267, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1277, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1284, NULL, NULL, NULL, NULL, g_FieldOffsetTable1289, NULL, NULL, NULL, NULL, g_FieldOffsetTable1294, g_FieldOffsetTable1295, g_FieldOffsetTable1296, g_FieldOffsetTable1297, g_FieldOffsetTable1298, g_FieldOffsetTable1299, NULL, g_FieldOffsetTable1301, g_FieldOffsetTable1302, g_FieldOffsetTable1303, g_FieldOffsetTable1304, g_FieldOffsetTable1305, g_FieldOffsetTable1306, g_FieldOffsetTable1307, g_FieldOffsetTable1308, NULL, g_FieldOffsetTable1310, NULL, NULL, NULL, NULL, g_FieldOffsetTable1315, g_FieldOffsetTable1316, NULL, g_FieldOffsetTable1318, g_FieldOffsetTable1319, NULL, g_FieldOffsetTable1321, g_FieldOffsetTable1322, g_FieldOffsetTable1323, g_FieldOffsetTable1324, g_FieldOffsetTable1325, g_FieldOffsetTable1326, g_FieldOffsetTable1327, g_FieldOffsetTable1328, g_FieldOffsetTable1329, NULL, g_FieldOffsetTable1331, g_FieldOffsetTable1332, g_FieldOffsetTable1333, g_FieldOffsetTable1334, g_FieldOffsetTable1335, g_FieldOffsetTable1336, g_FieldOffsetTable1337, g_FieldOffsetTable1338, g_FieldOffsetTable1339, g_FieldOffsetTable1340, g_FieldOffsetTable1341, g_FieldOffsetTable1342, g_FieldOffsetTable1343, g_FieldOffsetTable1344, NULL, g_FieldOffsetTable1346, g_FieldOffsetTable1347, g_FieldOffsetTable1348, NULL, g_FieldOffsetTable1350, NULL, NULL, g_FieldOffsetTable1353, NULL, g_FieldOffsetTable1355, g_FieldOffsetTable1356, g_FieldOffsetTable1357, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1365, g_FieldOffsetTable1366, g_FieldOffsetTable1367, NULL, g_FieldOffsetTable1369, g_FieldOffsetTable1370, g_FieldOffsetTable1371, g_FieldOffsetTable1372, NULL, g_FieldOffsetTable1374, g_FieldOffsetTable1375, g_FieldOffsetTable1376, g_FieldOffsetTable1377, NULL, g_FieldOffsetTable1379, g_FieldOffsetTable1380, g_FieldOffsetTable1381, g_FieldOffsetTable1382, g_FieldOffsetTable1383, g_FieldOffsetTable1384, NULL, NULL, NULL, NULL, g_FieldOffsetTable1389, g_FieldOffsetTable1390, g_FieldOffsetTable1391, g_FieldOffsetTable1392, g_FieldOffsetTable1393, g_FieldOffsetTable1394, g_FieldOffsetTable1395, g_FieldOffsetTable1396, NULL, g_FieldOffsetTable1398, g_FieldOffsetTable1399, g_FieldOffsetTable1400, g_FieldOffsetTable1401, g_FieldOffsetTable1402, NULL, NULL, g_FieldOffsetTable1405, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1429, g_FieldOffsetTable1430, g_FieldOffsetTable1431, g_FieldOffsetTable1432, g_FieldOffsetTable1433, NULL, g_FieldOffsetTable1435, g_FieldOffsetTable1436, g_FieldOffsetTable1437, NULL, NULL, g_FieldOffsetTable1440, NULL, NULL, NULL, g_FieldOffsetTable1444, NULL, NULL, g_FieldOffsetTable1447, g_FieldOffsetTable1448, g_FieldOffsetTable1449, g_FieldOffsetTable1450, g_FieldOffsetTable1451, NULL, g_FieldOffsetTable1453, NULL, g_FieldOffsetTable1455, g_FieldOffsetTable1456, NULL, NULL, g_FieldOffsetTable1459, g_FieldOffsetTable1460, g_FieldOffsetTable1461, g_FieldOffsetTable1462, NULL, g_FieldOffsetTable1464, g_FieldOffsetTable1465, NULL, NULL, NULL, NULL, g_FieldOffsetTable1470, g_FieldOffsetTable1471, g_FieldOffsetTable1472, NULL, NULL, g_FieldOffsetTable1475, NULL, NULL, NULL, g_FieldOffsetTable1479, NULL, g_FieldOffsetTable1481, g_FieldOffsetTable1482, g_FieldOffsetTable1483, g_FieldOffsetTable1484, g_FieldOffsetTable1485, NULL, NULL, g_FieldOffsetTable1488, g_FieldOffsetTable1489, g_FieldOffsetTable1490, g_FieldOffsetTable1491, g_FieldOffsetTable1492, g_FieldOffsetTable1493, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1500, g_FieldOffsetTable1501, g_FieldOffsetTable1502, g_FieldOffsetTable1503, g_FieldOffsetTable1504, NULL, NULL, g_FieldOffsetTable1507, g_FieldOffsetTable1508, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1524, NULL, g_FieldOffsetTable1526, g_FieldOffsetTable1527, g_FieldOffsetTable1528, g_FieldOffsetTable1529, NULL, NULL, g_FieldOffsetTable1532, g_FieldOffsetTable1533, g_FieldOffsetTable1534, g_FieldOffsetTable1535, g_FieldOffsetTable1536, g_FieldOffsetTable1537, NULL, g_FieldOffsetTable1539, g_FieldOffsetTable1540, NULL, g_FieldOffsetTable1542, g_FieldOffsetTable1543, g_FieldOffsetTable1544, NULL, g_FieldOffsetTable1546, NULL, g_FieldOffsetTable1548, g_FieldOffsetTable1549, g_FieldOffsetTable1550, g_FieldOffsetTable1551, NULL, g_FieldOffsetTable1553, g_FieldOffsetTable1554, g_FieldOffsetTable1555, g_FieldOffsetTable1556, NULL, g_FieldOffsetTable1558, NULL, NULL, g_FieldOffsetTable1561, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1568, g_FieldOffsetTable1569, NULL, g_FieldOffsetTable1571, g_FieldOffsetTable1572, g_FieldOffsetTable1573, g_FieldOffsetTable1574, g_FieldOffsetTable1575, g_FieldOffsetTable1576, g_FieldOffsetTable1577, g_FieldOffsetTable1578, g_FieldOffsetTable1579, g_FieldOffsetTable1580, g_FieldOffsetTable1581, g_FieldOffsetTable1582, g_FieldOffsetTable1583, g_FieldOffsetTable1584, g_FieldOffsetTable1585, g_FieldOffsetTable1586, g_FieldOffsetTable1587, g_FieldOffsetTable1588, NULL, g_FieldOffsetTable1590, NULL, g_FieldOffsetTable1592, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1600, NULL, NULL, g_FieldOffsetTable1603, NULL, g_FieldOffsetTable1605, g_FieldOffsetTable1606, g_FieldOffsetTable1607, g_FieldOffsetTable1608, g_FieldOffsetTable1609, g_FieldOffsetTable1610, g_FieldOffsetTable1611, g_FieldOffsetTable1612, g_FieldOffsetTable1613, g_FieldOffsetTable1614, NULL, NULL, NULL, g_FieldOffsetTable1618, g_FieldOffsetTable1619, g_FieldOffsetTable1620, NULL, g_FieldOffsetTable1622, NULL, g_FieldOffsetTable1624, g_FieldOffsetTable1625, NULL, g_FieldOffsetTable1627, g_FieldOffsetTable1628, g_FieldOffsetTable1629, NULL, NULL, NULL, NULL, g_FieldOffsetTable1634, g_FieldOffsetTable1635, NULL, NULL, NULL, g_FieldOffsetTable1639, NULL, NULL, g_FieldOffsetTable1642, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1652, g_FieldOffsetTable1653, NULL, g_FieldOffsetTable1655, NULL, g_FieldOffsetTable1657, NULL, g_FieldOffsetTable1659, NULL, NULL, g_FieldOffsetTable1662, g_FieldOffsetTable1663, g_FieldOffsetTable1664, g_FieldOffsetTable1665, NULL, NULL, g_FieldOffsetTable1668, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1678, NULL, g_FieldOffsetTable1680, g_FieldOffsetTable1681, NULL, NULL, NULL, g_FieldOffsetTable1685, g_FieldOffsetTable1686, NULL, g_FieldOffsetTable1688, g_FieldOffsetTable1689, g_FieldOffsetTable1690, g_FieldOffsetTable1691, g_FieldOffsetTable1692, g_FieldOffsetTable1693, NULL, g_FieldOffsetTable1695, NULL, g_FieldOffsetTable1697, g_FieldOffsetTable1698, g_FieldOffsetTable1699, g_FieldOffsetTable1700, g_FieldOffsetTable1701, g_FieldOffsetTable1702, g_FieldOffsetTable1703, g_FieldOffsetTable1704, g_FieldOffsetTable1705, g_FieldOffsetTable1706, g_FieldOffsetTable1707, NULL, g_FieldOffsetTable1709, NULL, g_FieldOffsetTable1711, NULL, g_FieldOffsetTable1713, NULL, g_FieldOffsetTable1715, NULL, g_FieldOffsetTable1717, g_FieldOffsetTable1718, NULL, NULL, g_FieldOffsetTable1721, g_FieldOffsetTable1722, g_FieldOffsetTable1723, g_FieldOffsetTable1724, g_FieldOffsetTable1725, g_FieldOffsetTable1726, g_FieldOffsetTable1727, NULL, g_FieldOffsetTable1729, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1862, g_FieldOffsetTable1863, g_FieldOffsetTable1864, g_FieldOffsetTable1865, g_FieldOffsetTable1866, NULL, NULL, g_FieldOffsetTable1869, g_FieldOffsetTable1870, g_FieldOffsetTable1871, g_FieldOffsetTable1872, g_FieldOffsetTable1873, g_FieldOffsetTable1874, NULL, g_FieldOffsetTable1876, g_FieldOffsetTable1877, g_FieldOffsetTable1878, g_FieldOffsetTable1879, g_FieldOffsetTable1880, NULL, g_FieldOffsetTable1882, g_FieldOffsetTable1883, g_FieldOffsetTable1884, g_FieldOffsetTable1885, g_FieldOffsetTable1886, g_FieldOffsetTable1887, g_FieldOffsetTable1888, NULL, g_FieldOffsetTable1890, g_FieldOffsetTable1891, g_FieldOffsetTable1892, g_FieldOffsetTable1893, g_FieldOffsetTable1894, NULL, g_FieldOffsetTable1896, g_FieldOffsetTable1897, g_FieldOffsetTable1898, g_FieldOffsetTable1899, g_FieldOffsetTable1900, g_FieldOffsetTable1901, g_FieldOffsetTable1902, g_FieldOffsetTable1903, g_FieldOffsetTable1904, NULL, g_FieldOffsetTable1906, g_FieldOffsetTable1907, g_FieldOffsetTable1908, NULL, NULL, NULL, g_FieldOffsetTable1912, NULL, NULL, NULL, g_FieldOffsetTable1916, g_FieldOffsetTable1917, g_FieldOffsetTable1918, g_FieldOffsetTable1919, g_FieldOffsetTable1920, g_FieldOffsetTable1921, g_FieldOffsetTable1922, NULL, g_FieldOffsetTable1924, g_FieldOffsetTable1925, g_FieldOffsetTable1926, g_FieldOffsetTable1927, g_FieldOffsetTable1928, g_FieldOffsetTable1929, g_FieldOffsetTable1930, g_FieldOffsetTable1931, g_FieldOffsetTable1932, g_FieldOffsetTable1933, g_FieldOffsetTable1934, g_FieldOffsetTable1935, NULL, NULL, g_FieldOffsetTable1938, g_FieldOffsetTable1939, g_FieldOffsetTable1940, g_FieldOffsetTable1941, g_FieldOffsetTable1942, g_FieldOffsetTable1943, NULL, NULL, g_FieldOffsetTable1946, g_FieldOffsetTable1947, g_FieldOffsetTable1948, g_FieldOffsetTable1949, g_FieldOffsetTable1950, g_FieldOffsetTable1951, NULL, NULL, g_FieldOffsetTable1954, g_FieldOffsetTable1955, g_FieldOffsetTable1956, g_FieldOffsetTable1957, NULL, NULL, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable1965, g_FieldOffsetTable1966, NULL, NULL, NULL, NULL, g_FieldOffsetTable1971, NULL, g_FieldOffsetTable1973, NULL, NULL, NULL, g_FieldOffsetTable1977, NULL, g_FieldOffsetTable1979, g_FieldOffsetTable1980, g_FieldOffsetTable1981, NULL, g_FieldOffsetTable1983, NULL, g_FieldOffsetTable1985, g_FieldOffsetTable1986, NULL, g_FieldOffsetTable1988, g_FieldOffsetTable1989, NULL, NULL, NULL, NULL, g_FieldOffsetTable1994, g_FieldOffsetTable1995, g_FieldOffsetTable1996, g_FieldOffsetTable1997, g_FieldOffsetTable1998, g_FieldOffsetTable1999, g_FieldOffsetTable2000, g_FieldOffsetTable2001, g_FieldOffsetTable2002, g_FieldOffsetTable2003, g_FieldOffsetTable2004, g_FieldOffsetTable2005, g_FieldOffsetTable2006, g_FieldOffsetTable2007, g_FieldOffsetTable2008, g_FieldOffsetTable2009, g_FieldOffsetTable2010, g_FieldOffsetTable2011, g_FieldOffsetTable2012, g_FieldOffsetTable2013, NULL, g_FieldOffsetTable2015, NULL, g_FieldOffsetTable2017, g_FieldOffsetTable2018, NULL, g_FieldOffsetTable2020, g_FieldOffsetTable2021, g_FieldOffsetTable2022, g_FieldOffsetTable2023, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable2029, NULL, NULL, g_FieldOffsetTable2032, g_FieldOffsetTable2033, g_FieldOffsetTable2034, NULL, NULL, NULL, g_FieldOffsetTable2038, g_FieldOffsetTable2039, g_FieldOffsetTable2040, g_FieldOffsetTable2041, g_FieldOffsetTable2042, g_FieldOffsetTable2043, g_FieldOffsetTable2044, NULL, NULL, g_FieldOffsetTable2047, g_FieldOffsetTable2048, g_FieldOffsetTable2049, NULL, g_FieldOffsetTable2051, NULL, g_FieldOffsetTable2053, NULL, g_FieldOffsetTable2055, NULL, NULL, g_FieldOffsetTable2058, g_FieldOffsetTable2059, g_FieldOffsetTable2060, g_FieldOffsetTable2061, g_FieldOffsetTable2062, g_FieldOffsetTable2063, g_FieldOffsetTable2064, NULL, NULL, g_FieldOffsetTable2067, g_FieldOffsetTable2068, g_FieldOffsetTable2069, g_FieldOffsetTable2070, g_FieldOffsetTable2071, g_FieldOffsetTable2072, NULL, NULL, g_FieldOffsetTable2075, g_FieldOffsetTable2076, g_FieldOffsetTable2077, g_FieldOffsetTable2078, g_FieldOffsetTable2079, NULL, g_FieldOffsetTable2081, NULL, NULL, g_FieldOffsetTable2084, g_FieldOffsetTable2085, g_FieldOffsetTable2086, NULL, NULL, g_FieldOffsetTable2089, g_FieldOffsetTable2090, g_FieldOffsetTable2091, g_FieldOffsetTable2092, NULL, g_FieldOffsetTable2094, NULL, NULL, NULL, g_FieldOffsetTable2098, g_FieldOffsetTable2099, g_FieldOffsetTable2100, g_FieldOffsetTable2101, g_FieldOffsetTable2102, g_FieldOffsetTable2103, NULL, g_FieldOffsetTable2105, NULL, g_FieldOffsetTable2107, NULL, g_FieldOffsetTable2109, g_FieldOffsetTable2110, NULL, g_FieldOffsetTable2112, g_FieldOffsetTable2113, g_FieldOffsetTable2114, NULL, g_FieldOffsetTable2116, NULL, g_FieldOffsetTable2118, NULL, g_FieldOffsetTable2120, NULL, NULL, g_FieldOffsetTable2123, g_FieldOffsetTable2124, g_FieldOffsetTable2125, NULL, NULL, g_FieldOffsetTable2128, g_FieldOffsetTable2129, g_FieldOffsetTable2130, g_FieldOffsetTable2131, g_FieldOffsetTable2132, g_FieldOffsetTable2133, NULL, NULL, g_FieldOffsetTable2136, g_FieldOffsetTable2137, NULL, g_FieldOffsetTable2139, g_FieldOffsetTable2140, g_FieldOffsetTable2141, g_FieldOffsetTable2142, NULL, NULL, g_FieldOffsetTable2145, g_FieldOffsetTable2146, NULL, g_FieldOffsetTable2148, g_FieldOffsetTable2149, NULL, g_FieldOffsetTable2151, NULL, g_FieldOffsetTable2153, g_FieldOffsetTable2154, g_FieldOffsetTable2155, g_FieldOffsetTable2156, g_FieldOffsetTable2157, g_FieldOffsetTable2158, NULL, g_FieldOffsetTable2160, NULL, g_FieldOffsetTable2162, NULL, g_FieldOffsetTable2164, NULL, g_FieldOffsetTable2166, g_FieldOffsetTable2167, NULL, NULL, NULL, g_FieldOffsetTable2171, NULL, NULL, NULL, NULL, g_FieldOffsetTable2176, g_FieldOffsetTable2177, g_FieldOffsetTable2178, NULL, g_FieldOffsetTable2180, g_FieldOffsetTable2181, g_FieldOffsetTable2182, g_FieldOffsetTable2183, g_FieldOffsetTable2184, g_FieldOffsetTable2185, g_FieldOffsetTable2186, g_FieldOffsetTable2187, g_FieldOffsetTable2188, g_FieldOffsetTable2189, g_FieldOffsetTable2190, g_FieldOffsetTable2191, g_FieldOffsetTable2192, NULL, NULL, g_FieldOffsetTable2195, g_FieldOffsetTable2196, g_FieldOffsetTable2197, NULL, g_FieldOffsetTable2199, g_FieldOffsetTable2200, g_FieldOffsetTable2201, g_FieldOffsetTable2202, g_FieldOffsetTable2203, NULL, g_FieldOffsetTable2205, g_FieldOffsetTable2206, NULL, NULL, g_FieldOffsetTable2209, g_FieldOffsetTable2210, g_FieldOffsetTable2211, g_FieldOffsetTable2212, g_FieldOffsetTable2213, g_FieldOffsetTable2214, g_FieldOffsetTable2215, g_FieldOffsetTable2216, g_FieldOffsetTable2217, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable2223, g_FieldOffsetTable2224, NULL, g_FieldOffsetTable2226, g_FieldOffsetTable2227, g_FieldOffsetTable2228, g_FieldOffsetTable2229, g_FieldOffsetTable2230, g_FieldOffsetTable2231, g_FieldOffsetTable2232, g_FieldOffsetTable2233, g_FieldOffsetTable2234, g_FieldOffsetTable2235, g_FieldOffsetTable2236, g_FieldOffsetTable2237, g_FieldOffsetTable2238, g_FieldOffsetTable2239, g_FieldOffsetTable2240, g_FieldOffsetTable2241, g_FieldOffsetTable2242, NULL, g_FieldOffsetTable2244, g_FieldOffsetTable2245, g_FieldOffsetTable2246, g_FieldOffsetTable2247, NULL, g_FieldOffsetTable2249, g_FieldOffsetTable2250, g_FieldOffsetTable2251, g_FieldOffsetTable2252, g_FieldOffsetTable2253, g_FieldOffsetTable2254, g_FieldOffsetTable2255, g_FieldOffsetTable2256, g_FieldOffsetTable2257, g_FieldOffsetTable2258, g_FieldOffsetTable2259, g_FieldOffsetTable2260, g_FieldOffsetTable2261, g_FieldOffsetTable2262, g_FieldOffsetTable2263, g_FieldOffsetTable2264, NULL, g_FieldOffsetTable2266, g_FieldOffsetTable2267, g_FieldOffsetTable2268, g_FieldOffsetTable2269, g_FieldOffsetTable2270, g_FieldOffsetTable2271, NULL, g_FieldOffsetTable2273, g_FieldOffsetTable2274, g_FieldOffsetTable2275, g_FieldOffsetTable2276, g_FieldOffsetTable2277, g_FieldOffsetTable2278, g_FieldOffsetTable2279, g_FieldOffsetTable2280, g_FieldOffsetTable2281, g_FieldOffsetTable2282, NULL, g_FieldOffsetTable2284, g_FieldOffsetTable2285, g_FieldOffsetTable2286, g_FieldOffsetTable2287, g_FieldOffsetTable2288, g_FieldOffsetTable2289, g_FieldOffsetTable2290, g_FieldOffsetTable2291, g_FieldOffsetTable2292, g_FieldOffsetTable2293, NULL, NULL, NULL, NULL, g_FieldOffsetTable2298, NULL, NULL, g_FieldOffsetTable2301, NULL, g_FieldOffsetTable2303, NULL, NULL, NULL, g_FieldOffsetTable2307, g_FieldOffsetTable2308, NULL, NULL, NULL, g_FieldOffsetTable2312, g_FieldOffsetTable2313, g_FieldOffsetTable2314, g_FieldOffsetTable2315, NULL, NULL, NULL, NULL, NULL, g_FieldOffsetTable2321, NULL, g_FieldOffsetTable2323, g_FieldOffsetTable2324, g_FieldOffsetTable2325, g_FieldOffsetTable2326, g_FieldOffsetTable2327, g_FieldOffsetTable2328, g_FieldOffsetTable2329, g_FieldOffsetTable2330, NULL, NULL, g_FieldOffsetTable2333, g_FieldOffsetTable2334, NULL, g_FieldOffsetTable2336, g_FieldOffsetTable2337, g_FieldOffsetTable2338, NULL, g_FieldOffsetTable2340, g_FieldOffsetTable2341, g_FieldOffsetTable2342, g_FieldOffsetTable2343, NULL, g_FieldOffsetTable2345, g_FieldOffsetTable2346, g_FieldOffsetTable2347, NULL, NULL, NULL, g_FieldOffsetTable2351, NULL, g_FieldOffsetTable2353, g_FieldOffsetTable2354, g_FieldOffsetTable2355, g_FieldOffsetTable2356, g_FieldOffsetTable2357, NULL, g_FieldOffsetTable2359, g_FieldOffsetTable2360, g_FieldOffsetTable2361, NULL, NULL, g_FieldOffsetTable2364, g_FieldOffsetTable2365, g_FieldOffsetTable2366, NULL, g_FieldOffsetTable2368, g_FieldOffsetTable2369, NULL, g_FieldOffsetTable2371, NULL, g_FieldOffsetTable2373, g_FieldOffsetTable2374, NULL, g_FieldOffsetTable2376, NULL, g_FieldOffsetTable2378, NULL, g_FieldOffsetTable2380, NULL, };
[ "37270235+ManuHP23@users.noreply.github.com" ]
37270235+ManuHP23@users.noreply.github.com
ce66900754237d62a67e744b4d0403a2d2327cb0
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/chrome/browser/ui/ash/shelf/crostini_app_window.h
849f009d88aa6a1bf9208773671e0c9e7fdf843a
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
C++
false
false
1,417
h
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_ASH_SHELF_CROSTINI_APP_WINDOW_H_ #define CHROME_BROWSER_UI_ASH_SHELF_CROSTINI_APP_WINDOW_H_ #include <memory> #include "ash/public/cpp/shelf_types.h" #include "chrome/browser/ui/ash/shelf/app_window_base.h" namespace views { class Widget; } class Profile; // A ui::BaseWindow for a chromeos launcher to control Crostini applications. // Also handles loading the window icon and app icon for the application. class CrostiniAppWindow : public AppWindowBase { public: CrostiniAppWindow(Profile* profile, const ash::ShelfID& shelf_id, views::Widget* widget); ~CrostiniAppWindow() override; CrostiniAppWindow(const CrostiniAppWindow&) = delete; CrostiniAppWindow& operator=(const CrostiniAppWindow&) = delete; private: class IconLoader; // Loads the app icon to the window's app icon key. The app icon is larger // than the window icon, and is used for things like Alt-Tab. std::unique_ptr<IconLoader> app_icon_loader_; // Loads the window icon to the window icon key. The window icon is smaller // than the app icon, and is used for things like shelf app menus. std::unique_ptr<IconLoader> window_icon_loader_; }; #endif // CHROME_BROWSER_UI_ASH_SHELF_CROSTINI_APP_WINDOW_H_
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
a965835f2f13a4f9ef745506cee1a85a804cab32
2cd3cbe1a116d3050d6ad730576bf3251426f77f
/Prog1/warehouse.cpp
891e746b93662310d446cc55138e95bb8e9f7ed9
[]
no_license
jgreever/CS202
86cfb59b22d5f46fe65582b61efc7a620e99273f
8d69b0f9ff746bbf52a1982d4661a5699ad415d3
refs/heads/main
2023-03-20T21:54:17.118492
2021-03-18T23:55:24
2021-03-18T23:55:24
328,044,009
0
0
null
null
null
null
UTF-8
C++
false
false
2,193
cpp
#include "node.hpp" /** warehouse.cpp * * Justin Greever * CS202 - Program 1 * 01/09/2021 * * In this file, we have the functions related to the Warehouse and Inventory * classes. The warehouse is an ARR that contains a category node. This keeps * track of the products from various categories that reside at both of the * distribution types (local and national). This should simplify tracking where * items are at and reduce un-needed traversal and wasted operations. * */ //MAX size for our category array const static int SIZE = 10; //Inventory Class Functions //default constructor inventory::inventory() : a_product(nullptr), next(nullptr){}; //Default copy constructor inventory::inventory(const inventory &to_copy) : a_product(to_copy.a_product), next(nullptr){}; //default destructor inventory::~inventory() { if (this->a_product) delete this->a_product; if (this->next) delete this->next; this->a_product = nullptr; this->next = nullptr; }; //Get_Next: allows us to get the next node in the LLL inventory *&inventory::get_next() { return *&this->next; }; //Set_Next: allows us to set the next node in the LLL void inventory::set_next(inventory *to_set) { this->next = to_set; }; //Warehouse Class Functions //default constructor warehouse::warehouse(int SIZE) { this->wh_inventory = nullptr; for (int idx = 0; idx < SIZE; ++idx) this->wh_inventory[idx] = nullptr; }; //default destructor warehouse::~warehouse() { for (int idx = 0; idx < SIZE; ++idx) { delete this->wh_inventory[idx]; this->wh_inventory[idx] = nullptr; } delete this->wh_inventory; this->wh_inventory = nullptr; }; //Check inventory to ensure a product is in stock, if not //it will reorder more products. bool warehouse::check_inventory(char *name) { }; bool warehouse::edit_inventory(char *name, category *&an_inventory) { }; bool warehouse::set_shipping() { if (product_location == 0) shipping_type = 0; if (product_location == 1) shipping_type = 1; }; void warehouse::delete_arr(category *&an_arr) { if (an_arr) delete []an_arr; an_arr = nullptr; };
[ "jgreever@gmail.com" ]
jgreever@gmail.com
407ab9051b9e1fbccb284758f925fd56ca003e0a
80a3429befead9578d3ed2e54c5cc41188ef447f
/1201.cpp
9d604e2dbd8529e3a58c5f13c43ed9987110bc62
[]
no_license
cpphut/51nod
fe5dcefbf64b53a9741906187d37e1503301aced
daad89f25e9932495d4eb12dd066d795441e8101
refs/heads/master
2020-06-20T16:52:35.227004
2019-07-16T13:11:42
2019-07-16T13:11:42
197,184,192
0
0
null
null
null
null
UTF-8
C++
false
false
374
cpp
#include<iostream> #define mod 1000000007 using namespace std; long long f[50001][320], n, ans; int main() { cin >> n; f[0][0] = 1; for (int i = 1; i <= n; i++) { for (int j = 1; j * j <= 2 * i + 1; j++) { f[i][j] = (f[i - j][j] + f[i - j][j - 1]) % mod; } } for (int i = 1; i * i <= 2 * n + 1; i++) { ans = (ans + f[n][i]) % mod; } cout << ans; return 0; }
[ "admin@cpphut.net" ]
admin@cpphut.net
021736da7d22d1bd22b777cb3b2b449dd467eb11
cbc93433180158b7f0741c17518b435a589c65ed
/week5-3/Source.cpp
ef12aa09651902703f19371d199eb00a61cb7bbf
[]
no_license
kritsanaphat/week5-3
4cd6e369e2d8df46d97b1118741e1bc1f92fa44c
ebc051beb8f73e026fbcb7ed26f53b531aba06d1
refs/heads/master
2022-12-15T12:52:55.072085
2020-09-13T16:49:58
2020-09-13T16:49:58
295,190,407
0
0
null
null
null
null
UTF-8
C++
false
false
1,077
cpp
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> int main() { char x[100], y[100], xy1[100], xy2[100]; int x1, y1, i = 0, sumx = 0, sumy = 0, j = 0, j1 = 0, asum = 0; char* px1, * px2, * py1, * py2; printf("Enter string A : "); scanf("%s", x); x1 = strlen(x); printf("Enter string B : "); scanf("%s", y); y1 = strlen(y); px1 = x; px2 = x; for (i = 0; i < x1; i++) { px2++; if (*px1 != *px2) { sumx = sumx + 1; xy1[j] = *px1; //printf("%c", xy1[j]); //CHECK1 j++; } px1++; } printf("\n"); py1 = y; py2 = y; for (i = 0; i < y1; i++) { py2++; if (*py1 != *py2) { sumy = sumy + 1; xy2[j1] = *py1; //printf("%c", xy2[j1]); //CHECK2 j1++; } py1++; } //Reset j = 0; j1 = 0; //check uniqA=uniqB if (sumx == sumy) { for (i = 0; i < sumx; i++) { if (xy1[j] == xy2[j1]) { //printf("%c%c ", xy1[j], xy2[j1]); asum = asum + 1; j++; j1++; } } if (asum == sumx) { printf("uniq(A)=uniq(B)\n"); } else printf("uniq(A)!=uniq(B)\n"); } else printf("uniq(A)!=uniq(B)\n"); }
[ "63010040@KMITL.AC.TH" ]
63010040@KMITL.AC.TH
4800fca8bee94db3cbec23fe430da0b98ae033c9
863db4be7f95890cd0ad59f90a2074821fe3f20a
/Firmware/Ax12a/AX12A/AX12A.cpp
ff128b9c37dd8e0e9e545a64d1d57a6d7bdab371
[ "MIT" ]
permissive
aaronperkins/cocoa
bdfcf17e7d3a24b044301249da7952f6b2122a41
c7a40378ce752fde577efface307acc38f500ebd
refs/heads/master
2020-05-02T23:51:23.688261
2019-06-27T20:48:45
2019-06-27T20:48:45
178,292,260
0
0
null
null
null
null
UTF-8
C++
false
false
27,343
cpp
#include "AX12A.h" // Macros ///////////////////////////////////////////////////////////////////// #define sendData(packet, length) (varSerial->write(packet, length)) // Write Over Serial #define flush() (varSerial->flush()) // Wait until buffer empty #define availableData() (varSerial->available()) // Check Serial Data Available #define readData() (varSerial->read()) // Read Serial Data #define peekData() (varSerial->peek()) // Peek Serial Data #define beginCom(args) (varSerial->begin(args)) // Begin Serial Comunication #define endCom() (varSerial->end()) // End Serial Comunication #define setDPin(DirPin,Mode) (pinMode(DirPin,Mode)) // Select the Switch to TX/RX Mode Pin #define switchCom(DirPin,Mode) (digitalWrite(DirPin,Mode)) // Switch to TX/RX Mode #define delayus(args) (delayMicroseconds(args)) // Delay Microseconds // Private Methods //////////////////////////////////////////////////////////// int AX12A::read_error(void) { Time_Counter = 0; while ((availableData() < 5) & (Time_Counter < TIME_OUT)) // Wait for Data { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length Error_Byte = readData(); // Error return (Error_Byte); } } return (-1); // No Ax Response } // Public Methods ///////////////////////////////////////////////////////////// void AX12A::begin(long baud, unsigned char directionPin, HardwareSerial *srl) { varSerial = srl; Direction_Pin = directionPin; setDPin(Direction_Pin, OUTPUT); beginCom(baud); } void AX12A::end() { endCom(); } int AX12A::reset(unsigned char ID) { const unsigned int length = 6; unsigned char packet[length]; Checksum = (~(ID + AX_RESET_LENGTH + AX_RESET)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_RESET_LENGTH; packet[4] = AX_RESET; packet[5] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::ping(unsigned char ID) { const unsigned int length = 6; unsigned char packet[length]; Checksum = (~(ID + AX_READ_DATA + AX_PING)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_READ_DATA; packet[4] = AX_PING; packet[5] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setID(unsigned char ID, unsigned char newID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_ID_LENGTH + AX_WRITE_DATA + AX_ID + newID)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_ID_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_ID; packet[6] = newID; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setBD(unsigned char ID, long baud) { const unsigned int length = 8; unsigned char packet[length]; unsigned char Baud_Rate = (2000000 / baud) - 1; Checksum = (~(ID + AX_BD_LENGTH + AX_WRITE_DATA + AX_BAUD_RATE + Baud_Rate)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_BD_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_BAUD_RATE; packet[6] = Baud_Rate; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::move(unsigned char ID, int Position) { char Position_H, Position_L; Position_H = Position >> 8; // 16 bits - 2 x 8 bits variables Position_L = Position; const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_LENGTH + AX_WRITE_DATA + AX_GOAL_POSITION_L + Position_L + Position_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_GOAL_POSITION_L; packet[6] = Position_L; packet[7] = Position_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::moveSpeed(unsigned char ID, int Position, int Speed) { char Position_H, Position_L, Speed_H, Speed_L; Position_H = Position >> 8; Position_L = Position; // 16 bits - 2 x 8 bits variables Speed_H = Speed >> 8; Speed_L = Speed; // 16 bits - 2 x 8 bits variables const unsigned int length = 11; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_SP_LENGTH + AX_WRITE_DATA + AX_GOAL_POSITION_L + Position_L + Position_H + Speed_L + Speed_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_SP_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_GOAL_POSITION_L; packet[6] = Position_L; packet[7] = Position_H; packet[8] = Speed_L; packet[9] = Speed_H; packet[10] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setEndless(unsigned char ID, bool Status) { if (Status) { const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_LENGTH + AX_WRITE_DATA + AX_CCW_ANGLE_LIMIT_L)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_CCW_ANGLE_LIMIT_L; packet[6] = 0; // full rotation packet[7] = 0; // full rotation packet[8] = Checksum; return (sendAXPacket(packet, length)); } else { turn(ID, 0, 0); const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_LENGTH + AX_WRITE_DATA + AX_CCW_ANGLE_LIMIT_L + AX_CCW_AL_L + AX_CCW_AL_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_CCW_ANGLE_LIMIT_L; packet[6] = AX_CCW_AL_L; packet[7] = AX_CCW_AL_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } } int AX12A::turn(unsigned char ID, bool SIDE, int Speed) { if (SIDE == LEFT) { char Speed_H, Speed_L; Speed_H = Speed >> 8; Speed_L = Speed; // 16 bits - 2 x 8 bits variables const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_SPEED_LENGTH + AX_WRITE_DATA + AX_GOAL_SPEED_L + Speed_L + Speed_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_SPEED_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_GOAL_SPEED_L; packet[6] = Speed_L; packet[7] = Speed_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } else { char Speed_H, Speed_L; Speed_H = (Speed >> 8) + 4; Speed_L = Speed; // 16 bits - 2 x 8 bits variables const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_SPEED_LENGTH + AX_WRITE_DATA + AX_GOAL_SPEED_L + Speed_L + Speed_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_SPEED_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_GOAL_SPEED_L; packet[6] = Speed_L; packet[7] = Speed_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } } int AX12A::moveRW(unsigned char ID, int Position) { char Position_H, Position_L; Position_H = Position >> 8; // 16 bits - 2 x 8 bits variables Position_L = Position; const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_LENGTH + AX_REG_WRITE + AX_GOAL_POSITION_L + Position_L + Position_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_LENGTH; packet[4] = AX_REG_WRITE; packet[5] = AX_GOAL_POSITION_L; packet[6] = Position_L; packet[7] = Position_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } void AX12A::moveSync(int *position, unsigned char servoCount) { int temp; unsigned int validPositionsLength = 0; for (int i = 0; i < servoCount; i++) { if (position[i] >= 0) { validPositionsLength++; } } unsigned int packetLength = 4 + (validPositionsLength * 3); // 3 = id + pos(2byte) Checksum = BROADCAST_ID + packetLength + AX_SYNC_WRITE + 2 + AX_GOAL_POSITION_L; unsigned char packet[64]; packet[0] = AX_START; packet[1] = AX_START; packet[2] = BROADCAST_ID; packet[3] = packetLength; packet[4] = AX_SYNC_WRITE; packet[5] = AX_GOAL_POSITION_L; packet[6] = 2; int j = 0; for (int i = 0; i < servoCount; i++) { if (position[i] < 0) { continue; } unsigned char id, Position_H, Position_L; id = i; Position_H = position[i] >> 8; // 16 bits - 2 x 8 bits variables Position_L = position[i]; packet[7 + j++] = id; packet[7 + j++] = Position_L; packet[7 + j++] = Position_H; Checksum += id + Position_L + Position_H; } packet[7 + (validPositionsLength * 3)] = ~(Checksum) & 0xFF; sendAXPacketNoError(packet, packetLength + 4); } int AX12A::moveSpeedRW(unsigned char ID, int Position, int Speed) { char Position_H, Position_L, Speed_H, Speed_L; Position_H = Position >> 8; Position_L = Position; // 16 bits - 2 x 8 bits variables Speed_H = Speed >> 8; Speed_L = Speed; // 16 bits - 2 x 8 bits variables const unsigned int length = 11; unsigned char packet[length]; Checksum = (~(ID + AX_GOAL_SP_LENGTH + AX_REG_WRITE + AX_GOAL_POSITION_L + Position_L + Position_H + Speed_L + Speed_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_GOAL_SP_LENGTH; packet[4] = AX_REG_WRITE; packet[5] = AX_GOAL_POSITION_L; packet[6] = Position_L; packet[7] = Position_H; packet[8] = Speed_L; packet[9] = Speed_H; packet[10] = Checksum; return (sendAXPacket(packet, length)); } void AX12A::action() { const unsigned int length = 6; unsigned char packet[length]; packet[0] = AX_START; packet[1] = AX_START; packet[2] = BROADCAST_ID; packet[3] = AX_ACTION_LENGTH; packet[4] = AX_ACTION; packet[5] = AX_ACTION_CHECKSUM; sendAXPacket(packet, length); } int AX12A::torqueStatus(unsigned char ID, bool Status) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_TORQUE_LENGTH + AX_WRITE_DATA + AX_TORQUE_ENABLE + Status)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_TORQUE_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_TORQUE_ENABLE; packet[6] = Status; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::ledStatus(unsigned char ID, bool Status) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_LED_LENGTH + AX_WRITE_DATA + AX_LED + Status)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_LED_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_LED; packet[6] = Status; packet[7] = Checksum; return (sendAXPacket(packet, length)); // return error } int AX12A::readTemperature(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_TEM_LENGTH + AX_READ_DATA + AX_PRESENT_TEMPERATURE + AX_BYTE_READ)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_TEM_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_PRESENT_TEMPERATURE; packet[6] = AX_BYTE_READ; packet[7] = Checksum; sendAXPacketNoError(packet, length); Temperature_Byte = -1; Time_Counter = 0; while ((availableData() < 6) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Temperature_Byte = readData(); // Temperature } } return (Temperature_Byte); // Returns the read temperature } int AX12A::readPosition(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_POS_LENGTH + AX_READ_DATA + AX_PRESENT_POSITION_L + AX_BYTE_READ_POS)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_POS_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_PRESENT_POSITION_L; packet[6] = AX_BYTE_READ_POS; packet[7] = Checksum; sendAXPacketNoError(packet, length); Position_Long_Byte = -1; Time_Out_Start = millis(); while ((availableData() < 7)) { if ((millis() - Time_Out_Start) > TIME_OUT) { return Position_Long_Byte; } delayus(300); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Position_Low_Byte = readData(); // Position Bytes Position_High_Byte = readData(); Position_Long_Byte = Position_High_Byte << 8; Position_Long_Byte = Position_Long_Byte + Position_Low_Byte; } } return (Position_Long_Byte); // Returns the read position } int AX12A::readVoltage(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_VOLT_LENGTH + AX_READ_DATA + AX_PRESENT_VOLTAGE + AX_BYTE_READ)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_VOLT_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_PRESENT_VOLTAGE; packet[6] = AX_BYTE_READ; packet[7] = Checksum; sendAXPacketNoError(packet, length); Voltage_Byte = -1; Time_Counter = 0; while ((availableData() < 6) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Voltage_Byte = readData(); // Voltage } } return (Voltage_Byte); // Returns the read Voltage } int AX12A::setTempLimit(unsigned char ID, unsigned char Temperature) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_TL_LENGTH + AX_WRITE_DATA + AX_LIMIT_TEMPERATURE + Temperature)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_TL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_LIMIT_TEMPERATURE; packet[6] = Temperature; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setVoltageLimit(unsigned char ID, unsigned char DVoltage, unsigned char UVoltage) { const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_VL_LENGTH + AX_WRITE_DATA + AX_DOWN_LIMIT_VOLTAGE + DVoltage + UVoltage)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_VL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_DOWN_LIMIT_VOLTAGE; packet[6] = DVoltage; packet[7] = UVoltage; packet[8] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setAngleLimit(unsigned char ID, int CWLimit, int CCWLimit) { char CW_H, CW_L, CCW_H, CCW_L; CW_H = CWLimit >> 8; CW_L = CWLimit; // 16 bits - 2 x 8 bits variables CCW_H = CCWLimit >> 8; CCW_L = CCWLimit; const unsigned int length = 12; unsigned char packet[length]; Checksum = (~(ID + AX_VL_LENGTH + AX_WRITE_DATA + AX_CW_ANGLE_LIMIT_L + CW_H + CW_L + AX_CCW_ANGLE_LIMIT_L + CCW_H + CCW_L)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_CCW_CW_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_CW_ANGLE_LIMIT_L; packet[6] = CW_L; packet[7] = CW_H; packet[8] = AX_CCW_ANGLE_LIMIT_L; packet[9] = CCW_L; packet[10] = CCW_H; packet[11] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setMaxTorque(unsigned char ID, int MaxTorque) { char MaxTorque_H, MaxTorque_L; MaxTorque_H = MaxTorque >> 8; // 16 bits - 2 x 8 bits variables MaxTorque_L = MaxTorque; const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_MT_LENGTH + AX_WRITE_DATA + AX_MAX_TORQUE_L + MaxTorque_L + MaxTorque_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_MT_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_MAX_TORQUE_L; packet[6] = MaxTorque_L; packet[7] = MaxTorque_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setSRL(unsigned char ID, unsigned char SRL) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_SRL_LENGTH + AX_WRITE_DATA + AX_RETURN_LEVEL + SRL)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_SRL_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_RETURN_LEVEL; packet[6] = SRL; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setRDT(unsigned char ID, unsigned char RDT) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_RDT_LENGTH + AX_WRITE_DATA + AX_RETURN_DELAY_TIME + (RDT / 2))) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_RDT_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_RETURN_DELAY_TIME; packet[6] = (RDT / 2); packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setLEDAlarm(unsigned char ID, unsigned char LEDAlarm) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_LEDALARM_LENGTH + AX_WRITE_DATA + AX_ALARM_LED + LEDAlarm)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_LEDALARM_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_ALARM_LED; packet[6] = LEDAlarm; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setShutdownAlarm(unsigned char ID, unsigned char SALARM) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_SALARM_LENGTH + AX_ALARM_SHUTDOWN + AX_ALARM_LED + SALARM)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_SALARM_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_ALARM_SHUTDOWN; packet[6] = SALARM; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setCMargin(unsigned char ID, unsigned char CWCMargin, unsigned char CCWCMargin) { const unsigned int length = 10; unsigned char packet[length]; Checksum = (~(ID + AX_CM_LENGTH + AX_WRITE_DATA + AX_CW_COMPLIANCE_MARGIN + CWCMargin + AX_CCW_COMPLIANCE_MARGIN + CCWCMargin)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_CM_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_CW_COMPLIANCE_MARGIN; packet[6] = CWCMargin; packet[7] = AX_CCW_COMPLIANCE_MARGIN; packet[8] = CCWCMargin; packet[9] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setCSlope(unsigned char ID, unsigned char CWCSlope, unsigned char CCWCSlope) { const unsigned int length = 10; unsigned char packet[length]; Checksum = (~(ID + AX_CS_LENGTH + AX_WRITE_DATA + AX_CW_COMPLIANCE_SLOPE + CWCSlope + AX_CCW_COMPLIANCE_SLOPE + CCWCSlope)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_CS_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_CW_COMPLIANCE_SLOPE; packet[6] = CWCSlope; packet[7] = AX_CCW_COMPLIANCE_SLOPE; packet[8] = CCWCSlope; packet[9] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::setPunch(unsigned char ID, int Punch) { char Punch_H, Punch_L; Punch_H = Punch >> 8; // 16 bits - 2 x 8 bits variables Punch_L = Punch; const unsigned int length = 9; unsigned char packet[length]; Checksum = (~(ID + AX_PUNCH_LENGTH + AX_WRITE_DATA + AX_PUNCH_L + Punch_L + Punch_H)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_PUNCH_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_PUNCH_L; packet[6] = Punch_L; packet[7] = Punch_H; packet[8] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::moving(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_MOVING_LENGTH + AX_READ_DATA + AX_MOVING + AX_BYTE_READ)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_MOVING_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_MOVING; packet[6] = AX_BYTE_READ; packet[7] = Checksum; sendAXPacketNoError(packet, length); Moving_Byte = -1; Time_Counter = 0; while ((availableData() < 6) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Moving_Byte = readData(); // Moving } } return (Moving_Byte); // Returns the read Moving } int AX12A::lockRegister(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_LR_LENGTH + AX_WRITE_DATA + AX_LOCK + LOCK)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_LR_LENGTH; packet[4] = AX_WRITE_DATA; packet[5] = AX_LOCK; packet[6] = LOCK; packet[7] = Checksum; return (sendAXPacket(packet, length)); } int AX12A::RWStatus(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_RWS_LENGTH + AX_READ_DATA + AX_REGISTERED_INSTRUCTION + AX_BYTE_READ)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_RWS_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_REGISTERED_INSTRUCTION; packet[6] = AX_BYTE_READ; packet[7] = Checksum; sendAXPacketNoError(packet, length); RWS_Byte = -1; Time_Counter = 0; while ((availableData() < 6) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); RWS_Byte = readData(); // RWStatus } } return (RWS_Byte); // Returns the read RWStatus } int AX12A::readSpeed(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_POS_LENGTH + AX_READ_DATA + AX_PRESENT_SPEED_L + AX_BYTE_READ_POS)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_POS_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_PRESENT_SPEED_L; packet[6] = AX_BYTE_READ_POS; packet[7] = Checksum; sendAXPacketNoError(packet, length); Speed_Long_Byte = -1; Time_Counter = 0; while ((availableData() < 7) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Speed_Low_Byte = readData(); // Position Bytes Speed_High_Byte = readData(); Speed_Long_Byte = Speed_High_Byte << 8; Speed_Long_Byte = Speed_Long_Byte + Speed_Low_Byte; } } return (Speed_Long_Byte); // Returns the read position } int AX12A::readLoad(unsigned char ID) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + AX_POS_LENGTH + AX_READ_DATA + AX_PRESENT_LOAD_L + AX_BYTE_READ_POS)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = AX_POS_LENGTH; packet[4] = AX_READ_DATA; packet[5] = AX_PRESENT_LOAD_L; packet[6] = AX_BYTE_READ_POS; packet[7] = Checksum; sendAXPacketNoError(packet, length); Load_Long_Byte = -1; Time_Counter = 0; while ((availableData() < 7) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); Load_Low_Byte = readData(); // Position Bytes Load_High_Byte = readData(); Load_Long_Byte = Load_High_Byte << 8; Load_Long_Byte = Load_Long_Byte + Load_Low_Byte; } } return (Load_Long_Byte); // Returns the read position } int AX12A::sendAXPacket(unsigned char * packet, unsigned int length) { switchCom(Direction_Pin, TX_MODE); // Switch to Transmission Mode sendData(packet, length); // Send data through sending buffer flush(); // Wait until buffer is empty switchCom(Direction_Pin, RX_MODE); // Switch back to Reception Mode return (read_error()); // Return the read error } void AX12A::sendAXPacketNoError(unsigned char * packet, unsigned int length) { switchCom(Direction_Pin, TX_MODE); // Switch to Transmission Mode sendData(packet, length); // Send data through sending buffer flush(); // Wait until buffer is empty switchCom(Direction_Pin, RX_MODE); // Switch back to Reception Mode } int AX12A::readRegister(unsigned char ID, unsigned char reg, unsigned char reg_len) { const unsigned int length = 8; unsigned char packet[length]; Checksum = (~(ID + 4 + AX_READ_DATA + reg + reg_len)) & 0xFF; packet[0] = AX_START; packet[1] = AX_START; packet[2] = ID; packet[3] = 4; packet[4] = AX_READ_DATA; packet[5] = reg; packet[6] = reg_len; packet[7] = Checksum; sendAXPacketNoError(packet, length); returned_Byte = -1; Time_Counter = 0; while ((availableData() < 7) & (Time_Counter < TIME_OUT)) { Time_Counter++; delayus(1000); } while (availableData() > 0) { Incoming_Byte = readData(); if ((Incoming_Byte == 255) & (peekData() == 255)) { readData(); // Start Bytes readData(); // Ax-12 ID readData(); // Length if ((Error_Byte = readData()) != 0) // Error return (Error_Byte*(-1)); switch (reg_len) { case 1: returned_Byte = readData(); break; case 2: returned_Byte = readData(); returned_Byte += readData() << 8; break; } } } return (returned_Byte); // Returns the read position } AX12A ax12a;
[ "ajperkins@gmail.com" ]
ajperkins@gmail.com
5131c5908eefc5af436959ad64ca71b08b73a23a
2256ea7d7590057b13e0c1b6a970b7f7187f93c7
/neuralnet.cpp
047a71b8ef8c9d2f31840c642b59c0d13e3af23c
[ "MIT" ]
permissive
ablaom/NeuralNets
8c35aabf2c8c9932745ab500bbe17763d527893e
e82210b920394d7a7f209b2b6accf27498ee5c35
refs/heads/master
2021-09-10T03:40:51.390817
2018-03-20T21:58:00
2018-03-20T21:58:00
126,087,908
0
0
null
null
null
null
UTF-8
C++
false
false
11,987
cpp
// copyright Anthony D. Blaom, 2012 #include <cmath> #include <cstdlib> // needed for RAND_MAX definition #include <iostream> #include "neuralnet.h" using namespace std; // auxilliary functions /* The following generates a pseudorandom number according to an approximately normal distribution with zero mean and unit standard deviation. This it does by sampling a uniform distribution N times, adding the results and dividing by sqrt(N).*/ double rnorm() { static int N = 100; // sample size static double a = sqrt(3.0); /* then a uniform distribution on [-a, a] has unit standard deviation */ double sum = 0; double X; for (int i = 0; i != N; ++i){ X = (2.0*rand() - RAND_MAX)/RAND_MAX; // X is in [-1,1] sum = sum + a*X; } return sum/sqrt(N); } // Node public members void::Node::update_output() { switch(type_of_activation) { case 'h' : // hyperbolic tangent output = tanh(signal); break; case 'l' : // logistic function output = 1.0 / (1.0 + exp(-signal)); break; case 'i' : // identity output = signal; break; case 'c' : // constant output = 1.0; break; default: output = tanh(signal); break; } } void::Node::update_delta() { double derivative; switch(type_of_activation) { case 'h' : // hyperbolic tangent derivative = pow(1.0/cosh(signal), 2); break; case 'l' : // logistic function derivative = 1.0 / pow(1.0 + exp(-signal), 2); break; case 'i' : // identity derivative = 1.0; break; case 'c' : // constant derivative = 0; break; default: derivative = pow(1.0/cosh(signal), 2); break; } delta = error*derivative; } Node::Node() { output = 0; delta = 0; signal = 0; error = 0; type_of_activation = 'h'; num_input_edges = 0; } Node::Node(char t) { if (t == 'c') { output = 1; } else { output = 0; } delta = 0; signal = 0; error = 0; type_of_activation = t; num_input_edges = 0; } void Node::dump() { cout << " type=" << type_of_activation << " signal=" << signal << " delta=" << delta << " output=" << output << " error=" << error; } // Edge public members void::Edge::initialize_weight() { weight = weight_sigma*rnorm(); } void::Edge::update_weight(const double eta, const double lambda) { static double W = 1.0; double left_output = (this->left_node)->get_output(); double right_delta = (this->right_node)->get_delta(); // cout << endl << " leftout=" << left_output << " rightdelta=" << right_delta; double q = weight/W; weight = weight - eta*( left_output*right_delta /* gradient descent correction */ + (2*lambda/W) * q/(1 + pow(q, 2)) /* regularization penalty */ ); } void::Edge::set_weight_sigma(){ static double C = 1.47; int n = (this->right_node)->get_num_input_edges(); weight_sigma = C/sqrt(n); } Edge::Edge(Node *l, Node *r, bool d) { weight = 0; weight_sigma = 0.5; this->left_node = l; this->right_node = r; this->last_forward = true; this->last_backward = true; this->lazy = false; this->dead = d; } // Pattern public members // constructor Pattern::Pattern() { std::list<double>::iterator it; for (it = (this->x).begin(); it != (this->x).end(); ++it) { *it = 0; } for (it = (this->y).begin(); it != (this->y).end(); ++it) { *it = 0; } } void Pattern::print_to_console() { std::list<double>::const_iterator it; cout << endl; cout << "Inputs: "; for (it = (this->x).begin(); it != (this->x).end(); ++it) { cout << *it << " "; } cout << "Outputs: "; for (it = (this->y).begin(); it != (this->y).end(); ++it) { cout << *it << " "; } } // Neuralnet public members void Neuralnet::initialize_weights() { list<Edge>::iterator it; for (it = edge_list.begin(); it != edge_list.end(); ++it) { it->initialize_weight(); } } void Neuralnet::input_weights_from_file(ifstream& infile){ list<Edge>::iterator it; double w; for (it = edge_list.begin(); it != edge_list.end(); ++it) { infile >> w; it->set_weight(w); } } void Neuralnet::output_weights_to_file(ofstream& outfile){ list<Edge>::iterator it; for (it = edge_list.begin(); it != edge_list.end(); ++it) { outfile << (it->get_weight()) << " "; } outfile << endl; } void Neuralnet::stochastic_update(const Pattern pattern, const double eta, const double lambda) { // 1. reset all the node signals and all node errors to zero // (except the input node signals and the output node errors) list<Edge>::iterator it; for (it = edge_list.begin(); it != edge_list.end(); ++it) { // currently not efficient but thorough: // (it->left_node)->reset_error(); // (it->right_node)->reset_error(); // (it->left_node)->set_signal(0); // (it->right_node)->set_signal(0); if (it->last_backward) { (it->left_node)->reset_error(); } if (it->last_forward) { (it->right_node)->set_signal(0); } } // 2. load the pattern into the input nodes and apply the activation // function (which ought to be the identity) list<Node *>::const_iterator node_it = input_list.begin(); list<double>::const_iterator double_it; for (double_it = (pattern.x).begin(); double_it != (pattern.x).end(); ++double_it) { (*node_it)->set_signal(*double_it); (*node_it)->update_output(); ++node_it; } // 3. compute the outputs in a forward pass for (it = edge_list.begin(); it != edge_list.end(); ++it) { (it->right_node)->add_to_signal( ((it->left_node)->get_output())*(it->get_weight()) ); if (it->last_forward) { (it->right_node)->update_output(); // cout << "Output at node " << (it->right_node) << " is " << (it->right_node)->get_output() << endl; } } // 4. evaluate the "error" to be fed into the ouput nodes for // backpropagation and evaluate the delta's on the left of the // output nodes (which depend on these errors). /* to evaluate the output "error" we are assuming an error function E(z,y) = frac{1}{2}\sum_j (z_j - y_j)^2 and the index j runs over all outputs (not over patterns - we are doing stochastic update!). Here z_j is the network-predicted output, based on the pattern inputs; and y_j is the pattern output value */ node_it = output_list.begin(); for (double_it = (pattern.y).begin(); double_it != (pattern.y).end(); ++double_it) { double zj = (*node_it)->get_output(); double yj = *double_it; double e = zj - yj; /* The derivative of the error function E(z,y) w.r.t z_j */ (*node_it)->reset_error(); /* output node errors were not reset in step 1 above */ (*node_it)->add_to_error(e); (*node_it)->update_delta(); // cout << "Error at node " << (*node_it) << " is " << e << endl; // cout << "Delta at node " << (*node_it) << " is " << (*node_it)->get_delta() << endl; ++node_it; } // 5. compute all deltas and errors in a backward pass, except at // left nodes of lazy edges, and simultaneously update weights at an // edge if it is not dead. (See the documentation of Neuralnet in // neuralnet.h.) /* These weight updates depend only on the right delta and left output, and the current weight if regularization term is included */ /* Note for future improvement: i am computing errors and deltas for the input nodes, which are never needed!! */ list<Edge>::reverse_iterator rit; for (rit = edge_list.rbegin(); rit != edge_list.rend(); ++rit) { if (!(rit->lazy)) { (rit->left_node)->add_to_error( ((rit->right_node)->get_delta())*(rit->get_weight()) ); if (rit->last_backward) { (rit->left_node)->update_delta(); // cout << "Delta @ Node" << (rit->left_node) << " is " << (rit->left_node)->get_delta() << endl; } } if (!rit->dead) { rit->update_weight(eta, lambda); } } } void Neuralnet::output_weights_to_console() { cout << endl; list<Edge>::const_iterator it; int i = 0; for (it = edge_list.begin(); it != edge_list.end(); ++it) { cout << endl << "weight number " << i << ": "<< "weight=" << it->get_weight(); // cout << endl << "Left node=" << it->left_node << ": "; // (it->left_node)->dump(); // cout << endl << "Right node=" << it->right_node << ": "; // (it->right_node)->dump(); ++i; } } double Neuralnet::compute_error(const Pattern& pattern) { // 1. reset all the node signals to zero // (except the input node signals) list<Edge>::iterator it; for (it = edge_list.begin(); it != edge_list.end(); ++it) { if (it->last_forward) { (it->right_node)->set_signal(0); } } // 2. load the pattern into the input nodes and apply the activation // function (understood to be the identity) list<Node *>::const_iterator node_it = input_list.begin(); list<double>::const_iterator double_it; for (double_it = (pattern.x).begin(); double_it != (pattern.x).end(); ++double_it) { (*node_it)->set_signal(*double_it); (*node_it)->update_output(); ++node_it; } // 3. compute all node outputs in a forward pass for (it = edge_list.begin(); it != edge_list.end(); ++it) { (it->right_node)->add_to_signal( ((it->left_node)->get_output())*(it->get_weight()) ); if (it->last_forward) { (it->right_node)->update_output(); } } // 4. evaluate the error double error = 0.0; int n = 0; node_it = output_list.begin(); for (double_it = (pattern.y).begin(); double_it != (pattern.y).end(); ++double_it) { double zj = (*node_it)->get_output(); double yj = *double_it; error = error + pow(zj - yj, 2); ++node_it; ++n; } error = sqrt(error/n); return error; } void Neuralnet::test() { cout << endl; int i = 0; list<Edge>::const_iterator it; for (it = edge_list.begin(); it != edge_list.end(); ++it) { cout << "edge number = " << i << endl; cout << "from " << it->left_node << " to " << it->right_node << endl; cout << "is last edge into a node on forward pass? " << it->last_forward << endl; cout << "is last edge into a node on backward pass? " << it->last_backward << endl; cout << "number of edges into the right node = " << (it->right_node)->get_num_input_edges() << endl; ++i; } } // constructor: Neuralnet::Neuralnet(list<Node *> inputs, list<Node *> outputs, list<Edge> ed) { input_list = inputs; output_list = outputs; edge_list = ed; // initialize the <last_forward>, <last_backward> flags (for edges) // and the num_input_edges (for nodes), and the <lazy> flag for // edges 1. set all the flags to true and num_input_edges to zero list<Edge>::iterator it, jt; for (it = edge_list.begin(); it != edge_list.end(); ++it) { it->last_forward = true; it->last_forward = true; (it->right_node)->reset_num_input_edges(); } // 2. in a forward pass set all the appropriate last_forward flags to false. // Simultaneously set (incrementally) num_input_edges to correct value, // for each node appearing as a right_node (ie, non-input nodes) for (it = edge_list.begin(); it != edge_list.end(); ++it) { (it->right_node)->increment_num_input_edges(); for (jt = edge_list.begin(); jt != it; ++jt) { if (jt->right_node == it->right_node) { jt->last_forward = false; } } } // 3. in a backward pass set all appropriate last_backward flags to false: list<Edge>::reverse_iterator rit, rjt; for (rit = edge_list.rbegin(); rit != edge_list.rend(); ++rit) { for (rjt = edge_list.rbegin(); rjt != rit; ++rjt) { if (rjt->left_node == rit->left_node) { rjt->last_backward = false; } } } // 4. set the lazy flags for (it = edge_list.begin(); it != edge_list.end(); ++it) { if ((it->left_node)->get_num_input_edges() == 0) { it->lazy == true; } } // initialize the weight_sigmas for (it = edge_list.begin(); it != edge_list.end(); ++it) { it->set_weight_sigma(); } }
[ "anthony.blaom@gmail.com" ]
anthony.blaom@gmail.com