blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
f97e72610a12691c55c832ce26f0ac4ef6ac46dd
e7197120793475467dab60bc46dee0529d6b6363
/tensorflow/compiler/mlir/tfrt/jit/python_binding/tf_cpurt_executor.cc
5ce3f13365783d41136b0a34ffe6e29ac804fed8
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
sujitahirrao/tensorflow
0488a33b9f8e8c2e2f623434204ddf48e8917ef4
70d727ba4e3fbe17ca07bdc325d81374b9e7ed80
refs/heads/master
2021-12-27T14:55:12.547793
2021-11-27T11:57:12
2021-11-27T11:57:12
50,644,575
1
0
Apache-2.0
2021-11-27T11:57:13
2016-01-29T06:59:10
C++
UTF-8
C++
false
false
12,936
cc
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/compiler/mlir/tfrt/jit/python_binding/tf_cpurt_executor.h" #include <iostream> #include <stdexcept> #include <string> #include <utility> #include "mlir/ExecutionEngine/CRunnerUtils.h" #include "mlir/Transforms/Bufferize.h" #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #include "tensorflow/compiler/mlir/tensorflow/dialect_registration.h" #include "tensorflow/compiler/mlir/tfrt/jit/tf_cpurt_pipeline.h" #include "tensorflow/compiler/mlir/tfrt/python_tests/python_test_attrs_registration.h" #include "tensorflow/core/platform/dynamic_annotations.h" #include "tfrt/cpu/jit/cpurt.h" // from @tf_runtime #include "tfrt/dtype/dtype.h" // from @tf_runtime #include "tfrt/host_context/async_value.h" // from @tf_runtime #include "tfrt/host_context/concurrent_work_queue.h" // from @tf_runtime #include "tfrt/host_context/execution_context.h" // from @tf_runtime #include "tfrt/host_context/host_allocator.h" // from @tf_runtime #include "tfrt/host_context/kernel_utils.h" // from @tf_runtime #include "tfrt/support/ref_count.h" // from @tf_runtime #include "tfrt/support/string_util.h" // from @tf_runtime namespace py = pybind11; using ::tfrt::AsyncValue; using ::tfrt::AsyncValuePtr; using ::tfrt::CreateMallocAllocator; using ::tfrt::CreateMultiThreadedWorkQueue; using ::tfrt::DecodedDiagnostic; using ::tfrt::DType; using ::tfrt::ExecutionContext; using ::tfrt::GetDType; using ::tfrt::RCReference; using ::tfrt::RemainingResults; using ::tfrt::RequestContext; using ::tfrt::RequestContextBuilder; using ::tfrt::StrCat; using ::tfrt::cpu::jit::CompilationOptions; using ::tfrt::cpu::jit::Executable; using ::tfrt::cpu::jit::JitExecutable; using ::tfrt::cpu::jit::MemrefDesc; using ::tfrt::cpu::jit::ReturnStridedMemref; using ::tfrt::cpu::jit::ReturnValueConverter; namespace tensorflow { TfCpurtExecutor::TfCpurtExecutor() : host_context_( [](const DecodedDiagnostic& diag) { llvm::errs() << "Encountered runtime error: " << diag.message << "\n"; }, CreateMallocAllocator(), CreateMultiThreadedWorkQueue(4, 4)) {} TfCpurtExecutor::Handle TfCpurtExecutor::Compile(const std::string& mlir_module, const std::string& entrypoint, Specialization specialization, bool vectorize, bool legalize_i1_tensors) { CompilationOptions opts; // Create an async task for each worker thread. opts.num_worker_threads = 4; opts.register_dialects = [](mlir::DialectRegistry& registry) { mlir::RegisterAllTensorFlowDialects(registry); // Needed to verify function argument attributes which are used to // annotate dynamic shaped types with static type information. mlir::tfrt::RegisterPythonTestAttrsDialect(registry); }; opts.register_pass_pipeline = [=](mlir::OpPassManager& pm) { tensorflow::TfCpuRtPipelineOptions opts; opts.vectorize = vectorize; opts.legalize_i1_tensors = legalize_i1_tensors; tensorflow::CreateTfCpuRtPipeline(pm, opts); }; opts.specialization = specialization; opts.type_converter = mlir::BufferizeTypeConverter(); // Instantiate new JitExecutable from the MLIR source. llvm::Expected<JitExecutable> jit_executable = JitExecutable::Instantiate(mlir_module, entrypoint, opts); if (auto err = jit_executable.takeError()) throw std::runtime_error( StrCat("Failed to instantiate JitExecutable: ", err)); Handle hdl = jit_executables_.size(); jit_executables_.insert({hdl, std::move(*jit_executable)}); return hdl; } // Returns Python buffer protocol's type string from TFRT's dtype. static const char* ToPythonStructFormat(DType dtype_kind) { // Reference: https://docs.python.org/3/library/struct.html switch (dtype_kind) { case DType::Invalid: throw std::runtime_error("Invalid dtype."); case DType::Unsupported: throw std::runtime_error("Unsupported dtype."); case DType::UI8: return "B"; case DType::UI16: return "H"; case DType::UI32: return "I"; case DType::UI64: return "Q"; case DType::I1: return "?"; case DType::I8: return "b"; case DType::I16: return "h"; case DType::I32: return "i"; case DType::I64: return "q"; case DType::F32: return "f"; case DType::F64: return "d"; case DType::Complex64: throw std::runtime_error("Unimplemented."); case DType::Complex128: throw std::runtime_error("Unimplemented."); case DType::F16: throw std::runtime_error("Unimplemented."); case DType::BF16: throw std::runtime_error("Unimplemented."); case DType::String: throw std::runtime_error("Unimplemented."); default: throw std::runtime_error("Unimplemented."); } } // Returns TFRT's dtype for the Python buffer protocol's type string. static DType FromPythonStructFormat(char dtype) { // Reference: https://docs.python.org/3/library/struct.html switch (dtype) { case 'B': return DType::UI8; case 'H': return DType::UI16; case 'I': return DType::UI32; case 'Q': return DType::UI64; case '?': return DType::I1; case 'b': return DType::I8; case 'h': return DType::I16; case 'i': return DType::I32; case 'q': return DType::I64; case 'f': return DType::F32; case 'd': return DType::F64; default: throw std::runtime_error("Unsupported python dtype."); } } // Converts Python array to the Memref Descriptor. static void ConvertPyArrayMemrefDesc(const py::array& array, MemrefDesc* memref) { auto py_dtype = [](pybind11::dtype dtype) -> char { // np.int64 array for some reason has `i` dtype, however according to the // documentation it must be `q`. if (dtype.kind() == 'i' && dtype.itemsize() == 8) return 'q'; return dtype.char_(); }; memref->dtype = DType(FromPythonStructFormat(py_dtype(array.dtype()))); memref->data = const_cast<void*>(array.data()); memref->offset = 0; int rank = array.ndim(); memref->sizes.resize(rank); memref->strides.resize(rank); for (ssize_t d = 0; d < rank; ++d) { memref->sizes[d] = array.shape(d); memref->strides[d] = array.strides(d) / array.itemsize(); } } template <typename T, int rank> static llvm::ArrayRef<int64_t> Sizes(StridedMemRefType<T, rank>* memref) { return memref->sizes; } template <typename T, int rank> static llvm::ArrayRef<int64_t> Strides(StridedMemRefType<T, rank>* memref) { return memref->strides; } template <typename T> static llvm::ArrayRef<int64_t> Sizes(StridedMemRefType<T, 0>* memref) { return {}; } template <typename T> static llvm::ArrayRef<int64_t> Strides(StridedMemRefType<T, 0>* memref) { return {}; } namespace { struct PyBindingConversionContext {}; using PyBindingReturnValueConverter = ReturnValueConverter<PyBindingConversionContext>; } // namespace template <typename T> static bool IsAligned(const T* ptr) { #if EIGEN_MAX_ALIGN_BYTES == 0 return true; #else return reinterpret_cast<intptr_t>(ptr) % EIGEN_MAX_ALIGN_BYTES == 0; #endif } // Converts StridedMemrefType to the Python array. This struct satisfies // ReturnStridedMemref's concept (see cpurt.h). // // TODO(ezhulenev): Currently this converter transfers ownership of the memref // to the Python array. This is not correct in general, because memref does not // imply ownership, for example it can be one of the forwarded inputs or a // global memref that is owned by the compiled kernel. struct MemrefToPyArray { using ResultType = py::array; using ConversionContext = PyBindingConversionContext; template <typename T, int rank> static py::array Convert(const ConversionContext&, void* memref_ptr) { auto* memref = static_cast<StridedMemRefType<T, rank>*>(memref_ptr); assert(IsAligned(memref->data) && "returned memref must be aligned"); auto memref_sizes = Sizes(memref); auto memref_strides = Strides(memref); std::vector<ssize_t> sizes(memref_sizes.begin(), memref_sizes.end()); std::vector<ssize_t> strides(memref_strides.begin(), memref_strides.end()); // Python expects strides in bytes. auto dtype = GetDType<T>(); for (size_t d = 0; d < strides.size(); ++d) strides[d] *= GetHostSize(dtype); return py::array(py::buffer_info(memref->data, GetHostSize(dtype), ToPythonStructFormat(dtype), rank, sizes, strides)); } }; std::vector<py::array> TfCpurtExecutor::Execute( Handle handle, const std::vector<py::array>& arguments) { // Verify that we have a compilatio result for the handle. auto it = jit_executables_.find(handle); if (it == jit_executables_.end()) throw std::runtime_error(StrCat("Unknown jit executable handle: ", handle)); JitExecutable& jit_executable = it->getSecond(); // Build an ExecutionContext from the HostContext. llvm::Expected<RCReference<RequestContext>> req_ctx = RequestContextBuilder(&host_context_, /*resource_context=*/nullptr) .build(); tfrt::ExecutionContext exec_ctx(std::move(*req_ctx)); // Convert arguments to memrefs. std::vector<MemrefDesc> memrefs(arguments.size()); for (int i = 0; i < arguments.size(); ++i) ConvertPyArrayMemrefDesc(arguments[i], &memrefs[i]); // Get an executable that might be specialized to the operands. llvm::Expected<AsyncValuePtr<Executable>> executable = jit_executable.GetExecutable(memrefs, exec_ctx); if (auto err = executable.takeError()) throw std::runtime_error( StrCat("Failed to get Executable: ", std::move(err))); // Wait for the compilation completion. host_context_.Await({executable->CopyRef()}); if (executable->IsError()) throw std::runtime_error( StrCat("Failed to get Executable: ", executable->GetError())); // Prepare storage for returned values. unsigned num_results = (*executable)->num_results(); std::vector<RCReference<AsyncValue>> result_storage(num_results); RemainingResults results(result_storage); // Convert returned memrefs to Tensors. PyBindingReturnValueConverter converter(results); converter.AddConversion(ReturnStridedMemref<MemrefToPyArray>); if (auto err = (*executable)->Execute(memrefs, converter, exec_ctx)) throw std::runtime_error(StrCat("Unsupported argument: ", err)); // Pull Python arrays out of async values. std::vector<py::array> ret_values; ret_values.reserve(result_storage.size()); for (auto& result : result_storage) { if (result->IsError()) throw std::runtime_error(StrCat("result error: ", result->GetError())); py::array& result_array = result->get<py::array>(); TF_ANNOTATE_MEMORY_IS_INITIALIZED(result_array.data(), result_array.nbytes()); ret_values.emplace_back(result_array); } return ret_values; } bool TfCpurtExecutor::BuiltWith(const std::string& cpu_feature) { if (cpu_feature == "AVX2") { #ifdef __AVX2__ return true; #else return false; #endif } return false; } } // namespace tensorflow PYBIND11_MODULE(_tf_cpurt_executor, m) { py::enum_<tensorflow::TfCpurtExecutor::Specialization>(m, "Specialization") .value("ENABLED", tensorflow::TfCpurtExecutor::Specialization::kEnabled) .value("DISABLED", tensorflow::TfCpurtExecutor::Specialization::kDisabled) .value("ALWAYS", tensorflow::TfCpurtExecutor::Specialization::kAlways); py::class_<tensorflow::TfCpurtExecutor>(m, "TfCpurtExecutor") .def(py::init<>()) .def("compile", &tensorflow::TfCpurtExecutor::Compile, py::arg("mlir_module"), py::arg("entrypoint"), py::arg("specialization") = tensorflow::TfCpurtExecutor::Specialization::kEnabled, py::arg("vectorize") = false, py::arg("legalize_i1_tensors") = false) .def("execute", &tensorflow::TfCpurtExecutor::Execute) .def("built_with", &tensorflow::TfCpurtExecutor::BuiltWith, py::arg("cpu_feature")); }
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f188af1cff6c55cb9337ef609c6306b61178b4f7
380d95bcf755f0c227130454e02b1e8698b274a2
/cf658/a.cpp
37b2a2683034b17ba76d9dd917d5cf060bd19c8e
[]
no_license
geekpradd/CP-Topicwise
dd590ce94d0feb6b7a7037dd54e54a4b40041e77
5a257676171d0c4db71125ad3e872b338202fe16
refs/heads/master
2021-05-20T09:29:35.898564
2020-12-25T18:54:30
2020-12-25T18:54:30
252,225,116
4
0
null
null
null
null
UTF-8
C++
false
false
2,152
cpp
#include <bits/stdc++.h> #include <ctime> #include <cstdlib> #define int long long #define ii pair<int, int> #define pb push_back #define mp make_pair #define MOD 1000000007 #define E13 10000000000000 #define DUMP(a) \ do { std::cout << "[" << #a " = " << (a) << "]" << std::endl; } while(false) #define d0(x) cout<<(x)<<" " #define d1(x) cout<<(x)<<endl #define edge pair<int, pair<int, int> > #define REP0(i, n) for (int i=0; i<n; ++i) #define REP1(i, n) for (int i=1; i<=n; ++i) #define d2(x,y) cout<<(x)<<" "<<(y)<<endl #define d3(x,y,z) cout<<(x)<<" "<<(y)<<" "<<(z)<<endl #define d4(a,b,c,d) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<endl #define d5(a,b,c,d,e) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<endl #define d6(a,b,c,d,e,f) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<" "<<(f)<<endl using namespace std; template<class T> ostream& operator<<(ostream &os, vector<T> V) { os << "[ "; for(auto v : V) os << v << " "; return os << "]"; } template<class T> ostream& operator<<(ostream &os, set<T> S){ os << "{ "; for(auto s:S) os<<s<<" "; return os<<"}"; } template<class L, class R> ostream& operator<<(ostream &os, pair<L,R> P) { return os << "(" << P.first << "," << P.second << ")"; } template<class L, class R> ostream& operator<<(ostream &os, map<L,R> M) { os << "{ "; for(auto m:M) os<<"("<<m.F<<":"<<m.S<<") "; return os<<"}"; } int n, m; int power(int base, int exp){ if (exp==0) return 1; int res = power(base, exp/2); res = (res*res)%MOD; if (exp % 2) return (res*base)%MOD; return res; } int inverse(int n){ return power(n, MOD-2); } void solve(){ int n, m; cin >> n >> m; int a[n]; map<int, int> counter; REP0(i, n){ cin >> a[i]; counter[a[i]] = 1; } int b[m]; bool f = 0; int val; REP0(i, m){ cin >> b[i]; if (counter.count(b[i])){ f = 1; val = b[i]; } } if (f){ d1("YES"); d0(1); d0(val); cout << endl; } else { d1("NO"); } } signed main(){ cin.tie(NULL); ios_base::sync_with_stdio(false); #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); #endif int t; cin >> t; while (t--){ solve(); } return 0; }
[ "geekpradd@gmail.com" ]
geekpradd@gmail.com
d843aa608b6c88442fa466c41b972ceceb5e0c4e
81464366d3d2ab91a6600be8646d0856d413d8be
/Printing_sum_increasing_subsequence.cpp
371914191bfd97de0905d8c695d5cf0a7c631a97
[]
no_license
SunnyJaiswal5297/Basic_c_programs
08f289d04817f81222ceaacd7362e47fbae2935e
a2fd6168ce4ff075be6488c172200da21058dd93
refs/heads/master
2022-12-03T09:53:35.189234
2020-07-28T17:17:17
2020-07-28T17:17:17
283,201,986
1
0
null
null
null
null
UTF-8
C++
false
false
1,051
cpp
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--) { int n; cin>>n; int a[n],b[n],i,j; for(i=0;i<n;i++) { cin>>a[i]; b[i]=a[i]; } int max=INT_MIN; vector<int> vec,res; for(i=1;i<n;i++) { vec={}; for(j=0;j<i;j++) { if(a[i]>a[j] && b[i]<a[i]+b[j]) { b[i]=a[i]+b[j]; vec.push_back(a[j]); } } vec.push_back(a[i]); //cout<<str<<endl; if(b[i]>max) { max=b[i]; res=vec; } else if(b[i]==max) { if(vec.size()<res.size()) res=vec; } } /*for(i=0;i<n;i++) cout<<b[i]<<" ";*/ for(i=0;i<res.size();i++) cout<<res[i]<<" "; cout<<endl; } return 0; }
[ "s2jaiswal.sj@gmail.com" ]
s2jaiswal.sj@gmail.com
e01740fa3351e5daa84a573933c876a4b27eaf4c
f9a2904e263425026d13e6df7a55d5055f41c5fa
/Infoarena/padure.cpp
b14677eae141c126aa83c4d8579753b838913869
[]
no_license
C4Kaulo/C-plus-plus
25e547a5c5e7645004b17897625e8a8333722647
35420e2a640cee89cdada36f48152d52df1fc097
refs/heads/master
2020-05-21T07:16:55.624488
2017-03-10T19:00:00
2017-03-10T19:00:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,400
cpp
#include <fstream> #include <deque> #include <climits> using namespace std; ifstream in("padure.in"); ofstream out("padure.out"); struct dot { short i, j; dot operator +(dot b) { dot a; a.i = this->i + b.i; a.j = this->j + b.j; return a; } }; struct matrix { short tax; int lee; }; dot p, e, crr, temp, d[8]; deque<dot> que; matrix a[1001][1001]; short n, m; bool isin(dot p) { return (p.i >= 1 && p.i <= n && p.j >= 1 && p.j <= m); } int cost(dot p, dot e) { return (a[p.i][p.j].tax != a[e.i][e.j].tax); } void lee() { a[p.i][p.j].lee = 0; que.push_front(p); while (!que.empty()) { crr = que.front(); que.pop_front(); for (short i = 0; i <= 3; ++i) { temp = crr + d[i]; if (isin(temp) && a[temp.i][temp.j].lee > a[crr.i][crr.j].lee + cost(crr, temp)) { a[temp.i][temp.j].lee = a[crr.i][crr.j].lee + cost(crr, temp); if (cost(crr, temp) == 0) que.push_front(temp); else que.push_back(temp); } } } } int main() { d[0].i = -1; d[1].j = 1; d[2].i = 1; d[3].j = -1; in >> n >> m >> p.i >> p.j >> e.i >> e.j; for (short i = 1; i <= n; ++i) for (short j = 1; j <= m; ++j) in >> a[i][j].tax, a[i][j].lee = INT_MAX; lee(); out << a[e.i][e.j].lee; }
[ "noreply@github.com" ]
C4Kaulo.noreply@github.com
5641778285c6f76f3f1f147941d05432dcb5a724
83cfd464643211f267dc167195259e77169de8cb
/HackerRank/Problem Solving/Algorithms/Greedy/Luck Balance.cpp
dd1a137b5c05764c20612a8c3db72aae9a68ae40
[]
no_license
AnthonyDas/HackerRank
c97d3520d9902906c620774ece71b0b59f034bf9
8538625f13f20a1966cc1e138ac324a96157fc94
refs/heads/master
2020-04-05T13:14:15.123216
2019-01-22T00:02:47
2019-01-22T00:02:47
156,893,365
0
0
null
null
null
null
UTF-8
C++
false
false
929
cpp
#include <vector> #include <algorithm> // sort // HackerRank\HackerRank\Interview Preparation Kit\Greedy Algorithms\Luck Balance.cpp /* bool byImportanceDescThenLuckDesc(const std::vector<int> &a, const std::vector<int> &b) { if (a.back() != b.back()) { return a.back() > b.back(); } return a.front() > b.front(); } // Complete the luckBalance function below. int luckBalance(int k, std::vector<std::vector<int> > contests) { sort(contests.begin(), contests.end(), byImportanceDescThenLuckDesc); int luck = 0; for (std::vector<std::vector<int> >::iterator it = contests.begin(); it != contests.end(); ++it) { // If important and k > 0 we can afford to lose this contest if (it->back() == 1) { if (k > 0) { luck += it->front(); // Lose --k; } else { luck -= it->front(); // Win } } else { // Unimportant and can always lose luck += it->front(); // Lose } } return luck; } */
[ "anthony.das@gmail.com" ]
anthony.das@gmail.com
50e80706e759657431951074c68a157ea1d7507b
2c4a54cc3c1f48d9b34535b0f8d646c925b516e2
/mspectrogram.h
ac38e57d57663c50fd4d261f5ea938bd07204fde
[]
no_license
mParkesUCL/ImageInversion
6b93aa0d316f084b8fd212d50a73425b024f3269
3a4c124f81e7422cc176138bee9121b74bd53a81
refs/heads/master
2021-01-15T12:54:54.539543
2013-11-11T06:09:44
2013-11-11T06:09:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
325
h
#ifndef MSPECTROGRAM_H #define MSPECTROGRAM_H #include <QWidget> namespace Ui { class MSpectrogram; } class MSpectrogram : public QWidget { Q_OBJECT public: explicit MSpectrogram(QWidget *parent = 0); ~MSpectrogram(); private: Ui::MSpectrogram *ui; }; #endif // MSPECTROGRAM_H
[ "spesroma@gmail.com" ]
spesroma@gmail.com
c6430233aefb2ca566b6006aeb843c5320bfd94e
0022c1a9b713f240d9fe3bd1bab238efb527b606
/src/acceptor_ssl.h
6b21a87addf226ba96a6926acd78dc77b609a433
[ "BSD-2-Clause" ]
permissive
kkqin/securesocks5
661c887f1a84772cc2960016e4a30f0d5bee11ab
432cb4028c413808795645e4cd0cfff1c5aa2a2c
refs/heads/master
2023-04-11T11:39:33.796176
2021-04-07T07:40:47
2021-04-07T07:40:47
279,085,868
0
0
null
2020-07-21T08:01:20
2020-07-12T14:51:36
C++
UTF-8
C++
false
false
2,189
h
#ifndef NETWORK_ACCEPTOR_SSL_H_ #define NETWORK_ACCEPTOR_SSL_H_ #include "secure_socks5.h" #include "secure_socks5to.h" namespace network { class Acceptor : public asio::ip::tcp::acceptor { public: Acceptor(asio::io_service& io_service, int port) //NOLINT : asio::ip::tcp::acceptor(io_service, asio::ip::tcp::endpoint(asio::ip::tcp::v4(), port)) { } }; template <typename Method> class AcceptorSSL { public: AcceptorSSL(std::shared_ptr<asio::io_service> io_service, int port, const std::function<void(std::shared_ptr<Connection>&&)> onAccept) : context(asio::ssl::context::tlsv13), io_service(io_service), acceptor_(*(io_service.get()), port), onAccept_(onAccept) { std::string cert_file = "./data/ssl/s4wss.crt"; std::string private_key_file = "./data/ssl/s4wss.key"; context.use_certificate_chain_file(cert_file); context.use_private_key_file(private_key_file, asio::ssl::context::pem); accept(); } virtual ~AcceptorSSL() { acceptor_.cancel(); } // Delete copy constructors AcceptorSSL(const AcceptorSSL&) = delete; AcceptorSSL& operator=(const AcceptorSSL&) = delete; private: void do_prepare() { } void accept() { const auto socksConnect = std::make_shared<Socks5SecuretoImpl<Method>>(*io_service, context); acceptor_.async_accept(socksConnect->socket_.lowest_layer(), [this, socksConnect](const error_code& errorCode) { if (errorCode == asio::error::basic_errors::operation_aborted) { return; } else if (errorCode) { DLOG(ERROR) << "Could not accept connection: " << errorCode.message(); } else { DLOG(INFO) << "Accepted connection start handshake"; socksConnect->set_timeout(5); socksConnect->socket_.async_handshake(asio::ssl::stream_base::server, [this, socksConnect](const error_code& errorCode) { socksConnect->cancel_timeout(); if (!errorCode) { onAccept_(socksConnect); } }); } // Continue to accept new connections accept(); }); } asio::ssl::context context; std::shared_ptr<asio::io_service> io_service; Acceptor acceptor_; std::function<void(std::shared_ptr<Connection>&&)> onAccept_; }; } #endif// NETWORK_SRC_ACCEPTOR_SSL_H_
[ "asdfa@g" ]
asdfa@g
5d942b692010dc14c471a0936f2840f5155554d1
4b42d149cab66ad27fa955c0628537885587b7ee
/FriendshipIsMagic/jni/ai/dijkstra/pi.h
625253863e0cc07f0c66dd28f99023f799b7ee74
[]
no_license
lpzantony/friendshipismagic
808c8189a02f897c87480ab75c95c008b4e1cd37
7938a6bac1eaa6679243c8f3a885e872c1af4430
refs/heads/master
2021-01-01T06:41:52.623238
2016-06-29T13:47:43
2016-06-29T13:47:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
458
h
/* * Pi.h * * Created on: 17 juin 2016 * Author: admin */ #ifndef DIJKSTRA_PI_H_ #define DIJKSTRA_PI_H_ #include "../dijkstrainterface/piinterface.h" class VertexInterface; #include <map> class Pi : public PiInterface { private : std::map<VertexInterface*, int> pi; public: Pi(); virtual ~Pi(); void setValue(VertexInterface* vertex, int value) override; int getValue(VertexInterface* vertex) override; }; #endif /* DIJKSTRA_PI_H_ */
[ "adrien.marcenat@orange.fr" ]
adrien.marcenat@orange.fr
9325e141517112b4c34034859719ebe3ec738d6e
d9d5d358efc7160571a3876780d921dc782c9830
/gui/pages/LogPage.cpp
7fbf5929d067979d40e427d7a95c31c43899fc8a
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
shaszard/test
35b809ad0bd7309ffedd3c76440917a612679b05
7d1dd2a32f95eacaaea7d808cd07faf99e425977
HEAD
2016-09-06T18:23:44.062944
2014-11-02T19:29:09
2014-11-02T19:29:09
26,285,850
2
0
null
null
null
null
UTF-8
C++
false
false
2,889
cpp
#include "LogPage.h" #include "ui_LogPage.h" #include <QIcon> #include <QScrollBar> #include "logic/MinecraftProcess.h" #include "gui/GuiUtil.h" LogPage::LogPage(MinecraftProcess *proc, QWidget *parent) : QWidget(parent), ui(new Ui::LogPage), m_process(proc) { ui->setupUi(this); ui->tabWidget->tabBar()->hide(); connect(m_process, SIGNAL(log(QString, MessageLevel::Enum)), this, SLOT(write(QString, MessageLevel::Enum))); } LogPage::~LogPage() { delete ui; } bool LogPage::apply() { return true; } bool LogPage::shouldDisplay() const { return m_process->instance()->isRunning(); } void LogPage::on_btnPaste_clicked() { GuiUtil::uploadPaste(ui->text->toPlainText(), this); } void LogPage::on_btnCopy_clicked() { GuiUtil::setClipboardText(ui->text->toPlainText()); } void LogPage::on_btnClear_clicked() { ui->text->clear(); } void LogPage::writeColor(QString text, const char *color, const char * background) { // append a paragraph QString newtext; newtext += "<span style=\""; { if (color) newtext += QString("color:") + color + ";"; if (background) newtext += QString("background-color:") + background + ";"; newtext += "font-family: monospace;"; } newtext += "\">"; newtext += text.toHtmlEscaped(); newtext += "</span>"; ui->text->appendHtml(newtext); } void LogPage::write(QString data, MessageLevel::Enum mode) { QScrollBar *bar = ui->text->verticalScrollBar(); int max_bar = bar->maximum(); int val_bar = bar->value(); if(isVisible()) { if (m_scroll_active) { m_scroll_active = (max_bar - val_bar) <= 1; } else { m_scroll_active = val_bar == max_bar; } } if (data.endsWith('\n')) data = data.left(data.length() - 1); QStringList paragraphs = data.split('\n'); QStringList filtered; for (QString &paragraph : paragraphs) { // Quick hack for if(paragraph.contains("Detected an attempt by a mod null to perform game activity during mod construction")) continue; filtered.append(paragraph.trimmed()); } QListIterator<QString> iter(filtered); if (mode == MessageLevel::MultiMC) while (iter.hasNext()) writeColor(iter.next(), "blue", 0); else if (mode == MessageLevel::Error) while (iter.hasNext()) writeColor(iter.next(), "red", 0); else if (mode == MessageLevel::Warning) while (iter.hasNext()) writeColor(iter.next(), "orange", 0); else if (mode == MessageLevel::Fatal) while (iter.hasNext()) writeColor(iter.next(), "red", "black"); else if (mode == MessageLevel::Debug) while (iter.hasNext()) writeColor(iter.next(), "green", 0); else if (mode == MessageLevel::PrePost) while (iter.hasNext()) writeColor(iter.next(), "grey", 0); // TODO: implement other MessageLevels else while (iter.hasNext()) writeColor(iter.next(), 0, 0); if(isVisible()) { if (m_scroll_active) { bar->setValue(bar->maximum()); } m_last_scroll_value = bar->value(); } }
[ "peterix@gmail.com" ]
peterix@gmail.com
b43f9065743ba1f5f92c471ad43f2a8b9b82c554
b6fe7a5ce749cd05620080052cfea986817329bc
/src/subspaceSearchAlgorithms.h
ae0d6e28487aa76e68878575628d4644359fea73
[]
no_license
holtri/R-subcon
cce5d8eaf6b6902c181f1d88ffac1163dc0f6233
77fd778514fca4f5cf7ab705633bc56ce43474d9
refs/heads/master
2020-04-03T07:11:28.194347
2019-02-14T17:10:16
2019-02-14T17:10:16
49,747,108
2
0
null
2018-11-30T10:04:11
2016-01-15T21:53:58
C++
UTF-8
C++
false
false
2,183
h
#ifndef SUBSPACESEARCHALGORITHMS_H #define SUBSPACESEARCHALGORITHMS_H using namespace Rcpp; std::vector<int> sortIndices(const NumericVector &input); //' Greedy Maximum Deviation Heuristic //' //' Constructs one deviation maximizing subspace for each dimension. The search //' is based on the two dimensional deviations. For each dimension r, the //' heuristic orders the two dimensional projections [r, s_i] by deviation, with //' s_i being the conditional attribute. The search starts with the highest two //' dimensional projection as the initial subspace. The next candidate to be //' added to that subspace is the dimension that has the second highest //' deviation. If the deviation for r increases by adding a dimension, the //' subspace will be updated, else that dimension is discarded. //' //' Examples //' //' reference dimension: 1 //' 2-dim projections (ordered by deviation): //' [1,3] deviation(1|3) = 0.6 //' [1,2] deviation(1|2) = 0.5 //' [1,5] deviation(1|5) = 0.4 //' [1,4] deviation(1|4) = 0.3 //' //' Initial subspace: [1,3] //' //' add dimension 2 //' [1,2,3] deviation(1|2,3) = 0.65 -> increases the deviation for the reference dimension //' //' add dimension 5 //' [1,2,3,5] deviation(1|2,3) = 0.62 -> decreases the deviation for the reference dimension //' //' add dimension 5 //' [1,2,3,5] deviation(1|2,3,5) = 0.62 -> decreases the deviation for the reference dimension //' //' add dimension 4 //' [1,2,3,4] deviation(1|2,3,4) = 0.67 -> increases the deviation for the reference dimension //' //' Output space for reference dimension 1: [1,2,3,4] //' //' //' @param indexMap Index for the data objects if ordered by dimension. Each //' entry of the vector contains the index to the initial data set. The index //' is starting with 1. //' @param alpha Percentage of data objects to remain in the subspace slice //' (expected value). //' @param numRuns number of random subspace slices used to estimate the //' deviation. //' @return List of deviation maximizing subspaces, one for each reference dimension. //' @export // [[Rcpp::export]] std::vector<NumericVector> GMD(NumericMatrix indexMap, double alpha, int numRuns, int seed = -1); #endif
[ "holger.trittenbach@gmail.com" ]
holger.trittenbach@gmail.com
2ba25f31eda84d7b90c96ceee5af730b00059d57
fdaa2c607e4bcbd23a3445a68c3d0a8265f92f2f
/Fall 2018/CS 225/POTD/potd-q40/main.cpp
b29e722f08f6aa325b900f18c6b4777502d72035
[]
no_license
unnatr2/UIUC
a34cab9a0c867aa6e872800e365abaa25c08c9ae
9ee14d0635116c03e7868cd6b3266aa9ea428570
refs/heads/master
2021-03-03T21:38:40.858998
2020-03-09T23:32:42
2020-03-09T23:32:42
245,987,822
1
0
null
null
null
null
UTF-8
C++
false
false
890
cpp
#include "OfficeHour.h" #include "Student.h" #include <iostream> using namespace std; int main() { Student Billy = Student(12, "POTD"); Student Joel = Student(15, "MP"); Student Jean = Student(8, "MP"); Student Taylor = Student(6, "LAB"); Student TimTim = Student(13, "POTD"); queue<Student> officeHourQueue; officeHourQueue.push(Billy); officeHourQueue.push(Joel); officeHourQueue.push(Jean); officeHourQueue.push(Taylor); officeHourQueue.push(TimTim); Staffer Wade = Staffer("LAB", 4); Staffer Mattox = Staffer("MP", 0); vector<Staffer> onDutyStaff{Wade, Mattox}; int expectedWaitTime = waitTime(officeHourQueue, onDutyStaff, 1); cout << "The expected wait time for Taylor, the fourth student in the queue, is " << to_string(expectedWaitTime) << " minutes." << endl; // add your own tests here! return 0; };
[ "unnatr2@illinois.edu" ]
unnatr2@illinois.edu
1e6587fd085967eddc0e4a68658b39288ed2fdfd
8393915b57a5ff54938ad8d49f15ce617a640ddc
/src/core/camera_client.h
e45a2b90616997a38b4e815fbef9cd542fab4c06
[]
no_license
lizhiqi-coder/FFmpegStudio
8ffcf2f0aede20037c117f0a4895eff3336f28fa
ed1eb738e1737e3ae0c3bd6cb2f3cf0174afcc49
refs/heads/master
2021-09-21T13:00:50.585034
2017-12-04T12:58:49
2017-12-04T12:58:49
104,286,143
1
0
null
null
null
null
UTF-8
C++
false
false
383
h
// // Created by 58boy on 2017/9/5. // #ifndef FFMPEGSTUDIO_CAMERA_CLIENT_H #define FFMPEGSTUDIO_CAMERA_CLIENT_H #include <pthread.h> class CameraClient { public: void connect(); int detachThreadCreate(pthread_t *pthread,void *start_routine,void *arg); void startConnection(); static void doStartThread(void *arg); }; #endif //FFMPEGSTUDIO_CAMERA_CLIENT_H
[ "chinalizhiqi@gmail.com" ]
chinalizhiqi@gmail.com
a1ba76c2303276ed69b20dbadfe3e43e0d01f95f
67a6efcdbc5fca554fbf31be8456ad5a3a2dac6d
/test1/stream_based/main.cpp
e962da0aa70b6274bd03214577ab289531ff413f
[]
no_license
shahzadXilinx/hlsStreamOfBlockTests
20bf6ce122e7102b172dad659eaad2fcfdf4f2a4
d1f58f6d4353b6859e5178b6d522372ed3d73217
refs/heads/main
2022-12-28T23:38:31.116375
2020-10-19T00:36:38
2020-10-19T00:36:38
305,215,561
0
0
null
null
null
null
UTF-8
C++
false
false
2,483
cpp
#include <math.h> #include <stdio.h> #include <cstring> #include <vector> #include "dct.h" namespace ref { void DCT(float &d0, float &d1, float &d2, float &d3, float &d4, float &d5, float &d6, float &d7) { float tmp0 = d0 + d7; float tmp7 = d0 - d7; float tmp1 = d1 + d6; float tmp6 = d1 - d6; float tmp2 = d2 + d5; float tmp5 = d2 - d5; float tmp3 = d3 + d4; float tmp4 = d3 - d4; // Even part float tmp10 = tmp0 + tmp3; // phase 2 float tmp13 = tmp0 - tmp3; float tmp11 = tmp1 + tmp2; float tmp12 = tmp1 - tmp2; d0 = tmp10 + tmp11; // phase 3 d4 = tmp10 - tmp11; float z1 = (tmp12 + tmp13) * 0.707106781f; // c4 d2 = tmp13 + z1; // phase 5 d6 = tmp13 - z1; // Odd part tmp10 = tmp4 + tmp5; // phase 2 tmp11 = tmp5 + tmp6; tmp12 = tmp6 + tmp7; // The rotator is modified from fig 4-8 to avoid extra negations. float z5 = (tmp10 - tmp12) * 0.382683433f; // c6 float z2 = tmp10 * 0.541196100f + z5; // c2-c6 float z4 = tmp12 * 1.306562965f + z5; // c2+c6 float z3 = tmp11 * 0.707106781f; // c4 float z11 = tmp7 + z3; // phase 5 float z13 = tmp7 - z3; d5 = z13 + z2; // phase 6 d3 = z13 - z2; d1 = z11 + z4; d7 = z11 - z4; } void dct(float data[64]) { // DCT rows for(int i=0; i<64; i+=8) { DCT(data[i], data[i+1], data[i+2], data[i+3], data[i+4], data[i+5], data[i+6], data[i+7]); } // DCT columns for(int i=0; i<8; ++i) { DCT(data[i], data[i+8], data[i+16], data[i+24], data[i+32], data[i+40], data[i+48], data[i+56]); } } void dct(unsigned int nblocks, float *data) { for (int i=0; i<nblocks; i++) { dct( &data[64*i] ); } } }; int main(int argc, char *argv[]) { unsigned int nvalues; unsigned int nblocks; if (argc>1) nblocks = atoi(argv[1]); else nblocks = 512; nvalues = nblocks*64; printf("Running test %d blocks (%d values)\n", nblocks, nvalues); std::vector<float> ref_v(nvalues); hls::stream<float> dut_i; hls::stream<float> dut_o; float dat; for (int i=0; i<nvalues; i++) { dat = rand()%1024; dut_i.write(dat); ref_v[i] = dat; } ref::dct(nblocks, ref_v.data() ); krnl_dct(nblocks, dut_i, dut_o ); int err = 0; for (int i=0; i<nvalues; i++) { if (dut_o.read() != ref_v[i]) err++; } if (err) printf("Test finished with %d error(s)\n", err); else printf("Test PASSED\n"); return err; }
[ "shehzad.ee@gmail.com" ]
shehzad.ee@gmail.com
d2e8ecd3f44ebf25dd1bbd45ddf34cc8953a102a
7c468d4b9101297a4ceabadc1166063f4a324dd0
/src/main.cpp
25ef537a04c747f7f80f193a742b37c1de4cbb77
[]
no_license
ystc/kinste
6e625d5c6791f4a0f04611617ef9adbe2cf3690b
03f0428c6f66d3cbd556efb198840e1f75635237
refs/heads/master
2021-01-23T00:24:54.660845
2017-05-23T19:01:59
2017-05-23T19:01:59
85,726,780
0
0
null
null
null
null
UTF-8
C++
false
false
1,637
cpp
/******************************************************************************* * Filename: main.cpp * Author: ystc * Created: 12.01.2016 * Last change: 27.01.2017 *******************************************************************************/ /******************************************************************************* * * Copyright (C) YLOG Industry Solutions GmbH * * The copyright to the computer program(s) herein is the property * of YLOG Industry Solutions GmbH. The program(s) may be used and/or copied * only with the written permission of YLOG or in accordance with the * terms and conditions stipulated in the agreement/contract under * which the program(s) have been supplied. * ******************************************************************************/ #include <iostream> #include "inc/MainPageControl.h" #include "inc/UserInterface.h" //------------------------------------------------------------------------------ void printHelp() { cout << "Shuttle test Environment (STE) Version 1.3.0" << endl; cout << "Using Qt version 5.5.1" << endl << endl; cout << "Usage:\t\t./ste\n" << endl; cout << "Arguments:" << endl; cout << "\t\t-v\t\t\n\t\t-i [shuttle-ip]\n"; cout << "\t\t-f [tasi-run-file]\n"; } //------------------------------------------------------------------------------ int main(int argc, char* argv[]) { if(argc > 3) { printHelp(); return 0; } else if(argc == 2){ if(strcmp(argv[1], "-v") == 0){ printHelp(); return 0; } else{ printHelp(); } } else { MainPageControl main_page; main_page.show(argc, argv); } }
[ "steinkellnerchristoph@gmx.at" ]
steinkellnerchristoph@gmx.at
857d002801dad6715f3835f5aea95bbd122b3022
067690553cf7fa81b5911e8dd4fb405baa96b5b7
/9184/9184.cpp14.cpp
d805b85b2722033088d9ff10a32339fd58a97061
[ "MIT" ]
permissive
isac322/BOJ
4c79aab453c884cb253e7567002fc00e605bc69a
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
refs/heads/master
2021-04-18T22:30:05.273182
2019-02-21T11:36:58
2019-02-21T11:36:58
43,806,421
14
9
null
null
null
null
UTF-8
C++
false
false
657
cpp
#include <cstdio> using namespace std; int dp[20][20][20]; int solve(int a, int b, int c) { if (a < 0 || b < 0 || c < 0) return 1; else if (a >= 20 || b >= 20 || c >= 20) return solve(19, 19, 19); int &p = dp[a][b][c]; if (p) return p; if (a < b && b < c) return p = solve(a, b, c - 1) + solve(a, b - 1, c - 1) - solve(a, b - 1, c); else return p = solve(a - 1, b, c) + solve(a - 1, b - 1, c) + solve(a - 1, b, c - 1) - solve(a - 1, b - 1, c - 1); } int main() { int a, b, c; while (true) { scanf("%d%d%d", &a, &b, &c); if (a == -1 && b == a && c == a) break; else printf("w(%d, %d, %d) = %d\n", a, b, c, solve(a - 1, b - 1, c - 1)); } }
[ "isac322@naver.com" ]
isac322@naver.com
a672d52924b978891fcc383a09867a5180985efb
819506e59300756d657a328ce9418825eeb2c9cc
/tiaozhan/2.6/a.cpp
248177072ec0019bc15f186d2b977cedc09235e8
[]
no_license
zerolxf/zero
6a996c609e2863503b963d6798534c78b3c9847c
d8c73a1cc00f8a94c436dc2a40c814c63f9fa132
refs/heads/master
2021-06-27T04:13:00.721188
2020-10-08T07:45:46
2020-10-08T07:45:46
48,839,896
0
0
null
null
null
null
UTF-8
C++
false
false
840
cpp
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <string> #include <queue> #include <cstdlib> #include <algorithm> #include <stack> #include <map> #include <queue> #include <vector> using namespace std; const int maxn = 1e4+100; const int INF = 0x3f3f3f3f; #define pr(x) cout << #x << " = " << x << " "; #define prln(x) cout << #x << " = " << x <<endl; #define ll long long #define MEM(a,b) memset(a,b,sizeof a) #define CLR(a) memset(a,0,sizeof a) #define MN(a,b,n) memset(a,b,n*sizeof(int)) int main(){ #ifdef LOCAL freopen("C:\\Users\\Administrator\\Desktop\\in.txt","r",stdin); //freopen("C:\\Users\\Administrator\\Desktop\\out.txt","w",stdout); #endif ll a = 1229; ll b = sqrt(a); for(int i = 2; i <= b; ++i) { if(a%i==0) { prln(i); } } return 0; }
[ "liangxianfeng96@qq.com" ]
liangxianfeng96@qq.com
8c47b7d859f112ddec2193c290eaaf2b8e542080
5e7dcc8f3d25f1e9782958b5f94f1821dc6a93a2
/device/bluetooth/dbus/bluetooth_advertisement_monitor_application_service_provider.cc
b98395e60c687a1575913ca07371eb56cd170cd4
[ "BSD-3-Clause" ]
permissive
IMXEWANG/chromium
d931343ed7b77743c744e60e587167c1f1f137b7
95b21b8f5c91980b938afde361718d65955051d7
refs/heads/main
2023-06-18T16:04:05.793945
2021-07-25T07:56:56
2021-07-25T07:56:56
389,296,697
1
0
BSD-3-Clause
2021-07-25T08:16:36
2021-07-25T08:16:35
null
UTF-8
C++
false
false
1,099
cc
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "device/bluetooth/dbus/bluetooth_advertisement_monitor_application_service_provider.h" #include "base/memory/ptr_util.h" #include "device/bluetooth/dbus/bluetooth_advertisement_monitor_application_service_provider_impl.h" namespace bluez { BluetoothAdvertisementMonitorApplicationServiceProvider:: BluetoothAdvertisementMonitorApplicationServiceProvider() = default; BluetoothAdvertisementMonitorApplicationServiceProvider:: ~BluetoothAdvertisementMonitorApplicationServiceProvider() = default; // static std::unique_ptr<BluetoothAdvertisementMonitorApplicationServiceProvider> BluetoothAdvertisementMonitorApplicationServiceProvider::Create( dbus::Bus* bus, const dbus::ObjectPath& object_path) { return std::make_unique< BluetoothAdvertisementMonitorApplicationServiceProviderImpl>(bus, object_path); } } // namespace bluez
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
67aabd5ef040ed10ef1c30413069ad85606f6bff
dd6c70ba403c80610f5a78a3492f367388102505
/src/practice/dp/fpolice.cpp
959f2bb89ce4805ada9b550bd7af848b278d4735
[ "MIT" ]
permissive
paramsingh/cp
80e13abe4dddb2ea1517a6423a7426c452a59be2
126ac919e7ccef78c4571cfc104be21da4a1e954
refs/heads/master
2023-04-11T05:20:47.473163
2023-03-23T20:20:58
2023-03-23T20:21:05
27,965,608
16
6
null
2017-03-21T03:10:03
2014-12-13T16:01:19
C++
UTF-8
C++
false
false
1,768
cpp
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; vector<pii> graph[200]; vector<pii> risk[200]; int n, t; int ris[200][300]; int tim[200][300]; pii ans(int u, int rem) { if (ris[u][rem] != -1) return make_pair(ris[u][rem], tim[u][rem]); if (u == 1 && rem >= 0) { return make_pair(0, 0); } if (rem < 0) return make_pair(1e9, rem); int mnr = 1e9, ti = -1; for (int i = 0; i < graph[u].size(); i++) { int v = graph[u][i].first; if (v == u) continue; assert(risk[u][i].first == v); int wt = graph[u][i].second; int r = risk[u][i].second; pii go = ans(v, rem - wt); if (go.first + r < mnr) { mnr = go.first + r; ti = go.second + wt; } } ris[u][rem] = mnr; tim[u][rem] = ti; return make_pair(mnr, ti); } int main(void) { int test; scanf("%d", &test); while (test--) { scanf("%d %d", &n, &t); for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { int w; scanf("%d", &w); graph[j].push_back(make_pair(i, w)); } } for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { int r; scanf("%d", &r); risk[j].push_back(make_pair(i, r)); } } memset(ris, -1, sizeof(ris)); memset(tim, -1, sizeof(tim)); pii x = ans(n, t); if (x.first == 1e9) printf("-1\n"); else printf("%d %d\n", x.first, x.second); for (int i = 1; i <= n; i++) { graph[i].clear(); risk[i].clear(); } } return 0; }
[ "paramsingh258@gmail.com" ]
paramsingh258@gmail.com
a5a89765f023813fa835eb1d841b99f6c783b985
6cfe7c65380924bfd6fe46a7b6cd5b006b333e96
/source/physics/include/GateScintillationPB.hh
fc8bd2f1b171d377f08139c00f6d9fb4b1ffe4cf
[]
no_license
copernicus231/gatempi
800eb61dd5de373d591e9cb49630172e1c4809b2
b97c38418458dfd21e8d25887419f7967871782e
refs/heads/master
2020-12-24T12:01:56.966710
2012-08-13T05:12:22
2012-08-13T05:12:22
5,534,931
1
0
null
null
null
null
UTF-8
C++
false
false
438
hh
/*---------------------- GATE version name: gate_v6 Copyright (C): OpenGATE Collaboration This software is distributed under the terms of the GNU Lesser General Public Licence (LGPL) See GATE/LICENSE.txt for further details ----------------------*/ #ifndef GATESCINTILLATIONPB_HH #define GATESCINTILLATIONPB_HH #include "GateVProcess.hh" #include "G4Scintillation.hh" MAKE_PROCESS_AUTO_CREATOR(GateScintillationPB) #endif
[ "copernicus231@gmail.com" ]
copernicus231@gmail.com
c8328e8c1e14d44057efaf49d84f63ed5c5478aa
5456502f97627278cbd6e16d002d50f1de3da7bb
/extensions/common/alias.h
f7ef1e52be8d3f69414561eedc9e80bb3a9241da
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/Chromium_7C66
72d108a413909eb3bd36c73a6c2f98de1573b6e5
c8649ab2a0f5a747369ed50351209a42f59672ee
refs/heads/master
2023-03-16T12:51:40.231959
2017-12-20T10:38:26
2017-12-20T10:38:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,219
h
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_COMMON_ALIAS_H_ #define EXTENSIONS_COMMON_ALIAS_H_ #include <string> namespace extensions { // Information about an alias. // Main usage: describing aliases for extension features (extension permissions, // APIs), which is useful for ensuring backward-compatibility of extension // features when they get renamed. Old feature name can be defined as an alias // for the new feature name - this would ensure that the extensions using the // old feature name don't break. class Alias { public: // |name|: The alias name. // |real_name|: The real name behind alias. Alias(const char* const name, const char* const real_name) : name_(name), real_name_(real_name) {} ~Alias() {} const std::string& name() const { return name_; } const std::string& real_name() const { return real_name_; } private: // The alias name. std::string name_; // The real name behind the alias. std::string real_name_; }; } // namespace extensions #endif // EXTENSIONS_COMMON_ALIAS_H_
[ "lixiaodonglove7@aliyun.com" ]
lixiaodonglove7@aliyun.com
e8afa20a6d22188aa7596bd72f83feb5527fd07f
762609b0f94b624fa986093b58a9fc89ffe0a0c8
/code/L2_search-based_path_finding/navigation_astar/grid/src/call_node.cpp
d3e8c56662ae02a37f691dd554a3d51c6c9524e4
[ "LicenseRef-scancode-mulanpsl-2.0-en", "MulanPSL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Possiblexhy/Motion-Planning
7ebe6b1ea99281e8f9cd36e2d1ac2cd855650b83
fd99c569284fd0bae83bea59e521a5c2d9a1614f
refs/heads/main
2023-08-29T01:42:11.512509
2021-10-10T15:30:15
2021-10-10T15:30:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,506
cpp
#include <iostream> #include <fstream> #include <math.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl_conversions/pcl_conversions.h> #include <ros/ros.h> #include <ros/console.h> #include <sensor_msgs/PointCloud2.h> #include <nav_msgs/Path.h> #include <nav_msgs/Odometry.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <geometry_msgs/PoseStamped.h> #include "Astar_searcher.h" //#include "Jps_searcher.h" using namespace std; using namespace Eigen; using namespace navigation_astar; ofstream pose_road_points; double _resolution, _inv_resolution, _cloud_margin; double _x_size, _y_size; double start_pose_x, start_pose_y; bool _has_map = false; Points _start_pt; Points _map_lower, _map_upper; int _max_x_id, _max_y_id, _max_z_id; ros::Subscriber _map_sub, _pts_sub; ros::Publisher _grid_path_vis_pub, _visited_nodes_vis_pub, _grid_map_vis_pub; AstarPathFinder *_astar_path_finder = new AstarPathFinder(); //JPSPathFinder *_jps_path_finder = new JPSPathFinder(); void rcvWaypointsCallback(const nav_msgs::Path &wp); void rcvPointCloudCallBack(const sensor_msgs::PointCloud2 &pointcloud_map); void visGridPath(vector<Points> nodes, bool is_use_jps); void visVisitedNode(vector<Points> nodes); void pathFinding(const Points start_pt, const Points target_pt); void rcvWaypointsCallback(const nav_msgs::Path &wp) { if (wp.poses[0].pose.position.z < 0.0 || _has_map == false) return; //给出的终点坐标 Points target_pt; target_pt.x = wp.poses[0].pose.position.x; target_pt.y = wp.poses[0].pose.position.y; ROS_INFO("[node] receive the planning target"); pathFinding(_start_pt, target_pt); } void rcvPointCloudCallBack(const sensor_msgs::PointCloud2 &pointcloud_map) { // if (_has_map) // return; pcl::PointCloud<pcl::PointXYZ> cloud; pcl::PointCloud<pcl::PointXYZ> cloud_vis; sensor_msgs::PointCloud2 map_vis; pcl::fromROSMsg(pointcloud_map, cloud); if ((int)cloud.points.size() == 0) return; //加一个pt_inf改变栅格状态 pcl::PointXYZ pt, pt_inf; for (int idx = 0; idx < (int)cloud.points.size(); idx++) { pt = cloud.points[idx]; if (pose_road_points.fail()) { ROS_INFO("erro open the file"); cout << "erro open the file" << endl; exit(0); } pose_road_points << pt.x << ", " << pt.y << ", " << pt.z << endl; //将障碍物信息设置进入栅格化地图,为后续路径规划做准备 _astar_path_finder->setObs(pt.x, pt.y); //_jps_path_finder->setObs(pt.x, pt.y); Points apt; apt.x = pt.x; apt.y = pt.y; Points cor_round = _astar_path_finder->coordRounding(apt); // 2D栅格图 pt_inf.x = cor_round.x; pt_inf.y = cor_round.y; cloud_vis.points.push_back(pt_inf); } cloud_vis.width = cloud_vis.points.size(); cloud_vis.height = 1; cloud_vis.is_dense = true; pcl::toROSMsg(cloud_vis, map_vis); // 可视化地图部分 map_vis.header.frame_id = "/world"; _grid_map_vis_pub.publish(map_vis); _has_map = true; } void pathFinding(const Points start_pt, const Points target_pt) { _astar_path_finder->AstarGraphSearch(start_pt, target_pt); //获取规划的路径 auto grid_path = _astar_path_finder->getPath(); auto visited_nodes = _astar_path_finder->getVisitedNodes(); //为下次规划重置地图 _astar_path_finder->resetUsedGrids(); //可视化结果 visGridPath(grid_path, false); visVisitedNode(visited_nodes); #define _use_jps 0 #if _use_jps { _jps_path_finder->JPSGraphSearch(start_pt, target_pt); auto grid_path = _jps_path_finder->getPath(); auto visited_nodes = _jps_path_finder->getVisitedNodes(); //重置下次的地图 _jps_path_finder->resetUsedGrids(); //将结果可视化 visGridPath(grid_path, _use_jps); visVisitedNode(visited_nodes); } #endif } //将结果可视化 void visGridPath(vector<Points> nodes, bool is_use_jps) { visualization_msgs::Marker node_vis; node_vis.header.frame_id = "world"; if (is_use_jps) node_vis.ns = "demo_node/jps_path"; else node_vis.ns = "demo_node/astar_path"; node_vis.type = visualization_msgs::Marker::CUBE_LIST; node_vis.action = visualization_msgs::Marker::ADD; node_vis.id = 0; node_vis.pose.orientation.x = 0.0; node_vis.pose.orientation.y = 0.0; node_vis.pose.orientation.z = 0.0; node_vis.pose.orientation.w = 1.0; if (is_use_jps) { node_vis.color.a = 1.0; node_vis.color.r = 1.0; node_vis.color.g = 0.0; node_vis.color.b = 0.0; } else { node_vis.color.a = 1.0; node_vis.color.r = 0.0; node_vis.color.g = 1.0; node_vis.color.b = 0.0; } node_vis.scale.x = _resolution; node_vis.scale.y = _resolution; node_vis.scale.z = _resolution; geometry_msgs::Point pt; for (int i = 0; i < int(nodes.size()); i++) { Points coord = nodes[i]; pt.x = coord.x; pt.y = coord.y; node_vis.points.push_back(pt); } _grid_path_vis_pub.publish(node_vis); } void visVisitedNode(vector<Points> nodes) { visualization_msgs::Marker node_vis; node_vis.header.frame_id = "world"; node_vis.header.stamp = ros::Time::now(); node_vis.ns = "demo_node/expanded_nodes"; node_vis.type = visualization_msgs::Marker::CUBE_LIST; node_vis.action = visualization_msgs::Marker::ADD; node_vis.id = 0; node_vis.pose.orientation.x = 0.0; node_vis.pose.orientation.y = 0.0; node_vis.pose.orientation.z = 0.0; node_vis.pose.orientation.w = 1.0; node_vis.color.a = 0.5; node_vis.color.r = 0.0; node_vis.color.g = 0.0; node_vis.color.b = 1.0; node_vis.scale.x = _resolution; node_vis.scale.y = _resolution; node_vis.scale.z = _resolution; geometry_msgs::Point pt; for (int i = 0; i < int(nodes.size()); i++) { Points coord = nodes[i]; pt.x = coord.x; pt.y = coord.y; node_vis.points.push_back(pt); } _visited_nodes_vis_pub.publish(node_vis); } int main(int argc, char **argv) { pose_road_points.open("/home/spiderman/akewoshi/src/navigation_astar/pose.txt"); pose_road_points.setf(ios::fixed); pose_road_points.setf(ios::showpoint); pose_road_points.precision(2); //显示两位小数点 ros::init(argc, argv, "call_node"); ros::NodeHandle nh("~"); //用波浪号(~)字符将其声明为私有,则话题名称将变为/node1/bar。 _map_sub = nh.subscribe("map", 1, rcvPointCloudCallBack); _pts_sub = nh.subscribe("waypoints", 1, rcvWaypointsCallback); _grid_map_vis_pub = nh.advertise<sensor_msgs::PointCloud2>("grid_map_vis", 1); _grid_path_vis_pub = nh.advertise<visualization_msgs::Marker>("grid_path_vis", 1); _visited_nodes_vis_pub = nh.advertise<visualization_msgs::Marker>("visited_nodes_vis", 1); nh.param("map/cloud_margin", _cloud_margin, 0.0); nh.param("map/resolution", _resolution, 0.2); nh.param("map/x_size", _x_size, 50.0); //单位是 m nh.param("map/y_size", _y_size, 50.0); nh.param("planning/start_x", start_pose_x, 0.0); nh.param("planning/start_y", start_pose_y, 0.0); _start_pt.x = start_pose_x; _start_pt.y = start_pose_y; _map_lower.x = -_x_size / 2.0; //-30 _map_lower.y = -_y_size / 2.0; //-30 _map_upper.x = _x_size / 2.0; //30 _map_upper.y = _y_size / 2.0; //30 _inv_resolution = 1.0 / _resolution; //10 // 地图x,y最大index _max_x_id = (int)(_x_size * _inv_resolution); //60 * 10 = 600 _max_y_id = (int)(_y_size * _inv_resolution); //60 * 10 = 600 _astar_path_finder = new AstarPathFinder(); //(10, (-30, -30, ), (30, 30), 600, 600) _astar_path_finder->initGridMap(_resolution, _map_lower, _map_upper, _max_x_id, _max_y_id); // _jps_path_finder = new JPSPathFinder(); //_jps_path_finder->initGridMap(_resolution, _map_lower, _map_upper, _max_x_id, _max_y_id); ros::Rate rate(100); bool status = ros::ok(); while (status) { ros::spinOnce(); status = ros::ok(); rate.sleep(); } delete _astar_path_finder; //delete _jps_path_finder; pose_road_points.close(); return 0; }
[ "chenhuanjy@gmail.com" ]
chenhuanjy@gmail.com
82125b1b07374feb2cb0d0c8734c789ab507c97f
ae956d4076e4fc03b632a8c0e987e9ea5ca89f56
/SDK/TBP_VMP_UNI_M_MU_24_classes.h
8a273803e72eefdb7853a4e9e2ad1f3d9bcccdb0
[]
no_license
BrownBison/Bloodhunt-BASE
5c79c00917fcd43c4e1932bee3b94e85c89b6bc7
8ae1104b748dd4b294609717142404066b6bc1e6
refs/heads/main
2023-08-07T12:04:49.234272
2021-10-02T15:13:42
2021-10-02T15:13:42
638,649,990
1
0
null
2023-05-09T20:02:24
2023-05-09T20:02:23
null
UTF-8
C++
false
false
780
h
#pragma once // Name: bbbbbbbbbbbbbbbbbbbbbbblod, Version: 1 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass TBP_VMP_UNI_M_MU_24.TBP_VMP_UNI_M_MU_23_C // 0x0000 (FullSize[0x0148] - InheritedSize[0x0148]) class UTBP_VMP_UNI_M_MU_23_C : public UTigerCharacterFacePaintCustomization { public: static UClass* StaticClass() { static UClass* ptr = UObject::FindClass("BlueprintGeneratedClass TBP_VMP_UNI_M_MU_24.TBP_VMP_UNI_M_MU_23_C"); return ptr; } }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "69031575+leoireo@users.noreply.github.com" ]
69031575+leoireo@users.noreply.github.com
563969a032b9654922e101582deb508995fe470d
73ee941896043f9b3e2ab40028d24ddd202f695f
/external/chromium_org/ash/display/screen_position_controller_unittest.cc
3b62f52b27bffa9a6986d8bdb27fd1a88423f79e
[ "BSD-3-Clause" ]
permissive
CyFI-Lab-Public/RetroScope
d441ea28b33aceeb9888c330a54b033cd7d48b05
276b5b03d63f49235db74f2c501057abb9e79d89
refs/heads/master
2022-04-08T23:11:44.482107
2016-09-22T20:15:43
2016-09-22T20:15:43
58,890,600
5
3
null
null
null
null
UTF-8
C++
false
false
11,183
cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/display/screen_position_controller.h" #include "ash/display/display_controller.h" #include "ash/screen_ash.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/test/shell_test_api.h" #include "ui/aura/env.h" #include "ui/aura/root_window.h" #include "ui/aura/test/test_window_delegate.h" #include "ui/base/layout.h" #include "ui/gfx/screen.h" #if defined(OS_WIN) // TODO(scottmg): RootWindow doesn't get resized immediately on Windows // Ash. http://crbug.com/247916. #define MAYBE_ConvertHostPointToScreen DISABLED_ConvertHostPointToScreen #define MAYBE_ConvertHostPointToScreenHiDPI DISABLED_ConvertHostPointToScreenHiDPI #define MAYBE_ConvertHostPointToScreenRotate DISABLED_ConvertHostPointToScreenRotate #define MAYBE_ConvertHostPointToScreenUIScale DISABLED_ConvertHostPointToScreenUIScale #else #define MAYBE_ConvertHostPointToScreen ConvertHostPointToScreen #define MAYBE_ConvertHostPointToScreenHiDPI ConvertHostPointToScreenHiDPI #define MAYBE_ConvertHostPointToScreenRotate ConvertHostPointToScreenRotate #define MAYBE_ConvertHostPointToScreenUIScale ConvertHostPointToScreenUIScale #endif namespace ash { namespace test { namespace { void SetSecondaryDisplayLayout(DisplayLayout::Position position) { DisplayController* display_controller = Shell::GetInstance()->display_controller(); DisplayLayout layout = display_controller->GetCurrentDisplayLayout(); layout.position = position; display_controller->SetLayoutForCurrentDisplays(layout); } internal::ScreenPositionController* GetScreenPositionController() { ShellTestApi test_api(Shell::GetInstance()); return test_api.screen_position_controller(); } class ScreenPositionControllerTest : public test::AshTestBase { public: ScreenPositionControllerTest() {} virtual ~ScreenPositionControllerTest() {} virtual void SetUp() OVERRIDE { AshTestBase::SetUp(); window_.reset(new aura::Window(&window_delegate_)); window_->SetType(aura::client::WINDOW_TYPE_NORMAL); window_->Init(ui::LAYER_NOT_DRAWN); SetDefaultParentByPrimaryRootWindow(window_.get()); window_->set_id(1); } virtual void TearDown() OVERRIDE { window_.reset(); AshTestBase::TearDown(); } // Converts a point (x, y) in host window's coordinate to screen and // returns its string representation. std::string ConvertHostPointToScreen(int x, int y) const { gfx::Point point(x, y); GetScreenPositionController()->ConvertHostPointToScreen( window_->GetRootWindow(), &point); return point.ToString(); } protected: scoped_ptr<aura::Window> window_; aura::test::TestWindowDelegate window_delegate_; private: DISALLOW_COPY_AND_ASSIGN(ScreenPositionControllerTest); }; } // namespace TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreen) { UpdateDisplay("100+100-200x200,100+500-200x200"); Shell::RootWindowList root_windows = Shell::GetInstance()->GetAllRootWindows(); EXPECT_EQ("100,100", root_windows[0]->GetHostOrigin().ToString()); EXPECT_EQ("200x200", root_windows[0]->GetHostSize().ToString()); EXPECT_EQ("100,500", root_windows[1]->GetHostOrigin().ToString()); EXPECT_EQ("200x200", root_windows[1]->GetHostSize().ToString()); const gfx::Point window_pos(100, 100); window_->SetBoundsInScreen( gfx::Rect(window_pos, gfx::Size(100, 100)), Shell::GetScreen()->GetDisplayNearestPoint(window_pos)); SetSecondaryDisplayLayout(DisplayLayout::RIGHT); // The point is on the primary root window. EXPECT_EQ("50,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,250", ConvertHostPointToScreen(250, 250)); // The point is on the secondary display. EXPECT_EQ("250,0", ConvertHostPointToScreen(50, 400)); SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); // The point is on the primary root window. EXPECT_EQ("50,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,250", ConvertHostPointToScreen(250, 250)); // The point is on the secondary display. EXPECT_EQ("50,200", ConvertHostPointToScreen(50, 400)); SetSecondaryDisplayLayout(DisplayLayout::LEFT); // The point is on the primary root window. EXPECT_EQ("50,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,250", ConvertHostPointToScreen(250, 250)); // The point is on the secondary display. EXPECT_EQ("-150,0", ConvertHostPointToScreen(50, 400)); SetSecondaryDisplayLayout(DisplayLayout::TOP); // The point is on the primary root window. EXPECT_EQ("50,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,250", ConvertHostPointToScreen(250, 250)); // The point is on the secondary display. EXPECT_EQ("50,-200", ConvertHostPointToScreen(50, 400)); SetSecondaryDisplayLayout(DisplayLayout::RIGHT); const gfx::Point window_pos2(300, 100); window_->SetBoundsInScreen( gfx::Rect(window_pos2, gfx::Size(100, 100)), Shell::GetScreen()->GetDisplayNearestPoint(window_pos2)); // The point is on the secondary display. EXPECT_EQ("250,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("450,250", ConvertHostPointToScreen(250, 250)); // The point is on the primary root window. EXPECT_EQ("50,0", ConvertHostPointToScreen(50, -400)); SetSecondaryDisplayLayout(DisplayLayout::BOTTOM); // The point is on the secondary display. EXPECT_EQ("50,250", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,450", ConvertHostPointToScreen(250, 250)); // The point is on the primary root window. EXPECT_EQ("50,0", ConvertHostPointToScreen(50, -400)); SetSecondaryDisplayLayout(DisplayLayout::LEFT); // The point is on the secondary display. EXPECT_EQ("-150,50", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("50,250", ConvertHostPointToScreen(250, 250)); // The point is on the primary root window. EXPECT_EQ("50,0", ConvertHostPointToScreen(50, -400)); SetSecondaryDisplayLayout(DisplayLayout::TOP); // The point is on the secondary display. EXPECT_EQ("50,-150", ConvertHostPointToScreen(50, 50)); // The point is out of the all root windows. EXPECT_EQ("250,50", ConvertHostPointToScreen(250, 250)); // The point is on the primary root window. EXPECT_EQ("50,0", ConvertHostPointToScreen(50, -400)); } TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenHiDPI) { UpdateDisplay("100+100-200x200*2,100+500-200x200"); Shell::RootWindowList root_windows = Shell::GetInstance()->GetAllRootWindows(); EXPECT_EQ("100,100", root_windows[0]->GetHostOrigin().ToString()); EXPECT_EQ("200x200", root_windows[0]->GetHostSize().ToString()); EXPECT_EQ("100,500", root_windows[1]->GetHostOrigin().ToString()); EXPECT_EQ("200x200", root_windows[1]->GetHostSize().ToString()); // Put |window_| to the primary 2x display. window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50), Shell::GetScreen()->GetPrimaryDisplay()); // (30, 30) means the host coordinate, so the point is still on the primary // root window. Since it's 2x, the specified native point was halved. EXPECT_EQ("15,15", ConvertHostPointToScreen(30, 30)); // Similar to above but the point is out of the all root windows. EXPECT_EQ("200,200", ConvertHostPointToScreen(400, 400)); // Similar to above but the point is on the secondary display. EXPECT_EQ("100,15", ConvertHostPointToScreen(200, 30)); // On secondary display. The position on the 2nd host window is (150,50) // so the screen position is (100,0) + (150,50). EXPECT_EQ("250,50", ConvertHostPointToScreen(150, 450)); // At the edge but still in the primary display. Remaining of the primary // display is (50, 50) but adding ~100 since it's 2x-display. EXPECT_EQ("79,79", ConvertHostPointToScreen(158, 158)); // At the edge of the secondary display. EXPECT_EQ("80,80", ConvertHostPointToScreen(160, 160)); } TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenRotate) { // 1st display is rotated 90 clockise, and 2nd display is rotated // 270 clockwise. UpdateDisplay("100+100-200x200/r,100+500-200x200/l"); // Put |window_| to the 1st. window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50), Shell::GetScreen()->GetPrimaryDisplay()); // The point is on the 1st host. EXPECT_EQ("70,149", ConvertHostPointToScreen(50, 70)); // The point is out of the host windows. EXPECT_EQ("250,-51", ConvertHostPointToScreen(250, 250)); // The point is on the 2nd host. Point on 2nd host (30,150) - // rotate 270 clockwise -> (149, 30) - layout [+(200,0)] -> (349,30). EXPECT_EQ("349,30", ConvertHostPointToScreen(30, 450)); // Move |window_| to the 2nd. window_->SetBoundsInScreen(gfx::Rect(300, 20, 50, 50), ScreenAsh::GetSecondaryDisplay()); Shell::RootWindowList root_windows = Shell::GetInstance()->GetAllRootWindows(); EXPECT_EQ(root_windows[1], window_->GetRootWindow()); // The point is on the 2nd host. (50,70) on 2n host - // roatate 270 clockwise -> (129,50) -layout [+(200,0)] -> (329,50) EXPECT_EQ("329,50", ConvertHostPointToScreen(50, 70)); // The point is out of the host windows. EXPECT_EQ("449,50", ConvertHostPointToScreen(50, -50)); // The point is on the 2nd host. Point on 2nd host (50,50) - // rotate 90 clockwise -> (50, 149) EXPECT_EQ("50,149", ConvertHostPointToScreen(50, -350)); } TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenUIScale) { // 1st display is 2x density with 1.5 UI scale. UpdateDisplay("100+100-200x200*2@1.5,100+500-200x200"); // Put |window_| to the 1st. window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50), Shell::GetScreen()->GetPrimaryDisplay()); // The point is on the 1st host. EXPECT_EQ("45,45", ConvertHostPointToScreen(60, 60)); // The point is out of the host windows. EXPECT_EQ("45,225", ConvertHostPointToScreen(60, 300)); // The point is on the 2nd host. Point on 2nd host (60,150) - // - screen [+(150,0)] EXPECT_EQ("210,49", ConvertHostPointToScreen(60, 450)); // Move |window_| to the 2nd. window_->SetBoundsInScreen(gfx::Rect(300, 20, 50, 50), ScreenAsh::GetSecondaryDisplay()); Shell::RootWindowList root_windows = Shell::GetInstance()->GetAllRootWindows(); EXPECT_EQ(root_windows[1], window_->GetRootWindow()); // The point is on the 2nd host. (50,70) - ro EXPECT_EQ("210,70", ConvertHostPointToScreen(60, 70)); // The point is out of the host windows. EXPECT_EQ("210,-50", ConvertHostPointToScreen(60, -50)); // The point is on the 2nd host. Point on 1nd host (60, 60) // 1/2 * 1.5 = (45,45) EXPECT_EQ("45,45", ConvertHostPointToScreen(60, -340)); } } // namespace test } // namespace ash
[ "ProjectRetroScope@gmail.com" ]
ProjectRetroScope@gmail.com
cdab7a9cfcc5a2515833054b18f6173e013855ba
d223f5f893c4173256eb8b94336f02ad2757459d
/Leetcode/Algorithms/Easy/Palindrome_Linked_List/Palindrome_linked_list_M2.cpp
5cfd7aac0d7bda4b95375623648c5ad82666a740
[ "MIT" ]
permissive
tanvipenumudy/Competitive-Programming-Solutions
679c3f426bf0405447da373e27a2d956c6511989
9619181d79b7a861bbc80eff8a796866880b95e0
refs/heads/master
2023-02-26T14:20:41.213055
2021-01-29T07:09:02
2021-01-29T07:09:02
325,483,258
0
0
MIT
2021-01-29T07:09:03
2020-12-30T07:20:35
null
UTF-8
C++
false
false
755
cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ #include <bits/stdc++.h> class Solution { public: bool isPalindrome(ListNode *head) { std::stack<int> s; ListNode *temp = head; while (temp != NULL) { s.push(temp->val); temp = temp->next; } while (head != NULL) { int i = s.top(); if (head->val != i) return false; s.pop(); head = head->next; } return true; } };
[ "aaaanchakure@gmail.com" ]
aaaanchakure@gmail.com
df1cd67a6aed169bac0c2437f708188d8e88f2fc
fcf03ead74f6dc103ec3b07ffe3bce81c820660d
/Base/FileServer/Attributes/Attributes.cpp
f3ab61e8876a8658c67a48fd3bf89d02c2a184ec
[]
no_license
huellif/symbian-example
72097c9aec6d45d555a79a30d576dddc04a65a16
56f6c5e67a3d37961408fc51188d46d49bddcfdc
refs/heads/master
2016-09-06T12:49:32.021854
2010-10-14T06:31:20
2010-10-14T06:31:20
38,062,421
2
0
null
null
null
null
UTF-8
C++
false
false
9,396
cpp
// Attributes.cpp // // Copyright (C) Symbian Software Ltd 2000-2005. All rights reserved. // This code creates several files and directories inside // the private directory on drive C: // i.e. the directory "C:\private\0FFFFF03." // // Note that no special capabilities are needed provided all file // operations are directed at files that lie within // the private directory. This is the case with this example. // // Before the program terminates, // all files and directories created will be deleted. #include <f32file.h> #include "CommonFramework.h" LOCAL_D RFs fsSession; // example functions void DoDirectoryAttribsL(); void PrintDirectoryLists(); void DeleteAll(); // utility functions void FormatEntry(TDes& aBuffer, const TEntry& aEntry); void FormatAtt(TDes& aBuffer, const TUint aValue); void MakeSmallFile(const TDesC& aFileName); void WaitForKey() { _LIT(KMessage,"Press any key to continue\n"); console->Printf(KMessage); console->Getch(); } LOCAL_C void doExampleL() { // connect to file server User::LeaveIfError(fsSession.Connect()); // create the private directory // on drive C: // i.e. "C:\private\0FFFFF03\" // Note that the number 0FFFFF03 is the // process security id taken from the 2nd UID // specified in the mmp file. fsSession.CreatePrivatePath(EDriveC); // Set the session path to // this private directory on drive C: fsSession.SetSessionToPrivate(EDriveC); DoDirectoryAttribsL(); WaitForKey(); PrintDirectoryLists(); WaitForKey(); DeleteAll(); // close session with file server fsSession.Close(); } void DoDirectoryAttribsL() { // Define text to be used for display at the console. _LIT(KAttsMsg,"\nAttributes and entry details\n"); _LIT(KDateString,"%D%M%Y%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S%:3%+B"); _LIT(KDateMsg,"Using Entry():\nModification time of %S is %S\n"); _LIT(KSizeMsg,"Size = %d bytes\n"); _LIT(KBuffer,"%S"); _LIT(KEntryMsg,"Using Modified():\nModification time of %S is %S\n"); _LIT(KAttMsg,"Using Att():\n%S"); // Define subdirectory name and the file name to be used. _LIT(KSubDirName,"f32examp\\"); _LIT(KFileName,"tmpfile.txt"); // Create a file. // Display its entry details, its modification time // and its attributes. // Then change some attributes and print them again. console->Printf(KAttsMsg); // When referring to a directory rather than a file, // a backslash must be appended to the path. TFileName thePath; fsSession.PrivatePath(thePath); thePath.Append(KSubDirName); // Make the directory TInt err=fsSession.MkDir(thePath); if (err!=KErrAlreadyExists) // Don't leave if it already exists User::LeaveIfError(err); // Create a file in "private\0ffffff03\f32examp\ " thePath.Append(KFileName); MakeSmallFile(thePath); // Get entry details for file and print them TEntry entry; User::LeaveIfError(fsSession.Entry(thePath,entry)); TBuf<30> dateString; entry.iModified.FormatL(dateString,KDateString); // Modification date and time = time of file's creation console->Printf(KDateMsg,&entry.iName,&dateString); // Print size of file console->Printf(KSizeMsg,entry.iSize); TBuf<80> buffer; FormatEntry(buffer,entry); // Archive attribute should be set console->Printf(KBuffer,&buffer); buffer.Zero(); // get the entry details using Att() and Modified() TTime time; User::LeaveIfError(fsSession.Modified(thePath,time)); time.FormatL(dateString,KDateString); // Modification date and time = time of file's creation console->Printf(KEntryMsg,&entry.iName,&dateString); TUint value; User::LeaveIfError(fsSession.Att(thePath,value)); FormatAtt(buffer,value); // get and print file attributes console->Printf(KAttMsg,&buffer); buffer.Zero(); // Change entry details using SetEntry() to clear archive User::LeaveIfError(fsSession.SetEntry(thePath,time, NULL,KEntryAttArchive)); } void PrintDirectoryLists() { // Define text to be used for display at the console. _LIT(KListMsg,"\nDirectory listings\n"); _LIT(KListMsg2,"\nDirectories and files:\n"); _LIT(KDirList,"%S\n"); _LIT(KDirs,"\nDirectories:\n"); _LIT(KFilesSizes,"\nFiles and sizes:\n"); _LIT(KBytes," %d bytes\n"); _LIT(KNewLine,"\n"); // Define subdirectory names and the file names to be used here. _LIT(KDir1,"f32examp\\tmpdir1\\"); _LIT(KDir2,"f32examp\\tmpdir2\\"); _LIT(KFile2,"f32examp\\tmpfile2.txt"); _LIT(KDirName,"f32examp\\*"); // Create some directories and files // in private"\f32examp\." // List them using GetDir(), then list files and // directories in separate lists. console->Printf(KListMsg); TFileName thePrivatePath; fsSession.PrivatePath(thePrivatePath); TFileName thePath; TInt err; // Create private\0fffff03\f32examp\tmpdir1 thePath = thePrivatePath; thePath.Append(KDir1); err=fsSession.MkDir(thePath); if (err!=KErrAlreadyExists) User::LeaveIfError(err); // Don't leave if it already exists // Create "private\0fffff03\f32examp\tmpdir2" thePath = thePrivatePath; thePath.Append(KDir2); err=fsSession.MkDir(thePath); if (err!=KErrAlreadyExists) User::LeaveIfError(err); // Don't leave if it already exists // Create "private\0ffffff03\f32examp\tmpfile2.txt" thePath = thePrivatePath; thePath.Append(KFile2); MakeSmallFile(thePath); // Now list all files and directories in "\f32examp\" // // in alphabetical order. thePath = thePrivatePath; thePath.Append(KDirName); CDir* dirList; //err = fsSession.GetDir(thePath,KEntryAttMaskSupported,ESortByName,dirList); User::LeaveIfError(fsSession.GetDir(thePath,KEntryAttMaskSupported,ESortByName,dirList)); console->Printf(KListMsg2); TInt i; for (i=0;i<dirList->Count();i++) console->Printf(KDirList,&(*dirList)[i].iName); delete dirList; // List the files and directories in \f32examp\ separately CDir* fileList; User::LeaveIfError(fsSession.GetDir(thePath,KEntryAttNormal,ESortByName,fileList,dirList)); console->Printf(KDirs); for (i=0;i<dirList->Count();i++) console->Printf(KDirList,&(*dirList)[i].iName); console->Printf(KFilesSizes); for (i=0;i<fileList->Count();i++) { console->Printf(KDirList,&(*fileList)[i].iName); console->Printf(KBytes,(*fileList)[i].iSize); } console->Printf(KNewLine); delete dirList; delete fileList; } void DeleteAll() // Delete all the files and directories which have been created { // Define descriptor constants using the _LIT macro _LIT(KDeleteMsg,"\nDeleteAll()\n"); _LIT(KFile2,"f32examp\\tmpfile2.txt"); _LIT(KDir1,"f32examp\\tmpdir1\\"); _LIT(KDir2,"f32examp\\tmpdir2\\"); _LIT(KFile1,"f32examp\\tmpfile.txt"); _LIT(KTopDir,"f32examp\\"); console->Printf(KDeleteMsg); TFileName thePrivatePath; fsSession.PrivatePath(thePrivatePath); TFileName thePath; thePath = thePrivatePath; thePath.Append(KFile2); User::LeaveIfError(fsSession.Delete(thePath)); thePath = thePrivatePath; thePath.Append(KDir1); User::LeaveIfError(fsSession.RmDir(thePath)); thePath = thePrivatePath; thePath.Append(KDir2); User::LeaveIfError(fsSession.RmDir(thePath)); thePath = thePrivatePath; thePath.Append(KFile1); User::LeaveIfError(fsSession.Delete(thePath)); thePath = thePrivatePath; thePath.Append(KTopDir); User::LeaveIfError(fsSession.RmDir(thePath)); } void MakeSmallFile(const TDesC& aFileName) { _LIT8(KFileData,"Some data"); RFile file; User::LeaveIfError(file.Replace(fsSession,aFileName,EFileWrite)); User::LeaveIfError(file.Write(KFileData)); User::LeaveIfError(file.Flush()); // Commit data file.Close(); // close file having finished with it } void FormatEntry(TDes& aBuffer, const TEntry& aEntry) { _LIT(KEntryDetails,"Entry details: "); _LIT(KReadOnly," Read-only"); _LIT(KHidden," Hidden"); _LIT(KSystem," System"); _LIT(KDirectory," Directory"); _LIT(KArchive," Archive"); _LIT(KNewLIne,"\n"); aBuffer.Append(KEntryDetails); if(aEntry.IsReadOnly()) aBuffer.Append(KReadOnly); if(aEntry.IsHidden()) aBuffer.Append(KHidden); if(aEntry.IsSystem()) aBuffer.Append(KSystem); if(aEntry.IsDir()) aBuffer.Append(KDirectory); if(aEntry.IsArchive()) aBuffer.Append(KArchive); aBuffer.Append(KNewLIne); } void FormatAtt(TDes& aBuffer, const TUint aValue) { _LIT(KAttsMsg,"Attributes set are:"); _LIT(KNormal," Normal"); _LIT(KReadOnly," Read-only"); _LIT(KHidden," Hidden"); _LIT(KSystem," System"); _LIT(KVolume," Volume"); _LIT(KDir," Directory"); _LIT(KArchive," Archive"); _LIT(KNewLine,"\n"); aBuffer.Append(KAttsMsg); if (aValue & KEntryAttNormal) { aBuffer.Append(KNormal); return; } if (aValue & KEntryAttReadOnly) aBuffer.Append(KReadOnly); if (aValue & KEntryAttHidden) aBuffer.Append(KHidden); if (aValue & KEntryAttSystem) aBuffer.Append(KSystem); if (aValue & KEntryAttVolume) aBuffer.Append(KVolume); if (aValue & KEntryAttDir) aBuffer.Append(KDir); if (aValue & KEntryAttArchive) aBuffer.Append(KArchive); aBuffer.Append(KNewLine); }
[ "liuxk99@bdc341c6-17c0-11de-ac9f-1d9250355bca" ]
liuxk99@bdc341c6-17c0-11de-ac9f-1d9250355bca
88edb3f23630f392ad50fe68f95a3645b19fc1fb
88f9b293841b9150b352cd1a4c2eb3757796b05c
/source/game.h
6b76be6f0dd482af007c0ab240fddad32bd83ac9
[]
no_license
viniciuscagnotto/Hoppe
0dfcf372db1646e3448919e794613883b96520e2
3896389535c497e569e5e81efd1be72407008b98
refs/heads/master
2021-01-02T09:14:54.590846
2014-06-15T18:26:53
2014-06-15T18:26:53
20,862,033
0
0
null
null
null
null
UTF-8
C++
false
false
5,985
h
/* * (C) 2001-2012 Marmalade. All Rights Reserved. * * This document is protected by copyright, and contains information * proprietary to Marmalade. * * This file consists of source code released by Marmalade under * the terms of the accompanying End User License Agreement (EULA). * Please do not use this program/source code before you have read the * EULA and have agreed to be bound by its terms. */ #if !defined(__GAME_H__) #define __GAME_H__ #include "grid.h" #include "scene.h" // Constants that change the games behaviour #define START_ROUND_TIME 110 #define ROUND_TIME_STEP 10 #define START_TARGET_SCORE 600 #define TARGET_SCORE_STEP 100 // Constants that are used to fit the game to different screen sizes #define FONT_HEIGHT 15 #define FONT_DESIGN_WIDTH 320 #define GRAPHIC_DESIGN_WIDTH 768 /** * @enum eGameState * * @brief List of game states. */ enum eGameState { paused = 0, // The game is paused waitingFirstGem = 1, // The game is waiting for first gem selection waitingSecondGem = 2, // The game is waiting for second gem selection thinking = 3, // The game is analysing the move and removing blocks / adding new blocks gemsFalling = 4, // The game is waiting for gems to stop falling roundOver = 5, // The game round is over }; /** * @class Game * * @brief The main game scene. * * The main game scene containms all UI elements associated with the mani game as well as the game grid. The Game class is resopnsible for: * - Creating and updating the game areas user interface * - Detecting and responding to touches on the grid * - Managing the games state * - Keeping score and moving frmo round to round * - Updating the target gem * - Switching between the game, pause and main menu scenes * - Displaying end of round information via the info panel */ class Game : public Scene { protected: Grid* gemsGrid; // Game grid int currentRound; // Current tound that is in play int currentRoundScore; // Current round score float currentRoundTime; // Current round time (this counts downwards) int targetRoundScore; // Target round score (player must beat this to win round) int targetGem; // Current target gem to destroy to gain bonus points int gridTouchesX[2]; // First and second grid touch pos on x-axis int gridTouchesY[2]; // First and second grid touch pos on y-axis eGameState gameState; // Current game state eGameState oldGameState; // Previous game state bool infoPanelVisible; // Info panel visible state int startRoundTime; // Players time limit for first round float fontScale; // Font is correct size on 320 wide screen so we scale to match native screen size float actualFontHeight; // The actual pixel height of the font float graphicsScale; // Graphics are designed for 768 wide screen so we scale to native screen size // UI components CSprite* gridSprite; CSprite* leftPlacard; CSprite* rightPlacard; CLabel* scoreLabelText; CLabel* scoreLabel; CLabel* targetScoreLabelText; CLabel* targetScoreLabel; CSprite* targetGemSprite; CLabel* roundLabelText; CLabel* roundLabel; CLabel* timerLabelText; CLabel* timerLabel; CSprite* pauseSprite; CSprite* facebookSprite; CSprite* infoPanel; CLabel* infoPanelTitleLabel; CLabel* infoPanelMessageLabel; CSprite* selector; int uiYPosition; public: Grid* getGrid() { return gemsGrid; } eGameState getGameState() const { return gameState; } int* getGridTouchesX() { return gridTouchesX; } int* getGridTouchesY() { return gridTouchesY; } void setTargetGem(int type); float getGraphicsScale() { return graphicsScale; } float getFontScale() { return fontScale; } private: void initUI(); public: Game() : gemsGrid(0) {} ~Game(); // initialise the game void Init(int grid_width, int grid_height); // Update the game void Update(float deltaTime = 0.0f, float alphaMul = 1.0f); // Render the game void Render(); void switchToScene(const char* scene_name); static void gemSwapBackFinished(Timer* timer, void* userData); static void startGemsFalling(Timer* timer, void* userData); static void gemSwapFinished(Timer* timer, void* userData); static void chooseTargetGem(Timer* timer, void* userData); void removeGem(Gem* gem); void changeGameState(eGameState game_state); void addToRoundScore(int score, int gem_type); void showInfoPanel(const char* title, const char* info); void hideInfoPanel(); void pauseGame(); void resumeGame(); void initRound(); void endOfRound(); void newGame(); void postFacebookUpdate(); void initInfoPanelUI(); void disableAds(); void purchaseNoAds(); }; #endif // __GAME_H__
[ "viniciuscagnotto@gmail.com" ]
viniciuscagnotto@gmail.com
d2482f41e49e23a831ce56d76ff04e00b12f0a0f
c7a9c8cadbfd2bcf2c373daee276104e93ce954a
/Library/GMFmodStudio/gmfs_studio_event_description.cpp
6daa6fde9091c00aace5e05e8d4565b09df7974c
[]
no_license
tadashibashi/GMFmodStudio
9b21c133fbe19242da6926461c7f36038c51a27d
ae4ae95c27b996a5a91a16b7df5cbbc75daebc01
refs/heads/main
2023-08-26T12:45:44.599708
2021-10-20T06:14:49
2021-10-20T06:14:49
340,236,219
0
0
null
null
null
null
UTF-8
C++
false
false
14,074
cpp
#include "gmfs_common.h" #include "gmfs_buffer.h" #include <iostream> typedef FMOD::Studio::EventDescription EvDesc; // ============================================================================ // Instances // ============================================================================ /* * Create Event Instance * Returns the event instance ptr or NULL if there was a problem creating it. */ gms_export double fmod_studio_evdesc_create_instance(char *ptr) { FMOD::Studio::EventInstance *inst{ }; check = ((EvDesc *)ptr)->createInstance(&inst); return (double)(uintptr_t)inst; } /* * Get Instance Count. * Returns -1 if the event description pointer is not a valid event description pointer. */ gms_export double fmod_studio_evdesc_get_instance_count(char *ptr) { int instance_count{ }; check = ((EvDesc *)ptr)->getInstanceCount(&instance_count); return static_cast<double>(instance_count); } // Fills a buffer with an array of all the events instances as ptrs cast to uint64. // Slow because of dynamic memory allocation. // Returns count written on success and -1 on error. gms_export double fmod_studio_evdesc_get_instance_list(char *ptr, double capacity, char *gmbuf) { int count{ }; if (((EvDesc *)ptr)->isValid()) { check = ((EvDesc *)ptr)->getInstanceCount(&count); if (check != FMOD_OK) return count; if (count > capacity) count = (int)capacity; FMOD::Studio::EventInstance **insts = new FMOD::Studio::EventInstance *[(int)count]; check = ((EvDesc *)ptr)->getInstanceList(insts, count, &count); if (check == FMOD_OK) { Buffer buf(gmbuf); for (int i = 0; i < count; ++i) { buf.write<uint64_t>((uint64_t)(uintptr_t)insts[i]); } } delete[] insts; } return static_cast<double>(count); } /* * Release All Instances. * Returns true or 1 on success, and false or 0 on failure. */ gms_export void fmod_studio_evdesc_release_all_instances(char *ptr) { check = ((EvDesc *)ptr)->releaseAllInstances(); } // ============================================================================ // Sample Data // ============================================================================ /* * Loads all non-streaming sample data used by the event and any referenced event. * Sample loading happens asynchronously and must be checked via * getSampleLoadingState to poll for when the data has loaded. */ gms_export void fmod_studio_evdesc_load_sample_data(char *ptr) { check = ((EvDesc *)ptr)->loadSampleData(); } /* * Unloads all non-streaming sample data. * Sample data will not be unloaded until all instances of the event are released. * Returns true or 1 on success, and false or 0 on failure. */ gms_export void fmod_studio_evdesc_unload_sample_data(char *ptr) { check = ((EvDesc *)ptr)->unloadSampleData(); } /* * Unloads all non-streaming sample data. * Sample data will not be unloaded until all instances of the event are released. * Returns loading state enum on success or -1 on failure. */ gms_export double fmod_studio_evdesc_get_sample_loading_state(char *ptr) { FMOD_STUDIO_LOADING_STATE state{ }; check = ((EvDesc *)ptr)->getSampleLoadingState(&state); return static_cast<double>(state); } // ============================================================================ // Attributes // ============================================================================ /* * Checks if the EventDescription is 3D. * Returns true or false or -1 on error. */ gms_export double fmod_studio_evdesc_is_3D(char *ptr) { bool is3D{ }; check = ((EvDesc *)ptr)->is3D(&is3D); return static_cast<double>(is3D); } /* * Checks if the EventDescription is a oneshot. * Returns true or false or -1 on error. */ gms_export double fmod_studio_evdesc_is_oneshot(char *ptr) { bool isOneshot{ }; check = ((EvDesc *)ptr)->isOneshot(&isOneshot); return static_cast<double>(isOneshot); } /* * Checks if the EventDescription is a snapshot. * Returns true or false or -1 on error. */ gms_export double fmod_studio_evdesc_is_snapshot(char *ptr) { bool isSnapshot{ }; check = ((EvDesc *)ptr)->isSnapshot(&isSnapshot); return static_cast<double>(isSnapshot); } /* * Checks if the EventDescription is a stream. * Returns true or false or -1 on error. */ gms_export double fmod_studio_evdesc_is_stream(char *ptr) { bool isStream{ }; check = ((EvDesc *)ptr)->isStream(&isStream); return static_cast<double>(isStream); } /* * Checks if the EventDescription has any sustain points. * Returns true or false or -1 on error. */ gms_export double fmod_studio_evdesc_has_cue(char *ptr) { bool hasCue{ }; check = ((EvDesc *)ptr)->hasCue(&hasCue); return static_cast<double>(hasCue); } /* * Get the EventDescription's maximum distance for 3D attenuation. * Returns maximum distance or -1 on error. */ gms_export double fmod_studio_evdesc_get_max_distance(char *ptr) { float maxdist{ }; check = ((EvDesc *)ptr)->getMaximumDistance(&maxdist); return static_cast<double>(maxdist); } /* * Get the EventDescription's minimum distance for 3D attenuation. * Returns minimum distance or -1 on error. */ gms_export double fmod_studio_evdesc_get_min_distance(char *ptr) { float mindist{ }; check = ((EvDesc *)ptr)->getMinimumDistance(&mindist); return static_cast<double>(mindist); } /* * Retrieves the sound size for 3D panning. * Retrieves the largest Sound Size value of all Spatializers and 3D Object * Spatializers on the event's master track. Returns zero if there are no * Spatializers or 3D Object Spatializers. * Returns sound size or -1 on error. */ gms_export double fmod_studio_evdesc_get_sound_size(char *ptr) { float size{ }; check = ((EvDesc *)ptr)->getSoundSize(&size); return static_cast<double>(size); } // ============================================================================ // Parameters // ============================================================================ gms_export double fmod_studio_evdesc_get_paramdesc_count(char *ptr) { int count{ }; check = ((EvDesc *)ptr)->getParameterDescriptionCount(&count); return static_cast<double>(count); } // Fills a gm buffer with information for a parameter description. // Returns 0 on success and -1 on error. gms_export void fmod_studio_evdesc_get_paramdesc_by_name(char *ptr, char *name, char *buf_address) { if (((EvDesc *)ptr)->isValid()) { FMOD_STUDIO_PARAMETER_DESCRIPTION param; check = ((EvDesc *)ptr)->getParameterDescriptionByName(name, &param); if (check == FMOD_OK) { Buffer buf(buf_address); buf.write_char_star(param.name); buf.write<uint32_t>(param.id.data1); buf.write<uint32_t>(param.id.data2); buf.write(param.minimum); buf.write(param.maximum); buf.write(param.defaultvalue); buf.write<uint32_t>(param.type); buf.write<uint32_t>(param.flags); } } else { check = FMOD_ERR_INVALID_HANDLE; } } // Fills a gm buffer with information for a parameter description. // Returns 0 on success and -1 on error. gms_export void fmod_studio_evdesc_get_paramdesc_by_index(char *ptr, double index, char *buf_address) { if (((EvDesc *)ptr)->isValid()) { FMOD_STUDIO_PARAMETER_DESCRIPTION param{ }; check = ((EvDesc *)ptr)->getParameterDescriptionByIndex(static_cast<int>(index), &param); if (check == FMOD_OK) { Buffer buf(buf_address); buf.write_char_star(param.name); buf.write<uint32_t>(param.id.data1); buf.write<uint32_t>(param.id.data2); buf.write(param.minimum); buf.write(param.maximum); buf.write(param.defaultvalue); buf.write<uint32_t>(param.type); buf.write<uint32_t>(param.flags); } } else { check = FMOD_ERR_INVALID_HANDLE; } } // Fills a gm buffer with information for a parameter description. // Returns 0 on success and -1 on error. gms_export void fmod_studio_evdesc_get_paramdesc_by_id(char *ptr, char *buf_address) { if (((EvDesc *)ptr)->isValid()) { Buffer buf(buf_address); FMOD_STUDIO_PARAMETER_ID id; id.data1 = buf.read<uint32_t>(); id.data2 = buf.read<uint32_t>(); FMOD_STUDIO_PARAMETER_DESCRIPTION param{ }; check = ((EvDesc *)ptr)->getParameterDescriptionByID(id, &param); if (check == FMOD_OK) { buf.goto_start(); buf.write_char_star(param.name); buf.write<uint32_t>(param.id.data1); buf.write<uint32_t>(param.id.data2); buf.write(param.minimum); buf.write(param.maximum); buf.write(param.defaultvalue); buf.write<uint32_t>(param.type); buf.write<uint32_t>(param.flags); } } else { check = FMOD_ERR_INVALID_HANDLE; } } // ============================================================================ // User Properties // ============================================================================ /* * Retrieves the data of the user property. * Returns 0 on success and -1 on error. */ gms_export void fmod_studio_evdesc_get_user_property(char *ptr, const char *name, char *gmbuf) { if (((EvDesc *)ptr)->isValid()) { FMOD_STUDIO_USER_PROPERTY prop; check = ((EvDesc *)ptr)->getUserProperty(name, &prop); if (check == FMOD_OK) { Buffer buf(gmbuf); buf.write_char_star(prop.name); buf.write((uint32_t)prop.type); switch (prop.type) { case FMOD_STUDIO_USER_PROPERTY_TYPE_BOOLEAN: buf.write<int8_t>(prop.boolvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_FLOAT: buf.write(prop.floatvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_INTEGER: buf.write<int32_t>(prop.intvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_STRING: buf.write_char_star(prop.stringvalue); break; default: std::cerr << "GMFMOD Internal Error! Tried to get the value of user property \"" << prop.name << ", but the type of property was not supported.\n"; break; } } } } /* * Retrieves the data of the user property at the indicated index. * Returns 0 on success and -1 on error. */ gms_export void fmod_studio_evdesc_get_user_property_by_index(char *ptr, double index, char *gmbuf) { if (((EvDesc *)ptr)->isValid()) { FMOD_STUDIO_USER_PROPERTY prop{ }; check = ((EvDesc *)ptr)->getUserPropertyByIndex(static_cast<int>(index), &prop); if (check == FMOD_OK) { Buffer buf(gmbuf); buf.write_char_star(prop.name); buf.write((uint32_t)prop.type); switch (prop.type) { case FMOD_STUDIO_USER_PROPERTY_TYPE_BOOLEAN: buf.write<int8_t>(prop.boolvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_FLOAT: buf.write(prop.floatvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_INTEGER: buf.write<int32_t>(prop.intvalue); break; case FMOD_STUDIO_USER_PROPERTY_TYPE_STRING: buf.write_char_star(prop.stringvalue); break; default: std::cerr << "Tried to get the value of user property \"" << prop.name << ", but the type of property was not supported.\n"; break; } } } else { check = FMOD_ERR_INVALID_HANDLE; } } /* * Retrieves the number of user properties attached to an event description. * Returns the number of properties or -1 on error. */ gms_export double fmod_studio_evdesc_get_user_property_count(char *ptr) { int count{ }; check = ((EvDesc *)ptr)->getUserPropertyCount(&count); return static_cast<double>(count); } // ============================================================================ // General // ============================================================================ gms_export void fmod_studio_evdesc_get_id(char *ptr, char *gm_buf) { if (((EvDesc *)ptr)->isValid()) { FMOD_GUID id{ }; check = ((EvDesc *)ptr)->getID(&id); if (check == FMOD_OK) { Buffer buffer(gm_buf); buffer.write<uint32_t>(id.Data1); buffer.write<uint16_t>(id.Data2); buffer.write<uint16_t>(id.Data3); for (int i = 0; i < 8; ++i) { buffer.write<uint8_t>(id.Data4[i]); } } } } /* * Gets the length of the EventDescription in milliseconds. * Returns length or -1 on error. */ gms_export double fmod_studio_evdesc_get_length(char *ptr) { int length{ }; check = ((EvDesc *)ptr)->getLength(&length); return static_cast<double>(length); } /* * Gets the path of the EventDescription. * Returns path or nullptr on error. */ gms_export const char *fmod_studio_evdesc_get_path(char *ptr) { static std::string ret; if (((EvDesc *)ptr)->isValid()) { char path[100]; check = ((EvDesc *)ptr)->getPath(path, 100, nullptr); if (check == FMOD_OK) { ret.assign(path); } } else { check = FMOD_ERR_INVALID_HANDLE; } return ret.c_str(); } /* * Checks if the EventDescription reference is valid. * Returns true or false. */ gms_export double fmod_studio_evdesc_is_valid(char *ptr) { return (((EvDesc *)ptr)->isValid()); }
[ "a.ishibashi.music@gmail.com" ]
a.ishibashi.music@gmail.com
c64a90f31f635ebe1c49e288c9caca7514a749ad
ebb4bc2d1dade516ecbfdcdcc4236af942202fe1
/DocumentXML.h
ec4de38ac96b04478e9daf9f131575e12c1a3352
[]
no_license
jeanlouhallee/inf3105-tp2
d67bfc860e2c3bb649000ff26451eb0af2287ecd
739dfee09cec8331a2e4fbe15b9551b3e8224d19
refs/heads/master
2021-05-05T13:00:31.951084
2017-04-14T01:02:08
2017-04-14T01:02:08
118,354,086
0
2
null
null
null
null
UTF-8
C++
false
false
6,487
h
/* * LecteurXML.h * * Created on: Mar 18, 2017 * Author: Bruno Malenfant */ #ifndef DOCUMENTXML_H_ #define DOCUMENTXML_H_ #include <iostream> #include <map> #include <vector> #include <string> using namespace std; class Contenu { public : Contenu( void ); Contenu( const Contenu & a_contenu ); virtual ~Contenu( void ); virtual bool estElement( void ) const; virtual string texte( void ) const; virtual ostream & afficher( ostream & ) const; friend ostream & operator << ( ostream &, const Contenu & ); }; class Texte : public Contenu { private : string _texte; public : Texte( void ); Texte( string a_texte ); Texte( const Texte & a_texte ); virtual ~Texte( void ); string texte( void ) const; ostream & afficher( ostream & ) const; }; class AttributNonDefinie : public exception { private : string _nom; public : AttributNonDefinie( void ); AttributNonDefinie( string a_nom ); AttributNonDefinie( const AttributNonDefinie & a_e ); virtual ~AttributNonDefinie( void ); virtual const char* what() const throw(); }; class Element : public Contenu { private : string _nom; Element * _parent; map< string, string > _attributs; vector< Contenu * > _enfants; public : Element( void ); Element( Element * a_parent, string a_nom ); Element( const Element & a_element ); virtual ~Element( void ); Texte * ajouterTexte( string a_texte ); Element * ajouterElement( string a_nom ); void ajouterAttribut( string a_nom, string a_valeur ); bool estElement( void ) const; string texte( void ) const; Element * parent( void ) const; string nom( void ) const; string attribut( string a_nom ) const throw( AttributNonDefinie ); vector< Contenu * >::const_iterator begin( void ) const; vector< Contenu * >::const_iterator end( void ) const; virtual ostream & afficher( ostream & ) const; }; class DocumentXML { private : Element * _racine; public : DocumentXML(); DocumentXML( const DocumentXML & a_documentXML ); virtual ~DocumentXML( void ); Element * racine( void ) const; friend ostream & operator << ( ostream &, const DocumentXML & ); }; /* start-tags and end-tags, or, for empty elements, by an empty-element tag [1] document ::= prolog element Misc* [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] [3] S ::= (#x20 | #x9 | #xD | #xA)+ [4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] [4a] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040] [5] Name ::= NameStartChar (NameChar)* [6] Names ::= Name (#x20 Name)* [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)* [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"' | "'" ([^%&'] | PEReference | Reference)* "'" [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" [13] PubidChar ::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] CData ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' intSubset ']' S?)? '>' [28a] DeclSep ::= PEReference | S [28b] intSubset ::= (markupdecl | DeclSep)* [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [30] extSubset ::= TextDecl? extSubsetDecl [31] extSubsetDecl ::= ( markupdecl | conditionalSect | DeclSep)* [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"')) [39] element ::= EmptyElemTag | STag content ETag [40 ]STag ::= '<' Name (S Attribute)* S? '>' [41] Attribute ::= Name Eq AttValue [42] ETag ::= '</' Name S? '>' [43] content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children [47] children ::= (choice | seq) ('?' | '*' | '+')? [48] cp ::= (Name | choice | seq) ('?' | '*' | '+')? [49] choice ::= '(' S? cp ( S? '|' S? cp )+ S? ')' [50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')' [51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')' [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl [54] AttType ::= StringType | TokenizedType | EnumeratedType [55] StringType ::= 'CDATA' [56] TokenizedType ::= 'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' | 'NMTOKENS' [57] EnumeratedType ::= NotationType | Enumeration [58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')' [59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')' [60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue) [61] conditionalSect ::= includeSect | ignoreSect [62] includeSect ::= '<![' S? 'INCLUDE' S? '[' extSubsetDecl ']]>' [63] ignoreSect ::= '<![' S? 'IGNORE' S? '[' ignoreSectContents* ']]>' [VC: Proper Conditional Section/PE Nesting] [64] ignoreSectContents ::= Ignore ('<![' ignoreSectContents ']]>' Ignore)* [65] Ignore ::= Char* - (Char* ('<![' | ']]>') Char*) */ DocumentXML * lireFichierXML( string a_nom ); #endif /* DOCUMENTXML_H_ */
[ "jeanlou601@hotmail.com" ]
jeanlou601@hotmail.com
77d1755a2045883884be0b886ea5fbe9690effc6
3343b52c6cf53e6324b15206fce5fee381e8b70c
/experiments/RegionsMatchingExperiment.cpp
f148d5752ebd505eb60b5aa956376412e318442d
[]
no_license
dychko/MapsMerge
e8089f130742ec57bace3ed208d171277ec1acb6
41d97e47227a3828cc3578bb6078d6afb9d0acb7
refs/heads/master
2021-01-21T14:02:23.042131
2016-05-20T12:33:38
2016-05-20T12:33:38
52,113,115
0
0
null
null
null
null
UTF-8
C++
false
false
4,120
cpp
#include "RegionsMatchingExperiment.h" #include <iostream> #include <ctime> #include "../maps_merger/MapsMerger.h" #include "../merge_algorithm/keypoints_descriptors_extractor/SurfStrategy.h" #include "../merge_algorithm/keypoints_descriptors_extractor/SiftStrategy.h" #include "../merge_algorithm/keypoints_descriptors_extractor/AsiftStrategy.h" #include "../merge_algorithm/descriptors_matcher/FlannMatcherStrategy.h" #include "../merge_algorithm/regions_selector/ManualRegionsSelector.h" #include "../merge_algorithm/regions_matcher/GaleShapleyMatcherStrategy.h" #include "../merge_algorithm/regions_matcher/SimpleMatcherStrategy.h" #include "../merge_algorithm/image_transformer/ImageTransformerStrategy.h" #include "../merge_algorithm/images_merger/ImagesMergerStrategy.h" #include "../merge_algorithm/quality_evaluator/MSSIM.h" #include "../utils/Utils.h" #include "../utils/Statistics.h" double MapsMerge::RegionsMatchingExperiment::getRelativeCorrectness(vector<Rect> originalRegions, vector<Rect> matchedRegions) { int numCorrectRegionsMatches = 0; for (int i = 0; i < originalRegions.size(); i++) { if (originalRegions[i] == matchedRegions[i]) { numCorrectRegionsMatches++; } } double regionsMatchesCorrectness = (double)numCorrectRegionsMatches / originalRegions.size(); return regionsMatchesCorrectness; } void MapsMerge::RegionsMatchingExperiment::run() { string imgPath1 = "imgs/ap-GOPR9460.jpg"; string imgPath2 = "imgs/from-google-cut.jpg"; this->readImages(imgPath1, imgPath2); this->showImages("Image 1", "Image 2"); this->setKeypointsDescriptorsExtractor(new SurfStrategy()); this->detectAndCompute(); this->showKeypoints("Image 1 with keypoints", "Image 2 with keypoints"); this->setDescriptorMatcher(new FlannMatcherStrategy()); this->matchDescriptors(); this->showMatches("Matches"); this->setRegionsSelector(new ManualRegionsSelector()); this->selectRegions(); // Experiments vector<vector<int>> regionsIndexes = Utils::getTuples4Vector(this->getNumRegions()); vector<Rect> allSavedRegions1 = this->imagesMatches.imgFeatures1.regions; vector<Rect> allSavedRegions2 = this->imagesMatches.imgFeatures2.regions; Statistics stats("experiments_results/regions_matching_experiment_" + Utils::getTimeStr() + ".csv", 3); stats.addField("Id") .addField("Regions matches correctness 1") .addField("Regions matches correctness 2"); int experimentId = 0; double averageCorrectness1 = 0; double averageCorrectness2 = 0; for(int iRegionsBatch = 0; iRegionsBatch < regionsIndexes.size(); iRegionsBatch++) { experimentId++; vector<int> regionsBatchIndexes = regionsIndexes[iRegionsBatch]; // Set batch of regions this->setRegionsByIndexes(allSavedRegions1, allSavedRegions2, regionsBatchIndexes); vector<Rect> copyRegions(this->imagesMatches.imgFeatures1.regions); // Shuffle and create copy of regions this->imagesMatches.imgFeatures1.shuffeRegions(); vector<Rect> copyShuffledRegions(this->imagesMatches.imgFeatures1.regions); // Match regions with Gale-Shapley this->setRegionsMatcher(new GaleShapleyMatcherStrategy()); this->matchRegions(); // Check correctness double regionsMatchesCorrectness1 = getRelativeCorrectness(copyRegions, this->imagesMatches.imgFeatures1.regions); // Restore shuffled regions configuration this->imagesMatches.imgFeatures1.regions = copyShuffledRegions; // Match regions with Simple algorithm this->setRegionsMatcher(new SimpleMatcherStrategy()); this->matchRegions(); // Check correctness double regionsMatchesCorrectness2 = getRelativeCorrectness(copyRegions, this->imagesMatches.imgFeatures1.regions); // Compute average averageCorrectness1 += regionsMatchesCorrectness1 / regionsIndexes.size(); averageCorrectness2 += regionsMatchesCorrectness2 / regionsIndexes.size(); // Save results stats.addField(experimentId) .addField(regionsMatchesCorrectness1) .addField(regionsMatchesCorrectness2); } // Save results stats.addField("Average correctness:") .addField(averageCorrectness1) .addField(averageCorrectness2); stats.closeFile(); }
[ "dichko.v@bigmir.net" ]
dichko.v@bigmir.net
88c5eda7ec8ad70e45e11948cc0267db261e0a67
b4f42eed62aa7ef0e28f04c1f455f030115ec58e
/messagingfw/msgtestfw/TestActions/Framework/inc/CMtfTestActionDeleteAttachment.h
cd3ef156926a63a3e994b45fbd4a614cc5601b7d
[]
no_license
SymbianSource/oss.FCL.sf.mw.messagingmw
6addffd79d854f7a670cbb5d89341b0aa6e8c849
7af85768c2d2bc370cbb3b95e01103f7b7577455
refs/heads/master
2021-01-17T16:45:41.697969
2010-11-03T17:11:46
2010-11-03T17:11:46
71,851,820
1
0
null
null
null
null
UTF-8
C++
false
false
1,044
h
/** * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * Nokia Corporation - initial contribution. * * Contributors: * * Description: * */ /** @file */ #ifndef __CMTF_TEST_ACTION_DELETE_ATTACHMENT_H__ #define __CMTF_TEST_ACTION_DELETE_ATTACHMENT_H__ #include "CMtfSynchronousTestAction.h" _LIT(KTestActionDeleteAttachment,"DeleteAttachment"); class CMtfTestActionDeleteAttachment : public CMtfSynchronousTestAction { public: static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* ActionParameters); virtual ~CMtfTestActionDeleteAttachment(); public: virtual void ExecuteActionL(); private: CMtfTestActionDeleteAttachment(CMtfTestCase& aTestCase); }; #endif //__CMTF_TEST_ACTION_DELETE_ATTACHMENT_H__
[ "none@none" ]
none@none
9c416b0430902c3fc31cf97fa829079ec9e134cb
d6a4115db819adee535d74febd4f9e12f8ba4e69
/annotated/deegen_common_snippets/get_cb_heap_ptr_from_tvalue.cpp
94ea09b68b02891ced081d49b96281f54fa8a29a
[ "Apache-2.0" ]
permissive
luajit-remake/luajit-remake
292c174be79034bffea77000debd4535c68d78bc
443b6cd442d3e471add261263297e3490b207b0e
refs/heads/master
2023-06-15T13:13:49.561304
2023-06-08T04:55:18
2023-06-08T06:59:03
496,533,267
910
25
null
2022-11-27T07:36:17
2022-05-26T08:04:39
C++
UTF-8
C++
false
false
431
cpp
#include "force_release_build.h" #include "define_deegen_common_snippet.h" #include "runtime_utils.h" static HeapPtr<ExecutableCode> DeegenSnippet_GetCbHeapPtrFromTValueFuncObj(TValue tv) { HeapPtr<FunctionObject> o = tv.As<tFunction>(); HeapPtr<ExecutableCode> ec = TCGet(o->m_executable).As(); return ec; } DEFINE_DEEGEN_COMMON_SNIPPET("GetCbHeapPtrFromTValueFuncObj", DeegenSnippet_GetCbHeapPtrFromTValueFuncObj)
[ "haoranxu510@gmail.com" ]
haoranxu510@gmail.com
0dc126a28d345b70d922f6616d621b62afd71632
49f2a09a393bf6190180e37f4856353b1991effb
/C++作业/2018_4Array/7-5.cpp
f94497d454ce99d86813c04b0067e685abb123d9
[]
no_license
Defan-X-zs/FZU
177258cfaa9860f74ebf81cf437d731e06911921
8d87e7e1296f0c7d78dc6686a03554f9d4af12bd
refs/heads/master
2020-04-09T07:42:02.568680
2019-11-27T13:15:46
2019-11-27T13:15:46
160,166,910
3
1
null
2018-12-12T05:38:21
2018-12-03T09:38:09
null
UTF-8
C++
false
false
1,098
cpp
#include <stdio.h>//7-5 找出不是两个数组共有的元素 int main() { int m, n, i, j, k = 0;; int a[20], b[20], c[20]; scanf("%d", &m); for (i = 0; i < m; i++) scanf("%d", &a[i]); scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &b[i]); for (i = 0; i < m; i++) { for (j = 0; j < n; j++) { if (a[i] == b[j]) break; } if (j == n) { c[k] = a[i]; k++; } } for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { if (b[i] == a[j]) break; } if (j == m) { c[k] = b[i]; k++; } } printf("%d", c[0]); for (i = 1; i < k; i++) { for (j = 0; j < i; j++) { if (c[i] == c[j]) break; } if (j == i) printf(" %d", c[i]); } return 0; }
[ "noreply@github.com" ]
Defan-X-zs.noreply@github.com
2abcbefe4a01c74785b642c32a18e33f35f73683
6a365565ad0f6ce2272aca49b6e8b6947a1ed8ad
/uva-12442-forwarding-emails.cpp
57c03bf1f524367264304bcd7e49ab1c86ef7202
[]
no_license
harrysd/algos
6b56862e63b82a222ff48321691bac412777464b
92f2cd208cafad19a2a26de74189c969c6152cbd
refs/heads/master
2021-01-19T20:43:28.060477
2017-04-17T18:38:37
2017-04-17T18:38:37
88,538,334
0
0
null
null
null
null
UTF-8
C++
false
false
1,267
cpp
#include <iostream> #include <cstdio> #include <cstdlib> #include <algorithm> #include <cstring> #include <vector> #define FO(i,a,b) for (int i = (a); i < (b); i++) #define RO(i,b,a) for (int i = (b); i >= (a); i--) #define pb push_back #define ARR0(A) memset((A), 0, sizeof((A))) #define ARR1m(A) memset((A), -1, sizeof((A))) typedef long long LL; using namespace std; int t, n, fr, to, sendto; int adj[50002],visit[50002]; int cycle = -1; vector<int> cvs; int dfs(int i) { if(visit[i]==-1) { cycle = i; return 0;} if(visit[i]!=0) return visit[i]; visit[i] = -1; visit[i] = 1+dfs(adj[i]); if(cycle==i) { cycle = -1; FO(j,0,cvs.size()) visit[cvs[j]] = visit[i]; } if(cycle!=-1) cvs.pb(i); return visit[i]; } int main() { scanf("%d",&t); FO(i,0,t) { ARR0(visit);ARR0(adj); scanf("%d",&n); FO(j,0,n) { scanf("%d %d",&fr,&to); adj[fr] = to; } FO(i,1,n+1) { cvs.clear(); dfs(i); } int max=0,sendto=0; FO(i,1,n+1) if(visit[i]>max) { max = visit[i]; sendto = i; } printf("Case %d: %d\n",i+1,sendto); } return 0; }
[ "harry.sidhu@gmailc.com" ]
harry.sidhu@gmailc.com
cceba93471c67cf864399dc30f9147973b6f4759
cf4ed97d519efcc5329a48b331a2f41a99d067e9
/3th-semester/sdp/examples/tree/zad27.cpp
5bc0d299f60fe7e86c1e9f673614bce562320baf
[]
no_license
tborisova/homeworks
6a186420f036ab175231e97d6c01021d7e2b7ce5
dc08d7b360b1337ece567deae66ad265fd83dd3e
refs/heads/master
2021-03-27T15:41:32.735565
2020-05-17T15:43:59
2020-05-17T15:43:59
25,862,294
0
0
null
null
null
null
UTF-8
C++
false
false
430
cpp
#include <iostream> #include <cassert> using namespace std; #include "tree.cpp" typedef tree<int> intTree; intTree addElem(int a, const intTree& t){ intTree t1; if(!t.empty()){ t1.create3(t.rootTree() + a, addElem(a, t.leftTree()), addElem(a, t.rightTree())); } return t1; } int main(){ intTree t; t.create(); t.print(); cout << "Number: "; int a; cin >> a; addElem(a, t).print(); return 0; }
[ "ts.borisova3@gmail.com" ]
ts.borisova3@gmail.com
351c40f47e89cd4199bd75af997754ba5b47edb2
d2b4bc20460230426aa0e28553d059231e3e09f7
/LCS/main.cpp
824dad0933d44e909124464fe83d21ae0e8105ad
[]
no_license
Dylan453295846/DSA
5e1a090263c6068dcff279f2154f692bfa784d9b
38d0dbde24b4e22ff767ba780fcb10882a0b6794
refs/heads/master
2022-11-14T00:37:37.357271
2020-06-24T01:12:46
2020-06-24T01:12:46
272,400,048
0
0
null
null
null
null
UTF-8
C++
false
false
511
cpp
#include "LCS.h" #include <iostream> int main() { LCS lcs; std::vector<char> A; A = { 'c','o','m' ,'m','u','n','i'}; std::vector<char> B; B = { 'p','o','m' ,'m','n','o','i'}; char a[] = "st3erionvjddcfvgbhn"; char b[] = "uvy3ctxwtrxdfcgvhbj"; for (int i = 0; i < 5; i++) A.push_back(a[i]); for (int i = 0; i < 5; i++) B.push_back(b[i]); int len2 = lcs.lcs2(A, B); std::cout << len2<< std::endl; int len = lcs.lcs1(A, B); std::cout << len<< std::endl; std::cout << "\n" << "End!"; return 0; }
[ "453295846@qq.com" ]
453295846@qq.com
e570159ce19fe52288c3dabdd567f36d810dec2f
2aed63d9aa027419b797e56b508417789a604a8b
/injector2degHex/case_interFoam_3mm/processor0/0.6/phi
97e5b7de1cb0f3a6d8127d43d27dc448bdd1f9f6
[]
no_license
icl-rocketry/injectorCFDModelling
70137f1c6574240c7202638c3713102a3e1e9fd8
96591cf2cf3cd4cbd64536d8ae47ed8080ed9016
refs/heads/main
2023-08-25T03:30:59.244137
2021-10-09T21:04:45
2021-10-09T21:04:45
322,369,673
3
5
null
null
null
null
UTF-8
C++
false
false
148,611
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class surfaceScalarField; location "0.6"; object phi; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -1 0 0 0 0]; oriented oriented; internalField nonuniform List<scalar> 8145 ( -2.38495e-08 8.19964e-08 8.22528e-17 -2.02334e-08 8.63763e-08 -2.87317e-16 -1.64884e-08 8.85888e-08 -1.28716e-16 -1.27181e-08 8.79962e-08 -3.03496e-17 -9.05884e-09 8.38836e-08 7.86928e-17 -5.68841e-09 7.54778e-08 2.52944e-16 -2.83914e-09 6.19093e-08 4.95382e-17 -8.12288e-10 4.23499e-08 5.92141e-17 1.59532e-08 2.47948e-17 -3.29619e-08 5.82184e-08 -5.86658e-16 -3.01411e-08 6.59228e-08 -3.16232e-16 -2.70203e-08 7.2854e-08 -1.12405e-16 -2.36396e-08 7.86157e-08 6.81307e-17 -2.00548e-08 8.27915e-08 -2.94118e-16 -1.63422e-08 8.48762e-08 -1.36156e-16 -1.26046e-08 8.42586e-08 -3.63646e-17 -8.97755e-09 8.02566e-08 7.51172e-17 -5.6373e-09 7.21376e-08 2.52932e-16 -2.81382e-09 5.90858e-08 4.99928e-17 -8.05253e-10 4.03414e-08 6.19365e-17 1.51479e-08 2.95168e-17 -1.06234e-08 -2.92528e-08 -4.32044e-15 -1.16946e-08 -3.10314e-08 -2.4949e-15 -1.2894e-08 -3.3033e-08 -4.43954e-15 -1.42008e-08 -3.50631e-08 -4.23992e-15 -1.55977e-08 -3.70136e-08 -3.87341e-15 -1.70705e-08 -3.88153e-08 -3.43472e-15 -1.8607e-08 -4.04304e-08 -3.28249e-15 -2.01963e-08 -4.1824e-08 -3.23494e-15 -2.18283e-08 -4.29812e-08 -3.27104e-15 -2.34929e-08 -4.38783e-08 -3.20663e-15 -2.51799e-08 -4.44998e-08 -3.14288e-15 -2.68782e-08 -4.48258e-08 -2.99124e-15 -2.85761e-08 -4.48307e-08 -2.75637e-15 -3.02605e-08 -4.44993e-08 -2.51872e-15 -3.19171e-08 -4.37981e-08 -2.23059e-15 -3.353e-08 -4.27063e-08 -2.18763e-15 -3.50827e-08 -4.11967e-08 -2.00554e-15 -3.65568e-08 -3.92419e-08 -1.89625e-15 -3.79329e-08 -3.68177e-08 -1.81126e-15 -3.91907e-08 -3.39009e-08 -1.71341e-15 -4.03088e-08 -3.04727e-08 -1.61991e-15 -4.12652e-08 -2.6516e-08 -1.50367e-15 -4.20379e-08 -2.20214e-08 -1.37792e-15 -4.2604e-08 -1.69842e-08 -1.23346e-15 -4.29417e-08 -1.14066e-08 -1.09137e-15 -4.30284e-08 -5.30839e-09 -9.5681e-16 -4.28436e-08 1.29129e-09 -8.2461e-16 -4.23672e-08 8.35199e-09 -6.84308e-16 -4.1582e-08 1.58182e-08 -5.42775e-16 -4.04733e-08 2.36105e-08 -4.05987e-16 -3.90283e-08 3.165e-08 -2.64817e-16 -3.72415e-08 3.97888e-08 -4.17113e-17 -3.51104e-08 4.78914e-08 -2.99947e-16 -3.26415e-08 5.57496e-08 -5.70159e-16 -2.98497e-08 6.31309e-08 -3.2353e-16 -2.67594e-08 6.97638e-08 -1.40094e-16 -2.34109e-08 7.52672e-08 5.42414e-17 -1.98598e-08 7.92403e-08 -3.00223e-16 -1.6182e-08 8.11985e-08 -1.42699e-16 -1.248e-08 8.05566e-08 -4.21658e-17 -8.88813e-09 7.66648e-08 7.08978e-17 -5.58093e-09 6.88304e-08 2.49487e-16 -2.7858e-09 5.62907e-08 4.80328e-17 -7.97437e-10 3.8353e-08 6.36294e-17 1.43505e-08 3.31374e-17 -1.02886e-08 -2.83801e-08 -6.25228e-15 -1.13157e-08 -3.00042e-08 -4.01967e-15 -1.24739e-08 -3.18749e-08 -5.02265e-15 -1.37426e-08 -3.37943e-08 -4.26535e-15 -1.51053e-08 -3.56509e-08 -3.57931e-15 -1.65478e-08 -3.73728e-08 -3.22643e-15 -1.80579e-08 -3.89202e-08 -3.1792e-15 -1.96247e-08 -4.02573e-08 -3.22181e-15 -2.12377e-08 -4.13681e-08 -3.26215e-15 -2.28868e-08 -4.22292e-08 -3.20294e-15 -2.45614e-08 -4.28252e-08 -3.13777e-15 -2.62503e-08 -4.31368e-08 -2.99095e-15 -2.79415e-08 -4.31396e-08 -2.77489e-15 -2.96218e-08 -4.2819e-08 -2.55448e-15 -3.12767e-08 -4.21433e-08 -2.28534e-15 -3.28902e-08 -4.10927e-08 -2.22761e-15 -3.44454e-08 -3.96413e-08 -2.04147e-15 -3.59242e-08 -3.77632e-08 -1.92596e-15 -3.73069e-08 -3.54351e-08 -1.82861e-15 -3.85731e-08 -3.26348e-08 -1.72244e-15 -3.97013e-08 -2.93444e-08 -1.62e-15 -4.06695e-08 -2.55477e-08 -1.49899e-15 -4.14555e-08 -2.12354e-08 -1.37061e-15 -4.20365e-08 -1.64031e-08 -1.22821e-15 -4.23905e-08 -1.10529e-08 -1.08713e-15 -4.24947e-08 -5.20393e-09 -9.51601e-16 -4.23289e-08 1.12534e-09 -8.17235e-16 -4.18727e-08 7.89597e-09 -6.77643e-16 -4.1109e-08 1.50544e-08 -5.38652e-16 -4.00231e-08 2.25244e-08 -4.03102e-16 -3.86022e-08 3.02294e-08 -2.63219e-16 -3.68409e-08 3.80273e-08 -4.19789e-17 -3.47368e-08 4.57874e-08 -2.86599e-16 -3.22966e-08 5.33095e-08 -5.51799e-16 -2.95352e-08 6.03693e-08 -3.24582e-16 -2.64772e-08 6.67059e-08 -1.59155e-16 -2.31629e-08 7.19528e-08 4.11942e-17 -1.96478e-08 7.57252e-08 -3.05248e-16 -1.60076e-08 7.75583e-08 -1.47665e-16 -1.2344e-08 7.6893e-08 -4.66519e-17 -8.79033e-09 7.31111e-08 6.73924e-17 -5.51912e-09 6.55592e-08 2.45699e-16 -2.755e-09 5.35266e-08 4.64901e-17 -7.88807e-10 3.63868e-08 6.48578e-17 1.35617e-08 3.61231e-17 -9.86625e-09 -2.75392e-08 -5.17165e-15 -1.08585e-08 -2.90119e-08 -3.69873e-15 -1.19834e-08 -3.075e-08 -4.73489e-15 -1.32211e-08 -3.25566e-08 -4.14697e-15 -1.45559e-08 -3.4316e-08 -3.50186e-15 -1.59738e-08 -3.59549e-08 -3.2115e-15 -1.74629e-08 -3.74311e-08 -3.16324e-15 -1.90118e-08 -3.87083e-08 -3.26256e-15 -2.06102e-08 -3.97697e-08 -3.29802e-15 -2.22476e-08 -4.05918e-08 -3.22673e-15 -2.39132e-08 -4.11596e-08 -3.1388e-15 -2.55955e-08 -4.14544e-08 -2.98105e-15 -2.72824e-08 -4.14527e-08 -2.77534e-15 -2.89604e-08 -4.1141e-08 -2.57305e-15 -3.06149e-08 -4.04889e-08 -2.32958e-15 -3.22298e-08 -3.94776e-08 -2.2555e-15 -3.37883e-08 -3.80829e-08 -2.06951e-15 -3.52718e-08 -3.62797e-08 -1.94956e-15 -3.66609e-08 -3.4046e-08 -1.8428e-15 -3.7935e-08 -3.13607e-08 -1.7283e-15 -3.90727e-08 -2.82067e-08 -1.6183e-15 -4.00519e-08 -2.45683e-08 -1.49226e-15 -4.08504e-08 -2.04368e-08 -1.36125e-15 -4.14453e-08 -1.5808e-08 -1.21933e-15 -4.18146e-08 -1.06838e-08 -1.07864e-15 -4.19356e-08 -5.08269e-09 -9.42424e-16 -4.1788e-08 9.77591e-10 -8.06771e-16 -4.13515e-08 7.4596e-09 -6.67541e-16 -4.06088e-08 1.43118e-08 -5.30503e-16 -3.95455e-08 2.14609e-08 -3.96498e-16 -3.81489e-08 2.8833e-08 -2.58635e-16 -3.64135e-08 3.62918e-08 -3.91407e-17 -3.43373e-08 4.37113e-08 -2.75629e-16 -3.19268e-08 5.0899e-08 -5.33552e-16 -2.91972e-08 5.76396e-08 -3.23208e-16 -2.61733e-08 6.36821e-08 -1.73333e-16 -2.28952e-08 6.86748e-08 2.82384e-17 -1.94186e-08 7.22485e-08 -3.10154e-16 -1.58186e-08 7.39584e-08 -1.52013e-16 -1.21964e-08 7.32708e-08 -5.05586e-17 -8.68389e-09 6.95986e-08 6.3868e-17 -5.45169e-09 6.2327e-08 2.41633e-16 -2.72129e-09 5.07962e-08 4.38981e-17 -7.79321e-10 3.44449e-08 6.49708e-17 1.27824e-08 3.7924e-17 -9.35875e-09 -2.67217e-08 -5.0545e-15 -1.03237e-08 -2.8047e-08 -3.96244e-15 -1.14226e-08 -2.96512e-08 -5.01649e-15 -1.2636e-08 -3.13431e-08 -4.00147e-15 -1.39495e-08 -3.30025e-08 -3.3914e-15 -1.53489e-08 -3.45555e-08 -3.20019e-15 -1.68224e-08 -3.59576e-08 -3.17621e-15 -1.83586e-08 -3.71721e-08 -3.26676e-15 -1.9947e-08 -3.81813e-08 -3.23622e-15 -2.15766e-08 -3.89622e-08 -3.12268e-15 -2.32366e-08 -3.94996e-08 -3.0311e-15 -2.49152e-08 -3.97757e-08 -2.89426e-15 -2.66e-08 -3.97679e-08 -2.72946e-15 -2.82776e-08 -3.94634e-08 -2.56255e-15 -2.9933e-08 -3.88335e-08 -2.3471e-15 -3.15501e-08 -3.78604e-08 -2.26809e-15 -3.31121e-08 -3.65208e-08 -2.09027e-15 -3.46004e-08 -3.47913e-08 -1.96933e-15 -3.59955e-08 -3.26509e-08 -1.8552e-15 -3.72771e-08 -3.00793e-08 -1.73265e-15 -3.84234e-08 -2.70603e-08 -1.61544e-15 -3.94126e-08 -2.3579e-08 -1.48423e-15 -4.02226e-08 -1.96269e-08 -1.35064e-15 -4.08303e-08 -1.52001e-08 -1.20876e-15 -4.1214e-08 -1.03004e-08 -1.06821e-15 -4.13508e-08 -4.94563e-09 -9.31435e-16 -4.12206e-08 8.47236e-10 -7.9488e-16 -4.0803e-08 7.04223e-09 -6.55921e-16 -4.00811e-08 1.35899e-08 -5.20422e-16 -3.90403e-08 2.04198e-08 -3.87834e-16 -3.7668e-08 2.7461e-08 -2.52149e-16 -3.5959e-08 3.45826e-08 -3.60378e-17 -3.39112e-08 4.16636e-08 -2.64752e-16 -3.15315e-08 4.85194e-08 -5.19227e-16 -2.88352e-08 5.49432e-08 -3.22446e-16 -2.58471e-08 6.06941e-08 -1.84891e-16 -2.26074e-08 6.54351e-08 1.46241e-17 -1.91716e-08 6.88127e-08 -3.1543e-16 -1.56146e-08 7.04014e-08 -1.56546e-16 -1.20367e-08 6.96929e-08 -5.46083e-17 -8.56853e-09 6.61304e-08 5.98612e-17 -5.37842e-09 5.91368e-08 2.36845e-16 -2.68456e-09 4.81023e-08 4.07791e-17 -7.68938e-10 3.25292e-08 6.40695e-17 1.20134e-08 3.89064e-17 -8.77019e-09 -2.59224e-08 -6.49489e-15 -9.71415e-09 -2.7103e-08 -4.33929e-15 -1.07934e-08 -2.85719e-08 -4.58084e-15 -1.19893e-08 -3.01472e-08 -3.57031e-15 -1.32878e-08 -3.1704e-08 -3.25947e-15 -1.46749e-08 -3.31684e-08 -3.35847e-15 -1.61385e-08 -3.44939e-08 -3.36354e-15 -1.76672e-08 -3.56435e-08 -3.43132e-15 -1.92499e-08 -3.65986e-08 -3.3306e-15 -2.08758e-08 -3.73363e-08 -3.14762e-15 -2.25335e-08 -3.78419e-08 -3.00722e-15 -2.42112e-08 -3.80979e-08 -2.84581e-15 -2.58962e-08 -3.8083e-08 -2.69458e-15 -2.75749e-08 -3.77848e-08 -2.54957e-15 -2.92323e-08 -3.71762e-08 -2.35123e-15 -3.08523e-08 -3.62402e-08 -2.26908e-15 -3.2418e-08 -3.49551e-08 -2.10571e-15 -3.39109e-08 -3.32984e-08 -1.98628e-15 -3.53117e-08 -3.12501e-08 -1.86573e-15 -3.65998e-08 -2.87913e-08 -1.73537e-15 -3.77539e-08 -2.59062e-08 -1.61126e-15 -3.8752e-08 -2.25807e-08 -1.47513e-15 -3.95723e-08 -1.88067e-08 -1.33917e-15 -4.01917e-08 -1.45805e-08 -1.19724e-15 -4.05885e-08 -9.90384e-09 -1.05673e-15 -4.07401e-08 -4.79379e-09 -9.19521e-16 -4.06264e-08 7.33371e-10 -7.82254e-16 -4.02272e-08 6.64316e-09 -6.43666e-16 -3.95255e-08 1.28882e-08 -5.09402e-16 -3.85068e-08 1.9401e-08 -3.78112e-16 -3.7159e-08 2.61134e-08 -2.44701e-16 -3.54767e-08 3.29002e-08 -3.15199e-17 -3.34582e-08 3.96452e-08 -2.56011e-16 -3.11104e-08 4.61717e-08 -5.05867e-16 -2.84487e-08 5.22814e-08 -3.21777e-16 -2.54982e-08 5.77436e-08 -1.95177e-16 -2.2299e-08 6.22359e-08 2.08352e-18 -1.89065e-08 6.54201e-08 -3.2035e-16 -1.53952e-08 6.68902e-08 -1.60899e-16 -1.18647e-08 6.61623e-08 -5.86479e-17 -8.44395e-09 6.27097e-08 5.53589e-17 -5.2991e-09 5.5992e-08 2.31051e-16 -2.64467e-09 4.54478e-08 3.65262e-17 -7.5761e-10 3.06422e-08 6.19176e-17 1.12558e-08 3.85315e-17 -8.10096e-09 -2.51344e-08 -5.09734e-15 -9.03191e-09 -2.6172e-08 -3.46801e-15 -1.00988e-08 -2.75051e-08 -4.53325e-15 -1.12841e-08 -2.89619e-08 -3.99452e-15 -1.25743e-08 -3.04139e-08 -3.73233e-15 -1.39551e-08 -3.17875e-08 -3.75165e-15 -1.54146e-08 -3.30345e-08 -3.46296e-15 -1.69407e-08 -3.41173e-08 -3.29217e-15 -1.85224e-08 -3.50169e-08 -3.07798e-15 -2.01482e-08 -3.57104e-08 -2.89156e-15 -2.18069e-08 -3.61833e-08 -2.81306e-15 -2.34861e-08 -3.64186e-08 -2.71554e-15 -2.51732e-08 -3.63959e-08 -2.62867e-15 -2.68543e-08 -3.61037e-08 -2.52602e-15 -2.85146e-08 -3.55159e-08 -2.34792e-15 -3.01378e-08 -3.46169e-08 -2.25768e-15 -3.17072e-08 -3.33857e-08 -2.11356e-15 -3.32043e-08 -3.18012e-08 -1.99707e-15 -3.46099e-08 -2.98446e-08 -1.87155e-15 -3.59037e-08 -2.74976e-08 -1.73463e-15 -3.70644e-08 -2.47455e-08 -1.60488e-15 -3.80702e-08 -2.15746e-08 -1.46478e-15 -3.88994e-08 -1.79776e-08 -1.32704e-15 -3.95292e-08 -1.39505e-08 -1.18518e-15 -3.99379e-08 -9.49534e-09 -1.04462e-15 -4.01032e-08 -4.62829e-09 -9.07006e-16 -4.0005e-08 6.35019e-10 -7.69145e-16 -3.96233e-08 6.26161e-09 -6.31031e-16 -3.89413e-08 1.22062e-08 -4.97788e-16 -3.79446e-08 1.84042e-08 -3.67666e-16 -3.66212e-08 2.47903e-08 -2.36486e-16 -3.49661e-08 3.12449e-08 -2.75978e-17 -3.29775e-08 3.76568e-08 -2.46114e-16 -3.06626e-08 4.38569e-08 -4.94839e-16 -2.80371e-08 4.96558e-08 -3.20859e-16 -2.51259e-08 5.48326e-08 -2.02659e-16 -2.19695e-08 5.90794e-08 -9.69825e-18 -1.86228e-08 6.20734e-08 -3.25069e-16 -1.516e-08 6.34275e-08 -1.65512e-16 -1.16798e-08 6.26821e-08 -6.30756e-17 -8.30985e-09 5.93397e-08 5.02351e-17 -5.2135e-09 5.28956e-08 2.24282e-16 -2.60148e-09 4.28358e-08 3.18836e-17 -7.45287e-10 2.8786e-08 5.90512e-17 1.05105e-08 3.7599e-17 -7.35098e-09 -2.43463e-08 -7.27926e-15 -8.27972e-09 -2.52433e-08 -4.80715e-15 -9.34247e-09 -2.64423e-08 -4.24183e-15 -1.05251e-08 -2.77792e-08 -3.23635e-15 -1.18137e-08 -2.91252e-08 -3.12752e-15 -1.31946e-08 -3.04066e-08 -3.63788e-15 -1.46553e-08 -3.15738e-08 -3.5305e-15 -1.61837e-08 -3.25889e-08 -3.3574e-15 -1.77684e-08 -3.34322e-08 -3.0809e-15 -1.93978e-08 -3.40811e-08 -2.83557e-15 -2.106e-08 -3.4521e-08 -2.74044e-15 -2.2743e-08 -3.47356e-08 -2.64218e-15 -2.44336e-08 -3.47053e-08 -2.57918e-15 -2.61182e-08 -3.44191e-08 -2.50103e-15 -2.77818e-08 -3.38524e-08 -2.34269e-15 -2.94083e-08 -3.29903e-08 -2.24522e-15 -3.09809e-08 -3.1813e-08 -2.11279e-15 -3.24815e-08 -3.03006e-08 -1.99882e-15 -3.38909e-08 -2.84352e-08 -1.87037e-15 -3.51891e-08 -2.61995e-08 -1.72904e-15 -3.6355e-08 -2.35795e-08 -1.5956e-15 -3.73671e-08 -2.05624e-08 -1.453e-15 -3.82038e-08 -1.71409e-08 -1.31441e-15 -3.88425e-08 -1.33117e-08 -1.17293e-15 -3.92619e-08 -9.07626e-09 -1.03231e-15 -3.94396e-08 -4.45038e-09 -8.94327e-16 -3.93558e-08 5.51127e-10 -7.55899e-16 -3.89908e-08 5.89675e-09 -6.18264e-16 -3.83279e-08 1.15433e-08 -4.8583e-16 -3.73529e-08 1.7429e-08 -3.56795e-16 -3.60541e-08 2.34917e-08 -2.27907e-16 -3.44264e-08 2.96171e-08 -2.251e-17 -3.24685e-08 3.5699e-08 -2.3767e-16 -3.01877e-08 4.15762e-08 -4.83004e-16 -2.75998e-08 4.70677e-08 -3.18734e-16 -2.47298e-08 5.19627e-08 -2.08391e-16 -2.16183e-08 5.59678e-08 -1.89958e-17 -1.83199e-08 5.8775e-08 -3.28773e-16 -1.49085e-08 6.00162e-08 -1.69794e-16 -1.14819e-08 5.92555e-08 -6.75056e-17 -8.16591e-09 5.60238e-08 4.47306e-17 -5.12138e-09 4.98511e-08 2.16746e-16 -2.55485e-09 4.02693e-08 2.66892e-17 -7.31918e-10 2.69631e-08 5.53861e-17 9.77863e-09 3.56881e-17 -6.52905e-09 -2.35479e-08 -4.07308e-15 -7.46549e-09 -2.43068e-08 -3.91647e-15 -8.53219e-09 -2.53756e-08 -3.30515e-15 -9.71946e-09 -2.6592e-08 -3.8415e-15 -1.10131e-08 -2.78316e-08 -3.93909e-15 -1.23999e-08 -2.90198e-08 -3.98153e-15 -1.3867e-08 -3.01067e-08 -3.37489e-15 -1.54021e-08 -3.10538e-08 -2.99851e-15 -1.69934e-08 -3.18409e-08 -2.75011e-15 -1.86291e-08 -3.24453e-08 -2.5998e-15 -2.02973e-08 -3.28528e-08 -2.60562e-15 -2.19855e-08 -3.30473e-08 -2.56878e-15 -2.36807e-08 -3.30101e-08 -2.54505e-15 -2.53692e-08 -3.27307e-08 -2.48709e-15 -2.7036e-08 -3.21856e-08 -2.34142e-15 -2.86653e-08 -3.13609e-08 -2.23466e-15 -3.02404e-08 -3.02379e-08 -2.10234e-15 -3.17434e-08 -2.87976e-08 -1.98889e-15 -3.31553e-08 -2.70232e-08 -1.85976e-15 -3.44565e-08 -2.48984e-08 -1.71679e-15 -3.5626e-08 -2.24099e-08 -1.58241e-15 -3.66427e-08 -1.95455e-08 -1.43938e-15 -3.74852e-08 -1.62984e-08 -1.30123e-15 -3.81313e-08 -1.26654e-08 -1.1607e-15 -3.85597e-08 -8.64809e-09 -1.02017e-15 -3.87485e-08 -4.26137e-09 -8.81884e-16 -3.86781e-08 4.80578e-10 -7.42872e-16 -3.83289e-08 5.54771e-09 -6.05642e-16 -3.76845e-08 1.08989e-08 -4.73781e-16 -3.6731e-08 1.64753e-08 -3.45679e-16 -3.54567e-08 2.22176e-08 -2.1895e-16 -3.38569e-08 2.80172e-08 -1.84063e-17 -3.19305e-08 3.37727e-08 -2.28156e-16 -2.96849e-08 3.93307e-08 -4.72713e-16 -2.7136e-08 4.45187e-08 -3.15811e-16 -2.43092e-08 4.9136e-08 -2.11202e-16 -2.12448e-08 5.29033e-08 -2.72658e-17 -1.79974e-08 5.55276e-08 -3.31865e-16 -1.46403e-08 5.66592e-08 -1.7419e-16 -1.12704e-08 5.58855e-08 -7.22686e-17 -8.0118e-09 5.27652e-08 3.87783e-17 -5.0225e-09 4.68618e-08 2.08675e-16 -2.50464e-09 3.77514e-08 2.17057e-17 -7.17444e-10 2.51759e-08 5.14303e-17 9.06119e-09 3.35263e-17 -5.64896e-09 -2.27315e-08 -5.55575e-15 -6.60044e-09 -2.33553e-08 -4.81694e-15 -7.67827e-09 -2.42978e-08 -2.65244e-15 -8.8768e-09 -2.53934e-08 -3.38221e-15 -1.01814e-08 -2.6527e-08 -3.74733e-15 -1.15793e-08 -2.7622e-08 -3.96976e-15 -1.30572e-08 -2.86287e-08 -3.38031e-15 -1.46027e-08 -2.95083e-08 -2.92807e-15 -1.62036e-08 -3.024e-08 -2.63971e-15 -1.78478e-08 -3.08011e-08 -2.48201e-15 -1.95234e-08 -3.11772e-08 -2.51465e-15 -2.12177e-08 -3.13529e-08 -2.50225e-15 -2.29178e-08 -3.131e-08 -2.49853e-15 -2.461e-08 -3.10385e-08 -2.45387e-15 -2.62795e-08 -3.05162e-08 -2.31707e-15 -2.79106e-08 -2.97297e-08 -2.19741e-15 -2.94869e-08 -2.86615e-08 -2.07064e-15 -3.09908e-08 -2.72938e-08 -1.96247e-15 -3.24036e-08 -2.56105e-08 -1.83716e-15 -3.37059e-08 -2.35962e-08 -1.6965e-15 -3.48772e-08 -2.12385e-08 -1.56456e-15 -3.58966e-08 -1.85259e-08 -1.42353e-15 -3.67432e-08 -1.54519e-08 -1.28735e-15 -3.73949e-08 -1.20136e-08 -1.14851e-15 -3.78308e-08 -8.2124e-09 -1.00838e-15 -3.80293e-08 -4.06265e-09 -8.69956e-16 -3.7971e-08 4.22196e-10 -7.30351e-16 -3.76367e-08 5.21356e-09 -5.93411e-16 -3.70102e-08 1.02723e-08 -4.61869e-16 -3.60778e-08 1.55427e-08 -3.34583e-16 -3.48282e-08 2.09682e-08 -2.10003e-16 -3.32567e-08 2.64456e-08 -1.34028e-17 -3.13626e-08 3.18787e-08 -2.2057e-16 -2.91534e-08 3.71216e-08 -4.61423e-16 -2.66452e-08 4.20104e-08 -3.11764e-16 -2.38635e-08 4.63544e-08 -2.12745e-16 -2.08485e-08 4.98883e-08 -3.36786e-17 -1.76547e-08 5.23338e-08 -3.33817e-16 -1.4355e-08 5.33595e-08 -1.78106e-16 -1.1045e-08 5.25755e-08 -7.69327e-17 -7.8472e-09 4.95674e-08 3.26566e-17 -4.91662e-09 4.39312e-08 2.00365e-16 -2.45068e-09 3.52855e-08 1.67995e-17 -7.01806e-10 2.3427e-08 4.7108e-17 8.35938e-09 3.07052e-17 -4.72206e-09 -2.18851e-08 -3.71149e-15 -5.6956e-09 -2.23818e-08 -4.32408e-15 -6.79221e-09 -2.32011e-08 -2.89417e-15 -8.0081e-09 -2.41775e-08 -3.6157e-15 -9.32912e-09 -2.5206e-08 -3.85778e-15 -1.07426e-08 -2.62085e-08 -3.8488e-15 -1.2235e-08 -2.71363e-08 -3.16055e-15 -1.37936e-08 -2.79498e-08 -2.73706e-15 -1.5406e-08 -2.86275e-08 -2.54216e-15 -1.706e-08 -2.9147e-08 -2.43949e-15 -1.87436e-08 -2.94937e-08 -2.50597e-15 -2.04441e-08 -2.96524e-08 -2.49325e-15 -2.21486e-08 -2.96055e-08 -2.47692e-15 -2.38436e-08 -2.93435e-08 -2.42176e-15 -2.55145e-08 -2.88453e-08 -2.27757e-15 -2.71459e-08 -2.80982e-08 -2.11008e-15 -2.87216e-08 -2.70858e-08 -2.01698e-15 -3.02244e-08 -2.5791e-08 -1.91873e-15 -3.1636e-08 -2.41989e-08 -1.80173e-15 -3.29373e-08 -2.2295e-08 -1.66733e-15 -3.41083e-08 -2.00675e-08 -1.54136e-15 -3.51284e-08 -1.75056e-08 -1.40496e-15 -3.5977e-08 -1.46034e-08 -1.27246e-15 -3.66324e-08 -1.1358e-08 -1.13622e-15 -3.70741e-08 -7.7709e-09 -9.96934e-16 -3.72809e-08 -3.85571e-09 -8.58638e-16 -3.72336e-08 3.74761e-10 -7.1849e-16 -3.69132e-08 4.89339e-09 -5.81732e-16 -3.6304e-08 9.6631e-09 -4.50292e-16 -3.53925e-08 1.4631e-08 -3.23672e-16 -3.41675e-08 1.97435e-08 -2.01033e-16 -3.26249e-08 2.49028e-08 -9.57968e-18 -3.07639e-08 3.00178e-08 -2.11776e-16 -2.85923e-08 3.49501e-08 -4.51708e-16 -2.61265e-08 3.95445e-08 -3.07486e-16 -2.33919e-08 4.36199e-08 -2.12292e-16 -2.04288e-08 4.69251e-08 -3.92391e-17 -1.72913e-08 4.91964e-08 -3.34971e-16 -1.40519e-08 5.01202e-08 -1.81874e-16 -1.08052e-08 4.93288e-08 -8.17014e-17 -7.67179e-09 4.6434e-08 2.6352e-17 -4.80347e-09 4.10629e-08 1.91982e-16 -2.39282e-09 3.28748e-08 1.2581e-17 -6.84942e-10 2.17192e-08 4.28106e-17 7.67444e-09 2.78377e-17 -3.75778e-09 -2.09915e-08 -2.61362e-15 -4.76237e-09 -2.13772e-08 -3.85839e-15 -5.88649e-09 -2.2077e-08 -3.14784e-15 -7.12581e-09 -2.29382e-08 -3.86097e-15 -8.46822e-09 -2.38636e-08 -3.98216e-15 -9.90087e-09 -2.47759e-08 -3.71751e-15 -1.14103e-08 -2.56269e-08 -2.94745e-15 -1.29836e-08 -2.63764e-08 -2.51671e-15 -1.46084e-08 -2.70027e-08 -2.3822e-15 -1.62724e-08 -2.7483e-08 -2.33492e-15 -1.79634e-08 -2.78026e-08 -2.43802e-15 -1.96692e-08 -2.79466e-08 -2.4412e-15 -2.13767e-08 -2.7898e-08 -2.42176e-15 -2.30728e-08 -2.76474e-08 -2.3617e-15 -2.47432e-08 -2.7175e-08 -2.21378e-15 -2.63726e-08 -2.64687e-08 -2.0141e-15 -2.79455e-08 -2.55129e-08 -1.94335e-15 -2.94448e-08 -2.42917e-08 -1.85753e-15 -3.08527e-08 -2.2791e-08 -1.75311e-15 -3.21506e-08 -2.09971e-08 -1.62901e-15 -3.33189e-08 -1.88992e-08 -1.5125e-15 -3.43373e-08 -1.6487e-08 -1.38328e-15 -3.51857e-08 -1.3755e-08 -1.25613e-15 -3.58429e-08 -1.07006e-08 -1.12344e-15 -3.62887e-08 -7.32535e-09 -9.85608e-16 -3.65021e-08 -3.64207e-09 -8.47814e-16 -3.64645e-08 3.3702e-10 -7.07276e-16 -3.61572e-08 4.58625e-09 -5.70659e-16 -3.55647e-08 9.07054e-09 -4.39167e-16 -3.46737e-08 1.37399e-08 -3.13141e-16 -3.34737e-08 1.85436e-08 -1.92395e-16 -3.19604e-08 2.33894e-08 -5.01051e-18 -3.01335e-08 2.8191e-08 -2.04945e-16 -2.80009e-08 3.28176e-08 -4.41093e-16 -2.55791e-08 3.71226e-08 -3.02523e-16 -2.28938e-08 4.09346e-08 -2.11017e-16 -1.9985e-08 4.40162e-08 -4.3039e-17 -1.69067e-08 4.61182e-08 -3.34814e-16 -1.37308e-08 4.69443e-08 -1.8493e-16 -1.05508e-08 4.61488e-08 -8.61646e-17 -7.48524e-09 4.33685e-08 2.01049e-17 -4.68283e-09 3.82605e-08 1.8366e-16 -2.3309e-09 3.05229e-08 8.76967e-18 -6.66787e-10 2.00551e-08 3.8418e-17 7.00765e-09 2.45261e-17 -2.77163e-09 -2.00369e-08 -5.21136e-15 -3.81753e-09 -2.03313e-08 -5.14972e-15 -4.97685e-09 -2.09177e-08 -2.96872e-15 -6.24495e-09 -2.16701e-08 -3.80938e-15 -7.61247e-09 -2.24961e-08 -3.42526e-15 -9.06654e-09 -2.33218e-08 -3.18247e-15 -1.05941e-08 -2.40992e-08 -2.82799e-15 -1.21824e-08 -2.47882e-08 -2.64735e-15 -1.3819e-08 -2.53661e-08 -2.56568e-15 -1.54918e-08 -2.58102e-08 -2.47197e-15 -1.71887e-08 -2.61057e-08 -2.48193e-15 -1.88975e-08 -2.62377e-08 -2.42168e-15 -2.06058e-08 -2.61897e-08 -2.35776e-15 -2.23004e-08 -2.59528e-08 -2.27965e-15 -2.39675e-08 -2.5508e-08 -2.12908e-15 -2.55921e-08 -2.48439e-08 -1.91753e-15 -2.71592e-08 -2.39458e-08 -1.85391e-15 -2.86521e-08 -2.27987e-08 -1.78219e-15 -3.00536e-08 -2.13895e-08 -1.69299e-15 -3.13453e-08 -1.97055e-08 -1.58215e-15 -3.25082e-08 -1.77363e-08 -1.47788e-15 -3.35225e-08 -1.54726e-08 -1.35801e-15 -3.43684e-08 -1.29091e-08 -1.23779e-15 -3.50252e-08 -1.00436e-08 -1.10962e-15 -3.54732e-08 -6.87761e-09 -9.73955e-16 -3.56918e-08 -3.42331e-09 -8.37165e-16 -3.56626e-08 3.07705e-10 -6.96519e-16 -3.53674e-08 4.2912e-09 -5.60112e-16 -3.47909e-08 8.49408e-09 -4.28529e-16 -3.39204e-08 1.28693e-08 -3.03037e-16 -3.27454e-08 1.73688e-08 -1.83956e-16 -3.12621e-08 2.1906e-08 -1.67282e-18 -2.94703e-08 2.63992e-08 -1.96939e-16 -2.73782e-08 3.07256e-08 -4.32055e-16 -2.50023e-08 3.47467e-08 -2.97629e-16 -2.23685e-08 3.83008e-08 -2.0852e-16 -1.95166e-08 4.11643e-08 -4.5771e-17 -1.65004e-08 4.3102e-08 -3.33645e-16 -1.33912e-08 4.38351e-08 -1.87457e-16 -1.02812e-08 4.30388e-08 -9.03918e-17 -7.28725e-09 4.03745e-08 1.39404e-17 -4.55445e-09 3.55277e-08 1.75358e-16 -2.26476e-09 2.82332e-08 5.76184e-18 -6.47276e-10 1.84376e-08 3.42275e-17 6.36038e-09 2.13132e-17 -1.77993e-09 -1.90089e-08 -4.69413e-15 -2.87957e-09 -1.92316e-08 -4.92677e-15 -4.08091e-09 -1.97163e-08 -3.68216e-15 -5.3823e-09 -2.03687e-08 -4.19483e-15 -6.77704e-09 -2.11013e-08 -3.54188e-15 -8.25311e-09 -2.18457e-08 -2.94092e-15 -9.79826e-09 -2.25541e-08 -2.54946e-15 -1.14e-08 -2.31865e-08 -2.42951e-15 -1.30462e-08 -2.37199e-08 -2.44643e-15 -1.4725e-08 -2.41314e-08 -2.40968e-15 -1.64248e-08 -2.44059e-08 -2.43281e-15 -1.81336e-08 -2.45288e-08 -2.36704e-15 -1.98391e-08 -2.44842e-08 -2.28255e-15 -2.15288e-08 -2.42632e-08 -2.19372e-15 -2.3189e-08 -2.38479e-08 -2.04625e-15 -2.48054e-08 -2.32273e-08 -1.83868e-15 -2.63632e-08 -2.23879e-08 -1.75913e-15 -2.78464e-08 -2.13155e-08 -1.69682e-15 -2.92381e-08 -1.99979e-08 -1.62351e-15 -3.05206e-08 -1.84231e-08 -1.5277e-15 -3.16751e-08 -1.65817e-08 -1.43766e-15 -3.26826e-08 -1.4465e-08 -1.32879e-15 -3.35236e-08 -1.20681e-08 -1.21681e-15 -3.41779e-08 -9.38913e-09 -1.09409e-15 -3.46262e-08 -6.4296e-09 -9.6136e-16 -3.48482e-08 -3.20104e-09 -8.26185e-16 -3.48262e-08 2.85547e-10 -6.8586e-16 -3.45422e-08 4.00734e-09 -5.49892e-16 -3.39813e-08 7.9332e-09 -4.183e-16 -3.31311e-08 1.20189e-08 -2.93401e-16 -3.19815e-08 1.62194e-08 -1.75957e-16 -3.05288e-08 2.04532e-08 2.32278e-18 -2.87733e-08 2.46438e-08 -1.90572e-16 -2.67232e-08 2.86756e-08 -4.2247e-16 -2.43952e-08 3.24186e-08 -2.92153e-16 -2.18152e-08 3.57208e-08 -2.05251e-16 -1.90229e-08 3.8372e-08 -4.74022e-17 -1.60719e-08 4.0151e-08 -3.31104e-16 -1.30326e-08 4.07959e-08 -1.89047e-16 -9.9963e-09 4.00025e-08 -9.40902e-17 -7.07755e-09 3.74557e-08 7.98039e-18 -4.41811e-09 3.28682e-08 1.67017e-16 -2.19425e-09 2.60093e-08 3.12787e-18 -6.26341e-10 1.68697e-08 3.00759e-17 5.73403e-09 1.78373e-17 -8.07658e-10 -1.78963e-08 -5.57379e-15 -1.9714e-09 -1.80679e-08 -4.76654e-15 -3.21952e-09 -1.84682e-08 -3.65973e-15 -4.55652e-09 -1.90317e-08 -3.23353e-15 -5.97827e-09 -1.96796e-08 -2.85311e-15 -7.47465e-09 -2.03494e-08 -2.74573e-15 -9.03456e-09 -2.09941e-08 -2.68743e-15 -1.06462e-08 -2.15748e-08 -2.62106e-15 -1.22981e-08 -2.2068e-08 -2.578e-15 -1.39788e-08 -2.24507e-08 -2.44282e-15 -1.5677e-08 -2.27077e-08 -2.38576e-15 -1.73812e-08 -2.28246e-08 -2.274e-15 -1.90796e-08 -2.27859e-08 -2.16337e-15 -2.07598e-08 -2.2583e-08 -2.07674e-15 -2.24089e-08 -2.21988e-08 -1.95912e-15 -2.40129e-08 -2.16232e-08 -1.74502e-15 -2.55575e-08 -2.08432e-08 -1.6598e-15 -2.70272e-08 -1.98458e-08 -1.60496e-15 -2.84056e-08 -1.86195e-08 -1.54742e-15 -2.96754e-08 -1.71534e-08 -1.46713e-15 -3.08186e-08 -1.54386e-08 -1.39218e-15 -3.18164e-08 -1.34671e-08 -1.29525e-15 -3.26499e-08 -1.12346e-08 -1.19247e-15 -3.32994e-08 -8.73948e-09 -1.07604e-15 -3.37459e-08 -5.98327e-09 -9.47075e-16 -3.39699e-08 -2.97687e-09 -8.14251e-16 -3.39538e-08 2.69302e-10 -6.74827e-16 -3.36801e-08 3.7338e-09 -5.39687e-16 -3.31344e-08 7.38745e-09 -4.08326e-16 -3.23044e-08 1.11888e-08 -2.84134e-16 -3.11806e-08 1.50957e-08 -1.68155e-16 -2.97594e-08 1.90319e-08 5.22311e-18 -2.80414e-08 2.29258e-08 -1.83214e-16 -2.6035e-08 2.66693e-08 -4.14756e-16 -2.3757e-08 3.01406e-08 -2.86765e-16 -2.12333e-08 3.31971e-08 -2.01167e-16 -1.85034e-08 3.56421e-08 -4.78932e-17 -1.56206e-08 3.72682e-08 -3.27317e-16 -1.26547e-08 3.783e-08 -1.89755e-16 -9.69565e-09 3.70435e-08 -9.72273e-17 -6.85589e-09 3.4616e-08 2.31813e-18 -4.27361e-09 3.02859e-08 1.58604e-16 -2.11923e-09 2.38549e-08 9.97407e-19 -6.03917e-10 1.53544e-08 2.62003e-17 5.13012e-09 1.45972e-17 1.08138e-10 -1.66948e-08 -5.14816e-15 -1.1225e-09 -1.68373e-08 -4.18849e-15 -2.41753e-09 -1.71732e-08 -3.58561e-15 -3.78826e-09 -1.7661e-08 -3.62033e-15 -5.23338e-09 -1.82344e-08 -3.21522e-15 -6.7454e-09 -1.88373e-08 -2.79403e-15 -8.31469e-09 -1.94248e-08 -2.63459e-15 -9.93053e-09 -1.9959e-08 -2.51687e-15 -1.15822e-08 -2.04163e-08 -2.47422e-15 -1.32589e-08 -2.0774e-08 -2.34463e-15 -1.49497e-08 -2.10169e-08 -2.2907e-15 -1.66436e-08 -2.11306e-08 -2.18057e-15 -1.83293e-08 -2.11003e-08 -2.06315e-15 -1.99949e-08 -2.09174e-08 -1.98203e-15 -2.16278e-08 -2.05659e-08 -1.9012e-15 -2.32147e-08 -2.00362e-08 -1.65486e-15 -2.47416e-08 -1.93162e-08 -1.56261e-15 -2.61936e-08 -1.83938e-08 -1.51151e-15 -2.75547e-08 -1.72584e-08 -1.46732e-15 -2.88084e-08 -1.58998e-08 -1.40168e-15 -2.99369e-08 -1.431e-08 -1.34175e-15 -3.0922e-08 -1.24818e-08 -1.25707e-15 -3.17454e-08 -1.04112e-08 -1.16412e-15 -3.23878e-08 -8.09695e-09 -1.05465e-15 -3.28307e-08 -5.54057e-09 -9.30348e-16 -3.3055e-08 -2.75238e-09 -8.00679e-16 -3.30435e-08 2.57763e-10 -6.62884e-16 -3.27794e-08 3.46979e-09 -5.29118e-16 -3.22484e-08 6.85644e-09 -3.98379e-16 -3.14388e-08 1.03791e-08 -2.7514e-16 -3.03412e-08 1.39983e-08 -1.60682e-16 -2.89525e-08 1.76432e-08 8.78102e-18 -2.72734e-08 2.12468e-08 -1.77496e-16 -2.53126e-08 2.47086e-08 -4.06782e-16 -2.30868e-08 2.79148e-08 -2.80732e-16 -2.0622e-08 3.07324e-08 -1.9608e-16 -1.79576e-08 3.29776e-08 -4.76251e-17 -1.51463e-08 3.44569e-08 -3.22185e-16 -1.22572e-08 3.4941e-08 -1.8942e-16 -9.37902e-09 3.41653e-08 -9.97e-17 -6.62205e-09 3.1859e-08 -3.06876e-18 -4.12078e-09 2.77846e-08 1.49908e-16 -2.03956e-09 2.17737e-08 -1.25105e-18 -5.7994e-10 1.38947e-08 2.23899e-17 4.55018e-09 1.12566e-17 9.2402e-10 -1.5413e-08 -4.96574e-15 -3.65863e-10 -1.55474e-08 -4.10124e-15 -1.7011e-09 -1.58379e-08 -3.38334e-15 -3.0982e-09 -1.62639e-08 -3.33093e-15 -4.55892e-09 -1.67737e-08 -3.06265e-15 -6.07854e-09 -1.73177e-08 -2.68364e-15 -7.6491e-09 -1.78542e-08 -2.52763e-15 -9.26114e-09 -1.8347e-08 -2.39412e-15 -1.09048e-08 -1.87726e-08 -2.34738e-15 -1.25699e-08 -1.91089e-08 -2.20893e-15 -1.42462e-08 -1.93406e-08 -2.1514e-15 -1.59231e-08 -1.94537e-08 -2.04275e-15 -1.75896e-08 -1.94337e-08 -1.92721e-15 -1.92346e-08 -1.92725e-08 -1.85844e-15 -2.08457e-08 -1.89548e-08 -1.79819e-15 -2.24102e-08 -1.84717e-08 -1.54816e-15 -2.39145e-08 -1.78118e-08 -1.46222e-15 -2.53443e-08 -1.6964e-08 -1.41699e-15 -2.66841e-08 -1.59186e-08 -1.38503e-15 -2.79178e-08 -1.46662e-08 -1.33262e-15 -2.90282e-08 -1.31996e-08 -1.28673e-15 -2.99976e-08 -1.15123e-08 -1.21398e-15 -3.08081e-08 -9.60072e-09 -1.13112e-15 -3.14411e-08 -7.46388e-09 -1.0292e-15 -3.18784e-08 -5.10346e-09 -9.10421e-16 -3.21014e-08 -2.52915e-09 -7.84766e-16 -3.20935e-08 2.49782e-10 -6.49531e-16 -3.18382e-08 3.21459e-09 -5.1779e-16 -3.13217e-08 6.3399e-09 -3.88205e-16 -3.05326e-08 9.58984e-09 -2.66229e-16 -2.94619e-08 1.29278e-08 -1.53229e-16 -2.81068e-08 1.6288e-08 1.15366e-17 -2.64682e-08 1.96083e-08 -1.70693e-16 -2.4555e-08 2.27954e-08 -4.02077e-16 -2.23839e-08 2.57436e-08 -2.74507e-16 -1.99808e-08 2.83293e-08 -1.90461e-16 -1.73848e-08 3.03816e-08 -4.61083e-17 -1.46484e-08 3.17204e-08 -3.1563e-16 -1.18398e-08 3.21324e-08 -1.87959e-16 -9.04624e-09 3.13718e-08 -1.01377e-16 -6.37589e-09 2.91887e-08 -8.03571e-18 -3.95948e-09 2.53682e-08 1.40677e-16 -1.95514e-09 1.97693e-08 -3.4999e-18 -5.5435e-10 1.2494e-08 1.88765e-17 3.99583e-09 8.2755e-18 1.59725e-09 -1.40737e-08 -4.79546e-15 2.66322e-10 -1.42165e-08 -4.0682e-15 -1.09464e-09 -1.4477e-08 -2.97887e-15 -2.50497e-09 -1.48535e-08 -3.00463e-15 -3.96921e-09 -1.53095e-08 -2.80379e-15 -5.48504e-09 -1.58019e-08 -2.48123e-15 -7.04614e-09 -1.62931e-08 -2.34256e-15 -8.64426e-09 -1.67489e-08 -2.21921e-15 -1.02704e-08 -1.71465e-08 -2.17704e-15 -1.19151e-08 -1.74642e-08 -2.04912e-15 -1.35685e-08 -1.76872e-08 -2.0114e-15 -1.52206e-08 -1.78015e-08 -1.92235e-15 -1.68609e-08 -1.77935e-08 -1.81607e-15 -1.84785e-08 -1.76549e-08 -1.75396e-15 -2.00617e-08 -1.73716e-08 -1.69161e-15 -2.15981e-08 -1.69352e-08 -1.43956e-15 -2.30748e-08 -1.63351e-08 -1.36509e-15 -2.44776e-08 -1.55612e-08 -1.32484e-15 -2.57918e-08 -1.46044e-08 -1.30212e-15 -2.70016e-08 -1.34565e-08 -1.26067e-15 -2.80903e-08 -1.21108e-08 -1.22728e-15 -2.90409e-08 -1.05615e-08 -1.16574e-15 -2.98359e-08 -8.80576e-09 -1.09299e-15 -3.0457e-08 -6.8426e-09 -9.99057e-16 -3.08868e-08 -4.67387e-09 -8.86654e-16 -3.11071e-08 -2.30866e-09 -7.65942e-16 -3.11018e-08 2.44288e-10 -6.34237e-16 -3.08546e-08 2.96757e-09 -5.05308e-16 -3.03524e-08 5.83767e-09 -3.77539e-16 -2.95841e-08 8.82143e-09 -2.5725e-16 -2.85412e-08 1.1885e-08 -1.45845e-16 -2.72209e-08 1.49677e-08 1.50241e-17 -2.56246e-08 1.80121e-08 -1.64926e-16 -2.37611e-08 2.0932e-08 -3.96201e-16 -2.16473e-08 2.36297e-08 -2.67223e-16 -1.93089e-08 2.59909e-08 -1.83556e-16 -1.67848e-08 2.78575e-08 -4.4169e-17 -1.41268e-08 2.90624e-08 -3.08238e-16 -1.14022e-08 2.94079e-08 -1.85485e-16 -8.69719e-09 2.86667e-08 -1.02367e-16 -6.11733e-09 2.66088e-08 -1.27665e-17 -3.78964e-09 2.30405e-08 1.30406e-16 -1.86588e-09 1.78456e-08 -6.11615e-18 -5.27094e-10 1.11552e-08 1.5484e-17 3.46873e-09 5.35709e-18 2.09506e-09 -1.27105e-08 -3.54958e-15 7.49281e-10 -1.28707e-08 -3.51168e-15 -6.16431e-10 -1.31113e-08 -2.67944e-15 -2.02211e-09 -1.34478e-08 -3.41601e-15 -3.47423e-09 -1.38574e-08 -3.22761e-15 -4.97217e-09 -1.4304e-08 -2.60341e-15 -6.51099e-09 -1.47543e-08 -2.19175e-15 -8.08344e-09 -1.51764e-08 -1.99704e-15 -9.68128e-09 -1.55486e-08 -1.97601e-15 -1.12955e-08 -1.585e-08 -1.89225e-15 -1.29169e-08 -1.60658e-08 -1.88068e-15 -1.45358e-08 -1.61826e-08 -1.80802e-15 -1.61421e-08 -1.61872e-08 -1.70618e-15 -1.77254e-08 -1.60717e-08 -1.64663e-15 -1.92742e-08 -1.58228e-08 -1.56447e-15 -2.07767e-08 -1.54326e-08 -1.3298e-15 -2.22202e-08 -1.48915e-08 -1.26937e-15 -2.35913e-08 -1.41901e-08 -1.23464e-15 -2.48753e-08 -1.33203e-08 -1.21928e-15 -2.60573e-08 -1.22746e-08 -1.18652e-15 -2.71209e-08 -1.10472e-08 -1.16371e-15 -2.80496e-08 -9.63279e-09 -1.11232e-15 -2.88263e-08 -8.02905e-09 -1.04943e-15 -2.94334e-08 -6.23538e-09 -9.63849e-16 -2.98538e-08 -4.25365e-09 -8.58613e-16 -3.00699e-08 -2.09235e-09 -7.4382e-16 -3.00661e-08 2.40305e-10 -6.16628e-16 -2.98266e-08 2.72823e-09 -4.91411e-16 -2.93387e-08 5.34973e-09 -3.66152e-16 -2.85917e-08 8.07433e-09 -2.47997e-16 -2.75774e-08 1.08709e-08 -1.38249e-16 -2.62935e-08 1.36837e-08 1.80155e-17 -2.47414e-08 1.646e-08 -1.57714e-16 -2.29301e-08 1.91207e-08 -3.88507e-16 -2.08764e-08 2.1576e-08 -2.59259e-16 -1.86059e-08 2.37205e-08 -1.76385e-16 -1.61571e-08 2.54087e-08 -4.09552e-17 -1.35811e-08 2.64864e-08 -2.98652e-16 -1.09446e-08 2.67714e-08 -1.81794e-16 -8.33185e-09 2.6054e-08 -1.02445e-16 -5.84636e-09 2.41233e-08 -1.69756e-17 -3.61123e-09 2.08054e-08 1.19389e-16 -1.77174e-09 1.60061e-08 -8.41529e-18 -4.98127e-10 9.88158e-09 1.25044e-17 2.97061e-09 2.95163e-18 2.40179e-09 -1.13607e-08 -2.76845e-15 1.07098e-09 -1.15399e-08 -2.7935e-15 -2.75135e-10 -1.17651e-08 -1.93215e-15 -1.65567e-09 -1.20673e-08 -2.38584e-15 -3.07798e-09 -1.24351e-08 -2.40882e-15 -4.54241e-09 -1.28396e-08 -2.17907e-15 -6.04493e-09 -1.32518e-08 -1.89441e-15 -7.57902e-09 -1.36423e-08 -1.77179e-15 -9.13699e-09 -1.39907e-08 -1.7835e-15 -1.07103e-08 -1.42766e-08 -1.72423e-15 -1.22901e-08 -1.4486e-08 -1.74195e-15 -1.3867e-08 -1.46056e-08 -1.69534e-15 -1.54313e-08 -1.46229e-08 -1.60792e-15 -1.69729e-08 -1.45301e-08 -1.55514e-15 -1.84808e-08 -1.4315e-08 -1.46568e-15 -1.99433e-08 -1.39701e-08 -1.24919e-15 -2.13483e-08 -1.34865e-08 -1.18372e-15 -2.26826e-08 -1.28558e-08 -1.14903e-15 -2.39322e-08 -1.20707e-08 -1.13726e-15 -2.50824e-08 -1.11245e-08 -1.11046e-15 -2.61174e-08 -1.00122e-08 -1.0962e-15 -2.7021e-08 -8.72906e-09 -1.05381e-15 -2.77768e-08 -7.27327e-09 -1.0005e-15 -2.83676e-08 -5.64447e-09 -9.23488e-16 -2.87768e-08 -3.84459e-09 -8.26217e-16 -2.89875e-08 -1.88156e-09 -7.18194e-16 -2.89842e-08 2.36963e-10 -5.96501e-16 -2.87521e-08 2.49618e-09 -4.75863e-16 -2.82785e-08 4.8762e-09 -3.53846e-16 -2.75535e-08 7.34916e-09 -2.38331e-16 -2.6569e-08 9.88659e-09 -1.30502e-16 -2.53232e-08 1.24377e-08 2.17012e-17 -2.38174e-08 1.49544e-08 -1.51093e-16 -2.20609e-08 1.73643e-08 -3.78554e-16 -2.00704e-08 1.95854e-08 -2.50065e-16 -1.78712e-08 2.15213e-08 -1.67777e-16 -1.55014e-08 2.30388e-08 -3.76838e-17 -1.30114e-08 2.39965e-08 -2.88462e-16 -1.04667e-08 2.42267e-08 -1.77265e-16 -7.95032e-09 2.35376e-08 -1.01923e-16 -5.5631e-09 2.17361e-08 -2.08344e-17 -3.42431e-09 1.86666e-08 1.08012e-16 -1.67271e-09 1.42545e-08 -1.09317e-17 -4.67421e-10 8.67629e-09 9.7988e-18 2.50318e-09 7.27934e-19 2.52324e-09 -1.00573e-08 -2.76934e-15 1.23532e-09 -1.0252e-08 -2.68161e-15 -6.75393e-11 -1.04623e-08 -2.02793e-15 -1.40265e-09 -1.07322e-08 -2.35213e-15 -2.77747e-09 -1.10602e-08 -2.38438e-15 -4.19268e-09 -1.14244e-08 -2.15717e-15 -5.64481e-09 -1.17996e-08 -1.82547e-15 -7.12778e-09 -1.21594e-08 -1.70909e-15 -8.63429e-09 -1.24841e-08 -1.72774e-15 -1.01561e-08 -1.27548e-08 -1.67343e-15 -1.16847e-08 -1.29574e-08 -1.69049e-15 -1.32109e-08 -1.30794e-08 -1.63989e-15 -1.47252e-08 -1.31085e-08 -1.54382e-15 -1.62179e-08 -1.30375e-08 -1.48517e-15 -1.76782e-08 -1.28547e-08 -1.39413e-15 -1.90949e-08 -1.25533e-08 -1.17569e-15 -2.0456e-08 -1.21253e-08 -1.10397e-15 -2.17488e-08 -1.1563e-08 -1.0668e-15 -2.29596e-08 -1.08599e-08 -1.05602e-15 -2.4074e-08 -1.00101e-08 -1.03298e-15 -2.50769e-08 -9.00924e-09 -1.02531e-15 -2.59525e-08 -7.85339e-09 -9.90752e-16 -2.66848e-08 -6.54099e-09 -9.466e-16 -2.72571e-08 -5.07201e-09 -8.78315e-16 -2.76535e-08 -3.4484e-09 -7.89644e-16 -2.78574e-08 -1.67752e-09 -6.89195e-16 -2.7854e-08 2.33506e-10 -5.73846e-16 -2.76289e-08 2.27117e-09 -4.5857e-16 -2.717e-08 4.41734e-09 -3.40509e-16 -2.64677e-08 6.64673e-09 -2.28109e-16 -2.55145e-08 8.9335e-09 -1.22406e-16 -2.43085e-08 1.12316e-08 2.49915e-17 -2.28516e-08 1.34975e-08 -1.43308e-16 -2.11528e-08 1.56655e-08 -3.6344e-16 -1.92287e-08 1.76613e-08 -2.40309e-16 -1.71045e-08 1.93971e-08 -1.59272e-16 -1.48175e-08 2.07518e-08 -3.32657e-17 -1.24176e-08 2.15965e-08 -2.76932e-16 -9.96893e-09 2.17781e-08 -1.71611e-16 -7.55283e-09 2.11215e-08 -1.00522e-16 -5.26778e-09 1.9451e-08 -2.39008e-17 -3.22907e-09 1.66279e-08 9.78369e-17 -1.56886e-09 1.25942e-08 -1.50191e-17 -4.34964e-10 7.5424e-09 7.65437e-18 2.06822e-09 -8.75707e-19 2.48496e-09 -8.82345e-09 -2.16978e-15 1.2614e-09 -9.0284e-09 -2.23238e-15 2.11732e-11 -9.22205e-09 -2.16062e-15 -1.25109e-09 -9.45993e-09 -2.28e-15 -2.56272e-09 -9.74861e-09 -2.24288e-15 -3.91444e-09 -1.00727e-08 -2.07201e-15 -5.30314e-09 -1.04109e-08 -1.71757e-15 -6.72305e-09 -1.07395e-08 -1.60454e-15 -8.16715e-09 -1.104e-08 -1.6219e-15 -9.62746e-09 -1.12945e-08 -1.56952e-15 -1.10956e-08 -1.14893e-08 -1.59597e-15 -1.25627e-08 -1.16122e-08 -1.55757e-15 -1.40195e-08 -1.16517e-08 -1.47e-15 -1.54564e-08 -1.16006e-08 -1.41594e-15 -1.68629e-08 -1.14483e-08 -1.31908e-15 -1.82279e-08 -1.11882e-08 -1.10871e-15 -1.954e-08 -1.08133e-08 -1.0311e-15 -2.07865e-08 -1.03165e-08 -9.88847e-16 -2.19542e-08 -9.69215e-09 -9.76067e-16 -2.30292e-08 -8.93519e-09 -9.54493e-16 -2.39967e-08 -8.04179e-09 -9.51703e-16 -2.48413e-08 -7.0087e-09 -9.23955e-16 -2.55475e-08 -5.83473e-09 -8.88562e-16 -2.60994e-08 -4.52007e-09 -8.29091e-16 -2.64812e-08 -3.0667e-09 -7.4947e-16 -2.66772e-08 -1.48138e-09 -6.57168e-16 -2.66731e-08 2.29302e-10 -5.48843e-16 -2.64549e-08 2.05309e-09 -4.39554e-16 -2.60112e-08 3.9736e-09 -3.26057e-16 -2.53326e-08 5.96803e-09 -2.17251e-16 -2.44121e-08 8.01315e-09 -1.14018e-16 -2.32481e-08 1.00676e-08 2.87704e-17 -2.18426e-08 1.20921e-08 -1.3621e-16 -2.02047e-08 1.40276e-08 -3.46773e-16 -1.83507e-08 1.58073e-08 -2.29685e-16 -1.63053e-08 1.73518e-08 -1.49417e-16 -1.41054e-08 1.85519e-08 -2.92304e-17 -1.17998e-08 1.92908e-08 -2.64798e-16 -9.45143e-09 1.94298e-08 -1.65463e-16 -7.13978e-09 1.88099e-08 -9.87517e-17 -4.96078e-09 1.7272e-08 -2.64528e-17 -3.02577e-09 1.46929e-08 8.93345e-17 -1.46032e-09 1.10288e-08 -1.82801e-17 -4.00771e-10 6.48285e-09 5.88563e-18 1.66745e-09 -2.21408e-18 2.32599e-09 -7.67131e-09 -2.60574e-15 1.17954e-09 -7.88195e-09 -2.08404e-15 1.49977e-11 -8.05751e-09 -1.96133e-15 -1.18168e-09 -8.26325e-09 -1.67522e-15 -2.41782e-09 -8.51246e-09 -1.54722e-15 -3.69439e-09 -8.79609e-09 -1.70141e-15 -5.00864e-09 -9.09663e-09 -1.62602e-15 -6.35514e-09 -9.39297e-09 -1.63741e-15 -7.72717e-09 -9.66802e-09 -1.66016e-15 -9.117e-09 -9.90465e-09 -1.58368e-15 -1.05165e-08 -1.00898e-08 -1.58762e-15 -1.19169e-08 -1.02118e-08 -1.53322e-15 -1.33091e-08 -1.02595e-08 -1.43191e-15 -1.46838e-08 -1.0226e-08 -1.36756e-15 -1.60306e-08 -1.01015e-08 -1.25969e-15 -1.73386e-08 -9.88011e-09 -1.04882e-15 -1.85967e-08 -9.55518e-09 -9.62511e-16 -1.97925e-08 -9.12063e-09 -9.13606e-16 -2.09131e-08 -8.5715e-09 -8.97173e-16 -2.1945e-08 -7.90337e-09 -8.75817e-16 -2.28737e-08 -7.11305e-09 -8.76639e-16 -2.36845e-08 -6.19784e-09 -8.54859e-16 -2.43623e-08 -5.15692e-09 -8.27764e-16 -2.48916e-08 -3.99065e-09 -7.76996e-16 -2.52575e-08 -2.701e-09 -7.06597e-16 -2.54446e-08 -1.29416e-09 -6.22735e-16 -2.54392e-08 2.23839e-10 -5.21832e-16 -2.5228e-08 1.84198e-09 -4.18926e-16 -2.48e-08 3.54557e-09 -3.10424e-16 -2.41463e-08 5.31427e-09 -2.0564e-16 -2.32603e-08 7.12732e-09 -1.05156e-16 -2.21407e-08 8.94789e-09 3.21994e-17 -2.07896e-08 1.0741e-08 -1.28221e-16 -1.92159e-08 1.2454e-08 -3.30727e-16 -1.74358e-08 1.40272e-08 -2.18663e-16 -1.54736e-08 1.53896e-08 -1.4012e-16 -1.33652e-08 1.64435e-08 -2.44125e-17 -1.11584e-08 1.7084e-08 -2.51666e-16 -8.91474e-09 1.71862e-08 -1.5851e-16 -6.71175e-09 1.66069e-08 -9.63311e-17 -4.64267e-09 1.52029e-08 -2.81952e-17 -2.81485e-09 1.2865e-08 8.3223e-17 -1.34732e-09 9.56127e-09 -2.06139e-17 -3.64888e-10 5.50042e-09 4.74223e-18 1.30256e-09 -2.89746e-18 2.09012e-09 -6.60398e-09 -1.80519e-15 1.02555e-09 -6.81738e-09 -1.7859e-15 -5.67494e-11 -6.97522e-09 -2.12897e-15 -1.1703e-09 -7.1497e-09 -1.69967e-15 -2.3228e-09 -7.35995e-09 -1.38726e-15 -3.51582e-09 -7.60308e-09 -1.45767e-15 -4.74724e-09 -7.8652e-09 -1.37753e-15 -6.01214e-09 -8.12807e-09 -1.4451e-15 -7.30424e-09 -8.37592e-09 -1.50411e-15 -8.61613e-09 -8.59276e-09 -1.45158e-15 -9.93987e-09 -8.76607e-09 -1.47867e-15 -1.1267e-08 -8.88461e-09 -1.44448e-15 -1.25885e-08 -8.93794e-09 -1.35862e-15 -1.38952e-08 -8.91935e-09 -1.30316e-15 -1.51769e-08 -8.81983e-09 -1.19696e-15 -1.64231e-08 -8.63389e-09 -9.90844e-16 -1.76226e-08 -8.35565e-09 -8.97293e-16 -1.87635e-08 -7.97973e-09 -8.4143e-16 -1.98331e-08 -7.50183e-09 -8.20295e-16 -2.08184e-08 -6.91819e-09 -7.98167e-16 -2.17053e-08 -6.22616e-09 -8.01658e-16 -2.24794e-08 -5.42358e-09 -7.85183e-16 -2.31264e-08 -4.50989e-09 -7.65877e-16 -2.36313e-08 -3.48564e-09 -7.23491e-16 -2.39798e-08 -2.35274e-09 -6.62188e-16 -2.4157e-08 -1.1168e-09 -5.86703e-16 -2.41499e-08 2.16724e-10 -4.93275e-16 -2.39459e-08 1.63801e-09 -3.96873e-16 -2.35344e-08 3.13404e-09 -2.93637e-16 -2.2907e-08 4.68681e-09 -1.93184e-16 -2.20576e-08 6.27803e-09 -9.58008e-17 -2.0985e-08 7.8752e-09 3.60411e-17 -1.96914e-08 9.44745e-09 -1.20642e-16 -1.81857e-08 1.09484e-08 -3.14327e-16 -1.64838e-08 1.23252e-08 -2.06865e-16 -1.46092e-08 1.35151e-08 -1.29757e-16 -1.25971e-08 1.44314e-08 -2.05301e-17 -1.04938e-08 1.49808e-08 -2.38425e-16 -8.35955e-09 1.50519e-08 -1.51536e-16 -6.26953e-09 1.45169e-08 -9.39176e-17 -4.31421e-09 1.32476e-08 -2.97445e-17 -2.59691e-09 1.11477e-08 7.82586e-17 -1.2302e-09 8.19455e-09 -2.21279e-17 -3.27406e-10 4.59764e-09 4.02374e-18 9.75153e-10 -3.30867e-18 1.81829e-09 -5.6195e-09 -1.92087e-15 8.35024e-10 -5.83411e-09 -1.58019e-15 -1.63622e-10 -5.97658e-09 -2.00587e-15 -1.19114e-09 -6.12219e-09 -1.44957e-15 -2.25585e-09 -6.29524e-09 -1.32048e-15 -3.36036e-09 -6.49857e-09 -1.37149e-15 -4.50349e-09 -6.72207e-09 -1.2099e-15 -5.6811e-09 -6.95046e-09 -1.27894e-15 -6.88749e-09 -7.16953e-09 -1.37574e-15 -8.11571e-09 -7.36454e-09 -1.36503e-15 -9.35814e-09 -7.52364e-09 -1.41912e-15 -1.06066e-08 -7.63616e-09 -1.39646e-15 -1.18522e-08 -7.6923e-09 -1.31199e-15 -1.3086e-08 -7.68561e-09 -1.25195e-15 -1.42979e-08 -7.60789e-09 -1.13733e-15 -1.54777e-08 -7.45407e-09 -9.35359e-16 -1.66144e-08 -7.21893e-09 -8.33649e-16 -1.76964e-08 -6.89774e-09 -7.71171e-16 -1.87114e-08 -6.48684e-09 -7.45625e-16 -1.96466e-08 -5.98304e-09 -7.22912e-16 -2.04885e-08 -5.38421e-09 -7.28661e-16 -2.12234e-08 -4.68861e-09 -7.16996e-16 -2.18373e-08 -3.89597e-09 -7.04817e-16 -2.23159e-08 -3.00692e-09 -6.70237e-16 -2.26455e-08 -2.02331e-09 -6.17533e-16 -2.2812e-08 -9.50145e-10 -5.4997e-16 -2.28031e-08 2.07672e-10 -4.63681e-16 -2.26065e-08 1.44151e-09 -3.73586e-16 -2.22124e-08 2.73994e-09 -2.75685e-16 -2.1613e-08 4.08727e-09 -1.79736e-16 -2.08023e-08 5.46752e-09 -8.57176e-17 -1.97796e-08 6.85239e-09 3.9802e-17 -1.85471e-08 8.21498e-09 -1.11834e-16 -1.71135e-08 9.51485e-09 -2.97787e-16 -1.54942e-08 1.07058e-08 -1.94404e-16 -1.37121e-08 1.17331e-08 -1.20441e-16 -1.18014e-08 1.25206e-08 -1.64478e-17 -9.80684e-09 1.29863e-08 -2.24653e-16 -7.78677e-09 1.30319e-08 -1.44164e-16 -5.81414e-09 1.25442e-08 -9.11517e-17 -3.97641e-09 1.14099e-08 -3.08882e-17 -2.37278e-09 9.54411e-09 7.38738e-17 -1.10945e-09 6.93121e-09 -2.26348e-17 -2.88473e-10 3.77667e-09 3.94595e-18 6.8668e-10 -3.14061e-18 1.54406e-09 -4.71457e-09 -1.75325e-15 6.39288e-10 -4.92934e-09 -1.14474e-15 -2.77457e-10 -5.05983e-09 -1.04279e-15 -1.21946e-09 -5.18018e-09 -8.56317e-16 -2.19564e-09 -5.31906e-09 -1.03812e-15 -3.20988e-09 -5.48433e-09 -1.21871e-15 -4.26212e-09 -5.66982e-09 -1.08983e-15 -5.34926e-09 -5.86333e-09 -1.16067e-15 -6.46635e-09 -6.05244e-09 -1.24897e-15 -7.60702e-09 -6.22386e-09 -1.23728e-15 -8.7641e-09 -6.36656e-09 -1.30247e-15 -9.92966e-09 -6.47057e-09 -1.29455e-15 -1.10952e-08 -6.52675e-09 -1.22598e-15 -1.22519e-08 -6.529e-09 -1.17428e-15 -1.33899e-08 -6.46986e-09 -1.05857e-15 -1.44992e-08 -6.34473e-09 -8.77967e-16 -1.55691e-08 -6.14895e-09 -7.71643e-16 -1.65884e-08 -5.87845e-09 -7.04144e-16 -1.75452e-08 -5.5301e-09 -6.75061e-16 -1.8427e-08 -5.10126e-09 -6.51964e-16 -1.9221e-08 -4.59021e-09 -6.59644e-16 -1.99139e-08 -3.99564e-09 -6.52233e-16 -2.04924e-08 -3.31744e-09 -6.46409e-16 -2.09429e-08 -2.55633e-09 -6.1885e-16 -2.12523e-08 -1.71404e-09 -5.73873e-16 -2.14074e-08 -7.94981e-10 -5.1338e-16 -2.13963e-08 1.96501e-10 -4.33515e-16 -2.12076e-08 1.25293e-09 -3.49212e-16 -2.08321e-08 2.36442e-09 -2.5649e-16 -2.02623e-08 3.51745e-09 -1.6513e-16 -1.9493e-08 4.6983e-09 -7.47724e-17 -1.85233e-08 5.88266e-09 4.42088e-17 -1.73557e-08 7.04741e-09 -1.02428e-16 -1.59986e-08 8.15779e-09 -2.79533e-16 -1.44669e-08 9.17406e-09 -1.80748e-16 -1.27827e-08 1.00489e-08 -1.10504e-16 -1.09787e-08 1.07166e-08 -1.38998e-17 -9.09828e-09 1.11059e-08 -2.11226e-16 -7.19755e-09 1.11311e-08 -1.37133e-16 -5.34691e-09 1.06936e-08 -8.86192e-17 -3.63055e-09 9.69353e-09 -3.21961e-17 -2.14352e-09 8.05708e-09 6.89117e-17 -9.85736e-10 5.77343e-09 -2.23527e-17 -2.48309e-10 3.03924e-09 4.27518e-18 4.38371e-10 -2.79936e-18 2.9382e-09 -2.62887e-09 -4.5606e-16 2.11906e-09 -3.48107e-09 -8.05768e-16 1.29155e-09 -3.88707e-09 -1.73362e-15 4.62618e-10 -4.10041e-09 -7.23584e-16 -3.75232e-10 -4.22198e-09 -9.13014e-16 -1.23431e-09 -4.3211e-09 -7.9984e-16 -2.12374e-09 -4.42963e-09 -9.82784e-16 -3.04855e-09 -4.55952e-09 -1.03423e-15 -4.00986e-09 -4.70851e-09 -8.37522e-16 -5.00564e-09 -4.86754e-09 -9.27547e-16 -6.03185e-09 -5.02623e-09 -1.06287e-15 -7.0828e-09 -5.17291e-09 -1.09832e-15 -8.15184e-09 -5.29752e-09 -1.19488e-15 -9.23148e-09 -5.3909e-09 -1.20591e-15 -1.03136e-08 -5.44466e-09 -1.14891e-15 -1.13895e-08 -5.45308e-09 -1.09947e-15 -1.24499e-08 -5.40947e-09 -9.81115e-16 -1.3485e-08 -5.30964e-09 -8.29901e-16 -1.44844e-08 -5.14951e-09 -7.12764e-16 -1.54373e-08 -4.92557e-09 -6.40286e-16 -1.63322e-08 -4.63518e-09 -6.08954e-16 -1.71573e-08 -4.2762e-09 -5.86438e-16 -1.79002e-08 -3.84726e-09 -5.96052e-16 -1.85484e-08 -3.34738e-09 -5.92506e-16 -1.90892e-08 -2.77662e-09 -5.92129e-16 -1.95098e-08 -2.1357e-09 -5.70611e-16 -1.97977e-08 -1.42623e-09 -5.32172e-16 -1.99405e-08 -6.52035e-10 -4.77561e-16 -1.99272e-08 1.83118e-10 -4.03072e-16 -1.97471e-08 1.07285e-09 -3.23785e-16 -1.93914e-08 2.00875e-09 -2.35918e-16 -1.88534e-08 2.97938e-09 -1.49145e-16 -1.81282e-08 3.97315e-09 -6.26985e-17 -1.7215e-08 4.9695e-09 4.89796e-17 -1.61165e-08 5.94892e-09 -9.09614e-17 -1.48407e-08 6.88203e-09 -2.5926e-16 -1.34019e-08 7.73518e-09 -1.65856e-16 -1.18211e-08 8.4682e-09 -1.02147e-16 -1.01298e-08 9.0252e-09 -1.17255e-17 -8.36928e-09 9.34536e-09 -1.97568e-16 -6.59334e-09 9.35522e-09 -1.29848e-16 -4.86942e-09 8.96968e-09 -8.57172e-17 -3.27825e-09 8.10235e-09 -3.30899e-17 -1.91049e-09 6.68932e-09 6.36261e-17 -8.59947e-10 4.72288e-09 -2.02241e-17 -2.07229e-10 2.38652e-09 5.14665e-18 2.31142e-10 -2.0552e-18 2.5608e-09 -1.95912e-09 6.77938e-17 1.82653e-09 -2.7468e-09 1.59956e-16 1.07638e-09 -3.13692e-09 -8.44438e-16 3.217e-10 -3.34573e-09 -5.08085e-16 -4.40426e-10 -3.45985e-09 -7.90677e-16 -1.22027e-09 -3.54126e-09 -7.65632e-16 -2.02647e-09 -3.62342e-09 -8.76756e-16 -2.86472e-09 -3.72128e-09 -9.43819e-16 -3.73704e-09 -3.83618e-09 -7.81055e-16 -4.64245e-09 -3.96213e-09 -8.63054e-16 -5.57777e-09 -4.0909e-09 -9.82217e-16 -6.53813e-09 -4.21254e-09 -1.00258e-15 -7.51751e-09 -4.31814e-09 -1.08707e-15 -8.50894e-09 -4.39944e-09 -1.09513e-15 -9.50477e-09 -4.44885e-09 -1.04639e-15 -1.04968e-08 -4.46109e-09 -1.00448e-15 -1.1476e-08 -4.43023e-09 -8.96561e-16 -1.24331e-08 -4.35251e-09 -7.80398e-16 -1.33582e-08 -4.22438e-09 -6.56557e-16 -1.42409e-08 -4.04285e-09 -5.80942e-16 -1.50704e-08 -3.80574e-09 -5.48716e-16 -1.58353e-08 -3.51131e-09 -5.27341e-16 -1.6524e-08 -3.15852e-09 -5.38737e-16 -1.71247e-08 -2.74666e-09 -5.38602e-16 -1.76254e-08 -2.2759e-09 -5.42722e-16 -1.80141e-08 -1.74694e-09 -5.26153e-16 -1.82792e-08 -1.16122e-09 -4.92896e-16 -1.84092e-08 -5.21999e-10 -4.42752e-16 -1.83936e-08 1.67516e-10 -3.72415e-16 -1.82227e-08 9.01993e-10 -2.97214e-16 -1.78884e-08 1.67443e-09 -2.13798e-16 -1.73844e-08 2.47533e-09 -1.31604e-16 -1.67063e-08 3.2951e-09 -4.93856e-17 -1.58535e-08 4.11672e-09 5.46614e-17 -1.48286e-08 4.92406e-09 -7.77936e-17 -1.36393e-08 5.69277e-09 -2.33611e-16 -1.22991e-08 6.39493e-09 -1.4941e-16 -1.0828e-08 6.99713e-09 -9.37617e-17 -9.25563e-09 7.4528e-09 -1.14833e-17 -7.62126e-09 7.71098e-09 -1.84316e-16 -5.97587e-09 7.70985e-09 -1.22802e-16 -4.38366e-09 7.37747e-09 -8.28171e-17 -2.92147e-09 6.64016e-09 -3.38967e-17 -1.6754e-09 5.44326e-09 5.79839e-17 -7.33232e-10 3.7807e-09 -1.63693e-17 -1.65667e-10 1.81896e-09 6.30609e-18 6.54751e-11 -1.30126e-18 2.22318e-09 -1.38426e-09 3.59329e-17 1.57648e-09 -2.1001e-09 6.61271e-17 9.05116e-10 -2.46556e-09 -7.84263e-16 2.24047e-10 -2.66466e-09 2.23469e-17 -4.65241e-10 -2.77057e-09 -6.32347e-16 -1.16993e-09 -2.83657e-09 -3.38085e-16 -1.89731e-09 -2.89604e-09 -4.25782e-16 -2.65295e-09 -2.96564e-09 -7.04369e-16 -3.43937e-09 -3.04975e-09 -6.77615e-16 -4.2564e-09 -3.14511e-09 -7.65973e-16 -5.10172e-09 -3.24558e-09 -8.53189e-16 -5.97127e-09 -3.34299e-09 -8.59097e-16 -6.85979e-09 -3.42962e-09 -9.41462e-16 -7.761e-09 -3.4982e-09 -9.62021e-16 -8.66786e-09 -3.542e-09 -9.32147e-16 -9.57272e-09 -3.55624e-09 -9.04088e-16 -1.04672e-08 -3.53574e-09 -8.12434e-16 -1.13425e-08 -3.47717e-09 -7.29532e-16 -1.21894e-08 -3.37751e-09 -6.01716e-16 -1.29979e-08 -3.23426e-09 -5.2444e-16 -1.3758e-08 -3.04563e-09 -4.9254e-16 -1.44591e-08 -2.81026e-09 -4.7339e-16 -1.50903e-08 -2.52737e-09 -4.8677e-16 -1.56404e-08 -2.19647e-09 -4.90014e-16 -1.60985e-08 -1.81779e-09 -4.9787e-16 -1.64534e-08 -1.39199e-09 -4.85315e-16 -1.66944e-08 -9.20344e-10 -4.55965e-16 -1.68107e-08 -4.05532e-10 -4.08859e-16 -1.67931e-08 1.49774e-10 -3.41489e-16 -1.66322e-08 7.41227e-10 -2.69413e-16 -1.63209e-08 1.36313e-09 -1.90075e-16 -1.58535e-08 2.00781e-09 -1.1249e-16 -1.52258e-08 2.66752e-09 -3.48075e-17 -1.44377e-08 3.32852e-09 6.09235e-17 -1.34913e-08 3.97778e-09 -6.21757e-17 -1.23942e-08 4.59565e-09 -2.02296e-16 -1.11588e-08 5.15954e-09 -1.31629e-16 -9.80402e-09 5.64234e-09 -8.75308e-17 -8.35742e-09 6.00617e-09 -1.19112e-17 -6.85585e-09 6.20941e-09 -1.7073e-16 -5.34721e-09 6.20123e-09 -1.15251e-16 -3.89195e-09 5.92221e-09 -7.92234e-17 -2.56259e-09 5.3108e-09 -3.39838e-17 -1.44038e-09 4.32104e-09 5.25355e-17 -6.07066e-10 2.94739e-09 -1.15042e-17 -1.24215e-10 1.33611e-09 7.76294e-18 -5.87398e-11 -3.63285e-19 1.92365e-09 -9.08219e-10 5.46893e-16 1.36774e-09 -1.54418e-09 4.66848e-16 7.76645e-10 -1.87447e-09 -2.34034e-16 1.68402e-10 -2.05641e-09 2.1419e-16 -4.51025e-10 -2.15114e-09 -7.04632e-16 -1.08481e-09 -2.20279e-09 -5.44492e-16 -1.73796e-09 -2.24288e-09 -4.18914e-16 -2.41511e-09 -2.28849e-09 -5.74567e-16 -3.11882e-09 -2.34604e-09 -5.59103e-16 -3.84945e-09 -2.41448e-09 -6.55416e-16 -4.60549e-09 -2.48954e-09 -7.54338e-16 -5.38379e-09 -2.56469e-09 -7.63033e-16 -6.17995e-09 -2.63346e-09 -8.32885e-16 -6.98857e-09 -2.68956e-09 -8.46153e-16 -7.80338e-09 -2.7272e-09 -8.20733e-16 -8.61748e-09 -2.74215e-09 -8.00482e-16 -9.42324e-09 -2.73e-09 -7.31317e-16 -1.02125e-08 -2.68788e-09 -6.97169e-16 -1.09767e-08 -2.61327e-09 -5.48068e-16 -1.17068e-08 -2.50414e-09 -4.69082e-16 -1.23934e-08 -2.35906e-09 -4.3846e-16 -1.30267e-08 -2.177e-09 -4.22414e-16 -1.35966e-08 -1.95741e-09 -4.38122e-16 -1.40931e-08 -1.69997e-09 -4.45072e-16 -1.45059e-08 -1.40493e-09 -4.56324e-16 -1.4825e-08 -1.07291e-09 -4.47242e-16 -1.50404e-08 -7.04963e-10 -4.20818e-16 -1.51426e-08 -3.03252e-10 -3.757e-16 -1.5123e-08 1.3007e-10 -3.10299e-16 -1.49733e-08 5.9157e-10 -2.40569e-16 -1.46869e-08 1.07676e-09 -1.6505e-16 -1.42588e-08 1.57962e-09 -9.21527e-17 -1.36853e-08 2.0941e-09 -1.93044e-17 -1.29662e-08 2.60944e-09 6.79101e-17 -1.21039e-08 3.11548e-09 -4.47589e-17 -1.1105e-08 3.59683e-09 -1.66652e-16 -9.98131e-09 4.03577e-09 -1.12809e-16 -8.74996e-09 4.41102e-09 -8.18489e-17 -7.43652e-09 4.69272e-09 -1.43097e-17 -6.075e-09 4.84789e-09 -1.57224e-16 -4.70978e-09 4.83601e-09 -1.07575e-16 -3.39705e-09 4.60948e-09 -7.53264e-17 -2.20449e-09 4.11824e-09 -3.3787e-17 -1.208e-09 3.32455e-09 4.69762e-17 -4.83322e-10 2.22271e-09 -6.23262e-18 -8.36631e-11 9.36454e-10 9.1857e-18 -1.42403e-10 4.54159e-19 1.65074e-09 -5.33876e-10 1.98046e-16 1.18712e-09 -1.08056e-09 5.34153e-16 6.76604e-10 -1.36396e-09 -3.18576e-16 1.4001e-10 -1.51982e-09 1.28573e-16 -4.12032e-10 -1.5991e-09 -4.56244e-16 -9.78057e-10 -1.63676e-09 -3.65974e-16 -1.56013e-09 -1.66081e-09 -2.83113e-16 -2.16134e-09 -1.68728e-09 -4.67747e-16 -2.78391e-09 -1.72347e-09 -4.7127e-16 -3.42861e-09 -1.76979e-09 -5.38755e-16 -4.0947e-09 -1.82344e-09 -6.03987e-16 -4.78002e-09 -1.87937e-09 -6.00311e-16 -5.48121e-09 -1.93226e-09 -6.66994e-16 -6.19386e-09 -1.9769e-09 -6.95043e-16 -6.91266e-09 -2.00841e-09 -6.91753e-16 -7.6316e-09 -2.02322e-09 -6.91199e-16 -8.34392e-09 -2.01769e-09 -6.53422e-16 -9.0423e-09 -1.98947e-09 -6.63377e-16 -9.71904e-09 -1.93651e-09 -4.9149e-16 -1.03659e-08 -1.85725e-09 -4.10296e-16 -1.09744e-08 -1.75059e-09 -3.81524e-16 -1.15356e-08 -1.6158e-09 -3.70232e-16 -1.20405e-08 -1.45249e-09 -3.89465e-16 -1.248e-08 -1.2605e-09 -4.0146e-16 -1.28448e-08 -1.04009e-09 -4.16564e-16 -1.31259e-08 -7.91785e-10 -4.11104e-16 -1.33145e-08 -5.16434e-10 -3.87162e-16 -1.3402e-08 -2.15712e-10 -3.4333e-16 -1.33806e-08 1.08712e-10 -2.79288e-16 -1.32433e-08 4.54234e-10 -2.11368e-16 -1.2984e-08 8.17461e-10 -1.39501e-16 -1.25982e-08 1.19386e-09 -7.1317e-17 -1.2083e-08 1.57889e-09 -3.40003e-18 -1.14381e-08 1.96449e-09 7.52e-17 -1.06656e-08 2.34303e-09 -2.55318e-17 -9.77167e-09 2.70296e-09 -1.288e-16 -8.76689e-09 3.03096e-09 -9.34837e-17 -7.66682e-09 3.31098e-09 -7.84439e-17 -6.49456e-09 3.52044e-09 -1.72395e-17 -5.28094e-09 3.63426e-09 -1.43265e-16 -4.06635e-09 3.62144e-09 -9.93793e-17 -2.90216e-09 3.44529e-09 -7.08821e-17 -1.85052e-09 3.0666e-09 -3.31947e-17 -9.81416e-10 2.45544e-09 4.12384e-17 -3.64356e-10 1.60565e-09 -6.14671e-19 -4.50613e-11 6.17161e-10 1.04267e-17 -1.87464e-10 1.33868e-18 1.38289e-09 -2.62382e-10 1.0416e-15 1.01044e-09 -7.08101e-10 6.50546e-16 5.79148e-10 -9.32676e-10 -2.85751e-16 1.12858e-10 -1.05353e-09 1.25871e-16 -3.7291e-10 -1.11334e-09 -1.33233e-16 -8.71855e-10 -1.13782e-09 -1.68224e-16 -1.38289e-09 -1.14977e-09 -1.60463e-16 -1.90744e-09 -1.16273e-09 -3.61276e-16 -2.44729e-09 -1.18361e-09 -3.92796e-16 -3.00363e-09 -1.21345e-09 -4.53899e-16 -3.5766e-09 -1.25047e-09 -5.24926e-16 -4.16511e-09 -1.29085e-09 -5.24533e-16 -4.76694e-09 -1.33042e-09 -5.75752e-16 -5.37881e-09 -1.36501e-09 -5.90186e-16 -5.99647e-09 -1.39076e-09 -5.81699e-16 -6.61492e-09 -1.40479e-09 -5.82727e-16 -7.22834e-09 -1.40428e-09 -5.71132e-16 -7.83038e-09 -1.38739e-09 -6.07198e-16 -8.41427e-09 -1.35261e-09 -4.2247e-16 -8.97274e-09 -1.29878e-09 -3.42075e-16 -9.4982e-09 -1.22513e-09 -3.17723e-16 -9.98287e-09 -1.13116e-09 -3.14112e-16 -1.04187e-08 -1.01666e-09 -3.39134e-16 -1.07976e-08 -8.81561e-10 -3.58253e-16 -1.11116e-08 -7.26103e-10 -3.78227e-16 -1.13526e-08 -5.50711e-10 -3.76878e-16 -1.15131e-08 -3.5605e-10 -3.55269e-16 -1.15854e-08 -1.4334e-10 -3.12275e-16 -1.15629e-08 8.61916e-11 -2.49185e-16 -1.14393e-08 3.30676e-10 -1.82701e-16 -1.12095e-08 5.87684e-10 -1.14346e-16 -1.08697e-08 8.53991e-10 -5.07909e-17 -1.04171e-08 1.12638e-09 1.23046e-17 -9.85179e-09 1.39913e-09 8.27634e-17 -9.17557e-09 1.66683e-09 -4.75667e-18 -8.39389e-09 1.9213e-09 -8.91266e-17 -7.51602e-09 2.15307e-09 -7.34893e-17 -6.55572e-09 2.3507e-09 -7.53932e-17 -5.53334e-09 2.49805e-09 -2.15944e-17 -4.47618e-09 2.5771e-09 -1.2903e-16 -3.42011e-09 2.56538e-09 -9.10348e-17 -2.41099e-09 2.43617e-09 -6.63882e-17 -1.50468e-09 2.16029e-09 -3.28076e-17 -7.64418e-10 1.71517e-09 3.46841e-17 -2.53109e-10 1.09434e-09 4.16144e-18 -9.79738e-12 3.73849e-10 1.12007e-17 -1.97262e-10 2.13879e-18 1.07741e-09 -8.66285e-11 -6.4423e-17 7.91926e-10 -4.22618e-10 2.51609e-16 4.39318e-10 -5.8007e-10 -3.61661e-17 4.58408e-11 -6.60049e-10 8.15217e-17 -3.69185e-10 -6.98311e-10 -1.74633e-16 -7.95406e-10 -7.11597e-10 -2.97691e-16 -1.22918e-09 -7.16001e-10 -2.18183e-16 -1.67058e-09 -7.21333e-10 -3.13803e-16 -2.1212e-09 -7.32977e-10 -3.03493e-16 -2.58272e-09 -7.51936e-10 -3.28017e-16 -3.05617e-09 -7.77022e-10 -3.73701e-16 -3.54155e-09 -8.0547e-10 -3.76482e-16 -4.03777e-09 -8.34198e-10 -4.25884e-16 -4.54265e-09 -8.6012e-10 -4.4837e-16 -5.05301e-09 -8.80416e-10 -4.50619e-16 -5.56484e-09 -8.92961e-10 -4.61922e-16 -6.07335e-09 -8.95772e-10 -4.7829e-16 -6.57317e-09 -8.87553e-10 -5.31887e-16 -7.0585e-09 -8.67266e-10 -3.42173e-16 -7.52312e-09 -8.3415e-10 -2.65721e-16 -7.96052e-09 -7.87732e-10 -2.48114e-16 -8.36399e-09 -7.27716e-10 -2.55284e-16 -8.72663e-09 -6.54007e-10 -2.88218e-16 -9.04154e-09 -5.66608e-10 -3.16211e-16 -9.30193e-09 -4.65724e-10 -3.41657e-16 -9.50092e-09 -3.51677e-10 -3.44531e-16 -9.63209e-09 -2.24943e-10 -3.24928e-16 -9.68903e-09 -8.63488e-11 -2.82345e-16 -9.66614e-09 6.32702e-11 -2.19969e-16 -9.5581e-09 2.22676e-10 -1.5481e-16 -9.36068e-09 3.90262e-10 -8.99636e-17 -9.07064e-09 5.63912e-10 -3.09824e-17 -8.68574e-09 7.41528e-10 2.74667e-17 -8.206e-09 9.19361e-10 9.04463e-17 -7.63303e-09 1.09389e-09 1.78047e-17 -6.97147e-09 1.25976e-09 -4.80518e-17 -6.22919e-09 1.41077e-09 -5.2707e-17 -5.41788e-09 1.53941e-09 -7.29228e-17 -4.55489e-09 1.63505e-09 -2.6159e-17 -3.66354e-09 1.68575e-09 -1.14201e-16 -2.77464e-09 1.67649e-09 -8.23839e-17 -1.92778e-09 1.58932e-09 -6.18811e-17 -1.17158e-09 1.40409e-09 -3.27961e-17 -5.61533e-10 1.10512e-09 2.69566e-17 -1.53235e-10 6.86041e-10 7.683e-18 2.03205e-11 2.00294e-10 1.12704e-17 -1.76941e-10 2.97615e-18 6.98297e-10 4.07098e-12 9.35911e-16 4.93462e-10 -2.17783e-10 2.81883e-16 2.20696e-10 -3.07307e-10 -3.03703e-17 -9.24076e-11 -3.46946e-10 6.95734e-17 -4.25436e-10 -3.65283e-10 -1.31373e-17 -7.66216e-10 -3.70816e-10 -7.28152e-17 -1.10998e-09 -3.7224e-10 -3.94832e-17 -1.45628e-09 -3.75031e-10 -1.60639e-16 -1.80685e-09 -3.82407e-10 -2.14312e-16 -2.16387e-09 -3.94909e-10 -2.48261e-16 -2.52918e-09 -4.11714e-10 -2.98072e-16 -2.90366e-09 -4.30995e-10 -3.08599e-16 -3.28713e-09 -4.50726e-10 -3.42772e-16 -3.67833e-09 -4.68907e-10 -3.45853e-16 -4.07501e-09 -4.83742e-10 -3.32225e-16 -4.47409e-09 -4.93885e-10 -3.33785e-16 -4.87174e-09 -4.98131e-10 -3.60379e-16 -5.26357e-09 -4.95702e-10 -4.3337e-16 -5.64482e-09 -4.86e-10 -2.50353e-16 -6.01036e-09 -4.68606e-10 -1.83658e-16 -6.35482e-09 -4.43279e-10 -1.76437e-16 -6.67267e-09 -4.09885e-10 -1.96559e-16 -6.95826e-09 -3.68406e-10 -2.38052e-16 -7.20596e-09 -3.18883e-10 -2.74793e-16 -7.41022e-09 -2.6147e-10 -3.05022e-16 -7.56548e-09 -1.96385e-10 -3.11406e-16 -7.66654e-09 -1.2393e-10 -2.93347e-16 -7.70824e-09 -4.46019e-11 -2.51153e-16 -7.6861e-09 4.10957e-11 -1.89916e-16 -7.59583e-09 1.3244e-10 -1.26729e-16 -7.43406e-09 2.28494e-10 -6.59821e-17 -7.19822e-09 3.28036e-10 -1.19622e-17 -6.88651e-09 4.29862e-10 4.15978e-17 -6.49898e-09 5.31812e-10 9.77349e-17 -6.03694e-09 6.3187e-10 4.07538e-17 -5.50412e-09 7.26955e-10 -6.00142e-18 -4.90688e-09 8.13503e-10 -3.14138e-17 -4.25463e-09 8.87181e-10 -6.9539e-17 -3.5614e-09 9.41819e-10 -3.13768e-17 -2.84613e-09 9.70476e-10 -9.87271e-17 -2.13393e-09 9.64297e-10 -7.3709e-17 -1.45732e-09 9.127e-10 -5.78268e-17 -8.56564e-10 8.03337e-10 -3.37815e-17 -3.7813e-10 6.2669e-10 1.73784e-17 -6.92368e-11 3.77147e-10 8.82637e-18 4.28978e-11 8.81587e-11 1.01948e-17 -1.34043e-10 3.50161e-18 2.25305e-10 2.49658e-11 -1.37379e-16 9.77883e-11 -9.02706e-11 -1.84723e-16 -8.73651e-11 -1.22153e-10 1.23075e-16 -3.03991e-10 -1.30319e-10 1.68499e-16 -5.35479e-10 -1.33795e-10 4.6636e-17 -7.7136e-10 -1.34935e-10 -1.22148e-16 -1.00756e-09 -1.36036e-10 -1.9822e-16 -1.24388e-09 -1.38714e-10 -2.68013e-16 -1.48219e-09 -1.44096e-10 -2.59409e-16 -1.72489e-09 -1.52211e-10 -2.23483e-16 -1.97408e-09 -1.62527e-10 -2.05351e-16 -2.23102e-09 -1.74055e-10 -1.94546e-16 -2.49601e-09 -1.85738e-10 -2.06999e-16 -2.76834e-09 -1.96561e-10 -2.0283e-16 -3.04645e-09 -2.05641e-10 -1.90417e-16 -3.32801e-09 -2.12326e-10 -1.96196e-16 -3.61009e-09 -2.16059e-10 -2.34917e-16 -3.88928e-09 -2.1649e-10 -3.29813e-16 -4.1619e-09 -2.13367e-10 -1.58804e-16 -4.42399e-09 -2.06525e-10 -1.04448e-16 -4.67138e-09 -1.95881e-10 -1.07055e-16 -4.89988e-09 -1.81402e-10 -1.38152e-16 -5.10517e-09 -1.6311e-10 -1.85994e-16 -5.28299e-09 -1.41046e-10 -2.29417e-16 -5.42916e-09 -1.15303e-10 -2.632e-16 -5.53952e-09 -8.60019e-11 -2.72658e-16 -5.61019e-09 -5.32975e-11 -2.56567e-16 -5.63733e-09 -1.74276e-11 -2.15908e-16 -5.61762e-09 2.13646e-11 -1.572e-16 -5.5479e-09 6.27435e-11 -9.73092e-17 -5.42568e-09 1.06276e-10 -4.1524e-17 -5.24907e-09 1.51402e-10 7.06502e-18 -5.01675e-09 1.97575e-10 5.53226e-17 -4.72877e-09 2.4381e-10 1.05313e-16 -4.38608e-09 2.89194e-10 6.55044e-17 -3.99143e-09 3.32326e-10 3.99827e-17 -3.54953e-09 3.71583e-10 -7.70451e-18 -3.06732e-09 4.0499e-10 -6.57359e-17 -2.55522e-09 4.29712e-10 -3.5706e-17 -2.02731e-09 4.42561e-10 -8.21243e-17 -1.50239e-09 4.39384e-10 -6.50905e-17 -1.00496e-09 4.15271e-10 -5.47892e-17 -5.65745e-10 3.64119e-10 -3.6602e-17 -2.20536e-10 2.8148e-10 5.22514e-18 -6.6473e-12 1.63258e-10 7.06228e-18 5.48042e-11 2.67068e-11 7.89303e-18 -7.92388e-11 3.97526e-18 -1.99279e-10 2.87201e-11 7.88892e-16 -2.73289e-10 -1.62626e-11 -1.36432e-16 -3.73994e-10 -2.14477e-11 9.79893e-17 -4.86067e-10 -1.82435e-11 2.76789e-16 -6.03407e-10 -1.64545e-11 1.37605e-16 -7.22086e-10 -1.6254e-11 -5.24559e-17 -8.4084e-10 -1.72824e-11 1.36752e-17 -9.60279e-10 -1.92761e-11 -2.95466e-17 -1.08215e-09 -2.22272e-11 -1.56961e-16 -1.20839e-09 -2.59648e-11 -1.69649e-16 -1.34066e-09 -3.02574e-11 -1.3256e-16 -1.47994e-09 -3.47792e-11 -1.32733e-16 -1.62646e-09 -3.92162e-11 -1.38859e-16 -1.77973e-09 -4.32809e-11 -1.2449e-16 -1.93864e-09 -4.67384e-11 -1.00138e-16 -2.10154e-09 -4.94217e-11 -9.25147e-17 -2.26641e-09 -5.11983e-11 -1.23098e-16 -2.43089e-09 -5.1992e-11 -2.23429e-16 -2.5925e-09 -5.17533e-11 -6.2275e-17 -2.74857e-09 -5.04559e-11 -2.12935e-17 -2.89636e-09 -4.80937e-11 -3.27921e-17 -3.03309e-09 -4.46725e-11 -7.25542e-17 -3.15599e-09 -4.021e-11 -1.26053e-16 -3.2623e-09 -3.47285e-11 -1.76287e-16 -3.34934e-09 -2.82616e-11 -2.15463e-16 -3.41448e-09 -2.08483e-11 -2.30256e-16 -3.45526e-09 -1.25365e-11 -2.18344e-16 -3.46928e-09 -3.39172e-12 -1.80767e-16 -3.45445e-09 6.51757e-12 -1.24957e-16 -3.40879e-09 1.71023e-11 -6.77805e-17 -3.33076e-09 2.82482e-11 -1.55855e-17 -3.21919e-09 3.98087e-11 2.9206e-17 -3.07324e-09 5.16444e-11 7.3398e-17 -2.89293e-09 6.35e-11 1.17985e-16 -2.67887e-09 7.51418e-11 9.94764e-17 -2.43275e-09 8.62098e-11 9.5526e-17 -2.15746e-09 9.62852e-11 1.98191e-17 -1.85732e-09 1.0486e-10 -6.1512e-17 -1.53881e-09 1.11194e-10 -4.17502e-17 -1.21071e-09 1.1446e-10 -6.78915e-17 -8.84862e-10 1.13539e-10 -5.95865e-17 -5.76752e-10 1.07161e-10 -5.54331e-17 -3.06157e-10 9.3523e-11 -4.29299e-17 -9.62436e-11 7.15652e-11 -1.01535e-17 2.76647e-11 3.93496e-11 7.479e-19 5.1788e-11 2.58305e-12 4.65479e-18 -2.74506e-11 4.62433e-18 -3.40009e-10 3.83439e-16 -3.56275e-10 -3.5701e-16 -3.77721e-10 1.19665e-16 -3.95961e-10 3.82412e-16 -4.12415e-10 9.22393e-17 -4.28668e-10 -2.10137e-17 -4.4595e-10 1.72399e-17 -4.65228e-10 -6.51215e-17 -4.87455e-10 -1.87882e-16 -5.13421e-10 -1.41857e-16 -5.43679e-10 -3.80724e-17 -5.78457e-10 -1.80477e-17 -6.17673e-10 -1.6279e-17 -6.60951e-10 -9.22345e-18 -7.0769e-10 6.75314e-18 -7.57113e-10 1.5388e-17 -8.08312e-10 4.93787e-18 -8.60299e-10 -7.05503e-17 -9.1205e-10 3.63178e-17 -9.62505e-10 4.99847e-17 -1.0106e-09 3.06407e-17 -1.05527e-09 -7.78867e-18 -1.09548e-09 -5.43154e-17 -1.13021e-09 -9.79843e-17 -1.15847e-09 -1.31767e-16 -1.17932e-09 -1.464e-16 -1.19186e-09 -1.39699e-16 -1.19525e-09 -1.13236e-16 -1.18873e-09 -7.37233e-17 -1.17163e-09 -3.35066e-17 -1.14338e-09 2.39605e-18 -1.10357e-09 3.28431e-17 -1.05192e-09 6.18842e-17 -9.88426e-10 8.87907e-17 -9.1328e-10 8.74678e-17 -8.27067e-10 8.86101e-17 -7.30785e-10 2.6996e-17 -6.25923e-10 -3.6248e-17 -5.14731e-10 -3.19256e-17 -4.0027e-10 -4.16766e-17 -2.8673e-10 -3.92037e-17 -1.7957e-10 -3.89692e-17 -8.60468e-11 -3.29958e-17 -1.44818e-11 -1.54638e-17 2.48677e-11 -6.21725e-18 2.74506e-11 -2.06902e-19 2.05572e-18 -2.38494e-08 8.19963e-08 -2.02334e-08 8.63762e-08 -1.64884e-08 8.85888e-08 -1.27181e-08 8.79962e-08 -9.05884e-09 8.38836e-08 -5.6884e-09 7.54778e-08 -2.83914e-09 6.19093e-08 -8.12289e-10 4.23499e-08 1.59532e-08 -3.2962e-08 5.82183e-08 -3.01411e-08 6.59228e-08 -2.70203e-08 7.2854e-08 -2.36396e-08 7.86156e-08 -2.00548e-08 8.27914e-08 -1.63422e-08 8.48762e-08 -1.26046e-08 8.42586e-08 -8.97755e-09 8.02566e-08 -5.63729e-09 7.21375e-08 -2.81382e-09 5.90858e-08 -8.05253e-10 4.03414e-08 1.5148e-08 -1.06234e-08 -2.92528e-08 -1.16946e-08 -3.10314e-08 -1.2894e-08 -3.3033e-08 -1.42008e-08 -3.50631e-08 -1.55977e-08 -3.70136e-08 -1.70705e-08 -3.88153e-08 -1.8607e-08 -4.04304e-08 -2.01964e-08 -4.1824e-08 -2.18283e-08 -4.29811e-08 -2.34929e-08 -4.38783e-08 -2.51799e-08 -4.44998e-08 -2.68782e-08 -4.48259e-08 -2.85761e-08 -4.48307e-08 -3.02605e-08 -4.44993e-08 -3.19168e-08 -4.3798e-08 -3.353e-08 -4.27061e-08 -3.50827e-08 -4.11967e-08 -3.65568e-08 -3.9242e-08 -3.79329e-08 -3.68177e-08 -3.91908e-08 -3.39009e-08 -4.03088e-08 -3.04727e-08 -4.12652e-08 -2.6516e-08 -4.20379e-08 -2.20214e-08 -4.2604e-08 -1.69842e-08 -4.29418e-08 -1.14066e-08 -4.30284e-08 -5.30839e-09 -4.28436e-08 1.29129e-09 -4.23672e-08 8.352e-09 -4.1582e-08 1.58182e-08 -4.04733e-08 2.36105e-08 -3.90283e-08 3.165e-08 -3.72413e-08 3.97887e-08 -3.51103e-08 4.78912e-08 -3.26415e-08 5.57495e-08 -2.98497e-08 6.31309e-08 -2.67594e-08 6.97638e-08 -2.34108e-08 7.52671e-08 -1.98598e-08 7.92402e-08 -1.6182e-08 8.11985e-08 -1.248e-08 8.05566e-08 -8.88813e-09 7.66648e-08 -5.58092e-09 6.88303e-08 -2.78581e-09 5.62906e-08 -7.97438e-10 3.8353e-08 1.43505e-08 -1.02886e-08 -2.83801e-08 -1.13157e-08 -3.00042e-08 -1.24739e-08 -3.18749e-08 -1.37426e-08 -3.37943e-08 -1.51053e-08 -3.56509e-08 -1.65478e-08 -3.73728e-08 -1.80579e-08 -3.89202e-08 -1.96247e-08 -4.02573e-08 -2.12377e-08 -4.13681e-08 -2.28868e-08 -4.22292e-08 -2.45614e-08 -4.28252e-08 -2.62503e-08 -4.31369e-08 -2.79415e-08 -4.31396e-08 -2.96218e-08 -4.2819e-08 -3.12764e-08 -4.21432e-08 -3.28902e-08 -4.10925e-08 -3.44454e-08 -3.96414e-08 -3.59242e-08 -3.77632e-08 -3.73069e-08 -3.54351e-08 -3.85731e-08 -3.26348e-08 -3.97013e-08 -2.93444e-08 -4.06695e-08 -2.55477e-08 -4.14556e-08 -2.12354e-08 -4.20365e-08 -1.64031e-08 -4.23905e-08 -1.10529e-08 -4.24948e-08 -5.20393e-09 -4.23289e-08 1.12534e-09 -4.18728e-08 7.89597e-09 -4.1109e-08 1.50545e-08 -4.00231e-08 2.25244e-08 -3.86022e-08 3.02294e-08 -3.68407e-08 3.80272e-08 -3.47367e-08 4.57873e-08 -3.22966e-08 5.33094e-08 -2.95352e-08 6.03694e-08 -2.64772e-08 6.67059e-08 -2.31628e-08 7.19527e-08 -1.96478e-08 7.57251e-08 -1.60076e-08 7.75583e-08 -1.2344e-08 7.6893e-08 -8.79033e-09 7.31111e-08 -5.51911e-09 6.55591e-08 -2.755e-09 5.35265e-08 -7.88807e-10 3.63868e-08 1.35617e-08 -9.86626e-09 -2.75392e-08 -1.08585e-08 -2.9012e-08 -1.19834e-08 -3.075e-08 -1.32211e-08 -3.25566e-08 -1.45559e-08 -3.4316e-08 -1.59739e-08 -3.59549e-08 -1.74629e-08 -3.74312e-08 -1.90118e-08 -3.87084e-08 -2.06102e-08 -3.97697e-08 -2.22476e-08 -4.05918e-08 -2.39132e-08 -4.11596e-08 -2.55955e-08 -4.14544e-08 -2.72824e-08 -4.14527e-08 -2.89605e-08 -4.1141e-08 -3.06147e-08 -4.04887e-08 -3.22298e-08 -3.94775e-08 -3.37883e-08 -3.80829e-08 -3.52718e-08 -3.62797e-08 -3.66609e-08 -3.4046e-08 -3.7935e-08 -3.13607e-08 -3.90727e-08 -2.82067e-08 -4.00519e-08 -2.45683e-08 -4.08504e-08 -2.04369e-08 -4.14453e-08 -1.5808e-08 -4.18146e-08 -1.06838e-08 -4.19356e-08 -5.08269e-09 -4.1788e-08 9.77591e-10 -4.13515e-08 7.4596e-09 -4.06089e-08 1.43118e-08 -3.95455e-08 2.14609e-08 -3.81489e-08 2.8833e-08 -3.64134e-08 3.62917e-08 -3.43372e-08 4.37111e-08 -3.19268e-08 5.0899e-08 -2.91972e-08 5.76397e-08 -2.61733e-08 6.36821e-08 -2.28952e-08 6.86747e-08 -1.94186e-08 7.22484e-08 -1.58186e-08 7.39584e-08 -1.21964e-08 7.32708e-08 -8.6839e-09 6.95986e-08 -5.45168e-09 6.23269e-08 -2.72129e-09 5.07961e-08 -7.79321e-10 3.44449e-08 1.27824e-08 -9.35875e-09 -2.67217e-08 -1.03237e-08 -2.8047e-08 -1.14226e-08 -2.96512e-08 -1.2636e-08 -3.13431e-08 -1.39495e-08 -3.30025e-08 -1.53489e-08 -3.45555e-08 -1.68224e-08 -3.59576e-08 -1.83586e-08 -3.71721e-08 -1.99469e-08 -3.81813e-08 -2.15766e-08 -3.89622e-08 -2.32366e-08 -3.94997e-08 -2.49152e-08 -3.97757e-08 -2.66001e-08 -3.97679e-08 -2.82776e-08 -3.94635e-08 -2.99328e-08 -3.88334e-08 -3.15501e-08 -3.78602e-08 -3.31121e-08 -3.65209e-08 -3.46004e-08 -3.47913e-08 -3.59956e-08 -3.26509e-08 -3.72771e-08 -3.00793e-08 -3.84234e-08 -2.70603e-08 -3.94126e-08 -2.3579e-08 -4.02226e-08 -1.96269e-08 -4.08303e-08 -1.52001e-08 -4.1214e-08 -1.03004e-08 -4.13508e-08 -4.94563e-09 -4.12206e-08 8.47236e-10 -4.08031e-08 7.04223e-09 -4.00811e-08 1.35899e-08 -3.90403e-08 2.04198e-08 -3.7668e-08 2.7461e-08 -3.59588e-08 3.45826e-08 -3.39111e-08 4.16635e-08 -3.15315e-08 4.85194e-08 -2.88352e-08 5.49432e-08 -2.58471e-08 6.06941e-08 -2.26074e-08 6.5435e-08 -1.91716e-08 6.88126e-08 -1.56146e-08 7.04015e-08 -1.20367e-08 6.96929e-08 -8.56854e-09 6.61304e-08 -5.37841e-09 5.91368e-08 -2.68456e-09 4.81022e-08 -7.68938e-10 3.25293e-08 1.20134e-08 -8.7702e-09 -2.59224e-08 -9.71415e-09 -2.7103e-08 -1.07934e-08 -2.85719e-08 -1.19893e-08 -3.01472e-08 -1.32878e-08 -3.1704e-08 -1.46749e-08 -3.31684e-08 -1.61385e-08 -3.4494e-08 -1.76672e-08 -3.56435e-08 -1.92499e-08 -3.65986e-08 -2.08758e-08 -3.73363e-08 -2.25335e-08 -3.78419e-08 -2.42112e-08 -3.8098e-08 -2.58962e-08 -3.8083e-08 -2.75749e-08 -3.77848e-08 -2.92321e-08 -3.7176e-08 -3.08523e-08 -3.62401e-08 -3.2418e-08 -3.49551e-08 -3.3911e-08 -3.32984e-08 -3.53117e-08 -3.12502e-08 -3.65998e-08 -2.87913e-08 -3.77539e-08 -2.59062e-08 -3.8752e-08 -2.25807e-08 -3.95723e-08 -1.88067e-08 -4.01917e-08 -1.45805e-08 -4.05885e-08 -9.90385e-09 -4.07401e-08 -4.79379e-09 -4.06264e-08 7.33371e-10 -4.02272e-08 6.64316e-09 -3.95255e-08 1.28882e-08 -3.85068e-08 1.9401e-08 -3.7159e-08 2.61134e-08 -3.54766e-08 3.29001e-08 -3.34581e-08 3.96451e-08 -3.11104e-08 4.61716e-08 -2.84487e-08 5.22814e-08 -2.54982e-08 5.77436e-08 -2.2299e-08 6.22359e-08 -1.89065e-08 6.54201e-08 -1.53952e-08 6.68902e-08 -1.18647e-08 6.61623e-08 -8.44396e-09 6.27097e-08 -5.29909e-09 5.59919e-08 -2.64467e-09 4.54478e-08 -7.5761e-10 3.06422e-08 1.12558e-08 -8.10096e-09 -2.51344e-08 -9.03192e-09 -2.6172e-08 -1.00988e-08 -2.75051e-08 -1.12841e-08 -2.89619e-08 -1.25743e-08 -3.04139e-08 -1.39552e-08 -3.17876e-08 -1.54146e-08 -3.30345e-08 -1.69407e-08 -3.41174e-08 -1.85223e-08 -3.50169e-08 -2.01482e-08 -3.57104e-08 -2.18069e-08 -3.61833e-08 -2.34861e-08 -3.64186e-08 -2.51732e-08 -3.63959e-08 -2.68543e-08 -3.61037e-08 -2.85144e-08 -3.55158e-08 -3.01378e-08 -3.46167e-08 -3.17072e-08 -3.33857e-08 -3.32043e-08 -3.18012e-08 -3.46099e-08 -2.98446e-08 -3.59037e-08 -2.74976e-08 -3.70644e-08 -2.47455e-08 -3.80702e-08 -2.15746e-08 -3.88994e-08 -1.79776e-08 -3.95292e-08 -1.39506e-08 -3.99379e-08 -9.49534e-09 -4.01032e-08 -4.6283e-09 -4.0005e-08 6.35019e-10 -3.96233e-08 6.26161e-09 -3.89413e-08 1.22062e-08 -3.79446e-08 1.84042e-08 -3.66213e-08 2.47903e-08 -3.49659e-08 3.12448e-08 -3.29774e-08 3.76567e-08 -3.06627e-08 4.38568e-08 -2.80371e-08 4.96558e-08 -2.51259e-08 5.48326e-08 -2.19694e-08 5.90794e-08 -1.86228e-08 6.20733e-08 -1.516e-08 6.34275e-08 -1.16798e-08 6.26822e-08 -8.30985e-09 5.93398e-08 -5.21349e-09 5.28956e-08 -2.60148e-09 4.28358e-08 -7.45288e-10 2.8786e-08 1.05106e-08 -7.35098e-09 -2.43463e-08 -8.27973e-09 -2.52433e-08 -9.34247e-09 -2.64423e-08 -1.05251e-08 -2.77793e-08 -1.18137e-08 -2.91252e-08 -1.31946e-08 -3.04066e-08 -1.46553e-08 -3.15738e-08 -1.61837e-08 -3.25889e-08 -1.77684e-08 -3.34322e-08 -1.93978e-08 -3.40811e-08 -2.10601e-08 -3.4521e-08 -2.2743e-08 -3.47356e-08 -2.44336e-08 -3.47053e-08 -2.61182e-08 -3.44191e-08 -2.77816e-08 -3.38523e-08 -2.94083e-08 -3.29901e-08 -3.09809e-08 -3.1813e-08 -3.24815e-08 -3.03006e-08 -3.38909e-08 -2.84352e-08 -3.51891e-08 -2.61995e-08 -3.63551e-08 -2.35795e-08 -3.73672e-08 -2.05624e-08 -3.82038e-08 -1.71409e-08 -3.88425e-08 -1.33117e-08 -3.92619e-08 -9.07627e-09 -3.94396e-08 -4.45038e-09 -3.93558e-08 5.51127e-10 -3.89908e-08 5.89675e-09 -3.83279e-08 1.15433e-08 -3.73529e-08 1.7429e-08 -3.60541e-08 2.34917e-08 -3.44263e-08 2.9617e-08 -3.24684e-08 3.56989e-08 -3.01877e-08 4.15761e-08 -2.75998e-08 4.70677e-08 -2.47298e-08 5.19628e-08 -2.16182e-08 5.59677e-08 -1.83199e-08 5.8775e-08 -1.49085e-08 6.00162e-08 -1.14819e-08 5.92555e-08 -8.16591e-09 5.60238e-08 -5.12137e-09 4.9851e-08 -2.55486e-09 4.02692e-08 -7.31918e-10 2.69631e-08 9.77863e-09 -6.52906e-09 -2.35479e-08 -7.46549e-09 -2.43068e-08 -8.53219e-09 -2.53756e-08 -9.71946e-09 -2.6592e-08 -1.10131e-08 -2.78316e-08 -1.23999e-08 -2.90199e-08 -1.3867e-08 -3.01067e-08 -1.54021e-08 -3.10538e-08 -1.69934e-08 -3.18408e-08 -1.86291e-08 -3.24453e-08 -2.02973e-08 -3.28528e-08 -2.19855e-08 -3.30474e-08 -2.36807e-08 -3.30101e-08 -2.53692e-08 -3.27307e-08 -2.70358e-08 -3.21855e-08 -2.86653e-08 -3.13608e-08 -3.02404e-08 -3.02379e-08 -3.17434e-08 -2.87976e-08 -3.31553e-08 -2.70233e-08 -3.44565e-08 -2.48984e-08 -3.5626e-08 -2.24099e-08 -3.66427e-08 -1.95455e-08 -3.74852e-08 -1.62984e-08 -3.81313e-08 -1.26654e-08 -3.85597e-08 -8.64809e-09 -3.87485e-08 -4.26137e-09 -3.86781e-08 4.80578e-10 -3.83289e-08 5.54771e-09 -3.76845e-08 1.08989e-08 -3.6731e-08 1.64753e-08 -3.54567e-08 2.22176e-08 -3.38568e-08 2.80171e-08 -3.19304e-08 3.37726e-08 -2.96849e-08 3.93306e-08 -2.7136e-08 4.45187e-08 -2.43092e-08 4.9136e-08 -2.12447e-08 5.29033e-08 -1.79974e-08 5.55276e-08 -1.46403e-08 5.66592e-08 -1.12704e-08 5.58856e-08 -8.0118e-09 5.27652e-08 -5.02249e-09 4.68617e-08 -2.50464e-09 3.77514e-08 -7.17444e-10 2.51759e-08 9.06119e-09 -5.64896e-09 -2.27315e-08 -6.60044e-09 -2.33553e-08 -7.67828e-09 -2.42978e-08 -8.8768e-09 -2.53934e-08 -1.01814e-08 -2.6527e-08 -1.15793e-08 -2.7622e-08 -1.30572e-08 -2.86287e-08 -1.46027e-08 -2.95083e-08 -1.62036e-08 -3.024e-08 -1.78478e-08 -3.08011e-08 -1.95234e-08 -3.11773e-08 -2.12177e-08 -3.1353e-08 -2.29178e-08 -3.131e-08 -2.461e-08 -3.10385e-08 -2.62793e-08 -3.05161e-08 -2.79106e-08 -2.97296e-08 -2.94869e-08 -2.86615e-08 -3.09908e-08 -2.72938e-08 -3.24036e-08 -2.56105e-08 -3.37059e-08 -2.35962e-08 -3.48772e-08 -2.12385e-08 -3.58967e-08 -1.85259e-08 -3.67432e-08 -1.54519e-08 -3.73949e-08 -1.20136e-08 -3.78308e-08 -8.21241e-09 -3.80293e-08 -4.06265e-09 -3.7971e-08 4.22196e-10 -3.76368e-08 5.21357e-09 -3.70102e-08 1.02723e-08 -3.60778e-08 1.55427e-08 -3.48282e-08 2.09682e-08 -3.32566e-08 2.64456e-08 -3.13625e-08 3.18786e-08 -2.91534e-08 3.71215e-08 -2.66452e-08 4.20105e-08 -2.38635e-08 4.63544e-08 -2.08484e-08 4.98882e-08 -1.76547e-08 5.23338e-08 -1.4355e-08 5.33595e-08 -1.1045e-08 5.25756e-08 -7.8472e-09 4.95674e-08 -4.9166e-09 4.39311e-08 -2.45068e-09 3.52854e-08 -7.01806e-10 2.3427e-08 8.35938e-09 -4.72206e-09 -2.18851e-08 -5.6956e-09 -2.23818e-08 -6.79222e-09 -2.32011e-08 -8.0081e-09 -2.41775e-08 -9.32912e-09 -2.5206e-08 -1.07426e-08 -2.62085e-08 -1.2235e-08 -2.71363e-08 -1.37936e-08 -2.79498e-08 -1.5406e-08 -2.86275e-08 -1.706e-08 -2.9147e-08 -1.87436e-08 -2.94937e-08 -2.04441e-08 -2.96524e-08 -2.21486e-08 -2.96055e-08 -2.38436e-08 -2.93435e-08 -2.55143e-08 -2.88452e-08 -2.71459e-08 -2.80981e-08 -2.87216e-08 -2.70858e-08 -3.02244e-08 -2.5791e-08 -3.1636e-08 -2.41989e-08 -3.29373e-08 -2.2295e-08 -3.41083e-08 -2.00675e-08 -3.51284e-08 -1.75057e-08 -3.5977e-08 -1.46034e-08 -3.66324e-08 -1.1358e-08 -3.70741e-08 -7.7709e-09 -3.72809e-08 -3.85571e-09 -3.72336e-08 3.74761e-10 -3.69133e-08 4.89339e-09 -3.6304e-08 9.66311e-09 -3.53925e-08 1.4631e-08 -3.41675e-08 1.97435e-08 -3.26248e-08 2.49028e-08 -3.07638e-08 3.00177e-08 -2.85923e-08 3.495e-08 -2.61265e-08 3.95445e-08 -2.33919e-08 4.36199e-08 -2.04287e-08 4.6925e-08 -1.72913e-08 4.91963e-08 -1.40519e-08 5.01202e-08 -1.08052e-08 4.93288e-08 -7.67179e-09 4.6434e-08 -4.80346e-09 4.10628e-08 -2.39282e-09 3.28748e-08 -6.84942e-10 2.17192e-08 7.67444e-09 -3.75778e-09 -2.09915e-08 -4.76237e-09 -2.13772e-08 -5.88649e-09 -2.2077e-08 -7.12581e-09 -2.29382e-08 -8.46822e-09 -2.38636e-08 -9.90087e-09 -2.47759e-08 -1.14103e-08 -2.56269e-08 -1.29836e-08 -2.63764e-08 -1.46084e-08 -2.70027e-08 -1.62724e-08 -2.7483e-08 -1.79635e-08 -2.78026e-08 -1.96692e-08 -2.79466e-08 -2.13767e-08 -2.7898e-08 -2.30729e-08 -2.76474e-08 -2.4743e-08 -2.71749e-08 -2.63726e-08 -2.64686e-08 -2.79455e-08 -2.55129e-08 -2.94448e-08 -2.42917e-08 -3.08527e-08 -2.2791e-08 -3.21506e-08 -2.09972e-08 -3.33189e-08 -1.88992e-08 -3.43373e-08 -1.6487e-08 -3.51857e-08 -1.3755e-08 -3.58429e-08 -1.07006e-08 -3.62887e-08 -7.32535e-09 -3.65022e-08 -3.64207e-09 -3.64645e-08 3.3702e-10 -3.61572e-08 4.58625e-09 -3.55647e-08 9.07054e-09 -3.46738e-08 1.37399e-08 -3.34737e-08 1.85436e-08 -3.19602e-08 2.33894e-08 -3.01334e-08 2.81909e-08 -2.80009e-08 3.28176e-08 -2.55792e-08 3.71227e-08 -2.28938e-08 4.09347e-08 -1.99849e-08 4.40162e-08 -1.69067e-08 4.61181e-08 -1.37308e-08 4.69443e-08 -1.05508e-08 4.61488e-08 -7.48524e-09 4.33685e-08 -4.68282e-09 3.82604e-08 -2.3309e-09 3.05228e-08 -6.66787e-10 2.00551e-08 7.00765e-09 -2.77163e-09 -2.00369e-08 -3.81753e-09 -2.03313e-08 -4.97685e-09 -2.09177e-08 -6.24496e-09 -2.16701e-08 -7.61247e-09 -2.24961e-08 -9.06654e-09 -2.33218e-08 -1.05941e-08 -2.40992e-08 -1.21824e-08 -2.47882e-08 -1.3819e-08 -2.53661e-08 -1.54918e-08 -2.58102e-08 -1.71887e-08 -2.61057e-08 -1.88975e-08 -2.62377e-08 -2.06058e-08 -2.61898e-08 -2.23004e-08 -2.59529e-08 -2.39673e-08 -2.55079e-08 -2.55922e-08 -2.48438e-08 -2.71592e-08 -2.39458e-08 -2.86522e-08 -2.27987e-08 -3.00536e-08 -2.13895e-08 -3.13453e-08 -1.97055e-08 -3.25082e-08 -1.77364e-08 -3.35225e-08 -1.54726e-08 -3.43684e-08 -1.29091e-08 -3.50253e-08 -1.00436e-08 -3.54732e-08 -6.87761e-09 -3.56918e-08 -3.42332e-09 -3.56626e-08 3.07705e-10 -3.53674e-08 4.2912e-09 -3.47909e-08 8.49408e-09 -3.39204e-08 1.28693e-08 -3.27454e-08 1.73688e-08 -3.1262e-08 2.19059e-08 -2.94702e-08 2.63992e-08 -2.73782e-08 3.07256e-08 -2.50023e-08 3.47467e-08 -2.23685e-08 3.83008e-08 -1.95165e-08 4.11642e-08 -1.65004e-08 4.3102e-08 -1.33912e-08 4.38351e-08 -1.02812e-08 4.30389e-08 -7.28726e-09 4.03745e-08 -4.55444e-09 3.55276e-08 -2.26476e-09 2.82331e-08 -6.47276e-10 1.84376e-08 6.36038e-09 -1.77993e-09 -1.90089e-08 -2.87957e-09 -1.92317e-08 -4.08091e-09 -1.97163e-08 -5.3823e-09 -2.03687e-08 -6.77704e-09 -2.11013e-08 -8.25311e-09 -2.18457e-08 -9.79827e-09 -2.25541e-08 -1.14e-08 -2.31865e-08 -1.30462e-08 -2.37199e-08 -1.47251e-08 -2.41314e-08 -1.64248e-08 -2.44059e-08 -1.81336e-08 -2.45289e-08 -1.98391e-08 -2.44842e-08 -2.15288e-08 -2.42632e-08 -2.31888e-08 -2.38478e-08 -2.48054e-08 -2.32272e-08 -2.63632e-08 -2.23879e-08 -2.78464e-08 -2.13155e-08 -2.92381e-08 -1.99979e-08 -3.05206e-08 -1.84231e-08 -3.16752e-08 -1.65818e-08 -3.26826e-08 -1.4465e-08 -3.35236e-08 -1.20681e-08 -3.4178e-08 -9.38914e-09 -3.46262e-08 -6.4296e-09 -3.48483e-08 -3.20105e-09 -3.48262e-08 2.85548e-10 -3.45422e-08 4.00734e-09 -3.39813e-08 7.93321e-09 -3.31311e-08 1.20189e-08 -3.19815e-08 1.62194e-08 -3.05287e-08 2.04532e-08 -2.87732e-08 2.46437e-08 -2.67232e-08 2.86756e-08 -2.43953e-08 3.24187e-08 -2.18152e-08 3.57209e-08 -1.90228e-08 3.83719e-08 -1.60719e-08 4.01509e-08 -1.30326e-08 4.07959e-08 -9.9963e-09 4.00025e-08 -7.07756e-09 3.74557e-08 -4.4181e-09 3.28682e-08 -2.19425e-09 2.60093e-08 -6.26341e-10 1.68697e-08 5.73404e-09 -8.07658e-10 -1.78963e-08 -1.97141e-09 -1.80679e-08 -3.21952e-09 -1.84682e-08 -4.55652e-09 -1.90317e-08 -5.97827e-09 -1.96796e-08 -7.47465e-09 -2.03494e-08 -9.03456e-09 -2.09941e-08 -1.06462e-08 -2.15749e-08 -1.22981e-08 -2.2068e-08 -1.39788e-08 -2.24507e-08 -1.5677e-08 -2.27077e-08 -1.73812e-08 -2.28246e-08 -1.90796e-08 -2.27859e-08 -2.07598e-08 -2.2583e-08 -2.24087e-08 -2.21987e-08 -2.40129e-08 -2.16231e-08 -2.55575e-08 -2.08432e-08 -2.70272e-08 -1.98458e-08 -2.84056e-08 -1.86195e-08 -2.96754e-08 -1.71534e-08 -3.08186e-08 -1.54386e-08 -3.18164e-08 -1.34671e-08 -3.26499e-08 -1.12346e-08 -3.32994e-08 -8.73948e-09 -3.37459e-08 -5.98327e-09 -3.39699e-08 -2.97687e-09 -3.39538e-08 2.69303e-10 -3.36801e-08 3.7338e-09 -3.31344e-08 7.38745e-09 -3.23045e-08 1.11888e-08 -3.11806e-08 1.50957e-08 -2.97593e-08 1.90319e-08 -2.80413e-08 2.29258e-08 -2.6035e-08 2.66693e-08 -2.3757e-08 3.01406e-08 -2.12333e-08 3.31972e-08 -1.85034e-08 3.5642e-08 -1.56206e-08 3.72681e-08 -1.26547e-08 3.783e-08 -9.69565e-09 3.70435e-08 -6.85589e-09 3.4616e-08 -4.27361e-09 3.02859e-08 -2.11923e-09 2.38549e-08 -6.03917e-10 1.53544e-08 5.13012e-09 1.08138e-10 -1.66948e-08 -1.1225e-09 -1.68373e-08 -2.41754e-09 -1.71732e-08 -3.78826e-09 -1.7661e-08 -5.23338e-09 -1.82345e-08 -6.7454e-09 -1.88374e-08 -8.31469e-09 -1.94248e-08 -9.93053e-09 -1.9959e-08 -1.15822e-08 -2.04163e-08 -1.32589e-08 -2.0774e-08 -1.49497e-08 -2.10169e-08 -1.66436e-08 -2.11306e-08 -1.83293e-08 -2.11003e-08 -1.99949e-08 -2.09174e-08 -2.16276e-08 -2.05659e-08 -2.32147e-08 -2.00362e-08 -2.47416e-08 -1.93163e-08 -2.61936e-08 -1.83938e-08 -2.75548e-08 -1.72584e-08 -2.88084e-08 -1.58998e-08 -2.99369e-08 -1.431e-08 -3.0922e-08 -1.24818e-08 -3.17454e-08 -1.04113e-08 -3.23878e-08 -8.09695e-09 -3.28307e-08 -5.54057e-09 -3.3055e-08 -2.75238e-09 -3.30436e-08 2.57763e-10 -3.27794e-08 3.46979e-09 -3.22484e-08 6.85644e-09 -3.14388e-08 1.03791e-08 -3.03412e-08 1.39983e-08 -2.89524e-08 1.76431e-08 -2.72733e-08 2.12468e-08 -2.53126e-08 2.47085e-08 -2.30869e-08 2.79148e-08 -2.0622e-08 3.07324e-08 -1.79575e-08 3.29776e-08 -1.51463e-08 3.44568e-08 -1.22572e-08 3.4941e-08 -9.37903e-09 3.41653e-08 -6.62206e-09 3.1859e-08 -4.12077e-09 2.77846e-08 -2.03956e-09 2.17736e-08 -5.7994e-10 1.38948e-08 4.55018e-09 9.2402e-10 -1.5413e-08 -3.65863e-10 -1.55474e-08 -1.7011e-09 -1.5838e-08 -3.0982e-09 -1.62639e-08 -4.55892e-09 -1.67737e-08 -6.07854e-09 -1.73177e-08 -7.64911e-09 -1.78542e-08 -9.26114e-09 -1.8347e-08 -1.09048e-08 -1.87726e-08 -1.25699e-08 -1.91089e-08 -1.42462e-08 -1.93406e-08 -1.59231e-08 -1.94537e-08 -1.75896e-08 -1.94337e-08 -1.92346e-08 -1.92725e-08 -2.08455e-08 -1.89548e-08 -2.24102e-08 -1.84716e-08 -2.39145e-08 -1.78118e-08 -2.53443e-08 -1.6964e-08 -2.66841e-08 -1.59186e-08 -2.79178e-08 -1.46662e-08 -2.90282e-08 -1.31996e-08 -2.99976e-08 -1.15123e-08 -3.08081e-08 -9.60073e-09 -3.14411e-08 -7.46388e-09 -3.18784e-08 -5.10347e-09 -3.21014e-08 -2.52915e-09 -3.20936e-08 2.49782e-10 -3.18382e-08 3.21459e-09 -3.13217e-08 6.3399e-09 -3.05326e-08 9.58984e-09 -2.94619e-08 1.29278e-08 -2.81067e-08 1.62879e-08 -2.64681e-08 1.96083e-08 -2.4555e-08 2.27954e-08 -2.23839e-08 2.57436e-08 -1.99808e-08 2.83293e-08 -1.73848e-08 3.03816e-08 -1.46484e-08 3.17204e-08 -1.18398e-08 3.21324e-08 -9.04624e-09 3.13718e-08 -6.3759e-09 2.91887e-08 -3.95947e-09 2.53682e-08 -1.95514e-09 1.97693e-08 -5.5435e-10 1.2494e-08 3.99583e-09 1.59725e-09 -1.40737e-08 2.66322e-10 -1.42165e-08 -1.09464e-09 -1.4477e-08 -2.50497e-09 -1.48535e-08 -3.96921e-09 -1.53095e-08 -5.48504e-09 -1.58019e-08 -7.04614e-09 -1.62931e-08 -8.64426e-09 -1.67489e-08 -1.02704e-08 -1.71465e-08 -1.19151e-08 -1.74642e-08 -1.35685e-08 -1.76872e-08 -1.52206e-08 -1.78015e-08 -1.68609e-08 -1.77935e-08 -1.84785e-08 -1.76549e-08 -2.00615e-08 -1.73716e-08 -2.15981e-08 -1.69351e-08 -2.30748e-08 -1.63351e-08 -2.44776e-08 -1.55612e-08 -2.57918e-08 -1.46044e-08 -2.70016e-08 -1.34565e-08 -2.80903e-08 -1.21108e-08 -2.90409e-08 -1.05616e-08 -2.98359e-08 -8.80576e-09 -3.04571e-08 -6.8426e-09 -3.08868e-08 -4.67387e-09 -3.11072e-08 -2.30866e-09 -3.11018e-08 2.44288e-10 -3.08546e-08 2.96757e-09 -3.03524e-08 5.83767e-09 -2.95841e-08 8.82144e-09 -2.85412e-08 1.1885e-08 -2.72208e-08 1.49676e-08 -2.56245e-08 1.8012e-08 -2.37611e-08 2.09319e-08 -2.16473e-08 2.36298e-08 -1.93089e-08 2.59909e-08 -1.67847e-08 2.78575e-08 -1.41268e-08 2.90624e-08 -1.14023e-08 2.94079e-08 -8.69719e-09 2.86668e-08 -6.11733e-09 2.66088e-08 -3.78963e-09 2.30405e-08 -1.86588e-09 1.78455e-08 -5.27094e-10 1.11552e-08 3.46873e-09 2.09506e-09 -1.27105e-08 7.49281e-10 -1.28707e-08 -6.16431e-10 -1.31113e-08 -2.02212e-09 -1.34478e-08 -3.47423e-09 -1.38574e-08 -4.97217e-09 -1.4304e-08 -6.51099e-09 -1.47543e-08 -8.08344e-09 -1.51764e-08 -9.68127e-09 -1.55486e-08 -1.12955e-08 -1.585e-08 -1.29169e-08 -1.60658e-08 -1.45358e-08 -1.61826e-08 -1.61421e-08 -1.61872e-08 -1.77254e-08 -1.60717e-08 -1.9274e-08 -1.58228e-08 -2.07767e-08 -1.54326e-08 -2.22202e-08 -1.48916e-08 -2.35913e-08 -1.41901e-08 -2.48754e-08 -1.33203e-08 -2.60573e-08 -1.22746e-08 -2.7121e-08 -1.10472e-08 -2.80496e-08 -9.63279e-09 -2.88263e-08 -8.02906e-09 -2.94334e-08 -6.23538e-09 -2.98538e-08 -4.25365e-09 -3.00699e-08 -2.09235e-09 -3.00661e-08 2.40305e-10 -2.98266e-08 2.72823e-09 -2.93387e-08 5.34974e-09 -2.85917e-08 8.07433e-09 -2.75774e-08 1.08709e-08 -2.62934e-08 1.36837e-08 -2.47413e-08 1.646e-08 -2.29301e-08 1.91207e-08 -2.08764e-08 2.1576e-08 -1.86059e-08 2.37205e-08 -1.6157e-08 2.54086e-08 -1.35811e-08 2.64864e-08 -1.09446e-08 2.67714e-08 -8.33185e-09 2.6054e-08 -5.84636e-09 2.41233e-08 -3.61122e-09 2.08054e-08 -1.77174e-09 1.60061e-08 -4.98127e-10 9.88158e-09 2.97061e-09 2.40179e-09 -1.13607e-08 1.07098e-09 -1.15399e-08 -2.75135e-10 -1.17651e-08 -1.65567e-09 -1.20673e-08 -3.07798e-09 -1.24351e-08 -4.54241e-09 -1.28396e-08 -6.04493e-09 -1.32518e-08 -7.57902e-09 -1.36423e-08 -9.13698e-09 -1.39907e-08 -1.07103e-08 -1.42766e-08 -1.22901e-08 -1.4486e-08 -1.3867e-08 -1.46056e-08 -1.54314e-08 -1.46229e-08 -1.69729e-08 -1.45301e-08 -1.84806e-08 -1.4315e-08 -1.99433e-08 -1.397e-08 -2.13483e-08 -1.34865e-08 -2.26826e-08 -1.28558e-08 -2.39323e-08 -1.20707e-08 -2.50824e-08 -1.11245e-08 -2.61174e-08 -1.00122e-08 -2.7021e-08 -8.72907e-09 -2.77768e-08 -7.27327e-09 -2.83676e-08 -5.64447e-09 -2.87769e-08 -3.84459e-09 -2.89875e-08 -1.88156e-09 -2.89842e-08 2.36963e-10 -2.87521e-08 2.49618e-09 -2.82785e-08 4.8762e-09 -2.75535e-08 7.34916e-09 -2.65691e-08 9.88659e-09 -2.53231e-08 1.24377e-08 -2.38174e-08 1.49543e-08 -2.2061e-08 1.73643e-08 -2.00704e-08 1.95854e-08 -1.78712e-08 2.15213e-08 -1.55013e-08 2.30388e-08 -1.30114e-08 2.39964e-08 -1.04667e-08 2.42268e-08 -7.95032e-09 2.35376e-08 -5.5631e-09 2.17361e-08 -3.42431e-09 1.86666e-08 -1.67271e-09 1.42544e-08 -4.67421e-10 8.67629e-09 2.50318e-09 2.52324e-09 -1.00573e-08 1.23532e-09 -1.0252e-08 -6.75393e-11 -1.04623e-08 -1.40265e-09 -1.07322e-08 -2.77747e-09 -1.10602e-08 -4.19268e-09 -1.14244e-08 -5.64481e-09 -1.17996e-08 -7.12778e-09 -1.21594e-08 -8.63428e-09 -1.24841e-08 -1.01561e-08 -1.27548e-08 -1.16847e-08 -1.29574e-08 -1.32109e-08 -1.30794e-08 -1.47253e-08 -1.31085e-08 -1.62179e-08 -1.30375e-08 -1.76781e-08 -1.28547e-08 -1.90949e-08 -1.25533e-08 -2.0456e-08 -1.21253e-08 -2.17488e-08 -1.1563e-08 -2.29596e-08 -1.08599e-08 -2.40741e-08 -1.00101e-08 -2.50769e-08 -9.00925e-09 -2.59525e-08 -7.85339e-09 -2.66848e-08 -6.54099e-09 -2.72571e-08 -5.07201e-09 -2.76535e-08 -3.4484e-09 -2.78574e-08 -1.67752e-09 -2.7854e-08 2.33506e-10 -2.76289e-08 2.27117e-09 -2.71701e-08 4.41734e-09 -2.64677e-08 6.64673e-09 -2.55145e-08 8.9335e-09 -2.43084e-08 1.12316e-08 -2.28515e-08 1.34975e-08 -2.11528e-08 1.56655e-08 -1.92287e-08 1.76613e-08 -1.71045e-08 1.93971e-08 -1.48175e-08 2.07518e-08 -1.24176e-08 2.15965e-08 -9.96893e-09 2.17781e-08 -7.55283e-09 2.11215e-08 -5.26778e-09 1.9451e-08 -3.22906e-09 1.66279e-08 -1.56886e-09 1.25942e-08 -4.34965e-10 7.5424e-09 2.06822e-09 2.48496e-09 -8.82346e-09 1.2614e-09 -9.0284e-09 2.11733e-11 -9.22206e-09 -1.25109e-09 -9.45993e-09 -2.56272e-09 -9.74861e-09 -3.91444e-09 -1.00727e-08 -5.30314e-09 -1.04109e-08 -6.72305e-09 -1.07395e-08 -8.16714e-09 -1.104e-08 -9.62746e-09 -1.12945e-08 -1.10956e-08 -1.14893e-08 -1.25627e-08 -1.16122e-08 -1.40196e-08 -1.16517e-08 -1.54564e-08 -1.16006e-08 -1.68628e-08 -1.14482e-08 -1.82279e-08 -1.11882e-08 -1.954e-08 -1.08133e-08 -2.07865e-08 -1.03165e-08 -2.19542e-08 -9.69215e-09 -2.30293e-08 -8.93519e-09 -2.39967e-08 -8.04179e-09 -2.48413e-08 -7.0087e-09 -2.55475e-08 -5.83473e-09 -2.60994e-08 -4.52007e-09 -2.64812e-08 -3.0667e-09 -2.66772e-08 -1.48138e-09 -2.66731e-08 2.29302e-10 -2.64549e-08 2.05309e-09 -2.60112e-08 3.9736e-09 -2.53326e-08 5.96804e-09 -2.44121e-08 8.01315e-09 -2.3248e-08 1.00676e-08 -2.18425e-08 1.2092e-08 -2.02047e-08 1.40276e-08 -1.83507e-08 1.58073e-08 -1.63053e-08 1.73518e-08 -1.41054e-08 1.85519e-08 -1.17998e-08 1.92908e-08 -9.45143e-09 1.94298e-08 -7.13979e-09 1.88099e-08 -4.96078e-09 1.7272e-08 -3.02576e-09 1.46929e-08 -1.46032e-09 1.10288e-08 -4.00771e-10 6.48285e-09 1.66745e-09 2.32599e-09 -7.67131e-09 1.17954e-09 -7.88195e-09 1.49978e-11 -8.05752e-09 -1.18168e-09 -8.26326e-09 -2.41782e-09 -8.51246e-09 -3.69439e-09 -8.7961e-09 -5.00864e-09 -9.09663e-09 -6.35514e-09 -9.39297e-09 -7.72716e-09 -9.66802e-09 -9.11701e-09 -9.90465e-09 -1.05165e-08 -1.00898e-08 -1.19169e-08 -1.02118e-08 -1.33092e-08 -1.02595e-08 -1.46838e-08 -1.0226e-08 -1.60304e-08 -1.01015e-08 -1.73386e-08 -9.88007e-09 -1.85967e-08 -9.55518e-09 -1.97925e-08 -9.12063e-09 -2.09131e-08 -8.57151e-09 -2.1945e-08 -7.90338e-09 -2.28737e-08 -7.11305e-09 -2.36845e-08 -6.19784e-09 -2.43623e-08 -5.15692e-09 -2.48916e-08 -3.99065e-09 -2.52575e-08 -2.701e-09 -2.54446e-08 -1.29416e-09 -2.54392e-08 2.2384e-10 -2.5228e-08 1.84198e-09 -2.48e-08 3.54557e-09 -2.41463e-08 5.31427e-09 -2.32603e-08 7.12732e-09 -2.21406e-08 8.94788e-09 -2.07895e-08 1.07409e-08 -1.92159e-08 1.2454e-08 -1.74358e-08 1.40272e-08 -1.54736e-08 1.53896e-08 -1.33652e-08 1.64435e-08 -1.11584e-08 1.7084e-08 -8.91475e-09 1.71862e-08 -6.71176e-09 1.66069e-08 -4.64267e-09 1.5203e-08 -2.81484e-09 1.2865e-08 -1.34732e-09 9.56126e-09 -3.64888e-10 5.50043e-09 1.30256e-09 2.09012e-09 -6.60398e-09 1.02555e-09 -6.81738e-09 -5.67494e-11 -6.97522e-09 -1.1703e-09 -7.14971e-09 -2.3228e-09 -7.35995e-09 -3.51582e-09 -7.60308e-09 -4.74724e-09 -7.86521e-09 -6.01215e-09 -8.12807e-09 -7.30424e-09 -8.37592e-09 -8.61613e-09 -8.59276e-09 -9.93987e-09 -8.76608e-09 -1.1267e-08 -8.88462e-09 -1.25885e-08 -8.93795e-09 -1.38952e-08 -8.91935e-09 -1.51768e-08 -8.8198e-09 -1.64231e-08 -8.63386e-09 -1.76226e-08 -8.35565e-09 -1.87635e-08 -7.97973e-09 -1.98332e-08 -7.50184e-09 -2.08184e-08 -6.91819e-09 -2.17053e-08 -6.22617e-09 -2.24794e-08 -5.42358e-09 -2.31265e-08 -4.5099e-09 -2.36314e-08 -3.48564e-09 -2.39798e-08 -2.35274e-09 -2.4157e-08 -1.1168e-09 -2.415e-08 2.16724e-10 -2.39459e-08 1.63801e-09 -2.35344e-08 3.13404e-09 -2.2907e-08 4.68681e-09 -2.20576e-08 6.27803e-09 -2.09849e-08 7.87518e-09 -1.96913e-08 9.44742e-09 -1.81857e-08 1.09484e-08 -1.64838e-08 1.23252e-08 -1.46092e-08 1.35151e-08 -1.2597e-08 1.44314e-08 -1.04939e-08 1.49808e-08 -8.35955e-09 1.50519e-08 -6.26953e-09 1.45169e-08 -4.31421e-09 1.32476e-08 -2.5969e-09 1.11477e-08 -1.2302e-09 8.19454e-09 -3.27406e-10 4.59764e-09 9.75154e-10 1.8183e-09 -5.6195e-09 8.35024e-10 -5.83411e-09 -1.63622e-10 -5.97658e-09 -1.19114e-09 -6.12219e-09 -2.25585e-09 -6.29524e-09 -3.36037e-09 -6.49857e-09 -4.50349e-09 -6.72207e-09 -5.6811e-09 -6.95046e-09 -6.88748e-09 -7.16953e-09 -8.11571e-09 -7.36454e-09 -9.35814e-09 -7.52364e-09 -1.06066e-08 -7.63616e-09 -1.18522e-08 -7.6923e-09 -1.3086e-08 -7.68561e-09 -1.42978e-08 -7.60786e-09 -1.54777e-08 -7.45404e-09 -1.66144e-08 -7.21893e-09 -1.76964e-08 -6.89775e-09 -1.87114e-08 -6.48684e-09 -1.96466e-08 -5.98305e-09 -2.04885e-08 -5.38421e-09 -2.12234e-08 -4.68861e-09 -2.18373e-08 -3.89597e-09 -2.2316e-08 -3.00693e-09 -2.26455e-08 -2.02331e-09 -2.28121e-08 -9.50145e-10 -2.28031e-08 2.07672e-10 -2.26065e-08 1.44151e-09 -2.22124e-08 2.73995e-09 -2.1613e-08 4.08727e-09 -2.08023e-08 5.46752e-09 -1.97795e-08 6.85238e-09 -1.8547e-08 8.21495e-09 -1.71135e-08 9.51483e-09 -1.54942e-08 1.07058e-08 -1.37121e-08 1.17331e-08 -1.18013e-08 1.25206e-08 -9.80685e-09 1.29862e-08 -7.78677e-09 1.30319e-08 -5.81415e-09 1.25442e-08 -3.97641e-09 1.14099e-08 -2.37277e-09 9.5441e-09 -1.10945e-09 6.93121e-09 -2.88473e-10 3.77667e-09 6.8668e-10 1.54406e-09 -4.71457e-09 6.39288e-10 -4.92934e-09 -2.77457e-10 -5.05983e-09 -1.21946e-09 -5.18018e-09 -2.19564e-09 -5.31906e-09 -3.20988e-09 -5.48434e-09 -4.26212e-09 -5.66982e-09 -5.34926e-09 -5.86333e-09 -6.46634e-09 -6.05243e-09 -7.60703e-09 -6.22386e-09 -8.7641e-09 -6.36656e-09 -9.92966e-09 -6.47057e-09 -1.10952e-08 -6.52675e-09 -1.22519e-08 -6.529e-09 -1.33898e-08 -6.46983e-09 -1.44992e-08 -6.3447e-09 -1.55691e-08 -6.14895e-09 -1.65884e-08 -5.87846e-09 -1.75452e-08 -5.5301e-09 -1.8427e-08 -5.10126e-09 -1.9221e-08 -4.59022e-09 -1.99139e-08 -3.99564e-09 -2.04924e-08 -3.31744e-09 -2.09429e-08 -2.55633e-09 -2.12523e-08 -1.71404e-09 -2.14074e-08 -7.94981e-10 -2.13963e-08 1.96501e-10 -2.12076e-08 1.25293e-09 -2.08321e-08 2.36442e-09 -2.02624e-08 3.51745e-09 -1.9493e-08 4.69831e-09 -1.85233e-08 5.88265e-09 -1.73557e-08 7.04739e-09 -1.59986e-08 8.15778e-09 -1.44669e-08 9.17407e-09 -1.27827e-08 1.00489e-08 -1.09786e-08 1.07166e-08 -9.09828e-09 1.11058e-08 -7.19755e-09 1.11311e-08 -5.34691e-09 1.06936e-08 -3.63055e-09 9.69353e-09 -2.14351e-09 8.05707e-09 -9.85736e-10 5.77342e-09 -2.48309e-10 3.03924e-09 4.38371e-10 2.9382e-09 -2.62887e-09 2.11906e-09 -3.48107e-09 1.29155e-09 -3.88707e-09 4.62618e-10 -4.10041e-09 -3.75232e-10 -4.22198e-09 -1.23431e-09 -4.3211e-09 -2.12374e-09 -4.42963e-09 -3.04855e-09 -4.55952e-09 -4.00986e-09 -4.70851e-09 -5.00565e-09 -4.86754e-09 -6.03184e-09 -5.02623e-09 -7.0828e-09 -5.1729e-09 -8.15185e-09 -5.29752e-09 -9.23149e-09 -5.3909e-09 -1.03136e-08 -5.44466e-09 -1.13895e-08 -5.45309e-09 -1.24498e-08 -5.40945e-09 -1.3485e-08 -5.30962e-09 -1.44844e-08 -5.14951e-09 -1.54373e-08 -4.92557e-09 -1.63322e-08 -4.63518e-09 -1.71573e-08 -4.2762e-09 -1.79002e-08 -3.84726e-09 -1.85484e-08 -3.34738e-09 -1.90892e-08 -2.77662e-09 -1.95098e-08 -2.1357e-09 -1.97977e-08 -1.42623e-09 -1.99405e-08 -6.52036e-10 -1.99272e-08 1.83118e-10 -1.97471e-08 1.07285e-09 -1.93914e-08 2.00875e-09 -1.88534e-08 2.97938e-09 -1.81282e-08 3.97315e-09 -1.7215e-08 4.96949e-09 -1.61165e-08 5.9489e-09 -1.48407e-08 6.88202e-09 -1.34019e-08 7.73518e-09 -1.18211e-08 8.4682e-09 -1.01298e-08 9.02519e-09 -8.36929e-09 9.34535e-09 -6.59334e-09 9.35522e-09 -4.86943e-09 8.96969e-09 -3.27825e-09 8.10235e-09 -1.91049e-09 6.68931e-09 -8.59948e-10 4.72287e-09 -2.07229e-10 2.38653e-09 2.31142e-10 2.5608e-09 -1.95912e-09 1.82653e-09 -2.7468e-09 1.07638e-09 -3.13692e-09 3.217e-10 -3.34573e-09 -4.40426e-10 -3.45986e-09 -1.22027e-09 -3.54126e-09 -2.02647e-09 -3.62342e-09 -2.86472e-09 -3.72128e-09 -3.73704e-09 -3.83618e-09 -4.64245e-09 -3.96214e-09 -5.57777e-09 -4.0909e-09 -6.53814e-09 -4.21254e-09 -7.51751e-09 -4.31814e-09 -8.50895e-09 -4.39944e-09 -9.50478e-09 -4.44885e-09 -1.04968e-08 -4.46109e-09 -1.14759e-08 -4.43021e-09 -1.24331e-08 -4.35249e-09 -1.33582e-08 -4.22438e-09 -1.4241e-08 -4.04285e-09 -1.50704e-08 -3.80574e-09 -1.58353e-08 -3.51131e-09 -1.6524e-08 -3.15852e-09 -1.71247e-08 -2.74666e-09 -1.76254e-08 -2.2759e-09 -1.80141e-08 -1.74694e-09 -1.82792e-08 -1.16122e-09 -1.84092e-08 -5.21999e-10 -1.83936e-08 1.67516e-10 -1.82227e-08 9.01993e-10 -1.78884e-08 1.67443e-09 -1.73844e-08 2.47533e-09 -1.67063e-08 3.2951e-09 -1.58535e-08 4.11672e-09 -1.48286e-08 4.92404e-09 -1.36393e-08 5.69276e-09 -1.22991e-08 6.39493e-09 -1.0828e-08 6.99713e-09 -9.25561e-09 7.45279e-09 -7.62126e-09 7.71097e-09 -5.97587e-09 7.70985e-09 -4.38366e-09 7.37748e-09 -2.92147e-09 6.64016e-09 -1.6754e-09 5.44325e-09 -7.33232e-10 3.7807e-09 -1.65667e-10 1.81896e-09 6.54751e-11 2.22318e-09 -1.38426e-09 1.57648e-09 -2.1001e-09 9.05116e-10 -2.46556e-09 2.24047e-10 -2.66466e-09 -4.65241e-10 -2.77057e-09 -1.16993e-09 -2.83657e-09 -1.89731e-09 -2.89604e-09 -2.65295e-09 -2.96564e-09 -3.43937e-09 -3.04975e-09 -4.2564e-09 -3.14511e-09 -5.10171e-09 -3.24558e-09 -5.97127e-09 -3.34299e-09 -6.85979e-09 -3.42963e-09 -7.761e-09 -3.4982e-09 -8.66786e-09 -3.542e-09 -9.57273e-09 -3.55624e-09 -1.04671e-08 -3.53572e-09 -1.13425e-08 -3.47716e-09 -1.21894e-08 -3.37751e-09 -1.29979e-08 -3.23426e-09 -1.37581e-08 -3.04564e-09 -1.44591e-08 -2.81026e-09 -1.50903e-08 -2.52737e-09 -1.56404e-08 -2.19647e-09 -1.60985e-08 -1.81779e-09 -1.64534e-08 -1.39199e-09 -1.66944e-08 -9.20344e-10 -1.68107e-08 -4.05532e-10 -1.67931e-08 1.49774e-10 -1.66322e-08 7.41227e-10 -1.63209e-08 1.36314e-09 -1.58535e-08 2.00781e-09 -1.52258e-08 2.66752e-09 -1.44376e-08 3.32851e-09 -1.34913e-08 3.97777e-09 -1.23942e-08 4.59565e-09 -1.11588e-08 5.15954e-09 -9.80403e-09 5.64234e-09 -8.35739e-09 6.00617e-09 -6.85585e-09 6.2094e-09 -5.34721e-09 6.20123e-09 -3.89195e-09 5.92221e-09 -2.56259e-09 5.3108e-09 -1.44037e-09 4.32103e-09 -6.07066e-10 2.94739e-09 -1.24215e-10 1.33611e-09 -5.87398e-11 1.92366e-09 -9.08219e-10 1.36774e-09 -1.54418e-09 7.76645e-10 -1.87447e-09 1.68403e-10 -2.05641e-09 -4.51025e-10 -2.15114e-09 -1.08481e-09 -2.20279e-09 -1.73796e-09 -2.24288e-09 -2.41511e-09 -2.28849e-09 -3.11882e-09 -2.34604e-09 -3.84945e-09 -2.41448e-09 -4.60549e-09 -2.48954e-09 -5.38379e-09 -2.56469e-09 -6.17996e-09 -2.63346e-09 -6.98857e-09 -2.68956e-09 -7.80338e-09 -2.7272e-09 -8.61748e-09 -2.74215e-09 -9.42316e-09 -2.72999e-09 -1.02125e-08 -2.68787e-09 -1.09767e-08 -2.61327e-09 -1.17068e-08 -2.50414e-09 -1.23934e-08 -2.35906e-09 -1.30267e-08 -2.17701e-09 -1.35966e-08 -1.95741e-09 -1.40931e-08 -1.69997e-09 -1.4506e-08 -1.40493e-09 -1.4825e-08 -1.07291e-09 -1.50404e-08 -7.04963e-10 -1.51426e-08 -3.03252e-10 -1.5123e-08 1.3007e-10 -1.49733e-08 5.9157e-10 -1.46869e-08 1.07676e-09 -1.42588e-08 1.57962e-09 -1.36853e-08 2.0941e-09 -1.29662e-08 2.60944e-09 -1.21039e-08 3.11547e-09 -1.1105e-08 3.59682e-09 -9.98132e-09 4.03578e-09 -8.74997e-09 4.41103e-09 -7.4365e-09 4.69271e-09 -6.075e-09 4.84788e-09 -4.70978e-09 4.83602e-09 -3.39705e-09 4.60948e-09 -2.20449e-09 4.11824e-09 -1.208e-09 3.32455e-09 -4.83322e-10 2.22271e-09 -8.36631e-11 9.36455e-10 -1.42403e-10 1.65074e-09 -5.33876e-10 1.18712e-09 -1.08056e-09 6.76604e-10 -1.36396e-09 1.4001e-10 -1.51982e-09 -4.12032e-10 -1.5991e-09 -9.78057e-10 -1.63676e-09 -1.56013e-09 -1.66081e-09 -2.16135e-09 -1.68728e-09 -2.78392e-09 -1.72347e-09 -3.42861e-09 -1.76979e-09 -4.0947e-09 -1.82344e-09 -4.78002e-09 -1.87937e-09 -5.48121e-09 -1.93226e-09 -6.19386e-09 -1.9769e-09 -6.91266e-09 -2.00842e-09 -7.6316e-09 -2.02322e-09 -8.34385e-09 -2.01768e-09 -9.0423e-09 -1.98946e-09 -9.71904e-09 -1.93651e-09 -1.03659e-08 -1.85725e-09 -1.09744e-08 -1.75059e-09 -1.15356e-08 -1.6158e-09 -1.20406e-08 -1.45249e-09 -1.248e-08 -1.2605e-09 -1.28448e-08 -1.04009e-09 -1.31259e-08 -7.91785e-10 -1.33145e-08 -5.16434e-10 -1.3402e-08 -2.15712e-10 -1.33806e-08 1.08712e-10 -1.32433e-08 4.54234e-10 -1.2984e-08 8.17461e-10 -1.25983e-08 1.19386e-09 -1.2083e-08 1.57889e-09 -1.1438e-08 1.96449e-09 -1.06655e-08 2.34302e-09 -9.77167e-09 2.70295e-09 -8.76689e-09 3.03096e-09 -7.66683e-09 3.31099e-09 -6.49454e-09 3.52044e-09 -5.28094e-09 3.63426e-09 -4.06635e-09 3.62144e-09 -2.90216e-09 3.44529e-09 -1.85052e-09 3.06661e-09 -9.81414e-10 2.45544e-09 -3.64356e-10 1.60565e-09 -4.50613e-11 6.17161e-10 -1.87464e-10 1.38289e-09 -2.62382e-10 1.01044e-09 -7.08101e-10 5.79148e-10 -9.32676e-10 1.12858e-10 -1.05353e-09 -3.72911e-10 -1.11334e-09 -8.71855e-10 -1.13782e-09 -1.38289e-09 -1.14977e-09 -1.90744e-09 -1.16273e-09 -2.44729e-09 -1.18361e-09 -3.00363e-09 -1.21345e-09 -3.57659e-09 -1.25047e-09 -4.16511e-09 -1.29085e-09 -4.76695e-09 -1.33043e-09 -5.37881e-09 -1.36501e-09 -5.99647e-09 -1.39076e-09 -6.61492e-09 -1.40479e-09 -7.22829e-09 -1.40427e-09 -7.83039e-09 -1.38739e-09 -8.41427e-09 -1.35261e-09 -8.97274e-09 -1.29878e-09 -9.4982e-09 -1.22513e-09 -9.98287e-09 -1.13116e-09 -1.04187e-08 -1.01666e-09 -1.07976e-08 -8.81561e-10 -1.11116e-08 -7.26103e-10 -1.13526e-08 -5.50712e-10 -1.15131e-08 -3.5605e-10 -1.15854e-08 -1.4334e-10 -1.15629e-08 8.61916e-11 -1.14393e-08 3.30676e-10 -1.12095e-08 5.87685e-10 -1.08697e-08 8.53991e-10 -1.04171e-08 1.12638e-09 -9.85176e-09 1.39913e-09 -9.17554e-09 1.66683e-09 -8.39389e-09 1.9213e-09 -7.51602e-09 2.15307e-09 -6.55572e-09 2.3507e-09 -5.53332e-09 2.49805e-09 -4.47618e-09 2.5771e-09 -3.42011e-09 2.56538e-09 -2.41099e-09 2.43618e-09 -1.50468e-09 2.16029e-09 -7.64416e-10 1.71517e-09 -2.53109e-10 1.09434e-09 -9.79738e-12 3.73849e-10 -1.97262e-10 1.07741e-09 -8.66285e-11 7.91926e-10 -4.22618e-10 4.39318e-10 -5.80071e-10 4.58408e-11 -6.60049e-10 -3.69186e-10 -6.98312e-10 -7.95406e-10 -7.11597e-10 -1.22918e-09 -7.16002e-10 -1.67058e-09 -7.21334e-10 -2.1212e-09 -7.32978e-10 -2.58272e-09 -7.51937e-10 -3.05616e-09 -7.77022e-10 -3.54155e-09 -8.0547e-10 -4.03778e-09 -8.34198e-10 -4.54265e-09 -8.6012e-10 -5.05301e-09 -8.80416e-10 -5.56484e-09 -8.92961e-10 -6.0733e-09 -8.95768e-10 -6.57317e-09 -8.8755e-10 -7.0585e-09 -8.67266e-10 -7.52313e-09 -8.34151e-10 -7.96052e-09 -7.87733e-10 -8.36399e-09 -7.27717e-10 -8.72663e-09 -6.54007e-10 -9.04155e-09 -5.66609e-10 -9.30193e-09 -4.65724e-10 -9.50093e-09 -3.51678e-10 -9.63209e-09 -2.24943e-10 -9.68903e-09 -8.63488e-11 -9.66614e-09 6.32702e-11 -9.55811e-09 2.22676e-10 -9.36068e-09 3.90262e-10 -9.07065e-09 5.63912e-10 -8.68574e-09 7.41529e-10 -8.20597e-09 9.1936e-10 -7.63301e-09 1.09389e-09 -6.97147e-09 1.25976e-09 -6.22919e-09 1.41077e-09 -5.41788e-09 1.53942e-09 -4.55488e-09 1.63505e-09 -3.66354e-09 1.68575e-09 -2.77464e-09 1.67649e-09 -1.92778e-09 1.58932e-09 -1.17158e-09 1.40409e-09 -5.61532e-10 1.10512e-09 -1.53235e-10 6.8604e-10 2.03205e-11 2.00294e-10 -1.76941e-10 6.98297e-10 4.07098e-12 4.93462e-10 -2.17783e-10 2.20696e-10 -3.07307e-10 -9.24076e-11 -3.46946e-10 -4.25436e-10 -3.65283e-10 -7.66217e-10 -3.70816e-10 -1.10998e-09 -3.7224e-10 -1.45628e-09 -3.75031e-10 -1.80685e-09 -3.82407e-10 -2.16388e-09 -3.94909e-10 -2.52918e-09 -4.11714e-10 -2.90366e-09 -4.30995e-10 -3.28713e-09 -4.50727e-10 -3.67833e-09 -4.68907e-10 -4.07501e-09 -4.83742e-10 -4.47409e-09 -4.93885e-10 -4.8717e-09 -4.98129e-10 -5.26357e-09 -4.957e-10 -5.64482e-09 -4.86e-10 -6.01037e-09 -4.68607e-10 -6.35482e-09 -4.43279e-10 -6.67267e-09 -4.09885e-10 -6.95827e-09 -3.68406e-10 -7.20596e-09 -3.18883e-10 -7.41022e-09 -2.6147e-10 -7.56548e-09 -1.96385e-10 -7.66654e-09 -1.2393e-10 -7.70825e-09 -4.46019e-11 -7.6861e-09 4.10957e-11 -7.59583e-09 1.3244e-10 -7.43407e-09 2.28494e-10 -7.19822e-09 3.28036e-10 -6.88651e-09 4.29862e-10 -6.49896e-09 5.31811e-10 -6.03692e-09 6.31868e-10 -5.50413e-09 7.26954e-10 -4.90688e-09 8.13503e-10 -4.25463e-09 8.87182e-10 -3.56139e-09 9.41817e-10 -2.84613e-09 9.70475e-10 -2.13393e-09 9.64297e-10 -1.45732e-09 9.127e-10 -8.56564e-10 8.03337e-10 -3.78129e-10 6.2669e-10 -6.92368e-11 3.77146e-10 4.28979e-11 8.81587e-11 -1.34043e-10 2.25305e-10 2.49658e-11 9.77883e-11 -9.02706e-11 -8.73652e-11 -1.22153e-10 -3.03991e-10 -1.30319e-10 -5.35479e-10 -1.33795e-10 -7.7136e-10 -1.34935e-10 -1.00756e-09 -1.36037e-10 -1.24388e-09 -1.38714e-10 -1.48219e-09 -1.44096e-10 -1.72489e-09 -1.52211e-10 -1.97408e-09 -1.62527e-10 -2.23102e-09 -1.74055e-10 -2.49601e-09 -1.85738e-10 -2.76834e-09 -1.96561e-10 -3.04645e-09 -2.05642e-10 -3.32801e-09 -2.12326e-10 -3.61006e-09 -2.16058e-10 -3.88928e-09 -2.16489e-10 -4.1619e-09 -2.13367e-10 -4.42399e-09 -2.06525e-10 -4.67138e-09 -1.95881e-10 -4.89988e-09 -1.81403e-10 -5.10517e-09 -1.6311e-10 -5.28299e-09 -1.41046e-10 -5.42916e-09 -1.15303e-10 -5.53952e-09 -8.6002e-11 -5.61019e-09 -5.32976e-11 -5.63733e-09 -1.74276e-11 -5.61762e-09 2.13646e-11 -5.5479e-09 6.27435e-11 -5.42568e-09 1.06276e-10 -5.24908e-09 1.51402e-10 -5.01676e-09 1.97575e-10 -4.72875e-09 2.4381e-10 -4.38606e-09 2.89193e-10 -3.99144e-09 3.32325e-10 -3.54953e-09 3.71583e-10 -3.06732e-09 4.0499e-10 -2.55522e-09 4.29711e-10 -2.02731e-09 4.4256e-10 -1.50239e-09 4.39385e-10 -1.00496e-09 4.15271e-10 -5.65746e-10 3.64119e-10 -2.20535e-10 2.81479e-10 -6.64729e-12 1.63258e-10 5.48042e-11 2.67068e-11 -7.92388e-11 -1.99279e-10 2.87201e-11 -2.73289e-10 -1.62626e-11 -3.73994e-10 -2.14477e-11 -4.86068e-10 -1.82435e-11 -6.03407e-10 -1.64545e-11 -7.22087e-10 -1.6254e-11 -8.4084e-10 -1.72824e-11 -9.60279e-10 -1.92761e-11 -1.08215e-09 -2.22272e-11 -1.20839e-09 -2.59648e-11 -1.34066e-09 -3.02574e-11 -1.47994e-09 -3.47792e-11 -1.62646e-09 -3.92162e-11 -1.77973e-09 -4.32809e-11 -1.93864e-09 -4.67384e-11 -2.10155e-09 -4.94217e-11 -2.26639e-09 -5.11981e-11 -2.4309e-09 -5.19918e-11 -2.5925e-09 -5.17533e-11 -2.74857e-09 -5.04559e-11 -2.89636e-09 -4.80937e-11 -3.0331e-09 -4.46726e-11 -3.15599e-09 -4.021e-11 -3.2623e-09 -3.47285e-11 -3.34934e-09 -2.82616e-11 -3.41448e-09 -2.08483e-11 -3.45527e-09 -1.25365e-11 -3.46928e-09 -3.39171e-12 -3.45445e-09 6.51758e-12 -3.40879e-09 1.71023e-11 -3.33077e-09 2.82482e-11 -3.21919e-09 3.98087e-11 -3.07324e-09 5.16444e-11 -2.89292e-09 6.34999e-11 -2.67886e-09 7.51416e-11 -2.43275e-09 8.62097e-11 -2.15746e-09 9.62852e-11 -1.85732e-09 1.0486e-10 -1.5388e-09 1.11193e-10 -1.21071e-09 1.1446e-10 -8.84862e-10 1.13539e-10 -5.76752e-10 1.07161e-10 -3.06157e-10 9.35231e-11 -9.62434e-11 7.15651e-11 2.76647e-11 3.93495e-11 5.17881e-11 2.58305e-12 -2.74506e-11 -3.40009e-10 -3.56275e-10 -3.77721e-10 -3.95961e-10 -4.12415e-10 -4.28668e-10 -4.45951e-10 -4.65228e-10 -4.87456e-10 -5.13422e-10 -5.43678e-10 -5.78457e-10 -6.17673e-10 -6.60952e-10 -7.07691e-10 -7.57113e-10 -8.08305e-10 -8.60299e-10 -9.1205e-10 -9.62506e-10 -1.0106e-09 -1.05527e-09 -1.09548e-09 -1.13021e-09 -1.15847e-09 -1.17932e-09 -1.19186e-09 -1.19525e-09 -1.18873e-09 -1.17163e-09 -1.14338e-09 -1.10357e-09 -1.05192e-09 -9.88422e-10 -9.13277e-10 -8.27068e-10 -7.30785e-10 -6.25923e-10 -5.14729e-10 -4.00271e-10 -2.86731e-10 -1.7957e-10 -8.60468e-11 -1.44818e-11 2.48678e-11 2.74506e-11 ) ; boundaryField { inlet { type calculated; value nonuniform List<scalar> 0(); } outlet { type calculated; value nonuniform List<scalar> 0(); } walls { type calculated; value uniform 0; } side1 { type cyclic; value nonuniform List<scalar> 1663 ( -8.57153e-16 -9.13616e-16 -4.57753e-16 -5.51746e-16 1.0278e-16 -5.59356e-16 5.53275e-16 -5.57586e-16 3.94251e-16 -5.88e-16 -2.88464e-16 2.94093e-15 2.04778e-15 2.19423e-15 1.82728e-15 1.73227e-15 1.48885e-15 1.56145e-15 1.00273e-15 7.43917e-16 3.12142e-19 -7.08239e-17 -1.98546e-14 -1.79559e-14 -1.88655e-14 -1.855e-14 -1.63626e-14 -1.6701e-14 -1.32241e-14 -1.50418e-14 -1.21789e-14 -1.26838e-14 -1.24321e-14 -8.39958e-15 -7.3605e-15 -4.77316e-15 -3.43331e-15 -1.86636e-15 -4.0941e-16 -2.32696e-16 1.56042e-16 1.06793e-15 1.1462e-15 2.08259e-15 1.6612e-15 2.08596e-15 2.18218e-15 2.39478e-15 1.71225e-15 1.83975e-15 1.45065e-15 1.64027e-15 1.61344e-15 1.20751e-15 8.47405e-16 1.45555e-16 -3.82925e-16 -5.76881e-16 -1.90656e-14 -1.73897e-14 -1.74168e-14 -1.66866e-14 -1.56461e-14 -1.56596e-14 -1.33088e-14 -1.31113e-14 -1.11055e-14 -1.0502e-14 -9.86291e-15 -7.43107e-15 -6.45836e-15 -5.36059e-15 -4.64376e-15 -3.44381e-15 -2.25873e-15 -1.71774e-15 -1.4922e-15 -8.21673e-16 -6.38955e-16 -2.7465e-16 -1.43801e-16 2.89994e-17 -5.70228e-17 -1.45394e-16 -4.08964e-17 -2.67597e-16 -1.82092e-16 1.29032e-16 2.71344e-16 3.21888e-16 1.7959e-16 -2.25376e-16 -6.51474e-16 -7.82366e-16 -6.85466e-15 -6.30804e-15 -6.57376e-15 -6.19762e-15 -6.45538e-15 -6.24255e-15 -6.21351e-15 -6.80711e-15 -7.1258e-15 -6.572e-15 -6.01992e-15 -5.89135e-15 -4.83608e-15 -4.46566e-15 -4.09075e-15 -3.79567e-15 -3.66932e-15 -3.42073e-15 -3.61576e-15 -2.97128e-15 -2.29953e-15 -1.96977e-15 -1.2818e-15 -8.94774e-16 -1.3624e-15 -1.01774e-15 -6.96438e-16 -4.52243e-16 -2.85077e-17 1.19761e-17 -9.44001e-17 8.40548e-17 -2.01701e-17 -9.03242e-17 -2.20288e-16 -1.7187e-16 -2.83684e-14 -2.76042e-14 -2.68268e-14 -2.59138e-14 -2.51241e-14 -2.33238e-14 -2.25725e-14 -2.03542e-14 -1.91339e-14 -1.71807e-14 -1.51906e-14 -1.35441e-14 -1.1383e-14 -1.06169e-14 -8.57936e-15 -7.31982e-15 -6.23848e-15 -4.59545e-15 -4.58857e-15 -3.78047e-15 -3.18935e-15 -3.27674e-15 -2.83767e-15 -2.73325e-15 -2.99291e-15 -2.70584e-15 -2.36873e-15 -2.37013e-15 -1.7633e-15 -1.53052e-15 -1.37541e-15 -1.00799e-15 -1.14492e-15 -1.13012e-15 -1.17821e-15 -7.49906e-16 -1.30837e-14 -1.31091e-14 -1.28473e-14 -1.25458e-14 -1.21943e-14 -1.11709e-14 -1.11701e-14 -9.7114e-15 -9.23155e-15 -8.4384e-15 -7.62099e-15 -7.48308e-15 -6.66837e-15 -6.65864e-15 -5.60079e-15 -5.07213e-15 -4.674e-15 -3.6276e-15 -3.86486e-15 -3.3516e-15 -2.99638e-15 -3.23043e-15 -2.95371e-15 -2.60009e-15 -2.47087e-15 -2.11853e-15 -1.82037e-15 -1.87474e-15 -1.50036e-15 -1.28432e-15 -1.09464e-15 -7.96525e-16 -7.96351e-16 -5.0938e-16 -5.8257e-16 -3.15706e-16 2.39303e-14 2.28413e-14 2.18847e-14 2.08716e-14 1.99702e-14 1.92488e-14 1.79681e-14 1.70981e-14 1.58342e-14 1.44899e-14 1.3022e-14 1.12229e-14 9.77616e-15 8.43446e-15 7.45568e-15 6.45349e-15 5.51564e-15 5.07171e-15 4.25294e-15 4.00088e-15 3.83109e-15 3.49313e-15 3.36589e-15 3.44179e-15 3.45819e-15 3.41532e-15 3.41121e-15 3.18605e-15 2.99588e-15 2.76111e-15 2.50767e-15 2.29623e-15 1.99009e-15 1.96897e-15 1.43956e-15 7.99012e-16 -4.48599e-14 -4.37346e-14 -4.23825e-14 -4.0863e-14 -3.90357e-14 -3.71733e-14 -3.52352e-14 -3.34317e-14 -3.14e-14 -2.9613e-14 -2.7679e-14 -2.57236e-14 -2.39638e-14 -2.18496e-14 -2.00187e-14 -1.83588e-14 -1.69155e-14 -1.55922e-14 -1.45748e-14 -1.34834e-14 -1.25691e-14 -1.17517e-14 -1.1172e-14 -1.05572e-14 -9.90611e-15 -9.36997e-15 -8.60076e-15 -7.83508e-15 -7.04965e-15 -6.22354e-15 -5.41202e-15 -4.65705e-15 -3.98605e-15 -3.1516e-15 -2.32696e-15 -9.32753e-16 6.32935e-15 6.02382e-15 5.77596e-15 5.49568e-15 5.38135e-15 4.96786e-15 4.76352e-15 4.13917e-15 3.8091e-15 3.36599e-15 2.90415e-15 2.80889e-15 2.38629e-15 2.39998e-15 2.15061e-15 1.9212e-15 1.68119e-15 1.43649e-15 1.22963e-15 1.22441e-15 1.21008e-15 1.35874e-15 1.29927e-15 1.27344e-15 1.29318e-15 1.18639e-15 1.22897e-15 1.21427e-15 1.1597e-15 1.07389e-15 9.99114e-16 8.6765e-16 7.66908e-16 6.9886e-16 5.50107e-16 3.28402e-16 -3.89449e-14 -3.7974e-14 -3.68695e-14 -3.57752e-14 -3.44378e-14 -3.33693e-14 -3.19781e-14 -3.08637e-14 -2.94846e-14 -2.80629e-14 -2.66903e-14 -2.49753e-14 -2.35849e-14 -2.19802e-14 -2.066e-14 -1.94254e-14 -1.83003e-14 -1.72819e-14 -1.63378e-14 -1.53267e-14 -1.44297e-14 -1.34388e-14 -1.26757e-14 -1.19003e-14 -1.11214e-14 -1.03855e-14 -9.51865e-15 -8.67243e-15 -7.77358e-15 -6.91602e-15 -5.99115e-15 -5.14901e-15 -4.24924e-15 -3.32811e-15 -2.26729e-15 -9.37112e-16 8.50264e-15 8.18297e-15 7.89536e-15 7.48538e-15 7.21212e-15 6.6657e-15 6.32849e-15 5.82121e-15 5.4443e-15 5.16877e-15 4.83377e-15 4.73913e-15 4.4802e-15 4.34299e-15 4.09109e-15 3.82813e-15 3.5652e-15 3.32375e-15 3.10241e-15 3.02052e-15 2.90428e-15 2.91972e-15 2.79595e-15 2.71831e-15 2.59366e-15 2.44631e-15 2.3263e-15 2.13989e-15 1.98167e-15 1.73878e-15 1.56733e-15 1.31025e-15 1.11696e-15 8.54168e-16 5.9648e-16 2.05192e-16 -1.17376e-14 -1.15368e-14 -1.12979e-14 -1.11354e-14 -1.08569e-14 -1.07176e-14 -1.04278e-14 -1.01741e-14 -9.85311e-15 -9.42969e-15 -9.05082e-15 -8.55052e-15 -8.1357e-15 -7.71541e-15 -7.34618e-15 -7.02414e-15 -6.70705e-15 -6.3869e-15 -6.0792e-15 -5.69054e-15 -5.34989e-15 -4.92656e-15 -4.60583e-15 -4.23578e-15 -3.92123e-15 -3.59484e-15 -3.26554e-15 -2.97162e-15 -2.63978e-15 -2.3666e-15 -2.02195e-15 -1.73953e-15 -1.39076e-15 -1.08619e-15 -6.88142e-16 -2.9144e-16 -9.46467e-14 -9.24706e-14 -9.0186e-14 -8.78636e-14 -8.53941e-14 -8.29066e-14 -8.02749e-14 -7.75703e-14 -7.48023e-14 -7.19389e-14 -6.91218e-14 -6.62793e-14 -6.34413e-14 -6.06924e-14 -5.80181e-14 -5.54528e-14 -5.29394e-14 -5.04895e-14 -4.81019e-14 -4.57114e-14 -4.33868e-14 -4.10234e-14 -3.87207e-14 -3.63497e-14 -3.39833e-14 -3.15364e-14 -2.90335e-14 -2.64716e-14 -2.38159e-14 -2.11289e-14 -1.8338e-14 -1.55255e-14 -1.25896e-14 -9.54441e-15 -6.15881e-15 -2.33593e-15 3.97153e-14 3.87388e-14 3.77225e-14 3.66427e-14 3.55612e-14 3.444e-14 3.333e-14 3.22348e-14 3.11314e-14 3.00613e-14 2.89692e-14 2.79021e-14 2.68015e-14 2.569e-14 2.46208e-14 2.35437e-14 2.25228e-14 2.1534e-14 2.05824e-14 1.96826e-14 1.87817e-14 1.79147e-14 1.7001e-14 1.6093e-14 1.51163e-14 1.41118e-14 1.304e-14 1.19125e-14 1.07439e-14 9.51566e-15 8.26656e-15 6.95609e-15 5.60883e-15 4.16529e-15 2.65566e-15 9.41619e-16 3.8758e-14 3.78619e-14 3.69302e-14 3.59616e-14 3.49867e-14 3.39979e-14 3.30046e-14 3.20231e-14 3.10277e-14 3.00417e-14 2.90351e-14 2.80117e-14 2.70036e-14 2.59305e-14 2.49015e-14 2.38714e-14 2.28911e-14 2.19348e-14 2.10089e-14 2.01063e-14 1.92041e-14 1.83099e-14 1.73801e-14 1.64383e-14 1.54401e-14 1.44065e-14 1.3309e-14 1.21605e-14 1.09605e-14 9.70678e-15 8.4077e-15 7.05307e-15 5.64424e-15 4.15931e-15 2.60818e-15 9.00982e-16 -2.11093e-13 -2.06799e-13 -2.02364e-13 -1.97777e-13 -1.93037e-13 -1.88162e-13 -1.83183e-13 -1.78102e-13 -1.72954e-13 -1.67747e-13 -1.6252e-13 -1.57297e-13 -1.52083e-13 -1.46913e-13 -1.41754e-13 -1.36591e-13 -1.31373e-13 -1.26111e-13 -1.20826e-13 -1.155e-13 -1.10086e-13 -1.04571e-13 -9.89358e-14 -9.3137e-14 -8.71624e-14 -8.09882e-14 -7.46154e-14 -6.80288e-14 -6.12352e-14 -5.4235e-14 -4.70262e-14 -3.95809e-14 -3.18382e-14 -2.36932e-14 -1.49623e-14 -5.42015e-15 1.2715e-13 1.24638e-13 1.22047e-13 1.19389e-13 1.16682e-13 1.13928e-13 1.11111e-13 1.08243e-13 1.05333e-13 1.0241e-13 9.94224e-14 9.63924e-14 9.33008e-14 9.01783e-14 8.70514e-14 8.39223e-14 8.08096e-14 7.7689e-14 7.45339e-14 7.13451e-14 6.81068e-14 6.4796e-14 6.13915e-14 5.78788e-14 5.42362e-14 5.0449e-14 4.65124e-14 4.24261e-14 3.81686e-14 3.37543e-14 2.91847e-14 2.44423e-14 1.95012e-14 1.43332e-14 8.87453e-15 3.04448e-15 -7.23651e-14 -7.10429e-14 -6.96743e-14 -6.82568e-14 -6.67872e-14 -6.52713e-14 -6.37202e-14 -6.21381e-14 -6.05324e-14 -5.89051e-14 -5.72695e-14 -5.56318e-14 -5.39992e-14 -5.23474e-14 -5.06853e-14 -4.90006e-14 -4.72789e-14 -4.55198e-14 -4.37179e-14 -4.18703e-14 -3.99707e-14 -3.80158e-14 -3.59994e-14 -3.39161e-14 -3.17608e-14 -2.95302e-14 -2.72192e-14 -2.48251e-14 -2.23499e-14 -1.97945e-14 -1.716e-14 -1.44342e-14 -1.15991e-14 -8.61288e-15 -5.43304e-15 -1.98312e-15 5.47711e-15 5.3589e-15 5.24187e-15 5.1303e-15 5.02708e-15 4.92963e-15 4.8345e-15 4.73898e-15 4.63903e-15 4.53307e-15 4.41708e-15 4.29033e-15 4.15365e-15 4.00865e-15 3.86066e-15 3.71193e-15 3.56721e-15 3.42606e-15 3.2893e-15 3.15371e-15 3.01818e-15 2.87946e-15 2.73695e-15 2.58884e-15 2.43569e-15 2.27639e-15 2.11185e-15 1.94026e-15 1.759e-15 1.56289e-15 1.346e-15 1.11013e-15 8.58387e-16 6.00185e-16 3.29361e-16 5.992e-17 -5.38788e-15 -5.32134e-15 -5.24636e-15 -5.16045e-15 -5.06274e-15 -4.95544e-15 -4.84072e-15 -4.72117e-15 -4.59974e-15 -4.47824e-15 -4.35885e-15 -4.24196e-15 -4.12742e-15 -4.01389e-15 -3.89946e-15 -3.78228e-15 -3.66053e-15 -3.53334e-15 -3.40017e-15 -3.26147e-15 -3.11724e-15 -2.96798e-15 -2.81271e-15 -2.65107e-15 -2.48099e-15 -2.30204e-15 -2.11276e-15 -1.91492e-15 -1.71058e-15 -1.50473e-15 -1.3011e-15 -1.09782e-15 -8.89723e-16 -6.70412e-16 -4.44596e-16 -1.94436e-16 1.12578e-13 1.10741e-13 1.0885e-13 1.06908e-13 1.04918e-13 1.02881e-13 1.00797e-13 9.86665e-14 9.64876e-14 9.42596e-14 9.19811e-14 8.96505e-14 8.72656e-14 8.48239e-14 8.2322e-14 7.97555e-14 7.71186e-14 7.44048e-14 7.16061e-14 6.87139e-14 6.57194e-14 6.26138e-14 5.93892e-14 5.60383e-14 5.25553e-14 4.89341e-14 4.51696e-14 4.12547e-14 3.71815e-14 3.2939e-14 2.85156e-14 2.38997e-14 1.90754e-14 1.40156e-14 8.67416e-15 3.0063e-15 -3.65179e-14 -3.598e-14 -3.54189e-14 -3.48336e-14 -3.42242e-14 -3.35913e-14 -3.29356e-14 -3.22582e-14 -3.15599e-14 -3.08417e-14 -3.01041e-14 -2.93476e-14 -2.85719e-14 -2.77765e-14 -2.69607e-14 -2.6123e-14 -2.52622e-14 -2.43764e-14 -2.34635e-14 -2.2521e-14 -2.15461e-14 -2.05353e-14 -1.94848e-14 -1.83905e-14 -1.72484e-14 -1.6055e-14 -1.48078e-14 -1.35061e-14 -1.215e-14 -1.07408e-14 -9.27745e-15 -7.7549e-15 -6.16626e-15 -4.50645e-15 -2.77093e-15 -9.49563e-16 -1.87027e-13 -1.84293e-13 -1.81459e-13 -1.78524e-13 -1.75488e-13 -1.72353e-13 -1.69118e-13 -1.65785e-13 -1.62352e-13 -1.58818e-13 -1.55182e-13 -1.51439e-13 -1.47582e-13 -1.43621e-13 -1.39532e-13 -1.35314e-13 -1.30958e-13 -1.26453e-13 -1.21787e-13 -1.16949e-13 -1.11924e-13 -1.067e-13 -1.01261e-13 -9.55935e-14 -8.96846e-14 -8.35217e-14 -7.70937e-14 -7.03911e-14 -6.34048e-14 -5.6125e-14 -4.85372e-14 -4.06204e-14 -3.23481e-14 -2.36878e-14 -1.45944e-14 -5.017e-15 2.28045e-14 2.24643e-14 2.21138e-14 2.17544e-14 2.13868e-14 2.10118e-14 2.06297e-14 2.02403e-14 1.98434e-14 1.94381e-14 1.90235e-14 1.85978e-14 1.81596e-14 1.77066e-14 1.72368e-14 1.67479e-14 1.62375e-14 1.57037e-14 1.51445e-14 1.45584e-14 1.39443e-14 1.33018e-14 1.26305e-14 1.19307e-14 1.12025e-14 1.04458e-14 9.65989e-15 8.84287e-15 7.99194e-15 7.10384e-15 6.17614e-15 5.20661e-15 4.19008e-15 3.11706e-15 1.98113e-15 7.44753e-16 -1.87209e-13 -1.84688e-13 -1.82062e-13 -1.79327e-13 -1.76488e-13 -1.73541e-13 -1.70488e-13 -1.67324e-13 -1.64048e-13 -1.60651e-13 -1.57132e-13 -1.53493e-13 -1.49739e-13 -1.45851e-13 -1.41816e-13 -1.37629e-13 -1.33285e-13 -1.28773e-13 -1.24084e-13 -1.19206e-13 -1.14126e-13 -1.08831e-13 -1.03311e-13 -9.75498e-14 -9.15369e-14 -8.52598e-14 -7.87075e-14 -7.18692e-14 -6.47343e-14 -5.72908e-14 -4.95233e-14 -4.14129e-14 -3.29384e-14 -2.40737e-14 -1.47776e-14 -5.03405e-15 2.66e-13 2.62528e-13 2.58902e-13 2.55126e-13 2.51198e-13 2.47119e-13 2.42885e-13 2.38496e-13 2.33947e-13 2.29232e-13 2.24346e-13 2.19292e-13 2.14053e-13 2.08614e-13 2.02963e-13 1.97085e-13 1.90966e-13 1.84589e-13 1.77938e-13 1.70999e-13 1.63758e-13 1.56198e-13 1.48305e-13 1.40063e-13 1.31458e-13 1.22477e-13 1.13102e-13 1.03317e-13 9.31053e-14 8.24483e-14 7.1325e-14 5.97091e-14 4.75654e-14 3.48499e-14 2.15188e-14 7.4634e-15 -2.40062e-13 -2.37049e-13 -2.33896e-13 -2.30602e-13 -2.27163e-13 -2.23577e-13 -2.1984e-13 -2.15949e-13 -2.11899e-13 -2.07686e-13 -2.03308e-13 -1.98762e-13 -1.94032e-13 -1.89111e-13 -1.83988e-13 -1.78654e-13 -1.73096e-13 -1.67304e-13 -1.61262e-13 -1.54959e-13 -1.48381e-13 -1.41515e-13 -1.34346e-13 -1.2686e-13 -1.19042e-13 -1.10879e-13 -1.02356e-13 -9.34602e-14 -8.41739e-14 -7.44826e-14 -6.43676e-14 -5.3807e-14 -4.27762e-14 -3.12456e-14 -1.91734e-14 -6.53362e-15 1.3874e-13 1.37046e-13 1.35267e-13 1.33403e-13 1.31454e-13 1.29419e-13 1.27296e-13 1.25084e-13 1.2278e-13 1.20384e-13 1.17898e-13 1.15311e-13 1.12616e-13 1.09808e-13 1.06879e-13 1.03819e-13 1.00625e-13 9.72897e-14 9.38045e-14 9.01619e-14 8.63544e-14 8.23744e-14 7.82145e-14 7.38674e-14 6.93257e-14 6.4582e-14 5.96287e-14 5.44574e-14 4.90596e-14 4.34266e-14 3.75485e-14 3.14131e-14 2.5004e-14 1.83019e-14 1.12884e-14 3.91747e-15 -1.58841e-13 -1.56969e-13 -1.55001e-13 -1.52932e-13 -1.5076e-13 -1.48484e-13 -1.46099e-13 -1.43603e-13 -1.40995e-13 -1.38274e-13 -1.35432e-13 -1.32464e-13 -1.29363e-13 -1.26125e-13 -1.22742e-13 -1.19209e-13 -1.15515e-13 -1.11656e-13 -1.07625e-13 -1.03414e-13 -9.90153e-14 -9.44198e-14 -8.96195e-14 -8.46059e-14 -7.93708e-14 -7.39059e-14 -6.8203e-14 -6.22537e-14 -5.60485e-14 -4.9577e-14 -4.28271e-14 -3.5786e-14 -2.84394e-14 -2.07706e-14 -1.27566e-14 -4.3711e-15 2.42331e-15 2.39258e-15 2.35717e-15 2.3193e-15 2.28006e-15 2.2399e-15 2.19907e-15 2.15783e-15 2.11639e-15 2.0749e-15 2.0334e-15 1.9918e-15 1.94989e-15 1.90734e-15 1.86374e-15 1.81861e-15 1.77145e-15 1.72179e-15 1.66916e-15 1.61316e-15 1.55344e-15 1.48975e-15 1.42177e-15 1.34923e-15 1.27182e-15 1.18917e-15 1.10087e-15 1.00662e-15 9.06476e-16 8.00945e-16 6.9066e-16 5.7568e-16 4.55297e-16 3.28281e-16 1.93261e-16 5.9278e-17 1.92675e-13 1.90508e-13 1.88209e-13 1.85778e-13 1.83216e-13 1.80518e-13 1.77686e-13 1.74715e-13 1.71599e-13 1.68334e-13 1.64914e-13 1.61334e-13 1.57586e-13 1.53664e-13 1.49559e-13 1.45264e-13 1.4077e-13 1.36069e-13 1.3115e-13 1.26005e-13 1.20625e-13 1.15e-13 1.09122e-13 1.02981e-13 9.65677e-14 8.98734e-14 8.28889e-14 7.56049e-14 6.80121e-14 6.01011e-14 5.18613e-14 4.32802e-14 3.43428e-14 2.50316e-14 1.53269e-14 5.21777e-15 -2.49127e-13 -2.46387e-13 -2.43481e-13 -2.40402e-13 -2.37148e-13 -2.33713e-13 -2.30092e-13 -2.26281e-13 -2.22274e-13 -2.18064e-13 -2.13644e-13 -2.09006e-13 -2.04142e-13 -1.99043e-13 -1.93699e-13 -1.88102e-13 -1.82241e-13 -1.76107e-13 -1.69688e-13 -1.62975e-13 -1.55957e-13 -1.48624e-13 -1.40965e-13 -1.3297e-13 -1.24629e-13 -1.15931e-13 -1.06868e-13 -9.74273e-14 -8.75992e-14 -7.73715e-14 -6.67314e-14 -5.5665e-14 -4.4156e-14 -3.21873e-14 -1.97456e-14 -6.76817e-15 -1.86528e-14 -1.84547e-14 -1.82459e-14 -1.80235e-14 -1.77882e-14 -1.75377e-14 -1.72734e-14 -1.6993e-14 -1.66977e-14 -1.63849e-14 -1.6056e-14 -1.57085e-14 -1.53436e-14 -1.49589e-14 -1.45557e-14 -1.41317e-14 -1.36878e-14 -1.32222e-14 -1.27355e-14 -1.22262e-14 -1.16949e-14 -1.11402e-14 -1.05623e-14 -9.9599e-15 -9.33291e-15 -8.68018e-15 -8.00148e-15 -7.2958e-15 -6.56273e-15 -5.80134e-15 -5.01105e-15 -4.19099e-15 -3.33973e-15 -2.45729e-15 -1.54965e-15 -5.7467e-16 -9.36709e-14 -9.26804e-14 -9.16184e-14 -9.04924e-14 -8.92931e-14 -8.80222e-14 -8.66742e-14 -8.52515e-14 -8.37473e-14 -8.21635e-14 -8.04926e-14 -7.87345e-14 -7.68842e-14 -7.49424e-14 -7.29035e-14 -7.07667e-14 -6.85264e-14 -6.61813e-14 -6.37262e-14 -6.116e-14 -5.84781e-14 -5.56793e-14 -5.2759e-14 -4.97158e-14 -4.65454e-14 -4.32463e-14 -3.9815e-14 -3.625e-14 -3.2549e-14 -2.87104e-14 -2.47316e-14 -2.06095e-14 -1.63391e-14 -1.19173e-14 -7.34599e-15 -2.56186e-15 3.17009e-14 3.13794e-14 3.10332e-14 3.0664e-14 3.02752e-14 2.98632e-14 2.9429e-14 2.89686e-14 2.84837e-14 2.79709e-14 2.7432e-14 2.68637e-14 2.62673e-14 2.5639e-14 2.49794e-14 2.42851e-14 2.35567e-14 2.27932e-14 2.19997e-14 2.11713e-14 2.03024e-14 1.93939e-14 1.84469e-14 1.74602e-14 1.64318e-14 1.5361e-14 1.42483e-14 1.30945e-14 1.18991e-14 1.06593e-14 9.37224e-15 8.03643e-15 6.65305e-15 5.22364e-15 3.7455e-15 2.21258e-15 6.96344e-16 1.07543e-13 1.06514e-13 1.05391e-13 1.04181e-13 1.02895e-13 1.01527e-13 1.00071e-13 9.85219e-14 9.68792e-14 9.51384e-14 9.32984e-14 9.1357e-14 8.93121e-14 8.71597e-14 8.48974e-14 8.25212e-14 8.00288e-14 7.74166e-14 7.46825e-14 7.18231e-14 6.88362e-14 6.57188e-14 6.2469e-14 5.90848e-14 5.55651e-14 5.19088e-14 4.81155e-14 4.41846e-14 4.01161e-14 3.59094e-14 3.15644e-14 2.70813e-14 2.24605e-14 1.7703e-14 1.2807e-14 7.77055e-15 2.61646e-15 -9.42499e-14 -9.33085e-14 -9.23068e-14 -9.12367e-14 -9.00897e-14 -8.88657e-14 -8.75645e-14 -8.61829e-14 -8.47201e-14 -8.31723e-14 -8.15377e-14 -7.98128e-14 -7.79956e-14 -7.60831e-14 -7.40728e-14 -7.19624e-14 -6.97491e-14 -6.74311e-14 -6.50052e-14 -6.24707e-14 -5.98241e-14 -5.70657e-14 -5.41921e-14 -5.12043e-14 -4.80995e-14 -4.48793e-14 -4.1542e-14 -3.80899e-14 -3.45225e-14 -3.08431e-14 -2.70525e-14 -2.31552e-14 -1.9154e-14 -1.50534e-14 -1.08559e-14 -6.56434e-15 -2.20209e-15 -3.46945e-14 -3.43759e-14 -3.40305e-14 -3.36583e-14 -3.3258e-14 -3.28283e-14 -3.23702e-14 -3.18825e-14 -3.13657e-14 -3.08186e-14 -3.02413e-14 -2.96319e-14 -2.89894e-14 -2.83128e-14 -2.76014e-14 -2.68543e-14 -2.60703e-14 -2.52491e-14 -2.43892e-14 -2.34907e-14 -2.25519e-14 -2.15735e-14 -2.05538e-14 -1.94937e-14 -1.83918e-14 -1.72493e-14 -1.6065e-14 -1.48409e-14 -1.35765e-14 -1.22741e-14 -1.0934e-14 -9.55923e-15 -8.15113e-15 -6.71378e-15 -5.24998e-15 -3.76315e-15 -2.25271e-15 -7.38553e-16 7.85797e-14 7.78975e-14 7.71514e-14 7.63399e-14 7.54622e-14 7.45174e-14 7.35031e-14 7.24176e-14 7.12583e-14 7.00237e-14 6.87112e-14 6.73192e-14 6.58451e-14 6.42873e-14 6.26434e-14 6.09119e-14 5.90908e-14 5.71786e-14 5.51731e-14 5.30768e-14 5.08858e-14 4.86008e-14 4.62226e-14 4.37518e-14 4.11905e-14 3.85404e-14 3.5805e-14 3.29874e-14 3.00925e-14 2.71248e-14 2.40907e-14 2.09967e-14 1.78508e-14 1.46611e-14 1.14372e-14 8.18879e-15 4.93029e-15 1.65901e-15 -5.21585e-14 -5.16869e-14 -5.11724e-14 -5.06142e-14 -5.00112e-14 -4.93611e-14 -4.86654e-14 -4.79205e-14 -4.71255e-14 -4.62787e-14 -4.53791e-14 -4.44252e-14 -4.34159e-14 -4.23499e-14 -4.12261e-14 -4.00434e-14 -3.88008e-14 -3.74976e-14 -3.6133e-14 -3.47066e-14 -3.32182e-14 -3.16681e-14 -3.00566e-14 -2.8385e-14 -2.66543e-14 -2.48672e-14 -2.3026e-14 -2.1135e-14 -1.91981e-14 -1.72216e-14 -1.52112e-14 -1.31746e-14 -1.11196e-14 -9.05562e-15 -6.99258e-15 -4.94154e-15 -2.91159e-15 -9.34218e-16 -1.96913e-15 -1.94178e-15 -1.91332e-15 -1.88489e-15 -1.85573e-15 -1.82509e-15 -1.79305e-15 -1.75912e-15 -1.72358e-15 -1.686e-15 -1.64671e-15 -1.60539e-15 -1.56236e-15 -1.51747e-15 -1.47091e-15 -1.42265e-15 -1.37272e-15 -1.3212e-15 -1.26794e-15 -1.21312e-15 -1.15639e-15 -1.098e-15 -1.03747e-15 -9.75116e-16 -9.10399e-16 -8.43821e-16 -7.74964e-16 -7.04617e-16 -6.32627e-16 -5.59957e-16 -4.86543e-16 -4.13025e-16 -3.39369e-16 -2.66065e-16 -1.93241e-16 -1.20985e-16 -4.73614e-17 6.02113e-18 -2.72258e-15 -2.68828e-15 -2.65211e-15 -2.61529e-15 -2.57701e-15 -2.53672e-15 -2.4943e-15 -2.44942e-15 -2.40208e-15 -2.35197e-15 -2.29913e-15 -2.24334e-15 -2.18469e-15 -2.12309e-15 -2.05859e-15 -1.99119e-15 -1.92085e-15 -1.84768e-15 -1.77155e-15 -1.69262e-15 -1.61048e-15 -1.52527e-15 -1.43648e-15 -1.34453e-15 -1.24919e-15 -1.15128e-15 -1.05078e-15 -9.48685e-16 -8.45173e-16 -7.41406e-16 -6.37678e-16 -5.34995e-16 -4.33807e-16 -3.35129e-16 -2.39656e-16 -1.48003e-16 -6.01382e-17 2.28608e-18 -1.09578e-14 -1.085e-14 -1.0734e-14 -1.06096e-14 -1.04749e-14 -1.03296e-14 -1.01731e-14 -1.00053e-14 -9.82547e-15 -9.63309e-15 -9.42752e-15 -9.20831e-15 -8.97501e-15 -8.72749e-15 -8.46542e-15 -8.1888e-15 -7.89738e-15 -7.59157e-15 -7.27141e-15 -6.93711e-15 -6.58786e-15 -6.22301e-15 -5.84183e-15 -5.44499e-15 -5.03391e-15 -4.61138e-15 -4.17963e-15 -3.74169e-15 -3.29992e-15 -2.85821e-15 -2.42034e-15 -1.99163e-15 -1.57785e-15 -1.18624e-15 -8.24757e-16 -5.02672e-16 -2.31139e-16 -3.76388e-17 2.00701e-14 1.98938e-14 1.96971e-14 1.94805e-14 1.92432e-14 1.89848e-14 1.87043e-14 1.84011e-14 1.80742e-14 1.77231e-14 1.73466e-14 1.69442e-14 1.65146e-14 1.60567e-14 1.55694e-14 1.50515e-14 1.45018e-14 1.39195e-14 1.33038e-14 1.26548e-14 1.1972e-14 1.12533e-14 1.05038e-14 9.72514e-15 8.92042e-15 8.09259e-15 7.24666e-15 6.38825e-15 5.525e-15 4.66546e-15 3.82107e-15 3.00565e-15 2.23595e-15 1.53336e-15 9.22666e-16 4.33626e-16 1.00631e-16 -3.38176e-17 -9.24388e-15 -9.16289e-15 -9.07333e-15 -8.97409e-15 -8.86474e-15 -8.74479e-15 -8.61379e-15 -8.47132e-15 -8.31671e-15 -8.14936e-15 -7.96858e-15 -7.77376e-15 -7.56429e-15 -7.33961e-15 -7.09917e-15 -6.84249e-15 -6.56911e-15 -6.27864e-15 -5.97068e-15 -5.64498e-15 -5.30136e-15 -4.93995e-15 -4.56096e-15 -4.16517e-15 -3.75359e-15 -3.32808e-15 -2.89106e-15 -2.44614e-15 -1.998e-15 -1.55315e-15 -1.11986e-15 -7.09136e-16 -3.35041e-16 -1.55368e-17 2.27149e-16 3.64837e-16 3.6106e-16 1.7752e-16 1.66581e-16 1.61815e-16 1.58633e-16 1.54655e-16 1.51194e-16 1.47623e-16 1.45027e-16 1.42363e-16 1.40408e-16 1.38095e-16 1.36163e-16 1.33672e-16 1.31321e-16 1.28234e-16 1.2505e-16 1.20977e-16 1.16579e-16 1.1148e-16 1.07095e-16 1.01511e-16 9.5023e-17 8.71585e-17 7.82424e-17 6.78688e-17 5.64061e-17 4.35587e-17 2.97566e-17 1.48433e-17 -6.81399e-19 -1.67943e-17 -3.28846e-17 -4.8632e-17 -6.30833e-17 -7.51173e-17 -8.24749e-17 -8.24488e-17 -7.03375e-17 -3.46563e-17 ) ; } side2 { type cyclic; value nonuniform List<scalar> 1663 ( 8.57153e-16 9.13616e-16 4.57753e-16 5.51746e-16 -1.0278e-16 5.59356e-16 -5.53275e-16 5.57586e-16 -3.94251e-16 5.88e-16 2.88464e-16 4.36554e-15 4.29423e-15 3.30568e-15 2.94861e-15 2.4007e-15 2.0337e-15 1.19457e-15 7.76145e-16 -2.28038e-16 -6.64544e-16 -9.32529e-16 -8.59195e-15 -9.61641e-15 -7.57486e-15 -6.5081e-15 -7.07342e-15 -4.86907e-15 -6.23193e-15 -2.0846e-15 -2.45176e-15 6.72297e-16 3.14628e-15 1.92077e-15 3.72007e-15 3.97754e-15 5.31199e-15 6.12332e-15 6.61398e-15 7.85383e-15 8.30352e-15 7.67188e-15 7.39862e-15 5.91473e-15 5.57051e-15 4.2827e-15 3.32102e-15 2.30604e-15 2.29033e-15 1.58562e-15 1.51608e-15 9.47588e-16 6.04436e-16 5.1965e-16 1.6179e-16 -1.22429e-16 -5.24553e-16 -4.56996e-16 -6.27269e-15 -7.13044e-15 -6.09844e-15 -5.64068e-15 -5.31849e-15 -3.7727e-15 -4.42503e-15 -2.7749e-15 -2.80749e-15 -1.33356e-15 1.84318e-16 -5.47419e-17 1.15267e-15 2.17029e-15 3.43472e-15 4.00096e-15 4.28464e-15 4.85029e-15 5.33751e-15 4.99554e-15 4.80576e-15 4.17497e-15 3.60694e-15 2.91286e-15 2.46813e-15 2.07254e-15 1.56858e-15 1.49682e-15 1.21083e-15 7.63416e-16 4.89216e-16 2.12407e-16 -4.41279e-17 -2.2476e-16 -3.30274e-16 -9.94303e-17 8.54456e-16 5.03751e-16 1.00085e-15 8.92401e-16 1.4526e-15 1.57629e-15 1.91589e-15 2.90624e-15 3.64422e-15 3.52657e-15 3.42125e-15 3.74265e-15 3.13244e-15 3.19133e-15 3.21665e-15 3.27836e-15 3.45187e-15 3.43611e-15 3.79214e-15 3.23852e-15 2.59553e-15 2.2454e-15 1.50357e-15 1.04512e-15 1.43825e-15 1.02756e-15 6.56902e-16 3.83853e-16 -4.88526e-17 -8.55769e-17 2.48336e-17 -1.68056e-16 -1.10329e-16 -1.17466e-16 -4.72086e-17 -2.58233e-17 -2.10445e-14 -2.01995e-14 -1.91255e-14 -1.79448e-14 -1.64056e-14 -1.56534e-14 -1.36447e-14 -1.29218e-14 -1.10547e-14 -9.81755e-15 -8.5501e-15 -7.0458e-15 -5.94198e-15 -3.61276e-15 -2.80579e-15 -1.51887e-15 -4.2752e-16 -3.27586e-16 9.52008e-16 9.85657e-16 8.38634e-16 1.04944e-15 5.08636e-16 1.7866e-16 1.85015e-16 -3.0225e-16 -7.27765e-16 -6.27748e-16 -1.09503e-15 -1.05666e-15 -9.4179e-16 -1.15787e-15 -1.06388e-15 -1.27862e-15 -1.25151e-15 -7.8487e-16 -5.64943e-15 -5.02481e-15 -4.61222e-15 -4.16405e-15 -3.69271e-15 -3.82411e-15 -2.87004e-15 -3.31985e-15 -2.7487e-15 -2.46699e-15 -2.18714e-15 -1.23751e-15 -9.89278e-16 1.71539e-17 -9.43323e-17 2.3002e-16 5.71551e-16 1.37462e-16 8.52677e-16 6.87793e-16 5.64528e-16 9.35775e-16 7.2886e-16 4.07169e-16 3.00623e-16 -1.35269e-17 -2.3978e-16 -7.09852e-17 -2.90305e-16 -3.26416e-16 -3.25464e-16 -4.89538e-16 -3.94668e-16 -6.17184e-16 -4.03646e-16 -2.33964e-16 3.16697e-14 3.10268e-14 3.00684e-14 2.89842e-14 2.76121e-14 2.58954e-14 2.45902e-14 2.27496e-14 2.12072e-14 1.979e-14 1.82622e-14 1.71941e-14 1.58625e-14 1.45141e-14 1.29957e-14 1.1726e-14 1.06589e-14 9.39327e-15 8.80836e-15 7.95227e-15 7.27851e-15 6.98874e-15 6.64265e-15 6.1804e-15 5.79813e-15 5.43766e-15 4.95806e-15 4.59879e-15 4.10994e-15 3.59453e-15 3.12631e-15 2.65206e-15 2.35782e-15 1.8816e-15 1.63316e-15 7.50212e-16 -3.7383e-14 -3.60335e-14 -3.46882e-14 -3.32899e-14 -3.19875e-14 -3.05244e-14 -2.89632e-14 -2.71234e-14 -2.54047e-14 -2.35019e-14 -2.14811e-14 -1.96447e-14 -1.77114e-14 -1.62821e-14 -1.47862e-14 -1.33867e-14 -1.20816e-14 -1.09952e-14 -9.94959e-15 -9.3105e-15 -8.79016e-15 -8.413e-15 -7.96837e-15 -7.65229e-15 -7.38965e-15 -6.96297e-15 -6.6716e-15 -6.25682e-15 -5.75081e-15 -5.21727e-15 -4.66556e-15 -4.09571e-15 -3.56263e-15 -3.0935e-15 -2.30635e-15 -1.1982e-15 1.33228e-14 1.30599e-14 1.26956e-14 1.23207e-14 1.17388e-14 1.14184e-14 1.0856e-14 1.06867e-14 1.02036e-14 9.82268e-15 9.45908e-15 8.73784e-15 8.36388e-15 7.58441e-15 7.10939e-15 6.66499e-15 6.28898e-15 5.97972e-15 5.69541e-15 5.26896e-15 4.9041e-15 4.41821e-15 4.16948e-15 3.90193e-15 3.58962e-15 3.39255e-15 3.02607e-15 2.69309e-15 2.3782e-15 2.08057e-15 1.76906e-15 1.5214e-15 1.24942e-15 9.28523e-16 6.10535e-16 1.77585e-16 -7.76794e-15 -7.44573e-15 -7.17117e-15 -6.80237e-15 -6.59754e-15 -6.05154e-15 -5.76584e-15 -5.15334e-15 -4.7699e-15 -4.41034e-15 -4.00124e-15 -3.95932e-15 -3.62101e-15 -3.56182e-15 -3.29589e-15 -3.03777e-15 -2.77532e-15 -2.51748e-15 -2.29639e-15 -2.2461e-15 -2.17159e-15 -2.26093e-15 -2.16834e-15 -2.10772e-15 -2.04487e-15 -1.91126e-15 -1.86571e-15 -1.75042e-15 -1.64287e-15 -1.46303e-15 -1.33794e-15 -1.1316e-15 -9.76813e-16 -7.88453e-16 -5.66266e-16 -2.35694e-16 -1.24622e-14 -1.20379e-14 -1.16396e-14 -1.11131e-14 -1.07178e-14 -1.00445e-14 -9.57603e-15 -8.93415e-15 -8.42028e-15 -8.00661e-15 -7.53489e-15 -7.30211e-15 -6.90909e-15 -6.64172e-15 -6.26474e-15 -5.8827e-15 -5.50737e-15 -5.16045e-15 -4.84045e-15 -4.66615e-15 -4.46273e-15 -4.39488e-15 -4.1901e-15 -4.03198e-15 -3.82573e-15 -3.59428e-15 -3.3867e-15 -3.10892e-15 -2.85581e-15 -2.51538e-15 -2.24478e-15 -1.88755e-15 -1.59223e-15 -1.22184e-15 -8.42864e-16 -3.03053e-16 -6.34181e-15 -6.08753e-15 -5.84834e-15 -5.51058e-15 -5.26825e-15 -4.86804e-15 -4.60266e-15 -4.28873e-15 -4.03334e-15 -3.87595e-15 -3.67404e-15 -3.59819e-15 -3.4461e-15 -3.31296e-15 -3.14596e-15 -2.95191e-15 -2.77487e-15 -2.62335e-15 -2.48093e-15 -2.43853e-15 -2.36334e-15 -2.38095e-15 -2.30023e-15 -2.26696e-15 -2.17048e-15 -2.07335e-15 -1.96346e-15 -1.80142e-15 -1.66159e-15 -1.45015e-15 -1.30028e-15 -1.0793e-15 -9.11142e-16 -6.70647e-16 -4.65465e-16 -1.5215e-16 -8.95045e-14 -8.72717e-14 -8.4949e-14 -8.2475e-14 -7.9973e-14 -7.73323e-14 -7.47028e-14 -7.20406e-14 -6.93672e-14 -6.67488e-14 -6.41218e-14 -6.15594e-14 -5.89508e-14 -5.63687e-14 -5.38727e-14 -5.141e-14 -4.9048e-14 -4.67749e-14 -4.45799e-14 -4.25049e-14 -4.04472e-14 -3.84689e-14 -3.64225e-14 -3.43876e-14 -3.22458e-14 -3.0045e-14 -2.77367e-14 -2.5316e-14 -2.28254e-14 -2.02212e-14 -1.75938e-14 -1.48596e-14 -1.20713e-14 -9.08662e-15 -5.88819e-15 -2.17956e-15 4.47843e-14 4.38376e-14 4.28531e-14 4.18583e-14 4.07972e-14 3.97152e-14 3.85699e-14 3.73681e-14 3.61443e-14 3.48689e-14 3.36098e-14 3.23717e-14 3.11099e-14 2.99187e-14 2.87252e-14 2.75809e-14 2.64235e-14 2.52753e-14 2.41249e-14 2.29478e-14 2.17836e-14 2.05808e-14 1.94022e-14 1.81773e-14 1.69642e-14 1.5709e-14 1.44428e-14 1.31511e-14 1.18215e-14 1.04778e-14 9.08509e-15 7.67954e-15 6.21465e-15 4.69912e-15 3.00983e-15 1.14166e-15 4.37742e-14 4.2885e-14 4.19657e-14 4.10213e-14 4.00258e-14 3.89926e-14 3.79197e-14 3.67984e-14 3.56633e-14 3.45e-14 3.33476e-14 3.22109e-14 3.10993e-14 2.99991e-14 2.89064e-14 2.78353e-14 2.6735e-14 2.56278e-14 2.45014e-14 2.33536e-14 2.21959e-14 2.10072e-14 1.98167e-14 1.85868e-14 1.73491e-14 1.60726e-14 1.47795e-14 1.34541e-14 1.2098e-14 1.07159e-14 9.29999e-15 7.8542e-15 6.35666e-15 4.78652e-15 3.05929e-15 1.1521e-15 5.66592e-14 5.55405e-14 5.43887e-14 5.3188e-14 5.19288e-14 5.06207e-14 4.92834e-14 4.79085e-14 4.65178e-14 4.51063e-14 4.37017e-14 4.2316e-14 4.09443e-14 3.96149e-14 3.82847e-14 3.69251e-14 3.55314e-14 3.41198e-14 3.26742e-14 3.12178e-14 2.97236e-14 2.81988e-14 2.66472e-14 2.50473e-14 2.3406e-14 2.17147e-14 1.99844e-14 1.82046e-14 1.63826e-14 1.4518e-14 1.26116e-14 1.06503e-14 8.60903e-15 6.45224e-15 4.11194e-15 1.53428e-15 -1.44641e-13 -1.41788e-13 -1.38843e-13 -1.35822e-13 -1.32741e-13 -1.29605e-13 -1.26398e-13 -1.23133e-13 -1.1982e-13 -1.16489e-13 -1.13094e-13 -1.09644e-13 -1.06135e-13 -1.02593e-13 -9.90444e-14 -9.54917e-14 -9.19529e-14 -8.84024e-14 -8.48126e-14 -8.11824e-14 -7.74942e-14 -7.3723e-14 -6.98451e-14 -6.58443e-14 -6.1697e-14 -5.73869e-14 -5.29083e-14 -4.82603e-14 -4.34212e-14 -3.84008e-14 -3.32064e-14 -2.7818e-14 -2.22045e-14 -1.63352e-14 -1.01302e-14 -3.49025e-15 -6.77522e-14 -6.64686e-14 -6.51494e-14 -6.38015e-14 -6.24325e-14 -6.10423e-14 -5.96251e-14 -5.81831e-14 -5.67144e-14 -5.52229e-14 -5.37e-14 -5.21435e-14 -5.05651e-14 -4.89416e-14 -4.73113e-14 -4.56672e-14 -4.40178e-14 -4.23555e-14 -4.06752e-14 -3.89672e-14 -3.7224e-14 -3.5434e-14 -3.35885e-14 -3.16787e-14 -2.96973e-14 -2.76373e-14 -2.54963e-14 -2.32719e-14 -2.09585e-14 -1.85512e-14 -1.6041e-14 -1.3425e-14 -1.06927e-14 -7.83771e-15 -4.82856e-15 -1.63542e-15 9.82786e-15 9.67504e-15 9.51261e-15 9.33665e-15 9.1447e-15 8.9398e-15 8.72583e-15 8.50598e-15 8.28472e-15 8.06401e-15 7.84816e-15 7.63811e-15 7.43309e-15 7.23137e-15 7.02732e-15 6.81822e-15 6.59857e-15 6.36791e-15 6.12431e-15 5.8697e-15 5.60381e-15 5.32842e-15 5.04272e-15 4.74715e-15 4.43994e-15 4.12117e-15 3.78915e-15 3.44505e-15 3.09097e-15 2.73145e-15 2.37142e-15 2.00738e-15 1.63329e-15 1.23512e-15 8.12121e-16 3.40521e-16 -1.35907e-15 -1.31173e-15 -1.26924e-15 -1.23423e-15 -1.20771e-15 -1.18764e-15 -1.17197e-15 -1.15825e-15 -1.14363e-15 -1.1264e-15 -1.10444e-15 -1.07735e-15 -1.04524e-15 -1.00933e-15 -9.71338e-16 -9.32844e-16 -8.9535e-16 -8.59298e-16 -8.24763e-16 -7.9076e-16 -7.5673e-16 -7.21591e-16 -6.85742e-16 -6.49013e-16 -6.12983e-16 -5.77654e-16 -5.44134e-16 -5.10353e-16 -4.73966e-16 -4.29637e-16 -3.7316e-16 -3.05629e-16 -2.31006e-16 -1.53881e-16 -6.69103e-17 1.57228e-17 1.163e-13 1.14451e-13 1.12536e-13 1.10557e-13 1.08512e-13 1.06407e-13 1.04243e-13 1.02023e-13 9.97498e-14 9.74256e-14 9.50512e-14 9.26262e-14 9.0149e-14 8.76166e-14 8.50246e-14 8.23677e-14 7.96394e-14 7.68328e-14 7.394e-14 7.09525e-14 6.78616e-14 6.46578e-14 6.13312e-14 5.78721e-14 5.42711e-14 5.05203e-14 4.66126e-14 4.25439e-14 3.83108e-14 3.39111e-14 2.93387e-14 2.45793e-14 1.96108e-14 1.44049e-14 8.92992e-15 3.12473e-15 -3.31216e-14 -3.25877e-14 -3.20407e-14 -3.14824e-14 -3.09137e-14 -3.03345e-14 -2.97447e-14 -2.91436e-14 -2.85303e-14 -2.79035e-14 -2.72621e-14 -2.66046e-14 -2.59296e-14 -2.52356e-14 -2.45207e-14 -2.37831e-14 -2.30204e-14 -2.22304e-14 -2.14103e-14 -2.0558e-14 -1.96711e-14 -1.87479e-14 -1.77873e-14 -1.67885e-14 -1.5751e-14 -1.46741e-14 -1.35566e-14 -1.23955e-14 -1.1187e-14 -9.92522e-15 -8.60573e-15 -7.22581e-15 -5.78147e-15 -4.26257e-15 -2.65287e-15 -9.34577e-16 -1.83918e-13 -1.81187e-13 -1.78363e-13 -1.75447e-13 -1.72442e-13 -1.6935e-13 -1.66171e-13 -1.62904e-13 -1.59548e-13 -1.56101e-13 -1.52558e-13 -1.48916e-13 -1.45162e-13 -1.41306e-13 -1.37324e-13 -1.3321e-13 -1.28954e-13 -1.24545e-13 -1.19971e-13 -1.15219e-13 -1.10276e-13 -1.05132e-13 -9.97747e-14 -9.41937e-14 -8.83793e-14 -8.23221e-14 -7.60122e-14 -6.94389e-14 -6.25895e-14 -5.54493e-14 -4.8002e-14 -4.02282e-14 -3.21001e-14 -2.35764e-14 -1.46044e-14 -5.09831e-15 2.564e-14 2.52961e-14 2.49365e-14 2.45602e-14 2.41664e-14 2.37547e-14 2.33246e-14 2.28759e-14 2.24084e-14 2.19223e-14 2.14178e-14 2.0895e-14 2.03544e-14 1.97962e-14 1.92205e-14 1.86273e-14 1.80162e-14 1.73867e-14 1.67375e-14 1.60671e-14 1.53734e-14 1.46538e-14 1.39052e-14 1.31245e-14 1.23085e-14 1.14545e-14 1.05605e-14 9.62563e-15 8.64967e-15 7.63259e-15 6.57278e-15 5.46735e-15 4.31479e-15 3.11583e-15 1.86549e-15 5.86373e-16 -1.84612e-13 -1.82104e-13 -1.79491e-13 -1.76774e-13 -1.73959e-13 -1.71047e-13 -1.68037e-13 -1.64926e-13 -1.61715e-13 -1.58392e-13 -1.54956e-13 -1.51408e-13 -1.4775e-13 -1.43962e-13 -1.40028e-13 -1.35942e-13 -1.31694e-13 -1.27275e-13 -1.22672e-13 -1.17875e-13 -1.12872e-13 -1.07652e-13 -1.02205e-13 -9.65205e-14 -9.05895e-14 -8.44021e-14 -7.79481e-14 -7.12164e-14 -6.41944e-14 -5.68683e-14 -4.92226e-14 -4.12382e-14 -3.28886e-14 -2.41381e-14 -1.49494e-14 -5.23027e-15 2.6835e-13 2.64861e-13 2.6122e-13 2.57426e-13 2.53475e-13 2.49366e-13 2.45095e-13 2.4066e-13 2.36055e-13 2.31276e-13 2.26317e-13 2.21182e-13 2.15856e-13 2.10327e-13 2.04583e-13 1.98612e-13 1.92402e-13 1.85939e-13 1.79205e-13 1.72188e-13 1.64872e-13 1.5724e-13 1.49275e-13 1.4096e-13 1.32278e-13 1.23214e-13 1.13751e-13 1.03872e-13 9.35605e-14 8.28004e-14 7.15697e-14 5.98425e-14 4.75893e-14 3.47741e-14 2.13453e-14 7.27219e-15 -2.37977e-13 -2.3498e-13 -2.3184e-13 -2.28561e-13 -2.25141e-13 -2.21578e-13 -2.17872e-13 -2.14019e-13 -2.10015e-13 -2.05855e-13 -2.0154e-13 -1.97062e-13 -1.92407e-13 -1.87565e-13 -1.82524e-13 -1.77273e-13 -1.71797e-13 -1.66085e-13 -1.6012e-13 -1.53891e-13 -1.47384e-13 -1.40587e-13 -1.33487e-13 -1.2607e-13 -1.18323e-13 -1.10234e-13 -1.01789e-13 -9.29746e-14 -8.37717e-14 -7.41665e-14 -6.41411e-14 -5.36734e-14 -4.27337e-14 -3.12869e-14 -1.92996e-14 -6.68114e-15 1.40547e-13 1.38843e-13 1.37056e-13 1.35183e-13 1.33221e-13 1.31169e-13 1.29024e-13 1.26784e-13 1.24445e-13 1.22007e-13 1.19472e-13 1.16828e-13 1.14073e-13 1.11199e-13 1.08201e-13 1.05071e-13 1.01805e-13 9.83988e-14 9.48441e-14 9.11339e-14 8.72605e-14 8.3216e-14 7.89923e-14 7.45814e-14 6.99752e-14 6.5166e-14 6.0146e-14 5.49074e-14 4.94419e-14 4.37397e-14 3.77898e-14 3.158e-14 2.50975e-14 1.83266e-14 1.12426e-14 3.83837e-15 -1.57301e-13 -1.55438e-13 -1.53474e-13 -1.51411e-13 -1.49247e-13 -1.46982e-13 -1.44613e-13 -1.42138e-13 -1.39555e-13 -1.36866e-13 -1.34062e-13 -1.31136e-13 -1.28084e-13 -1.24898e-13 -1.21572e-13 -1.18098e-13 -1.14464e-13 -1.10666e-13 -1.06696e-13 -1.02545e-13 -9.82048e-14 -9.36676e-14 -8.89249e-14 -8.39684e-14 -7.87898e-14 -7.33809e-14 -6.77329e-14 -6.1837e-14 -5.56842e-14 -4.92651e-14 -4.25694e-14 -3.55845e-14 -2.82944e-14 -2.06798e-14 -1.27203e-14 -4.38032e-15 3.68558e-15 3.64604e-15 3.60723e-15 3.56691e-15 3.52391e-15 3.47774e-15 3.42801e-15 3.37436e-15 3.31645e-15 3.25398e-15 3.18674e-15 3.11462e-15 3.03763e-15 2.95587e-15 2.86949e-15 2.77873e-15 2.6838e-15 2.5849e-15 2.4822e-15 2.3758e-15 2.26575e-15 2.15201e-15 2.03457e-15 1.91342e-15 1.78854e-15 1.66002e-15 1.52796e-15 1.39234e-15 1.25277e-15 1.1084e-15 9.58177e-16 8.01605e-16 6.38862e-16 4.7056e-16 2.97322e-16 1.09192e-16 1.93641e-13 1.91468e-13 1.89169e-13 1.8674e-13 1.84179e-13 1.81481e-13 1.78647e-13 1.75671e-13 1.72547e-13 1.6927e-13 1.65835e-13 1.62235e-13 1.58464e-13 1.54515e-13 1.5038e-13 1.46051e-13 1.41521e-13 1.36782e-13 1.31824e-13 1.26639e-13 1.21219e-13 1.15554e-13 1.09636e-13 1.03456e-13 9.70061e-14 9.02768e-14 8.32598e-14 7.59459e-14 6.83255e-14 6.03876e-14 5.21204e-14 4.3511e-14 3.45448e-14 2.5206e-14 1.54812e-14 5.31559e-15 -2.48461e-13 -2.45722e-13 -2.42813e-13 -2.3973e-13 -2.36471e-13 -2.33032e-13 -2.29409e-13 -2.25598e-13 -2.21593e-13 -2.17387e-13 -2.12974e-13 -2.08346e-13 -2.03496e-13 -1.98414e-13 -1.9309e-13 -1.87515e-13 -1.81679e-13 -1.75571e-13 -1.69179e-13 -1.62494e-13 -1.55505e-13 -1.48199e-13 -1.40567e-13 -1.32598e-13 -1.24281e-13 -1.15607e-13 -1.06563e-13 -9.71413e-14 -8.73299e-14 -7.71181e-14 -6.64939e-14 -5.54432e-14 -4.39498e-14 -3.19941e-14 -1.95525e-14 -6.62999e-15 1.28462e-13 1.27076e-13 1.25601e-13 1.24033e-13 1.22373e-13 1.20614e-13 1.18758e-13 1.16799e-13 1.14735e-13 1.12563e-13 1.10279e-13 1.07879e-13 1.05359e-13 1.02714e-13 9.99405e-14 9.70332e-14 9.39884e-14 9.07999e-14 8.74643e-14 8.39756e-14 8.03302e-14 7.65225e-14 7.25484e-14 6.84027e-14 6.40813e-14 5.95792e-14 5.48922e-14 5.00155e-14 4.49449e-14 3.96751e-14 3.42012e-14 2.85174e-14 2.26164e-14 1.64915e-14 1.01408e-14 3.51203e-15 -9.88072e-14 -9.77353e-14 -9.65937e-14 -9.5385e-14 -9.41044e-14 -9.2747e-14 -9.13121e-14 -8.97958e-14 -8.81978e-14 -8.65149e-14 -8.47446e-14 -8.2882e-14 -8.09275e-14 -7.88751e-14 -7.6724e-14 -7.44682e-14 -7.21067e-14 -6.9634e-14 -6.70483e-14 -6.43441e-14 -6.15194e-14 -5.8569e-14 -5.5491e-14 -5.22813e-14 -4.89381e-14 -4.54578e-14 -4.18384e-14 -3.80764e-14 -3.41691e-14 -3.01128e-14 -2.59047e-14 -2.15414e-14 -1.7021e-14 -1.23379e-14 -7.47988e-15 -2.49714e-15 -9.36687e-14 -9.27428e-14 -9.17467e-14 -9.06815e-14 -8.95496e-14 -8.83466e-14 -8.70721e-14 -8.57211e-14 -8.42939e-14 -8.27857e-14 -8.11967e-14 -7.9522e-14 -7.7761e-14 -7.59082e-14 -7.39625e-14 -7.19183e-14 -6.97742e-14 -6.75265e-14 -6.51732e-14 -6.27126e-14 -6.01506e-14 -5.7476e-14 -5.4684e-14 -5.17692e-14 -4.87329e-14 -4.5573e-14 -4.22889e-14 -3.88803e-14 -3.53455e-14 -3.16811e-14 -2.78834e-14 -2.39499e-14 -1.98808e-14 -1.56765e-14 -1.13328e-14 -6.84165e-15 -2.272e-15 1.08387e-13 1.07331e-13 1.06192e-13 1.0497e-13 1.03668e-13 1.02284e-13 1.0081e-13 9.92453e-14 9.7587e-14 9.58317e-14 9.39767e-14 9.20207e-14 8.99602e-14 8.77927e-14 8.55148e-14 8.3124e-14 8.06165e-14 7.79898e-14 7.52402e-14 7.23651e-14 6.93617e-14 6.6228e-14 6.29614e-14 5.95603e-14 5.60224e-14 5.23465e-14 4.85312e-14 4.45758e-14 4.04802e-14 3.62448e-14 3.18703e-14 2.73576e-14 2.27069e-14 1.79182e-14 1.29931e-14 7.93267e-15 2.71166e-15 -9.34591e-14 -9.25825e-14 -9.16292e-14 -9.05985e-14 -8.94867e-14 -8.82962e-14 -8.70238e-14 -8.56685e-14 -8.42271e-14 -8.26987e-14 -8.10804e-14 -7.93709e-14 -7.75674e-14 -7.56677e-14 -7.36692e-14 -7.15694e-14 -6.93663e-14 -6.70569e-14 -6.46401e-14 -6.21129e-14 -5.9475e-14 -5.67235e-14 -5.38593e-14 -5.08801e-14 -4.77877e-14 -4.45808e-14 -4.12621e-14 -3.78311e-14 -3.42912e-14 -3.06427e-14 -2.68893e-14 -2.30317e-14 -1.90728e-14 -1.50139e-14 -1.08585e-14 -6.60949e-15 -2.24849e-15 4.58026e-14 4.53864e-14 4.49346e-14 4.44472e-14 4.39228e-14 4.33596e-14 4.27585e-14 4.21183e-14 4.1439e-14 4.07193e-14 3.99588e-14 3.91555e-14 3.83082e-14 3.74155e-14 3.64763e-14 3.54897e-14 3.4454e-14 3.33687e-14 3.22321e-14 3.10441e-14 2.98029e-14 2.8509e-14 2.71606e-14 2.57587e-14 2.43018e-14 2.27912e-14 2.12261e-14 1.96084e-14 1.79381e-14 1.6218e-14 1.44488e-14 1.2634e-14 1.07757e-14 8.87874e-15 6.94658e-15 4.98347e-15 2.98969e-15 9.86002e-16 1.04122e-14 1.03105e-14 1.0201e-14 1.00839e-14 9.95808e-15 9.82277e-15 9.67849e-15 9.52485e-15 9.3624e-15 9.19042e-15 9.0094e-15 8.81852e-15 8.6181e-15 8.40757e-15 8.18705e-15 7.95617e-15 7.71476e-15 7.46267e-15 7.19855e-15 6.92516e-15 6.63924e-15 6.34199e-15 6.03269e-15 5.7118e-15 5.37855e-15 5.03357e-15 4.6763e-15 4.3077e-15 3.92766e-15 3.53753e-15 3.13767e-15 2.72948e-15 2.31376e-15 1.89219e-15 1.46611e-15 1.03741e-15 6.03936e-16 1.81847e-16 -5.16003e-14 -5.11542e-14 -5.06637e-14 -5.01267e-14 -4.95437e-14 -4.89143e-14 -4.82392e-14 -4.75157e-14 -4.67417e-14 -4.59165e-14 -4.50381e-14 -4.41054e-14 -4.31165e-14 -4.20704e-14 -4.09653e-14 -3.98001e-14 -3.85737e-14 -3.72852e-14 -3.59341e-14 -3.45198e-14 -3.30427e-14 -3.15027e-14 -2.99012e-14 -2.82391e-14 -2.6519e-14 -2.47428e-14 -2.29144e-14 -2.10367e-14 -1.91149e-14 -1.71536e-14 -1.51595e-14 -1.31393e-14 -1.11016e-14 -9.05518e-15 -7.01054e-15 -4.97874e-15 -2.97479e-15 -9.93944e-16 -1.62033e-15 -1.61572e-15 -1.60913e-15 -1.59936e-15 -1.58707e-15 -1.57293e-15 -1.55675e-15 -1.53893e-15 -1.51908e-15 -1.49753e-15 -1.47385e-15 -1.44825e-15 -1.4203e-15 -1.39008e-15 -1.35727e-15 -1.32184e-15 -1.28369e-15 -1.24268e-15 -1.19893e-15 -1.15226e-15 -1.10302e-15 -1.05102e-15 -9.96845e-16 -9.40307e-16 -8.82136e-16 -8.2208e-16 -7.60873e-16 -6.98113e-16 -6.34419e-16 -5.69388e-16 -5.03734e-16 -4.37572e-16 -3.71804e-16 -3.06917e-16 -2.43885e-16 -1.83842e-16 -1.30081e-16 -6.25151e-17 -2.59208e-15 -2.57875e-15 -2.56258e-15 -2.54222e-15 -2.51832e-15 -2.49127e-15 -2.46105e-15 -2.42781e-15 -2.39137e-15 -2.35187e-15 -2.30909e-15 -2.26307e-15 -2.21355e-15 -2.16047e-15 -2.10361e-15 -2.04283e-15 -1.97808e-15 -1.90915e-15 -1.83615e-15 -1.75891e-15 -1.6779e-15 -1.59309e-15 -1.50523e-15 -1.41416e-15 -1.32054e-15 -1.22405e-15 -1.12539e-15 -1.02437e-15 -9.21827e-16 -8.17794e-16 -7.13399e-16 -6.09306e-16 -5.07006e-16 -4.07714e-16 -3.13288e-16 -2.25994e-16 -1.49132e-16 -6.47972e-17 7.46708e-15 7.39067e-15 7.3093e-15 7.22276e-15 7.12934e-15 7.02885e-15 6.92089e-15 6.80534e-15 6.68168e-15 6.54955e-15 6.40842e-15 6.25799e-15 6.09795e-15 5.92828e-15 5.74879e-15 5.55958e-15 5.36051e-15 5.15204e-15 4.93425e-15 4.70735e-15 4.47049e-15 4.22291e-15 3.9637e-15 3.6933e-15 3.41278e-15 3.12445e-15 2.82996e-15 2.53158e-15 2.23077e-15 1.93027e-15 1.63249e-15 1.34111e-15 1.05994e-15 7.93956e-16 5.48408e-16 3.29466e-16 1.44656e-16 1.71759e-17 9.4518e-15 9.36079e-15 9.2621e-15 9.15673e-15 9.04271e-15 8.91946e-15 8.78569e-15 8.64139e-15 8.48549e-15 8.31784e-15 8.13739e-15 7.94402e-15 7.73687e-15 7.51598e-15 7.28069e-15 7.03133e-15 6.76748e-15 6.4896e-15 6.1971e-15 5.89031e-15 5.56822e-15 5.22938e-15 4.87628e-15 4.50959e-15 4.13011e-15 3.73954e-15 3.33971e-15 2.93333e-15 2.52376e-15 2.11593e-15 1.71551e-15 1.32936e-15 9.66344e-16 6.37356e-16 3.5433e-16 1.30917e-16 -1.50784e-17 -5.04391e-17 -9.35847e-15 -9.27777e-15 -9.18823e-15 -9.08763e-15 -8.97697e-15 -8.85573e-15 -8.72425e-15 -8.58144e-15 -8.42727e-15 -8.26062e-15 -8.08135e-15 -7.88835e-15 -7.68137e-15 -7.45925e-15 -7.22166e-15 -6.96746e-15 -6.69632e-15 -6.40722e-15 -6.10003e-15 -5.77404e-15 -5.42945e-15 -5.06597e-15 -4.68434e-15 -4.285e-15 -3.86955e-15 -3.43953e-15 -2.99789e-15 -2.54793e-15 -2.09473e-15 -1.64437e-15 -1.20529e-15 -7.88036e-16 -4.065e-16 -7.81093e-17 1.74572e-16 3.23597e-16 3.33298e-16 1.63927e-16 1.38637e-16 1.41978e-16 1.4524e-16 1.46983e-16 1.47413e-16 1.46603e-16 1.4449e-16 1.41545e-16 1.37597e-16 1.32933e-16 1.27391e-16 1.21198e-16 1.14226e-16 1.06697e-16 9.85181e-17 8.9923e-17 8.07938e-17 7.18917e-17 6.36794e-17 5.53282e-17 4.64383e-17 3.73851e-17 2.77522e-17 1.78761e-17 7.34379e-18 -3.5473e-18 -1.51626e-17 -2.71854e-17 -3.98199e-17 -5.25999e-17 -6.53649e-17 -7.72564e-17 -8.74507e-17 -9.44186e-17 -9.64897e-17 -9.03897e-17 -7.10414e-17 -3.39501e-17 ) ; } procBoundary0to1 { type processor; value nonuniform List<scalar> 76 ( 9.70683e-09 9.4159e-09 9.02538e-09 8.54121e-09 7.97096e-09 7.31297e-09 6.56284e-09 5.73064e-09 4.83264e-09 3.87566e-09 2.86415e-09 1.81709e-09 7.51932e-10 -3.04979e-10 -1.30962e-09 -2.20586e-09 -2.93656e-09 -3.4582e-09 -3.75156e-09 -3.82669e-09 -3.71881e-09 -3.47814e-09 -3.15746e-09 -2.80278e-09 3.39333e-09 -2.44899e-09 4.3002e-09 -3.70266e-09 -3.23054e-09 -2.79804e-09 -2.3997e-09 -2.02509e-09 -1.65438e-09 -1.25317e-09 -7.88991e-10 -2.46205e-10 1.95531e-10 3.68732e-10 9.70683e-09 9.41591e-09 9.02538e-09 8.54121e-09 7.97097e-09 7.31297e-09 6.56284e-09 5.73065e-09 4.83264e-09 3.87566e-09 2.86415e-09 1.81709e-09 7.51932e-10 -3.04979e-10 -1.30962e-09 -2.20586e-09 -2.93656e-09 -3.4582e-09 -3.75156e-09 -3.82669e-09 -3.71881e-09 -3.47814e-09 -3.15746e-09 -2.80278e-09 3.39333e-09 -2.44899e-09 4.30021e-09 -3.70266e-09 -3.23054e-09 -2.79804e-09 -2.3997e-09 -2.02509e-09 -1.65438e-09 -1.25317e-09 -7.88991e-10 -2.46205e-10 1.95531e-10 3.68732e-10 ) ; } procBoundary0to3 { type processor; value nonuniform List<scalar> 42 ( -8.54072e-08 -8.99924e-08 -9.23337e-08 -9.17665e-08 -8.75429e-08 -7.88483e-08 -6.47586e-08 -4.43768e-08 -1.67655e-08 -6.07148e-08 -6.87438e-08 2.72602e-08 -7.59747e-08 -1.47619e-09 -8.82823e-09 -1.66034e-08 -2.47194e-08 -3.30947e-08 -4.15758e-08 3.54584e-08 -5.00223e-08 -8.5407e-08 -8.99923e-08 -9.23338e-08 -9.17665e-08 -8.75429e-08 -7.88482e-08 -6.47585e-08 -4.43768e-08 -1.67655e-08 -6.07147e-08 -6.87438e-08 2.72602e-08 -7.59747e-08 -1.47619e-09 -8.82824e-09 -1.66034e-08 -2.47195e-08 -3.30947e-08 -4.15757e-08 3.54583e-08 -5.00221e-08 ) ; } procBoundary0to4 { type processor; value nonuniform List<scalar> 52 ( 3.01694e-08 3.21026e-08 3.42324e-08 3.63699e-08 3.84105e-08 4.0288e-08 4.19669e-08 4.34133e-08 4.46132e-08 4.55429e-08 4.61868e-08 4.65242e-08 4.65286e-08 4.61837e-08 4.54547e-08 4.43194e-08 4.27494e-08 4.0716e-08 3.81939e-08 3.51586e-08 3.15908e-08 2.74726e-08 2.27941e-08 1.75505e-08 1.17441e-08 5.39525e-09 3.01694e-08 3.21026e-08 3.42324e-08 3.63699e-08 3.84105e-08 4.02881e-08 4.19669e-08 4.34133e-08 4.46131e-08 4.55429e-08 4.61868e-08 4.65243e-08 4.65286e-08 4.61837e-08 4.54545e-08 4.43192e-08 4.27494e-08 4.07161e-08 3.81939e-08 3.51586e-08 3.15908e-08 2.74726e-08 2.27941e-08 1.75505e-08 1.17441e-08 5.39525e-09 ) ; } } // ************************************************************************* //
[ "39316550+lucpaoli@users.noreply.github.com" ]
39316550+lucpaoli@users.noreply.github.com
18564244db8f213979e615a59ade290b3d8b96b0
efeed1bff9f1908b3f6d3515089ca01bb89b5074
/SGBDRasore/addCiclo.h
e362d09d816ea277238aa3afdde96588e80a286b
[]
no_license
carlosmmorera/SGBDRasore
647ca8889f5dab78c1bbb36184c4a08b09cc24ff
0810e7703cec019cca571409139430fd7d846fcf
refs/heads/master
2020-04-21T09:42:58.295803
2019-02-06T18:59:20
2019-02-06T18:59:20
169,459,692
1
0
null
null
null
null
ISO-8859-1
C++
false
false
4,845
h
#ifndef ADDCICLO_H #define ADDCICLO_H #include <iostream> #include <string> #include "BaseDatos.h" #include "errorDialog.h" namespace SGBDRasore { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; using namespace std; /// <summary> /// Resumen de addCiclo /// </summary> public ref class addCiclo : public System::Windows::Forms::Form { public: addCiclo(void) { InitializeComponent(); bd = NULL; } addCiclo(BaseDatos &base) { InitializeComponent(); bd = &base; } protected: /// <summary> /// Limpiar los recursos que se estén usando. /// </summary> ~addCiclo() { if (components) { delete components; } } private: /// <summary> /// Variable del diseñador necesaria. BaseDatos *bd; private: System::Windows::Forms::Button^ Cancelbutton; private: System::Windows::Forms::Button^ SaveButton; private: System::Windows::Forms::TextBox^ NametextBox; private: System::Windows::Forms::Label^ label1; /// </summary> System::ComponentModel::Container ^components; #pragma region Windows Form Designer generated code /// <summary> /// Método necesario para admitir el Diseñador. No se puede modificar /// el contenido de este método con el editor de código. /// </summary> void InitializeComponent(void) { System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(addCiclo::typeid)); this->Cancelbutton = (gcnew System::Windows::Forms::Button()); this->SaveButton = (gcnew System::Windows::Forms::Button()); this->NametextBox = (gcnew System::Windows::Forms::TextBox()); this->label1 = (gcnew System::Windows::Forms::Label()); this->SuspendLayout(); // // Cancelbutton // this->Cancelbutton->DialogResult = System::Windows::Forms::DialogResult::Cancel; this->Cancelbutton->Location = System::Drawing::Point(411, 105); this->Cancelbutton->Name = L"Cancelbutton"; this->Cancelbutton->Size = System::Drawing::Size(91, 32); this->Cancelbutton->TabIndex = 42; this->Cancelbutton->Text = L"Cancelar"; this->Cancelbutton->UseVisualStyleBackColor = true; this->Cancelbutton->Click += gcnew System::EventHandler(this, &addCiclo::Cancelbutton_Click); // // SaveButton // this->SaveButton->Location = System::Drawing::Point(301, 105); this->SaveButton->Name = L"SaveButton"; this->SaveButton->Size = System::Drawing::Size(92, 32); this->SaveButton->TabIndex = 41; this->SaveButton->Text = L"Guardar"; this->SaveButton->UseVisualStyleBackColor = true; this->SaveButton->Click += gcnew System::EventHandler(this, &addCiclo::SaveButton_Click); // // NametextBox // this->NametextBox->Location = System::Drawing::Point(29, 58); this->NametextBox->Name = L"NametextBox"; this->NametextBox->Size = System::Drawing::Size(464, 26); this->NametextBox->TabIndex = 40; // // label1 // this->label1->AutoSize = true; this->label1->Location = System::Drawing::Point(25, 21); this->label1->Name = L"label1"; this->label1->Size = System::Drawing::Size(65, 20); this->label1->TabIndex = 39; this->label1->Text = L"Nombre"; // // addCiclo // this->AcceptButton = this->SaveButton; this->AutoScaleDimensions = System::Drawing::SizeF(9, 20); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->CancelButton = this->Cancelbutton; this->ClientSize = System::Drawing::Size(526, 153); this->Controls->Add(this->Cancelbutton); this->Controls->Add(this->SaveButton); this->Controls->Add(this->NametextBox); this->Controls->Add(this->label1); this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon"))); this->MaximizeBox = false; this->MinimizeBox = false; this->Name = L"addCiclo"; this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen; this->Text = L"Añadir ciclo"; this->TopMost = true; this->ResumeLayout(false); this->PerformLayout(); } #pragma endregion private: System::Void Cancelbutton_Click(System::Object^ sender, System::EventArgs^ e) { Close(); } private: System::Void SaveButton_Click(System::Object^ sender, System::EventArgs^ e) { using namespace Runtime::InteropServices; string p = (const char*)(Marshal::StringToHGlobalAnsi(this->NametextBox->Text)).ToPointer(); try { this->bd->insertPeriod(p); Close(); } catch (domain_error &e) { string mensaje = "El ciclo que se intenta insertar ya existe en la base de datos."; SGBDRasore::errorDialog ^dialog = gcnew SGBDRasore::errorDialog(mensaje); dialog->ShowDialog(); delete dialog; } } }; } #endif
[ "carmor06@ucm.es" ]
carmor06@ucm.es
03cd3e6961bf08b0c1467ba898ec2ec498c90501
e042fcaa4f81a33cda9a16ae63b177b7a7d05024
/C/algorithm.cpp
551565484773ba0f6a864ab2bd94adeab23c2c28
[]
no_license
amanashu201/Aman2002
9c4f68a3181bc841b09bb6e18f575b1fc8d79bba
a14d9ebf8e32d62438c953fa1c0d183a3756b07f
refs/heads/master
2023-04-12T13:32:51.655489
2021-05-11T10:30:35
2021-05-11T10:30:35
306,860,992
0
0
null
2020-10-29T11:57:43
2020-10-24T10:40:09
HTML
UTF-8
C++
false
false
1,115
cpp
#include <stdio.h> #include <iostream> using namespace std; class square_root { private: int number; int start=0, end=number; int mid,i,n; float findSQRT(int number); float ans; public: void squareroot_list(); void Display_squareroot(); }; void square_root::squareroot_list() { while (start <= end) { mid = (start + end) / 2; if (mid * mid == number) { ans = mid; break; } if (mid * mid < number) { start = mid + 1; ans = mid; } else { end = mid - 1; } } float increment = 0.1; for( i = 0; i < 5; i++) { while (ans * ans <= number) { ans += increment; } ans = ans - increment; increment = increment / 10; } return ans; } void square_root::display_squareroot(); int main() { int N; cout<<"please enter a number:"; cin<<n; cout<<"find square root:"; cin<<findSQRT(N); squareroot s; s.square_root(); s.Display_squareroot(); return 0; }
[ "70699624+amanashu201@users.noreply.github.com" ]
70699624+amanashu201@users.noreply.github.com
37614ab619b09400f03bfd6ec0cc62311d6caf57
b047cdcb684c69797762b25cb01fbd20cdef7016
/PROJET/Backup/mainBU1.cpp
b4fafd773dfdb9b8e9166b6debbbb3905de58e7c
[]
no_license
KingOfCola/INF581_Vision_et_Image
c983b7cd07db80231a7c8fc7156a848351c9dd5d
1f5577b9df6329f2262511e56097888f85c8f480
refs/heads/master
2021-10-21T11:56:27.441742
2019-03-04T08:46:18
2019-03-04T08:46:18
173,707,158
0
0
null
null
null
null
UTF-8
C++
false
false
4,862
cpp
#include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/imgproc.hpp> #include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; using namespace cv; inline bool isInInterval(const Vec3b a, const Vec3b b, const int p) { return ((int)a.val[0] > (int)b.val[0] - p) && ((int)a.val[0] < (int)b.val[0] + p) && ((int)a.val[1] > (int)b.val[1] - p) && ((int)a.val[1] < (int)b.val[1] + p) && ((int)a.val[2] > (int)b.val[2] - p) && ((int)a.val[2] < (int)b.val[2] + p); } template <typename T> Mat integral(Mat a) { int n = a.rows, p = a.cols; Mat I(a); I.at<T>(0, 0) = a.at<T>(0, 0); for (int i = 1; i < n; i++) { I.at<T>(i, 0) = I.at<T>(i - 1, 0) + a.at<T>(i, 0); } for (int j = 1; j < p; j++) { I.at<T>(0, j) = I.at<T>(0, j - 1) + a.at<T>(0, j); } for (int i = 1; i < n; i++) { for (int j = 1; j < p; j++) { I.at<T>(i, j) = I.at<T>(i - 1, j) - I.at<T>(i - 1, j - 1) + I.at<T>(i, j- 1) + a.at<T>(i, j); } } return I; } template <typename T> int sumValues(Mat I) { int s = 0; for (int m = 0; m < I.rows; m++) { for (int n = 0; n < I.cols; n++) { s += (int)I.at<T>(m, n); } } return s; } template <typename T> Mat reconstruct_image(vector<Mat> goodPixels, vector<Mat> imgs) { int m = imgs[0].rows, n = imgs[0].cols; vector<int> relevancy, indices; Mat I(m, n, CV_8UC3), Choose(m, n, CV_8UC3); vector<Vec3b> Colors; Colors.push_back(Vec3b(0, 0, 0)); Colors.push_back(Vec3b(255, 0, 0)); Colors.push_back(Vec3b(0, 255, 0)); Colors.push_back(Vec3b(0, 0, 255)); Colors.push_back(Vec3b(255, 255, 0)); Colors.push_back(Vec3b(0, 255, 255)); Colors.push_back(Vec3b(255, 0, 255)); Colors.push_back(Vec3b(255, 255, 255)); int j; for (int i = 0; i < goodPixels.size(); i++) { int s = (int)sumValues<T>(goodPixels[i]); relevancy.push_back(s); indices.push_back(i); for (j = indices.size() - 2; j >= 0; j--) { if (s > relevancy[j]) { relevancy[j + 1] = relevancy[j]; relevancy[j] = s; indices[j + 1] = indices[j]; indices[j] = i; } else { break; } } } cout << I.rows << " --- " << I.cols << endl; for (int m = 0; m < I.rows; m++) { for (int n = 0; n < I.cols; n++) { I.at<Vec3b>(m, n)[0] = 0; I.at<Vec3b>(m, n)[1] = 0; I.at<Vec3b>(m, n)[2] = 0; } } imshow("TEst", I); // Choix de l'image par pixel for (int i = 0; i < goodPixels.size(); i++) { cout << relevancy[i] << " " << indices[i] << endl; cout << I.rows << " " << I.cols << endl; for (int m = 0; m < I.rows; m++) { for (int n = 0; n < I.cols; n++) { if ((I.at<Vec3b>(m, n)[0] == 0) && goodPixels[indices[i]].at<T>(m, n) != 0) { I.at<Vec3b>(m, n) = imgs[indices[i]].at<Vec3b>(m, n); (Choose.at<Vec3b>(m, n)) = Colors[indices[i]]; } } } } imshow("Choose", Choose); imwrite("../resultatChoose.jpg", Choose); return I; } int main() {// importation des images String nom_image = "../photo"; String extension = ".jpg"; int nb_images = 8; vector<Mat> I; for (int i = 1; i <= nb_images; i++) { I.push_back(imread(nom_image + to_string(i) + extension)); } // initialisation de l'image resultat Mat res = imread(nom_image + to_string(1) + extension); int seuil = 15; // compter les occurences par pixel et choisir max Vec3b rgb; cout << I[0].rows << " - " << I[0].cols << endl; for (int m = 1; m < I[0].rows; m++) { for (int n = 1; n < I[0].cols; n++) { vector<Vec3b> couleurs; vector<int> occurences; for (int i = 0; i < nb_images; i++) { rgb = I[i].at<Vec3b>(m, n); bool trouve = false; for (int j = 0; j < couleurs.size(); j++) { if (norm(couleurs[j], rgb, CV_L2) < seuil) { occurences[j] ++; trouve = true; break; } } if (!trouve) { couleurs.push_back(rgb); occurences.push_back(1); } } int argmax = distance(occurences.begin(), max_element(occurences.begin(), occurences.end())); res.at<Vec3b>(m, n) = couleurs[argmax]; } } vector<Mat> goodPixels; for (int i = 0; i < nb_images; i++) { Mat temp = Mat(I[0].size(), CV_8U); for (int m = 0; m < I[0].rows; m++) { for (int n = 0; n < I[0].cols; n++) { Vec3b v1 = I[i].at<Vec3b>(m, n); Vec3b v2 = res.at<Vec3b>(m, n); float dist = norm(v1, v2, CV_L2); if (dist < seuil) { temp.at<unsigned char>(m, n) = 255; } else { temp.at<unsigned char>(m, n) = 0; } } } goodPixels.push_back(temp); } Mat resul = reconstruct_image<unsigned char>(goodPixels, I); imshow("AIAIAIA", resul); imwrite("../resultat.jpg", res); imwrite("../resultatMaxIm.jpg", resul); /* for (int i = 0; i < nb_images; i++) { namedWindow("Resultat" + to_string(i), i + 1); imshow("Resultat" + to_string(i), goodPixels[i]); } */ waitKey(0); return 0; }
[ "urvan.christen@polytechnique.edu" ]
urvan.christen@polytechnique.edu
14ac23612868406f92366cd165b5e251c06f641c
a2743e49fcf30add8d07cfd8454f246cc37e32d5
/detect_adaboost.cpp
47eb343803f38a6c84b9f74d5694140b28d40e5d
[]
no_license
ShufengWang/Ensemble-DecisionTree
71cf5cc469802dc9c8b6fb3634427a2c994bb386
87781b6fcb2935eb36eb4483d278ab38917784aa
refs/heads/master
2020-12-24T12:21:04.525278
2016-11-09T03:17:19
2016-11-09T03:17:19
73,049,955
0
0
null
null
null
null
UTF-8
C++
false
false
2,522
cpp
#include"common.h" void detect_adaboost(cv::Mat img, float scaleFactor, int staLevId, cv::Size winSize, int winStride, vector<cv::Rect> &found, vector<float> &rspn, string &modelAdd, vector<cv::Mat> temps, vector<vector<int>> featIdx, cv::Size gridSize, float minThr) { Ptr<Boost> tboost=Boost::load<Boost>(modelAdd); vector<double> levelScale; double scale = 1; for(int level=0; level<winSize.width; level++){ if((cvRound(double(img.cols)/scale)<winSize.width)||(cvRound(double(img.rows)/scale)<winSize.height)) break; if(level>=staLevId) levelScale.push_back(scale); scale*=scaleFactor; } int top = (int)(0.2*img.rows), left = (int)(0.2*img.cols); cv::Mat img_border; cv::copyMakeBorder(img, img_border, top, top, left, left, cv::BORDER_REPLICATE); vector<cv::Mat> pyramid_img(levelScale.size()); for(int level=0; level<levelScale.size(); level++) resize(img_border, pyramid_img[level], cv::Size(cvRound(double(img_border.cols)/levelScale[level]), cvRound(double(img_border.rows)/levelScale[level]))); for(int level=0; level<pyramid_img.size(); level++){ cv::copyMakeBorder(pyramid_img[level], pyramid_img[level], 0, 4-pyramid_img[level].rows%4, 0, 4-pyramid_img[level].cols%4, cv::BORDER_REPLICATE); } vector<vector<cv::Point>> total_loc(levelScale.size()); for(int level=0; level<levelScale.size(); level++) for(int i=0; i<pyramid_img[level].rows-winSize.height+1; i+=winStride) for(int j=0; j<pyramid_img[level].cols-winSize.width+1; j+=winStride) total_loc[level].push_back(cv::Point(j,i)); vector<cv::Point> p_loc; vector<int> p_level; for(int level=0; level<levelScale.size(); level++){ vector<float> dscrpt; generate_feature(pyramid_img[level], total_loc[level], gridSize, temps, featIdx, dscrpt); cv::Mat mDscrpt = cv::Mat(dscrpt).reshape(0,total_loc[level].size()); cv::Mat pdct; tboost->predict(mDscrpt, pdct, DTrees::PREDICT_SUM); for(int i=0; i<total_loc[level].size(); i++) if(pdct.at<float>(i,0)>minThr){ p_loc.push_back(total_loc[level][i]); rspn.push_back(pdct.at<float>(i,0)); p_level.push_back(level); } } for(int i=0; i<p_loc.size(); i++){ cv::Rect t_rect(cvRound(p_loc[i].x*levelScale[p_level[i]])-left, cvRound(p_loc[i].y*levelScale[p_level[i]])-top, cvRound(winSize.width*levelScale[p_level[i]]), cvRound(winSize.height*levelScale[p_level[i]])); found.push_back(t_rect); } tboost->clear(); }
[ "1015671535@qq.com" ]
1015671535@qq.com
668ebd31605e4e7a5430c3363930fe90362f2b64
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/blink/public/platform/web_rtc_data_channel_handler_client.h
9b9023f36ef4553fb7975f699af61a3e020cc3ef
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
C++
false
false
2,413
h
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_RTC_DATA_CHANNEL_HANDLER_CLIENT_H_ #define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_RTC_DATA_CHANNEL_HANDLER_CLIENT_H_ #include "third_party/blink/public/platform/web_common.h" #include "third_party/blink/public/platform/web_private_ptr.h" #include "third_party/blink/public/platform/web_string.h" namespace blink { class WebRTCDataChannelHandlerClient { public: enum ReadyState { kReadyStateConnecting = 0, kReadyStateOpen = 1, kReadyStateClosing = 2, kReadyStateClosed = 3, }; virtual ~WebRTCDataChannelHandlerClient() = default; virtual void DidChangeReadyState(ReadyState) = 0; // TODO(bemasc): Make this pure virtual once Chromium unit tests are updated virtual void DidDecreaseBufferedAmount(unsigned){}; virtual void DidReceiveStringData(const WebString&) = 0; virtual void DidReceiveRawData(const char*, size_t) = 0; virtual void DidDetectError() = 0; }; } // namespace blink #endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_RTC_DATA_CHANNEL_HANDLER_CLIENT_H_
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
5cb5c6cb2115921762d45783fe442358086be288
b22c254d7670522ec2caa61c998f8741b1da9388
/dependencies/OpenSceneGraph/include/osgUtil/LineSegmentIntersector
e43e4ed86ebe181f7d5562de1bc68aeaff18dd0e
[]
no_license
ldaehler/lbanet
341ddc4b62ef2df0a167caff46c2075fdfc85f5c
ecb54fc6fd691f1be3bae03681e355a225f92418
refs/heads/master
2021-01-23T13:17:19.963262
2011-03-22T21:49:52
2011-03-22T21:49:52
39,529,945
0
1
null
null
null
null
UTF-8
C++
false
false
4,993
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ #ifndef OSGUTIL_LINESEGMENTINTERSECTOR #define OSGUTIL_LINESEGMENTINTERSECTOR 1 #include <osgUtil/IntersectionVisitor> namespace osgUtil { /** Concrete class for implementing line intersections with the scene graph. * To be used in conjunction with IntersectionVisitor. */ class OSGUTIL_EXPORT LineSegmentIntersector : public Intersector { public: /** Construct a LineSegmentIntersector the runs between the specified start and end points in MODEL coordinates. */ LineSegmentIntersector(const osg::Vec3d& start, const osg::Vec3d& end); /** Construct a LineSegmentIntersector the runs between the specified start and end points in the specified coordinate frame. */ LineSegmentIntersector(CoordinateFrame cf, const osg::Vec3d& start, const osg::Vec3d& end); /** Convenience constructor for supporting picking in WINDOW, or PROJECTION coordinates * In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). * In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). * In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1).*/ LineSegmentIntersector(CoordinateFrame cf, double x, double y); struct Intersection { Intersection(): ratio(-1.0), primitiveIndex(0) {} bool operator < (const Intersection& rhs) const { return ratio < rhs.ratio; } typedef std::vector<unsigned int> IndexList; typedef std::vector<double> RatioList; double ratio; osg::NodePath nodePath; osg::ref_ptr<osg::Drawable> drawable; osg::ref_ptr<osg::RefMatrix> matrix; osg::Vec3d localIntersectionPoint; osg::Vec3 localIntersectionNormal; IndexList indexList; RatioList ratioList; unsigned int primitiveIndex; const osg::Vec3d& getLocalIntersectPoint() const { return localIntersectionPoint; } osg::Vec3d getWorldIntersectPoint() const { return matrix.valid() ? localIntersectionPoint * (*matrix) : localIntersectionPoint; } const osg::Vec3& getLocalIntersectNormal() const { return localIntersectionNormal; } osg::Vec3 getWorldIntersectNormal() const { return matrix.valid() ? osg::Matrix::transform3x3(osg::Matrix::inverse(*matrix),localIntersectionNormal) : localIntersectionNormal; } }; typedef std::multiset<Intersection> Intersections; inline void insertIntersection(const Intersection& intersection) { getIntersections().insert(intersection); } inline Intersections& getIntersections() { return _parent ? _parent->_intersections : _intersections; } inline Intersection getFirstIntersection() { Intersections& intersections = getIntersections(); return intersections.empty() ? Intersection() : *(intersections.begin()); } inline void setStart(const osg::Vec3d& start) { _start = start; } inline const osg::Vec3d& getStart() const { return _start; } inline void setEnd(const osg::Vec3d& end) { _end = end; } inline const osg::Vec3d& getEnd() const { return _end; } public: virtual Intersector* clone(osgUtil::IntersectionVisitor& iv); virtual bool enter(const osg::Node& node); virtual void leave(); virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable); virtual void reset(); virtual bool containsIntersections() { return !_intersections.empty(); } protected: bool intersects(const osg::BoundingSphere& bs); bool intersectAndClip(osg::Vec3d& s, osg::Vec3d& e,const osg::BoundingBox& bb); LineSegmentIntersector* _parent; osg::Vec3d _start; osg::Vec3d _end; Intersections _intersections; }; } #endif
[ "vdelage@3806491c-8dad-11de-9a8c-6d5b7d1e4d13" ]
vdelage@3806491c-8dad-11de-9a8c-6d5b7d1e4d13
f6ceb2cc671997bf69ed4c463b4861a938e58c52
a069a783f9c5b0c1a76ccc6fec1008b568d17fa0
/FileCacheManager.h
3d13313e02cb18a6a00011257fec1eb66f4a89af
[]
no_license
danakreimer/ProblemSolver
0b834132535e22c139bd4f7546705beafc916e4f
e3219a3f23e0bc989de464457969cb22786f16aa
refs/heads/master
2022-08-25T22:13:56.482835
2020-01-30T17:32:27
2020-01-30T17:32:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,278
h
// // Created by duni on 12/01/2020. // #ifndef PROBLEMSOLVER_FILECHACHEMANAGER_H #define PROBLEMSOLVER_FILECHACHEMANAGER_H #include <fstream> #include <mutex> #include "CacheManager.h" using namespace std; template<class Problem> class FileCacheManager : public CacheManager<Problem, string> { private: std::mutex fileLock; public: // This function checks the cache if a current solution exists and returns the result bool doesSolutionExist(Problem p, string algorithmName) { fileLock.lock(); ifstream file; string strFileName = ""; char currentChar; int i; // Preform hash function on the problem to save the file in a unique way std::size_t fileName = std::hash<std::string>{}(p); strFileName = std::to_string(fileName); // Concatenate the algorithm name which solved the problem to the result of the hash function strFileName += algorithmName; // Concatenate the ending of the file name strFileName.append(".txt"); file.open(strFileName); // Check if the wanted file exists in the cache bool doesExist = file.good(); file.close(); fileLock.unlock(); return doesExist; } // This function saves the solution in the cache void saveSolution(Problem p, string s, string algorithmName) { fileLock.lock(); ofstream file; string strFileName = ""; char currentChar; int i; // Preform hash function on the problem to save the file in a unique way std::size_t fileName = std::hash<std::string>{}(p); strFileName = std::to_string(fileName); // Concatenate the algorithm name which solved the problem to the result of the hash function strFileName += algorithmName; // Concatenate the ending of the file name strFileName.append(".txt"); // Open the file file.open(strFileName, ios::app); if (file.is_open()) { // Write the solution into the file file << s << endl; //file.write((char *) &s, sizeof(s)); } else { throw "could not open file"; } file.close(); fileLock.unlock(); } // This function returns the solution from the cache string getSolution(Problem p, string algorithmName) { fileLock.lock(); ifstream file; string strFileName; char currentChar; int i; string s; // Preform hash function on the problem to save the file in a unique way std::size_t fileName = std::hash<std::string>{}(p); strFileName = std::to_string(fileName); // Concatenate the algorithm name which solved the problem to the result of the hash function strFileName += algorithmName; // Concatenate the ending of the file name strFileName.append(".txt"); // Open the file that contains the solution file.open(strFileName, ios::in); if (file.is_open()) { getline(file, s); } else { throw "object doesnt exist in cache or files"; } file.close(); fileLock.unlock(); return s; } }; #endif //PROBLEMSOLVER_FILECHACHEMANAGER_H
[ "danathekraimer@gmail.com" ]
danathekraimer@gmail.com
33a62060deb2d117db213159872857c3931ab188
0065cefdd3a4f163e92c6499c4f36feb584d99b7
/rogue/cheat/sdk/SDK/WBP_AbilityDurationBar_functions.cpp
46c248504e31fdaf0508cfd8294990a4877677a4
[]
no_license
YMY1666527646/Rogue_Company_hack
ecd8461fc6b25a0adca1a6ef09ee57e59181bc84
2a19c81c5bf25b6e245084c073ad7af895a696e4
refs/heads/main
2023-08-20T06:07:14.660871
2021-10-21T20:33:53
2021-10-21T20:33:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,921
cpp
// Name: roguecompany, Version: 425 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.SetDurationBar // Flags -> (Public, HasDefaults, BlueprintCallable, BlueprintEvent) // Parameters: // float Duration (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) // float RemainingTime (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) // class UKSItem* KSItem (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWBP_AbilityDurationBar_C::SetDurationBar(float Duration, float RemainingTime, class UKSItem* KSItem) { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27773); UWBP_AbilityDurationBar_C_SetDurationBar_Params params {}; params.Duration = Duration; params.RemainingTime = RemainingTime; params.KSItem = KSItem; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.Tick // Flags -> (BlueprintCosmetic, Event, Public, BlueprintEvent) // Parameters: // struct FGeometry MyGeometry (BlueprintVisible, BlueprintReadOnly, Parm, IsPlainOldData, NoDestructor) // float InDeltaTime (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWBP_AbilityDurationBar_C::Tick(const struct FGeometry& MyGeometry, float InDeltaTime) { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27772); UWBP_AbilityDurationBar_C_Tick_Params params {}; params.MyGeometry = MyGeometry; params.InDeltaTime = InDeltaTime; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.OpenUpdateGate // Flags -> (BlueprintCallable, BlueprintEvent) void UWBP_AbilityDurationBar_C::OpenUpdateGate() { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27771); UWBP_AbilityDurationBar_C_OpenUpdateGate_Params params {}; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.CloseUpdateGate // Flags -> (BlueprintCallable, BlueprintEvent) void UWBP_AbilityDurationBar_C::CloseUpdateGate() { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27770); UWBP_AbilityDurationBar_C_CloseUpdateGate_Params params {}; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.UpdateDurationDisplay // Flags -> (BlueprintCallable, BlueprintEvent) void UWBP_AbilityDurationBar_C::UpdateDurationDisplay() { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27769); UWBP_AbilityDurationBar_C_UpdateDurationDisplay_Params params {}; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.HideDurationBar // Flags -> (BlueprintCallable, BlueprintEvent) void UWBP_AbilityDurationBar_C::HideDurationBar() { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27768); UWBP_AbilityDurationBar_C_HideDurationBar_Params params {}; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.HandleModActivated // Flags -> (BlueprintCallable, BlueprintEvent) // Parameters: // bool Activated (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor) void UWBP_AbilityDurationBar_C::HandleModActivated(bool Activated) { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27767); UWBP_AbilityDurationBar_C_HandleModActivated_Params params {}; params.Activated = Activated; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.SetupDurationBar // Flags -> (BlueprintCallable, BlueprintEvent) // Parameters: // class UKSModInst_Activated* ModInstance (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWBP_AbilityDurationBar_C::SetupDurationBar(class UKSModInst_Activated* ModInstance) { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27766); UWBP_AbilityDurationBar_C_SetupDurationBar_Params params {}; params.ModInstance = ModInstance; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function: // Offset -> 0x024D5B40 // Name -> Function WBP_AbilityDurationBar.WBP_AbilityDurationBar_C.ExecuteUbergraph_WBP_AbilityDurationBar // Flags -> (Final, HasDefaults) // Parameters: // int EntryPoint (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash) void UWBP_AbilityDurationBar_C::ExecuteUbergraph_WBP_AbilityDurationBar(int EntryPoint) { static UFunction* fn = UObject::GetObjectCasted<UFunction>(27765); UWBP_AbilityDurationBar_C_ExecuteUbergraph_WBP_AbilityDurationBar_Params params {}; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "51001754+dmitrysolovev@users.noreply.github.com" ]
51001754+dmitrysolovev@users.noreply.github.com
ab140d3db0acf8608eb5f0affd3c0a2309bec308
22e2029692b93316c5f34282cf41b89a620442ad
/6b.cpp
2e114df232031c165ae50657028a5f5e21b6cb49
[]
no_license
syedabdulsamad7/adalab-1bm17cs109
a007c12dca266fde63a65c039157a5abbd69b1dc
42f1bcb6b0dbd9acb77f053d1986362b60301f92
refs/heads/master
2020-07-06T00:46:33.452201
2019-11-23T07:39:33
2019-11-23T07:39:33
202,835,208
0
0
null
null
null
null
UTF-8
C++
false
false
1,284
cpp
#include <iostream> #include <list> #include <stack> using namespace std; class Graph { int V; list<int>* adj; void topologicalSortUtil(int v, bool visited[], stack<int>& Stack); public: Graph(int V); void addEdge(int v, int w); void topologicalSort(); }; Graph::Graph(int V) { this->V = V; adj = new list<int>[V]; } void Graph::addEdge(int v, int w) { adj[v].push_back(w); } void Graph::topologicalSortUtil(int v, bool visited[], stack<int>& Stack) { visited[v] = true; list<int>::iterator i; for (i = adj[v].begin(); i != adj[v].end(); ++i) if (!visited[*i]) topologicalSortUtil(*i, visited, Stack); Stack.push(v); } void Graph::topologicalSort() { stack<int> Stack; bool* visited = new bool[V]; for (int i = 0; i < V; i++) visited[i] = false; for (int i = 0; i < V; i++) if (visited[i] == false) topologicalSortUtil(i, visited, Stack); while (Stack.empty() == false) { cout << Stack.top() << " "; Stack.pop(); } } int main() { Graph g(6); g.addEdge(5, 2); g.addEdge(5, 0); g.addEdge(4, 0); g.addEdge(4, 1); g.addEdge(2, 3); g.addEdge(3, 1); g.topologicalSort(); return 0; }
[ "noreply@github.com" ]
syedabdulsamad7.noreply@github.com
d03d7abcb91a417e3077dcdff22f4f8e08c2c928
c053027b2af06891715d474b0011bb5e89532e36
/Recipes/component_validator.h
a2d2ab7be625e18f864626862fe8ba8f76e4df80
[]
no_license
BorysDuchewicz/Recipes
ea44c9b2bcf7645a54ab9855410b2e2874d46a2b
9bec636724c1e7cc4487ef694e6f573b0402956c
refs/heads/master
2022-11-21T18:48:37.924293
2020-07-17T22:00:51
2020-07-17T22:00:51
279,920,000
0
0
null
null
null
null
UTF-8
C++
false
false
631
h
#pragma once #include "validator.h" #include "component.h" class ComponentValidator : public Validator<Component> { private: static bool is_name_validate(const Component& component); static bool is_calories_validate(const Component& component); static bool is_weight_validate(const Component& component); static bool is_price_validate(const Component& component); public: std::unordered_map<std::string, std::string>validator(const Component& component)override; friend std::ostream& operator<<(std::ostream& out, const ComponentValidator& component); ComponentValidator() = default; ~ComponentValidator() = default; };
[ "Borys.Duchewicz@op.pl" ]
Borys.Duchewicz@op.pl
2fb5ce4f15c4d5e900e7492ec7dd1ba6492d3337
d574b0dba51db23e9b8468e82402c121bec618ec
/STL/S-06/6.3/6.3c/main.cpp
bbb7e373a1c5195e045ac34c60d16d1d0a430dbd
[]
no_license
gianricardo/CPlusPlus
9a1d993561f90743245d2b144ec806d5aa11adde
9d96829b6dabad41222920171e5d1fee8b9c5a2f
refs/heads/master
2022-10-05T21:02:32.416682
2020-06-10T01:35:03
2020-06-10T01:35:03
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
1,851
cpp
#include <iostream> #include <iterator> #include <list> using namespace std; /** * This example shows how a front_inserter() causes the container's * push_front() operator to be invoked. This inserter can be used only * with the list and deque containers, because one cannot add to the * front of a vector. * * Here is the front_inserter() function template: * * template <typename Container> * front_insert_iterator<Container> front_inserter(Container& x) { * return front_insert_iterator<Container>(x); * } * * template <typename Container, typename Iterator> * insert_iterator<Container> inserter(Container& x, Iterator i) { * return insert_iterator<Container>(x, Container::iterator(i)); * } * * This function adapter leverages C++¡¯s implicit type inference * feature for functions. */ int main() { list<int> aList1, aList2; list<int>::iterator itr; int i; for(i = 0; i < 5; i++) aList1.push_back(i); cout << "Original contents of aList:\n"; copy (aList1.begin (), aList1.end (), ostream_iterator<int> (cout, "\n")); front_insert_iterator<list<int>> frnt_i_itr(aList1); // create a front_insert_iterator to aList *frnt_i_itr++ = 100; // insert rather than overwrite at front *frnt_i_itr++ = 200; cout << "aList after insertion:\n"; copy (aList1.begin (), aList1.end (), ostream_iterator<int> (cout, "\n")); cout << "Size of aList2 before copy: " << aList2.size() << endl; copy(aList1.begin(), aList1.end(), front_inserter(aList2)); cout << "Size of aList2 after copy: " << aList2.size() << endl; cout << "Contents of aList2 after insertion: \n"; copy (aList2.begin (), aList2.end (), ostream_iterator<int> (cout, "\n")); return 0; }
[ "d.schmidt@vanderbilt.edu" ]
d.schmidt@vanderbilt.edu
f69facfe8e4d9e9a3b3892dae52cc76e0b1a80c6
d0fb46aecc3b69983e7f6244331a81dff42d9595
/hbase/src/model/CloseBackupResult.cc
4584ae0d09b78132347fd1dba354c7abb63d4497
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-cpp-sdk
3d8d051d44ad00753a429817dd03957614c0c66a
e862bd03c844bcb7ccaa90571bceaa2802c7f135
refs/heads/master
2023-08-29T11:54:00.525102
2023-08-29T03:32:48
2023-08-29T03:32:48
115,379,460
104
82
NOASSERTION
2023-09-14T06:13:33
2017-12-26T02:53:27
C++
UTF-8
C++
false
false
1,185
cc
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <alibabacloud/hbase/model/CloseBackupResult.h> #include <json/json.h> using namespace AlibabaCloud::HBase; using namespace AlibabaCloud::HBase::Model; CloseBackupResult::CloseBackupResult() : ServiceResult() {} CloseBackupResult::CloseBackupResult(const std::string &payload) : ServiceResult() { parse(payload); } CloseBackupResult::~CloseBackupResult() {} void CloseBackupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
e5a7e9f5850aae8d13815c7567d884c32d91b082
724f75d7ce70a8e2f7102c89ff1f65b9ea4af6b1
/A1148.cpp
f2b64c58db0b7358247633d6cc4fa2f363fee8bc
[]
no_license
breastcover/PAT
29de20c1b89053f0c223bc3a6a67e1137a63a9f7
615c40a45b39652137d2b7e1b2b88cffd3674c41
refs/heads/master
2021-01-16T10:31:50.412907
2020-02-25T19:24:42
2020-02-25T19:24:42
243,083,407
0
0
null
null
null
null
UTF-8
C++
false
false
602
cpp
#include <iostream> #include <vector> #include <math.h> #include <algorithm> using namespace std; int main() { int n; cin>>n; vector<int> p(n+1); for(int i=1;i<=n;i++) { cin>>p[i]; } for(int i=1;i<n;i++) { for(int j=i+1;j<=n;j++) { vector<int> a(n+1,1); vector<int> lie; a[i]=a[j]=-1; for(int k=1;k<=n;k++) { if(p[k]*a[abs(p[k])]<0) lie.push_back(k); } if(lie.size()==2&&a[lie[0]]+a[lie[1]]==0) { cout<<i<<' '<<j<<endl; return 0; } } } cout<<"No Solution"<<endl; return 0; }
[ "884918549@qq.com" ]
884918549@qq.com
3245e5084a0ee1da25f889dfae2a01efb1e19d32
260e5dec446d12a7dd3f32e331c1fde8157e5cea
/Indi/SDK/Indi_0001_SD_Sub_13_classes.hpp
3844f29a998674722adf5e197218f275cb269ac5
[]
no_license
jfmherokiller/TheOuterWorldsSdkDump
6e140fde4fcd1cade94ce0d7ea69f8a3f769e1c0
18a8c6b1f5d87bb1ad4334be4a9f22c52897f640
refs/heads/main
2023-08-30T09:27:17.723265
2021-09-17T00:24:52
2021-09-17T00:24:52
407,437,218
0
0
null
null
null
null
UTF-8
C++
false
false
930
hpp
#pragma once // TheOuterWorlds SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "Indi_0001_SD_Sub_13_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass 0001_SD_Sub_13.0001_SD_Sub_C // 0x0010 (0x03A0 - 0x0390) class A0001_SD_Sub_C : public ALevelScriptActor { public: unsigned char UnknownData00[0x10]; // 0x0390(0x0010) MISSED OFFSET static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass 0001_SD_Sub_13.0001_SD_Sub_C"); return ptr; } void STATIC_ShipPowerOn(); void STATIC_SFX_Print_Captain_Cartridge(); void STATIC_ExecuteUbergraph_0001_SD_Sub_13(int EntryPoint); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "peterpan0413@live.com" ]
peterpan0413@live.com
ea336262b7c0f71ee384bd8db60c3e021bc2f7f8
b2b86ce7f892b36e96fd47b48228599292630668
/hash_set.hpp
a4767b3f712847a1c3bfd4db9d42a557767a90d7
[]
no_license
bsmorton/Queues-Sets-and-Maps-C-
54a4594cc059416accfaa43e7d481114a377e55d
4c754fe6217a33c07e6fefeac78139ca3a95b659
refs/heads/master
2020-03-10T20:43:06.793032
2018-04-15T04:17:00
2018-04-15T04:17:00
129,575,956
0
0
null
null
null
null
UTF-8
C++
false
false
23,536
hpp
// Submitter: bsmorton(Morton, Bradley) // Partner : ealkabod(Al-Kabodi, Ebrahim) // We certify that we worked cooperatively on this programming // assignment, according to the rules for pair programming #ifndef HASH_SET_HPP_ #define HASH_SET_HPP_ #include <string> #include <iostream> #include <sstream> #include <initializer_list> #include "ics_exceptions.hpp" #include "pair.hpp" namespace ics { #ifndef undefinedhashdefined #define undefinedhashdefined template<class T> int undefinedhash (const T& a) {return 0;} #endif /* undefinedhashdefined */ //Instantiate the templated class supplying thash(a): produces a hash value for a. //If thash is defaulted to undefinedhash in the template, then a constructor must supply chash. //If both thash and chash are supplied, then they must be the same (by ==) function. //If neither is supplied, or both are supplied but different, TemplateFunctionError is raised. //The (unique) non-undefinedhash value supplied by thash/chash is stored in the instance variable hash. template<class T, int (*thash)(const T& a) = undefinedhash<T>> class HashSet { public: typedef int (*hashfunc) (const T& a); //Destructor/Constructors ~HashSet (); HashSet (double the_load_threshold = 1.0, int (*chash)(const T& a) = undefinedhash<T>); explicit HashSet (int initial_bins, double the_load_threshold = 1.0, int (*chash)(const T& k) = undefinedhash<T>); HashSet (const HashSet<T,thash>& to_copy, double the_load_threshold = 1.0, int (*chash)(const T& a) = undefinedhash<T>); explicit HashSet (const std::initializer_list<T>& il, double the_load_threshold = 1.0, int (*chash)(const T& a) = undefinedhash<T>); //Iterable class must support "for-each" loop: .begin()/.end() and prefix ++ on returned result template <class Iterable> explicit HashSet (const Iterable& i, double the_load_threshold = 1.0, int (*chash)(const T& a) = undefinedhash<T>); //Queries bool empty () const; int size () const; bool contains (const T& element) const; std::string str () const; //supplies useful debugging information; contrast to operator << //Iterable class must support "for-each" loop: .begin()/.end() and prefix ++ on returned result template <class Iterable> bool contains_all (const Iterable& i) const; //Commands int insert (const T& element); int erase (const T& element); void clear (); //Iterable class must support "for" loop: .begin()/.end() and prefix ++ on returned result template <class Iterable> int insert_all(const Iterable& i); template <class Iterable> int erase_all(const Iterable& i); template<class Iterable> int retain_all(const Iterable& i); //Operators HashSet<T,thash>& operator = (const HashSet<T,thash>& rhs); bool operator == (const HashSet<T,thash>& rhs) const; bool operator != (const HashSet<T,thash>& rhs) const; bool operator <= (const HashSet<T,thash>& rhs) const; bool operator < (const HashSet<T,thash>& rhs) const; bool operator >= (const HashSet<T,thash>& rhs) const; bool operator > (const HashSet<T,thash>& rhs) const; template<class T2, int (*hash2)(const T2& a)> friend std::ostream& operator << (std::ostream& outs, const HashSet<T2,hash2>& s); private: class LN; public: class Iterator { public: typedef pair<int,LN*> Cursor; //Private constructor called in begin/end, which are friends of HashSet<T,thash> ~Iterator(); T erase(); std::string str () const; HashSet<T,thash>::Iterator& operator ++ (); HashSet<T,thash>::Iterator operator ++ (int); bool operator == (const HashSet<T,thash>::Iterator& rhs) const; bool operator != (const HashSet<T,thash>::Iterator& rhs) const; T& operator * () const; T* operator -> () const; friend std::ostream& operator << (std::ostream& outs, const HashSet<T,thash>::Iterator& i) { outs << i.str(); //Use the same meaning as the debugging .str() method return outs; } friend Iterator HashSet<T,thash>::begin () const; friend Iterator HashSet<T,thash>::end () const; private: //If can_erase is false, current indexes the "next" value (must ++ to reach it) Cursor current; //Bin Index and Cursor; stops if LN* == nullptr HashSet<T,thash>* ref_set; int expected_mod_count; bool can_erase = true; //Helper methods void advance_cursors(); //Called in friends begin/end Iterator(HashSet<T,thash>* iterate_over, bool from_begin); }; Iterator begin () const; Iterator end () const; private: class LN { public: LN () {} LN (const LN& ln) : value(ln.value), next(ln.next){} LN (T v, LN* n = nullptr) : value(v), next(n){} T value; LN* next = nullptr; }; public: int (*hash)(const T& k); //Hashing function used (from template or constructor) private: LN** set = nullptr; //Pointer to array of pointers: each bin stores a list with a trailer node double load_threshold; //used/bins <= load_threshold int bins = 1; //# bins in array (should start >= 1 so hash_compress doesn't % 0) int used = 0; //Cache for number of key->value pairs in the hash table int mod_count = 0; //For sensing concurrent modification //Helper methods int hash_compress (const T& key) const; //hash function ranged to [0,bins-1] LN* find_element (const T& element) const; //Returns reference to element's node or nullptr LN* copy_list (LN* l) const; //Copy the elements in a bin (order irrelevant) LN** copy_hash_table (LN** ht, int bins) const; //Copy the bins/keys/values in ht tree (order in bins irrelevant) void ensure_load_threshold(int new_used); //Reallocate if load_threshold > load_threshold void delete_hash_table (LN**& ht, int bins); //Deallocate all LN in ht (and the ht itself; ht == nullptr) }; //HashSet class and related definitions //////////////////////////////////////////////////////////////////////////////// // //Destructor/Constructors template<class T, int (*thash)(const T& a)> HashSet<T,thash>::~HashSet() { delete [] set; } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::HashSet(double the_load_threshold, int (*chash)(const T& element)) :hash(thash != (hashfunc)undefinedhash<T> ? thash : chash) { if (hash == (hashfunc)undefinedhash<T>) throw TemplateFunctionError("HashSet::default constructor: neither specified"); if (thash != (hashfunc)undefinedhash<T> && chash != (hashfunc)undefinedhash<T> && thash != chash) throw TemplateFunctionError("HashSet::default constructor: both specified and different"); set = new LN*[bins]; set[0]=new LN; load_threshold=1; } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::HashSet(int initial_bins, double the_load_threshold, int (*chash)(const T& element)) : hash(thash != (hashfunc)undefinedhash<T> ? thash : chash), bins(initial_bins) { if (hash == (hashfunc)undefinedhash<T>) throw TemplateFunctionError("HashSet::length constructor: neither specified"); if (thash != (hashfunc)undefinedhash<T> && chash != (hashfunc)undefinedhash<T> && thash != chash) throw TemplateFunctionError("HashSet::length constructor: both specified and different"); bins = initial_bins; set = new LN*[bins]; for(int i=0; i<bins; i++ ){ set[i] = new LN; } } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::HashSet(const HashSet<T,thash>& to_copy, double the_load_threshold, int (*chash)(const T& element)) : hash(to_copy.hash), used(to_copy.used), bins(to_copy.bins) { if (hash == (hashfunc)undefinedhash<T>) hash = to_copy.hash; if (thash != (hashfunc)undefinedhash<T> && chash != (hashfunc)undefinedhash<T> && thash != chash) throw TemplateFunctionError("HashSet::copy constructor: both specified and different"); set = new LN*[bins]; if (hash == to_copy.hash) { used = to_copy.used; for (int i = 0; i < to_copy.bins; ++i) set[i] = copy_list(to_copy.set[i]); } else { set = new LN*[bins]; for (int i = 0; i < bins; ++i) set[i] = new LN(); for (int i = 0; i < to_copy.bins; ++i) for (LN * p = to_copy.set[i]; p->next != nullptr; p = p->next) insert(p->value); } } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::HashSet(const std::initializer_list<T>& il, double the_load_threshold, int (*chash)(const T& element)) : hash(thash != (hashfunc)undefinedhash<T> ? thash : chash), bins(il.size()) { if (hash == (hashfunc)undefinedhash<T>) throw TemplateFunctionError("HashSet::initializer_list constructor: neither specified"); if (thash != (hashfunc)undefinedhash<T> && chash != (hashfunc)undefinedhash<T> && thash != chash) throw TemplateFunctionError("HashSet::initializer_list constructor: both specified and different"); set = new LN*[bins]; for (int i = 0; i<bins; ++i) set[i] = new LN(); for (const T& entry : il) insert(entry); } template<class T, int (*thash)(const T& a)> template<class Iterable> HashSet<T,thash>::HashSet(const Iterable& i, double the_load_threshold, int (*chash)(const T& a)) : hash(thash != (hashfunc)undefinedhash<T> ? thash : chash), bins(i.size()) { if (hash == (hashfunc)undefinedhash<T>) throw TemplateFunctionError("HashSet::Iterable constructor: neither specified"); if (thash != (hashfunc)undefinedhash<T> && chash != (hashfunc)undefinedhash<T> && thash != chash) throw TemplateFunctionError("HashSet::Iterable constructor: both specified and different"); set = new LN*[bins]; for (int i = 0; i<bins; ++i) set[i] = new LN(); for (const T& entry : i) insert(entry); } //////////////////////////////////////////////////////////////////////////////// // //Queries template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::empty() const { return used==0; } template<class T, int (*thash)(const T& a)> int HashSet<T,thash>::size() const { return used; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::contains (const T& element) const { for(int i=0; i<bins; i++) { for (LN *p = set[i]; p->next != nullptr; p = p->next) { if (p->value == element) { return true; } } } return false; } template<class T, int (*thash)(const T& a)> std::string HashSet<T,thash>::str() const { std::stringstream temp; for(int i=0; i<bins; i++){ temp << " " << i << " : ["; for(LN* p=set[i]; p->next!=nullptr; p=p->next){ temp << '[' << p->value << ']'; } temp << "]"; } return temp.str(); } template<class T, int (*thash)(const T& a)> template <class Iterable> bool HashSet<T,thash>::contains_all(const Iterable& i) const { for(T& p:i){ if(!contains(p)) return false; } return true; } //////////////////////////////////////////////////////////////////////////////// // //Commands template<class T, int (*thash)(const T& a)> int HashSet<T,thash>::insert(const T& element) { //std::cout << "before : " << str() << std::endl; if(contains(element)){ return 0; } used++; ensure_load_threshold(used); set[hash_compress(element)]=new LN(element,set[hash_compress(element)]); //std::cout << "after : " << str() << std::endl; mod_count++; return 1; } template<class T, int (*thash)(const T& a)> int HashSet<T,thash>::erase(const T& element) { if(!contains(element)) return 0; LN* prev=set[hash_compress(element)]; if(prev->value==element){ set[hash_compress(element)]=prev->next; delete prev; } else { for (LN *p = set[hash_compress(element)]->next; p->next != nullptr; p = p->next) { if(p->value==element){ LN* to_delete=p; prev->next=p->next; delete to_delete; break; } prev=prev->next; } } used --; mod_count++; return 1; } template<class T, int (*thash)(const T& a)> void HashSet<T,thash>::clear() { bins=1; set = new LN*[bins]; set[0]=new LN; used=0; mod_count++; load_threshold=1; } template<class T, int (*thash)(const T& a)> template<class Iterable> int HashSet<T,thash>::insert_all(const Iterable& i) { int count=0; for(T& p:i){ count+=insert(p); } return count; } template<class T, int (*thash)(const T& a)> template<class Iterable> int HashSet<T,thash>::erase_all(const Iterable& i) { int count=0; for(T& p:i){ count+=erase(p); } return count; } template<class T, int (*thash)(const T& a)> template<class Iterable> int HashSet<T,thash>::retain_all(const Iterable& i) { HashSet<T,thash> temp1(i); HashSet<T,thash> temp2; for(T& p: *this){ if(temp1.contains(p)){ temp2.insert(p); } } *this=temp2; return 1; } //////////////////////////////////////////////////////////////////////////////// // //Operators template<class T, int (*thash)(const T& a)> HashSet<T,thash>& HashSet<T,thash>::operator = (const HashSet<T,thash>& rhs) { if (this == &rhs) return *this; clear(); hash = rhs.hash; for(int i=0; i<rhs.bins; i++){ for(LN* p=rhs.set[i]; p->next!=nullptr; p=p->next){ insert(p->value); } } return *this; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator == (const HashSet<T,thash>& rhs) const { if (this == &rhs) return true; if (used != rhs.size()) return false; for(int i=0; i<rhs.bins; i++){ for(LN* p=rhs.set[i]; p->next!=nullptr; p=p->next){ if(!contains(p->value)){ return false; } } } return true; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator != (const HashSet<T,thash>& rhs) const { return !(*this == rhs); } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator <= (const HashSet<T,thash>& rhs) const { return used < rhs.used || used == rhs.used; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator < (const HashSet<T,thash>& rhs) const { return used < rhs.used; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator >= (const HashSet<T,thash>& rhs) const { return used > rhs.used || used == rhs.used; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::operator > (const HashSet<T,thash>& rhs) const { return used > rhs.used; } template<class T, int (*thash)(const T& a)> std::ostream& operator << (std::ostream& outs, const HashSet<T,thash>& s) { outs << "set["; int count =0; for (int i = 0; i < s.bins; ++i) for (typename HashSet<T,thash>::LN* p = s.set[i]; p->next != nullptr; p = p->next){ if (count++ == 0) outs << "" ; else outs << ","; outs << p->value; } outs << "]"; return outs; } //////////////////////////////////////////////////////////////////////////////// // //Iterator constructors template<class T, int (*thash)(const T& a)> auto HashSet<T,thash>::begin () const -> HashSet<T,thash>::Iterator { //std::cout << "begin" << std::endl; return Iterator(const_cast<HashSet<T,thash>*>(this),true); } template<class T, int (*thash)(const T& a)> auto HashSet<T,thash>::end () const -> HashSet<T,thash>::Iterator { // std::cout << "end" << std::endl; return Iterator(const_cast<HashSet<T,thash>*>(this),false); } //////////////////////////////////////////////////////////////////////////////// // //Private helper methods template<class T, int (*thash)(const T& a)> int HashSet<T,thash>::hash_compress (const T& element) const { return std::abs(thash(element))%bins; } template<class T, int (*thash)(const T& a)> typename HashSet<T,thash>::LN* HashSet<T,thash>::find_element (const T& element) const { } template<class T, int (*thash)(const T& a)> typename HashSet<T,thash>::LN* HashSet<T,thash>::copy_list (LN* l) const { if (l == nullptr) return nullptr; else return new LN(l->value, copy_list(l->next)); } template<class T, int (*thash)(const T& a)> typename HashSet<T,thash>::LN** HashSet<T,thash>::copy_hash_table (LN** ht, int bins) const { } template<class T, int (*thash)(const T& a)> void HashSet<T,thash>::ensure_load_threshold(int new_used) { if(new_used/bins > load_threshold){ int old_bins = bins; bins = 2*bins; LN** new_set = new LN*[bins]; for(int i=0; i<bins; i++ ){ new_set[i] = new LN; } for(int i=0; i< old_bins; i++){ for(LN* p=set[i]; p->next!= nullptr; p=p->next){ new_set[hash_compress(p->value)]=new LN(p->value, new_set[hash_compress(p->value)]); } } set=new_set; } } template<class T, int (*thash)(const T& a)> void HashSet<T,thash>::delete_hash_table (LN**& ht, int bins) { } //////////////////////////////////////////////////////////////////////////////// // //Iterator class definitions template<class T, int (*thash)(const T& a)> void HashSet<T,thash>::Iterator::advance_cursors() { // std::cout << "advance cursors" << std::endl; if (current.second != nullptr && current.second->next != nullptr && current.second->next->next != nullptr) { current.second = current.second->next; return; } //it's trailer node so we move to other bins higher than first one else for (int i = current.first + 1; i < ref_set->bins; ++i) if (ref_set->set[i]->next != nullptr) { current.first = i; current.second = ref_set->set[i]; return; } //ran out of bins to check so we set (bin = -1,LN* ptr = nullptr) current.first = -1; current.second = nullptr; } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::Iterator::Iterator(HashSet<T,thash>* iterate_over, bool begin) : ref_set(iterate_over), expected_mod_count(ref_set->mod_count) { //std::cout << "iterate_over" << std::endl; current = Cursor(-1, nullptr); if (begin) advance_cursors(); } template<class T, int (*thash)(const T& a)> HashSet<T,thash>::Iterator::~Iterator() {} template<class T, int (*thash)(const T& a)> T HashSet<T,thash>::Iterator::erase() { // std::cout << "erase" << std::endl; if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashMap::Iterator::erase"); if (!can_erase) throw CannotEraseError("HashMap::Iterator::erase Iterator cursor already erased"); if (current.second == nullptr) throw CannotEraseError("HashMap::Iterator::erase Iterator cursor beyond data structure"); T to_return = current.second->value; LN * to_delete = current.second->next; *current.second = *current.second->next; delete to_delete; --ref_set->used; ++ref_set->mod_count; expected_mod_count = ref_set->mod_count; can_erase = false; return to_return; } template<class T, int (*thash)(const T& a)> std::string HashSet<T,thash>::Iterator::str() const { //std::cout << "str" << std::endl; } template<class T, int (*thash)(const T& a)> auto HashSet<T,thash>::Iterator::operator ++ () -> HashSet<T,thash>::Iterator& { //std::cout << "++()" << std::endl; if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashMap::Iterator::operator ++"); if (current.second == nullptr) return *this; if (can_erase || current.second->next == nullptr) advance_cursors(); can_erase = true; return *this; } template<class T, int (*thash)(const T& a)> auto HashSet<T,thash>::Iterator::operator ++ (int) -> HashSet<T,thash>::Iterator { //std::cout << "++(int)" << std::endl; if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashMap::Iterator::operator ++(int)"); Iterator to_return(*this); if (current.second == nullptr) return to_return; if (can_erase || current.second->next == nullptr) advance_cursors(); can_erase = true; return to_return; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::Iterator::operator == (const HashSet<T,thash>::Iterator& rhs) const { // std::cout << "==" << std::endl; const Iterator* rhsASI = dynamic_cast<const Iterator*>(&rhs); if (rhsASI == 0) throw IteratorTypeError("HashSet::Iterator::operator =="); if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashSet::Iterator::operator =="); if (ref_set != rhsASI->ref_set) throw ComparingDifferentIteratorsError("HashSet::Iterator::operator =="); return current.second == rhsASI->current.second; } template<class T, int (*thash)(const T& a)> bool HashSet<T,thash>::Iterator::operator != (const HashSet<T,thash>::Iterator& rhs) const { // std::cout << "!=" << std::endl; const Iterator* rhsASI = dynamic_cast<const Iterator*>(&rhs); if (rhsASI == 0) throw IteratorTypeError("HashSet::Iterator::operator !="); if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashSet::Iterator::operator !="); if (ref_set != rhsASI->ref_set) throw ComparingDifferentIteratorsError("HashSet::Iterator::operator !="); return current.second != rhsASI->current.second; } template<class T, int (*thash)(const T& a)> T& HashSet<T,thash>::Iterator::operator *() const { // std::cout << "*()" << std::endl; if (expected_mod_count != ref_set->mod_count) throw ConcurrentModificationError("HashMap::Iterator::operator *"); if (!can_erase || current.second == nullptr) throw IteratorPositionIllegal("HashMap::Iterator::operator * Iterator illegal:"); return current.second->value; } template<class T, int (*thash)(const T& a)> T* HashSet<T,thash>::Iterator::operator ->() const { std::cout << "()" << std::endl; } } #endif /* HASH_SET_HPP_ */
[ "noreply@github.com" ]
bsmorton.noreply@github.com
c0153685b9c850c61e9b84d6eb6de9f4c6bad89c
30fdcda0acaedf16751167e8ba235f8f0bffb72e
/week08/02_10927.cpp
56b3979635ad8d9390adf3916c58cab19cedf832
[]
no_license
s4ichi/Programming-Challenges
17317ba9a16610dd7e948857489216066e7dbf8c
a133188cb6c3f2738ded8cc6c52e24c688711218
refs/heads/master
2021-06-01T06:15:27.953729
2016-07-01T05:25:52
2016-07-01T05:25:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,566
cpp
#include <iostream> #include <cmath> #include <cstdio> #include <algorithm> #include <vector> #include <map> using namespace std; typedef long long ll; typedef pair<ll, pair<int, pair<int, int> > > plii; typedef pair<int, int> point; int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } bool comp(const point a, const point b) { if (a.first == b.first) return a.second < b.second; return a.first < b.first; } int main() { int t = 1; int n; while (cin >> n, n) { vector<plii> v(n); for (int i=0; i<n; i++) { int x, y, z; cin >> x >> y >> z; v[i].second.second.first = x; v[i].second.second.second = y; v[i].second.first = z + 1; v[i].first = (ll)x*(ll)x + (ll)y*(ll)y; } sort(v.begin(), v.end()); vector<point> ans; map<point, int> memo; for (int i=0; i<n; i++) { int x = v[i].second.second.first, y = v[i].second.second.second, z = v[i].second.first; int g = gcd(abs(x), abs(y)); if (x == 0) g = abs(y); else if (y == 0) g = abs(x); if (memo[make_pair(x/g, y/g)] >= z) { ans.push_back(v[i].second.second); } else { memo[make_pair(x/g, y/g)] = z; } } sort(ans.begin(), ans.end(), comp); int k = ans.size(); cout << "Data set " << t++ << ":" << endl; if (k == 0) { cout << "All the lights are visible." << endl; } else { cout << "Some lights are not visible:" << endl; for (int i=0; i<k; i++) { cout << "x = " << ans[i].first << ", y = " << ans[i].second; if (i == k - 1) cout << "." << endl; else cout << ";" << endl; } } } return 0; }
[ "s.wakeup31@gmail.com" ]
s.wakeup31@gmail.com
b1a9a1648110aba50ca2493fc1980340a1ed2aa9
89e39310c56471d73ddf34e953259fff86843137
/Arduino/libraries/ros_lib/jsk_recognition_msgs/PeoplePoseArray.h
f69569db56f725d1c6e15a41c4762c6ac731977f
[]
no_license
minwoominwoominwoo7/edubot_ros_code
a64a5717c8c86695dc07665060471f53d5e2fe86
8ac47c61fa772339b56334a600c5f8f564ee51dc
refs/heads/master
2021-03-23T12:26:57.007466
2020-03-23T15:01:28
2020-03-23T15:01:28
247,452,877
2
1
null
null
null
null
UTF-8
C++
false
false
2,400
h
#ifndef _ROS_jsk_recognition_msgs_PeoplePoseArray_h #define _ROS_jsk_recognition_msgs_PeoplePoseArray_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "jsk_recognition_msgs/PeoplePose.h" namespace jsk_recognition_msgs { class PeoplePoseArray : public ros::Msg { public: typedef std_msgs::Header _header_type; _header_type header; uint32_t poses_length; typedef jsk_recognition_msgs::PeoplePose _poses_type; _poses_type st_poses; _poses_type * poses; PeoplePoseArray(): header(), poses_length(0), poses(NULL) { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; offset += this->header.serialize(outbuffer + offset); *(outbuffer + offset + 0) = (this->poses_length >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->poses_length >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (this->poses_length >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (this->poses_length >> (8 * 3)) & 0xFF; offset += sizeof(this->poses_length); for( uint32_t i = 0; i < poses_length; i++){ offset += this->poses[i].serialize(outbuffer + offset); } return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; offset += this->header.deserialize(inbuffer + offset); uint32_t poses_lengthT = ((uint32_t) (*(inbuffer + offset))); poses_lengthT |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); poses_lengthT |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); poses_lengthT |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->poses_length); if(poses_lengthT > poses_length) this->poses = (jsk_recognition_msgs::PeoplePose*)realloc(this->poses, poses_lengthT * sizeof(jsk_recognition_msgs::PeoplePose)); poses_length = poses_lengthT; for( uint32_t i = 0; i < poses_length; i++){ offset += this->st_poses.deserialize(inbuffer + offset); memcpy( &(this->poses[i]), &(this->st_poses), sizeof(jsk_recognition_msgs::PeoplePose)); } return offset; } const char * getType(){ return "jsk_recognition_msgs/PeoplePoseArray"; }; const char * getMD5(){ return "57d49e8e639421734a0ce15bfde9d80d"; }; }; } #endif
[ "minwoominwoominwoo7@gmail.com" ]
minwoominwoominwoo7@gmail.com
5b287edd390e90060ce87b13de97a2a8c1204150
5b8aafffff8627078b4f07024526fc381230733c
/chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc
1358770365fa855db10cfea3a4f02508f323a9d5
[ "BSD-3-Clause" ]
permissive
attosoft/chromium
a0003c6063c651eb27b7d1e9737c10fd018cabfd
812f7cad9304c91beb846056aa63f94af7fde20e
refs/heads/master
2023-01-05T03:56:44.032949
2018-05-31T12:23:25
2018-05-31T12:23:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
42,858
cc
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/settings/site_settings_handler.h" #include <memory> #include <string> #include "base/test/histogram_tester.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/content_settings/host_content_settings_map_factory.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/extensions/test_extension_system.h" #include "chrome/browser/infobars/infobar_service.h" #include "chrome/browser/ui/browser_window.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/browser/ui/webui/site_settings_helper.h" #include "chrome/test/base/browser_with_test_window_test.h" #include "chrome/test/base/testing_profile.h" #include "components/content_settings/core/browser/host_content_settings_map.h" #include "components/content_settings/core/common/content_settings.h" #include "components/content_settings/core/common/content_settings_types.h" #include "components/content_settings/core/common/pref_names.h" #include "components/infobars/core/infobar.h" #include "components/sync_preferences/testing_pref_service_syncable.h" #include "content/public/browser/navigation_controller.h" #include "content/public/browser/notification_service.h" #include "content/public/browser/web_ui_data_source.h" #include "content/public/test/test_browser_thread_bundle.h" #include "content/public/test/test_web_ui.h" #include "extensions/browser/extension_registry.h" #include "extensions/common/extension_builder.h" #include "ppapi/buildflags/buildflags.h" #include "testing/gtest/include/gtest/gtest.h" #if defined(OS_CHROMEOS) #include "chrome/browser/chromeos/login/users/mock_user_manager.h" #include "components/user_manager/scoped_user_manager.h" #endif #if BUILDFLAG(ENABLE_PLUGINS) #include "chrome/browser/plugins/chrome_plugin_service_filter.h" #endif namespace { constexpr char kCallbackId[] = "test-callback-id"; constexpr char kSetting[] = "setting"; constexpr char kSource[] = "source"; constexpr char kExtensionName[] = "Test Extension"; #if BUILDFLAG(ENABLE_PLUGINS) // Waits until a change is observed in content settings. class FlashContentSettingsChangeWaiter : public content_settings::Observer { public: explicit FlashContentSettingsChangeWaiter(Profile* profile) : profile_(profile) { HostContentSettingsMapFactory::GetForProfile(profile)->AddObserver(this); } ~FlashContentSettingsChangeWaiter() override { HostContentSettingsMapFactory::GetForProfile(profile_)->RemoveObserver( this); } // content_settings::Observer: void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, const ContentSettingsPattern& secondary_pattern, ContentSettingsType content_type, std::string resource_identifier) override { if (content_type == CONTENT_SETTINGS_TYPE_PLUGINS) Proceed(); } void Wait() { run_loop_.Run(); } private: void Proceed() { run_loop_.Quit(); } Profile* profile_; base::RunLoop run_loop_; DISALLOW_COPY_AND_ASSIGN(FlashContentSettingsChangeWaiter); }; #endif } // namespace namespace settings { // Helper class for setting ContentSettings via different sources. class ContentSettingSourceSetter { public: ContentSettingSourceSetter(TestingProfile* profile, ContentSettingsType content_type) : prefs_(profile->GetTestingPrefService()), host_content_settings_map_( HostContentSettingsMapFactory::GetForProfile(profile)), content_type_(content_type) {} void SetPolicyDefault(ContentSetting setting) { prefs_->SetManagedPref(GetPrefNameForDefaultPermissionSetting(), std::make_unique<base::Value>(setting)); } const char* GetPrefNameForDefaultPermissionSetting() { switch (content_type_) { case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: return prefs::kManagedDefaultNotificationsSetting; default: // Add support as needed. NOTREACHED(); return ""; } } private: sync_preferences::TestingPrefServiceSyncable* prefs_; HostContentSettingsMap* host_content_settings_map_; ContentSettingsType content_type_; DISALLOW_COPY_AND_ASSIGN(ContentSettingSourceSetter); }; class SiteSettingsHandlerTest : public testing::Test { public: SiteSettingsHandlerTest() : kNotifications(site_settings::ContentSettingsTypeToGroupName( CONTENT_SETTINGS_TYPE_NOTIFICATIONS)), kCookies(site_settings::ContentSettingsTypeToGroupName( CONTENT_SETTINGS_TYPE_COOKIES)), kFlash(site_settings::ContentSettingsTypeToGroupName( CONTENT_SETTINGS_TYPE_PLUGINS)), handler_(&profile_) { #if defined(OS_CHROMEOS) user_manager_enabler_ = std::make_unique<user_manager::ScopedUserManager>( std::make_unique<chromeos::MockUserManager>()); #endif } void SetUp() override { handler()->set_web_ui(web_ui()); handler()->AllowJavascript(); web_ui()->ClearTrackedCalls(); } TestingProfile* profile() { return &profile_; } content::TestWebUI* web_ui() { return &web_ui_; } SiteSettingsHandler* handler() { return &handler_; } void ValidateDefault(const ContentSetting expected_setting, const site_settings::SiteSettingSource expected_source, size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ(kCallbackId, callback_id); bool success = false; ASSERT_TRUE(data.arg2()->GetAsBoolean(&success)); ASSERT_TRUE(success); const base::DictionaryValue* default_value = nullptr; ASSERT_TRUE(data.arg3()->GetAsDictionary(&default_value)); std::string setting; ASSERT_TRUE(default_value->GetString(kSetting, &setting)); EXPECT_EQ(content_settings::ContentSettingToString(expected_setting), setting); std::string source; if (default_value->GetString(kSource, &source)) EXPECT_EQ(site_settings::SiteSettingSourceToString(expected_source), source); } void ValidateOrigin(const std::string& expected_origin, const std::string& expected_embedding, const std::string& expected_display_name, const ContentSetting expected_setting, const site_settings::SiteSettingSource expected_source, size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ(kCallbackId, callback_id); bool success = false; ASSERT_TRUE(data.arg2()->GetAsBoolean(&success)); ASSERT_TRUE(success); const base::ListValue* exceptions; ASSERT_TRUE(data.arg3()->GetAsList(&exceptions)); EXPECT_EQ(1U, exceptions->GetSize()); const base::DictionaryValue* exception; ASSERT_TRUE(exceptions->GetDictionary(0, &exception)); std::string origin, embedding_origin, display_name, setting, source; ASSERT_TRUE(exception->GetString(site_settings::kOrigin, &origin)); ASSERT_EQ(expected_origin, origin); ASSERT_TRUE( exception->GetString(site_settings::kDisplayName, &display_name)); ASSERT_EQ(expected_display_name, display_name); ASSERT_TRUE(exception->GetString( site_settings::kEmbeddingOrigin, &embedding_origin)); ASSERT_EQ(expected_embedding, embedding_origin); ASSERT_TRUE(exception->GetString(site_settings::kSetting, &setting)); ASSERT_EQ(content_settings::ContentSettingToString(expected_setting), setting); ASSERT_TRUE(exception->GetString(site_settings::kSource, &source)); ASSERT_EQ(site_settings::SiteSettingSourceToString(expected_source), source); } void ValidateNoOrigin(size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ(kCallbackId, callback_id); bool success = false; ASSERT_TRUE(data.arg2()->GetAsBoolean(&success)); ASSERT_TRUE(success); const base::ListValue* exceptions; ASSERT_TRUE(data.arg3()->GetAsList(&exceptions)); EXPECT_EQ(0U, exceptions->GetSize()); } void ValidatePattern(bool expected_validity, size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ(kCallbackId, callback_id); bool success = false; ASSERT_TRUE(data.arg2()->GetAsBoolean(&success)); ASSERT_TRUE(success); bool valid; ASSERT_TRUE(data.arg3()->GetAsBoolean(&valid)); EXPECT_EQ(expected_validity, valid); } void ValidateIncognitoExists( bool expected_incognito, size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIListenerCallback", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ("onIncognitoStatusChanged", callback_id); bool incognito; ASSERT_TRUE(data.arg2()->GetAsBoolean(&incognito)); EXPECT_EQ(expected_incognito, incognito); } void ValidateZoom(const std::string& expected_host, const std::string& expected_zoom, size_t expected_total_calls) { EXPECT_EQ(expected_total_calls, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIListenerCallback", data.function_name()); std::string callback_id; ASSERT_TRUE(data.arg1()->GetAsString(&callback_id)); EXPECT_EQ("onZoomLevelsChanged", callback_id); const base::ListValue* exceptions; ASSERT_TRUE(data.arg2()->GetAsList(&exceptions)); if (expected_host.empty()) { EXPECT_EQ(0U, exceptions->GetSize()); } else { EXPECT_EQ(1U, exceptions->GetSize()); const base::DictionaryValue* exception; ASSERT_TRUE(exceptions->GetDictionary(0, &exception)); std::string host; ASSERT_TRUE(exception->GetString("origin", &host)); ASSERT_EQ(expected_host, host); std::string zoom; ASSERT_TRUE(exception->GetString("zoom", &zoom)); ASSERT_EQ(expected_zoom, zoom); } } void CreateIncognitoProfile() { incognito_profile_ = TestingProfile::Builder().BuildIncognito(&profile_); } void DestroyIncognitoProfile() { content::NotificationService::current()->Notify( chrome::NOTIFICATION_PROFILE_DESTROYED, content::Source<Profile>(static_cast<Profile*>(incognito_profile_)), content::NotificationService::NoDetails()); profile_.SetOffTheRecordProfile(nullptr); ASSERT_FALSE(profile_.HasOffTheRecordProfile()); incognito_profile_ = nullptr; } // Content setting group name for the relevant ContentSettingsType. const std::string kNotifications; const std::string kCookies; const std::string kFlash; private: content::TestBrowserThreadBundle thread_bundle_; TestingProfile profile_; TestingProfile* incognito_profile_; content::TestWebUI web_ui_; SiteSettingsHandler handler_; #if defined(OS_CHROMEOS) std::unique_ptr<user_manager::ScopedUserManager> user_manager_enabler_; #endif }; TEST_F(SiteSettingsHandlerTest, GetAndSetDefault) { // Test the JS -> C++ -> JS callback path for getting and setting defaults. base::ListValue get_args; get_args.AppendString(kCallbackId); get_args.AppendString(kNotifications); handler()->HandleGetDefaultValueForContentType(&get_args); ValidateDefault(CONTENT_SETTING_ASK, site_settings::SiteSettingSource::kDefault, 1U); // Set the default to 'Blocked'. base::ListValue set_args; set_args.AppendString(kNotifications); set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); handler()->HandleSetDefaultValueForContentType(&set_args); EXPECT_EQ(2U, web_ui()->call_data().size()); // Verify that the default has been set to 'Blocked'. handler()->HandleGetDefaultValueForContentType(&get_args); ValidateDefault(CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kDefault, 3U); } TEST_F(SiteSettingsHandlerTest, GetAllSites) { base::ListValue get_all_sites_args; get_all_sites_args.AppendString(kCallbackId); base::Value category_list(base::Value::Type::LIST); category_list.GetList().emplace_back(kNotifications); category_list.GetList().emplace_back(kFlash); get_all_sites_args.GetList().push_back(std::move(category_list)); // Test Chrome built-in defaults are marked as default. handler()->HandleGetAllSites(&get_all_sites_args); EXPECT_EQ(1U, web_ui()->call_data().size()); const content::TestWebUI::CallData& data = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data.function_name()); EXPECT_EQ(kCallbackId, data.arg1()->GetString()); ASSERT_TRUE(data.arg2()->GetBool()); const base::Value::ListStorage& etld1_groups_empty = data.arg3()->GetList(); EXPECT_EQ(0UL, etld1_groups_empty.size()); // Add a couple of exceptions and check they appear in all sites. HostContentSettingsMap* map = HostContentSettingsMapFactory::GetForProfile(profile()); const GURL url1("http://example.com"); const GURL url2("https://other.example.com"); std::string resource_identifier; map->SetContentSettingDefaultScope( url1, url1, CONTENT_SETTINGS_TYPE_NOTIFICATIONS, resource_identifier, CONTENT_SETTING_BLOCK); map->SetContentSettingDefaultScope(url2, url2, CONTENT_SETTINGS_TYPE_PLUGINS, resource_identifier, CONTENT_SETTING_ALLOW); handler()->HandleGetAllSites(&get_all_sites_args); const content::TestWebUI::CallData& data2 = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data2.function_name()); EXPECT_EQ(kCallbackId, data2.arg1()->GetString()); ASSERT_TRUE(data2.arg2()->GetBool()); const base::Value::ListStorage& etld1_groups = data2.arg3()->GetList(); EXPECT_EQ(1UL, etld1_groups.size()); for (const base::Value& etld1 : etld1_groups) { const std::string& etld1_string = etld1.FindKey("etld1")->GetString(); const base::Value::ListStorage& origin_list = etld1.FindKey("origins")->GetList(); EXPECT_EQ("example.com", etld1_string); EXPECT_EQ(2UL, origin_list.size()); EXPECT_EQ(url1.spec(), origin_list[0].GetString()); EXPECT_EQ(url2.spec(), origin_list[1].GetString()); } // Add an additional exception belonging to a different eTLD+1. const GURL url3("https://example2.net"); map->SetContentSettingDefaultScope(url3, url3, CONTENT_SETTINGS_TYPE_PLUGINS, resource_identifier, CONTENT_SETTING_BLOCK); handler()->HandleGetAllSites(&get_all_sites_args); const content::TestWebUI::CallData& data3 = *web_ui()->call_data().back(); EXPECT_EQ("cr.webUIResponse", data3.function_name()); EXPECT_EQ(kCallbackId, data3.arg1()->GetString()); ASSERT_TRUE(data3.arg2()->GetBool()); const base::Value::ListStorage& etld1_groups_multiple = data3.arg3()->GetList(); EXPECT_EQ(2UL, etld1_groups_multiple.size()); for (const base::Value& etld1 : etld1_groups_multiple) { const std::string& etld1_string = etld1.FindKey("etld1")->GetString(); const base::Value::ListStorage& origin_list = etld1.FindKey("origins")->GetList(); if (etld1_string == "example2.net") { EXPECT_EQ(1UL, origin_list.size()); EXPECT_EQ(url3.spec(), origin_list[0].GetString()); } else { EXPECT_EQ("example.com", etld1_string); } } } TEST_F(SiteSettingsHandlerTest, Origins) { const std::string google("https://www.google.com:443"); const std::string uma_base("WebsiteSettings.Menu.PermissionChanged"); { // Test the JS -> C++ -> JS callback path for configuring origins, by // setting Google.com to blocked. base::ListValue set_args; set_args.AppendString(google); // Primary pattern. set_args.AppendString(google); // Secondary pattern. set_args.AppendString(kNotifications); set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); set_args.AppendBoolean(false); // Incognito. base::HistogramTester histograms; handler()->HandleSetCategoryPermissionForPattern(&set_args); EXPECT_EQ(1U, web_ui()->call_data().size()); histograms.ExpectTotalCount(uma_base, 1); histograms.ExpectTotalCount(uma_base + ".Allowed", 0); histograms.ExpectTotalCount(uma_base + ".Blocked", 1); histograms.ExpectTotalCount(uma_base + ".Reset", 0); histograms.ExpectTotalCount(uma_base + ".SessionOnly", 0); } base::ListValue get_exception_list_args; get_exception_list_args.AppendString(kCallbackId); get_exception_list_args.AppendString(kNotifications); handler()->HandleGetExceptionList(&get_exception_list_args); ValidateOrigin(google, google, google, CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kPreference, 2U); { // Reset things back to how they were. base::ListValue reset_args; reset_args.AppendString(google); reset_args.AppendString(google); reset_args.AppendString(kNotifications); reset_args.AppendBoolean(false); // Incognito. base::HistogramTester histograms; handler()->HandleResetCategoryPermissionForPattern(&reset_args); EXPECT_EQ(3U, web_ui()->call_data().size()); histograms.ExpectTotalCount(uma_base, 1); histograms.ExpectTotalCount(uma_base + ".Allowed", 0); histograms.ExpectTotalCount(uma_base + ".Blocked", 0); histograms.ExpectTotalCount(uma_base + ".Reset", 1); } // Verify the reset was successful. handler()->HandleGetExceptionList(&get_exception_list_args); ValidateNoOrigin(4U); } TEST_F(SiteSettingsHandlerTest, DefaultSettingSource) { // Use a non-default port to verify the display name does not strip this off. const std::string google("https://www.google.com:183"); ContentSettingSourceSetter source_setter(profile(), CONTENT_SETTINGS_TYPE_NOTIFICATIONS); base::ListValue get_origin_permissions_args; get_origin_permissions_args.AppendString(kCallbackId); get_origin_permissions_args.AppendString(google); auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); get_origin_permissions_args.Append(std::move(category_list)); // Test Chrome built-in defaults are marked as default. handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(google, google, google, CONTENT_SETTING_ASK, site_settings::SiteSettingSource::kDefault, 1U); base::ListValue default_value_args; default_value_args.AppendString(kNotifications); default_value_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); handler()->HandleSetDefaultValueForContentType(&default_value_args); // A user-set global default should also show up as default. handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(google, google, google, CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kDefault, 3U); base::ListValue set_notification_pattern_args; set_notification_pattern_args.AppendString("[*.]google.com"); set_notification_pattern_args.AppendString("*"); set_notification_pattern_args.AppendString(kNotifications); set_notification_pattern_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_ALLOW)); set_notification_pattern_args.AppendBoolean(false); handler()->HandleSetCategoryPermissionForPattern( &set_notification_pattern_args); // A user-set pattern should not show up as default. handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(google, google, google, CONTENT_SETTING_ALLOW, site_settings::SiteSettingSource::kPreference, 5U); base::ListValue set_notification_origin_args; set_notification_origin_args.AppendString(google); set_notification_origin_args.AppendString(google); set_notification_origin_args.AppendString(kNotifications); set_notification_origin_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); set_notification_origin_args.AppendBoolean(false); handler()->HandleSetCategoryPermissionForPattern( &set_notification_origin_args); // A user-set per-origin permission should not show up as default. handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(google, google, google, CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kPreference, 7U); // Enterprise-policy set defaults should not show up as default. source_setter.SetPolicyDefault(CONTENT_SETTING_ALLOW); handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(google, google, google, CONTENT_SETTING_ALLOW, site_settings::SiteSettingSource::kPolicy, 8U); } TEST_F(SiteSettingsHandlerTest, GetAndSetOriginPermissions) { const std::string origin_with_port("https://www.example.com:443"); // The display name won't show the port if it's default for that scheme. const std::string origin("https://www.example.com"); base::ListValue get_args; get_args.AppendString(kCallbackId); get_args.AppendString(origin_with_port); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); get_args.Append(std::move(category_list)); } handler()->HandleGetOriginPermissions(&get_args); ValidateOrigin(origin_with_port, origin_with_port, origin, CONTENT_SETTING_ASK, site_settings::SiteSettingSource::kDefault, 1U); // Block notifications. base::ListValue set_args; set_args.AppendString(origin_with_port); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); set_args.Append(std::move(category_list)); } set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); handler()->HandleSetOriginPermissions(&set_args); EXPECT_EQ(2U, web_ui()->call_data().size()); // Reset things back to how they were. base::ListValue reset_args; reset_args.AppendString(origin_with_port); auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); reset_args.Append(std::move(category_list)); reset_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_DEFAULT)); handler()->HandleSetOriginPermissions(&reset_args); EXPECT_EQ(3U, web_ui()->call_data().size()); // Verify the reset was successful. handler()->HandleGetOriginPermissions(&get_args); ValidateOrigin(origin_with_port, origin_with_port, origin, CONTENT_SETTING_ASK, site_settings::SiteSettingSource::kDefault, 4U); } #if BUILDFLAG(ENABLE_PLUGINS) TEST_F(SiteSettingsHandlerTest, ChangingFlashSettingForSiteIsRemembered) { ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( profile(), profile()->GetResourceContext()); FlashContentSettingsChangeWaiter waiter(profile()); const std::string origin_with_port("https://www.example.com:443"); // The display name won't show the port if it's default for that scheme. const std::string origin("https://www.example.com"); base::ListValue get_args; get_args.AppendString(kCallbackId); get_args.AppendString(origin_with_port); const GURL url(origin_with_port); HostContentSettingsMap* map = HostContentSettingsMapFactory::GetForProfile(profile()); // Make sure the site being tested doesn't already have this marker set. EXPECT_EQ(nullptr, map->GetWebsiteSetting(url, url, CONTENT_SETTINGS_TYPE_PLUGINS_DATA, std::string(), nullptr)); // Change the Flash setting. base::ListValue set_args; set_args.AppendString(origin_with_port); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kFlash); set_args.Append(std::move(category_list)); } set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); handler()->HandleSetOriginPermissions(&set_args); EXPECT_EQ(1U, web_ui()->call_data().size()); waiter.Wait(); // Check that this site has now been marked for displaying Flash always, then // clear it and check this works. EXPECT_NE(nullptr, map->GetWebsiteSetting(url, url, CONTENT_SETTINGS_TYPE_PLUGINS_DATA, std::string(), nullptr)); base::ListValue clear_args; clear_args.AppendString(origin_with_port); handler()->HandleSetOriginPermissions(&set_args); handler()->HandleClearFlashPref(&clear_args); EXPECT_EQ(nullptr, map->GetWebsiteSetting(url, url, CONTENT_SETTINGS_TYPE_PLUGINS_DATA, std::string(), nullptr)); } #endif TEST_F(SiteSettingsHandlerTest, GetAndSetForInvalidURLs) { const std::string origin("arbitrary string"); EXPECT_FALSE(GURL(origin).is_valid()); base::ListValue get_args; get_args.AppendString(kCallbackId); get_args.AppendString(origin); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); get_args.Append(std::move(category_list)); } handler()->HandleGetOriginPermissions(&get_args); // Verify that it'll return CONTENT_SETTING_BLOCK as |origin| is not a secure // context, a requirement for notifications. Note that the display string // will be blank since it's an invalid URL. ValidateOrigin(origin, origin, "", CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kInsecureOrigin, 1U); // Make sure setting a permission on an invalid origin doesn't crash. base::ListValue set_args; set_args.AppendString(origin); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); set_args.Append(std::move(category_list)); } set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_ALLOW)); handler()->HandleSetOriginPermissions(&set_args); // Also make sure the content setting for |origin| wasn't actually changed. handler()->HandleGetOriginPermissions(&get_args); ValidateOrigin(origin, origin, "", CONTENT_SETTING_BLOCK, site_settings::SiteSettingSource::kInsecureOrigin, 2U); } TEST_F(SiteSettingsHandlerTest, ExceptionHelpers) { ContentSettingsPattern pattern = ContentSettingsPattern::FromString("[*.]google.com"); std::unique_ptr<base::DictionaryValue> exception = site_settings::GetExceptionForPage( pattern, pattern, pattern.ToString(), CONTENT_SETTING_BLOCK, site_settings::SiteSettingSourceToString( site_settings::SiteSettingSource::kPreference), false); std::string primary_pattern, secondary_pattern, display_name, type; bool incognito; CHECK(exception->GetString(site_settings::kOrigin, &primary_pattern)); CHECK(exception->GetString(site_settings::kDisplayName, &display_name)); CHECK(exception->GetString(site_settings::kEmbeddingOrigin, &secondary_pattern)); CHECK(exception->GetString(site_settings::kSetting, &type)); CHECK(exception->GetBoolean(site_settings::kIncognito, &incognito)); base::ListValue args; args.AppendString(primary_pattern); args.AppendString(secondary_pattern); args.AppendString(kNotifications); // Chosen arbitrarily. args.AppendString(type); args.AppendBoolean(incognito); // We don't need to check the results. This is just to make sure it doesn't // crash on the input. handler()->HandleSetCategoryPermissionForPattern(&args); scoped_refptr<const extensions::Extension> extension; extension = extensions::ExtensionBuilder() .SetManifest(extensions::DictionaryBuilder() .Set("name", kExtensionName) .Set("version", "1.0.0") .Set("manifest_version", 2) .Build()) .SetID("ahfgeienlihckogmohjhadlkjgocpleb") .Build(); std::unique_ptr<base::ListValue> exceptions(new base::ListValue); site_settings::AddExceptionForHostedApp( "[*.]google.com", *extension.get(), exceptions.get()); const base::DictionaryValue* dictionary; CHECK(exceptions->GetDictionary(0, &dictionary)); CHECK(dictionary->GetString(site_settings::kOrigin, &primary_pattern)); CHECK(dictionary->GetString(site_settings::kDisplayName, &display_name)); CHECK(dictionary->GetString(site_settings::kEmbeddingOrigin, &secondary_pattern)); CHECK(dictionary->GetString(site_settings::kSetting, &type)); CHECK(dictionary->GetBoolean(site_settings::kIncognito, &incognito)); // Again, don't need to check the results. handler()->HandleSetCategoryPermissionForPattern(&args); } TEST_F(SiteSettingsHandlerTest, ExtensionDisplayName) { auto* extension_registry = extensions::ExtensionRegistry::Get(profile()); std::string test_extension_id = "test-extension-url"; std::string test_extension_url = "chrome-extension://" + test_extension_id; scoped_refptr<const extensions::Extension> extension = extensions::ExtensionBuilder() .SetManifest(extensions::DictionaryBuilder() .Set("name", kExtensionName) .Set("version", "1.0.0") .Set("manifest_version", 2) .Build()) .SetID(test_extension_id) .Build(); extension_registry->AddEnabled(extension); base::ListValue get_origin_permissions_args; get_origin_permissions_args.AppendString(kCallbackId); get_origin_permissions_args.AppendString(test_extension_url); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); get_origin_permissions_args.Append(std::move(category_list)); } handler()->HandleGetOriginPermissions(&get_origin_permissions_args); ValidateOrigin(test_extension_url, test_extension_url, kExtensionName, CONTENT_SETTING_ASK, site_settings::SiteSettingSource::kDefault, 1U); } TEST_F(SiteSettingsHandlerTest, Patterns) { base::ListValue args; std::string pattern("[*.]google.com"); args.AppendString(kCallbackId); args.AppendString(pattern); handler()->HandleIsPatternValid(&args); ValidatePattern(true, 1U); base::ListValue invalid; std::string bad_pattern(";"); invalid.AppendString(kCallbackId); invalid.AppendString(bad_pattern); handler()->HandleIsPatternValid(&invalid); ValidatePattern(false, 2U); // The wildcard pattern ('*') is a valid pattern, but not allowed to be // entered in site settings as it changes the default setting. // (crbug.com/709539). base::ListValue invalid_wildcard; std::string bad_pattern_wildcard("*"); invalid_wildcard.AppendString(kCallbackId); invalid_wildcard.AppendString(bad_pattern_wildcard); handler()->HandleIsPatternValid(&invalid_wildcard); ValidatePattern(false, 3U); } TEST_F(SiteSettingsHandlerTest, Incognito) { base::ListValue args; handler()->HandleUpdateIncognitoStatus(&args); ValidateIncognitoExists(false, 1U); CreateIncognitoProfile(); ValidateIncognitoExists(true, 2U); DestroyIncognitoProfile(); ValidateIncognitoExists(false, 3U); } TEST_F(SiteSettingsHandlerTest, ZoomLevels) { std::string host("http://www.google.com"); double zoom_level = 1.1; content::HostZoomMap* host_zoom_map = content::HostZoomMap::GetDefaultForBrowserContext(profile()); host_zoom_map->SetZoomLevelForHost(host, zoom_level); ValidateZoom(host, "122%", 1U); base::ListValue args; handler()->HandleFetchZoomLevels(&args); ValidateZoom(host, "122%", 2U); args.AppendString("http://www.google.com"); handler()->HandleRemoveZoomLevel(&args); ValidateZoom("", "", 3U); double default_level = host_zoom_map->GetDefaultZoomLevel(); double level = host_zoom_map->GetZoomLevelForHostAndScheme("http", host); EXPECT_EQ(default_level, level); } class SiteSettingsHandlerInfobarTest : public BrowserWithTestWindowTest { public: SiteSettingsHandlerInfobarTest() : kNotifications(site_settings::ContentSettingsTypeToGroupName( CONTENT_SETTINGS_TYPE_NOTIFICATIONS)) {} void SetUp() override { BrowserWithTestWindowTest::SetUp(); handler_ = std::make_unique<SiteSettingsHandler>(profile()); handler()->set_web_ui(web_ui()); handler()->AllowJavascript(); web_ui()->ClearTrackedCalls(); window2_ = base::WrapUnique(CreateBrowserWindow()); browser2_ = base::WrapUnique( CreateBrowser(profile(), browser()->type(), false, window2_.get())); extensions::TestExtensionSystem* extension_system = static_cast<extensions::TestExtensionSystem*>( extensions::ExtensionSystem::Get(profile())); extension_system->CreateExtensionService( base::CommandLine::ForCurrentProcess(), base::FilePath(), false); } void TearDown() override { // SiteSettingsHandler maintains a HostZoomMap::Subscription internally, so // make sure that's cleared before BrowserContext / profile destruction. handler()->DisallowJavascript(); // Also destroy |browser2_| before the profile. browser()'s destruction is // handled in BrowserWithTestWindowTest::TearDown(). browser2()->tab_strip_model()->CloseAllTabs(); browser2_.reset(); BrowserWithTestWindowTest::TearDown(); } InfoBarService* GetInfobarServiceForTab(Browser* browser, int tab_index, GURL* tab_url) { content::WebContents* web_contents = browser->tab_strip_model()->GetWebContentsAt(tab_index); if (tab_url) *tab_url = web_contents->GetLastCommittedURL(); return InfoBarService::FromWebContents(web_contents); } content::TestWebUI* web_ui() { return &web_ui_; } SiteSettingsHandler* handler() { return handler_.get(); } Browser* browser2() { return browser2_.get(); } const std::string kNotifications; private: content::TestWebUI web_ui_; std::unique_ptr<SiteSettingsHandler> handler_; std::unique_ptr<BrowserWindow> window2_; std::unique_ptr<Browser> browser2_; DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandlerInfobarTest); }; TEST_F(SiteSettingsHandlerInfobarTest, SettingPermissionsTriggersInfobar) { // Note all GURLs starting with 'origin' below belong to the same origin. // _____ _______________ ________ ________ ___________ // Window 1: / foo \' origin_anchor \' chrome \' origin \' extension \ // ------------- ----------------------------------------------------- std::string origin_anchor_string = "https://www.example.com/with/path/blah#heading"; const GURL foo("http://foo"); const GURL origin_anchor(origin_anchor_string); const GURL chrome("chrome://about"); const GURL origin("https://www.example.com/"); const GURL extension( "chrome-extension://fooooooooooooooooooooooooooooooo/bar.html"); // Make sure |extension|'s extension ID exists before navigating to it. This // fixes a test timeout that occurs with --enable-browser-side-navigation on. scoped_refptr<const extensions::Extension> test_extension = extensions::ExtensionBuilder("Test") .SetID("fooooooooooooooooooooooooooooooo") .Build(); extensions::ExtensionSystem::Get(profile()) ->extension_service() ->AddExtension(test_extension.get()); // __________ ______________ ___________________ _______ // Window 2: / insecure '/ origin_query \' example_subdomain \' about \ // ------------------------- -------------------------------- const GURL insecure("http://www.example.com/"); const GURL origin_query("https://www.example.com/?param=value"); const GURL example_subdomain("https://subdomain.example.com/"); const GURL about(url::kAboutBlankURL); // Set up. Note AddTab() adds tab at index 0, so add them in reverse order. AddTab(browser(), extension); AddTab(browser(), origin); AddTab(browser(), chrome); AddTab(browser(), origin_anchor); AddTab(browser(), foo); for (int i = 0; i < browser()->tab_strip_model()->count(); ++i) { EXPECT_EQ(0u, GetInfobarServiceForTab(browser(), i, nullptr)->infobar_count()); } AddTab(browser2(), about); AddTab(browser2(), example_subdomain); AddTab(browser2(), origin_query); AddTab(browser2(), insecure); for (int i = 0; i < browser2()->tab_strip_model()->count(); ++i) { EXPECT_EQ(0u, GetInfobarServiceForTab(browser2(), i, nullptr)->infobar_count()); } // Block notifications. base::ListValue set_args; set_args.AppendString(origin_anchor_string); { auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); set_args.Append(std::move(category_list)); } set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_BLOCK)); handler()->HandleSetOriginPermissions(&set_args); // Make sure all tabs belonging to the same origin as |origin_anchor| have an // infobar shown. GURL tab_url; for (int i = 0; i < browser()->tab_strip_model()->count(); ++i) { if (i == /*origin_anchor=*/1 || i == /*origin=*/3) { EXPECT_EQ( 1u, GetInfobarServiceForTab(browser(), i, &tab_url)->infobar_count()); EXPECT_TRUE(url::IsSameOriginWith(origin, tab_url)); } else { EXPECT_EQ( 0u, GetInfobarServiceForTab(browser(), i, &tab_url)->infobar_count()); EXPECT_FALSE(url::IsSameOriginWith(origin, tab_url)); } } for (int i = 0; i < browser2()->tab_strip_model()->count(); ++i) { if (i == /*origin_query=*/1) { EXPECT_EQ( 1u, GetInfobarServiceForTab(browser2(), i, &tab_url)->infobar_count()); EXPECT_TRUE(url::IsSameOriginWith(origin, tab_url)); } else { EXPECT_EQ( 0u, GetInfobarServiceForTab(browser2(), i, &tab_url)->infobar_count()); EXPECT_FALSE(url::IsSameOriginWith(origin, tab_url)); } } // Navigate the |foo| tab to the same origin as |origin_anchor|, and the // |origin_query| tab to a different origin. const GURL origin_path("https://www.example.com/path/to/page.html"); content::NavigationController* foo_controller = &browser() ->tab_strip_model() ->GetWebContentsAt(/*foo=*/0) ->GetController(); NavigateAndCommit(foo_controller, origin_path); const GURL example_without_www("https://example.com/"); content::NavigationController* origin_query_controller = &browser2() ->tab_strip_model() ->GetWebContentsAt(/*origin_query=*/1) ->GetController(); NavigateAndCommit(origin_query_controller, example_without_www); // Reset all permissions. base::ListValue reset_args; reset_args.AppendString(origin_anchor_string); auto category_list = std::make_unique<base::ListValue>(); category_list->AppendString(kNotifications); reset_args.Append(std::move(category_list)); reset_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_DEFAULT)); handler()->HandleSetOriginPermissions(&reset_args); // Check the same tabs (plus the tab navigated to |origin_path|) still have // infobars showing. for (int i = 0; i < browser()->tab_strip_model()->count(); ++i) { if (i == /*origin_path=*/0 || i == /*origin_anchor=*/1 || i == /*origin=*/3) { EXPECT_EQ( 1u, GetInfobarServiceForTab(browser(), i, &tab_url)->infobar_count()); EXPECT_TRUE(url::IsSameOriginWith(origin, tab_url)); } else { EXPECT_EQ( 0u, GetInfobarServiceForTab(browser(), i, &tab_url)->infobar_count()); EXPECT_FALSE(url::IsSameOriginWith(origin, tab_url)); } } // The infobar on the original |origin_query| tab (which has now been // navigated to |example_without_www|) should disappear. for (int i = 0; i < browser2()->tab_strip_model()->count(); ++i) { EXPECT_EQ( 0u, GetInfobarServiceForTab(browser2(), i, &tab_url)->infobar_count()); EXPECT_FALSE(url::IsSameOriginWith(origin, tab_url)); } // Make sure it's the correct infobar that's being shown. EXPECT_EQ(infobars::InfoBarDelegate::PAGE_INFO_INFOBAR_DELEGATE, GetInfobarServiceForTab(browser(), /*origin_path=*/0, &tab_url) ->infobar_at(0) ->delegate() ->GetIdentifier()); EXPECT_TRUE(url::IsSameOriginWith(origin, tab_url)); } TEST_F(SiteSettingsHandlerTest, SessionOnlyException) { const std::string google_with_port("https://www.google.com:443"); const std::string uma_base("WebsiteSettings.Menu.PermissionChanged"); base::ListValue set_args; set_args.AppendString(google_with_port); // Primary pattern. set_args.AppendString(google_with_port); // Secondary pattern. set_args.AppendString(kCookies); set_args.AppendString( content_settings::ContentSettingToString(CONTENT_SETTING_SESSION_ONLY)); set_args.AppendBoolean(false); // Incognito. base::HistogramTester histograms; handler()->HandleSetCategoryPermissionForPattern(&set_args); EXPECT_EQ(1U, web_ui()->call_data().size()); histograms.ExpectTotalCount(uma_base, 1); histograms.ExpectTotalCount(uma_base + ".SessionOnly", 1); } } // namespace settings
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
7d31eb11b0d0792e5c2c7f3083c90ffcf9f9f2cf
51765e06d1d54446fd9be373d39a7a57a3ba8ae5
/DebugViewConsole/stdafx.cpp
1cecd7d3ea50e8f1c3469005e2aecc1bcd3544b7
[ "BSL-1.0" ]
permissive
MarkGoldberg/DebugViewPP
7b7786cbab54686e67cb91e3e72bfec46a25b948
7fbd244dcbf25db969f8118c9a9b2931b814f99b
refs/heads/master
2021-01-20T17:47:02.146463
2014-02-04T20:50:20
2014-02-04T20:50:20
16,557,315
0
0
null
null
null
null
UTF-8
C++
false
false
291
cpp
// stdafx.cpp : source file that includes just the standard includes // DebugViewCmd.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
[ "janwilmans@gmail.com" ]
janwilmans@gmail.com
4fff5c549847f2e6e92cf9fc5072f5e7b4327100
83907c6524f525c61ac81a3835584e5ec3716f15
/RangeSumQuery-2D-Immutable.cpp
269b5cbcae6b35ab816bf4a185b0824d759b13f8
[]
no_license
shikharkrdixit/comp-coding
ea395c9a33fc3fc9eb68713796d5d0cb81c31954
9c9bfc2b56b5e650bb0e84fc7052a5ea93ed6bd2
refs/heads/main
2023-07-31T21:07:52.210721
2021-10-01T14:45:48
2021-10-01T14:45:48
354,348,641
0
1
null
2021-04-10T06:41:38
2021-04-03T17:07:32
C++
UTF-8
C++
false
false
909
cpp
class NumMatrix { public: vector<vector<int>> ans; NumMatrix(vector<vector<int>>& matrix) { int n=matrix.size(); int m=matrix[0].size(); ans= vector<vector<int>>(n,vector<int>(m,0)); for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ ans[i][j]=matrix[i][j]; if(i-1>=0) ans[i][j]+=ans[i-1][j]; if(j-1>=0) ans[i][j]+=ans[i][j-1]; if(i-1>=0 and j-1>=0) ans[i][j]-=ans[i-1][j-1]; } } } int sumRegion(int row1, int col1, int row2, int col2) { int val=ans[row2][col2]; if(row1-1>=0) val-=ans[row1-1][col2]; if(col1-1>=0) val-=ans[row2][col1-1]; if(row1-1>=0 and col1-1>=0) val+=ans[row1-1][col1-1]; return val; } };
[ "sdixit362@gmail.com" ]
sdixit362@gmail.com
86ddc4fee29a15a22d03278cdd41386f4b1af9a3
ebc0847a666d690e0271a2a190fa40b6888cf275
/Toolbar/DynamicToolBar/DynamicToolBarDlg.cpp
8fe3f264be6487a26f45afb0c34dc1fd55f33b20
[]
no_license
hackerlank/cosps
59ba7eefde9bf11e29515529839a17be3a9ff7f4
23c008c08a7efb846d098a3db738e22a7c3eb365
refs/heads/master
2020-06-12T18:27:21.633457
2015-01-01T12:42:26
2015-01-01T12:42:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,957
cpp
// DynamicToolBarDlg.cpp : implementation file // #include "stdafx.h" #include "DynamicToolBar.h" #include "DynamicToolBarDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDynamicToolBarDlg dialog void DialogCreateIndirect(CDialog *pWnd, UINT uID) { #if 0 // This could be a nice way to change the font size of the main windows without needing // to re-design the dialog resources. However, that technique does not work for the // SearchWnd and it also introduces new glitches (which would need to get resolved) // in almost all of the main windows. CDialogTemplate dlgTempl; dlgTempl.Load(MAKEINTRESOURCE(uID)); dlgTempl.SetFont(_T("MS Shell Dlg"), 8); pWnd->CreateIndirect(dlgTempl.m_hTemplate); FreeResource(dlgTempl.Detach()); #else pWnd->Create(uID); #endif } CDynamicToolBarDlg::CDynamicToolBarDlg(CWnd* pParent /*=NULL*/) : CResizableDialog(CDynamicToolBarDlg::IDD, pParent) { //{{AFX_DATA_INIT(CDynamicToolBarDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); toolbar = new CMyToolBarCtrl(); pDlg1 = new CDlg1(); pDlg2 = new CDlg2(); activewnd = NULL; m_bkBrush = NULL; m_bUseReBar = TRUE; m_dwGripTempState = 1; } CDynamicToolBarDlg::~CDynamicToolBarDlg() { delete toolbar; delete pDlg1; delete pDlg2; if(m_bkBrush != NULL) { m_bkBrush->DeleteObject(); delete m_bkBrush; m_bkBrush = NULL; } if(bitmap != NULL) { delete bitmap; bitmap = NULL; } } void CDynamicToolBarDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDynamicToolBarDlg) DDX_Control(pDX, IDC_STATIC_STATUS_BAR, m_staticStatusBar); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDynamicToolBarDlg, CResizableDialog) //{{AFX_MSG_MAP(CDynamicToolBarDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_ERASEBKGND() ON_WM_QUERYDRAGICON() ON_REGISTERED_MESSAGE(UM_TOOLBARCTRLX_REFRESH, OnToolBarRefresh) ON_WM_DESTROY() ON_WM_SIZE() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDynamicToolBarDlg message handlers LRESULT CDynamicToolBarDlg::OnToolBarRefresh(WPARAM wParam, LPARAM lParam) { if(m_ctlMainTopReBar.m_hWnd) { RemoveAnchor(m_ctlMainTopReBar.m_hWnd); REBARBANDINFO rbbi = {0}; CSize sizeBar; toolbar->GetMaxSize(&sizeBar); ASSERT( sizeBar.cx != 0 && sizeBar.cy != 0 ); rbbi.cbSize = sizeof(rbbi); rbbi.fMask = RBBIM_CHILDSIZE | RBBIM_IDEALSIZE; rbbi.cxMinChild = sizeBar.cy; rbbi.cyMinChild = sizeBar.cy; rbbi.cxIdeal = sizeBar.cx; VERIFY( m_ctlMainTopReBar.SetBandInfo(0, &rbbi) ); AddAnchor(m_ctlMainTopReBar.m_hWnd, TOP_LEFT, TOP_RIGHT); } else { RemoveAnchor(toolbar->m_hWnd); AddAnchor(toolbar->m_hWnd, TOP_LEFT, TOP_RIGHT); } CRect rToolbarRect; toolbar->GetWindowRect(&rToolbarRect); CRect rClientRect; GetClientRect(&rClientRect); CRect rStatusbarRect; // statusbar->GetWindowRect(&rStatusbarRect); // m_bar.GetWindowRect(&rStatusbarRect); m_staticStatusBar.GetWindowRect(&rStatusbarRect); rClientRect.top += rToolbarRect.Height(); rClientRect.bottom -= rStatusbarRect.Height(); CRect rcClient = rClientRect; AfxTrace("rcClient(%d, %d, %d, %d)\n", rcClient.left, rcClient.top, rcClient.Width(), rcClient.Height()); CWnd* apWnds[] = { pDlg1, pDlg2 }; int count = sizeof(apWnds) / sizeof(apWnds[0]); for (int i = 0; i < count; i++) { apWnds[i]->SetWindowPos(NULL, rcClient.left, rcClient.top, rcClient.Width(), rcClient.Height(), SWP_NOZORDER); RemoveAnchor(apWnds[i]->m_hWnd); AddAnchor(apWnds[i]->m_hWnd, TOP_LEFT, BOTTOM_RIGHT); } return TRUE; } BOOL CDynamicToolBarDlg::OnInitDialog() { CResizableDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { CString strAboutMenu; strAboutMenu.LoadString(IDS_ABOUTBOX); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon // TODO: Add extra initialization here m_hToolBarBkBmp = (HBITMAP)::LoadImage(NULL, _T(".\\res\\background.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); bitmap = new CBitmap(); bitmap->LoadBitmap(IDB_BKG); m_bkBrush = new CBrush; m_bkBrush->CreatePatternBrush(bitmap); MENUINFO MenuInfo = {0}; MenuInfo.cbSize = sizeof(MenuInfo); MenuInfo.hbrBack = *m_bkBrush; // Brush you want to draw MenuInfo.fMask = MIM_BACKGROUND; MenuInfo.dwStyle = MNS_AUTODISMISS; CMenu* pMenu = this->GetMenu(); if(IsMenu(pMenu->m_hMenu)) { SetMenuInfo(pMenu->m_hMenu, &MenuInfo); } Init(); return TRUE; // return TRUE unless you set the focus to a control } void CDynamicToolBarDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CResizableDialog::OnSysCommand(nID, lParam); } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. BOOL CDynamicToolBarDlg::OnEraseBkgnd(CDC* pDC) { BOOL bRet = CResizableDialog::OnEraseBkgnd(pDC); return bRet; } void CDynamicToolBarDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { CResizableDialog::OnPaint(); } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CDynamicToolBarDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon; } static UINT BASED_CODE indicators[] = { ID_INDICATOR_NISH, ID_INDICATOR_TIME }; void CDynamicToolBarDlg::Init() { CWnd* pwndToolbarX = toolbar; if (toolbar->Create(WS_VISIBLE | WS_CHILD | CCS_TOP | CCS_NODIVIDER | 0x00000010L |TBSTYLE_TOOLTIPS | TBSTYLE_FLAT | TBSTYLE_TRANSPARENT | TBSTYLE_LIST, CRect(0,0,0,0), this, IDC_TOOLBAR)) { if(IsUseReBar()) { toolbar->ModifyStyle(0, CCS_NORESIZE); toolbar->SetExtendedStyle(toolbar->GetExtendedStyle() | TBSTYLE_EX_HIDECLIPPEDBUTTONS); } toolbar->Init(); pwndToolbarX = InitReBar(); } SetStatusBarPartsSize(); DialogCreateIndirect(pDlg1, IDD_DIALOG1); DialogCreateIndirect(pDlg2, IDD_DIALOG2); // if still no active window, activate server window if (activewnd == NULL) SetActiveDialog(pDlg1); // adjust all main window sizes for toolbar height and maximize the child windows CRect rcClient, rcToolbar, rcStatusbar; GetClientRect(&rcClient); pwndToolbarX->GetWindowRect(&rcToolbar); rcStatusbar.SetRectEmpty();; m_staticStatusBar.GetWindowRect(&rcStatusbar); rcClient.top += rcToolbar.Height(); rcClient.bottom -= rcStatusbar.Height(); CWnd* apWnds[] = { pDlg1, pDlg2 }; int count = sizeof(apWnds) / sizeof(apWnds[0]); for (int i = 0; i < count; i++) apWnds[i]->SetWindowPos(NULL, rcClient.left, rcClient.top, rcClient.Width(), rcClient.Height(), SWP_NOZORDER); // anchors AddAnchor(*pDlg1, TOP_LEFT, BOTTOM_RIGHT); AddAnchor(*pDlg2, TOP_LEFT, BOTTOM_RIGHT); AddAnchor(*pwndToolbarX, TOP_LEFT, TOP_RIGHT); AddAnchor(m_staticStatusBar.m_hWnd, BOTTOM_LEFT, BOTTOM_RIGHT); ShowSizeGrip(&m_dwGripTempState); UpdateSizeGrip(); } void CDynamicToolBarDlg::SetActiveDialog(CWnd* dlg) { if (dlg == activewnd) return; if (activewnd) activewnd->ShowWindow(SW_HIDE); dlg->ShowWindow(SW_SHOW); dlg->SetFocus(); activewnd = dlg; } BOOL CDynamicToolBarDlg::OnCommand(WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class switch(wParam) { case TBBTN_DLG1: SetActiveDialog(pDlg1); break; case TBBTN_DLG2: SetActiveDialog(pDlg2); break; case TBBTN_CHANGESTYLE: { EToolbarLabelType eLabelType = toolbar->GetLabelType(); if(eLabelType == NoLabels) { eLabelType = LabelsBelow; } else { eLabelType = (EToolbarLabelType)(3 - eLabelType); } toolbar->ChangeTextLabelStyle(eLabelType, true); } break; case TBBTN_NO_LABEL: { toolbar->ChangeTextLabelStyle(NoLabels, true); } break; case TBBTN_CHANGE_TBBK: { REBARBANDINFO rbbi = {0}; rbbi.cbSize = sizeof(rbbi); rbbi.fMask = RBBIM_BACKGROUND; if(m_ctlMainTopReBar.GetBandInfo(0, &rbbi)) { if(rbbi.hbmBack) { toolbar->UpdateBackground(NULL); } else { toolbar->UpdateBackground(m_hToolBarBkBmp); } toolbar->Invalidate(); } } break; } return CResizableDialog::OnCommand(wParam, lParam); } CWnd* CDynamicToolBarDlg::InitReBar() { if(!IsUseReBar()) { return toolbar; } if (m_ctlMainTopReBar.Create(WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | RBS_BANDBORDERS | RBS_AUTOSIZE | CCS_NODIVIDER | 0x00000010L, CRect(0, 0, 0, 0), this, AFX_IDW_REBAR)) { CSize sizeBar; VERIFY( toolbar->GetMaxSize(&sizeBar) ); REBARBANDINFO rbbi = {0}; rbbi.cbSize = sizeof(rbbi); rbbi.fMask = RBBIM_STYLE | RBBIM_SIZE | RBBIM_CHILD | RBBIM_CHILDSIZE | RBBIM_IDEALSIZE | RBBIM_ID; rbbi.fStyle = RBBS_NOGRIPPER | RBBS_BREAK | RBBS_USECHEVRON; rbbi.hwndChild = toolbar->m_hWnd; rbbi.cxMinChild = sizeBar.cy; rbbi.cyMinChild = sizeBar.cy; rbbi.cxIdeal = sizeBar.cx; rbbi.cx = rbbi.cxIdeal; rbbi.wID = 0; VERIFY( m_ctlMainTopReBar.InsertBand((UINT)-1, &rbbi) ); toolbar->SetParentReBarWnd(m_ctlMainTopReBar.m_hWnd); toolbar->UpdateBackground(m_hToolBarBkBmp); return &m_ctlMainTopReBar; } return toolbar; } BOOL CDynamicToolBarDlg::IsUseReBar() { CDynamicToolBarApp* pApp = (CDynamicToolBarApp*)AfxGetApp(); return m_bUseReBar && (pApp->IsCommCtrlMeetLowestReq()); } CWnd* CDynamicToolBarDlg::GetActualToolBar() { if(IsUseReBar()) { return &m_ctlMainTopReBar; } else { return toolbar; } } void CDynamicToolBarDlg::OnDestroy() { CResizableDialog::OnDestroy(); if(m_hToolBarBkBmp) { ::DeleteObject(m_hToolBarBkBmp); m_hToolBarBkBmp = NULL; } } void CDynamicToolBarDlg::OnSize(UINT nType, int cx, int cy) { CResizableDialog::OnSize(nType, cx, cy); SetStatusBarPartsSize(); // if(::IsWindow(m_hWnd)) // { // Invalidate(); // } } void CDynamicToolBarDlg::SetShowSizeGrip(BOOL bShow) { if(bShow) { ShowSizeGrip(&m_dwGripTempState); } else { HideSizeGrip(&m_dwGripTempState); } UpdateSizeGrip(); } void CDynamicToolBarDlg::SetStatusBarPartsSize() { if(!::IsWindow(m_staticStatusBar.m_hWnd)) { return; } CRect rect; m_staticStatusBar.GetClientRect(&rect); int ussShift = 0; int aiWidths[3] = { rect.right - 300 - ussShift, rect.right - 200 - ussShift, -1 }; m_staticStatusBar.SetParts(3, aiWidths); }
[ "cconger77@2afb5f34-2eaf-11df-9ac8-ff20597b2c9b" ]
cconger77@2afb5f34-2eaf-11df-9ac8-ff20597b2c9b
8a1051f48acb1b76f4ac83d9b0fb3a1eb931d750
5a6e95ea550c1ab70933db273782c79c520ac2ec
/SDK/misc/mdac2.8/Conformance/Tests/OLEDB/Src/datalite.cpp
c156d9b20250d90f77d73025e0e6e0daf7b826c3
[]
no_license
15831944/Longhorn_SDK_And_DDK_4074
ffa9ce6c99345a6c43a414dab9458e4c29f9eb2a
c07d26bb49ecfa056d00b1dffd8981f50e11c553
refs/heads/master
2023-03-21T09:27:53.770894
2020-10-10T03:34:29
2020-10-10T03:34:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
121,276
cpp
//-------------------------------------------------------------------- // Microsoft OLE DB Test // // Copyright 1995-2000 Microsoft Corporation. // // @doc // // @module DATALITE.CPP | DATALITE source file for all test modules. // #include "modstandard.hpp" #include "DATALITE.h" #include "ExtraLib.h" #define MAXFINDBUFFERSIZE (MAXDATALEN * sizeof(WCHAR)) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Module Values // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // {{ TCW_MODULE_GLOBALS DECLARE_MODULE_CLSID = { 0x4872af80, 0x37a4, 0x11d1, { 0xa8, 0x8b, 0x00, 0xc0, 0x4f, 0xd7, 0xa0, 0xf5} }; DECLARE_MODULE_NAME("DataLite"); DECLARE_MODULE_OWNER("Microsoft"); DECLARE_MODULE_DESCRIP("Test GetData coercions for ReadOnly Providers"); DECLARE_MODULE_VERSION(795921705); // }} // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Globals // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CTable * g_pCTable = NULL; IDataConvert * g_pIDataConvert = NULL; BOOL g_fCommandSupport = FALSE; enum eCoerceType { eNORMAL=0, eBYREF, eTRUNCATE, eGETCOLUMNS, eGETCOLUMNS_BYREF, eGETCOLUMNS_TRUNCATE }; static BOOL IsVariableLengthType(DBTYPE wdbType) { return (wdbType == DBTYPE_STR || wdbType == DBTYPE_WSTR || wdbType == DBTYPE_BYTES ); }; static DBLENGTH GetDataLength(void *pMakeData, DBTYPE wColType, DBLENGTH cbBytesLen) { DBLENGTH cbLength; switch ( wColType ) { case DBTYPE_WSTR: cbLength = (wcslen((WCHAR *)pMakeData))*sizeof(WCHAR); break; case DBTYPE_STR: cbLength = strlen((char *)pMakeData); break; case DBTYPE_VARNUMERIC: case DBTYPE_BYTES: cbLength = cbBytesLen; break; default: cbLength = GetDBTypeSize(wColType); break; } return cbLength; } static void FindVariantTypes(IUnknown *pIUnknown, CTable *pTable) { IAccessor *pIAccessor = NULL; IRowset *pIRowset = NULL; HACCESSOR hAccessor = DB_INVALID_HACCESSOR; DBPART dwPart=DBPART_VALUE|DBPART_STATUS|DBPART_LENGTH; ULONG_PTR cBinding = 0, cRowSize = 0, cCount = 0, i = 0; DBBINDING *rgBinding = NULL; HROW *pHRow = NULL; BYTE *pData = NULL; VARIANT *pVar = NULL; if(!VerifyInterface(pIUnknown, IID_IRowset, ROWSET_INTERFACE, (IUnknown**)&pIRowset)) goto CLEANUP; if(!VerifyInterface(pIRowset, IID_IAccessor, ROWSET_INTERFACE, (IUnknown**)&pIAccessor)) goto CLEANUP; //create an accessor on the rowset if( GetAccessorAndBindings(pIRowset,DBACCESSOR_ROWDATA,&hAccessor, &rgBinding,&cBinding,&cRowSize,dwPart,ALL_COLS_BOUND,FORWARD, NO_COLS_BY_REF,NULL,NULL,NULL,DBTYPE_EMPTY,0,NULL,NULL, NO_COLS_OWNED_BY_PROV,DBPARAMIO_NOTPARAM,TRUE) != S_OK ) goto CLEANUP; pData = (BYTE *)PROVIDER_ALLOC(cRowSize); if( pIRowset->GetNextRows(NULL,0,1,&cCount,&pHRow) != S_OK ) goto CLEANUP; //get the data if( pIRowset->GetData(*pHRow, hAccessor, pData) != S_OK ) goto CLEANUP; for ( i = 0; i<cBinding; i++) { // Check for value binding if ((rgBinding[i].dwPart) & DBPART_VALUE) { // Skip checking the value binding for BOOKMARKS if (rgBinding[i].iOrdinal!=0) { if ( rgBinding[i].wType == DBTYPE_VARIANT ) { // Get the data in the consumer's buffer pVar=(VARIANT *)(pData + rgBinding[i].obValue); CCol &NewCol = pTable->GetColInfoForUpdate(rgBinding[i].iOrdinal); NewCol.SetSubType(pVar->vt); } } } } CLEANUP: pIRowset->ReleaseRows(1,pHRow,NULL,NULL,NULL); PROVIDER_FREE(rgBinding); PROVIDER_FREE(pData); PROVIDER_FREE(pHRow); if (hAccessor != DB_INVALID_HACCESSOR && pIAccessor) pIAccessor->ReleaseAccessor(hAccessor,NULL); SAFE_RELEASE(pIAccessor); SAFE_RELEASE(pIRowset); return; } //-------------------------------------------------------------------- // @func Module level initialization routine // // @rdesc Success or Failure // @flag TRUE | Successful initialization // @flag FALSE | Initialization problems // BOOL ModuleInit(CThisTestModule * pThisTestModule) { IUnknown *pIUnknown=NULL; IDBCreateCommand *pIDBCreateCommand = NULL; if(!CommonModuleInit(pThisTestModule, IID_IRowset)) return FALSE; // IDBCreateCommand if(!VerifyInterface(pThisTestModule->m_pIUnknown2, IID_IDBCreateCommand, SESSION_INTERFACE, (IUnknown**)&pIDBCreateCommand)) { // Just note it. g_fCommandSupport = FALSE; odtLog << L"IDBCreateCommand is not supported by Provider." << ENDL; } else { pIDBCreateCommand->Release(); g_fCommandSupport = TRUE; } if (!SUCCEEDED(CoCreateInstance(CLSID_OLEDB_CONVERSIONLIBRARY, NULL, CLSCTX_INPROC_SERVER, IID_IDataConvert, (void **)&g_pIDataConvert)) ) return TEST_SKIPPED; if(!SetDCLibraryVersion((IUnknown *)g_pIDataConvert, 0x200)) { odtLog << L"Unable to set Data Conversion Library's behavior version!" << ENDL; odtLog << L"Need to upgrade to latest MSDADC.DLL." << ENDL; return TEST_FAIL; } //create the table g_pCTable = new CTable(pThisTestModule->m_pIUnknown2, (WCHAR *)gwszModuleName, USENULLS); if( !g_pCTable || !SUCCEEDED(g_pCTable->CreateTable(20,1,NULL,PRIMARY,TRUE)) ) { if(g_pCTable) delete g_pCTable; g_pCTable = NULL; odtLog<<L"Table creation failed\n"; return TEST_FAIL; } if(FAILED(g_pCTable->CreateRowset( SELECT_ALLFROMTBL, IID_IRowset, 0, NULL, &pIUnknown, NULL, NULL))) return TEST_FAIL; FindVariantTypes(pIUnknown, g_pCTable); SAFE_RELEASE(pIUnknown); return TRUE; } //-------------------------------------------------------------------- // @func Module level termination routine // // @rdesc Success or Failure // @flag TRUE | Successful initialization // @flag FALSE | Initialization problems // BOOL ModuleTerminate(CThisTestModule * pThisTestModule) { //drop table if(g_pCTable) { g_pCTable->DropTable(); delete g_pCTable; g_pCTable = NULL; } //release OLE memory allocator and IDataConvert interface SAFE_RELEASE(g_pIDataConvert); //Release IDBCreateCommand interface return CommonModuleTerminate(pThisTestModule); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Base Test Case Section // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // // TCDATALITE: the base class for the rest of test cases in this // test module. // // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - class TCDATALITE : public CRowset { private: protected: //@cmember: interface pointer for IConvertType IConvertType * m_pIConvertType; //@cmember: Binding elements for the current coercion DBBINDING m_Binding; //@cmember: the pointer to the row buffer BYTE * m_pData; //@cmember: the pointer to the row buffer of Expected return values. BYTE * m_pExpectedData; //@cmember: hresult HRESULT m_hr; //@cmember: hresult HRESULT m_hrExpected; //@cmember: hresult HRESULT m_hrActual; //@mfunc: initialialize interface pointers BOOL Init(); //@mfunc: Terminate BOOL Terminate(); // Open a rowset BOOL OpenRowset(IID riid); // Release the rowset BOOL ReleaseRowset(); // Create Accessor for the coercion HRESULT CreateAccessor ( DBTYPE wType, eCoerceType eCrcType, DBCOUNTITEM ulRowIndex, DBCOUNTITEM ulColIndex ); // Get the coerced data HRESULT FetchData(HROW hrow); // Confirm coerced result BOOL VerifyResult(DBTYPE wDstType); // loop through table and coerce each cell. int GetDataCoerce ( DBTYPE wType, eCoerceType eCrType ); void FindValidCoercions(); BOOL CompatibleStatus ( DBSTATUS dbsActual, DBSTATUS dbsExpected ); ULONG GetPadSize(DBTYPE wType); BOOL IsGetColumnsType(eCoerceType eCrType); virtual HRESULT CreateRowset(EQUERY eQuery = SELECT_ORDERBYNUMERIC, REFIID riid = IID_IRowset, CTable* pCTable = NULL, DBACCESSORFLAGS dwAccessorFlags = DBACCESSOR_ROWDATA, DBPART dwPart = DBPART_ALL, DWORD dwColsBound = UPDATEABLE_COLS_BOUND, ECOLUMNORDER eBindingOrder = FORWARD, ECOLS_BY_REF eColsByRef = NO_COLS_BY_REF, DBTYPE wTypeModifier = DBTYPE_EMPTY, BLOBTYPE dwBlobType = NO_BLOB_COLS); virtual HRESULT DropRowset(); public: //constructor TCDATALITE(WCHAR *wstrTestCaseName); //destructor ~TCDATALITE(); }; //-------------------------------------------------------------------- // @mfunc base class TCDATALITE constructor, must take testcase name // as parameter. // TCDATALITE::TCDATALITE(WCHAR * wstrTestCaseName) //Takes TestCase Class name as parameter : CRowset (wstrTestCaseName) { //initialize member data m_pData = NULL; m_pExpectedData = NULL; m_hr = S_OK; m_hrExpected = S_OK; m_hrActual = S_OK; } //-------------------------------------------------------------------- // @mfunc base class TCDATALITE destructor // TCDATALITE::~TCDATALITE() { } //-------------------------------------------------------------------- //@mfunc: Init creates a Data Source object, a DB Session object, //and a command object and initialize corresponding interface pointers. // //-------------------------------------------------------------------- BOOL TCDATALITE::Init() { m_pData = (BYTE *)PROVIDER_ALLOC(MAXFINDBUFFERSIZE); m_pExpectedData = (BYTE *)PROVIDER_ALLOC(MAXFINDBUFFERSIZE); return (CRowset::Init()); } //-------------------------------------------------------------------- //@mfunc: Terminate release the data source object, DB Session object, Command object // //-------------------------------------------------------------------- BOOL TCDATALITE::Terminate() { PROVIDER_FREE(m_pData); PROVIDER_FREE(m_pExpectedData); return (CRowset::Terminate()); } //-------------------------------------------------------------------- //@mfunc: Open Rowset, get IRowset and IAccessor interfaces //-------------------------------------------------------------------- BOOL TCDATALITE::OpenRowset(IID riid) { HRESULT hr; IUnknown *pIUnknown=NULL; EQUERY eQuery = SELECT_ORDERBYNUMERIC; if (!g_fCommandSupport) eQuery = SELECT_ALLFROMTBL; hr = g_pCTable->CreateRowset( eQuery, riid, 0, NULL, &pIUnknown, NULL, NULL); if ( FAILED(hr) || !pIUnknown) return FALSE; // Get Accessor Interface if(!VerifyInterface(pIUnknown, IID_IRowset, ROWSET_INTERFACE, (IUnknown **)&m_pIRowset)) return FALSE; // Get Accessor Interface if(!VerifyInterface(pIUnknown, IID_IAccessor, ROWSET_INTERFACE, (IUnknown **)&m_pIAccessor)) return FALSE; // Get IConvertType Interface if(!VerifyInterface(pIUnknown, IID_IConvertType, ROWSET_INTERFACE, (IUnknown **)&m_pIConvertType)) return FALSE; SAFE_RELEASE(pIUnknown) return SUCCEEDED(hr); } //-------------------------------------------------------------------- //@mfunc: Release the interfaces obtained through OpenRowset //-------------------------------------------------------------------- BOOL TCDATALITE::ReleaseRowset() { SAFE_RELEASE(m_pIAccessor); SAFE_RELEASE(m_pIRowset); SAFE_RELEASE(m_pIConvertType); return TRUE; } //-------------------------------------------------------------------- //@mfunc: Setup the accessor //-------------------------------------------------------------------- HRESULT TCDATALITE::CreateAccessor ( DBTYPE wType, eCoerceType eCrcType, ULONG_PTR ulRowIndex, ULONG_PTR ulColIndex ) { CCol TempCol; HRESULT hr = S_OK; WCHAR wszData[MAXFINDBUFFERSIZE]; BOOL fIsVariant = FALSE; DBTYPE wVariantType = 0xFFFF; DBTYPE wColType = DBTYPE_EMPTY; void * pvData = NULL; void * pMakeData = NULL; DBLENGTH cbDstLength = 0; DBLENGTH cbDataLength = 0; DBLENGTH cbOutLength = 0; USHORT ulsize = 0; DBSTATUS dbsStatus; DBBINDSTATUS BindStatus = DBSTATUS_S_OK; DBTYPE dbByRefMask = ( eCrcType == eBYREF || eCrcType == eGETCOLUMNS_BYREF ? DBTYPE_BYREF : 0x0 ); g_pCTable->GetColInfo(ulColIndex, TempCol); wColType = TempCol.GetProviderType(); if( eCrcType == eBYREF || eCrcType == eTRUNCATE || eCrcType == eGETCOLUMNS_BYREF || eCrcType == eGETCOLUMNS_TRUNCATE ) { if( !IsVariableLengthType(wType) ) return S_FALSE; } if ( TempCol.GetIsLong() ) // skip all BLOBs return S_FALSE; m_hr = g_pCTable->MakeData ( wszData, ulRowIndex, ulColIndex, PRIMARY, ( wColType == DBTYPE_VARIANT ? TempCol.GetSubType() : wColType ), FALSE, &wVariantType ); if( m_hr == DB_E_BADTYPE ) return S_FALSE; if( wVariantType == 0xFFFF ) wVariantType = TempCol.GetSubType(); if( wColType == DBTYPE_VARIANT ) { wColType = wVariantType; fIsVariant = TRUE; } if ( m_hr == S_OK ) { pMakeData = (BYTE *)WSTR2DBTYPE(wszData, wColType, &ulsize ); cbDataLength = GetDataLength(pMakeData, wColType, ulsize); if( fIsVariant ) { if ( wVariantType > DBTYPE_UI1 ) { PROVIDER_FREE(pMakeData); return S_FALSE; } else { pvData = (void *)DBTYPE2VARIANT(pMakeData, wVariantType); if( wColType == DBTYPE_BSTR ) SysFreeString(*(BSTR*)pMakeData); } } else pvData = pMakeData; ULONG cchMakeData = wcslen(wszData); // Fixup mapping for BOOL if( DBTYPE_BOOL == wColType ) { if( 0 == wcscmp(wszData, L"0") ) cchMakeData = wcslen(L"False"); else cchMakeData = wcslen(L"True"); } switch( wType ) { case DBTYPE_STR: { cbOutLength = cchMakeData+1; cbOutLength += GetPadSize(wColType); // allow latitude in string representations break; } case DBTYPE_WSTR: { cbOutLength = (cchMakeData+1)*sizeof(WCHAR); cbOutLength += GetPadSize(wColType) * sizeof(WCHAR); // allow latitude in string representations break; } case DBTYPE_VARNUMERIC: cbOutLength = MAX_VARNUM_BYTE_SIZE; break; case DBTYPE_BYTES: cbOutLength = cbDataLength; break; default: cbOutLength = GetDBTypeSize(wType); break; } switch ( eCrcType ) { case eNORMAL: case eGETCOLUMNS: break; case eBYREF: case eGETCOLUMNS_BYREF: cbOutLength = sizeof(void *); break; case eTRUNCATE: case eGETCOLUMNS_TRUNCATE: if( wColType == DBTYPE_CY || wColType == DBTYPE_NUMERIC || wColType == DBTYPE_R4 || wColType == DBTYPE_R8 ) cbOutLength = 1; else if ( cbOutLength <= 4 ) cbOutLength = 1; else cbOutLength = cbOutLength - 4; if ( wType == DBTYPE_WSTR ) cbOutLength *= sizeof(WCHAR); break; } } else cbOutLength = MAXFINDBUFFERSIZE - offsetof(DATA, bValue); m_hrExpected = g_pIDataConvert->DataConvert ( (fIsVariant ? DBTYPE_VARIANT : wColType), wType | dbByRefMask, cbDataLength, &cbDstLength, pvData, m_pExpectedData+offsetof(DATA, bValue), cbOutLength, (m_hr == S_FALSE ? DBSTATUS_S_ISNULL : DBSTATUS_S_OK), &dbsStatus, (wType == DBTYPE_NUMERIC ? 39 : 0), 0, DBDATACONVERT_DEFAULT ); *(DBLENGTH *)(m_pExpectedData+offsetof(DATA, ulLength)) = cbDstLength; *(DBSTATUS *)(m_pExpectedData+offsetof(DATA, sStatus)) = dbsStatus; m_Binding.iOrdinal = ulColIndex; m_Binding.dwPart = DBPART_VALUE | DBPART_LENGTH | DBPART_STATUS; m_Binding.eParamIO = DBPARAMIO_NOTPARAM; m_Binding.pTypeInfo = NULL; m_Binding.cbMaxLen = cbOutLength; m_Binding.obValue = offsetof(DATA, bValue); m_Binding.obLength = offsetof(DATA, ulLength); m_Binding.obStatus = offsetof(DATA, sStatus); m_Binding.dwMemOwner = DBMEMOWNER_CLIENTOWNED; m_Binding.wType = wType | dbByRefMask; m_Binding.pBindExt = NULL; m_Binding.bPrecision = (wType == DBTYPE_NUMERIC ? 39 : 0); m_Binding.bScale = 0; m_Binding.pObject = NULL; m_Binding.dwFlags = 0; // Create the accessor m_hr = m_pIAccessor->CreateAccessor(DBACCESSOR_ROWDATA,1, &m_Binding,NULL,&m_hAccessor,&BindStatus); if ( FAILED(m_hr)) { if( !COMPARE(BindStatus, DBBINDSTATUS_UNSUPPORTEDCONVERSION) ) { hr = E_FAIL; goto CLEANUP; } if( !COMPARE(m_pIConvertType->CanConvert ( (fIsVariant ? DBTYPE_VARIANT : wColType), wType | dbByRefMask, DBCONVERTFLAGS_COLUMN ), S_FALSE) ) { hr = E_FAIL; goto CLEANUP; } hr = S_FALSE; // Accessor validation failed, but pass because it should have failed. } CLEANUP: PROVIDER_FREE(pvData); return hr; } //-------------------------------------------------------------------- //@mfunc: Call GetData //-------------------------------------------------------------------- HRESULT TCDATALITE::FetchData(HROW hrow) { return (m_hrActual = m_pIRowset->GetData(hrow,m_hAccessor,m_pData)); } //-------------------------------------------------------------------- //@mfunc: Check results //-------------------------------------------------------------------- BOOL TCDATALITE::VerifyResult(DBTYPE wDstType) { BOOL fDataOK = TRUE; DBLENGTH cbActual, cbExpected; DBSTATUS dbsActual, dbsExpected; CCol TempCol; BOOL fChangedFromStr = FALSE; USHORT ulExpectedSize, ulActualSize; DBLENGTH cbBytesReceived = 0; HRESULT hr; DBTYPE wSrcType; double dblTolerance = 0; g_pCTable->GetColInfo(m_Binding.iOrdinal, TempCol); // status dbsActual = *(DBSTATUS *)((BYTE *)m_pData+offsetof(DATA, sStatus)); dbsExpected = *(DBSTATUS *)((BYTE *)m_pExpectedData+offsetof(DATA, sStatus)); // length cbActual = *(ULONG *)((BYTE *)m_pData+offsetof(DATA, ulLength)); cbExpected = *(ULONG *)((BYTE *)m_pExpectedData+offsetof(DATA, ulLength)); // value void *pActual, *pExpected; if ( m_Binding.wType & DBTYPE_BYREF ) { pActual = *(void **)(m_pData + offsetof(DATA, bValue)); pExpected = *(void **)(m_pExpectedData + offsetof(DATA, bValue)); } else { pActual = m_pData + offsetof(DATA, bValue); pExpected = m_pExpectedData + offsetof(DATA, bValue); } // Check HRESULT if ( m_hrActual == DB_E_UNSUPPORTEDCONVERSION ) { if ( !COMPARE(m_pIConvertType->CanConvert(TempCol.GetProviderType(), m_Binding.wType, DBCONVERTFLAGS_COLUMN), S_FALSE) ) { odtLog << "Conversion was supported, but GetData failed\n"; fDataOK = FALSE; } goto CLEANUP; // we're done if we receive this HRESULT } else if ( m_hrExpected == DB_E_UNSUPPORTEDCONVERSION ) { if (SUCCEEDED(m_hrActual) || dbsActual != DBSTATUS_E_BADACCESSOR) { odtLog << "Warning, unexpected conversion is supported\n"; } goto CLEANUP; // always leave } if ( SUCCEEDED(m_hrActual) != SUCCEEDED(m_hrExpected) ) { if ( m_hrActual == DB_E_ERRORSOCCURRED && m_hrExpected == S_OK ) { if ( !COMPARE(dbsActual,DBSTATUS_E_BADACCESSOR) ) { // The only way if this is valid is if the provider doesn't support the conversion // in which case DBSTATUS_E_BADACCESSOR is the only valid status. odtLog << "HRESULT indicated unsupported conversion, but bad status received" ; fDataOK = FALSE; goto CLEANUP; } } else { CHECK(m_hrActual, m_hrExpected); fDataOK = FALSE; goto CLEANUP; } } // Check status if ( dbsActual != dbsExpected ) { // check for deferred validation if ( dbsActual == DBSTATUS_E_BADACCESSOR ) { if ( !COMPARE(m_pIConvertType->CanConvert(TempCol.GetProviderType(), m_Binding.wType, DBCONVERTFLAGS_COLUMN), S_FALSE) ) { odtLog << "Conversion was supported, but GetData failed\n"; fDataOK = FALSE; goto CLEANUP; } fDataOK = TRUE; odtLog << "Conversion from type " << TempCol.GetProviderType() << " to type " << wDstType << " is not supported\n"; goto CLEANUP; } // Special case because Variant(vt=VT_NULL) is equivalent to a DBSTATUS_S_ISNULL status if ( dbsExpected == DBSTATUS_S_ISNULL && dbsActual == DBSTATUS_S_OK ) { VARIANT *pVariant = NULL; if ( m_Binding.wType == DBTYPE_VARIANT ) { pVariant = (VARIANT *)pActual; if ( pVariant->vt == VT_NULL ) { fDataOK = TRUE; goto CLEANUP; } else { odtLog << "Unexpected status\n"; fDataOK = FALSE; goto CLEANUP; } } } if (!CompatibleStatus(dbsActual, dbsExpected)) { odtLog << "Unexpected status" << " Expected:" << dbsExpected << " Received:" << dbsActual << ENDL; fDataOK = FALSE; goto CLEANUP; } } // Check Length if ( dbsActual != DBSTATUS_S_OK && dbsActual != DBSTATUS_S_TRUNCATED ) return TRUE; if (dbsExpected != DBSTATUS_S_ISNULL && dbsActual != DBSTATUS_S_ISNULL) { // defer checking cbLength of variable length type to the actual data comparison if( wDstType != DBTYPE_STR && wDstType != DBTYPE_WSTR && wDstType != DBTYPE_BSTR && wDstType != DBTYPE_VARNUMERIC) { if(!COMPARE( cbActual, cbExpected)) { odtLog << "Unexpected length\n" ; fDataOK = FALSE; goto CLEANUP; } } } // ulActualSize and ulExpectedSize are only relevant to VARNUMERIC ulActualSize = USHORT(cbActual); ulExpectedSize = USHORT(cbExpected); wDstType &= (~DBTYPE_BYREF); if ( (wDstType == DBTYPE_STR || wDstType == DBTYPE_WSTR || wDstType == DBTYPE_BSTR) ) { WCHAR * wszActual = NULL; WCHAR * wszExpected = NULL; void * pMakeDataExpected = NULL; void * pMakeDataActual = NULL; if( dbsActual == DBSTATUS_S_TRUNCATED ) { fDataOK = TRUE; goto CLEANUP; } wSrcType = TempCol.GetProviderType(); if( wSrcType == DBTYPE_VARIANT ) { wSrcType = TempCol.GetSubType(); } if ( wSrcType == DBTYPE_DECIMAL || wSrcType == DBTYPE_CY || wSrcType == DBTYPE_R4 || wSrcType == DBTYPE_R8 || wSrcType == DBTYPE_VARNUMERIC || wSrcType == DBTYPE_NUMERIC || wSrcType == DBTYPE_DATE ) { fChangedFromStr = TRUE; // Fixup to WSTR ConvertToWSTR(pActual, wDstType, &wszActual); ConvertToWSTR(pExpected, wDstType, &wszExpected); pMakeDataExpected = (BYTE *)WSTR2DBTYPE(wszExpected, wSrcType, &ulExpectedSize ); pMakeDataActual = (BYTE *)WSTR2DBTYPE(wszActual, wSrcType, &ulActualSize ); if ( wDstType == DBTYPE_BSTR ) { SysFreeString(*(BSTR *)pActual); SysFreeString(*(BSTR *)pExpected); } else if ( m_Binding.wType & DBTYPE_BYREF ) { PROVIDER_FREE(pActual); PROVIDER_FREE(pExpected); } pActual = pMakeDataActual; pExpected = pMakeDataExpected; wDstType = wSrcType; PROVIDER_FREE(wszActual); PROVIDER_FREE(wszExpected); } } cbBytesReceived = (dbsActual == DBSTATUS_S_TRUNCATED) ? m_Binding.cbMaxLen : cbActual; switch ( wDstType ) { case DBTYPE_R8: { double dblExpected; double dblActual; dblActual = *(double *)pActual; dblExpected = *(double *)pExpected; dblTolerance = 16.0/pow(2,53); // large tolerance in case we didn't create the data if ( fabs(dblActual - dblExpected) > fabs(dblTolerance * dblActual) ) fDataOK = FALSE; break; } case DBTYPE_R4: { float fltExpected, fltActual; double dblTolerance; fltActual = *(float *)pActual; fltExpected = *(float *)pExpected; dblTolerance = 1.0/pow(2,24); if ( fabs(fltActual - fltExpected) > fabs(dblTolerance * fltActual) ) fDataOK = FALSE; break; } case DBTYPE_DATE: { DATE dtExpected, dtActual; double dblTolerance; dtActual = *(DATE *)pActual; dtExpected = *(DATE *)pExpected; // 86400 seconds is a day. We want to be accurate to 1 second. // OLE Aut's Date was designed to hold a value to nearest second. // A conversion from timestamp will lost precision. dblTolerance = 1.0/86400.0; if ( fabs(dtActual - dtExpected) > dblTolerance ) fDataOK = FALSE; break; } case DBTYPE_NUMERIC: { fDataOK = CompareVarNumeric((DB_VARNUMERIC *)pActual, sizeof(DB_NUMERIC), (DB_VARNUMERIC *)pExpected, sizeof(DB_NUMERIC)); break; } case DBTYPE_VARNUMERIC: { fDataOK = CompareVarNumeric((DB_VARNUMERIC *)pActual, ulActualSize, (DB_VARNUMERIC *)pExpected, ulExpectedSize); break; } case DBTYPE_DECIMAL: { fDataOK = CompareDecimal((DECIMAL *)pActual, (DECIMAL *)pExpected); break; } case DBTYPE_CY: { __int64 cyExpected, cyActual; double dblTolerance; cyActual = *(__int64 *)pActual; cyExpected = *(__int64 *)pExpected; if( wSrcType == DBTYPE_R4 ) dblTolerance = 1.0/pow(10,3); // 3 = 7(real precision) - 4 (CY scale by 10,000) else if( wSrcType == DBTYPE_R8 ) dblTolerance = 1.0/pow(10,9); else dblTolerance = 0.0; if( fabs(double(cyActual - cyExpected)) > fabs(dblTolerance * cyActual) ) fDataOK = FALSE; break; } case DBTYPE_I8: { __int64 i8Expected, i8Actual; i8Actual = *(__int64 *)pActual; i8Expected = *(__int64 *)pExpected; fDataOK = (i8Actual == i8Expected); if( !fDataOK && i8Expected < 0 ) { // it's provider specific whether negative fractional elements // are rounded up or down fDataOK = (i8Actual - i8Expected <= 1) && (i8Actual - i8Expected >= -1); } break; } case DBTYPE_VARIANT: { VARIANT *pVarActual = (VARIANT *)pActual; VARIANT *pVarExpected = (VARIANT *)pExpected; fDataOK = CompareVariant((VARIANT *)pActual,(VARIANT *)pExpected, FALSE); if(!fDataOK) { // be lenient on what VARIANT type to expect. // See if the Returned VARIANT type is compatible with the expected VARIANT type. // Use OLE AUT's VariantChangeTypeEx for this compatibility verification if( V_VT(pVarActual) != V_VT(pVarExpected) ) { //The only problem with trying to convert to the same type are the // NULL and EMPTY cases. If we are expecting NULL or EMPTY // we should never receive a different type if( V_VT(pVarExpected) != VT_NULL && V_VT(pVarExpected) != VT_EMPTY ) { //If there not the same type, we can try and convert them to the same type //if the conversion fails, we are not able to compare these two //disjoint types... hr = VariantChangeTypeEx( pVarActual, // Destination (convert in place) pVarActual, // Source MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT), // LCID 0, // dwFlags V_VT(pVarExpected)); if( hr == DISP_E_TYPEMISMATCH ) { hr = VariantChangeTypeEx( pVarActual, // Destination (convert in place) pVarActual, // Source GetUserDefaultLCID(), // LCID 0, // dwFlags V_VT(pVarExpected)); } if( SUCCEEDED(hr) ) fDataOK = CompareVariant(pVarActual, pVarExpected, FALSE); } } } VariantClear(pVarActual); VariantClear(pVarExpected); break; } case DBTYPE_STR: { if( dbsActual == DBSTATUS_S_TRUNCATED && m_Binding.cbMaxLen >= sizeof(char) ) cbBytesReceived -= sizeof(char); fDataOK = (0 == strncmp((char *)pActual, (char *)pExpected, cbBytesReceived)); break; } case DBTYPE_WSTR: { if( dbsActual == DBSTATUS_S_TRUNCATED && m_Binding.cbMaxLen >= sizeof(WCHAR) ) cbBytesReceived -= sizeof(WCHAR); fDataOK = (0 == wcsncmp((WCHAR *)pActual, (WCHAR *)pExpected, cbBytesReceived/sizeof(WCHAR))); break; } case DBTYPE_BYTES: { DBLENGTH cb = 0; if( dbsActual == DBSTATUS_S_TRUNCATED ) { if( m_Binding.cbMaxLen < cbActual ) cb = m_Binding.cbMaxLen; else cb = cbActual; } else cb = cbActual; fDataOK = (0 == memcmp(pActual, pExpected, cb)); break; } default: { fDataOK = CompareDBTypeData(pActual, pExpected, wDstType, cbBytesReceived, BYTE(m_Binding.bPrecision),BYTE(m_Binding.bScale), NULL, FALSE, DBTYPE_EMPTY, cbBytesReceived); break; } } if( fDataOK ) { if( !COMPARE(m_pIConvertType->CanConvert(TempCol.GetProviderType(), m_Binding.wType, DBCONVERTFLAGS_COLUMN), S_OK ) ) { odtLog << "Conversion was successful, but CanConvert reports that conversion is not supported\n"; fDataOK = FALSE; goto CLEANUP; } } CLEANUP: if( m_Binding.wType & DBTYPE_BYREF ) { if( dbsActual == DBSTATUS_S_OK ) PROVIDER_FREE(pActual); if( dbsExpected == DBSTATUS_S_OK ) PROVIDER_FREE(pExpected); } else if( fChangedFromStr ) { PROVIDER_FREE(pActual); PROVIDER_FREE(pExpected); } else if( wDstType == DBTYPE_BSTR ) { if( dbsActual == DBSTATUS_S_OK ) SysFreeString(*(BSTR *)pActual); if( dbsExpected == DBSTATUS_S_OK ) SysFreeString(*(BSTR *)pExpected); } return fDataOK; } //-------------------------------------------------------------------- //@mfunc: Loop through the rows and columns to perform the datacoercion // //-------------------------------------------------------------------- int TCDATALITE::GetDataCoerce(DBTYPE wType, eCoerceType eCrcType) { BOOL fTestPass = TEST_PASS; DBCOUNTITEM cCols = g_pCTable->CountColumnsOnTable(); DBCOUNTITEM cRows = g_pCTable->GetRowsOnCTable(); DBCOUNTITEM ulColIndex = 0; DBCOUNTITEM ulRowIndex = 0; DBCOUNTITEM cRowsObtained = 0; HROW rghrow[1]; HROW* prghRows = rghrow; CRowObject RowObject; //TESTC(OpenRowset(IID_IRowset)); TESTC_(CreateRowset(SELECT_ORDERBYNUMERIC, IID_IRowset, g_pCTable), S_OK); for ( ulRowIndex = 1; ulRowIndex <= cRows; ulRowIndex++ ) { if (IsGetColumnsType(eCrcType)) { if( m_ulpOleObjects & (DBPROPVAL_OO_ROWOBJECT | DBPROPVAL_OO_SINGLETON) ) { TEST2C_(m_hr = GetRowObject(ulRowIndex, &RowObject),S_OK,E_NOINTERFACE); } else m_hr = E_NOINTERFACE; if (m_hr == E_NOINTERFACE) { fTestPass = TEST_SKIPPED; odtLog << L"No Row Object support." << ENDL; goto CLEANUP; } } else { TESTC_(m_pIRowset->GetNextRows(NULL, 0, 1, &cRowsObtained, &prghRows), S_OK) TESTC(cRowsObtained == 1); } for ( ulColIndex = 1; ulColIndex <= cCols; ulColIndex++ ) { m_hr = CreateAccessor(wType, eCrcType, ulRowIndex, ulColIndex); if (m_hr == S_FALSE) continue; else if (FAILED(m_hr)) { odtLog << "Bad Accessor Validation at column: "<<ulColIndex<<" and row: "<<ulRowIndex<<".\n"; fTestPass = TEST_FAIL; continue; } if (IsGetColumnsType(eCrcType)) { m_hrActual = RowObject.GetColumns(1, &m_Binding, m_pData); } else FetchData(prghRows[0]); if (!COMPARE(VerifyResult(wType), TRUE)) { odtLog << "GetData coerce error at column: "<<ulColIndex<<" and row: "<<ulRowIndex<<".\n\n"; fTestPass = TEST_FAIL; } TESTC_(m_pIAccessor->ReleaseAccessor(m_hAccessor, NULL), S_OK); } if (IsGetColumnsType(eCrcType)) RowObject.ReleaseRowObject(); TESTC_(m_pIRowset->ReleaseRows(cRowsObtained, prghRows, NULL, NULL, NULL), S_OK); } CLEANUP: DropRowset(); return fTestPass; } void TCDATALITE::FindValidCoercions() { DBTYPE wTypes[] = { DBTYPE_I2, DBTYPE_I4, DBTYPE_R4, DBTYPE_R8, DBTYPE_CY, DBTYPE_DATE, DBTYPE_BSTR, DBTYPE_IDISPATCH, DBTYPE_ERROR, DBTYPE_BOOL, DBTYPE_VARIANT, DBTYPE_IUNKNOWN, DBTYPE_DECIMAL, DBTYPE_UI1, DBTYPE_I1, DBTYPE_UI2, DBTYPE_UI4, DBTYPE_I8, DBTYPE_UI8, DBTYPE_GUID, DBTYPE_VECTOR, DBTYPE_RESERVED, DBTYPE_BYTES, DBTYPE_STR, DBTYPE_WSTR, DBTYPE_NUMERIC, DBTYPE_UDT, DBTYPE_DBDATE, DBTYPE_DBTIME, DBTYPE_DBTIMESTAMP, DBTYPE_WSTR | DBTYPE_BYREF, DBTYPE_STR | DBTYPE_BYREF, DBTYPE_PROPVARIANT, DBTYPE_FILETIME, DBTYPE_VARNUMERIC }; WCHAR *wTypeNames[] = { L"DBTYPE_I2", L"DBTYPE_I4", L"DBTYPE_R4", L"DBTYPE_R8", L"DBTYPE_CY", L"DBTYPE_DATE", L"DBTYPE_BSTR", L"DBTYPE_IDISPATCH", L"DBTYPE_ERROR", L"DBTYPE_BOOL", L"DBTYPE_VARIANT", L"DBTYPE_IUNKNOWN", L"DBTYPE_DECIMAL", L"DBTYPE_UI1", L"DBTYPE_I1", L"DBTYPE_UI2", L"DBTYPE_UI4", L"DBTYPE_I8", L"DBTYPE_UI8", L"DBTYPE_GUID", L"DBTYPE_VECTOR", L"DBTYPE_RESERVED", L"DBTYPE_BYTES", L"DBTYPE_STR", L"DBTYPE_WSTR", L"DBTYPE_NUMERIC", L"DBTYPE_UDT", L"DBTYPE_DBDATE", L"DBTYPE_DBTIME", L"DBTYPE_DBTIMESTAMP", L"DBTYPE_WSTR | DBTYPE_BYREF", L"DBTYPE_STR | DBTYPE_BYREF", L"DBTYPE_PROPVARIANT", L"DBTYPE_FILETIME", L"DBTYPE_VARNUMERIC" }; int i = 0, j = 0; HRESULT hr; for ( i = 0; i < sizeof(wTypes)/sizeof(DBTYPE); i++ ) { for ( j = 0; j < sizeof(wTypes)/sizeof(DBTYPE); j++ ) { odtLog << "Conversion from type: " << wTypeNames[i] << " to type: " << wTypeNames[j] << " is "; hr = m_pIConvertType->CanConvert(wTypes[i], wTypes[j], DBCONVERTFLAGS_COLUMN); if ( hr == S_OK ) odtLog << "Supported.\n"; else if ( hr == S_FALSE ) odtLog << " NOT supported.\n"; else odtLog << " Unknown. Bad types to the function\n"; } odtLog << "\n"; } } BOOL TCDATALITE::CompatibleStatus(DBSTATUS dbsActual, DBSTATUS dbsExpected) { switch ( dbsActual ) { case DBSTATUS_E_DATAOVERFLOW: case DBSTATUS_E_CANTCONVERTVALUE: return (dbsExpected == DBSTATUS_E_CANTCONVERTVALUE || dbsExpected == DBSTATUS_E_SIGNMISMATCH || dbsExpected == DBSTATUS_E_DATAOVERFLOW ); default: return (dbsActual == dbsExpected); } } ULONG TCDATALITE::GetPadSize(DBTYPE wType) { // The OLE DB spec doesn't always define canonical string formats for // conversion from DBTYPES to strings. // For example, individual providers may choose to convert certain // numeric types with trailing or leading zeros. switch(wType) { // provide a margin to account for varying precision, sign, leading/trailing zeroes case DBTYPE_R8: return 17; case DBTYPE_NUMERIC: case DBTYPE_R4: case DBTYPE_DECIMAL: case DBTYPE_VARNUMERIC: case DBTYPE_CY: return 10; case DBTYPE_DBTIMESTAMP: return 10; // Some providers may choose to display the fractional seconds field differently case DBTYPE_DATE: return 20; default: return 0; } } BOOL TCDATALITE::IsGetColumnsType(eCoerceType eCoerceType) { return (eCoerceType == eGETCOLUMNS || eCoerceType == eGETCOLUMNS_BYREF); } HRESULT TCDATALITE::CreateRowset ( EQUERY eQuery, //the type of rowset to create REFIID riid, //riid to ask for CTable* pCTable, DBACCESSORFLAGS dwAccessorFlags, //the accessor flags DBPART dwPart, //the type of binding DWORD dwColsToBind, //the columns in accessor ECOLUMNORDER eBindingOrder, //the order to bind columns ECOLS_BY_REF eColsByRef, //which columns to bind by reference DBTYPE wTypeModifier, //the type modifier used for accessor BLOBTYPE dwBlobType //BLOB option ) { HRESULT hr = CRowset::CreateRowset(eQuery, riid, pCTable, dwAccessorFlags, dwPart, dwColsToBind, eBindingOrder, eColsByRef, wTypeModifier, dwBlobType); if( SUCCEEDED(hr) ) COMPARE(VerifyInterface(m_pIRowset, IID_IConvertType, ROWSET_INTERFACE, (IUnknown**)&m_pIConvertType), TRUE); return hr; } HRESULT TCDATALITE::DropRowset() { SAFE_RELEASE(m_pIConvertType); return CRowset::DropRowset(); } // {{ TCW_TEST_CASE_MAP(TCDBTYPE_I2) //-------------------------------------------------------------------- // @class Test DBTYPE_I2 // class TCDBTYPE_I2 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_I2,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_I2) #define THE_CLASS TCDBTYPE_I2 BEG_TEST_CASE(TCDBTYPE_I2, TCDATALITE, L"Test DBTYPE_I2") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_I4) //-------------------------------------------------------------------- // @class Test DBTYPE_I4 // class TCDBTYPE_I4 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_I4,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_I4) #define THE_CLASS TCDBTYPE_I4 BEG_TEST_CASE(TCDBTYPE_I4, TCDATALITE, L"Test DBTYPE_I4") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_R4) //-------------------------------------------------------------------- // @class Test DBTYPE_R4 // class TCDBTYPE_R4 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_R4,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns] int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_R4) #define THE_CLASS TCDBTYPE_R4 BEG_TEST_CASE(TCDBTYPE_R4, TCDATALITE, L"Test DBTYPE_R4") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns]") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_R8) //-------------------------------------------------------------------- // @class Test DBTYPE_R8 // class TCDBTYPE_R8 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_R8,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_R8) #define THE_CLASS TCDBTYPE_R8 BEG_TEST_CASE(TCDBTYPE_R8, TCDATALITE, L"Test DBTYPE_R8") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_CY) //-------------------------------------------------------------------- // @class Test DBTYPE_CY // class TCDBTYPE_CY : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_CY,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_CY) #define THE_CLASS TCDBTYPE_CY BEG_TEST_CASE(TCDBTYPE_CY, TCDATALITE, L"Test DBTYPE_CY") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_DATE) //-------------------------------------------------------------------- // @class Test DBTYPE_DATE // class TCDBTYPE_DATE : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_DATE,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_DATE) #define THE_CLASS TCDBTYPE_DATE BEG_TEST_CASE(TCDBTYPE_DATE, TCDATALITE, L"Test DBTYPE_DATE") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_BSTR) //-------------------------------------------------------------------- // @class Test DBTYPE_BSTR // class TCDBTYPE_BSTR : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_BSTR,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_BSTR) #define THE_CLASS TCDBTYPE_BSTR BEG_TEST_CASE(TCDBTYPE_BSTR, TCDATALITE, L"Test DBTYPE_BSTR") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_ERROR) //-------------------------------------------------------------------- // @class Test DBTYPE_ERROR // class TCDBTYPE_ERROR : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_ERROR,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_ERROR) #define THE_CLASS TCDBTYPE_ERROR BEG_TEST_CASE(TCDBTYPE_ERROR, TCDATALITE, L"Test DBTYPE_ERROR") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_BOOL) //-------------------------------------------------------------------- // @class Test DBTYPE_BOOL // class TCDBTYPE_BOOL : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_BOOL,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember Truncation Case int Variation_3(); // @cmember GetColumns int Variation_4(); // @cmember GetColumns BYREF int Variation_5(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_BOOL) #define THE_CLASS TCDBTYPE_BOOL BEG_TEST_CASE(TCDBTYPE_BOOL, TCDATALITE, L"Test DBTYPE_BOOL") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"Truncation Case") TEST_VARIATION(4, L"GetColumns") TEST_VARIATION(5, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_VARIANT) //-------------------------------------------------------------------- // @class Test DBTYPE_VARIANT // class TCDBTYPE_VARIANT : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_VARIANT,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_VARIANT) #define THE_CLASS TCDBTYPE_VARIANT BEG_TEST_CASE(TCDBTYPE_VARIANT, TCDATALITE, L"Test DBTYPE_VARIANT") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_DECIMAL) //-------------------------------------------------------------------- // @class Test DBTYPE_DECIMAL // class TCDBTYPE_DECIMAL : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_DECIMAL,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_DECIMAL) #define THE_CLASS TCDBTYPE_DECIMAL BEG_TEST_CASE(TCDBTYPE_DECIMAL, TCDATALITE, L"Test DBTYPE_DECIMAL") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_UI1) //-------------------------------------------------------------------- // @class Test DBTYPE_UI1 // class TCDBTYPE_UI1 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_UI1,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_UI1) #define THE_CLASS TCDBTYPE_UI1 BEG_TEST_CASE(TCDBTYPE_UI1, TCDATALITE, L"Test DBTYPE_UI1") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_I1) //-------------------------------------------------------------------- // @class Test DBTYPE_I1 // class TCDBTYPE_I1 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_I1,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_I1) #define THE_CLASS TCDBTYPE_I1 BEG_TEST_CASE(TCDBTYPE_I1, TCDATALITE, L"Test DBTYPE_I1") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_UI2) //-------------------------------------------------------------------- // @class Test DBTYPE_UI2 // class TCDBTYPE_UI2 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_UI2,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_UI2) #define THE_CLASS TCDBTYPE_UI2 BEG_TEST_CASE(TCDBTYPE_UI2, TCDATALITE, L"Test DBTYPE_UI2") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_UI4) //-------------------------------------------------------------------- // @class Test DBTYPE_UI4 // class TCDBTYPE_UI4 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_UI4,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_UI4) #define THE_CLASS TCDBTYPE_UI4 BEG_TEST_CASE(TCDBTYPE_UI4, TCDATALITE, L"Test DBTYPE_UI4") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_I8) //-------------------------------------------------------------------- // @class Test DBTYPE_I8 // class TCDBTYPE_I8 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_I8,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_I8) #define THE_CLASS TCDBTYPE_I8 BEG_TEST_CASE(TCDBTYPE_I8, TCDATALITE, L"Test DBTYPE_I8") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_UI8) //-------------------------------------------------------------------- // @class Test DBTYPE_UI8 // class TCDBTYPE_UI8 : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_UI8,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_UI8) #define THE_CLASS TCDBTYPE_UI8 BEG_TEST_CASE(TCDBTYPE_UI8, TCDATALITE, L"Test DBTYPE_UI8") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_GUID) //-------------------------------------------------------------------- // @class Test DBTYPE_GUID // class TCDBTYPE_GUID : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_GUID,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_GUID) #define THE_CLASS TCDBTYPE_GUID BEG_TEST_CASE(TCDBTYPE_GUID, TCDATALITE, L"Test DBTYPE_GUID") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_BYTES) //-------------------------------------------------------------------- // @class Test DBTYPE_BYTES // class TCDBTYPE_BYTES : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_BYTES,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember Truncation Case int Variation_3(); // @cmember GetColumns int Variation_4(); // @cmember GetColumns BYREF int Variation_5(); // @cmember GetColumns Truncation int Variation_6(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_BYTES) #define THE_CLASS TCDBTYPE_BYTES BEG_TEST_CASE(TCDBTYPE_BYTES, TCDATALITE, L"Test DBTYPE_BYTES") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"Truncation Case") TEST_VARIATION(4, L"GetColumns") TEST_VARIATION(5, L"GetColumns BYREF") TEST_VARIATION(6, L"GetColumns Truncation") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_STR) //-------------------------------------------------------------------- // @class Test DBTYPE_STR // class TCDBTYPE_STR : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_STR,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember Truncation Case int Variation_3(); // @cmember GetColumns int Variation_4(); // @cmember GetColumns BYREF int Variation_5(); // @cmember GetColumns BYREF Truncation int Variation_6(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_STR) #define THE_CLASS TCDBTYPE_STR BEG_TEST_CASE(TCDBTYPE_STR, TCDATALITE, L"Test DBTYPE_STR") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"Truncation Case") TEST_VARIATION(4, L"GetColumns") TEST_VARIATION(5, L"GetColumns BYREF") TEST_VARIATION(6, L"GetColumns BYREF Truncation") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_WSTR) //-------------------------------------------------------------------- // @class Test DBTYPE_WSTR // class TCDBTYPE_WSTR : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_WSTR,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember Truncation Case int Variation_3(); // @cmember GetColumns int Variation_4(); // @cmember GetColumns BYREF int Variation_5(); // @cmember GetColumns BYREF Truncation int Variation_6(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_WSTR) #define THE_CLASS TCDBTYPE_WSTR BEG_TEST_CASE(TCDBTYPE_WSTR, TCDATALITE, L"Test DBTYPE_WSTR") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"Truncation Case") TEST_VARIATION(4, L"GetColumns") TEST_VARIATION(5, L"GetColumns BYREF") TEST_VARIATION(6, L"GetColumns BYREF Truncation") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_NUMERIC) //-------------------------------------------------------------------- // @class Test DBTYPE_NUMERIC // class TCDBTYPE_NUMERIC : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_NUMERIC,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_NUMERIC) #define THE_CLASS TCDBTYPE_NUMERIC BEG_TEST_CASE(TCDBTYPE_NUMERIC, TCDATALITE, L"Test DBTYPE_NUMERIC") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_DBDATE) //-------------------------------------------------------------------- // @class Test DBTYPE_DBDATE // class TCDBTYPE_DBDATE : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_DBDATE,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_DBDATE) #define THE_CLASS TCDBTYPE_DBDATE BEG_TEST_CASE(TCDBTYPE_DBDATE, TCDATALITE, L"Test DBTYPE_DBDATE") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_DBTIME) //-------------------------------------------------------------------- // @class Test DBTYPE_DBTIME // class TCDBTYPE_DBTIME : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_DBTIME,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_DBTIME) #define THE_CLASS TCDBTYPE_DBTIME BEG_TEST_CASE(TCDBTYPE_DBTIME, TCDATALITE, L"Test DBTYPE_DBTIME") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // {{ TCW_TEST_CASE_MAP(TCDBTYPE_DBTIMESTAMP) //-------------------------------------------------------------------- // @class Test DBTYPE_DBTIMESTAMP // class TCDBTYPE_DBTIMESTAMP : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_DBTIMESTAMP,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Use BYREF int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // }} } ; // {{ TCW_TESTCASE(TCDBTYPE_DBTIMESTAMP) #define THE_CLASS TCDBTYPE_DBTIMESTAMP BEG_TEST_CASE(TCDBTYPE_DBTIMESTAMP, TCDATALITE, L"Test DBTYPE_DBTIMESTAMP") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Use BYREF") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} TCW_TEST_CASE_MAP_END // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Test Case Section // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // {{ TCW_TEST_CASE_MAP(TCIConvetType) //-------------------------------------------------------------------- // @class Display supported conversion // class TCIConvetType : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCIConvetType,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Display all conversion int Variation_1(); // }} }; // {{ TCW_TESTCASE(TCIConvetType) #define THE_CLASS TCIConvetType BEG_TEST_CASE(TCIConvetType, TCDATALITE, L"Display supported conversion") TEST_VARIATION(1, L"Display all conversion") END_TEST_CASE() #undef THE_CLASS // }} // }} // {{ TCW_TEST_CASE_MAP(TCDBTYPE_VARNUMERIC) //-------------------------------------------------------------------- // @class Test VARNUMERIC conversions // class TCDBTYPE_VARNUMERIC : public TCDATALITE { private: // @cmember Static array of variations DECLARE_TEST_CASE_DATA(); public: // {{ TCW_DECLARE_FUNCS // @cmember Execution Routine DECLARE_TEST_CASE_FUNCS(TCDBTYPE_VARNUMERIC,TCDATALITE); // }} // @cmember Initialization Routine virtual BOOL Init(); // @cmember Termination Routine virtual BOOL Terminate(); // {{ TCW_TESTVARS() // @cmember Normal int Variation_1(); // @cmember Truncation int Variation_2(); // @cmember GetColumns int Variation_3(); // @cmember GetColumns BYREF int Variation_4(); // @cmember GetColumns Truncation int Variation_5(); // @cmember Normal BYREF int Variation_6(); // }} }; // {{ TCW_TESTCASE(TCDBTYPE_VARNUMERIC) #define THE_CLASS TCDBTYPE_VARNUMERIC BEG_TEST_CASE(TCDBTYPE_VARNUMERIC, TCDATALITE, L"Test VARNUMERIC conversions") TEST_VARIATION(1, L"Normal") TEST_VARIATION(2, L"Truncation") TEST_VARIATION(3, L"GetColumns") TEST_VARIATION(4, L"GetColumns BYREF") TEST_VARIATION(5, L"GetColumns Truncation") TEST_VARIATION(6, L"Normal BYREF") END_TEST_CASE() #undef THE_CLASS // }} // }} // }} END_DECLARE_TEST_CASES() // {{ TCW_TESTMODULE(ThisModule) TEST_MODULE(27, ThisModule, gwszModuleDescrip) TEST_CASE(1, TCDBTYPE_I2) TEST_CASE(2, TCDBTYPE_I4) TEST_CASE(3, TCDBTYPE_R4) TEST_CASE(4, TCDBTYPE_R8) TEST_CASE(5, TCDBTYPE_CY) TEST_CASE(6, TCDBTYPE_DATE) TEST_CASE(7, TCDBTYPE_BSTR) TEST_CASE(8, TCDBTYPE_ERROR) TEST_CASE(9, TCDBTYPE_BOOL) TEST_CASE(10, TCDBTYPE_VARIANT) TEST_CASE(11, TCDBTYPE_DECIMAL) TEST_CASE(12, TCDBTYPE_UI1) TEST_CASE(13, TCDBTYPE_I1) TEST_CASE(14, TCDBTYPE_UI2) TEST_CASE(15, TCDBTYPE_UI4) TEST_CASE(16, TCDBTYPE_I8) TEST_CASE(17, TCDBTYPE_UI8) TEST_CASE(18, TCDBTYPE_GUID) TEST_CASE(19, TCDBTYPE_BYTES) TEST_CASE(20, TCDBTYPE_STR) TEST_CASE(21, TCDBTYPE_WSTR) TEST_CASE(22, TCDBTYPE_NUMERIC) TEST_CASE(23, TCDBTYPE_DBDATE) TEST_CASE(24, TCDBTYPE_DBTIME) TEST_CASE(25, TCDBTYPE_DBTIMESTAMP) TEST_CASE(26, TCIConvetType) TEST_CASE(27, TCDBTYPE_VARNUMERIC) END_TEST_MODULE() // }} // {{ TCW_TC_PROTOTYPE(TCDBTYPE_I2) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_I2 - Test DBTYPE_I2 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_I2::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I2::Variation_1() { return GetDataCoerce(DBTYPE_I2, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I2::Variation_2() { return GetDataCoerce(DBTYPE_I2, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I2::Variation_3() { return GetDataCoerce(DBTYPE_I2, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I2::Variation_4() { return GetDataCoerce(DBTYPE_I2, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_I2::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_I4) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_I4 - Test DBTYPE_I4 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_I4::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I4::Variation_1() { return GetDataCoerce(DBTYPE_I4, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I4::Variation_2() { return GetDataCoerce(DBTYPE_I4, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I4::Variation_3() { return GetDataCoerce(DBTYPE_I4, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I4::Variation_4() { return GetDataCoerce(DBTYPE_I4, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_I4::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_R4) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_R4 - Test DBTYPE_R4 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_R4::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R4::Variation_1() { return GetDataCoerce(DBTYPE_R4, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R4::Variation_2() { return GetDataCoerce(DBTYPE_R4, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns] // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R4::Variation_3() { return GetDataCoerce(DBTYPE_R4, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R4::Variation_4() { return GetDataCoerce(DBTYPE_R4, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_R4::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_R8) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_R8 - Test DBTYPE_R8 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_R8::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R8::Variation_1() { return GetDataCoerce(DBTYPE_R8, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R8::Variation_2() { return GetDataCoerce(DBTYPE_R8, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R8::Variation_3() { return GetDataCoerce(DBTYPE_R8, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_R8::Variation_4() { return GetDataCoerce(DBTYPE_R8, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_R8::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_CY) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_CY - Test DBTYPE_CY //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_CY::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_CY::Variation_1() { return GetDataCoerce(DBTYPE_CY, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_CY::Variation_2() { return GetDataCoerce(DBTYPE_CY, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_CY::Variation_3() { return GetDataCoerce(DBTYPE_CY, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_CY::Variation_4() { return GetDataCoerce(DBTYPE_CY, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_CY::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_DATE) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_DATE - Test DBTYPE_DATE //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_DATE::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DATE::Variation_1() { return GetDataCoerce(DBTYPE_DATE, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DATE::Variation_2() { return GetDataCoerce(DBTYPE_DATE, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DATE::Variation_3() { return GetDataCoerce(DBTYPE_DATE, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DATE::Variation_4() { return GetDataCoerce(DBTYPE_DATE, eGETCOLUMNS); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_DATE::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_BSTR) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_BSTR - Test DBTYPE_BSTR //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_BSTR::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BSTR::Variation_1() { return GetDataCoerce(DBTYPE_BSTR, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BSTR::Variation_2() { return GetDataCoerce(DBTYPE_BSTR, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BSTR::Variation_3() { return GetDataCoerce(DBTYPE_BSTR, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BSTR::Variation_4() { return GetDataCoerce(DBTYPE_BSTR, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_BSTR::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_ERROR) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_ERROR - Test DBTYPE_ERROR //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_ERROR::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_ERROR::Variation_1() { return GetDataCoerce(DBTYPE_ERROR, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_ERROR::Variation_2() { return GetDataCoerce(DBTYPE_ERROR, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_ERROR::Variation_3() { return GetDataCoerce(DBTYPE_ERROR, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_ERROR::Variation_4() { return GetDataCoerce(DBTYPE_ERROR, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_ERROR::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_BOOL) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_BOOL - Test DBTYPE_BOOL //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_BOOL::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BOOL::Variation_1() { return GetDataCoerce(DBTYPE_BOOL, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BOOL::Variation_2() { return GetDataCoerce(DBTYPE_BOOL, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc Truncation Case // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BOOL::Variation_3() { return GetDataCoerce(DBTYPE_BOOL, eTRUNCATE); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BOOL::Variation_4() { return GetDataCoerce(DBTYPE_BOOL, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(5) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BOOL::Variation_5() { return GetDataCoerce(DBTYPE_BOOL, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_BOOL::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_VARIANT) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_VARIANT - Test DBTYPE_VARIANT //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_VARIANT::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARIANT::Variation_1() { return GetDataCoerce(DBTYPE_VARIANT, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARIANT::Variation_2() { return GetDataCoerce(DBTYPE_VARIANT, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARIANT::Variation_3() { return GetDataCoerce(DBTYPE_VARIANT, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARIANT::Variation_4() { return GetDataCoerce(DBTYPE_VARIANT, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_VARIANT::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_DECIMAL) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_DECIMAL - Test DBTYPE_DECIMAL //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_DECIMAL::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DECIMAL::Variation_1() { return GetDataCoerce(DBTYPE_DECIMAL, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DECIMAL::Variation_2() { return GetDataCoerce(DBTYPE_DECIMAL, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DECIMAL::Variation_3() { return GetDataCoerce(DBTYPE_DECIMAL, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DECIMAL::Variation_4() { return GetDataCoerce(DBTYPE_DECIMAL, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_DECIMAL::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_UI1) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_UI1 - Test DBTYPE_UI1 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_UI1::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI1::Variation_1() { return GetDataCoerce(DBTYPE_UI1, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI1::Variation_2() { return GetDataCoerce(DBTYPE_UI1, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI1::Variation_3() { return GetDataCoerce(DBTYPE_UI1, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI1::Variation_4() { return GetDataCoerce(DBTYPE_UI1, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_UI1::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_I1) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_I1 - Test DBTYPE_I1 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_I1::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I1::Variation_1() { return GetDataCoerce(DBTYPE_I1, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I1::Variation_2() { return GetDataCoerce(DBTYPE_I1, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I1::Variation_3() { return GetDataCoerce(DBTYPE_I1, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I1::Variation_4() { return GetDataCoerce(DBTYPE_I1, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_I1::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_UI2) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_UI2 - Test DBTYPE_UI2 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_UI2::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI2::Variation_1() { return GetDataCoerce(DBTYPE_UI2, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI2::Variation_2() { return GetDataCoerce(DBTYPE_UI2, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI2::Variation_3() { return GetDataCoerce(DBTYPE_UI2, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI2::Variation_4() { return GetDataCoerce(DBTYPE_UI2, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_UI2::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_UI4) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_UI4 - Test DBTYPE_UI4 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_UI4::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI4::Variation_1() { return GetDataCoerce(DBTYPE_UI4, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI4::Variation_2() { return GetDataCoerce(DBTYPE_UI4, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI4::Variation_3() { return GetDataCoerce(DBTYPE_UI4, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI4::Variation_4() { return GetDataCoerce(DBTYPE_UI4, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_UI4::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_I8) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_I8 - Test DBTYPE_I8 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_I8::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I8::Variation_1() { return GetDataCoerce(DBTYPE_I8, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I8::Variation_2() { return GetDataCoerce(DBTYPE_I8, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I8::Variation_3() { return GetDataCoerce(DBTYPE_I8, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_I8::Variation_4() { return GetDataCoerce(DBTYPE_I8, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_I8::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_UI8) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_UI8 - Test DBTYPE_UI8 //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_UI8::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI8::Variation_1() { return GetDataCoerce(DBTYPE_UI8, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI8::Variation_2() { return GetDataCoerce(DBTYPE_UI8, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI8::Variation_3() { return GetDataCoerce(DBTYPE_UI8, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_UI8::Variation_4() { return GetDataCoerce(DBTYPE_UI8, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_UI8::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_GUID) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_GUID - Test DBTYPE_GUID //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_GUID::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_GUID::Variation_1() { return GetDataCoerce(DBTYPE_GUID, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_GUID::Variation_2() { return GetDataCoerce(DBTYPE_GUID, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_GUID::Variation_3() { return GetDataCoerce(DBTYPE_GUID, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_GUID::Variation_4() { return GetDataCoerce(DBTYPE_GUID, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_GUID::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_BYTES) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_BYTES - Test DBTYPE_BYTES //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_BYTES::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_1() { return GetDataCoerce(DBTYPE_BYTES, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_2() { return GetDataCoerce(DBTYPE_BYTES, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc Truncation Case // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_3() { return GetDataCoerce(DBTYPE_BYTES, eTRUNCATE); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_4() { return GetDataCoerce(DBTYPE_BYTES, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(5) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_5() { return GetDataCoerce(DBTYPE_BYTES, eGETCOLUMNS_BYREF); } // }} // {{ TCW_VAR_PROTOTYPE(6) //-------------------------------------------------------------------- // @mfunc GetColumns Truncation // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_BYTES::Variation_6() { return GetDataCoerce(DBTYPE_BYTES, eGETCOLUMNS_TRUNCATE); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_BYTES::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_STR) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_STR - Test DBTYPE_STR //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_STR::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_1() { return GetDataCoerce(DBTYPE_STR, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_2() { return GetDataCoerce(DBTYPE_STR, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc Truncation Case // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_3() { return GetDataCoerce(DBTYPE_STR, eTRUNCATE); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_4() { return GetDataCoerce(DBTYPE_STR, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(5) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_5() { return GetDataCoerce(DBTYPE_STR, eGETCOLUMNS_BYREF); } // }} // {{ TCW_VAR_PROTOTYPE(6) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF Truncation // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_STR::Variation_6() { return GetDataCoerce(DBTYPE_STR, eGETCOLUMNS_TRUNCATE); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_STR::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_WSTR) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_WSTR - Test DBTYPE_WSTR //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_WSTR::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_1() { return GetDataCoerce(DBTYPE_WSTR, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_2() { return GetDataCoerce(DBTYPE_WSTR, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc Truncation Case // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_3() { return GetDataCoerce(DBTYPE_WSTR, eTRUNCATE); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_4() { return GetDataCoerce(DBTYPE_WSTR, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(5) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_5() { return GetDataCoerce(DBTYPE_WSTR, eGETCOLUMNS_BYREF); } // }} // {{ TCW_VAR_PROTOTYPE(6) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF Truncation // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_WSTR::Variation_6() { return GetDataCoerce(DBTYPE_WSTR, eGETCOLUMNS_TRUNCATE); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_WSTR::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_NUMERIC) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_NUMERIC - Test DBTYPE_NUMERIC //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_NUMERIC::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_NUMERIC::Variation_1() { return GetDataCoerce(DBTYPE_NUMERIC, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_NUMERIC::Variation_2() { return GetDataCoerce(DBTYPE_NUMERIC, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_NUMERIC::Variation_3() { return GetDataCoerce(DBTYPE_NUMERIC, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_NUMERIC::Variation_4() { return GetDataCoerce(DBTYPE_NUMERIC, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_NUMERIC::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_DBDATE) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_DBDATE - Test DBTYPE_DBDATE //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_DBDATE::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBDATE::Variation_1() { return GetDataCoerce(DBTYPE_DBDATE, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBDATE::Variation_2() { return GetDataCoerce(DBTYPE_DBDATE, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBDATE::Variation_3() { return GetDataCoerce(DBTYPE_DBDATE, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBDATE::Variation_4() { return GetDataCoerce(DBTYPE_DBDATE, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_DBDATE::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_DBTIME) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_DBTIME - Test DBTYPE_DBTIME //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_DBTIME::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIME::Variation_1() { return GetDataCoerce(DBTYPE_DBTIME, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIME::Variation_2() { return GetDataCoerce(DBTYPE_DBTIME, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIME::Variation_3() { return GetDataCoerce(DBTYPE_DBTIME, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIME::Variation_4() { return GetDataCoerce(DBTYPE_DBTIME, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_DBTIME::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCDBTYPE_DBTIMESTAMP) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_DBTIMESTAMP - Test DBTYPE_DBTIMESTAMP //| Created: 9/27/97 //*----------------------------------------------------------------------- //*----------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_DBTIMESTAMP::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIMESTAMP::Variation_1() { return GetDataCoerce(DBTYPE_DBTIMESTAMP, eNORMAL); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Use BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIMESTAMP::Variation_2() { return GetDataCoerce(DBTYPE_DBTIMESTAMP, eBYREF); } // }} TCW_VAR_PROTOTYPE_END // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIMESTAMP::Variation_3() { return GetDataCoerce(DBTYPE_DBTIMESTAMP, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_DBTIMESTAMP::Variation_4() { return GetDataCoerce(DBTYPE_DBTIMESTAMP, eGETCOLUMNS_BYREF); } // }} // {{ TCW_TERMINATE_METHOD //*----------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TEST_PASS or TEST_FAIL // BOOL TCDBTYPE_DBTIMESTAMP::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} TCW_TERMINATE_METHOD_END // }} TCW_TC_PROTOTYPE_END // {{ TCW_TC_PROTOTYPE(TCIConvetType) //*----------------------------------------------------------------------- //| Test Case: TCIConvetType - Display supported conversion //| Created: 10/01/97 //*----------------------------------------------------------------------- //-------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCIConvetType::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Display all conversion // // @rdesc TEST_PASS or TEST_FAIL // int TCIConvetType::Variation_1() { OpenRowset(IID_IRowset); FindValidCoercions(); ReleaseRowset(); return TEST_PASS; } // }} // {{ TCW_TERMINATE_METHOD //-------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TRUE or FALSE // BOOL TCIConvetType::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} // }} // {{ TCW_TC_PROTOTYPE(TCDBTYPE_VARNUMERIC) //*----------------------------------------------------------------------- //| Test Case: TCDBTYPE_VARNUMERIC - Test VARNUMERIC conversions //| Created: 03/25/98 //*----------------------------------------------------------------------- //-------------------------------------------------------------------- // @mfunc TestCase Initialization Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_VARNUMERIC::Init() { // {{ TCW_INIT_BASECLASS_CHECK if(TCDATALITE::Init()) // }} { // TO DO: Add your own code here return TRUE; } return FALSE; } // {{ TCW_VAR_PROTOTYPE(1) //*----------------------------------------------------------------------- // @mfunc Normal // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_1() { return GetDataCoerce(DBTYPE_VARNUMERIC, eNORMAL); } // }} // {{ TCW_VAR_PROTOTYPE(2) //*----------------------------------------------------------------------- // @mfunc Truncation // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_2() { return GetDataCoerce(DBTYPE_VARNUMERIC, eTRUNCATE); } // }} // {{ TCW_VAR_PROTOTYPE(3) //*----------------------------------------------------------------------- // @mfunc GetColumns // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_3() { return GetDataCoerce(DBTYPE_VARNUMERIC, eGETCOLUMNS); } // }} // {{ TCW_VAR_PROTOTYPE(4) //*----------------------------------------------------------------------- // @mfunc GetColumns BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_4() { return GetDataCoerce(DBTYPE_VARNUMERIC, eGETCOLUMNS_BYREF); } // }} // {{ TCW_VAR_PROTOTYPE(5) //-------------------------------------------------------------------- // @mfunc GetColumns Truncation // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_5() { return GetDataCoerce(DBTYPE_VARNUMERIC, eGETCOLUMNS_TRUNCATE); } // }} // {{ TCW_VAR_PROTOTYPE(6) //-------------------------------------------------------------------- // @mfunc Normal BYREF // // @rdesc TEST_PASS or TEST_FAIL // int TCDBTYPE_VARNUMERIC::Variation_6() { return GetDataCoerce(DBTYPE_VARNUMERIC, eBYREF); } // }} // {{ TCW_TERMINATE_METHOD //-------------------------------------------------------------------- // @mfunc TestCase Termination Routine // // @rdesc TRUE or FALSE // BOOL TCDBTYPE_VARNUMERIC::Terminate() { // TO DO: Add your own code here // {{ TCW_TERM_BASECLASS_CHECK2 return(TCDATALITE::Terminate()); } // }} // }} // }}
[ "masonleeback@gmail.com" ]
masonleeback@gmail.com
d99da0d73dc07b64a184b6978ab5117a223ea47f
c6f08f2bb8b812bcb63a6216fbd674e1ebdf00d8
/ni_header/NiLightColorController.h
e46a5c0eaa110ca35e723a9fbbcda4dbf7ce8922
[]
no_license
yuexiae/ns
b45e2e97524bd3d5d54e8a79e6796475b13bd3f9
ffeb846c0204981cf9ae8033a83b2aca2f8cc3ac
refs/heads/master
2021-01-19T19:11:39.353269
2016-06-08T05:56:35
2016-06-08T05:56:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,765
h
// NUMERICAL DESIGN LIMITED PROPRIETARY INFORMATION // // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Numerical Design Limited and may not // be copied or disclosed except in accordance with the terms of that // agreement. // // Copyright (c) 1996-2004 Numerical Design Limited. // All Rights Reserved. // // Numerical Design Limited, Chapel Hill, North Carolina 27514 // http://www.ndl.com #ifndef NILIGHTCOLORCONTROLLER_H #define NILIGHTCOLORCONTROLLER_H #include <NiLight.h> #include <NiPoint3InterpController.h> #include "NiPosData.h" NiSmartPointer(NiLightColorController); class NIANIMATION_ENTRY NiLightColorController : public NiPoint3InterpController { NiDeclareRTTI; NiDeclareClone(NiLightColorController); NiDeclareStream; NiDeclareViewerStrings; NiDeclareFlags(unsigned short); public: NiLightColorController (); virtual ~NiLightColorController(); virtual void Update(float fTime); // animation data access void SetAmbient(bool bIsAmbient); bool GetAmbient() const; // *** begin NDL internal use only *** virtual const char* GetCtlrID(); // *** begin NDL internal use only *** protected: // Virtual function overrides from base classes. virtual bool InterpTargetIsCorrectType(NiObjectNET* pkTarget) const; virtual void GetTargetPoint3Value(NiPoint3& kValue); // --- Begin NIF conversion code // Deprecated flags - use new flag code enum { MAX_POS = 6 }; // --- End NIF conversion code // flags enum { ISAMBIENT_MASK = 0x0001 }; }; #include "NiLightColorController.inl" #endif
[ "ioio@ioio-nb.lan" ]
ioio@ioio-nb.lan
1ee2b587dfa5b3f528da21ffa14a7e6360e08c4d
73c2ef03d34ca0bcea38c28ea55c423f988982ae
/20200715-20210820/传智杯200418/T130014 补刀.cpp
5198cdd89528a2b544e219fcdad8344bf80a21f4
[]
no_license
Tabing010102/OI
95e255f8b6c3941987b3f8e71049dea288e33d17
95d82869922ae246c7ce31d6a549da2e484c3b0b
refs/heads/master
2021-08-28T01:39:54.553201
2021-08-20T01:46:11
2021-08-20T01:46:11
66,641,222
0
0
null
null
null
null
UTF-8
C++
false
false
529
cpp
#include <iostream> using namespace std; typedef long long LL; int main() { int n; cin >> n; for(int i = 0; i < n; i++) { LL h, x, y; cin >> h >> x >> y; if(h <= 0) cout << "Yes" << endl; else if(y <= 0) cout << "No" << endl; else if(x <= 0) cout << "Yes" << endl; else { LL s=h/x, left=h%x; if(left <= 0) { s--; left+=x; } if(left <= y) { cout << "Yes" << endl; continue; } LL t1=left/y; if(left > t1*y) t1++; if(t1 > s+1) cout << "No" << endl; else cout << "Yes" << endl; } } return 0; }
[ "897309345@qq.com" ]
897309345@qq.com
4d76643f5562056a5bf49b691d81828d617350d3
9ad10fbfd382458d8f30d33ba02930036e014d78
/Source/ARPG/Private/CharacterUtil/ExecuteActionSet.cpp
d007fe81ad2cdc2a40260e6e6167861eb49e2ff7
[]
no_license
robinhood90/ARPG
5638511ea1c7d6d57f1cb77088ac286c71bf1eff
222e7459d603ad111f164c06be900ad664c3920e
refs/heads/master
2021-10-03T10:20:19.670611
2018-12-02T16:29:45
2018-12-02T16:29:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,867
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "ExecuteActionSet.h" #include <Kismet/KismetMathLibrary.h> #include <Components/SkeletalMeshComponent.h> #include <Kismet/KismetSystemLibrary.h> #include "CharacterBase.h" #include "ARPG_CollisionType.h" bool FExecuteActionSet::InvokeExecuteOther(class ACharacterBase* Invoker, class ACharacterBase* ExecuteTarget) const { //考虑特殊处决 if (UAnimMontage* ExecuteTargetCurrentMontage = ExecuteTarget->GetCurrentMontage()) { if (const FExecuteAnimData* ExecuteAnimData = ExecuteMontageMap.Find(ExecuteTargetCurrentMontage)) { FRotator LookAtRotation = UKismetMathLibrary::FindLookAtRotation(ExecuteTarget->GetActorLocation(), Invoker->GetActorLocation()); FRotator CompareRotation = UKismetMathLibrary::FindLookAtRotation(ExecuteTarget->GetActorLocation(), ExecuteTarget->GetActorLocation() + ExecuteTarget->GetActorRotation().RotateVector(ExecuteAnimData->RelationLocation)); if (FMath::Abs(FRotator::NormalizeAxis(LookAtRotation.Yaw - CompareRotation.Yaw)) <= ExecuteAnimData->Tolerance) { FVector TargetLocation(ExecuteTarget->GetActorLocation() + ExecuteTarget->GetActorRotation().RotateVector(ExecuteAnimData->RelationLocation)); TargetLocation.Z = Invoker->GetActorLocation().Z; FRotator TargetRotation(Invoker->GetActorRotation().Pitch, UKismetMathLibrary::FindLookAtRotation(Invoker->GetActorLocation(), ExecuteTarget->GetActorLocation()).Yaw + ExecuteAnimData->YawOffset, Invoker->GetActorRotation().Roll); Invoker->ExecuteOther(ExecuteTarget, TargetLocation, TargetRotation, ExecuteAnimData->AttackMontage, ExecuteAnimData->BeAttackedMontage); return true; } } } //考虑背刺 if (ExecuteTarget->CanBeBackstab(Invoker)) { if (const FBackstabAnimData* AttackMontagePair = FindBackstabAnimData(ExecuteTarget)) { if (AttackMontagePair->AttackMontage && AttackMontagePair->BeAttackedMontage) { FVector TargetLocation(ExecuteTarget->GetActorLocation() + ExecuteTarget->GetActorRotation().RotateVector(AttackMontagePair->RelationLocation)); TargetLocation.Z = Invoker->GetActorLocation().Z; FRotator TargetRotation(Invoker->GetActorRotation().Pitch, ExecuteTarget->GetActorRotation().Yaw, Invoker->GetActorRotation().Roll); Invoker->ExecuteOther(ExecuteTarget, TargetLocation, TargetRotation, AttackMontagePair->AttackMontage, AttackMontagePair->BeAttackedMontage); return true; } } } return false; } bool FExecuteActionSet::TraceForExecuteOther(class ACharacterBase* Invoker) { if (Invoker) { const float TraceDistance = 100.f; FHitResult TraceCharacterResult; if (UKismetSystemLibrary::SphereTraceSingleForObjects(Invoker, Invoker->GetActorLocation(), Invoker->GetActorLocation() + Invoker->GetActorForwardVector() * TraceDistance, 15.f, { FARPG_CollisionObjectType::Pawn }, false, { Invoker }, EDrawDebugTrace::None, TraceCharacterResult, false)) { FHitResult CanExecuteCheckResult; UKismetSystemLibrary::LineTraceSingle(Invoker, Invoker->GetActorLocation(), TraceCharacterResult.GetActor()->GetActorLocation(), FARPG_TraceQueryType::Visibility, false, { Invoker }, EDrawDebugTrace::None, CanExecuteCheckResult, false); if (TraceCharacterResult.GetActor() == CanExecuteCheckResult.GetActor()) { if (ACharacterBase* ExecuteTarget = Cast<ACharacterBase>(TraceCharacterResult.GetActor())) { return InvokeExecuteOther(Invoker, ExecuteTarget); } } } } return false; } const FBackstabAnimData* FExecuteActionSet::FindBackstabAnimData(class ACharacterBase* Character) const { for (UClass* Class = Character->GetClass(); Class != ACharacterBase::StaticClass(); Class = Class->GetSuperClass()) { if (const FBackstabAnimData* BackstabAnimData = BackstabMap.Find(Class)) { return BackstabAnimData; } } return nullptr; }
[ "450614754@qq.com" ]
450614754@qq.com
30a2ea851c1fb8f5a8d84ddacfbf72bcd42609dd
10d57ce051ca936f6822724a4e996d35f7cd269c
/chrome/browser/media/router/media_router_dialog_controller.h
0df76656e978139c1f871690f4171122c81485ae
[ "BSD-3-Clause" ]
permissive
billti/chromium
aea73afa192266460538df692e80dd3f749d2751
94fde1ddc4a9db7488fd646443688a88c178c158
refs/heads/master
2023-02-02T05:00:23.474800
2020-09-24T16:57:28
2020-09-24T16:57:28
298,350,654
0
0
BSD-3-Clause
2020-09-24T17:37:58
2020-09-24T17:37:57
null
UTF-8
C++
false
false
4,383
h
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_DIALOG_CONTROLLER_H_ #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_DIALOG_CONTROLLER_H_ #include <memory> #include <string> #include "base/macros.h" #include "components/media_router/common/mojom/media_router.mojom.h" #include "content/public/browser/presentation_request.h" #include "content/public/browser/presentation_service_delegate.h" #include "content/public/browser/web_contents_observer.h" #include "third_party/blink/public/mojom/presentation/presentation.mojom.h" namespace content { class WebContents; } // namespace content namespace media_router { class StartPresentationContext; enum class MediaRouterDialogOpenOrigin; // An abstract base class for Media Router dialog controllers. Tied to a // WebContents known as the |initiator|, and is lazily created when a Media // Router dialog needs to be shown. The MediaRouterDialogController allows // showing and closing a Media Router dialog modal to the initiator WebContents. // This class is not thread safe and must be called on the UI thread. class MediaRouterDialogController { public: virtual ~MediaRouterDialogController(); // Gets a reference to the MediaRouterDialogController associated with // |web_contents|, creating one if it does not exist. The returned pointer is // guaranteed to be non-null. This method has platform-specific // implementations in directories such as chrome/browser/ui/views/ and // chrome/browser/media/android/. static MediaRouterDialogController* GetOrCreateForWebContents( content::WebContents* web_contents); // Shows the media router dialog modal to |initiator_|, with additional // context for a PresentationRequest coming from the page given by the input // parameters. // Returns true if the dialog is created as a result of this call. // If the dialog already exists, or dialog cannot be created, then false is // returned, and |error_cb| will be invoked. virtual bool ShowMediaRouterDialogForPresentation( std::unique_ptr<StartPresentationContext> context); // Shows the media router dialog modal to |initiator_|. // Creates the dialog if it did not exist prior to this call, returns true. // If the dialog already exists, brings it to the front, returns false. virtual bool ShowMediaRouterDialog( MediaRouterDialogOpenOrigin activation_location); // Hides the media router dialog. // It is a no-op to call this function if there is currently no dialog. void HideMediaRouterDialog(); // Indicates if the media router dialog already exists. virtual bool IsShowingMediaRouterDialog() const = 0; protected: // Use MediaRouterDialogController::GetOrCreateForWebContents() to create an // instance. explicit MediaRouterDialogController(content::WebContents* initiator); // Creates a media router dialog if necessary, then activates the WebContents // that initiated the dialog, e.g. focuses the tab. void FocusOnMediaRouterDialog( bool dialog_needs_creation, MediaRouterDialogOpenOrigin activation_location); // Returns the WebContents that initiated showing the dialog. content::WebContents* initiator() const { return initiator_; } // Resets the state of the controller. Must be called from the overrides. virtual void Reset(); // Creates a new media router dialog modal to |initiator_|. virtual void CreateMediaRouterDialog( MediaRouterDialogOpenOrigin activation_location) = 0; // Closes the media router dialog if it exists. virtual void CloseMediaRouterDialog() = 0; // Data for dialogs created at the request of the Presentation API. // Created from arguments passed in via ShowMediaRouterDialogForPresentation. std::unique_ptr<StartPresentationContext> start_presentation_context_; private: class InitiatorWebContentsObserver; // An observer for the |initiator_| that closes the dialog when |initiator_| // is destroyed or navigated. std::unique_ptr<InitiatorWebContentsObserver> initiator_observer_; content::WebContents* const initiator_; DISALLOW_COPY_AND_ASSIGN(MediaRouterDialogController); }; } // namespace media_router #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_DIALOG_CONTROLLER_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
161fc79756dec664d0666f1a384f5c432446a5ac
a8e08c49c9fc80ed997e9e80239477cafa298f5a
/dbxCircle/StdAfx.h
7cb288d49ecc54aeff980685967d3f8a48ba6f7a
[]
no_license
softempire/ManagedCircle
31eadd6c02f08cd0ba7dceb1bf2118d6684d2b31
fb8cd0b9673beaebbe6b35808a0779f63eadcba7
refs/heads/master
2022-12-25T21:13:29.335558
2020-10-05T11:12:25
2020-10-05T11:12:25
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,002
h
// (C) Copyright 2002-2007 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warranty and // restricted rights notice below appear in all supporting // documentation. // // AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC. // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // // Use, duplication, or disclosure by the U.S. Government is subject to // restrictions set forth in FAR 52.227-19 (Commercial Computer // Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) // (Rights in Technical Data and Computer Software), as applicable. // //----------------------------------------------------------------------------- //- StdAfx.h : include file for standard system include files, //- or project specific include files that are used frequently, //- but are changed infrequently //----------------------------------------------------------------------------- #pragma once #pragma pack (push, 8) #pragma warning(disable: 4786 4996) //#pragma warning(disable: 4098) //----------------------------------------------------------------------------- #include <windows.h> //- ObjectARX and OMF headers needs this #include <map> //----------------------------------------------------------------------------- //- Include ObjectDBX/ObjectARX headers //- Uncomment one of the following lines to bring a given library in your project. //#define _BREP_SUPPORT_ //- Support for the BRep API //#define _HLR_SUPPORT_ //- Support for the Hidden Line Removal API //#define _AMODELER_SUPPORT_ //- Support for the AModeler API #include "dbxHeaders.h" #pragma pack (pop)
[ "madhukar.moogala@autodesk.com" ]
madhukar.moogala@autodesk.com
0cfed4f3060894cd76a5f0652d2b07856a0f43ed
8afd03b165ffb6b9458c2b29de0d401686e4133b
/diy-e7/diy-e7.ino
c8bf814c47d0d19a7e9b7b31981c035f505598b0
[ "CC0-1.0" ]
permissive
louisguan/digital-still-camera-esp32-cam-diy-7
ff0b45be86e0af0239ec25a9db9b0d825abb5192
5f0a10b2b6fbd9607408f16ea29a6cf07b5e4829
refs/heads/master
2022-04-25T20:47:03.832874
2020-05-02T14:19:34
2020-05-02T14:19:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,697
ino
/************************************************************************************************************************************* * TITLE: Digital Still Image Camera Using The ESP32-CAM board * Whenever the board reset button is pressed, it will take an image, save it to the microSD card and go back to sleep to save power. * This loop continues indefinitely. The microSD card needs to be formatted with the FAT32 file system. * * By Frenoy Osburn * YouTube Video: https://youtu.be/KEU2GTS1YlQ * BnBe Post: https://www.bitsnblobs.com/digital-still-image-camera---esp32-cam *************************************************************************************************************************************/ /******************************************************************************************************************** * Board Settings: * Board: "ESP32 Wrover Module" * Upload Speed: "921600" * Flash Frequency: "80MHz" * Flash Mode: "QIO" * Partition Scheme: "Hue APP (3MB No OTA/1MB SPIFFS)" * Core Debug Level: "None" * COM Port: Depends *On Your System* *********************************************************************************************************************/ #include "esp_camera.h" #include "FS.h" #include "SPI.h" #include "SD_MMC.h" #include "EEPROM.h" #include "driver/rtc_io.h" // Select camera model //#define CAMERA_MODEL_WROVER_KIT //#define CAMERA_MODEL_ESP_EYE //#define CAMERA_MODEL_M5STACK_PSRAM //#define CAMERA_MODEL_M5STACK_WIDE #define CAMERA_MODEL_AI_THINKER #include "camera_pins.h" #define ID_ADDRESS 0x00 #define COUNT_ADDRESS 0x01 #define ID_BYTE 0xAA #define EEPROM_SIZE 0x0F uint16_t nextImageNumber = 0; void setup() { Serial.begin(115200); Serial.println(); Serial.println("Booting..."); pinMode(4, INPUT); //GPIO for LED flash digitalWrite(4, LOW); rtc_gpio_hold_dis(GPIO_NUM_4); //disable pin hold if it was enabled before sleeping camera_config_t config; config.ledc_channel = LEDC_CHANNEL_0; config.ledc_timer = LEDC_TIMER_0; config.pin_d0 = Y2_GPIO_NUM; config.pin_d1 = Y3_GPIO_NUM; config.pin_d2 = Y4_GPIO_NUM; config.pin_d3 = Y5_GPIO_NUM; config.pin_d4 = Y6_GPIO_NUM; config.pin_d5 = Y7_GPIO_NUM; config.pin_d6 = Y8_GPIO_NUM; config.pin_d7 = Y9_GPIO_NUM; config.pin_xclk = XCLK_GPIO_NUM; config.pin_pclk = PCLK_GPIO_NUM; config.pin_vsync = VSYNC_GPIO_NUM; config.pin_href = HREF_GPIO_NUM; config.pin_sscb_sda = SIOD_GPIO_NUM; config.pin_sscb_scl = SIOC_GPIO_NUM; config.pin_pwdn = PWDN_GPIO_NUM; config.pin_reset = RESET_GPIO_NUM; config.xclk_freq_hz = 20000000; config.pixel_format = PIXFORMAT_JPEG; //init with high specs to pre-allocate larger buffers if(psramFound()) { config.frame_size = FRAMESIZE_UXGA; config.jpeg_quality = 10; config.fb_count = 2; } else { config.frame_size = FRAMESIZE_SVGA; config.jpeg_quality = 12; config.fb_count = 1; } #if defined(CAMERA_MODEL_ESP_EYE) pinMode(13, INPUT_PULLUP); pinMode(14, INPUT_PULLUP); #endif //initialize camera esp_err_t err = esp_camera_init(&config); if (err != ESP_OK) { Serial.printf("Camera init failed with error 0x%x", err); return; } //initialize & mount SD card if(!SD_MMC.begin()) { Serial.println("Card Mount Failed"); return; } uint8_t cardType = SD_MMC.cardType(); if(cardType == CARD_NONE) { Serial.println("No SD card attached"); return; } //initialize EEPROM & get file number if (!EEPROM.begin(EEPROM_SIZE)) { Serial.println("Failed to initialise EEPROM"); Serial.println("Exiting now"); while(1); //wait here as something is not right } /*ERASE EEPROM BYTES START*/ /* Serial.println("Erasing EEPROM..."); for(int i = 0; i < EEPROM_SIZE; i++) { EEPROM.write(i, 0xFF); EEPROM.commit(); delay(20); } Serial.println("Erased"); while(1); */ /*ERASE EEPROM BYTES END*/ if(EEPROM.read(ID_ADDRESS) != ID_BYTE) //there will not be a valid picture number { Serial.println("Initializing ID byte & restarting picture count"); nextImageNumber = 0; EEPROM.write(ID_ADDRESS, ID_BYTE); EEPROM.commit(); } else //obtain next picture number { EEPROM.get(COUNT_ADDRESS, nextImageNumber); nextImageNumber += 1; Serial.print("Next image number:"); Serial.println(nextImageNumber); } //take new image camera_fb_t * fb = NULL; //obtain camera frame buffer fb = esp_camera_fb_get(); if (!fb) { Serial.println("Camera capture failed"); Serial.println("Exiting now"); while(1); //wait here as something is not right } //save to SD card //generate file path String path = "/IMG" + String(nextImageNumber) + ".jpg"; fs::FS &fs = SD_MMC; //create new file File file = fs.open(path.c_str(), FILE_WRITE); if(!file) { Serial.println("Failed to create file"); Serial.println("Exiting now"); while(1); //wait here as something is not right } else { file.write(fb->buf, fb->len); EEPROM.put(COUNT_ADDRESS, nextImageNumber); EEPROM.commit(); } file.close(); //return camera frame buffer esp_camera_fb_return(fb); Serial.printf("Image saved: %s\n", path.c_str()); pinMode(4, OUTPUT); //GPIO for LED flash digitalWrite(4, LOW); //turn OFF flash LED rtc_gpio_hold_en(GPIO_NUM_4); //make sure flash is held LOW in sleep delay(500); Serial.println("Entering deep sleep mode"); Serial.flush(); esp_deep_sleep_start(); } void loop() { }
[ "team@bitsnblobs.com" ]
team@bitsnblobs.com
c6034c3ce27eafe47be432622a7aa0198376e7d5
16ba4fade5a6aa7f3f7c4bd73874df7ebed4477e
/src/yaml/parser.h
292c817038cce161073c0661e72235a6ee7f2760
[]
no_license
jleahred/maiquel-toolkit-cpp
f31304307d7da9af5ddeed73ffc8fcc0eceb926e
f19415a48a0d06ebe21b31aacc95da174c02d14f
refs/heads/master
2020-05-01T14:11:48.263204
2011-02-09T22:01:00
2011-02-09T22:01:00
37,780,586
0
0
null
null
null
null
UTF-8
C++
false
false
1,104
h
#ifndef PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #define PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 #if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4 #pragma once #endif #include "yaml/dll.h" #include "yaml/noncopyable.h" #include <ios> #include <memory> namespace YAML { struct Directives; struct Mark; struct Token; class EventHandler; class Node; class Scanner; class YAML_CPP_API Parser: private noncopyable { public: Parser(); Parser(std::istream& in); ~Parser(); operator bool() const; void Load(std::istream& in); bool HandleNextDocument(EventHandler& eventHandler); bool GetNextDocument(Node& document); void PrintTokens(std::ostream& out); private: void ParseDirectives(); void HandleDirective(const Token& token); void HandleYamlDirective(const Token& token); void HandleTagDirective(const Token& token); private: std::auto_ptr<Scanner> m_pScanner; std::auto_ptr<Directives> m_pDirectives; }; } #endif // PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
[ "none" ]
none
1810dccc9399d396a70e0d0e2d6f55e44636a521
37601659e7b779578c8973dd5d4f60e96c3aa0d1
/Bomberman/field.~h
e7b986c5a3212755e1ecef2444e0effad2b0ebfb
[]
no_license
kirkbackus/old-borland-projects
571f1c7c143458e0321cd4bec04664190e294a43
10c62a32f0f06e292dbfcac02e01d3405ef5506e
refs/heads/master
2021-01-23T03:22:14.004677
2014-11-22T22:19:35
2014-11-22T22:19:35
26,148,956
2
0
null
null
null
null
UTF-8
C++
false
false
1,583
class Field { private: int fieldarr[21][21]; Textures* txt; int img[2]; public: Field(Textures* textures); void SetImage(int type, int image_index); void SetPosition(int x, int y, int val); int GetPosition(int x, int y); bool CollisionRect(RECT r); void Draw(); }; Field::Field(Textures* textures) { for (int x=0;x<21;x++) for (int y=0;y<21;y++) fieldarr[x][y]=0; txt = textures; } void Field::SetImage(int type, int image_index) { img[type]=image_index; } inline void Field::SetPosition(int x, int y, int val) { fieldarr[x][y]=val; } inline int Field::GetPosition(int x, int y) {return(fieldarr[x][y]);} bool Field::CollisionRect(RECT r) { int rx = r.left/16; int ry = r.top/16; for (int x=rx-1;x<=rx+1;x++) { for (int y=ry-1;y<=ry+1;y++) { if (x<0 || x>=21 || y<0 || y>=21)continue; if (fieldarr[x][y]==0)continue; if (r.left + r.right > x*16 && r.top + r.bottom > y*16 && r.left < x*16+16 && r.top < y*16+16) return 1; } } return 0; } void Field::Draw() { for (int x=0;x<21;x++) for (int y=0;y<21;y++) { if (fieldarr[x][y]==1) { txt->SetTexture(img[0]); glEnable(GL_TEXTURE_2D); glPushMatrix (); glTranslatef(x*16,y*16,0); glBegin(GL_QUADS); glTexCoord2f(0.0f,1.0f); glVertex2f(0.0f,0.0f); glTexCoord2f(1.0f,1.0f); glVertex2f(16,0.0f); glTexCoord2f(1.0f,0.0f); glVertex2f(16,16); glTexCoord2f(0.0f,0.0f); glVertex2f(0.0f,16); glEnd(); glPopMatrix(); glDisable(GL_TEXTURE_2D); } } }
[ "kirkbackus@gmail.com" ]
kirkbackus@gmail.com
1b369e01bfaafb508bfbedf941d6044e13f754c1
b20353e26e471ed53a391ee02ea616305a63bbb0
/trunk/game/gas/GameGas/CSkillReplaceCfg.cpp
a3ea262b74e6af2a60e7c12b36ad7bbd74dca6ca
[]
no_license
trancx/ybtx
61de88ef4b2f577e486aba09c9b5b014a8399732
608db61c1b5e110785639d560351269c1444e4c4
refs/heads/master
2022-12-17T05:53:50.650153
2020-09-19T12:10:09
2020-09-19T12:10:09
291,492,104
0
0
null
2020-08-30T15:00:16
2020-08-30T15:00:15
null
WINDOWS-1252
C++
false
false
1,504
cpp
#include "stdafx.h" #include "CTxtTableFile.h" #include "CSkillReplaceServer.h" #include "LoadSkillCommon.h" #include "BaseHelper.h" #include "CCfgColChecker.inl" #include "CMagicStateCfg.h" #include "CSkillServer.h" namespace sqr { extern const wstring PATH_ALIAS_CFG; } CSkillReplace::MultiMapCSkillReplace CSkillReplace::ms_multimapSkillReplace; bool CSkillReplace::LoadConfig(const string& szFileName) { using namespace CfgChk; CTxtTableFile TabFile; SetTabFile(TabFile, "¼¼ÄÜÌæ»»±í"); if (!TabFile.Load(PATH_ALIAS_CFG.c_str(), szFileName.c_str())) return false; bool ret = true; for (int32 i = 1; i < TabFile.GetHeight(); i++) { SetLineNo(i); CSkillReplace* pSkillReplace = new CSkillReplace; ReadItem(pSkillReplace->m_sSkillName, szSkillReplace_SkillName); ReadItem(pSkillReplace->m_sStateName, szSkillReplace_StateName); ReadItem(pSkillReplace->m_sReplaceSkillName, szSkillReplace_ReplaceName); pSkillReplace->m_uPriority = i; ms_multimapSkillReplace.insert(pair<string, CSkillReplace*>(pSkillReplace->m_sSkillName,pSkillReplace)); } return ret; } void CSkillReplace::UnloadConfig() { MultiMapCSkillReplace::iterator it = ms_multimapSkillReplace.begin(); MultiMapCSkillReplace::iterator itEnd = ms_multimapSkillReplace.end(); for (;it!=itEnd;it++) { delete (*it).second; } ms_multimapSkillReplace.clear(); } CSkillReplace::CSkillReplace() { } CSkillReplace::~CSkillReplace() { }
[ "CoolManBob@a2c23ad7-41ce-4a1d-83b7-33535e6483ee" ]
CoolManBob@a2c23ad7-41ce-4a1d-83b7-33535e6483ee
79ff18cba42274b949f158967b4d46c9a8d450e7
58d63c02b1d3816498d61e9348401af758fd07cd
/Vector.h
2cc649761185ff45ef9da789f68bb84dd0c516b4
[]
no_license
ZzEeKkAa/MatrixAlgorithms
1efba272582ca537491bdbaa6e394620eb0f145c
13ae2c4d41be0cceee10361df86d7bdf864344de
refs/heads/master
2021-01-10T14:41:38.382362
2015-12-24T16:48:35
2015-12-24T16:48:35
47,456,864
0
0
null
null
null
null
UTF-8
C++
false
false
2,859
h
// // Created by Zeka on 12/17/2015. // #ifndef MATRIXALGORITHMS_VECTOR_H #define MATRIXALGORITHMS_VECTOR_H template<typename T> class Vector; #include <vector> #include "Matrix.h" template<typename T> class Vector { private: std::vector<T> v; public: Vector(int n=0){ v.resize(n,0); } Vector(Vector<T> const & V){ v=V.v; } void setN(int n){ v.resize(n,0); } int getN() const{ return v.size(); } T& operator()(int i){ return v[i]; } T operator()(int i) const{ if(i>=0 && i<v.size()) return v[i]; return 0; } Vector<T> operator/(T sclar) const{ Vector<T> ans(*this); for(int i=0; i<ans.getN(); ++i){ ans(i)/=sclar; } return ans; } Vector<T> operator*(T sclar) const{ Vector<T> ans(*this); for(int i=0; i<ans.getN(); ++i){ ans(i)*=sclar; } return ans; } Vector<T> operator*(Matrix<T> const & A) const { if (A.getM() != v.size()) return Vector<T>(); Vector<T> V(A.getN()); for (int j = 0; j < A.getN(); ++j) for (int i = 0; i < A.getM(); ++i) V(j) += A(i, j) * v[i]; return V; } T operator*(Vector<T> const & V) const { T ans=0; int n=this->getN()>V.getN()?V.getN():this->getN(); for(int i=0; i<n; ++i){ ans+=v[i]*V(i); } return ans; } Vector<T> const & operator-=(Vector<T> const & V){ if(V.getN()>getN()) setN(V.getN()); for(int i=0; i<V.getN(); ++i) v[i]-=V(i); return *this; } template <typename T0> friend Vector<T0> operator*(Matrix<T0> const & A, Vector<T0> const & V){ if(A.getN()!=V.getN()) return Vector<T0>(); Vector<T0> V1(A.getM()); for(int j=0; j<A.getN(); ++j) for(int i=0; i<A.getM(); ++i) V1(i)+=A(i,j)*V(j); return V1; } template <typename T0> friend std::ostream& operator<<(std::ostream& out, Vector<T0>const &V) { out<<"("; for(auto&e:V.v){ out<<e<<" "; } out<<")"; return out; } Vector<T> const & operator=(Vector<T> const & V){ v=V.v; return V; } }; /*template <typename T> T product(Vector<T> const & v1, Vector<T> const & v2){ T ans=0; int n=v1.getN()>v2.getN()?v2.getN():v1.getN(); for(int i=0; i<n; ++i){ ans+=v1(i)*v2(i); } return ans; }*/ template <typename T> Vector<T> project(Vector<T> const & e, Vector<T> const & a){ return e*((e*a)/(e*e)); } template <typename T> T norm(Vector<T> const & v){ T ans = 0; for(int i=0; i<v.getN(); ++i) ans+=v(i)*v(i); ans=sqrt(ans); return ans; } #endif //MATRIXALGORITHMS_VECTOR_H
[ "egavrilko@gmail.com" ]
egavrilko@gmail.com
34141e1f3334a1d7535a9b011b7df4be53316e24
df5fb5407f51fdd4e96051a5dacd93e56ea52ed9
/source/messaging/MessageBus.cpp
3fe9d50a8957c04fc8c92ff8c2a4414edf6033b3
[]
no_license
agjaeger/cobalt
4334a9aace09002d6147060cc78ef074932b2b70
9e3f75a8c0b9e4867dc6dfde0ea1ff14bba4ac71
refs/heads/master
2020-04-17T12:49:28.038701
2019-01-21T19:57:20
2019-01-21T19:57:20
166,593,572
0
0
null
null
null
null
UTF-8
C++
false
false
1,175
cpp
#include "messaging/MessageBus.hpp" using namespace cobalt::messaging; MessageBus::MessageBus () {} /* Registers a subscriber to a specific message */ void MessageBus::addSubscriber ( MessageID p_msgID, Subscriber p_subscriber ) { m_subscribers[p_msgID].push_back(p_subscriber); } /* Sends a message to all subscribers of this message Note: sending the message is delayed. */ void MessageBus::sendMessage ( MessagePtr p_msg ) { m_unsentMessages[p_msg->id].push(p_msg); } /* Processes the unsent message queue */ void MessageBus::notify () { // loop over all unsent messages by type // unsentMsg.first is the message id // unsentMsg.second is the queue of messages for (auto const& unsentMsg : m_unsentMessages) { auto messageId = unsentMsg.first; auto messageQueue = unsentMsg.second; while (!messageQueue.empty()) { for (auto subscriber = m_subscribers[messageId].begin(); subscriber != m_subscribers[messageId].end(); subscriber++) { (*subscriber)(messageQueue.front()); } messageQueue.pop(); } // for some reason, here the queue isnt empty? std::queue<MessagePtr> empty; std::swap(m_unsentMessages[messageId], empty); } }
[ "agjaeger@ualr.edu" ]
agjaeger@ualr.edu
143bbbe4cb710e577dbd7a3230e3c143a2791741
7ed3d77fbdd4421eb2abdaa5f49a68c9e4ddbb07
/jsonloading.cpp
a6585fe2b80ca2de1e0ecd5aa5647c2c58363ea0
[]
no_license
LugosFingite/StoryCreator
ec6ed4deb4885614f6b1d075a1c96d85a689b920
45172bd9726ec5963aa507f3d0a506bb97bc2b62
refs/heads/master
2021-01-17T18:43:01.902257
2017-07-02T15:54:21
2017-07-02T15:54:21
95,549,867
0
1
null
2017-07-02T15:54:22
2017-06-27T11:10:14
C++
UTF-8
C++
false
false
4,449
cpp
/* jsonloading %{Cpp:License:ClassName} - Yann BOUCHER (yann) 26/06/2017 ** ** ** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE ** Version 2, December 2004 ** ** Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> ** ** Everyone is permitted to copy and distribute verbatim or modified ** copies of this license document, and changing it is allowed as long ** as the name is changed. ** ** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE ** TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION ** ** 0. You just DO WHAT THE FUCK YOU WANT TO. */ #include <QFile> #include <QFileInfo> #include <QDirIterator> #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include "jsonloading.hpp" namespace jsonloading { void save(const Graph &graph, const QString &directory) { QDir::setCurrent(directory); QDir dir(directory); for (const auto& pair : graph) { auto info = pair.second.info; QJsonObject json; json["page"] = info.page; json["image"] = info.image; json["son"] = info.son; json["desc"] = info.desc; json["color"] = info.color.name(); json["loop_music"] = info.loopMusic; json["editor_pos_x"] = pair.second.pos.x(); json["editor_pos_y"] = pair.second.pos.y(); // copy images and sounds into game directory if (!info.image.isEmpty()) { QFileInfo imageInfo(info.image); dir.mkdir("Graphismes"); QFile::copy(info.image, "Graphismes/" + imageInfo.fileName()); json["image"] = "Graphismes/" + imageInfo.fileName(); } if (!info.son.isEmpty()) { QFileInfo sonInfo(info.son); dir.mkdir("Musique"); QFile::copy(info.son, "Musique/" + sonInfo.fileName()); json["son"] = "Musique/" + sonInfo.fileName(); } QJsonArray actions; for (const auto& actionpair : pair.second.actions) { QJsonObject action; action["cible"] = actionpair.first; action["desc"] = actionpair.second.desc; action["color"] = actionpair.second.color.name(); actions.push_back(action); } json["actions"] = actions; QFile saveFile(info.page + ".json"); if (!saveFile.open(QIODevice::WriteOnly)) { throw_json_fs_error(QObject::tr("Impossible de sauvegarder le fichier '").toStdString() + saveFile.fileName().toStdString() + "' !"); } QJsonDocument doc(json); saveFile.write(doc.toJson()); } } Graph load(const QString &directory) { Graph graph; QDirIterator it(directory, QStringList() << "*.json", QDir::Files, QDirIterator::Subdirectories); while (it.hasNext()) { Node node = detail::loadNode(it.next()); graph[node.info.page] = node; } return graph; } namespace detail { Node loadNode(const QString &filename) { QFile file(filename); if (!file.open(QIODevice::ReadOnly)) { throw_json_fs_error(QObject::tr("Impossible de charger le fichier de page '").toStdString() + file.fileName().toStdString() + "' !"); } Node node; try { QJsonDocument doc = QJsonDocument::fromJson(file.readAll()); QJsonObject json = doc.object(); node.info.page = json["page"].toString(); node.info.image = json["image"].toString(""); node.info.son = json["son"].toString(""); node.info.desc = json["desc"].toString(""); node.info.color = json["color"].toString("white"); node.info.loopMusic = json["loop_music"].toBool(false); node.pos.rx() = json["editor_pos_x"].toDouble(0); node.pos.ry() = json["editor_pos_y"].toDouble(0); QJsonArray actions = json["actions"].toArray(); for (const auto& action : actions) { node.actions[action.toObject()["cible"].toString()] = {action.toObject()["desc"].toString(), QColor(action.toObject()["color"].toString())}; } } catch (const QJsonParseError& err) { throw_json_parse_error(QObject::tr("Erreur lors du parsing du fichier '").toStdString() + file.fileName().toStdString() + "' : " + err.errorString().toStdString()); } return node; } } }
[ "Ya2n.boucher@gmail.com" ]
Ya2n.boucher@gmail.com
90a2c9595b227ea47a142ba71cd43eabed283e77
9f1b5a982aeb5f4a5524812ecfb021d79ee5dedd
/BufferQueue.h
c8a42cb87a7a3bfae5bc8bcc2e9177436dacc1e3
[]
no_license
avigailW/Waitable-Queue
4ac5b05ab1a40337d05ab430003923e3ca9044bf
62850e84c7d6e0ba7ab4e0c21257860f8295ebfc
refs/heads/master
2020-12-06T01:49:21.232640
2020-01-07T10:55:52
2020-01-07T10:55:52
232,305,903
0
0
null
null
null
null
UTF-8
C++
false
false
1,367
h
#ifndef PRODECER_CONSUMER_C___BUFFERQUEUE_H #define PRODECER_CONSUMER_C___BUFFERQUEUE_H #include <pthread.h> #define NUM_SIZE 1000000 #define BUFFER_SIZE 6 class BufferQueue { public: void addProductToQueue(int product); int consumeFromQueue(); BufferQueue(); ~BufferQueue(); private: int in; int out; int m_buffer[BUFFER_SIZE]; pthread_mutex_t m_lock; }; inline BufferQueue::BufferQueue() { pthread_mutex_init(&m_lock, NULL); in = 0; out = 0; } inline BufferQueue::~BufferQueue() { pthread_mutex_destroy(&m_lock); } inline void BufferQueue::addProductToQueue(int product) { pthread_mutex_lock(&m_lock); if (((in + 1) % BUFFER_SIZE) != out)/* do nothing */ { //printf("thread id: %d - product %d producing %d\n", pid, in, product); m_buffer[in] = product; in = (in + 1) % BUFFER_SIZE; } pthread_mutex_unlock(&m_lock); } inline int BufferQueue::consumeFromQueue() { int next_consumed; pthread_mutex_lock(&m_lock); if (in != out) /* do nothing */ { next_consumed = m_buffer[out]; //printf("thread id: %d - consumer %d consuming %d\n", pid, out, next_consumed.num); out = (out + 1) % BUFFER_SIZE; /* consume the item in next consumed */ } pthread_mutex_unlock(&m_lock); return next_consumed; } #endif
[ "noreply@github.com" ]
avigailW.noreply@github.com
54f5fe2a0f40d93aac6fb255bdd62198c5be10b7
bd301d175323df58e0dc2969ede40829118ca3c2
/D3D12Box/GeometryGenerator.h
3b136031c1ce1798215e14a5e2ff976688138484
[]
no_license
GaussFormula/D3D12Box
96f42392c7631bd03d9071aa9d878c004814b5d6
9f1c7b0d14294c607dd3635fc9bf7c6c99e81fa2
refs/heads/master
2022-11-06T11:19:28.694062
2020-06-22T01:59:10
2020-06-22T01:59:10
262,382,322
0
0
null
null
null
null
UTF-8
C++
false
false
2,356
h
#pragma once #include "stdafx.h" using namespace DirectX; class GeometryGenerator { public: typedef std::uint16_t uint16; typedef std::uint32_t uint32; class Vertex { public: Vertex(){} Vertex( const DirectX::XMFLOAT3& p, const DirectX::XMFLOAT3& n, const DirectX::XMFLOAT3& t, const DirectX::XMFLOAT2& uv ): Position(p), Normal(n), TangentU(t), TexC(uv) {} Vertex( float px,float py,float pz, float nx,float ny,float nz, float tx,float ty,float tz, float u,float v ): Position(px,py,pz), Normal(nx,ny,nz), TangentU(tx,ty,tz), TexC(u,v) {} DirectX::XMFLOAT3 Position; DirectX::XMFLOAT3 Normal; DirectX::XMFLOAT3 TangentU; DirectX::XMFLOAT2 TexC; }; class MeshData { public: std::vector<Vertex> Vertices; std::vector<uint32> Indices32; std::vector<uint16>& GetIndices16() { if (m_indices16.empty()) { m_indices16.resize(Indices32.size()); for (UINT i = 0; i < Indices32.size(); i++) { m_indices16[i] = static_cast<uint16>(Indices32[i]); } } return m_indices16; } private: std::vector<uint16> m_indices16; }; MeshData CreateCylinder( float bottomRadius, float topRadius, float height, uint32 sliceCount, uint32 stackCount ); MeshData CreateSphere( float radius, uint32 sliceCount, uint32 stackCount ); MeshData CreateBox(float width, float height, float depth, uint32 numSubdivisions); MeshData CreateGrid(float width, float depth, uint32 m, uint32 n); private: void BuildCylinderTopCap( float bottomRadius, float topRadius, float height, uint32 sliceCount, uint32 stackCount, MeshData& meshData ); void BuildCylinderBottomCap( float bottomRadius, float topRadius, float height, uint32 sliceCount, uint32 stackCount, MeshData& meshData ); void Subdivide(MeshData& meshData); Vertex MidPoint(const Vertex& v0, const Vertex& v1); };
[ "c594794@hotmail.com" ]
c594794@hotmail.com
32260f0f17ca3d244e9e8f90625e6774b04a9c8d
5d15d9d9cc8ff4a36ade9c967628ce99a90e0b25
/FirstCPP/Battle.cpp
4c89699f45d479dd5d263419d817e4517d871b01
[]
no_license
miio/FirstCPP
47e60dec4782609c8e33ee3cd9277d6180b984a2
95906714e49deaaf28f70174c7d77b839ed60d22
refs/heads/master
2021-01-21T13:14:47.699000
2013-04-20T17:59:24
2013-04-20T17:59:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,534
cpp
// // Battle.cpp // FirstCPP // // Created by miio mitani on 2013/04/20. // Copyright (c) 2013年 miio mitani. All rights reserved. // #include "Battle.h" #include <boost/shared_ptr.hpp> #include <boost/random.hpp> #include <boost/shared_array.hpp> #include <boost/foreach.hpp> Battle::Battle(boost::shared_ptr<Player> player){ boost::random::mt19937 gen(static_cast<unsigned int>(time(0))); boost::random::uniform_int_distribution<> dist(1,9); _gen = gen; _dist = dist; _player = player; } bool Battle::encount(){ if (_dist(_gen) > 5 and false == _player->isDie()) { for (int i=0;i < _dist(_gen); i++) { _enemies.push_back(boost::shared_ptr<Enemy>(new Enemy())); } return true; } return false; } void Battle::execute(){ bool isTurnPlayer = false; while(1) { if (isTurnPlayer) { this->playerTurn(); // 次のターンへ isTurnPlayer = false; } else { this->enemyTurn(); // 次のターンへ isTurnPlayer = true; } // 自分が死ぬか敵がいなくなったら終わり if (_player->isDie() or _enemies.size() <= 0) { break; } } } void Battle::playerTurn() { // 攻撃する _player->selectAttack(); if (_player->isRangeAttack()) { // 範囲攻撃なら全員に攻撃 for(std::vector<boost::shared_ptr<Enemy>>::iterator it=_enemies.begin(); it!=_enemies.end(); ) { this->attackToEnemy(it); } } else { // 通常攻撃なら先頭要素に攻撃 this->attackToEnemy(_enemies.begin()); } } void Battle::attackToEnemy(std::vector<boost::shared_ptr<Enemy>>::iterator it) { boost::shared_ptr<Enemy> enemy = *it; enemy->getDamage(_player->attack()); if (enemy->isDie()) { _enemies.erase(it); std::cout << "敵を倒した 敵の残り数" << _enemies.size() << "\n"; } else { std::cout << enemy->getHp() << " HP 敵の体力が残っている\n"; } } void Battle::enemyTurn() { // 敵配列を回して攻撃判定 BOOST_FOREACH( boost::shared_ptr<Enemy> enemy, _enemies) { _player->getDamage(enemy->attack()); if (_player->isDie()) { std::cout << "敵の攻撃によって倒されてしまった...! \n"; break; } else { std::cout << "敵の攻撃 プレーヤの残HP :" << _player->getHp() << "\n"; } } }
[ "info@miio.info" ]
info@miio.info
7a955def4e0b4591b7561b853269f2b30e820e1e
44ba2affe36982c9e28a6aa4866876f32d1e3410
/CHexNode.h
2416a0bc615a6b87708c2d39aa98d13b91f4769c
[]
no_license
Brad-Hester/Sine_Nomine
6db3b2f7fa037ae431c7efe910fdea973536728d
f1a4190a259288f1030cfe5c7727e897bafccb81
refs/heads/master
2022-09-07T14:50:36.004677
2013-06-19T23:32:51
2013-06-19T23:32:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,263
h
#ifndef __CHexNode_H #define __CHexNode_H #include "CTLManager.h" #include "CUnit.h" enum ETerrainType{PLAIN, FOREST, WATER}; enum EBorderType{NONE, ACTIVE}; class CHexNode { protected: // Visuals static IMesh* mpMeshHex; static IMesh* mpMeshBorder; IModel* mpModelHex; IModel* mpModelBorder; // Path finding tools int mGridX; int mGridY; int mDistance; int mTerrainHeight; int mCost; CHexNode* mpParent; ETerrainType meTerrainType; EBorderType meBorderType; CUnit* mpUnit; public: CHexNode(int gridX, int gridY); virtual ~CHexNode(); float GetWorldX(); float GetWorldY(); float GetWorldZ(); int GetGridX(); int GetGridY(); int GetTerrainHeight(); ETerrainType GetTerrainType(); CHexNode* GetParent(); int GetCost(); int GetDistance(); CUnit* GetUnit(); void SetParent(CHexNode* pParent); void SetTerrainHeight(int height); void SetBorderType(EBorderType eType); void SetCost(int cost); void SetDistance(int dist); void AddTerrainHeight(int height); bool AddNewUnit(EUnitType eType); bool AddUnit(CUnit* pUnit); bool MoveUnitTo(CHexNode* pTarget); int DistanceTo(CHexNode* pTarget); void Update(float frameTime); }; #endif
[ "brad.hester@hotmail.co.uk" ]
brad.hester@hotmail.co.uk
7cd9e6d31cdd883ca1aa216c5a03141b4b75032f
0a33bbe63f007e60b798f9a7ed719b8b46419d2b
/ACM-contest/DP-numeros/NY10E.cpp
087ec13d59fb1ffacb9a96fea8b6ed2fb3776e14
[]
no_license
AlvinJ15/CompetitiveProgramming
78bb19ad0d1578badf4993a2126e6a5dac53c8b9
91de0a45ae10e2e84eca854d2e24f8aef769de87
refs/heads/master
2023-03-18T10:53:28.235212
2021-03-13T17:00:52
2021-03-13T17:00:52
347,413,955
3
0
null
null
null
null
UTF-8
C++
false
false
930
cpp
#include <bits/stdc++.h> using namespace std; int numero[64]; int N=64; long long memo[10][65]; long long recur(int prev,int index,bool flag){ if(index==N){ return 1;} if(prev>numero[index])return 0; if(memo[prev][index]>=0 && !flag) return memo[prev][index]; long long ans=0; if(flag){ for(int i=prev;i<numero[index];i++) ans+=recur(i,index+1,false); ans+=recur(numero[index],index+1,true); } else{ for(int i =prev;i<10;i++){ ans+=recur(i,index+1,false); } } if(flag) return ans; else return memo[prev][index]=ans; } main(){ int test; long long resp; int a,b; cin>>test; memset(numero,9,sizeof numero); memset(memo,-1,sizeof memo); while(test--){ cin>>a>>b; memset(numero,0,sizeof numero); for(int i =0,j=N-1;i<b;i++,j--){ numero[j]=9; } resp=recur(0,N-b,true); cout<<a<<" "; printf("%lld\n",resp); } }
[ "alvinchma@gmail.com" ]
alvinchma@gmail.com
34b447b3173302290afe142bc3370ee5cce34c3c
ba8ad508ca0bc9196fc3425ba3341565a912c3b8
/indie-studio/source/OgreUtilities/InitOgre.cpp
5c6c207735880bb70bbc48b7fa23211c6ba44243
[]
no_license
Unreality3D/Unreality3D
05fa92a0e6913da6e5d85e0747907a68bd8359f1
9f08c24c4a72a1b653f492609a277e578aae66e7
refs/heads/master
2021-01-19T02:31:42.723787
2016-06-09T11:21:42
2016-06-09T11:21:42
60,762,894
3
2
null
2016-06-09T11:21:42
2016-06-09T09:19:54
C++
UTF-8
C++
false
false
2,407
cpp
// // InitOgre.cpp for in /home/resse_e/rendu/cpp_indie_studio/test/source // // Made by Enzo Resse // Login <resse_e@epitech.net> // // Started on Wed Apr 27 16:02:04 2016 Enzo Resse // Last update Fri May 20 16:41:29 2016 Gandoulf // #include "OgreUtilities/InitOgre.hpp" namespace OgreUtilities { InitOgre::InitOgre() : root(0) { } InitOgre::~InitOgre() { delete root; } void InitOgre::startOgre(OgreConfig mode, bool recover, std::string const &resFolder) { root = new Ogre::Root(std::string(resFolder + "plugins.cfg").c_str(), std::string(resFolder + "ogre.cfg").c_str(), std::string(resFolder + "Ogre.log").c_str()); resInit(resFolder); switch (mode) { case DEFAULT : defaultInit(recover); break; case MANUAL : break; case DIALOG : throw std::string("not implemented"); break; default : defaultInit(recover); break; } } void InitOgre::resInit(std::string const &resFolder) { Ogre::ConfigFile configFile; Ogre::String secName, typeName, archName; configFile.load(std::string(resFolder + "resources.cfg").c_str()); Ogre::ConfigFile::SectionIterator seci = configFile.getSectionIterator(); while (seci.hasMoreElements()) { secName = seci.peekNextKey(); Ogre::ConfigFile::SettingsMultiMap *settings = seci.getNext(); Ogre::ConfigFile::SettingsMultiMap::iterator i; for (i = settings->begin(); i != settings->end(); ++i) { typeName = i->first; archName = i->second; Ogre::ResourceGroupManager::getSingleton() .addResourceLocation(archName, typeName, secName); } } } void InitOgre::defaultInit(bool const &recover) { if (recover && !root->restoreConfig()) { std::cout << "can't recover config set the default" << std::endl; #ifdef WINDOWS renderSystem.defaultInit(root, DIRECTXSYS); #else renderSystem.defaultInit(root, OPENGLSYS); #endif } else if (!recover) { std::cout << "dont recover" << std::cout; #ifdef WINDOWS renderSystem.defaultInit(root, DIRECTXSYS); #else renderSystem.defaultInit(root, OPENGLSYS); #endif } ogreMap.defaultInit(renderSystem.getRenderSystem()); window.defaultInit(root); sceneManager.defaultInit(root, "default"); camera.defaultInit(sceneManager.getSceneManager()); viewport.defaultInit(camera.getCamera(), window.getRenderWindow()); } }
[ "florian.huet@epitech.eu" ]
florian.huet@epitech.eu
3dc10a66d5d6047f7c12a2283a630f5e0638f218
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/git/new_hunk_2763.cpp
beb8f19ea7dcf22858a5e0f63549bd9071c1ce8b
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
498
cpp
*/ if (shared_repository < 0) /* force to the mode value */ xsnprintf(buf, sizeof(buf), "0%o", -shared_repository); else if (shared_repository == PERM_GROUP) xsnprintf(buf, sizeof(buf), "%d", OLD_PERM_GROUP); else if (shared_repository == PERM_EVERYBODY) xsnprintf(buf, sizeof(buf), "%d", OLD_PERM_EVERYBODY); else die("BUG: invalid value for shared_repository"); git_config_set("core.sharedrepository", buf); git_config_set("receive.denyNonFastforwards", "true"); }
[ "993273596@qq.com" ]
993273596@qq.com
a4f0072f7f7e2bd6fc27c37e2446ba0f10250e49
bcf712ba7a6fa91d211c6ceace11895e5749fe42
/cocos2dx/afcanim/CCAuroraLoader.h
611e4acae7bd4cddb9f3b8821a4f2bd72b2388a3
[]
no_license
seem-sky/cocos2dx-classical
6c0cd59e5fda123fd28f1a2a113a2f7ae6c8210e
aefc0f2543db288b9623cc877f950928493732e9
refs/heads/master
2020-12-24T17:08:22.013255
2015-01-30T07:07:06
2015-01-30T07:07:06
30,065,183
1
0
null
2015-01-30T09:25:01
2015-01-30T09:25:00
null
UTF-8
C++
false
false
2,119
h
/**************************************************************************** Author: Luma (stubma@gmail.com) https://github.com/stubma/cocos2dx-better Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ #ifndef __CCAuroraLoader_h__ #define __CCAuroraLoader_h__ #include "CCAuroraFileData.h" NS_CC_BEGIN /** * @class CCAuroraLoader * * Loader of BSprite file */ class CCAuroraLoader { private: /** * Load a BSprite file and return file data object * * @param data BSprite file raw data * @param length length of \c data * @param resScale resource scale of BSprite file data * @return \link CCAuroraFileData CCAuroraFileData\endlink, or nullptr if loading failed */ static CCAuroraFileData* load(const char* data, size_t length, float resScale = 1.f); public: /** * Load a BSprite file and return file data object * * @param asPath path of BSprite file * @return \link CCAuroraFileData CCAuroraFileData\endlink */ static CCAuroraFileData* load(const char* asPath); }; NS_CC_END #endif // __CCAuroraLoader_h__
[ "stubma@gmail.com" ]
stubma@gmail.com
5c5d5fba9b12413b60b728230d0a0c3a0bde4b8f
c9a66a192e72217834be048cff4c3178907efed8
/SPOJ/spoj_bytesm2.cpp
335f47dc880061ee57d78735f82549ec8216f9e5
[]
no_license
AakankshaRaika/cpp
58cd1735b8818ecf16f75058122283d7018d703a
e3d6ba05bbd8c0a4ebd5e889b21f1724187f35a8
refs/heads/master
2021-01-01T19:50:01.870852
2014-12-22T07:57:07
2014-12-22T07:57:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,260
cpp
#include<iostream> #include<cstdio> #include<algorithm> #define MAX 101 #define Max(a,b) ((a>b)?a:b) #define Min(a,b) ((a<b)?a:b) #define FOR(i,n) for(int i=0;i<(n);i++) using namespace std; int a[MAX][MAX],dp[MAX][MAX]; int problem(int r,int c) { //for(int i=0;i<c;i++) // dp[r-1][i]=a[r-1][i]; for(int i=r-2;i>=0;i--) for(int j=c-1;j>=0;j--) { if(j==c-1) { a[i][j] = a[i][j] + Max(a[i+1][j],a[i+1][j-1]); } else if(j==0) { a[i][j] = a[i][j] + Max(dp[i+1][j],a[i+1][j+1]); } else { a[i][j] = a[i][j] + Max(Max(a[i+1][j-1],a[i+1][j]),a[i+1][j+1]); } } int m = a[0][0]; for(int i=1;i<c;i++) if(a[0][i]>m) m = a[0][i]; return m; } int main() { int t; scanf("%d",&t); while(t--) { int r,c; scanf("%d %d",&r,&c); for(int i=0;i<r;i++) for(int j=0;j<c;j++) scanf("%d",&a[i][j]); for(int i=0;i<r;i++) { for(int j=0;j<c;j++) printf("%d ",a[i][j]); printf("\n"); } cout<<problem(r,c)<<"\n"; } }
[ "brijeshb42@gmail.com" ]
brijeshb42@gmail.com
44a3a170af534136a3d5648a68ac13e75812d3eb
7d976e125b5fee466c38032435b2111e037dc359
/module_00/Warlock.hpp
aad6c4c05d7f210cd75fc7d6f500be0df77e47b1
[]
no_license
RigoGabriel/exam_05_42
4e117dc2f77018adcd09826fa6d34136b9870c45
39f9f595a36f1f4f4899052a6254b6a76ff5943f
refs/heads/master
2023-06-01T03:24:27.495354
2021-06-21T15:46:42
2021-06-21T15:46:42
378,982,956
0
0
null
null
null
null
UTF-8
C++
false
false
498
hpp
#ifndef WARLOCK_HPP # define WARLOCK_HPP # include <string> # include <iostream> class Warlock { private: std::string _name; std::string _title; Warlock(void); Warlock(const Warlock &other); Warlock &operator=(const Warlock &other); public: Warlock(const std::string &name, const std::string &title); virtual ~Warlock(void); const std::string getName(void) const; const std::string getTitle(void) const; void setTitle(const std::string &title); void introduce(void) const; }; #endif
[ "rigogabriel82@yahoo.com" ]
rigogabriel82@yahoo.com
787787bb513d317473ed69068144b7d7a58b3375
469100067213102f9942bc375ffb74c098cc0337
/UVa/10791/main.cpp
0328c71b681cac03b8d367b282bba3a004c08569
[]
no_license
xuziye0327/acm
52c2dc245ad8bf5a684da677a0ebe57e0b4f8a59
e0737fdbbebc698e2f36e3136c8939729cad50b9
refs/heads/master
2021-04-22T12:59:31.525803
2016-11-13T08:44:23
2016-11-13T08:44:23
41,278,480
1
0
null
null
null
null
UTF-8
C++
false
false
1,306
cpp
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <cctype> #include <ctime> #include <stack> #include <queue> #include <string> #include <sstream> #include <algorithm> #include <vector> #include <set> #include <map> #define lson l, m, rt << 1 #define rson m + 1, r, rt << 1 | 1 #define MP(x,y) make_pair(x,y) #define CLR(a, b) memset(a, b, sizeof(a)) #define HERE printf("here!\n") #define BLANK bool blank = false #define RANDOM srand((unsigned)time(NULL)) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; const int inf = 1 << 27; const ull INF = 1ULL << 57ULL; const int maxn = 400 + 7; const double eps = 1E-6; void init() { } int main() { int Kase(0); ull N; while (scanf("%llu", &N) && N) { init(); int cnt(0); ull ans(0ull); if (N == 1) ans = 2; for (ull i = 2; i * i <= N; ++i) { ull t(0ull); while (N % i == 0ull) { if (!t) t = 1; N /= i; t *= i; } if (t) ++cnt; ans += t; } if (N != 1ull) { ans += N; ++cnt; } if (cnt == 1) ++ans; printf("Case %d: %llu\n", ++Kase, ans); } return 0; }
[ "xuziye0327@gmail.com" ]
xuziye0327@gmail.com
bf66063c1b9eab19cfa9081bcfd130059b69a302
cd726912664cea9c458ac8b609dd98bf33e3b9a0
/snippets/cpp/VS_Snippets_Remoting/Classic XmlSerializer.XmlSerializer6 Example/CPP/source.cpp
6dabc064fb44a17565b053d0d242ba2ceaad9dea
[ "MIT", "CC-BY-4.0" ]
permissive
dotnet/dotnet-api-docs
b41fc7fa07aa4d54205df81284bae4f491286ec2
70e7abc4bcd692cb4fb6b4cbcb34bb517261dbaf
refs/heads/main
2023-09-04T07:16:44.908599
2023-09-01T21:46:11
2023-09-01T21:46:11
111,510,915
630
1,856
NOASSERTION
2023-09-14T21:45:33
2017-11-21T06:52:13
C#
UTF-8
C++
false
false
1,097
cpp
#using <System.Xml.dll> #using <System.dll> using namespace System; using namespace System::IO; using namespace System::Xml; using namespace System::Xml::Serialization; public ref class Sample { // <Snippet1> private: void SerializeObject( String^ filename ) { XmlSerializer^ serializer = gcnew XmlSerializer( OrderedItem::typeid ); // Create an instance of the class to be serialized. OrderedItem^ i = gcnew OrderedItem; // Set the public property values. i->ItemName = "Widget"; i->Description = "Regular Widget"; i->Quantity = 10; i->UnitPrice = (Decimal)2.30; // Writing the document requires a TextWriter. TextWriter^ writer = gcnew StreamWriter( filename ); // Serialize the object, and close the TextWriter. serializer->Serialize( writer, i ); writer->Close(); } public: // This is the class that will be serialized. ref class OrderedItem { public: String^ ItemName; String^ Description; Decimal UnitPrice; int Quantity; }; // </Snippet1> };
[ "noreply@github.com" ]
dotnet.noreply@github.com
ff6f393679a16883fa56bbb0383bc41ebab9cd00
22384818a68f3b5cae516c874d690204d138701e
/Array_Del.cpp
0a71935e64c490f1f0ea309fae3dacac85394004
[]
no_license
akshika898/HACKTOBER_FEST
321482b83950340c5226e9445b7446d2d5c6780e
673accd2d26be954fac629a9cfd782b2e1488ef6
refs/heads/main
2022-12-27T08:53:32.722822
2020-10-08T11:30:00
2020-10-08T11:30:00
303,172,376
0
0
null
2020-10-11T17:12:22
2020-10-11T17:12:21
null
UTF-8
C++
false
false
679
cpp
#include<iostream> using namespace std; int main() {//hacktober fun int arr[50], size, i, del, count=0; cout<<"Enter array size : "; cin>>size; cout<<"Enter array elements : "; for(i=0; i<size; i++) { cin>>arr[i]; //hacktober fun } cout<<"Enter element to be delete : "; cin>>del; for(i=0; i<size; i++) { if(arr[i]==del) {//for hacktober fest for(int j=i; j<(size-1); j++) { arr[j]=arr[j+1]; } count++; break; } } if(count==0) { cout<<"Element not found..!!"; } else { cout<<"Element deleted successfully..!!\n"; cout<<"Now the new array is :\n"; for(i=0; i<(size-1); i++) { cout<<arr[i]<<" "; } } return 0; }
[ "noreply@github.com" ]
akshika898.noreply@github.com
2764c763ae209b94fde6d7b23a71857453c8afcb
a145723391ce38369cdc84145da2dac6aff9a53b
/oink/src/tl.cpp
5791319b88f8a9ec0be8463e08da9cf5ab5eb57c
[ "Apache-2.0" ]
permissive
pparys/qpt-parity
4506e0dbce2e607d02abaef818601d8818ad3629
4973aa7ca1a6a267ea220662fa4712a0246642cb
refs/heads/master
2023-03-15T10:41:10.798597
2021-03-22T14:54:00
2021-03-22T14:54:00
350,377,686
0
0
null
null
null
null
UTF-8
C++
false
false
31,266
cpp
/* * Copyright 2017-2018 Tom van Dijk, Johannes Kepler University Linz * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <algorithm> #include <cassert> #include "tl.hpp" namespace pg { static const int BOT = 0x80000000; // bottom state for a vertex static const int DIS = 0x80000001; // permanently disable vertex/tangle static const int LEAK = 0x80000002; // when a vertex is not part of a tangle static const int TANG = 0x80000003; // when a vertex is part of a tangle #ifndef NDEBUG #define LOG2(s) if (trace >= 2) { logger << s << std::endl; } #else #define LOG2(s) {} #endif TLSolver::TLSolver(Oink *oink, Game *game) : Solver(oink, game) { alternating = false; // default onthefly = false; // default } TLSolver::~TLSolver() { } inline void TLSolver::attractTo(const int pr, const int pl, int cur) { auto &R = regions[pr]; // first attract normal vertices for (auto curedge = ins(cur); *curedge != -1; curedge++) { int from = *curedge; int r = region[from]; if (r == DIS or r > pr) { // disabled or in a higher region continue; } else if (r == pr) { // if already in <pr>, check if escape without strategy if (owner(from) == pl and strategy[from] == -1) { #ifndef NDEBUG LOG2("\033[1;37mattracted \033[36m" << label_vertex(from) << "\033[m to \033[1;36m" << pr << "\033[m (via " << label_vertex(cur) << ")") #endif strategy[from] = cur; } } else if (owner(from) == pl) { // it is same parity, lower priority, attract it #ifndef NDEBUG LOG2("\033[1;37mattracted \033[36m" << label_vertex(from) << " \033[mto \033[1;36m" << pr << "\033[m (via " << label_vertex(cur) << ")"); #endif region[from] = pr; strategy[from] = cur; R.push_back(from); Q.push(from); } else { // it is other parity, lower priority, try to force it // interpret r as counter (using the negative numbers) if (r == BOT or r >= 0) { // if lower region without outcount, recompute outcount // count number of escapes, including our own priority r = 0; for (auto curedge = outs(from); *curedge != -1; curedge++) { int to = *curedge; if (region[to] != DIS and region[to] <= pr) r--; // include our prio!! } } r += 1; // decrease counter (counter uses negative numbers) if (r != 0) { region[from] = r; continue; } #ifndef NDEBUG LOG2("\033[1;37mforced \033[36m" << label_vertex(from) << " \033[mto \033[1;36m" << pr << "\033[m"); #endif region[from] = pr; strategy[from] = -1; R.push_back(from); Q.push(from); } } // then attract tangles auto &vin_cur = vin[cur]; for (int from : vin_cur) { int r = vr[from]; if (r == DIS or r >= pr) continue; // already attracted higher or same const int tangle_prio = vp[from]; if (tangle_prio >= pr) { // higher priority tangle continue; } else if ((tangle_prio&1) != pl) { // i.e., owner(from) == pl // we "attract" it (so opponent doesn't attract it by mistake) vr[from] = pr; vregions[pr].push_back(from); } else { // i.e., owner(from) != pl, try to force it // interpret r as counter (using the negative numbers) if (r == BOT or r >= 0) { r = 0; int* ptr = vout[from], to; while ((to=*ptr++) != -1) { if (region[to] != DIS and region[to] <= pr) r--; // include our prio!! } } r += 1; // decrease counter (counter uses negative numbers) if (r != 0) { vr[from] = r; continue; } #ifndef NDEBUG int cnt = 0; #endif vr[from] = pr; vregions[pr].push_back(from); int* ptr = vv[from], v, s; while ((v=*ptr++) != -1) { s = *ptr++; // do NOT overwrite... so only add if not yet in prio or higher if (region[v] == DIS or region[v] >= pr) continue; // already solved or in same/higher region region[v] = pr; strategy[v] = s; R.push_back(v); Q.push(v); #ifndef NDEBUG cnt++; #endif } #ifndef NDEBUG if (cnt > 0 and trace >= 2) { logger << "\033[1;37mforced tangle \033[1;36m" << vp[from] << "\033[m to \033[1;36m" << pr << "\033[m" << std::endl; } #endif } } } void TLSolver::attract(const int pr) { const int pl = pr&1; auto &R = regions[pr]; const int count = R.size(); for (int i=0; i<count; i++) attractTo(pr, pl, R[i]); while (Q.nonempty()) attractTo(pr, pl, Q.pop()); } bool TLSolver::computeRegion(int i) { const int pr = priority(i); std::vector<int> &R = regions[pr]; bool empty_region = true; for (int j=i; j>=0 and priority(j)==pr; j--) { if (region[j] != DIS and region[j] < pr) { region[j] = pr; strategy[j] = -1; empty_region = false; R.push_back(j); } } /** * If the region is empty, return False. * Otherwise, continue attractor computation. */ if (empty_region) return false; else attract(pr); /** * Report result. */ #ifndef NDEBUG if (trace >= 3) { logger << "\033[1;33mregion\033[m \033[1;36m" << pr << "\033[m"; for (int n : R) { assert(region[n] == pr); logger << " " << label_vertex(n); if (strategy[n] != -1) logger << "->" << label_vertex(strategy[n]); if (strategy[n] != -1) assert(region[strategy[n]] == pr); } logger << std::endl; } #endif return true; } int TLSolver::extractTangles(int i, bool isHighest) { const int pr = priority(i); const int pl = pr&1; /** * Analyze current region to extract tangles. * 1) Reduce region by removing escaping vertices (<pl> may not change strategy). * 2) Add each bottom SCC of result as new tangle. */ /** * Mark escaping vertices with a special value LEAK. * We only need to look at the heads, then search backwards from there. */ bool all_heads_leak = true; bool a_head_leaks = false; auto &R = regions[pr]; for (auto j : R) { if (priority(j) != pr) { // only look at the heads break; } else if (owner(j) == pl) { if (strategy[j] == -1) goto current_vertex_leaks; } else { for (auto curedge = outs(j); *curedge != -1; curedge++) { int to = *curedge; if (region[to] != DIS and region[to] < pr) goto current_vertex_leaks; } } all_heads_leak = false; continue; current_vertex_leaks: region[j] = LEAK; Q.push(j); a_head_leaks = true; } /** * For the variation where we do not extract tangles when ANY head leaks, * uncomment the check for a_head_leaks. */ if (all_heads_leak/* or a_head_leaks*/) { // All heads LEAK, reset <region> and clear <Q>. while (Q.nonempty()) region[Q.pop()] = pr; return -2; (void)a_head_leaks; // suppress compiler warning } // Compute the greatest fixed point with a backward search while (Q.nonempty()) { unsigned int n = Q.pop(); for (auto curedge = ins(n); *curedge != -1; curedge++) { int from = *curedge; if (region[from] != pr) continue; if (strategy[from] != -1 and (uint) strategy[from] != n) continue; region[from] = LEAK; Q.push(from); } } if (isHighest) { // everything is a dominion bool non_empty = false; for (int v : R) { if (non_empty) { if (region[v] == pr) oink->solve(v, pl, strategy[v]); } else { if (priority(v) != pr) break; if (region[v] != pr) continue; oink->solve(v, pl, strategy[v]); non_empty = true; } } if (non_empty) { oink->flush(); dominions++; if (trace) logger << "\033[1;38;5;201mdominion \033[36m" << pr << "\033[m (highest region)" << std::endl; return -1; } else { // turns out there was no tangle for (int i : R) region[i] = pr; return -2; } } /** * Now all vertices with region[v]==pr are in the reduced region. * From every top vertex in the reduced region, we compute the bottom SCC with Tarjan. * We start at the top vertices because we know every bottom SCC contains a top vertex. */ int highest_attracting = -1; // the highest region that attracts one of the tangles bool has_tangle = false; // whether we found a tangle bool has_dominion = false; // whether we found a dominion std::vector<int> tangle; // stores the tangle int pre = TANG; // tarjan counting variable for (int j=i; j>=0 and priority(j)==pr; j--) { if (region[j] != pr) continue; // either DIS or LEAK or already visited in the search // start the tarjan search Q.push(j); while (Q.nonempty()) { tarjan_again: const unsigned int n = Q.back(); int min; // lowest successor vertex measure if (region[n] == pr) { // first time we see it // assign next <pre> to it and put it in <tarres> min = (region[n] = ++pre); tarres.push(n); } else { min = region[n]; } /** * Perform the search step of Tarjan. */ if (owner(n) != pl) { for (auto curedge = outs(n); *curedge != -1; curedge++) { int to = *curedge; if (region[to] == DIS or region[to] > pr) continue; // not in the tangle // by definition, region[to] cannot be BOT or DIS if (region[to] == pr) { // not visited, add to search stack and go again // push Q.push(to); goto tarjan_again; } else { // visited, update min if (region[to] < min) min = region[to]; } } } else { const int s = strategy[n]; assert(s != -1); if (region[s] == pr) { // not visited, add to search stack and go again Q.push(s); goto tarjan_again; } else { // visited, update min if (region[s] < min) min = region[s]; } } Q.pop(); /** * If we're here, then we pushed no new edge. * Check if <n> is the root of an SCC. */ if (min < region[n]) { // Not the root! Update measure and go up. region[n] = min; continue; } /** * Now <n> is the root of an SCC. * Every vertex after <n> in <res> is also in this SCC. * Also set every node to min. */ for (;;) { const unsigned int m = tarres.pop(); tangle.push_back(m); tangle.push_back(strategy[m]); region[m] = min; // to compute tangleto if (m == n) break; } /** * Now <tangle> contains the current SCC (+ strategy). * Every vertex in <tangle> has measure <min>. * It is only a real tangle if it contains a cycle, i.e., either 2+ vertices or a self-loop... */ bool is_tangle = (tangle.size() > 2) or ((unsigned int)strategy[n] == n) or (strategy[n] == -1 and game->has_edge(n, n)); if (!is_tangle) { tangle.clear(); continue; } /** * We have a tangle. Compute the outgoing edges (into <tangleto>) and the next highest region. */ int lowest_escape = 0x7fffffff; int esc = -1; // escape node (-1 for none, -2 for more) bool bottom_scc = true; const auto tangle_end = tangle.end(); for (auto titer = tangle.begin(); titer != tangle_end;) { int v = *titer++; int s = *titer++; if (s != -1) continue; // not losing for (auto curedge = outs(v); *curedge != -1; curedge++) { int to = *curedge; const int rto = region[to]; if (rto == DIS) { // disabled continue; } else if (bs_exits[to]) { // marked continue; } else if (rto != min) { // not the current SCC, but might be in the same region bs_exits[to] = true; tangleto.push(to); if (rto > pr and rto < lowest_escape) { lowest_escape = rto; } else if (rto < 0) { bottom_scc = false; break; } if (esc == -1) esc = v; else esc = -2; } } if (bottom_scc == false) break; } // Unmark exits for (unsigned int x=0; x<tangleto.size(); x++) bs_exits[tangleto[x]] = false; /** * If the tangle is not a bottom SCC, then we skip it. * It may have been found already and we don't want duplicates. * If it would be a unique tangle, then we'll find it next round! */ if (!bottom_scc) { tangle.clear(); tangleto.clear(); continue; } /** * If there are no outgoing edges, then we have found a dominion. */ if (tangleto.empty()) { // dominion if (trace) logger << "\033[1;38;5;201mdominion \033[36m" << pr << "\033[m"; for (auto titer = tangle.begin(); titer != tangle_end;) { int v = *titer++; int s = *titer++; // only if not already solved if (disabled[v] == 0) oink->solve(v, pl, s); } if (trace) logger << std::endl; dominions++; has_dominion = true; tangle.clear(); tangleto.clear(); continue; } /** * We're not a dominion. */ #ifndef NDEBUG if (trace >= 2) { logger << "\033[1;38;5;198mnew tangle " << pr << "\033[m"; if (trace >= 3) { for (auto titer = tangle.begin(); titer != tangle_end;) { int v = *titer++; int s = *titer++; logger << " \033[1;36m" << label_vertex(v) << "\033[m"; if (s != -1) logger << "->" << label_vertex(s); } } logger << " with " << tangleto.size() << " exits to"; for (unsigned int x = 0; x < tangleto.size(); x++) { int r_to = region[tangleto[x]]; if (!bs_exits[r_to]) { bs_exits[r_to] = true; logger << " " << r_to; } } bs_exits.reset(); logger << std::endl; } #endif esc = -1; // just in case // add back links to all normal vertices in our [out] const int tidx = vp.size(); for (unsigned int x = 0; x < tangleto.size(); x++) vin[tangleto[x]].push_back(tidx); // move tangleto into vout int* _vout = new int[tangleto.size()+1]; std::copy(&tangleto[0], &tangleto[tangleto.size()], _vout); _vout[tangleto.size()] = -1; vout.push_back(_vout); // move tangle into vv int* _vv = new int[tangle.size()+1]; std::copy(tangle.begin(), tangle_end, _vv); _vv[tangle.size()] = -1; vv.push_back(_vv); // and set p to pr and current region to BOT vp.push_back(pr); vr.push_back(BOT); tangles++; has_tangle = true; /** * Finally, update <highest_attracting> and set <has_tangle>. */ if (lowest_escape != 0x7fffffff and highest_attracting < lowest_escape) highest_attracting = lowest_escape; if (highest_attracting == lowest_escape) { // If we are the highest attracting, then just add to that region then... for (auto titer = tangle.begin(); titer != tangle_end;) { int v = *titer++; titer++; region[v] = highest_attracting; regions[highest_attracting].push_back(v); } if (esc < 0) vr.back() = pr; } tangleto.clear(); tangle.clear(); } } tarres.clear(); if (has_dominion) { // just flush and return, no need to reset region[] oink->flush(); return -1; } else if (has_tangle) { // reset region[] of all unattracted vertices std::vector<int> &R = regions[pr]; int reset = onthefly ? BOT : pr; for (int i : R) if (region[i] != highest_attracting) region[i] = reset; return highest_attracting; } else { // reset region[] of all vertices to p std::vector<int> &R = regions[pr]; for (int i : R) region[i] = pr; return has_tangle ? highest_attracting : -2; } } void TLSolver::run() { // get number of nodes and create and initialize inverse array int max_prio = game->priority(nodecount()-1); inverse = new int[max_prio+1]; for (int i=0; i<=max_prio; i++) inverse[i] = DIS; // for skipped priorities for (int i=0; i<nodecount(); i++) if (!disabled[i]) inverse[priority(i)] = i; // allocate arrays region = new int[nodecount()]; strategy = new int[nodecount()]; vin = new std::vector<int>[nodecount()]; regions = new std::vector<int>[max_prio+1]; vregions = new std::vector<int>[max_prio+1]; Q.resize(nodecount()); tarres.resize(nodecount()+1); tangleto.resize(nodecount()); bs_exits.resize(nodecount() > (max_prio+1) ? nodecount() : max_prio+1); // initialize arrays for (int i=0; i<nodecount(); i++) region[i] = disabled[i] ? DIS : BOT; for (int i=0; i<nodecount(); i++) strategy[i] = -1; tangles = 0; iterations = 0; turns = alternating ? 1 : 0; dominions = 0; /** * Find highest vertex... */ int top = nodecount()-1; while (top >= 0 and region[top] == DIS) top--; if (top == -1) return; // empty game? bool foundNewTangles = false; // found new tangles in this iteration (unused with on-the-fly) bool skipComputeRegion = false; // do not recompute next region (after on-the-fly attracting) bool skipUntilChange = false; // after changing player, do not recompute partition until next update bool reportedFirstDominion = false; // did we see the first dominion yet (for trace reporting) int player = 0; // current player (for alternating strategy) int highestAttracting = -1; // unused with on-the-fly int highestEven = -1; // highest even region int highestOdd = -1; // highest odd region if (trace >= 1) { if (alternating) logger << "\033[1;38;5;196mround\033[m \033[1;36m" << turns-1 << "\033[m" << std::endl; else logger << "\033[1;38;5;196miteration\033[m \033[1;36m" << iterations << "\033[m" << std::endl; } int pr = max_prio; if (trace >= 2 and alternating) player = 2; // Hah! while (true) { /** * Check if we reached the bottom of the partitioning. * - not on-the-fly, new tangles: reset partition, recompute with the new tangles * - alternating: keep partition and now extract for other player */ if (pr < 0) { if (foundNewTangles) { /** * Not on-the-fly, if we reach the bottom and found tangles, reset the partition. */ #ifndef NDEBUG /** * Report partition. */ if (trace >= 3) { for (int pr=max_prio; pr>=0; pr--) { if (regions[pr].empty()) continue; logger << "\033[1;33mregion\033[m \033[1;36m" << pr << "\033[m"; std::vector<int> &R = regions[pr]; for (int n : R) { logger << " " << label_vertex(n); if (strategy[n] != -1) logger << "->" << label_vertex(strategy[n]); } logger << std::endl; } } #endif pr = highestAttracting; // reset search below <pr> for (int j=inverse[pr]; j>=0; j--) { if (region[j] < pr and region[j] != BOT and region[j] != DIS) region[j] = BOT; } for (unsigned int j=0; j<vr.size(); j++) { if (vr[j] < pr and vr[j] != BOT and vr[j] != DIS) vr[j] = BOT; } for (int p=pr-1; p>=0; p--) { regions[p].clear(); // clear vector containing vertices vregions[p].clear(); // clear vector containing tangles } // continue at <pr> attract(pr); skipComputeRegion = true; // do not recompute region iterations++; if (trace >= 1) { logger << "\033[1;38;5;196miteration\033[m \033[1;36m" << iterations<< "\033[m" << std::endl; } foundNewTangles = false; // reset flag skipUntilChange = false; // reset flag highestAttracting = -1; // reset value if (highestEven < pr) highestEven = -1; if (highestOdd < pr) highestOdd = -1; } else if (alternating) { /** * For alternating tangle learning, change player and go again. */ if (player == 2) { player = 0; } else { player = 1 - player; turns++; } if (trace >= 1) { logger << "\033[1;38;5;196mround\033[m \033[1;36m" << turns-1 << "\033[m" << std::endl; } pr = max_prio; // start again from <max_prio> skipUntilChange = true; // no need to recompute regions } else { LOGIC_ERROR; } } /** * Check if there actually are vertices with this priority. */ if (inverse[pr] == DIS) { pr--; continue; } /** * Compute the next region in the partition. (Unless skipping for reasons.) */ if (skipComputeRegion) { /* do nothing, we just attracted a tangle */ skipComputeRegion = false; } else if (skipUntilChange) { /* do nothing, we just changed the player */ } else { computeRegion(inverse[pr]); } /** * After computing region <pr>, this region may be empty if all <pr> vertices are already in higher regions. */ if (regions[pr].empty()) { pr--; continue; } bool isHighest = false; if (pr&1) { if (highestOdd < pr) { highestOdd = pr; isHighest = true; } } else { if (highestEven < pr) { highestEven = pr; isHighest = true; } } /** * If we are alternating and this is not our turn, then do not extract tangles. */ if (alternating and (pr&1) != player) { pr--; continue; } /** * Proceed to extract tangles! */ int res = extractTangles(inverse[pr], isHighest); /** * No new tangles found, go to next priority. */ if (res == -2) { pr--; continue; } /** * Check if we have no dominion. * In that case, we perform on-the-fly attraction of the new tangle and reset the search at the attracting region. */ if (res != -1) { if (trace) { logger << "\033[1;38;5;198mtangle\033[m \033[1;36m" << pr << "\033[m => \033[1;36m" << res << "\033[m" << std::endl; } /** * If we are on-the-fly attracting, simply reset the search below <res> and continue at <res>. */ if (onthefly) { pr = res; // reset search below <pr> for (int j=inverse[pr]; j>=0; j--) { if (region[j] < pr and region[j] != BOT and region[j] != DIS) region[j] = BOT; } for (unsigned int j=0; j<vr.size(); j++) { if (vr[j] < pr and vr[j] != BOT and vr[j] != DIS) vr[j] = BOT; } for (int p=pr-1; p>=0; p--) { regions[p].clear(); // clear vector containing vertices vregions[p].clear(); // clear vector containing tangles } // continue at <pr> attract(pr); skipComputeRegion = true; // do not recompute region skipUntilChange = false; iterations++; continue; } else { if (res > highestAttracting) highestAttracting = res; foundNewTangles = true; pr--; continue; } } /** * If we're here, a dominion was found. * Reset the partition and prune tangles. */ if (trace and !reportedFirstDominion) { // if this is the first dominion we find reportedFirstDominion = true; if (alternating) { logger << "first dominion in " << tangles << " tangles and " << turns << " turns." << std::endl; } else { logger << "first dominion in " << tangles << " tangles and " << iterations << " iterations." << std::endl; } } // find new top and reset regions int new_top = top; while (new_top >= 0 and disabled[new_top]) { region[new_top] = DIS; new_top--; } for (int n=new_top; n>=0; n--) { if (disabled[n]) { region[n] = DIS; } else { region[n] = BOT; } } if (new_top == -1) { // all vertices are now solved, end algorithm delete[] region; delete[] strategy; for (auto &x : vv) delete[] x; for (auto &x : vout) delete[] x; delete[] vin; delete[] regions; delete[] vregions; delete[] inverse; if (alternating) { logger << "found " << dominions << " dominions and " << tangles << " tangles." << std::endl; logger << "solved in " << turns << " turns." << std::endl; } else { logger << "found " << dominions << " dominions and " << tangles << " tangles." << std::endl; logger << "solved in " << iterations+1 << " iterations." << std::endl; } return; } top = new_top; // fix inverse for (int p=0; p<=max_prio; p++) { int n = inverse[p]; if (n == DIS) continue; // already DIS while (true) { if (region[n] != DIS) { break; // good! } else if (n == 0 or priority(n-1) != p) { n = DIS; // bad! break; } else { n--; // try next! } } inverse[p] = n; } // deactivate tangles that are now permanently bad for (unsigned int i=0; i<vp.size(); i++) { if (vr[i] == DIS) continue; // already bad vr[i] = BOT; // reset to BOT but check if maybe now DIS const int vpl = vp[i]&1; int* ptr = vout[i], to; while ((to=*ptr++) != -1) { if (/*region[to] == DIS and*/ game->solved[to] and game->winner[to] != vpl) { vr[i] = DIS; break; } } } // clear region vectors for (int p=max_prio; p>=0; p--) { regions[p].clear(); // clear vector containing vertices vregions[p].clear(); // clear vector containing tangles } // restart partitioning at <max_prio> pr = max_prio; highestAttracting = -1; skipUntilChange = false; foundNewTangles = false; highestOdd = -1; highestEven = -1; } } }
[ "parys@mimuw.edu.pl" ]
parys@mimuw.edu.pl
8e8dcde188f9dbb2f00d790d65d6f659dea43f94
f466d01ec02c34183c3f4057b6d43aa6311003cd
/src/version.cpp
8250844568e7bda2037d794a1d139fa4d2c0e4aa
[ "MIT" ]
permissive
cyberpay/CyberPay
76295cb489a4d2e990f5062336dd0f75c3ad3559
5dc1b85bc4e9cbaa48ecbc9d1480f0862f30180d
refs/heads/master
2020-07-03T14:04:34.393757
2015-07-05T03:32:35
2015-07-05T03:32:35
38,554,633
0
0
null
null
null
null
UTF-8
C++
false
false
2,605
cpp
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitcoind and bitcoin-qt, to make it harder for attackers to // target servers or GUI users specifically. const std::string CLIENT_NAME("LeaCoin"); // Client version number #define CLIENT_VERSION_SUFFIX "-20150330" // The following part of the code determines the CLIENT_BUILD variable. // Several mechanisms are used for this: // * first, if HAVE_BUILD_INFO is defined, include build.h, a file that is // generated by the build environment, possibly containing the output // of git-describe in a macro called BUILD_DESC // * secondly, if this is an exported version of the code, GIT_ARCHIVE will // be defined (automatically using the export-subst git attribute), and // GIT_COMMIT will contain the commit id. // * then, three options exist for determining CLIENT_BUILD: // * if BUILD_DESC is defined, use that literally (output of git-describe) // * if not, but GIT_COMMIT is defined, use v[maj].[min].[rev].[build]-g[commit] // * otherwise, use v[maj].[min].[rev].[build]-unk // finally CLIENT_VERSION_SUFFIX is added // First, include build.h if requested #ifdef HAVE_BUILD_INFO # include "build.h" #endif // git will put "#define GIT_ARCHIVE 1" on the next line inside archives. $Format:%n#define GIT_ARCHIVE 1$ #ifdef GIT_ARCHIVE # define GIT_COMMIT_ID "" # define GIT_COMMIT_DATE "" #endif #define BUILD_DESC_FROM_COMMIT(maj,min,rev,build,commit) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "" commit #define BUILD_DESC_FROM_UNKNOWN(maj,min,rev,build) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "" #ifndef BUILD_DESC # ifdef GIT_COMMIT_ID # define BUILD_DESC BUILD_DESC_FROM_COMMIT(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, GIT_COMMIT_ID) # else # define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) # endif #endif #ifndef BUILD_DATE # ifdef GIT_COMMIT_DATE # define BUILD_DATE GIT_COMMIT_DATE # else # define BUILD_DATE __DATE__ ", " __TIME__ # endif #endif const std::string CLIENT_BUILD(BUILD_DESC CLIENT_VERSION_SUFFIX); const std::string CLIENT_DATE(BUILD_DATE);
[ "root@geminian.(none)" ]
root@geminian.(none)
00a91ff9857ccad3288fee549e3f98d323550442
94d912f1cd5844f6c118e805e416e9f1da4f38a3
/SPTetris2.0/header/Game.h
e2b63f0b6bd1a4fe3aa42261d3d59dfa617706eb
[]
no_license
Svampen/SPTetris2.0
7b500d98701a2f8425b9794b617e5a70f79b1218
c4f60e7711ca52355a195cf3161c8229337559b3
refs/heads/master
2020-05-20T15:38:48.795549
2013-07-28T14:47:57
2013-07-28T14:47:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,188
h
#ifndef GAME_H #define GAME_H #include <SFML/Graphics.hpp> #include "Block.h" #include "IPiece.h" #include "PieceBuilder.h" #include "Map.h" #include "Menu.h" #include <SFML/Audio/Music.hpp> class Game { public: Game(int width, int height); ~Game(); void loop(RenderWindow &window); private: void handleinput(RenderWindow &window); void update(); void draw(RenderWindow &window); void checkRows(); void clearing(); void dropping(); void reset(); void createPiece(); void createInfoLabels(); TetrisPiece *mCurrentPiece; PieceBuilder *mPieceBuilder; Map *mMap; Menu *mMenu; float mSpeed; int mLevel; int mDrops; int mCleared; int mSpeedLevel; sf::Clock mSlidingTime; sf::Clock mClock; Event mEvent; float dt; float maxFps; PieceBuilder::Piece mPiece; GameState mGameState; Vector2f mStart; struct Rows { int *rows; int nrOfRows; int deepest; }; Rows *mRows; sf::Clock droppingClock; int mScore; // Level/Score board SFGUI mSfgui; Label::Ptr mInfoHeadline; Label::Ptr mScoreLabel; Label::Ptr mLevelLabel; Label::Ptr mSpeedLabel; sfg::Window::Ptr mWindow; sfg::Box::Ptr mBox; sfg::Desktop mDesktop; sf::Music mMusic; }; #endif
[ "stefan.hagdahl83@gmail.com" ]
stefan.hagdahl83@gmail.com
3d1a1b9b6db0d002a3e4e0f85c90d3ff32968f57
648522d1909a6120cb6018ba832e16980797288e
/src/yappari-application/Dbus/dbusnokiamcerequestif.h
17f46e317f8e6ac838030c991a1225d78e636e19
[]
no_license
agamez/yappari
169b64a6dd227feef5fb4fb7baee24b35f5346cf
8880b5f77112351852d19a86462b082b2b3ffca3
refs/heads/master
2021-01-17T09:00:49.990383
2016-04-15T09:12:36
2016-04-15T09:12:36
26,725,930
21
9
null
2015-03-30T08:26:58
2014-11-16T19:53:06
C++
UTF-8
C++
false
false
1,543
h
/* * This file was generated by qdbusxml2cpp version 0.7 * Command line was: qdbusxml2cpp -v -c DBusNokiaMCERequestIf -p dbusnokiamcerequestif.h:dbusnokiamcerequestif.cpp com.nokia.mce.request.xml * * qdbusxml2cpp is Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * * This is an auto-generated file. * Do not edit! All changes made to it will be lost. */ #ifndef DBUSNOKIAMCEREQUESTIF_H_1338866958 #define DBUSNOKIAMCEREQUESTIF_H_1338866958 #include <QtCore/QObject> #include <QtCore/QByteArray> #include <QtCore/QList> #include <QtCore/QMap> #include <QtCore/QString> #include <QtCore/QStringList> #include <QtCore/QVariant> #include <QtDBus/QtDBus> /* * Proxy class for interface com.nokia.mce.request */ class DBusNokiaMCERequestIf: public QDBusAbstractInterface { Q_OBJECT public: static inline const char *staticInterfaceName() { return "com.nokia.mce.request"; } public: DBusNokiaMCERequestIf(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0); ~DBusNokiaMCERequestIf(); public Q_SLOTS: // METHODS inline QDBusPendingReply<> req_vibrator_pattern_activate(const QString &name) { QList<QVariant> argumentList; argumentList << qVariantFromValue(name); return asyncCallWithArgumentList(QLatin1String("req_vibrator_pattern_activate"), argumentList); } Q_SIGNALS: // SIGNALS }; namespace com { namespace nokia { namespace mce { typedef ::DBusNokiaMCERequestIf request; } } } #endif
[ "alvaro.gamez@hazent.com" ]
alvaro.gamez@hazent.com
3c5c9e6ae19564c6c433ad4e5c0c304370ffc9f3
d0e54317ef7cd3bf22938f9220c2e5cbe888936f
/algorithm/algorithm/day26_10159.cpp
005c53b36442d5ffef5e755f78a27150354ec2c7
[]
no_license
haeunyoung/algorithmStudy
d3db6e4b2c21ed10521fe33e3e619ef5e7bcf568
896f9637691395a7f4fa8a771a08a8a1b88e649f
refs/heads/master
2022-11-06T21:31:40.043261
2020-06-24T14:05:53
2020-06-24T14:05:53
255,330,916
0
0
null
null
null
null
UTF-8
C++
false
false
828
cpp
#include<stdio.h> int number; int m; int a[103][103]; void floy() { for (int k = 1; k <= number; k++) { for (int i = 1; i <=number; i++) { if (k == i)continue; for (int j = 1; j <=number; j++) { if (k == j)continue; if (i == j)continue; if (a[i][k] + a[k][j] == 2) a[i][j] = 1; } } } int count=0; for (int i = 1; i <= number; i++) { for (int j = 1; j <=number; j++) { if (a[i][j] == 1)a[j][i] = 1; if (i == j)a[i][j] = 1; } } for (int i = 1; i <= number; i++) { for (int j = 1; j <= number; j++) { if (a[i][j] == 0) count++; } printf("%d\n", count); count = 0; } } int main() { scanf("%d", &number); scanf("%d", &m); int temp1, temp2; for (int i = 0; i < m; i++) { scanf("%d %d", &temp1, &temp2); a[temp1][temp2] = 1; } floy(); return 0; }
[ "44631215+haeunyoung@users.noreply.github.com" ]
44631215+haeunyoung@users.noreply.github.com
091c4633d509e7ed274f2719f0d61520f6b206ff
fea45e56ab53ce544a458bde99801223a742c27e
/Summer 027.cpp
b7fe48c6183a6bb55b4028f8bda6d028894e7966
[]
no_license
rujroot/Code-practice
a38ee8b83c679e4889b99fbcc7f1737480e87a18
694ba44c2d7ebb6f288258ebf9a0614a028a57e0
refs/heads/master
2023-06-05T04:22:40.203093
2021-06-25T14:24:35
2021-06-25T14:24:35
257,854,376
0
0
null
2020-09-08T15:25:10
2020-04-22T09:31:05
C++
UTF-8
C++
false
false
965
cpp
#include <bits/stdc++.h> using namespace std; int main() { int Q,n,L,Climb,Ans; scanf("%d",&Q); for(int i=0;i<Q;++i){ scanf("%d %d",&n,&L); if(n == L){ printf("%d\n",n); continue; } if(n % 2 == 0){ Climb = n/2; if(Climb % L == 0) printf("%d\n",Climb); else{ Ans = Climb / L + 1; if(Climb * 2 >= Ans*L) printf("%d\n",Ans*L); else printf("-1\n"); } }else{ Climb = n / 2 + 1; if(Climb % L == 0) printf("%d\n",Climb); else{ Ans = Climb / L + 1; if((Climb-1) * 2 >= Ans*L) printf("%d\n",Ans*L); else printf("-1\n"); } } } return 0; }
[ "noreply@github.com" ]
rujroot.noreply@github.com
31c9eb2dfd38bff32256f0eaae4249bfc5d97afa
46f5d5df083c97408a1b9b43595d76cbde965de6
/src/jitcat/CatScopeBlock.cpp
72d1e375ca63e89a9baecf8a89c33340948a3f93
[ "MIT" ]
permissive
Zueuk/JitCat
219344c9eac469bca599051e06c7d0d6fe319d86
04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc
refs/heads/master
2021-07-14T01:50:27.532958
2020-12-09T14:49:35
2020-12-09T14:49:35
223,631,198
0
0
MIT
2019-11-23T17:59:58
2019-11-23T17:59:58
null
UTF-8
C++
false
false
5,841
cpp
/* This file is part of the JitCat library. Copyright (C) Machiel van Hooren 2019 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ #include "jitcat/CatScopeBlock.h" #include "jitcat/ASTHelper.h" #include "jitcat/CatLog.h" #include "jitcat/CatRuntimeContext.h" #include "jitcat/CatTypeNode.h" #include "jitcat/CatVariableDeclaration.h" #include "jitcat/Configuration.h" #include "jitcat/CustomTypeInfo.h" #include "jitcat/ExpressionErrorManager.h" #include "jitcat/ObjectInstance.h" #include <iostream> using namespace jitcat; using namespace jitcat::AST; using namespace jitcat::Reflection; CatScopeBlock::CatScopeBlock(const std::vector<CatStatement*>& statementList, const Tokenizer::Lexeme& lexeme): CatStatement(lexeme), customType(makeTypeInfo<CustomTypeInfo>("__ScopeLocals")), scopeId(InvalidScopeID) { for (auto& iter : statementList) { statements.emplace_back(iter); } } jitcat::AST::CatScopeBlock::CatScopeBlock(const CatScopeBlock& other): CatStatement(other), customType(makeTypeInfo<CustomTypeInfo>("__ScopeLocals")), scopeId(InvalidScopeID) { for (auto& iter : other.statements) { statements.emplace_back(static_cast<CatStatement*>(iter->copy())); } } CatScopeBlock::~CatScopeBlock() { } CatASTNode* jitcat::AST::CatScopeBlock::copy() const { return new CatScopeBlock(*this); } void CatScopeBlock::print() const { Tools::CatLog::log("{\n"); for (auto& iter : statements) { iter->print(); Tools::CatLog::log("\n"); } Tools::CatLog::log("}\n"); } CatASTNodeType CatScopeBlock::getNodeType() const { return CatASTNodeType::ScopeBlock; } bool jitcat::AST::CatScopeBlock::typeCheck(CatRuntimeContext* compiletimeContext, ExpressionErrorManager* errorManager, void* errorContext) { scopeId = compiletimeContext->addScope(customType.get(), nullptr, false); CatScope* previousScope = compiletimeContext->getCurrentScope(); compiletimeContext->setCurrentScope(this); bool noErrors = true; for (auto& iter : statements) { noErrors &= iter->typeCheck(compiletimeContext, errorManager, errorContext); } if (noErrors) { for (std::size_t i = 0; i < statements.size(); ++i) { ASTHelper::updatePointerIfChanged(statements[i], statements[i]->constCollapse(compiletimeContext, errorManager, errorContext)); } } compiletimeContext->removeScope(scopeId); compiletimeContext->setCurrentScope(previousScope); return noErrors; } CatStatement* CatScopeBlock::constCollapse(CatRuntimeContext* compiletimeContext, ExpressionErrorManager* errorManager, void* errorContext) { CatScopeID collapseScopeId = compiletimeContext->addScope(customType.get(), nullptr, false); assert(scopeId == collapseScopeId); CatScope* previousScope = compiletimeContext->getCurrentScope(); compiletimeContext->setCurrentScope(this); for (auto& iter : statements) { ASTHelper::updatePointerIfChanged(iter, iter->constCollapse(compiletimeContext, errorManager, errorContext)); } compiletimeContext->removeScope(scopeId); compiletimeContext->setCurrentScope(previousScope); return this; } std::any jitcat::AST::CatScopeBlock::execute(CatRuntimeContext* runtimeContext) { unsigned char* scopeMem = static_cast<unsigned char*>(alloca(customType->getTypeSize())); if constexpr (Configuration::logJitCatObjectConstructionEvents) { if (customType->getTypeSize() > 0) { std::cout << "(CatScopeBlock::execute) Stack-allocated buffer of size " << std::dec << customType->getTypeSize() << ": " << std::hex << reinterpret_cast<uintptr_t>(scopeMem) << "\n"; } } memset(scopeMem, 0, customType->getTypeSize()); scopeId = runtimeContext->addScope(customType.get(), scopeMem, false); CatScope* previousScope = runtimeContext->getCurrentScope(); runtimeContext->setCurrentScope(this); std::any result = std::any(); for (auto& iter : statements) { if (iter->getNodeType() == CatASTNodeType::ReturnStatement) { runtimeContext->setReturning(true); } result = iter->execute(runtimeContext); if (runtimeContext->getIsReturning()) { break; } } runtimeContext->removeScope(scopeId); runtimeContext->setCurrentScope(previousScope); customType->placementDestruct(scopeMem, customType->getTypeSize()); return result; } std::optional<bool> jitcat::AST::CatScopeBlock::checkControlFlow(CatRuntimeContext* compiletimeContext, ExpressionErrorManager* errorManager, void* errorContext, bool& unreachableCodeDetected) { bool controlFlowReturns = false; for (auto& iter : statements) { auto returns = iter->checkControlFlow(compiletimeContext, errorManager, errorContext, unreachableCodeDetected); if (!controlFlowReturns && returns.has_value() && (*returns)) { controlFlowReturns = true; } else if (controlFlowReturns) { unreachableCodeDetected = true; errorManager->compiledWithError("Code is unreachable.", errorContext, compiletimeContext->getContextName(), iter->getLexeme()); allControlPathsReturn = true; return allControlPathsReturn; } } allControlPathsReturn = controlFlowReturns; return allControlPathsReturn; } bool jitcat::AST::CatScopeBlock::containsReturnStatement() const { for (auto& iter : statements) { if (iter->getNodeType() == CatASTNodeType::ReturnStatement) { return true; } } return false; } Reflection::CustomTypeInfo* jitcat::AST::CatScopeBlock::getCustomType() const { return customType.get(); } CatScopeID jitcat::AST::CatScopeBlock::getScopeId() const { return scopeId; } const std::vector<std::unique_ptr<CatStatement>>& jitcat::AST::CatScopeBlock::getStatements() const { return statements; } void jitcat::AST::CatScopeBlock::insertStatementFront(CatStatement* statement) { statements.emplace(statements.begin(), statement); } void CatScopeBlock::addStatement(CatStatement* statement) { statements.emplace_back(statement); }
[ "contact@machiel.info" ]
contact@machiel.info
3782426ad07fb9f58217457c05d448519caaf293
446225a42844578ec7150f465fcabb9ac87aacc8
/기초컴퓨터프로그래밍/bangtal.c-master (2)/bangtal.c-master/SpotDifference/SpotDifference.cpp
08348549454cdc46e7ec3628c7214163d5e00123
[ "Apache-2.0" ]
permissive
kkc926/C
e76fd8deffa4b8669fc33076926c26bc47b2bd75
24a664e0dc04f2698bd7715b15908ccc5ffe757a
refs/heads/master
2023-03-26T00:56:36.745480
2021-03-10T09:10:51
2021-03-10T09:10:51
344,109,880
0
0
null
null
null
null
UTF-8
C++
false
false
2,791
cpp
#include <bangtal.h> SceneID scene1; ObjectID problem; ObjectID left[7], right[7]; // 왼쪽, 오른쪽 체크 마크 int leftX[7] = { 546, 77, 361, 379, 39, 570, 298 }; // 왼쪽 틀린 그림의 X좌표(중앙) int rightX[7] = { 1164, 695, 979, 997, 657, 1188, 916 }; // 오른쪽 틀린 그림의 X좌표(중앙) int Y[7] = { 542, 499, 430, 106, 203, 369, 65 }; // 틀린 그림의 Y좌표(중앙) int radius[7] = { 54, 17, 16, 27, 36, 35, 13 }; // 틀린 그림을 체크하는 반지름 // 찾았는 지, 찾지 못했는 지를 저장하는 논리형 변수 배열을 선언한다. bool checked[7]; // 찾았는 지(true), 찾지 못했는지(false) bool checkIn(int x, int y, int cx, int cy, int r) { return (x > cx - r && x < cx + r && y > cy - r && y < cy + r); } void mouseCallback(ObjectID object, int x, int y, MouseAction action) { if (object == problem) { bool wrong = true; for (int i = 0; i < 7; i++) { // 이미 찾은 경우에는 검사할 필요가 없다. 조건을 추가한다. if (checked[i] == false && (checkIn(x, y, leftX[i], Y[i], radius[i]) || checkIn(x, y, rightX[i], Y[i], radius[i]))) { showObject(left[i]); showObject(right[i]); // 찾은 경우에 checked[i]를 true로 변경한다. checked[i] = true; wrong = false; } } if (wrong) { endGame(); } // 새로 찾은 경우에 모두 찾았으면 게임을 종료한다. else { // 모두 찾았는가를 저장하는 변수를 선언한다. bool completed = true; // 7개 중에서 하나라도 찾지 못한 것이 있으면 completed = false로 변경한다. // i는 0부터 7보다 작을 때(6)까지 for (int i = 0; i < 7; i++) { // checked[i]가 false이면 completed를 false로 변경한다. if (checked[i] == false) { completed = false; } } // completed 가 true 이면(즉, 하나도 checked[i]가 false인 것이 없으면) if (completed) { // 게임을 종료한다. endGame(); } } } } int main() { setGameOption(GameOption::GAME_OPTION_ROOM_TITLE, false); setGameOption(GameOption::GAME_OPTION_INVENTORY_BUTTON, false); setGameOption(GameOption::GAME_OPTION_MESSAGE_BOX_BUTTON, false); setMouseCallback(mouseCallback); scene1 = createScene("Spot Difference"); problem = createObject("Images/problem.png"); locateObject(problem, scene1, 22, 52); showObject(problem); for (int i = 0; i < 7; i++) { left[i] = createObject("Images/check.png"); locateObject(left[i], scene1, leftX[i] - 3, Y[i] + 27); // -25 + 22, -25 + 52 right[i] = createObject("Images/check.png"); locateObject(right[i], scene1, rightX[i] - 3, Y[i] + 27); // -25 + 22, -25 + 52 } showMessage("좌우에 틀린 곳을 찾아보세요."); startGame(scene1); }
[ "kkc926@naver.com" ]
kkc926@naver.com
34889e6c07c596b81ec92ec5198ac8554f3dc477
4019d98ce38791a4e145c639d48aef5666a3fd5c
/probs/cf1206c.cpp
d41869896811c36a4f8a19be59d5dece65e22cc0
[]
no_license
karin0/problems
c099ded507fabc08d5fe6a234d8938575e9628b7
b60ffaa685bbeb4a21cde518919cdd2749086846
refs/heads/master
2023-02-09T21:55:24.678019
2021-01-08T16:46:54
2021-01-08T16:46:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
453
cpp
#include <akari> IO<10, 100000> io; cint N = 200002; int a[N]; int main() { int n; io > n; if (n & 1) { io << "YES\n"; rep (i, 1, n) { a[i] = i << 1; a[n + i] = a[i] - 1; if (i & 1) std::swap(a[i], a[n + i]); } n <<= 1; re (i, 1, n) (io - a[i]) << ' '; (io - a[n]) daze; } else io << "NO\n"; return 0; }
[ "dredgar065@gmail.com" ]
dredgar065@gmail.com
b46d8f956dfd697112088d65ff1c100ad2c6f975
5994faa8d5798dc3e8207e49d9f7194c671e7506
/ykhoj/P3704.cpp
9a044b72cbbf368bf6b4f6dace6750d962526fbf
[]
no_license
huangyicong0769/LearningRecord
79c982029cc2292ab72b3ace4c588c76c5689e73
9922c072f455da7697c721510c9a34f5b8ea61e4
refs/heads/main
2022-07-09T16:18:41.991169
2022-07-04T12:32:18
2022-07-04T12:32:18
138,581,349
0
0
null
null
null
null
UTF-8
C++
false
false
1,037
cpp
#include <iostream> #include <cstdio> #include <algorithm> using namespace std; struct Node{ int ti, val; }game[1000]; bool isG[1000]; bool myComp(const Node& a, const Node& b){ if (a.ti==b.ti) return a.val>b.val; else return a.ti>b.ti; } int main(){ //freopen("input.txt", "r", stdin); int m, N, maxT=0; scanf("%d%d", &m, &N); for (int i=0; i<N; i++) scanf("%d", &game[i].ti); for (int i=0; i<N; i++) scanf("%d", &game[i].val); for (int i=0; i<N; i++) maxT=max(maxT, game[i].ti); sort(game, game+N, myComp); for (int i=maxT; i>0; i--){ int k=-1, cnt=0; for (int j=0; j<N && (game[j].ti>i || game[j].ti==i); j++) if (!isG[j] && cnt<game[j].val){ cnt=game[j].val; k=j; } if (k!=-1 && !isG[k]){ isG[k]=1; //printf("%d %d %d\n", i, k, game[k].val); } } for (int i=0; i<N; i++) if (!isG[i]) m-=game[i].val; printf("%d\n", m); }
[ "mcrspsht@outlook.com" ]
mcrspsht@outlook.com
4b3f1fc03f5041b3781f23e1d2198b9006131ef2
5b737789d636b9b470174070e4b9a7b89e35511f
/cpp/util.h
fec549b33f8b8a31982f68e8ce12400856aa175c
[ "MIT" ]
permissive
xnt/karel.js
1b7ec4702eb5005f4044180ca0be0da890f604fe
0a98e8685e0f8e45b2e72e9f1fa6f775655005b3
refs/heads/master
2020-03-31T14:07:07.747042
2018-04-22T17:59:02
2018-04-22T17:59:02
152,280,224
0
0
MIT
2018-10-09T15:58:46
2018-10-09T15:58:46
null
UTF-8
C++
false
false
1,716
h
#ifndef UTIL_H_ #define UTIL_H_ #include <sys/mman.h> #include <experimental/optional> #include <experimental/string_view> #include <memory> #include <string> #include <sstream> #include "macros.h" class ScopedFD { public: static constexpr int kInvalidFd = -1; explicit ScopedFD(int fd = kInvalidFd); ~ScopedFD(); ScopedFD(ScopedFD&& fd); ScopedFD& operator=(ScopedFD&& fd); int get() const; int release(); operator bool() const { return fd_ != kInvalidFd; } void reset(int fd = kInvalidFd); private: int fd_; DISALLOW_COPY_AND_ASSIGN(ScopedFD); }; class ScopedMmap { public: ScopedMmap(void* ptr = MAP_FAILED, size_t size = 0); ~ScopedMmap(); operator bool() const { return ptr_ != MAP_FAILED; } void* get(); const void* get() const; void reset(void* ptr = MAP_FAILED, size_t size = 0); private: void* ptr_; size_t size_; DISALLOW_COPY_AND_ASSIGN(ScopedMmap); }; std::string StringPrintf(const char* format, ...); bool WriteFileDescriptor(int fd, std::experimental::string_view str); template <typename T> std::experimental::optional<T> ParseString(std::experimental::string_view str) { T value; std::istringstream is{std::string(str)}; if (!is || !(is >> value)) return std::experimental::nullopt; return value; } template <> std::experimental::optional<uint32_t> ParseString( std::experimental::string_view str); template <typename T> std::experimental::optional<T> ParseString( std::experimental::optional<std::experimental::string_view> str) { if (!str) return std::experimental::nullopt; return ParseString<T>(str.value()); } template <typename T> inline void ignore_result(T /* unused result */) {} #endif // UTIL_H_
[ "noreply@github.com" ]
xnt.noreply@github.com
c01e3b86adef09857f9822178b2452d8e0133490
9d06a93f5151337b6f98af5c58a905142ca9c05c
/SideBarDemo/debug/moc_sidebardemo.cpp
18a584b99dde1e4db2fb0533efa7ce83c224219c
[]
no_license
Liu-Eleven/QtApplication
b003dae7bf286b23dfe024abcc663739f1dff0ab
ca03a521a5db997e01f82ab9f1a509e40f919b33
refs/heads/master
2022-01-20T07:02:35.762496
2019-06-07T01:07:33
2019-06-07T01:07:33
190,670,074
1
0
null
null
null
null
UTF-8
C++
false
false
2,082
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'sidebardemo.h' ** ** Created: Thu Mar 8 11:42:59 2012 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.4) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../sidebardemo.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'sidebardemo.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.4. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_SideBarDemo[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_SideBarDemo[] = { "SideBarDemo\0" }; const QMetaObject SideBarDemo::staticMetaObject = { { &QMainWindow::staticMetaObject, qt_meta_stringdata_SideBarDemo, qt_meta_data_SideBarDemo, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &SideBarDemo::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *SideBarDemo::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *SideBarDemo::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_SideBarDemo)) return static_cast<void*>(const_cast< SideBarDemo*>(this)); return QMainWindow::qt_metacast(_clname); } int SideBarDemo::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE
[ "1024847801@qq.com" ]
1024847801@qq.com
576cf2be14e3c8b97ca1806b756412f51d89ecab
0240261d1313aa36adb4965a7932f50b7b79ed00
/Source/TestingGrounds/Public/ChooseNextWaypoint.h
635a4994feabbc086cd432be6f4875afb308d9b6
[]
no_license
kylehatfield1/TestingGrounds
20fab35414407a62c83112996c0a5240575d8807
59e6454954a0add3a2154e12d17ca7b1ee645fd6
refs/heads/master
2020-07-16T03:24:33.492965
2016-12-10T22:35:27
2016-12-10T22:35:27
73,953,587
0
0
null
null
null
null
UTF-8
C++
false
false
591
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "BehaviorTree/BTTaskNode.h" #include "ChooseNextWaypoint.generated.h" /** * */ UCLASS() class TESTINGGROUNDS_API UChooseNextWaypoint : public UBTTaskNode { GENERATED_BODY() virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override; protected: UPROPERTY(EditAnywhere, Category = "Blackboard") struct FBlackboardKeySelector IndexKey; UPROPERTY(EditAnywhere, Category = "Blackboard") struct FBlackboardKeySelector WaypointKey; };
[ "kylehatfield1@gmail.com" ]
kylehatfield1@gmail.com
d09f8c124ec34626fae6314eeb201d744ba985e0
e69198f43d3fd9d3272028ea253bcfe30e9698d6
/wz_epmcs/src/PParameterReader.cpp
db14d7cb54f89bd470912e0a25a353e457c63155
[]
no_license
hengne/d0wmass
a8514dfb01db7d9a60aa517e49bb6bc980c8cd24
f25d5ddb4616b00ca1e9ab83c02657844b778c3b
refs/heads/master
2021-01-20T18:20:06.573869
2016-06-05T13:30:24
2016-06-05T13:30:24
60,460,795
0
0
null
null
null
null
UTF-8
C++
false
false
3,661
cpp
#include <assert.h> #include <stdio.h> #include "PParameterReader.hpp" PParameterReader::PParameterReader(const char *file) { _env = new TEnv(file); //seems to be no way of knowing if opening the file worked... return; } PParameterReader::~PParameterReader() { delete _env; } void PParameterReader::_Assert(const char *name) { if( ! _env->Defined(name) ){ fprintf(stderr,"ERROR: Could not locate parameter with name '%s'\n",name); assert( _env->Defined(name) ); //yes, this is stupid } } std::string PParameterReader::get(const std::string& key, const std::string& def) { return _env->GetValue(key.c_str(), def.c_str()); } Float_t PParameterReader::GetFloat(const char *name) { this->_Assert(name); return this->GetFloat(name,0.0); } Double_t PParameterReader::GetDouble(const char *name) { this->_Assert(name); return this->GetDouble(name,0.0); } Int_t PParameterReader::GetInt(const char *name) { this->_Assert(name); return this->GetInt(name,0); } const char* PParameterReader::GetChar(const char *name) { this->_Assert(name); return this->GetChar(name,0); } Bool_t PParameterReader::GetBool(const char *name) { this->_Assert(name); return this->GetBool(name,kTRUE); } Float_t PParameterReader::GetFloat(const char *name, const Float_t dflt) { this->_Assert(name); Double_t val = _env->GetValue(name,(Double_t)dflt); return (Float_t)val; } Double_t PParameterReader::GetDouble(const char *name, const Double_t dflt) { this->_Assert(name); return _env->GetValue(name,dflt); } Int_t PParameterReader::GetInt(const char *name, const Int_t dflt) { this->_Assert(name); return _env->GetValue(name,dflt); } const char* PParameterReader::GetChar(const char *name, const char* dflt) { this->_Assert(name); return _env->GetValue(name,dflt); } Bool_t PParameterReader::GetBool(const char *name, const Bool_t dflt) { this->_Assert(name); Bool_t b = _env->GetValue(name,dflt); if(b){ return kTRUE; }else{ return kFALSE; } } std::vector<float> PParameterReader::GetVFloat(const std::string& key, const std::string& delim) { TString s(get(key, "").c_str()); std::vector<float> result; TObjArray *tokens = s.Tokenize(delim.c_str()); TIter iter(tokens); while(TObject *p = iter.Next()) { TObjString *item = (TObjString*)p; result.push_back(atof(item->GetString().Data())); } delete tokens; return result; } std::vector<double> PParameterReader::GetVDouble(const std::string& key, const std::string& delim) { TString s(get(key, "").c_str()); std::vector<double> result; TObjArray *tokens = s.Tokenize(delim.c_str()); TIter iter(tokens); while(TObject *p = iter.Next()) { TObjString *item = (TObjString*)p; result.push_back(atof(item->GetString().Data())); } delete tokens; return result; } std::vector<std::string> PParameterReader::GetVString(const std::string& key, const std::string& delim) { TString s(get(key, "").c_str()); std::vector<std::string> result; TObjArray *tokens = s.Tokenize(delim.c_str()); TIter iter(tokens); while(TObject *p = iter.Next()) { TObjString *item = (TObjString*)p; result.push_back(item->GetString().Data()); } delete tokens; return result; } std::vector<int> PParameterReader::GetVInt(const std::string& key, const std::string& delim) { TString s(get(key, "").c_str()); std::vector<int> result; TObjArray *tokens = s.Tokenize(delim.c_str()); TIter iter(tokens); while(TObject *p = iter.Next()) { TObjString *item = (TObjString*)p; result.push_back(strtol(item->GetString().Data(),0,0)); } delete tokens; return result; }
[ "Hengne.Li@cern.ch" ]
Hengne.Li@cern.ch
eabc0126e53e36778de05c06adca43a7c98cee8e
a177e1be9bd6bf08764f365373f9883bb4127f14
/170204058(online_5).cpp
838362dc5085403fea13d54d73c432af09935abc
[]
no_license
FhamidAurnob/Algorithm-2.2
3f53d6e8606d37b1f54476f1c11eabe212715366
ad4f1314dca218734a99446d2ce8b8c8921cc4fe
refs/heads/master
2020-08-06T21:02:44.239062
2019-10-06T11:28:29
2019-10-06T11:28:29
213,152,980
0
0
null
null
null
null
UTF-8
C++
false
false
1,430
cpp
#include<bits/stdc++.h> #define n 3 #define amount 6 #define max 999 void display(int arr[amount+1]); void Change(int d[n+1], int c[amount+1], int s[amount+1]); void Set(int d[n+1], int s[amount+1]); //int n=3, amount=6; int main() { int d[n+1] = {0,1,3,4}; int c[amount+1]; int s[amount+1]; Change(d, c, s); printf("\n c[p]\n"); display(c); printf("\n s[p]\n"); display(s); printf("\nMinimum number of coins required to make change for amount %d --> %d\n", amount, c[amount]); printf("\nSet of Coins\n"); Set(d, s); return 0; } void Change(int d[n+1], int c[amount+1], int s[amount+1]) { int i, p, min, coin; c[0]=0; s[0]=0; for(p=1; p<=amount; p++) { min = max; for(i=1; i<=n; i++) { if(d[i] <= p) { if(1 + c[p - d[i]] < min) { min = 1 + c[p - d[i]]; coin = i; } } } c[p] = min; s[p] = coin; } } void Set(int d[n+1], int s[amount+1]) { int x = amount; while(x > 0) { printf("\nUse of coin : %d\n", d[s[x]]); x = x - d[s[x]]; } } void display(int arr[amount+1]) { int y; for(y=0; y<=amount; y++) { printf("%3d", arr[y]); } printf("\n"); }
[ "noreply@github.com" ]
FhamidAurnob.noreply@github.com
e15fd493ed585abf8514628bb9a879aaeed372d6
d610c33b993e27e2cb37266409a3ed5012dea37c
/app/ALXGrid/SRC/ALXButtonCtrl.cpp
f1b386b8fd8316148f79749482289befd1c13eea
[]
no_license
hug2008/pctools
4617abc977efdfd74b4f41db770d4f71b933961d
147a0f3acce424d404e6a7cbf4e7815d3bfb820e
refs/heads/master
2021-09-10T18:10:05.504289
2018-01-11T02:15:22
2018-01-11T02:15:22
117,033,954
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
4,018
cpp
// ALXButtonCtrl.cpp : implementation file // #include "stdafx.h" #include "ALXButtonCtrl.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CALXButtonCtrl BEGIN_MESSAGE_MAP(CALXButtonCtrl, CButton) //{{AFX_MSG_MAP(CALXButtonCtrl) ON_WM_CTLCOLOR_REFLECT() ON_WM_MOUSEMOVE() //}}AFX_MSG_MAP END_MESSAGE_MAP() // Конструктор CALXButtonCtrl::CALXButtonCtrl() { m_brushCtrl.CreateSolidBrush(::GetSysColor(COLOR_WINDOW)); } // Деструктор CALXButtonCtrl::~CALXButtonCtrl() { } BOOL CALXButtonCtrl::ActivateCtrl(int x, int y, int cx, int cy) { if(m_Data.m_strText.GetLength()<=0) { DWORD dwStyle = GetStyle(); if(dwStyle == (dwStyle | BS_CHECKBOX) || dwStyle == (dwStyle | BS_AUTOCHECKBOX) || dwStyle == (dwStyle | BS_3STATE) || dwStyle == (dwStyle | BS_AUTO3STATE) || dwStyle == (dwStyle | BS_RADIOBUTTON) || BS_AUTORADIOBUTTON) MoveWindow(x+2 + max(0,(cx-3-13)/2),y+2,min(cx-3,13),cy-3); else MoveWindow(x+2,y+2,cx-3,cy-3); } else MoveWindow(x+2,y+2,cx-3,cy-3); EnableWindow(TRUE); ShowWindow(SW_SHOW); CButton::SetFocus(); return TRUE; } BOOL CALXButtonCtrl::DeactivateCtrl() { EnableWindow(FALSE); ShowWindow(SW_HIDE); MoveWindow(0,0,0,0); return TRUE; } void CALXButtonCtrl::SetData(CELL_DATA CtrlData) { m_Data = CtrlData; SetWindowText(CtrlData.m_strText); DWORD dwStyle = GetStyle(); switch(CtrlData.m_dwTag) { case 0: { SetCheck(0); break; } case 1: { SetCheck(1); m_bState = 1; break; } case 2: { if(dwStyle == (dwStyle | BS_3STATE) || dwStyle == (dwStyle | BS_AUTO3STATE)) SetCheck(2); else SetCheck(0); break; } default: { SetCheck(0); } } m_bState = GetCheck(); return; } CELL_DATA CALXButtonCtrl::GetCellData() { GetWindowText(m_Data.m_strText); DWORD dwStyle = GetStyle(); switch(GetCheck()) { case 1: { m_Data.m_dwTag = 1; break; } case 2: { m_Data.m_dwTag = 2; break; } default: m_Data.m_dwTag = 0; } return m_Data; } BOOL CALXButtonCtrl::OnValidate() { m_bState = GetCheck(); return TRUE; } BOOL CALXButtonCtrl::IsModifyed() { return (m_bState != GetCheck()); } BOOL CALXButtonCtrl::IsActive() { return IsWindowEnabled(); } BOOL CALXButtonCtrl::DestroyCtrl() { return DestroyWindow(); } BOOL CALXButtonCtrl::CreateCtrl(DWORD dwStyle, CWnd *pParentWnd, UINT nID) { CRect rectCtrl(0,0,0,0); return Create("",dwStyle,rectCtrl,pParentWnd,nID); } void CALXButtonCtrl::SetFontCtrl(CFont *pFont, BOOL bRedraw) { SetFont(pFont,bRedraw); } BOOL CALXButtonCtrl::EnableCtrl(BOOL bEnable) { return EnableWindow(bEnable); } void CALXButtonCtrl::SetModify(BOOL bModify) { if(bModify && m_bState == GetCheck()) { if(GetCheck() > 0) m_bState = 1; else m_bState = 0; } else m_bState = GetCheck(); } HBRUSH CALXButtonCtrl::CtlColor(CDC* pDC, UINT nCtlColor) { return (HBRUSH)m_brushCtrl; } void CALXButtonCtrl::SendLButtonDown(UINT nFlags, CPoint point) { PostMessage(WM_LBUTTONDOWN,nFlags,MAKELPARAM(point.x,point.y)); } BOOL CALXButtonCtrl::PreTranslateMessage(MSG* pMsg) { if(pMsg->message==WM_KEYDOWN) { switch (LOWORD(pMsg->wParam)) { case VK_DOWN: case VK_UP: case VK_HOME: case VK_END: case VK_PRIOR: case VK_NEXT: case VK_LEFT: case VK_RIGHT: case VK_RETURN: case VK_TAB: CALXButtonCtrl::GetParent()->PostMessage(WM_KEYDOWN,MAKEWPARAM(LOWORD(pMsg->wParam),0),pMsg->lParam); return TRUE; default: return CButton::PreTranslateMessage(pMsg); } } else return CButton::PreTranslateMessage(pMsg); return CButton::PreTranslateMessage(pMsg); } void CALXButtonCtrl::OnMouseMove(UINT nFlags, CPoint point) { CWnd::OnMouseMove(nFlags,point); if(nFlags & MK_LBUTTON) { CRect rc; GetWindowRect(rc); if(point.x < 0 || point.x > rc.Width() || point.y < 0 || point.y > rc.Height()) // Освобождаем мышь ReleaseCapture(); } }
[ "qingrui.h@foxmail.com" ]
qingrui.h@foxmail.com
6628dc2de77a21c88e37be35fb53e6e664cf7c0e
571133a7b7735bed5381eb2c06408892d18aeb91
/exemplos/trabalho1-ppd/biblioteca.h
9f7f9e7651c2cbc55ce8ca2e4e95a6d92678cca7
[]
no_license
dairansc/tf-redes2
bdd607497be4f3abba7fb2d86fb331bf75d459a5
570fbe4380b8de76ff844391a29a228f6c178405
refs/heads/master
2021-01-10T12:44:18.142490
2012-06-14T23:57:38
2012-06-14T23:57:38
50,470,613
0
0
null
null
null
null
UTF-8
C++
false
false
2,893
h
// Arquivo com biblioteca de funções utilizadas na aplicação Share Center #include <iostream> #include <stdlib.h> #include <sstream> // necessária para conversão em string #include <fstream> // manipulação de arquivos #include <sys/stat.h> // Manipulação de diretórios (mkdir) #include <dirent.h> // Manipulação de diretórios (DIR) #include <cerrno> // Identificação de erros de execução strerror(errno) (mkdir) #include <cstdio> // stdio.h do C #include <rpc/rpc.h> #include "shareit.h" using namespace std; string convertInt(int number) { stringstream ss;//create a stringstream ss << number;//add number to the stream return ss.str();//return a string with the contents of the stream } string preencheComEspaco(string texto){ int i, tam = texto.length(); stringstream ss; ss << texto; for (i=tam;i<=30;i++) { ss << " "; } return ss.str(); } // Os stubs utilizam string nas declarações, que na verdade são char** no C, está função converte string do C++ para char** utilizado nos stubs char **toStringRPC(string texto){ static char* r = new char(texto.length()+1); strcpy(r,texto.c_str()); return ((char **) &r); } // Retorna o tamanho do arquivo, também utilizada para verificar se o arquivo existe int tamanhoArquivo(string nome){ ifstream file(nome.c_str()); int tamanho; if(file.is_open() || !file.good()){ // verifica se o arquivo está aberto e pronto para utilização file.seekg(0, ios::end); tamanho = file.tellg(); file.close(); return tamanho; } return -1; } // Retorna o tamanho de um diretório int tamanhoDiretorio(string nome){ DIR *dirstream; struct dirent *direntry; int tamanho = 0; dirstream = opendir(nome.c_str()); if ( ! dirstream ){ return -1; } while (direntry = readdir (dirstream)){ //cout << direntry->d_name << endl; if(direntry->d_name[0]!='.'){ // dentro de cada diretório existe '.' e '..', não incluir eles na contagem tamanho += tamanhoArquivo(nome + "/" + direntry->d_name); } } (void) closedir (dirstream); return tamanho; } // Exclui todos arquivos dentro de um diretório int limpaDiretorio(string nome){ DIR *dirstream; struct dirent *direntry; dirstream = opendir(nome.c_str()); if ( ! dirstream ){ return -1; } while (direntry = readdir (dirstream)){ //cout << direntry->d_name << endl; if(direntry->d_name[0]!='.'){ // dentro de cada diretório existe '.' e '..', não incluir eles na contagem if( remove( (nome + "/" + direntry->d_name).c_str() ) < 0 ){ // se não foi possível excluir algum arquivo (void) closedir (dirstream); return -1; } } } (void) closedir (dirstream); return 1; }
[ "dairansc@gmail.com" ]
dairansc@gmail.com