blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 905
values | visit_date timestamp[us]date 2015-08-09 11:21:18 2023-09-06 10:45:07 | revision_date timestamp[us]date 1997-09-14 05:04:47 2023-09-17 19:19:19 | committer_date timestamp[us]date 1997-09-14 05:04:47 2023-09-06 06:22:19 | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-07 00:51:45 2023-09-14 21:58:39 ⌀ | gha_created_at timestamp[us]date 2008-03-27 23:40:48 2023-08-21 23:17:38 ⌀ | gha_language stringclasses 141
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 115
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94c3d2f765532a960903680e43fb41373ca1a1d6 | 381d605da20ca3342687e26c5bd00936fe7a46e7 | /UVA/12187-Brothers.cpp | 06bb8a31da2dfe2e7e9cc92cd1fbbc4da34c04fb | [] | no_license | z0CoolCS/CompetitiveProgramming | 4a4c278533001a0a4e8440ecfba9c7a4bb8132db | 0894645c918f316c2ce6ddc5fd5fb20af6c8b071 | refs/heads/master | 2023-04-28T08:15:29.245592 | 2021-04-20T01:02:28 | 2021-04-20T01:02:28 | 228,505,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | #include<stdio.h>
using namespace std;
int main(){
int n,r,c,k;
int matrix[102][102]={-1};
int matrixcp[102][102]={-1};
int brohated;
bool faro;
while(scanf("%d %d %d %d",&n,&r,&c,&k), n || r || c || k){
for(int i=1;i<=r;i++)
for(int j=1;j<=c;j++){
scanf("%d",&matrix[i][j]);
matrixcp[i][j]=matrix[i][j];
}
while(k--){
for(int i=1;i<=r;i++)
for(int j=1;j<=c;j++){
brohated=matrixcp[i][j];
if(brohated==n-1)
brohated=0;
else
brohated++;
if(matrixcp[i-1][j]==brohated)
matrix[i-1][j]=matrixcp[i][j];
if(matrixcp[i+1][j]==brohated)
matrix[i+1][j]=matrixcp[i][j];
if(matrixcp[i][j-1]==brohated)
matrix[i][j-1]=matrixcp[i][j];
if(matrixcp[i][j+1]==brohated)
matrix[i][j+1]=matrixcp[i][j];
}
if(k!=0)
for(int i=1;i<=r;i++)
for(int j=1;j<=c;j++)
matrixcp[i][j]=matrix[i][j];
}
for(int i=1;i<=r;i++){
faro=false;
for(int j=1;j<=c;j++){
if(faro)
printf(" ");
printf("%d",matrix[i][j]);
faro=true;
}
printf("\n");
}
}
return 0;
}
| [
"giordano.alvitez@utec.edu.pe"
] | giordano.alvitez@utec.edu.pe |
debef1a4a47b929b707b9bab29407a5011d0a113 | ea401c3e792a50364fe11f7cea0f35f99e8f4bde | /released_plugins/v3d_plugins/bigneuron_siqi_stalker_v3d/lib/ITK_include/itkSharedMorphologyUtilities.h | fbb18ffa7d53feb32910d1f09cbfd51d7b99ffec | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Vaa3D/vaa3d_tools | edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9 | e6974d5223ae70474efaa85e1253f5df1814fae8 | refs/heads/master | 2023-08-03T06:12:01.013752 | 2023-08-02T07:26:01 | 2023-08-02T07:26:01 | 50,527,925 | 107 | 86 | MIT | 2023-05-22T23:43:48 | 2016-01-27T18:19:17 | C++ | UTF-8 | C++ | false | false | 3,289 | h | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkSharedMorphologyUtilities_h
#define __itkSharedMorphologyUtilities_h
#include <list>
#include <vector>
namespace itk
{
template< typename TRegion, typename TLine >
bool NeedToDoFace(const TRegion AllImage,
const TRegion face,
const TLine line);
template< typename TImage, typename TBres, typename TLine >
int ComputeStartEnd(const typename TImage::IndexType StartIndex,
const TLine line,
const float tol,
const typename TBres::OffsetArray LineOffsets,
const typename TImage::RegionType AllImage,
unsigned & start,
unsigned & end);
template< typename TImage, typename TBres, typename TLine >
int FillLineBuffer(typename TImage::ConstPointer input,
const typename TImage::IndexType StartIndex,
const TLine line,
const float tol,
const typename TBres::OffsetArray LineOffsets,
const typename TImage::RegionType AllImage,
std::vector<typename TImage::PixelType> & inbuffer,
unsigned int &start,
unsigned int &end);
template< typename TImage, typename TBres >
void CopyLineToImage(const typename TImage::Pointer output,
const typename TImage::IndexType StartIndex,
const typename TBres::OffsetArray LineOffsets,
std::vector<typename TImage::PixelType> & outbuffer,
const unsigned start,
const unsigned end);
// This returns a face with a normal between +/- 45 degrees of the
// line. The face is enlarged so that AllImage is entirely filled by
// lines starting from every pixel in the face. This means that some
// of the region will not touch the image. This approach is necessary
// because we want to be able to sweep the lines in a fashion that
// does not have overlap between them.
template< typename TInputImage, typename TLine >
typename TInputImage::RegionType
MakeEnlargedFace(const TInputImage *input,
const typename TInputImage::RegionType AllImage,
const TLine line);
// figure out the correction factor for length->pixel count based on
// line angle
template< typename TLine >
unsigned int GetLinePixels(const TLine line);
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkSharedMorphologyUtilities.hxx"
#endif
#endif
| [
"sliu4512@uni.sydney.edu.au"
] | sliu4512@uni.sydney.edu.au |
e7f797f27ba08152baa4b8c60d40846347538af2 | 770dbd7620726854e296f1fcf4e925fbdcdef5b0 | /QoSMetricProvider/reasoner/src/RoqmeReasoner.cpp | 950f3a38afc06ed3e4f13897fac0a6caab35a9e9 | [] | no_license | MiRON-project/MIRON-Components | 79abd6135bacb704ff7cc8a796005082ae98853d | e325aa42029c3a56ebb73cbd9eea77f685dc7e9e | refs/heads/master | 2021-03-05T05:03:57.650148 | 2020-10-27T20:32:30 | 2020-10-27T20:32:30 | 246,097,352 | 0 | 0 | null | 2020-10-27T20:17:34 | 2020-03-09T17:18:06 | C++ | UTF-8 | C++ | false | false | 8,342 | cpp | // This file belongs to the RoQME toolchain.
// Copyright (C) 2019 University of Extremadura, University of Málaga, Biometric Vox.
//
// RoQME is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// any later version.
//
// RoQME is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// GNU GPLv3 link: http://www.gnu.org/licenses/gpl-3.0.html
#include "RoqmeReasoner.h"
#include "FilteringVarElimination.h"
#include "ConfigurationParams.h"
#include "io.h"
#include "DebuggingSupport.h"
#include <time.h>
#include <iostream>
#include <fstream>
namespace Roqme {
/**
* RoqmeReasoner constructor.
* @param modelPath Path to the model specifying the bayesian belief network.
* @param configPath Path to the configuration file.
* @return a Roqme Reasoner object.
*/
RoqmeReasoner::RoqmeReasoner(const string & modelPath, const string & configPath)
{
ConfigurationParams::settings(configPath);
m_stopReasoningLoop = false;
m_isrunning = false;
m_period_ms = 1000;
m_varnames_length = 0;
m_inferenceMethod = FilteringVarElimination::ID;
if(read_uai_model(modelPath.c_str(), m_model.order, m_model.variables, m_model.factors,
m_model.prior, m_model.interface, m_model.sensor, m_model.internals, m_model.transition) < 0)
{
fprintf(stderr,"[RoqmeReasoner] Error while reading the UAI model\n");
exit(EXIT_FAILURE);
}
if(PARAM("period.ms", isset)) {
m_period_ms = PARAM(number);
}
if(PARAM("variables.names", isset)) {
m_varnames = PARAM(strarray);
m_varnames_length = PARAM(length);
if(m_model.variables.size() == m_varnames_length) {
for(int i=0; i<m_varnames_length; i++) {
m_model.variables[i]->name(m_varnames[i]);
}
}
else {
fprintf(stderr,"[RoqmeReasoner] Mismatch number of variables and names\n");
exit(EXIT_FAILURE);
}
}
if(PARAM("variables.query", isset)) {
string* query_vars = PARAM(strarray);
int query_vars_length = PARAM(length);
for(int i=0; i<query_vars_length; i++) {
m_query_vars.insert(query_vars[i]);
}
}
if((m_testingEnabled = PARAM("testing.output", isset))) {
m_testingOutputPath = PARAM(str);
}
if(PARAM("inference.method", isset)) {
m_inferenceMethod = PARAM(str);
}
if(m_inferenceMethod == FilteringVarElimination::ID) {
m_engine = InferenceEngineFactory::createEngine(FilteringVarElimination::ID);
}
else {
fprintf(stderr,"[RoqmeReasoner] Unknown inference method\n");
exit(EXIT_FAILURE);
}
m_engine->init(m_model);
}
/**
* Class destructor.
*/
RoqmeReasoner::~RoqmeReasoner() {
delete m_engine;
delete &m_model;
delete &m_query_vars;
}
/**
* Indicates wether or not the reasoner is running.
* @return True if the reasoner is running, false otherwise.
*/
bool RoqmeReasoner::isRunning() {
return m_isrunning;
}
/**
* Sets a callback function to be notified when new results are available.
* @param callback Function invoked when the reasoner outputs a new result.
*/
void RoqmeReasoner::setCallback(function<void(unordered_map<string,double>)> callback) {
m_callback = callback;
}
/**
* Indicates the occurrence of new evidence.
* @param varname Variable name with which this observation is associated.
* @param value Observed value. Note that, if the variable is binary, this
* value will only take two values (0 or 1).
*/
void RoqmeReasoner::observation(const string & varname, int value) {
DEBUGGING("RoqmeReasoner", "New evidence (name = " << varname << ", value = " << value << ")");
int varid;
m_obsMutex.lock();
if( (varid = identifierOf(varname)) > 0) {
m_observations[varid] = value;
}
m_obsMutex.unlock();
}
/**
* Queries the probability of a set of variables.
* @param queryVarNames Names of the variables to be queried.
* @return Resulting probability values.
*/
Factor RoqmeReasoner::query(const string & queryVarName) {
Factor result = Factor(m_currentBelief);
unsigned varid;
const Variable * var;
Domain domain = result.domain();
for (unsigned i=0; i<domain.width(); i++) {
var = domain[i];
if(queryVarName.compare(var->name()) != 0) {
result = result.sum_out(var);
}
}
return result;
}
bool RoqmeReasoner::start() {
bool result = false;
if(!m_isrunning) {
m_reasoningThread = new thread(&RoqmeReasoner::runReasoningLoop, this);
result = true;
}
return result;
}
bool RoqmeReasoner::stop() {
bool result = false;
if(m_isrunning) {
m_stopReasoningLoop = true;
m_reasoningThread->join();
m_engine->reset();
result = true;
}
return result;
}
void RoqmeReasoner::notify() {
if(m_callback != nullptr) {
unordered_map<string, double> results;
for (set<string>::iterator it = m_query_vars.begin(); it != m_query_vars.end(); it++) {
const Factor factor = query(*it);
const Domain domain = factor.domain();
if(domain.width() == 1)
results[domain[(unsigned) 0]->name()] = factor[1];
}
m_callback(results);
}
}
void RoqmeReasoner::runReasoningLoop() {
DEBUGGING("RoqmeReasoner", "Starting RoQME Reasoner");
clock_t t;
int t_diff;
unordered_map<unsigned,unsigned> obs;
m_isrunning = true;
m_stopReasoningLoop = false;
int timeSlotCounter = 0;
ofstream testingOutputFile;
// Code for testing purposes
if(m_testingEnabled) {
testingOutputFile.open(m_testingOutputPath);
}
while(!m_stopReasoningLoop)
{
t = clock();
// Getting the set of current observations that will be considered in this slot
m_obsMutex.lock();
obs = unordered_map<unsigned,unsigned>(m_observations);
m_observations.clear();
m_obsMutex.unlock();
// Updating the belief
m_currentBelief = m_engine->update(obs);
// Notify listener
notify();
// Code for testing purposes. It saves the results in a local file
if(m_testingEnabled) {
Domain domain = m_currentBelief.domain();
for (unsigned i=0; i<domain.width(); i++) {
testingOutputFile << timeSlotCounter << ", " << domain[i]->id() << ", " << m_currentBelief[i] << endl;
}
}
// Elapsed processing time
t = clock() - t;
if( (t_diff = ( m_period_ms - ((float)t)/CLOCKS_PER_SEC*1000)) > 0 )
{
this_thread::sleep_for(chrono::milliseconds(t_diff));
}
timeSlotCounter++;
}
if(m_testingEnabled) {
testingOutputFile.close();
}
m_isrunning = false;
DEBUGGING("RoqmeReasoner", "RoQME Reasoner finished");
}
int RoqmeReasoner::identifierOf(string varname) {
int index = 0;
bool found = false;
if(m_varnames_length > 0) {
while(!found && ++index<m_varnames_length) {
found = (m_varnames[index].compare(varname) == 0);
}
}
return found ? index : -1;
}
}
| [
"renan028@gmail.com"
] | renan028@gmail.com |
6ffef086fd08013fadc4299eda659cf966f6b3c7 | a68f0713fd33cb141b3acef8bb9a4fd94b1cb81f | /src/touchscreen_controller.h | ce0be70282566dcd71ef3c4a71a37be979abc176 | [
"Apache-2.0"
] | permissive | ycaihua/pienoon | 7deb9aaa838b384003c1f1f14bcb198b9591038c | 257f2dcc47506ef6364242272e6d3fd37eeb11f5 | refs/heads/master | 2021-01-15T12:22:30.551607 | 2015-07-15T22:25:59 | 2015-07-15T22:25:59 | 39,240,004 | 1 | 0 | null | 2015-07-17T07:06:01 | 2015-07-17T07:06:01 | null | UTF-8 | C++ | false | false | 2,012 | h | // Copyright 2014 Google Inc. 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.
#ifndef TOUCHSCREEN_CONTROLLER_H_
#define TOUCHSCREEN_CONTROLLER_H_
#include "precompiled.h"
#include <vector>
#include "SDL_keycode.h"
#include "audio_config_generated.h"
#include "character_state_machine_def_generated.h"
#include "config_generated.h"
#include "controller.h"
#include "input.h"
#include "player_controller.h"
#include "pie_noon_common_generated.h"
#include "timeline_generated.h"
namespace fpl {
namespace pie_noon {
// A TouchscreenController tracks the current state of a human player's logical
// inputs. It is responsible for polling the touchscreen for the current state
// of the physical inputs that map to logical actions.
class TouchscreenController : public Controller {
public:
TouchscreenController();
// Set up a controller using the given input system and control scheme.
// The input_system and scheme pointers are unowned and must outlive this
// object.
void Initialize(InputSystem* input_system, vec2 window_size,
const Config* config);
// Map the input from the physical inputs to logical game inputs.
virtual void AdvanceFrame(WorldTime delta_time);
void HandleTouchButtonInput(int input, bool value);
private:
// A pointer to the object to query for the current input state.
InputSystem* input_system_;
vec2 window_size_;
const Config* config_;
};
} // pie_noon
} // fpl
#endif // TOUCHSCREEN_CONTROLLER_H_
| [
"smiles@google.com"
] | smiles@google.com |
0a0e61156a03532118c9b83b042790cbe59c8a43 | 78b176820108bb5f6782a082a36a2cd48da5ef18 | /Modules/GLTF2/Public/Toon/GLTF2/GLTF2SceneImporter.hpp | d463b7ff2c74c70bdfba1838f25aa12c4506b79e | [
"MIT"
] | permissive | benjinx/Toon | b73f20e920991768179ae49413252ec41824b7f7 | f21032b2f9ad5fbc9a3618a7719c33159257d954 | refs/heads/main | 2023-03-31T07:04:51.115717 | 2021-03-28T22:51:42 | 2021-03-28T22:51:42 | 333,629,196 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 516 | hpp | #ifndef TOON_GLTF2_SCENE_IMPORTER_HPP
#define TOON_GLTF2_SCENE_IMPORTER_HPP
#include <Toon/GLTF2/GLTF2Config.hpp>
#include <Toon/SceneImporter.hpp>
namespace Toon::GLTF2 {
class TOON_GLTF2_API GLTF2SceneImporter : public SceneImporter
{
public:
DISALLOW_COPY_AND_ASSIGN(GLTF2SceneImporter)
GLTF2SceneImporter() = default;
virtual bool LoadFromFile(Entity * root, const string& filename) override;
}; // class GLTF2SceneImporter
} // namespace Toon::GLTF2
#endif // TOON_GLTF2_SCENE_IMPORTER_HPP | [
"mynameizkevin@gmail.com"
] | mynameizkevin@gmail.com |
c607466deb1c5f9e612df9a90d69625980939c7b | 62b99fa26ef44b5c90fabbc4de5d1b14c47a7532 | /cpp05/ex02/ShrubberyCreationForm.hpp | e1354ac6804605c1f2fd49b8c0d0920d4c63c3d4 | [] | no_license | cchudant/piscinecpp | 6989cf42ed81719d9e1c70f006a7d220f74f66b3 | 9ef0f48d9c4f655c52cef746278b6465f9b320a5 | refs/heads/master | 2020-09-28T09:12:44.650437 | 2020-02-25T16:52:22 | 2020-02-25T16:52:22 | 226,743,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ShrubberyCreationForm.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchudant <cchudant@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/09 23:29:21 by cchudant #+# #+# */
/* Updated: 2020/01/28 13:53:57 by cchudant ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SHRUBBERY_CREATION_FORM_HPP
# define SHRUBBERY_CREATION_FORM_HPP
# include "Form.hpp"
class ShrubberyCreationForm: public Form
{
private:
ShrubberyCreationForm();
ShrubberyCreationForm &operator=(const ShrubberyCreationForm &c);
public:
ShrubberyCreationForm(std::string target);
virtual ~ShrubberyCreationForm();
ShrubberyCreationForm(const ShrubberyCreationForm &c);
virtual void execute(const Bureaucrat &b) const;
};
#endif
| [
"skybt@pm.me"
] | skybt@pm.me |
0f50ef4a3632313cf4643035bc50db0d12133bb4 | d84ff5a4f385936330af29451a16fb3eb2e1c8df | /other/streambox_saber/streambox_release_March_10_2018/Kaskade/linalg/matrixTraits.hh | d2194b4ff67e4f7552e023adee3007e91ca22429 | [
"Apache-2.0",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | TU-Berlin-DIMA/analyzing-stream-modern-hardware | 3e84365f62cf1ef8bc72d7b9e26c93edde99d9d3 | c8b9b7e85fa31d248499bf253eb7f71c80eaaf4e | refs/heads/master | 2022-11-20T18:30:22.994497 | 2020-02-17T11:50:47 | 2020-02-17T11:51:59 | 194,823,562 | 4 | 2 | Apache-2.0 | 2022-11-15T23:28:54 | 2019-07-02T08:39:45 | Gnuplot | UTF-8 | C++ | false | false | 2,803 | hh | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the library KASKADE 7 */
/* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */
/* */
/* Copyright (C) 2015-2016 Zuse Institute Berlin */
/* */
/* KASKADE 7 is distributed under the terms of the ZIB Academic License. */
/* see $KASKADE/academic.txt */
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef LINALG_MATRIX_TRAITS
#define LINALG_MATRIX_TRAITS
// forward declarations
namespace Dune
{
template <class Scalar, int n, int m> class FieldMatrix;
template <class Scalar, int n> class FieldVector;
template <class Entry, class Allocator> class BlockVector;
}
/**
* \file Provides forward declaration of NumaBCRSMatrix and a couple of traits for corresponding type computations.
*/
namespace Kaskade
{
// forward declaration
template <class Entry, class Index> class NumaBCRSMatrix;
// --------------------------------------------------------------------------------------
/**
* \ingroup linalgbasic
* \brief Defines domain and range types for matrix classes.
*/
template <class Matrix>
struct MatrixTraits
{
/**
* \brief The natural domain type.
*
* This is the type of vectors that can be multiplied from the right to matrices, e.g. by the mv method or
* by operator*, depending on the matrix type.
*
* There may be further supported vector types, but this one is the "natural" one.
*/
using NaturalDomain = void;
/**
* \brief The natural range type.
*
* This is the type of vectors that are the result of a matrix-vector multiplication with the natural
* domain type.
*/
using NaturalRange = void;
};
template <class Scalar, int n, int m>
struct MatrixTraits<Dune::FieldMatrix<Scalar,n,m>>
{
using NaturalDomain = Dune::FieldVector<Scalar,m>;
using NaturalRange = Dune::FieldVector<Scalar,n>;
};
template <class Entry, class Index>
struct MatrixTraits<NumaBCRSMatrix<Entry,Index>>
{
using NaturalDomain = Dune::BlockVector<typename MatrixTraits<Entry>::NaturalDomain>;
using NaturalRange = Dune::BlockVector<typename MatrixTraits<Entry>::NaturalRange>;
};
}
#endif | [
"venturadelmonte@gmail.com"
] | venturadelmonte@gmail.com |
30b6b5c2b1829b63c42ca1770f5bc90d977f7a6f | 0306d5c501519ad09503c4391e470fb0856d2a28 | /ddraw/IDirectDrawSurface.cpp | 46cd094601a286662f3a4645bebf371db7b7eddf | [
"Zlib"
] | permissive | CupertinoDude/DirectX-Wrappers | f7ce8a614663242b0e5e6070b5487afb14c78407 | de7f427ba75be1d357682d367dc470c82b782f7f | refs/heads/master | 2021-07-12T22:20:41.874824 | 2017-10-14T16:16:03 | 2017-10-14T16:16:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,853 | cpp | /**
* Copyright (C) 2017 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including commercial
* applications, and to alter it and redistribute it freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not claim that you wrote the
* original software. If you use this software in a product, an acknowledgment in the product
* documentation would be appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be misrepresented as
* being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/
#include "ddraw.h"
HRESULT m_IDirectDrawSurface::QueryInterface(REFIID riid, LPVOID FAR * ppvObj)
{
HRESULT hr = ProxyInterface->QueryInterface(riid, ppvObj);
if (SUCCEEDED(hr))
{
genericQueryInterface(riid, ppvObj);
}
return hr;
}
ULONG m_IDirectDrawSurface::AddRef()
{
return ProxyInterface->AddRef();
}
ULONG m_IDirectDrawSurface::Release()
{
ULONG x = ProxyInterface->Release();
if (x == 0)
{
ProxyAddressLookupTable.DeleteAddress(this);
delete this;
}
return x;
}
HRESULT m_IDirectDrawSurface::AddAttachedSurface(LPDIRECTDRAWSURFACE a)
{
if (a)
{
a = static_cast<m_IDirectDrawSurface *>(a)->GetProxyInterface();
}
return ProxyInterface->AddAttachedSurface(a);
}
HRESULT m_IDirectDrawSurface::AddOverlayDirtyRect(LPRECT a)
{
return ProxyInterface->AddOverlayDirtyRect(a);
}
HRESULT m_IDirectDrawSurface::Blt(LPRECT a, LPDIRECTDRAWSURFACE b, LPRECT c, DWORD d, LPDDBLTFX e)
{
if (b)
{
b = static_cast<m_IDirectDrawSurface *>(b)->GetProxyInterface();
}
return ProxyInterface->Blt(a, b, c, d, e);
}
HRESULT m_IDirectDrawSurface::BltBatch(LPDDBLTBATCH a, DWORD b, DWORD c)
{
return ProxyInterface->BltBatch(a, b, c);
}
HRESULT m_IDirectDrawSurface::BltFast(DWORD a, DWORD b, LPDIRECTDRAWSURFACE c, LPRECT d, DWORD e)
{
if (c)
{
c = static_cast<m_IDirectDrawSurface *>(c)->GetProxyInterface();
}
return ProxyInterface->BltFast(a, b, c, d, e);
}
HRESULT m_IDirectDrawSurface::DeleteAttachedSurface(DWORD a, LPDIRECTDRAWSURFACE b)
{
if (b)
{
b = static_cast<m_IDirectDrawSurface *>(b)->GetProxyInterface();
}
return ProxyInterface->DeleteAttachedSurface(a, b);
}
HRESULT m_IDirectDrawSurface::EnumAttachedSurfaces(LPVOID a, LPDDENUMSURFACESCALLBACK b)
{
m_IDirectDrawEnumSurface::SetCallback(b);
HRESULT hr = ProxyInterface->EnumAttachedSurfaces(a, reinterpret_cast<LPDDENUMSURFACESCALLBACK>(m_IDirectDrawEnumSurface::EnumSurfaceCallback));
m_IDirectDrawEnumSurface::ReleaseCallback();
return hr;
}
HRESULT m_IDirectDrawSurface::EnumOverlayZOrders(DWORD a, LPVOID b, LPDDENUMSURFACESCALLBACK c)
{
m_IDirectDrawEnumSurface::SetCallback(c);
HRESULT hr = ProxyInterface->EnumOverlayZOrders(a, b, reinterpret_cast<LPDDENUMSURFACESCALLBACK>(m_IDirectDrawEnumSurface::EnumSurfaceCallback));
m_IDirectDrawEnumSurface::ReleaseCallback();
return hr;
}
HRESULT m_IDirectDrawSurface::Flip(LPDIRECTDRAWSURFACE a, DWORD b)
{
if (a)
{
a = static_cast<m_IDirectDrawSurface *>(a)->GetProxyInterface();
}
return ProxyInterface->Flip(a, b);
}
HRESULT m_IDirectDrawSurface::GetAttachedSurface(LPDDSCAPS a, LPDIRECTDRAWSURFACE FAR * b)
{
HRESULT hr = ProxyInterface->GetAttachedSurface(a, b);
if (SUCCEEDED(hr))
{
*b = ProxyAddressLookupTable.FindAddress<m_IDirectDrawSurface>(*b);
}
return hr;
}
HRESULT m_IDirectDrawSurface::GetBltStatus(DWORD a)
{
return ProxyInterface->GetBltStatus(a);
}
HRESULT m_IDirectDrawSurface::GetCaps(LPDDSCAPS a)
{
return ProxyInterface->GetCaps(a);
}
HRESULT m_IDirectDrawSurface::GetClipper(LPDIRECTDRAWCLIPPER FAR * a)
{
HRESULT hr = ProxyInterface->GetClipper(a);
if (SUCCEEDED(hr))
{
*a= ProxyAddressLookupTable.FindAddress<m_IDirectDrawClipper>(*a);
}
return hr;
}
HRESULT m_IDirectDrawSurface::GetColorKey(DWORD a, LPDDCOLORKEY b)
{
return ProxyInterface->GetColorKey(a, b);
}
HRESULT m_IDirectDrawSurface::GetDC(HDC FAR * a)
{
return ProxyInterface->GetDC(a);
}
HRESULT m_IDirectDrawSurface::GetFlipStatus(DWORD a)
{
return ProxyInterface->GetFlipStatus(a);
}
HRESULT m_IDirectDrawSurface::GetOverlayPosition(LPLONG a, LPLONG b)
{
return ProxyInterface->GetOverlayPosition(a, b);
}
HRESULT m_IDirectDrawSurface::GetPalette(LPDIRECTDRAWPALETTE FAR * a)
{
HRESULT hr = ProxyInterface->GetPalette(a);
if (SUCCEEDED(hr))
{
*a = ProxyAddressLookupTable.FindAddress<m_IDirectDrawPalette>(*a);
}
return hr;
}
HRESULT m_IDirectDrawSurface::GetPixelFormat(LPDDPIXELFORMAT a)
{
return ProxyInterface->GetPixelFormat(a);
}
HRESULT m_IDirectDrawSurface::GetSurfaceDesc(LPDDSURFACEDESC a)
{
return ProxyInterface->GetSurfaceDesc(a);
}
HRESULT m_IDirectDrawSurface::Initialize(LPDIRECTDRAW a, LPDDSURFACEDESC b)
{
if (a)
{
a = static_cast<m_IDirectDraw *>(a)->GetProxyInterface();
}
return ProxyInterface->Initialize(a, b);
}
HRESULT m_IDirectDrawSurface::IsLost()
{
return ProxyInterface->IsLost();
}
HRESULT m_IDirectDrawSurface::Lock(LPRECT a, LPDDSURFACEDESC b, DWORD c, HANDLE d)
{
return ProxyInterface->Lock(a, b, c, d);
}
HRESULT m_IDirectDrawSurface::ReleaseDC(HDC a)
{
return ProxyInterface->ReleaseDC(a);
}
HRESULT m_IDirectDrawSurface::Restore()
{
return ProxyInterface->Restore();
}
HRESULT m_IDirectDrawSurface::SetClipper(LPDIRECTDRAWCLIPPER a)
{
if (a)
{
a = static_cast<m_IDirectDrawClipper *>(a)->GetProxyInterface();
}
return ProxyInterface->SetClipper(a);
}
HRESULT m_IDirectDrawSurface::SetColorKey(DWORD a, LPDDCOLORKEY b)
{
return ProxyInterface->SetColorKey(a, b);
}
HRESULT m_IDirectDrawSurface::SetOverlayPosition(LONG a, LONG b)
{
return ProxyInterface->SetOverlayPosition(a, b);
}
HRESULT m_IDirectDrawSurface::SetPalette(LPDIRECTDRAWPALETTE a)
{
if (a)
{
a = static_cast<m_IDirectDrawPalette *>(a)->GetProxyInterface();
}
return ProxyInterface->SetPalette(a);
}
HRESULT m_IDirectDrawSurface::Unlock(LPVOID a)
{
return ProxyInterface->Unlock(a);
}
HRESULT m_IDirectDrawSurface::UpdateOverlay(LPRECT a, LPDIRECTDRAWSURFACE b, LPRECT c, DWORD d, LPDDOVERLAYFX e)
{
if (b)
{
b = static_cast<m_IDirectDrawSurface *>(b)->GetProxyInterface();
}
return ProxyInterface->UpdateOverlay(a, b, c, d, e);
}
HRESULT m_IDirectDrawSurface::UpdateOverlayDisplay(DWORD a)
{
return ProxyInterface->UpdateOverlayDisplay(a);
}
HRESULT m_IDirectDrawSurface::UpdateOverlayZOrder(DWORD a, LPDIRECTDRAWSURFACE b)
{
if (b)
{
b = static_cast<m_IDirectDrawSurface *>(b)->GetProxyInterface();
}
return ProxyInterface->UpdateOverlayZOrder(a, b);
}
| [
"elisha@novicemail.com"
] | elisha@novicemail.com |
3a6f93f020490dc44eff235655b88b794360e4ca | 0a264c8bd289740c09cd28a9de53bf44f7621972 | /ls.cpp | f9c467d5f1c48b5d8602c51a2b0f8c7069c1a722 | [] | no_license | konstantinkeller/Asadi-Keller-p3 | 812d1d8b8bb8d14cc6b9e5737bf90b9afc486bfa | d40d0ec821dd799e31d6b9fd736f436a127d7266 | refs/heads/master | 2021-03-27T18:48:28.560528 | 2017-04-12T03:20:24 | 2017-04-12T03:20:24 | 87,020,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,510 | cpp | #include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include <vector>
#include <algorithm>
#include <locale>
#include <cstring>
#include <string>
#include <unistd.h>
using namespace std;
void sort_files();
void sort_args();
bool comp_ignorecase(string, string);
bool comp_sortbytype(string, string);
void print_list_simple();
void print_list_detailed();
const char THIS_DIR = '.';
const char * THIS_DIR_PTR = &THIS_DIR;
char * current_dir;
vector<string> fileargs;
bool current_arg_is_file;
vector<string> dir_structure;
int fcount;
bool list_all = false;
bool list_detailed = false;
/**
* Parses program arguments and processes each
*/
int main(int argc, char * argv[]) {
DIR * dir;
struct dirent * dptr;
// set current_dir to current working dir
if ((current_dir = getenv("PWD")) == NULL) {
perror("getenv");
exit(EXIT_FAILURE);
}
// parses program arguments and options
if (argc > 1) {
for (int i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
for (uint j = 0; j < strlen(argv[i]); j++) {
switch (argv[i][j]) {
case 'a':
list_all = true;
break;
case 'l':
list_detailed = true;
break;
}
}
} else {
fileargs.push_back(argv[i]);
}
}
}
// if no arguments are given, list files in current dir
if (fileargs.size() == 0) {
fileargs.push_back(current_dir);
}
// sort arguments alphabetically
sort_args();
// processes each argument
for (uint i = 0; i < fileargs.size(); i++) {
// reinitializes fcount and dir_structure
fcount = 0;
dir_structure.clear();
// cds to current dir
chdir(current_dir);
// checks if argument is directory
if (chdir(fileargs[i].c_str()) != -1) {
// if chdir doesnt return error, treat argument as dir
current_arg_is_file = false;
if ((dir = opendir(".")) == NULL) {
perror(("opendir" + fileargs[i]).c_str());
exit(EXIT_FAILURE);
}
// reads directory structure into dir_structure vector and counts files
while ((dptr = readdir(dir)) != NULL) {
if (list_all || !(dptr->d_name[0] == '.')) {
dir_structure.push_back(string(dptr->d_name));
fcount++;
}
}
closedir(dir);
} else {
// else treat argument as file
current_arg_is_file = true;
dir_structure.push_back(fileargs[i]);
}
// sort files in dir_structure
sort_files();
// prints newline before each argument except first one
if (i > 0)
cout << endl;
// print header for each argument if multiple are given
if (fileargs.size() > 1)
cout << fileargs[i] << ":" << endl;
// print simple details if no -l
if (!list_detailed)
print_list_simple();
// print detailed details if -l
else
print_list_detailed();
}
exit(EXIT_SUCCESS);
}
/**
* Sorts files in dir_structure vector alphabetically, ignoring case
*/
void sort_files() {
sort(dir_structure.begin(), dir_structure.end(), comp_ignorecase);
}
/**
* Sorts arguments depending on filetype. Normal files come first, then directories.
*/
void sort_args() {
sort(fileargs.begin(), fileargs.end(), comp_sortbytype);
}
/**
* Compares a and b alphabetically, returns true if a comes before b and false otherwise.
*/
bool comp_ignorecase(string a, string b) {
locale loc;
// convert both strings to uppercase to ignore case
for (uint i = 0; i < a.length(); i++)
a[i] = toupper(a[i], loc);
for (uint i = 0; i < b.length(); i++)
b[i] = toupper(b[i], loc);
// ignore leading .
if (a[0] == '.')
a.erase(0, 1);
if (b[0] == '.')
b.erase(0, 1);
return a < b;
}
/**
* Compares arguments a and b by type and alphabetically. Returns true if a is file and b is dir,
* false if a is dir and b is file. If both arguments are of the same type, returns true if a
* comes before b alphabetically and false otherwise.
*/
bool comp_sortbytype(string a, string b) {
locale loc;
struct stat sb_a;
struct stat sb_b;
if ((lstat(a.c_str(), &sb_a) != -1) && (lstat(b.c_str(), &sb_b) != -1)) {
// if a is file and b is dir
if (!S_ISDIR(sb_a.st_mode) && S_ISDIR(sb_b.st_mode))
return true;
// if b is file and a is dir
else if (S_ISDIR(sb_a.st_mode) && !S_ISDIR(sb_b.st_mode))
return false;
// if a and b are same type
else {
// convert both strings to uppercase to ignore case
for (uint i = 0; i < a.length(); i++)
a[i] = toupper(a[i], loc);
for (uint i = 0; i < b.length(); i++)
b[i] = toupper(b[i], loc);
return a < b;
}
} else {
perror("comparison lstat");
exit(EXIT_FAILURE);
}
}
/**
* Prints simple directory listing, containing only filenames
*/
void print_list_simple() {
// set cout to unbuffered
cout.setf(ios::unitbuf);
// print each file in dir_structure
for (string file : dir_structure) {
cout << file << " ";
}
cout << endl;
}
/**
* Prints detailed directory listing
*/
void print_list_detailed() {
cout.setf(ios::unitbuf);
// arrays for size, links, uname, and gname (used to calculate largest width for formatting)
int * fsize_ary = new int[fcount];
int * flink_ary = new int[fcount];
string * funame_ary = new string[fcount];
string * fgname_ary = new string[fcount];
// initializes max width variables to 0
uint max_size_digits = 0;
uint max_link_digits = 0;
uint max_uname_chars = 0;
uint max_gname_chars = 0;
long long blkcnt = 0;
struct passwd * pw;
struct group * gid;
const char * month[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
// populates arrays with respective data, and sums blocks for each file
for (int i = 0; i < fcount; i++) {
struct stat sb;
if (lstat(dir_structure[i].c_str(), &sb) != -1) {
pw = getpwuid(sb.st_uid);
gid = getgrgid(sb.st_gid);
fsize_ary[i] = sb.st_size;
flink_ary[i] = sb.st_nlink;
funame_ary[i] = string(pw->pw_name);
fgname_ary[i] = string(gid->gr_name);
blkcnt += (long long)sb.st_blocks/2;
}
}
// calculates max width for each field for each entry in array
for (int i = 0; i < fcount; i++) {
int size = fsize_ary[i];
int link = flink_ary[i];
string uname = funame_ary[i];
string gname = fgname_ary[i];
uint size_digits = 0;
uint link_digits = 0;
// determine digits in size
do {
size_digits++;
size /= 10;
} while (size);
// if current entry contains more digits than current max, set current max
if (size_digits > max_size_digits) max_size_digits = size_digits;
// determine digits in links
do {
link_digits++;
link /= 10;
} while (link);
// if current entry contains more digits than current max, set current max
if (link_digits > max_link_digits) max_link_digits = link_digits;
// compares length of current index's uname and gname to current max, sets current max if larger
if (uname.length() > max_uname_chars) max_uname_chars = uname.length();
if (gname.length() > max_gname_chars) max_gname_chars = gname.length();
}
// deallocates arrays
delete[] fsize_ary;
delete[] flink_ary;
delete[] funame_ary;
delete[] fgname_ary;
// if argument is folder, print total block size
if (!current_arg_is_file)
cout << "total " << blkcnt << endl;
// print info for each file in dir_structure
for (string file : dir_structure) {
struct stat sb;
if (lstat(file.c_str(), &sb) != -1) {
// print permission bits
if (S_ISDIR(sb.st_mode))
cout << "d";
else if (S_ISBLK(sb.st_mode))
cout << "b";
else if (S_ISCHR(sb.st_mode))
cout << "c";
else if (S_ISLNK(sb.st_mode))
cout << "l";
else if (S_ISFIFO(sb.st_mode))
cout << "p";
else if (S_ISSOCK(sb.st_mode))
cout << "s";
else cout << "-";
cout << ((sb.st_mode & S_IRUSR)? "r": "-");
cout << ((sb.st_mode & S_IWUSR)? "w": "-");
if (sb.st_mode & S_IXUSR)
cout << "x";
else if (sb.st_mode & S_ISUID)
cout << "S";
else if (sb.st_mode & S_IXUSR & S_ISUID)
cout << "s";
else cout << "-";
cout << ((sb.st_mode & S_IRGRP)? "r": "-");
cout << ((sb.st_mode & S_IWGRP)? "w": "-");
if (sb.st_mode & S_IXGRP)
cout << "x";
else if (sb.st_mode & S_ISGID)
cout << "S";
else if (sb.st_mode & (S_IXGRP | S_ISGID))
cout << "s";
else
cout << "-";
cout << ((sb.st_mode & S_IROTH)? "r": "-");
cout << ((sb.st_mode & S_IWOTH)? "w": "-");
if ((sb.st_mode & S_IXOTH) && (sb.st_mode & S_ISVTX))
cout << "t";
else if (sb.st_mode & S_ISVTX)
cout << "T";
else if (sb.st_mode & S_IXOTH)
cout << "x";
else
cout << "-";
cout << ". ";
// print link count
cout << setw(max_link_digits) << setfill(' ') << sb.st_nlink << " ";
// print user and group ids
pw = getpwuid(sb.st_uid);
gid = getgrgid(sb.st_gid);
cout << setw(max_uname_chars) << setfill(' ') << pw->pw_name << " " << setw(max_gname_chars) << setfill(' ') << gid->gr_name << " ";
// print size
cout << setw(max_size_digits) << setfill(' ') << sb.st_size << " ";
// print timestamp
struct tm * timeinfo = localtime(&sb.st_mtime);
cout << month[timeinfo->tm_mon] << " " << setw(2) << timeinfo->tm_mday << " ";
cout << setw(2) << setfill('0') << timeinfo->tm_hour << ":" << setw(2) << timeinfo->tm_min << " ";
// print file name if not a link
if (!S_ISLNK(sb.st_mode)) {
cout << file;
}
// otherwise print link name and link target
else {
char link_path[512];
int count;
if ((count = readlink(file.c_str(), link_path, sizeof(link_path))) >= 0) {
link_path[count] = '\0';
}
cout << file << " -> " << link_path;
}
}
cout << endl;
}
}
| [
"konstantinkeller5@gmail.com"
] | konstantinkeller5@gmail.com |
e1857a90e96e9e34a53199c0a77674185ceea314 | 12ab569a0d912f34561ace7effb7637acc7301f7 | /OpenGLtest2/OpenGLtest2/csv.cpp | 8b40bc4ac1921709096b4dce64603d74c730c9d6 | [] | no_license | mwakkey/MyScript | bb93a2ca6d76929b60563b7caa419a062522f0ff | bfa98a75c46a63f171f01f97dc03672ed1a9f10c | refs/heads/master | 2020-04-07T06:11:16.904341 | 2017-05-08T06:04:16 | 2017-05-08T06:04:16 | 61,784,675 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp |
#include "csv.h"
CSV::CSV()
{
;
}
CSV::CSV(const char* csvFile, std::string dlm)
{
output.open(csvFile);
delimiter = dlm;
}
CSV::~CSV()
{
output.close();
}
void CSV::set(const char* csvFile, std::string dlm){
output.open(csvFile);
delimiter = dlm;
}
void CSV::reset(){
output.close();
} | [
"oingoboingo3911@outlook.com"
] | oingoboingo3911@outlook.com |
d050fc3a4461e2bead85d8d693bb0d3cba9c9d4a | cadb8cb700443371d07803a92ecaa9728955b5e7 | /gallonToLiters.cpp | a77dc681d35b86242c5090e321dadbbd714ff54d | [] | no_license | Ronaldoh1/LearningC-plus-plus | 81055f8701b4a7a22729daf5d6a4cf8a17d53669 | fa5aa001ad4f640a942493e6781b8014cc60795c | refs/heads/master | 2021-01-10T15:28:56.048759 | 2015-10-24T20:57:17 | 2015-10-24T20:57:17 | 44,709,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | //
// gallonToLiters.cpp
// FirstCPPFile
//
// Created by Ronald Hernandez on 10/21/15.
// Copyright © 2015 Wahoo. All rights reserved.
//
#include "gallonToLiters.hpp"
| [
"2ronald.hernandez@gmail.com"
] | 2ronald.hernandez@gmail.com |
cb68951dfbc3e4591f80be6ee9e9920c146c1826 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/renderer/core/layout/ng/inline/ng_inline_break_token.cc | 37650021040a826816330d993b9923201f3dcc61 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-only",
"BSD-2-Clause",
"LGPL-2.1-only",
"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 | 1,565 | cc | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/layout/ng/inline/ng_inline_break_token.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
NGInlineBreakToken::NGInlineBreakToken(
NGInlineNode node,
const ComputedStyle* style,
unsigned item_index,
unsigned text_offset,
unsigned flags, // NGInlineBreakTokenFlags
std::unique_ptr<const NGInlineLayoutStateStack> state_stack)
: NGBreakToken(kInlineBreakToken, kUnfinished, node),
style_(style),
item_index_(item_index),
text_offset_(text_offset),
flags_(flags),
ignore_floats_(false),
state_stack_(std::move(state_stack)) {}
NGInlineBreakToken::NGInlineBreakToken(NGLayoutInputNode node)
: NGBreakToken(kInlineBreakToken, kFinished, node),
item_index_(0),
text_offset_(0),
flags_(kDefault),
ignore_floats_(false),
state_stack_(nullptr) {}
NGInlineBreakToken::~NGInlineBreakToken() = default;
#ifndef NDEBUG
String NGInlineBreakToken::ToString() const {
StringBuilder string_builder;
string_builder.Append(NGBreakToken::ToString());
if (!IsFinished()) {
string_builder.Append(
String::Format(" index:%u offset:%u", ItemIndex(), TextOffset()));
if (IsForcedBreak())
string_builder.Append(" forced");
}
return string_builder.ToString();
}
#endif // NDEBUG
} // namespace blink
| [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
d3568a707de5a9b08b42f6cbe6a43a5c983e2227 | 400ff661684148cbb6aa99f4ebbc82bc551356d9 | /linux/linux-common/time.cpp | 91b16d46617c883f45082858559ffd726f44411e | [] | no_license | csw201710/demo | 32d71f333dc7f78fab0e2ab53f6a7e051847eea3 | 386a56961e8099b632115015cbeec599765ead01 | refs/heads/master | 2021-08-26T08:03:49.055496 | 2021-08-18T11:22:45 | 2021-08-18T11:22:45 | 171,476,054 | 7 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 651 | cpp | static void getTimeBuf(char * buf,size_t len){
struct tm* timenow;
time_t now;
time(&now);
timenow = localtime(&now);
snprintf(buf, len, "%04d-%02d-%02d-%02d-%02d-%02d",
timenow->tm_year + 1900, timenow->tm_mon + 1, timenow->tm_mday,
timenow->tm_hour, timenow->tm_min, timenow->tm_sec);
return ;
}
int getTimeBuf(char* szTime){
time_t now;
time(&now);
struct tm* timenow;
timenow = localtime(&now);
int nLen = sprintf(szTime, "[%04d-%02d-%02d %02d:%02d:%02d] ",
timenow->tm_year + 1900, timenow->tm_mon + 1, timenow->tm_mday,
timenow->tm_hour, timenow->tm_min, timenow->tm_sec);
return (int)nLen;
}
| [
"work@qq.com"
] | work@qq.com |
b68657e598d6c9ec01e9689865a6c0746320a423 | 646b207af4808a21612191aa4f7d5eeb8f50552a | /Practice/Sources/aur/include/materials/constant_material.hpp | 6f3ccbb7cbf5813b56474c8dff68b54428363c3e | [] | no_license | krsu-ict/krsu-oop | 1486a68f0983ec1c0cbe74bbd7f69530602d702d | aaaa48436446aaade0bd27ae9e99ae29d6f5b36a | refs/heads/master | 2020-12-27T22:57:34.891034 | 2020-06-25T01:48:15 | 2020-06-25T01:48:15 | 238,095,156 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,154 | hpp | #ifndef CONSTANT_MATERIAL_HPP
#define CONSTANT_MATERIAL_HPP
#include "materials/material.hpp"
#include "textures/texture.hpp"
#include <glm/glm.hpp>
namespace aur
{
class ConstantMaterial : public Material
{
public:
[[nodiscard]] const glm::vec4 &get_emission_color() const
{
return _emission_color;
}
void set_emission_color(const glm::vec4 &emission_color)
{
_emission_color = emission_color;
}
[[nodiscard]] const std::shared_ptr<Texture> &get_texture_1() const
{
return _texture1;
}
void set_texture_1(const std::shared_ptr<Texture> &texture_1)
{
_texture1 = texture_1;
}
[[nodiscard]] const std::shared_ptr<Texture> &get_texture_2() const
{
return _texture2;
}
void set_texture_2(const std::shared_ptr<Texture> &texture_2)
{
_texture2 = texture_2;
}
protected:
glm::vec4 _emission_color{1.0f};
std::shared_ptr<Texture> _texture1;
std::shared_ptr<Texture> _texture2;
};
}
#endif
| [
"dmitrii@toksaitov.com"
] | dmitrii@toksaitov.com |
f8e5f9a7db4789f2c350a5c6f7ee1335655b3e54 | c9dcdbabfe6d5036e6104854a951d86fd8970f8c | /src/delayline.h | 470d13f25bd0529d7d062e45a90a68beb7b80d2e | [] | no_license | dale212/arduino-dsplib | e9f3a2c243c491a581c86c4bba2239afb729e7dd | d2b474c71db094f5753fa6770f8e111ff4ceff6e | refs/heads/master | 2020-12-24T18:54:31.940190 | 2019-05-29T19:10:09 | 2019-05-29T19:10:09 | 59,434,315 | 0 | 1 | null | 2018-08-27T20:57:19 | 2016-05-22T21:04:43 | C++ | UTF-8 | C++ | false | false | 530 | h | //
// delayline.h
//
//
// Created by Dale Heatherington on 2/27/16.
//
//
#ifndef ____delayline__
#define ____delayline__
#include <stdint.h>
class Delayline
{
public:
Delayline(int32_t);
int32_t iterate(int32_t);
int32_t getTap(int32_t);
private:
int32_t *dl ; //pointer to delay line array
int32_t length; //length of array
int32_t idx; //index into aray
int32_t *coef; //Q14 fixed point coefficients array pointer
};
#endif /* defined(____delayline__) */
| [
"dale@LabMac.local"
] | dale@LabMac.local |
f1607f34a54afa9b1a8044710d64c7fd6f3cf7aa | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/cpp/pizzaWith3nSlices/pizzaWith3nSlices.cpp | 2d079f6e8b1efb23c2dcbc90bc8dafc3c48b2745 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | // Source: https://leetcode.com/problems/pizza-with-3n-slices/
// Author: Miao Zhang
// Date: 2021-04-28
class Solution {
public:
int maxSizeSlices(vector<int>& slices) {
vector<int> s1(begin(slices) + 1, end(slices));
vector<int> s2 (begin(slices), end(slices) - 1);
int res1 = cal(s1);
int res2 = cal(s2);
return max(res1, res2);
}
private:
int cal(vector<int>& slices) {
int n = slices.size();
int choose = (n + 1) / 3;
vector<vector<int>> dp(n + 1, vector<int>(choose + 1));
for (int i = 1; i < n + 1; i++) {
for (int j = 1; j < choose + 1; j++) {
dp[i][j] = max(dp[i - 1][j], (i - 2 >= 0 ? dp[i - 2][j - 1] : 0) + slices[i - 1]);
}
}
return dp[n][choose];
}
};
| [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
14ed95bc12fd2a7a3dd0b3a7b2ad6d9478776d52 | 303f5990985aba9a1884053baf08ff0d47c3a5de | /devel/include/kinova_msgs/Arm_KinovaPoseGoal.h | 37aa7f854e924a34bdb585adf3fa4e800294c95f | [] | no_license | Brendon2016/Tsing-Siemens-Competiton | d1339e162c8582a59aa153f29bec0180c4e261d7 | 8ffc7ee931a877898342fdd3593e92b633e22bce | refs/heads/master | 2020-03-28T23:30:48.267738 | 2018-09-18T13:53:33 | 2018-09-18T13:53:33 | 149,294,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,783 | h | // Generated by gencpp from file kinova_msgs/Arm_KinovaPoseGoal.msg
// DO NOT EDIT!
#ifndef KINOVA_MSGS_MESSAGE_ARM_KINOVAPOSEGOAL_H
#define KINOVA_MSGS_MESSAGE_ARM_KINOVAPOSEGOAL_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
#include <kinova_msgs/KinovaPose.h>
namespace kinova_msgs
{
template <class ContainerAllocator>
struct Arm_KinovaPoseGoal_
{
typedef Arm_KinovaPoseGoal_<ContainerAllocator> Type;
Arm_KinovaPoseGoal_()
: kinova_pose() {
}
Arm_KinovaPoseGoal_(const ContainerAllocator& _alloc)
: kinova_pose(_alloc) {
(void)_alloc;
}
typedef ::kinova_msgs::KinovaPose_<ContainerAllocator> _kinova_pose_type;
_kinova_pose_type kinova_pose;
typedef boost::shared_ptr< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> const> ConstPtr;
}; // struct Arm_KinovaPoseGoal_
typedef ::kinova_msgs::Arm_KinovaPoseGoal_<std::allocator<void> > Arm_KinovaPoseGoal;
typedef boost::shared_ptr< ::kinova_msgs::Arm_KinovaPoseGoal > Arm_KinovaPoseGoalPtr;
typedef boost::shared_ptr< ::kinova_msgs::Arm_KinovaPoseGoal const> Arm_KinovaPoseGoalConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >::stream(s, "", v);
return s;
}
} // namespace kinova_msgs
namespace ros
{
namespace message_traits
{
// BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
// {'std_msgs': ['/opt/ros/indigo/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/indigo/share/geometry_msgs/cmake/../msg'], 'actionlib_msgs': ['/opt/ros/indigo/share/actionlib_msgs/cmake/../msg'], 'kinova_msgs': ['/home/h/catkin_ws/src/kinova-ros/kinova_msgs/msg', '/home/h/catkin_ws/devel/share/kinova_msgs/msg']}
// !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
template <class ContainerAllocator>
struct IsFixedSize< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct HasHeader< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> const>
: FalseType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
{
static const char* value()
{
return "a3d0acc7643d70196e513c76ce4fd6d9";
}
static const char* value(const ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0xa3d0acc7643d7019ULL;
static const uint64_t static_value2 = 0x6e513c76ce4fd6d9ULL;
};
template<class ContainerAllocator>
struct DataType< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
{
static const char* value()
{
return "kinova_msgs/Arm_KinovaPoseGoal";
}
static const char* value(const ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
{
static const char* value()
{
return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
# Goal\n\
KinovaPose kinova_pose\n\
\n\
================================================================================\n\
MSG: kinova_msgs/KinovaPose\n\
float32 X\n\
float32 Y\n\
float32 Z\n\
float32 ThetaX\n\
float32 ThetaY\n\
float32 ThetaZ\n\
";
}
static const char* value(const ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.kinova_pose);
}
ROS_DECLARE_ALLINONE_SERIALIZER
}; // struct Arm_KinovaPoseGoal_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kinova_msgs::Arm_KinovaPoseGoal_<ContainerAllocator>& v)
{
s << indent << "kinova_pose: ";
s << std::endl;
Printer< ::kinova_msgs::KinovaPose_<ContainerAllocator> >::stream(s, indent + " ", v.kinova_pose);
}
};
} // namespace message_operations
} // namespace ros
#endif // KINOVA_MSGS_MESSAGE_ARM_KINOVAPOSEGOAL_H
| [
"251311876@qq.com"
] | 251311876@qq.com |
c8faf1110b6b33ab5d5bc92fc8fc479ec96223c3 | 2797a6ec5f1e667c4320941637630a9110b6ac8a | /cpp/ntradesys/CentralOrderRepo.h | 72ffd6eaabdddbe3dbd21267df1a9c4191a96b23 | [
"Apache-2.0"
] | permissive | lionelyoung/newt | d349bda3da22749159680b90f16779788032a22f | 0e07a87aa6b8d4b238c1a9fd3fef363133866c57 | refs/heads/master | 2020-04-18T17:09:47.294429 | 2019-01-24T18:35:48 | 2019-01-24T18:35:48 | 167,648,618 | 1 | 0 | Apache-2.0 | 2019-01-26T04:14:55 | 2019-01-26T04:14:55 | null | UTF-8 | C++ | false | false | 4,524 | h | /*
CentralOrderRepo.h
Original version: dpuder, 2009.
Mod History:
- Moved OrderRecord to seperate file (OrderRecord.{cc,h}).
*/
#ifndef __CENTRALORDERREPO_H__
#define __CENTRALORDERREPO_H__
#include <map>
#include <vector>
#include <cl-util/factory.h>
#include <cl-util/debug_stream.h>
#include <clite/message.h>
#include "DataManager.h"
#include "Markets.h"
#include "Suggestions.h"
#include "OrderRecord.h"
using std::map;
using std::vector;
using namespace clite::util;
/// The following two queues are added to DataManager( which is the global coordinator) by CentralOrderRepo
/// Each broadcaster to these queues should get them from the factory
/// TradeLogic populates these queues, and only after it adapted the suggestions, i.e. only if & when these are real actions taken
typedef clite::message::dispatch<OrderPlacementSuggestion> PlacementsHandler;
typedef clite::message::dispatch<OrderCancelSuggestion> CancelsHandler;
/**
* A widget that essentially keeps a mapping from all current outstanding orders we placed to an OrderRecord
* which keeps some extra identifying basic information about the order.
* The widget:
* - Listens to the order-placement-updates to learn about new order placements.
* - Listens to the order-cancels-updates to learn about reasons for cancelations
* - Listens to order-updates to learn about completion of orders
*
* Notes:
* - When an order is placed, an OrderRecord is broadcast through the dispatch mechanism.
* - Tbe CentralOrderRepo sees this broadcast, and:
* - Inserts OrderRecord into a map from OrderID --> OrderRecord.
* - When an order is cancelled, an OrderCancelSuggestion is broadcast.
* - The CentralOrderRepo sees this broadcast, and:
* - Maps Cxl Request --> OrderRecord.
* - Sets OrderRecord --> CxlReaon.
* - When an order is done, an OrderUpdate is broadcast.
* - The CentralOrderRepo sees this broadcast, and:
* - Maps OrderUpdate --> OrderRecord.
* - Removes OrderRecord from CentralOrderRepo internal state.
*/
class CentralOrderRepo :
public PlacementsHandler::listener,
public CancelsHandler::listener,
public OrderHandler::listener
{
private:
static int nextPlacerId;
protected:
factory<DataManager>::pointer _dm;
factory<debug_stream>::pointer _logPrinter;
/// For each symbol: a map from order-Ids to OrderRecord (OrderRecord)
vector< map<int,OrderRecord> > _mapTable;
virtual void update( const OrderPlacementSuggestion& placementMsg );
virtual void update( const OrderCancelSuggestion& cxlMsg );
virtual void update( const OrderUpdate& ou );
public:
CentralOrderRepo();
/// Utility function. Get a unique componentId or tradeLogicId.
static int allocatePlacerId() { return nextPlacerId++; }
/// Get pointer to the Queues this object holds
/// Returns the OrderRecord of the specified orderId, or NULL if failed
const OrderRecord* getOrderRecord( int orderId ) const;
const OrderRecord* getOrderRecord( int cid, int orderId ) const; /// Somewhat more efficient than the previous one
/// Get the OrderRecords of the specified componentId and tradeLogicId
vector<const OrderRecord*> getOrderRecords( int cid, Mkt::Side side, int tradeLogicId, int componentId ) const;
vector<const OrderRecord*> getOrderRecords( int cid, int tradeLogicId, int componentId ) const;
/// Get the OrderRecords of the specified componentId
vector<const OrderRecord*> getOrderRecords( int cid, int componentId ) const;
/// Get the OrderRecords of the specified tradeLogicId
vector<const OrderRecord*> getOrderRecords( int cid ) const;
/// Add a OrderRecord to structure.
/// Returns false if failed to add it (because orderId not found in DM or already found in CentralOrderRepo)
bool addOrderRecord( const OrderPlacementSuggestion& placementMsg );
int totalOutstandingSize( int cid, Mkt::Side side, int componentId ) const;
int totalOutstandingSize( int cid, Mkt::Side side, int componentId, int tradeLogicId ) const; /// I suspect this is redundant
int totalOutstandingSize( int cid, Mkt::Side side, int componentId, int tradeLogicId, int componentSeqNum) const; /// Also redundant??
int totalOutstandingSizeNotCanceling( int cid, Mkt::Side side, int componentId, int tradeLogicId ) const; /// I suspect this is redundant
int totalOutstandingSizeMoreEqAggresiveThan( int cid, Mkt::Side side, double px, int componentId ) const; /// for JQ
};
#endif // __CENTRALORDERREPO_H__
| [
"csean@SMacBook.home"
] | csean@SMacBook.home |
3484922c7c767b15423d5632988cccbcc2226e40 | 306a349b03ad2bef3a4c953f78298842b8e30222 | /AppWarrior/Source/Libs/QTDataHandler/AppWarrior/FileSystem/CFSLocalFolderRefWin.cpp | 77cb50cd275e9e46492e2778b1e70ca9b564f7c3 | [] | no_license | Schala/GLoarbLine | 812fcc0f0b6d99fde7be880b3bf903903cfa17bc | 9e700253050afd3b0968a424f320a3908eeb17e9 | refs/heads/master | 2021-01-10T15:33:39.220985 | 2016-04-12T00:13:28 | 2016-04-12T00:13:28 | 55,819,341 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,038 | cpp | /* (c)2003 Hotsprings Inc. Licensed under GPL - see LICENSE in HotlineSources diresctory */
// The Win32 file naming
#include "AW.h"
#include "CFSLocalFolderRefWin.h"
#include "CFSLocalFileRefWin.h"
#include "StString.h"
HL_Begin_Namespace_BigRedH
// ---------------------------------------------------------------------
// CFSLocalFolderRefWin [public]
// ---------------------------------------------------------------------
// constructor
CFSLocalFolderRefWin::CFSLocalFolderRefWin(const CString& inFileName)
: mFolderName(inFileName)
, mRightsLoaded(false)
{}
// ---------------------------------------------------------------------
// CFSLocalFolderRefWin [public]
// ---------------------------------------------------------------------
// constructor
CFSLocalFolderRefWin::CFSLocalFolderRefWin(const CString& inFileName, UInt32 inAttr)
: mFolderName(inFileName)
, mRightsLoaded(false)
{
InitRightsFrom(inAttr);
}
// ---------------------------------------------------------------------
// CFSLocalFolderRefWin [public]
// ---------------------------------------------------------------------
// constructor
CFSLocalFolderRefWin::CFSLocalFolderRefWin(const CFSLocalFolderRefWin& inOther)
: mFolderName(inOther.mFolderName)
, mRights(inOther.mRights)
, mContentLoaded(false) //?? let's not duplicate the content on cloning
, mRightsLoaded(inOther.mRightsLoaded)
{}
// ---------------------------------------------------------------------
// Clone [public][virtual]
// ---------------------------------------------------------------------
// clone this
std::auto_ptr<CFSRef>
CFSLocalFolderRefWin::Clone() const
{
CFSRef* fsref = nil;
try
{
fsref = new CFSLocalFolderRefWin(*this);
}
catch (...) { RETHROW_FS_(eClone,mFolderName); }
return std::auto_ptr<CFSRef> (fsref);
}
// ---------------------------------------------------------------------
// GetName() [public][virtual]
// ---------------------------------------------------------------------
// get the name of the file
const CString&
CFSLocalFolderRefWin::GetName() const
{
return mFolderName;
}
// ---------------------------------------------------------------------
// IsEqual [public][virtual]
// ---------------------------------------------------------------------
// check if the two file references point to the same actual file
bool
CFSLocalFolderRefWin::IsEqual(const CFSRef& inOther) const
{
const CFSLocalFolderRefWin* other = dynamic_cast<const CFSLocalFolderRefWin*> (&inOther);
if (other == nil)
return false;
return mFolderName == other->mFolderName;
}
// ---------------------------------------------------------------------
// IsLessThan [public][virtual]
// ---------------------------------------------------------------------
// for ordered pools like std::set or std::map
bool
CFSLocalFolderRefWin::IsLessThan(const CFSRef& inOther) const
{
const CFSLocalFolderRefWin* other = dynamic_cast<const CFSLocalFolderRefWin*>
(&inOther);
if (other == nil)
return false;
return mFolderName < other->mFolderName;
}
// ---------------------------------------------------------------------
// LoadRights [public][virtual]
// ---------------------------------------------------------------------
// load the rights
void
CFSLocalFolderRefWin::LoadRights()
{
try
{
if (!mRightsLoaded)
{
StCStyleString fileNameOS(mFolderName);
DWORD attr = ::GetFileAttributes(fileNameOS);
InitRightsFrom(attr);
}
Notify(eRights, mRightsLoaded);
}
catch (...) { RETHROW_FS_(eLoadRights,mFolderName); }
}
// ---------------------------------------------------------------------
// InitRightsFrom [protected]
// ---------------------------------------------------------------------
// convert Win32 file attributes to CFileRights
void
CFSLocalFolderRefWin::InitRightsFrom(UInt32 inAttr)
{
if (inAttr == DWORD(-1))
THROW_OS_(::GetLastError());
mRightsLoaded = (0 != (FILE_ATTRIBUTE_DIRECTORY & inAttr) );
if (! mRightsLoaded)
THROW_OS_(ERROR_DIRECTORY);
//FILE_ATTRIBUTE_COMPRESSED
//FILE_ATTRIBUTE_ENCRYPTED
mRights.SetWrite(0 == (FILE_ATTRIBUTE_READONLY & inAttr));
mRights.SetVisible(0 == (FILE_ATTRIBUTE_HIDDEN & inAttr));
mRights.SetRead(true);
}
// ---------------------------------------------------------------------
// GetRights [public][virtual]
// ---------------------------------------------------------------------
// get the previously loaded rights
CFileRights&
CFSLocalFolderRefWin::GetRights()
{
if (!mRightsLoaded)
{ THROW_UNKNOWN_FS_(eGetRights,mFolderName); }
return mRights;
}
// ---------------------------------------------------------------------
// StFindFileWin
// ---------------------------------------------------------------------
// helper class used by LoadContent()
class StFindFileWin
{
public:
StFindFileWin(const CString& inFolderName);
// throws ???
~StFindFileWin();
// throws nothing
void Next();
// throws ???
bool Found()
// throws nothing
{ return !mDone; }
WIN32_FIND_DATA& GetData()
{ return mData; }
private:
HANDLE mHandle;
WIN32_FIND_DATA mData;
bool mDone;
}; // class StFindFileWin
// ---------------------------------------------------------------------
// StFindFileWin [public]
// ---------------------------------------------------------------------
// constructor
StFindFileWin::StFindFileWin(const CString& inFolderName)
: mHandle(INVALID_HANDLE_VALUE)
, mDone(true)
{
StCStyleString fileNameOS(inFolderName);
mHandle = ::FindFirstFile(fileNameOS,&mData);
bool success = (mHandle != INVALID_HANDLE_VALUE);
mDone = (!success && (ERROR_NO_MORE_FILES == ::GetLastError()));
if (!success && !mDone)
THROW_OS_(GetLastError());
}
// ---------------------------------------------------------------------
// ~StFindFileWin [public]
// ---------------------------------------------------------------------
// destructor
StFindFileWin::~StFindFileWin()
{
try
{
if (mHandle != INVALID_HANDLE_VALUE)
if(0 != ::FindClose(mHandle))
ASSERT(false);
}
catch (...)
{}
}
// ---------------------------------------------------------------------
// Next [public]
// ---------------------------------------------------------------------
// get next file in the folder
void
StFindFileWin::Next()
{
bool success = (0 != ::FindNextFile(mHandle,&mData));
mDone = (!success && (ERROR_NO_MORE_FILES == ::GetLastError()));
if (!success && !mDone)
THROW_OS_(GetLastError());
}
// ---------------------------------------------------------------------
// LoadContent [public][virtual]
// ---------------------------------------------------------------------
// retrieve the folder's content
void
CFSLocalFolderRefWin::LoadContent()
{
try
{
if (! mContentLoaded)
{
CString pattern = mFolderName + L"\\*.*";
for(StFindFileWin files(pattern); files.Found(); files.Next())
{
WIN32_FIND_DATA& data = files.GetData();
CFSRef* theItem = nil;
CString fileName(data.cFileName);
// skip . and .. filenames
if ((fileName.length() == 1) && (fileName[0] == L'.'))
continue;
if ((fileName.length() == 2) && (fileName[0] == L'.') && (fileName[1] == L'.'))
continue;
CString fullName = mFolderName;
fullName += CString(L"\\");
fullName += fileName;
// remember folders and normal files differently
if (0 == (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
theItem = new CFSLocalFileRefWin(fullName.c_str(),data.dwFileAttributes);
else
theItem = new CFSLocalFolderRefWin(fullName.c_str(),data.dwFileAttributes);
mContent.push_back(theItem);
}
mContentLoaded = true;
}
Notify(eLoaded, mContentLoaded);
}
catch (...) { RETHROW_FS_(eLoadContent,mFolderName); }
}
// ---------------------------------------------------------------------
// GetContent [public][virtual]
// ---------------------------------------------------------------------
// get the items in a folder
const CFSLocalFolderRefWin::Content&
CFSLocalFolderRefWin::GetContent()
{
if (!mContentLoaded)
{ THROW_UNKNOWN_FS_(eGetContent,mFolderName); }
return mContent;
}
// ---------------------------------------------------------------------
// Create [public][virtual]
// ---------------------------------------------------------------------
// create an empty folder
void
CFSLocalFolderRefWin::Create()
{
try
{
StCStyleString fileNameOS(mFolderName);
if(0 == ::CreateDirectory(fileNameOS,NULL))
THROW_OS_(::GetLastError());
Notify(eCreated, true);
}
catch (...) { RETHROW_FS_(eCreate,mFolderName); }
}
// ---------------------------------------------------------------------
// Delete() [public][virtual]
// ---------------------------------------------------------------------
// delete the file and notify the listener
void
CFSLocalFolderRefWin::Delete()
{
try
{
StCStyleString fileNameOS(mFolderName);
// don't allow readonly folders to be deleted
DWORD attr = ::GetFileAttributes(fileNameOS);
if (DWORD(-1) == attr)
THROW_OS_(::GetLastError());
// the system does not protect read-only files but we do
if (0 != (FILE_ATTRIBUTE_READONLY & attr))
THROW_OS_(ERROR_WRITE_PROTECT);
// time to remove the folder
if (0 == ::RemoveDirectory(fileNameOS))
THROW_OS_(::GetLastError());
Notify(eDeleted, true);
}
catch (...) { RETHROW_FS_(eDelete,mFolderName); }
}
HL_End_Namespace_BigRedH
| [
"schalaalexiazeal@gmail.com"
] | schalaalexiazeal@gmail.com |
adf9acad75e56da35c7185a29da0b1760ebb8351 | 2ccb2893e895cae01e508f5a669c39a3a4aeaf71 | /AnimationService/timerrefreshthread.h | 54afc8c4f1fa143b7b481e37295d76ef3668db0c | [
"Apache-2.0"
] | permissive | xubenhao/VisualAlgorithm | 513942013716fc2caddae8e1cd32318fc50a8bdc | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | refs/heads/main | 2023-02-28T19:31:51.437208 | 2021-02-08T02:29:50 | 2021-02-08T02:29:50 | 333,267,125 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,410 | h | // Author : XuBenHao
// Version : 1.0.0
// Mail : xbh370970843@163.com
// Copyright : XuBenHao 2020 - 2030
#ifndef ANIMATION_SERVICE_TIMERREFRESHTHREAD_H
#define ANIMATION_SERVICE_TIMERREFRESHTHREAD_H
#include "header.h"
namespace NAnimationService
{
class TimerRefreshThread : public QThread
{
public:
// TimerRefresh
// In:
// NcShowBuffer
// Out:
// Get nc show and trigger related widget updating
TimerRefreshThread(
//const NParameter::ArrayNcParameter& arrParam_,
//const NFileParse::ArrayModalData& arrModalData_,
NSync::FixBufferFor1P1C<NNcShow::NcShow*, 20>* pNcShowBuffer_,
QWidget* pWidget_,
QObject* pParent_ = nullptr);
~TimerRefreshThread();
void Stop();
void Pause();
virtual void timerEvent(QTimerEvent *event);
ASSEMBLYLINEOBJECT_PRODUCER_STATE GetAssemBlyObjectState(){return m_nState;}
THREAD_STATE GetThreadState();
protected:
void run() override;
public slots:
void Update();
private:
bool m_bStop;
QTimer* m_pTimer;
NSync::FixBufferFor1P1C<NNcShow::NcShow*, 20>* m_pNcShowBuffer;
QWidget* m_pWidget;
ASSEMBLYLINEOBJECT_PRODUCER_STATE m_nState;
int m_nTimerId;
//std::function<void(*)()>
};
}
#endif // TIMERREFRESHTHREAD_H
| [
"xbh370970843@163.com"
] | xbh370970843@163.com |
753baf3f313de45d9f9de8e15fbb83b3a635d120 | 4f4a10693ba1df3e7d1016178ed246e6198ed2a3 | /ServerApp/ServerUTest/src/AuthenticatorTest.cpp | 636e456dd535b2b3d8fc76ffe0760e2d5eebcf0b | [] | no_license | lite12/cpttt | b3868ff7ce5da1058184ead5daceb51f30a5e8ba | ca4e74f2a041c0a57c7f05695c04e333a2dd9336 | refs/heads/master | 2020-03-18T23:48:39.723397 | 2018-06-02T14:56:54 | 2018-06-02T14:56:54 | 135,430,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,741 | cpp | #include "stdafx.h"
#include <gtest\gtest.h>
#define private public
#include "include/Authenticator.h"
#undef public
#include <sstream>
#include <fstream>
using namespace ServerApp;
namespace ServerAppTest
{
class UserStoreMock : IUserStore {
std::unordered_map<std::string, std::shared_ptr<UserDefinition>> users;
public:
void addUser(std::string email, std::string key) {
auto user = std::make_shared<UserDefinition>();
user->key = key;
user->email = email;
users[key] = user;
}
virtual std::shared_ptr<UserDefinition> getUserViaKey(const std::string &key) const override {
if (users.find(key) == users.end())
return nullptr;
return users.at(key);
}
};
TEST(AuthenticatorTest, Auhtenticate) {
std::string email = "test@test.com";
std::string key = "123";
auto store = new UserStoreMock();
store->addUser(email, key);
Authenticator auth((IUserStore*)store);
EXPECT_TRUE(!auth.authenticate("", "").compare(""));
EXPECT_TRUE(auth.authenticate(key, email).compare(""));
EXPECT_TRUE(auth.authenticate(key, email).length() == Authenticator::k_tokenLength);
}
TEST(AuthenticatorTest, getUserViaToken) {
std::string email = "test@test.com";
std::string key = "123";
auto store = new UserStoreMock();
store->addUser(email, key);
Authenticator auth((IUserStore*)store);
auto token = auth.authenticate(key, email);
auto user = auth.getUserBytoken(token);
EXPECT_TRUE(user->key == key);
EXPECT_TRUE(user->email == email);
}
} // namespace ServerAppTest
| [
"34488369+lite12@users.noreply.github.com"
] | 34488369+lite12@users.noreply.github.com |
c0c3f0bac5f7496f3c09874ea0400ba4397fca4f | 6e50b385bf7c18790dc2d95c75479adbc44f4869 | /_testPlan/test/interesttest.cpp | ec8f96b23d017306848eae4b3a6833717348ec48 | [] | no_license | 99003708/SDLC_LTTS | 83394e475680464f7ca5a15e9cee89e596f0917b | c5405a9fac068bcdc5bd2bc795437bc06e6f80ff | refs/heads/main | 2023-03-10T10:40:49.907573 | 2021-02-25T09:27:08 | 2021-02-25T09:27:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | #include "unity.h"
#include "interest.h"
#include "test_interest.h"
void test_interest_basic(void)
{
TEST_ASSERT_EQUAL( 2, 4250);
}
int test_interest(void)
{
/* Initiate the Unity Test Framework */
UNITY_BEGIN();
/* Run Test functions */
RUN_TEST(test_interest_basic);
/* Close the Unity Test Framework */
return UNITY_END();
}
| [
"chilukuri.yuvateja@gamil.com"
] | chilukuri.yuvateja@gamil.com |
14ce6dafea1b68d550f686398e5b1d596c65df56 | 31af4e75039a4e0d19f7d5e728984ad2aefe669a | /Module01/ex05/main.cpp | a19645171d05fb702475b0049f7c18a674310688 | [] | no_license | bouillon21/CPP_modules | 14fded3a0d50e7ae3c6b6058c33eb9bc10dc5b56 | b0ce183db7abc3dfc0a94152acb685373a86b48a | refs/heads/master | 2023-09-02T05:58:00.974783 | 2021-10-12T14:29:12 | 2021-10-12T14:29:12 | 394,299,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | //
// Created by Cherlyn Shelli on 8/14/21.
//
#include <iostream>
#include "Karen.h"
int main ()
{
std::string level;
Karen myKaren;
std::cout<<"введите левл: ";
std::cin >> level;
myKaren.complain(level);
return 0;
}
| [
"b.barzhanov@yandex.ru"
] | b.barzhanov@yandex.ru |
ecfb3ef78624247584723b7acee65a11b16e2334 | e7731c6869939c77c7d5e7c89850db93d7c2c4e1 | /CPP/leetcode/_15_3Sum.h | d2efd687fd8bb36ef3e432d7f5edd56c29906292 | [] | no_license | FreddieMercy/leetcode | 4e47ed0c62afe4b4b361fa50ee7658ab4312b7ec | 25b6c3eb0c609103a2daf9de42c97c3191470725 | refs/heads/master | 2022-12-08T11:12:09.852895 | 2021-01-09T23:21:13 | 2021-01-09T23:21:13 | 93,186,467 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,164 | h | #include <iostream>
#include <functional>
#include <vector>
#include <queue>
#include <fstream>
#include <string>
#include <bitset>
#include <sstream>
#include <climits>
#include <cmath>
#include <map>
#include <utility>
#include <stdint.h>
#include <algorithm>
#include <stack>
using namespace std;
class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
vector<int> col = nums;
sort(col.begin(), col.end());
vector<vector<int>> retV;
for (size_t i = 0; i < col.size(); ++i)
{
if (i > 0 && col[i] == col[i - 1])
{
continue;
}
if (col[i] > 0)
{
break;
}
size_t j = i + 1;
size_t z = col.size() - 1;
while (j < z)
{
while (j > i + 1 && col[j] == col[j - 1])
{
j++;
}
if (j < z)
{
if (col[i] + col[j] > 0)
{
break;
}
int s = col[i] + col[j] + col[z];
if (s < 0)
{
j++;
}
else if (s > 0)
{
z--;
}
else
{
vector<int> v;
v.push_back(col[i]);
v.push_back(col[j]);
v.push_back(col[z]);
retV.push_back(v);
j++;
}
}
}
}
return retV;
}
}; | [
"junhao.zhang.freddie@gmail.com"
] | junhao.zhang.freddie@gmail.com |
c1cfc225997f7668133409640b5cef5b460ea4c6 | 993f12a01981d837916f45ed04c9c53bd12b5d38 | /dev/vehicle/infantry/inspector_infantry.cpp | 6ae7b33776691cbdff6b3e3553c0ab1d0b612c1c | [] | no_license | Mo-Kanya/Meta-Infantry | 999c12eb30cf68abec375613821201c1a4e3bd1f | 5220c30116739767d6cd2fc0461ba2dc901ddd3c | refs/heads/master | 2020-09-15T21:48:54.470511 | 2019-11-15T18:52:15 | 2019-11-15T18:52:15 | 223,563,179 | 1 | 0 | null | 2019-11-23T09:24:30 | 2019-11-23T09:24:29 | null | UTF-8 | C++ | false | false | 7,210 | cpp | //
// Created by liuzikai on 2019-06-25.
//
#include "inspector_infantry.h"
AbstractAHRS *InspectorI::ahrs = nullptr;
CANInterface *InspectorI::can1 = nullptr;
CANInterface *InspectorI::can2 = nullptr;
bool InspectorI::gimbal_failure_ = false;
bool InspectorI::chassis_failure_ = false;
bool InspectorI::remote_failure_ = false;
InspectorI::InspectorThread InspectorI::inspectorThread;
void InspectorI::init(CANInterface *can1_, CANInterface *can2_, AbstractAHRS *ahrs_) {
can1 = can1_;
can2 = can2_;
ahrs = ahrs_;
}
void InspectorI::start_inspection(tprio_t thread_prio) {
inspectorThread.start(thread_prio);
}
void InspectorI::startup_check_can() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 100)) {
if (WITHIN_RECENT_TIME(can1->last_error_time, 5)) { // can error occurs
t = SYSTIME; // reset the counter
}
if (WITHIN_RECENT_TIME(can2->last_error_time, 5)) { // can error occurs
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(5);
}
}
void InspectorI::startup_check_mpu() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 20)) {
if (not WITHIN_RECENT_TIME(ahrs->get_mpu_update_time(), 5)) {
// No signal in last 5 ms (normal interval 1 ms for on-board MPU)
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(5);
}
}
void InspectorI::startup_check_ist() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 20)) {
if (not WITHIN_RECENT_TIME(ahrs->get_ist_update_time(), 5)) {
// No signal in last 5 ms (normal interval 1 ms for on-board MPU)
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(5);
}
}
void InspectorI::startup_check_remote() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 50)) {
if (not WITHIN_RECENT_TIME(Remote::last_update_time, 25)) { // No signal in last 25 ms (normal interval 7 ms)
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(15);
}
}
void InspectorI::startup_check_chassis_feedback() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 20)) {
if (not WITHIN_RECENT_TIME(ChassisIF::feedback[ChassisIF::FR].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Chassis FR offline.");
t = SYSTIME; // reset the counter
}
if (not WITHIN_RECENT_TIME(ChassisIF::feedback[ChassisIF::FL].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Chassis FL offline.");
t = SYSTIME; // reset the counter
}
if (not WITHIN_RECENT_TIME(ChassisIF::feedback[ChassisIF::BL].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Chassis BL offline.");
t = SYSTIME; // reset the counter
}
if (not WITHIN_RECENT_TIME(ChassisIF::feedback[ChassisIF::BR].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Chassis BR offline.");
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(5);
}
}
void InspectorI::startup_check_gimbal_feedback() {
time_msecs_t t = SYSTIME;
while (WITHIN_RECENT_TIME(t, 20)) {
if (not WITHIN_RECENT_TIME(GimbalIF::feedback[GimbalIF::YAW].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Gimbal Yaw offline.");
t = SYSTIME; // reset the counter
}
if (not WITHIN_RECENT_TIME(GimbalIF::feedback[GimbalIF::PITCH].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Gimbal Pitch offline.");
t = SYSTIME; // reset the counter
}
if (not WITHIN_RECENT_TIME(GimbalIF::feedback[GimbalIF::BULLET].last_update_time, 5)) {
// No feedback in last 5 ms (normal 1 ms)
LOG_ERR("Startup - Gimbal Bullet offline.");
t = SYSTIME; // reset the counter
}
chThdSleepMilliseconds(5);
}
}
bool InspectorI::gimbal_failure() {
return gimbal_failure_;
}
bool InspectorI::chassis_failure() {
return chassis_failure_;
}
bool InspectorI::remote_failure() {
return remote_failure_;
}
bool InspectorI::check_gimbal_failure() {
bool ret = false;
for (unsigned i = 0; i < 3; i++) {
if (not WITHIN_RECENT_TIME(GimbalIF::feedback[i].last_update_time, 20)) {
if (!gimbal_failure_) { // avoid repeating printing
LOG_ERR("Gimbal motor %u offline (at %u)", i, GimbalIF::feedback[i].last_update_time);
}
ret = true;
}
}
return ret;
}
bool InspectorI::check_chassis_failure() {
bool ret = false;
for (unsigned i = 0; i < ChassisIF::MOTOR_COUNT; i++) {
if (not WITHIN_RECENT_TIME(ChassisIF::feedback[i].last_update_time, 20)) {
if (!chassis_failure_) { // avoid repeating printing
LOG_ERR("Chassis motor %u offline (at %u)", i, ChassisIF::feedback[i].last_update_time);
}
ret = true;
}
}
return ret;
}
bool InspectorI::check_remote_data_error() {
bool ret = (!ABS_IN_RANGE(Remote::rc.ch0, 1.1) || !ABS_IN_RANGE(Remote::rc.ch1, 1.1) ||
!ABS_IN_RANGE(Remote::rc.ch2, 1.1) || !ABS_IN_RANGE(Remote::rc.ch3, 1.1) ||
!(Remote::rc.s1 >= 1 && Remote::rc.s1 <= 3) || !(Remote::rc.s2 >= 1 && Remote::rc.s2 <= 3) ||
!ABS_IN_RANGE(Remote::mouse.x, 1.1) || !ABS_IN_RANGE(Remote::mouse.y, 1.1) ||
!ABS_IN_RANGE(Remote::mouse.z, 1.1) ||
Remote::rx_buf_[12] > 1 || Remote::rx_buf_[13] > 1);
return ret;
}
void InspectorI::InspectorThread::main() {
setName("InspectorI");
while (!shouldTerminate()) {
if (check_remote_data_error()) {
remote_failure_ = true; // Set it to true to avoid problem when thread switches to User in the middle
while (check_remote_data_error()) {
Remote::uart_synchronize();
sleep(TIME_MS2I(10)); // wait for another normal frame
}
remote_failure_ = false;
}
remote_failure_ = (not WITHIN_RECENT_TIME(Remote::last_update_time, 50));
if (remote_failure_) LED::led_off(DEV_BOARD_LED_REMOTE);
else LED::led_on(DEV_BOARD_LED_REMOTE);
gimbal_failure_ = check_gimbal_failure();
if (gimbal_failure_) LED::led_off(DEV_BOARD_LED_GIMBAL);
else LED::led_on(DEV_BOARD_LED_GIMBAL);
chassis_failure_ = check_chassis_failure();
if (chassis_failure_) LED::led_off(DEV_BOARD_LED_CHASSIS);
else LED::led_on(DEV_BOARD_LED_CHASSIS);
if (remote_failure_ || gimbal_failure_ || chassis_failure_) {
if (!Buzzer::alerting()) Buzzer::alert_on();
} else {
if (Buzzer::alerting()) Buzzer::alert_off();
}
sleep(TIME_MS2I(INSPECTOR_THREAD_INTERVAL));
}
} | [
"liuzikai@163.com"
] | liuzikai@163.com |
208250ce65905d177aa353df1b9c083a97e426ce | 91c650d6cc59d98e004ecb1273c04a64f1f84e19 | /WallConstructor/Wall.h | ab34e20743e3e7470b8bea3fb1dbab51824e56d5 | [] | no_license | d3c6e1/WallConstructor | 88e348b6c23ae36d68ea87ffea07816a1b188eee | 56d2d76072ba201c60ec46802e7260873c78cd9c | refs/heads/main | 2023-02-07T02:34:22.138706 | 2020-12-19T18:06:36 | 2020-12-19T18:06:36 | 313,330,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | h | #pragma once
#include <string>
#include <vector>
using std::vector;
using std::string;
enum class Cell
{
GAP,
WALL,
FILLED_WALL
};
class Wall
{
int height;
int width;
vector<vector<Cell>> structure;
public:
Wall(): height{}, width{}{}
Wall(const int _height, const int _width, const vector<string>& _wall): height{_height}, width{_width}
{
vector<Cell> row{};
for (const auto& _row : _wall)
{
for (char _cell : _row)
{
// row.push_back(static_cast<Cell>(atoi(&_cell)));
row.push_back(static_cast<Cell>(stoi(string(1, _cell))));
}
structure.push_back(row);
row.clear();
}
}
int getHeight() const {return height;}
int getWidth() const {return width;}
auto getStructure() const{return structure;}
};
| [
"dmytro.koval@nure.ua"
] | dmytro.koval@nure.ua |
fc52902311d54f5946cc802b4445f5100ee23d30 | c49e02dbb5392cb1ea841d5ee1a0309ea6b5b86f | /include/algorithms/neural_networks/layers/loss/logistic_cross_layer_forward_types.h | f4973746aa180a753ba9773cbe3af00d219b414b | [
"Intel",
"Apache-2.0"
] | permissive | apnavik/daal | faa6f012a68623f34e970bcf309f121097da05f7 | 3a01b33aa3feb8994c7940116c5a3b4f101f0c04 | refs/heads/master | 2020-08-02T04:40:23.284552 | 2019-10-07T06:17:39 | 2019-10-07T06:17:39 | 201,421,484 | 0 | 0 | Apache-2.0 | 2019-08-09T08:04:29 | 2019-08-09T08:04:27 | null | UTF-8 | C++ | false | false | 6,822 | h | /* file: logistic_cross_layer_forward_types.h */
/*******************************************************************************
* Copyright 2014-2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
/*
//++
// Implementation of the forward logistic cross-entropy layer types.
//--
*/
#ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_TYPES_H__
#define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_TYPES_H__
#include "algorithms/algorithm.h"
#include "data_management/data/tensor.h"
#include "data_management/data/homogen_tensor.h"
#include "services/daal_defines.h"
#include "algorithms/neural_networks/layers/layer_forward_types.h"
#include "algorithms/neural_networks/layers/loss/loss_layer_forward_types.h"
#include "algorithms/neural_networks/layers/loss/logistic_cross_layer_types.h"
namespace daal
{
namespace algorithms
{
namespace neural_networks
{
namespace layers
{
namespace loss
{
namespace logistic_cross
{
/**
* @defgroup logistic_cross_forward Forward Logistic Cross-entropy Layer
* \copydoc daal::algorithms::neural_networks::layers::loss::logistic_cross::forward
* @ingroup logistic_cross
* @{
*/
/**
* \brief Contains classes for the forward logistic cross-entropy layer
*/
namespace forward
{
/**
* \brief Contains version 1.0 of Intel(R) Data Analytics Acceleration Library (Intel(R) DAAL) interface.
*/
namespace interface1
{
/**
* <a name="DAAL-CLASS-ALGORITHMS__NEURAL_NETWORKS__LAYERS__LOSS__LOGISTIC_CROSS__FORWARD__INPUT"></a>
* \brief %Input objects for the forward logistic cross-entropy layer
*/
class DAAL_EXPORT Input : public loss::forward::Input
{
public:
typedef loss::forward::Input super;
/** Default constructor */
Input();
/** Copy constructor */
Input(const Input& other);
/**
* Returns an input object for the forward logistic cross-entropy layer
*/
using loss::forward::Input::get;
/**
* Sets an input object for the forward logistic cross-entropy layer
*/
using loss::forward::Input::set;
/**
* Returns dimensions of weights tensor
* \return Dimensions of weights tensor
*/
virtual const services::Collection<size_t> getWeightsSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
/**
* Returns dimensions of biases tensor
* \return Dimensions of biases tensor
*/
virtual const services::Collection<size_t> getBiasesSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
/**
* Checks an input object for the layer algorithm
* \param[in] par %Parameter of algorithm
* \param[in] method Computation method of the algorithm
*
* \return Status of computation
*/
services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
virtual ~Input() {}
};
/**
* <a name="DAAL-CLASS-ALGORITHMS__NEURAL_NETWORKS__LAYERS__LOSS__LOGISTIC_CROSS__FORWARD__RESULT"></a>
* \brief Provides methods to access the result obtained with the compute() method
* of the forward logistic cross-entropy layer
*/
class DAAL_EXPORT Result : public loss::forward::Result
{
public:
DECLARE_SERIALIZABLE_CAST(Result);
/** Default constructor */
Result();
virtual ~Result() {};
/**
* Returns the result of the forward logistic cross-entropy layer
*/
using loss::forward::Result::get;
/**
* Sets the result of the forward logistic cross-entropy layer
*/
using loss::forward::Result::set;
/**
* Returns the result of the forward logistic cross-entropy layer
* \param[in] id Identifier of the result
* \return Result that corresponds to the given identifier
*/
data_management::TensorPtr get(LayerDataId id) const;
/**
* Sets the result of the forward logistic cross-entropy layer
* \param[in] id Identifier of the result
* \param[in] value Result
*/
void set(LayerDataId id, const data_management::TensorPtr &value);
/**
* Checks the result of the forward logistic cross-entropy layer
* \param[in] input %Input object for the layer
* \param[in] par %Parameter of the layer
* \param[in] method Computation method
*
* \return Status of computation
*/
services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
/**
* Allocates memory to store the result of the forward logistic cross-entropy layer
* \param[in] input Pointer to an object containing the input data
* \param[in] method Computation method for the layer
* \param[in] parameter %Parameter of the forward logistic cross-entropy layer
*
* \return Status of computation
*/
template <typename algorithmFPType>
DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
/**
* Returns dimensions of value tensor
* \return Dimensions of value tensor
*/
virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
/**
* Sets the result that is used in backward logistic cross-entropy layer
* \param[in] input Pointer to an object containing the input data
*
* \return Status of computation
*/
virtual services::Status setResultForBackward(const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
protected:
/** \private */
template<typename Archive, bool onDeserialize>
services::Status serialImpl(Archive *arch)
{
return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
}
};
typedef services::SharedPtr<Result> ResultPtr;
} // namespace interface1
using interface1::Input;
using interface1::Result;
using interface1::ResultPtr;
} // namespace forward
/** @} */
} // namespace logistic_cross
} // namespace loss
} // namespace layers
} // namespace neural_networks
} // namespace algorithm
} // namespace daal
#endif
| [
"nikolay.a.petrov@intel.com"
] | nikolay.a.petrov@intel.com |
98034d769ace00df7df2294cd24d934e2c9dda0c | b957e10ed5376dbe85c07bdef1f510f641984a1a | /Object.cpp | 9061d37946b70f34c44618f7f3c89fc005a968c3 | [] | no_license | alexjshank/motors | 063245c206df936a886f72a22f0f15c78e1129cb | 7193b729466d8caece267f0b8ddbf16d99c13f8a | refs/heads/master | 2016-09-10T15:47:20.906269 | 2009-11-04T18:41:21 | 2009-11-04T18:41:21 | 33,394,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25 | cpp | #include ".\object.h"
| [
"alexjshank@0c9e2a0d-1447-0410-93de-f5a27bb8667b"
] | alexjshank@0c9e2a0d-1447-0410-93de-f5a27bb8667b |
5227c42726e7f56a51ff20ff9d650a62f4a1cc10 | 65aaba4d24cfbddb05acc0b0ad814632e3b52837 | /src/osrm.net/libosrm/osrm-deps/boost/include/boost-1_62/boost/fiber/algo/algorithm.hpp | e02bce4ad419a7d062a50fc8e2dfb843c7867887 | [
"MIT"
] | permissive | tstaa/osrmnet | 3599eb01383ee99dc6207ad39eda13a245e7764f | 891e66e0d91e76ee571f69ef52536c1153f91b10 | refs/heads/master | 2021-01-21T07:03:22.508378 | 2017-02-26T04:59:50 | 2017-02-26T04:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | version https://git-lfs.github.com/spec/v1
oid sha256:002cfd0c3aa40bfce5f13ee460a5d6c5889c7cb59681849c7443a6958351756b
size 4010
| [
"ssuluh@yahoo.com"
] | ssuluh@yahoo.com |
6f177815a0fb72088a217b053d05e4bb9480ef89 | b72eeb4ece026e3f46e8bae69a6eda8c9eb100b4 | /UVa-Online-Judge/10093 - An Easy Problem!.cpp | 8a29dc9c517c9295113513a80ad326d0c4347621 | [] | no_license | shahed-shd/Online-Judge-Solutions | 712fadd108e026647adec09e576b3f364c1d54bd | ad10d61097d780aa8465c6836dc9f899a23239bc | refs/heads/master | 2023-08-31T06:37:19.801355 | 2023-08-27T09:53:53 | 2023-08-27T09:53:53 | 37,283,322 | 34 | 27 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | #include <iostream>
#include <unordered_map>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
unordered_map<char, int> mp;
for(int i = 0; i <= 9; ++i)
mp[i+'0'] = i;
for(int i = 0; i <= 25; ++i)
mp[i+'A'] = i+10, mp[i+'a'] = i+36;
string num;
while(cin >> num) {
int value, sum_of_digits = 0, maxDigit = -1;
for(auto& ch : num) {
value = mp[ch];
sum_of_digits += value;
maxDigit = max(maxDigit, value);
}
int base = max(2, maxDigit+1);
// An N-based number R is divisible by (N-1)
// if and only if the decimal sum of its digits is divisible by (N-1).
for( ; base <= 62; ++base)
if(sum_of_digits % (base-1) == 0) break;
if(base <= 62) cout << base << '\n';
else cout << "such number is impossible!\n";
}
return 0;
}
| [
"shahed-shd@users.noreply.github.com"
] | shahed-shd@users.noreply.github.com |
a7b701152ec9d02a812ed838a5b417109dcb1d76 | e15942415003af06d094871f19dd6f7cdc5f67e0 | /IO/vtkNetCDFCFReader.cxx | a89304bbde8a4b7a290842f83e39c1e361a5ce47 | [
"BSD-3-Clause"
] | permissive | SCS-B3C/VTK5.6 | e5b48b6b3c7a09d4d6b5c6c468b1053af0c39d37 | d4afb224f638c1f7e847b0cd3195ea8a977bb602 | refs/heads/master | 2021-01-13T02:37:03.081012 | 2011-04-08T12:06:58 | 2011-04-08T12:06:58 | 1,587,076 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,993 | cxx | // -*- c++ -*-
/*=========================================================================
Program: Visualization Toolkit
Module: vtkNetCDFCFReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
#include "vtkNetCDFCFReader.h"
#include "vtkDataArraySelection.h"
#include "vtkDoubleArray.h"
#include "vtkImageData.h"
#include "vtkInformation.h"
#include "vtkInformationVector.h"
#include "vtkIntArray.h"
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkPoints.h"
#include "vtkRectilinearGrid.h"
#include "vtkStdString.h"
#include "vtkStringArray.h"
#include "vtkStructuredGrid.h"
#include "vtkSmartPointer.h"
#define VTK_CREATE(type, name) \
vtkSmartPointer<type> name = vtkSmartPointer<type>::New()
#include <vtkstd/set>
#include <vtksys/RegularExpression.hxx>
#include <vtksys/SystemTools.hxx>
#include <string.h>
#include <netcdf.h>
#define CALL_NETCDF_GENERIC(call, on_error) \
{ \
int errorcode = call; \
if (errorcode != NC_NOERR) \
{ \
const char * errorstring = nc_strerror(errorcode); \
on_error; \
} \
}
#define CALL_NETCDF(call) \
CALL_NETCDF_GENERIC(call, vtkErrorMacro(<< "netCDF Error: " << errorstring); return 0;)
#define CALL_NETCDF_GW(call) \
CALL_NETCDF_GENERIC(call, vtkGenericWarningMacro(<< "netCDF Error: " << errorstring); return 0;)
#include <vtkstd/algorithm>
#include <math.h>
//=============================================================================
// Convenience function for getting the text attribute on a variable. Returns
// true if the attribute exists, false otherwise.
static bool ReadTextAttribute(int ncFD, int varId, const char *name,
vtkStdString &result)
{
size_t length;
if (nc_inq_attlen(ncFD, varId, name, &length) != NC_NOERR) return false;
result.resize(length);
if (nc_get_att_text(ncFD,varId,name,&result.at(0)) != NC_NOERR) return false;
// The line below seems weird, but it is here for a good reason. In general,
// text attributes are not null terminated, so you have to add your own (which
// the vtkStdString will do for us). However, sometimes a null terminating
// character is written in the attribute anyway. In a C string this is no big
// deal. But it means that the vtkStdString has a null character in it and it
// is technically different than its own C string. This line corrects that
// regardless of whether the null string was written we will get the right
// string.
result = result.c_str();
return true;
}
//=============================================================================
vtkNetCDFCFReader::vtkDimensionInfo::vtkDimensionInfo(int ncFD, int id)
{
this->DimId = id;
this->LoadMetaData(ncFD);
}
int vtkNetCDFCFReader::vtkDimensionInfo::LoadMetaData(int ncFD)
{
this->Units = UNDEFINED_UNITS;
char name[NC_MAX_NAME+1];
CALL_NETCDF_GW(nc_inq_dimname(ncFD, this->DimId, name));
this->Name = name;
size_t dimLen;
CALL_NETCDF_GW(nc_inq_dimlen(ncFD, this->DimId, &dimLen));
this->Coordinates = vtkSmartPointer<vtkDoubleArray>::New();
this->Coordinates->SetName((this->Name + "_Coordinates").c_str());
this->Coordinates->SetNumberOfComponents(1);
this->Coordinates->SetNumberOfTuples(dimLen);
this->Bounds = vtkSmartPointer<vtkDoubleArray>::New();
this->Bounds->SetName((this->Name + "_Bounds").c_str());
this->Bounds->SetNumberOfComponents(1);
this->Bounds->SetNumberOfTuples(dimLen+1);
this->SpecialVariables = vtkSmartPointer<vtkStringArray>::New();
int varId;
int varNumDims;
int varDim;
// By convention if there is a single dimension variable with the same name as
// its dimension, then the data contains the coordinates for the dimension.
if ( (nc_inq_varid(ncFD, name, &varId) == NC_NOERR)
&& (nc_inq_varndims(ncFD, varId, &varNumDims) == NC_NOERR)
&& (varNumDims == 1)
&& (nc_inq_vardimid(ncFD, varId, &varDim) == NC_NOERR)
&& (varDim == this->DimId) )
{
this->SpecialVariables->InsertNextValue(name);
// Read coordinates
CALL_NETCDF_GW(nc_get_var_double(ncFD, varId,
this->Coordinates->GetPointer(0)));
// Check to see if the spacing is regular.
this->Origin = this->Coordinates->GetValue(0);
this->Spacing
= (this->Coordinates->GetValue(dimLen-1) - this->Origin)/(dimLen-1);
this->HasRegularSpacing = true; // Then check to see if it is false.
double tolerance = 0.01*this->Spacing;
for (size_t i = 1; i < dimLen; i++)
{
double expectedValue = this->Origin + i*this->Spacing;
double actualValue = this->Coordinates->GetValue(i);
if ( (actualValue < expectedValue-tolerance)
|| (actualValue > expectedValue+tolerance) )
{
this->HasRegularSpacing = false;
break;
}
}
// Check units.
vtkStdString units;
if (ReadTextAttribute(ncFD, varId, "units", units))
{
units = vtksys::SystemTools::LowerCase(units);
// Time, latitude, and longitude dimensions are those with units that
// correspond to strings formatted with the Unidata udunits package. I'm
// not sure if these checks are complete, but they matches all of the
// examples I have seen.
if (units.find(" since ") != vtkStdString::npos)
{
this->Units = TIME_UNITS;
}
else if (vtksys::RegularExpression("degrees?_?n").find(units))
{
this->Units = LATITUDE_UNITS;
}
else if (vtksys::RegularExpression("degrees?_?e").find(units))
{
this->Units = LONGITUDE_UNITS;
}
}
// Check axis.
vtkStdString axis;
if (ReadTextAttribute(ncFD, varId, "axis", axis))
{
// The axis attribute is an alternate way of defining the coordinate type.
// The string can be "X", "Y", "Z", or "T" which mean longitude, latitude,
// vertical, and time, respectively.
if (axis == "X")
{
this->Units = LONGITUDE_UNITS;
}
else if (axis == "Y")
{
this->Units = LATITUDE_UNITS;
}
else if (axis == "Z")
{
this->Units = VERTICAL_UNITS;
}
else if (axis == "T")
{
this->Units = TIME_UNITS;
}
}
// Check positive.
vtkStdString positive;
if (ReadTextAttribute(ncFD, varId, "positive", positive))
{
positive = vtksys::SystemTools::LowerCase(positive);
if (positive.find("down") != vtkStdString::npos)
{
// Flip the values of the coordinates.
for (vtkIdType i = 0; i < this->Coordinates->GetNumberOfTuples(); i++)
{
this->Coordinates->SetValue(i, -(this->Coordinates->GetValue(i)));
}
this->Spacing = -this->Spacing;
}
}
// Create the bounds array, which is used in place of the coordinates when
// loading as cell data. We will look for the bounds attribute on the
// description variable to see if cell bounds have been written out. This
// code assumes that if such an attribute exists, it is the name of another
// variable that is of dimensions of size dimLen X 2. There are no checks
// for this (other than the existence of the attribute), so if this is not
// the case then the code could fail.
vtkStdString boundsName;
if (ReadTextAttribute(ncFD, varId, "bounds", boundsName))
{
this->SpecialVariables->InsertNextValue(boundsName);
int boundsVarId;
CALL_NETCDF_GW(nc_inq_varid(ncFD, boundsName.c_str(), &boundsVarId));
// Read in the first bound value for each entry as a point bound. If the
// cells are connected, the second bound value should equal the first
// bound value of the next entry anyway.
size_t start[2]; start[0] = start[1] = 0;
size_t count[2]; count[0] = dimLen; count[1] = 1;
CALL_NETCDF_GW(nc_get_vars_double(ncFD, boundsVarId, start, count, NULL,
this->Bounds->GetPointer(0)));
// Read in the last value for the bounds array. It will be the second
// bound in the last entry. This will not be replicated unless the
// dimension is a longitudinal one that wraps all the way around.
start[0] = dimLen-1; start[1] = 1;
count[0] = 1; count[1] = 1;
CALL_NETCDF_GW(nc_get_vars_double(ncFD, boundsVarId, start, count, NULL,
this->Bounds->GetPointer(dimLen)));
}
else
{
// Bounds not given. Set them based on the coordinates.
this->Bounds->SetValue(
0, this->Coordinates->GetValue(0) - 0.5*this->Spacing);
for (vtkIdType i = 1; i < static_cast<vtkIdType>(dimLen); i++)
{
double v0 = this->Coordinates->GetValue(i-1);
double v1 = this->Coordinates->GetValue(i);
this->Bounds->SetValue(i, 0.5*(v0+v1));
}
this->Bounds->SetValue(dimLen,
this->Coordinates->GetValue(dimLen-1)+0.5*this->Spacing);
}
}
else
{
// Fake coordinates
for (size_t i = 0; i < dimLen; i++)
{
this->Coordinates->SetValue(i, static_cast<double>(i));
this->Bounds->SetValue(i, static_cast<double>(i) - 0.5);
}
this->Bounds->SetValue(dimLen, static_cast<double>(dimLen) - 0.5);
this->HasRegularSpacing = true;
this->Origin = 0.0;
this->Spacing = 1.0;
}
return 1;
}
//-----------------------------------------------------------------------------
class vtkNetCDFCFReader::vtkDimensionInfoVector
{
public:
vtkstd::vector<vtkDimensionInfo> v;
};
//=============================================================================
vtkNetCDFCFReader::vtkDependentDimensionInfo::vtkDependentDimensionInfo(
int ncFD, int varId,
vtkNetCDFCFReader *parent)
{
if (this->LoadMetaData(ncFD, varId, parent))
{
this->Valid = true;
}
else
{
this->Valid = false;
}
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::vtkDependentDimensionInfo::LoadMetaData(
int ncFD, int varId,
vtkNetCDFCFReader *parent)
{
int longitudeCoordVarId, latitudeCoordVarId;
int longitudeBoundsVarId, latitudeBoundsVarId;
longitudeCoordVarId = latitudeCoordVarId = -1;
longitudeBoundsVarId = latitudeBoundsVarId = -1;
this->GridDimensions = vtkSmartPointer<vtkIntArray>::New();
this->SpecialVariables = vtkSmartPointer<vtkStringArray>::New();
// The grid dimensions are the dimensions on the variable. Since multiple
// variables can be put on the same grid and this class identifies grids by
// their variables, I group all of the dimension combinations together for 2D
// coordinate lookup. Technically, the CF specification allows you to have
// specify different coordinate variables, but we do not support that because
// there is no easy way to differentiate grids with the same dimensions. If
// different coordinates are needed, then duplicate dimensions should be
// created. Anyone who disagrees should write their own class.
int numGridDimensions;
CALL_NETCDF_GW(nc_inq_varndims(ncFD, varId, &numGridDimensions));
if (numGridDimensions < 2) return 0;
this->GridDimensions->SetNumberOfTuples(numGridDimensions);
CALL_NETCDF_GW(nc_inq_vardimid(ncFD, varId,
this->GridDimensions->GetPointer(0)));
// Remove initial time dimension, which has no effect on data type.
if (parent->IsTimeDimension(ncFD, this->GridDimensions->GetValue(0)))
{
this->GridDimensions->RemoveTuple(0);
numGridDimensions--;
if (numGridDimensions < 2) return 0;
}
vtkStdString coordinates;
if (!ReadTextAttribute(ncFD, varId, "coordinates", coordinates)) return 0;
vtkstd::vector<vtkstd::string> coordName;
vtksys::SystemTools::Split(coordinates, coordName, ' ');
for (vtkstd::vector<vtkstd::string>::iterator iter = coordName.begin();
iter != coordName.end(); iter++)
{
int auxCoordVarId;
if (nc_inq_varid(ncFD, iter->c_str(), &auxCoordVarId) != NC_NOERR) continue;
// I am only interested in 2D variables.
int numDims;
CALL_NETCDF_GW(nc_inq_varndims(ncFD, auxCoordVarId, &numDims));
if (numDims != 2) continue;
// Make sure that the coordinate variables have the same dimensions and that
// those dimensions are the same as the last two dimensions on the grid.
// Not sure if that is enforced by the specification, but I am going to make
// that assumption.
int auxCoordDims[2];
CALL_NETCDF_GW(nc_inq_vardimid(ncFD, auxCoordVarId, auxCoordDims));
int *gridDims = this->GridDimensions->GetPointer(numGridDimensions - 2);
if ((auxCoordDims[0] != gridDims[0]) || (auxCoordDims[1] != gridDims[1]))
{
continue;
}
// The variable is no use to me unless it is identified as either longitude
// or latitude.
vtkStdString units;
if (!ReadTextAttribute(ncFD, auxCoordVarId, "units", units)) continue;
units = vtksys::SystemTools::LowerCase(units);
if (vtksys::RegularExpression("degrees?_?n").find(units))
{
latitudeCoordVarId = auxCoordVarId;
}
else if (vtksys::RegularExpression("degrees?_?e").find(units))
{
longitudeCoordVarId = auxCoordVarId;
}
else
{
continue;
}
this->SpecialVariables->InsertNextValue(*iter);
}
if ((longitudeCoordVarId == -1) || (latitudeCoordVarId == -1))
{
// Did not find coordinate variables.
return 0;
}
vtkStdString bounds;
if (ReadTextAttribute(ncFD, longitudeCoordVarId, "bounds", bounds))
{
// The bounds is supposed to point to an array with 3 dimensions. The first
// two should be the same as the coord array, the third with 4 entries.
// Maybe I should check this, but I'm not.
CALL_NETCDF_GW(nc_inq_varid(ncFD, bounds.c_str(), &longitudeBoundsVarId));
this->SpecialVariables->InsertNextValue(bounds);
}
if (ReadTextAttribute(ncFD, latitudeCoordVarId, "bounds", bounds))
{
// The bounds is supposed to point to an array with 3 dimensions. The first
// two should be the same as the coord array, the third with 4 entries.
// Maybe I should check this, but I'm not.
CALL_NETCDF_GW(nc_inq_varid(ncFD, bounds.c_str(), &latitudeBoundsVarId));
this->SpecialVariables->InsertNextValue(bounds);
}
this->HasBounds = ((longitudeBoundsVarId != -1)&&(latitudeBoundsVarId != -1));
// Load in all the longitude and latitude coordinates. Maybe not the most
// efficient thing to do for large data, but it is just a 2D plane, so it
// should be OK for most things.
this->LongitudeCoordinates = vtkSmartPointer<vtkDoubleArray>::New();
this->LatitudeCoordinates = vtkSmartPointer<vtkDoubleArray>::New();
if (this->HasBounds)
{
if (!this->LoadBoundsVariable(ncFD, longitudeBoundsVarId,
this->LongitudeCoordinates)) return 0;
if (!this->LoadBoundsVariable(ncFD, latitudeBoundsVarId,
this->LatitudeCoordinates)) return 0;
}
else
{
if (!this->LoadCoordinateVariable(ncFD, longitudeCoordVarId,
this->LongitudeCoordinates)) return 0;
if (!this->LoadCoordinateVariable(ncFD, latitudeCoordVarId,
this->LatitudeCoordinates)) return 0;
}
return 1;
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::vtkDependentDimensionInfo::LoadCoordinateVariable(
int ncFD, int varId,
vtkDoubleArray *coords)
{
int dimIds[2];
CALL_NETCDF_GW(nc_inq_vardimid(ncFD, varId, dimIds));
size_t dimSizes[2];
for (int i = 0; i < 2; i++)
{
CALL_NETCDF_GW(nc_inq_dimlen(ncFD, dimIds[i], &dimSizes[i]));
}
coords->SetNumberOfComponents(static_cast<int>(dimSizes[1]));
coords->SetNumberOfTuples(static_cast<vtkIdType>(dimSizes[0]));
CALL_NETCDF_GW(nc_get_var_double(ncFD, varId, coords->GetPointer(0)));
return 1;
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::vtkDependentDimensionInfo::LoadBoundsVariable(
int ncFD, int varId,
vtkDoubleArray *coords)
{
int dimIds[3];
CALL_NETCDF_GW(nc_inq_vardimid(ncFD, varId, dimIds));
size_t dimSizes[3];
for (int i = 0; i < 3; i++)
{
CALL_NETCDF_GW(nc_inq_dimlen(ncFD, dimIds[i], &dimSizes[i]));
}
if (dimSizes[2] != 4)
{
vtkGenericWarningMacro(<< "Expected 2D dependent coordinate bounds to have"
<< " 4 entries in final dimension. Instead has "
<< dimSizes[2]);
return 0;
}
// Bounds are stored as 4-tuples for every cell. Tuple entries 0 and 1
// connect to the cell in the -i topological direction. Tuple entries 0 and 3
// connect to the cell in the -j topological direction.
vtkstd::vector<double> boundsData(dimSizes[0]*dimSizes[1]*4);
CALL_NETCDF_GW(nc_get_var_double(ncFD, varId, &boundsData.at(0)));
// The coords array are the coords at the points. There is one more point
// than cell in each topological direction.
int numComponents = static_cast<int>(dimSizes[1]);
vtkIdType numTuples = static_cast<vtkIdType>(dimSizes[0]);
coords->SetNumberOfComponents(numComponents+1);
coords->SetNumberOfTuples(numTuples+1);
// Copy from the bounds data to the coordinates data. Most values will
// be copied from the bound's 0'th tuple entry. Values at the extremes
// will be copied from other entries.
for (vtkIdType j = 0; j < numTuples; j++)
{
for (int i = 0; i < numComponents; i++)
{
coords->SetComponent(j, i, boundsData[(j*numComponents + i)*4 + 0]);
}
coords->SetComponent(j, numComponents,
boundsData[((j+1)*numComponents-1)*4 + 1]);
}
for (int i = 0; i < numComponents; i++)
{
coords->SetComponent(numTuples, i,
boundsData[((numTuples-1)*numComponents)*4 + 2]);
}
coords->SetComponent(numTuples, numComponents,
boundsData[(numTuples*numComponents-1)*4 + 3]);
return 1;
}
//-----------------------------------------------------------------------------
class vtkNetCDFCFReader::vtkDependentDimensionInfoVector
{
public:
vtkstd::vector<vtkNetCDFCFReader::vtkDependentDimensionInfo> v;
};
//=============================================================================
vtkStandardNewMacro(vtkNetCDFCFReader);
//-----------------------------------------------------------------------------
vtkNetCDFCFReader::vtkNetCDFCFReader()
{
this->SphericalCoordinates = 1;
this->VerticalScale = 1.0;
this->VerticalBias = 0.0;
this->DimensionInfo = new vtkDimensionInfoVector;
this->DependentDimensionInfo = new vtkDependentDimensionInfoVector;
}
vtkNetCDFCFReader::~vtkNetCDFCFReader()
{
delete this->DimensionInfo;
delete this->DependentDimensionInfo;
}
void vtkNetCDFCFReader::PrintSelf(ostream &os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
os << indent << "SphericalCoordinates: " << this->SphericalCoordinates <<endl;
os << indent << "VerticalScale: " << this->VerticalScale <<endl;
os << indent << "VerticalBias: " << this->VerticalBias <<endl;
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::CanReadFile(const char *filename)
{
// We really just read basic arrays from netCDF files. If the netCDF library
// says we can read it, then we can read it.
int ncFD;
int errorcode = nc_open(filename, NC_NOWRITE, &ncFD);
if (errorcode == NC_NOERR)
{
nc_close(ncFD);
return 1;
}
else
{
return 0;
}
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::RequestDataObject(
vtkInformation *vtkNotUsed(request),
vtkInformationVector **vtkNotUsed(inputVector),
vtkInformationVector *outputVector)
{
vtkInformation *outInfo = outputVector->GetInformationObject(0);
vtkDataObject *output = vtkDataObject::GetData(outInfo);
// This is really too early to know the appropriate data type. We need to
// have meta data and let the user select arrays. We have to do part
// of the RequestInformation to get the appropriate meta data.
if (!this->UpdateMetaData()) return 0;
int dataType = VTK_IMAGE_DATA;
int ncFD;
CALL_NETCDF(nc_open(this->FileName, NC_NOWRITE, &ncFD));
int numArrays = this->VariableArraySelection->GetNumberOfArrays();
for (int arrayIndex = 0; arrayIndex < numArrays; arrayIndex++)
{
if (!this->VariableArraySelection->GetArraySetting(arrayIndex)) continue;
const char *name = this->VariableArraySelection->GetArrayName(arrayIndex);
int varId;
CALL_NETCDF(nc_inq_varid(ncFD, name, &varId));
int currentNumDims;
CALL_NETCDF(nc_inq_varndims(ncFD, varId, ¤tNumDims));
if (currentNumDims < 1) continue;
VTK_CREATE(vtkIntArray, currentDimensions);
currentDimensions->SetNumberOfComponents(1);
currentDimensions->SetNumberOfTuples(currentNumDims);
CALL_NETCDF(nc_inq_vardimid(ncFD, varId,
currentDimensions->GetPointer(0)));
// Remove initial time dimension, which has no effect on data type.
if (this->IsTimeDimension(ncFD, currentDimensions->GetValue(0)))
{
currentDimensions->RemoveTuple(0);
currentNumDims--;
if (currentNumDims < 1) continue;
}
// Check to see if the dimensions fit spherical coordinates.
if (this->SphericalCoordinates)
{
if (this->CoordinatesAreSpherical(currentDimensions->GetPointer(0),
currentNumDims))
{
dataType = VTK_STRUCTURED_GRID;
break;
}
}
// Check to see if any dimension has irregular spacing.
for (int i = 0; i < currentNumDims; i++)
{
int dimId = currentDimensions->GetValue(i);
if (!this->GetDimensionInfo(dimId)->GetHasRegularSpacing())
{
dataType = VTK_RECTILINEAR_GRID;
break;
}
}
break;
}
if (dataType == VTK_IMAGE_DATA)
{
if (!output || !output->IsA("vtkImageData"))
{
output = vtkImageData::New();
output->SetPipelineInformation(outInfo);
output->Delete(); // Not really deleted.
}
}
else if (dataType == VTK_RECTILINEAR_GRID)
{
if (!output || !output->IsA("vtkRectilinearGrid"))
{
output = vtkRectilinearGrid::New();
output->SetPipelineInformation(outInfo);
output->Delete(); // Not really deleted.
}
}
else // dataType == VTK_STRUCTURED_GRID
{
if (!output || !output->IsA("vtkStructuredGrid"))
{
output = vtkStructuredGrid::New();
output->SetPipelineInformation(outInfo);
output->Delete(); // Not really deleted.
}
}
return 1;
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::RequestData(vtkInformation *request,
vtkInformationVector **inputVector,
vtkInformationVector *outputVector)
{
// Let the superclass do the heavy lifting.
if (!this->Superclass::RequestData(request, inputVector, outputVector))
{
return 0;
}
// Add spacing information defined by the COARDS conventions.
vtkImageData *imageOutput = vtkImageData::GetData(outputVector);
if (imageOutput)
{
double origin[3];
origin[0] = origin[1] = origin[2] = 0.0;
double spacing[3];
spacing[0] = spacing[1] = spacing[2] = 1.0;
int numDim = this->LoadingDimensions->GetNumberOfTuples();
if (numDim >= 3) numDim = 3;
for (int i = 0; i < numDim; i++)
{
// Remember that netCDF dimension ordering is backward from VTK.
int dim = this->LoadingDimensions->GetValue(numDim-i-1);
origin[i] = this->GetDimensionInfo(dim)->GetOrigin();
spacing[i] = this->GetDimensionInfo(dim)->GetSpacing();
}
}
vtkRectilinearGrid *rectOutput = vtkRectilinearGrid::GetData(outputVector);
if (rectOutput)
{
int extent[6];
rectOutput->GetExtent(extent);
int numDim = this->LoadingDimensions->GetNumberOfTuples();
for (int i = 0; i < 3; i++)
{
vtkSmartPointer<vtkDoubleArray> coords;
if (i < numDim)
{
// Remember that netCDF dimension ordering is backward from VTK.
int dim = this->LoadingDimensions->GetValue(numDim-i-1);
coords = this->GetDimensionInfo(dim)->GetCoordinates();
int extLow = extent[2*i];
int extHi = extent[2*i+1];
if ((extLow != 0) || (extHi != coords->GetNumberOfTuples()-1))
{
// Getting a subset of this dimension.
VTK_CREATE(vtkDoubleArray, newcoords);
newcoords->SetNumberOfComponents(1);
newcoords->SetNumberOfTuples(extHi-extLow+1);
memcpy(newcoords->GetPointer(0), coords->GetPointer(extLow),
(extHi-extLow+1)*sizeof(double));
coords = newcoords;
}
}
else
{
coords = vtkSmartPointer<vtkDoubleArray>::New();
coords->SetNumberOfTuples(1);
coords->SetComponent(0, 0, 0.0);
}
switch (i)
{
case 0: rectOutput->SetXCoordinates(coords); break;
case 1: rectOutput->SetYCoordinates(coords); break;
case 2: rectOutput->SetZCoordinates(coords); break;
}
}
}
vtkStructuredGrid *structOutput = vtkStructuredGrid::GetData(outputVector);
if (structOutput)
{
if (this->FindDependentDimensionInfo(this->LoadingDimensions))
{
this->Add2DSphericalCoordinates(structOutput);
}
else
{
this->Add1DSphericalCoordinates(structOutput);
}
}
return 1;
}
//-----------------------------------------------------------------------------
void vtkNetCDFCFReader::Add1DSphericalCoordinates(
vtkStructuredGrid *structOutput)
{
int extent[6];
structOutput->GetExtent(extent);
vtkDoubleArray *coordArrays[3];
for (vtkIdType i = 0; i < this->LoadingDimensions->GetNumberOfTuples(); i++)
{
int dim = this->LoadingDimensions->GetValue(i);
coordArrays[i] = this->GetDimensionInfo(dim)->GetBounds();
}
int longitudeDim, latitudeDim, verticalDim;
this->IdentifySphericalCoordinates(
this->LoadingDimensions->GetPointer(0),
this->LoadingDimensions->GetNumberOfTuples(),
longitudeDim, latitudeDim, verticalDim);
VTK_CREATE(vtkPoints, points);
points->SetDataTypeToDouble();
points->Allocate( (extent[1]-extent[0]+1)
* (extent[3]-extent[2]+1)
* (extent[5]-extent[4]+1) );
// Check the height scale and bias.
double vertScale = this->VerticalScale;
double vertBias = this->VerticalBias;
if (verticalDim >= 0)
{
double *verticalRange = coordArrays[verticalDim]->GetRange();
if ( (verticalRange[0]*vertScale + vertBias < 0)
|| (verticalRange[1]*vertScale + vertBias < 0) )
{
vertBias = -vtkstd::min(verticalRange[0], verticalRange[1])*vertScale;
}
}
else
{
if (vertScale + vertBias <= 0)
{
vertScale = 1.0;
vertBias = 0.0;
}
}
int ijk[3];
for (ijk[0] = extent[4]; ijk[0] <= extent[5]; ijk[0]++)
{
for (ijk[1] = extent[2]; ijk[1] <= extent[3]; ijk[1]++)
{
for (ijk[2] = extent[0]; ijk[2] <= extent[1]; ijk[2]++)
{
double lon, lat, h;
if (verticalDim >= 0)
{
lon = coordArrays[longitudeDim]->GetValue(ijk[longitudeDim]);
lat = coordArrays[latitudeDim]->GetValue(ijk[latitudeDim]);
h = coordArrays[verticalDim]->GetValue(ijk[verticalDim]);
}
else
{
lon = coordArrays[longitudeDim]->GetValue(ijk[longitudeDim+1]);
lat = coordArrays[latitudeDim]->GetValue(ijk[latitudeDim+1]);
h = 1.0;
}
lon = vtkMath::RadiansFromDegrees(lon);
lat = vtkMath::RadiansFromDegrees(lat);
h = h*vertScale + vertBias;
double cartesianCoord[3];
cartesianCoord[0] = h*cos(lon)*cos(lat);
cartesianCoord[1] = h*sin(lon)*cos(lat);
cartesianCoord[2] = h*sin(lat);
points->InsertNextPoint(cartesianCoord);
}
}
}
structOutput->SetPoints(points);
}
//-----------------------------------------------------------------------------
void vtkNetCDFCFReader::Add2DSphericalCoordinates(
vtkStructuredGrid *structOutput)
{
vtkDependentDimensionInfo *info
= this->FindDependentDimensionInfo(this->LoadingDimensions);
int extent[6];
structOutput->GetExtent(extent);
VTK_CREATE(vtkPoints, points);
points->SetDataTypeToDouble();
points->Allocate( (extent[1]-extent[0]+1)
* (extent[3]-extent[2]+1)
* (extent[5]-extent[4]+1) );
vtkDoubleArray *longitudeCoordinates = info->GetLongitudeCoordinates();
vtkDoubleArray *latitudeCoordinates = info->GetLatitudeCoordinates();
vtkDoubleArray *verticalCoordinates = NULL;
if (this->LoadingDimensions->GetNumberOfTuples() == 3)
{
int vertDim = this->LoadingDimensions->GetValue(0);
if (info->GetHasBounds())
{
verticalCoordinates = this->GetDimensionInfo(vertDim)->GetBounds();
}
else
{
verticalCoordinates = this->GetDimensionInfo(vertDim)->GetCoordinates();
}
}
// Check the height scale and bias.
double vertScale = this->VerticalScale;
double vertBias = this->VerticalBias;
if (verticalCoordinates)
{
double *verticalRange = verticalCoordinates->GetRange();
if ( (verticalRange[0]*vertScale + vertBias < 0)
|| (verticalRange[1]*vertScale + vertBias < 0) )
{
vertBias = -vtkstd::min(verticalRange[0], verticalRange[1])*vertScale;
}
}
else
{
if (vertScale + vertBias <= 0)
{
vertScale = 1.0;
vertBias = 0.0;
}
}
for (int k = extent[4]; k <= extent[5]; k++)
{
double h;
if (verticalCoordinates)
{
h = verticalCoordinates->GetValue(k)*vertScale + vertBias;
}
else
{
h = vertScale + vertBias;
}
for (int j = extent[2]; j <= extent[3]; j++)
{
for (int i = extent[0]; i <= extent[1]; i++)
{
double lon = longitudeCoordinates->GetComponent(j, i);
double lat = latitudeCoordinates->GetComponent(j, i);
lon = vtkMath::RadiansFromDegrees(lon);
lat = vtkMath::RadiansFromDegrees(lat);
double cartesianCoord[3];
cartesianCoord[0] = h*cos(lon)*cos(lat);
cartesianCoord[1] = h*sin(lon)*cos(lat);
cartesianCoord[2] = h*sin(lat);
points->InsertNextPoint(cartesianCoord);
}
}
}
structOutput->SetPoints(points);
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::ReadMetaData(int ncFD)
{
int i;
vtkDebugMacro("ReadMetaData");
int numDimensions;
CALL_NETCDF(nc_inq_ndims(ncFD, &numDimensions));
this->DimensionInfo->v.resize(numDimensions);
vtkstd::set<vtkStdString> specialVariables;
for (i = 0; i < numDimensions; i++)
{
this->DimensionInfo->v[i] = vtkDimensionInfo(ncFD, i);
// Record any special variables for this dimension.
vtkStringArray* dimensionVariables
= this->DimensionInfo->v[i].GetSpecialVariables();
for (vtkIdType j = 0; j < dimensionVariables->GetNumberOfValues(); j++)
{
specialVariables.insert(dimensionVariables->GetValue(j));
}
}
int numVariables;
CALL_NETCDF(nc_inq_nvars(ncFD, &numVariables));
// Check all variables for special 2D coordinates.
for (i = 0; i < numVariables; i++)
{
vtkDependentDimensionInfo info(ncFD, i, this);
if (!info.GetValid()) continue;
if (this->FindDependentDimensionInfo(info.GetGridDimensions()) != NULL)
{
continue;
}
this->DependentDimensionInfo->v.push_back(info);
// Record any special variables.
vtkStringArray* dimensionVariables = info.GetSpecialVariables();
for (vtkIdType j = 0; j < dimensionVariables->GetNumberOfValues(); j++)
{
specialVariables.insert(dimensionVariables->GetValue(j));
}
}
// Look at all variables and record them so that the user can select
// which ones he wants.
this->VariableArraySelection->RemoveAllArrays();
for (i = 0; i < numVariables; i++)
{
char name[NC_MAX_NAME+1];
CALL_NETCDF(nc_inq_varname(ncFD, i, name));
// Make sure this is not a special variable that describes a dimension
// before exposing it.
if (specialVariables.find(name) == specialVariables.end())
{
this->VariableArraySelection->AddArray(name);
}
}
return 1;
}
//-----------------------------------------------------------------------------
int vtkNetCDFCFReader::IsTimeDimension(int vtkNotUsed(ncFD), int dimId)
{
return ( this->GetDimensionInfo(dimId)->GetUnits()
== vtkDimensionInfo::TIME_UNITS );
}
//-----------------------------------------------------------------------------
vtkSmartPointer<vtkDoubleArray> vtkNetCDFCFReader::GetTimeValues(
int vtkNotUsed(ncFD), int dimId)
{
return this->GetDimensionInfo(dimId)->GetCoordinates();
}
//-----------------------------------------------------------------------------
inline vtkNetCDFCFReader::vtkDimensionInfo *
vtkNetCDFCFReader::GetDimensionInfo(int dimension)
{
return &(this->DimensionInfo->v.at(dimension));
}
//-----------------------------------------------------------------------------
vtkNetCDFCFReader::vtkDependentDimensionInfo *
vtkNetCDFCFReader::FindDependentDimensionInfo(vtkIntArray *dims)
{
return this->FindDependentDimensionInfo(dims->GetPointer(0),
dims->GetNumberOfTuples());
}
vtkNetCDFCFReader::vtkDependentDimensionInfo *
vtkNetCDFCFReader::FindDependentDimensionInfo(const int *dims, int numDims)
{
for (size_t i = 0; i < this->DependentDimensionInfo->v.size(); i++)
{
vtkIntArray *dependentDims
= this->DependentDimensionInfo->v[i].GetGridDimensions();
if (numDims == dependentDims->GetNumberOfTuples())
{
bool same = true;
for (vtkIdType j = 0; j < numDims; j++)
{
if (dims[j] != dependentDims->GetValue(j))
{
same = false;
break;
}
}
if (same) return &(this->DependentDimensionInfo->v[i]);
}
}
return NULL;
}
//-----------------------------------------------------------------------------
void vtkNetCDFCFReader::IdentifySphericalCoordinates(const int *dimensions,
int numDimensions,
int &longitudeDim,
int &latitudeDim,
int &verticalDim)
{
longitudeDim = latitudeDim = verticalDim = -1;
for (int i = 0; i < numDimensions; i++)
{
switch (this->GetDimensionInfo(dimensions[i])->GetUnits())
{
case vtkDimensionInfo::LONGITUDE_UNITS:
longitudeDim = i;
break;
case vtkDimensionInfo::LATITUDE_UNITS:
latitudeDim = i;
break;
default:
verticalDim = i;
break;
}
}
}
| [
"d.giunchi@scsitaly.com"
] | d.giunchi@scsitaly.com |
dcad0043aa582651336dea5ad1416107e0e12fe7 | 9b2e727342b1e3765f784de32d364f4bcf90fbc9 | /uart/Serialprintf/src/main.cpp | d80d9c7d30d32005468902c3ea896798a6546a7c | [
"Apache-2.0"
] | permissive | mc-b/IoTKitV3 | d902afa147b47a9d614c34ff103c6bc359702b54 | 87d7a66a1730f71bc69110a214b1b2a18f22edcb | refs/heads/master | 2021-08-29T05:54:10.115066 | 2021-08-10T15:59:19 | 2021-08-10T15:59:19 | 101,919,584 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | #include "mbed.h"
int i = 123;
float f = 1.235f;
char s[] = "Das ist ein String";
int main()
{
// Integer: Standard, genau 4-stellig, 4-stellig mit Vornullen
printf ( "int %d, %4d, %04d\n", i, i, i );
// float: Standard, Vor-/Nachkommastellen gerundet
printf ( "float %f, %4.2f\n", f, f );
// String: Standard, mit Anzahl der auszugebenden Zeichen
printf ( "string %s, %.*s\n", s, 3, s );
// Integer, Float nach String
char buf[8];
sprintf( buf, "%d", i );
printf ( "int %s\n", buf );
sprintf ( buf, "%4.2f", f );
printf ( "float %s\n", buf );
}
| [
"mbern@padmcb2"
] | mbern@padmcb2 |
17a5779ed941406db4a96dfb82630fda8f443305 | ebc4929722c5b8facc0311d73fe184b491770240 | /src/Vector2f.hpp | 0304aa56f2101e3aa8ffe1d56fde811c5d2695fc | [] | no_license | opatut/OpenGL-Playground | a0b4bb4a7958ff5ecd688fa6e10e7559520ecaf2 | 208b42a91d83caecc7d8f2f1c886b7bf09c4e08e | refs/heads/master | 2016-09-05T18:31:13.233788 | 2011-08-03T15:13:41 | 2011-08-03T15:13:41 | 2,145,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | hpp | #ifndef _VECTOR2F
#define _VECTOR2F
#include <cmath>
class Vector2f {
public:
float X;
float Y;
Vector2f(float x, float y);
float GetLenght() const;
void Normalize();
};
#endif
| [
"opatutlol@aol.com"
] | opatutlol@aol.com |
b65afda968b23fae5b5d094cc4525a8eab6b3008 | b822313f0e48cf146b4ebc6e4548b9ad9da9a78e | /KylinSdk/Standard/stdpch.cpp | a2d29488c51ea21b4e2faa61fa58ca8d1a6e3d8a | [] | no_license | dzw/kylin001v | 5cca7318301931bbb9ede9a06a24a6adfe5a8d48 | 6cec2ed2e44cea42957301ec5013d264be03ea3e | refs/heads/master | 2021-01-10T12:27:26.074650 | 2011-05-30T07:11:36 | 2011-05-30T07:11:36 | 46,501,473 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 268 | cpp | // stdafx.cpp : 只包括标准包含文件的源文件
// Standard.pch 将作为预编译头
// stdafx.obj 将包含预编译类型信息
#include "stdpch.h"
// TODO: 在 STDAFX.H 中
// 引用任何所需的附加头文件,而不是在此文件中引用
| [
"apayaccount@gmail.com"
] | apayaccount@gmail.com |
8ad59d920cf2dc5839e627e835e792cc835f5df7 | 333b58a211c39f7142959040c2d60b69e6b20b47 | /Odyssey/FileSystem/FileSystem.cpp | ba47fdfe3ecd44c3efa90726214c8f844e515302 | [] | no_license | JoeAltmaier/Odyssey | d6ef505ade8be3adafa3740f81ed8d03fba3dc1a | 121ea748881526b7787f9106133589c7bd4a9b6d | refs/heads/master | 2020-04-11T08:05:34.474250 | 2015-09-09T20:03:29 | 2015-09-09T20:03:29 | 42,187,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,734 | cpp | /* FileSystem.cpp
*
* Copyright (C) ConvergeNet Technologies, 1999
*
* This material is a confidential trade secret and proprietary
* information of ConvergeNet Technologies, Inc. which may not be
* reproduced, used, sold or transferred to any third party without the
* prior written consent of ConvergeNet Technologies, Inc. This material
* is also copyrighted as an unpublished work under sections 104 and 408
* of Title 17 of the United States Code. Law prohibits unauthorized
* use, copying or reproduction.
*
**/
// Revision History:
// $Log: /Gemini/Odyssey/FileSystem/FileSystem.cpp $
//
// 14 2/14/00 8:51a Joehler
// Added error code for file too large as part of DFCT13023
//
// 13 1/31/00 4:17p Joehler
// Changes to correctly handle a persistent boot.
//
// 12 1/26/00 2:37p Joehler
// copy creationDate to avoid alignment problem.
//
// 11 12/09/99 1:48a Iowa
//
// 10 11/17/99 3:24p Joehler
// Cast reply prior to deletion
//
// 9 11/02/99 6:33p Joehler
// Added File System variable PTS field interface
//
// 8 10/18/99 5:32p Joehler
// Variable PTS interface not checked in yet.
//
// 7 10/15/99 2:01p Joehler
// Modified code to use Tom's GetRowCopy() from PTS reply
//
// 6 10/15/99 11:01a Joehler
// Changed error codes from ERC_UPGRADE_* to CTS_UPGRADE_* and moved to
// *.mc files to localize
//
// 5 10/12/99 11:23a Joehler
// Oops! Variable interface not released yet.
//
// 4 10/12/99 10:19a Joehler
// Modifications for variable pts table entries
//
// 3 10/07/99 9:57a Joehler
// changes for variable sized pts rows
//
// 2 10/06/99 4:21p Joehler
// added error checking
//
// 1 9/30/99 7:46a Joehler
// First cut of File System Master
//
// 90 columns
//3456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
#define _TRACEF
#include "CtEvent.h"
#include "FileSystem.h"
#include "BuildSys.h"
#include "FileSystemInfo.h"
// temp vpts
#include "Rows.h"
// BuildSys linkage
CLASSNAME(DdmFileSystem,SINGLE);
SERVELOCAL(DdmFileSystem, REQ_FILESYS_ADD_FILE);
SERVELOCAL(DdmFileSystem, REQ_FILESYS_DELETE_FILE);
SERVELOCAL(DdmFileSystem, REQ_FILESYS_LIST_FILES);
SERVELOCAL(DdmFileSystem, REQ_FILESYS_OPEN_FILE);
SERVELOCAL(DdmFileSystem, REQ_FILESYS_GET_SYSINFO);
// DdmFileSystem::Ctor (did)
// (static)
//
// Description:
// This routine is called by CHAOS when it wants to create
// an instance of DdmFileSystem.
//
// Inputs:
// did - CHAOS "Device ID" of the new instance we are to create.
//
// Outputs:
// DdmFileSystem::Ctor - Returns a pointer to the new instance, or NULL.
//
Ddm *DdmFileSystem::Ctor (DID did)
{
TRACE_ENTRY(DdmFileSystem::Ctor(DID did));
return (new DdmFileSystem (did));
}
/* end DdmFileSystem::Ctor *****************************************************/
// DdmFileSystem::Initialize (pMsg)
// (virtual)
//
// Description:
// Called for a DDM instance when the instance is being created.
// This routine is called after the DDM's constructor, but before
// DdmFileSystem::Enable(). Please note that this DDM is not completely
// initialized when this procedure returns. It has spawned several
// DefineTable messages and a call to Initialize the CmdServer and
// CmdSender(). When these are complete, m_Initialized will be set
// to true.
//
// Inputs:
// pMsg - Points to message which triggered our DDM's fault-in. This is
// always an "initialize" message.
//
// Outputs:
// DdmFileSystem::Initialize - Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::Initialize (Message *pMsg)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::Initialize(Message*));
DispatchRequest(REQ_FILESYS_ADD_FILE, REQUESTCALLBACK (DdmFileSystem, ProcessAddFile));
DispatchRequest(REQ_FILESYS_DELETE_FILE, REQUESTCALLBACK (DdmFileSystem, ProcessDeleteFile));
DispatchRequest(REQ_FILESYS_LIST_FILES, REQUESTCALLBACK (DdmFileSystem, ProcessListFiles));
DispatchRequest(REQ_FILESYS_OPEN_FILE, REQUESTCALLBACK (DdmFileSystem, ProcessOpenFile));
DispatchRequest(REQ_FILESYS_GET_SYSINFO, REQUESTCALLBACK (DdmFileSystem, ProcessGetSysInfo));
m_Initialized = false;
m_pFileSystemQueue = new CommandProcessingQueue;
assert(m_pFileSystemQueue);
processingCommand = FALSE;
usedSpace = 0;
// allocate CONTEXT to define tables
CONTEXT* pContext = new (tZERO) CONTEXT;
assert(pContext);
pContext->msg = pMsg;
status = DefineFileDescTable(pContext);
return OK;
}
/* end DdmFileSystem::Initialize *****************************************************/
// DdmFileSystem::Enable (pMsgReq)
//
// Description:
// Lets go!
STATUS DdmFileSystem::Enable(Message *pMsgReq)
{
TRACE_ENTRY(DdmFileSystem::Enable());
Reply(pMsgReq,OK);
return OK;
}
/* end DdmFileSystem::Enable *****************************************************/
// DdmFileSystem::ProcessAddFile (pMsg)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ProcessAddFile(Message *pMsgReq)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ProcessAddFile());
// allocate and initialize context
CONTEXT* pContext = new(tZERO) CONTEXT;
pContext->msg = pMsgReq;
SubmitRequest(function_AddFile, pContext);
return status;
}
/* end DdmFileSystem::ProcessAddFile ***********************************************/
// DdmFileSystem::ProcessDeleteFile
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ProcessDeleteFile(Message *pMsgReq)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ProcessDeleteFile());
// allocate and initialize context
CONTEXT* pContext = new(tZERO) CONTEXT;
pContext->msg = pMsgReq;
SubmitRequest(function_DeleteFile, pContext);
return status;
}
/* end DdmFileSystem::ProcessDeleteFile ***********************************************/
// DdmFileSystem::ProcessListFiles(pMsg)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ProcessListFiles(Message *pMsgReq)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ProcessListFiles());
// allocate and initialize context
CONTEXT* pContext = new(tZERO) CONTEXT;
pContext->msg = pMsgReq;
SubmitRequest(function_ListFiles, pContext);
return status;
}
/* end DdmFileSystem::ProcessListFiles ***********************************************/
// DdmFileSystem::ProcessOpenFile (pMsg)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ProcessOpenFile(Message *pMsgReq)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ProcessOpenFile());
// allocate and initialize context
CONTEXT* pContext = new(tZERO) CONTEXT;
pContext->msg = pMsgReq;
SubmitRequest(function_OpenFiles, pContext);
return status;
}
/* end DdmFileSystem::ProcessOpenFile ***********************************************/
// DdmFileSystem::ProcessGetSysInfo (pMsg)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ProcessGetSysInfo(Message *pMsgReq)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ProcessGetSysInfo());
// allocate and initialize context
CONTEXT* pContext = new(tZERO) CONTEXT;
pContext->msg = pMsgReq;
SubmitRequest(function_GetSysInfo, pContext);
return status;
}
/* end DdmFileSystem::ProcessGetSysInfo **********************************************/
//****************************
// PRIVATE METHODS BEGIN HERE
//****************************
// DdmFileSystem::DefineFileDescTable (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DefineFileDescTable(CONTEXT* pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::DefineFileDescTable());
pContext->state = FILE_DESC_TABLE_DEFINED;
FileDescRecord::RqDefineTable * preqDefTab;
// attempt table definition, in case we're dealing with a fresh PTS
preqDefTab = new FileDescRecord::RqDefineTable();
assert(preqDefTab);
status = Send(preqDefTab,
pContext,
REPLYCALLBACK (DdmFileSystem, InitReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::DefineFileDescTable ******************************************/
// DdmFileSystem::EnumFileDescTable (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::EnumFileDescTable(CONTEXT* pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::EnumFileDescTable());
// enumerate rows in File Desc Table
pContext->state = FILE_DESC_TABLE_ENUM;
FileDescRecord::RqEnumTable* preqEnum;
preqEnum = new FileDescRecord::RqEnumTable();
assert(preqEnum);
status = Send (preqEnum, pContext,
REPLYCALLBACK (DdmFileSystem, InitReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::EnumFileDescTable ******************************************/
// DdmFileSystem::DefineFileTable (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DefineFileTable(CONTEXT* pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::DefineFileTable());
pContext->state = FILE_TABLE_DEFINED;
FileRecord::RqDefineTable * preqDefTab;
// attempt table definition, in case we're dealing with a fresh PTS
preqDefTab = new FileRecord::RqDefineTable();
assert(preqDefTab);
status = Send(preqDefTab,
pContext,
REPLYCALLBACK (DdmFileSystem, InitReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::DefineFileTable ******************************************/
// DdmFileSystem::InitReplyHandler (Message* pReply)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::InitReplyHandler(Message *pReply_)
{
TRACE_ENTRY(DdmFileSystem::InitReplyHandler());
assert (pReply_ != NULL);
assert(pReply_->Status()==OK || pReply_->Status() == ercTableExists);
CONTEXT* pContext = (CONTEXT *) pReply_->GetContext();
assert (pContext != NULL);
switch (pContext->state)
{
case FILE_DESC_TABLE_DEFINED:
EnumFileDescTable(pContext);
break;
case FILE_DESC_TABLE_ENUM:
{
FileDescRecord::RqEnumTable* pReply = (FileDescRecord::RqEnumTable*) pReply_;
FileDescRecord* pFileDescRecords = pReply->GetRowPtr();
for (U16 i = 0; i < pReply->GetRowCount(); i++)
usedSpace += pFileDescRecords[i].cbFile;
DefineFileTable(pContext);
break;
}
case FILE_TABLE_DEFINED:
Reply(pContext->msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
break;
default:
assert(0);
break;
}
delete pReply_;
return CTS_SUCCESS;
}
/* end DdmFileSystem::InitReplyHandler ******************************************/
// DdmFileSystem::AddFile (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::AddFile(CONTEXT *pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::AddFile());
pContext->state = FILE_ROW_INSERTED;
MsgAddFile* msg = (MsgAddFile*) pContext->msg;
U8* pFile;
U32 cbFile = msg->GetFileSize();
msg->GetFile((void**)&pFile);
pContext->pFileRec = new FileRecord(pFile, cbFile);
assert(pContext->pFileRec);
if (usedSpace + cbFile > TOTAL_FILE_SYSTEM_SIZE)
{
Reply(pContext->msg, CTS_FILESYS_OUT_OF_MEMORY);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
return CTS_FILESYS_OUT_OF_MEMORY;
}
else
usedSpace += cbFile;
// temp vpts
/*FileRecord::RqInsertRow* preqInsert;
preqInsert = new FileRecord::RqInsertRow(pContext->pFileRec, 1);
assert(preqInsert);
status = Send (preqInsert, pContext,
REPLYCALLBACK (DdmFileSystem, AddFileReplyHandler));*/
TSInsertVLRow *pInsertRow = NULL;
pInsertRow = new TSInsertVLRow;
status = pInsertRow->Initialize(
this,
CT_FILE_TABLE_NAME,
pContext->pFileRec,
&pContext->rid,
(pTSCallback_t)&DdmFileSystem::TempAddFileReplyHandler,
pContext);
if (status == OS_DETAIL_STATUS_SUCCESS)
pInsertRow->Send();
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::AddFile ***********************************************/
// DdmFileSystem::InsertFileDescRow (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::InsertFileDescRow(CONTEXT *pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::InsertFileDescRow());
pContext->state = FILE_DESC_ROW_INSERTED;
MsgAddFile* msg = (MsgAddFile*) pContext->msg;
UnicodeString16 fileName;
msg->GetFileName(&fileName);
pContext->pFileDescRec = new FileDescRecord(msg->GetType(),
msg->GetFileSize(), fileName, pContext->rid);
assert(pContext->pFileDescRec);
FileDescRecord::RqInsertRow* preqInsert;
preqInsert = new FileDescRecord::RqInsertRow(pContext->pFileDescRec, 1);
assert(preqInsert);
status = Send (preqInsert, pContext,
REPLYCALLBACK (DdmFileSystem, AddFileReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::InsertFileDescRow ******************************************/
// temp vpts
// DdmFileSystem::TempAddFileReplyHandler
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::TempAddFileReplyHandler(void* pContext_, STATUS status)
{
TRACE_ENTRY(DdmFileSystem::TempAddFileReplyHandler());
CONTEXT* pContext = (CONTEXT*)pContext_;
if (status==ercFieldSizeTooLarge)
{
Reply(pContext->msg, CTS_FILESYS_FILE_TOO_LARGE);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
}
assert(status == OK);
callbackContext = (CONTEXT*)pContext_;
AddFileReplyHandler(NULL);
return CTS_SUCCESS;
}
/* end DdmFileSystem::TempAddFileReplyHandler ******************************************/
// temp vpts
// DdmFileSystem::AddFileReplyHandler (Message* pReply)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::AddFileReplyHandler(Message *pReply_)
{
TRACE_ENTRY(DdmFileSystem::AddFileReplyHandler());
// temp vpts
if (pReply_==NULL)
{
InsertFileDescRow(callbackContext);
return OK;
}
// temp vpts
assert (pReply_ != NULL);
assert(pReply_->Status()==OK);
CONTEXT* pContext = (CONTEXT *) pReply_->GetContext();
assert (pContext != NULL);
MsgAddFile* msg = (MsgAddFile*) pContext->msg;
RqPtsInsertRow* pReply = (RqPtsInsertRow*) pReply_;
switch (pContext->state)
{
case FILE_ROW_INSERTED:
// vpts temp assert(pReply->GetRowIdDataCount()==1);
// vpts temp pContext->rid = *pReply->GetRowIdDataPtr();
InsertFileDescRow(pContext);
break;
case FILE_DESC_ROW_INSERTED:
assert(pReply->GetRowIdDataCount()==1);
msg->SetFileKey(*pReply->GetRowIdDataPtr());
Reply(msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
break;
default:
assert(0);
break;
}
delete pReply;
return CTS_SUCCESS;
}
/* end DdmFileSystem::AddFileReplyHandler ******************************************/
// DdmFileSystem::DeleteFile (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DeleteFile(CONTEXT *pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::DeleteFile());
pContext->state = FILE_DESC_ROWS_READ;
MsgDeleteFile* msg = (MsgDeleteFile*) pContext->msg;
FileDescRecord::RqReadRow* preqRead;
preqRead = new FileDescRecord::RqReadRow(msg->GetFileKey());
assert(preqRead);
status = Send (preqRead, pContext,
REPLYCALLBACK (DdmFileSystem, DeleteFileReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::DeleteFile ***********************************************/
// DdmFileSystem::DeleteFileRow (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DeleteFileRow(CONTEXT *pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::DeleteFileRow());
pContext->state = FILE_ROW_DELETED;
FileRecord::RqDeleteRow* preqDelete;
preqDelete = new FileRecord::RqDeleteRow(pContext->pFileDescRec->fileKey);
assert(preqDelete);
status = Send (preqDelete, pContext,
REPLYCALLBACK (DdmFileSystem, DeleteFileReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::DeleteFileRow ******************************************/
// DdmFileSystem::DeleteFileDescRow (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DeleteFileDescRow(CONTEXT *pContext)
{
STATUS status;
TRACE_ENTRY(DdmFileSystem::DeleteFileDescRow());
pContext->state = FILE_DESC_ROW_DELETED;
FileDescRecord::RqDeleteRow* preqDelete;
preqDelete = new FileDescRecord::RqDeleteRow(pContext->pFileDescRec->rid);
assert(preqDelete);
status = Send (preqDelete, pContext,
REPLYCALLBACK (DdmFileSystem, DeleteFileReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::DeleteFileDescRow ******************************************/
// DdmFileSystem::DeleteFileReplyHandler (Message* pReply)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::DeleteFileReplyHandler(Message *pReply_)
{
TRACE_ENTRY(DdmFileSystem::DeleteFileReplyHandler());
assert (pReply_ != NULL);
CONTEXT* pContext = (CONTEXT *) pReply_->GetContext();
assert (pContext != NULL);
if (pReply_->Status()!=OK)
{
// temp vpts
//assert(pReply_->Status()==ercKeyNotFound &&
// pContext->state == FILE_DESC_ROWS_READ);
if (pReply_->Status()!= ercKeyNotFound)
assert(pContext->state==FILE_DESC_ROWS_READ ||
pContext->state==FILE_ROW_DELETED);
}
switch (pContext->state)
{
case FILE_DESC_ROWS_READ:
{
FileDescRecord::RqReadRow* pReply = (FileDescRecord::RqReadRow*) pReply_;
if (pReply->Status()==ercKeyNotFound)
{
Reply(pContext->msg, CTS_FILESYS_FILE_NOT_FOUND);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
return CTS_FILESYS_FILE_NOT_FOUND;
}
assert(pReply->GetRowCount()==1);
pContext->pFileDescRec = pReply->GetRowCopy();
usedSpace -= pContext->pFileDescRec->cbFile;
DeleteFileRow(pContext);
break;
}
case FILE_ROW_DELETED:
DeleteFileDescRow(pContext);
break;
case FILE_DESC_ROW_DELETED:
Reply(pContext->msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
break;
default:
assert(0);
break;
}
delete pReply_;
return CTS_SUCCESS;
}
/* end DdmFileSystem::DeleteFileReplyHandler ******************************************/
// DdmFileSystem::ListFiles (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ListFiles(CONTEXT *pContext)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ListFiles());
MsgListFiles* msg = (MsgListFiles*) pContext->msg;
pContext->type = msg->GetType();
if (pContext->type == ALL_FILES)
{
if (msg->GetFileKey() == 0)
{
// enumerate rows in File Desc Table
pContext->state = FILE_DESC_TABLE_ENUM;
FileDescRecord::RqEnumTable* preqEnum;
preqEnum = new FileDescRecord::RqEnumTable();
assert(preqEnum);
status = Send (preqEnum, pContext,
REPLYCALLBACK (DdmFileSystem, ListFilesReplyHandler));
assert (status == CTS_SUCCESS);
}
else
{
// read by file key
pContext->state = FILE_DESC_ROWS_READ;
FileDescRecord::RqReadRow* preqRead;
preqRead = new FileDescRecord::RqReadRow(msg->GetFileKey());
assert(preqRead);
status = Send (preqRead, pContext,
REPLYCALLBACK (DdmFileSystem, ListFilesReplyHandler));
assert (status == CTS_SUCCESS);
}
}
else
{
// read rows by key type
pContext->state = FILE_DESC_ROWS_READ;
FileDescRecord::RqReadRow* preqRead;
preqRead = new FileDescRecord::RqReadRow(CT_FDT_TYPE,
&pContext->type,
sizeof(pContext->type));
assert(preqRead);
status = Send (preqRead, pContext,
REPLYCALLBACK (DdmFileSystem, ListFilesReplyHandler));
assert (status == CTS_SUCCESS);
}
return status;
}
/* end DdmFileSystem::ListFiles ***********************************************/
// DdmFileSystem::ListFilesReplyHandler (Message* pReply)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ListFilesReplyHandler(Message *pReply_)
{
U32 numberOfRecords;
FileDescRecord* pFileDescRecords;
TRACE_ENTRY(DdmFileSystem::ListFilesReplyHandler());
assert (pReply_ != NULL);
CONTEXT* pContext = (CONTEXT *) pReply_->GetContext();
assert (pContext != NULL);
if (pReply_->Status()!=OK)
{
assert(pReply_->Status()==ercKeyNotFound &&
pContext->state == FILE_DESC_ROWS_READ);
}
MsgListFiles* msg = (MsgListFiles*) pContext->msg;
switch (pContext->state)
{
case FILE_DESC_ROWS_READ:
{
if (pReply_->Status()==OK)
{
FileDescRecord::RqReadRow* pReply = (FileDescRecord::RqReadRow*) pReply_;
pFileDescRecords = pReply->GetRowPtr();
numberOfRecords = pReply->GetRowCount();
}
else
numberOfRecords=0;
break;
}
case FILE_DESC_TABLE_ENUM:
{
FileDescRecord::RqEnumTable* pReply = (FileDescRecord::RqEnumTable*) pReply_;
pFileDescRecords = pReply->GetRowPtr();
numberOfRecords = pReply->GetRowCount();
break;
}
default:
assert(0);
break;
}
SystemInfo* pSysInfo = new SystemInfo(usedSpace, TOTAL_FILE_SYSTEM_SIZE);
assert(pSysInfo);
Entry *pEntry;
for (U16 i = 0; i < numberOfRecords; i++)
{
I64 creationDate = pFileDescRecords[i].creationDate;
UnicodeString file(pFileDescRecords[i].fileName);
pEntry = new Entry(pFileDescRecords[i].rid,
pFileDescRecords[i].type,
&file,
&creationDate,
pFileDescRecords[i].cbFile);
assert(pEntry);
pSysInfo->AddEntry(pEntry);
}
msg->SetSysInfo(pSysInfo);
delete pSysInfo;
delete pReply_;
Reply(pContext->msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
return CTS_SUCCESS;
}
/* end DdmFileSystem::ListFilesReplyHandler ******************************************/
// DdmFileSystem::OpenFile (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::OpenFile(CONTEXT *pContext)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::OpenFile());
pContext->state = FILE_DESC_ROWS_READ;
MsgOpenFile* msg = (MsgOpenFile*) pContext->msg;
FileDescRecord::RqReadRow* preqRead;
preqRead = new FileDescRecord::RqReadRow(msg->GetFileKey());
assert(preqRead);
status = Send (preqRead, pContext,
REPLYCALLBACK (DdmFileSystem, OpenFileReplyHandler));
assert (status == CTS_SUCCESS);
return status;
}
/* end DdmFileSystem::OpenFile ***********************************************/
// DdmFileSystem::ReadFileRow (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::ReadFileRow(CONTEXT *pContext)
{
STATUS status = OK;
TRACE_ENTRY(DdmFileSystem::ReadFileRow());
pContext->state = FILE_ROW_READ;
// temp vpts this needs to be a variable read row
/*FileRecord::RqReadRow* preqRead;
preqRead = new FileRecord::RqReadRow(pContext->pFileDescRec->fileKey);
assert(preqRead);
status = Send (preqRead, pContext,
REPLYCALLBACK (DdmFileSystem, OpenFileReplyHandler));
assert (status == CTS_SUCCESS);*/
TSReadVLRow *pReadRow;
pReadRow = new TSReadVLRow;
status = pReadRow->Initialize(
this,
CT_FILE_TABLE_NAME,
CT_PTS_RID_FIELD_NAME,
&pContext->pFileDescRec->fileKey,
sizeof(rowID),
(CPtsRecordBase**)&pContext->pFileRec,
&pContext->sizeOfRowData,
&pContext->numberOfRows,
(pTSCallback_t)&DdmFileSystem::TempOpenFileReplyHandler,
pContext);
if (status == OS_DETAIL_STATUS_SUCCESS)
pReadRow->Send();
return status;
}
/* end DdmFileSystem::ReadFileRow ***********************************************/
// temp vpts
// DdmFileSystem::TempOpenFileReplyHandler
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::TempOpenFileReplyHandler(void* pContext_, STATUS status)
{
TRACE_ENTRY(DdmFileSystem::TempOpenFileReplyHandler());
assert(status == OK);
callbackContext = (CONTEXT*)pContext_;
OpenFileReplyHandler(NULL);
return CTS_SUCCESS;
}
/* end DdmFileSystem::TempOpenFileReplyHandler ******************************************/
// temp vpts
// DdmFileSystem::OpenFileReplyHandler (Message* pReply)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::OpenFileReplyHandler(Message *pReply_)
{
TRACE_ENTRY(DdmFileSystem::OpenFileReplyHandler());
// temp vpts
if (pReply_==NULL)
{
UnicodeString file(callbackContext->pFileDescRec->fileName);
Entry* pEntry = new Entry(
callbackContext->pFileDescRec->rid,
callbackContext->pFileDescRec->type,
&file,
&callbackContext->pFileDescRec->creationDate,
callbackContext->pFileDescRec->cbFile,
callbackContext->pFileRec->vfFile.Ptr());
assert(pEntry);
MsgOpenFile* msg = (MsgOpenFile*) callbackContext->msg;
msg->SetFile(pEntry);
Reply(msg, OK);
ClearAndDeleteContext(callbackContext);
ProcessNextCommand();
return OK;
}
// temp vpts
assert (pReply_ != NULL);
CONTEXT* pContext = (CONTEXT *) pReply_->GetContext();
assert (pContext != NULL);
if (pReply_->Status()!=OK)
{
assert(pReply_->Status()==ercKeyNotFound &&
pContext->state == FILE_DESC_ROWS_READ);
}
MsgOpenFile* msg = (MsgOpenFile*) pContext->msg;
switch (pContext->state)
{
case FILE_DESC_ROWS_READ:
{
FileDescRecord::RqReadRow* pReply = (FileDescRecord::RqReadRow*) pReply_;
if (pReply->Status()==ercKeyNotFound)
{
Reply(pContext->msg, CTS_FILESYS_FILE_NOT_FOUND);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
return CTS_FILESYS_FILE_NOT_FOUND;
}
assert(pReply->GetRowCount()==1);
pContext->pFileDescRec = pReply->GetRowCopy();
ReadFileRow(pContext);
break;
}
case FILE_ROW_READ:
{
FileRecord::RqReadRow *pReply =
(FileRecord::RqReadRow*) pReply_;
// jlo copy variable sized row
assert(pReply->GetRowCount()==1);
CopyRowDataFromSgl(&pContext->pFileRec,
pReply->GetRowPtr(),
pReply->GetRowCount(),
sizeof(FileRecord));
UnicodeString file(pContext->pFileDescRec->fileName);
Entry* pEntry = new Entry(
pContext->pFileDescRec->rid,
pContext->pFileDescRec->type,
&file,
&pContext->pFileDescRec->creationDate,
pContext->pFileDescRec->cbFile,
pContext->pFileRec->vfFile.Ptr());
assert(pEntry);
msg->SetFile(pEntry);
Reply(msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
break;
}
default:
assert(0);
break;
}
delete pReply_;
return CTS_SUCCESS;
}
/* end DdmFileSystem::OpenFileReplyHandler ******************************************/
// DdmFileSystem::GetSysInfo (CONTEXT* pContext)
//
// Description:
//
// Inputs:
//
// Outputs:
// Returns OK if all is cool, else an error.
//
STATUS DdmFileSystem::GetSysInfo(CONTEXT *pContext)
{
TRACE_ENTRY(DdmFileSystem::GetSysInfo());
SystemInfo* pSysInfo = new SystemInfo(usedSpace, TOTAL_FILE_SYSTEM_SIZE);
assert(pSysInfo);
MsgGetSysInfo* msg = (MsgGetSysInfo*) pContext->msg;
msg->SetSysInfo(pSysInfo);
delete pSysInfo;
Reply(msg, OK);
ClearAndDeleteContext(pContext);
ProcessNextCommand();
return CTS_SUCCESS;
}
/* end DdmFileSystem::GetSysInfo ***********************************************/
// DdmFileSystem::SubmitRequest
//
// Description:
// This function either enqueues a new function call
// entry or makes the call if the queue is presently
// empty and the AlarmMaster is not processing a command
// Inputs:
// U32 functionToCall - enumerated value of function to call
// void* pContext - information passed from the calling DdmFileSystem
// method
//
// Outputs:
// STATUS - returns OK if everything is ok.
//
void DdmFileSystem::SubmitRequest(U32 functionToCall, CONTEXT* pContext)
{
if (m_pFileSystemQueue->Empty() && NotProcessingCommand())
ExecuteFunction(functionToCall, pContext);
else
m_pFileSystemQueue->AddFunctionCall(functionToCall, ((void*)pContext));
}
/* end DdmFileSystem::SubmitRequest ********************************/
// DdmFileSystem::ExecuteFunction
//
// Description:
// Sets the ProcessingCommand flag in the File System Master and
// calls the appropriate function
//
// Inputs:
// U32 functionToCall - enumerated value which specifies
// function to call
// void* _pContext - information passed from the calling DdmFileSystem
// method
//
// Outputs:
// STATUS - returns OK if everything is ok.
//
void DdmFileSystem::ExecuteFunction(U32 functionToCall, CONTEXT* pContext)
{
ProcessCommand();
switch (functionToCall)
{
case function_AddFile:
AddFile(pContext);
break;
case function_DeleteFile:
DeleteFile(pContext);
break;
case function_ListFiles:
ListFiles(pContext);
break;
case function_OpenFiles:
OpenFile(pContext);
break;
case function_GetSysInfo:
GetSysInfo(pContext);
break;
default:
assert(0);
break;
}
}
/* end DdmFileSystem::ExecuteFunction ********************************/
// DdmFileSystem::ProcessNextCommand
//
// Description:
// Checks the queue for next function call and executes
// or sets the Alarm Master to a non-busy state if there
// are no more commands to process
//
void DdmFileSystem::ProcessNextCommand()
{
FunctionCallElement* pElement;
pElement = m_pFileSystemQueue->PopFunctionCall();
if (pElement)
{
ExecuteFunction(pElement->GetFunction(), (CONTEXT*)pElement->GetContext());
delete pElement;
}
else
FinishCommand();
}
/* end DdmFileSystem::ProcessNextCommand ********************************/
| [
"joe.altmaier@sococo.com"
] | joe.altmaier@sococo.com |
de99e1ce33a044c848e6632869bedddc7e17f0a0 | ac3f0db0b5adce108f766c2765913c0f0d72d573 | /includes/WelshPowell.hpp | 600f32cfad0caa95395ba042d4b2ed4a9a7a977b | [] | no_license | djdhm/TPCOLORIAGE | ba98f56f02dcf54c81ff89c650cfece4143312fe | af1779c4b58189fdbbf4c4c417f4c71d7570dc69 | refs/heads/master | 2022-04-05T10:47:58.154616 | 2020-01-27T08:02:29 | 2020-01-27T08:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,079 | hpp | //
// Created by djame on 9/1/2020.
//
#ifndef UNTITLED3_WELSHPOWELL_HPP
#define UNTITLED3_WELSHPOWELL_HPP
#include <algorithm>
#include "IGraphColoring.hpp"
class WeslshPowell : public IGraphColoring{
private:
std::vector<int> coleurs;
bool sontVoisin(const IGraph & graph, int x,int y ){
auto voisin = graph.adjacency(x);
for(int j=0;j<voisin.size();j++){
if(voisin.at(j)== y ) return true;
}
return false;
}
public:
void coloring(const IGraph & graph ){
int colored = 0;
int chosenColor = 0;
int nbNodes =graph.nbNodes();
int coleurs[nbNodes];
bool verified[nbNodes];
std::vector<std::pair<int,int>> sortedSommet ;
for(int i=0;i<nbNodes;i++){
sortedSommet.push_back(std::make_pair(graph.degree(i),i));
verified[i]=false;
}
std::sort(sortedSommet.begin(),sortedSommet.end());
while(colored < nbNodes){
int actual = nbNodes-1;
while(verified[actual]){ actual--;}
verified[actual]=true;
auto pair = sortedSommet.at(actual);
coleurs[sortedSommet.at(actual).second]=chosenColor;
colored++;
for(int i=nbNodes-1;i>=0;i--){
int voisin =sortedSommet.at(i).second;
if(!sontVoisin(graph,pair.second, voisin) && !verified[i] ){
coleurs[voisin]=chosenColor;
verified[i]=true;
colored++;
}
}
chosenColor++;
}
this->coleurs = std::vector<int>(coleurs,coleurs+nbNodes);
}
void afficherColeurs(){
std::cout<<"Resultat de l'algorithme de Welsh Powell "<<std::endl;
for(auto i = coleurs.begin(); i!= coleurs.end(); i++)
std::cout<<"Color choisi "<< colors[*i] <<" | "<< *i <<std::endl;
std::cout<<""<<std::endl;
}
};
#endif //UNTITLED3_WELSHPOWELL_HPP
| [
"ed_dahmane@esi.dz"
] | ed_dahmane@esi.dz |
1ec400bfe4689c01673c1b67093b59cf081cabd5 | b3f0d8cf187885eda4659e28d5fb04e6430093c3 | /Smoke/gasTest/gasTest.ino | ac0b4e8e2cf7618de493862ed0ddf9b7cd5fc8f1 | [] | no_license | MiguelConcha22/smokeArduino | e8c01bb298b29c607bea5da5a7efd6ca33ad6a12 | 6e0b765a04e0eaf737edf6996839c8b908c6c3d6 | refs/heads/master | 2020-03-31T23:00:14.344161 | 2018-11-11T00:21:03 | 2018-11-11T00:21:03 | 152,639,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | ino | int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = LED_BUILTIN; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, HIGH);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
if(sensorValue >= 750)
digitalWrite(ledPin, LOW);
else
digitalWrite(ledPin, HIGH);
}
| [
"mangelconcha@hotmail.com"
] | mangelconcha@hotmail.com |
ad5c74d76d62bad04c9e86654281a4f9551f855a | 58e268ccf800c5f7c47936c5a266b7644f7dd8f9 | /code_forces_1238_prime_subtraction/solution.cpp | d5adbfc73c774f5b9a331065937b060c77c94da9 | [] | no_license | DVNLO/code_challenges | f3c08a28cc02e798f82a9077ffb815b780dda4ee | 0ffc95e1633a09fe485aef2d23df89cfda86de30 | refs/heads/master | 2023-01-21T20:50:27.044017 | 2023-01-15T20:55:31 | 2023-01-15T20:55:31 | 102,163,512 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,139 | cpp | #include <bits/stdc++.h>
using namespace std;
/* I was not able to come tot he simple solution below on my own.
* The tutorial associated with this problem noted an important property
* of all numbers that I should have remembered. All numbers can be formed
* as a multiple of a prime. This is the central tennant of the sieve of
* erathosthenes.
*/
bool process_query(long long const x,
long long const y)
{
return x - y != 1; // 1 is the only number without a prime divisor.
// all other differences are prime subtractable.
}
unordered_set<long long> sieve_of_erathosthenes(long long const max)
{
vector<bool> is_prime(max - 2 + 1, true);
long long sqrt_max{ static_cast<long long>(sqrt(max)) };
for(long long i{ 2 }; i < sqrt_max; ++i)
{
if(is_prime[i])
{
for(long long j{ i * i }; j <= max; j += i)
{
is_prime[j] = false;
}
}
}
}
int main()
{
int q;
cin >> q;
long long x, y;
bool is_prime_subtractable;
for(int i{ 0 }; i < q; ++i)
{
cin >> x >> y;
is_prime_subtractable = process_query(x, y);
if(is_prime_subtractable)
puts("YES");
else
puts("NO");
}
cout << endl;
}
| [
"dvyenielo@gmail.com"
] | dvyenielo@gmail.com |
6b7b6adea7259b61a750339e23f396b4e968aa75 | fe34aca1ddeeee075cc6d0b6ba726af9a64c1a16 | /trunk/SMVS/SerialPort.cpp | 525d9057aadc9efcbd74a0ca08463df5097a4680 | [] | no_license | LearnerJason/SMVS | 0c558874a27097940101ac6cec928f48e4c765c8 | 8105b2a8403b01ae467660cd5d6ea27e2ec2e5b2 | refs/heads/master | 2022-12-05T09:53:40.216127 | 2020-08-04T03:22:45 | 2020-08-04T03:22:45 | 284,647,830 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,297 | cpp | #include "StdAfx.h"
#include "SerialPort.h"
#include <assert.h>
#include <process.h>
CSerialPort::CSerialPort(int nPortNum)
:m_nPortNum(nPortNum),
m_hComm(0),
m_hWriteEvent(0),
m_hShutdownEvent(0),
m_bReadingPortFinished(false),
m_bThreadAlive(false),
m_pOwnerWnd(nullptr)
{
::memset((void*)&m_ov, 0x00, sizeof(OVERLAPPED));
m_ov.hEvent = CreateEvent(NULL,TRUE,FALSE,NULL); assert(NULL != m_ov.hEvent);
m_hWriteEvent = CreateEvent(NULL,TRUE,FALSE,NULL); assert(NULL != m_hWriteEvent);
m_hShutdownEvent = CreateEvent(NULL,TRUE,FALSE,NULL); assert(NULL != m_hShutdownEvent);
m_hEventArray[0] = m_hShutdownEvent;
m_hEventArray[1] = m_ov.hEvent;
m_hEventArray[2] = m_hWriteEvent;
m_CommTimeouts.ReadIntervalTimeout = 1000;
m_CommTimeouts.ReadTotalTimeoutMultiplier = 1000;
m_CommTimeouts.ReadTotalTimeoutConstant = 1000;
m_CommTimeouts.WriteTotalTimeoutMultiplier = 1000;
m_CommTimeouts.WriteTotalTimeoutConstant = 1000;
EVENT_2_MSG_MAP = InitEventMsgMap();
InitializeCriticalSection(&m_csCommunicationSync);
m_RXBuff = std::vector<byte>(19,0x00);
}
CSerialPort::~CSerialPort()
{
TryToShutdown();
m_bThreadAlive = FALSE;
TRACE("Thread ended\n");
::DeleteCriticalSection(&m_csCommunicationSync);
}
std::map<UINT, UINT> CSerialPort::InitEventMsgMap()
{
std::map<UINT, UINT> tmpMap;
tmpMap[EV_RXCHAR] = WM_COMM_RXCHAR_DETECTED;
tmpMap[EV_CTS] = WM_COMM_CTS_DETECTED;
tmpMap[EV_RXFLAG] = WM_COMM_RXFLAG_DETECTED;
tmpMap[EV_BREAK] = WM_COMM_BREAK_DETECTED;
tmpMap[EV_ERR] = WM_COMM_ERR_DETECTED;
tmpMap[EV_RING] = WM_COMM_RING_DETECTED;
return tmpMap;
}
bool CSerialPort::InitPort(UINT baudrate, char parity, UINT databits, UINT stopsbits, DWORD dwCommEvents)
{
if (m_bThreadAlive)
{
TryToShutdown();
}
if(m_nPortNum < 0)
{
return false;
}
ResetEvent(m_ov.hEvent);
ResetEvent(m_hWriteEvent);
ResetEvent(m_hShutdownEvent);
EnterCriticalSection(&m_csCommunicationSync);
if (NULL != m_hComm)
{
CloseHandle(m_hComm);
m_hComm = NULL;
}
std::wostringstream oss1, oss2;
oss1 << L"\\\\.\\COM" << m_nPortNum;
oss2 << L"baud=" << baudrate <<L" parity=" << parity <<L" data=" << databits <<L" stop=" << stopsbits;
wstring wstrPort = oss1.str();
wstring wstrBaud = oss2.str();
m_hComm = CreateFileW(
wstrPort.c_str(),
GENERIC_READ | GENERIC_WRITE,
NULL,
NULL,
OPEN_EXISTING, // 调用CreateFile来打开文件之外的其他设备时,必须使用OPEN_EXISTING参数 !!!
FILE_FLAG_OVERLAPPED|FILE_ATTRIBUTE_NORMAL,
NULL);
if (INVALID_HANDLE_VALUE == m_hComm)
{
return false;
}
bool bOk = true;
if(!SetCommTimeouts(m_hComm,&m_CommTimeouts))
{
ProcessErrorMessage("SetCommTimeouts"); bOk = false;
goto LastW;
}
if(!SetCommMask(m_hComm,dwCommEvents))
{
ProcessErrorMessage("SetCommMask"); bOk = false;
goto LastW;
}
if(!GetCommState(m_hComm,&m_dcb))
{
ProcessErrorMessage("GetCommState"); bOk = false;
goto LastW;
}
m_dcb.EvtChar = 'q';
m_dcb.fRtsControl = RTS_CONTROL_ENABLE;
if(!BuildCommDCB(wstrBaud.c_str(), &m_dcb))
{
ProcessErrorMessage("BuildCommDCB"); bOk = false;
goto LastW;
}
if (!SetCommState(m_hComm,&m_dcb))
{
ProcessErrorMessage("SetCommState"); bOk = false;
goto LastW;
}
LastW:
PurgeComm(m_hComm, PURGE_RXCLEAR|PURGE_TXCLEAR|PURGE_TXABORT|PURGE_RXABORT);
LeaveCriticalSection(&m_csCommunicationSync);
return bOk;
}
void CSerialPort::SetOwnerWindowPtr(CWnd* pWnd)
{
m_pOwnerWnd = pWnd;
}
unsigned int CSerialPort::SerialPortThreadFunc()
{
DWORD Event = 0, CommEvent = 0, dwError = 0;
COMSTAT comstat;
::memset((void*)&comstat, 0x00, sizeof(COMSTAT));
// 该函数终止读写、清空缓冲区,根据dwFlags的设置完成指定功能,相关函数有FlushFileBuffer。
PurgeComm(m_hComm, PURGE_RXCLEAR|PURGE_TXCLEAR|PURGE_TXABORT|PURGE_RXABORT);
BOOL bResult = TRUE;
// Begin forever loop. This loop will run as long as the thread is alive
for (;;)
{
// Make a call to WaitCommEvent(). This call will return immediatly because our port was created as an async port (FILE_FLAG_OVERLAPPED)
// and an m_ov structure specified).
bResult = WaitCommEvent(m_hComm, &Event, &m_ov);
if (!bResult)
{
dwError = GetLastError();
if(ERROR_IO_PENDING == dwError)
{
// This is normal return value if there are no bytes to read at the port.
// Do nothing!
}
else if(ERROR_INVALID_PARAMETER == dwError)
{
// Under Windows NT, this value is returned for some reason.
}
else
{
// All other error codes indicate a serious error has occurred,Process this error.
ProcessErrorMessage("WaitCommEvent");
}
}
else // If WaitCommEvent() returns TRUE, check to be sure there are actually bytes in the buffer to read.
{
// ClearCommError will reset the event handle, and if there are no bytes to read we can loop back through WaitCommEvent() again,
// then proceed. If there are really bytes to read, do nothing and proceed.
ClearCommError(m_hComm, &dwError, &comstat);
if (0 == comstat.cbInQue)
{
continue;
}
}
Event = WaitForMultipleObjects(3, m_hEventArray, FALSE, INFINITE);
if(0 == Event) // Shutdown Event
{
CloseHandle(m_hComm);
m_hComm = NULL;
m_bThreadAlive = FALSE;
return 0;
}
else if(1 == Event) // Read Event
{
GetCommMask(m_hComm,&CommEvent);
if (CommEvent & EV_RXCHAR)
{
ReceiveChar(comstat);
}
else
{
}
}
else if(2 == Event) // Write Event
{
WritePort();
}
else
{
}
}
return 0;
}
void CSerialPort::ReceiveChar(COMSTAT comstat)
{
BOOL bRead = TRUE;
BOOL bResult = TRUE;
DWORD dwError = 0;
DWORD BytesRead = 0;
m_RXBuff = std::vector<byte>(19,0x00);
for (;;)
{
EnterCriticalSection(&m_csCommunicationSync);
bResult = ClearCommError(m_hComm, &dwError, &comstat);
LeaveCriticalSection(&m_csCommunicationSync);
if(0 == comstat.cbInQue)
{
break; // Break out if all bytes have been read
}
EnterCriticalSection(&m_csCommunicationSync);
bResult = ReadFile(m_hComm, &m_RXBuff[0], 18, &BytesRead, &m_ov);
if (!bResult)
{
if(ERROR_IO_PENDING == GetLastError()) //ERROR_IO_PENDING 表示I/O请求已经被成功地添加到了设备驱动程序的队列中,等待处理!
{
bRead = FALSE;
}
else
{
ProcessErrorMessage("ReadFile");
}
}
else
{
bRead = TRUE;
}
if (!bRead)
{
if (!GetOverlappedResult(m_hComm, &m_ov, &BytesRead, TRUE))
{
ProcessErrorMessage("GetOverlappedResults() in ReadFile()");
}
bRead = TRUE;
}
LeaveCriticalSection(&m_csCommunicationSync);
if(m_pOwnerWnd != nullptr) // Notify the parent window that a byte was received.
{
::SendMessage(m_pOwnerWnd->m_hWnd, WM_COMM_RXCHAR_DETECTED, (WPARAM)NULL, (LPARAM)&m_RXBuff[0]);
}
}
m_bReadingPortFinished = true;
}
void CSerialPort::SendCmdToPort(const std::vector<byte>& cmd)
{
assert(m_hComm != 0);
m_writeBuffer.clear();
m_writeBuffer.assign(cmd.begin(), cmd.end());
SetEvent(m_hWriteEvent);
}
void CSerialPort::SendCmdToPort(const std::string& strCmd)
{
m_writeBuffer.clear();
m_writeBuffer = strCmd;
SetEvent(m_hWriteEvent);
}
bool CSerialPort::StartMonitoring()
{
UINT nThreadID;
SerialPortProc.MemProc = &CSerialPort::SerialPortThreadFunc;
m_hThread = (HANDLE)_beginthreadex(NULL,0,SerialPortProc.ThreadProc, this, 0, &nThreadID);
if (m_hThread)
{
m_bThreadAlive = TRUE;
return TRUE;
}
else
{
return FALSE;
}
}
bool CSerialPort::RestartMonitoring()
{
DWORD dwRet = ::ResumeThread(m_hThread);
if (0xFFFFFFFF == dwRet)
{
LPVOID lpMsgBuf;
UINT flags = (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS);
FormatMessage(flags, NULL, GetLastError(), 0, (LPTSTR)&lpMsgBuf, 0, NULL);
MessageBox( NULL, (LPCTSTR)lpMsgBuf, _T("Error"), MB_OK | MB_ICONINFORMATION );
LocalFree( lpMsgBuf );
}
return TRUE;
}
void CSerialPort::ProcessErrorMessage(char* ErrorText)
{
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
0, // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL );
wstring wstrErrText = CA2W(ErrorText);
wstring wstrBuff = CT2W((LPTSTR)lpMsgBuf);
std::wostringstream oss;
oss << "WARNING: " << wstrErrText.c_str() << L" Failed with following error:\n" << wstrBuff.c_str() << L"Port:" << m_nPortNum;
wstring errorDesc = oss.str();
MessageBoxW( NULL, errorDesc.c_str(), _T("Error"), MB_OK | MB_ICONINFORMATION );
LocalFree( lpMsgBuf );
}
void CSerialPort::WritePort()
{
if(m_writeBuffer.empty())
{
return;
}
UINT portNum = m_nPortNum;
BOOL bWrite = TRUE;
DWORD BytesSent = 0;
ResetEvent(m_hWriteEvent);
EnterCriticalSection(&m_csCommunicationSync);
m_ov.Offset = 0;
m_ov.OffsetHigh = 0;
PurgeComm(m_hComm, PURGE_RXCLEAR|PURGE_TXCLEAR|PURGE_TXABORT|PURGE_RXABORT);
BOOL bResult = WriteFile(m_hComm, m_writeBuffer.c_str(), (DWORD)m_writeBuffer.length(), &BytesSent, &m_ov);
if (!bResult)
{
DWORD nErrCode = GetLastError();
if(ERROR_IO_PENDING == nErrCode)
{
BytesSent = 0;
bWrite = FALSE;
}
else
{
ProcessErrorMessage("WriteFile");
}
}
else
{
LeaveCriticalSection(&m_csCommunicationSync);
}
if(!bWrite)
{
bWrite = TRUE;
bResult = GetOverlappedResult(m_hComm, &m_ov, &BytesSent, TRUE);
LeaveCriticalSection(&m_csCommunicationSync);
if (!bResult)
{
//ProcessErrorMessage("GetOverlappedResults() in WriteFile()");
}
}
}
void CSerialPort::TryToShutdown()
{
do
{
if(m_hShutdownEvent)
SetEvent(m_hShutdownEvent);
} while (m_bThreadAlive);
}
bool CSerialPort::GetReadFinishedFlag()
{
return m_bReadingPortFinished;
}
void CSerialPort::ClosePort()
{
if (m_bThreadAlive)
{
SetEvent(m_hShutdownEvent);
}
WaitForSingleObject(m_hThread,5000);
CloseHandle(m_hThread);
m_bThreadAlive = FALSE;
}
| [
"to_jasoncheng@163.com"
] | to_jasoncheng@163.com |
42d36e768a42aa9cd8fee435d3d78060281ad70e | d2554e55967f9300774aaa540a5f5f90e592fcfc | /src/particle/particle.cpp | ba4dd667e715ccba25eda7058373767ae42a831d | [
"WTFPL"
] | permissive | dearshuto/ParticleSystem | ebcf3d049110e38ce1ade7aa8abebd28026a6382 | b6b24f7ad4718796a20317ac5a399f29590e0824 | refs/heads/master | 2021-01-20T10:59:50.040935 | 2016-07-06T12:44:38 | 2016-07-06T12:44:38 | 57,214,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 133 | cpp | //
// particle.cpp
// ParticleSystem
//
// Created by Shuto on 2016/02/19.
//
//
#include <ParticleSystem/particle/particle.hpp>
| [
"shuto.shikama@fj.ics.keio.ac.jp"
] | shuto.shikama@fj.ics.keio.ac.jp |
e5fa664b95e5b5e492b77ba653ccee5828cc9bb2 | 6f9c206f7e16b4be5c4384b6c9b76a75cdb331e7 | /RasterRenderer/Utils.cpp | 7840ec0560b226f27624efd9fc3c14ccc08ad157 | [] | no_license | nero19960329/RasterRenderer | 2aef5506e1ce648128af78a2538de730eaead6a6 | e44a8491615cc2beb70c271e4b90b4e69b7886ae | refs/heads/master | 2021-01-01T05:52:12.172695 | 2017-07-17T09:41:54 | 2017-07-17T09:41:54 | 97,291,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | #include "Utils.h"
bool ptInTri(glm::dvec2 p, glm::dvec2 p1, glm::dvec2 p2, glm::dvec2 p3) {
auto sign = [](glm::dvec2 p1, glm::dvec2 p2, glm::dvec2 p3) -> bool {
return ((p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y)) < 0.0;
};
bool b1, b2, b3;
b1 = sign(p, p1, p2);
b2 = sign(p, p2, p3);
b3 = sign(p, p3, p1);
return (b1 == b2) && (b2 == b3);
} | [
"wangzhao2013tsinghua@gmail.com"
] | wangzhao2013tsinghua@gmail.com |
3c0be4040bd305d158e80e1579e3fd6139b8d9b9 | 62bf789f19f500aa5aa20f6911573cc0c59902c7 | /sddp/src/model/DescribeDataLimitDetailResult.cc | 3ef5b0ce5382432f70ec2fc7661f4fa5b7a0cc27 | [
"Apache-2.0"
] | permissive | liuyuhua1984/aliyun-openapi-cpp-sdk | 0288f0241812e4308975a62a23fdef2403cfd13a | 600883d23a243eb204e39f15505f1f976df57929 | refs/heads/master | 2020-07-04T09:47:49.901987 | 2019-08-13T14:13:11 | 2019-08-13T14:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,567 | 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/sddp/model/DescribeDataLimitDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sddp;
using namespace AlibabaCloud::Sddp::Model;
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult() :
ServiceResult()
{}
DescribeDataLimitDetailResult::DescribeDataLimitDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataLimitDetailResult::~DescribeDataLimitDetailResult()
{}
void DescribeDataLimitDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataLimitNode = value["DataLimit"];
if(!dataLimitNode["RegionId"].isNull())
dataLimit_.regionId = dataLimitNode["RegionId"].asString();
if(!dataLimitNode["LocalName"].isNull())
dataLimit_.localName = dataLimitNode["LocalName"].asString();
if(!dataLimitNode["ParentId"].isNull())
dataLimit_.parentId = dataLimitNode["ParentId"].asString();
if(!dataLimitNode["Id"].isNull())
dataLimit_.id = std::stol(dataLimitNode["Id"].asString());
if(!dataLimitNode["UserName"].isNull())
dataLimit_.userName = dataLimitNode["UserName"].asString();
if(!dataLimitNode["Password"].isNull())
dataLimit_.password = dataLimitNode["Password"].asString();
if(!dataLimitNode["GmtCreate"].isNull())
dataLimit_.gmtCreate = std::stol(dataLimitNode["GmtCreate"].asString());
if(!dataLimitNode["Connector"].isNull())
dataLimit_.connector = dataLimitNode["Connector"].asString();
if(!dataLimitNode["CheckStatus"].isNull())
dataLimit_.checkStatus = std::stoi(dataLimitNode["CheckStatus"].asString());
if(!dataLimitNode["CheckStatusName"].isNull())
dataLimit_.checkStatusName = dataLimitNode["CheckStatusName"].asString();
}
DescribeDataLimitDetailResult::DataLimit DescribeDataLimitDetailResult::getDataLimit()const
{
return dataLimit_;
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c62177671d90d8e4d39269a65f3cbd8a82b8fe2a | 356c3d8c4e59c76735b4bd149c07e283b22a10c4 | /Nchine/Scene/SceneGraph.h | ea278dd684df7afe1547e454ff2e97394bcbef6e | [] | no_license | nchie/Nchine | f85a2c091041c942d8590db0fc77f09e9ed0d3c6 | d6d7b342ca0d1eacd8c4a4b3148fddbd9835f3ab | refs/heads/master | 2020-04-05T22:25:03.092400 | 2019-02-10T14:49:06 | 2019-02-10T14:49:06 | 157,255,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | h | //
// Created by aejt on 10/23/17.
//
#pragma once
#include "SceneNode.h"
#include <vector>
#include <optional>
namespace Nchine {
class SceneGraph {
private:
public:
private:
};
}
| [
"andre.terranchie@gmail.com"
] | andre.terranchie@gmail.com |
bfe50991f4012c9ee7a627d4234bff605898cd3b | 5f7b11c66a021d592c45fa79fcfb218a5eaba045 | /Project/Engine/CShader.cpp | ca53b9b252ee51d95ec81cf13df4c9e692088bbf | [] | no_license | chamnah/Portfolio_Alice | fb448d7f8ecdf5b700ca6ce1942ad488818a1856 | c49f5278d631be45595658cfd88a966b993d73a4 | refs/heads/master | 2022-06-09T09:21:19.192473 | 2020-05-06T11:57:30 | 2020-05-06T11:57:30 | 261,739,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,226 | cpp | #include "CShader.h"
#include "CDirect.h"
#include "CPathMgr.h"
CShader::CShader()
{
}
CShader::~CShader()
{
SAFE_RELEASE(m_pVSBlob);
SAFE_RELEASE(m_pVSInstBlob);
SAFE_RELEASE(m_pHSBlob);
SAFE_RELEASE(m_pDSBlob);
SAFE_RELEASE(m_pPSBlob);
SAFE_RELEASE(m_pGSBlob);
SAFE_RELEASE(m_pCSBlob);
SAFE_RELEASE(m_pErrBlob);
SAFE_RELEASE(m_pVS);
SAFE_RELEASE(m_pVSInst);
SAFE_RELEASE(m_pHS);
SAFE_RELEASE(m_pDS);
SAFE_RELEASE(m_pPS);
SAFE_RELEASE(m_pGS);
SAFE_RELEASE(m_pCS);
}
void CShader::CreateVertexShader(const string& _strFunc, const string& _strVersion,const wstring& _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pVSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateVertexShader(m_pVSBlob->GetBufferPointer(), m_pVSBlob->GetBufferSize(), NULL, &m_pVS)))
assert(false && "CreateVertexShader Error");
}
void CShader::CreateVertexInstanceShader(const string & _strFunc, const string & _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pVSInstBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateVertexShader(m_pVSInstBlob->GetBufferPointer(), m_pVSInstBlob->GetBufferSize(), NULL, &m_pVSInst)))
assert(false && "CreateVertexInstancingShader Error");
}
void CShader::CreateHullShader(const string & _strFunc, const string & _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pHSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateHullShader(m_pHSBlob->GetBufferPointer(), m_pHSBlob->GetBufferSize(), NULL, &m_pHS)))
assert(false && "CreateHullShader Error");
}
void CShader::CreateDomainShader(const string & _strFunc, const string & _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pDSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateDomainShader(m_pDSBlob->GetBufferPointer(), m_pDSBlob->GetBufferSize(), NULL, &m_pDS)))
assert(false && "CreateDomainShader Error");
}
void CShader::CreatePixelShader(const string& _strFunc, const string& _strVersion,const wstring& _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pPSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreatePixelShader(m_pPSBlob->GetBufferPointer(), m_pPSBlob->GetBufferSize(), NULL, &m_pPS)))
assert(false && "CreatePixelShader Error");
}
void CShader::CreateGeoMetryShader(const string & _strFunc, const string & _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pGSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateGeometryShader(m_pGSBlob->GetBufferPointer(), m_pGSBlob->GetBufferSize(), NULL, &m_pGS)))
assert(false && "CreateGeometryShader Error");
}
void CShader::CreateStreamGeoMetryShader(const string & _strFunc, const string & _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pGSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
D3D11_SO_DECLARATION_ENTRY entry[8] =
{
{0,"POSITION",0,0,3,0}
,{0,"COLOR",0,0,4,0}
,{0,"TEXCOORD",0,0,2,0}
,{0,"NORMAL",0,0,3,0}
,{0,"TANGENT",0,0,3,0}
,{0,"BINORMAL",0,0,3,0}
,{0,"AGE",0,0,1,0}
,{0,"TYPE",0,0,1,0}
};
UINT istride[] = { sizeof(VTX) };
DEVICE->CreateGeometryShaderWithStreamOutput(m_pGSBlob->GetBufferPointer(), m_pGSBlob->GetBufferSize(), entry, _countof(entry), istride, _countof(istride), D3D11_SO_NO_RASTERIZED_STREAM, NULL, &m_pGS);
int i = 0;
}
void CShader::CreateComputeShader(const string& _strFunc, const string& _strVersion, const wstring & _wcsFileName)
{
wstring strPath = CPathMgr::GetInst()->GetPath();
strPath += L"Shader\\";
strPath += _wcsFileName;
UINT iFlag = 0;
string strErr;
#ifdef _DEBUG
iFlag = D3DCOMPILE_DEBUG;
#endif
if (FAILED(D3DCompileFromFile(strPath.c_str(), NULL, D3D_COMPILE_STANDARD_FILE_INCLUDE, _strFunc.c_str(), _strVersion.c_str(), iFlag, 0, &m_pCSBlob, &m_pErrBlob)))
{
strErr = (char*)m_pErrBlob->GetBufferPointer();
assert(false && strErr.c_str());
}
if (FAILED(DEVICE->CreateComputeShader(m_pCSBlob->GetBufferPointer(), m_pCSBlob->GetBufferSize(), NULL, &m_pCS)))
assert(false && "CreateComputeShader Error");
}
void CShader::UpdateData()
{
CONTEXT->VSSetShader(m_pVS, NULL, NULL);
CONTEXT->HSSetShader(m_pHS, NULL, NULL);
CONTEXT->DSSetShader(m_pDS, NULL, NULL);
CONTEXT->PSSetShader(m_pPS, NULL, NULL);
CONTEXT->GSSetShader(m_pGS, NULL, NULL);
CONTEXT->CSSetShader(m_pCS, NULL, NULL);
}
void CShader::UpdateDataInstance()
{
CONTEXT->VSSetShader(m_pVSInst, NULL, NULL);
CONTEXT->HSSetShader(m_pHS, NULL, NULL);
CONTEXT->DSSetShader(m_pDS, NULL, NULL);
CONTEXT->PSSetShader(m_pPS, NULL, NULL);
CONTEXT->GSSetShader(m_pGS, NULL, NULL);
CONTEXT->CSSetShader(m_pCS, NULL, NULL);
} | [
"46718509+chamnah@users.noreply.github.com"
] | 46718509+chamnah@users.noreply.github.com |
a4b3c2e36b5f1759afaea5de1dcebd40a9612728 | 605b238e45360b6522192954f244c40a199fd687 | /blasius_laminar_github/7.2/phi | b681aecfcf96b3d14fc61b5247aefc1e81215910 | [] | no_license | Ahmetcansavas/laminar_BL_OPENFOAM | 335a5b69b9ef05ae331ed42161de67912b4992f6 | c0d2dc5fb2e30027ac23e3a3ec0fac6e549471af | refs/heads/master | 2021-05-18T22:32:54.491995 | 2020-04-05T20:28:05 | 2020-04-05T20:28:05 | 251,456,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233,088 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "7.2";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
oriented oriented;
internalField nonuniform List<scalar>
19000
(
1.16188e-06
-1.26753e-06
1.27085e-06
8.65775e-07
1.23197e-06
6.97027e-07
1.14782e-06
1.20297e-06
1.19551e-06
-3.12627e-06
1.26011e-06
-2.31066e-06
1.25809e-06
-9.40843e-07
1.26837e-06
8.28764e-07
1.26613e-06
4.56085e-07
1.29985e-06
6.48822e-07
1.28806e-06
-2.78543e-07
1.27992e-06
-4.89058e-07
1.33318e-06
-1.36e-06
1.34033e-06
-1.07144e-06
1.33202e-06
-5.40345e-07
1.27536e-06
-2.77173e-07
1.25758e-06
2.64869e-07
1.20873e-06
2.51161e-07
1.19708e-06
2.81906e-07
2.6201e-07
1.17982e-06
1.22443e-06
-1.2677e-06
1.34996e-06
7.40239e-07
1.30664e-06
7.40354e-07
1.24028e-06
1.26933e-06
1.25321e-06
-3.13921e-06
1.2951e-06
-2.35254e-06
1.31243e-06
-9.58174e-07
1.34444e-06
7.96747e-07
1.33736e-06
4.63166e-07
1.38684e-06
5.99345e-07
1.35843e-06
-2.50137e-07
1.33382e-06
-4.64447e-07
1.36548e-06
-1.39165e-06
1.38573e-06
-1.0917e-06
1.38824e-06
-5.42856e-07
1.34417e-06
-2.33098e-07
1.3093e-06
2.99736e-07
1.28691e-06
2.73555e-07
1.24085e-06
3.27966e-07
2.36686e-07
1.26617e-06
1.2825e-06
-1.26742e-06
1.43239e-06
5.90355e-07
1.39767e-06
7.75074e-07
1.32547e-06
1.34153e-06
1.292e-06
-3.10574e-06
1.3262e-06
-2.38674e-06
1.36239e-06
-9.94365e-07
1.41855e-06
7.40583e-07
1.42271e-06
4.59008e-07
1.4699e-06
5.52159e-07
1.42895e-06
-2.09192e-07
1.38655e-06
-4.22046e-07
1.38867e-06
-1.39376e-06
1.42434e-06
-1.12737e-06
1.43676e-06
-5.55279e-07
1.4118e-06
-2.0813e-07
1.37525e-06
3.36279e-07
1.35707e-06
2.91734e-07
1.32025e-06
3.64791e-07
2.40892e-07
1.31604e-06
1.33646e-06
-1.25977e-06
1.50462e-06
4.22193e-07
1.48991e-06
7.89786e-07
1.40954e-06
1.42189e-06
1.32544e-06
-3.02163e-06
1.3518e-06
-2.41311e-06
1.40748e-06
-1.05005e-06
1.48615e-06
6.6192e-07
1.51453e-06
4.3063e-07
1.55208e-06
5.14605e-07
1.5035e-06
-1.60611e-07
1.44524e-06
-3.63789e-07
1.41945e-06
-1.36798e-06
1.45754e-06
-1.16546e-06
1.48113e-06
-5.78867e-07
1.47182e-06
-1.98823e-07
1.44509e-06
3.63007e-07
1.42647e-06
3.1036e-07
1.40185e-06
3.8941e-07
2.58059e-07
1.38468e-06
1.38982e-06
-1.24124e-06
1.56247e-06
2.49544e-07
1.57374e-06
7.7851e-07
1.48657e-06
1.50907e-06
1.361e-06
-2.89606e-06
1.37705e-06
-2.42916e-06
1.45176e-06
-1.12475e-06
1.55198e-06
5.617e-07
1.6075e-06
3.75105e-07
1.63585e-06
4.86252e-07
1.5812e-06
-1.05958e-07
1.51121e-06
-2.938e-07
1.46233e-06
-1.3191e-06
1.49147e-06
-1.1946e-06
1.52307e-06
-6.10468e-07
1.52796e-06
-2.03709e-07
1.51238e-06
3.78581e-07
1.49643e-06
3.26313e-07
1.48076e-06
4.05084e-07
2.78009e-07
1.46081e-06
1.44751e-06
-1.21307e-06
1.61015e-06
8.69015e-08
1.64606e-06
7.42601e-07
1.55858e-06
1.59655e-06
1.40891e-06
-2.74639e-06
1.41174e-06
-2.43198e-06
1.50104e-06
-1.21405e-06
1.62223e-06
4.40506e-07
1.69959e-06
2.97748e-07
1.72163e-06
4.64208e-07
1.66086e-06
-4.51868e-08
1.58321e-06
-2.16149e-07
1.51578e-06
-1.25167e-06
1.52958e-06
-1.2084e-06
1.56384e-06
-6.44722e-07
1.58153e-06
-2.21401e-07
1.57807e-06
3.82045e-07
1.56778e-06
3.36598e-07
1.56082e-06
4.1204e-07
2.95709e-07
1.54313e-06
1.51335e-06
-1.18021e-06
1.65464e-06
-5.43809e-08
1.70833e-06
6.88912e-07
1.62951e-06
1.67537e-06
1.47298e-06
-2.58987e-06
1.46359e-06
-2.42259e-06
1.56111e-06
-1.31157e-06
1.70007e-06
3.01544e-07
1.79069e-06
2.07132e-07
1.8078e-06
4.4709e-07
1.74049e-06
2.2126e-08
1.65785e-06
-1.33511e-07
1.57638e-06
-1.17019e-06
1.5733e-06
-1.20532e-06
1.60476e-06
-6.76184e-07
1.63277e-06
-2.49412e-07
1.64282e-06
3.71998e-07
1.64085e-06
3.38561e-07
1.64387e-06
4.09022e-07
3.07818e-07
1.63176e-06
1.58812e-06
-1.1482e-06
1.70119e-06
-1.67452e-07
1.76418e-06
6.25923e-07
1.70312e-06
1.73643e-06
1.55161e-06
-2.43835e-06
1.53415e-06
-2.40513e-06
1.63477e-06
-1.41219e-06
1.78485e-06
1.51465e-07
1.87978e-06
1.12203e-07
1.89162e-06
4.35246e-07
1.81807e-06
9.56785e-08
1.73293e-06
-4.8373e-08
1.64218e-06
-1.07944e-06
1.6239e-06
-1.18703e-06
1.64829e-06
-7.00583e-07
1.68286e-06
-2.83981e-07
1.70675e-06
3.4811e-07
1.71489e-06
3.30418e-07
1.7293e-06
3.94614e-07
3.12058e-07
1.72506e-06
1.66975e-06
-1.12037e-06
1.75233e-06
-2.50035e-07
1.8179e-06
5.60356e-07
1.78129e-06
1.77303e-06
1.64102e-06
-2.29809e-06
1.61916e-06
-2.38327e-06
1.71895e-06
-1.51198e-06
1.87166e-06
-1.2426e-09
1.96309e-06
2.07755e-08
1.96938e-06
4.28956e-07
1.89161e-06
1.73442e-07
1.80724e-06
3.60021e-08
1.71209e-06
-9.84295e-07
1.68229e-06
-1.15723e-06
1.69785e-06
-7.16139e-07
1.73502e-06
-3.21148e-07
1.77162e-06
3.11504e-07
1.79029e-06
3.11747e-07
1.81631e-06
3.68596e-07
3.07607e-07
1.82076e-06
1.75546e-06
-1.09711e-06
1.80933e-06
-3.03899e-07
1.87354e-06
4.96147e-07
1.86377e-06
1.7828e-06
1.73767e-06
-2.17198e-06
1.71249e-06
-2.35809e-06
1.80615e-06
-1.60564e-06
1.95277e-06
-1.47862e-07
2.03513e-06
-6.15865e-08
2.0372e-06
4.26885e-07
1.95965e-06
2.50987e-07
1.88062e-06
1.1504e-07
1.7859e-06
-8.89575e-07
1.74903e-06
-1.12037e-06
1.75662e-06
-7.23726e-07
1.7937e-06
-3.58226e-07
1.84109e-06
2.64111e-07
1.86914e-06
2.83701e-07
1.90485e-06
3.32883e-07
2.95732e-07
1.91672e-06
1.84364e-06
-1.07701e-06
1.87356e-06
-3.3382e-07
1.93432e-06
4.35389e-07
1.94908e-06
1.76804e-06
1.83856e-06
-2.06146e-06
1.80959e-06
-2.32913e-06
1.8898e-06
-1.68584e-06
2.02209e-06
-2.8015e-07
2.09224e-06
-1.31738e-07
2.09304e-06
4.26087e-07
2.02194e-06
3.22087e-07
1.95377e-06
1.83201e-07
1.86411e-06
-7.99906e-07
1.82426e-06
-1.08052e-06
1.82603e-06
-7.25502e-07
1.86183e-06
-3.94023e-07
1.91771e-06
2.0823e-07
1.9524e-06
2.49016e-07
1.99374e-06
2.91536e-07
2.79506e-07
2.00997e-06
1.9342e-06
-1.05836e-06
1.94649e-06
-3.46109e-07
2.00225e-06
3.79624e-07
2.03594e-06
1.73435e-06
1.94129e-06
-1.96681e-06
1.90848e-06
-2.29631e-06
1.96824e-06
-1.74561e-06
2.07936e-06
-3.91268e-07
2.13579e-06
-1.88167e-07
2.13855e-06
4.23321e-07
2.08013e-06
3.80512e-07
2.02803e-06
2.35296e-07
1.9476e-06
-7.19473e-07
1.90775e-06
-1.04067e-06
1.90535e-06
-7.23101e-07
1.93868e-06
-4.27355e-07
1.99981e-06
1.47102e-07
2.03725e-06
2.11579e-07
2.07916e-06
2.49625e-07
2.624e-07
2.09626e-06
2.02789e-06
-1.04007e-06
2.02879e-06
-3.47006e-07
2.07816e-06
3.30255e-07
2.12425e-06
1.68825e-06
2.04457e-06
-1.88713e-06
2.00885e-06
-2.26059e-06
2.04441e-06
-1.78117e-06
2.13043e-06
-4.77289e-07
2.17254e-06
-2.30272e-07
2.17944e-06
4.16419e-07
2.13792e-06
4.22031e-07
2.10508e-06
2.68139e-07
2.03698e-06
-6.51377e-07
1.99886e-06
-1.00254e-06
1.99275e-06
-7.16996e-07
2.02115e-06
-4.55753e-07
2.08272e-06
8.55303e-08
2.11879e-06
1.7551e-07
2.15687e-06
2.11544e-07
2.46729e-07
2.17254e-06
2.12555e-06
-1.02161e-06
2.12005e-06
-3.41507e-07
2.16216e-06
2.8814e-07
2.21525e-06
1.63517e-06
2.14839e-06
-1.82028e-06
2.11118e-06
-2.22337e-06
2.1231e-06
-1.7931e-06
2.18401e-06
-5.38196e-07
2.21206e-06
-2.58326e-07
2.22368e-06
4.048e-07
2.20022e-06
4.45495e-07
2.18677e-06
2.81582e-07
2.13223e-06
-5.96836e-07
2.09659e-06
-9.66903e-07
2.08679e-06
-7.07195e-07
2.10716e-06
-4.76119e-07
2.16363e-06
2.90594e-08
2.19504e-06
1.44098e-07
2.22675e-06
1.79832e-07
2.3313e-07
2.24035e-06
2.22771e-06
-1.00283e-06
2.21915e-06
-3.32949e-07
2.25413e-06
2.53167e-07
2.31074e-06
1.57856e-06
2.25371e-06
-1.76325e-06
2.2161e-06
-2.18576e-06
2.20824e-06
-1.78524e-06
2.24756e-06
-5.77508e-07
2.26301e-06
-2.73785e-07
2.27876e-06
3.89054e-07
2.27164e-06
4.5262e-07
2.27493e-06
2.78288e-07
2.23297e-06
-5.54875e-07
2.19985e-06
-9.33788e-07
2.18677e-06
-6.94114e-07
2.19727e-06
-4.86622e-07
2.24447e-06
-1.81387e-08
2.26953e-06
1.19038e-07
2.29431e-06
1.55051e-07
2.21154e-07
2.30629e-06
2.33474e-06
-9.837e-07
2.32504e-06
-3.23244e-07
2.35386e-06
2.24342e-07
2.41228e-06
1.52014e-06
2.36178e-06
-1.71275e-06
2.32424e-06
-2.14822e-06
2.30185e-06
-1.76284e-06
2.32509e-06
-6.00749e-07
2.33057e-06
-2.79264e-07
2.34944e-06
3.7018e-07
2.35522e-06
4.46838e-07
2.37098e-06
2.62534e-07
2.33895e-06
-5.22853e-07
2.30783e-06
-9.02664e-07
2.29241e-06
-6.78692e-07
2.29351e-06
-4.87725e-07
2.33013e-06
-5.47604e-08
2.34885e-06
1.00316e-07
2.36747e-06
1.36433e-07
2.10112e-07
2.37852e-06
2.44688e-06
-9.64188e-07
2.43703e-06
-3.13391e-07
2.46108e-06
2.00294e-07
2.52069e-06
1.46053e-06
2.47373e-06
-1.66579e-06
2.43618e-06
-2.11067e-06
2.40419e-06
-1.73086e-06
2.41712e-06
-6.1368e-07
2.41587e-06
-2.78006e-07
2.43703e-06
3.49019e-07
2.45191e-06
4.31959e-07
2.47563e-06
2.38815e-07
2.45032e-06
-4.97545e-07
2.42026e-06
-8.72608e-07
2.40347e-06
-6.61901e-07
2.39732e-06
-4.81573e-07
2.42466e-06
-8.21049e-08
2.4383e-06
8.66761e-08
2.4521e-06
1.22639e-07
1.9949e-07
2.46272e-06
2.56438e-06
-9.44275e-07
2.5549e-06
-3.03909e-07
2.57544e-06
1.79749e-07
2.63609e-06
1.39988e-06
2.59041e-06
-1.62011e-06
2.55251e-06
-2.07277e-06
2.51472e-06
-1.69306e-06
2.52212e-06
-6.21084e-07
2.51725e-06
-2.73135e-07
2.54015e-06
3.26118e-07
2.56086e-06
4.11253e-07
2.5888e-06
2.10869e-07
2.56739e-06
-4.76136e-07
2.53743e-06
-8.42641e-07
2.51986e-06
-6.4433e-07
2.50893e-06
-4.70649e-07
2.52945e-06
-1.02624e-07
2.53976e-06
7.63632e-08
2.55013e-06
1.12274e-07
1.88994e-07
2.56063e-06
2.68747e-06
-9.23922e-07
2.67866e-06
-2.95093e-07
2.69668e-06
1.61731e-07
2.75836e-06
1.33819e-06
2.71245e-06
-1.5742e-06
2.67381e-06
-2.03414e-06
2.63274e-06
-1.65199e-06
2.63798e-06
-6.26325e-07
2.63198e-06
-2.6713e-07
2.65624e-06
3.0185e-07
2.68037e-06
3.87124e-07
2.70988e-06
1.81357e-07
2.69046e-06
-4.56712e-07
2.65988e-06
-8.12058e-07
2.64173e-06
-6.26181e-07
2.62793e-06
-4.56848e-07
2.64389e-06
-1.18585e-07
2.65246e-06
6.77886e-08
2.66057e-06
1.04171e-07
1.78487e-07
2.67107e-06
2.81642e-06
-9.03072e-07
2.80845e-06
-2.87125e-07
2.82462e-06
1.4556e-07
2.88741e-06
1.2754e-06
2.84038e-06
-1.52717e-06
2.80064e-06
-1.99439e-06
2.75779e-06
-1.60914e-06
2.76291e-06
-6.31444e-07
2.75746e-06
-2.61681e-07
2.78277e-06
2.76542e-07
2.80873e-06
3.61158e-07
2.83812e-06
1.51967e-07
2.81967e-06
-4.38256e-07
2.78818e-06
-7.8057e-07
2.76947e-06
-6.07476e-07
2.75394e-06
-4.41312e-07
2.76683e-06
-1.31481e-07
2.77475e-06
5.98683e-08
2.78141e-06
9.75144e-08
1.67969e-07
2.79193e-06
2.9515e-06
-8.81677e-07
2.94449e-06
-2.80118e-07
2.95924e-06
1.30809e-07
3.02323e-06
1.21142e-06
2.97469e-06
-1.47863e-06
2.93352e-06
-1.95323e-06
2.88968e-06
-1.5653e-06
2.8957e-06
-6.37461e-07
2.89183e-06
-2.57808e-07
2.91786e-06
2.50513e-07
2.9447e-06
3.34319e-07
2.97299e-06
1.23678e-07
2.95512e-06
-4.20387e-07
2.92277e-06
-7.48225e-07
2.90354e-06
-5.8824e-07
2.88689e-06
-4.24667e-07
2.89747e-06
-1.42062e-07
2.90531e-06
5.20359e-08
2.91099e-06
9.18285e-08
1.57567e-07
2.92139e-06
3.09304e-06
-8.59708e-07
3.08708e-06
-2.74156e-07
3.1006e-06
1.1729e-07
3.16583e-06
1.14618e-06
3.11574e-06
-1.42854e-06
3.07297e-06
-1.91045e-06
3.02851e-06
-1.52085e-06
3.03573e-06
-6.44681e-07
3.03397e-06
-2.56043e-07
3.06044e-06
2.24043e-07
3.08762e-06
3.07141e-07
3.1143e-06
9.69953e-08
3.09697e-06
-4.03055e-07
3.06399e-06
-7.15246e-07
3.04428e-06
-5.68535e-07
3.02691e-06
-4.07295e-07
3.03546e-06
-1.50612e-07
3.04341e-06
4.409e-08
3.04836e-06
8.6875e-08
1.47489e-07
3.05844e-06
3.24136e-06
-8.37155e-07
3.23653e-06
-2.69331e-07
3.2488e-06
1.0502e-07
3.31526e-06
1.07972e-06
3.26381e-06
-1.37708e-06
3.21944e-06
-1.86609e-06
3.17458e-06
-1.47598e-06
3.18284e-06
-6.52945e-07
3.18338e-06
-2.56579e-07
3.21005e-06
1.97373e-07
3.23731e-06
2.79876e-07
3.26218e-06
7.21281e-08
3.24546e-06
-3.86334e-07
3.2121e-06
-6.81891e-07
3.192e-06
-5.48434e-07
3.17418e-06
-3.89477e-07
3.18077e-06
-1.57199e-07
3.18885e-06
3.6008e-08
3.1932e-06
8.25277e-08
1.37953e-07
3.20273e-06
3.39679e-06
-8.14012e-07
3.39323e-06
-2.65769e-07
3.40408e-06
9.41609e-08
3.47163e-06
1.01218e-06
3.41917e-06
-1.32462e-06
3.3734e-06
-1.82032e-06
3.32826e-06
-1.43084e-06
3.3371e-06
-6.61782e-07
3.33991e-06
-2.59388e-07
3.36658e-06
1.70699e-07
3.39386e-06
2.52595e-07
3.41693e-06
4.90646e-08
3.40088e-06
-3.70282e-07
3.36738e-06
-6.48398e-07
3.34694e-06
-5.27993e-07
3.32891e-06
-3.71448e-07
3.33354e-06
-1.61826e-07
3.34173e-06
2.7819e-08
3.34561e-06
7.86436e-08
1.29152e-07
3.35442e-06
3.55965e-06
-7.90247e-07
3.55751e-06
-2.63634e-07
3.56676e-06
8.49084e-08
3.63514e-06
9.43804e-07
3.58213e-06
-1.27162e-06
3.53525e-06
-1.77343e-06
3.48996e-06
-1.38555e-06
3.49869e-06
-6.70516e-07
3.5036e-06
-2.64299e-07
3.53015e-06
1.44155e-07
3.5575e-06
2.25241e-07
3.57894e-06
2.7621e-08
3.56355e-06
-3.54893e-07
3.53013e-06
-6.14976e-07
3.50938e-06
-5.07238e-07
3.49134e-06
-3.53416e-07
3.49403e-06
-1.64511e-07
3.5023e-06
1.95505e-08
3.50594e-06
7.50028e-08
1.21212e-07
3.51388e-06
3.73024e-06
-7.65783e-07
3.7297e-06
-2.63092e-07
3.73724e-06
7.73689e-08
3.80614e-06
8.74907e-07
3.75306e-06
-1.21854e-06
3.70535e-06
-1.72573e-06
3.66e-06
-1.3402e-06
3.66784e-06
-6.78357e-07
3.67459e-06
-2.71047e-07
3.70094e-06
1.17804e-07
3.72849e-06
1.97693e-07
3.74863e-06
7.48038e-09
3.73384e-06
-3.40108e-07
3.70067e-06
-5.81804e-07
3.67961e-06
-4.86176e-07
3.66174e-06
-3.35552e-07
3.66256e-06
-1.65323e-07
3.67085e-06
1.12548e-08
3.67456e-06
7.12998e-08
1.14159e-07
3.68161e-06
3.90891e-06
-7.40508e-07
3.91006e-06
-2.64239e-07
3.91595e-06
7.14756e-08
3.98505e-06
8.05807e-07
3.93234e-06
-1.16583e-06
3.88405e-06
-1.67744e-06
3.83873e-06
-1.29488e-06
3.84488e-06
-6.84509e-07
3.85312e-06
-2.79282e-07
3.87926e-06
9.16625e-08
3.9071e-06
1.69854e-07
3.92633e-06
-1.17532e-08
3.9121e-06
-3.25871e-07
3.87934e-06
-5.49045e-07
3.85801e-06
-4.64845e-07
3.84044e-06
-3.17986e-07
3.83949e-06
-1.64377e-07
3.84771e-06
3.04082e-09
3.85179e-06
6.72155e-08
1.07858e-07
3.85809e-06
4.09605e-06
-7.14304e-07
4.09884e-06
-2.67036e-07
4.10335e-06
6.69699e-08
4.17237e-06
7.36786e-07
4.12039e-06
-1.11384e-06
4.07164e-06
-1.62869e-06
4.02649e-06
-1.24973e-06
4.03025e-06
-6.88271e-07
4.03955e-06
-2.88583e-07
4.06546e-06
6.57567e-08
4.0936e-06
1.41708e-07
4.11232e-06
-3.04696e-08
4.09866e-06
-3.12207e-07
4.06647e-06
-5.16862e-07
4.04497e-06
-4.43338e-07
4.02782e-06
-3.00837e-07
4.02527e-06
-1.61826e-07
4.03321e-06
-4.90312e-09
4.03794e-06
6.24886e-08
1.02078e-07
4.04372e-06
4.29209e-06
-6.87097e-07
4.29632e-06
-2.71265e-07
4.29984e-06
6.34517e-08
4.36856e-06
6.68067e-07
4.3176e-06
-1.06289e-06
4.2684e-06
-1.57948e-06
4.22363e-06
-1.20497e-06
4.22448e-06
-6.89123e-07
4.2344e-06
-2.98498e-07
4.25999e-06
4.01656e-08
4.28829e-06
1.13404e-07
4.30683e-06
-4.90021e-08
4.29385e-06
-2.99236e-07
4.26243e-06
-4.8544e-07
4.24091e-06
-4.21811e-07
4.22431e-06
-2.84241e-07
4.22035e-06
-1.57864e-07
4.22778e-06
-1.23299e-08
4.23327e-06
5.69989e-08
9.65589e-08
4.23878e-06
4.49756e-06
-6.58888e-07
4.50286e-06
-2.7656e-07
4.50584e-06
6.04732e-08
4.57405e-06
5.99851e-07
4.52437e-06
-1.0132e-06
4.47462e-06
-1.52974e-06
4.4305e-06
-1.16084e-06
4.42817e-06
-6.86793e-07
4.43825e-06
-3.0858e-07
4.46342e-06
1.50001e-08
4.49157e-06
8.52545e-08
4.51012e-06
-6.75536e-08
4.49805e-06
-2.87166e-07
4.46757e-06
-4.54964e-07
4.44623e-06
-4.00467e-07
4.43035e-06
-2.68359e-07
4.42522e-06
-1.52734e-07
4.4319e-06
-1.90152e-08
4.43806e-06
5.08462e-08
9.10354e-08
4.44358e-06
4.71299e-06
-6.29767e-07
4.71892e-06
-2.82489e-07
4.72178e-06
5.76204e-08
4.78924e-06
5.32386e-07
4.74106e-06
-9.65021e-07
4.69065e-06
-1.47933e-06
4.64744e-06
-1.11763e-06
4.64192e-06
-6.81278e-07
4.6518e-06
-3.18463e-07
4.67642e-06
-9.61951e-09
4.70402e-06
5.76586e-08
4.72258e-06
-8.61155e-08
4.71171e-06
-2.76292e-07
4.6823e-06
-4.25553e-07
4.6613e-06
-3.79469e-07
4.64636e-06
-2.53424e-07
4.64036e-06
-1.46728e-07
4.64606e-06
-2.47207e-08
4.65274e-06
4.41658e-08
8.53689e-08
4.65841e-06
4.93893e-06
-5.99895e-07
4.94509e-06
-2.8865e-07
4.94816e-06
5.45489e-08
5.01449e-06
4.66059e-07
4.96805e-06
-9.18587e-07
4.91688e-06
-1.42816e-06
4.8748e-06
-1.07554e-06
4.86633e-06
-6.72811e-07
4.87577e-06
-3.279e-07
4.89978e-06
-3.36283e-08
4.92639e-06
3.10486e-08
4.94475e-06
-1.04479e-07
4.93532e-06
-2.66864e-07
4.90709e-06
-3.97321e-07
4.8865e-06
-3.58881e-07
4.87275e-06
-2.39674e-07
4.8662e-06
-1.40179e-07
4.87078e-06
-2.9304e-08
4.87776e-06
3.71869e-08
7.94788e-08
4.88365e-06
5.17589e-06
-5.69468e-07
5.18199e-06
-2.94748e-07
5.18558e-06
5.09575e-08
5.25018e-06
4.01457e-07
5.20572e-06
-8.7413e-07
5.15377e-06
-1.3762e-06
5.11298e-06
-1.03476e-06
5.10198e-06
-6.61814e-07
5.11085e-06
-3.36764e-07
5.13424e-06
-5.70197e-08
5.1595e-06
5.7877e-09
5.17729e-06
-1.22266e-07
5.16943e-06
-2.59011e-07
5.14254e-06
-3.70428e-07
5.12234e-06
-3.38679e-07
5.10988e-06
-2.27219e-07
5.1032e-06
-1.33494e-07
5.10655e-06
-3.26578e-08
5.11345e-06
3.02869e-08
7.31484e-08
5.11978e-06
5.4244e-06
-5.38684e-07
5.43028e-06
-3.0062e-07
5.43471e-06
4.65215e-08
5.49679e-06
3.3938e-07
5.45451e-06
-8.31848e-07
5.40184e-06
-1.32353e-06
5.36246e-06
-9.95385e-07
5.34943e-06
-6.48786e-07
5.35769e-06
-3.45018e-07
5.38049e-06
-7.98223e-08
5.40416e-06
-1.78816e-08
5.42094e-06
-1.39045e-07
5.41465e-06
-2.52719e-07
5.38923e-06
-3.45015e-07
5.36937e-06
-3.18812e-07
5.35814e-06
-2.15988e-07
5.35168e-06
-1.27036e-07
5.35391e-06
-3.48904e-08
5.36044e-06
2.37565e-08
6.63605e-08
5.36723e-06
5.685e-06
-5.07723e-07
5.69058e-06
-3.06199e-07
5.6963e-06
4.08e-08
5.75489e-06
2.80786e-07
5.71488e-06
-7.91834e-07
5.66169e-06
-1.27034e-06
5.62377e-06
-9.57466e-07
5.60923e-06
-6.34246e-07
5.61685e-06
-3.52641e-07
5.6391e-06
-1.02067e-07
5.66108e-06
-3.98591e-08
5.67645e-06
-1.54423e-07
5.6716e-06
-2.47869e-07
5.6478e-06
-3.21211e-07
5.62823e-06
-2.99246e-07
5.61801e-06
-2.05761e-07
5.61206e-06
-1.21084e-07
5.61336e-06
-3.61941e-08
5.61927e-06
1.78425e-08
5.91793e-08
5.62645e-06
5.95821e-06
-4.76743e-07
5.96348e-06
-3.11467e-07
5.971e-06
3.32852e-08
6.02518e-06
2.26601e-07
5.98738e-06
-7.54032e-07
5.93397e-06
-1.21693e-06
5.8975e-06
-9.20995e-07
5.88193e-06
-6.18678e-07
5.88887e-06
-3.59574e-07
5.91056e-06
-1.23764e-07
5.93087e-06
-6.01674e-08
5.94456e-06
-1.6811e-07
5.94093e-06
-2.4424e-07
5.91894e-06
-2.99217e-07
5.8996e-06
-2.79907e-07
5.89015e-06
-1.96315e-07
5.88486e-06
-1.15794e-07
5.88546e-06
-3.67928e-08
5.89056e-06
1.27425e-08
5.17532e-08
5.89799e-06
6.24464e-06
-4.45892e-07
6.24954e-06
-3.16375e-07
6.25918e-06
2.36486e-08
6.30839e-06
1.77394e-07
6.27264e-06
-7.1828e-07
6.21932e-06
-1.16362e-06
6.18427e-06
-8.85946e-07
6.16809e-06
-6.02501e-07
6.17424e-06
-3.65727e-07
6.19536e-06
-1.44875e-07
6.2141e-06
-7.89165e-08
6.22593e-06
-1.79937e-07
6.22326e-06
-2.41569e-07
6.20328e-06
-2.79238e-07
6.18415e-06
-2.60779e-07
6.17523e-06
-1.87395e-07
6.17072e-06
-1.11281e-07
6.17086e-06
-3.69324e-08
6.17506e-06
8.54129e-09
4.44526e-08
6.18236e-06
6.5449e-06
-4.1532e-07
6.54933e-06
-3.20806e-07
6.56107e-06
1.19068e-08
6.60528e-06
1.33182e-07
6.57133e-06
-6.84324e-07
6.5184e-06
-1.11069e-06
6.48473e-06
-8.52276e-07
6.46828e-06
-5.86057e-07
6.47354e-06
-3.7098e-07
6.49398e-06
-1.65316e-07
6.51132e-06
-9.62599e-08
6.52123e-06
-1.89853e-07
6.51926e-06
-2.39595e-07
6.50145e-06
-2.61431e-07
6.48261e-06
-2.41933e-07
6.47394e-06
-1.78724e-07
6.4702e-06
-1.07547e-07
6.47017e-06
-3.6904e-08
6.4735e-06
5.21862e-09
3.76316e-08
6.48032e-06
6.85967e-06
-3.85201e-07
6.86341e-06
-3.24547e-07
6.87696e-06
-1.63767e-09
6.91662e-06
9.352e-08
6.88419e-06
-6.51895e-07
6.83187e-06
-1.05837e-06
6.79955e-06
-8.19949e-07
6.78312e-06
-5.69632e-07
6.78733e-06
-3.7519e-07
6.80697e-06
-1.84956e-07
6.82308e-06
-1.12368e-07
6.83114e-06
-1.97911e-07
6.82959e-06
-2.38041e-07
6.81405e-06
-2.45895e-07
6.7957e-06
-2.23581e-07
6.78693e-06
-1.6996e-07
6.78387e-06
-1.04479e-07
6.78405e-06
-3.70874e-08
6.78653e-06
2.73583e-09
3.15097e-08
6.79265e-06
7.18967e-06
-3.55738e-07
7.19243e-06
-3.27307e-07
7.20753e-06
-1.67385e-08
7.24312e-06
5.7938e-08
7.21202e-06
-6.20799e-07
7.16049e-06
-1.00684e-06
7.12946e-06
-7.88918e-07
7.11325e-06
-5.53428e-07
7.1163e-06
-3.78236e-07
7.13497e-06
-2.03629e-07
7.14999e-06
-1.2738e-07
7.15633e-06
-2.04251e-07
7.15496e-06
-2.36679e-07
7.14177e-06
-2.32701e-07
7.12417e-06
-2.0598e-07
7.11496e-06
-1.60749e-07
7.11212e-06
-1.01643e-07
7.11291e-06
-3.78755e-08
7.11478e-06
8.70768e-10
2.61738e-08
7.12011e-06
7.53564e-06
-3.27155e-07
7.53705e-06
-3.28717e-07
7.55354e-06
-3.32216e-08
7.58553e-06
2.59428e-08
7.55557e-06
-5.90838e-07
7.505e-06
-9.56266e-07
7.47521e-06
-7.59135e-07
7.45936e-06
-5.37575e-07
7.46114e-06
-3.8002e-07
7.47866e-06
-2.21146e-07
7.4927e-06
-1.41415e-07
7.49746e-06
-2.09015e-07
7.49612e-06
-2.35336e-07
7.48539e-06
-2.21975e-07
7.46894e-06
-1.89524e-07
7.45901e-06
-1.50818e-07
7.45576e-06
-9.84003e-08
7.45658e-06
-3.86932e-08
7.45828e-06
-8.25898e-10
2.13452e-08
7.46311e-06
7.89836e-06
-2.99704e-07
7.898e-06
-3.28357e-07
7.91569e-06
-5.09159e-08
7.9446e-06
-2.95842e-09
7.9157e-06
-5.61942e-07
7.86617e-06
-9.06732e-07
7.83752e-06
-7.30489e-07
7.82215e-06
-5.22208e-07
7.82262e-06
-3.80485e-07
7.83878e-06
-2.37306e-07
7.85193e-06
-1.54566e-07
7.85532e-06
-2.12406e-07
7.85377e-06
-2.33788e-07
7.84556e-06
-2.13766e-07
7.83132e-06
-1.75279e-07
7.82057e-06
-1.40068e-07
7.81574e-06
-9.35698e-08
7.81524e-06
-3.81963e-08
7.81598e-06
-1.57147e-09
1.50774e-08
7.82225e-06
8.2786e-06
-2.73623e-07
8.27604e-06
-3.25797e-07
8.29483e-06
-6.97083e-08
8.32111e-06
-2.92381e-08
8.29315e-06
-5.33984e-07
8.24481e-06
-8.58385e-07
8.21719e-06
-7.02873e-07
8.20239e-06
-5.07402e-07
8.20158e-06
-3.79676e-07
8.21608e-06
-2.51811e-07
8.22843e-06
-1.66914e-07
8.2306e-06
-2.1458e-07
8.2287e-06
-2.31881e-07
8.22268e-06
-2.07754e-07
8.21205e-06
-1.64646e-07
8.20573e-06
-1.33741e-07
8.2091e-06
-9.69397e-08
8.21712e-06
-4.6223e-08
8.22093e-06
-5.37537e-09
1.47066e-08
8.2213e-06
8.67718e-06
-2.49143e-07
8.67199e-06
-3.20603e-07
8.69173e-06
-8.94473e-08
8.71594e-06
-5.34496e-08
8.68884e-06
-5.06889e-07
8.64172e-06
-8.11267e-07
8.61499e-06
-6.76139e-07
8.60084e-06
-4.93253e-07
8.5988e-06
-3.7763e-07
8.61154e-06
-2.64554e-07
8.62312e-06
-1.78496e-07
8.62422e-06
-2.1568e-07
8.62192e-06
-2.29581e-07
8.61811e-06
-2.03945e-07
8.61065e-06
-1.57189e-07
8.6048e-06
-1.27882e-07
8.60469e-06
-9.68307e-08
8.61068e-06
-5.22174e-08
8.61504e-06
-9.734e-09
1.3416e-08
8.61633e-06
9.09492e-06
-2.26448e-07
9.08676e-06
-3.12441e-07
9.10734e-06
-1.10028e-07
9.12991e-06
-7.6019e-08
9.10354e-06
-4.80515e-07
9.0578e-06
-7.65532e-07
9.03183e-06
-6.50162e-07
9.0184e-06
-4.79823e-07
9.01519e-06
-3.74429e-07
9.02594e-06
-2.75301e-07
9.03678e-06
-1.89337e-07
9.03726e-06
-2.16162e-07
9.03458e-06
-2.26898e-07
9.03174e-06
-2.011e-07
9.02583e-06
-1.51286e-07
9.02077e-06
-1.2282e-07
9.02052e-06
-9.65812e-08
9.02747e-06
-5.91689e-08
9.03363e-06
-1.58861e-08
1.41068e-08
9.03293e-06
9.53271e-06
-2.05702e-07
9.52153e-06
-3.01256e-07
9.54254e-06
-1.31039e-07
9.56388e-06
-9.73538e-08
9.53826e-06
-4.54902e-07
9.49393e-06
-7.21204e-07
9.46861e-06
-6.24834e-07
9.45583e-06
-4.67045e-07
9.4516e-06
-3.702e-07
9.46043e-06
-2.8413e-07
9.4704e-06
-1.99308e-07
9.47042e-06
-2.16179e-07
9.46758e-06
-2.24057e-07
9.46501e-06
-1.98531e-07
9.45845e-06
-1.44732e-07
9.44779e-06
-1.12159e-07
9.4377e-06
-8.64878e-08
9.43406e-06
-5.55275e-08
9.4384e-06
-2.02254e-08
6.45593e-09
9.44605e-06
9.99143e-06
-1.86999e-07
9.97751e-06
-2.87336e-07
9.99834e-06
-1.51868e-07
1.00187e-05
-1.1775e-07
9.99386e-06
-4.30026e-07
9.95104e-06
-6.78382e-07
9.92631e-06
-6.00106e-07
9.91418e-06
-4.54919e-07
9.90892e-06
-3.64936e-07
9.91576e-06
-2.90973e-07
9.92478e-06
-2.08324e-07
9.9244e-06
-2.15795e-07
9.92014e-06
-2.19802e-07
9.91892e-06
-1.97311e-07
9.91777e-06
-1.43585e-07
9.91645e-06
-1.10834e-07
9.91693e-06
-8.69655e-08
9.92338e-06
-6.19846e-08
9.92798e-06
-2.4827e-08
8.11365e-09
9.92633e-06
1.0472e-05
-1.70389e-07
1.04561e-05
-2.71383e-07
1.04757e-05
-1.71511e-07
1.04954e-05
-1.37447e-07
1.04715e-05
-4.06083e-07
1.04301e-05
-6.37036e-07
1.04059e-05
-5.75844e-07
1.03943e-05
-4.43351e-07
1.03882e-05
-3.58829e-07
1.03931e-05
-2.95871e-07
1.04009e-05
-2.16179e-07
1.04004e-05
-2.15297e-07
1.03956e-05
-2.14978e-07
1.03932e-05
-1.94873e-07
1.03893e-05
-1.39672e-07
1.03819e-05
-1.03415e-07
1.03735e-05
-7.86534e-08
1.03695e-05
-5.7915e-08
1.03725e-05
-2.78345e-08
-1.06471e-10
1.03807e-05
1.09755e-05
-1.55834e-07
1.09582e-05
-2.54163e-07
1.09758e-05
-1.8907e-07
1.09949e-05
-1.56532e-07
1.09722e-05
-3.83402e-07
1.09321e-05
-5.9697e-07
1.09083e-05
-5.52008e-07
1.08973e-05
-4.32331e-07
1.08904e-05
-3.51963e-07
1.0893e-05
-2.98428e-07
1.08995e-05
-2.22745e-07
1.08989e-05
-2.14647e-07
1.08927e-05
-2.08829e-07
1.08892e-05
-1.91341e-07
1.0886e-05
-1.36413e-07
1.08808e-05
-9.82605e-08
1.08755e-05
-7.3395e-08
1.0874e-05
-5.63234e-08
1.08771e-05
-3.09824e-08
-6.08209e-09
1.08831e-05
1.15028e-05
-1.43247e-07
1.1485e-05
-2.36348e-07
1.14997e-05
-2.03767e-07
1.15182e-05
-1.75063e-07
1.14972e-05
-3.62383e-07
1.14583e-05
-5.58061e-07
1.14347e-05
-5.28486e-07
1.14242e-05
-4.21752e-07
1.14165e-05
-3.44349e-07
1.14169e-05
-2.98777e-07
1.14216e-05
-2.27407e-07
1.14204e-05
-2.13473e-07
1.14136e-05
-2.02018e-07
1.14094e-05
-1.87184e-07
1.14074e-05
-1.34379e-07
1.14042e-05
-9.50989e-08
1.14e-05
-6.91786e-08
1.13982e-05
-5.4505e-08
1.13998e-05
-3.26042e-08
-1.18978e-08
1.14056e-05
1.2055e-05
-1.32454e-07
1.20372e-05
-2.18561e-07
1.20485e-05
-2.15057e-07
1.20664e-05
-1.92914e-07
1.20475e-05
-3.43487e-07
1.20097e-05
-5.20297e-07
1.19862e-05
-5.05006e-07
1.1976e-05
-4.11528e-07
1.19679e-05
-3.36214e-07
1.19659e-05
-2.9676e-07
1.19684e-05
-2.29925e-07
1.19672e-05
-2.12244e-07
1.19604e-05
-1.95303e-07
1.19554e-05
-1.82189e-07
1.19539e-05
-1.32858e-07
1.19517e-05
-9.29258e-08
1.19485e-05
-6.58814e-08
1.19472e-05
-5.32809e-08
1.19485e-05
-3.391e-08
-1.59064e-08
1.19525e-05
1.26334e-05
-1.23242e-07
1.26162e-05
-2.01349e-07
1.26237e-05
-2.22572e-07
1.26406e-05
-2.09852e-07
1.26243e-05
-3.27148e-07
1.25877e-05
-4.83737e-07
1.2564e-05
-4.81323e-07
1.2554e-05
-4.01496e-07
1.25456e-05
-3.27826e-07
1.25415e-05
-2.92677e-07
1.2542e-05
-2.30391e-07
1.25405e-05
-2.10722e-07
1.25339e-05
-1.88727e-07
1.25282e-05
-1.76495e-07
1.25267e-05
-1.31396e-07
1.25258e-05
-9.20151e-08
1.25235e-05
-6.35498e-08
1.25222e-05
-5.1952e-08
1.25233e-05
-3.50167e-08
-1.89718e-08
1.25264e-05
1.3239e-05
-1.15338e-07
1.32229e-05
-1.85183e-07
1.32266e-05
-2.26349e-07
1.32422e-05
-2.25407e-07
1.32286e-05
-3.13562e-07
1.31936e-05
-4.48719e-07
1.31694e-05
-4.57149e-07
1.31594e-05
-3.91521e-07
1.3151e-05
-3.19418e-07
1.31451e-05
-2.86756e-07
1.31436e-05
-2.28875e-07
1.31417e-05
-2.088e-07
1.31357e-05
-1.82757e-07
1.31296e-05
-1.70362e-07
1.31277e-05
-1.29569e-07
1.31275e-05
-9.18154e-08
1.3126e-05
-6.19937e-08
1.31248e-05
-5.08103e-08
1.31258e-05
-3.59441e-08
-2.17592e-08
1.31286e-05
1.38733e-05
-1.0845e-07
1.38586e-05
-1.70479e-07
1.38589e-05
-2.26645e-07
1.38724e-05
-2.38963e-07
1.38616e-05
-3.02764e-07
1.38286e-05
-4.15727e-07
1.38037e-05
-4.32251e-07
1.37936e-05
-3.81352e-07
1.37855e-05
-3.11341e-07
1.37782e-05
-2.79449e-07
1.37747e-05
-2.25373e-07
1.37721e-05
-2.06261e-07
1.37668e-05
-1.77399e-07
1.37605e-05
-1.64103e-07
1.37581e-05
-1.27107e-07
1.37584e-05
-9.21295e-08
1.37577e-05
-6.12682e-08
1.37568e-05
-4.99331e-08
1.37573e-05
-3.64812e-08
-2.42215e-08
1.37598e-05
1.45375e-05
-1.02291e-07
1.45245e-05
-1.57488e-07
1.45218e-05
-2.23954e-07
1.45328e-05
-2.4994e-07
1.45246e-05
-2.94521e-07
1.44941e-05
-3.85225e-07
1.44686e-05
-4.06759e-07
1.44578e-05
-3.70542e-07
1.44503e-05
-3.03871e-07
1.44422e-05
-2.7137e-07
1.44367e-05
-2.19875e-07
1.44331e-05
-2.02624e-07
1.44283e-05
-1.72599e-07
1.44225e-05
-1.5836e-07
1.44197e-05
-1.24254e-07
1.442e-05
-9.2459e-08
1.44197e-05
-6.09523e-08
1.4419e-05
-4.92328e-08
1.44193e-05
-3.67528e-08
-2.61702e-08
1.44212e-05
1.52332e-05
-9.65845e-08
1.52221e-05
-1.46371e-07
1.52169e-05
-2.18835e-07
1.52248e-05
-2.57754e-07
1.52187e-05
-2.88429e-07
1.51912e-05
-3.5772e-07
1.51654e-05
-3.80963e-07
1.51534e-05
-3.5858e-07
1.51464e-05
-2.96895e-07
1.51385e-05
-2.63425e-07
1.51313e-05
-2.12679e-07
1.51263e-05
-1.97598e-07
1.51217e-05
-1.68072e-07
1.51165e-05
-1.53146e-07
1.51133e-05
-1.21053e-07
1.51134e-05
-9.25846e-08
1.51135e-05
-6.10059e-08
1.51129e-05
-4.866e-08
1.51132e-05
-3.69913e-08
-2.77055e-08
1.51147e-05
1.59618e-05
-9.11016e-08
1.59526e-05
-1.37118e-07
1.59456e-05
-2.11832e-07
1.59499e-05
-2.6202e-07
1.59454e-05
-2.83964e-07
1.59212e-05
-3.33508e-07
1.58954e-05
-3.55207e-07
1.5882e-05
-3.45129e-07
1.58752e-05
-2.90082e-07
1.5868e-05
-2.5629e-07
1.58599e-05
-2.04564e-07
1.58533e-05
-1.9102e-07
1.58484e-05
-1.63184e-07
1.58438e-05
-1.48456e-07
1.58405e-05
-1.17797e-07
1.58404e-05
-9.25136e-08
1.58409e-05
-6.1442e-08
1.58403e-05
-4.81125e-08
1.58403e-05
-3.70062e-08
-2.88995e-08
1.58415e-05
1.67252e-05
-8.56662e-08
1.67177e-05
-1.29618e-07
1.67093e-05
-2.03469e-07
1.67097e-05
-2.624e-07
1.67061e-05
-2.80423e-07
1.66852e-05
-3.12582e-07
1.66601e-05
-3.30051e-07
1.66451e-05
-3.30174e-07
1.66379e-05
-2.82916e-07
1.66319e-05
-2.50284e-07
1.66238e-05
-1.96473e-07
1.66158e-05
-1.83008e-07
1.66102e-05
-1.57601e-07
1.66059e-05
-1.44093e-07
1.66027e-05
-1.14632e-07
1.66023e-05
-9.21148e-08
1.6603e-05
-6.21227e-08
1.66026e-05
-4.77126e-08
1.66023e-05
-3.67488e-08
-2.99655e-08
1.66034e-05
1.75249e-05
-8.02053e-08
1.75188e-05
-1.23546e-07
1.75096e-05
-1.94254e-07
1.7506e-05
-2.58741e-07
1.75026e-05
-2.77061e-07
1.74847e-05
-2.94699e-07
1.74608e-05
-3.06165e-07
1.74447e-05
-3.14023e-07
1.74364e-05
-2.74663e-07
1.74315e-05
-2.45367e-07
1.74244e-05
-1.89377e-07
1.74155e-05
-1.74053e-07
1.74089e-05
-1.51098e-07
1.74045e-05
-1.39692e-07
1.74015e-05
-1.11545e-07
1.74006e-05
-9.12971e-08
1.74015e-05
-6.29966e-08
1.74016e-05
-4.7757e-08
1.7401e-05
-3.61823e-08
-3.07802e-08
1.74018e-05
1.83628e-05
-7.47001e-08
1.83577e-05
-1.18433e-07
1.83482e-05
-1.84762e-07
1.83408e-05
-2.51313e-07
1.83367e-05
-2.72938e-07
1.83216e-05
-2.79629e-07
1.82995e-05
-2.84044e-07
1.82826e-05
-2.97169e-07
1.82726e-05
-2.64659e-07
1.82683e-05
-2.40985e-07
1.82628e-05
-1.83958e-07
1.82538e-05
-1.65028e-07
1.82462e-05
-1.43495e-07
1.82415e-05
-1.35011e-07
1.82385e-05
-1.0853e-07
1.82373e-05
-9.01156e-08
1.82381e-05
-6.37426e-08
1.82386e-05
-4.83155e-08
1.8238e-05
-3.55249e-08
-3.12473e-08
1.82384e-05
1.92409e-05
-6.91975e-08
1.92362e-05
-1.13729e-07
1.92269e-05
-1.75476e-07
1.92164e-05
-2.40855e-07
1.92105e-05
-2.66986e-07
1.91982e-05
-2.67313e-07
1.91782e-05
-2.64027e-07
1.91608e-05
-2.7984e-07
1.9149e-05
-2.5281e-07
1.91438e-05
-2.35812e-07
1.91403e-05
-1.80425e-07
1.91325e-05
-1.57244e-07
1.9124e-05
-1.35019e-07
1.91187e-05
-1.29687e-07
1.91157e-05
-1.05513e-07
1.91142e-05
-8.8611e-08
1.91145e-05
-6.41059e-08
1.91155e-05
-4.92866e-08
1.9115e-05
-3.50452e-08
-3.13374e-08
1.91151e-05
2.0161e-05
-6.37899e-08
2.01563e-05
-1.0898e-07
2.01474e-05
-1.66658e-07
2.01348e-05
-2.2827e-07
2.01263e-05
-2.58457e-07
2.01163e-05
-2.57293e-07
2.00986e-05
-2.46371e-07
2.00813e-05
-2.6245e-07
2.00679e-05
-2.39494e-07
2.00607e-05
-2.28566e-07
2.00584e-05
-1.78108e-07
2.00527e-05
-1.51609e-07
2.00444e-05
-1.26646e-07
2.0038e-05
-1.23285e-07
2.00348e-05
-1.02305e-07
2.00331e-05
-8.69279e-08
2.00329e-05
-6.39486e-08
2.0034e-05
-5.04055e-08
2.0034e-05
-3.49654e-08
-3.11077e-08
2.00337e-05
2.11252e-05
-5.85952e-08
2.112e-05
-1.03811e-07
2.11118e-05
-1.58421e-07
2.1098e-05
-2.14495e-07
2.1087e-05
-2.47453e-07
2.10781e-05
-2.48329e-07
2.10628e-05
-2.31121e-07
2.1046e-05
-2.45643e-07
2.10318e-05
-2.25304e-07
2.10224e-05
-2.19182e-07
2.10195e-05
-1.75215e-07
2.10159e-05
-1.47987e-07
2.10088e-05
-1.19562e-07
2.10017e-05
-1.16106e-07
2.09977e-05
-9.83638e-08
2.09961e-05
-8.52721e-08
2.09953e-05
-6.31815e-08
2.09962e-05
-5.13506e-08
2.09966e-05
-3.53843e-08
-3.06645e-08
2.09962e-05
2.21356e-05
-5.37144e-08
2.21298e-05
-9.80578e-08
2.21221e-05
-1.50725e-07
2.2108e-05
-2.00358e-07
2.20949e-05
-2.34329e-07
2.20858e-05
-2.39247e-07
2.20727e-05
-2.17998e-07
2.20568e-05
-2.29734e-07
2.20424e-05
-2.10883e-07
2.20315e-05
-2.08326e-07
2.20267e-05
-1.70444e-07
2.20242e-05
-1.45436e-07
2.20189e-05
-1.14273e-07
2.20118e-05
-1.09049e-07
2.20068e-05
-9.33539e-08
2.2005e-05
-8.34393e-08
2.20039e-05
-6.20541e-08
2.20042e-05
-5.1711e-08
2.20051e-05
-3.62649e-08
-3.02407e-08
2.20047e-05
2.31944e-05
-4.92331e-08
2.3188e-05
-9.17415e-08
2.31806e-05
-1.43277e-07
2.31667e-05
-1.86466e-07
2.3152e-05
-2.19669e-07
2.3142e-05
-2.29172e-07
2.31305e-05
-2.06484e-07
2.31156e-05
-2.14856e-07
2.31014e-05
-1.96671e-07
2.30897e-05
-1.9664e-07
2.3083e-05
-1.63722e-07
2.30802e-05
-1.42665e-07
2.30762e-05
-1.10323e-07
2.30702e-05
-1.03017e-07
2.30645e-05
-8.76738e-08
2.30619e-05
-8.08272e-08
2.30609e-05
-6.10626e-08
2.30603e-05
-5.11242e-08
2.30614e-05
-3.73203e-08
-3.00924e-08
2.30612e-05
2.43037e-05
-4.51826e-08
2.42969e-05
-8.48799e-08
2.42894e-05
-1.35797e-07
2.42761e-05
-1.7319e-07
2.42605e-05
-2.04085e-07
2.42491e-05
-2.17757e-07
2.42385e-05
-1.95879e-07
2.42247e-05
-2.01003e-07
2.42108e-05
-1.8285e-07
2.41988e-05
-1.84553e-07
2.41906e-05
-1.5557e-07
2.41867e-05
-1.38721e-07
2.41835e-05
-1.07122e-07
2.41786e-05
-9.81054e-08
2.4173e-05
-8.21604e-08
2.41693e-05
-7.71347e-08
2.41683e-05
-6.00645e-08
2.41673e-05
-5.00381e-08
2.41678e-05
-3.7849e-08
-3.03958e-08
2.41681e-05
2.54661e-05
-4.15462e-08
2.54589e-05
-7.76201e-08
2.54511e-05
-1.28042e-07
2.54385e-05
-1.6063e-07
2.54226e-05
-1.88106e-07
2.54097e-05
-2.04922e-07
2.53993e-05
-1.85474e-07
2.53864e-05
-1.88108e-07
2.53731e-05
-1.69545e-07
2.53609e-05
-1.7234e-07
2.53518e-05
-1.4645e-07
2.53464e-05
-1.33376e-07
2.53433e-05
-1.03985e-07
2.5339e-05
-9.3837e-08
2.53343e-05
-7.74377e-08
2.53299e-05
-7.27199e-08
2.53283e-05
-5.84932e-08
2.53273e-05
-4.90439e-08
2.53269e-05
-3.74419e-08
-3.09819e-08
2.53275e-05
2.6684e-05
-3.8293e-08
2.66766e-05
-7.02265e-08
2.66683e-05
-1.19757e-07
2.66563e-05
-1.48607e-07
2.66404e-05
-1.72243e-07
2.66264e-05
-1.90898e-07
2.66156e-05
-1.74662e-07
2.66033e-05
-1.75834e-07
2.65906e-05
-1.56818e-07
2.65784e-05
-1.60122e-07
2.65687e-05
-1.36794e-07
2.65621e-05
-1.26776e-07
2.65584e-05
-1.00276e-07
2.65545e-05
-8.99294e-08
2.65504e-05
-7.33271e-08
2.65461e-05
-6.83772e-08
2.65436e-05
-5.60181e-08
2.65427e-05
-4.81795e-08
2.65418e-05
-3.65233e-08
-3.12808e-08
2.65421e-05
2.796e-05
-3.53255e-08
2.79524e-05
-6.25843e-08
2.79437e-05
-1.11117e-07
2.7932e-05
-1.36928e-07
2.79165e-05
-1.56729e-07
2.79017e-05
-1.76069e-07
2.78901e-05
-1.63119e-07
2.78781e-05
-1.6378e-07
2.78659e-05
-1.44648e-07
2.78537e-05
-1.47924e-07
2.78437e-05
-1.26818e-07
2.78363e-05
-1.19306e-07
2.78317e-05
-9.56654e-08
2.78279e-05
-8.6113e-08
2.78239e-05
-6.94139e-08
2.782e-05
-6.4414e-08
2.78169e-05
-5.2913e-08
2.78156e-05
-4.69031e-08
2.78147e-05
-3.5642e-08
-3.1049e-08
2.78145e-05
2.92969e-05
-3.25921e-08
2.92896e-05
-5.52623e-08
2.92803e-05
-1.01796e-07
2.92686e-05
-1.25233e-07
2.92536e-05
-1.41711e-07
2.92381e-05
-1.60614e-07
2.92257e-05
-1.50746e-07
2.92137e-05
-1.51709e-07
2.92018e-05
-1.3283e-07
2.91897e-05
-1.35736e-07
2.91793e-05
-1.16497e-07
2.91712e-05
-1.11191e-07
2.91657e-05
-9.01571e-08
2.91616e-05
-8.20288e-08
2.9158e-05
-6.57544e-08
2.91544e-05
-6.08214e-08
2.91513e-05
-4.98088e-08
2.91494e-05
-4.50317e-08
2.91484e-05
-3.46692e-08
-3.02279e-08
2.91476e-05
3.06976e-05
-2.99511e-08
3.069e-05
-4.76928e-08
3.06804e-05
-9.21921e-08
3.06688e-05
-1.13625e-07
3.06543e-05
-1.2719e-07
3.06385e-05
-1.4485e-07
3.06251e-05
-1.37366e-07
3.06128e-05
-1.39377e-07
3.06013e-05
-1.21319e-07
3.05892e-05
-1.23617e-07
3.05787e-05
-1.05985e-07
3.05699e-05
-1.02369e-07
3.05633e-05
-8.36463e-08
3.05586e-05
-7.72994e-08
3.05548e-05
-6.19232e-08
3.05513e-05
-5.73898e-08
3.05485e-05
-4.69545e-08
3.05466e-05
-4.31637e-08
3.05459e-05
-3.39522e-08
-2.96496e-08
3.05453e-05
3.21652e-05
-2.73395e-08
3.21581e-05
-4.06639e-08
3.21479e-05
-8.19449e-08
3.21359e-05
-1.01602e-07
3.21216e-05
-1.12904e-07
3.21059e-05
-1.29178e-07
3.20917e-05
-1.23119e-07
3.20786e-05
-1.26369e-07
3.20671e-05
-1.09786e-07
3.2055e-05
-1.11462e-07
3.20443e-05
-9.52935e-08
3.20351e-05
-9.32305e-08
3.2028e-05
-7.64827e-08
3.20226e-05
-7.19041e-08
3.20184e-05
-5.77368e-08
3.20148e-05
-5.37715e-08
3.20116e-05
-4.37982e-08
3.20092e-05
-4.07471e-08
3.20079e-05
-3.27118e-08
-2.92232e-08
3.20075e-05
3.37027e-05
-2.45638e-08
3.36958e-05
-3.38215e-08
3.36851e-05
-7.12276e-08
3.36729e-05
-8.9375e-08
3.36585e-05
-9.85452e-08
3.3643e-05
-1.13608e-07
3.36283e-05
-1.08488e-07
3.36147e-05
-1.12714e-07
3.36027e-05
-9.77812e-08
3.35903e-05
-9.90413e-08
3.3579e-05
-8.40406e-08
3.35693e-05
-8.35369e-08
3.35614e-05
-6.85846e-08
3.35555e-05
-6.60142e-08
3.35512e-05
-5.34151e-08
3.35481e-05
-5.06579e-08
3.35458e-05
-4.15351e-08
3.35438e-05
-3.87632e-08
3.35426e-05
-3.1464e-08
-2.81841e-08
3.35415e-05
3.53136e-05
-2.15284e-08
3.53064e-05
-2.66362e-08
3.52955e-05
-6.03134e-08
3.52831e-05
-7.69708e-08
3.52687e-05
-8.41512e-08
3.52531e-05
-9.79568e-08
3.52382e-05
-9.3607e-08
3.52243e-05
-9.88494e-08
3.52118e-05
-8.52577e-08
3.51988e-05
-8.60943e-08
3.51868e-05
-7.20157e-08
3.51758e-05
-7.25192e-08
3.51669e-05
-5.96382e-08
3.51593e-05
-5.84726e-08
3.51539e-05
-4.79572e-08
3.51496e-05
-4.63871e-08
3.51472e-05
-3.9191e-08
3.51463e-05
-3.78512e-08
3.51468e-05
-3.19482e-08
-2.95746e-08
3.51482e-05
3.70015e-05
-1.81849e-08
3.69957e-05
-2.0833e-08
3.69835e-05
-4.81225e-08
3.697e-05
-6.34815e-08
3.69551e-05
-6.92e-08
3.69395e-05
-8.2357e-08
3.69242e-05
-7.83327e-08
3.69102e-05
-8.48876e-08
3.68976e-05
-7.26478e-08
3.68847e-05
-7.3206e-08
3.68725e-05
-5.97738e-08
3.68606e-05
-6.05845e-08
3.68509e-05
-4.99792e-08
3.68433e-05
-5.08877e-08
3.68372e-05
-4.18188e-08
3.68319e-05
-4.11083e-08
3.68273e-05
-3.45537e-08
3.68236e-05
-3.4179e-08
3.68215e-05
-2.98123e-08
-2.91931e-08
3.68211e-05
3.87702e-05
-1.45783e-08
3.87629e-05
-1.35631e-08
3.875e-05
-3.52205e-08
3.87358e-05
-4.93314e-08
3.87218e-05
-5.5145e-08
3.87074e-05
-6.79539e-08
3.86923e-05
-6.32773e-08
3.86764e-05
-6.90184e-08
3.86617e-05
-5.7886e-08
3.86452e-05
-5.67358e-08
3.86309e-05
-4.55019e-08
3.86171e-05
-4.67275e-08
3.86054e-05
-3.82714e-08
3.8597e-05
-4.24707e-08
3.85912e-05
-3.60301e-08
3.85887e-05
-3.86216e-08
3.85884e-05
-3.43108e-08
3.85904e-05
-3.61853e-08
3.85941e-05
-3.34803e-08
-3.39759e-08
3.85989e-05
4.06241e-05
-1.14219e-08
4.06139e-05
-3.44045e-09
4.05997e-05
-2.09956e-08
4.05835e-05
-3.30677e-08
4.05683e-05
-3.99944e-08
4.05546e-05
-5.4278e-08
4.05449e-05
-5.35019e-08
4.05386e-05
-6.28015e-08
4.05399e-05
-5.91774e-08
4.05459e-05
-6.26807e-08
4.05562e-05
-5.58285e-08
4.05679e-05
-5.84078e-08
4.05761e-05
-4.65083e-08
4.05797e-05
-4.60811e-08
4.05797e-05
-3.59779e-08
4.05756e-05
-3.45076e-08
4.0569e-05
-2.77291e-08
4.05585e-05
-2.56743e-08
4.05462e-05
-2.12001e-08
-1.90126e-08
4.05312e-05
4.25646e-05
-6.74895e-09
4.25546e-05
6.57853e-09
4.25384e-05
-4.78397e-09
4.25228e-05
-1.75286e-08
4.25095e-05
-2.66119e-08
4.24949e-05
-3.97525e-08
4.24797e-05
-3.82932e-08
4.24621e-05
-4.51636e-08
4.24448e-05
-4.1847e-08
4.24267e-05
-4.46235e-08
4.24092e-05
-3.83274e-08
4.23936e-05
-4.28172e-08
4.23801e-05
-3.30309e-08
4.23693e-05
-3.52872e-08
4.23638e-05
-3.04847e-08
4.23609e-05
-3.15217e-08
4.23618e-05
-2.86413e-08
4.23656e-05
-2.94804e-08
4.23724e-05
-2.80158e-08
-2.78857e-08
4.23813e-05
4.46047e-05
-7.25249e-09
4.46081e-05
3.19574e-09
4.46115e-05
-8.25053e-09
4.461e-05
-1.60012e-08
4.46043e-05
-2.09302e-08
4.45961e-05
-3.15172e-08
4.45885e-05
-3.06552e-08
4.45801e-05
-3.68428e-08
4.45724e-05
-3.41079e-08
4.4566e-05
-3.82264e-08
4.45592e-05
-3.14783e-08
4.45533e-05
-3.7011e-08
4.45497e-05
-2.93432e-08
4.45453e-05
-3.09734e-08
4.4541e-05
-2.61107e-08
4.45343e-05
-2.48913e-08
4.4527e-05
-2.12823e-08
4.45182e-05
-2.06604e-08
4.45082e-05
-1.80485e-08
-1.73948e-08
4.44977e-05
4.67354e-05
4.67376e-05
4.67403e-05
4.6739e-05
4.67347e-05
4.67261e-05
4.67172e-05
4.67063e-05
4.66957e-05
4.66864e-05
4.66792e-05
4.66724e-05
4.66694e-05
4.66666e-05
4.66652e-05
4.66653e-05
4.6666e-05
4.66659e-05
4.66635e-05
4.66587e-05
8.81063e-07
2.98758e-07
6.13374e-07
2.67689e-07
4.19883e-07
1.93491e-07
3.11628e-07
1.08255e-07
2.62278e-07
4.93497e-08
2.33758e-07
2.85202e-08
2.11692e-07
2.20661e-08
1.93599e-07
1.80928e-08
1.79075e-07
1.4524e-08
1.66975e-07
1.20998e-08
1.56459e-07
1.05158e-08
1.47767e-07
8.69227e-09
1.40668e-07
7.09933e-09
1.34521e-07
6.14665e-09
1.29026e-07
5.49529e-09
1.2398e-07
5.04566e-09
1.19308e-07
4.67221e-09
1.15025e-07
4.28322e-09
1.11154e-07
3.87048e-09
1.07741e-07
3.41334e-09
1.0453e-07
3.21089e-09
1.01413e-07
3.11738e-09
9.87258e-08
2.68673e-09
9.63746e-08
2.35128e-09
9.4041e-08
2.33356e-09
9.17586e-08
2.28246e-09
8.97181e-08
2.04043e-09
8.8023e-08
1.69514e-09
8.64081e-08
1.61493e-09
8.46731e-08
1.73495e-09
8.30606e-08
1.61255e-09
8.16956e-08
1.365e-09
8.03234e-08
1.3722e-09
7.89504e-08
1.373e-09
7.77465e-08
1.20382e-09
7.65622e-08
1.18431e-09
7.53304e-08
1.23185e-09
7.41627e-08
1.16768e-09
7.30429e-08
1.11975e-09
7.18586e-08
1.18432e-09
7.05927e-08
1.2659e-09
6.93612e-08
1.23155e-09
6.82208e-08
1.14036e-09
6.71466e-08
1.07423e-09
6.60508e-08
1.09582e-09
6.49332e-08
1.11752e-09
6.38961e-08
1.03716e-09
6.29616e-08
9.34521e-10
6.19518e-08
1.00972e-09
6.08521e-08
1.09971e-09
5.97857e-08
1.06647e-09
5.88011e-08
9.84613e-10
5.78309e-08
9.70157e-10
5.68262e-08
1.00468e-09
5.59035e-08
9.22678e-10
5.5103e-08
8.00502e-10
5.42341e-08
8.68924e-10
5.33779e-08
8.56254e-10
5.26489e-08
7.28981e-10
5.20358e-08
6.1309e-10
5.13556e-08
6.8018e-10
5.03039e-08
1.05173e-09
4.92442e-08
1.05964e-09
4.85497e-08
6.94572e-10
4.80384e-08
5.11292e-10
4.74795e-08
5.58836e-10
4.68996e-08
5.79994e-10
4.6235e-08
6.64516e-10
4.56579e-08
5.77146e-10
4.51165e-08
5.41355e-10
4.45184e-08
5.98128e-10
4.39514e-08
5.67032e-10
4.3439e-08
5.12402e-10
4.29313e-08
5.07624e-10
4.23957e-08
5.35666e-10
4.1875e-08
5.20711e-10
4.13278e-08
5.47133e-10
4.08548e-08
4.73022e-10
4.03675e-08
4.87305e-10
3.98994e-08
4.68069e-10
3.93871e-08
5.12387e-10
3.8928e-08
4.59006e-10
3.84727e-08
4.55317e-10
3.79831e-08
4.89605e-10
3.75038e-08
4.79314e-10
3.70226e-08
4.81187e-10
3.6568e-08
4.5462e-10
3.61227e-08
4.45269e-10
3.56649e-08
4.5786e-10
3.52705e-08
3.9441e-10
3.47905e-08
4.79984e-10
3.43725e-08
4.17978e-10
3.39416e-08
4.3086e-10
3.35566e-08
3.85073e-10
3.319e-08
3.6657e-10
3.28606e-08
3.29373e-10
3.26038e-08
2.56833e-10
3.23374e-08
2.66419e-10
3.24856e-08
-1.48182e-10
-5.16574e-10
1.22549e-06
3.39436e-07
1.12925e-06
3.6393e-07
1.01978e-06
3.02967e-07
9.22079e-07
2.05952e-07
8.44116e-07
1.27312e-07
7.70769e-07
1.01867e-07
6.98712e-07
9.4123e-08
6.35391e-07
8.1414e-08
5.84057e-07
6.58578e-08
5.42215e-07
5.39426e-08
5.07476e-07
4.52543e-08
4.78861e-07
3.73077e-08
4.55012e-07
3.09485e-08
4.34548e-07
2.661e-08
4.16489e-07
2.35546e-08
4.00001e-07
2.15339e-08
3.84731e-07
1.99419e-08
3.70731e-07
1.82833e-08
3.58027e-07
1.65742e-08
3.46524e-07
1.49164e-08
3.35948e-07
1.37872e-08
3.26344e-07
1.27211e-08
3.17894e-07
1.11366e-08
3.1007e-07
1.01753e-08
3.02444e-07
9.96008e-09
2.95248e-07
9.47783e-09
2.88785e-07
8.50318e-09
2.82995e-07
7.48587e-09
2.77408e-07
7.20188e-09
2.7191e-07
7.23245e-09
2.66876e-07
6.6472e-09
2.62329e-07
5.91121e-09
2.57912e-07
5.79014e-09
2.53668e-07
5.61676e-09
2.49714e-07
5.15768e-09
2.45836e-07
5.0621e-09
2.42019e-07
5.0493e-09
2.38361e-07
4.82492e-09
2.34732e-07
4.7489e-09
2.30949e-07
4.96778e-09
2.27077e-07
5.13748e-09
2.23346e-07
4.96233e-09
2.19785e-07
4.70191e-09
2.16284e-07
4.57521e-09
2.1273e-07
4.64997e-09
2.0921e-07
4.63707e-09
2.05889e-07
4.35809e-09
2.02723e-07
4.1013e-09
1.99428e-07
4.30387e-09
1.96066e-07
4.46228e-09
1.92832e-07
4.30045e-09
1.89743e-07
4.07317e-09
1.86666e-07
4.04781e-09
1.83603e-07
4.06771e-09
1.80744e-07
3.78141e-09
1.78055e-07
3.48889e-09
1.75293e-07
3.63147e-09
1.72651e-07
3.4985e-09
1.70203e-07
3.17682e-09
1.67843e-07
2.9727e-09
1.65305e-07
3.21875e-09
1.62346e-07
4.01047e-09
1.59615e-07
3.79037e-09
1.57476e-07
2.83381e-09
1.55572e-07
2.41538e-09
1.53607e-07
2.5236e-09
1.51617e-07
2.57023e-09
1.49557e-07
2.72435e-09
1.47687e-07
2.44753e-09
1.45857e-07
2.37137e-09
1.43981e-07
2.47363e-09
1.42217e-07
2.33135e-09
1.40543e-07
2.18567e-09
1.38877e-07
2.17447e-09
1.37185e-07
2.22727e-09
1.35544e-07
2.16192e-09
1.33889e-07
2.20214e-09
1.32367e-07
1.99515e-09
1.30811e-07
2.0431e-09
1.29295e-07
1.98407e-09
1.27716e-07
2.09103e-09
1.26245e-07
1.93065e-09
1.24747e-07
1.95343e-09
1.23208e-07
2.02855e-09
1.21687e-07
2.00004e-09
1.20189e-07
1.97946e-09
1.18737e-07
1.90602e-09
1.17312e-07
1.87e-09
1.15866e-07
1.90447e-09
1.14515e-07
1.74563e-09
1.13025e-07
1.96915e-09
1.11685e-07
1.75849e-09
1.10321e-07
1.79451e-09
1.09072e-07
1.63391e-09
1.07839e-07
1.60036e-09
1.06752e-07
1.41602e-09
1.05727e-07
1.28231e-09
1.04814e-07
1.17893e-09
1.05045e-07
-3.7932e-10
-1.12279e-09
1.32697e-06
3.28514e-07
1.31373e-06
3.77166e-07
1.28669e-06
3.30006e-07
1.25319e-06
2.39455e-07
1.22187e-06
1.58627e-07
1.18382e-06
1.39921e-07
1.13025e-06
1.47691e-07
1.06662e-06
1.4504e-07
1.00193e-06
1.30553e-07
9.40792e-07
1.15079e-07
8.85897e-07
1.00149e-07
8.38646e-07
8.45586e-08
7.98376e-07
7.12186e-08
7.63851e-07
6.11347e-08
7.33803e-07
5.36032e-08
7.06679e-07
4.86579e-08
6.81391e-07
4.52297e-08
6.57733e-07
4.19417e-08
6.35728e-07
3.85786e-08
6.15247e-07
3.53977e-08
5.96313e-07
3.27216e-08
5.7941e-07
2.96235e-08
5.64599e-07
2.59473e-08
5.50892e-07
2.38826e-08
5.37649e-07
2.32029e-08
5.2521e-07
2.19172e-08
5.13893e-07
1.98203e-08
5.03427e-07
1.79516e-08
4.93301e-07
1.73276e-08
4.83577e-07
1.69564e-08
4.74654e-07
1.55701e-08
4.66451e-07
1.41145e-08
4.58604e-07
1.36369e-08
4.5114e-07
1.30808e-08
4.4407e-07
1.22282e-08
4.37207e-07
1.19251e-08
4.30603e-07
1.16528e-08
4.24312e-07
1.11161e-08
4.18083e-07
1.09777e-08
4.11664e-07
1.13873e-08
4.05159e-07
1.16425e-08
3.98854e-07
1.1267e-08
3.92721e-07
1.08351e-08
3.8656e-07
1.07359e-08
3.80293e-07
1.09172e-08
3.74134e-07
1.07961e-08
3.68288e-07
1.02041e-08
3.62647e-07
9.74242e-09
3.56899e-07
1.00514e-08
3.51179e-07
1.01826e-08
3.45692e-07
9.78725e-09
3.40367e-07
9.39822e-09
3.35036e-07
9.3792e-09
3.29778e-07
9.32497e-09
3.24773e-07
8.78673e-09
3.19918e-07
8.34377e-09
3.15007e-07
8.54271e-09
3.10292e-07
8.21328e-09
3.05801e-07
7.66828e-09
3.01411e-07
7.36216e-09
2.96867e-07
7.76325e-09
2.91979e-07
8.89785e-09
2.87424e-07
8.3461e-09
2.83536e-07
6.72105e-09
2.79911e-07
6.04055e-09
2.76241e-07
6.19382e-09
2.72576e-07
6.23524e-09
2.68911e-07
6.38891e-09
2.65491e-07
5.86821e-09
2.62143e-07
5.71946e-09
2.5881e-07
5.80663e-09
2.55657e-07
5.48407e-09
2.5262e-07
5.22299e-09
2.49623e-07
5.17089e-09
2.46636e-07
5.21402e-09
2.43741e-07
5.05693e-09
2.40858e-07
5.08531e-09
2.38139e-07
4.71476e-09
2.35385e-07
4.7971e-09
2.32692e-07
4.67647e-09
2.29942e-07
4.84111e-09
2.27321e-07
4.55218e-09
2.24647e-07
4.62717e-09
2.21948e-07
4.72746e-09
2.19268e-07
4.68036e-09
2.16641e-07
4.60596e-09
2.1406e-07
4.48723e-09
2.11526e-07
4.40424e-09
2.0895e-07
4.47996e-09
2.0649e-07
4.20536e-09
2.03881e-07
4.57833e-09
2.01479e-07
4.16104e-09
1.99053e-07
4.22011e-09
1.96796e-07
3.89067e-09
1.94532e-07
3.86436e-09
1.92532e-07
3.41675e-09
1.90524e-07
3.29001e-09
1.88772e-07
2.93058e-09
1.88768e-07
-3.75007e-10
-1.42855e-09
1.39825e-06
3.14941e-07
1.40508e-06
3.70334e-07
1.40698e-06
3.28109e-07
1.40475e-06
2.41689e-07
1.40522e-06
1.58156e-07
1.40582e-06
1.3932e-07
1.39402e-06
1.59487e-07
1.36506e-06
1.74001e-07
1.3225e-06
1.73119e-07
1.27144e-06
1.66137e-07
1.21786e-06
1.53727e-07
1.16677e-06
1.35647e-07
1.12025e-06
1.1774e-07
1.07892e-06
1.02466e-07
1.04278e-06
8.97451e-08
1.01084e-06
8.05945e-08
9.81497e-07
7.45739e-08
9.53504e-07
6.99343e-08
9.26192e-07
6.58901e-08
8.99163e-07
6.24275e-08
8.72835e-07
5.90494e-08
8.48674e-07
5.37845e-08
8.27444e-07
4.71766e-08
8.08256e-07
4.3071e-08
7.90176e-07
4.12824e-08
7.73293e-07
3.88011e-08
7.5777e-07
3.5343e-08
7.43062e-07
3.266e-08
7.2857e-07
3.1819e-08
7.14587e-07
3.09394e-08
7.01639e-07
2.85182e-08
6.89614e-07
2.614e-08
6.78195e-07
2.50553e-08
6.67391e-07
2.3885e-08
6.57069e-07
2.25505e-08
6.47062e-07
2.19319e-08
6.37535e-07
2.11802e-08
6.28578e-07
2.00724e-08
6.19894e-07
1.96625e-08
6.1113e-07
2.01513e-08
6.02315e-07
2.04569e-08
5.9372e-07
1.98625e-08
5.85251e-07
1.93039e-08
5.76586e-07
1.94004e-08
5.67645e-07
1.98586e-08
5.58788e-07
1.96533e-08
5.50315e-07
1.86772e-08
5.42106e-07
1.79517e-08
5.33847e-07
1.83097e-08
5.25763e-07
1.82667e-08
5.18074e-07
1.74766e-08
5.10594e-07
1.68781e-08
5.03086e-07
1.68871e-08
4.95682e-07
1.67286e-08
4.88508e-07
1.59608e-08
4.81375e-07
1.54772e-08
4.74132e-07
1.57851e-08
4.67128e-07
1.52176e-08
4.60389e-07
1.44072e-08
4.53815e-07
1.39365e-08
4.47152e-07
1.44259e-08
4.40214e-07
1.58358e-08
4.33634e-07
1.4926e-08
4.27747e-07
1.2608e-08
4.22134e-07
1.16543e-08
4.1648e-07
1.18477e-08
4.10865e-07
1.18501e-08
4.05328e-07
1.19254e-08
4.00083e-07
1.11139e-08
3.94958e-07
1.08442e-08
3.8993e-07
1.0835e-08
3.85155e-07
1.02584e-08
3.80535e-07
9.84318e-09
3.76021e-07
9.68504e-09
3.71575e-07
9.6604e-09
3.67276e-07
9.35596e-09
3.63026e-07
9.33515e-09
3.58976e-07
8.7641e-09
3.54903e-07
8.87037e-09
3.50926e-07
8.65368e-09
3.46902e-07
8.86498e-09
3.43026e-07
8.42843e-09
3.39074e-07
8.57869e-09
3.3512e-07
8.68171e-09
3.31179e-07
8.62181e-09
3.27318e-07
8.46647e-09
3.2349e-07
8.31486e-09
3.19729e-07
8.16603e-09
3.159e-07
8.30814e-09
3.12208e-07
7.89805e-09
3.08353e-07
8.43266e-09
3.04752e-07
7.76205e-09
3.01121e-07
7.85147e-09
2.97716e-07
7.29522e-09
2.94259e-07
7.3217e-09
2.91192e-07
6.48435e-09
2.8803e-07
6.45118e-09
2.85228e-07
5.7334e-09
2.84635e-07
2.17478e-10
-1.12554e-09
1.47273e-06
3.03013e-07
1.48373e-06
3.59342e-07
1.49119e-06
3.20645e-07
1.49549e-06
2.37392e-07
1.50346e-06
1.50182e-07
1.51917e-06
1.23606e-07
1.53341e-06
1.45249e-07
1.53589e-06
1.7152e-07
1.52282e-06
1.86189e-07
1.49491e-06
1.94046e-07
1.45694e-06
1.91703e-07
1.41506e-06
1.77521e-07
1.3734e-06
1.59403e-07
1.33425e-06
1.41619e-07
1.29899e-06
1.25006e-07
1.26828e-06
1.11305e-07
1.24173e-06
1.01117e-07
1.2178e-06
9.38648e-08
1.19423e-06
8.94644e-08
1.16878e-06
8.7877e-08
1.14093e-06
8.6898e-08
1.11272e-06
8.19943e-08
1.08641e-06
7.3487e-08
1.06263e-06
6.68526e-08
1.04113e-06
6.27827e-08
1.02179e-06
5.81417e-08
1.00431e-06
5.28179e-08
9.87616e-07
4.93571e-08
9.7066e-07
4.87743e-08
9.53727e-07
4.78727e-08
9.37563e-07
4.46825e-08
9.22256e-07
4.14463e-08
9.07731e-07
3.95804e-08
8.94071e-07
3.75455e-08
8.80936e-07
3.56852e-08
8.68049e-07
3.48193e-08
8.5566e-07
3.35688e-08
8.44038e-07
3.16944e-08
8.33053e-07
3.06475e-08
8.22403e-07
3.08017e-08
8.11987e-07
3.08724e-08
8.01922e-07
2.99273e-08
7.91997e-07
2.92289e-08
7.81694e-07
2.97042e-08
7.70772e-07
3.07796e-08
7.59642e-07
3.07836e-08
7.48745e-07
2.95744e-08
7.38061e-07
2.86355e-08
7.27345e-07
2.90258e-08
7.16955e-07
2.86566e-08
7.07211e-07
2.72203e-08
6.97867e-07
2.62223e-08
6.88574e-07
2.61801e-08
6.79459e-07
2.58441e-08
6.70532e-07
2.48873e-08
6.61429e-07
2.45801e-08
6.51992e-07
2.52228e-08
6.42678e-07
2.45311e-08
6.33597e-07
2.3488e-08
6.24738e-07
2.2796e-08
6.15887e-07
2.32769e-08
6.06867e-07
2.48552e-08
5.9822e-07
2.35739e-08
5.90251e-07
2.05763e-08
5.82521e-07
1.93844e-08
5.74694e-07
1.96747e-08
5.66889e-07
1.96558e-08
5.5922e-07
1.95936e-08
5.51874e-07
1.84606e-08
5.44693e-07
1.80244e-08
5.37698e-07
1.78308e-08
5.31038e-07
1.6918e-08
5.24586e-07
1.62949e-08
5.18332e-07
1.59394e-08
5.12232e-07
1.57607e-08
5.0636e-07
1.5228e-08
5.00603e-07
1.50921e-08
4.95104e-07
1.42627e-08
4.89609e-07
1.43653e-08
4.84258e-07
1.40048e-08
4.78886e-07
1.42371e-08
4.7369e-07
1.3624e-08
4.68402e-07
1.38669e-08
4.63136e-07
1.39485e-08
4.57867e-07
1.38903e-08
4.52701e-07
1.36328e-08
4.47546e-07
1.34697e-08
4.42475e-07
1.32369e-08
4.3731e-07
1.34736e-08
4.3229e-07
1.29175e-08
4.27086e-07
1.3637e-08
4.22165e-07
1.26826e-08
4.17192e-07
1.28245e-08
4.12513e-07
1.19747e-08
4.07711e-07
1.21237e-08
4.03436e-07
1.07591e-08
3.98982e-07
1.0905e-08
3.94937e-07
9.77829e-09
3.93441e-07
1.71338e-09
5.52851e-11
1.55431e-06
2.91829e-07
1.56706e-06
3.46591e-07
1.57528e-06
3.12429e-07
1.57853e-06
2.34141e-07
1.58316e-06
1.45551e-07
1.59746e-06
1.09303e-07
1.61836e-06
1.24347e-07
1.63644e-06
1.53446e-07
1.64394e-06
1.78687e-07
1.63667e-06
2.01312e-07
1.61583e-06
2.12549e-07
1.58649e-06
2.06855e-07
1.55353e-06
1.92366e-07
1.52037e-06
1.74784e-07
1.48923e-06
1.56141e-07
1.46186e-06
1.38677e-07
1.43971e-06
1.23269e-07
1.42278e-06
1.1079e-07
1.40865e-06
1.03592e-07
1.39294e-06
1.03587e-07
1.37226e-06
1.07583e-07
1.34702e-06
1.07229e-07
1.31986e-06
1.00647e-07
1.29331e-06
9.34102e-08
1.26928e-06
8.68076e-08
1.2488e-06
7.86198e-08
1.23163e-06
6.99922e-08
1.21612e-06
6.48692e-08
1.20032e-06
6.45708e-08
1.18374e-06
6.44525e-08
1.16688e-06
6.1544e-08
1.15003e-06
5.82978e-08
1.13367e-06
5.59386e-08
1.1184e-06
5.28114e-08
1.10382e-06
5.02734e-08
1.08924e-06
4.93906e-08
1.07475e-06
4.80638e-08
1.06074e-06
4.57054e-08
1.04747e-06
4.39136e-08
1.0351e-06
4.31696e-08
1.0237e-06
4.22786e-08
1.01322e-06
4.04088e-08
1.00325e-06
3.91923e-08
9.93007e-07
3.99505e-08
9.81828e-07
4.1958e-08
9.69838e-07
4.27743e-08
9.57468e-07
4.19436e-08
9.44879e-07
4.12249e-08
9.32009e-07
4.18959e-08
9.19431e-07
4.12351e-08
9.07718e-07
3.89333e-08
8.96767e-07
3.71725e-08
8.86203e-07
3.67444e-08
8.76143e-07
3.59043e-08
8.66449e-07
3.45809e-08
8.56429e-07
3.46007e-08
8.45664e-07
3.59874e-08
8.34555e-07
3.56403e-08
8.23313e-07
3.47302e-08
8.12156e-07
3.39524e-08
8.01079e-07
3.43539e-08
7.90067e-07
3.58671e-08
7.79561e-07
3.40797e-08
7.69749e-07
3.03884e-08
7.60091e-07
2.90432e-08
7.50163e-07
2.96018e-08
7.40103e-07
2.9716e-08
7.30157e-07
2.95395e-08
7.20508e-07
2.81095e-08
7.11031e-07
2.75019e-08
7.0181e-07
2.70518e-08
6.93002e-07
2.57258e-08
6.84452e-07
2.48452e-08
6.76198e-07
2.41934e-08
6.68212e-07
2.37461e-08
6.60571e-07
2.28691e-08
6.53158e-07
2.25057e-08
6.461e-07
2.132e-08
6.39104e-07
2.13619e-08
6.32314e-07
2.07945e-08
6.25552e-07
2.09986e-08
6.1902e-07
2.01564e-08
6.12395e-07
2.04916e-08
6.05823e-07
2.0521e-08
5.99227e-07
2.04864e-08
5.92745e-07
2.01142e-08
5.86244e-07
1.99713e-08
5.79842e-07
1.96385e-08
5.73319e-07
1.99963e-08
5.66941e-07
1.92961e-08
5.60337e-07
2.02403e-08
5.54026e-07
1.89941e-08
5.47609e-07
1.92414e-08
5.41558e-07
1.80261e-08
5.35289e-07
1.83926e-08
5.29683e-07
1.63645e-08
5.23836e-07
1.67523e-08
5.18394e-07
1.52204e-08
5.15735e-07
4.37249e-09
2.32788e-09
1.64362e-06
2.79972e-07
1.65758e-06
3.32637e-07
1.66567e-06
3.04329e-07
1.66674e-06
2.3308e-07
1.66574e-06
1.46543e-07
1.67253e-06
1.02517e-07
1.68912e-06
1.07757e-07
1.71004e-06
1.32522e-07
1.72749e-06
1.61237e-07
1.73405e-06
1.94753e-07
1.72682e-06
2.1978e-07
1.70846e-06
2.25219e-07
1.68341e-06
2.17413e-07
1.65575e-06
2.02441e-07
1.62856e-06
1.83332e-07
1.60411e-06
1.63134e-07
1.58483e-06
1.42547e-07
1.57263e-06
1.22992e-07
1.56665e-06
1.09573e-07
1.5621e-06
1.08133e-07
1.55291e-06
1.16769e-07
1.53653e-06
1.23617e-07
1.514e-06
1.23171e-07
1.48808e-06
1.19329e-07
1.46253e-06
1.12358e-07
1.44067e-06
1.00479e-07
1.42376e-06
8.6904e-08
1.41059e-06
7.80413e-08
1.39863e-06
7.65329e-08
1.38612e-06
7.69593e-08
1.37242e-06
7.52422e-08
1.35717e-06
7.35494e-08
1.34108e-06
7.20333e-08
1.32583e-06
6.80564e-08
1.31169e-06
6.44176e-08
1.29757e-06
6.35076e-08
1.28286e-06
6.27793e-08
1.26768e-06
6.08763e-08
1.25251e-06
5.90884e-08
1.2382e-06
5.74755e-08
1.22567e-06
5.4814e-08
1.21519e-06
5.08867e-08
1.20631e-06
4.80753e-08
1.198e-06
4.82558e-08
1.18908e-06
5.08843e-08
1.17886e-06
5.29858e-08
1.16726e-06
5.35499e-08
1.15437e-06
5.411e-08
1.14037e-06
5.59013e-08
1.12608e-06
5.55233e-08
1.11245e-06
5.25599e-08
1.09984e-06
4.97887e-08
1.08812e-06
4.84561e-08
1.07764e-06
4.63928e-08
1.06828e-06
4.39361e-08
1.05906e-06
4.38258e-08
1.04894e-06
4.61064e-08
1.03771e-06
4.68679e-08
1.02532e-06
4.71181e-08
1.01222e-06
4.70532e-08
9.98885e-07
4.769e-08
9.85902e-07
4.88495e-08
9.73874e-07
4.61081e-08
9.62817e-07
4.14455e-08
9.51917e-07
3.99427e-08
9.40484e-07
4.10347e-08
9.28544e-07
4.16566e-08
9.16497e-07
4.15863e-08
9.04577e-07
4.00289e-08
8.92721e-07
3.93583e-08
8.8113e-07
3.86429e-08
8.69995e-07
3.68612e-08
8.59125e-07
3.57144e-08
8.4861e-07
3.47089e-08
8.38476e-07
3.38802e-08
8.28829e-07
3.25161e-08
8.1958e-07
3.17547e-08
8.10849e-07
3.00512e-08
8.02291e-07
2.99194e-08
7.94028e-07
2.90581e-08
7.85866e-07
2.91603e-08
7.78019e-07
2.80036e-08
7.70118e-07
2.83922e-08
7.6233e-07
2.83089e-08
7.54503e-07
2.83137e-08
7.46795e-07
2.78221e-08
7.39017e-07
2.77494e-08
7.31344e-07
2.73115e-08
7.23532e-07
2.78085e-08
7.15859e-07
2.69685e-08
7.0791e-07
2.81897e-08
7.00236e-07
2.66679e-08
6.92352e-07
2.71261e-08
6.84892e-07
2.54855e-08
6.77092e-07
2.61932e-08
6.70064e-07
2.33919e-08
6.62771e-07
2.4046e-08
6.55833e-07
2.21581e-08
6.51806e-07
8.39914e-09
5.85568e-09
1.73881e-06
2.66218e-07
1.7539e-06
3.1755e-07
1.76122e-06
2.97009e-07
1.75976e-06
2.34538e-07
1.75312e-06
1.53186e-07
1.75124e-06
1.04396e-07
1.75928e-06
9.97166e-08
1.77599e-06
1.15815e-07
1.79591e-06
1.41314e-07
1.81062e-06
1.80049e-07
1.81358e-06
2.16815e-07
1.80428e-06
2.34522e-07
1.78583e-06
2.35859e-07
1.76246e-06
2.25814e-07
1.73821e-06
2.0758e-07
1.71601e-06
1.85341e-07
1.69849e-06
1.60061e-07
1.68844e-06
1.33045e-07
1.6867e-06
1.11314e-07
1.68963e-06
1.052e-07
1.69011e-06
1.16288e-07
1.68322e-06
1.30506e-07
1.66812e-06
1.38273e-07
1.64621e-06
1.41237e-07
1.62106e-06
1.37507e-07
1.59758e-06
1.23965e-07
1.57926e-06
1.05216e-07
1.56666e-06
9.06495e-08
1.55783e-06
8.53595e-08
1.55041e-06
8.43743e-08
1.54256e-06
8.31002e-08
1.5323e-06
8.38067e-08
1.51911e-06
8.5218e-08
1.50544e-06
8.17329e-08
1.49322e-06
7.66357e-08
1.48161e-06
7.51209e-08
1.46902e-06
7.53657e-08
1.45492e-06
7.49802e-08
1.43931e-06
7.46954e-08
1.42324e-06
7.35403e-08
1.40886e-06
6.91941e-08
1.39769e-06
6.20569e-08
1.38973e-06
5.60386e-08
1.38409e-06
5.38952e-08
1.37937e-06
5.5602e-08
1.37395e-06
5.84058e-08
1.36644e-06
6.10679e-08
1.35619e-06
6.43556e-08
1.3433e-06
6.87899e-08
1.32877e-06
7.00502e-08
1.31383e-06
6.75068e-08
1.29942e-06
6.42004e-08
1.28607e-06
6.1804e-08
1.27468e-06
5.77808e-08
1.26574e-06
5.28723e-08
1.25855e-06
5.10168e-08
1.25162e-06
5.30399e-08
1.24346e-06
5.50282e-08
1.23268e-06
5.78978e-08
1.2192e-06
6.053e-08
1.20393e-06
6.29604e-08
1.18872e-06
6.40633e-08
1.17516e-06
5.96648e-08
1.16348e-06
5.31308e-08
1.15245e-06
5.09682e-08
1.1408e-06
5.26878e-08
1.12809e-06
5.43611e-08
1.11476e-06
5.49188e-08
1.10111e-06
5.36832e-08
1.08716e-06
5.33065e-08
1.07332e-06
5.24776e-08
1.05991e-06
5.02767e-08
1.04669e-06
4.89295e-08
1.03377e-06
4.76335e-08
1.02125e-06
4.63992e-08
1.00933e-06
4.44368e-08
9.98015e-07
4.30682e-08
9.87457e-07
4.06096e-08
9.77283e-07
4.00928e-08
9.67545e-07
3.87965e-08
9.58006e-07
3.86984e-08
9.48887e-07
3.71236e-08
9.39802e-07
3.74765e-08
9.30961e-07
3.71507e-08
9.22112e-07
3.71627e-08
9.134e-07
3.65335e-08
9.04544e-07
3.66055e-08
8.95762e-07
3.60935e-08
8.86823e-07
3.67475e-08
8.78038e-07
3.5753e-08
8.68938e-07
3.72903e-08
8.60089e-07
3.55167e-08
8.50858e-07
3.63568e-08
8.42068e-07
3.42757e-08
8.32772e-07
3.54893e-08
8.24296e-07
3.18682e-08
8.15566e-07
3.27761e-08
8.07122e-07
3.06015e-08
8.01598e-07
1.39231e-08
1.07556e-08
1.83655e-06
2.50425e-07
1.85258e-06
3.01527e-07
1.85845e-06
2.91138e-07
1.85406e-06
2.38926e-07
1.84206e-06
1.65188e-07
1.83205e-06
1.14408e-07
1.83068e-06
1.01078e-07
1.83986e-06
1.06634e-07
1.85748e-06
1.23695e-07
1.87623e-06
1.61308e-07
1.88699e-06
2.06053e-07
1.88563e-06
2.3588e-07
1.87329e-06
2.48201e-07
1.85395e-06
2.45146e-07
1.83262e-06
2.28914e-07
1.813e-06
2.04961e-07
1.79766e-06
1.75396e-07
1.78919e-06
1.41524e-07
1.78908e-06
1.11423e-07
1.79516e-06
9.91218e-08
1.80075e-06
1.10695e-07
1.80003e-06
1.31225e-07
1.79137e-06
1.46932e-07
1.77491e-06
1.57694e-07
1.75235e-06
1.60069e-07
1.72817e-06
1.48146e-07
1.70736e-06
1.26025e-07
1.69267e-06
1.05342e-07
1.68392e-06
9.41046e-08
1.6793e-06
8.89997e-08
1.67673e-06
8.56656e-08
1.673e-06
8.75338e-08
1.66495e-06
9.32664e-08
1.65412e-06
9.25646e-08
1.64448e-06
8.62741e-08
1.63639e-06
8.32164e-08
1.62739e-06
8.4367e-08
1.61628e-06
8.60892e-08
1.60244e-06
8.85317e-08
1.58591e-06
9.00707e-08
1.5694e-06
8.57085e-08
1.5564e-06
7.50534e-08
1.54809e-06
6.43519e-08
1.54405e-06
5.79369e-08
1.54345e-06
5.62004e-08
1.5444e-06
5.74534e-08
1.54393e-06
6.15348e-08
1.53975e-06
6.85374e-08
1.53118e-06
7.73617e-08
1.5191e-06
8.21315e-08
1.50463e-06
8.19741e-08
1.48907e-06
7.97667e-08
1.47368e-06
7.71933e-08
1.46015e-06
7.1302e-08
1.45002e-06
6.30045e-08
1.44393e-06
5.71117e-08
1.44122e-06
5.57468e-08
1.43957e-06
5.668e-08
1.43506e-06
6.24077e-08
1.42515e-06
7.04424e-08
1.40981e-06
7.82973e-08
1.39225e-06
8.16273e-08
1.37638e-06
7.55298e-08
1.3639e-06
6.56093e-08
1.35363e-06
6.12409e-08
1.34344e-06
6.28804e-08
1.33189e-06
6.59112e-08
1.31898e-06
6.78247e-08
1.30496e-06
6.77045e-08
1.28987e-06
6.83914e-08
1.2744e-06
6.79484e-08
1.25915e-06
6.5533e-08
1.24395e-06
6.41234e-08
1.22881e-06
6.27764e-08
1.21387e-06
6.1338e-08
1.19947e-06
5.884e-08
1.18583e-06
5.67087e-08
1.17321e-06
5.32237e-08
1.16132e-06
5.19834e-08
1.15013e-06
4.99857e-08
1.1393e-06
4.95288e-08
1.12898e-06
4.74502e-08
1.11878e-06
4.76721e-08
1.10905e-06
4.68823e-08
1.09946e-06
4.67501e-08
1.09012e-06
4.58782e-08
1.08056e-06
4.61635e-08
1.07098e-06
4.56784e-08
1.06116e-06
4.65629e-08
1.05154e-06
4.53768e-08
1.04162e-06
4.72087e-08
1.03198e-06
4.51545e-08
1.02175e-06
4.65906e-08
1.01189e-06
4.4127e-08
1.00131e-06
4.60761e-08
9.91469e-07
4.17067e-08
9.81393e-07
4.28521e-08
9.71549e-07
4.04457e-08
9.64525e-07
2.09478e-08
1.70735e-08
1.93312e-06
2.34031e-07
1.9491e-06
2.85545e-07
1.95288e-06
2.87358e-07
1.94531e-06
2.46492e-07
1.9286e-06
1.81901e-07
1.91188e-06
1.31125e-07
1.90212e-06
1.10847e-07
1.90278e-06
1.0597e-07
1.91502e-06
1.11457e-07
1.93442e-06
1.41909e-07
1.95079e-06
1.89678e-07
1.95641e-06
2.30261e-07
1.95006e-06
2.54551e-07
1.93543e-06
2.59776e-07
1.91829e-06
2.46052e-07
1.90286e-06
2.20393e-07
1.89127e-06
1.86987e-07
1.88524e-06
1.47559e-07
1.88587e-06
1.10791e-07
1.89206e-06
9.29307e-08
1.89858e-06
1.04176e-07
1.89994e-06
1.2986e-07
1.89495e-06
1.51923e-07
1.88354e-06
1.69105e-07
1.86511e-06
1.78499e-07
1.84201e-06
1.71249e-07
1.81913e-06
1.48905e-07
1.80087e-06
1.236e-07
1.78935e-06
1.05625e-07
1.78413e-06
9.42196e-08
1.7839e-06
8.58921e-08
1.78559e-06
8.5843e-08
1.78346e-06
9.54041e-08
1.77627e-06
9.97512e-08
1.76928e-06
9.32586e-08
1.76478e-06
8.7724e-08
1.75948e-06
8.96652e-08
1.75174e-06
9.38317e-08
1.74117e-06
9.90934e-08
1.72614e-06
1.05103e-07
1.70825e-06
1.03605e-07
1.69291e-06
9.03911e-08
1.6831e-06
7.41623e-08
1.67878e-06
6.22522e-08
1.68019e-06
5.47928e-08
1.68656e-06
5.10863e-08
1.69405e-06
5.40454e-08
1.69816e-06
6.442e-08
1.69666e-06
7.88618e-08
1.69e-06
8.87986e-08
1.67879e-06
9.31797e-08
1.66394e-06
9.46163e-08
1.64714e-06
9.39934e-08
1.63079e-06
8.76536e-08
1.61727e-06
7.65253e-08
1.60903e-06
6.53504e-08
1.60809e-06
5.66894e-08
1.61367e-06
5.10945e-08
1.61992e-06
5.61642e-08
1.61972e-06
7.06357e-08
1.60907e-06
8.89497e-08
1.59066e-06
1.00036e-07
1.57144e-06
9.47537e-08
1.55664e-06
8.04118e-08
1.54667e-06
7.12079e-08
1.53902e-06
7.0534e-08
1.53074e-06
7.41829e-08
1.52067e-06
7.7895e-08
1.50859e-06
7.97913e-08
1.49426e-06
8.27205e-08
1.47848e-06
8.37307e-08
1.46233e-06
8.1678e-08
1.44605e-06
8.03989e-08
1.42948e-06
7.93555e-08
1.41258e-06
7.82337e-08
1.39577e-06
7.56462e-08
1.37964e-06
7.28426e-08
1.36469e-06
6.81769e-08
1.35086e-06
6.58126e-08
1.3382e-06
6.26457e-08
1.32625e-06
6.14802e-08
1.31488e-06
5.88179e-08
1.30362e-06
5.89315e-08
1.29306e-06
5.74423e-08
1.28296e-06
5.68488e-08
1.27343e-06
5.54134e-08
1.26374e-06
5.58465e-08
1.25388e-06
5.55359e-08
1.24356e-06
5.68919e-08
1.23339e-06
5.55409e-08
1.22304e-06
5.75615e-08
1.21316e-06
5.50306e-08
1.20253e-06
5.72242e-08
1.19216e-06
5.44973e-08
1.18075e-06
5.74836e-08
1.16983e-06
5.26279e-08
1.1586e-06
5.40796e-08
1.14757e-06
5.14777e-08
1.13923e-06
2.92909e-08
2.47223e-08
2.02447e-06
2.19532e-07
2.03884e-06
2.71176e-07
2.04014e-06
2.86055e-07
2.02972e-06
2.56911e-07
2.00968e-06
2.01943e-07
1.98857e-06
1.52237e-07
1.97268e-06
1.26732e-07
1.96563e-06
1.13021e-07
1.97091e-06
1.06184e-07
1.98795e-06
1.24862e-07
2.00721e-06
1.7042e-07
2.01818e-06
2.19288e-07
2.01755e-06
2.55182e-07
2.00871e-06
2.68617e-07
1.99785e-06
2.5691e-07
1.98894e-06
2.29308e-07
1.98293e-06
1.92998e-07
1.98027e-06
1.50212e-07
1.98119e-06
1.09879e-07
1.98537e-06
8.87432e-08
1.98989e-06
9.96548e-08
1.99049e-06
1.29261e-07
1.98683e-06
1.55584e-07
1.97945e-06
1.76489e-07
1.96584e-06
1.92108e-07
1.94553e-06
1.91563e-07
1.92207e-06
1.72357e-07
1.90048e-06
1.45195e-07
1.88506e-06
1.21045e-07
1.87712e-06
1.02159e-07
1.8762e-06
8.68127e-08
1.88061e-06
8.14372e-08
1.88353e-06
9.24802e-08
1.88014e-06
1.03141e-07
1.87561e-06
9.77895e-08
1.87436e-06
8.8971e-08
1.87217e-06
9.18564e-08
1.86671e-06
9.92885e-08
1.85936e-06
1.06452e-07
1.84743e-06
1.17032e-07
1.82967e-06
1.2136e-07
1.81248e-06
1.07585e-07
1.80106e-06
8.55757e-08
1.79532e-06
6.80004e-08
1.7961e-06
5.40081e-08
1.80505e-06
4.21361e-08
1.81897e-06
4.01256e-08
1.83139e-06
5.19993e-08
1.83788e-06
7.23744e-08
1.83833e-06
8.83464e-08
1.83289e-06
9.86163e-08
1.82125e-06
1.06262e-07
1.80473e-06
1.10509e-07
1.78622e-06
1.06165e-07
1.76843e-06
9.43216e-08
1.75477e-06
7.90099e-08
1.75043e-06
6.10254e-08
1.75938e-06
4.21423e-08
1.77715e-06
3.83934e-08
1.79225e-06
5.5539e-08
1.7934e-06
8.77965e-08
1.77866e-06
1.14778e-07
1.7564e-06
1.17017e-07
1.73701e-06
9.98007e-08
1.72506e-06
8.31583e-08
1.71927e-06
7.632e-08
1.71542e-06
7.80335e-08
1.71035e-06
8.29702e-08
1.70284e-06
8.72946e-08
1.69197e-06
9.35957e-08
1.67804e-06
9.76596e-08
1.66251e-06
9.72086e-08
1.64651e-06
9.63947e-08
1.62994e-06
9.59249e-08
1.61232e-06
9.58522e-08
1.59381e-06
9.41595e-08
1.57539e-06
9.1264e-08
1.55794e-06
8.56307e-08
1.54182e-06
8.19273e-08
1.52748e-06
7.69915e-08
1.51459e-06
7.43677e-08
1.50257e-06
7.08399e-08
1.4904e-06
7.10942e-08
1.47895e-06
6.88993e-08
1.46833e-06
6.74666e-08
1.4589e-06
6.48413e-08
1.44976e-06
6.4989e-08
1.44046e-06
6.48302e-08
1.43022e-06
6.71387e-08
1.41981e-06
6.59444e-08
1.40929e-06
6.80841e-08
1.39972e-06
6.45985e-08
1.38948e-06
6.74634e-08
1.37942e-06
6.45571e-08
1.36802e-06
6.88857e-08
1.35661e-06
6.40359e-08
1.34459e-06
6.6102e-08
1.33263e-06
6.34386e-08
1.32334e-06
3.85811e-08
3.3411e-08
2.10679e-06
2.09008e-07
2.11831e-06
2.59649e-07
2.11748e-06
2.86894e-07
2.1054e-06
2.6899e-07
2.08425e-06
2.23091e-07
2.06174e-06
1.74741e-07
2.04289e-06
1.45583e-07
2.03045e-06
1.25469e-07
2.02881e-06
1.07822e-07
2.04106e-06
1.12614e-07
2.05985e-06
1.51629e-07
2.07377e-06
2.05367e-07
2.07835e-06
2.50606e-07
2.07641e-06
2.70552e-07
2.07371e-06
2.59609e-07
2.07309e-06
2.29924e-07
2.07362e-06
1.92473e-07
2.07432e-06
1.49514e-07
2.0746e-06
1.09594e-07
2.07507e-06
8.82759e-08
2.07585e-06
9.88744e-08
2.07453e-06
1.30584e-07
2.07123e-06
1.58881e-07
2.0671e-06
1.8062e-07
2.05828e-06
2.00933e-07
2.04173e-06
2.08105e-07
2.01944e-06
1.94653e-07
1.99605e-06
1.68584e-07
1.97752e-06
1.39576e-07
1.96686e-06
1.1282e-07
1.96377e-06
8.98984e-08
1.96817e-06
7.70357e-08
1.97428e-06
8.63726e-08
1.97421e-06
1.03212e-07
1.97175e-06
1.00244e-07
1.97331e-06
8.74188e-08
1.97359e-06
9.15688e-08
1.96891e-06
1.03975e-07
1.96349e-06
1.11873e-07
1.95538e-06
1.25139e-07
1.93946e-06
1.37275e-07
1.92159e-06
1.25456e-07
1.90945e-06
9.77207e-08
1.90242e-06
7.50267e-08
1.90087e-06
5.55588e-08
1.90931e-06
3.37019e-08
1.92675e-06
2.26764e-08
1.94564e-06
3.31167e-08
1.95902e-06
5.89888e-08
1.96622e-06
8.11488e-08
1.96752e-06
9.73156e-08
1.96104e-06
1.12748e-07
1.94673e-06
1.24815e-07
1.92763e-06
1.25269e-07
1.90651e-06
1.15434e-07
1.88645e-06
9.90778e-08
1.87417e-06
7.33017e-08
1.87977e-06
3.65462e-08
1.90465e-06
1.35126e-08
1.93636e-06
2.38245e-08
1.9557e-06
6.84549e-08
1.95143e-06
1.19052e-07
1.92909e-06
1.39355e-07
1.90379e-06
1.25097e-07
1.88663e-06
1.00323e-07
1.88013e-06
8.2821e-08
1.88e-06
7.81604e-08
1.88064e-06
8.23275e-08
1.87942e-06
8.85144e-08
1.87457e-06
9.84508e-08
1.86517e-06
1.07057e-07
1.85221e-06
1.10166e-07
1.83805e-06
1.10556e-07
1.82332e-06
1.10662e-07
1.80696e-06
1.12204e-07
1.78827e-06
1.12854e-07
1.76844e-06
1.11099e-07
1.74877e-06
1.05291e-07
1.73012e-06
1.0058e-07
1.71358e-06
9.35336e-08
1.69969e-06
8.82542e-08
1.68762e-06
8.29124e-08
1.67508e-06
8.36306e-08
1.66272e-06
8.12636e-08
1.65129e-06
7.88956e-08
1.64185e-06
7.4284e-08
1.63365e-06
7.31842e-08
1.62597e-06
7.25124e-08
1.61683e-06
7.62751e-08
1.60664e-06
7.61356e-08
1.59597e-06
7.87576e-08
1.58696e-06
7.36073e-08
1.57787e-06
7.65529e-08
1.56909e-06
7.33341e-08
1.55886e-06
7.91215e-08
1.54801e-06
7.48875e-08
1.53586e-06
7.82478e-08
1.5232e-06
7.60993e-08
1.5134e-06
4.83851e-08
4.263e-08
2.17858e-06
2.0297e-07
2.18723e-06
2.51001e-07
2.18547e-06
2.88645e-07
2.17364e-06
2.8083e-07
2.15397e-06
2.42759e-07
2.13313e-06
1.95583e-07
2.11468e-06
1.64032e-07
2.1001e-06
1.40045e-07
2.09311e-06
1.14812e-07
2.09916e-06
1.06566e-07
2.11435e-06
1.36437e-07
2.12873e-06
1.90991e-07
2.13788e-06
2.41455e-07
2.14331e-06
2.6512e-07
2.1491e-06
2.53818e-07
2.15656e-06
2.22467e-07
2.16275e-06
1.86275e-07
2.16556e-06
1.46707e-07
2.16411e-06
1.1104e-07
2.15995e-06
9.24381e-08
2.15656e-06
1.02271e-07
2.15358e-06
1.33558e-07
2.15076e-06
1.61698e-07
2.14931e-06
1.8207e-07
2.14455e-06
2.05698e-07
2.13182e-06
2.20836e-07
2.1121e-06
2.14371e-07
2.0892e-06
1.91488e-07
2.06972e-06
1.59054e-07
2.05803e-06
1.24502e-07
2.05312e-06
9.48114e-08
2.05577e-06
7.43865e-08
2.06295e-06
7.91962e-08
2.06527e-06
1.00891e-07
2.06429e-06
1.01223e-07
2.06795e-06
8.37566e-08
2.07023e-06
8.92874e-08
2.06526e-06
1.08947e-07
2.06031e-06
1.16822e-07
2.05602e-06
1.29434e-07
2.04341e-06
1.49885e-07
2.02625e-06
1.42618e-07
2.01458e-06
1.09386e-07
2.00727e-06
8.23318e-08
2.00295e-06
5.98875e-08
2.00867e-06
2.79828e-08
2.02672e-06
4.6205e-09
2.04954e-06
1.02953e-08
2.06772e-06
4.0813e-08
2.07971e-06
6.91603e-08
2.08686e-06
9.01652e-08
2.08619e-06
1.13416e-07
2.07547e-06
1.35533e-07
2.05731e-06
1.43431e-07
2.03472e-06
1.38023e-07
2.00976e-06
1.24042e-07
1.98818e-06
9.48819e-08
1.98469e-06
4.0028e-08
2.00936e-06
-1.11489e-08
2.05366e-06
-2.04742e-08
2.09344e-06
2.86743e-08
2.10586e-06
1.06626e-07
2.08839e-06
1.56825e-07
2.05798e-06
1.55512e-07
2.03317e-06
1.25132e-07
2.02266e-06
9.33259e-08
2.02407e-06
7.67546e-08
2.02935e-06
7.70434e-08
2.03406e-06
8.3808e-08
2.0362e-06
9.6314e-08
2.03352e-06
1.09737e-07
2.02517e-06
1.18512e-07
2.01425e-06
1.21472e-07
2.00299e-06
1.21926e-07
1.9902e-06
1.24991e-07
1.97354e-06
1.29517e-07
1.95388e-06
1.30761e-07
1.933e-06
1.26166e-07
1.91209e-06
1.21494e-07
1.89275e-06
1.12873e-07
1.87725e-06
1.03755e-07
1.86563e-06
9.45255e-08
1.85376e-06
9.55055e-08
1.8409e-06
9.41276e-08
1.82833e-06
9.14642e-08
1.81828e-06
8.43323e-08
1.81072e-06
8.07384e-08
1.80546e-06
7.77728e-08
1.79894e-06
8.27939e-08
1.78991e-06
8.51696e-08
1.77897e-06
8.96956e-08
1.77021e-06
8.23727e-08
1.76265e-06
8.41128e-08
1.75596e-06
8.00234e-08
1.74811e-06
8.69679e-08
1.73929e-06
8.37104e-08
1.72826e-06
8.9277e-08
1.71515e-06
8.92108e-08
1.70507e-06
5.84625e-08
5.17683e-08
2.24295e-06
2.00369e-07
2.24972e-06
2.44236e-07
2.24871e-06
2.89649e-07
2.23903e-06
2.90514e-07
2.22293e-06
2.58862e-07
2.206e-06
2.12505e-07
2.19068e-06
1.79354e-07
2.17722e-06
1.53502e-07
2.16736e-06
1.24674e-07
2.16735e-06
1.06584e-07
2.17725e-06
1.26531e-07
2.19033e-06
1.77916e-07
2.20303e-06
2.28748e-07
2.2147e-06
2.53454e-07
2.2269e-06
2.41618e-07
2.23977e-06
2.096e-07
2.24913e-06
1.76914e-07
2.25231e-06
1.43522e-07
2.24874e-06
1.14607e-07
2.2406e-06
1.00585e-07
2.23403e-06
1.08839e-07
2.23046e-06
1.37133e-07
2.22842e-06
1.63736e-07
2.22876e-06
1.81733e-07
2.22666e-06
2.07794e-07
2.21704e-06
2.30455e-07
2.20089e-06
2.30523e-07
2.18093e-06
2.11447e-07
2.16325e-06
1.76732e-07
2.15296e-06
1.34798e-07
2.14769e-06
1.00082e-07
2.14804e-06
7.40334e-08
2.15456e-06
7.26767e-08
2.15816e-06
9.72925e-08
2.1578e-06
1.0158e-07
2.16251e-06
7.90446e-08
2.16628e-06
8.55225e-08
2.16072e-06
1.14504e-07
2.15534e-06
1.22201e-07
2.15452e-06
1.30256e-07
2.14624e-06
1.58163e-07
2.13098e-06
1.5788e-07
2.12075e-06
1.19619e-07
2.11422e-06
8.88552e-08
2.10749e-06
6.66171e-08
2.10945e-06
2.60241e-08
2.12591e-06
-1.18345e-08
2.15037e-06
-1.41696e-08
2.17137e-06
1.98214e-08
2.18582e-06
5.4705e-08
2.19672e-06
7.92641e-08
2.20119e-06
1.08948e-07
2.19462e-06
1.42102e-07
2.17849e-06
1.59564e-07
2.15606e-06
1.60452e-07
2.12879e-06
1.51307e-07
2.09971e-06
1.23961e-07
2.08496e-06
5.4786e-08
2.10297e-06
-2.91649e-08
2.15267e-06
-7.01739e-08
2.21005e-06
-2.87015e-08
2.24208e-06
7.45925e-08
2.23424e-06
1.64665e-07
2.20125e-06
1.88498e-07
2.16839e-06
1.57999e-07
2.15155e-06
1.10162e-07
2.15206e-06
7.62474e-08
2.15989e-06
6.92109e-08
2.16818e-06
7.55234e-08
2.17578e-06
8.87072e-08
2.18029e-06
1.05229e-07
2.17799e-06
1.20809e-07
2.1713e-06
1.28165e-07
2.16447e-06
1.28759e-07
2.15716e-06
1.32298e-07
2.1449e-06
1.41776e-07
2.12736e-06
1.48305e-07
2.10679e-06
1.46737e-07
2.08472e-06
1.43562e-07
2.06246e-06
1.35129e-07
2.04421e-06
1.22009e-07
2.03297e-06
1.05765e-07
2.02306e-06
1.05419e-07
2.01074e-06
1.0644e-07
1.9971e-06
1.05106e-07
1.98579e-06
9.5642e-08
1.97773e-06
8.88057e-08
1.97475e-06
8.07523e-08
1.97242e-06
8.51175e-08
1.96626e-06
9.1328e-08
1.95525e-06
1.00714e-07
1.94581e-06
9.18043e-08
1.93951e-06
9.04157e-08
1.93524e-06
8.42968e-08
1.93057e-06
9.16406e-08
1.92527e-06
8.90015e-08
1.91734e-06
9.72165e-08
1.90435e-06
1.02191e-07
1.89383e-06
6.89839e-08
6.03721e-08
2.3071e-06
1.99558e-07
2.31316e-06
2.3818e-07
2.31421e-06
2.88598e-07
2.30787e-06
2.9685e-07
2.29628e-06
2.70452e-07
2.28421e-06
2.24577e-07
2.27339e-06
1.90177e-07
2.26324e-06
1.63647e-07
2.25309e-06
1.34827e-07
2.24868e-06
1.10991e-07
2.25355e-06
1.21664e-07
2.26444e-06
1.67025e-07
2.27892e-06
2.14269e-07
2.29396e-06
2.38413e-07
2.30877e-06
2.26804e-07
2.3232e-06
1.95174e-07
2.33292e-06
1.67198e-07
2.33536e-06
1.41073e-07
2.33056e-06
1.19412e-07
2.3206e-06
1.1055e-07
2.31276e-06
1.1667e-07
2.30954e-06
1.40356e-07
2.30801e-06
1.65269e-07
2.30869e-06
1.81051e-07
2.30753e-06
2.08959e-07
2.30006e-06
2.37916e-07
2.28808e-06
2.42507e-07
2.27312e-06
2.26407e-07
2.25965e-06
1.90199e-07
2.25282e-06
1.41632e-07
2.24886e-06
1.04037e-07
2.24732e-06
7.55737e-08
2.25217e-06
6.78256e-08
2.256e-06
9.34641e-08
2.25526e-06
1.02318e-07
2.25967e-06
7.46371e-08
2.26425e-06
8.09463e-08
2.25842e-06
1.20331e-07
2.25249e-06
1.2813e-07
2.2547e-06
1.28046e-07
2.25123e-06
1.61631e-07
2.23863e-06
1.70478e-07
2.23024e-06
1.28012e-07
2.22516e-06
9.39358e-08
2.21673e-06
7.50479e-08
2.21478e-06
2.79773e-08
2.2282e-06
-2.52532e-08
2.25247e-06
-3.84432e-08
2.27496e-06
-2.67335e-09
2.29016e-06
3.95077e-08
2.30247e-06
6.69513e-08
2.3105e-06
1.00918e-07
2.30793e-06
1.44678e-07
2.29455e-06
1.72942e-07
2.2734e-06
1.81601e-07
2.24616e-06
1.7855e-07
2.21292e-06
1.57194e-07
2.18809e-06
7.96207e-08
2.19624e-06
-3.73159e-08
2.2443e-06
-1.18236e-07
2.31298e-06
-9.73797e-08
2.36338e-06
2.41939e-08
2.36787e-06
1.60173e-07
2.33536e-06
2.21011e-07
2.29609e-06
1.97272e-07
2.27255e-06
1.33696e-07
2.27059e-06
7.82157e-08
2.27896e-06
6.08364e-08
2.28761e-06
6.68686e-08
2.29715e-06
7.91718e-08
2.30712e-06
9.52609e-08
2.31108e-06
1.16851e-07
2.30899e-06
1.30254e-07
2.3067e-06
1.31048e-07
2.30586e-06
1.33136e-07
2.29989e-06
1.4774e-07
2.28622e-06
1.61975e-07
2.26742e-06
1.65546e-07
2.24588e-06
1.65102e-07
2.22162e-06
1.59384e-07
2.19952e-06
1.44111e-07
2.18771e-06
1.17573e-07
2.18078e-06
1.12351e-07
2.17053e-06
1.16694e-07
2.15648e-06
1.19155e-07
2.14384e-06
1.08283e-07
2.1338e-06
9.88394e-08
2.13158e-06
8.29747e-08
2.13424e-06
8.24524e-08
2.13327e-06
9.23053e-08
2.12316e-06
1.10817e-07
2.11188e-06
1.03085e-07
2.10586e-06
9.64407e-08
2.1038e-06
8.63527e-08
2.10224e-06
9.31989e-08
2.10122e-06
9.00209e-08
2.09879e-06
9.96517e-08
2.08733e-06
1.13655e-07
2.07585e-06
8.04604e-08
6.84188e-08
2.37888e-06
1.99192e-07
2.38492e-06
2.32144e-07
2.38852e-06
2.84992e-07
2.38575e-06
2.99626e-07
2.37849e-06
2.7771e-07
2.37095e-06
2.32118e-07
2.3645e-06
1.96622e-07
2.35833e-06
1.69816e-07
2.34984e-06
1.4332e-07
2.34348e-06
1.17357e-07
2.34479e-06
1.20352e-07
2.3531e-06
1.58712e-07
2.36712e-06
2.00254e-07
2.38221e-06
2.23317e-07
2.3961e-06
2.12916e-07
2.40899e-06
1.82282e-07
2.41729e-06
1.58904e-07
2.41895e-06
1.39408e-07
2.41456e-06
1.23803e-07
2.40536e-06
1.19749e-07
2.39801e-06
1.24021e-07
2.39536e-06
1.43006e-07
2.39343e-06
1.67198e-07
2.39292e-06
1.81563e-07
2.39123e-06
2.10648e-07
2.3852e-06
2.43945e-07
2.3776e-06
2.50109e-07
2.36871e-06
2.35298e-07
2.36074e-06
1.98169e-07
2.35834e-06
1.44025e-07
2.35683e-06
1.05551e-07
2.35427e-06
7.81364e-08
2.35715e-06
6.49452e-08
2.36042e-06
9.01874e-08
2.35842e-06
1.04321e-07
2.36122e-06
7.1841e-08
2.36584e-06
7.63216e-08
2.36038e-06
1.25795e-07
2.35439e-06
1.34122e-07
2.35911e-06
1.2332e-07
2.3603e-06
1.60439e-07
2.35059e-06
1.8019e-07
2.34388e-06
1.34726e-07
2.34044e-06
9.73728e-08
2.33113e-06
8.43566e-08
2.32575e-06
3.33632e-08
2.33529e-06
-3.47977e-08
2.35782e-06
-6.09768e-08
2.381e-06
-2.5851e-08
2.39606e-06
2.44509e-08
2.4079e-06
5.51062e-08
2.41763e-06
9.11941e-08
2.41834e-06
1.43962e-07
2.40824e-06
1.83044e-07
2.38922e-06
2.00627e-07
2.3636e-06
2.04163e-07
2.32963e-06
1.91163e-07
2.29777e-06
1.11486e-07
2.29599e-06
-3.55338e-08
2.33753e-06
-1.59782e-07
2.41022e-06
-1.70067e-07
2.47458e-06
-4.0167e-08
2.4915e-06
1.4325e-07
2.46197e-06
2.50545e-07
2.4193e-06
2.39945e-07
2.39061e-06
1.62378e-07
2.38571e-06
8.3121e-08
2.39324e-06
5.33044e-08
2.39945e-06
6.06622e-08
2.40689e-06
7.17304e-08
2.41913e-06
8.3021e-08
2.42821e-06
1.07767e-07
2.4305e-06
1.27964e-07
2.43223e-06
1.29324e-07
2.43776e-06
1.27601e-07
2.43899e-06
1.46507e-07
2.43031e-06
1.70657e-07
2.41409e-06
1.81772e-07
2.39459e-06
1.84599e-07
2.37032e-06
1.83657e-07
2.34413e-06
1.70299e-07
2.33026e-06
1.31447e-07
2.32659e-06
1.16013e-07
2.31986e-06
1.23431e-07
2.30639e-06
1.32624e-07
2.29326e-06
1.21412e-07
2.28052e-06
1.11582e-07
2.27652e-06
8.69753e-08
2.2834e-06
7.55678e-08
2.28972e-06
8.59848e-08
2.28249e-06
1.18044e-07
2.26844e-06
1.1714e-07
2.26119e-06
1.03693e-07
2.2609e-06
8.66429e-08
2.26166e-06
9.24364e-08
2.26413e-06
8.75477e-08
2.26913e-06
9.46502e-08
2.26157e-06
1.21214e-07
2.24873e-06
9.33017e-08
7.63953e-08
2.46343e-06
1.98486e-07
2.46957e-06
2.26002e-07
2.4755e-06
2.79056e-07
2.47582e-06
2.99313e-07
2.47207e-06
2.81456e-07
2.46803e-06
2.36158e-07
2.46486e-06
1.99788e-07
2.4621e-06
1.72576e-07
2.45622e-06
1.49206e-07
2.44999e-06
1.2358e-07
2.44938e-06
1.20969e-07
2.45503e-06
1.53058e-07
2.46689e-06
1.88397e-07
2.47987e-06
2.10334e-07
2.49108e-06
2.01711e-07
2.50112e-06
1.72237e-07
2.50753e-06
1.52493e-07
2.50893e-06
1.38013e-07
2.50625e-06
1.26477e-07
2.49955e-06
1.2645e-07
2.49352e-06
1.30056e-07
2.49102e-06
1.45503e-07
2.4878e-06
1.70414e-07
2.48519e-06
1.84173e-07
2.48232e-06
2.13526e-07
2.47741e-06
2.48856e-07
2.47392e-06
2.536e-07
2.47088e-06
2.38331e-07
2.46826e-06
2.00793e-07
2.46997e-06
1.42317e-07
2.47113e-06
1.0439e-07
2.46842e-06
8.08453e-08
2.4695e-06
6.38636e-08
2.4718e-06
8.78903e-08
2.46807e-06
1.08046e-07
2.46842e-06
7.14922e-08
2.47244e-06
7.23022e-08
2.46804e-06
1.30194e-07
2.46278e-06
1.39385e-07
2.46937e-06
1.16727e-07
2.47446e-06
1.55349e-07
2.46736e-06
1.87292e-07
2.46174e-06
1.40347e-07
2.45978e-06
9.93309e-08
2.45048e-06
9.3657e-08
2.44261e-06
4.12325e-08
2.44798e-06
-4.01707e-08
2.46739e-06
-8.03864e-08
2.4905e-06
-4.89556e-08
2.50506e-06
9.89042e-09
2.51526e-06
4.4904e-08
2.525e-06
8.14507e-08
2.52793e-06
1.41037e-07
2.52135e-06
1.89622e-07
2.50524e-06
2.16738e-07
2.48234e-06
2.27065e-07
2.45053e-06
2.22964e-07
2.41518e-06
1.46844e-07
2.40529e-06
-2.5643e-08
2.43781e-06
-1.92309e-07
2.50789e-06
-2.40148e-07
2.58023e-06
-1.12499e-07
2.60763e-06
1.15843e-07
2.58276e-06
2.7542e-07
2.5402e-06
2.82501e-07
2.50907e-06
1.93509e-07
2.50145e-06
9.07395e-08
2.50726e-06
4.7496e-08
2.50929e-06
5.8637e-08
2.51175e-06
6.92611e-08
2.52309e-06
7.16845e-08
2.53533e-06
9.55285e-08
2.54132e-06
1.21979e-07
2.54624e-06
1.24404e-07
2.55716e-06
1.16672e-07
2.56529e-06
1.38386e-07
2.56187e-06
1.74074e-07
2.54825e-06
1.95389e-07
2.53144e-06
2.01405e-07
2.5096e-06
2.05499e-07
2.48046e-06
1.99439e-07
2.46318e-06
1.48725e-07
2.46229e-06
1.16905e-07
2.46001e-06
1.25714e-07
2.44787e-06
1.44761e-07
2.43569e-06
1.33596e-07
2.42096e-06
1.26314e-07
2.41273e-06
9.52006e-08
2.42143e-06
6.68681e-08
2.436e-06
7.14186e-08
2.43413e-06
1.1991e-07
2.41708e-06
1.34188e-07
2.40689e-06
1.13884e-07
2.40802e-06
8.55149e-08
2.41024e-06
9.02193e-08
2.41382e-06
8.39672e-08
2.42654e-06
8.19263e-08
2.42579e-06
1.21969e-07
2.41181e-06
1.07279e-07
8.50722e-08
2.56208e-06
1.97036e-07
2.56815e-06
2.1993e-07
2.57585e-06
2.71353e-07
2.57859e-06
2.96577e-07
2.57742e-06
2.82624e-07
2.57575e-06
2.37831e-07
2.57456e-06
2.00978e-07
2.57412e-06
1.73013e-07
2.57083e-06
1.52494e-07
2.56589e-06
1.28516e-07
2.56452e-06
1.22347e-07
2.56784e-06
1.49731e-07
2.57704e-06
1.79196e-07
2.58743e-06
1.99952e-07
2.59599e-06
1.93148e-07
2.60332e-06
1.64905e-07
2.60816e-06
1.4766e-07
2.60968e-06
1.36489e-07
2.60902e-06
1.27141e-07
2.60521e-06
1.30253e-07
2.60048e-06
1.34794e-07
2.59766e-06
1.48319e-07
2.59293e-06
1.75146e-07
2.58833e-06
1.88767e-07
2.58445e-06
2.17408e-07
2.58063e-06
2.52674e-07
2.58047e-06
2.5376e-07
2.58198e-06
2.3682e-07
2.5834e-06
1.99371e-07
2.58786e-06
1.37858e-07
2.59113e-06
1.01125e-07
2.58888e-06
8.30914e-08
2.58854e-06
6.42073e-08
2.58976e-06
8.66679e-08
2.58443e-06
1.13373e-07
2.58221e-06
7.37176e-08
2.58522e-06
6.92897e-08
2.58246e-06
1.32958e-07
2.57871e-06
1.43134e-07
2.58638e-06
1.09055e-07
2.59415e-06
1.4758e-07
2.5891e-06
1.92337e-07
2.58383e-06
1.45625e-07
2.5829e-06
1.00251e-07
2.57441e-06
1.02156e-07
2.56528e-06
5.03625e-08
2.56677e-06
-4.16602e-08
2.58197e-06
-9.55869e-08
2.60406e-06
-7.10519e-08
2.6179e-06
-3.94294e-09
2.62593e-06
3.68712e-08
2.6345e-06
7.28821e-08
2.63832e-06
1.37218e-07
2.63506e-06
1.92881e-07
2.62255e-06
2.29245e-07
2.60312e-06
2.46495e-07
2.57581e-06
2.50275e-07
2.54034e-06
1.82313e-07
2.5249e-06
-1.02056e-08
2.54761e-06
-2.15017e-07
2.6098e-06
-3.02332e-07
2.68378e-06
-1.86483e-07
2.71857e-06
8.10508e-08
2.69942e-06
2.94576e-07
2.66036e-06
3.21559e-07
2.6297e-06
2.24173e-07
2.61973e-06
1.00706e-07
2.62317e-06
4.40593e-08
2.6205e-06
6.13022e-08
2.61718e-06
7.25816e-08
2.62571e-06
6.3152e-08
2.63898e-06
8.22628e-08
2.6477e-06
1.13259e-07
2.65499e-06
1.17116e-07
2.66979e-06
1.01874e-07
2.68332e-06
1.24853e-07
2.68463e-06
1.72767e-07
2.67317e-06
2.06844e-07
2.65866e-06
2.15915e-07
2.64134e-06
2.22817e-07
2.61165e-06
2.29127e-07
2.59047e-06
1.69906e-07
2.59135e-06
1.16025e-07
2.59377e-06
1.23294e-07
2.5831e-06
1.5543e-07
2.57313e-06
1.43565e-07
2.55851e-06
1.40938e-07
2.54485e-06
1.08865e-07
2.5521e-06
5.96111e-08
2.57411e-06
4.94064e-08
2.57974e-06
1.14283e-07
2.56034e-06
1.53593e-07
2.54568e-06
1.28543e-07
2.54813e-06
8.30608e-08
2.55159e-06
8.67559e-08
2.55309e-06
8.24742e-08
2.57155e-06
6.34668e-08
2.5799e-06
1.13613e-07
2.56586e-06
1.21319e-07
9.50842e-08
2.67349e-06
1.94615e-07
2.67929e-06
2.14135e-07
2.68817e-06
2.62473e-07
2.6928e-06
2.91944e-07
2.69345e-06
2.81976e-07
2.6933e-06
2.37977e-07
2.69314e-06
2.0114e-07
2.69403e-06
1.72122e-07
2.69278e-06
1.53748e-07
2.6894e-06
1.31897e-07
2.68792e-06
1.23824e-07
2.6896e-06
1.48053e-07
2.69661e-06
1.72188e-07
2.70493e-06
1.91623e-07
2.71174e-06
1.86343e-07
2.71707e-06
1.59569e-07
2.72081e-06
1.43926e-07
2.7225e-06
1.34795e-07
2.72329e-06
1.26355e-07
2.72182e-06
1.31721e-07
2.718e-06
1.38609e-07
2.7148e-06
1.51523e-07
2.70909e-06
1.80853e-07
2.70342e-06
1.94441e-07
2.69923e-06
2.216e-07
2.69656e-06
2.55339e-07
2.69864e-06
2.51682e-07
2.70285e-06
2.32608e-07
2.70655e-06
1.95678e-07
2.71202e-06
1.32381e-07
2.71638e-06
9.67708e-08
2.71488e-06
8.45851e-08
2.71352e-06
6.55688e-08
2.71382e-06
8.6373e-08
2.70748e-06
1.19714e-07
2.70317e-06
7.80283e-08
2.70501e-06
6.74492e-08
2.70413e-06
1.33834e-07
2.70242e-06
1.44845e-07
2.7103e-06
1.0117e-07
2.71939e-06
1.38494e-07
2.71589e-06
1.95835e-07
2.71039e-06
1.51132e-07
2.7099e-06
1.00736e-07
2.7027e-06
1.09357e-07
2.69351e-06
5.95566e-08
2.69193e-06
-4.00879e-08
2.70236e-06
-1.06016e-07
2.72241e-06
-9.11e-08
2.73524e-06
-1.67769e-08
2.74109e-06
3.10275e-08
2.74787e-06
6.61028e-08
2.75125e-06
1.3384e-07
2.75056e-06
1.93567e-07
2.74202e-06
2.37788e-07
2.72649e-06
2.62026e-07
2.70533e-06
2.71428e-07
2.67272e-06
2.14929e-07
2.65439e-06
8.12015e-09
2.66756e-06
-2.28188e-07
2.71802e-06
-3.52789e-07
2.78779e-06
-2.56254e-07
2.82645e-06
4.23952e-08
2.81369e-06
3.07331e-07
2.78091e-06
3.5434e-07
2.75316e-06
2.51925e-07
2.74115e-06
1.12717e-07
2.74179e-06
4.34186e-08
2.73499e-06
6.80948e-08
2.72708e-06
8.04931e-08
2.73258e-06
5.76576e-08
2.74506e-06
6.97778e-08
2.75543e-06
1.02894e-07
2.76434e-06
1.08206e-07
2.78125e-06
8.49581e-08
2.79787e-06
1.08239e-07
2.80273e-06
1.67904e-07
2.79303e-06
2.16547e-07
2.7798e-06
2.29144e-07
2.76814e-06
2.34476e-07
2.74095e-06
2.56311e-07
2.71648e-06
1.94384e-07
2.718e-06
1.14501e-07
2.72476e-06
1.16534e-07
2.71513e-06
1.65064e-07
2.70787e-06
1.50818e-07
2.696e-06
1.52813e-07
2.6774e-06
1.2746e-07
2.68029e-06
5.67218e-08
2.70735e-06
2.23448e-08
2.72139e-06
1.00246e-07
2.70094e-06
1.74046e-07
2.68087e-06
1.48613e-07
2.6847e-06
7.92351e-08
2.69008e-06
8.13763e-08
2.68671e-06
8.58406e-08
2.70706e-06
4.31164e-08
2.72515e-06
9.55221e-08
2.71266e-06
1.33808e-07
1.06566e-07
2.79544e-06
1.91106e-07
2.80082e-06
2.08747e-07
2.81037e-06
2.52924e-07
2.81659e-06
2.85729e-07
2.81856e-06
2.80004e-07
2.81946e-06
2.37079e-07
2.81988e-06
2.00718e-07
2.82148e-06
1.70527e-07
2.82159e-06
1.53631e-07
2.8196e-06
1.33894e-07
2.81836e-06
1.25059e-07
2.81914e-06
1.47271e-07
2.8247e-06
1.66632e-07
2.83168e-06
1.8464e-07
2.83758e-06
1.8045e-07
2.84158e-06
1.55564e-07
2.84457e-06
1.40942e-07
2.84623e-06
1.33127e-07
2.8476e-06
1.24984e-07
2.84758e-06
1.31745e-07
2.84437e-06
1.41824e-07
2.84111e-06
1.54775e-07
2.83536e-06
1.86603e-07
2.82976e-06
2.00045e-07
2.82604e-06
2.25319e-07
2.82458e-06
2.568e-07
2.82784e-06
2.48426e-07
2.83303e-06
2.27411e-07
2.83742e-06
1.91291e-07
2.84239e-06
1.27409e-07
2.84677e-06
9.23927e-08
2.84606e-06
8.529e-08
2.84407e-06
6.75646e-08
2.84372e-06
8.67245e-08
2.83713e-06
1.26301e-07
2.8315e-06
8.36535e-08
2.83211e-06
6.68461e-08
2.83295e-06
1.32988e-07
2.83336e-06
1.44434e-07
2.84064e-06
9.38971e-08
2.84985e-06
1.29279e-07
2.84768e-06
1.98004e-07
2.84182e-06
1.56993e-07
2.84122e-06
1.0134e-07
2.83546e-06
1.15118e-07
2.82711e-06
6.79096e-08
2.82357e-06
-3.65552e-08
2.82925e-06
-1.11691e-07
2.84631e-06
-1.08162e-07
2.85787e-06
-2.83404e-08
2.86186e-06
2.70447e-08
2.86677e-06
6.11894e-08
2.86864e-06
1.31972e-07
2.86942e-06
1.92789e-07
2.86471e-06
2.42498e-07
2.85302e-06
2.73708e-07
2.83886e-06
2.85594e-07
2.81141e-06
2.42376e-07
2.79265e-06
2.68864e-08
2.79732e-06
-2.32861e-07
2.83378e-06
-3.89254e-07
2.89443e-06
-3.169e-07
2.93344e-06
3.38511e-09
2.92741e-06
3.13355e-07
2.90277e-06
3.78987e-07
2.87959e-06
2.75098e-07
2.86595e-06
1.26361e-07
2.86381e-06
4.55546e-08
2.85423e-06
7.76765e-08
2.84416e-06
9.05648e-08
2.84759e-06
5.42259e-08
2.858e-06
5.93693e-08
2.86895e-06
9.19477e-08
2.8788e-06
9.83539e-08
2.8961e-06
6.76583e-08
2.91312e-06
9.12186e-08
2.92005e-06
1.60978e-07
2.91209e-06
2.24499e-07
2.89916e-06
2.4208e-07
2.89316e-06
2.40473e-07
2.87135e-06
2.78123e-07
2.84508e-06
2.20655e-07
2.84623e-06
1.13346e-07
2.85656e-06
1.06212e-07
2.84733e-06
1.74289e-07
2.84239e-06
1.55759e-07
2.83539e-06
1.59813e-07
2.81377e-06
1.49082e-07
2.81064e-06
5.98469e-08
2.83949e-06
-6.50616e-09
2.86123e-06
7.85109e-08
2.84133e-06
1.93941e-07
2.81585e-06
1.74098e-07
2.82101e-06
7.40762e-08
2.82941e-06
7.29732e-08
2.81979e-06
9.54638e-08
2.83758e-06
2.53211e-08
2.8639e-06
6.92034e-08
2.85451e-06
1.43198e-07
1.19027e-07
2.92601e-06
1.86492e-07
2.93094e-06
2.03818e-07
2.94071e-06
2.43152e-07
2.94832e-06
2.78118e-07
2.95137e-06
2.76957e-07
2.95308e-06
2.35365e-07
2.954e-06
1.99797e-07
2.95603e-06
1.68496e-07
2.95706e-06
1.52606e-07
2.95622e-06
1.34736e-07
2.95544e-06
1.25839e-07
2.95594e-06
1.46766e-07
2.96063e-06
1.61943e-07
2.96671e-06
1.78557e-07
2.97215e-06
1.75008e-07
2.97522e-06
1.52501e-07
2.97759e-06
1.38571e-07
2.97896e-06
1.31754e-07
2.98016e-06
1.23787e-07
2.98078e-06
1.31127e-07
2.97801e-06
1.44595e-07
2.97516e-06
1.5762e-07
2.97021e-06
1.91552e-07
2.96562e-06
2.04638e-07
2.96297e-06
2.27969e-07
2.96275e-06
2.57022e-07
2.96643e-06
2.44741e-07
2.97144e-06
2.22402e-07
2.9755e-06
1.87232e-07
2.97899e-06
1.23915e-07
2.98256e-06
8.88292e-08
2.98251e-06
8.53406e-08
2.98021e-06
6.98592e-08
2.97952e-06
8.7413e-08
2.97336e-06
1.32463e-07
2.96713e-06
8.98811e-08
2.96641e-06
6.75685e-08
2.96842e-06
1.3098e-07
2.97061e-06
1.42249e-07
2.97661e-06
8.78933e-08
2.98511e-06
1.20774e-07
2.98435e-06
1.98769e-07
2.97849e-06
1.62849e-07
2.97748e-06
1.02353e-07
2.97312e-06
1.19481e-07
2.96614e-06
7.48917e-08
2.96169e-06
-3.21082e-08
2.96304e-06
-1.13048e-07
2.9764e-06
-1.21518e-07
2.98646e-06
-3.83958e-08
2.98904e-06
2.44615e-08
2.9924e-06
5.78257e-08
2.99225e-06
1.32122e-07
2.99339e-06
1.91651e-07
2.99195e-06
2.43938e-07
2.98359e-06
2.82066e-07
2.97629e-06
2.929e-07
2.95546e-06
2.63206e-07
2.93828e-06
4.40586e-08
2.93612e-06
-2.30696e-07
2.95798e-06
-4.11119e-07
3.00593e-06
-3.64846e-07
3.04206e-06
-3.27444e-08
3.04258e-06
3.12834e-07
3.02683e-06
3.94736e-07
3.00916e-06
2.92769e-07
2.99468e-06
1.40839e-07
2.99038e-06
4.98544e-08
2.97971e-06
8.83477e-08
2.97009e-06
1.00187e-07
2.97283e-06
5.14877e-08
2.98043e-06
5.17657e-08
2.99109e-06
8.12878e-08
3.00126e-06
8.8185e-08
3.01745e-06
5.1474e-08
3.03248e-06
7.61849e-08
3.04001e-06
1.5345e-07
3.03424e-06
2.30261e-07
3.02114e-06
2.55182e-07
3.01985e-06
2.41762e-07
3.00537e-06
2.9261e-07
2.97921e-06
2.4681e-07
2.97918e-06
1.13375e-07
2.99203e-06
9.33584e-08
2.9828e-06
1.83527e-07
2.97917e-06
1.59387e-07
2.97795e-06
1.61035e-07
2.95578e-06
1.71252e-07
2.9466e-06
6.90256e-08
2.97401e-06
-3.39165e-08
3.00125e-06
5.12746e-08
2.98341e-06
2.11779e-07
2.95359e-06
2.03916e-07
2.95981e-06
6.78587e-08
2.97202e-06
6.07602e-08
2.95638e-06
1.11103e-07
2.96799e-06
1.37138e-08
2.99932e-06
3.78705e-08
2.99398e-06
1.48544e-07
1.31499e-07
3.0641e-06
1.80835e-07
3.06861e-06
1.99309e-07
3.0782e-06
2.33562e-07
3.08705e-06
2.69263e-07
3.0911e-06
2.72911e-07
3.09352e-06
2.32938e-07
3.09501e-06
1.98315e-07
3.09741e-06
1.66093e-07
3.09911e-06
1.50905e-07
3.09929e-06
1.34559e-07
3.09916e-06
1.25971e-07
3.09984e-06
1.46083e-07
3.10402e-06
1.57761e-07
3.10938e-06
1.73198e-07
3.11448e-06
1.69911e-07
3.11674e-06
1.50238e-07
3.11846e-06
1.36851e-07
3.11927e-06
1.30941e-07
3.11978e-06
1.23277e-07
3.12044e-06
1.30473e-07
3.11803e-06
1.46999e-07
3.1159e-06
1.59749e-07
3.11227e-06
1.95185e-07
3.10925e-06
2.0766e-07
3.10799e-06
2.29225e-07
3.10903e-06
2.55985e-07
3.11278e-06
2.40989e-07
3.11704e-06
2.18144e-07
3.12033e-06
1.83943e-07
3.122e-06
1.22248e-07
3.12426e-06
8.65635e-08
3.12463e-06
8.49727e-08
3.12228e-06
7.22095e-08
3.12149e-06
8.82035e-08
3.11617e-06
1.37778e-07
3.10983e-06
9.62275e-08
3.10766e-06
6.97329e-08
3.11007e-06
1.28571e-07
3.11344e-06
1.38881e-07
3.11781e-06
8.35255e-08
3.12511e-06
1.13469e-07
3.12589e-06
1.97987e-07
3.12068e-06
1.68067e-07
3.1193e-06
1.03725e-07
3.11631e-06
1.22474e-07
3.11093e-06
8.02689e-08
3.10635e-06
-2.7523e-08
3.10402e-06
-1.10721e-07
3.11317e-06
-1.30666e-07
3.12145e-06
-4.66746e-08
3.12297e-06
2.29367e-08
3.12527e-06
5.55338e-08
3.12327e-06
1.34117e-07
3.12405e-06
1.90874e-07
3.12513e-06
2.42855e-07
3.11931e-06
2.87888e-07
3.11789e-06
2.94313e-07
3.10413e-06
2.76966e-07
3.08999e-06
5.82021e-08
3.08306e-06
-2.23761e-07
3.09132e-06
-4.19388e-07
3.12461e-06
-3.98136e-07
3.15516e-06
-6.32861e-08
3.16139e-06
3.066e-07
3.15425e-06
4.01874e-07
3.14243e-06
3.04589e-07
3.12836e-06
1.54914e-07
3.12298e-06
5.5235e-08
3.11284e-06
9.84865e-08
3.10562e-06
1.0741e-07
3.10875e-06
4.835e-08
3.11341e-06
4.71098e-08
3.12323e-06
7.14702e-08
3.13316e-06
7.82555e-08
3.14715e-06
3.74758e-08
3.15863e-06
6.47144e-08
3.16563e-06
1.46449e-07
3.16265e-06
2.33233e-07
3.14959e-06
2.68248e-07
3.15147e-06
2.39875e-07
3.14493e-06
2.99149e-07
3.12069e-06
2.71054e-07
3.11888e-06
1.15182e-07
3.13311e-06
7.9136e-08
3.12384e-06
1.92794e-07
3.1204e-06
1.62821e-07
3.12451e-06
1.5693e-07
3.10405e-06
1.91715e-07
3.09012e-06
8.29484e-08
3.11357e-06
-5.73629e-08
3.1432e-06
2.16411e-08
3.12853e-06
2.2645e-07
3.0964e-06
2.36048e-07
3.10314e-06
6.11154e-08
3.11906e-06
4.48463e-08
3.09893e-06
1.31233e-07
3.10246e-06
1.01858e-08
3.13488e-06
5.45033e-09
3.13369e-06
1.49725e-07
1.42838e-07
3.20935e-06
1.74222e-07
3.21358e-06
1.95073e-07
3.22266e-06
2.24486e-07
3.23258e-06
2.59347e-07
3.23765e-06
2.67838e-07
3.24072e-06
2.29862e-07
3.24282e-06
1.96222e-07
3.2456e-06
1.63311e-07
3.24786e-06
1.48645e-07
3.24896e-06
1.33456e-07
3.24965e-06
1.25287e-07
3.25083e-06
1.44904e-07
3.25472e-06
1.53869e-07
3.25941e-06
1.68503e-07
3.26408e-06
1.65247e-07
3.26557e-06
1.48749e-07
3.26653e-06
1.3589e-07
3.26658e-06
1.30888e-07
3.26613e-06
1.23723e-07
3.2664e-06
1.30207e-07
3.26429e-06
1.49111e-07
3.26296e-06
1.61074e-07
3.26083e-06
1.97312e-07
3.25959e-06
2.08907e-07
3.25979e-06
2.29025e-07
3.26204e-06
2.53731e-07
3.26577e-06
2.37265e-07
3.26917e-06
2.14743e-07
3.27166e-06
1.81453e-07
3.27166e-06
1.22245e-07
3.27252e-06
8.57066e-08
3.27303e-06
8.44612e-08
3.27073e-06
7.45116e-08
3.26991e-06
8.90176e-08
3.26559e-06
1.42102e-07
3.25939e-06
1.0243e-07
3.25574e-06
7.33803e-08
3.25785e-06
1.26461e-07
3.2618e-06
1.34933e-07
3.2645e-06
8.08173e-08
3.27039e-06
1.07584e-07
3.2727e-06
1.95674e-07
3.26874e-06
1.72032e-07
3.26727e-06
1.0519e-07
3.26568e-06
1.24071e-07
3.26194e-06
8.40004e-08
3.25769e-06
-2.32687e-08
3.25243e-06
-1.05455e-07
3.25711e-06
-1.35356e-07
3.26328e-06
-5.2839e-08
3.26382e-06
2.23971e-08
3.26543e-06
5.3926e-08
3.26227e-06
1.37275e-07
3.26249e-06
1.90655e-07
3.26542e-06
2.39925e-07
3.2614e-06
2.91908e-07
3.26441e-06
2.91306e-07
3.25725e-06
2.84124e-07
3.24684e-06
6.86134e-08
3.23724e-06
-2.14163e-07
3.23419e-06
-4.16337e-07
3.25261e-06
-4.16553e-07
3.27571e-06
-8.63905e-08
3.28627e-06
2.96041e-07
3.28664e-06
4.01506e-07
3.28058e-06
3.10647e-07
3.26831e-06
1.67186e-07
3.26305e-06
6.04923e-08
3.25467e-06
1.06862e-07
3.25078e-06
1.113e-07
3.25484e-06
4.42975e-08
3.25693e-06
4.50195e-08
3.26563e-06
6.27674e-08
3.27485e-06
6.903e-08
3.28615e-06
2.61794e-08
3.29357e-06
5.72902e-08
3.29942e-06
1.40606e-07
3.29961e-06
2.33038e-07
3.28725e-06
2.80611e-07
3.29063e-06
2.36492e-07
3.29134e-06
2.9844e-07
3.27035e-06
2.92048e-07
3.26644e-06
1.19092e-07
3.28084e-06
6.47317e-08
3.27188e-06
2.01758e-07
3.26777e-06
1.66935e-07
3.27573e-06
1.48963e-07
3.25852e-06
2.08924e-07
3.24193e-06
9.95375e-08
3.25991e-06
-7.5339e-08
3.28868e-06
-7.12778e-09
3.27777e-06
2.3736e-07
3.24585e-06
2.67971e-07
3.25239e-06
5.45668e-08
3.2709e-06
2.63376e-08
3.24848e-06
1.53661e-07
3.24396e-06
1.46973e-08
3.27389e-06
-2.44787e-08
3.27627e-06
1.47345e-07
1.52058e-07
3.36191e-06
1.6673e-07
3.36614e-06
1.9084e-07
3.37449e-06
2.16136e-07
3.38523e-06
2.48607e-07
3.3914e-06
2.61664e-07
3.39505e-06
2.26214e-07
3.39773e-06
1.93546e-07
3.40087e-06
1.60168e-07
3.40357e-06
1.45944e-07
3.40545e-06
1.31574e-07
3.40701e-06
1.23728e-07
3.40887e-06
1.43048e-07
3.4126e-06
1.50137e-07
3.41668e-06
1.64419e-07
3.42078e-06
1.61146e-07
3.42154e-06
1.47991e-07
3.42168e-06
1.35752e-07
3.4209e-06
1.3167e-07
3.41945e-06
1.25172e-07
3.41909e-06
1.30568e-07
3.4172e-06
1.51001e-07
3.4166e-06
1.61678e-07
3.41593e-06
1.97981e-07
3.41636e-06
2.08472e-07
3.41786e-06
2.27521e-07
3.42118e-06
2.50419e-07
3.42489e-06
2.33552e-07
3.42759e-06
2.12045e-07
3.42948e-06
1.79564e-07
3.4283e-06
1.23425e-07
3.42792e-06
8.60784e-08
3.42832e-06
8.40654e-08
3.42602e-06
7.68091e-08
3.4251e-06
8.99419e-08
3.4217e-06
1.45498e-07
3.41577e-06
1.08359e-07
3.41079e-06
7.83624e-08
3.41216e-06
1.25089e-07
3.41621e-06
1.30891e-07
3.4175e-06
7.95205e-08
3.42196e-06
1.03125e-07
3.42559e-06
1.92045e-07
3.42327e-06
1.7435e-07
3.42199e-06
1.06471e-07
3.42177e-06
1.24294e-07
3.41957e-06
8.62011e-08
3.41585e-06
-1.95534e-08
3.40849e-06
-9.8091e-08
3.40881e-06
-1.35681e-07
3.41257e-06
-5.65976e-08
3.412e-06
2.29672e-08
3.41307e-06
5.28602e-08
3.40959e-06
1.40757e-07
3.40943e-06
1.90813e-07
3.4137e-06
2.35655e-07
3.41102e-06
2.94583e-07
3.41687e-06
2.85458e-07
3.4152e-06
2.85793e-07
3.40849e-06
7.53228e-08
3.39796e-06
-2.0363e-07
3.38655e-06
-4.0493e-07
3.39149e-06
-4.2149e-07
3.40648e-06
-1.01378e-07
3.41975e-06
2.82771e-07
3.42603e-06
3.95224e-07
3.42524e-06
3.1144e-07
3.41588e-06
1.76543e-07
3.4117e-06
6.46735e-08
3.40582e-06
1.12743e-07
3.40529e-06
1.11827e-07
3.41022e-06
3.93636e-08
3.41047e-06
4.4772e-08
3.41792e-06
5.53139e-08
3.42609e-06
6.0865e-08
3.43472e-06
1.75505e-08
3.43862e-06
5.33847e-08
3.44318e-06
1.36052e-07
3.44641e-06
2.29804e-07
3.43555e-06
2.91472e-07
3.43898e-06
2.33059e-07
3.44527e-06
2.9215e-07
3.4283e-06
3.09017e-07
3.42229e-06
1.25108e-07
3.43577e-06
5.12545e-08
3.42759e-06
2.09935e-07
3.42234e-06
1.72181e-07
3.43224e-06
1.39069e-07
3.41901e-06
2.22148e-07
3.40199e-06
1.16563e-07
3.41399e-06
-8.73449e-08
3.43915e-06
-3.22827e-08
3.4321e-06
2.44412e-07
3.40284e-06
2.97223e-07
3.40841e-06
4.90063e-08
3.42773e-06
7.01183e-09
3.40527e-06
1.76119e-07
3.39428e-06
2.56902e-08
3.41921e-06
-4.94125e-08
3.42412e-06
1.42439e-07
1.58561e-07
3.52216e-06
1.5845e-07
3.52676e-06
1.86239e-07
3.53433e-06
2.08566e-07
3.54558e-06
2.37359e-07
3.55293e-06
2.54315e-07
3.55706e-06
2.22083e-07
3.5602e-06
1.90404e-07
3.56364e-06
1.56732e-07
3.5666e-06
1.42976e-07
3.56902e-06
1.29153e-07
3.57134e-06
1.21414e-07
3.57391e-06
1.40473e-07
3.57756e-06
1.46494e-07
3.58113e-06
1.60845e-07
3.58461e-06
1.57666e-07
3.58477e-06
1.47829e-07
3.58415e-06
1.36378e-07
3.58261e-06
1.33206e-07
3.58031e-06
1.27474e-07
3.57927e-06
1.31605e-07
3.57756e-06
1.52718e-07
3.57748e-06
1.6175e-07
3.57806e-06
1.9741e-07
3.57985e-06
2.0668e-07
3.58236e-06
2.2501e-07
3.58647e-06
2.46311e-07
3.59021e-06
2.29811e-07
3.59249e-06
2.09767e-07
3.59405e-06
1.78e-07
3.59226e-06
1.25216e-07
3.59098e-06
8.73603e-08
3.59105e-06
8.39973e-08
3.58862e-06
7.92386e-08
3.5874e-06
9.11534e-08
3.58477e-06
1.48128e-07
3.5792e-06
1.13932e-07
3.57324e-06
8.4324e-08
3.57376e-06
1.24571e-07
3.57753e-06
1.27122e-07
3.57776e-06
7.92911e-08
3.58093e-06
9.99476e-08
3.58556e-06
1.87414e-07
3.58502e-06
1.74897e-07
3.58408e-06
1.07408e-07
3.58507e-06
1.23302e-07
3.58415e-06
8.7126e-08
3.58097e-06
-1.63727e-08
3.57237e-06
-8.94984e-08
3.56883e-06
-1.32141e-07
3.57012e-06
-5.78865e-08
3.56835e-06
2.47424e-08
3.56879e-06
5.24226e-08
3.56564e-06
1.43904e-07
3.5654e-06
1.91053e-07
3.5706e-06
2.30454e-07
3.5691e-06
2.96082e-07
3.57643e-06
2.78127e-07
3.57886e-06
2.83368e-07
3.57526e-06
7.89242e-08
3.56484e-06
-1.93218e-07
3.54807e-06
-3.88152e-07
3.54209e-06
-4.1551e-07
3.54953e-06
-1.08827e-07
3.56408e-06
2.68228e-07
3.57455e-06
3.8475e-07
3.57815e-06
3.07844e-07
3.57218e-06
1.82507e-07
3.56956e-06
6.7299e-08
3.56646e-06
1.15839e-07
3.56879e-06
1.09501e-07
3.57423e-06
3.39194e-08
3.57345e-06
4.55541e-08
3.57953e-06
4.92371e-08
3.5864e-06
5.39892e-08
3.59279e-06
1.11579e-08
3.59434e-06
5.18397e-08
3.59781e-06
1.32576e-07
3.60342e-06
2.24198e-07
3.59469e-06
3.00207e-07
3.59721e-06
2.30533e-07
3.60699e-06
2.82373e-07
3.59431e-06
3.21697e-07
3.58653e-06
1.32883e-07
3.59815e-06
3.96374e-08
3.59119e-06
2.169e-07
3.58476e-06
1.78602e-07
3.59469e-06
1.29148e-07
3.58548e-06
2.31349e-07
3.56993e-06
1.3212e-07
3.57626e-06
-9.36822e-08
3.596e-06
-5.20173e-08
3.59251e-06
2.479e-07
3.56786e-06
3.21876e-07
3.57169e-06
4.51735e-08
3.58989e-06
-1.11859e-08
3.56934e-06
1.9667e-07
3.55424e-06
4.07876e-08
3.57298e-06
-6.81562e-08
3.57926e-06
1.36164e-07
1.62214e-07
3.69052e-06
1.4954e-07
3.6959e-06
1.8086e-07
3.70282e-06
2.01647e-07
3.7142e-06
2.25974e-07
3.72274e-06
2.4578e-07
3.7273e-06
2.17522e-07
3.73072e-06
1.86981e-07
3.73432e-06
1.53129e-07
3.73736e-06
1.39944e-07
3.74e-06
1.26509e-07
3.74279e-06
1.18624e-07
3.74601e-06
1.37249e-07
3.74961e-06
1.42897e-07
3.75284e-06
1.57614e-07
3.75578e-06
1.54732e-07
3.75557e-06
1.48032e-07
3.75437e-06
1.37579e-07
3.75229e-06
1.35287e-07
3.7494e-06
1.30367e-07
3.74778e-06
1.33226e-07
3.74619e-06
1.54299e-07
3.74641e-06
1.61533e-07
3.74789e-06
1.9593e-07
3.75058e-06
2.03989e-07
3.75376e-06
2.21829e-07
3.75839e-06
2.41683e-07
3.7622e-06
2.26e-07
3.76438e-06
2.07594e-07
3.76587e-06
1.76507e-07
3.76393e-06
1.27154e-07
3.76203e-06
8.92583e-08
3.76161e-06
8.44166e-08
3.7589e-06
8.19466e-08
3.75726e-06
9.2803e-08
3.75525e-06
1.50134e-07
3.75012e-06
1.19064e-07
3.74366e-06
9.0784e-08
3.74345e-06
1.24781e-07
3.74666e-06
1.23913e-07
3.74609e-06
7.98598e-08
3.74819e-06
9.78417e-08
3.75352e-06
1.82089e-07
3.75466e-06
1.7376e-07
3.75409e-06
1.07971e-07
3.75602e-06
1.21371e-07
3.75604e-06
8.71084e-08
3.75324e-06
-1.35666e-08
3.74418e-06
-8.04446e-08
3.73758e-06
-1.25536e-07
3.73663e-06
-5.69374e-08
3.73376e-06
2.76071e-08
3.7334e-06
5.27828e-08
3.73093e-06
1.46377e-07
3.73082e-06
1.91167e-07
3.73655e-06
2.24721e-07
3.73623e-06
2.96403e-07
3.74406e-06
2.70294e-07
3.74925e-06
2.78176e-07
3.7479e-06
8.02754e-08
3.73797e-06
-1.83291e-07
3.71832e-06
-3.68494e-07
3.7045e-06
-4.01694e-07
3.70594e-06
-1.10266e-07
3.72077e-06
2.53397e-07
3.73387e-06
3.71649e-07
3.74072e-06
3.00993e-07
3.73795e-06
1.85283e-07
3.73688e-06
6.83675e-08
3.73652e-06
1.16201e-07
3.74101e-06
1.05006e-07
3.7465e-06
2.84309e-08
3.74539e-06
4.66681e-08
3.74996e-06
4.4665e-08
3.75547e-06
4.84742e-08
3.76022e-06
6.41221e-09
3.76071e-06
5.13536e-08
3.76347e-06
1.29812e-07
3.77043e-06
2.17233e-07
3.76411e-06
3.06528e-07
3.76533e-06
2.29316e-07
3.77659e-06
2.71111e-07
3.76808e-06
3.30213e-07
3.75918e-06
1.41783e-07
3.76825e-06
3.05688e-08
3.76274e-06
2.22405e-07
3.75542e-06
1.85924e-07
3.76383e-06
1.2074e-07
3.75822e-06
2.3696e-07
3.74544e-06
1.44899e-07
3.74692e-06
-9.51691e-08
3.7605e-06
-6.55914e-08
3.76003e-06
2.48371e-07
3.74111e-06
3.40795e-07
3.74265e-06
4.36297e-08
3.75804e-06
-2.65776e-08
3.74078e-06
2.13935e-07
3.72409e-06
5.74785e-08
3.73658e-06
-8.06466e-08
3.74317e-06
1.29568e-07
1.63277e-07
3.86734e-06
1.4029e-07
3.87383e-06
1.74371e-07
3.88042e-06
1.95063e-07
3.89158e-06
2.14812e-07
3.9012e-06
2.36161e-07
3.90623e-06
2.12486e-07
3.90975e-06
1.83467e-07
3.91334e-06
1.49532e-07
3.91626e-06
1.37024e-07
3.91879e-06
1.2398e-07
3.92169e-06
1.15724e-07
3.92541e-06
1.33533e-07
3.929e-06
1.39309e-07
3.93208e-06
1.54532e-07
3.93465e-06
1.52162e-07
3.93437e-06
1.48315e-07
3.93287e-06
1.3908e-07
3.93052e-06
1.37635e-07
3.92733e-06
1.33554e-07
3.92528e-06
1.35277e-07
3.92379e-06
1.5579e-07
3.92404e-06
1.61281e-07
3.92606e-06
1.93912e-07
3.92919e-06
2.00857e-07
3.93276e-06
2.18264e-07
3.93769e-06
2.36751e-07
3.94161e-06
2.22077e-07
3.94394e-06
2.05265e-07
3.94552e-06
1.74925e-07
3.9437e-06
1.28975e-07
3.94137e-06
9.15926e-08
3.94035e-06
8.54356e-08
3.93727e-06
8.50224e-08
3.93513e-06
9.49426e-08
3.93369e-06
1.51579e-07
3.92911e-06
1.23646e-07
3.92262e-06
9.7268e-08
3.92192e-06
1.25478e-07
3.92437e-06
1.21471e-07
3.92312e-06
8.11013e-08
3.92434e-06
9.66271e-08
3.93008e-06
1.76348e-07
3.93267e-06
1.71168e-07
3.93245e-06
1.08196e-07
3.93502e-06
1.18801e-07
3.93567e-06
8.64588e-08
3.93301e-06
-1.09075e-08
3.92403e-06
-7.14699e-08
3.91526e-06
-1.16758e-07
3.91249e-06
-5.41664e-08
3.90886e-06
3.12333e-08
3.9076e-06
5.40396e-08
3.90587e-06
1.48107e-07
3.90595e-06
1.91088e-07
3.91181e-06
2.18865e-07
3.91269e-06
2.95515e-07
3.92044e-06
2.62552e-07
3.92734e-06
2.71276e-07
3.92741e-06
8.02046e-08
3.91785e-06
-1.7373e-07
3.89706e-06
-3.47707e-07
3.87833e-06
-3.8296e-07
3.87567e-06
-1.07613e-07
3.89028e-06
2.38787e-07
3.9048e-06
3.57126e-07
3.91376e-06
2.92036e-07
3.91354e-06
1.85504e-07
3.91372e-06
6.81928e-08
3.91579e-06
1.14125e-07
3.92182e-06
9.89764e-08
3.92697e-06
2.32794e-08
3.92601e-06
4.76278e-08
3.92905e-06
4.16278e-08
3.93331e-06
4.42187e-08
3.93693e-06
2.79135e-09
3.93741e-06
5.08706e-08
3.93983e-06
1.27395e-07
3.94709e-06
2.09973e-07
3.94312e-06
3.1049e-07
3.94311e-06
2.29336e-07
3.95427e-06
2.59946e-07
3.94953e-06
3.34958e-07
3.94028e-06
1.51026e-07
3.94638e-06
2.44658e-08
3.94239e-06
2.26405e-07
3.93463e-06
1.93678e-07
3.9405e-06
1.14871e-07
3.93778e-06
2.39676e-07
3.92843e-06
1.54255e-07
3.92612e-06
-9.28605e-08
3.93371e-06
-7.31834e-08
3.93559e-06
2.46489e-07
3.92275e-06
3.53637e-07
3.92173e-06
4.46547e-08
3.93314e-06
-3.79928e-08
3.91989e-06
2.27187e-07
3.90376e-06
7.36113e-08
3.91067e-06
-8.75626e-08
3.91677e-06
1.23469e-07
1.62241e-07
4.05296e-06
1.31044e-07
4.06067e-06
1.66668e-07
4.06735e-06
1.88379e-07
4.07807e-06
2.04095e-07
4.08852e-06
2.25704e-07
4.09416e-06
2.06848e-07
4.09767e-06
1.79959e-07
4.10108e-06
1.46125e-07
4.10378e-06
1.34319e-07
4.10593e-06
1.2183e-07
4.10857e-06
1.13089e-07
4.11255e-06
1.29549e-07
4.11616e-06
1.35701e-07
4.11925e-06
1.51439e-07
4.12168e-06
1.49738e-07
4.12158e-06
1.48414e-07
4.12007e-06
1.40588e-07
4.11775e-06
1.39959e-07
4.11454e-06
1.36761e-07
4.11222e-06
1.37592e-07
4.11079e-06
1.57228e-07
4.11087e-06
1.61201e-07
4.11309e-06
1.91685e-07
4.1163e-06
1.97645e-07
4.12005e-06
2.14519e-07
4.12515e-06
2.31651e-07
4.12921e-06
2.18014e-07
4.13185e-06
2.02625e-07
4.13358e-06
1.73197e-07
4.13195e-06
1.30606e-07
4.12925e-06
9.42937e-08
4.12757e-06
8.7114e-08
4.12412e-06
8.84739e-08
4.12154e-06
9.75187e-08
4.12066e-06
1.52465e-07
4.11675e-06
1.27551e-07
4.11062e-06
1.03402e-07
4.10968e-06
1.26419e-07
4.11124e-06
1.19907e-07
4.10935e-06
8.29903e-08
4.10977e-06
9.62086e-08
4.11565e-06
1.70467e-07
4.11939e-06
1.67431e-07
4.11946e-06
1.08127e-07
4.12242e-06
1.15837e-07
4.12348e-06
8.53985e-08
4.12077e-06
-8.19771e-09
4.11216e-06
-6.28559e-08
4.10201e-06
-1.06608e-07
4.09784e-06
-4.99977e-08
4.09385e-06
3.52194e-08
4.09173e-06
5.61553e-08
4.09067e-06
1.49172e-07
4.09092e-06
1.90833e-07
4.09654e-06
2.13251e-07
4.09861e-06
2.93445e-07
4.10598e-06
2.55181e-07
4.11384e-06
2.63417e-07
4.11471e-06
7.93374e-08
4.10521e-06
-1.64236e-07
4.08434e-06
-3.26831e-07
4.063e-06
-3.6162e-07
4.05797e-06
-1.02587e-07
4.07219e-06
2.24569e-07
4.08735e-06
3.41969e-07
4.09747e-06
2.81907e-07
4.09908e-06
1.83895e-07
4.10009e-06
6.71862e-08
4.10414e-06
1.10076e-07
4.11119e-06
9.19221e-08
4.11579e-06
1.86803e-08
4.11527e-06
4.8149e-08
4.11694e-06
3.99563e-08
4.12019e-06
4.09721e-08
4.12301e-06
-3.02018e-11
4.12412e-06
4.97652e-08
4.12648e-06
1.25028e-07
4.13319e-06
2.03269e-07
4.13128e-06
3.12399e-07
4.13038e-06
2.30236e-07
4.1404e-06
2.49925e-07
4.13886e-06
3.36498e-07
4.13003e-06
1.59856e-07
4.13301e-06
2.14843e-08
4.13039e-06
2.2902e-07
4.12276e-06
2.01315e-07
4.1256e-06
1.1203e-07
4.12498e-06
2.40291e-07
4.1191e-06
1.60134e-07
4.11406e-06
-8.7822e-08
4.11646e-06
-7.55773e-08
4.12e-06
2.42948e-07
4.11295e-06
3.60684e-07
4.10942e-06
4.81913e-08
4.11624e-06
-4.48208e-08
4.1071e-06
2.36328e-07
4.09306e-06
8.76504e-08
4.09543e-06
-8.99265e-08
4.10047e-06
1.18426e-07
1.59666e-07
4.24775e-06
1.22078e-07
4.25648e-06
1.57938e-07
4.26366e-06
1.81199e-07
4.27393e-06
1.93825e-07
4.28488e-06
2.14753e-07
4.29124e-06
2.00492e-07
4.2948e-06
1.76395e-07
4.29789e-06
1.43037e-07
4.30035e-06
1.31863e-07
4.30199e-06
1.2019e-07
4.30407e-06
1.11e-07
4.30804e-06
1.2558e-07
4.31166e-06
1.32083e-07
4.31484e-06
1.48255e-07
4.31728e-06
1.47303e-07
4.31755e-06
1.48143e-07
4.31628e-06
1.41857e-07
4.31423e-06
1.42007e-07
4.31125e-06
1.39744e-07
4.30885e-06
1.39993e-07
4.30747e-06
1.58611e-07
4.30728e-06
1.61385e-07
4.30949e-06
1.89481e-07
4.31255e-06
1.94579e-07
4.31633e-06
2.10736e-07
4.32151e-06
2.2648e-07
4.32569e-06
2.1383e-07
4.32867e-06
1.99648e-07
4.33052e-06
1.71347e-07
4.32904e-06
1.32085e-07
4.32599e-06
9.73384e-08
4.32366e-06
8.94522e-08
4.31989e-06
9.22401e-08
4.317e-06
1.00409e-07
4.31668e-06
1.52784e-07
4.31355e-06
1.3068e-07
4.308e-06
1.0895e-07
4.30701e-06
1.27414e-07
4.30771e-06
1.19202e-07
4.30519e-06
8.55118e-08
4.30485e-06
9.65537e-08
4.31059e-06
1.64721e-07
4.31511e-06
1.62914e-07
4.31543e-06
1.07808e-07
4.3186e-06
1.12663e-07
4.31994e-06
8.40573e-08
4.31707e-06
-5.32374e-09
4.3089e-06
-5.46808e-08
4.29799e-06
-9.57049e-08
4.29275e-06
-4.47596e-08
4.28873e-06
3.92404e-08
4.28592e-06
5.89643e-08
4.28541e-06
1.49683e-07
4.28581e-06
1.90432e-07
4.29093e-06
2.08139e-07
4.29408e-06
2.90293e-07
4.30101e-06
2.48248e-07
4.30932e-06
2.55103e-07
4.31059e-06
7.80725e-08
4.30089e-06
-1.54535e-07
4.28044e-06
-3.0638e-07
4.25807e-06
-3.39255e-07
4.25189e-06
-9.64101e-08
4.26569e-06
2.10772e-07
4.28106e-06
3.26602e-07
4.29176e-06
2.7121e-07
4.29462e-06
1.81032e-07
4.29611e-06
6.56949e-08
4.30157e-06
1.04618e-07
4.30924e-06
8.42541e-08
4.31323e-06
1.46834e-08
4.3133e-06
4.80795e-08
4.31399e-06
3.92687e-08
4.31656e-06
3.84036e-08
4.3187e-06
-2.17207e-09
4.32063e-06
4.78386e-08
4.32316e-06
1.22498e-07
4.32883e-06
1.97598e-07
4.32855e-06
3.12673e-07
4.32721e-06
2.31576e-07
4.33553e-06
2.41604e-07
4.33653e-06
3.35501e-07
4.3287e-06
1.67686e-07
4.32864e-06
2.15508e-08
4.32717e-06
2.3049e-07
4.32018e-06
2.08298e-07
4.31999e-06
1.12225e-07
4.3207e-06
2.39584e-07
4.31792e-06
1.62915e-07
4.31107e-06
-8.09779e-08
4.30932e-06
-7.38255e-08
4.31386e-06
2.38409e-07
4.31192e-06
3.62624e-07
4.30624e-06
5.38679e-08
4.30838e-06
-4.69582e-08
4.30291e-06
2.41798e-07
4.29182e-06
9.87357e-08
4.29071e-06
-8.88174e-08
4.29439e-06
1.1475e-07
1.56063e-07
4.45211e-06
1.13548e-07
4.4615e-06
1.48551e-07
4.46937e-06
1.73323e-07
4.47937e-06
1.83831e-07
4.49049e-06
2.03628e-07
4.49755e-06
1.93432e-07
4.50136e-06
1.72586e-07
4.50414e-06
1.4026e-07
4.50633e-06
1.29667e-07
4.50749e-06
1.1903e-07
4.5089e-06
1.09589e-07
4.51256e-06
1.21926e-07
4.51612e-06
1.28517e-07
4.5194e-06
1.44978e-07
4.5219e-06
1.44804e-07
4.52262e-06
1.47424e-07
4.52175e-06
1.42728e-07
4.52016e-06
1.43591e-07
4.51761e-06
1.42299e-07
4.51531e-06
1.42291e-07
4.51405e-06
1.59869e-07
4.51364e-06
1.61795e-07
4.51571e-06
1.87414e-07
4.51853e-06
1.91763e-07
4.52223e-06
2.0703e-07
4.52738e-06
2.21334e-07
4.53161e-06
2.09597e-07
4.53484e-06
1.96418e-07
4.53674e-06
1.69445e-07
4.53534e-06
1.33487e-07
4.53199e-06
1.00688e-07
4.52906e-06
9.23827e-08
4.52508e-06
9.62212e-08
4.52201e-06
1.03475e-07
4.52223e-06
1.52566e-07
4.51992e-06
1.32991e-07
4.51507e-06
1.13795e-07
4.51415e-06
1.28337e-07
4.51413e-06
1.19223e-07
4.51105e-06
8.85896e-08
4.50998e-06
9.76265e-08
4.51534e-06
1.59357e-07
4.52027e-06
1.57993e-07
4.52077e-06
1.07301e-07
4.52401e-06
1.09424e-07
4.52554e-06
8.2526e-08
4.52247e-06
-2.25212e-09
4.5147e-06
-4.69081e-08
4.5035e-06
-8.45071e-08
4.49743e-06
-3.86916e-08
4.49357e-06
4.31056e-08
4.4903e-06
6.22294e-08
4.49025e-06
1.4974e-07
4.49078e-06
1.89894e-07
4.49526e-06
2.03659e-07
4.49932e-06
2.86233e-07
4.50586e-06
2.41712e-07
4.51428e-06
2.46685e-07
4.5157e-06
7.66515e-08
4.50564e-06
-1.44473e-07
4.4858e-06
-2.86544e-07
4.46338e-06
-3.1683e-07
4.45676e-06
-8.97974e-08
4.47013e-06
1.974e-07
4.48553e-06
3.11212e-07
4.49649e-06
2.60248e-07
4.50024e-06
1.77281e-07
4.50199e-06
6.3944e-08
4.50827e-06
9.83328e-08
4.51621e-06
7.63202e-08
4.51967e-06
1.12181e-08
4.52043e-06
4.73234e-08
4.52064e-06
3.90538e-08
4.52286e-06
3.61844e-08
4.52432e-06
-3.62624e-09
4.52695e-06
4.52083e-08
4.52977e-06
1.19674e-07
4.53431e-06
1.93062e-07
4.53527e-06
3.11712e-07
4.53387e-06
2.32974e-07
4.54031e-06
2.35164e-07
4.54316e-06
3.32652e-07
4.53666e-06
1.74181e-07
4.53381e-06
2.44025e-08
4.53318e-06
2.3112e-07
4.52729e-06
2.14189e-07
4.52445e-06
1.15071e-07
4.5258e-06
2.38227e-07
4.52548e-06
1.63236e-07
4.51753e-06
-7.30324e-08
4.5127e-06
-6.89941e-08
4.51767e-06
2.33444e-07
4.51992e-06
3.60374e-07
4.51268e-06
6.1106e-08
4.51044e-06
-4.47203e-08
4.50785e-06
2.44392e-07
4.49996e-06
1.06621e-07
4.49636e-06
-8.52171e-08
4.49857e-06
1.12543e-07
1.51834e-07
4.66646e-06
1.05497e-07
4.67615e-06
1.38856e-07
4.68465e-06
1.64827e-07
4.69456e-06
1.73926e-07
4.7057e-06
1.92478e-07
4.71329e-06
1.85851e-07
4.71754e-06
1.68334e-07
4.72017e-06
1.37626e-07
4.7221e-06
1.27737e-07
4.7229e-06
1.18235e-07
4.72368e-06
1.08809e-07
4.72677e-06
1.1883e-07
4.73018e-06
1.25108e-07
4.73353e-06
1.41633e-07
4.73606e-06
1.42275e-07
4.7372e-06
1.46281e-07
4.7368e-06
1.43131e-07
4.73578e-06
1.44612e-07
4.7338e-06
1.4427e-07
4.7318e-06
1.443e-07
4.73078e-06
1.60887e-07
4.73028e-06
1.62295e-07
4.7322e-06
1.85494e-07
4.73475e-06
1.89208e-07
4.7383e-06
2.03486e-07
4.74331e-06
2.16322e-07
4.74747e-06
2.05431e-07
4.75081e-06
1.93082e-07
4.75268e-06
1.67579e-07
4.75128e-06
1.34878e-07
4.7477e-06
1.04277e-07
4.74429e-06
9.57831e-08
4.74021e-06
1.00302e-07
4.73709e-06
1.06594e-07
4.73776e-06
1.51901e-07
4.73622e-06
1.34528e-07
4.73211e-06
1.17906e-07
4.73134e-06
1.29109e-07
4.7308e-06
1.19762e-07
4.72732e-06
9.20677e-08
4.72562e-06
9.93335e-08
4.73043e-06
1.54541e-07
4.73541e-06
1.53015e-07
4.73601e-06
1.06702e-07
4.73917e-06
1.0626e-07
4.74079e-06
8.09082e-08
4.73753e-06
1.01215e-09
4.73008e-06
-3.94605e-08
4.71892e-06
-7.33497e-08
4.71224e-06
-3.20088e-08
4.70861e-06
4.67293e-08
4.70514e-06
6.56988e-08
4.70547e-06
1.49411e-07
4.70616e-06
1.8921e-07
4.70998e-06
1.99835e-07
4.71472e-06
2.81497e-07
4.72093e-06
2.35503e-07
4.72918e-06
2.38429e-07
4.7306e-06
7.52391e-08
4.72013e-06
-1.34008e-07
4.70092e-06
-2.67334e-07
4.67898e-06
-2.94887e-07
4.6723e-06
-8.31237e-08
4.68523e-06
1.84472e-07
4.70058e-06
2.95862e-07
4.71171e-06
2.49121e-07
4.71613e-06
1.72861e-07
4.71802e-06
6.20561e-08
4.72461e-06
9.17356e-08
4.73252e-06
6.84192e-08
4.73558e-06
8.15367e-09
4.73711e-06
4.57946e-08
4.73737e-06
3.87955e-08
4.7395e-06
3.40494e-08
4.74024e-06
-4.36076e-09
4.74328e-06
4.21694e-08
4.74642e-06
1.16525e-07
4.75002e-06
1.8947e-07
4.75192e-06
3.09807e-07
4.75072e-06
2.34173e-07
4.75535e-06
2.30533e-07
4.75941e-06
3.28596e-07
4.75431e-06
1.79283e-07
4.74908e-06
2.96342e-08
4.74897e-06
2.3123e-07
4.74444e-06
2.18712e-07
4.7396e-06
1.19918e-07
4.74109e-06
2.36732e-07
4.74247e-06
1.61853e-07
4.73389e-06
-6.44491e-08
4.72693e-06
-6.20309e-08
4.73189e-06
2.28486e-07
4.73732e-06
3.54942e-07
4.72914e-06
6.92812e-08
4.72317e-06
-3.87435e-08
4.72251e-06
2.45047e-07
4.71758e-06
1.11554e-07
4.71231e-06
-7.99476e-08
4.71313e-06
1.11726e-07
1.47266e-07
4.89123e-06
9.79192e-08
4.90102e-06
1.29072e-07
4.90991e-06
1.55934e-07
4.91978e-06
1.64052e-07
4.93098e-06
1.8128e-07
4.93883e-06
1.78005e-07
4.94357e-06
1.63594e-07
4.94634e-06
1.34858e-07
4.94805e-06
1.26019e-07
4.94859e-06
1.17698e-07
4.94892e-06
1.08478e-07
4.95137e-06
1.1638e-07
4.95449e-06
1.21994e-07
4.95786e-06
1.38255e-07
4.96038e-06
1.39759e-07
4.96184e-06
1.44817e-07
4.96191e-06
1.43061e-07
4.96146e-06
1.45062e-07
4.96016e-06
1.45577e-07
4.95859e-06
1.4587e-07
4.95792e-06
1.61553e-07
4.95751e-06
1.6271e-07
4.95934e-06
1.8366e-07
4.96168e-06
1.86867e-07
4.96502e-06
2.0015e-07
4.9698e-06
2.1154e-07
4.97378e-06
2.01453e-07
4.97706e-06
1.89803e-07
4.97879e-06
1.65843e-07
4.97737e-06
1.36302e-07
4.97363e-06
1.0802e-07
4.9699e-06
9.95062e-08
4.96582e-06
1.04382e-07
4.96274e-06
1.09674e-07
4.96373e-06
1.5091e-07
4.96285e-06
1.35414e-07
4.95944e-06
1.21315e-07
4.95886e-06
1.29687e-07
4.95803e-06
1.20593e-07
4.95436e-06
9.57363e-08
4.95219e-06
1.01509e-07
4.95639e-06
1.50332e-07
4.96116e-06
1.48253e-07
4.96173e-06
1.06128e-07
4.96467e-06
1.03317e-07
4.96624e-06
7.9342e-08
4.96279e-06
4.46491e-09
4.95559e-06
-3.22608e-08
4.94471e-06
-6.24744e-08
4.93765e-06
-2.49452e-08
4.9343e-06
5.00745e-08
4.93085e-06
6.91519e-08
4.93151e-06
1.4875e-07
4.93235e-06
1.8837e-07
4.93557e-06
1.9662e-07
4.94072e-06
2.76341e-07
4.94665e-06
2.29575e-07
4.95454e-06
2.30539e-07
4.95581e-06
7.3969e-08
4.94497e-06
-1.23173e-07
4.92632e-06
-2.48676e-07
4.90512e-06
-2.73695e-07
4.89859e-06
-7.6587e-08
4.91105e-06
1.72011e-07
4.92634e-06
2.80568e-07
4.93763e-06
2.37833e-07
4.94258e-06
1.67914e-07
4.94454e-06
6.00926e-08
4.95106e-06
8.52199e-08
4.95869e-06
6.07846e-08
4.96149e-06
5.35368e-09
4.96387e-06
4.34168e-08
4.96459e-06
3.80753e-08
4.96682e-06
3.1819e-08
4.96685e-06
-4.3952e-09
4.96995e-06
3.90704e-08
4.97335e-06
1.13128e-07
4.97634e-06
1.86483e-07
4.97904e-06
3.07104e-07
4.97818e-06
2.35033e-07
4.98123e-06
2.2748e-07
4.98595e-06
3.23881e-07
4.98206e-06
1.83167e-07
4.97494e-06
3.67577e-08
4.97507e-06
2.311e-07
4.972e-06
2.2178e-07
4.96592e-06
1.26001e-07
4.96723e-06
2.35426e-07
4.96956e-06
1.59522e-07
4.96059e-06
-5.54808e-08
4.95228e-06
-5.37247e-08
4.95698e-06
2.23793e-07
4.9646e-06
3.47321e-07
4.95601e-06
7.78708e-08
4.94713e-06
-2.98704e-08
4.94754e-06
2.44637e-07
4.94498e-06
1.14119e-07
4.93868e-06
-7.36505e-08
4.93832e-06
1.12086e-07
1.42538e-07
5.1269e-06
9.08007e-08
5.13665e-06
1.19323e-07
5.14578e-06
1.46806e-07
5.1555e-06
1.54331e-07
5.16681e-06
1.69975e-07
5.17479e-06
1.70025e-07
5.17983e-06
1.58552e-07
5.18295e-06
1.31736e-07
5.18466e-06
1.24313e-07
5.18498e-06
1.17376e-07
5.18508e-06
1.08379e-07
5.18699e-06
1.14471e-07
5.18967e-06
1.19306e-07
5.19305e-06
1.34881e-07
5.19556e-06
1.37249e-07
5.19721e-06
1.43162e-07
5.1977e-06
1.42572e-07
5.19778e-06
1.44983e-07
5.19713e-06
1.46227e-07
5.19609e-06
1.46913e-07
5.19585e-06
1.61792e-07
5.19566e-06
1.629e-07
5.19749e-06
1.81828e-07
5.1997e-06
1.84662e-07
5.20283e-06
1.97015e-07
5.20733e-06
2.07044e-07
5.21103e-06
1.97748e-07
5.21412e-06
1.86716e-07
5.21564e-06
1.64319e-07
5.21416e-06
1.3779e-07
5.21033e-06
1.11844e-07
5.20644e-06
1.03401e-07
5.20244e-06
1.08381e-07
5.19945e-06
1.12662e-07
5.20062e-06
1.49736e-07
5.20023e-06
1.3581e-07
5.19746e-06
1.24083e-07
5.19709e-06
1.3006e-07
5.19615e-06
1.21528e-07
5.19251e-06
9.93822e-08
5.19007e-06
1.03941e-07
5.19371e-06
1.46694e-07
5.19809e-06
1.43875e-07
5.19854e-06
1.05683e-07
5.20113e-06
1.00729e-07
5.20249e-06
7.79809e-08
5.19883e-06
8.12142e-09
5.19181e-06
-2.52414e-08
5.18137e-06
-5.20368e-08
5.17417e-06
-1.77447e-08
5.17113e-06
5.31186e-08
5.16785e-06
7.24312e-08
5.1688e-06
1.47802e-07
5.16979e-06
1.87379e-07
5.17248e-06
1.93924e-07
5.17782e-06
2.71008e-07
5.18348e-06
2.23916e-07
5.19086e-06
2.23157e-07
5.19187e-06
7.2953e-08
5.18074e-06
-1.12039e-07
5.16252e-06
-2.30459e-07
5.14217e-06
-2.53343e-07
5.13588e-06
-7.02975e-08
5.14787e-06
1.60022e-07
5.1631e-06
2.65337e-07
5.17457e-06
2.26365e-07
5.17994e-06
1.62547e-07
5.18195e-06
5.80771e-08
5.18815e-06
7.90273e-08
5.19537e-06
5.35585e-08
5.19801e-06
2.71185e-09
5.20128e-06
4.01546e-08
5.20273e-06
3.66251e-08
5.20516e-06
2.93903e-08
5.20459e-06
-3.82671e-09
5.20744e-06
3.62157e-08
5.21091e-06
1.09655e-07
5.21365e-06
1.83748e-07
5.21712e-06
3.0363e-07
5.21666e-06
2.35501e-07
5.21845e-06
2.25687e-07
5.2234e-06
3.18927e-07
5.22041e-06
1.8616e-07
5.2119e-06
4.52702e-08
5.21207e-06
2.30927e-07
5.21037e-06
2.23482e-07
5.20378e-06
1.32584e-07
5.20475e-06
2.34462e-07
5.20735e-06
1.56917e-07
5.19811e-06
-4.6232e-08
5.18908e-06
-4.47024e-08
5.19341e-06
2.19468e-07
5.20232e-06
3.38405e-07
5.19366e-06
8.65325e-08
5.18281e-06
-1.90138e-08
5.18361e-06
2.43835e-07
5.18266e-06
1.15069e-07
5.17579e-06
-6.67849e-08
5.17455e-06
1.13331e-07
1.37745e-07
5.37401e-06
8.40197e-08
5.38359e-06
1.09748e-07
5.39292e-06
1.37467e-07
5.40231e-06
1.44949e-07
5.41366e-06
1.58618e-07
5.42187e-06
1.61812e-07
5.42691e-06
1.53512e-07
5.43039e-06
1.28256e-07
5.43241e-06
1.22298e-07
5.43257e-06
1.17215e-07
5.43256e-06
1.08394e-07
5.43416e-06
1.1287e-07
5.43638e-06
1.17079e-07
5.4397e-06
1.31566e-07
5.44226e-06
1.34692e-07
5.44402e-06
1.41397e-07
5.44484e-06
1.41757e-07
5.44536e-06
1.4446e-07
5.44528e-06
1.46307e-07
5.44478e-06
1.47413e-07
5.44499e-06
1.61578e-07
5.4451e-06
1.62791e-07
5.44701e-06
1.79919e-07
5.44916e-06
1.8251e-07
5.45214e-06
1.94038e-07
5.45634e-06
2.02844e-07
5.45973e-06
1.9435e-07
5.46255e-06
1.83902e-07
5.46381e-06
1.6306e-07
5.46225e-06
1.39348e-07
5.4584e-06
1.15695e-07
5.45444e-06
1.07356e-07
5.45058e-06
1.12245e-07
5.44771e-06
1.15528e-07
5.44894e-06
1.48505e-07
5.44886e-06
1.35893e-07
5.44664e-06
1.26303e-07
5.44646e-06
1.30239e-07
5.44556e-06
1.22431e-07
5.4421e-06
1.02837e-07
5.43962e-06
1.06424e-07
5.44279e-06
1.43531e-07
5.44672e-06
1.39942e-07
5.44698e-06
1.05424e-07
5.44912e-06
9.85859e-08
5.45015e-06
7.69539e-08
5.44626e-06
1.20039e-08
5.43937e-06
-1.83444e-08
5.42943e-06
-4.21021e-08
5.4223e-06
-1.0611e-08
5.41956e-06
5.58543e-08
5.41654e-06
7.54543e-08
5.41772e-06
1.46619e-07
5.41884e-06
1.86259e-07
5.42113e-06
1.91638e-07
5.42646e-06
2.65679e-07
5.43184e-06
2.1853e-07
5.43865e-06
2.16356e-07
5.43933e-06
7.22685e-08
5.42799e-06
-1.007e-07
5.41011e-06
-2.12582e-07
5.39057e-06
-2.338e-07
5.38458e-06
-6.43016e-08
5.3961e-06
1.48497e-07
5.41126e-06
2.50177e-07
5.42292e-06
2.14708e-07
5.42863e-06
1.56838e-07
5.43071e-06
5.59968e-08
5.43648e-06
7.3253e-08
5.44326e-06
4.67798e-08
5.44581e-06
1.65886e-10
5.44991e-06
3.60494e-08
5.4522e-06
3.43344e-08
5.45488e-06
2.67146e-08
5.45387e-06
-2.81475e-09
5.45628e-06
3.38056e-08
5.45961e-06
1.0632e-07
5.46237e-06
1.80993e-07
5.46664e-06
2.99358e-07
5.46657e-06
2.35569e-07
5.46745e-06
2.24807e-07
5.47236e-06
3.14019e-07
5.46989e-06
1.88631e-07
5.46044e-06
5.47159e-08
5.46054e-06
2.30828e-07
5.45999e-06
2.24036e-07
5.45349e-06
1.39079e-07
5.45409e-06
2.33858e-07
5.45644e-06
1.5457e-07
5.44694e-06
-3.67327e-08
5.43767e-06
-3.54308e-08
5.44163e-06
2.1551e-07
5.45112e-06
3.28913e-07
5.44255e-06
9.50993e-08
5.43056e-06
-7.0246e-09
5.43134e-06
2.43062e-07
5.43125e-06
1.1516e-07
5.4241e-06
-5.96426e-08
5.42229e-06
1.15149e-07
1.32924e-07
5.63313e-06
7.73453e-08
5.64239e-06
1.00482e-07
5.65195e-06
1.27906e-07
5.66091e-06
1.35992e-07
5.67209e-06
1.4744e-07
5.68072e-06
1.53179e-07
5.6856e-06
1.4864e-07
5.68918e-06
1.24675e-07
5.69179e-06
1.19685e-07
5.692e-06
1.17008e-07
5.69185e-06
1.08543e-07
5.69336e-06
1.11357e-07
5.69525e-06
1.15193e-07
5.6984e-06
1.28414e-07
5.70105e-06
1.32036e-07
5.70292e-06
1.39528e-07
5.70397e-06
1.40711e-07
5.70485e-06
1.43575e-07
5.70522e-06
1.45944e-07
5.70519e-06
1.47436e-07
5.70584e-06
1.60931e-07
5.70626e-06
1.62371e-07
5.70829e-06
1.77894e-07
5.71046e-06
1.80338e-07
5.71334e-06
1.91153e-07
5.71727e-06
1.98919e-07
5.72038e-06
1.91243e-07
5.7229e-06
1.81379e-07
5.72387e-06
1.62089e-07
5.72224e-06
1.40975e-07
5.71841e-06
1.19527e-07
5.71449e-06
1.11282e-07
5.71078e-06
1.15949e-07
5.70803e-06
1.18276e-07
5.70922e-06
1.4732e-07
5.7093e-06
1.35808e-07
5.70753e-06
1.28072e-07
5.7075e-06
1.3027e-07
5.7067e-06
1.23237e-07
5.70354e-06
1.0599e-07
5.70118e-06
1.0879e-07
5.70397e-06
1.4074e-07
5.70747e-06
1.36445e-07
5.70754e-06
1.05346e-07
5.70921e-06
9.69165e-08
5.70983e-06
7.63336e-08
5.70571e-06
1.61229e-08
5.69889e-06
-1.15249e-08
5.68946e-06
-3.26631e-08
5.68251e-06
-3.6624e-09
5.68005e-06
5.83117e-08
5.67729e-06
7.82171e-08
5.67864e-06
1.45264e-07
5.67986e-06
1.85044e-07
5.68185e-06
1.89644e-07
5.68708e-06
2.60453e-07
5.69219e-06
2.13412e-07
5.69841e-06
2.10143e-07
5.69872e-06
7.19514e-08
5.68728e-06
-8.92586e-08
5.66968e-06
-1.94983e-07
5.65085e-06
-2.14972e-07
5.64514e-06
-5.85885e-08
5.65621e-06
1.37423e-07
5.67128e-06
2.35111e-07
5.6831e-06
2.02885e-07
5.68912e-06
1.50827e-07
5.69131e-06
5.38015e-08
5.69669e-06
6.78773e-08
5.70307e-06
4.03971e-08
5.70555e-06
-2.31043e-09
5.71036e-06
3.12295e-08
5.71347e-06
3.12298e-08
5.71641e-06
2.3778e-08
5.71514e-06
-1.54963e-09
5.71703e-06
3.19132e-08
5.72003e-06
1.03319e-07
5.72296e-06
1.78063e-07
5.72805e-06
2.94275e-07
5.72837e-06
2.35251e-07
5.72866e-06
2.24515e-07
5.73336e-06
3.0932e-07
5.73109e-06
1.909e-07
5.72108e-06
6.47238e-08
5.72106e-06
2.30854e-07
5.72135e-06
2.23737e-07
5.71533e-06
1.45105e-07
5.71564e-06
2.33549e-07
5.71738e-06
1.52828e-07
5.70764e-06
-2.69949e-08
5.69843e-06
-2.62194e-08
5.70206e-06
2.11883e-07
5.71161e-06
3.19361e-07
5.70319e-06
1.03524e-07
5.69075e-06
5.40651e-09
5.6913e-06
2.42513e-07
5.69144e-06
1.1502e-07
5.68418e-06
-5.23842e-08
5.68207e-06
1.17262e-07
1.28078e-07
5.90475e-06
7.05857e-08
5.91369e-06
9.15388e-08
5.92344e-06
1.18154e-07
5.93204e-06
1.27395e-07
5.94273e-06
1.36751e-07
5.95185e-06
1.44061e-07
5.9567e-06
1.43787e-07
5.95997e-06
1.21403e-07
5.96323e-06
1.16427e-07
5.96388e-06
1.1636e-07
5.96356e-06
1.08862e-07
5.96506e-06
1.09855e-07
5.96685e-06
1.13403e-07
5.96974e-06
1.25521e-07
5.97249e-06
1.29293e-07
5.97452e-06
1.37489e-07
5.97573e-06
1.39509e-07
5.97688e-06
1.42423e-07
5.97758e-06
1.45246e-07
5.97792e-06
1.4709e-07
5.97895e-06
1.59905e-07
5.97966e-06
1.61665e-07
5.9818e-06
1.75752e-07
5.98403e-06
1.78103e-07
5.98689e-06
1.88292e-07
5.99059e-06
1.95224e-07
5.99345e-06
1.88384e-07
5.99571e-06
1.7912e-07
5.99642e-06
1.6138e-07
5.99475e-06
1.42646e-07
5.99097e-06
1.23307e-07
5.98712e-06
1.15125e-07
5.98361e-06
1.19468e-07
5.98098e-06
1.20905e-07
5.98203e-06
1.46265e-07
5.98215e-06
1.35685e-07
5.98073e-06
1.29498e-07
5.98079e-06
1.30205e-07
5.9801e-06
1.23931e-07
5.97728e-06
1.08809e-07
5.97514e-06
1.10935e-07
5.97765e-06
1.3823e-07
5.98076e-06
1.33336e-07
5.9807e-06
1.05402e-07
5.98193e-06
9.56905e-08
5.98213e-06
7.61246e-08
5.9778e-06
2.04584e-08
5.97103e-06
-4.75664e-09
5.96203e-06
-2.36643e-08
5.9553e-06
3.06971e-09
5.95305e-06
6.05613e-08
5.95049e-06
8.07766e-08
5.95194e-06
1.43811e-07
5.95321e-06
1.83781e-07
5.95502e-06
1.87835e-07
5.96011e-06
2.55355e-07
5.96499e-06
2.08533e-07
5.97067e-06
2.04469e-07
5.97062e-06
7.19969e-08
5.95918e-06
-7.7817e-08
5.94185e-06
-1.77648e-07
5.92363e-06
-1.96753e-07
5.91814e-06
-5.31049e-08
5.92877e-06
1.26799e-07
5.9437e-06
2.20178e-07
5.95565e-06
1.90938e-07
5.96194e-06
1.44528e-07
5.96433e-06
5.14143e-08
5.9694e-06
6.281e-08
5.97549e-06
3.4306e-08
5.9779e-06
-4.72337e-09
5.98325e-06
2.58864e-08
5.98704e-06
2.74384e-08
5.99023e-06
2.05886e-08
5.9889e-06
-2.19281e-10
5.99031e-06
3.0498e-08
5.99286e-06
1.00774e-07
5.99601e-06
1.74912e-07
6.00185e-06
2.88429e-07
6.00253e-06
2.34576e-07
6.00251e-06
2.24538e-07
6.00693e-06
3.04897e-07
6.00464e-06
1.93185e-07
5.99435e-06
7.50139e-08
5.99419e-06
2.31013e-07
5.99503e-06
2.22902e-07
5.98964e-06
1.5049e-07
5.98977e-06
2.33423e-07
5.99075e-06
1.51851e-07
5.98079e-06
-1.70404e-08
5.9718e-06
-1.72316e-08
5.97513e-06
2.08554e-07
5.98443e-06
3.10067e-07
5.97613e-06
1.11818e-07
5.96375e-06
1.77934e-08
5.96403e-06
2.42228e-07
5.96397e-06
1.15084e-07
5.95667e-06
-4.50855e-08
5.95448e-06
1.19454e-07
1.23194e-07
6.18928e-06
6.3665e-08
6.19807e-06
8.27514e-08
6.20796e-06
1.08263e-07
6.21634e-06
1.19019e-07
6.22631e-06
1.26775e-07
6.23575e-06
1.3462e-07
6.24093e-06
1.38605e-07
6.24365e-06
1.18685e-07
6.24727e-06
1.12811e-07
6.24876e-06
1.14865e-07
6.24839e-06
1.09236e-07
6.24977e-06
1.08474e-07
6.25168e-06
1.11491e-07
6.25434e-06
1.22861e-07
6.25707e-06
1.26562e-07
6.25935e-06
1.35209e-07
6.2607e-06
1.38162e-07
6.26203e-06
1.41092e-07
6.263e-06
1.44282e-07
6.26359e-06
1.46494e-07
6.26491e-06
1.58588e-07
6.26586e-06
1.60709e-07
6.26809e-06
1.73522e-07
6.27041e-06
1.75783e-07
6.2733e-06
1.85402e-07
6.27681e-06
1.91714e-07
6.27948e-06
1.85721e-07
6.28153e-06
1.7707e-07
6.28202e-06
1.60884e-07
6.28035e-06
1.44316e-07
6.27667e-06
1.26984e-07
6.27296e-06
1.18839e-07
6.26963e-06
1.22797e-07
6.2671e-06
1.23433e-07
6.26799e-06
1.45374e-07
6.26808e-06
1.35601e-07
6.26689e-06
1.30686e-07
6.26697e-06
1.3012e-07
6.26637e-06
1.24534e-07
6.26388e-06
1.11302e-07
6.26199e-06
1.12819e-07
6.26427e-06
1.35952e-07
6.26705e-06
1.30563e-07
6.26693e-06
1.05515e-07
6.26779e-06
9.48295e-08
6.26764e-06
7.62817e-08
6.26313e-06
2.49637e-08
6.25641e-06
1.96155e-09
6.24779e-06
-1.50377e-08
6.24123e-06
9.62218e-09
6.23909e-06
6.27079e-08
6.23664e-06
8.32215e-08
6.23812e-06
1.4233e-07
6.23939e-06
1.82514e-07
6.2411e-06
1.86128e-07
6.24608e-06
2.50369e-07
6.25076e-06
2.03852e-07
6.25598e-06
1.99253e-07
6.25561e-06
7.23706e-08
6.24426e-06
-6.6471e-08
6.22723e-06
-1.60618e-07
6.20954e-06
-1.79069e-07
6.20422e-06
-4.77797e-08
6.21438e-06
1.16642e-07
6.22911e-06
2.0544e-07
6.24113e-06
1.78921e-07
6.24772e-06
1.37941e-07
6.25038e-06
4.87535e-08
6.25526e-06
5.79331e-08
6.26117e-06
2.83896e-08
6.26353e-06
-7.07597e-09
6.26918e-06
2.02311e-08
6.27347e-06
2.31445e-08
6.27689e-06
1.71689e-08
6.27566e-06
1.01457e-09
6.27671e-06
2.94457e-08
6.27877e-06
9.87169e-08
6.28212e-06
1.7156e-07
6.28862e-06
2.81928e-07
6.28961e-06
2.33588e-07
6.28947e-06
2.24682e-07
6.2936e-06
3.00764e-07
6.29119e-06
1.95595e-07
6.28082e-06
8.53845e-08
6.28054e-06
2.31293e-07
6.28162e-06
2.21824e-07
6.27688e-06
1.55233e-07
6.27693e-06
2.33364e-07
6.27715e-06
1.51636e-07
6.26701e-06
-6.90403e-09
6.25829e-06
-8.51144e-09
6.26134e-06
2.05513e-07
6.27021e-06
3.01188e-07
6.26203e-06
1.20005e-07
6.24997e-06
2.98512e-08
6.25004e-06
2.42159e-07
6.24954e-06
1.15586e-07
6.24223e-06
-3.77821e-08
6.2401e-06
1.21587e-07
1.18263e-07
6.48729e-06
5.66949e-08
6.49612e-06
7.39216e-08
6.50617e-06
9.82088e-08
6.51443e-06
1.10764e-07
6.52357e-06
1.1763e-07
6.53301e-06
1.25185e-07
6.53879e-06
1.32827e-07
6.54113e-06
1.16337e-07
6.54464e-06
1.09301e-07
6.54712e-06
1.12389e-07
6.54705e-06
1.0931e-07
6.54817e-06
1.07353e-07
6.55023e-06
1.09426e-07
6.55279e-06
1.20302e-07
6.55539e-06
1.23964e-07
6.55793e-06
1.32667e-07
6.55946e-06
1.36634e-07
6.56088e-06
1.39669e-07
6.56209e-06
1.43075e-07
6.56287e-06
1.45712e-07
6.56436e-06
1.57101e-07
6.56552e-06
1.59548e-07
6.5678e-06
1.7124e-07
6.57018e-06
1.73406e-07
6.57313e-06
1.82451e-07
6.57652e-06
1.88326e-07
6.57903e-06
1.83211e-07
6.58093e-06
1.75168e-07
6.5813e-06
1.60519e-07
6.57967e-06
1.45943e-07
6.57613e-06
1.30523e-07
6.57258e-06
1.22388e-07
6.56947e-06
1.25905e-07
6.56705e-06
1.25859e-07
6.56773e-06
1.44696e-07
6.56772e-06
1.3561e-07
6.56669e-06
1.31713e-07
6.56674e-06
1.30066e-07
6.56618e-06
1.25093e-07
6.56396e-06
1.13523e-07
6.56234e-06
1.14439e-07
6.56442e-06
1.33874e-07
6.5669e-06
1.28088e-07
6.56677e-06
1.05637e-07
6.56736e-06
9.42443e-08
6.56692e-06
7.67247e-08
6.56232e-06
2.95639e-08
6.55567e-06
8.61095e-09
6.54736e-06
-6.73287e-09
6.54094e-06
1.60467e-08
6.53878e-06
6.48605e-08
6.53635e-06
8.56572e-08
6.53778e-06
1.40899e-07
6.53901e-06
1.81282e-07
6.54068e-06
1.8446e-07
6.54558e-06
2.45465e-07
6.55011e-06
1.99323e-07
6.55495e-06
1.94414e-07
6.55429e-06
7.30279e-08
6.54312e-06
-5.52957e-08
6.52647e-06
-1.43966e-07
6.50929e-06
-1.61891e-07
6.50406e-06
-4.25516e-08
6.51372e-06
1.06981e-07
6.52819e-06
1.90972e-07
6.54022e-06
1.66891e-07
6.54709e-06
1.31065e-07
6.55009e-06
4.57539e-08
6.55489e-06
5.31342e-08
6.56073e-06
2.2554e-08
6.56303e-06
-9.37586e-09
6.56881e-06
1.44466e-08
6.57341e-06
1.85452e-08
6.57703e-06
1.35527e-08
6.57601e-06
2.0336e-09
6.57684e-06
2.86138e-08
6.57846e-06
9.70994e-08
6.58197e-06
1.68052e-07
6.58898e-06
2.7492e-07
6.59022e-06
2.32339e-07
6.59008e-06
2.24822e-07
6.59394e-06
2.96902e-07
6.59138e-06
1.98156e-07
6.58108e-06
9.56927e-08
6.58071e-06
2.31659e-07
6.5818e-06
2.20732e-07
6.57759e-06
1.59446e-07
6.57767e-06
2.3328e-07
6.57724e-06
1.52071e-07
6.56696e-06
3.37404e-09
6.55847e-06
-2.06042e-11
6.56123e-06
2.02755e-07
6.56966e-06
2.92759e-07
6.56156e-06
1.28102e-07
6.54995e-06
4.14619e-08
6.54987e-06
2.42236e-07
6.54886e-06
1.16599e-07
6.54158e-06
-3.04996e-08
6.53958e-06
1.23586e-07
1.13286e-07
6.79947e-06
4.98779e-08
6.80841e-06
6.4979e-08
6.81878e-06
8.78399e-08
6.82697e-06
1.02576e-07
6.83522e-06
1.09376e-07
6.84433e-06
1.1608e-07
6.85071e-06
1.26442e-07
6.85316e-06
1.13888e-07
6.85627e-06
1.06195e-07
6.85945e-06
1.09213e-07
6.86009e-06
1.08663e-07
6.861e-06
1.06445e-07
6.86305e-06
1.07379e-07
6.86564e-06
1.17711e-07
6.86807e-06
1.21534e-07
6.87082e-06
1.29916e-07
6.8726e-06
1.34855e-07
6.87405e-06
1.3822e-07
6.87547e-06
1.41651e-07
6.87645e-06
1.44733e-07
6.87801e-06
1.55542e-07
6.87931e-06
1.58249e-07
6.88163e-06
1.68916e-07
6.88403e-06
1.71008e-07
6.88704e-06
1.79444e-07
6.89035e-06
1.85014e-07
6.89274e-06
1.80819e-07
6.89455e-06
1.73362e-07
6.89485e-06
1.60217e-07
6.89332e-06
1.47469e-07
6.88998e-06
1.33864e-07
6.88662e-06
1.2575e-07
6.88373e-06
1.28792e-07
6.88142e-06
1.28171e-07
6.8819e-06
1.44211e-07
6.88178e-06
1.35733e-07
6.88083e-06
1.32666e-07
6.88079e-06
1.30107e-07
6.88025e-06
1.25633e-07
6.87825e-06
1.15518e-07
6.87686e-06
1.15833e-07
6.87875e-06
1.31988e-07
6.88096e-06
1.25877e-07
6.88087e-06
1.05719e-07
6.88126e-06
9.38637e-08
6.88059e-06
7.73887e-08
6.87596e-06
3.41941e-08
6.86942e-06
1.51568e-08
6.8614e-06
1.27933e-09
6.85506e-06
2.23875e-08
6.85282e-06
6.71014e-08
6.85032e-06
8.81574e-08
6.85165e-06
1.39574e-07
6.85281e-06
1.80117e-07
6.85446e-06
1.82815e-07
6.85929e-06
2.40631e-07
6.8637e-06
1.94918e-07
6.86823e-06
1.89884e-07
6.86734e-06
7.3917e-08
6.85639e-06
-4.43491e-08
6.8402e-06
-1.27777e-07
6.82355e-06
-1.45234e-07
6.81838e-06
-3.73821e-08
6.82751e-06
9.7846e-08
6.84162e-06
1.76859e-07
6.85361e-06
1.54903e-07
6.86077e-06
1.23909e-07
6.86414e-06
4.23817e-08
6.86895e-06
4.83255e-08
6.87476e-06
1.67405e-08
6.87703e-06
-1.16376e-08
6.88281e-06
8.6634e-09
6.88754e-06
1.38155e-08
6.89131e-06
9.77871e-09
6.89058e-06
2.77026e-09
6.89132e-06
2.78729e-08
6.8926e-06
9.58206e-08
6.89622e-06
1.64432e-07
6.90358e-06
2.67555e-07
6.90504e-06
2.30882e-07
6.90496e-06
2.24902e-07
6.90857e-06
2.93291e-07
6.90589e-06
2.00839e-07
6.89574e-06
1.0584e-07
6.89533e-06
2.32068e-07
6.89629e-06
2.19771e-07
6.89245e-06
1.63284e-07
6.89261e-06
2.33117e-07
6.89169e-06
1.52992e-07
6.88131e-06
1.37542e-08
6.87297e-06
8.32305e-09
6.87544e-06
2.00284e-07
6.88345e-06
2.84746e-07
6.87545e-06
1.3611e-07
6.86429e-06
5.26207e-08
6.86412e-06
2.424e-07
6.86263e-06
1.1809e-07
6.8554e-06
-2.32668e-08
6.85356e-06
1.25425e-07
1.0828e-07
7.12679e-06
4.32007e-08
7.13572e-06
5.60497e-08
7.14649e-06
7.70717e-08
7.15457e-06
9.44869e-08
7.16184e-06
1.02109e-07
7.17041e-06
1.07508e-07
7.17728e-06
1.19577e-07
7.1803e-06
1.1087e-07
7.18314e-06
1.03348e-07
7.18648e-06
1.05878e-07
7.188e-06
1.07138e-07
7.18903e-06
1.05415e-07
7.19086e-06
1.0555e-07
7.19343e-06
1.15142e-07
7.19577e-06
1.19199e-07
7.19864e-06
1.27039e-07
7.20071e-06
1.32792e-07
7.20216e-06
1.36771e-07
7.20375e-06
1.40059e-07
7.20501e-06
1.43474e-07
7.2066e-06
1.53948e-07
7.20794e-06
1.56911e-07
7.2103e-06
1.66552e-07
7.21269e-06
1.68623e-07
7.21571e-06
1.7642e-07
7.219e-06
1.81728e-07
7.22131e-06
1.78504e-07
7.22306e-06
1.71618e-07
7.22337e-06
1.59904e-07
7.22198e-06
1.4886e-07
7.21886e-06
1.36986e-07
7.21571e-06
1.28898e-07
7.21308e-06
1.31423e-07
7.21089e-06
1.30357e-07
7.21116e-06
1.43943e-07
7.21092e-06
1.35972e-07
7.21004e-06
1.33547e-07
7.20988e-06
1.30266e-07
7.20932e-06
1.26198e-07
7.20749e-06
1.17347e-07
7.20629e-06
1.17034e-07
7.20799e-06
1.30284e-07
7.20995e-06
1.23923e-07
7.2099e-06
1.05767e-07
7.21014e-06
9.36197e-08
7.20933e-06
7.82006e-08
7.20474e-06
3.87875e-08
7.19832e-06
2.15744e-08
7.19058e-06
9.01342e-09
7.1843e-06
2.86684e-08
7.18191e-06
6.94911e-08
7.17929e-06
9.07862e-08
7.18046e-06
1.38397e-07
7.18156e-06
1.79021e-07
7.18321e-06
1.81167e-07
7.18798e-06
2.35861e-07
7.19226e-06
1.9063e-07
7.19651e-06
1.85634e-07
7.19543e-06
7.50047e-08
7.18474e-06
-3.36659e-08
7.1691e-06
-1.1213e-07
7.15301e-06
-1.29145e-07
7.14789e-06
-3.2263e-08
7.15648e-06
8.92536e-08
7.17016e-06
1.63182e-07
7.18205e-06
1.43009e-07
7.18947e-06
1.16492e-07
7.19322e-06
3.86338e-08
7.19809e-06
4.34525e-08
7.2039e-06
1.09306e-08
7.20614e-06
-1.38802e-08
7.21185e-06
2.95091e-09
7.21658e-06
9.08692e-09
7.22047e-06
5.8878e-09
7.22004e-06
3.20592e-09
7.22078e-06
2.71265e-08
7.22185e-06
9.47578e-08
7.22555e-06
1.60728e-07
7.23313e-06
2.59973e-07
7.23476e-06
2.29257e-07
7.23476e-06
2.24897e-07
7.23815e-06
2.89907e-07
7.23539e-06
2.03597e-07
7.22547e-06
1.15758e-07
7.22507e-06
2.32474e-07
7.22583e-06
2.19009e-07
7.22221e-06
1.66898e-07
7.22246e-06
2.32867e-07
7.22122e-06
1.54238e-07
7.21077e-06
2.41981e-08
7.20249e-06
1.66086e-08
7.20467e-06
1.98102e-07
7.21233e-06
2.77083e-07
7.20443e-06
1.44014e-07
7.19367e-06
6.33805e-08
7.19345e-06
2.42617e-07
7.19156e-06
1.19981e-07
7.18441e-06
-1.61164e-08
7.18273e-06
1.2711e-07
1.03272e-07
7.47022e-06
3.60905e-08
7.47925e-06
4.70182e-08
7.49001e-06
6.63115e-08
7.49792e-06
8.65738e-08
7.50401e-06
9.60212e-08
7.51194e-06
9.95721e-08
7.51919e-06
1.12327e-07
7.52301e-06
1.07056e-07
7.52602e-06
1.00339e-07
7.52913e-06
1.02764e-07
7.53123e-06
1.05038e-07
7.53282e-06
1.03823e-07
7.53448e-06
1.03894e-07
7.53685e-06
1.12774e-07
7.53914e-06
1.16907e-07
7.54211e-06
1.24065e-07
7.54449e-06
1.3042e-07
7.54594e-06
1.35322e-07
7.54758e-06
1.38414e-07
7.5492e-06
1.41852e-07
7.55091e-06
1.52245e-07
7.55219e-06
1.55633e-07
7.55458e-06
1.6416e-07
7.55698e-06
1.66219e-07
7.55994e-06
1.73456e-07
7.5632e-06
1.78471e-07
7.56549e-06
1.76214e-07
7.56718e-06
1.69932e-07
7.56754e-06
1.59538e-07
7.56635e-06
1.50058e-07
7.56349e-06
1.39845e-07
7.56054e-06
1.31843e-07
7.55815e-06
1.33819e-07
7.55613e-06
1.32373e-07
7.55623e-06
1.43842e-07
7.55587e-06
1.3633e-07
7.55501e-06
1.34407e-07
7.55473e-06
1.30554e-07
7.55415e-06
1.26771e-07
7.55248e-06
1.19019e-07
7.55142e-06
1.18092e-07
7.55295e-06
1.2876e-07
7.55467e-06
1.22198e-07
7.55465e-06
1.05787e-07
7.55476e-06
9.35064e-08
7.55381e-06
7.91507e-08
7.5493e-06
4.33048e-08
7.54304e-06
2.78319e-08
7.53559e-06
1.64658e-08
7.52937e-06
3.48874e-08
7.52682e-06
7.20392e-08
7.52405e-06
9.35549e-08
7.52505e-06
1.37397e-07
7.52606e-06
1.78009e-07
7.5277e-06
1.7953e-07
7.53239e-06
2.31173e-07
7.53656e-06
1.86459e-07
7.54055e-06
1.81641e-07
7.5393e-06
7.6258e-08
7.5289e-06
-2.32663e-08
7.51385e-06
-9.70828e-08
7.49838e-06
-1.13676e-07
7.49333e-06
-2.72088e-08
7.50137e-06
8.12127e-08
7.51454e-06
1.50007e-07
7.5263e-06
1.31257e-07
7.53394e-06
1.0885e-07
7.53804e-06
3.45349e-08
7.543e-06
3.84934e-08
7.5488e-06
5.12747e-09
7.55104e-06
-1.61234e-08
7.55666e-06
-2.66457e-09
7.5613e-06
4.44436e-09
7.56527e-06
1.91637e-09
7.56512e-06
3.35967e-09
7.56592e-06
2.63198e-08
7.56689e-06
9.3795e-08
7.57066e-06
1.5696e-07
7.57835e-06
2.52282e-07
7.58012e-06
2.27488e-07
7.58022e-06
2.24796e-07
7.5834e-06
2.86725e-07
7.58062e-06
2.06374e-07
7.57098e-06
1.25405e-07
7.57061e-06
2.32844e-07
7.57116e-06
2.18452e-07
7.56767e-06
1.70393e-07
7.56799e-06
2.32549e-07
7.56654e-06
1.55685e-07
7.55607e-06
3.46693e-08
7.54777e-06
2.49097e-08
7.54965e-06
1.96216e-07
7.55702e-06
2.69714e-07
7.54925e-06
1.51789e-07
7.53882e-06
7.38032e-08
7.53857e-06
2.42869e-07
7.53636e-06
1.2219e-07
7.52933e-06
-9.07885e-09
7.52778e-06
1.28654e-07
9.82922e-08
7.83172e-06
2.66251e-08
7.8406e-06
3.81346e-08
7.84979e-06
5.71267e-08
7.85746e-06
7.89046e-08
7.86247e-06
9.10083e-08
7.8697e-06
9.23359e-08
7.87742e-06
1.04608e-07
7.88193e-06
1.02545e-07
7.88551e-06
9.67673e-08
7.88848e-06
9.97908e-08
7.89056e-06
1.02952e-07
7.89285e-06
1.01536e-07
7.89467e-06
1.02078e-07
7.89669e-06
1.10747e-07
7.89886e-06
1.1474e-07
7.90192e-06
1.21003e-07
7.90463e-06
1.27716e-07
7.90613e-06
1.33816e-07
7.90771e-06
1.36834e-07
7.90969e-06
1.39874e-07
7.91167e-06
1.50267e-07
7.91285e-06
1.54445e-07
7.91519e-06
1.61824e-07
7.91767e-06
1.63734e-07
7.92058e-06
1.70555e-07
7.92377e-06
1.75274e-07
7.92608e-06
1.73909e-07
7.92772e-06
1.68285e-07
7.92816e-06
1.59097e-07
7.92717e-06
1.51051e-07
7.92458e-06
1.42438e-07
7.92185e-06
1.34568e-07
7.91971e-06
1.35965e-07
7.91785e-06
1.34226e-07
7.91779e-06
1.43903e-07
7.91735e-06
1.36776e-07
7.91654e-06
1.3521e-07
7.91614e-06
1.30961e-07
7.91552e-06
1.27391e-07
7.91399e-06
1.2055e-07
7.91306e-06
1.19015e-07
7.91442e-06
1.27403e-07
7.91592e-06
1.207e-07
7.91591e-06
1.05796e-07
7.91593e-06
9.34893e-08
7.91486e-06
8.02155e-08
7.91042e-06
4.77421e-08
7.90431e-06
3.3943e-08
7.89713e-06
2.36497e-08
7.89098e-06
4.10339e-08
7.88828e-06
7.47468e-08
7.88537e-06
9.64613e-08
7.88619e-06
1.36573e-07
7.88715e-06
1.77052e-07
7.8888e-06
1.77882e-07
7.89339e-06
2.26585e-07
7.89741e-06
1.82433e-07
7.90113e-06
1.77924e-07
7.89971e-06
7.76737e-08
7.88961e-06
-1.31606e-08
7.87519e-06
-8.26676e-08
7.86039e-06
-9.88766e-08
7.85544e-06
-2.22541e-08
7.86294e-06
7.37077e-08
7.87557e-06
1.37381e-07
7.88713e-06
1.19693e-07
7.89496e-06
1.01027e-07
7.89937e-06
3.01277e-08
7.9044e-06
3.34576e-08
7.91017e-06
-6.40865e-10
7.91243e-06
-1.8383e-08
7.91795e-06
-8.18591e-09
7.92246e-06
-6.77362e-11
7.92648e-06
-2.10546e-09
7.92658e-06
3.26803e-09
7.92747e-06
2.54249e-08
7.92843e-06
9.28339e-08
7.93225e-06
1.53141e-07
7.93996e-06
2.44572e-07
7.94187e-06
2.25581e-07
7.94208e-06
2.24581e-07
7.9451e-06
2.8371e-07
7.94235e-06
2.09122e-07
7.933e-06
1.34753e-07
7.93268e-06
2.33165e-07
7.93305e-06
2.18082e-07
7.92962e-06
1.73823e-07
7.92998e-06
2.32194e-07
7.9284e-06
1.57258e-07
7.91794e-06
4.51319e-08
7.90958e-06
3.3265e-08
7.91117e-06
1.94635e-07
7.91827e-06
2.62608e-07
7.91066e-06
1.59406e-07
7.90053e-06
8.39314e-08
7.90026e-06
2.4314e-07
7.89779e-06
1.24653e-07
7.89089e-06
-2.17522e-09
7.88947e-06
1.30069e-07
9.33697e-08
8.22009e-06
2.78346e-08
8.21998e-06
3.8245e-08
8.22577e-06
5.13346e-08
8.23349e-06
7.11846e-08
8.23813e-06
8.63638e-08
8.24456e-06
8.59085e-08
8.25279e-06
9.63831e-08
8.25782e-06
9.75074e-08
8.26194e-06
9.26509e-08
8.26528e-06
9.64534e-08
8.26695e-06
1.0128e-07
8.2695e-06
9.89883e-08
8.27197e-06
9.96057e-08
8.27381e-06
1.08904e-07
8.27565e-06
1.12899e-07
8.27873e-06
1.17922e-07
8.28183e-06
1.24622e-07
8.28352e-06
1.32121e-07
8.28495e-06
1.3541e-07
8.28714e-06
1.37677e-07
8.2896e-06
1.47813e-07
8.29079e-06
1.53253e-07
8.29294e-06
1.59676e-07
8.29553e-06
1.61142e-07
8.2984e-06
1.67688e-07
8.30143e-06
1.72237e-07
8.30377e-06
1.71574e-07
8.30543e-06
1.66623e-07
8.30596e-06
1.58574e-07
8.30521e-06
1.51795e-07
8.30294e-06
1.44711e-07
8.3004e-06
1.37109e-07
8.29844e-06
1.37923e-07
8.29678e-06
1.35884e-07
8.29662e-06
1.44062e-07
8.29607e-06
1.37324e-07
8.29531e-06
1.35977e-07
8.29483e-06
1.31439e-07
8.29422e-06
1.27996e-07
8.29283e-06
1.2194e-07
8.29199e-06
1.1986e-07
8.29316e-06
1.26226e-07
8.29447e-06
1.19397e-07
8.29447e-06
1.05791e-07
8.2944e-06
9.35629e-08
8.29322e-06
8.139e-08
8.28889e-06
5.20738e-08
8.28295e-06
3.98836e-08
8.27602e-06
3.05801e-08
8.26994e-06
4.71165e-08
8.26706e-06
7.7629e-08
8.264e-06
9.9515e-08
8.26463e-06
1.35945e-07
8.26554e-06
1.76145e-07
8.26723e-06
1.76193e-07
8.27175e-06
2.22059e-07
8.27568e-06
1.78506e-07
8.27915e-06
1.7446e-07
8.27755e-06
7.92668e-08
8.26769e-06
-3.30259e-09
8.25388e-06
-6.88508e-08
8.23977e-06
-8.47702e-08
8.23497e-06
-1.74572e-08
8.24198e-06
6.66993e-08
8.25405e-06
1.25314e-07
8.2654e-06
1.08347e-07
8.27334e-06
9.30835e-08
8.27799e-06
2.54769e-08
8.28308e-06
2.83714e-08
8.28878e-06
-6.34392e-09
8.29106e-06
-2.06669e-08
8.2965e-06
-1.362e-08
8.30086e-06
-4.42796e-09
8.3049e-06
-6.14897e-09
8.30518e-06
2.98407e-09
8.30617e-06
2.44361e-08
8.30721e-06
9.17963e-08
8.31107e-06
1.4928e-07
8.31872e-06
2.36925e-07
8.32076e-06
2.2354e-07
8.32114e-06
2.24205e-07
8.32404e-06
2.80802e-07
8.32136e-06
2.11802e-07
8.31232e-06
1.43799e-07
8.31204e-06
2.33447e-07
8.31225e-06
2.17869e-07
8.30889e-06
1.77185e-07
8.30926e-06
2.31818e-07
8.30759e-06
1.58928e-07
8.29716e-06
5.55648e-08
8.28874e-06
4.16835e-08
8.29001e-06
1.9337e-07
8.29685e-06
2.55762e-07
8.28942e-06
1.66833e-07
8.27958e-06
9.37762e-08
8.27931e-06
2.43408e-07
8.27664e-06
1.27329e-07
8.26987e-06
4.5881e-09
8.26858e-06
1.31357e-07
8.85287e-08
8.61765e-06
2.65135e-08
8.61701e-06
3.88854e-08
8.62017e-06
4.81713e-08
8.6277e-06
6.36581e-08
8.63269e-06
8.13696e-08
8.63783e-06
8.07681e-08
8.64603e-06
8.81894e-08
8.65168e-06
9.18547e-08
8.65604e-06
8.82913e-08
8.66026e-06
9.22344e-08
8.66172e-06
9.98164e-08
8.66375e-06
9.69592e-08
8.66702e-06
9.63369e-08
8.6692e-06
1.06729e-07
8.67057e-06
1.11524e-07
8.67343e-06
1.15065e-07
8.67688e-06
1.21167e-07
8.67899e-06
1.30018e-07
8.68025e-06
1.34146e-07
8.68239e-06
1.3554e-07
8.6854e-06
1.44803e-07
8.68685e-06
1.51798e-07
8.6887e-06
1.57833e-07
8.69133e-06
1.58509e-07
8.69433e-06
1.64682e-07
8.69721e-06
1.69364e-07
8.6995e-06
1.69286e-07
8.70122e-06
1.64898e-07
8.70186e-06
1.57936e-07
8.70131e-06
1.52345e-07
8.69936e-06
1.46662e-07
8.69705e-06
1.39413e-07
8.69527e-06
1.39701e-07
8.69376e-06
1.37397e-07
8.69351e-06
1.44311e-07
8.69292e-06
1.37915e-07
8.69224e-06
1.36655e-07
8.6917e-06
1.31982e-07
8.69106e-06
1.28636e-07
8.68981e-06
1.2319e-07
8.68908e-06
1.20591e-07
8.6901e-06
1.25201e-07
8.69121e-06
1.1829e-07
8.69121e-06
1.05794e-07
8.69107e-06
9.37036e-08
8.6898e-06
8.26607e-08
8.68555e-06
5.63243e-08
8.67973e-06
4.56991e-08
8.67303e-06
3.72837e-08
8.66702e-06
5.31267e-08
8.66397e-06
8.06757e-08
8.6608e-06
1.02685e-07
8.66127e-06
1.35476e-07
8.66218e-06
1.75236e-07
8.66393e-06
1.7444e-07
8.66835e-06
2.17638e-07
8.67212e-06
1.74737e-07
8.67531e-06
1.71277e-07
8.67355e-06
8.10219e-08
8.66398e-06
6.26684e-09
8.65079e-06
-5.56597e-08
8.6374e-06
-7.1381e-08
8.63279e-06
-1.28471e-08
8.63931e-06
6.01804e-08
8.65079e-06
1.13831e-07
8.66188e-06
9.72569e-08
8.66989e-06
8.50707e-08
8.67475e-06
2.06215e-08
8.67986e-06
2.32655e-08
8.68546e-06
-1.19465e-08
8.68777e-06
-2.29803e-08
8.69312e-06
-1.89737e-08
8.69732e-06
-8.62744e-09
8.70137e-06
-1.01898e-08
8.7018e-06
2.548e-09
8.70289e-06
2.33489e-08
8.70405e-06
9.0634e-08
8.70793e-06
1.45405e-07
8.71543e-06
2.2942e-07
8.71761e-06
2.21362e-07
8.7182e-06
2.23614e-07
8.72107e-06
2.7793e-07
8.7185e-06
2.14372e-07
8.70976e-06
1.52537e-07
8.7095e-06
2.33709e-07
8.70957e-06
2.17803e-07
8.70629e-06
1.80461e-07
8.70668e-06
2.31432e-07
8.70492e-06
1.6069e-07
8.69454e-06
6.59451e-08
8.68608e-06
5.01394e-08
8.68702e-06
1.92426e-07
8.69358e-06
2.49206e-07
8.68636e-06
1.74048e-07
8.67681e-06
1.03328e-07
8.67658e-06
2.43638e-07
8.67372e-06
1.30186e-07
8.6671e-06
1.12138e-08
8.66594e-06
1.32516e-07
8.37876e-08
9.03086e-06
2.85908e-08
9.03094e-06
3.88033e-08
9.03338e-06
4.57261e-08
9.04067e-06
5.63728e-08
9.04674e-06
7.53038e-08
9.05049e-06
7.70105e-08
9.05787e-06
8.08136e-08
9.06411e-06
8.56092e-08
9.0684e-06
8.40039e-08
9.07369e-06
8.69445e-08
9.0757e-06
9.78086e-08
9.07665e-06
9.60092e-08
9.0803e-06
9.26866e-08
9.08351e-06
1.03523e-07
9.08459e-06
1.10441e-07
9.08687e-06
1.12781e-07
9.09057e-06
1.17466e-07
9.09333e-06
1.27265e-07
9.09462e-06
1.32855e-07
9.09642e-06
1.33738e-07
9.09985e-06
1.41376e-07
9.10189e-06
1.49751e-07
9.10347e-06
1.56258e-07
9.10594e-06
1.5604e-07
9.10916e-06
1.61463e-07
9.11194e-06
1.66586e-07
9.11408e-06
1.67145e-07
9.11586e-06
1.63117e-07
9.11666e-06
1.57132e-07
9.11632e-06
1.52687e-07
9.11469e-06
1.48295e-07
9.11262e-06
1.41483e-07
9.11099e-06
1.41327e-07
9.10965e-06
1.38737e-07
9.1094e-06
1.44559e-07
9.10874e-06
1.3858e-07
9.10809e-06
1.37301e-07
9.10755e-06
1.32524e-07
9.10697e-06
1.29215e-07
9.10589e-06
1.24275e-07
9.10523e-06
1.21244e-07
9.10612e-06
1.24318e-07
9.10705e-06
1.17351e-07
9.10699e-06
1.05855e-07
9.10672e-06
9.39818e-08
9.10531e-06
8.40687e-08
9.10117e-06
6.04647e-08
9.09552e-06
5.1351e-08
9.08906e-06
4.37425e-08
9.08314e-06
5.90413e-08
9.07998e-06
8.38423e-08
9.07673e-06
1.05928e-07
9.07703e-06
1.35181e-07
9.07789e-06
1.74374e-07
9.07966e-06
1.72664e-07
9.08396e-06
2.13342e-07
9.08757e-06
1.71126e-07
9.0905e-06
1.68353e-07
9.08861e-06
8.29073e-08
9.07936e-06
1.55154e-08
9.06682e-06
-4.31159e-08
9.05417e-06
-5.87351e-08
9.04977e-06
-8.44289e-09
9.0558e-06
5.41513e-08
9.06666e-06
1.02964e-07
9.07746e-06
8.6466e-08
9.08548e-06
7.70484e-08
9.09049e-06
1.56059e-08
9.0956e-06
1.81619e-08
9.10109e-06
-1.74396e-08
9.10344e-06
-2.53282e-08
9.1087e-06
-2.42373e-08
9.11273e-06
-1.26578e-08
9.11676e-06
-1.42153e-08
9.11731e-06
1.99098e-09
9.11849e-06
2.21745e-08
9.11979e-06
8.93361e-08
9.12365e-06
1.4154e-07
9.13098e-06
2.22096e-07
9.1333e-06
2.1904e-07
9.13413e-06
2.22784e-07
9.13701e-06
2.75045e-07
9.1346e-06
2.16782e-07
9.1262e-06
1.60936e-07
9.12596e-06
2.33955e-07
9.12588e-06
2.17875e-07
9.12272e-06
1.83628e-07
9.1231e-06
2.31049e-07
9.12123e-06
1.62557e-07
9.11093e-06
7.62472e-08
9.10248e-06
5.85946e-08
9.10309e-06
1.91814e-07
9.1093e-06
2.4299e-07
9.10233e-06
1.81026e-07
9.0931e-06
1.12559e-07
9.09294e-06
2.43797e-07
9.08992e-06
1.33203e-07
9.08343e-06
1.77071e-08
9.08241e-06
1.33535e-07
7.91622e-08
9.45504e-06
1.96007e-08
9.4642e-06
2.96412e-08
9.46768e-06
4.22498e-08
9.4736e-06
5.04507e-08
9.48095e-06
6.79497e-08
9.48418e-06
7.37868e-08
9.48983e-06
7.51599e-08
9.49632e-06
7.9123e-08
9.50042e-06
7.98949e-08
9.50625e-06
8.1122e-08
9.5097e-06
9.43517e-08
9.50964e-06
9.60773e-08
9.51274e-06
8.95863e-08
9.51739e-06
9.88652e-08
9.51879e-06
1.09045e-07
9.52023e-06
1.11337e-07
9.52379e-06
1.13909e-07
9.5273e-06
1.23755e-07
9.52898e-06
1.31174e-07
9.53029e-06
1.32428e-07
9.53375e-06
1.37921e-07
9.53664e-06
1.46855e-07
9.5382e-06
1.547e-07
9.54028e-06
1.53964e-07
9.54374e-06
1.58004e-07
9.54666e-06
1.63662e-07
9.54856e-06
1.65242e-07
9.55028e-06
1.61402e-07
9.55133e-06
1.56079e-07
9.55117e-06
1.52845e-07
9.54979e-06
1.49679e-07
9.54804e-06
1.43233e-07
9.54664e-06
1.4273e-07
9.54541e-06
1.39963e-07
9.54517e-06
1.44803e-07
9.54454e-06
1.39203e-07
9.54399e-06
1.37853e-07
9.54343e-06
1.33088e-07
9.54283e-06
1.29818e-07
9.54189e-06
1.2521e-07
9.54138e-06
1.21757e-07
9.54214e-06
1.23551e-07
9.54289e-06
1.16601e-07
9.54274e-06
1.06007e-07
9.54235e-06
9.43789e-08
9.54081e-06
8.56036e-08
9.53672e-06
6.45597e-08
9.53117e-06
5.68919e-08
9.52496e-06
4.99603e-08
9.51919e-06
6.48038e-08
9.51597e-06
8.70646e-08
9.51272e-06
1.09182e-07
9.51291e-06
1.34994e-07
9.51375e-06
1.73529e-07
9.51551e-06
1.70909e-07
9.51957e-06
2.09272e-07
9.52291e-06
1.67793e-07
9.52553e-06
1.6573e-07
9.52357e-06
8.48706e-08
9.51475e-06
2.43354e-08
9.50291e-06
-3.12824e-08
9.49102e-06
-4.68426e-08
9.48682e-06
-4.23899e-09
9.49235e-06
4.86187e-08
9.50258e-06
9.27288e-08
9.51302e-06
7.60281e-08
9.52102e-06
6.90523e-08
9.52616e-06
1.04619e-08
9.53122e-06
1.31003e-08
9.53657e-06
-2.27889e-08
9.53895e-06
-2.77051e-08
9.54412e-06
-2.94032e-08
9.54797e-06
-1.65117e-08
9.55196e-06
-1.82026e-08
9.55262e-06
1.32979e-09
9.55389e-06
2.09061e-08
9.55533e-06
8.78934e-08
9.55919e-06
1.37683e-07
9.56633e-06
2.14952e-07
9.56881e-06
2.16561e-07
9.56986e-06
2.21736e-07
9.57276e-06
2.72145e-07
9.57056e-06
2.18974e-07
9.56257e-06
1.68929e-07
9.56236e-06
2.3417e-07
9.56214e-06
2.18088e-07
9.55909e-06
1.86684e-07
9.55943e-06
2.3071e-07
9.55744e-06
1.64547e-07
9.54726e-06
8.64232e-08
9.53887e-06
6.69862e-08
9.53914e-06
1.91544e-07
9.54495e-06
2.37181e-07
9.53823e-06
1.87745e-07
9.52935e-06
1.2144e-07
9.52929e-06
2.43859e-07
9.52613e-06
1.36355e-07
9.51978e-06
2.40617e-08
9.51892e-06
1.34399e-07
7.46701e-08
9.92074e-06
2.51904e-08
9.91797e-06
3.24095e-08
9.91998e-06
4.02354e-08
9.92587e-06
4.45631e-08
9.9348e-06
5.90157e-08
9.93915e-06
6.9444e-08
9.94298e-06
7.1331e-08
9.94898e-06
7.31241e-08
9.95308e-06
7.57892e-08
9.95881e-06
7.53941e-08
9.96407e-06
8.90942e-08
9.96394e-06
9.62052e-08
9.96548e-06
8.80403e-08
9.97122e-06
9.31336e-08
9.97381e-06
1.06453e-07
9.97451e-06
1.10634e-07
9.9774e-06
1.11015e-07
9.9815e-06
1.19663e-07
9.984e-06
1.28675e-07
9.98506e-06
1.31364e-07
9.98807e-06
1.34909e-07
9.99175e-06
1.43178e-07
9.99378e-06
1.52667e-07
9.99532e-06
1.52421e-07
9.99873e-06
1.54601e-07
1.0002e-05
1.60379e-07
1.00038e-05
1.63442e-07
1.00053e-05
1.59896e-07
1.00066e-05
1.54752e-07
1.00068e-05
1.52641e-07
1.00057e-05
1.50863e-07
1.00041e-05
1.44768e-07
1.0003e-05
1.43888e-07
1.00019e-05
1.41045e-07
1.00017e-05
1.45018e-07
1.0001e-05
1.39842e-07
1.00005e-05
1.38379e-07
1e-05
1.33596e-07
9.99951e-06
1.30305e-07
9.99874e-06
1.25984e-07
9.9983e-06
1.22195e-07
9.99894e-06
1.22916e-07
9.99955e-06
1.15991e-07
9.99931e-06
1.06239e-07
9.99878e-06
9.49174e-08
9.99712e-06
8.72563e-08
9.99313e-06
6.85514e-08
9.98775e-06
6.22757e-08
9.98176e-06
5.59458e-08
9.97614e-06
7.04295e-08
9.97285e-06
9.03491e-08
9.96958e-06
1.1245e-07
9.96961e-06
1.34965e-07
9.9704e-06
1.72737e-07
9.97217e-06
1.69145e-07
9.97612e-06
2.05321e-07
9.97929e-06
1.64622e-07
9.98168e-06
1.63344e-07
9.97961e-06
8.69396e-08
9.97114e-06
3.28059e-08
9.95994e-06
-2.00837e-08
9.94878e-06
-3.56876e-08
9.94482e-06
-2.7876e-10
9.94991e-06
4.35346e-08
9.95954e-06
8.30968e-08
9.96961e-06
6.5962e-08
9.9775e-06
6.11612e-08
9.98271e-06
5.25349e-09
9.98768e-06
8.12666e-09
9.99288e-06
-2.79865e-08
9.99526e-06
-3.00841e-08
1.00003e-05
-3.44335e-08
1.0004e-05
-2.01799e-08
1.00079e-05
-2.21329e-08
1.00086e-05
5.87156e-10
1.001e-05
1.95564e-08
1.00116e-05
8.6314e-08
1.00154e-05
1.33838e-07
1.00223e-05
2.08007e-07
1.0025e-05
2.13921e-07
1.00263e-05
2.20442e-07
1.00292e-05
2.69179e-07
1.00273e-05
2.20906e-07
1.00197e-05
1.76498e-07
1.00196e-05
2.34361e-07
1.00192e-05
2.18438e-07
1.00163e-05
1.89583e-07
1.00166e-05
2.30409e-07
1.00145e-05
1.66672e-07
1.00044e-05
9.64668e-08
9.99614e-06
7.52789e-08
9.99608e-06
1.91603e-07
1.00014e-05
2.31818e-07
9.99503e-06
1.94166e-07
9.98653e-06
1.29936e-07
9.98659e-06
2.43795e-07
9.98333e-06
1.39623e-07
9.97711e-06
3.02829e-08
9.97641e-06
1.3509e-07
7.03256e-08
1.03873e-05
1.85898e-08
1.03928e-05
2.69564e-08
1.03971e-05
3.59285e-08
1.04015e-05
4.0153e-08
1.04099e-05
5.06288e-08
1.04159e-05
6.33918e-08
1.04185e-05
6.87027e-08
1.04235e-05
6.81586e-08
1.04278e-05
7.15246e-08
1.04327e-05
7.042e-08
1.04394e-05
8.24098e-08
1.04406e-05
9.50623e-08
1.04403e-05
8.83196e-08
1.04459e-05
8.748e-08
1.04505e-05
1.01899e-07
1.04511e-05
1.10047e-07
1.04529e-05
1.09194e-07
1.04571e-05
1.15509e-07
1.04605e-05
1.25193e-07
1.04619e-05
1.30033e-07
1.04641e-05
1.32652e-07
1.04681e-05
1.39159e-07
1.04711e-05
1.49724e-07
1.04723e-05
1.51186e-07
1.04753e-05
1.51602e-07
1.04791e-05
1.56629e-07
1.0481e-05
1.61485e-07
1.04822e-05
1.58764e-07
1.04836e-05
1.53297e-07
1.04843e-05
1.51979e-07
1.04833e-05
1.51838e-07
1.04819e-05
1.46134e-07
1.04811e-05
1.44715e-07
1.04802e-05
1.41981e-07
1.04799e-05
1.45263e-07
1.04794e-05
1.40365e-07
1.0479e-05
1.38744e-07
1.04786e-05
1.34058e-07
1.04781e-05
1.30798e-07
1.04774e-05
1.26657e-07
1.04771e-05
1.22507e-07
1.04776e-05
1.22382e-07
1.04781e-05
1.15563e-07
1.04777e-05
1.06573e-07
1.04771e-05
9.55576e-08
1.04754e-05
8.89968e-08
1.04714e-05
7.24761e-08
1.04662e-05
6.75464e-08
1.04604e-05
6.17097e-08
1.04549e-05
7.58851e-08
1.04516e-05
9.36551e-08
1.04484e-05
1.157e-07
1.04483e-05
1.35034e-07
1.04491e-05
1.71933e-07
1.04509e-05
1.67392e-07
1.04546e-05
2.01595e-07
1.04575e-05
1.61732e-07
1.04596e-05
1.61244e-07
1.04575e-05
8.90449e-08
1.04495e-05
4.07985e-08
1.0439e-05
-9.60398e-09
1.04286e-05
-2.52721e-08
1.04248e-05
3.47489e-09
1.04295e-05
3.88919e-08
1.04385e-05
7.41043e-08
1.04481e-05
5.63191e-08
1.04559e-05
5.33991e-08
1.04611e-05
-1.82603e-12
1.0466e-05
3.25301e-09
1.0471e-05
-3.29979e-08
1.04734e-05
-3.24472e-08
1.04783e-05
-3.9308e-08
1.04817e-05
-2.36473e-08
1.04856e-05
-2.59703e-08
1.04864e-05
-2.14543e-10
1.04878e-05
1.8126e-08
1.04895e-05
8.46029e-08
1.04933e-05
1.30015e-07
1.05001e-05
2.01274e-07
1.05029e-05
2.11122e-07
1.05044e-05
2.18898e-07
1.05075e-05
2.66128e-07
1.05058e-05
2.22533e-07
1.04987e-05
1.83591e-07
1.04986e-05
2.34511e-07
1.04981e-05
2.18931e-07
1.04954e-05
1.9232e-07
1.04956e-05
2.30176e-07
1.04933e-05
1.68928e-07
1.04835e-05
1.06335e-07
1.04753e-05
8.34234e-08
1.04749e-05
1.91976e-07
1.04798e-05
2.2695e-07
1.04737e-05
2.00264e-07
1.04656e-05
1.3803e-07
1.04658e-05
2.43589e-07
1.04625e-05
1.42969e-07
1.04564e-05
3.63618e-08
1.04559e-05
1.35587e-07
6.61415e-08
1.08867e-05
1.49834e-08
1.089e-05
2.36074e-08
1.08952e-05
3.07794e-08
1.08997e-05
3.55876e-08
1.09069e-05
4.34937e-08
1.09144e-05
5.59178e-08
1.09172e-05
6.58194e-08
1.09208e-05
6.46008e-08
1.09252e-05
6.71115e-08
1.09294e-05
6.62176e-08
1.09366e-05
7.52435e-08
1.094e-05
9.16063e-08
1.09386e-05
8.97354e-08
1.09428e-05
8.33062e-08
1.09492e-05
9.5536e-08
1.09508e-05
1.08442e-07
1.09516e-05
1.08387e-07
1.09551e-05
1.11925e-07
1.09594e-05
1.20961e-07
1.09616e-05
1.27811e-07
1.09633e-05
1.30968e-07
1.09669e-05
1.35562e-07
1.09709e-05
1.45738e-07
1.09724e-05
1.497e-07
1.09746e-05
1.49394e-07
1.09785e-05
1.5271e-07
1.0981e-05
1.58956e-07
1.09818e-05
1.57943e-07
1.09832e-05
1.51977e-07
1.09844e-05
1.50723e-07
1.09838e-05
1.52402e-07
1.09825e-05
1.47492e-07
1.09819e-05
1.45294e-07
1.09813e-05
1.42562e-07
1.09811e-05
1.45439e-07
1.09806e-05
1.4092e-07
1.09803e-05
1.39074e-07
1.09799e-05
1.34412e-07
1.09796e-05
1.31155e-07
1.0979e-05
1.27195e-07
1.09788e-05
1.22764e-07
1.09792e-05
1.2194e-07
1.09795e-05
1.15262e-07
1.0979e-05
1.07025e-07
1.09782e-05
9.63869e-08
1.09763e-05
9.08735e-08
1.09725e-05
7.62872e-08
1.09675e-05
7.26268e-08
1.09619e-05
6.72272e-08
1.09567e-05
8.11633e-08
1.09534e-05
9.69194e-08
1.09502e-05
1.18868e-07
1.095e-05
1.35217e-07
1.09508e-05
1.71216e-07
1.09524e-05
1.65722e-07
1.0956e-05
1.98059e-07
1.09587e-05
1.59041e-07
1.09605e-05
1.59359e-07
1.09584e-05
9.11719e-08
1.09509e-05
4.83344e-08
1.09411e-05
1.72025e-10
1.09314e-05
-1.56092e-08
1.09279e-05
6.99621e-09
1.09321e-05
3.46922e-08
1.09405e-05
6.57479e-08
1.09497e-05
4.71419e-08
1.09572e-05
4.58387e-08
1.09625e-05
-5.24146e-09
1.09672e-05
-1.49484e-09
1.0972e-05
-3.78486e-08
1.09744e-05
-3.47827e-08
1.09791e-05
-4.39854e-08
1.09823e-05
-2.68861e-08
1.0986e-05
-2.96957e-08
1.09869e-05
-1.06022e-09
1.09884e-05
1.66399e-08
1.09902e-05
8.27934e-08
1.0994e-05
1.26201e-07
1.10005e-05
1.94719e-07
1.10035e-05
2.08151e-07
1.10053e-05
2.17126e-07
1.10084e-05
2.63005e-07
1.10071e-05
2.23822e-07
1.10005e-05
1.90156e-07
1.10005e-05
2.34581e-07
1.09999e-05
2.19558e-07
1.09973e-05
1.94882e-07
1.09974e-05
2.30027e-07
1.09951e-05
1.71304e-07
1.09854e-05
1.16003e-07
1.09774e-05
9.14111e-08
1.09767e-05
1.92651e-07
1.09811e-05
2.22607e-07
1.09753e-05
2.05995e-07
1.09677e-05
1.45696e-07
1.0968e-05
2.43233e-07
1.09646e-05
1.46355e-07
1.09587e-05
4.22955e-08
1.09584e-05
1.35874e-07
6.21277e-08
1.14107e-05
9.89552e-09
1.14132e-05
2.11471e-08
1.14173e-05
2.66496e-08
1.14222e-05
3.0651e-08
1.14282e-05
3.7564e-08
1.14361e-05
4.79573e-08
1.14403e-05
6.16444e-08
1.14428e-05
6.21035e-08
1.14469e-05
6.306e-08
1.14504e-05
6.26928e-08
1.14571e-05
6.8524e-08
1.14629e-05
8.58223e-08
1.14617e-05
9.08727e-08
1.14634e-05
8.16103e-08
1.14706e-05
8.83403e-08
1.14743e-05
1.04823e-07
1.14746e-05
1.08062e-07
1.14771e-05
1.09436e-07
1.14814e-05
1.16592e-07
1.14848e-05
1.2445e-07
1.14866e-05
1.29137e-07
1.14893e-05
1.32911e-07
1.14938e-05
1.41213e-07
1.14963e-05
1.47243e-07
1.14979e-05
1.4778e-07
1.15015e-05
1.49087e-07
1.15048e-05
1.55667e-07
1.15056e-05
1.57089e-07
1.15066e-05
1.51057e-07
1.15082e-05
1.49073e-07
1.15082e-05
1.52367e-07
1.1507e-05
1.48782e-07
1.15065e-05
1.45753e-07
1.15062e-05
1.42862e-07
1.15061e-05
1.45532e-07
1.15056e-05
1.41416e-07
1.15055e-05
1.39227e-07
1.15052e-05
1.34623e-07
1.15049e-05
1.31485e-07
1.15044e-05
1.277e-07
1.15043e-05
1.22916e-07
1.15046e-05
1.21561e-07
1.15048e-05
1.15111e-07
1.15042e-05
1.07581e-07
1.15033e-05
9.72828e-08
1.15014e-05
9.27957e-08
1.14977e-05
8.00264e-08
1.14927e-05
7.75795e-08
1.14874e-05
7.25088e-08
1.14824e-05
8.62442e-08
1.14791e-05
1.00178e-07
1.1476e-05
1.22e-07
1.14757e-05
1.35475e-07
1.14765e-05
1.70458e-07
1.14781e-05
1.64062e-07
1.14815e-05
1.94708e-07
1.14839e-05
1.56589e-07
1.14856e-05
1.57711e-07
1.14835e-05
9.32995e-08
1.14764e-05
5.53813e-08
1.14673e-05
9.24784e-09
1.14584e-05
-6.65913e-09
1.14551e-05
1.03176e-08
1.14589e-05
3.08852e-08
1.14666e-05
5.79899e-08
1.14753e-05
3.84366e-08
1.14827e-05
3.84925e-08
1.14879e-05
-1.04434e-08
1.14924e-05
-6.06642e-09
1.14971e-05
-4.24556e-08
1.14993e-05
-3.70336e-08
1.15038e-05
-4.84354e-08
1.15068e-05
-2.98878e-08
1.15103e-05
-3.32764e-08
1.15112e-05
-1.9288e-09
1.15127e-05
1.50988e-08
1.15147e-05
8.08894e-08
1.15184e-05
1.22406e-07
1.15248e-05
1.88361e-07
1.15279e-05
2.05014e-07
1.153e-05
2.15102e-07
1.15332e-05
2.59775e-07
1.15323e-05
2.24736e-07
1.15263e-05
1.96177e-07
1.15263e-05
2.3456e-07
1.15255e-05
2.20315e-07
1.15232e-05
1.97251e-07
1.15232e-05
2.29969e-07
1.15207e-05
1.73792e-07
1.15113e-05
1.25438e-07
1.15035e-05
9.9216e-08
1.15026e-05
1.93575e-07
1.15064e-05
2.18809e-07
1.1501e-05
2.11341e-07
1.14938e-05
1.5293e-07
1.14943e-05
2.42723e-07
1.14909e-05
1.49724e-07
1.14852e-05
4.8063e-08
1.14851e-05
1.35931e-07
5.82959e-08
1.19586e-05
3.86722e-09
1.1962e-05
1.77194e-08
1.19648e-05
2.38193e-08
1.19695e-05
2.59975e-08
1.19746e-05
3.24708e-08
1.19821e-05
4.04394e-08
1.19879e-05
5.58495e-08
1.19901e-05
5.98797e-08
1.19934e-05
5.97281e-08
1.19967e-05
5.94713e-08
1.20023e-05
6.29086e-08
1.20097e-05
7.83545e-08
1.20104e-05
9.01801e-08
1.20099e-05
8.21939e-08
1.20162e-05
8.20394e-08
1.20221e-05
9.89114e-08
1.20231e-05
1.07073e-07
1.20244e-05
1.08051e-07
1.20282e-05
1.12787e-07
1.20325e-05
1.20212e-07
1.20353e-05
1.26366e-07
1.20371e-05
1.31091e-07
1.20412e-05
1.37105e-07
1.20449e-05
1.43493e-07
1.20465e-05
1.4623e-07
1.20492e-05
1.46356e-07
1.20531e-05
1.51764e-07
1.20545e-05
1.55717e-07
1.20549e-05
1.50612e-07
1.20567e-05
1.47269e-07
1.20576e-05
1.51498e-07
1.20565e-05
1.49898e-07
1.2056e-05
1.46291e-07
1.2056e-05
1.42792e-07
1.20563e-05
1.45303e-07
1.20557e-05
1.41947e-07
1.20555e-05
1.39458e-07
1.20554e-05
1.3468e-07
1.20553e-05
1.31577e-07
1.20549e-05
1.28102e-07
1.20548e-05
1.23061e-07
1.20551e-05
1.21252e-07
1.20552e-05
1.15042e-07
1.20545e-05
1.08231e-07
1.20535e-05
9.83269e-08
1.20515e-05
9.48167e-08
1.20478e-05
8.36537e-08
1.20431e-05
8.23377e-08
1.2038e-05
7.75453e-08
1.20332e-05
9.11089e-08
1.203e-05
1.03353e-07
1.2027e-05
1.25004e-07
1.20267e-05
1.35802e-07
1.20274e-05
1.69767e-07
1.20289e-05
1.6253e-07
1.20321e-05
1.91548e-07
1.20343e-05
1.54305e-07
1.20358e-05
1.56208e-07
1.20338e-05
9.53736e-08
1.20272e-05
6.19461e-08
1.20188e-05
1.76245e-08
1.20106e-05
1.55565e-09
1.20075e-05
1.34166e-08
1.20109e-05
2.74793e-08
1.2018e-05
5.08629e-08
1.20262e-05
3.02461e-08
1.20333e-05
3.14309e-08
1.20384e-05
-1.55448e-08
1.20428e-05
-1.04736e-08
1.20472e-05
-4.687e-08
1.20494e-05
-3.92068e-08
1.20536e-05
-5.26117e-08
1.20563e-05
-3.26166e-08
1.20597e-05
-3.66871e-08
1.20606e-05
-2.79726e-09
1.20621e-05
1.35396e-08
1.20641e-05
7.89371e-08
1.20678e-05
1.18647e-07
1.2074e-05
1.82177e-07
1.20773e-05
2.01701e-07
1.20796e-05
2.12825e-07
1.2083e-05
2.56443e-07
1.20824e-05
2.25254e-07
1.2077e-05
2.0164e-07
1.20771e-05
2.34417e-07
1.20762e-05
2.21187e-07
1.20741e-05
1.99413e-07
1.20741e-05
2.29988e-07
1.20715e-05
1.76357e-07
1.20623e-05
1.34613e-07
1.20547e-05
1.06861e-07
1.20535e-05
1.94728e-07
1.20568e-05
2.15565e-07
1.20519e-05
2.16254e-07
1.20451e-05
1.59702e-07
1.20457e-05
2.42068e-07
1.20424e-05
1.53017e-07
1.20368e-05
5.36626e-08
1.2037e-05
1.35753e-07
5.46485e-08
1.25319e-05
-1.69002e-09
1.25368e-05
1.27935e-08
1.25392e-05
2.14058e-08
1.2543e-05
2.22267e-08
1.25476e-05
2.7856e-08
1.25542e-05
3.38691e-08
1.25611e-05
4.89651e-08
1.25641e-05
5.68599e-08
1.25666e-05
5.7244e-08
1.25697e-05
5.6409e-08
1.25739e-05
5.86356e-08
1.25818e-05
7.04404e-08
1.25853e-05
8.67632e-08
1.25836e-05
8.3854e-08
1.25875e-05
7.8092e-08
1.2595e-05
9.14843e-08
1.25977e-05
1.04311e-07
1.25985e-05
1.07238e-07
1.26013e-05
1.10037e-07
1.26056e-05
1.15917e-07
1.26097e-05
1.22225e-07
1.26116e-05
1.29208e-07
1.26145e-05
1.34264e-07
1.2619e-05
1.38957e-07
1.26215e-05
1.43685e-07
1.26234e-05
1.44523e-07
1.26273e-05
1.47882e-07
1.26296e-05
1.53391e-07
1.26298e-05
1.50383e-07
1.26313e-05
1.4579e-07
1.26329e-05
1.49879e-07
1.26323e-05
1.50483e-07
1.26317e-05
1.46924e-07
1.26318e-05
1.42633e-07
1.26324e-05
1.44783e-07
1.2632e-05
1.42303e-07
1.26319e-05
1.39616e-07
1.26319e-05
1.34596e-07
1.2632e-05
1.31521e-07
1.26316e-05
1.28489e-07
1.26315e-05
1.23196e-07
1.26317e-05
1.20969e-07
1.26317e-05
1.15068e-07
1.2631e-05
1.0898e-07
1.26299e-05
9.94124e-08
1.26279e-05
9.68318e-08
1.26244e-05
8.71717e-08
1.26197e-05
8.69575e-08
1.2615e-05
8.23223e-08
1.26103e-05
9.57395e-08
1.26072e-05
1.06488e-07
1.26042e-05
1.2797e-07
1.26038e-05
1.36204e-07
1.26046e-05
1.69006e-07
1.26061e-05
1.61007e-07
1.26091e-05
1.88523e-07
1.26112e-05
1.52238e-07
1.26125e-05
1.54861e-07
1.26105e-05
9.73985e-08
1.26045e-05
6.79856e-08
1.25968e-05
2.53186e-08
1.25893e-05
9.07554e-09
1.25864e-05
1.63192e-08
1.25894e-05
2.443e-08
1.2596e-05
4.43107e-08
1.26036e-05
2.25673e-08
1.26104e-05
2.4667e-08
1.26154e-05
-2.05352e-08
1.26196e-05
-1.46675e-08
1.26237e-05
-5.0992e-08
1.26258e-05
-4.12433e-08
1.26296e-05
-5.64966e-08
1.26321e-05
-3.50669e-08
1.26353e-05
-3.98917e-08
1.26361e-05
-3.63383e-09
1.26377e-05
1.19675e-08
1.26397e-05
7.69323e-08
1.26434e-05
1.14939e-07
1.26494e-05
1.76194e-07
1.26529e-05
1.98237e-07
1.26554e-05
2.10271e-07
1.26589e-05
2.5297e-07
1.26588e-05
2.25346e-07
1.26539e-05
2.06551e-07
1.26542e-05
2.34132e-07
1.26532e-05
2.22153e-07
1.26513e-05
2.01356e-07
1.26512e-05
2.30078e-07
1.26485e-05
1.79001e-07
1.26396e-05
1.435e-07
1.26322e-05
1.1434e-07
1.26309e-05
1.96034e-07
1.26335e-05
2.12871e-07
1.26291e-05
2.20732e-07
1.26228e-05
1.66014e-07
1.26236e-05
2.41277e-07
1.26204e-05
1.56164e-07
1.2615e-05
5.90644e-08
1.26154e-05
1.3532e-07
5.11881e-08
1.31328e-05
-5.90503e-09
1.31384e-05
7.14934e-09
1.31416e-05
1.82308e-08
1.31444e-05
1.94288e-08
1.31485e-05
2.37924e-08
1.3154e-05
2.83489e-08
1.31611e-05
4.1825e-08
1.31654e-05
5.25338e-08
1.31674e-05
5.52816e-08
1.31703e-05
5.35375e-08
1.31735e-05
5.53916e-08
1.31807e-05
6.32235e-08
1.31867e-05
8.07717e-08
1.31857e-05
8.48605e-08
1.3187e-05
7.68429e-08
1.31943e-05
8.4148e-08
1.31992e-05
9.94296e-08
1.32004e-05
1.05981e-07
1.32023e-05
1.08187e-07
1.32059e-05
1.12361e-07
1.32109e-05
1.17199e-07
1.3214e-05
1.26112e-07
1.32157e-05
1.3258e-07
1.32198e-05
1.34823e-07
1.32238e-05
1.39657e-07
1.32253e-05
1.43032e-07
1.32284e-05
1.44756e-07
1.32317e-05
1.50132e-07
1.32322e-05
1.49833e-07
1.32332e-05
1.44817e-07
1.32354e-05
1.47714e-07
1.32355e-05
1.50336e-07
1.32348e-05
1.47629e-07
1.3235e-05
1.42443e-07
1.3236e-05
1.43798e-07
1.32359e-05
1.42438e-07
1.32355e-05
1.39956e-07
1.32356e-05
1.3454e-07
1.3236e-05
1.3113e-07
1.32358e-05
1.28644e-07
1.32356e-05
1.23394e-07
1.32358e-05
1.20759e-07
1.32358e-05
1.15107e-07
1.3235e-05
1.09797e-07
1.32338e-05
1.00606e-07
1.32317e-05
9.88968e-08
1.32283e-05
9.05548e-08
1.32239e-05
9.13955e-08
1.32193e-05
8.68746e-08
1.32149e-05
1.00141e-07
1.3212e-05
1.09477e-07
1.32092e-05
1.3074e-07
1.32088e-05
1.3662e-07
1.32095e-05
1.68256e-07
1.32109e-05
1.59622e-07
1.32137e-05
1.85696e-07
1.32156e-05
1.5033e-07
1.32169e-05
1.5361e-07
1.3215e-05
9.9296e-08
1.32095e-05
7.35109e-08
1.32025e-05
3.23264e-08
1.31957e-05
1.58861e-08
1.3193e-05
1.89922e-08
1.31957e-05
2.17401e-08
1.32016e-05
3.83676e-08
1.32088e-05
1.54251e-08
1.32152e-05
1.82593e-08
1.322e-05
-2.53359e-08
1.32239e-05
-1.86484e-08
1.32278e-05
-5.48816e-08
1.32298e-05
-4.31683e-08
1.32333e-05
-6.00579e-08
1.32355e-05
-3.72096e-08
1.32384e-05
-4.2855e-08
1.32392e-05
-4.41574e-09
1.32407e-05
1.04262e-08
1.32428e-05
7.49241e-08
1.32464e-05
1.11308e-07
1.32522e-05
1.70382e-07
1.32558e-05
1.94613e-07
1.32587e-05
2.07435e-07
1.32622e-05
2.49382e-07
1.32626e-05
2.25005e-07
1.32582e-05
2.10903e-07
1.32587e-05
2.33673e-07
1.32577e-05
2.23185e-07
1.32559e-05
2.03084e-07
1.32558e-05
2.30215e-07
1.32531e-05
1.81685e-07
1.32446e-05
1.5204e-07
1.32372e-05
1.21684e-07
1.32358e-05
1.97482e-07
1.32379e-05
2.10726e-07
1.32339e-05
2.24743e-07
1.32281e-05
1.71821e-07
1.3229e-05
2.40375e-07
1.32261e-05
1.59108e-07
1.32209e-05
6.42628e-08
1.32215e-05
1.34643e-07
4.79112e-08
1.37632e-05
-9.37239e-09
1.37684e-05
1.9549e-09
1.37725e-05
1.41657e-08
1.3775e-05
1.69383e-08
1.37783e-05
2.0484e-08
1.37829e-05
2.37198e-08
1.37897e-05
3.51068e-08
1.37953e-05
4.68787e-08
1.37975e-05
5.30717e-08
1.37999e-05
5.11543e-08
1.38027e-05
5.26247e-08
1.38084e-05
5.7517e-08
1.38158e-05
7.3389e-08
1.38169e-05
8.36755e-08
1.38163e-05
7.75018e-08
1.38219e-05
7.8497e-08
1.38285e-05
9.29088e-08
1.38311e-05
1.0335e-07
1.38326e-05
1.0668e-07
1.3835e-05
1.09941e-07
1.38399e-05
1.12341e-07
1.38447e-05
1.21244e-07
1.38463e-05
1.30973e-07
1.38489e-05
1.32271e-07
1.3854e-05
1.34505e-07
1.38565e-05
1.40595e-07
1.38585e-05
1.42725e-07
1.38621e-05
1.46545e-07
1.38636e-05
1.48304e-07
1.38641e-05
1.44356e-07
1.38663e-05
1.45527e-07
1.38674e-05
1.4926e-07
1.38669e-05
1.48101e-07
1.38668e-05
1.4249e-07
1.3868e-05
1.42639e-07
1.38683e-05
1.42147e-07
1.38681e-05
1.40127e-07
1.38682e-05
1.34485e-07
1.38687e-05
1.30584e-07
1.38687e-05
1.28632e-07
1.38685e-05
1.23634e-07
1.38686e-05
1.2064e-07
1.38685e-05
1.1517e-07
1.38677e-05
1.10662e-07
1.38664e-05
1.01842e-07
1.38644e-05
1.00913e-07
1.38612e-05
9.37962e-08
1.38569e-05
9.56594e-08
1.38526e-05
9.11492e-08
1.38485e-05
1.04238e-07
1.38457e-05
1.12366e-07
1.3843e-05
1.33449e-07
1.38424e-05
1.37134e-07
1.38432e-05
1.67452e-07
1.38446e-05
1.58229e-07
1.38474e-05
1.82972e-07
1.38491e-05
1.48574e-07
1.38503e-05
1.52443e-07
1.38485e-05
1.01099e-07
1.38435e-05
7.84914e-08
1.38372e-05
3.86558e-08
1.3831e-05
2.20372e-08
1.38285e-05
2.1468e-08
1.38309e-05
1.93622e-08
1.38363e-05
3.29654e-08
1.38429e-05
8.81501e-09
1.3849e-05
1.22238e-08
1.38536e-05
-2.9957e-08
1.38573e-05
-2.23905e-08
1.38609e-05
-5.84362e-08
1.38626e-05
-4.49047e-08
1.38658e-05
-6.32825e-08
1.38677e-05
-3.90602e-08
1.38704e-05
-4.55494e-08
1.38711e-05
-5.11256e-09
1.38726e-05
8.93953e-09
1.38746e-05
7.29077e-08
1.38781e-05
1.07765e-07
1.38838e-05
1.64749e-07
1.38875e-05
1.90876e-07
1.38906e-05
2.04312e-07
1.38944e-05
2.45651e-07
1.38952e-05
2.24209e-07
1.38913e-05
2.14706e-07
1.3892e-05
2.33026e-07
1.38909e-05
2.2424e-07
1.38894e-05
2.04592e-07
1.38893e-05
2.30371e-07
1.38865e-05
1.84431e-07
1.38784e-05
1.60211e-07
1.38712e-05
1.28888e-07
1.38696e-05
1.98996e-07
1.38713e-05
2.09091e-07
1.38677e-05
2.28312e-07
1.38624e-05
1.7712e-07
1.38634e-05
2.39381e-07
1.38607e-05
1.61788e-07
1.38558e-05
6.92222e-08
1.38567e-05
1.33702e-07
4.48094e-08
1.44244e-05
-1.25213e-08
1.44288e-05
-2.49726e-09
1.44332e-05
9.74106e-09
1.44361e-05
1.40249e-08
1.44388e-05
1.78474e-08
1.44426e-05
1.98512e-08
1.44485e-05
2.92865e-08
1.44548e-05
4.05558e-08
1.44579e-05
4.99379e-08
1.44598e-05
4.93136e-08
1.44623e-05
5.00425e-08
1.44665e-05
5.3368e-08
1.4474e-05
6.58949e-08
1.44779e-05
7.97346e-08
1.44768e-05
7.86559e-08
1.448e-05
7.52323e-08
1.4487e-05
8.59088e-08
1.44913e-05
9.91262e-08
1.44933e-05
1.04639e-07
1.4495e-05
1.08276e-07
1.44987e-05
1.08653e-07
1.45047e-05
1.15236e-07
1.45078e-05
1.27887e-07
1.45088e-05
1.31278e-07
1.45135e-05
1.29767e-07
1.45176e-05
1.36441e-07
1.45192e-05
1.41212e-07
1.45221e-05
1.43582e-07
1.45248e-05
1.45669e-07
1.45253e-05
1.43791e-07
1.45272e-05
1.43679e-07
1.4529e-05
1.47427e-07
1.4529e-05
1.48096e-07
1.45288e-05
1.42735e-07
1.45302e-05
1.41212e-07
1.4531e-05
1.41364e-07
1.45308e-05
1.40306e-07
1.45306e-05
1.34653e-07
1.45313e-05
1.29884e-07
1.45317e-05
1.2822e-07
1.45316e-05
1.23818e-07
1.45315e-05
1.20693e-07
1.45314e-05
1.15234e-07
1.45306e-05
1.11493e-07
1.45293e-05
1.03134e-07
1.45273e-05
1.02924e-07
1.45242e-05
9.68566e-08
1.45202e-05
9.97178e-08
1.45161e-05
9.52314e-08
1.45122e-05
1.08117e-07
1.45095e-05
1.15102e-07
1.4507e-05
1.35925e-07
1.45065e-05
1.37598e-07
1.45074e-05
1.66598e-07
1.45087e-05
1.56942e-07
1.45112e-05
1.80413e-07
1.45129e-05
1.46959e-07
1.4514e-05
1.51304e-07
1.45124e-05
1.02745e-07
1.45079e-05
8.29321e-08
1.45022e-05
4.43265e-08
1.44968e-05
2.75246e-08
1.44945e-05
2.3706e-08
1.44966e-05
1.72936e-08
1.45014e-05
2.81245e-08
1.45075e-05
2.74654e-09
1.45131e-05
6.58926e-09
1.45175e-05
-3.43004e-08
1.4521e-05
-2.58668e-08
1.45242e-05
-6.17091e-08
1.45258e-05
-4.64955e-08
1.45287e-05
-6.61525e-08
1.45302e-05
-4.05985e-08
1.45326e-05
-4.79364e-08
1.45332e-05
-5.71133e-09
1.45346e-05
7.54113e-09
1.45366e-05
7.09294e-08
1.454e-05
1.04349e-07
1.45455e-05
1.59275e-07
1.45493e-05
1.87016e-07
1.45527e-05
2.00897e-07
1.45566e-05
2.41804e-07
1.45578e-05
2.22972e-07
1.45546e-05
2.17949e-07
1.45554e-05
2.32172e-07
1.45544e-05
2.25273e-07
1.45531e-05
2.05907e-07
1.45529e-05
2.30517e-07
1.45502e-05
1.87198e-07
1.45425e-05
1.67931e-07
1.45354e-05
1.35961e-07
1.45338e-05
2.00579e-07
1.45349e-05
2.07948e-07
1.45318e-05
2.31439e-07
1.45271e-05
1.81858e-07
1.45281e-05
2.38316e-07
1.45258e-05
1.64162e-07
1.45211e-05
7.39324e-08
1.45222e-05
1.32525e-07
4.18798e-08
1.51174e-05
-1.52334e-08
1.51214e-05
-6.52445e-09
1.51255e-05
5.64264e-09
1.51288e-05
1.07522e-08
1.51312e-05
1.54497e-08
1.51344e-05
1.67044e-08
1.51391e-05
2.45152e-08
1.51455e-05
3.4219e-08
1.51499e-05
4.55339e-08
1.51516e-05
4.75474e-08
1.51539e-05
4.77463e-08
1.51571e-05
5.02073e-08
1.51635e-05
5.94724e-08
1.51695e-05
7.37693e-08
1.51695e-05
7.86741e-08
1.51706e-05
7.40477e-08
1.51768e-05
7.9775e-08
1.51823e-05
9.35913e-08
1.51855e-05
1.01455e-07
1.51871e-05
1.06692e-07
1.51893e-05
1.06403e-07
1.51952e-05
1.09392e-07
1.52004e-05
1.2266e-07
1.5201e-05
1.30633e-07
1.5204e-05
1.26821e-07
1.52096e-05
1.30851e-07
1.5212e-05
1.38815e-07
1.52137e-05
1.41824e-07
1.5217e-05
1.42395e-07
1.52184e-05
1.42417e-07
1.52196e-05
1.42454e-07
1.52219e-05
1.45159e-07
1.52228e-05
1.47187e-07
1.52223e-05
1.43172e-07
1.52235e-05
1.40013e-07
1.52248e-05
1.4009e-07
1.5225e-05
1.40094e-07
1.52249e-05
1.34828e-07
1.52256e-05
1.29184e-07
1.52262e-05
1.27581e-07
1.52262e-05
1.23854e-07
1.5226e-05
1.20867e-07
1.52258e-05
1.15407e-07
1.5225e-05
1.12264e-07
1.52238e-05
1.04412e-07
1.52218e-05
1.04888e-07
1.52189e-05
9.97687e-08
1.5215e-05
1.03586e-07
1.52112e-05
9.90321e-08
1.52077e-05
1.11613e-07
1.52052e-05
1.17645e-07
1.52028e-05
1.38284e-07
1.52023e-05
1.38143e-07
1.52031e-05
1.65726e-07
1.52044e-05
1.5567e-07
1.52069e-05
1.77907e-07
1.52084e-05
1.45445e-07
1.52096e-05
1.5017e-07
1.52081e-05
1.04226e-07
1.52042e-05
8.68535e-08
1.51992e-05
4.93452e-08
1.51943e-05
3.23878e-08
1.51922e-05
2.57532e-08
1.5194e-05
1.54957e-08
1.51984e-05
2.37744e-08
1.52039e-05
-2.77809e-09
1.52091e-05
1.37991e-09
1.52132e-05
-3.83958e-08
1.52164e-05
-2.90898e-08
1.52193e-05
-6.46117e-08
1.52207e-05
-4.78581e-08
1.52232e-05
-6.864e-08
1.52245e-05
-4.18592e-08
1.52265e-05
-5.00057e-08
1.5227e-05
-6.18591e-09
1.52283e-05
6.27721e-09
1.52302e-05
6.89841e-08
1.52335e-05
1.01058e-07
1.52388e-05
1.53953e-07
1.52427e-05
1.83091e-07
1.52464e-05
1.97216e-07
1.52504e-05
2.37823e-07
1.52521e-05
2.21288e-07
1.52494e-05
2.20638e-07
1.52505e-05
2.31114e-07
1.52495e-05
2.26225e-07
1.52484e-05
2.07023e-07
1.52483e-05
2.30595e-07
1.52455e-05
1.90011e-07
1.52382e-05
1.75188e-07
1.52313e-05
1.429e-07
1.52297e-05
2.02172e-07
1.52304e-05
2.07214e-07
1.52277e-05
2.34173e-07
1.52235e-05
1.86035e-07
1.52246e-05
2.37203e-07
1.52226e-05
1.662e-07
1.52182e-05
7.83524e-08
1.52196e-05
1.31102e-07
3.91091e-08
1.58436e-05
-1.7289e-08
1.58473e-05
-1.02617e-08
1.58512e-05
1.76857e-09
1.58545e-05
7.43e-09
1.5857e-05
1.29142e-08
1.58597e-05
1.4055e-08
1.58636e-05
2.06203e-08
1.58693e-05
2.85394e-08
1.58745e-05
4.02721e-08
1.58769e-05
4.51765e-08
1.58787e-05
4.59274e-08
1.58814e-05
4.75329e-08
1.58863e-05
5.45722e-08
1.58931e-05
6.69734e-08
1.58952e-05
7.65532e-08
1.58953e-05
7.39884e-08
1.58998e-05
7.52767e-08
1.59058e-05
8.75289e-08
1.59102e-05
9.71149e-08
1.59125e-05
1.0432e-07
1.59139e-05
1.05095e-07
1.59183e-05
1.04946e-07
1.59251e-05
1.15837e-07
1.59273e-05
1.28486e-07
1.59282e-05
1.25931e-07
1.59335e-05
1.25476e-07
1.59379e-05
1.34416e-07
1.5939e-05
1.40804e-07
1.59417e-05
1.39679e-07
1.59443e-05
1.39814e-07
1.59454e-05
1.41293e-07
1.59475e-05
1.43131e-07
1.59493e-05
1.45358e-07
1.5949e-05
1.43468e-07
1.595e-05
1.3903e-07
1.59519e-05
1.3821e-07
1.59525e-05
1.39505e-07
1.5952e-05
1.35242e-07
1.59526e-05
1.28572e-07
1.59536e-05
1.2665e-07
1.59538e-05
1.2362e-07
1.59536e-05
1.21106e-07
1.59532e-05
1.15735e-07
1.59525e-05
1.12981e-07
1.59513e-05
1.05604e-07
1.59494e-05
1.06792e-07
1.59467e-05
1.02463e-07
1.59432e-05
1.07168e-07
1.59396e-05
1.02621e-07
1.59363e-05
1.14879e-07
1.59339e-05
1.2004e-07
1.59317e-05
1.40448e-07
1.59313e-05
1.38604e-07
1.59323e-05
1.64745e-07
1.59335e-05
1.5446e-07
1.59359e-05
1.75504e-07
1.59373e-05
1.4405e-07
1.59384e-05
1.49015e-07
1.59372e-05
1.05491e-07
1.59338e-05
9.02476e-08
1.59294e-05
5.37495e-08
1.59251e-05
3.66367e-08
1.59233e-05
2.75617e-08
1.59248e-05
1.39631e-08
1.59287e-05
1.99302e-08
1.59337e-05
-7.763e-09
1.59385e-05
-3.40826e-09
1.59422e-05
-4.21441e-08
1.59451e-05
-3.19982e-08
1.59477e-05
-6.71799e-08
1.59489e-05
-4.90551e-08
1.5951e-05
-7.07352e-08
1.59519e-05
-4.28246e-08
1.59536e-05
-5.17161e-08
1.5954e-05
-6.54193e-09
1.59551e-05
5.15305e-09
1.5957e-05
6.71087e-08
1.59601e-05
9.79583e-08
1.59653e-05
1.48784e-07
1.59693e-05
1.79086e-07
1.59732e-05
1.93264e-07
1.59773e-05
2.33727e-07
1.59794e-05
2.19194e-07
1.59773e-05
2.22752e-07
1.59786e-05
2.29853e-07
1.59778e-05
2.27033e-07
1.59768e-05
2.07984e-07
1.59768e-05
2.30583e-07
1.5974e-05
1.92832e-07
1.59673e-05
1.81898e-07
1.59605e-05
1.49664e-07
1.59589e-05
2.03794e-07
1.59593e-05
2.06845e-07
1.59569e-05
2.36549e-07
1.59533e-05
1.89605e-07
1.59545e-05
2.36042e-07
1.59528e-05
1.67885e-07
1.59487e-05
8.24645e-08
1.59503e-05
1.29476e-07
3.65016e-08
1.66049e-05
-1.87684e-08
1.66081e-05
-1.34829e-08
1.6612e-05
-2.0724e-09
1.66151e-05
4.28364e-09
1.66176e-05
1.03723e-08
1.662e-05
1.16811e-08
1.66232e-05
1.74187e-08
1.66279e-05
2.38382e-08
1.66335e-05
3.47311e-08
1.66368e-05
4.18327e-08
1.66385e-05
4.4266e-08
1.66409e-05
4.51139e-08
1.66445e-05
5.0965e-08
1.66509e-05
6.05789e-08
1.66551e-05
7.23584e-08
1.66553e-05
7.37981e-08
1.66581e-05
7.246e-08
1.66638e-05
8.17988e-08
1.66689e-05
9.19851e-08
1.66725e-05
1.00803e-07
1.66738e-05
1.03799e-07
1.66765e-05
1.02202e-07
1.66834e-05
1.08935e-07
1.66879e-05
1.23995e-07
1.6688e-05
1.25806e-07
1.66915e-05
1.2198e-07
1.66977e-05
1.28209e-07
1.66996e-05
1.38955e-07
1.6701e-05
1.38293e-07
1.67044e-05
1.36386e-07
1.67062e-05
1.39499e-07
1.67076e-05
1.41704e-07
1.67103e-05
1.42673e-07
1.67106e-05
1.43111e-07
1.6711e-05
1.38708e-07
1.6713e-05
1.36226e-07
1.67143e-05
1.38153e-07
1.6714e-05
1.35558e-07
1.67145e-05
1.28102e-07
1.67156e-05
1.25558e-07
1.6716e-05
1.23146e-07
1.67159e-05
1.21264e-07
1.67154e-05
1.16205e-07
1.67147e-05
1.13722e-07
1.67136e-05
1.06643e-07
1.67119e-05
1.0854e-07
1.67093e-05
1.05038e-07
1.67059e-05
1.10567e-07
1.67025e-05
1.05967e-07
1.66997e-05
1.17763e-07
1.66976e-05
1.22123e-07
1.66956e-05
1.4242e-07
1.66951e-05
1.39087e-07
1.66961e-05
1.63728e-07
1.66973e-05
1.533e-07
1.66997e-05
1.73141e-07
1.6701e-05
1.4271e-07
1.67022e-05
1.4779e-07
1.67012e-05
1.06526e-07
1.66983e-05
9.31394e-08
1.66945e-05
5.75534e-08
1.66908e-05
4.03239e-08
1.66892e-05
2.91746e-08
1.66905e-05
1.26768e-08
1.66939e-05
1.65225e-08
1.66983e-05
-1.22001e-08
1.67027e-05
-7.73106e-09
1.67061e-05
-4.55756e-08
1.67087e-05
-3.46378e-08
1.67109e-05
-6.93544e-08
1.67118e-05
-5.00009e-08
1.67135e-05
-7.24128e-08
1.67142e-05
-4.35326e-08
1.67156e-05
-5.30716e-08
1.67158e-05
-6.75572e-09
1.67167e-05
4.2219e-09
1.67185e-05
6.52975e-08
1.67215e-05
9.50135e-08
1.67265e-05
1.43758e-07
1.67305e-05
1.7507e-07
1.67347e-05
1.89111e-07
1.67389e-05
2.29501e-07
1.67414e-05
2.16702e-07
1.67399e-05
2.24274e-07
1.67413e-05
2.28409e-07
1.67407e-05
2.27638e-07
1.67399e-05
2.08791e-07
1.67401e-05
2.30403e-07
1.67373e-05
1.9564e-07
1.67311e-05
1.88084e-07
1.67245e-05
1.56226e-07
1.67229e-05
2.05413e-07
1.6723e-05
2.0672e-07
1.6721e-05
2.38605e-07
1.6718e-05
1.92594e-07
1.67192e-05
2.34841e-07
1.67179e-05
1.69223e-07
1.67141e-05
8.62355e-08
1.67159e-05
1.27654e-07
3.4053e-08
1.74029e-05
-1.98941e-08
1.74054e-05
-1.59151e-08
1.74091e-05
-5.77948e-09
1.74123e-05
1.07706e-09
1.74146e-05
8.01192e-09
1.74168e-05
9.50092e-09
1.74197e-05
1.45493e-08
1.74235e-05
2.00527e-08
1.74287e-05
2.95191e-08
1.74328e-05
3.76805e-08
1.74348e-05
4.23079e-08
1.74369e-05
4.29818e-08
1.74397e-05
4.81815e-08
1.7445e-05
5.53022e-08
1.74504e-05
6.6939e-08
1.74518e-05
7.24087e-08
1.74535e-05
7.08087e-08
1.74582e-05
7.70481e-08
1.74636e-05
8.65907e-08
1.74681e-05
9.62507e-08
1.74702e-05
1.01718e-07
1.74718e-05
1.00669e-07
1.74775e-05
1.03235e-07
1.74839e-05
1.17551e-07
1.74852e-05
1.24485e-07
1.74863e-05
1.20891e-07
1.74927e-05
1.21804e-07
1.74968e-05
1.34908e-07
1.7497e-05
1.38017e-07
1.75e-05
1.33391e-07
1.75032e-05
1.36293e-07
1.75043e-05
1.40645e-07
1.75069e-05
1.40073e-07
1.75084e-05
1.41642e-07
1.75084e-05
1.38638e-07
1.75103e-05
1.34336e-07
1.75126e-05
1.35915e-07
1.75123e-05
1.35798e-07
1.75124e-05
1.28033e-07
1.75137e-05
1.24306e-07
1.75145e-05
1.22322e-07
1.75145e-05
1.21272e-07
1.7514e-05
1.16715e-07
1.75131e-05
1.14543e-07
1.75121e-05
1.07634e-07
1.75106e-05
1.10093e-07
1.75082e-05
1.07408e-07
1.75052e-05
1.13638e-07
1.75021e-05
1.09003e-07
1.74995e-05
1.20374e-07
1.74976e-05
1.23984e-07
1.74958e-05
1.44218e-07
1.74954e-05
1.3954e-07
1.74966e-05
1.62564e-07
1.74977e-05
1.52127e-07
1.75e-05
1.70838e-07
1.75013e-05
1.41438e-07
1.75026e-05
1.465e-07
1.75018e-05
1.07324e-07
1.74994e-05
9.55215e-08
1.74962e-05
6.07923e-08
1.7493e-05
4.34783e-08
1.74916e-05
3.05595e-08
1.74927e-05
1.16082e-08
1.74957e-05
1.35704e-08
1.74995e-05
-1.60903e-08
1.75034e-05
-1.16218e-08
1.75065e-05
-4.86121e-08
1.75088e-05
-3.69287e-08
1.75105e-05
-7.11343e-08
1.75113e-05
-5.07648e-08
1.75126e-05
-7.36684e-08
1.7513e-05
-4.39789e-08
1.7514e-05
-5.40278e-08
1.75141e-05
-6.84403e-09
1.75148e-05
3.47039e-09
1.75165e-05
6.35723e-08
1.75193e-05
9.22928e-08
1.75241e-05
1.38897e-07
1.75282e-05
1.71023e-07
1.75325e-05
1.84759e-07
1.75369e-05
2.25145e-07
1.75397e-05
2.13894e-07
1.75388e-05
2.25184e-07
1.75404e-05
2.26786e-07
1.75401e-05
2.27955e-07
1.75394e-05
2.09465e-07
1.75397e-05
2.30056e-07
1.7537e-05
1.98393e-07
1.75314e-05
1.93697e-07
1.75251e-05
1.62491e-07
1.75235e-05
2.07062e-07
1.75234e-05
2.06777e-07
1.75216e-05
2.40382e-07
1.75192e-05
1.94987e-07
1.75205e-05
2.33564e-07
1.75195e-05
1.70228e-07
1.75161e-05
8.96434e-08
1.75181e-05
1.25682e-07
3.17774e-08
1.82394e-05
-2.08445e-08
1.82411e-05
-1.76054e-08
1.82442e-05
-8.92692e-09
1.82477e-05
-2.34308e-09
1.82501e-05
5.5861e-09
1.82519e-05
7.64807e-09
1.82545e-05
1.19662e-08
1.82576e-05
1.69696e-08
1.82621e-05
2.50661e-08
1.82666e-05
3.3092e-08
1.82691e-05
3.98655e-08
1.82712e-05
4.08539e-08
1.82736e-05
4.57796e-08
1.82776e-05
5.12928e-08
1.82833e-05
6.12665e-08
1.82862e-05
6.95236e-08
1.82875e-05
6.95112e-08
1.82911e-05
7.34041e-08
1.82963e-05
8.14543e-08
1.83013e-05
9.11616e-08
1.83046e-05
9.85062e-08
1.83059e-05
9.92973e-08
1.83099e-05
9.92922e-08
1.83167e-05
1.10687e-07
1.83204e-05
1.20801e-07
1.83203e-05
1.2101e-07
1.83249e-05
1.17211e-07
1.83312e-05
1.28571e-07
1.83321e-05
1.37164e-07
1.83336e-05
1.31919e-07
1.83379e-05
1.31981e-07
1.83394e-05
1.3916e-07
1.83414e-05
1.38024e-07
1.83441e-05
1.38984e-07
1.83443e-05
1.38403e-07
1.83454e-05
1.33261e-07
1.83483e-05
1.32987e-07
1.83488e-05
1.35252e-07
1.83486e-05
1.28296e-07
1.83497e-05
1.23152e-07
1.83509e-05
1.21157e-07
1.8351e-05
1.21162e-07
1.83505e-05
1.17227e-07
1.83497e-05
1.15384e-07
1.83487e-05
1.08541e-07
1.83476e-05
1.1127e-07
1.83455e-05
1.09512e-07
1.83425e-05
1.16561e-07
1.83397e-05
1.11839e-07
1.83374e-05
1.22674e-07
1.83359e-05
1.255e-07
1.83344e-05
1.45721e-07
1.8334e-05
1.39961e-07
1.83352e-05
1.61318e-07
1.83364e-05
1.50936e-07
1.83387e-05
1.68581e-07
1.83399e-05
1.40194e-07
1.83413e-05
1.45092e-07
1.83408e-05
1.07871e-07
1.83389e-05
9.74311e-08
1.83362e-05
6.34805e-08
1.83335e-05
4.61396e-08
1.83323e-05
3.17615e-08
1.83332e-05
1.07613e-08
1.83357e-05
1.10004e-08
1.83391e-05
-1.94348e-08
1.83425e-05
-1.50181e-08
1.83451e-05
-5.12439e-08
1.83471e-05
-3.89346e-08
1.83485e-05
-7.24903e-08
1.8349e-05
-5.12748e-08
1.83498e-05
-7.4478e-08
1.835e-05
-4.41874e-08
1.83506e-05
-5.46029e-08
1.83505e-05
-6.78954e-09
1.8351e-05
2.94877e-09
1.83527e-05
6.19405e-08
1.83552e-05
8.97468e-08
1.83599e-05
1.34187e-07
1.83639e-05
1.66991e-07
1.83684e-05
1.80304e-07
1.83729e-05
2.20637e-07
1.8376e-05
2.10792e-07
1.83758e-05
2.25448e-07
1.83775e-05
2.25017e-07
1.83775e-05
2.27963e-07
1.8377e-05
2.10014e-07
1.83775e-05
2.29479e-07
1.83749e-05
2.01004e-07
1.83698e-05
1.98776e-07
1.83639e-05
1.68403e-07
1.83623e-05
2.08718e-07
1.83622e-05
2.06892e-07
1.83607e-05
2.41881e-07
1.83588e-05
1.9683e-07
1.83602e-05
2.32204e-07
1.83595e-05
1.70917e-07
1.83565e-05
9.26704e-08
1.83586e-05
1.23591e-07
2.96897e-08
1.91159e-05
-2.16823e-08
1.91171e-05
-1.88066e-08
1.91196e-05
-1.13454e-08
1.91228e-05
-5.55591e-09
1.91256e-05
2.79719e-09
1.91272e-05
6.06022e-09
1.91293e-05
9.80619e-09
1.91321e-05
1.42219e-08
1.91356e-05
2.15437e-08
1.91403e-05
2.83832e-08
1.91432e-05
3.69507e-08
1.91455e-05
3.85987e-08
1.91478e-05
4.34484e-08
1.91508e-05
4.8316e-08
1.91559e-05
5.60981e-08
1.91599e-05
6.55754e-08
1.91617e-05
6.77414e-08
1.91644e-05
7.0648e-08
1.91689e-05
7.69967e-08
1.91742e-05
8.5865e-08
1.91783e-05
9.43674e-08
1.91802e-05
9.74552e-08
1.91828e-05
9.66417e-08
1.91888e-05
1.0464e-07
1.91946e-05
1.15052e-07
1.91952e-05
1.2036e-07
1.91973e-05
1.15171e-07
1.92044e-05
1.2144e-07
1.92074e-05
1.34166e-07
1.92073e-05
1.32015e-07
1.92116e-05
1.27684e-07
1.92145e-05
1.36229e-07
1.92158e-05
1.36772e-07
1.92188e-05
1.36004e-07
1.922e-05
1.3714e-07
1.92205e-05
1.32853e-07
1.92236e-05
1.29831e-07
1.92252e-05
1.33667e-07
1.92247e-05
1.2884e-07
1.92254e-05
1.22422e-07
1.9227e-05
1.1952e-07
1.92275e-05
1.20676e-07
1.92271e-05
1.17679e-07
1.92262e-05
1.16199e-07
1.92253e-05
1.0951e-07
1.92243e-05
1.12248e-07
1.92225e-05
1.11289e-07
1.92199e-05
1.192e-07
1.92173e-05
1.14369e-07
1.92154e-05
1.24582e-07
1.92142e-05
1.26696e-07
1.9213e-05
1.47e-07
1.92126e-05
1.40358e-07
1.92139e-05
1.59962e-07
1.92152e-05
1.49658e-07
1.92174e-05
1.66334e-07
1.92187e-05
1.38952e-07
1.92202e-05
1.43565e-07
1.92199e-05
1.08177e-07
1.92185e-05
9.88776e-08
1.92163e-05
6.56689e-08
1.92141e-05
4.83507e-08
1.9213e-05
3.27724e-08
1.92137e-05
1.00954e-08
1.92159e-05
8.82647e-09
1.92187e-05
-2.22106e-08
1.92216e-05
-1.79621e-08
1.92238e-05
-5.34442e-08
1.92254e-05
-4.05717e-08
1.92263e-05
-7.33888e-08
1.92266e-05
-5.15735e-08
1.9227e-05
-7.48473e-08
1.9227e-05
-4.41736e-08
1.92272e-05
-5.47588e-08
1.9227e-05
-6.58619e-09
1.92273e-05
2.63065e-09
1.92288e-05
6.04066e-08
1.92311e-05
8.74009e-08
1.92357e-05
1.29669e-07
1.92397e-05
1.6296e-07
1.92442e-05
1.75777e-07
1.92489e-05
2.15969e-07
1.92522e-05
2.075e-07
1.92526e-05
2.25069e-07
1.92545e-05
2.23092e-07
1.92549e-05
2.2758e-07
1.92545e-05
2.10393e-07
1.92553e-05
2.28707e-07
1.92529e-05
2.03413e-07
1.92483e-05
2.03328e-07
1.92429e-05
1.73847e-07
1.92412e-05
2.10381e-07
1.92411e-05
2.07007e-07
1.92399e-05
2.43108e-07
1.92385e-05
1.98148e-07
1.924e-05
2.30695e-07
1.92396e-05
1.7133e-07
1.9237e-05
9.53064e-08
1.92392e-05
1.2141e-07
2.78104e-08
2.00344e-05
-2.23595e-08
2.00353e-05
-1.96765e-08
2.00371e-05
-1.31563e-08
2.00397e-05
-8.1491e-09
2.00427e-05
-2.28174e-10
2.00445e-05
4.23544e-09
2.00461e-05
8.23551e-09
2.00487e-05
1.15699e-08
2.00514e-05
1.8875e-08
2.00558e-05
2.40416e-08
2.00591e-05
3.3592e-08
2.00613e-05
3.63726e-08
2.00639e-05
4.08798e-08
2.00663e-05
4.5964e-08
2.00706e-05
5.17683e-08
2.0075e-05
6.11636e-08
2.00775e-05
6.52162e-08
2.008e-05
6.81745e-08
2.00836e-05
7.33999e-08
2.00887e-05
8.0763e-08
2.00934e-05
8.96898e-08
2.00961e-05
9.47764e-08
2.00984e-05
9.43134e-08
2.01029e-05
1.00108e-07
2.01094e-05
1.08577e-07
2.01122e-05
1.17581e-07
2.01125e-05
1.14844e-07
2.01183e-05
1.15628e-07
2.01239e-05
1.2853e-07
2.01237e-05
1.32218e-07
2.01266e-05
1.24812e-07
2.0131e-05
1.31835e-07
2.01323e-05
1.35441e-07
2.0135e-05
1.333e-07
2.01376e-05
1.34573e-07
2.01377e-05
1.32811e-07
2.01401e-05
1.27368e-07
2.01429e-05
1.30927e-07
2.01428e-05
1.28923e-07
2.01428e-05
1.22362e-07
2.01447e-05
1.17688e-07
2.01457e-05
1.19603e-07
2.01453e-05
1.18103e-07
2.01444e-05
1.17061e-07
2.01436e-05
1.10394e-07
2.01429e-05
1.12918e-07
2.01416e-05
1.12596e-07
2.01392e-05
1.21547e-07
2.01368e-05
1.16809e-07
2.01352e-05
1.26158e-07
2.01344e-05
1.27484e-07
2.01334e-05
1.47995e-07
2.01331e-05
1.40652e-07
2.01346e-05
1.58475e-07
2.0136e-05
1.4827e-07
2.01383e-05
1.64069e-07
2.01395e-05
1.37718e-07
2.01412e-05
1.41894e-07
2.01411e-05
1.08225e-07
2.01401e-05
9.99023e-08
2.01384e-05
6.74005e-08
2.01366e-05
5.01256e-08
2.01358e-05
3.3609e-08
2.01362e-05
9.66752e-09
2.0138e-05
6.98522e-09
2.01403e-05
-2.44588e-08
2.01427e-05
-2.03971e-08
2.01444e-05
-5.51507e-08
2.01457e-05
-4.18788e-08
2.01462e-05
-7.38502e-08
2.01462e-05
-5.16156e-08
2.01461e-05
-7.47404e-08
2.01459e-05
-4.39189e-08
2.01457e-05
-5.45276e-08
2.01453e-05
-6.25626e-09
2.01454e-05
2.54366e-09
2.01468e-05
5.90232e-08
2.0149e-05
8.52368e-08
2.01533e-05
1.25338e-07
2.01573e-05
1.58913e-07
2.01619e-05
1.71264e-07
2.01667e-05
2.11116e-07
2.01701e-05
2.0406e-07
2.01712e-05
2.24033e-07
2.01732e-05
2.21025e-07
2.0174e-05
2.26833e-07
2.01738e-05
2.10584e-07
2.01748e-05
2.27725e-07
2.01727e-05
2.05477e-07
2.01687e-05
2.07374e-07
2.01638e-05
1.78759e-07
2.01621e-05
2.12018e-07
2.01621e-05
2.07053e-07
2.01612e-05
2.44004e-07
2.01603e-05
1.99013e-07
2.0162e-05
2.29002e-07
2.01619e-05
1.71479e-07
2.01596e-05
9.75637e-08
2.01618e-05
1.19169e-07
2.61683e-08
2.09967e-05
-2.28053e-08
2.09973e-05
-2.03456e-08
2.09987e-05
-1.45684e-08
2.10007e-05
-1.0076e-08
2.10034e-05
-2.99737e-09
2.10058e-05
1.9078e-09
2.1007e-05
7.02851e-09
2.10093e-05
9.23139e-09
2.10115e-05
1.66967e-08
2.1015e-05
2.05305e-08
2.10189e-05
2.97208e-08
2.1021e-05
3.4209e-08
2.10238e-05
3.81019e-08
2.10261e-05
4.37083e-08
2.10295e-05
4.83701e-08
2.10339e-05
5.67067e-08
2.10369e-05
6.22548e-08
2.10396e-05
6.54563e-08
2.10425e-05
7.0466e-08
2.10471e-05
7.6197e-08
2.10521e-05
8.46368e-08
2.10554e-05
9.15651e-08
2.10579e-05
9.17734e-08
2.10613e-05
9.67019e-08
2.10672e-05
1.02692e-07
2.10721e-05
1.12706e-07
2.10726e-05
1.1432e-07
2.10761e-05
1.12096e-07
2.10832e-05
1.21502e-07
2.10845e-05
1.30862e-07
2.10857e-05
1.23654e-07
2.10907e-05
1.26846e-07
2.1093e-05
1.33088e-07
2.10947e-05
1.31572e-07
2.10981e-05
1.31227e-07
2.10988e-05
1.32063e-07
2.11004e-05
1.2576e-07
2.11039e-05
1.27453e-07
2.11049e-05
1.27979e-07
2.11043e-05
1.22958e-07
2.11057e-05
1.16288e-07
2.11074e-05
1.17834e-07
2.11074e-05
1.18111e-07
2.11065e-05
1.17998e-07
2.11057e-05
1.11167e-07
2.11053e-05
1.13334e-07
2.11044e-05
1.13513e-07
2.11025e-05
1.23443e-07
2.11002e-05
1.19129e-07
2.10989e-05
1.27425e-07
2.10986e-05
1.27747e-07
2.10979e-05
1.48696e-07
2.10977e-05
1.40918e-07
2.10993e-05
1.56846e-07
2.11008e-05
1.46729e-07
2.11032e-05
1.61741e-07
2.11044e-05
1.36455e-07
2.11063e-05
1.40047e-07
2.11065e-05
1.08009e-07
2.11059e-05
1.0051e-07
2.11046e-05
6.87323e-08
2.11031e-05
5.15489e-08
2.11025e-05
3.42844e-08
2.11027e-05
9.40597e-09
2.11042e-05
5.49851e-09
2.11059e-05
-2.61231e-08
2.11078e-05
-2.23711e-08
2.11091e-05
-5.63808e-08
2.111e-05
-4.27887e-08
2.11099e-05
-7.37968e-08
2.11097e-05
-5.14036e-08
2.11092e-05
-7.4188e-08
2.11087e-05
-4.34619e-08
2.11081e-05
-5.38792e-08
2.11075e-05
-5.74859e-09
2.11074e-05
2.68147e-09
2.11087e-05
5.77731e-08
2.11107e-05
8.31939e-08
2.11148e-05
1.21257e-07
2.11188e-05
1.54853e-07
2.11233e-05
1.66819e-07
2.11283e-05
2.06067e-07
2.11319e-05
2.00528e-07
2.11335e-05
2.22376e-07
2.11358e-05
2.18791e-07
2.11369e-05
2.25704e-07
2.1137e-05
2.10505e-07
2.11381e-05
2.26577e-07
2.11364e-05
2.07145e-07
2.11329e-05
2.10945e-07
2.11286e-05
1.83038e-07
2.11271e-05
2.13558e-07
2.11271e-05
2.0698e-07
2.11266e-05
2.44519e-07
2.11262e-05
1.99465e-07
2.11281e-05
2.27062e-07
2.11282e-05
1.71387e-07
2.11263e-05
9.94747e-08
2.11286e-05
1.16888e-07
2.47866e-08
2.20048e-05
-2.29496e-08
2.20053e-05
-2.08396e-08
2.20064e-05
-1.56503e-08
2.2008e-05
-1.16905e-08
2.201e-05
-5.00904e-09
2.20127e-05
-7.27685e-10
2.20139e-05
5.76266e-09
2.20158e-05
7.33801e-09
2.2018e-05
1.45438e-08
2.20205e-05
1.80025e-08
2.20245e-05
2.57328e-08
2.20268e-05
3.18661e-08
2.20294e-05
3.55257e-08
2.20319e-05
4.11965e-08
2.20345e-05
4.57641e-08
2.20388e-05
5.24765e-08
2.20419e-05
5.9107e-08
2.2045e-05
6.23805e-08
2.20478e-05
6.76014e-08
2.20514e-05
7.25929e-08
2.20566e-05
7.94539e-08
2.20602e-05
8.79537e-08
2.20632e-05
8.87943e-08
2.20663e-05
9.35878e-08
2.20709e-05
9.80864e-08
2.20769e-05
1.06721e-07
2.20789e-05
1.12321e-07
2.20805e-05
1.10522e-07
2.20871e-05
1.14857e-07
2.20909e-05
1.27093e-07
2.20913e-05
1.2331e-07
2.20954e-05
1.22715e-07
2.20992e-05
1.29269e-07
2.21007e-05
1.30079e-07
2.21041e-05
1.27785e-07
2.2106e-05
1.30201e-07
2.21068e-05
1.2496e-07
2.211e-05
1.24276e-07
2.21123e-05
1.25634e-07
2.21119e-05
1.23423e-07
2.21125e-05
1.1565e-07
2.21148e-05
1.15577e-07
2.21156e-05
1.17267e-07
2.21146e-05
1.19032e-07
2.21135e-05
1.12187e-07
2.21134e-05
1.13446e-07
2.2113e-05
1.13966e-07
2.21117e-05
1.24762e-07
2.21096e-05
1.21233e-07
2.21085e-05
1.28516e-07
2.21087e-05
1.27473e-07
2.21085e-05
1.4894e-07
2.21083e-05
1.41139e-07
2.211e-05
1.55113e-07
2.21118e-05
1.4496e-07
2.21142e-05
1.59298e-07
2.21155e-05
1.35179e-07
2.21175e-05
1.38044e-07
2.2118e-05
1.0752e-07
2.21178e-05
1.00709e-07
2.21168e-05
6.97055e-08
2.21157e-05
5.26355e-08
2.21152e-05
3.47808e-08
2.21152e-05
9.38706e-09
2.21164e-05
4.33756e-09
2.21175e-05
-2.72548e-08
2.2119e-05
-2.38569e-08
2.21197e-05
-5.70408e-08
2.21202e-05
-4.33122e-08
2.21197e-05
-7.32835e-08
2.21192e-05
-5.09417e-08
2.21182e-05
-7.31217e-08
2.21174e-05
-4.2719e-08
2.21164e-05
-5.2838e-08
2.21158e-05
-5.11754e-09
2.21155e-05
2.98339e-09
2.21165e-05
5.67582e-08
2.21184e-05
8.13012e-08
2.21222e-05
1.17434e-07
2.21263e-05
1.50726e-07
2.21307e-05
1.62475e-07
2.21359e-05
2.00842e-07
2.21395e-05
1.96937e-07
2.21417e-05
2.20153e-07
2.21441e-05
2.16342e-07
2.21456e-05
2.24234e-07
2.2146e-05
2.10096e-07
2.21473e-05
2.25277e-07
2.21462e-05
2.08299e-07
2.21431e-05
2.14007e-07
2.21395e-05
1.86666e-07
2.21381e-05
2.14944e-07
2.21383e-05
2.06783e-07
2.21382e-05
2.44572e-07
2.21382e-05
1.99546e-07
2.21404e-05
2.24837e-07
2.21407e-05
1.71032e-07
2.21391e-05
1.01068e-07
2.21414e-05
1.14585e-07
2.36916e-08
2.30611e-05
-2.28423e-08
2.30614e-05
-2.11447e-08
2.30621e-05
-1.6337e-08
2.30636e-05
-1.3194e-08
2.3065e-05
-6.40516e-09
2.30675e-05
-3.17011e-09
2.30691e-05
4.15847e-09
2.30706e-05
5.82199e-09
2.30727e-05
1.23801e-08
2.30746e-05
1.61959e-08
2.3078e-05
2.22442e-08
2.30808e-05
2.90719e-08
2.30831e-05
3.32961e-08
2.30859e-05
3.83888e-08
2.30881e-05
4.35131e-08
2.30919e-05
4.87098e-08
2.30952e-05
5.58178e-08
2.30981e-05
5.94134e-08
2.31014e-05
6.43923e-08
2.31042e-05
6.97385e-08
2.31092e-05
7.44951e-08
2.31132e-05
8.3879e-08
2.31163e-05
8.57666e-08
2.31197e-05
9.01913e-08
2.31232e-05
9.45758e-08
2.31289e-05
1.00982e-07
2.31328e-05
1.0844e-07
2.31339e-05
1.0944e-07
2.3139e-05
1.09738e-07
2.31444e-05
1.21676e-07
2.31454e-05
1.22293e-07
2.31483e-05
1.19856e-07
2.3153e-05
1.24524e-07
2.3155e-05
1.28091e-07
2.31577e-05
1.25095e-07
2.31606e-05
1.27315e-07
2.31616e-05
1.23957e-07
2.3164e-05
1.21885e-07
2.31673e-05
1.22288e-07
2.31678e-05
1.23013e-07
2.31675e-05
1.1586e-07
2.31695e-05
1.13662e-07
2.31714e-05
1.15347e-07
2.31709e-05
1.1955e-07
2.31696e-05
1.13498e-07
2.31697e-05
1.13315e-07
2.31698e-05
1.13875e-07
2.3169e-05
1.25542e-07
2.31671e-05
1.23107e-07
2.31661e-05
1.29518e-07
2.31668e-05
1.26788e-07
2.31672e-05
1.48541e-07
2.31671e-05
1.41227e-07
2.31689e-05
1.53314e-07
2.31709e-05
1.42924e-07
2.31736e-05
1.56677e-07
2.31749e-05
1.33804e-07
2.31771e-05
1.35851e-07
2.31779e-05
1.06762e-07
2.31781e-05
1.00548e-07
2.31774e-05
7.03382e-08
2.31766e-05
5.35053e-08
2.31762e-05
3.51581e-08
2.31761e-05
9.50876e-09
2.31769e-05
3.48852e-09
2.31774e-05
-2.77903e-08
2.31785e-05
-2.48764e-08
2.31786e-05
-5.71662e-08
2.31787e-05
-4.34245e-08
2.31776e-05
-7.21896e-08
2.31768e-05
-5.01777e-08
2.31753e-05
-7.16121e-08
2.31743e-05
-4.17307e-08
2.31729e-05
-5.1433e-08
2.31721e-05
-4.26664e-09
2.31716e-05
3.47944e-09
2.31724e-05
5.59655e-08
2.31742e-05
7.94327e-08
2.31778e-05
1.13929e-07
2.31819e-05
1.46569e-07
2.31861e-05
1.58296e-07
2.31915e-05
1.95455e-07
2.31951e-05
1.93265e-07
2.31979e-05
2.17404e-07
2.32006e-05
2.13646e-07
2.32023e-05
2.22482e-07
2.32032e-05
2.09286e-07
2.32046e-05
2.23842e-07
2.3204e-05
2.08903e-07
2.32014e-05
2.16581e-07
2.31985e-05
1.89593e-07
2.31974e-05
2.16017e-07
2.31978e-05
2.06431e-07
2.31983e-05
2.44085e-07
2.31985e-05
1.99295e-07
2.3201e-05
2.22296e-07
2.32017e-05
1.70403e-07
2.32004e-05
1.02386e-07
2.32026e-05
1.12295e-07
2.29064e-08
2.41678e-05
-2.25663e-08
2.41681e-05
-2.1384e-08
2.41683e-05
-1.65747e-08
2.41696e-05
-1.45464e-08
2.41708e-05
-7.5632e-09
2.41727e-05
-5.02832e-09
2.41746e-05
2.25513e-09
2.41758e-05
4.6079e-09
2.41779e-05
1.02362e-08
2.41795e-05
1.4662e-08
2.41821e-05
1.95556e-08
2.41853e-05
2.59506e-08
2.41874e-05
3.11663e-08
2.41902e-05
3.56145e-08
2.41924e-05
4.12789e-08
2.41955e-05
4.56039e-08
2.41989e-05
5.242e-08
2.42017e-05
5.66586e-08
2.42052e-05
6.08868e-08
2.42079e-05
6.70507e-08
2.42119e-05
7.04069e-08
2.42165e-05
7.93111e-08
2.42195e-05
8.27688e-08
2.42232e-05
8.65309e-08
2.42264e-05
9.13461e-08
2.42312e-05
9.62324e-08
2.42364e-05
1.03187e-07
2.42381e-05
1.07789e-07
2.42415e-05
1.06247e-07
2.42475e-05
1.15692e-07
2.425e-05
1.19804e-07
2.42519e-05
1.17972e-07
2.42564e-05
1.20051e-07
2.42595e-05
1.25011e-07
2.42618e-05
1.22721e-07
2.42652e-05
1.23989e-07
2.42669e-05
1.22171e-07
2.42685e-05
1.20297e-07
2.42719e-05
1.1888e-07
2.42737e-05
1.21249e-07
2.42735e-05
1.16091e-07
2.42745e-05
1.12639e-07
2.42771e-05
1.12761e-07
2.42776e-05
1.19004e-07
2.4276e-05
1.15149e-07
2.42759e-05
1.13369e-07
2.42767e-05
1.13083e-07
2.42767e-05
1.25578e-07
2.42752e-05
1.24633e-07
2.42744e-05
1.30304e-07
2.42754e-05
1.25777e-07
2.42764e-05
1.47525e-07
2.42766e-05
1.41059e-07
2.42783e-05
1.51536e-07
2.42806e-05
1.40649e-07
2.42835e-05
1.53838e-07
2.42849e-05
1.32311e-07
2.42873e-05
1.33484e-07
2.42884e-05
1.05692e-07
2.42889e-05
9.99936e-08
2.42886e-05
7.0642e-08
2.4288e-05
5.41479e-08
2.42878e-05
3.53922e-08
2.42874e-05
9.87767e-09
2.42879e-05
2.93384e-09
2.42879e-05
-2.77367e-08
2.42885e-05
-2.54534e-08
2.4288e-05
-5.6678e-08
2.42876e-05
-4.30689e-08
2.42861e-05
-7.06469e-08
2.4285e-05
-4.9098e-08
2.4283e-05
-6.96518e-08
2.42817e-05
-4.035e-08
2.42798e-05
-4.96244e-08
2.42788e-05
-3.20876e-09
2.42782e-05
4.05787e-09
2.42787e-05
5.54548e-08
2.42805e-05
7.76614e-08
2.42837e-05
1.10717e-07
2.42879e-05
1.42355e-07
2.4292e-05
1.54221e-07
2.42975e-05
1.89999e-07
2.43012e-05
1.89504e-07
2.43044e-05
2.14253e-07
2.43074e-05
2.1062e-07
2.43094e-05
2.20469e-07
2.43107e-05
2.08005e-07
2.43123e-05
2.22265e-07
2.43122e-05
2.08955e-07
2.43102e-05
2.18542e-07
2.4308e-05
1.91889e-07
2.43073e-05
2.16715e-07
2.43078e-05
2.05926e-07
2.43088e-05
2.43001e-07
2.43095e-05
1.98658e-07
2.43123e-05
2.19426e-07
2.43133e-05
1.69432e-07
2.43122e-05
1.03481e-07
2.43145e-05
1.1001e-07
2.24457e-08
2.53272e-05
-2.22967e-08
2.53275e-05
-2.15964e-08
2.53275e-05
-1.66069e-08
2.53284e-05
-1.54353e-08
2.53296e-05
-8.81028e-09
2.53308e-05
-6.21664e-09
2.53329e-05
2.0156e-10
2.53339e-05
3.53923e-09
2.53359e-05
8.2396e-09
2.53375e-05
1.30567e-08
2.53395e-05
1.7604e-08
2.53425e-05
2.29897e-08
2.53446e-05
2.89954e-08
2.53472e-05
3.30336e-08
2.53495e-05
3.8975e-08
2.53522e-05
4.29446e-08
2.53555e-05
4.90758e-08
2.53581e-05
5.40412e-08
2.53614e-05
5.76214e-08
2.53644e-05
6.39962e-08
2.53677e-05
6.71314e-08
2.53724e-05
7.46167e-08
2.53756e-05
7.95453e-08
2.53792e-05
8.29897e-08
2.53828e-05
8.77156e-08
2.53864e-05
9.26002e-08
2.53919e-05
9.77067e-08
2.53949e-05
1.04823e-07
2.53974e-05
1.03722e-07
2.54029e-05
1.10162e-07
2.54067e-05
1.16071e-07
2.54086e-05
1.16005e-07
2.54125e-05
1.16201e-07
2.54165e-05
1.21053e-07
2.54189e-05
1.20236e-07
2.5422e-05
1.20939e-07
2.54246e-05
1.19584e-07
2.54261e-05
1.18769e-07
2.5429e-05
1.15973e-07
2.54317e-05
1.18527e-07
2.54323e-05
1.15496e-07
2.54326e-05
1.12408e-07
2.5435e-05
1.1034e-07
2.5437e-05
1.17014e-07
2.54357e-05
1.1647e-07
2.54349e-05
1.14084e-07
2.54362e-05
1.11781e-07
2.54372e-05
1.24647e-07
2.54358e-05
1.25962e-07
2.54352e-05
1.30959e-07
2.54366e-05
1.24347e-07
2.54383e-05
1.45836e-07
2.54389e-05
1.40481e-07
2.54408e-05
1.49656e-07
2.54433e-05
1.38108e-07
2.54464e-05
1.50769e-07
2.54481e-05
1.30618e-07
2.54506e-05
1.30959e-07
2.5452e-05
1.0432e-07
2.54528e-05
9.9175e-08
2.54528e-05
7.06746e-08
2.54523e-05
5.46167e-08
2.54521e-05
3.557e-08
2.54516e-05
1.03865e-08
2.54519e-05
2.58961e-09
2.54513e-05
-2.7119e-08
2.54514e-05
-2.54982e-08
2.54503e-05
-5.56575e-08
2.54495e-05
-4.22285e-08
2.54474e-05
-6.85476e-08
2.54459e-05
-4.76089e-08
2.54435e-05
-6.72432e-08
2.54418e-05
-3.86458e-08
2.54397e-05
-4.75173e-08
2.54384e-05
-1.89973e-09
2.54376e-05
4.79841e-09
2.54379e-05
5.52192e-08
2.54396e-05
7.59063e-08
2.54425e-05
1.0781e-07
2.54467e-05
1.38169e-07
2.54507e-05
1.50272e-07
2.54562e-05
1.84524e-07
2.54601e-05
1.85597e-07
2.54636e-05
2.10716e-07
2.5467e-05
2.07249e-07
2.54692e-05
2.18246e-07
2.54709e-05
2.06256e-07
2.54727e-05
2.20508e-07
2.54732e-05
2.08417e-07
2.54719e-05
2.1991e-07
2.54702e-05
1.93524e-07
2.54701e-05
2.16875e-07
2.54708e-05
2.05231e-07
2.54725e-05
2.4128e-07
2.54735e-05
1.97669e-07
2.54767e-05
2.16241e-07
2.5478e-05
1.6809e-07
2.54772e-05
1.04333e-07
2.54794e-05
1.07809e-07
2.23265e-08
2.6542e-05
-2.22266e-08
2.6542e-05
-2.15757e-08
2.65422e-05
-1.67923e-08
2.65424e-05
-1.56779e-08
2.65438e-05
-1.01621e-08
2.65446e-05
-7.04755e-09
2.65465e-05
-1.68967e-09
2.65477e-05
2.38491e-09
2.65492e-05
6.67831e-09
2.65511e-05
1.12295e-08
2.65525e-05
1.62078e-08
2.65551e-05
2.03752e-08
2.65573e-05
2.68098e-08
2.65597e-05
3.05704e-08
2.6562e-05
3.66733e-08
2.65643e-05
4.06252e-08
2.65674e-05
4.6013e-08
2.65701e-05
5.13595e-08
2.65731e-05
5.46514e-08
2.65763e-05
6.07274e-08
2.65792e-05
6.42966e-08
2.65834e-05
7.03779e-08
2.65871e-05
7.58523e-08
2.65903e-05
7.97829e-08
2.65942e-05
8.37905e-08
2.65975e-05
8.93482e-08
2.66024e-05
9.27811e-08
2.66066e-05
1.00596e-07
2.66089e-05
1.01451e-07
2.66136e-05
1.05418e-07
2.66182e-05
1.11506e-07
2.66208e-05
1.13439e-07
2.6624e-05
1.12988e-07
2.66281e-05
1.16977e-07
2.66311e-05
1.17177e-07
2.66341e-05
1.17956e-07
2.66372e-05
1.16513e-07
2.66392e-05
1.16757e-07
2.66416e-05
1.1358e-07
2.66445e-05
1.15623e-07
2.66462e-05
1.13813e-07
2.66463e-05
1.12244e-07
2.66479e-05
1.08787e-07
2.66508e-05
1.14061e-07
2.66509e-05
1.16451e-07
2.66494e-05
1.15491e-07
2.66507e-05
1.10526e-07
2.6653e-05
1.22299e-07
2.66522e-05
1.26804e-07
2.66514e-05
1.31803e-07
2.66532e-05
1.22524e-07
2.66555e-05
1.43478e-07
2.66565e-05
1.39569e-07
2.66584e-05
1.47673e-07
2.66613e-05
1.35272e-07
2.66646e-05
1.47407e-07
2.66666e-05
1.28666e-07
2.66692e-05
1.28302e-07
2.6671e-05
1.02523e-07
2.66722e-05
9.79738e-08
2.66725e-05
7.04516e-08
2.66722e-05
5.48642e-08
2.66721e-05
3.57234e-08
2.66713e-05
1.11516e-08
2.66714e-05
2.53751e-09
2.66702e-05
-2.5924e-08
2.66697e-05
-2.50825e-08
2.66682e-05
-5.40851e-08
2.66668e-05
-4.08437e-08
2.66643e-05
-6.60475e-08
2.66623e-05
-4.56661e-08
2.66596e-05
-6.44981e-08
2.66574e-05
-3.64272e-08
2.66549e-05
-4.50118e-08
2.66532e-05
-2.61021e-10
2.66524e-05
5.6606e-09
2.66524e-05
5.5223e-08
2.6654e-05
7.42553e-08
2.66567e-05
1.05136e-07
2.66608e-05
1.34025e-07
2.66647e-05
1.4637e-07
2.66701e-05
1.79126e-07
2.66742e-05
1.81523e-07
2.6678e-05
2.06903e-07
2.66818e-05
2.03494e-07
2.66843e-05
2.15766e-07
2.66865e-05
2.04017e-07
2.66885e-05
2.18483e-07
2.66895e-05
2.07397e-07
2.66889e-05
2.20499e-07
2.66879e-05
1.94619e-07
2.66883e-05
2.16467e-07
2.66892e-05
2.04303e-07
2.66916e-05
2.38904e-07
2.6693e-05
1.962e-07
2.66965e-05
2.1273e-07
2.66983e-05
1.66333e-07
2.66976e-05
1.05006e-07
2.66998e-05
1.05623e-07
2.25446e-08
2.78148e-05
-2.24985e-08
2.78146e-05
-2.14494e-08
2.7815e-05
-1.71775e-08
2.78149e-05
-1.55683e-08
2.78159e-05
-1.1198e-08
2.78167e-05
-7.8433e-09
2.78181e-05
-3.0773e-09
2.78195e-05
9.71254e-10
2.78206e-05
5.6198e-09
2.78226e-05
9.25221e-09
2.78238e-05
1.49933e-08
2.78259e-05
1.82134e-08
2.7828e-05
2.47427e-08
2.78302e-05
2.84024e-08
2.78325e-05
3.43226e-08
2.78346e-05
3.85309e-08
2.78375e-05
4.31769e-08
2.78401e-05
4.87555e-08
2.78426e-05
5.20773e-08
2.78458e-05
5.75686e-08
2.78487e-05
6.14061e-08
2.78524e-05
6.66621e-08
2.78563e-05
7.19701e-08
2.78595e-05
7.65976e-08
2.78634e-05
7.98935e-08
2.78668e-05
8.5893e-08
2.78708e-05
8.87596e-08
2.78757e-05
9.57828e-08
2.78785e-05
9.8653e-08
2.78824e-05
1.01461e-07
2.78872e-05
1.06694e-07
2.78904e-05
1.10224e-07
2.78935e-05
1.09935e-07
2.78975e-05
1.1299e-07
2.7901e-05
1.13625e-07
2.79041e-05
1.14879e-07
2.79073e-05
1.13374e-07
2.79098e-05
1.1419e-07
2.79121e-05
1.1125e-07
2.7915e-05
1.12782e-07
2.79174e-05
1.1138e-07
2.79183e-05
1.11354e-07
2.79192e-05
1.07916e-07
2.7922e-05
1.11271e-07
2.79238e-05
1.14634e-07
2.79224e-05
1.1689e-07
2.79226e-05
1.10337e-07
2.79262e-05
1.18666e-07
2.79267e-05
1.26271e-07
2.79255e-05
1.33097e-07
2.79275e-05
1.20476e-07
2.79309e-05
1.40078e-07
2.79322e-05
1.3824e-07
2.79342e-05
1.45653e-07
2.79374e-05
1.32139e-07
2.7941e-05
1.43764e-07
2.79433e-05
1.26403e-07
2.7946e-05
1.25568e-07
2.79481e-05
1.0042e-07
2.79496e-05
9.64682e-08
2.795e-05
7.00968e-08
2.795e-05
5.48773e-08
2.79499e-05
3.58337e-08
2.79489e-05
1.20719e-08
2.79489e-05
2.62098e-09
2.79472e-05
-2.43068e-08
2.79462e-05
-2.40415e-08
2.79441e-05
-5.19641e-08
2.79421e-05
-3.88954e-08
2.79391e-05
-6.30368e-08
2.79367e-05
-4.32407e-08
2.79335e-05
-6.12812e-08
2.79308e-05
-3.37959e-08
2.79281e-05
-4.22678e-08
2.79263e-05
1.56998e-09
2.79252e-05
6.74211e-09
2.79249e-05
5.54643e-08
2.79265e-05
7.27194e-08
2.79289e-05
1.02697e-07
2.79329e-05
1.30024e-07
2.79368e-05
1.42513e-07
2.79421e-05
1.7385e-07
2.79463e-05
1.77263e-07
2.79504e-05
2.02816e-07
2.79545e-05
1.99363e-07
2.79573e-05
2.13042e-07
2.79599e-05
2.01349e-07
2.79623e-05
2.16154e-07
2.79638e-05
2.05885e-07
2.79639e-05
2.20326e-07
2.79635e-05
1.95096e-07
2.79645e-05
2.15399e-07
2.79658e-05
2.0306e-07
2.79688e-05
2.35911e-07
2.79707e-05
1.94263e-07
2.79745e-05
2.08913e-07
2.79767e-05
1.64131e-07
2.79763e-05
1.05411e-07
2.79784e-05
1.03582e-07
2.31208e-08
2.91477e-05
-2.25885e-08
2.91475e-05
-2.12818e-08
2.9148e-05
-1.76038e-08
2.91482e-05
-1.57908e-08
2.91489e-05
-1.19175e-08
2.915e-05
-8.94463e-09
2.91509e-05
-3.98832e-09
2.91524e-05
-5.11778e-10
2.91533e-05
4.74364e-09
2.9155e-05
7.56847e-09
2.91562e-05
1.37411e-08
2.91577e-05
1.66904e-08
2.91597e-05
2.27603e-08
2.91615e-05
2.65899e-08
2.91639e-05
3.19356e-08
2.91658e-05
3.667e-08
2.91681e-05
4.08429e-08
2.91707e-05
4.61866e-08
2.91731e-05
4.96852e-08
2.91762e-05
5.44401e-08
2.9179e-05
5.86313e-08
2.91824e-05
6.32654e-08
2.91861e-05
6.82074e-08
2.91895e-05
7.32364e-08
2.9193e-05
7.63416e-08
2.91967e-05
8.22767e-08
2.92003e-05
8.51401e-08
2.9205e-05
9.10701e-08
2.92086e-05
9.50741e-08
2.9212e-05
9.79885e-08
2.92167e-05
1.02011e-07
2.92206e-05
1.0639e-07
2.92237e-05
1.06764e-07
2.92276e-05
1.09171e-07
2.92313e-05
1.09885e-07
2.92347e-05
1.11464e-07
2.92379e-05
1.10131e-07
2.92409e-05
1.11237e-07
2.92434e-05
1.08777e-07
2.92461e-05
1.10022e-07
2.92488e-05
1.08701e-07
2.92505e-05
1.09692e-07
2.92516e-05
1.06791e-07
2.92536e-05
1.09308e-07
2.92567e-05
1.11492e-07
2.92567e-05
1.1685e-07
2.92556e-05
1.11485e-07
2.92594e-05
1.14873e-07
2.92621e-05
1.2356e-07
2.92606e-05
1.346e-07
2.9262e-05
1.19081e-07
2.92666e-05
1.35468e-07
2.92686e-05
1.36194e-07
2.92707e-05
1.4363e-07
2.92742e-05
1.28632e-07
2.92782e-05
1.39716e-07
2.92809e-05
1.23747e-07
2.92837e-05
1.22746e-07
2.92861e-05
9.80093e-08
2.92881e-05
9.44734e-08
2.92886e-05
6.9574e-08
2.92888e-05
5.47145e-08
2.92886e-05
3.59814e-08
2.92875e-05
1.32474e-08
2.9287e-05
3.09518e-09
2.9285e-05
-2.22783e-08
2.92834e-05
-2.24635e-08
2.92809e-05
-4.94246e-08
2.92784e-05
-3.64314e-08
2.9275e-05
-5.96654e-08
2.92721e-05
-4.03454e-08
2.92685e-05
-5.76911e-08
2.92654e-05
-3.06265e-08
2.92621e-05
-3.90098e-08
2.92599e-05
3.73828e-09
2.92585e-05
8.15769e-09
2.92581e-05
5.58545e-08
2.92595e-05
7.13351e-08
2.92618e-05
1.00395e-07
2.92657e-05
1.26174e-07
2.92695e-05
1.38658e-07
2.92746e-05
1.68761e-07
2.92791e-05
1.728e-07
2.92834e-05
1.98472e-07
2.92879e-05
1.94919e-07
2.9291e-05
2.09928e-07
2.9294e-05
1.98274e-07
2.92968e-05
2.13353e-07
2.92988e-05
2.03962e-07
2.92998e-05
2.19292e-07
2.92999e-05
1.95052e-07
2.93015e-05
2.13749e-07
2.93031e-05
2.01423e-07
2.93068e-05
2.32291e-07
2.93093e-05
1.9176e-07
2.93134e-05
2.04764e-07
2.9316e-05
1.61498e-07
2.93158e-05
1.05613e-07
2.93179e-05
1.01539e-07
2.4007e-08
3.05453e-05
-2.25363e-08
3.05452e-05
-2.11741e-08
3.05452e-05
-1.76148e-08
3.05452e-05
-1.58345e-08
3.05453e-05
-1.20213e-08
3.05462e-05
-9.80017e-09
3.05472e-05
-4.97744e-09
3.05489e-05
-2.21924e-09
3.055e-05
3.63056e-09
3.05512e-05
6.41095e-09
3.05526e-05
1.22719e-08
3.05537e-05
1.56433e-08
3.05554e-05
2.10284e-08
3.05568e-05
2.51945e-08
3.05587e-05
3.00334e-08
3.05606e-05
3.48156e-08
3.05625e-05
3.8885e-08
3.05652e-05
4.34772e-08
3.05673e-05
4.7637e-08
3.05702e-05
5.15391e-08
3.05728e-05
5.60021e-08
3.0576e-05
6.00575e-08
3.05795e-05
6.47027e-08
3.05828e-05
6.99014e-08
3.05864e-05
7.28052e-08
3.05901e-05
7.85624e-08
3.05937e-05
8.15222e-08
3.05979e-05
8.68833e-08
3.0602e-05
9.10247e-08
3.06054e-05
9.45762e-08
3.06097e-05
9.76579e-08
3.0614e-05
1.02152e-07
3.06174e-05
1.03302e-07
3.06212e-05
1.05388e-07
3.0625e-05
1.06036e-07
3.06287e-05
1.07787e-07
3.06321e-05
1.06771e-07
3.06353e-05
1.07976e-07
3.06381e-05
1.06051e-07
3.06409e-05
1.07161e-07
3.06438e-05
1.05803e-07
3.06458e-05
1.07673e-07
3.06477e-05
1.04921e-07
3.0649e-05
1.08019e-07
3.06521e-05
1.08405e-07
3.06543e-05
1.14619e-07
3.06528e-05
1.12964e-07
3.06554e-05
1.12351e-07
3.06606e-05
1.18357e-07
3.06601e-05
1.35039e-07
3.06601e-05
1.19089e-07
3.06657e-05
1.2991e-07
3.06689e-05
1.33018e-07
3.06707e-05
1.4182e-07
3.06744e-05
1.24941e-07
3.06789e-05
1.35158e-07
3.0682e-05
1.20687e-07
3.06849e-05
1.19791e-07
3.06875e-05
9.54271e-08
3.069e-05
9.20194e-08
3.06906e-05
6.89226e-08
3.0691e-05
5.43428e-08
3.06909e-05
3.61209e-08
3.06896e-05
1.44768e-08
3.0689e-05
3.74282e-09
3.06867e-05
-1.99609e-08
3.06845e-05
-2.03164e-08
3.06813e-05
-4.62357e-08
3.06783e-05
-3.338e-08
3.06743e-05
-5.57345e-08
3.0671e-05
-3.69563e-08
3.06669e-05
-5.35995e-08
3.06633e-05
-2.70379e-08
3.06598e-05
-3.55133e-08
3.06575e-05
6.00505e-09
3.06558e-05
9.89901e-09
3.06552e-05
5.63801e-08
3.06564e-05
7.01847e-08
3.06585e-05
9.82584e-08
3.06621e-05
1.22567e-07
3.06659e-05
1.34855e-07
3.06709e-05
1.63825e-07
3.06755e-05
1.68205e-07
3.06801e-05
1.93852e-07
3.06848e-05
1.90215e-07
3.06883e-05
2.06428e-07
3.06917e-05
1.9488e-07
3.06949e-05
2.10135e-07
3.06973e-05
2.01618e-07
3.06991e-05
2.17414e-07
3.06999e-05
1.94316e-07
3.07022e-05
2.11435e-07
3.07043e-05
1.99275e-07
3.07085e-05
2.28099e-07
3.07116e-05
1.88704e-07
3.07161e-05
2.00245e-07
3.07192e-05
1.58408e-07
3.07193e-05
1.05517e-07
3.07212e-05
9.96684e-08
2.52626e-08
3.20077e-05
-2.2701e-08
3.20083e-05
-2.18314e-08
3.20092e-05
-1.84249e-08
3.20102e-05
-1.68855e-08
3.2011e-05
-1.28167e-08
3.20119e-05
-1.0724e-08
3.20127e-05
-5.72346e-09
3.20132e-05
-2.70829e-09
3.20142e-05
2.61658e-09
3.20147e-05
5.85719e-09
3.20159e-05
1.10885e-08
3.20166e-05
1.49501e-08
3.20177e-05
1.99169e-08
3.20189e-05
2.40085e-08
3.20202e-05
2.87018e-08
3.20222e-05
3.28604e-08
3.20236e-05
3.74831e-08
3.2026e-05
4.106e-08
3.20279e-05
4.57484e-08
3.20305e-05
4.88922e-08
3.20332e-05
5.33901e-08
3.2036e-05
5.71851e-08
3.20395e-05
6.12059e-08
3.20428e-05
6.65807e-08
3.20463e-05
6.93258e-08
3.20499e-05
7.4996e-08
3.20534e-05
7.80142e-08
3.20573e-05
8.29618e-08
3.20615e-05
8.68011e-08
3.20653e-05
9.08456e-08
3.20694e-05
9.35207e-08
3.20738e-05
9.7792e-08
3.20776e-05
9.94455e-08
3.20813e-05
1.01667e-07
3.20853e-05
1.02096e-07
3.20892e-05
1.03857e-07
3.20928e-05
1.03214e-07
3.20964e-05
1.04398e-07
3.20993e-05
1.03101e-07
3.21022e-05
1.04241e-07
3.21054e-05
1.02612e-07
3.21076e-05
1.05482e-07
3.21102e-05
1.02282e-07
3.2112e-05
1.06298e-07
3.21143e-05
1.06093e-07
3.21179e-05
1.10969e-07
3.21178e-05
1.131e-07
3.2118e-05
1.12112e-07
3.21245e-05
1.11916e-07
3.21268e-05
1.32756e-07
3.21252e-05
1.20653e-07
3.21307e-05
1.24404e-07
3.21358e-05
1.27877e-07
3.21378e-05
1.39871e-07
3.21412e-05
1.21498e-07
3.21465e-05
1.29933e-07
3.215e-05
1.17158e-07
3.2153e-05
1.16785e-07
3.21556e-05
9.28438e-08
3.21585e-05
8.90566e-08
3.21595e-05
6.80002e-08
3.216e-05
5.38479e-08
3.21597e-05
3.6394e-08
3.21582e-05
1.59121e-08
3.21572e-05
4.76378e-09
3.21547e-05
-1.73865e-08
3.2152e-05
-1.76804e-08
3.21485e-05
-4.26971e-08
3.21451e-05
-3.00128e-08
3.21409e-05
-5.14959e-08
3.21371e-05
-3.32349e-08
3.21326e-05
-4.90637e-08
3.21285e-05
-2.29693e-08
3.21244e-05
-3.13783e-08
3.21219e-05
8.5649e-09
3.21196e-05
1.21883e-08
3.21189e-05
5.70393e-08
3.21198e-05
6.92694e-08
3.21218e-05
9.62656e-08
3.21252e-05
1.19168e-07
3.21289e-05
1.31134e-07
3.21337e-05
1.59044e-07
3.21384e-05
1.63527e-07
3.21433e-05
1.889e-07
3.21482e-05
1.85333e-07
3.21523e-05
2.02345e-07
3.21561e-05
1.91129e-07
3.21599e-05
2.06322e-07
3.21627e-05
1.98821e-07
3.21653e-05
2.14762e-07
3.21666e-05
1.93001e-07
3.21694e-05
2.08668e-07
3.21721e-05
1.9662e-07
3.21768e-05
2.23325e-07
3.21804e-05
1.85086e-07
3.21853e-05
1.95357e-07
3.21888e-05
1.54933e-07
3.21892e-05
1.0515e-07
3.21911e-05
9.77298e-08
2.67434e-08
3.3541e-05
-2.21479e-08
3.35407e-05
-2.15362e-08
3.35408e-05
-1.8541e-08
3.35412e-05
-1.72519e-08
3.35419e-05
-1.35495e-08
3.35428e-05
-1.15672e-08
3.35443e-05
-7.25055e-09
3.35459e-05
-4.30441e-09
3.35474e-05
1.05692e-09
3.35484e-05
4.89378e-09
3.35493e-05
1.02236e-08
3.35501e-05
1.41173e-08
3.35507e-05
1.92789e-08
3.35518e-05
2.29184e-08
3.35526e-05
2.78892e-08
3.35543e-05
3.12444e-08
3.35555e-05
3.62101e-08
3.35575e-05
3.91265e-08
3.35595e-05
4.37374e-08
3.35616e-05
4.68155e-08
3.35642e-05
5.07244e-08
3.35667e-05
5.47282e-08
3.35699e-05
5.79959e-08
3.3573e-05
6.34749e-08
3.35761e-05
6.62453e-08
3.35797e-05
7.13726e-08
3.3583e-05
7.46807e-08
3.35869e-05
7.91307e-08
3.35909e-05
8.27489e-08
3.35947e-05
8.70184e-08
3.35988e-05
8.94722e-08
3.3603e-05
9.359e-08
3.36073e-05
9.5177e-08
3.36111e-05
9.78217e-08
3.36152e-05
9.80262e-08
3.36193e-05
9.97433e-08
3.3623e-05
9.94963e-08
3.36268e-05
1.00638e-07
3.36301e-05
9.97623e-08
3.36331e-05
1.01286e-07
3.36365e-05
9.91897e-08
3.3639e-05
1.02977e-07
3.36416e-05
9.96515e-08
3.36443e-05
1.03569e-07
3.36462e-05
1.04236e-07
3.36499e-05
1.07279e-07
3.36525e-05
1.10507e-07
3.36515e-05
1.13103e-07
3.36569e-05
1.06534e-07
3.36627e-05
1.26896e-07
3.36609e-05
1.22468e-07
3.36647e-05
1.20617e-07
3.36717e-05
1.20884e-07
3.36748e-05
1.3682e-07
3.36775e-05
1.18799e-07
3.36833e-05
1.24095e-07
3.36877e-05
1.12719e-07
3.3691e-05
1.13546e-07
3.36936e-05
9.02429e-08
3.36969e-05
8.56957e-08
3.36981e-05
6.68323e-08
3.36988e-05
5.31185e-08
3.36985e-05
3.66985e-08
3.36969e-05
1.74874e-08
3.36958e-05
5.9236e-09
3.3693e-05
-1.45518e-08
3.36899e-05
-1.45889e-08
3.36856e-05
-3.83954e-08
3.36817e-05
-2.61289e-08
3.36767e-05
-4.65323e-08
3.36725e-05
-2.90609e-08
3.36674e-05
-4.39557e-08
3.3663e-05
-1.8507e-08
3.36585e-05
-2.69236e-08
3.36559e-05
1.11656e-08
3.36533e-05
1.48143e-08
3.36526e-05
5.77681e-08
3.36533e-05
6.85567e-08
3.36551e-05
9.445e-08
3.36583e-05
1.15972e-07
3.36618e-05
1.27588e-07
3.36665e-05
1.54327e-07
3.36712e-05
1.58825e-07
3.36765e-05
1.83644e-07
3.36815e-05
1.80308e-07
3.3686e-05
1.97828e-07
3.36901e-05
1.87109e-07
3.36943e-05
2.02128e-07
3.36976e-05
1.95525e-07
3.3701e-05
2.11277e-07
3.37032e-05
1.90848e-07
3.37066e-05
2.05235e-07
3.371e-05
1.93271e-07
3.37153e-05
2.17967e-07
3.37195e-05
1.80894e-07
3.37249e-05
1.89985e-07
3.37288e-05
1.51021e-07
3.37294e-05
1.04534e-07
3.37312e-05
9.59399e-08
2.86098e-08
3.51499e-05
-2.38621e-08
3.51519e-05
-2.35243e-08
3.51539e-05
-2.05622e-08
3.51558e-05
-1.91243e-08
3.51573e-05
-1.50181e-08
3.51582e-05
-1.24651e-08
3.51584e-05
-7.46163e-09
3.51582e-05
-4.10431e-09
3.51579e-05
1.37583e-09
3.51575e-05
5.22398e-09
3.5157e-05
1.07887e-08
3.51567e-05
1.4371e-08
3.51564e-05
1.95729e-08
3.51566e-05
2.27768e-08
3.51569e-05
2.75466e-08
3.51577e-05
3.03924e-08
3.51591e-05
3.48411e-08
3.51605e-05
3.77251e-08
3.51627e-05
4.15875e-08
3.51646e-05
4.49333e-08
3.51671e-05
4.8164e-08
3.51695e-05
5.23161e-08
3.51722e-05
5.52728e-08
3.51756e-05
6.01184e-08
3.51784e-05
6.34243e-08
3.51822e-05
6.75989e-08
3.51855e-05
7.13884e-08
3.51892e-05
7.54314e-08
3.51932e-05
7.87026e-08
3.51971e-05
8.31553e-08
3.52014e-05
8.51717e-08
3.52056e-05
8.94262e-08
3.52101e-05
9.06464e-08
3.52142e-05
9.37368e-08
3.52183e-05
9.39281e-08
3.52225e-05
9.55238e-08
3.52265e-05
9.55375e-08
3.52303e-05
9.67688e-08
3.52342e-05
9.59264e-08
3.52374e-05
9.80491e-08
3.52408e-05
9.57676e-08
3.52442e-05
9.9634e-08
3.52465e-05
9.73496e-08
3.525e-05
1.00072e-07
3.52524e-05
1.0183e-07
3.52549e-05
1.04763e-07
3.52595e-05
1.05883e-07
3.52595e-05
1.13141e-07
3.52622e-05
1.03812e-07
3.52705e-05
1.18552e-07
3.5271e-05
1.21964e-07
3.52726e-05
1.19067e-07
3.528e-05
1.13435e-07
3.52853e-05
1.31565e-07
3.52872e-05
1.1691e-07
3.52927e-05
1.18623e-07
3.5298e-05
1.07334e-07
3.53014e-05
1.10163e-07
3.53038e-05
8.78485e-08
3.53075e-05
8.20585e-08
3.5309e-05
6.53332e-08
3.53099e-05
5.21435e-08
3.53097e-05
3.69557e-08
3.53078e-05
1.9391e-08
3.53064e-05
7.26006e-09
3.53035e-05
-1.16271e-08
3.53001e-05
-1.12334e-08
3.52956e-05
-3.38267e-08
3.52917e-05
-2.22635e-08
3.52865e-05
-4.13602e-08
3.52822e-05
-2.47553e-08
3.52769e-05
-3.85689e-08
3.5272e-05
-1.37022e-08
3.5267e-05
-2.19229e-08
3.52641e-05
1.41592e-08
3.52609e-05
1.79836e-08
3.52598e-05
5.88549e-08
3.52602e-05
6.8157e-08
3.52617e-05
9.2937e-08
3.52646e-05
1.13058e-07
3.52679e-05
1.24307e-07
3.52725e-05
1.49723e-07
3.52771e-05
1.54183e-07
3.52827e-05
1.78095e-07
3.52879e-05
1.7511e-07
3.52931e-05
1.92661e-07
3.52975e-05
1.82621e-07
3.53023e-05
1.97365e-07
3.53061e-05
1.91703e-07
3.53102e-05
2.07169e-07
3.53129e-05
1.88176e-07
3.53167e-05
2.01474e-07
3.53204e-05
1.89501e-07
3.53264e-05
2.12045e-07
3.5331e-05
1.76249e-07
3.53367e-05
1.84256e-07
3.5341e-05
1.46732e-07
3.5342e-05
1.03562e-07
3.53439e-05
9.40126e-08
3.05414e-08
3.68225e-05
-2.53002e-08
3.68254e-05
-2.63711e-08
3.68291e-05
-2.43198e-08
3.68329e-05
-2.28625e-08
3.68362e-05
-1.83996e-08
3.68393e-05
-1.55293e-08
3.68412e-05
-9.36856e-09
3.68417e-05
-4.60018e-09
3.68413e-05
1.78065e-09
3.68406e-05
5.89792e-09
3.684e-05
1.13781e-08
3.68396e-05
1.48527e-08
3.68396e-05
1.95388e-08
3.68397e-05
2.26472e-08
3.68404e-05
2.68184e-08
3.68412e-05
2.96641e-08
3.68425e-05
3.34775e-08
3.68438e-05
3.64857e-08
3.68454e-05
3.99712e-08
3.68471e-05
4.32399e-08
3.68488e-05
4.64935e-08
3.6851e-05
5.0023e-08
3.6853e-05
5.33166e-08
3.68561e-05
5.705e-08
3.68586e-05
6.08987e-08
3.68618e-05
6.4402e-08
3.68652e-05
6.80235e-08
3.68684e-05
7.22101e-08
3.68724e-05
7.46692e-08
3.68761e-05
7.94754e-08
3.68804e-05
8.08318e-08
3.68846e-05
8.524e-08
3.68891e-05
8.61641e-08
3.68936e-05
8.92328e-08
3.68978e-05
8.97393e-08
3.69021e-05
9.11968e-08
3.69063e-05
9.13229e-08
3.69102e-05
9.28953e-08
3.69143e-05
9.18626e-08
3.69179e-05
9.4415e-08
3.69211e-05
9.26164e-08
3.69251e-05
9.56325e-08
3.69275e-05
9.48827e-08
3.6931e-05
9.66182e-08
3.69347e-05
9.80836e-08
3.69367e-05
1.0278e-07
3.69418e-05
1.00805e-07
3.69443e-05
1.10597e-07
3.69452e-05
1.02997e-07
3.6953e-05
1.10666e-07
3.69571e-05
1.17864e-07
3.69577e-05
1.18467e-07
3.69638e-05
1.0735e-07
3.69718e-05
1.23599e-07
3.69742e-05
1.14467e-07
3.6979e-05
1.13815e-07
3.69857e-05
1.00704e-07
3.69899e-05
1.05977e-07
3.69921e-05
8.55809e-08
3.69959e-05
7.82612e-08
3.69976e-05
6.36964e-08
3.69987e-05
5.0984e-08
3.69987e-05
3.69732e-08
3.69964e-05
2.17127e-08
3.69947e-05
8.90817e-09
3.69916e-05
-8.51801e-09
3.69878e-05
-7.41742e-09
3.69825e-05
-2.85031e-08
3.69781e-05
-1.78745e-08
3.69722e-05
-3.5442e-08
3.69673e-05
-1.98364e-08
3.69613e-05
-3.26003e-08
3.69561e-05
-8.49886e-09
3.69505e-05
-1.63289e-08
3.69474e-05
1.72511e-08
3.69441e-05
2.12597e-08
3.69431e-05
5.98955e-08
3.69434e-05
6.78813e-08
3.69447e-05
9.15522e-08
3.69476e-05
1.10235e-07
3.69506e-05
1.21275e-07
3.69552e-05
1.45102e-07
3.69599e-05
1.49532e-07
3.69657e-05
1.72299e-07
3.6971e-05
1.69794e-07
3.69765e-05
1.8711e-07
3.69812e-05
1.77938e-07
3.69863e-05
1.92243e-07
3.69907e-05
1.87321e-07
3.69957e-05
2.02168e-07
3.69993e-05
1.84561e-07
3.70038e-05
1.96975e-07
3.70084e-05
1.84917e-07
3.7015e-05
2.05445e-07
3.70202e-05
1.71037e-07
3.70265e-05
1.77958e-07
3.70312e-05
1.42078e-07
3.70323e-05
1.02436e-07
3.70342e-05
9.21641e-08
3.28794e-08
3.86039e-05
-3.03223e-08
3.86088e-05
-3.12215e-08
3.86129e-05
-2.84701e-08
3.86152e-05
-2.51221e-08
3.86154e-05
-1.86464e-08
3.86141e-05
-1.42481e-08
3.86131e-05
-8.28459e-09
3.86121e-05
-3.63572e-09
3.86112e-05
2.7144e-09
3.86096e-05
7.46153e-09
3.8608e-05
1.29475e-08
3.86064e-05
1.64889e-08
3.86049e-05
2.09905e-08
3.86039e-05
2.37247e-08
3.86032e-05
2.75123e-08
3.8603e-05
2.98464e-08
3.86031e-05
3.33841e-08
3.86038e-05
3.57852e-08
3.86045e-05
3.92333e-08
3.8606e-05
4.17397e-08
3.86075e-05
4.50312e-08
3.86096e-05
4.78665e-08
3.86118e-05
5.11642e-08
3.86144e-05
5.44336e-08
3.86175e-05
5.78448e-08
3.86203e-05
6.15536e-08
3.8624e-05
6.43026e-08
3.86273e-05
6.89261e-08
3.86312e-05
7.08048e-08
3.86352e-05
7.54498e-08
3.86393e-05
7.67813e-08
3.8644e-05
8.05471e-08
3.86481e-05
8.19692e-08
3.8653e-05
8.43538e-08
3.86574e-05
8.53417e-08
3.86617e-05
8.69649e-08
3.86664e-05
8.66156e-08
3.86703e-05
8.89538e-08
3.86747e-05
8.74591e-08
3.86789e-05
9.02402e-08
3.86822e-05
8.92966e-08
3.86866e-05
9.12577e-08
3.86896e-05
9.18717e-08
3.86928e-05
9.34498e-08
3.8697e-05
9.37977e-08
3.86995e-05
1.00359e-07
3.87036e-05
9.66681e-08
3.87083e-05
1.05854e-07
3.87095e-05
1.01809e-07
3.87154e-05
1.04806e-07
3.87225e-05
1.10798e-07
3.87242e-05
1.16688e-07
3.87277e-05
1.03894e-07
3.87368e-05
1.14503e-07
3.87405e-05
1.10737e-07
3.87438e-05
1.10527e-07
3.87505e-05
9.40095e-08
3.87555e-05
1.00962e-07
3.87576e-05
8.34468e-08
3.87614e-05
7.44721e-08
3.87634e-05
6.1761e-08
3.87646e-05
4.97224e-08
3.87652e-05
3.64477e-08
3.87628e-05
2.40874e-08
3.87609e-05
1.07456e-08
3.87581e-05
-5.64381e-09
3.87544e-05
-3.75754e-09
3.87491e-05
-2.31825e-08
3.8745e-05
-1.37651e-08
3.87392e-05
-2.96878e-08
3.87344e-05
-1.50022e-08
3.87285e-05
-2.66979e-08
3.87233e-05
-3.35264e-09
3.87177e-05
-1.07032e-08
3.8714e-05
2.1006e-08
3.87103e-05
2.49373e-08
3.87087e-05
6.14916e-08
3.87083e-05
6.82718e-08
3.87092e-05
9.06604e-08
3.87115e-05
1.07892e-07
3.87142e-05
1.18637e-07
3.87185e-05
1.40778e-07
3.8723e-05
1.4503e-07
3.87289e-05
1.66439e-07
3.87344e-05
1.64206e-07
3.87406e-05
1.80981e-07
3.87458e-05
1.72669e-07
3.87515e-05
1.86627e-07
3.87563e-05
1.82453e-07
3.87618e-05
1.96706e-07
3.87657e-05
1.8065e-07
3.87704e-05
1.92292e-07
3.87752e-05
1.80085e-07
3.87822e-05
1.9849e-07
3.87878e-05
1.65461e-07
3.87942e-05
1.71467e-07
3.87994e-05
1.36947e-07
3.88009e-05
1.00919e-07
3.88029e-05
9.01471e-08
3.50287e-08
4.05163e-05
-1.54286e-08
4.05004e-05
-1.52423e-08
4.04857e-05
-1.38262e-08
4.04749e-05
-1.43121e-08
4.04681e-05
-1.18131e-08
4.04633e-05
-9.50124e-09
4.04598e-05
-4.8045e-09
4.04569e-05
-6.59045e-10
4.04556e-05
4.01541e-09
4.04554e-05
7.65838e-09
4.04552e-05
1.3159e-08
4.04551e-05
1.65491e-08
4.04546e-05
2.15114e-08
4.04541e-05
2.41556e-08
4.04533e-05
2.84004e-08
4.04526e-05
3.04906e-08
4.04521e-05
3.38771e-08
4.0452e-05
3.58716e-08
4.04524e-05
3.88528e-08
4.04529e-05
4.12598e-08
4.04541e-05
4.38459e-08
4.04552e-05
4.67567e-08
4.04572e-05
4.91123e-08
4.04591e-05
5.25994e-08
4.04619e-05
5.5064e-08
4.04645e-05
5.89272e-08
4.04675e-05
6.12942e-08
4.04711e-05
6.53069e-08
4.04742e-05
6.77343e-08
4.04787e-05
7.09657e-08
4.04823e-05
7.31184e-08
4.04873e-05
7.56069e-08
4.04917e-05
7.75765e-08
4.04963e-05
7.96988e-08
4.05015e-05
8.01708e-08
4.05054e-05
8.30948e-08
4.05105e-05
8.1429e-08
4.05146e-05
8.49181e-08
4.05188e-05
8.32188e-08
4.05235e-05
8.55551e-08
4.05267e-05
8.6111e-08
4.05313e-05
8.66279e-08
4.05348e-05
8.83748e-08
4.05382e-05
9.00697e-08
4.05428e-05
8.92263e-08
4.05464e-05
9.67069e-08
4.05503e-05
9.28321e-08
4.05556e-05
1.00535e-07
4.05584e-05
9.8935e-08
4.05623e-05
1.00973e-07
4.057e-05
1.03094e-07
4.0575e-05
1.11644e-07
4.0577e-05
1.01963e-07
4.05859e-05
1.05583e-07
4.05926e-05
1.04008e-07
4.05959e-05
1.07222e-07
4.06023e-05
8.76525e-08
4.06087e-05
9.44775e-08
4.06111e-05
8.10518e-08
4.06149e-05
7.07299e-08
4.0617e-05
5.96572e-08
4.06178e-05
4.89017e-08
4.06188e-05
3.54751e-08
4.06165e-05
2.63741e-08
4.06138e-05
1.34808e-08
4.06106e-05
-2.52457e-09
4.06066e-05
2.61874e-10
4.06006e-05
-1.72052e-08
4.05958e-05
-8.95708e-09
4.05895e-05
-2.33032e-08
4.05839e-05
-9.40046e-09
4.05773e-05
-2.01357e-08
4.05715e-05
2.46927e-09
4.05649e-05
-4.11759e-09
4.05609e-05
2.50016e-08
4.05571e-05
2.87533e-08
4.05558e-05
6.2783e-08
4.05553e-05
6.87813e-08
4.05561e-05
8.98625e-08
4.05584e-05
1.05566e-07
4.05609e-05
1.16156e-07
4.05653e-05
1.36351e-07
4.05698e-05
1.40531e-07
4.0576e-05
1.6029e-07
4.05817e-05
1.5845e-07
4.05882e-05
1.74472e-07
4.05936e-05
1.67246e-07
4.05997e-05
1.80597e-07
4.06052e-05
1.76943e-07
4.06116e-05
1.90323e-07
4.06164e-05
1.75784e-07
4.06219e-05
1.86813e-07
4.06276e-05
1.74382e-07
4.06354e-05
1.90659e-07
4.06415e-05
1.59374e-07
4.06487e-05
1.6425e-07
4.06542e-05
1.31496e-07
4.06558e-05
9.93213e-08
4.06579e-05
8.80299e-08
3.7537e-08
4.23907e-05
-2.48474e-08
4.24006e-05
-2.51072e-08
4.24091e-05
-2.23783e-08
4.24138e-05
-1.89955e-08
4.24149e-05
-1.28783e-08
4.24143e-05
-8.91621e-09
4.24125e-05
-3.01577e-09
4.24107e-05
1.12927e-09
4.24064e-05
8.29597e-09
4.2402e-05
1.21096e-08
4.23973e-05
1.77872e-08
4.23934e-05
2.04821e-08
4.23901e-05
2.48129e-08
4.23876e-05
2.66642e-08
4.23861e-05
2.99136e-08
4.23849e-05
3.16938e-08
4.23846e-05
3.41855e-08
4.23841e-05
3.63198e-08
4.23846e-05
3.83976e-08
4.23848e-05
4.1056e-08
4.23857e-05
4.29325e-08
4.23866e-05
4.57947e-08
4.23881e-05
4.77081e-08
4.239e-05
5.06665e-08
4.2392e-05
5.3091e-08
4.2395e-05
5.58983e-08
4.23975e-05
5.87393e-08
4.24015e-05
6.13013e-08
4.24049e-05
6.44095e-08
4.24092e-05
6.65997e-08
4.24136e-05
6.87909e-08
4.24179e-05
7.12579e-08
4.24232e-05
7.23346e-08
4.24273e-05
7.5541e-08
4.24329e-05
7.45935e-08
4.24372e-05
7.88093e-08
4.24419e-05
7.66786e-08
4.2447e-05
7.98582e-08
4.24507e-05
7.94757e-08
4.24561e-05
8.01683e-08
4.24597e-05
8.24815e-08
4.24642e-05
8.21426e-08
4.24687e-05
8.39352e-08
4.24719e-05
8.68065e-08
4.24766e-05
8.45312e-08
4.24809e-05
9.24288e-08
4.24849e-05
8.88196e-08
4.24902e-05
9.52323e-08
4.24946e-05
9.45776e-08
4.24984e-05
9.71088e-08
4.25047e-05
9.68583e-08
4.25121e-05
1.04262e-07
4.25145e-05
9.95629e-08
4.25201e-05
9.991e-08
4.25282e-05
9.59557e-08
4.25321e-05
1.03338e-07
4.25362e-05
8.35465e-08
4.25432e-05
8.74153e-08
4.25463e-05
7.80352e-08
4.25495e-05
6.75284e-08
4.25521e-05
5.70192e-08
4.25527e-05
4.82757e-08
4.2554e-05
3.42025e-08
4.25528e-05
2.75773e-08
4.25498e-05
1.64705e-08
4.2547e-05
3.06544e-10
4.25439e-05
3.30276e-09
4.25384e-05
-1.16419e-08
4.25341e-05
-4.64988e-09
4.25282e-05
-1.74848e-08
4.25232e-05
-4.35174e-09
4.25174e-05
-1.43215e-08
4.25122e-05
7.6566e-09
4.2506e-05
2.03158e-09
4.25015e-05
2.95669e-08
4.24974e-05
3.28372e-08
4.24955e-05
6.46465e-08
4.24941e-05
7.01965e-08
4.24941e-05
8.98382e-08
4.24956e-05
1.04089e-07
4.24977e-05
1.14098e-07
4.25016e-05
1.32427e-07
4.25058e-05
1.36338e-07
4.25118e-05
1.54317e-07
4.25177e-05
1.52523e-07
4.25247e-05
1.67492e-07
4.25306e-05
1.61326e-07
4.25372e-05
1.74014e-07
4.2543e-05
1.71116e-07
4.25498e-05
1.83542e-07
4.25547e-05
1.7084e-07
4.25603e-05
1.81279e-07
4.2566e-05
1.68642e-07
4.25737e-05
1.82941e-07
4.25801e-05
1.52977e-07
4.25872e-05
1.57144e-07
4.2593e-05
1.25677e-07
4.25951e-05
9.729e-08
4.25973e-05
8.57593e-08
3.95989e-08
4.44876e-05
-1.47124e-08
4.44774e-05
-1.49866e-08
4.44677e-05
-1.25962e-08
4.44595e-05
-1.07978e-08
4.44527e-05
-6.08173e-09
4.44464e-05
-2.68259e-09
4.444e-05
3.41228e-09
4.44339e-05
7.23893e-09
4.44293e-05
1.28561e-08
4.44254e-05
1.60781e-08
4.44225e-05
2.07046e-08
4.44198e-05
2.31826e-08
4.44178e-05
2.67477e-08
4.44157e-05
2.87443e-08
4.44143e-05
3.13742e-08
4.44127e-05
3.33138e-08
4.44115e-05
3.53132e-08
4.44105e-05
3.73245e-08
4.44099e-05
3.90391e-08
4.44097e-05
4.11972e-08
4.44096e-05
4.30446e-08
4.44103e-05
4.50899e-08
4.44109e-05
4.71424e-08
4.44125e-05
4.90267e-08
4.44141e-05
5.14892e-08
4.44167e-05
5.33015e-08
4.44196e-05
5.59216e-08
4.44229e-05
5.79257e-08
4.4427e-05
6.03625e-08
4.44308e-05
6.27964e-08
4.44356e-05
6.40014e-08
4.44398e-05
6.70571e-08
4.4445e-05
6.71234e-08
4.44498e-05
7.07267e-08
4.44547e-05
6.97183e-08
4.44602e-05
7.32484e-08
4.44643e-05
7.25631e-08
4.447e-05
7.42025e-08
4.44741e-05
7.54099e-08
4.44789e-05
7.53316e-08
4.44838e-05
7.75917e-08
4.44875e-05
7.83964e-08
4.44928e-05
7.863e-08
4.44966e-05
8.30649e-08
4.45011e-05
8.00645e-08
4.45063e-05
8.7187e-08
4.45103e-05
8.47999e-08
4.45159e-05
8.96761e-08
4.45206e-05
8.98527e-08
4.45255e-05
9.22105e-08
4.45308e-05
9.15854e-08
4.45386e-05
9.64672e-08
4.45441e-05
9.40609e-08
4.45484e-05
9.56002e-08
4.45565e-05
8.77956e-08
4.45636e-05
9.62762e-08
4.45667e-05
8.04937e-08
4.45738e-05
8.02296e-08
4.45785e-05
7.33574e-08
4.45813e-05
6.47012e-08
4.45843e-05
5.40277e-08
4.45849e-05
4.77491e-08
4.45855e-05
3.35698e-08
4.45853e-05
2.77858e-08
4.4582e-05
1.9751e-08
4.45778e-05
4.53246e-09
4.45745e-05
6.62772e-09
4.45688e-05
-5.99983e-09
4.45636e-05
5.25852e-10
4.45574e-05
-1.12397e-08
4.45514e-05
1.5966e-09
4.45447e-05
-7.55649e-09
4.45392e-05
1.31566e-08
4.45321e-05
9.12627e-09
4.4527e-05
3.46633e-08
4.45227e-05
3.71486e-08
4.45212e-05
6.6141e-08
4.45196e-05
7.17361e-08
4.45196e-05
8.98496e-08
4.45212e-05
1.02562e-07
4.45231e-05
1.12166e-07
4.45272e-05
1.2828e-07
4.45314e-05
1.32154e-07
4.45377e-05
1.48016e-07
4.4544e-05
1.46243e-07
4.45514e-05
1.6005e-07
4.45576e-05
1.55193e-07
4.45645e-05
1.67059e-07
4.4571e-05
1.64691e-07
4.45785e-05
1.75979e-07
4.45843e-05
1.65103e-07
4.45905e-05
1.75073e-07
4.45969e-05
1.622e-07
4.46056e-05
1.74261e-07
4.46124e-05
1.4619e-07
4.46201e-05
1.49368e-07
4.46264e-05
1.19462e-07
4.46285e-05
9.51251e-08
4.4631e-05
8.33161e-08
4.19056e-08
4.66517e-05
4.66423e-05
4.66306e-05
4.66182e-05
4.66062e-05
4.65947e-05
4.65849e-05
4.65767e-05
4.657e-05
4.65643e-05
4.65596e-05
4.6555e-05
4.65509e-05
4.65468e-05
4.6543e-05
4.65395e-05
4.65364e-05
4.65338e-05
4.65319e-05
4.6531e-05
4.65305e-05
4.65309e-05
4.65317e-05
4.65332e-05
4.65352e-05
4.65377e-05
4.65408e-05
4.65441e-05
4.65483e-05
4.65522e-05
4.65567e-05
4.65612e-05
4.6566e-05
4.65711e-05
4.65757e-05
4.65815e-05
4.65859e-05
4.65913e-05
4.65962e-05
4.66007e-05
4.66063e-05
4.66103e-05
4.66156e-05
4.66202e-05
4.66245e-05
4.66304e-05
4.66346e-05
4.66405e-05
4.66456e-05
4.66506e-05
4.6656e-05
4.66624e-05
4.66687e-05
4.66724e-05
4.66784e-05
4.66861e-05
4.66884e-05
4.66945e-05
4.67001e-05
4.67025e-05
4.67058e-05
4.67068e-05
4.67068e-05
4.67079e-05
4.67061e-05
4.67025e-05
4.67002e-05
4.6696e-05
4.66921e-05
4.66868e-05
4.66821e-05
4.66767e-05
4.66721e-05
4.66662e-05
4.66607e-05
4.66559e-05
4.66535e-05
4.66509e-05
4.66496e-05
4.665e-05
4.66511e-05
4.66545e-05
4.66582e-05
4.66639e-05
4.66701e-05
4.66777e-05
4.66843e-05
4.66918e-05
4.66984e-05
4.6706e-05
4.67117e-05
4.67178e-05
4.67241e-05
4.67322e-05
4.67393e-05
4.67468e-05
4.67534e-05
4.67563e-05
4.67591e-05
)
;
boundaryField
{
zeroGradientPlanes
{
type calculated;
value nonuniform List<scalar>
220
(
1.27406e-06
-9.74746e-07
-6.58143e-07
-1.11882e-06
3.07859e-06
2.24605e-06
9.42867e-07
-8.39041e-07
-4.53847e-07
-6.82548e-07
2.90336e-07
4.97195e-07
1.30674e-06
1.0643e-06
5.48648e-07
3.33837e-07
-2.47087e-07
-2.0231e-07
-2.70257e-07
-2.44753e-07
3.30021e-08
1.05651e-07
1.89074e-07
2.84332e-07
3.9226e-07
5.13462e-07
6.48279e-07
7.96698e-07
9.58207e-07
1.13158e-06
1.31465e-06
1.50418e-06
1.69593e-06
1.88523e-06
2.0678e-06
2.24076e-06
2.40313e-06
2.55585e-06
2.70118e-06
2.84205e-06
2.9815e-06
3.12236e-06
3.26705e-06
3.41762e-06
3.5756e-06
3.74211e-06
3.91781e-06
4.10305e-06
4.29799e-06
4.5028e-06
4.71769e-06
4.94305e-06
5.17934e-06
5.42711e-06
5.68692e-06
5.95936e-06
6.24503e-06
6.54455e-06
6.85857e-06
7.18773e-06
7.53276e-06
7.8944e-06
8.27343e-06
8.67068e-06
9.08703e-06
9.52341e-06
9.98076e-06
1.04601e-05
1.09624e-05
1.14889e-05
1.20407e-05
1.26189e-05
1.32248e-05
1.38598e-05
1.45252e-05
1.52224e-05
1.59529e-05
1.67184e-05
1.75204e-05
1.83606e-05
1.92411e-05
2.01635e-05
2.11299e-05
2.21425e-05
2.32034e-05
2.4315e-05
2.54795e-05
2.66996e-05
2.79778e-05
2.9317e-05
3.07199e-05
3.21896e-05
3.37294e-05
3.5342e-05
3.70318e-05
3.88008e-05
4.06554e-05
4.25953e-05
4.46287e-05
4.67578e-05
-6.3303e-09
1.0127e-09
-1.09096e-08
-1.47035e-08
-1.66096e-08
-2.29724e-08
-2.17527e-08
-2.59556e-08
-2.34885e-08
-2.89287e-08
-2.42597e-08
-3.02422e-08
-2.63521e-08
-2.81399e-08
-2.47038e-08
-2.49561e-08
-2.20645e-08
-2.05705e-08
-1.56186e-08
-1.2622e-08
-7.68543e-09
-5.56388e-09
-9.11025e-10
1.57726e-09
5.98252e-09
8.80716e-09
1.31852e-08
1.54848e-08
1.94746e-08
2.17838e-08
2.54751e-08
2.77289e-08
3.08944e-08
3.28507e-08
3.51135e-08
3.68008e-08
3.84967e-08
3.98335e-08
4.1017e-08
4.20846e-08
4.35464e-08
4.4639e-08
4.63822e-08
4.75094e-08
4.947e-08
5.08782e-08
5.27595e-08
5.4674e-08
5.61295e-08
5.88967e-08
5.94558e-08
6.2584e-08
6.23864e-08
6.55496e-08
6.51536e-08
6.7476e-08
6.81302e-08
6.88177e-08
7.04623e-08
7.08414e-08
7.20194e-08
7.43755e-08
7.33454e-08
7.84696e-08
7.58036e-08
8.12903e-08
8.0531e-08
8.37783e-08
8.48181e-08
8.71644e-08
8.62108e-08
9.00716e-08
8.77591e-08
9.18724e-08
8.17778e-08
8.86394e-08
7.81041e-08
7.41906e-08
6.77148e-08
6.23074e-08
5.07766e-08
4.66837e-08
3.35568e-08
2.67364e-08
2.15737e-08
8.14182e-09
8.91473e-09
-1.83125e-09
4.42824e-09
-5.90508e-09
6.25403e-09
-2.1468e-09
1.77646e-08
1.50452e-08
4.01008e-08
4.19627e-08
6.85696e-08
7.43635e-08
9.10905e-08
1.02179e-07
1.11039e-07
1.24948e-07
1.28389e-07
1.42341e-07
1.40078e-07
1.52401e-07
1.48601e-07
1.59564e-07
1.58097e-07
1.68384e-07
1.59406e-07
1.68943e-07
1.55892e-07
1.66177e-07
1.39125e-07
1.41875e-07
1.12876e-07
9.21912e-08
8.0487e-08
4.32777e-08
)
;
}
inlet
{
type calculated;
value nonuniform List<scalar>
80
(
-1.16841e-06
-1.22426e-06
-1.28278e-06
-1.3441e-06
-1.40835e-06
-1.47568e-06
-1.54622e-06
-1.62013e-06
-1.69757e-06
-1.77872e-06
-1.86375e-06
-1.95284e-06
-2.04619e-06
-2.144e-06
-2.24649e-06
-2.35388e-06
-2.4664e-06
-2.58429e-06
-2.70783e-06
-2.83727e-06
-2.9729e-06
-3.11501e-06
-3.26391e-06
-3.41993e-06
-3.58341e-06
-3.75471e-06
-3.93419e-06
-4.12225e-06
-4.3193e-06
-4.52577e-06
-4.74211e-06
-4.9688e-06
-5.20632e-06
-5.45519e-06
-5.71596e-06
-5.98919e-06
-6.27549e-06
-6.57547e-06
-6.88979e-06
-7.21914e-06
-7.56423e-06
-7.92581e-06
-8.30468e-06
-8.70166e-06
-9.11762e-06
-9.55346e-06
-1.00101e-05
-1.04886e-05
-1.099e-05
-1.15154e-05
-1.20658e-05
-1.26426e-05
-1.32469e-05
-1.38802e-05
-1.45437e-05
-1.52389e-05
-1.59673e-05
-1.67306e-05
-1.75304e-05
-1.83683e-05
-1.92464e-05
-2.01664e-05
-2.11304e-05
-2.21405e-05
-2.31988e-05
-2.43078e-05
-2.54698e-05
-2.66873e-05
-2.7963e-05
-2.92997e-05
-3.07002e-05
-3.21678e-05
-3.37055e-05
-3.53166e-05
-3.70049e-05
-3.87738e-05
-4.06272e-05
-4.25693e-05
-4.46042e-05
-4.67364e-05
)
;
}
plate
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
value nonuniform 0();
}
}
// ************************************************************************* //
| [
"savasah@itu.edu.tr"
] | savasah@itu.edu.tr | |
3ba4547878d393df080be41ac3ec05f90eb9a730 | a4dc28805210a7aa505e32f0288a9d4abb37677c | /Timus/dinner.cpp | 1d9d64d5aa2d5dc8d5a09490dcf5c48491e210a6 | [] | no_license | hunterxtang/CodeLand | b79ea43458af2e4581c8957ec98a37dec7089fa4 | 810c588316b50bbc8adc469e1ba59bce2afa718d | refs/heads/master | 2020-04-14T09:02:07.466777 | 2019-05-11T18:08:31 | 2019-05-11T18:08:31 | 163,750,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | cpp | #include <iostream>
using namespace::std;
int main()
{
int amount;
cin>>amount;
string *people = new string[amount];
for(int i=0; i<amount; i++) {
cin>>people[i];
}
int nums = amount;
for(int i=0; i<amount; i++) {
int len = people[i].length();
string name = people[i];
if(name[len-1] == 'e' && name[len-2] == 'n' && name[len-3] == 'o' && name[len-4] == '+') {
nums++;
}
}
int n = nums*100+200;
if(n == 1300) {
cout<<nums*100+300<<endl;
}
else
cout<<n<<endl;
}
| [
"HunterTang@hatangs-air.attlocal.net"
] | HunterTang@hatangs-air.attlocal.net |
358f567b0f523a05815d8def6f3d8d787fc967a9 | 268c3438e117532deac23ffc84e8d8865c328e0f | /code/10827_MaximumSumOnATorus.cpp | 58676acf1ba2d26217fa4c36c4338d9bd2577a8e | [] | no_license | ionan/uva-oj | 0f4fe64be5fedcb31363b5ba4b4c57c0ba0df994 | ffacad1510d156a1a20dd5348fadc136da17b0cb | refs/heads/master | 2021-01-02T09:26:34.053911 | 2020-03-28T10:25:21 | 2020-03-28T10:25:21 | 6,087,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,519 | cpp | #include <cstdio>
#include <climits>
#include <algorithm>
using namespace std;
int main(){
int testCases, N;
scanf("%d", &testCases);
int A[150][150];
while(testCases--){
scanf("%d", &N);
for (int row = 0; row < N; row++){
for (int column = 0; column < N; column++){
scanf("%d", &A[row][column]);
A[row][column + N] = A[row + N][column] = A[row + N][column + N] = A[row][column];
}
}
for (int row = 0; row < 2 * N; row++){
for (int column = 0; column < 2 * N; column++){
int sum = A[row][column];
if (row > 0){
sum += A[row - 1][column];
}
if (column > 0){
sum += A[row][column - 1];
}
if (row > 0 && column > 0){
sum -= A[row - 1][column - 1];
}
A[row][column] = sum;
}
}
int maxResult = INT_MIN;
int sum;
for (int i = 0; i < 2 * N; i++){
for (int j = 0; j < 2 * N; j++){
for (int k = i; k - i < N && k < 2 * N; k++){
for (int l = j; l - j < N && l < 2 * N; l++){
sum = A[k][l];
if (i > 0){
sum -= A[i - 1][l];
}
if (j > 0){
sum -= A[k][j - 1];
}
if (i > 0 && j > 0){
sum += A[i - 1][j - 1];
}
if (sum >= maxResult){
maxResult = sum;
}
}
}
}
}
printf("%d\n", maxResult);
}
return 0;
}
| [
"ionander@arima.eu"
] | ionander@arima.eu |
38202b4830b8e81c38264b18e4d9c73293d111cc | e5775e415f74a1b20d277d338853f06397e45da7 | /exercises/chapter_11/sieve.cpp | f2be5835b202cc885374adffc325a453117e3849 | [] | no_license | jigjnasu/codility | b091649e1228de84040202619762ca9095e78e25 | 0950c30aa79df1b890319d0cb8e595e02899333c | refs/heads/master | 2023-04-18T15:28:23.580487 | 2021-05-04T16:30:00 | 2021-05-04T16:30:00 | 124,993,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | /*
https://app.codility.com/programmers
Chapter 11 Sieve of Eratosthenes
Solution by Rakesh Kumar, cpp.rakesh(at)gmail.com
Date: 25/03/2018
*/
#include <bits/stdc++.h>
using namespace std;
vector<int> sieve(int n) {
vector<bool> p(n + 1, true);
for (size_t i = 2; i < p.size(); ++i)
if (p[i])
for (size_t j = 2 * i; j < p.size(); j += i)
p[j] = false;
vector<int> primes;
for (size_t i = 2; i < p.size(); ++i)
if (p[i])
primes.push_back(i);
return primes;
}
void print(const vector<int>& p) {
printf("----------------------------------------------------\n");
for (size_t i = 0; i < p.size(); ++i)
printf("%d ", p[i]);
printf("\n----------------------------------------------------\n");
}
int main() {
const vector<int> p = sieve(100);
print(p);
return 0;
}
| [
"cpp.rakesh@gmail.com"
] | cpp.rakesh@gmail.com |
d13acc42673aedddfd142be1a5bc2b6619af6bb2 | 64178ab5958c36c4582e69b6689359f169dc6f0d | /vscode/wg/sdk/UMovieSceneColorTrack.hpp | 1cc161a065bbdf4ab36b1cf804883275b86db5f2 | [] | no_license | c-ber/cber | 47bc1362f180c9e8f0638e40bf716d8ec582e074 | 3cb5c85abd8a6be09e0283d136c87761925072de | refs/heads/master | 2023-06-07T20:07:44.813723 | 2023-02-28T07:43:29 | 2023-02-28T07:43:29 | 40,457,301 | 5 | 5 | null | 2023-05-30T19:14:51 | 2015-08-10T01:37:22 | C++ | UTF-8 | C++ | false | false | 1,441 | hpp | #pragma once
#include "UMovieScenePropertyTrack.hpp"
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif
namespace PUBGSDK {
struct alignas(1) UMovieSceneColorTrack // Size: 0xF0
: public UMovieScenePropertyTrack // Size: 0xE0
{
private:
typedef UMovieSceneColorTrack t_struct;
typedef ExternalPtr<t_struct> t_structHelper;
public:
static ExternalPtr<struct UClass> StaticClass()
{
static ExternalPtr<struct UClass> ptr;
if(!ptr) ptr = UObject::FindClassFast(124); // id32("Class MovieSceneTracks.MovieSceneColorTrack")
return ptr;
}
uint8_t boolFieldE0;
uint8_t UnknownDataE1[0xF];
inline bool bIsSlateColor()
{
return boolFieldE0& 0x1;
}
inline bool SetbIsSlateColor(t_structHelper inst, bool value)
{
auto curVal = *reinterpret_cast<uint8_t*>(&value);
inst.WriteOffset(0xE0, (uint8_t)(value ? curVal | (uint8_t)1 : curVal & ~(uint8_t)1));
}
};
#ifdef VALIDATE_SDK
namespace Validation{
auto constexpr sizeofUMovieSceneColorTrack = sizeof(UMovieSceneColorTrack); // 240
static_assert(sizeof(UMovieSceneColorTrack) == 0xF0, "Size of UMovieSceneColorTrack is not correct.");
auto constexpr UMovieSceneColorTrack_boolFieldE0_Offset = offsetof(UMovieSceneColorTrack, boolFieldE0);
static_assert(UMovieSceneColorTrack_boolFieldE0_Offset == 0xe0, "UMovieSceneColorTrack::boolFieldE0 offset is not e0");
}
#endif
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"1395329153@qq.com"
] | 1395329153@qq.com |
d45822a9245b31af212426f7ff45c9087ed8aaab | 7a23875e9ef14d1a5b8c312636e83d711b0f23c3 | /C++/111. Minimum Depth of Binary Tree/Minimum Depth of Binary Tree.cpp | 763193cd4374a2b01cf7db205321943a9e7fbe29 | [] | no_license | hanzhengbo/LeetCode | 0fd9a1275acc37fffa5470ee9019bc69d1c6d552 | 414d090ffa898516f9db2d39c90da8fc27e197f7 | refs/heads/master | 2020-03-07T09:41:23.860938 | 2018-05-17T15:19:03 | 2018-05-17T15:19:03 | 127,413,833 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | //
// Created by 韩正博 on 18/4/17.
//
#include "../header.h"
class Solution {
public:
int minDepth(TreeNode *root) {
int min = INT_MAX;
int count = 0; // 判断是否只有一个节点
int temp = 0; // 作为递归的变量
if (root == NULL)
return 0;
if (root->left) {
count = 1;
temp = 1 + minDepth(root->left);
if (temp < min)
min = temp;
}
if (root->right) {
count = 1;
temp = 1 + minDepth(root->right);
if (temp < min)
min = temp;
}
if (count == 0)
min = 1;
return min;
}
};
| [
"806850270@qq.com"
] | 806850270@qq.com |
a6d49c0fda215e84f219e32a2391eda5dbf069e8 | ce2f81680150e90a5e335838719621fd48ab162f | /src/VideoSporas.cpp | edc43ac48f03fde70bc975d5e7edc1d3e316b1ed | [] | no_license | jaranega/RammsyAVShow | 148448c2935a60b4674026743a9600a5c6af6253 | 2211dff2d9d3f6224bdd692746eaebf8fa19945d | refs/heads/master | 2021-01-18T20:29:53.074248 | 2015-03-26T18:49:04 | 2015-03-26T18:49:04 | 32,942,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,771 | cpp | //
// VideoSporas.cpp
// RammsyAVShow
//
// Created by Aranega, Javier (BCN-LOH) on 06/03/15.
//
//
#include "VideoSporas.h"
//--------------------------------------------------------------
void VideoSporas::setup(){
video.loadMovie( "spores-growing-1.mp4" );
//video2.loadMovie("spores-growing-3.mp4");
//video.play();
//Fill the table by random values from 0 to 255
for ( int i=0; i<24; i++ ) {
table[i] = ofRandom( 0, 255 );
}
}
void VideoSporas::init(){
video.setFrame(0);
video.play();
//video.setFrame(0);
//video.play();
}
void VideoSporas::stop(){
video.stop();
}
//--------------------------------------------------------------
void VideoSporas::update(float scaledVol){
video.update(); //Decode the new frame if needed
//video2.update();
//Do computing only if a new frame was obtained
if ( video.isFrameNew() ) {
//Getting pixels
ofPixels pixels = video.getPixelsRef();
//Scan all the pixels
for (int y=0; y<pixels.getHeight(); y++) {
for (int x=0; x<pixels.getWidth(); x++) {
//Getting pixel (x,y) color
ofColor col = pixels.getColor( x, y );
//cout << scaledVol << " < " << volFilter << endl;
if (scaledVol > volFilter)
{
if (col.r < redFilter) col.r = table[ col.r/24 ];
if (col.g < greenFilter) col.g = table[ col.g/24 ];
if (col.b < blueFilter) col.b = table[ col.b/24 ];
}
//Set the color back to the pixel (x,y)
pixels.setColor( x, y, col );
}
}
//Set pixel array to the image
image.setFromPixels( pixels );
}
/* if ( video2.isFrameNew() ) {
//Getting pixels
ofPixels pixels = video2.getPixelsRef();
//Scan all the pixels
for (int y=0; y<pixels.getHeight(); y++) {
for (int x=0; x<pixels.getWidth(); x++) {
//Getting pixel (x,y) color
ofColor col = pixels.getColor( x, y );
//cout << scaledVol << " < " << volFilter << endl;
if (scaledVol > volFilter)
{
if (col.r < redFilter) col.r = table[ col.r/24 ];
if (col.g < greenFilter) col.g = table[ col.g/24 ];
if (col.b < blueFilter) col.b = table[ col.b/24 ];
}
//Set the color back to the pixel (x,y)
pixels.setColor( x, y, col );
}
}
//Set pixel array to the image
image2.setFromPixels( pixels );
}*/
}
//--------------------------------------------------------------
void VideoSporas::draw(){
ofPushMatrix();
//ofTranslate(-ofGetWidth()/2 , -ofGetHeight()/2 );
image.width = ofGetWidth();
image.height = ofGetHeight();
image.draw(0,0);
ofPopMatrix();
}
void VideoSporas::sendControlChange(ofxMidiMessage &controlMesssage) {
switch (controlMesssage.control) {
case 10:
redFilter = controlMesssage.value * 2;
break;
case 74:
greenFilter = controlMesssage.value * 2;
break;
case 71:
blueFilter = controlMesssage.value * 2;
break;
case 76:
volFilter = ofMap( (float)controlMesssage.value , 0.0 , 127.0, 0.0, 1.0 );
break;
}
}
| [
"javi.aranega@gmail.com"
] | javi.aranega@gmail.com |
652224d4c191aa0785e573a767dafc8b44144d44 | 4b02bd8167ed8b32281b2b28bd0a8d3e60594b74 | /Images2WavefrontObj/UI/Images2WavefrontObj.cpp | 1c0f3db7123a099d4fb6db32730d4a1aff3f2cd1 | [] | no_license | haegar80/Images2WavefrontObj | 090bb8ad203f5370555d202b6e031dc9775b9f0a | 12c4c350380ae30899469f6be3d1208b11672b51 | refs/heads/master | 2022-10-24T05:17:04.934271 | 2022-10-09T14:44:04 | 2022-10-09T14:44:04 | 125,415,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,783 | cpp | #include "Images2WavefrontObj.h"
#include <QtWidgets/QApplication>
#include <QtWidgets/QDesktopWidget>
#include <QtWidgets/QWidget>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QLabel>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QFileDialog>
#include <QtWidgets/QMessageBox>
Images2WavefrontObj::Images2WavefrontObj()
{
setupUi();
}
void Images2WavefrontObj::setupUi()
{
if (this->objectName().isEmpty()) {
this->setObjectName(QString::fromUtf8("MainWindow"));
}
QRect screenGeometry = QApplication::desktop()->availableGeometry();
this->resize(screenGeometry.width(), screenGeometry.height());
this->setMinimumSize(QSize(200, 200));
m_centralwidget = new QWidget(this);
m_centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
m_imageWidget = new QWidget(m_centralwidget);
m_imageWidget->setObjectName(QString::fromUtf8("imageWidget"));
m_imageWidget->setGeometry(QRect(60, 50, screenGeometry.width() - 80, screenGeometry.height() - 100));
m_addImagesButton = new QPushButton(m_imageWidget);
m_addImagesButton->setObjectName(QString::fromUtf8("addImagesButton"));
m_addImagesButton->setGeometry(QRect(50, 30, 75, 23));
m_listImagesWidget = new QListWidget(m_imageWidget);
m_listImagesWidget->setObjectName(QString::fromUtf8("listImagesWidget"));
m_listImagesWidget->setGeometry(QRect(140, 30, 271, 131));
m_listImagesWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
m_deleteImageButton = new QPushButton(m_imageWidget);
m_deleteImageButton->setObjectName(QStringLiteral("deleteImageButton"));
m_deleteImageButton->setGeometry(QRect(50, 60, 75, 23));
m_maxScaledImageHeight = screenGeometry.height() - 320;
m_imageLabel = new QLabel(m_imageWidget);
m_imageLabel->setObjectName(QStringLiteral("imageLabel"));
m_imageLabel->setGeometry(QRect(50, 220, screenGeometry.width() - 160, m_maxScaledImageHeight));
m_imageLabel->setFrameShape(QFrame::Box);
m_imageLabel->setScaledContents(false);
m_imageLabelScrollArea = new QScrollArea(m_imageWidget);
m_imageLabelScrollArea->setGeometry(QRect(50, 220, screenGeometry.width() - 160, m_maxScaledImageHeight));
m_imageLabelScrollArea->setWidget(m_imageLabel);
m_imageLabelScrollArea->setBackgroundRole(QPalette::Dark);
m_checkBoxScaleImages = new QCheckBox(m_imageWidget);
m_checkBoxScaleImages->setObjectName(QStringLiteral("checkBoxScaleImages"));
m_checkBoxScaleImages->setGeometry(QRect(280, 180, 131, 21));
m_checkBoxScaleImages->setChecked(true);
m_loadSelectedImagesButton = new QPushButton(m_imageWidget);
m_loadSelectedImagesButton->setObjectName(QStringLiteral("loadSelectedImagesButton"));
m_loadSelectedImagesButton->setGeometry(QRect(140, 180, 121, 23));
m_generate3dModelButton = new QPushButton(m_imageWidget);
m_generate3dModelButton->setObjectName(QStringLiteral("generate3dModelButton"));
m_generate3dModelButton->setEnabled(false);
m_generate3dModelButton->setGeometry(QRect(430, 180, 111, 23));
m_quitButton = new QPushButton(m_centralwidget);
m_quitButton->setObjectName(QString::fromUtf8("quitButton"));
m_quitButton->setGeometry(QRect(20, screenGeometry.height() - 73, 75, 23));
this->setCentralWidget(m_centralwidget);
m_menubar = new QMenuBar(this);
m_menubar->setObjectName(QString::fromUtf8("menubar"));
m_menubar->setGeometry(QRect(0, 0, 800, 21));
this->setMenuBar(m_menubar);
m_statusbar = new QStatusBar(this);
m_statusbar->setObjectName(QString::fromUtf8("statusbar"));
this->setStatusBar(m_statusbar);
retranslateUi();
QObject::connect(m_addImagesButton, SIGNAL(pressed()), this, SLOT(addImagesButton_clicked()));
QObject::connect(m_deleteImageButton, SIGNAL(pressed()), this, SLOT(deleteImageButton_clicked()));
QObject::connect(m_checkBoxScaleImages, SIGNAL(clicked(bool)), this, SLOT(scaleImagesCheckBox_clicked(bool)));
QObject::connect(m_loadSelectedImagesButton, SIGNAL(pressed()), this, SLOT(loadSelectedImagesButton_clicked()));
QObject::connect(m_generate3dModelButton, SIGNAL(pressed()), this, SLOT(generate3dModelButton_clicked()));
QObject::connect(m_quitButton, SIGNAL(pressed()), this, SLOT(close()));
}
void Images2WavefrontObj::retranslateUi()
{
this->setWindowTitle(QApplication::translate("MainWindow", "Images2WavefrontObj", 0));
m_addImagesButton->setText(QApplication::translate("MainWindow", "Add Images", 0));
m_deleteImageButton->setText(QApplication::translate("MainWindow", "Delete Image", 0));
m_imageLabel->setText(QString());
m_checkBoxScaleImages->setText(QApplication::translate("MainWindow", "Scale Displayed Images", nullptr));
m_loadSelectedImagesButton->setText(QApplication::translate("MainWindow", "Load Selected Images", nullptr));
m_generate3dModelButton->setText(QApplication::translate("MainWindow", "Generate 3d model", nullptr));
m_quitButton->setText(QApplication::translate("MainWindow", "Quit", 0));
}
void Images2WavefrontObj::addImagesButton_clicked()
{
QStringList openFileNames = QFileDialog::getOpenFileNames(this, "Images", "", "Images Files (*.png *.bmp *.jpg *.raw)");
m_listImagesWidget->addItems(openFileNames);
}
void Images2WavefrontObj::deleteImageButton_clicked()
{
QList<QListWidgetItem*> items = m_listImagesWidget->selectedItems();
for(QListWidgetItem* item : items)
{
delete m_listImagesWidget->takeItem(m_listImagesWidget->row(item));
}
}
void Images2WavefrontObj::scaleImagesCheckBox_clicked(bool p_isChecked)
{
m_isScaleImagesChecked = p_isChecked;
LoadImage();
}
void Images2WavefrontObj::loadSelectedImagesButton_clicked()
{
LoadImage();
}
void Images2WavefrontObj::generate3dModelButton_clicked()
{
Generate3dModel();
}
void Images2WavefrontObj::LoadImage()
{
QList<QListWidgetItem*> items = m_listImagesWidget->selectedItems();
QStringList itemsStringList;
for (QListWidgetItem* item : items)
{
itemsStringList.push_back(item->text());
}
QImage image = m_imageProcessingFacade.CombineImages(itemsStringList);
if (image.isNull()) {
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
tr("Cannot load or combine the selected images"));
}
else
{
if (m_isScaleImagesChecked) {
double ratio = static_cast<double>(image.width()) / static_cast<double>(image.height());
m_imageLabel->setGeometry(QRect(50, 220, ratio * m_maxScaledImageHeight, m_maxScaledImageHeight));
m_imageLabelScrollArea->setGeometry(QRect(50, 220, ratio * m_maxScaledImageHeight, m_maxScaledImageHeight));
}
else {
QRect screenGeometry = QApplication::desktop()->availableGeometry();
m_imageLabel->setGeometry(QRect(50, 220, image.width(), image.height()));
m_imageLabelScrollArea->setGeometry(QRect(50, 220, screenGeometry.width() - 160, m_maxScaledImageHeight));
}
m_imageLabel->setScaledContents(m_isScaleImagesChecked);
m_imageLabel->setPixmap(QPixmap::fromImage(image));
m_loadedImage = image;
m_generate3dModelButton->setEnabled(true);
}
}
void Images2WavefrontObj::Generate3dModel()
{
if (m_loadedImage.isNull()) {
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
tr("Cannot load the selected images"));
}
else
{
QImage image = m_imageProcessingFacade.Generate3dModel(m_loadedImage);
m_imageLabel->setPixmap(QPixmap::fromImage(image));
}
} | [
"marcelfuchs@gmx.ch"
] | marcelfuchs@gmx.ch |
e80bf45bd49b60bba42f79e8c40fe79c3cfbbf42 | d910c61e2ba4dfae1686814cd82be9416ae6b3de | /Próf2013/Slist/main.cpp | d224999411222995a5e4fb0cdd22c812dff4878f | [] | no_license | OlafurD/GSKI_Upprifjun | 95f0815b1d101b53f0c75a9dd1ee95879e6a1b7b | 1a55b1fe3691477360e9988b4dd0ee1cf9900a58 | refs/heads/master | 2021-01-22T02:52:35.589458 | 2014-04-21T21:14:47 | 2014-04-21T21:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | cpp | #include <iostream>
#include "Slist.h"
using namespace std;
int main()
{
Slist myList;
myList.push_front(3);
myList.push_front(1);
myList.push_front(0);
myList.insert_after(1,2);
myList.insert_after(3,4);
myList.remove(3);
for(NodePtr node = myList.begin() ; node != NULL ; node = node->link)
{
cout << node->data << endl;
}
try
{
myList.remove(7);
}
catch(SlistException ex)
{
cout << ex.getMessage() << endl;
}
return 0;
}
| [
"olafur12@gmail.com"
] | olafur12@gmail.com |
836aa60303f14475bfd7f990912c4d28ed9fb9ef | b7f1b4df5d350e0edf55521172091c81f02f639e | /ui/aura/local/window_port_local.cc | c9b3213d26f12a2b1ed87fa7872db6985f7bec3d | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | C++ | false | false | 6,342 | 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 "ui/aura/local/window_port_local.h"
#include "components/viz/service/frame_sinks/frame_sink_manager_impl.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aura/env.h"
#include "ui/aura/local/layer_tree_frame_sink_local.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/base/layout.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
namespace aura {
namespace {
class ScopedCursorHider {
public:
explicit ScopedCursorHider(Window* window)
: window_(window), hid_cursor_(false) {
if (!window_->IsRootWindow())
return;
const bool cursor_is_in_bounds = window_->GetBoundsInScreen().Contains(
Env::GetInstance()->last_mouse_location());
client::CursorClient* cursor_client = client::GetCursorClient(window_);
if (cursor_is_in_bounds && cursor_client &&
cursor_client->IsCursorVisible()) {
cursor_client->HideCursor();
hid_cursor_ = true;
}
}
~ScopedCursorHider() {
if (!window_->IsRootWindow())
return;
// Update the device scale factor of the cursor client only when the last
// mouse location is on this root window.
if (hid_cursor_) {
client::CursorClient* cursor_client = client::GetCursorClient(window_);
if (cursor_client) {
const display::Display& display =
display::Screen::GetScreen()->GetDisplayNearestWindow(window_);
cursor_client->SetDisplay(display);
cursor_client->ShowCursor();
}
}
}
private:
Window* window_;
bool hid_cursor_;
DISALLOW_COPY_AND_ASSIGN(ScopedCursorHider);
};
} // namespace
WindowPortLocal::WindowPortLocal(Window* window)
: window_(window), weak_factory_(this) {}
WindowPortLocal::~WindowPortLocal() {}
void WindowPortLocal::OnPreInit(Window* window) {}
void WindowPortLocal::OnDeviceScaleFactorChanged(
float old_device_scale_factor,
float new_device_scale_factor) {
if (last_device_scale_factor_ != new_device_scale_factor &&
local_surface_id_.is_valid()) {
last_device_scale_factor_ = new_device_scale_factor;
local_surface_id_ = parent_local_surface_id_allocator_.GenerateId();
if (frame_sink_)
frame_sink_->SetLocalSurfaceId(local_surface_id_);
}
ScopedCursorHider hider(window_);
if (window_->delegate()) {
window_->delegate()->OnDeviceScaleFactorChanged(old_device_scale_factor,
new_device_scale_factor);
}
}
void WindowPortLocal::OnWillAddChild(Window* child) {}
void WindowPortLocal::OnWillRemoveChild(Window* child) {}
void WindowPortLocal::OnWillMoveChild(size_t current_index, size_t dest_index) {
}
void WindowPortLocal::OnVisibilityChanged(bool visible) {}
void WindowPortLocal::OnDidChangeBounds(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
if (last_size_ != new_bounds.size() && local_surface_id_.is_valid()) {
last_size_ = new_bounds.size();
local_surface_id_ = parent_local_surface_id_allocator_.GenerateId();
if (frame_sink_)
frame_sink_->SetLocalSurfaceId(local_surface_id_);
}
}
void WindowPortLocal::OnDidChangeTransform(
const gfx::Transform& old_transform,
const gfx::Transform& new_transform) {}
std::unique_ptr<ui::PropertyData> WindowPortLocal::OnWillChangeProperty(
const void* key) {
return nullptr;
}
void WindowPortLocal::OnPropertyChanged(
const void* key,
int64_t old_value,
std::unique_ptr<ui::PropertyData> data) {}
std::unique_ptr<cc::LayerTreeFrameSink>
WindowPortLocal::CreateLayerTreeFrameSink() {
DCHECK(!frame_sink_id_.is_valid());
auto* context_factory_private =
aura::Env::GetInstance()->context_factory_private();
frame_sink_id_ = context_factory_private->AllocateFrameSinkId();
auto frame_sink = std::make_unique<LayerTreeFrameSinkLocal>(
frame_sink_id_, context_factory_private->GetHostFrameSinkManager(),
window_->GetName());
frame_sink->SetSurfaceChangedCallback(base::Bind(
&WindowPortLocal::OnSurfaceChanged, weak_factory_.GetWeakPtr()));
frame_sink_ = frame_sink->GetWeakPtr();
AllocateLocalSurfaceId();
if (window_->GetRootWindow())
window_->layer()->GetCompositor()->AddFrameSink(frame_sink_id_);
return std::move(frame_sink);
}
viz::SurfaceId WindowPortLocal::GetSurfaceId() const {
return viz::SurfaceId(frame_sink_id_, local_surface_id_);
}
void WindowPortLocal::AllocateLocalSurfaceId() {
last_device_scale_factor_ = ui::GetScaleFactorForNativeView(window_);
last_size_ = window_->bounds().size();
local_surface_id_ = parent_local_surface_id_allocator_.GenerateId();
if (frame_sink_)
frame_sink_->SetLocalSurfaceId(local_surface_id_);
}
const viz::LocalSurfaceId& WindowPortLocal::GetLocalSurfaceId() {
if (!local_surface_id_.is_valid())
AllocateLocalSurfaceId();
return local_surface_id_;
}
viz::FrameSinkId WindowPortLocal::GetFrameSinkId() const {
return frame_sink_id_;
}
void WindowPortLocal::OnWindowAddedToRootWindow() {
if (frame_sink_id_.is_valid())
window_->layer()->GetCompositor()->AddFrameSink(frame_sink_id_);
}
void WindowPortLocal::OnWillRemoveWindowFromRootWindow() {
if (frame_sink_id_.is_valid())
window_->layer()->GetCompositor()->RemoveFrameSink(frame_sink_id_);
}
void WindowPortLocal::OnEventTargetingPolicyChanged() {}
void WindowPortLocal::OnSurfaceChanged(const viz::SurfaceInfo& surface_info) {
DCHECK_EQ(surface_info.id().frame_sink_id(), frame_sink_id_);
DCHECK_EQ(surface_info.id().local_surface_id(), local_surface_id_);
scoped_refptr<viz::SurfaceReferenceFactory> reference_factory =
aura::Env::GetInstance()
->context_factory_private()
->GetFrameSinkManager()
->surface_manager()
->reference_factory();
window_->layer()->SetShowPrimarySurface(surface_info.id(),
window_->bounds().size(),
SK_ColorWHITE, reference_factory);
window_->layer()->SetFallbackSurfaceId(surface_info.id());
}
bool WindowPortLocal::ShouldRestackTransientChildren() {
return true;
}
} // namespace aura
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
62e491e85137e37e94560ea70b59564bff047750 | 5c611418f0cf7e2d7bc3b69c8bd3862561b55d11 | /Core/Resource/obj_model.h | 5d3f015a7cc0dc86ca5c5da7e7a21682f505cd91 | [
"Apache-2.0"
] | permissive | everfor/Frankenstein | a4ce1f53c6830c9db254a2e4ab880b45d0ab7cd4 | a1d0d8f7cb7a2c23e5da9c3c9ecf39a80e5b9e9c | refs/heads/master | 2021-01-13T01:28:53.199898 | 2015-03-26T04:43:00 | 2015-03-26T04:43:00 | 25,987,783 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | h | #pragma once
#include "indexed_model.h"
#include "vertex.h"
#include <glm/glm.hpp>
#include <vector>
#include <string>
class Vertex;
class ObjIndex
{
public:
ObjIndex(int init_pos_index = 0, int init_tex_index = 0, int init_normal_index = 0) :
positionIndex(init_pos_index), texIndex(init_tex_index), normalIndex(init_normal_index)
{};
int positionIndex;
int texIndex;
int normalIndex;
};
class ObjModel : public IndexedModel
{
public:
ObjModel(const std::string& fileName);
virtual ~ObjModel();
void loadToMesh(Mesh *mesh) override;
private:
bool hasTextureCoord;
bool hasNormalCoord;
std::vector<Vertex> vertices;
std::vector<unsigned short> indices;
};
| [
"alan.yang1994@gmail.com"
] | alan.yang1994@gmail.com |
67e87837cb8cd7d86edd2787a74b22749ac4211e | f0be8b268cb4405a9d40a1ea943a5352018173bb | /103 Binary Tree Zigzag Level Order Traversal.cpp | 94001b6a3267c8304d241072a59812188eea0b38 | [] | no_license | iroot900/Algorithm-Practice-300-Plus | 1b2cdce48104dec540e045dfcab6290fefe60e4b | 5b97c69c991d2b2f330d7b667e79dd32b53e44f5 | refs/heads/master | 2020-07-10T21:34:39.125332 | 2015-09-01T21:40:20 | 2015-09-01T21:40:20 | 36,990,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> result;
levelOrder(root, 0, result);
int n=result.size();
for(int i=0;i<n;++i)
{
if(i&1) reverse(begin(result[i]),end(result[i]));
}
return result;
}
void levelOrder(TreeNode* root, int level, vector<vector<int>>& result) {
if(root==nullptr) return ;
if(result.size()<level+1) result.push_back(vector<int>());
result[level].push_back(root->val);
levelOrder(root->left, level+1, result);
levelOrder(root->right, level+1, result);
}
};
| [
"iroot900@gmail.com"
] | iroot900@gmail.com |
b28b5a85075a16601b08f92d95d2146355f59bb1 | 30a6907f5b332ef6b94b9acad523ae1ffb12f1d6 | /main.cpp | 51bb5017829b3d3d9b533ad54dc2f499d4382ee8 | [] | no_license | marsaud/client | 6d81202626c4f0766d5719b73ee6935041014da7 | 27f00e8dec61bf226cd1010dac23043e5c12e85f | refs/heads/master | 2020-06-01T03:09:19.444354 | 2014-12-22T21:59:22 | 2014-12-22T21:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | #include <iostream>
#include <boost/asio.hpp>
#include <SDL/SDL.h>
#include "Client.h"
#include "init.h"
int main()
{
SDL_Surface* screen = NULL;
TTF_Font* font = NULL;
initVideo(640, 400, "fonts/coure.fon", 22, screen, font);
try
{
boost::asio::io_service io_service;
boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string("127.0.0.1"), 7171);
Client client(io_service, endpoint, screen);
io_service.run();
}
catch (std::exception& e)
{
std::cerr << e.what() << std::endl;
}
quitVideo(screen, font);
return 0;
}
| [
"marsaud.fabrice@neuf.fr"
] | marsaud.fabrice@neuf.fr |
b86a10e68359be8c020ca1d130462e9e4a85afb3 | d4240a19b3a97e8c4a39a7925e8046ead6642d19 | /2016/Enceladus/Temp/StagingArea/Data/il2cppOutput/TextMeshPro_TMPro_TMP_Math871511886.h | 6e1c5fa117257617fc823ba6f11df4d6adb64e17 | [] | no_license | mgoadric/csci370 | 05561a24a8a6c3ace4d9ab673b20c03fc40686e9 | 9ffd5d0e373c8a415cd23799fc29a6f6d83c08af | refs/heads/master | 2023-03-17T18:51:45.095212 | 2023-03-13T19:45:59 | 2023-03-13T19:45:59 | 81,270,581 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object2689449295.h"
#include "UnityEngine_UnityEngine_Vector22243707579.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// TMPro.TMP_Math
struct TMP_Math_t871511886 : public Il2CppObject
{
public:
public:
};
struct TMP_Math_t871511886_StaticFields
{
public:
// UnityEngine.Vector2 TMPro.TMP_Math::MAX_16BIT
Vector2_t2243707579 ___MAX_16BIT_6;
// UnityEngine.Vector2 TMPro.TMP_Math::MIN_16BIT
Vector2_t2243707579 ___MIN_16BIT_7;
public:
inline static int32_t get_offset_of_MAX_16BIT_6() { return static_cast<int32_t>(offsetof(TMP_Math_t871511886_StaticFields, ___MAX_16BIT_6)); }
inline Vector2_t2243707579 get_MAX_16BIT_6() const { return ___MAX_16BIT_6; }
inline Vector2_t2243707579 * get_address_of_MAX_16BIT_6() { return &___MAX_16BIT_6; }
inline void set_MAX_16BIT_6(Vector2_t2243707579 value)
{
___MAX_16BIT_6 = value;
}
inline static int32_t get_offset_of_MIN_16BIT_7() { return static_cast<int32_t>(offsetof(TMP_Math_t871511886_StaticFields, ___MIN_16BIT_7)); }
inline Vector2_t2243707579 get_MIN_16BIT_7() const { return ___MIN_16BIT_7; }
inline Vector2_t2243707579 * get_address_of_MIN_16BIT_7() { return &___MIN_16BIT_7; }
inline void set_MIN_16BIT_7(Vector2_t2243707579 value)
{
___MIN_16BIT_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"goadrich@hendrix.edu"
] | goadrich@hendrix.edu |
1bdc6d949ea952713d1678189cda2b82f01fcb61 | e47215631d4d4dc2d7fda21c9dfd11e17c186c98 | /CIS410/project3/proj3.cxx | de1d25e5baff112d39c42fd3247d6ef200715089 | [] | no_license | Touchette/UniversityClasses | ae58052f45aec532b61f200ae48918ab86d5ae01 | 74d99cc7abcebc878426df8f1088aa02f0ce9aaa | refs/heads/master | 2020-03-19T13:24:19.141804 | 2020-03-10T05:13:09 | 2020-03-10T05:13:09 | 136,577,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,861 | cxx | #include <vtkImageData.h>
#include <vtkPNGWriter.h>
#include <vtkPointData.h>
#include <vtkPoints.h>
#include <vtkUnsignedCharArray.h>
#include <vtkFloatArray.h>
#include <vtkDataSetReader.h>
#include <vtkRectilinearGrid.h>
#include <vtkFloatArray.h>
#include <math.h>
// ****************************************************************************
// Function: GetNumberOfPoints
//
// Arguments:
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: the number of points in a rectilinear mesh
//
// ****************************************************************************
int GetNumberOfPoints(const int *dims)
{
// 3D
//return dims[0]*dims[1]*dims[2];
// 2D
return dims[0]*dims[1];
}
// ****************************************************************************
// Function: GetNumberOfCells
//
// Arguments:
//
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: the number of cells in a rectilinear mesh
//
// ****************************************************************************
int GetNumberOfCells(const int *dims)
{
// 3D
//return (dims[0]-1)*(dims[1]-1)*(dims[2]-1);
// 2D
return (dims[0]-1)*(dims[1]-1);
}
// ****************************************************************************
// Function: GetPointIndex
//
// Arguments:
// idx: the logical index of a point.
// 0 <= idx[0] < dims[0]
// 1 <= idx[1] < dims[1]
// 2 <= idx[2] < dims[2] (or always 0 if 2D)
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: the point index
//
// ****************************************************************************
int GetPointIndex(const int *idx, const int *dims)
{
// 3D
//return idx[2]*dims[0]*dims[1]+idx[1]*dims[0]+idx[0];
// 2D
return idx[1]*dims[0]+idx[0];
}
// ****************************************************************************
// Function: GetCellIndex
//
// Arguments:
// idx: the logical index of a cell.
// 0 <= idx[0] < dims[0]-1
// 1 <= idx[1] < dims[1]-1
// 2 <= idx[2] < dims[2]-1 (or always 0 if 2D)
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: the cell index
//
// ****************************************************************************
int GetCellIndex(const int *idx, const int *dims)
{
// 3D
//return idx[2]*(dims[0]-1)*(dims[1]-1)+idx[1]*(dims[0]-1)+idx[0];
// 2D
return idx[1]*(dims[0]-1)+idx[0];
}
// ****************************************************************************
// Function: GetLogicalPointIndex
//
// Arguments:
// idx (output): the logical index of the point.
// 0 <= idx[0] < dims[0]
// 1 <= idx[1] < dims[1]
// 2 <= idx[2] < dims[2] (or always 0 if 2D)
// pointId: a number between 0 and (GetNumberOfPoints(dims)-1).
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: None (argument idx is output)
//
// ****************************************************************************
void GetLogicalPointIndex(int *idx, int pointId, const int *dims)
{
// 3D
// idx[0] = pointId%dim[0];
// idx[1] = (pointId/dims[0])%dims[1];
// idx[2] = pointId/(dims[0]*dims[1]);
// 2D
idx[0] = pointId%dims[0];
idx[1] = pointId/dims[0];
}
// ****************************************************************************
// Function: GetLogicalCellIndex
//
// Arguments:
// idx (output): the logical index of the cell index.
// 0 <= idx[0] < dims[0]-1
// 1 <= idx[1] < dims[1]-1
// 2 <= idx[2] < dims[2]-1 (or always 0 if 2D)
// cellId: a number between 0 and (GetNumberOfCells(dims)-1).
// dims: an array of size 3 with the number of points in X, Y, and Z.
// 2D data sets would have Z=1
//
// Returns: None (argument idx is output)
//
// ****************************************************************************
void GetLogicalCellIndex(int *idx, int cellId, const int *dims)
{
// 3D
// idx[0] = cellId%(dims[0]-1);
// idx[1] = (cellId/(dims[0]-1))%(dims[1]-1);
// idx[2] = cellId/((dims[0]-1)*(dims[1]-1));
// 2D
idx[0] = cellId%(dims[0]-1);
idx[1] = cellId/(dims[0]-1);
}
// ****************************************************************************
// Function: EvaluateFieldAtLocation
//
// Arguments:
// pt: a two-dimensional location
// dims: an array of size two.
// The first number is the size of the array in argument X,
// the second the size of Y.
// X: an array (size is specified by dims).
// This contains the X locations of a rectilinear mesh.
// Y: an array (size is specified by dims).
// This contains the Y locations of a rectilinear mesh.
// F: a scalar field defined on the mesh. Its size is dims[0]*dims[1].
//
// Returns: the interpolated field value. 0 if the location is out of bounds.
//
// ****************************************************************************
// Thanks to my brother for helping me set up this method, reduces a LOT of
// boilerplate
void SetupFieldValues(const int idx, const int *dims, const float *F,
float *fieldValues)
{
int bottomLeftIndex[2]; GetLogicalCellIndex(bottomLeftIndex, idx, dims);
int topLeftIndex[2] = { bottomLeftIndex[0], bottomLeftIndex[1] + 1 };
int bottomRightIndex[2] = { bottomLeftIndex[0] + 1, bottomLeftIndex[1] };
int topRightIndex[2] = { bottomLeftIndex[0] + 1, bottomLeftIndex[1] + 1 };
fieldValues[0] = F[GetPointIndex(bottomLeftIndex, dims)];
fieldValues[1] = F[GetPointIndex(topLeftIndex, dims)];
fieldValues[2] = F[GetPointIndex(bottomRightIndex, dims)];
fieldValues[3] = F[GetPointIndex(topRightIndex, dims)];
}
float EvaluateFieldAtLocation(const float *pt, const int *dims,
const float *X, const float *Y, const float *F)
{
int i, j;
int cellIndex;
float t, bottom, top, lerpedValue = 0.f;
float fieldValues[4];
// Iterate over X, then over Y, as per Piazza answer on post @41
// Find logical X component
for (i=0; i<dims[0]; ++i)
{
if (X[i] <= pt[0] && X[i+1] >= pt[0])
{
// Find logical Y component
for (j=0; j<dims[1]; ++j)
{
if (Y[j] <= pt[1] && Y[j+1] >= pt[1])
{
// Lerp setup
int logicalCellIndex[2] = {i, j};
cellIndex = GetCellIndex(logicalCellIndex, dims);
SetupFieldValues(cellIndex, dims, F, fieldValues);
// Equations taken from helper He He in Piazza post @34 (or
// slides)
// +--------------------------+
// | Horizontal interpolation |
// +--------------------------+
// t:
// (u.x - A.x) / (B.x - A.x)
t = (pt[0] - X[i]) / (X[i+1] - X[i]);
// F(bottom):
// F(C) + t (F(D) - F(C))
bottom = fieldValues[0] + t * (fieldValues[2] - fieldValues[0]);
// F(top):
// F(A) + t * (F(B) - F(A))
top = fieldValues[1] + t * (fieldValues[3] - fieldValues[1]);
// +------------------------+
// | Vertical interpolation |
// +------------------------+
// t:
// (u.y - A.y) / (B.y - A.y)
t = (pt[1] - Y[j]) / (Y[j+1] - Y[j]);
// Can't just straight up return this equation... no idea
// why. Makes it output random numbers.
// Lerped value:
// F(x) = F(bottom) + t * (F(bottom) - F(top))
lerpedValue = bottom + t * (top - bottom);
break;
}
}
}
}
return lerpedValue;
}
void
WriteImage(vtkImageData *img, const char *filename)
{
std::string full_filename = filename;
full_filename += ".png";
vtkPNGWriter *writer = vtkPNGWriter::New();
writer->SetInputData(img);
writer->SetFileName(full_filename.c_str());
writer->Write();
writer->Delete();
}
vtkImageData *
NewImage(int width, int height)
{
vtkImageData *image = vtkImageData::New();
image->SetDimensions(width, height, 1);
//image->SetWholeExtent(0, width-1, 0, height-1, 0, 0);
//image->SetUpdateExtent(0, width-1, 0, height-1, 0, 0);
//image->SetNumberOfScalarComponents(3);
image->AllocateScalars(VTK_UNSIGNED_CHAR, 3);
//image->AllocateScalars();
return image;
}
// ****************************************************************************
// Function: ApplyBlueHotColorMap
//
// Purpose:
// Maps a normalized scalar value F (0<=F<=1) to a color using the blue
// hot color map.
//
// The blue hot color map has:
// F=0: (0,0,128)
// F=1: (255,255,255)
// and smooth interpolation in between
//
// Arguments:
// F (input): a scalar value between 0 and 1
// RGB (output): the location to store the color
//
// ****************************************************************************
void ApplyBlueHotColorMap(float F, unsigned char *RGB)
{
RGB[0] = F * 255;
RGB[1] = F * 255;
RGB[2] = 128 + (F * 127); // 255 - 128 = 127
}
// ****************************************************************************
// Function: ApplyDifferenceColorMap
//
// Purpose:
// Maps a normalized scalar value F (0<=F<=1) to a color using a divergent
// colormap
//
// The divergent color map has:
// F=0: (0,0,128)
// F=0.5: (255,255,255)
// F=1: (128, 0, 0)
// and smooth interpolation in between
//
// Arguments:
// F (input): a scalar value between 0 and 1
// RGB (output): the location to store the color
//
// ****************************************************************************
void ApplyDifferenceColorMap(float F, unsigned char *RGB)
{
float lower_t = (F - 0.f) / (0.5f - 0.f);
float upper_t = (F - 0.5f) / (1.f - 0.5f);
if (F < 0.5)
{
RGB[0] = 0 + lower_t * (255 - 0);
RGB[1] = 0 + lower_t * (255 - 0);
RGB[2] = 128 + lower_t * (255 - 128);
}
if (F == 0.5)
{
RGB[0] = 255;
RGB[1] = 255;
RGB[2] = 255;
}
if (F > 0.5)
{
RGB[0] = 255 + upper_t * (128 - 255);
RGB[1] = 255 + upper_t * (0 - 255);
RGB[2] = 255 + upper_t * (0 - 255);
}
}
// ****************************************************************************
// Function: ApplyBHSVColorMap
//
// Purpose:
// Maps a normalized scalar value F (0<=F<=1) to a color using an HSV
// rainbow colormap
//
// The rainbow colormap uses a saturation = 1.0, value = 1.0,
// and interpolates hue from 0 to 360 degrees
//
// Arguments:
// F (input): a scalar value between 0 and 1
// RGB (output): the location to store the color
//
// ****************************************************************************
void ApplyHSVColorMap(float F, unsigned char *RGB)
{
float saturation = 1.f;
float value = 1.f;
// Math from same StackOverflow post #5731863 (Alok Singhal)
float hue = (0.f + ((360.f - 0.f) / (1.f - 0.f)) * (F - 0.f)) / 60.f;
int i = floor(hue);
float f = hue - i;
float p = value * (1 - saturation);
float q = value * (1 - saturation * f);
float t = value * (1 - saturation * (1 - f));
p *= 255; q *= 255; t *= 255;
saturation *= 255; value *= 255;
switch (i)
{
case 0:
RGB[0] = value; RGB[1] = t; RGB[2] = p;
break;
case 1:
RGB[0] = q; RGB[1] = value; RGB[2] = p;
break;
case 2:
RGB[0] = p; RGB[1] = value; RGB[2] = t;
break;
case 3:
RGB[0] = p; RGB[1] = q; RGB[2] = value;
break;
case 4:
RGB[0] = t; RGB[1] = p; RGB[2] = value;
break;
case 5:
RGB[0] = value; RGB[1] = p; RGB[2] = q;
break;
}
}
int main()
{
int i, j;
vtkDataSetReader *rdr = vtkDataSetReader::New();
rdr->SetFileName("proj3_data.vtk");
rdr->Update();
int dims[3];
vtkRectilinearGrid *rgrid = (vtkRectilinearGrid *) rdr->GetOutput();
rgrid->GetDimensions(dims);
float *X = (float *) rgrid->GetXCoordinates()->GetVoidPointer(0);
float *Y = (float *) rgrid->GetYCoordinates()->GetVoidPointer(0);
float *F = (float *) rgrid->GetPointData()->GetScalars()->GetVoidPointer(0);
int nx = 500;
int ny = 500;
vtkImageData *images[3];
unsigned char *buffer[3];
for (i = 0 ; i < 3 ; i++)
{
images[i] = NewImage(nx, ny);
buffer[i] = (unsigned char *) images[i]->GetScalarPointer(0,0,0);
}
for (i = 0 ; i < 3*nx*ny ; i++)
for (j = 0 ; j < 3 ; j++)
buffer[j][i] = 0;
// Math from StackOverflow question #5731863 (Alok Singhal)
float slopeX = (9.f - -9.f) / ((nx - 1) - 0.f);
float slopeY = (9.f - -9.f) / ((ny - 1) - 0.f);
for (i=0; i<nx; i++)
for (j=0; j<ny; j++)
{
// ITERATE OVER PIXELS
float pt[2];
pt[0] = -9.f + (slopeX * (i - 0.f));
pt[1] = -9.f + (slopeY * (j - 0.f));
float f = EvaluateFieldAtLocation(pt, dims, X, Y, F);
float normalizedF = (f - 1.2f) / (5.02f - 1.2f);
// I TAKE OVER HERE
int offset = 3*(j*nx+i);
ApplyBlueHotColorMap(normalizedF, buffer[0]+offset);
ApplyDifferenceColorMap(normalizedF, buffer[1]+offset);
ApplyHSVColorMap(normalizedF, buffer[2]+offset);
}
WriteImage(images[0], "bluehot_output");
WriteImage(images[1], "difference_output");
WriteImage(images[2], "hsv_output");
}
| [
"marionettis2@gmail.com"
] | marionettis2@gmail.com |
87432d393e3c270c0af2a950c8d793e032bdfe11 | 24e4ea37f1023078cf7e4dc4e64ee9a9ae9287fe | /FGy_II_27_3_valtozat/FGy_II_27_3_valtozat.cpp | ac14c83db944cf766ce5e69ebe7e4666f1bce69d | [] | no_license | cskinga/cpp_training | dc8c87f0ae3925a06dd51db7e3d95ddc05d08ce1 | 4ede3613284ea41c578f6d73b52b007b0ac2b997 | refs/heads/master | 2023-08-24T21:09:27.243676 | 2021-10-26T19:19:50 | 2021-10-26T19:19:50 | 399,350,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,221 | cpp | // FGy_II_27_3_valtozat.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
string decimal_to_hexadecimal(int x)
{
int szamjegy = 1;
string z = "";
if ((x / pow(10, szamjegy - 1)) >= 1)
{
szamjegy += 1;
}
else
{
if ((x / pow(16, szamjegy)) <= 1)
{
szamjegy -= 1;
}
else
{
for (int i = szamjegy; i >= 0; i--)
{
int oszto = pow(16, szamjegy);
int m;
m = x % oszto;
int y = x - m;
x = m;
int a;
a = y / oszto;
if (a > 9)
{
z += "" + ('A' + a);
}
else
{
z += "" + a;
}
szamjegy -= 1;
cout << z;
}
cout << z;
}
cout << z;
}
cout << z;
return z;
}
string dtohx(int szam)
{
string z = "";
char seged;
int maradek;
while (szam > 0)
{
maradek = szam % 16;
if (maradek > 9)
{
seged = 'A' - (maradek - 10);
z = seged + z;
}
else
{
z = "" + maradek + z;
}
szam = (szam - maradek) / 16;
}
return z;
}
int main()
{
std::cout << "Hello!\n";
cout << decimal_to_hexadecimal(9);
cout << dtohx(10);
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
// Tips for Getting Started:
// 1. Use the Solution Explorer window to add/manage files
// 2. Use the Team Explorer window to connect to source control
// 3. Use the Output window to see build output and other messages
// 4. Use the Error List window to view errors
// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
| [
"balintus98@gmail.com"
] | balintus98@gmail.com |
b86ab84cc54450596d4ac7fb130676bc426d269f | 659d99d090479506b63b374831a049dba5d70fcf | /xray-svn-trunk/editors/LevelEditor/TopBar.cpp | edcd35248df7a5ab533c0951245c94a1454949af | [] | no_license | ssijonson/Rengen_Luch | a9312fed06dd08c7de19f36e5fd5e476881beb85 | 9bd0ff54408a890d4bdac1c493d67ce26b964555 | refs/heads/main | 2023-05-03T13:09:58.983176 | 2021-05-19T10:04:47 | 2021-05-19T10:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,302 | cpp | #include "stdafx.h"
#pragma hdrstop
#include "TopBar.h"
#include "../ECore/Editor/UI_ToolsCustom.h"
#include "../ECore/Editor/ui_main.h"
#include "ui_levelmain.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "ExtBtn"
#pragma link "mxPlacemnt"
#pragma resource "*.dfm"
TfraTopBar *fraTopBar;
//---------------------------------------------------------------------------
__fastcall TfraTopBar::TfraTopBar(TComponent* Owner)
: TFrame(Owner)
{
ebActionSelect->Tag = etaSelect;
ebActionAdd->Tag = etaAdd;
ebActionMove->Tag = etaMove;
ebActionRotate->Tag = etaRotate;
ebActionScale->Tag = etaScale;
ebAxisX->Tag = etAxisX;
ebAxisY->Tag = etAxisY;
ebAxisZ->Tag = etAxisZ;
ebAxisZX->Tag = etAxisZX;
ebAxisYX->Tag = etAxisYX;
ebAxisYZ->Tag = etAxisYZ;
ebAxisFREE->Tag = etAxisUndefined;
ebRandomRot->Tag = etfRandomRot;
ebCSParent->Tag = etfCSParent;
ebNUScale->Tag = etfNUScale;
ebNormalAlign->Tag = etfNormalAlign;
ebGSnap->Tag = etfGSnap;
ebOSnap->Tag = etfOSnap;
ebMTSnap->Tag = etfMTSnap;
ebVSnap->Tag = etfVSnap;
ebASnap->Tag = etfASnap;
ebMSnap->Tag = etfMSnap;
DEFINE_INI(fsStorage);
}
//---------------------------------------------------------------------------
void TfraTopBar::OnTimer(){
for (int j=0; j<ComponentCount; j++){
TComponent* temp = Components[j];
if (dynamic_cast<TExtBtn *>(temp) != NULL)
((TExtBtn*)temp)->UpdateMouseInControl();
}
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebEditUndoClick(TObject *Sender)
{
ExecCommand( COMMAND_UNDO );
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebEditRedoClick(TObject *Sender)
{
ExecCommand( COMMAND_REDO );
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ActionClick(TObject *Sender)
{
TExtBtn* btn=dynamic_cast<TExtBtn*>(Sender);
VERIFY(btn);
ExecCommand(COMMAND_CHANGE_ACTION, btn->Tag);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebAxisClick(TObject *Sender)
{
TExtBtn* btn=dynamic_cast<TExtBtn*>(Sender);
VERIFY(btn);
ExecCommand(COMMAND_CHANGE_AXIS, btn->Tag);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebSettingsClick(TObject *Sender)
{
TExtBtn* btn=dynamic_cast<TExtBtn*>(Sender);
VERIFY(btn);
ExecCommand(COMMAND_SET_SETTINGS, btn->Tag, btn->Down);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebViewClick(TObject *Sender)
{
TExtBtn* btn=dynamic_cast<TExtBtn*>(Sender);
if (btn){
if (btn==ebViewFront) EDevice.m_Camera.ViewFront();
if (btn==ebViewBack) EDevice.m_Camera.ViewBack();
if (btn==ebViewLeft) EDevice.m_Camera.ViewLeft();
if (btn==ebViewRight) EDevice.m_Camera.ViewRight();
if (btn==ebViewTop) EDevice.m_Camera.ViewTop();
if (btn==ebViewBottom) EDevice.m_Camera.ViewBottom();
if (btn==ebViewReset) EDevice.m_Camera.ViewReset();
}
UI->RedrawScene();
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::RefreshBar()
{
TExtBtn* btn = 0;
//actions
switch(Tools->GetAction()){
case etaSelect: btn=ebActionSelect; break;
case etaAdd: btn=ebActionAdd; break;
case etaMove: btn=ebActionMove; break;
case etaRotate: btn=ebActionRotate; break;
case etaScale: btn=ebActionScale; break;
default: THROW;
}
btn->Down = true;
// axis
switch (Tools->GetAxis()){
case etAxisX: btn=ebAxisX; break;
case etAxisY: btn=ebAxisY; break;
case etAxisZ: btn=ebAxisZ; break;
case etAxisZX: btn=ebAxisZX; break;
case etAxisYX: btn=ebAxisYX; break;
case etAxisYZ: btn=ebAxisYZ; break;
case etAxisUndefined: btn=ebAxisFREE; break;
default: THROW;
}
if(btn)
btn->Down = true;
// settings
ebRandomRot->Down = Tools->GetSettings(etfRandomRot);
ebCSParent->Down = Tools->GetSettings(etfCSParent);
ebNUScale->Down = Tools->GetSettings(etfNUScale);
ebNormalAlign->Down = Tools->GetSettings(etfNormalAlign);
ebGSnap->Down = Tools->GetSettings(etfGSnap);
ebOSnap->Down = Tools->GetSettings(etfOSnap);
ebMTSnap->Down = Tools->GetSettings(etfMTSnap);
ebVSnap->Down = Tools->GetSettings(etfVSnap);
ebASnap->Down = Tools->GetSettings(etfASnap);
ebMSnap->Down = Tools->GetSettings(etfMSnap);
// redraw scene
UI->RedrawScene ();
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebZoomExtentsClick(TObject *Sender)
{
ExecCommand( COMMAND_ZOOM_EXTENTS, FALSE );
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebZoomExtentsSelectedClick(TObject *Sender)
{
ExecCommand( COMMAND_ZOOM_EXTENTS, TRUE );
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebCameraStyleClick(TObject *Sender)
{
EDevice.m_Camera.SetStyle((ECameraStyle)((TExtBtn*)Sender)->Tag);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebClearSelectionClick(TObject *Sender)
{
ExecCommand(COMMAND_DESELECT_ALL);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::ebClearSelectionAllClick(TObject *Sender)
{
ExecCommand(COMMAND_DESELECT_ALL_E_MODES);
}
//---------------------------------------------------------------------------
void __fastcall TfraTopBar::fsStorageRestorePlacement(TObject *Sender)
{
if (ebCameraPlane->Down) EDevice.m_Camera.SetStyle(csPlaneMove);
else if (ebCameraArcBall->Down) EDevice.m_Camera.SetStyle(cs3DArcBall);
else if (ebCameraFly->Down) EDevice.m_Camera.SetStyle(csFreeFly);
UI->RedrawScene();
}
//---------------------------------------------------------------------------
| [
"16670637+KRodinn@users.noreply.github.com"
] | 16670637+KRodinn@users.noreply.github.com |
1c2c676367ddad47b02e4dcff9c0d10df62dc5a6 | 910537207debe5cb8665d88078dc966966a5d776 | /src/Raytracer/util/ThreadPool.h | b5b5beb0f5bdc59b43a31268fbdb1f3783fdd23f | [] | no_license | Tastaturtaste/Raytracing | 844a8836c30f6fc75f5433f9e5bc4703e21a090c | fab5d9d4af9ab19805754732d3abf30012cbc171 | refs/heads/master | 2023-03-26T00:22:07.368594 | 2021-03-22T23:28:26 | 2021-03-22T23:28:26 | 343,588,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,736 | h | #pragma once
#include <vector>
#include <thread>
#include <future>
#include <functional>
#include <mutex>
#include <queue>
#include <memory>
#include <concepts>
namespace ThreadPool_ {
template<class F>
concept returnsJob = requires(F f) { {f()}->std::convertible_to<std::function<void()>>; };
}
class ThreadPool {
class Job {
public:
Job() = default;
Job(const Job&) = delete;
Job(Job&&) = default;
Job& operator=(const Job&) = delete;
Job& operator=(Job&&) = default;
virtual ~Job() = default;
virtual void execute() = 0;
};
template<class RetType>
class AnyJob : public Job {
std::packaged_task<RetType()> f_;
public:
AnyJob(std::packaged_task<RetType()>&& f) noexcept
: f_(std::move(f)) {}
void execute() override {
f_();
}
};
std::vector<std::thread> threads{};
std::queue<std::unique_ptr<Job>> jobs{};
std::size_t jobSizeCache{};
std::mutex poolMutex{};
std::condition_variable notifyThreads;
bool terminate{ false };
bool stopped{ false };
public:
ThreadPool(std::size_t poolSize)
{
threads.reserve(poolSize);
for (std::size_t i = 0; i < poolSize; ++i) {
threads.emplace_back([&]() {
std::unique_ptr<Job> job;
while (!terminate) {
{
std::unique_lock<std::mutex> lock(poolMutex);
notifyThreads.wait(lock, [&] {return !jobs.empty() || terminate; });
if (jobs.size() < 1)
continue;
job = std::move(jobs.front());
jobs.pop();
jobSizeCache = jobs.size();;
}
if (job)
job->execute();
}
});
}
}
ThreadPool() = delete;
ThreadPool(const ThreadPool&) = delete;
ThreadPool(ThreadPool&&) = default;
ThreadPool& operator=(const ThreadPool&) = delete;
ThreadPool& operator=(ThreadPool&&) = default;
~ThreadPool() noexcept(false){
if (!stopped)
shutdown();
}
std::size_t numThreads() const noexcept { return threads.size(); }
std::size_t numJobs() const noexcept {
return jobSizeCache;
}
template<class F, class... Args>
auto addJob(F&& f, Args&&... args){
using retType = decltype(f(args...));
std::packaged_task<retType()> task(std::move(std::bind(f, args...)));
std::future<retType> future = task.get_future();
auto upt = std::make_unique<AnyJob<retType> >(std::move(task));
{
std::lock_guard<std::mutex> lock(poolMutex);
jobs.emplace(std::move(upt));
jobSizeCache = jobs.size();
}
notifyThreads.notify_one();
return future;
}
void shutdown() {
try {
{
std::lock_guard<std::mutex> lock(poolMutex);
terminate = true;
}
notifyThreads.notify_all();
for (auto& thread : threads) {
thread.join();
}
}
catch (const std::exception& e) {
spdlog::error("Exception in Threadpool: {}",e.what());
assert(false);
}
}
}; | [
"joshua.moellers@gmx.net"
] | joshua.moellers@gmx.net |
f15b8510a84446f39c29bc42f896f10c0dc522c8 | 8d1c7fba7cd15f8a1e33fd27d11eefd1c67d579f | /src/test/res/app.cc | f4f25b4454f4156db58d6e37524bdfe794298e89 | [
"Apache-2.0"
] | permissive | bazelbuild/bazel | 5896162455f032efc899b8de60aa39b9d2cad4a6 | 171aae3f9c57b41089e25ec61fc84c35baa3079d | refs/heads/master | 2023-08-22T22:52:48.714735 | 2023-08-22T18:01:53 | 2023-08-22T18:01:53 | 20,773,773 | 20,294 | 4,383 | Apache-2.0 | 2023-09-14T18:38:44 | 2014-06-12T16:00:38 | Java | UTF-8 | C++ | false | false | 1,003 | cc | // Copyright 2019 The Bazel 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 <stdio.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "src/test/res/app.h"
#endif // _WIN32
int main() {
#ifdef _WIN32
WCHAR p[100];
memset(p, 0, sizeof(p));
int l = LoadStringW(GetModuleHandle(nullptr), IDS_STRING, p, 100);
wprintf(L"l=%d, p=(%s)", l, p);
#else // not _WIN32
printf("not supported");
#endif // _WIN32
return 0;
}
| [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2e237f5fe9b66498f4018488d8003240ddd2093e | 81e30700981c3965858225201e62159f6cca9088 | /lib/mtgl/test/test_connected_components.cpp | dc4b6739554eb22b256bf0cd6a8128a5a0c0348a | [] | no_license | Auguraculums/graphdb-testing | 37c6243f834f7599744c1c144e7c4f31a0bec97f | c5244414c5101cc31954d9c6e62c08eada9d9392 | refs/heads/master | 2020-12-11T06:06:34.155373 | 2016-01-17T12:10:02 | 2016-01-17T12:10:02 | 49,815,581 | 0 | 0 | null | 2016-01-17T12:05:14 | 2016-01-17T12:05:14 | null | UTF-8 | C++ | false | false | 3,773 | cpp | /* _________________________________________________________________________
*
* MTGL: The MultiThreaded Graph Library
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
* For more information, see the README file in the top MTGL directory.
* _________________________________________________________________________
*/
/****************************************************************************/
/*! \file test_connected_components.cpp
\brief Tests the connected component algorithm.
\author Jon Berry (jberry@sandia.gov)
\date 3/3/2009
*/
/****************************************************************************/
#include <iostream>
#include <list>
#include <mtgl/compressed_sparse_row_graph.hpp>
#include <mtgl/adjacency_list.hpp>
#include <mtgl/connected_components.hpp>
#include <mtgl/util.hpp>
#include <mtgl/mtgl_test.hpp>
#include <mtgl/random.hpp>
#include <mtgl/dynamic_array.hpp>
//#define DEBUG
using namespace mtgl;
int main(int argc, char* argv[])
{
// The connected components algorithm used here is INVALID over
// non-undirected graphs.
//typedef compressed_sparse_row_graph<undirectedS> Graph;
typedef adjacency_list<undirectedS> Graph;
typedef graph_traits<Graph>::size_type size_type;
typedef graph_traits<Graph>::vertex_descriptor vertex_descriptor;
typedef graph_traits<Graph>::vertex_iterator vertex_iterator;
typedef graph_traits<Graph>::edge_iterator edge_iterator;
mt_srand48(0);
init_test(argc, argv);
Graph ga;
create_test_graph(ga, argc, argv);
size_type order = num_vertices(ga);
size_type size = num_edges(ga);
if (order < 100)
{
print(ga);
}
else
{
std::cout << "Graph constructed with " << order << " vertices and "
<< size << " edges." << std::endl;
}
vertex_id_map<Graph> vid_map = get(_vertex_id_map, ga);
vertex_iterator verts = vertices(ga);
vertex_property_map<Graph, size_type> components(ga);
mt_timer cc_time;
cc_time.start();
connected_components(ga, components);
cc_time.stop();
std::cout << "gcc_sv time: " << cc_time.getElapsedSeconds() << std::endl;
std::cout << "There are " << count_connected_components(ga, components)
<< " connected components." << std::endl;
cc_time.start();
shiloach_vishkin(ga, components);
cc_time.stop();
std::cout << "sv time (going through edges): " << cc_time.getElapsedSeconds()
<< std::endl;
std::cout << "There are " << count_connected_components(ga, components)
<< " connected components." << std::endl;
#ifdef DEBUG
vertex_descriptor largest_leader =
largest_connected_component(ga, components);
std::cout << "The largest has leader " << get(vid_map, largest_leader)
<< std::endl;
#ifndef __MTA__
std::list<vertex_descriptor> the_component;
for (int i = 0; i < order; i++)
{
if (components[verts[i]] == largest_leader)
{
the_component.push_back(verts[i]);
}
}
the_component.sort();
the_component.unique();
std::cout << "comp.order: " << the_component.size() << std::endl;
for (std::list<vertex_descriptor>::iterator it = the_component.begin();
it != the_component.end(); ++it)
{
std::cout << get(vid_map, *it) << std::endl;
}
#endif
dynamic_array<vertex_descriptor> leaders;
component_leaders(ga, components, leaders);
std::cout << "There are " << leaders.size() << " leaders." << std::endl;
#if 0
for (size_type i = 0; i < leaders.size(); ++i)
{
std::cout << "\t" << get(vid_map, leaders[i]) << std::endl;
}
#endif
#endif
return 0;
}
| [
"rob@robmccoll.com"
] | rob@robmccoll.com |
1d3a6f5ee75be55e25e783b26f185127b0719a0d | 8fb79eb28f4ca299ae6481549cca514814c53309 | /amr_parser/src/left_to_right/parser/parser_eager.h | b87375a7960cdc1de64faa8863844ed21599830b | [] | no_license | tedrepo/tamr | 1a28deeea90b949f257f1f72a075c97df1b9178d | c7a480a019d1d765f0ce3d04a37e31709af47f4a | refs/heads/master | 2022-01-08T14:26:23.093985 | 2018-12-20T00:51:04 | 2018-12-20T00:51:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,507 | h | #ifndef PARSER_EAGER_H
#define PARSER_EAGER_H
#include "parser.h"
#include "lstm.h"
#include "dynet_layer/layer.h"
#include <vector>
#include <unordered_map>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
struct ParserEager : public Parser {
struct TransitionSystemFunction {
virtual void perform_action(const unsigned& action,
dynet::ComputationGraph& cg,
std::vector<dynet::Expression>& stack,
std::vector<dynet::Expression>& buffer,
std::vector<dynet::Expression>& deque,
dynet::RNNBuilder& a_lstm, dynet::RNNPointer& a_pointer,
dynet::RNNBuilder& s_lstm, dynet::RNNPointer& s_pointer,
dynet::RNNBuilder& q_lstm, dynet::RNNPointer& q_pointer,
dynet::RNNBuilder& d_lstm, dynet::RNNPointer& d_pointer,
dynet::Expression& act_expr,
const Alphabet & action_map,
const Alphabet & node_map,
SymbolEmbedding & node_emb,
const Alphabet & rel_map,
SymbolEmbedding & rel_emb,
const Alphabet & entity_map,
SymbolEmbedding & entity_emb,
DenseLayer & confirm_layer,
Merge3Layer & merge_parent,
Merge3Layer & merge_child,
Merge2Layer & merge_token,
Merge2Layer & merge_entity) = 0;
dynet::Expression get_arg_emb(const std::string & a_str, const Alphabet & arg_map, SymbolEmbedding & arg_emb);
};
struct EagerFunction : public TransitionSystemFunction {
void perform_action(const unsigned& action,
dynet::ComputationGraph& cg,
std::vector<dynet::Expression>& stack,
std::vector<dynet::Expression>& buffer,
std::vector<dynet::Expression>& deque,
dynet::RNNBuilder& a_lstm, dynet::RNNPointer& a_pointer,
dynet::RNNBuilder& s_lstm, dynet::RNNPointer& s_pointer,
dynet::RNNBuilder& q_lstm, dynet::RNNPointer& q_pointer,
dynet::RNNBuilder& d_lstm, dynet::RNNPointer& d_pointer,
dynet::Expression& act_expr,
const Alphabet & action_map,
const Alphabet & node_map,
SymbolEmbedding & node_emb,
const Alphabet & rel_map,
SymbolEmbedding & rel_emb,
const Alphabet & entity_map,
SymbolEmbedding & entity_emb,
DenseLayer & confirm_layer,
Merge3Layer & merge_parent,
Merge3Layer & merge_child,
Merge2Layer & merge_token,
Merge2Layer & merge_entity) override;
};
LSTMBuilder s_lstm;
LSTMBuilder q_lstm;
LSTMBuilder a_lstm;
LSTMBuilder d_lstm;
BiLSTMBuilder c_lstm;
SymbolEmbedding word_emb;
SymbolEmbedding pos_emb;
SymbolEmbedding preword_emb;
SymbolEmbedding act_emb;
SymbolEmbedding char_emb;
SymbolEmbedding node_emb;
SymbolEmbedding rel_emb;
SymbolEmbedding entity_emb;
Merge3Layer merge_input; // merge (pos, pretained, char_emb)
Merge4Layer merge; // merge (s_lstm, q_lstm, a_lstm, d_lstm)
Merge3Layer merge_parent; // merge (parent, rel, child) -> parent
Merge3Layer merge_child; // merge (parent, rel, child) -> child
Merge2Layer merge_token; // merge (A, B) -> AB
Merge2Layer merge_entity; // merge (AB, entity_label) -> X
DenseLayer scorer; // Q / A value scorer.
DenseLayer confirm_layer;
Alphabet char_map;
std::unordered_map<unsigned, DenseLayer*> confirm_scorer; //confirm scorer.
std::unordered_map<unsigned, Alphabet> confirm_map;
dynet::Expression confirm_to_one;
dynet::Parameter p_action_start; // start of action
dynet::Parameter p_buffer_guard; // end of buffer
dynet::Parameter p_stack_guard; // end of stack
dynet::Parameter p_deque_guard; // end of deque
dynet::Expression action_start;
dynet::Expression buffer_guard;
dynet::Expression stack_guard;
dynet::Expression deque_guard;
/// state machine
dynet::RNNPointer s_pointer;
dynet::RNNPointer q_pointer;
dynet::RNNPointer a_pointer;
dynet::RNNPointer d_pointer;
std::vector<dynet::Expression> stack;
std::vector<dynet::Expression> buffer;
std::vector<dynet::Expression> deque;
bool trainable;
/// The reference
TransitionSystemFunction* sys_func;
const std::unordered_map<unsigned, std::vector<float>>& pretrained;
/// The Configurations: useful for other models.
unsigned size_w, dim_w, size_p, dim_p, size_t, dim_t, size_c, dim_c, size_a, dim_a, size_n, dim_n, size_r, dim_r, size_e, dim_e;
unsigned n_layers, dim_lstm_in, dim_hidden;
explicit ParserEager(dynet::ParameterCollection & m,
unsigned size_w, //
unsigned dim_w, // word size, word dim
unsigned size_p, //
unsigned dim_p, // pos size, pos dim
unsigned size_t, //
unsigned dim_t, // pword size, pword dim
unsigned size_c, //
unsigned dim_c, // char size, char dim
unsigned size_a, //
unsigned dim_a, // act size, act dim
unsigned size_n, //
unsigned dim_n, // newnode size, newnode dim
unsigned size_r,
unsigned dim_r, // rel size, rel dim
unsigned size_e,
unsigned dim_e, // entity size, entity dim
unsigned n_layers,
unsigned dim_lstm_in,
unsigned dim_hidden,
const std::string& system_name,
TransitionSystem& system,
const std::unordered_map<unsigned, std::vector<float>>& pretrained,
const std::unordered_map<unsigned, Alphabet> & confirm_map,
const Alphabet & char_map);
Parser* copy_architecture(dynet::Model& new_model) override;
void activate_training() override;
void inactivate_training() override;
void new_graph(dynet::ComputationGraph& cg) override;
std::vector<dynet::Expression> get_params() override;
void initialize_parser(dynet::ComputationGraph& cg,
const InputUnits& input) override;
void perform_action(const unsigned& action,
dynet::ComputationGraph& cg,
State& state) override;
/// Get the un-softmaxed scores from the LSTM-parser.
dynet::Expression get_confirm_values(unsigned wid) override;
dynet::Expression get_a_values() override;
};
#endif // end for PARSER_H
| [
"oneplus.lau@gmail.com"
] | oneplus.lau@gmail.com |
e8e81e371076eca3d12fa2725d509ca3d1097987 | 154ad9b7b26b5c52536bbd83cdaf0a359e6125c3 | /components/autofill/core/common/password_form_fill_data_unittest.cc | 3a8954d3bb9e728223396a2438df1957da23a06c | [
"BSD-3-Clause"
] | permissive | bopopescu/jstrace | 6cc239d57e3a954295b67fa6b8875aabeb64f3e2 | 2069a7b0a2e507a07cd9aacec4d9290a3178b815 | refs/heads/master | 2021-06-14T09:08:34.738245 | 2017-05-03T23:17:06 | 2017-05-03T23:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,731 | cc | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill/core/common/password_form_fill_data.h"
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/common/password_form.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::ASCIIToUTF16;
namespace autofill {
// Tests that the when there is a single preferred match, and no extra
// matches, the PasswordFormFillData is filled in correctly.
TEST(PasswordFormFillDataTest, TestSinglePreferredMatch) {
// Create the current form on the page.
PasswordForm form_on_page;
form_on_page.origin = GURL("https://foo.com/");
form_on_page.action = GURL("https://foo.com/login");
form_on_page.username_element = ASCIIToUTF16("username");
form_on_page.username_value = ASCIIToUTF16("test@gmail.com");
form_on_page.password_element = ASCIIToUTF16("password");
form_on_page.password_value = ASCIIToUTF16("test");
form_on_page.submit_element = ASCIIToUTF16("");
form_on_page.signon_realm = "https://foo.com/";
form_on_page.preferred = false;
form_on_page.scheme = PasswordForm::SCHEME_HTML;
// Create an exact match in the database.
PasswordForm preferred_match;
preferred_match.origin = GURL("https://foo.com/");
preferred_match.action = GURL("https://foo.com/login");
preferred_match.username_element = ASCIIToUTF16("username");
preferred_match.username_value = ASCIIToUTF16("test@gmail.com");
preferred_match.password_element = ASCIIToUTF16("password");
preferred_match.password_value = ASCIIToUTF16("test");
preferred_match.submit_element = ASCIIToUTF16("");
preferred_match.signon_realm = "https://foo.com/";
preferred_match.preferred = true;
preferred_match.scheme = PasswordForm::SCHEME_HTML;
PasswordFormMap matches;
PasswordFormFillData result;
InitPasswordFormFillData(form_on_page,
matches,
&preferred_match,
true,
false,
&result);
// |wait_for_username| should reflect the |wait_for_username_before_autofill|
// argument of InitPasswordFormFillData which in this case is true.
EXPECT_TRUE(result.wait_for_username);
// The preferred realm should be empty since it's the same as the realm of
// the form.
EXPECT_EQ(std::string(), result.preferred_realm);
PasswordFormFillData result2;
InitPasswordFormFillData(form_on_page,
matches,
&preferred_match,
false,
false,
&result2);
// |wait_for_username| should reflect the |wait_for_username_before_autofill|
// argument of InitPasswordFormFillData which in this case is false.
EXPECT_FALSE(result2.wait_for_username);
}
// Tests that the InitPasswordFormFillData behaves correctly when there is a
// preferred match that was found using public suffix matching, an additional
// result that also used public suffix matching, and a third result that was
// found without using public suffix matching.
TEST(PasswordFormFillDataTest, TestPublicSuffixDomainMatching) {
// Create the current form on the page.
PasswordForm form_on_page;
form_on_page.origin = GURL("https://foo.com/");
form_on_page.action = GURL("https://foo.com/login");
form_on_page.username_element = ASCIIToUTF16("username");
form_on_page.username_value = ASCIIToUTF16("test@gmail.com");
form_on_page.password_element = ASCIIToUTF16("password");
form_on_page.password_value = ASCIIToUTF16("test");
form_on_page.submit_element = ASCIIToUTF16("");
form_on_page.signon_realm = "https://foo.com/";
form_on_page.preferred = false;
form_on_page.scheme = PasswordForm::SCHEME_HTML;
// Create a match from the database that matches using public suffix.
PasswordForm preferred_match;
preferred_match.origin = GURL("https://mobile.foo.com/");
preferred_match.action = GURL("https://mobile.foo.com/login");
preferred_match.username_element = ASCIIToUTF16("username");
preferred_match.username_value = ASCIIToUTF16("test@gmail.com");
preferred_match.password_element = ASCIIToUTF16("password");
preferred_match.password_value = ASCIIToUTF16("test");
preferred_match.submit_element = ASCIIToUTF16("");
preferred_match.signon_realm = "https://foo.com/";
preferred_match.is_public_suffix_match = true;
preferred_match.preferred = true;
preferred_match.scheme = PasswordForm::SCHEME_HTML;
// Create a match that matches exactly, so |is_public_suffix_match| has a
// default value false.
std::unique_ptr<PasswordForm> scoped_exact_match(new PasswordForm);
PasswordForm& exact_match = *scoped_exact_match;
exact_match.origin = GURL("https://foo.com/");
exact_match.action = GURL("https://foo.com/login");
exact_match.username_element = ASCIIToUTF16("username");
exact_match.username_value = ASCIIToUTF16("test1@gmail.com");
exact_match.password_element = ASCIIToUTF16("password");
exact_match.password_value = ASCIIToUTF16("test");
exact_match.submit_element = ASCIIToUTF16("");
exact_match.signon_realm = "https://foo.com/";
exact_match.preferred = false;
exact_match.scheme = PasswordForm::SCHEME_HTML;
// Create a match that was matched using public suffix, so
// |is_public_suffix_match| == true.
std::unique_ptr<PasswordForm> scoped_public_suffix_match(new PasswordForm);
PasswordForm& public_suffix_match = *scoped_public_suffix_match;
public_suffix_match.origin = GURL("https://foo.com/");
public_suffix_match.action = GURL("https://foo.com/login");
public_suffix_match.username_element = ASCIIToUTF16("username");
public_suffix_match.username_value = ASCIIToUTF16("test2@gmail.com");
public_suffix_match.password_element = ASCIIToUTF16("password");
public_suffix_match.password_value = ASCIIToUTF16("test");
public_suffix_match.submit_element = ASCIIToUTF16("");
public_suffix_match.is_public_suffix_match = true;
public_suffix_match.signon_realm = "https://foo.com/";
public_suffix_match.preferred = false;
public_suffix_match.scheme = PasswordForm::SCHEME_HTML;
// Add one exact match and one public suffix match.
PasswordFormMap matches;
matches.insert(std::make_pair(exact_match.username_value,
std::move(scoped_exact_match)));
matches.insert(std::make_pair(public_suffix_match.username_value,
std::move(scoped_public_suffix_match)));
PasswordFormFillData result;
InitPasswordFormFillData(form_on_page,
matches,
&preferred_match,
true,
false,
&result);
EXPECT_TRUE(result.wait_for_username);
// The preferred realm should match the signon realm from the
// preferred match so the user can see where the result came from.
EXPECT_EQ(preferred_match.signon_realm, result.preferred_realm);
// The realm of the exact match should be empty.
PasswordFormFillData::LoginCollection::const_iterator iter =
result.additional_logins.find(exact_match.username_value);
EXPECT_EQ(std::string(), iter->second.realm);
// The realm of the public suffix match should be set to the original signon
// realm so the user can see where the result came from.
iter = result.additional_logins.find(public_suffix_match.username_value);
EXPECT_EQ(iter->second.realm, public_suffix_match.signon_realm);
}
// Tests that the InitPasswordFormFillData behaves correctly when there is a
// preferred match that was found using affiliation based matching, an
// additional result that also used affiliation based matching, and a third
// result that was found without using affiliation based matching.
TEST(PasswordFormFillDataTest, TestAffiliationMatch) {
// Create the current form on the page.
PasswordForm form_on_page;
form_on_page.origin = GURL("https://foo.com/");
form_on_page.action = GURL("https://foo.com/login");
form_on_page.username_element = ASCIIToUTF16("username");
form_on_page.username_value = ASCIIToUTF16("test@gmail.com");
form_on_page.password_element = ASCIIToUTF16("password");
form_on_page.password_value = ASCIIToUTF16("test");
form_on_page.submit_element = ASCIIToUTF16("");
form_on_page.signon_realm = "https://foo.com/";
form_on_page.preferred = false;
form_on_page.scheme = PasswordForm::SCHEME_HTML;
// Create a match from the database that matches using affiliation.
PasswordForm preferred_match;
preferred_match.origin = GURL("android://hash@foo.com/");
preferred_match.username_value = ASCIIToUTF16("test@gmail.com");
preferred_match.password_value = ASCIIToUTF16("test");
preferred_match.signon_realm = "android://hash@foo.com/";
preferred_match.is_affiliation_based_match = true;
preferred_match.preferred = true;
// Create a match that matches exactly, so |is_affiliation_based_match| has a
// default value false.
std::unique_ptr<PasswordForm> scoped_exact_match(new PasswordForm);
PasswordForm& exact_match = *scoped_exact_match;
exact_match.origin = GURL("https://foo.com/");
exact_match.action = GURL("https://foo.com/login");
exact_match.username_element = ASCIIToUTF16("username");
exact_match.username_value = ASCIIToUTF16("test1@gmail.com");
exact_match.password_element = ASCIIToUTF16("password");
exact_match.password_value = ASCIIToUTF16("test");
exact_match.submit_element = ASCIIToUTF16("");
exact_match.signon_realm = "https://foo.com/";
exact_match.preferred = false;
exact_match.scheme = PasswordForm::SCHEME_HTML;
// Create a match that was matched using public suffix, so
// |is_public_suffix_match| == true.
std::unique_ptr<PasswordForm> scoped_affiliated_match(new PasswordForm);
PasswordForm& affiliated_match = *scoped_affiliated_match;
affiliated_match.origin = GURL("android://hash@foo1.com/");
affiliated_match.username_value = ASCIIToUTF16("test2@gmail.com");
affiliated_match.password_value = ASCIIToUTF16("test");
affiliated_match.is_affiliation_based_match = true;
affiliated_match.signon_realm = "https://foo1.com/";
affiliated_match.preferred = false;
affiliated_match.scheme = PasswordForm::SCHEME_HTML;
// Add one exact match and one affiliation based match.
PasswordFormMap matches;
matches.insert(std::make_pair(exact_match.username_value,
std::move(scoped_exact_match)));
matches.insert(std::make_pair(affiliated_match.username_value,
std::move(scoped_affiliated_match)));
PasswordFormFillData result;
InitPasswordFormFillData(form_on_page, matches, &preferred_match, false,
false, &result);
EXPECT_FALSE(result.wait_for_username);
// The preferred realm should match the signon realm from the
// preferred match so the user can see where the result came from.
EXPECT_EQ(preferred_match.signon_realm, result.preferred_realm);
// The realm of the exact match should be empty.
PasswordFormFillData::LoginCollection::const_iterator iter =
result.additional_logins.find(exact_match.username_value);
EXPECT_EQ(std::string(), iter->second.realm);
// The realm of the affiliation based match should be set to the original
// signon realm so the user can see where the result came from.
iter = result.additional_logins.find(affiliated_match.username_value);
EXPECT_EQ(iter->second.realm, affiliated_match.signon_realm);
}
} // namespace autofill
| [
"zzbthechaos@gmail.com"
] | zzbthechaos@gmail.com |
3e71c5e8cff2d4ce9f210f19693cfec8c006b96e | ce28ec891a0d502e7461fd121b4d96a308c9dab7 | /dbmerge/AttributeMergeItem.cc | dbc59512354a302f295b393681673af2fcc1d52a | [] | no_license | aktau/Tangerine | fe84f6578ce918d1fa151138c0cc5780161b3b8f | 179ac9901513f90b17c5cd4add35608a7101055b | refs/heads/master | 2020-06-08T17:07:53.860642 | 2011-08-14T09:41:41 | 2011-08-14T09:41:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,336 | cc | #include "AttributeMergeItem.h"
#include <QtGui>
#define MERGE_DEBUG 2
struct HistoryLessThan {
bool operator()(const HistoryRecord& lhs, const HistoryRecord& rhs) const {
return lhs.timestamp < rhs.timestamp;
}
};
AttributeMergeItem::AttributeMergeItem(int matchId, const QList<HistoryRecord>& masterHistory, const QList<HistoryRecord>& slaveHistory, const QString& attributeName)
: mMatchId(matchId), mMasterHistory(masterHistory), mSlaveHistory(slaveHistory), mMergeIn(false), mAttributeName(attributeName) { }
void AttributeMergeItem::accept(const SimpleMergeAction *action) {
MergeAction *newAction = NULL;
qDebug() << "AttributeMergeItem::accept: accepting" << action;
switch (action->type()) {
case Merge::CHOOSE_SLAVE: {
chooseSlave();
} break;
case Merge::MOST_RECENT: {
chooseMostRecent();
} break;
case Merge::CHOOSE_HISTORY: {
newAction = chooseHistory();
} break;
case Merge::DONT_MERGE:
mMessage = QObject::tr("User chose not to merge");
break;
default:
qDebug() << "MatchMergeItem::accept: received unacceptable action";
return;
}
store((newAction) ? newAction : action);
delete newAction;
}
bool AttributeMergeItem::execute(SQLDatabase *db, MergeMapper *mapper) {
bool success = true;
if (currentActionType() == Merge::ASSIGN_NEW_ID) {
}
//mapper->addMapping(MergeMapper::MATCH_ID, mOldId, mNewId);
setDone(true);
return true;
}
MergeAction *AttributeMergeItem::chooseMostRecent() {
qDebug() << "Choosing most recent!!!!";
MergeAction *newAction = NULL;
if (newAction = decideForInvalidHistories()) {
return newAction;
}
const HistoryRecord& leftMostRecent = mMasterHistory.last();
const HistoryRecord& rightMostRecent = mSlaveHistory.last();
HistoryLessThan hLess;
if (hLess(leftMostRecent, rightMostRecent)) {
// pick right
mMessage = "Slave was edited more recently than master";
newAction = new ChooseSlaveAction;
}
else {
mMessage = "Master was edited more recently than slave";
newAction = new DontMergeAction;
}
return newAction;
}
MergeAction *AttributeMergeItem::chooseSlave() {
qDebug() << "Choosing slave!!!!";
MergeAction *newAction = NULL;
if (newAction = decideForInvalidHistories()) {
return newAction;
}
mMessage = "Chose slave";
newAction = new ChooseSlaveAction;
return newAction;
}
MergeAction *AttributeMergeItem::chooseHistory() {
MergeAction *newAction = NULL;
if (newAction = decideForInvalidHistories()) {
return newAction;
}
const HistoryRecord& leftMostRecent = mMasterHistory.last();
const HistoryRecord& rightMostRecent = mSlaveHistory.last();
if (leftMostRecent == rightMostRecent) {
#ifdef MERGE_DEBUG
qDebug() << "RESULT: Both were equal, not doing anything: " << leftMostRecent.toString();
qDebug() << "----------------------------------";
#endif
mMessage = "No action required, both histories are the same";
return new DontMergeAction;
}
#if MERGE_DEBUG >= 2
qDebug() << "Master history";
int i = 0;
foreach (const HistoryRecord& r, mMasterHistory) {
qDebug() << ++i << "-" << r.toString();
}
qDebug() << "Slave history";
i = 0;
foreach (const HistoryRecord& r, mSlaveHistory) {
qDebug() << ++i << "-" << r.toString();
}
#endif
HistoryLessThan hLess;
QList<HistoryRecord>::const_iterator found = qBinaryFind(mSlaveHistory.begin(), mSlaveHistory.end(), leftMostRecent, hLess);
// look for shared history, conflict, resolve
if (found != mSlaveHistory.end()) {
if (leftMostRecent == *found) {
qDebug() << "RESULT: Found master history inside of slave: supposed to merge!";
mMessage = QString("Slave is more current than master, merging");
}
else {
qDebug() << "RESULT: Freak accident #1: exactly the same timestamp but not the same, what to do?:" << leftMostRecent.toString() << "vs" << found->toString();
newAction = new NoAction;
mMessage = QString("Couldn't verify history agreement, manual action required");
//while (++found != rightHistory.end()) { ... }
}
}
else {
qDebug() << "RESULT: Did NOT find master history inside of slave";
found = qBinaryFind(mMasterHistory.begin(), mMasterHistory.end(), rightMostRecent, hLess);
if (found != mMasterHistory.end()) {
if (rightMostRecent == *found) {
qDebug() << "RESULT: Found last slave update inside of master history: do not merge, master is more recent!";
mMessage = QString("Master is more current than slave, not merging");
}
else {
qDebug() << "RESULT: Freak accident #2: exactly the same timestamp but not the same, what to do?:" << rightMostRecent.toString() << "vs" << found->toString();
newAction = new NoAction;
mMessage = QString("Couldn't verify history agreement, manual action required");
}
}
else {
qDebug() << "RESULT: Histories diverged or were never the same in the first place: conflict resolution magic here";
mMessage = QString("Histories diverged or were never the same in the first place, manual action required");
newAction = new NoAction;
}
}
qDebug() << "----------------------------------";
return newAction;
}
MergeAction *AttributeMergeItem::decideForInvalidHistories() {
if (mSlaveHistory.isEmpty()) {
// pick master no matter what
mMessage = QString("Slave history wasn't available, picking master");
return new DontMergeAction;
}
if (mMasterHistory.isEmpty()) {
// pick slave now (because slave hist is not empty)
mMessage = QString("Master history wasn't available, picking slave");
return new ChooseSlaveAction;
}
return NULL;
}
QWidget *AttributeMergeItem::informationWidget() const {
QTableWidget *masterTable = createTableWidget(mMasterHistory);
QTableWidget *slaveTable = createTableWidget(mSlaveHistory);
QLabel *title = new QLabel(QString("Showing data for attribute '<b>%1</b>' on match <b>%2<b>").arg(mAttributeName).arg(mMatchId));
title->setTextFormat(Qt::RichText);
//QHBoxLayout *layout = new QHBoxLayout;
QGridLayout *layout = new QGridLayout;
layout->addWidget(title, 0, 0);
layout->addWidget(new QLabel("Master table:"), 1, 0);
layout->addWidget(masterTable, 2, 0);
layout->addWidget(new QLabel("Slave table:"), 1, 1);
layout->addWidget(slaveTable, 2, 1);
QWidget *widget = new QWidget();
widget->setLayout(layout);
return widget;
}
QTableWidget *AttributeMergeItem::createTableWidget(const QList<HistoryRecord>& history) const {
QTableWidget *table = new QTableWidget(0, 3);
table->setHorizontalHeaderLabels(QStringList() << QObject::tr("Time") << QObject::tr("User") << QObject::tr("Value"));
//table->setColumnWidth(0, 50);
//table->setColumnWidth(1, 50);
//mItemList->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
//mItemList->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
table->horizontalHeader()->setStretchLastSection(true);
table->verticalHeader()->setDefaultSectionSize(20);
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
table->setAlternatingRowColors(true);
table->setSelectionBehavior(QAbstractItemView::SelectRows);
/*
QTableWidgetItem *actionDescription = new QTableWidgetItem(action->description());
actionDescription->setForeground(!item->isResolved() ? QBrush(Qt::red) : QBrush(Qt::green));
actionDescription->setData(Qt::UserRole, qVariantFromValue((void *) item));
*/
table->setRowCount(history.size());
int row = 0;
foreach (const HistoryRecord& record, history) {
qDebug() << "Filling up" << record.timestamp.toString() << record.userId << record.matchId << record.value.toString();
QTableWidgetItem *time = new QTableWidgetItem(record.timestamp.toString("hh:mm dd/MM/yy"));
time->setForeground(QBrush(Qt::white));
time->setBackgroundColor(Qt::black);
table->setItem(row, 0, time);
table->setItem(row, 1, new QTableWidgetItem(QString::number(record.userId)));
//table->setItem(row, 2, new QTableWidgetItem(QString::number(record.matchId)));
table->setItem(row, 2, new QTableWidgetItem(record.value.toString()));
++row;
}
table->resizeColumnsToContents();
//mItemList->resizeColumnToContents(1);
return table;
}
| [
"nicolashillegeer@gmail.com"
] | nicolashillegeer@gmail.com |
937fb3c7746f8d89a38ac9eecf7fedfdbb72032b | d4c53e51993154f9a859c206c5c87db94772f545 | /src/Mock.re | a8f125604caee0891f7fde0db8d96aabd760acb7 | [] | no_license | x86chi/thinking-in-react | b955656388ba8f486cfb90a6efae52bea94653a4 | bca46e95ae0b6039e9f71d81ef877e98f8202f19 | refs/heads/reason | 2021-08-08T09:17:39.402298 | 2020-12-22T05:54:10 | 2020-12-22T06:07:17 | 245,308,956 | 0 | 0 | null | 2020-12-22T06:52:40 | 2020-03-06T02:02:19 | TypeScript | UTF-8 | C++ | false | false | 707 | re | type product = {
category: string,
price: string,
stocked: bool,
name: string,
};
let proudcts = [|
{
category: "Sporting Goods",
price: "$49.99",
stocked: true,
name: "Football",
},
{
category: "Sporting Goods",
price: "$9.99",
stocked: true,
name: "Baseball",
},
{
category: "Sporting Goods",
price: "$29.99",
stocked: false,
name: "Basketball",
},
{
category: "Electronics",
price: "$99.99",
stocked: true,
name: "iPod Touch",
},
{
category: "Electronics",
price: "$399.99",
stocked: false,
name: "iPhone 5",
},
{category: "Electronics", price: "$199.99", stocked: true, name: "Nexus 7"},
|];
| [
"iam@muhun.kim"
] | iam@muhun.kim |
d3753bca2fc368961b14ccd93af14547a70a8bde | a73f828c92d48867c71af7e4fdb9dc5a763ccb39 | /SZD.h | 06fa8f93ab3bc2d69aac8fcffc1bcc3f5a5c54a5 | [] | no_license | komelq/default | c6fbc503fa1c349623e82ce7817a7f334db9e9f8 | 2506ff97ebf62445468256f84747d7cb6386af91 | refs/heads/master | 2016-09-06T13:15:48.175297 | 2014-04-05T14:54:45 | 2014-04-05T14:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,271 | h | //---------------------------------------------------------------------------
#ifndef SZDH
#define SZDH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <Grids.hpp>
#include <ExtCtrls.hpp>
#include <vector.h>
#include "Chart.hpp"
#include "TeEngine.hpp"
#include "TeeProcs.hpp"
#include "Series.hpp"
#include <Menus.hpp>
#include <losow.h>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TGroupBox *GroupBox1;
TComboBox *RozmiarSieciCB;
TEdit *IloscIteracjiE;
TUpDown *IloscIteracjiUD;
TUpDown *LiczbaAbonentowUD;
TUpDown *PrawdRozpRozmUD;
TEdit *IloscKanalowE;
TEdit *LiczbaAbonentowE;
TEdit *PrawdRozpRozmE;
TEdit *SzerAutostradyE;
TLabel *Label1;
TEdit *ZiarnoE;
TEdit *OdchylenieE;
TEdit *SredniaE;
TLabel *Label2;
TCheckBox *StalaCB;
TCheckBox *CBZZ;
TCheckBox *CBBZ;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TLabel *Label8;
TUpDown *SzerAutostradyUD;
TGroupBox *GroupBox2;
TTrackBar *ProporcjaTB;
TLabel *Label9;
TLabel *Label10;
TLabel *Label11;
TTabControl *Zakladki;
TButton *StartB;
TImage *Image;
TLabel *Label14;
TLabel *Label15;
TTimer *Timer;
TMemo *Wynik;
TMemo *Wynik2;
TChart *Wykres;
TProgressBar *PostepPB;
TLabel *Label16;
TLabel *Label17;
TMemo *Wynik3;
TLabel *Label18;
TGroupBox *GroupBox3;
TImage *Image1;
TImage *Image2;
TImage *Image3;
TLabel *Label19;
TLabel *Label20;
TLabel *Label21;
TUpDown *IloscKanalowUD;
TLabel *Label22;
TLabel *Label23;
TFastLineSeries *Wykorzystanie;
TMainMenu *MainMenu1;
TMenuItem *Symulator1;
TMenuItem *Zakocz1;
TMenuItem *Zapiszwykres1;
TMenuItem *Zapiszdane1;
TGroupBox *GroupBox4;
TMenuItem *About1;
void __fastcall RozmiarSieciCBKeyPress(TObject *Sender, char &Key);
void __fastcall IloscIteracjiEKeyPress(TObject *Sender, char &Key);
void __fastcall IloscIteracjiNaSekundeEKeyPress(TObject *Sender, char &Key);
void __fastcall IloscKanalowEKeyPress(TObject *Sender, char &Key);
void __fastcall LiczbaAbonentowEKeyPress(TObject *Sender, char &Key);
void __fastcall PrawdRozpRozmEKeyPress(TObject *Sender, char &Key);
void __fastcall MaxRozmowyEKeyPress(TObject *Sender, char &Key);
void __fastcall SzerAutostradyEKeyPress(TObject *Sender, char &Key);
void __fastcall ZiarnoEKeyPress(TObject *Sender, char &Key);
void __fastcall OdchylenieEKeyPress(TObject *Sender, char &Key);
void __fastcall SredniaEKeyPress(TObject *Sender, char &Key);
void __fastcall ZakladkiMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall FormCreate(TObject *Sender);
void __fastcall StartBClick(TObject *Sender);
void __fastcall FormKeyPress(TObject *Sender, char &Key);
void __fastcall ProporcjaTBChange(TObject *Sender);
void __fastcall CBBZContextPopup(TObject *Sender, TPoint &MousePos,
bool &Handled);
void __fastcall CBBZMouseActivate(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y, int HitTest,
TMouseActivate &MouseActivate);
void __fastcall CBZZMouseActivate(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y, int HitTest,
TMouseActivate &MouseActivate);
void __fastcall TimerTimer(TObject *Sender);
void __fastcall ZakladkiChange(TObject *Sender);
void __fastcall IloscIteracjiUDClick(TObject *Sender, TUDBtnType Button);
void __fastcall IloscIteracjiEChange(TObject *Sender);
void __fastcall LiczbaKanalowUDClick(TObject *Sender, TUDBtnType Button);
void __fastcall IloscKanalowEChange(TObject *Sender);
void __fastcall LiczbaAbonentowEChange(TObject *Sender);
void __fastcall LiczbaAbonentowUDClick(TObject *Sender, TUDBtnType Button);
void __fastcall SzerAutostradyEChange(TObject *Sender);
void __fastcall SzerAutostradyUDClick(TObject *Sender, TUDBtnType Button);
void __fastcall PrawdRozpRozmUDClick(TObject *Sender, TUDBtnType Button);
void __fastcall PrawdRozpRozmEChange(TObject *Sender);
void __fastcall ZamknijBClick(TObject *Sender);
void __fastcall Zakocz1Click(TObject *Sender);
void __fastcall Zapiszwykres1Click(TObject *Sender);
void __fastcall Zapiszdane1Click(TObject *Sender);
void __fastcall About1Click(TObject *Sender);
private: // User declarations
public: // User declarations
void RysowanieSiatki (double SZER, double DL, int ROZMIAR );
void RysowaniePkt ();
void Ruch();
void Zaznacz();
void Czas();
double Silnia(int n);
// double Poisson(int k, double lambda);
//double Normalny(int k, double oczekiwana, double odchylenie);
vector<int> doRozmowy;
vector<double> poissonV;
int rozmiarSieci, iteracje, kanaly, abonenci, aboAutostrada, aboStatyczny, szerokosc, ileKomorki,
odchylenie, srednia, ziarno, temp, zdarzenia, oczekiwana, wylosowanyKierunek, dodatek;
double prawdRozmowy;
bool aboTest, stala;
TPoint start;
TPoint start2;
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
| [
"kamil.jagiello85@gmail.com"
] | kamil.jagiello85@gmail.com |
ae54e3482024f72b66e1a7991212e51d57360671 | 31f5cddb9885fc03b5c05fba5f9727b2f775cf47 | /thirdparty/physx/physx/source/scenequery/src/SqAABBTree.h | bd8e9a18f0792745f26b54d4122f194ab23202da | [
"MIT"
] | permissive | timi-liuliang/echo | 2935a34b80b598eeb2c2039d686a15d42907d6f7 | d6e40d83c86431a819c6ef4ebb0f930c1b4d0f24 | refs/heads/master | 2023-08-17T05:35:08.104918 | 2023-08-11T18:10:35 | 2023-08-11T18:10:35 | 124,620,874 | 822 | 102 | MIT | 2021-06-11T14:29:03 | 2018-03-10T04:07:35 | C++ | UTF-8 | C++ | false | false | 10,423 | h | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of NVIDIA CORPORATION nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#ifndef SQ_AABBTREE_H
#define SQ_AABBTREE_H
#include "foundation/PxMemory.h"
#include "foundation/PxBounds3.h"
#include "PsUserAllocated.h"
#include "PsVecMath.h"
#include "SqTypedef.h"
#include "GuAABBTreeBuild.h"
#include "PsArray.h"
namespace physx
{
using namespace shdfnd::aos;
namespace Sq
{
class AABBTreeUpdateMap;
typedef Ps::Pair<PxU32, PxU32> TreeMergePair;
typedef Ps::Array<TreeMergePair > TreeMergeMap;
class BitArray
{
public:
BitArray() : mBits(NULL), mSize(0) {}
BitArray(PxU32 nb_bits) { init(nb_bits); }
~BitArray() { PX_FREE_AND_RESET(mBits); mBits = NULL; }
bool init(PxU32 nb_bits);
// Data management
PX_FORCE_INLINE void setBit(PxU32 bit_number)
{
mBits[bit_number>>5] |= 1<<(bit_number&31);
}
PX_FORCE_INLINE void clearBit(PxU32 bit_number)
{
mBits[bit_number>>5] &= ~(1<<(bit_number&31));
}
PX_FORCE_INLINE void toggleBit(PxU32 bit_number)
{
mBits[bit_number>>5] ^= 1<<(bit_number&31);
}
PX_FORCE_INLINE void clearAll() { PxMemZero(mBits, mSize*4); }
PX_FORCE_INLINE void setAll() { PxMemSet(mBits, 0xff, mSize*4); }
void resize(PxU32 maxBitNumber);
// Data access
PX_FORCE_INLINE Ps::IntBool isSet(PxU32 bit_number) const
{
return Ps::IntBool(mBits[bit_number>>5] & (1<<(bit_number&31)));
}
PX_FORCE_INLINE const PxU32* getBits() const { return mBits; }
PX_FORCE_INLINE PxU32 getSize() const { return mSize; }
protected:
PxU32* mBits; //!< Array of bits
PxU32 mSize; //!< Size of the array in dwords
};
//! AABB tree node used for runtime (smaller than for build)
class AABBTreeRuntimeNode : public Ps::UserAllocated
{
public:
PX_FORCE_INLINE AABBTreeRuntimeNode() {}
PX_FORCE_INLINE ~AABBTreeRuntimeNode() {}
PX_FORCE_INLINE PxU32 isLeaf() const { return mData&1; }
PX_FORCE_INLINE const PxU32* getPrimitives(const PxU32* base) const { return base + (mData>>5); }
PX_FORCE_INLINE PxU32* getPrimitives(PxU32* base) { return base + (mData>>5); }
PX_FORCE_INLINE PxU32 getNbPrimitives() const { return (mData>>1)&15; }
PX_FORCE_INLINE PxU32 getPosIndex() const { return mData>>1; }
PX_FORCE_INLINE PxU32 getNegIndex() const { return (mData>>1) + 1; }
PX_FORCE_INLINE const AABBTreeRuntimeNode* getPos(const AABBTreeRuntimeNode* base) const { return base + (mData>>1); }
PX_FORCE_INLINE const AABBTreeRuntimeNode* getNeg(const AABBTreeRuntimeNode* base) const { const AABBTreeRuntimeNode* P = getPos(base); return P ? P+1 : NULL;}
PX_FORCE_INLINE AABBTreeRuntimeNode* getPos(AABBTreeRuntimeNode* base) { return base + (mData >> 1); }
PX_FORCE_INLINE AABBTreeRuntimeNode* getNeg(AABBTreeRuntimeNode* base) { AABBTreeRuntimeNode* P = getPos(base); return P ? P + 1 : NULL; }
PX_FORCE_INLINE PxU32 getNbRuntimePrimitives() const { return (mData>>1)&15; }
PX_FORCE_INLINE void setNbRunTimePrimitives(PxU32 val)
{
PX_ASSERT(val<16);
PxU32 data = mData & ~(15<<1);
data |= val<<1;
mData = data;
}
PX_FORCE_INLINE void getAABBCenterExtentsV(Vec3V* center, Vec3V* extents) const
{
const Vec4V minV = V4LoadU(&mBV.minimum.x);
const Vec4V maxV = V4LoadU(&mBV.maximum.x);
const float half = 0.5f;
const FloatV halfV = FLoad(half);
*extents = Vec3V_From_Vec4V(V4Scale(V4Sub(maxV, minV), halfV));
*center = Vec3V_From_Vec4V(V4Scale(V4Add(maxV, minV), halfV));
}
PX_FORCE_INLINE void getAABBCenterExtentsV2(Vec3V* center, Vec3V* extents) const
{
const Vec4V minV = V4LoadU(&mBV.minimum.x);
const Vec4V maxV = V4LoadU(&mBV.maximum.x);
*extents = Vec3V_From_Vec4V(V4Sub(maxV, minV));
*center = Vec3V_From_Vec4V(V4Add(maxV, minV));
}
PX_FORCE_INLINE void getAABBMinMaxV(Vec4V* minV, Vec4V* maxV) const
{
*minV = V4LoadU(&mBV.minimum.x);
*maxV = V4LoadU(&mBV.maximum.x);
}
PxBounds3 mBV; // Global bounding-volume enclosing all the node-related primitives
PxU32 mData; // 27 bits node or prim index|4 bits #prims|1 bit leaf
};
//! Contains AABB-tree merge parameters
class AABBTreeMergeData
{
public:
AABBTreeMergeData(PxU32 nbNodes, const AABBTreeRuntimeNode* nodes, PxU32 nbIndices, const PxU32* indices, PxU32 indicesOffset) :
mNbNodes(nbNodes), mNodes(nodes), mNbIndices(nbIndices), mIndices(indices), mIndicesOffset(indicesOffset)
{
}
~AABBTreeMergeData() {}
PX_FORCE_INLINE const AABBTreeRuntimeNode& getRootNode() const { return mNodes[0]; }
public:
PxU32 mNbNodes; //!< Number of nodes of AABB tree merge
const AABBTreeRuntimeNode* mNodes; //!< Nodes of AABB tree merge
PxU32 mNbIndices; //!< Number of indices of AABB tree merge
const PxU32* mIndices; //!< Indices of AABB tree merge
PxU32 mIndicesOffset; //!< Indices offset from pruning pool
};
// Progressive building
class FIFOStack;
//~Progressive building
//! AABB-tree, N primitives/leaf
class AABBTree : public Ps::UserAllocated
{
public:
AABBTree();
~AABBTree();
// Build
bool build(Gu::AABBTreeBuildParams& params);
// Progressive building
PxU32 progressiveBuild(Gu::AABBTreeBuildParams& params, Gu::BuildStats& stats, PxU32 progress, PxU32 limit);
//~Progressive building
void release(bool clearRefitMap=true);
// Merge tree with another one
void mergeTree(const AABBTreeMergeData& tree);
// Initialize tree from given merge data
void initTree(const AABBTreeMergeData& tree);
// Data access
PX_FORCE_INLINE const PxU32* getIndices() const { return mIndices; }
PX_FORCE_INLINE PxU32* getIndices() { return mIndices; }
PX_FORCE_INLINE void setIndices(PxU32* indices) { mIndices = indices; }
PX_FORCE_INLINE PxU32 getNbNodes() const { return mTotalNbNodes; }
PX_FORCE_INLINE const AABBTreeRuntimeNode* getNodes() const { return mRuntimePool; }
PX_FORCE_INLINE AABBTreeRuntimeNode* getNodes() { return mRuntimePool; }
PX_FORCE_INLINE void setNodes(AABBTreeRuntimeNode* nodes) { mRuntimePool = nodes; }
PX_FORCE_INLINE PxU32 getTotalPrims() const { return mTotalPrims; }
#if PX_DEBUG
void validate() const;
#endif
void shiftOrigin(const PxVec3& shift);
// Shift indices of the tree by offset. Used for merged trees, when initial indices needs to be shifted to match indices in current pruning pool
void shiftIndices(PxU32 offset);
private:
PxU32* mIndices; //!< Indices in the app list. Indices are reorganized during build (permutation).
PxU32 mNbIndices; //!< Nb indices
AABBTreeRuntimeNode* mRuntimePool; //!< Linear pool of nodes.
Gu::NodeAllocator mNodeAllocator;
PxU32* mParentIndices; //!< PT: hot/cold split, keep parent data in separate array
// Stats
PxU32 mTotalNbNodes; //!< Number of nodes in the tree.
PxU32 mTotalPrims; //!< Copy of final BuildStats::mTotalPrims
// Progressive building
FIFOStack* mStack;
//~Progressive building
bool buildInit(Gu::AABBTreeBuildParams& params, Gu::BuildStats& stats);
void buildEnd(Gu::AABBTreeBuildParams& params, Gu::BuildStats& stats);
// tree merge
void mergeRuntimeNode(AABBTreeRuntimeNode& targetNode, const AABBTreeMergeData& tree, PxU32 targetNodeIndex);
void mergeRuntimeLeaf(AABBTreeRuntimeNode& targetNode, const AABBTreeMergeData& tree, PxU32 targetNodeIndex);
void addRuntimeChilds(PxU32& nodeIndex, const AABBTreeMergeData& tree);
void traverseRuntimeNode(AABBTreeRuntimeNode& targetNode, const AABBTreeMergeData& tree, PxU32 nodeIndex);
// REFIT
public:
void fullRefit(const PxBounds3* boxes);
// adds node[index] to a list of nodes to refit when refitMarkedNodes is called
// Note that this includes updating the hierarchy up the chain
void markNodeForRefit(TreeNodeIndex nodeIndex);
void refitMarkedNodes(const PxBounds3* boxes);
private:
BitArray mRefitBitmask; //!< bit is set for each node index in markForRefit
PxU32 mRefitHighestSetWord;
//~REFIT
};
} // namespace Sq
}
#endif // SQ_AABBTREE_H
| [
"qq79402005@gmail.com"
] | qq79402005@gmail.com |
86a5b2061bbe2fe24f8edca2a5ca13449a9dae2f | bfdee286a665ea1f0ec3ebf4e71236c23ab73dbd | /log/kflogger.cc | 514e4b79a7084d10f4519bc8442386064a23efec | [] | no_license | qcghdy/kuafu | b0b604f0a8e252e10cd77587b386379db022eb08 | 6b69f5df06e1f77d6dfe5b139461ac3b9a735c69 | refs/heads/master | 2020-03-22T19:55:39.528406 | 2018-06-10T07:45:06 | 2018-06-10T07:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,932 | cc | #include "log/kflogger.h"
#include <atomic>
#include <thread>
#include <log4cplus/fileappender.h>
#include <log4cplus/consoleappender.h>
#include <log4cplus/layout.h>
namespace kuafu {
static const char* kKuafuLoggerDefaultFileName = "__kuafu_logger_default__.log";
static const char* kKuafuLoggerDefaultPattern = "[%p] [%D{%m/%d/%y %H:%M:%S,%q}] [%t] [%l] - %m %n";
static const char* kKuafuLoggerDefaultFileAppendername = "__kuafu_logger_file_log__";
static const char* kKuafuLoggerDefaultConsoleAppendername = "__kuafu_logger_console_log__";
static std::atomic<bool> sKuafuLoggerInitStart(false);
static std::atomic<bool> sKuafuLoggerInitFinished(false);
//---------------------------------------------
log4cplus::Logger Logger::sLogger = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("__kuafu_logger__"));
void Logger::init(Logger::Level level,
const char* pattern,
const char* file_name,
bool output_console) {
bool expected = false;
if (!sKuafuLoggerInitStart.compare_exchange_strong(expected, true)) {
while (!sKuafuLoggerInitFinished.load(std::memory_order_acquire)) {
std::this_thread::yield();
}
return;
}
if (nullptr == file_name ||
'\0' == file_name[0]) {
file_name = kKuafuLoggerDefaultFileName;
}
if (nullptr == pattern ||
'\0' == pattern[0]) {
pattern = kKuafuLoggerDefaultPattern;
}
log4cplus::SharedAppenderPtr fileAppender(new log4cplus::RollingFileAppender
(file_name));
if (nullptr != fileAppender.get()) {
fileAppender->setName(LOG4CPLUS_TEXT(kKuafuLoggerDefaultFileAppendername));
// use std::auto_ptr to log4cplus::Appender::setLayout
std::auto_ptr<log4cplus::Layout> layout(new log4cplus::PatternLayout(
pattern));
if (nullptr != layout.get()) {
fileAppender->setLayout(layout);
}
sLogger.addAppender(fileAppender);
}
if (output_console) {
log4cplus::SharedAppenderPtr consoleAppender(new log4cplus::ConsoleAppender());
if (nullptr != consoleAppender.get()) {
consoleAppender->setName(LOG4CPLUS_TEXT(kKuafuLoggerDefaultConsoleAppendername));
// use std::auto_ptr to log4cplus::Appender::setLayout
std::auto_ptr<log4cplus::Layout> console_layout(new log4cplus::PatternLayout(
pattern));
if (nullptr != console_layout.get()) {
consoleAppender->setLayout(console_layout);
}
sLogger.addAppender(consoleAppender);
}
}
sLogger.setLogLevel(log4cplus::LogLevel(static_cast<int>(level)));
sKuafuLoggerInitFinished.store(true, std::memory_order_release);
}
} //namespace kuafu
| [
"liuwei3-s@360.cn"
] | liuwei3-s@360.cn |
0b1ee91dc1a941553d311124c6d938413c48a7a6 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_new_hunk_3838.cpp | 07f037682d076db38f79b5eb00dd16575aa10c13 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | return _("deleted by us:");
case 6:
return _("both added:");
case 7:
return _("both modified:");
default:
die("BUG: unhandled unmerged status %x", stagemask);
}
}
static const char *wt_status_diff_status_string(int status)
{
switch (status) {
| [
"993273596@qq.com"
] | 993273596@qq.com |
521913745efcacb4c50a0e52a19689a1e5880b6a | b16e2f8cc94df8320f9caf8c8592fa21b1f7c413 | /Codeforces/893B/brute_force.cpp | e6878a0cad4a86e4a36a3126ccb4df3b74db371a | [
"MIT"
] | permissive | codgician/Competitive-Programming | 000dfafea0575b773b0a10502f5128d2088f3398 | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | refs/heads/master | 2022-06-13T04:59:52.322037 | 2020-04-29T06:38:59 | 2020-04-29T06:38:59 | 104,017,512 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
using namespace std;
int ans[9] = {1, 6, 28, 120, 496, 2016, 8128, 32640, 130816};
int main()
{
ios::sync_with_stdio(false);
int n;
cin >> n;
for (int i = 8; i >= 0; i--)
{
if (n % ans[i] == 0)
{
cout << ans[i] << endl;
break;
}
}
return 0;
} | [
"codgician@users.noreply.github.com"
] | codgician@users.noreply.github.com |
f23c05b8fdf9bc68619bb2c25ff4937d4bd2aba0 | c3d3062f0fdd751a49ccbe907cff41aa4680b42b | /include/ElephantEngine/eScreenCounter.h | 448af87699f26980dbdb6404c19e1105b91d3931 | [] | no_license | Flower35/ZookieWizard | 5a233d71f2202ae120dd7c160e8d022a40c15eeb | 1d398f194e1ad74d5b6cf7f865dc2baab33936b7 | refs/heads/master | 2023-06-07T04:34:27.333278 | 2022-08-18T17:12:13 | 2022-08-18T17:12:13 | 228,497,238 | 12 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | h | #ifndef H_KAO2AR_SCREENCOUNTER
#define H_KAO2AR_SCREENCOUNTER
#include <ElephantEngine/eTextWriterFields2.h>
namespace ZookieWizard
{
////////////////////////////////////////////////////////////////
// eScreenCounter interface
// <kao2.005D53C0> (vptr)
////////////////////////////////////////////////////////////////
class eScreenCounter : public eTextWriterFields2
{
/*** Properties ***/
protected:
/*[0x34]*/
/*(...)*/
/*[0x44]*/
/*** Methods ***/
public:
eScreenCounter();
~eScreenCounter();
private:
void createFromOtherObject(const eScreenCounter &other);
public:
eScreenCounter(const eScreenCounter &other);
eScreenCounter& operator = (const eScreenCounter &other);
eObject* cloneFromMe() const override;
/* << eObject >> */
const TypeInfo* getType() const override;
};
////////////////////////////////////////////////////////////////
// eScreenCounter TypeInfo
// <kao2.0051F110> (registration)
////////////////////////////////////////////////////////////////
static const int E_SCREENCOUNTER_ID = 0x3B258DF2;
extern TypeInfo E_SCREENCOUNTER_TYPEINFO;
}
#endif
| [
"46760021+Flower35@users.noreply.github.com"
] | 46760021+Flower35@users.noreply.github.com |
27d52ce8fd31705b0f624e50b34da55754903b6d | 785463ea0d81e1ab888a858e31ab8cf8b24e4ce6 | /deps/cereal/include/cereal/types/base_class.hpp | 9d014e41a9aeb6caaafb7070b9ac65fce4bdf8e7 | [
"MIT",
"BSD-3-Clause"
] | permissive | GTAResources/modloader | 475853390165290d0b5f37f239f3e6b15f36195a | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | refs/heads/master | 2021-02-07T17:32:29.299117 | 2018-01-20T16:23:25 | 2018-01-20T16:23:25 | 244,057,341 | 1 | 1 | MIT | 2020-02-29T23:33:52 | 2020-02-29T23:33:51 | null | UTF-8 | C++ | false | false | 5,588 | hpp | /*! \file base_class.hpp
\brief Support for base classes (virtual and non-virtual)
\ingroup OtherTypes */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of cereal nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL RANDOLPH VOORHIES OR SHANE GRANT 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 CEREAL_TYPES_BASE_CLASS_HPP_
#define CEREAL_TYPES_BASE_CLASS_HPP_
namespace cereal
{
//! Casts a derived class to its non-virtual base class in a way that safely supports abstract classes
/*! This should be used in cases when a derived type needs to serialize its base type. This is better than directly
using static_cast, as it allows for serialization of pure virtual (abstract) base classes.
\sa virtual_base_class
@code{.cpp}
struct MyBase
{
int x;
virtual void foo() = 0;
template <class Archive>
void serialize( Archive & ar )
{
ar( x );
}
};
struct MyDerived : public MyBase //<-- Note non-virtual inheritance
{
int y;
virtual void foo() {};
template <class Archive>
void serialize( Archive & ar )
{
ar( cereal::base_class<MyBase>(this) );
ar( y );
}
};
@endcode */
template<class Base>
struct base_class
{
template<class Derived>
base_class(Derived const * derived) :
base_ptr(const_cast<Base*>(static_cast<Base const *>(derived)))
{ }
Base * base_ptr;
};
//! Casts a derived class to its virtual base class in a way that allows cereal to track inheritance
/*! This should be used in cases when a derived type features virtual inheritance from some
base type. This allows cereal to track the inheritance and to avoid making duplicate copies
during serialization.
It is safe to use virtual_base_class in all circumstances for serializing base classes, even in cases
where virtual inheritance does not take place, though it may be slightly faster to utilize
cereal::base_class<> if you do not need to worry about virtual inheritance.
\sa base_class
@code{.cpp}
struct MyBase
{
int x;
template <class Archive>
void serialize( Archive & ar )
{
ar( x );
}
};
struct MyLeft : virtual MyBase //<-- Note the virtual inheritance
{
int y;
template <class Archive>
void serialize( Archive & ar )
{
ar( cereal::virtual_base_class<MyBase>( this ) );
ar( y );
}
};
struct MyRight : virtual MyBase
{
int z;
template <class Archive>
void serialize( Archive & ar )
{
ar( cereal::virtual_base_clas<MyBase>( this ) );
ar( z );
}
};
// diamond virtual inheritance; contains one copy of each base class
struct MyDerived : virtual MyLeft, virtual MyRight
{
int a;
template <class Archive>
void serialize( Archive & ar )
{
ar( cereal::virtual_base_class<MyLeft>( this ) ); // safely serialize data members in MyLeft
ar( cereal::virtual_base_class<MyRight>( this ) ); // safely serialize data members in MyRight
ar( a );
// Because we used virtual_base_class, cereal will ensure that only one instance of MyBase is
// serialized as we traverse the inheritance heirarchy. This means that there will be one copy
// each of the variables x, y, z, and a
// If we had chosen to use static_cast<> instead, cereal would perform no tracking and
// assume that every base class should be serialized (in this case leading to a duplicate
// serialization of MyBase due to diamond inheritance
};
}
@endcode */
template<class Base>
struct virtual_base_class
{
template<class Derived>
virtual_base_class(Derived const * derived) :
base_ptr(const_cast<Base*>(static_cast<Base const *>(derived)))
{ }
Base * base_ptr;
};
} // namespace cereal
#endif // CEREAL_TYPES_BASE_CLASS_HPP_
| [
"dma_2012@hotmail.com"
] | dma_2012@hotmail.com |
120983fec41acc89299a1e8bcdc5221e647704e0 | 8b80f4edc7089a3823bcc051e7278daaf39fbc5e | /interpolate.hpp | df5ef4e386484fe896547d62503d1e290a75304d | [] | no_license | Arangojd/MAVI | d725d4576ab32ed03836630facafe4cea2d503c9 | 82b136dbe42602399bbb744c555802d57db54f35 | refs/heads/master | 2021-01-13T16:55:41.483002 | 2017-04-27T14:41:05 | 2017-04-27T14:41:05 | 79,232,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | hpp | /*
* interpolate.hpp
* ---------------
*
* Function declarations and inline function
* definitions for various data interpolation methods.
*/
#ifndef INTERPOLATE_HPP
#define INTERPOLATE_HPP
/**
* Performs linear interpolation within the range [xmin, xmax] * [ymin, ymax].
*
* @param x Interpolant
* @param xmin x-dimension lower bound
* @param xmax x-dimension upper bound
* @param ymin y-dimension lower bound
* @param ymax y-dimension upper bound
*
* @returns the result of the interpolation operation.
*/
inline double lerp(double x, double xmin, double xmax, double ymin, double ymax)
{
return ymin + (x - xmin) * (ymax - ymin) / (xmax - xmin);
}
#endif
| [
"annoyingmoose.th@gmail.com"
] | annoyingmoose.th@gmail.com |
7e6d62a282f64fef1c05a36b5284e1dc6bd7db64 | 72b08c6856e42b85244720dcd65da3fcbbe75f55 | /2º/ALG/Practica 3/distancia.cpp | 682de77bb92d7a662a488a9883da56e19bd0eebb | [] | no_license | arturocs/grado_informatica_ugr | 774faa1553be035af3bb49f9d3500465a2076f37 | be67c5b5c03f859edc30a94d20a8e7e6b7a140cd | refs/heads/master | 2023-04-01T06:19:47.962602 | 2021-04-01T11:15:43 | 2021-04-01T11:15:43 | 340,430,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,266 | cpp | #include <cmath>
#include <fstream>
#include <iostream>
#include <regex>
#include <string>
#include <vector>
using namespace std;
struct Ciudad {
float nciudad, x, y;
};
double distancia(Ciudad c1, Ciudad c2) {
return sqrt((c2.x - c1.x) * (c2.x - c1.x) + (c2.y - c1.y) * (c2.y - c1.y));
}
vector<float> parsear_linea(string s) {
vector<float> ret;
regex numero("-?[0-9]+\\.?[0-9]*");
auto inicio_linea = sregex_iterator(s.begin(), s.end(), numero);
auto fin_linea = sregex_iterator();
for (auto i = inicio_linea; i != fin_linea; i++) {
ret.push_back(stof((*i).str()));
}
return ret;
}
vector<float> parsear_solucion(fstream &archivo) {
vector<float> ret;
string linea;
do { // Eliminar las lineas que no son numeros
getline(archivo, linea);
} while (regex_search(linea, regex("[A-Z]")));
while (!archivo.eof()) {
if (linea != "EOF" && linea != " EOF" && linea != "-1") {
vector<float> numeros_linea = parsear_linea(linea);
for (auto i : numeros_linea) {
ret.push_back(i);
}
getline(archivo, linea);
} else {
break;
}
}
return ret;
}
vector<Ciudad> parsear_ciudades(fstream &archivo) {
vector<Ciudad> ret;
string linea;
do { // Eliminar las lineas que no son numeros
getline(archivo, linea);
} while (regex_search(linea, regex("[A-Z]")));
while (!archivo.eof()) {
if (linea != "EOF" && linea != " EOF") {
vector<float> numeros_linea = parsear_linea(linea);
ret.push_back({numeros_linea[0], numeros_linea[1], numeros_linea[2]});
getline(archivo, linea);
} else {
break;
}
}
return ret;
}
int main(int argc, char *argv[]) {
if (argc != 3) {
cerr << "Uso: " << argv[0] << "<archivo solucion> <archivo ciudades>\n";
return 1;
}
fstream archivo_solucion(argv[1]);
fstream archivo_ciudades(argv[2]);
auto solucion = parsear_solucion(archivo_solucion);
auto ciudades = parsear_ciudades(archivo_ciudades);
ciudades.insert(ciudades.begin(), {0, 0, 0});
float dis = 0.0;
for (int i = 0; i < solucion.size(); i++) {
dis += distancia(ciudades[solucion[i]], ciudades[solucion[i - 1]]);
}
dis += distancia(ciudades.front(), ciudades.back());
cout << "Distancia total: " << dis << endl;
} | [
"arturocs@protonmail.com"
] | arturocs@protonmail.com |
af46ae826650eb30aab252e7de977de3a58728c9 | afec113dcac49a1f341d42be821973755051e103 | /seadmin/CAdminAPI.cpp | 8671cff4aaf749eb97f288ed589a2a4d8fb982ae | [] | no_license | radtek/earnsmart | e080bafa824bf2728fbf8603d46c11430d77cfb6 | df3983366a993d1e5ba0167d2483c3eb799b25be | refs/heads/master | 2020-06-22T06:14:04.646933 | 2019-02-15T13:32:59 | 2019-02-15T13:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 81,656 | cpp | /*
* File: CAdminAPI.cpp
* Author: santony
*
* Created on March 22, 2013, 9:20 PM
*
*
*/
#include "internal.h"
#include "CAdminAPI.h"
#include "../seglobal/CList.h"
#include "CAudit.h"
#include "../seglobal/CROList.h"
#include "CUser.h"
#include "CUserType.h"
#include "../semysql/CMyqlUtilities.h"
#include "../seglobal/exceptions.h"
#include "CProduct.h"
#include "CCustomer.h"
#include "CCustomerSubscriptionType.h"
#include "CCustomerSubscriptionInfo.h"
#include "CPurchase.h"
#include "CCustomerStatus.h"
#include <boost/tokenizer.hpp>
#include "../seglobal/exceptions.h"
#include "../seglobal/CFunctionCache.h"
#include "CPaypalExpressCheckout.h"
#include "../seglobal/CROList.h"
#include "CCountry.h"
#include "CCountryState.h"
#include "CWebSession.h"
#include "../seglobal/CSecure.h"
#include "../seglobal/CString.h"
#include "../external/mariadbpp/mystring.h"
#include <uuid/uuid.h>
//#include <pegtl/rules_string.hh>
#include "../semain/CSession.h"
#include "../seglobal/CStringUtility.h"
#include "../senet/CSmtpClient.h"
#include "CHelpDocTree.h"
#include "../senet/CEmailTemplate.h"
#include "CPositions.h"
#include "../senet/CSmtpVmimeClient.h"
#include "../senet/senetapi.h"
#include "../semath/CRandomizer.h"
#define SEDBCONN CSEConnections::GetMain()
#define SEDBADM CSEConnections::GetAdmin()
#define FROMEMAIL "postmaster@earn-smart.com"
#define SESSIONEXPIREDAYS 14
using namespace se;
using namespace se::data;
namespace se
{
namespace admin
{
Mutex CAdminAPI::adminLock;
SP<IAdminAPI> CAdminAPI::pApi;
#define QUERYFIELDLOGIC \
if (lgx == LGX_And) \
{ \
if (!bWhere) \
{ \
query << " where "; \
bWhere = true; \
} \
else \
query << " and "; \
} \
else \
{ \
if (!bWhere) \
{ \
query << " where "; \
bWhere = true; \
} \
else \
query << " or "; \
}
//NamedObjectNamingType IAdminAPI::Name = 0xD;
NamedObjectNamingType CAdminAPI::get_TypeId()
{
return IAdminAPIName;
}
CAdminAPI::CAdminAPI(ISession* ps) : CObjectRoot(ps)
{
}
CAdminAPI::~CAdminAPI()
{
}
long unsigned int CAdminAPI::Init()
{
return S_OK;
}
RP<IAudit> CAdminAPI::GetAuditor()
{
IAudit* pAudit;
CObject<CAudit>::Create(get_Session(), &pAudit);
return pAudit;
}
ErrorId CAdminAPI::get_Address(UID id, IAddress** ppOut)
{
if (id ==0 ) return S_False;
CSmartConnection conn(SEDBCONN);
try
{
Query q = conn->query();
q << "select addresses.*, se_gbl_countries.country_name as country, se_gbl_states.name as state from addresses \
left join se_gbl_countries on addresses.country_id = se_gbl_countries.country_id \
left join se_gbl_states on addresses.state_id = se_gbl_states.state_id \
where addresses.addr_id = " << id;
auto qRes = q.store();
if(qRes.size())
{
const Row& row = qRes[0];
SP<IAddress> pAddr ;
auto retCode = CreateAddress(get_Session(), &pAddr);
if (FAILED(retCode))
{
// LOGE(_logger, "Failed to create address instance.");
return retCode;
}
pAddr->set_Name(((string)row["name"]).c_str());
pAddr->set_City(((string)row["city"]).c_str());
pAddr->set_State(((string)row["state"]).c_str());
pAddr->set_Street(((string)row["street1"]).c_str());
pAddr->set_Street2(((string)row["street2"]).c_str());
pAddr->set_Country(((string)row["country"]).c_str());
pAddr.CopyTo(ppOut);
return S_Success;
}
return E_NotFound;
}
catch (const std::exception& ex)
{
// LOGE(_logger, "Error : " << ex.what());
return E_DBQueryException;
}
}
ErrorId CAdminAPI::set_Address(IAddress* pIn)
{
try
{
CSmartConnection conn(SEDBCONN);
ErrorId retCode = set_Address(conn, pIn);
if (SUCCEEDED(retCode))
conn.CommitTransaction();
else
conn.RollbackTransaction();
return retCode;
}
CATCHCLAUSE("set_Address");
}
ErrorId CAdminAPI::set_Address(CSmartConnection& conn, IAddress* pIn)
{
try
{
// the user may provide the country and state in
// full text or code. Verify both.
I16 country_id;
Query q = conn->query();
q << "select country_id from se_gbl_countries where country_name = " ;
q << quote << pIn->get_Country();
StoreQueryResult qr = q.store();
if (qr.size())
country_id = qr[0][0];
else
{
//q = conn->query();
q << "select country_id from se_gbl_countries where country_code = " ;
q << quote << pIn->get_Country();
qr = q.store();
if (qr.size())
country_id = qr[0][0];
else
{
//q = conn->query();
q << "select country_id from se_gbl_countries where country_code1 = " ;
q << quote << pIn->get_Country();
qr = q.store();
if (qr.size())
country_id = qr[0][0];
}
}
// match and then insert
//q = conn->query();
q << "SELECT address_id from addresses where ";
q << "city = " << quote << pIn->get_City();
q << " and state = " << quote << pIn->get_State();
q << " and street1 = " << quote << pIn->get_Street();
q << " and street2 = " << quote << pIn->get_Street2();
q << " and postcode = " << quote << pIn->get_PostalCode();
q << " and country_id = " << country_id;
qr = q.store();
if (!qr.size())
{
q << "INSERT INTO addresses (name, city, country_id, state ,street1,street2, postcode) ";
q << "VALUES (" ;
q << quote << pIn->get_Name() << ", " ;
q << quote << pIn->get_City() << ", " ;
q << country_id << ", " ;
q << quote << pIn->get_State() << ", " ;
q << quote << pIn->get_Street() << ", " ;
q << quote << pIn->get_Street2() << ", ";
q << quote << pIn->get_PostalCode();
q << " )";
// LOGIP(q.str());
q.exec();
// get auto increment id
UID addrid = (UID)q.insert_id();
pIn->set_Id(addrid);
}
else
pIn->set_Id((UID)qr[0][0]);
return S_Success;
}
CATCHCLAUSE("set_Address (private)");
}
long unsigned int CAdminAPI::set_UserAddress(CSmartConnection& conn, IUser* pUser, IAddress* pAddress)
{
try
{
SP<IUser> puser(pUser);
SP<IAddress> pAddr(pAddress) ;
I64 addId = 0;
if (pAddr)
{
THROWIFFAILED(set_Address(conn, pAddr), "Failed to get address from user.");
addId = pAddr->get_Id();
Query q = conn->query();
q << "SELECT * FROM user_addr where is_current = 1 and ";
q << "user_id = " << puser->get_Id() << " and addr_id = " << pAddr->get_Id();
auto qRes = q.store();
if(!qRes.size())
{
q = conn->query();
q << "update user_addr set is_current = 0 where ";
q << "user_id = " << puser->get_Id() << " and addr_id = " << pAddr->get_Id();
q.execute();
q = conn->query();
q << "INSERT INTO user_addr (user_id, addr_id, is_current, seton ) ";
q << "VALUES (" <<puser->get_Id()<<", "<<pAddr->get_Id()<<", 1, now())";
q.exec();
}
else
{
q = conn->query();
q << "UPDATE user_addr set ";
q << " is_current = 1, seton = now() ";
q << "where user_id = "<<puser->get_Id() << "and addr_id = "<<pAddr->get_Id();
q.exec();
}
}
return S_Success;
}
CATCHCLAUSE("set_UserAddress (private)");
}
////////////////////////Private method begins///////////////////////////
ErrorId CAdminAPI::get_User(CSTR userId, IUser** ppUser)
{
try
{
const string funcName = "se.admin.get_User1";
//TODO: utilize get_user that accept UID. in function , save userId -> uid in function map.
// then using cached uid, get Iuser instance from function cache.
CSmartConnection conn(SEDBCONN);
Row row ;
Query q = conn->query();
q<<"SELECT * FROM users where user_login = "<<quote<<userId;
auto qRes = q.store();
if (qRes.size())
{
const Row& row = qRes[0];
ErrorId retCode = SetUser(conn, row, ppUser);
if (FAILED(retCode))
{
// LOGE(_logger, "Failed with error code " << retCode);
}
return retCode;
}
// LOGE(_logger, "Failed with error code " << E_NotFound);
return E_NotFound;
}
catch (const std::exception& ex)
{
// LOGE(_logger, "Error : " << ex.what());
return E_DBQueryException;
}
}
ErrorId CAdminAPI::get_User(UID id, IUser** ppUser)
{
try
{
ostringstream funcName ;
funcName << "se.admin.get_User_" << id;
IUser* p;
if (!FC.TrySPGetFValue(funcName.str(), id, p))
{
Poco::ScopedLock<Mutex> g(adminLock);
if (!FC.TrySPGetFValue(funcName.str(), id, p))
{
// if id == 0, then anonymous user.
if (id == 0)
{
THROWIFFAILED(IUser::CreateAnonymous(get_Session(), &p), "Failed to create anonymous user.");
p->set_Active(true);
FC.SPSetFValue(funcName.str(), id, p);
*ppUser = p;
return S_Success;
}
else
{
CSmartConnection conn(SEDBADM);
Query q = conn->query();
{
q << "SELECT * FROM saadmin.users where ID = " <<quote << id;
auto qRes = q.store();
if (qRes.size())
{
Row& row = qRes[0];
ErrorId retCode = SetUser(conn, row, &p);
if (FAILED(retCode))
{
if (FAILED(retCode))
throw seexception(retCode, "Failed to open an user instance.");
}
FC.SPSetFValue(funcName.str(), id, p);
*ppUser = p;
return S_Success;
}
else
throw seexception(E_NotFound, "User not found.");
}
}
}
}
p->AddRef();
*ppUser = p;
return S_Success;
}
CATCHCLAUSE("get_User");
}
long unsigned int CAdminAPI::get_UserFromSessionUniqueID(const char* uniqueSessionId, IUser** ppUser)
{
try
{
CSmartConnection conn(SEDBADM);
Query q = conn->query();
q << "select `ID` from saadmin.users where user_sessionid = " << quote << uniqueSessionId;
auto store = q.store();
UID userId = 0;
if (store.size())
{
userId = store[0][0];
}
return get_User(userId, ppUser); // this method takes care of any anonymous user.
}
CATCHCLAUSE("get_UserFromSessionUniqueID");
}
////////////////////// Private method begins///////////////////////////////
/////////// private method begins/////////////////////////////
long unsigned int CAdminAPI::set_User(CSmartConnection& conn, IUser* pUser)
{
try
{
// ensure we have a safe pointer
SP<IUser> pIn(pUser);
if (pUser->get_Id()) // if saving an existing user info.
{
Query q = conn->query();
q << "UPDATE users set";
q << " user_login = " << quote << pIn->get_UserId();
q << ", user_roles = " << (I32)pIn->get_Roles();
q << ", user_email = " << quote << pIn->get_UserId();
q << ", user_firstname = " << quote << pIn->get_FirstName();
q << ", user_lastname = " << quote << pIn->get_LastName();
q << ", user_isactive = " << quote << pIn->get_IsActive() ? '1' : '0';
q << ", user_updatedon = NOW() ";
q << " where ID = " << pIn->get_Id();
q.exec();
}
else
{
Query q = conn->query();
q << "select ID from users where user_login = " << quote << pUser->get_UserId();
if (q.store().size())
{
// LOGE(_logger, "User with// LOGin " << pUser->get_UserId() << " already exists. Cannot continue.");
return E_UserLoginExists;
}
q = conn->query();
q << "INSERT INTO users ";
q << "(user_login, user_roles, user_email, user_registeredon, user_firstname, user_lastname, user_isactive, user_createdon ) ";
q << "VALUES (";
q << quote << pIn->get_UserId();
q << ", " << (I32)pIn->get_Roles();
q << ", " << quote << pIn->get_UserId();
q << ", NOW() ";
q << ", " << quote << pIn->get_FirstName();
q << ", " << quote << pIn->get_LastName();
q << ", " << pIn->get_IsActive() ? '1' : '0';
q << ", NOW() ";
q << ") " ;
q.exec();
pIn->set_Id((UID)q.insert_id());
}
return S_Success;
}
CATCHCLAUSE("set_User - private -");
}
//////////// private method ends/////////////////////////
ErrorId CAdminAPI::set_User(IUser* pIn)
{
try
{
/*start a transaction since multiple tables are involved.
* 1. grab address id from pIn->get_Address()
* 2. If this address_id = 0, then insert an address in address table
* 3. get the new address id in address instance.
* 4. save user information + addressid
* 5. insert or update a row in user_addr also.
*
*/
CSmartConnection conn(SEDBCONN);
conn.BeginTransaction();
ErrorId retCode = set_User(conn, pIn);
if (SUCCEEDED(retCode))
conn.CommitTransaction();
else
conn.RollbackTransaction();
return retCode;
}
CATCHCLAUSE("set_User");
}
ErrorId CAdminAPI::get_Users(CSTR criteria, IROSPList<IUser> **ppUsers)
{
string line = criteria;
using namespace boost;
typedef tokenizer< char_separator<char> > Tokenizer;
typedef vector<string> TokenVector;
TokenVector vec;
char_separator<char> sep(";", "", keep_empty_tokens);
Tokenizer tok(line, sep);
vec.assign(tok.begin(), tok.end());
I32 i = 0;
string aWhere;
while(i <vec.size())
{
string sub = vec[i];
TokenVector vecSub;
char_separator<char> sepSub("=", "", keep_empty_tokens);
Tokenizer tokSub(sub, sepSub);
vecSub.assign(tokSub.begin(), tokSub.end());
string sVlue = vecSub[0];
if(sVlue == "Id")
{
aWhere = aWhere + "ID LIKE '%" +vecSub[1]+"'%";
}
else if(sVlue == "UserId")
{
aWhere = aWhere + "user_login LIKE '%" +vecSub[1]+"'%";
}
else if(sVlue == "FirstName")
{
aWhere = aWhere + "user_firstname LIKE '%" +vecSub[1]+"'%";
}
else if(sVlue == "LastName")
{
aWhere = aWhere + "user_lastname LIKE '%" +vecSub[1]+"'%";
}
if(i<(vec.size()-1))
aWhere = aWhere+" and ";
i = i++;
}
CSmartConnection conn(SEDBCONN);
SP<CROSPList<IUser>> pList;
ErrorId retCode = CObject<CROSPList<IUser>>::Create(get_Session(), &pList);
if (FAILED(retCode))
{
// LOGEP("Error Creating List");
return retCode;
}
Row row ;
Query q = conn->query();
q<<"SELECT * FROM users where "<<aWhere;
auto qRes = q.store();
for (const Row& row : qRes)
{
SP<IUser> pUser;
retCode = IUser::Create(get_Session(), &pUser);
if (FAILED(retCode))
{
// LOGE(_logger, "can't create User Type");
return retCode;
}
retCode = SetUser(conn, row, &pUser);
if (FAILED(retCode))
{
// LOGE(_logger, "Failed with error code " << retCode);
return retCode;
}
pList->Add(pUser._ptr);
}
pList.CopyTo(ppUsers);
return S_Success;
}
long unsigned int CAdminAPI::set_UserPassword(CSmartConnection& conn, unsigned long userId, const char* clearpassword)
{
try
{
Query q = conn->query();
q << "update users set ";
q << " user_pass = AES_ENCRYPT(" << quote << clearpassword << ", " << quote << conn.get_Key() << ")";
q << " where ID = " << userId;
//LOGIP(q.str());
q.execute();
}
CATCHCLAUSE("set_UserPassword");
}
long unsigned int CAdminAPI::LoadRegistrationData(const char* uuid, IString** ppOut)
{
using namespace mysqlpp;
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q << "select regdata from user_registrations where uuid = " << quote << uuid;
auto uqr = q.use();
Row row;
if (uqr and (row = uqr.fetch_row()))
{
THROWIFFAILED( CString::Create( (CSTR)row["regdata"].c_str(), ppOut), "CString::Create");
return S_OK;
}
return E_NoDataToReturn;
}
CATCHCLAUSE("LoadRegistrationData");
}
long unsigned int CAdminAPI::SaveRegistrationData(const char* uuid, const char* regdata)
{
try
{
CSmartConnection conn(SEDBCONN);
/*
* INSERT INTO `sa`.`user_registrations`
(`uuid`,
`regdata`,
`createdon`,
`updatedon`)
VALUES
(<{uuid: }>,
<{regdata: }>,
<{createdon: }>,
<{updatedon: }>);
*
*
UPDATE `sa`.`user_registrations`
SET
`uuid` = <{uuid: }>,
`regdata` = <{regdata: }>,
`createdon` = <{createdon: }>,
`updatedon` = <{updatedon: }>
WHERE `uuid` = <{expr}>;
*/
Query q = conn->query();
q << "select uuid from user_registrations where uuid = " << quote << uuid;
if (q.store().size())
{
q << "update user_registrations set";
q << " regdata = " << quote << regdata;
q << " and updatedon = now()";
q << " where uuid = " << quote << uuid;
}
else
{
q << "insert into user_registrations (uuid, regdata, createdon) ";
q << "values (" << quote << uuid << ", " << quote << regdata << ", now())";
}
q.exec();
return S_OK;
}
CATCHCLAUSE("SaveRegistrationData");
}
long unsigned int CAdminAPI::RegisterUser(const Json::Value& regInfo)
{
// @regInfo : The regInfo parameter is json object of below format.
// {
// RegStages : 0, //// Registration stages 0=UserTypeAndAddress, 1=sendEmailToConfirmation, 2=emailConfirmed, 3=Paymentprovided, 4=RegistrationCompleted
// RegType : "standard", //// or licensed)
// FirsName : "",
// LastName : "",
// EmailAddress : "",
// Password : "",
// ConfirmPassword: "",
// RememberMe : false,
// Street1 : "",
// Street2 : "",
// Town : "",
// Country : 0,
// State : 0,
// StateProvince : "",
// PostalCode : ""
// }
#ifdef __DEBUG__
Json::StyledWriter writer;
BDBG << writer.write(regInfo);
#endif
// validate data
REGSTAGES regStage;
std::string regType = "standard";
UserRole role = UserRole::Standard;
std::string firstName, lastName, emailAddress;
CSmartConnection conn(SEDBADM);
std::string password, confirmPwd;
std::string street1, street2, town, pc, stateprovince;
I32 country = 0, state = 0;
bool remember;
firstName = regInfo.get("FirstName", "").asString();
lastName = regInfo.get("LastName", "").asString();
emailAddress = regInfo.get("EmailAddress", "").asString();
password = regInfo.get("Password", "").asString();
confirmPwd = regInfo.get("ConfirmPassword", "").asString();
remember = regInfo.get("RememberMe", false).asBool();
U64 emailCode = se::math::CRandomizer::DefaultRandomNumber();
try
{
if (emailAddress.empty())
{
return E_ValidateEmail;
}
if (password.empty() or password != confirmPwd)
{
return E_ValidatePassword;
}
if (firstName.empty() and lastName.empty())
{
return E_ValidateName;
}
if (!se::utils::CStringUtility::ValidateEmail(emailAddress))
{
return E_ValidateEmail;
}
SP<IUser> pUser;
if (SUCCEEDED(CheckUserLogin(emailAddress.c_str(), &pUser)))
{
((ISessionInterface*)get_Session())->Reset(pUser);
auto retSync = SyncUserSession(conn, pUser->get_Id(), get_Session()->get_UniqueId());
if (FAILED(retSync))
{
return retSync;
}
return E_PartiallyRegistered;
}
if (regType == "licensed")
{
street1 = regInfo.get("Street1", "").asString();
street2 = regInfo.get("Street2", "").asString();
town = regInfo.get("Town", "").asString();
pc = regInfo.get("PostalCode", "").asString();
state = regInfo.get("State", 0).asInt();
country = regInfo.get("Country", 0).asInt();
if (street1.empty() or town.empty() or pc.empty())
{
BERR << "street1, town or postal code not given.";
return E_Validation;
}
if (state == 0)
{
stateprovince = regInfo.get("StateProvince", "").asString();
}
if (stateprovince.empty())
{
if (state<= 0 or state>=10000)
{
return E_ValidateState;
}
}
if (country <= 0 or country >=1000)
{
return E_ValidateCountry;
}
else
{
// verify state against country
if (state > 0)
{
Json::Value jsstate;
CSqlAst ast = AST_CONDITION(QUERYFIELDS::State::State::Id, AST_OPERATOR::Equal, state);
ast & AST_CONDITION(QUERYFIELDS::Country::Id, AST_OPERATOR::Equal, country);
BDBG << ast;
if (FAILED(get_State(jsstate, &ast)))
{
BERR << "There is no state that matches state_id " << state << " for country with id " << country;
return E_ValidateState;
}
// print state info
BDBG << jsstate;
}
}
}
conn.BeginTransaction();
Query q = conn->query();
UID userId = 0;
q << "INSERT INTO saadmin.users ";
q << "(user_login, user_pass, user_firstname, user_lastname, user_email, user_emailconfirmcode, user_registeredon, user_regstage, user_role, user_isactive, user_sessionid, user_remember, user_createdon) ";
q << "VALUES ";
q << "(" << quote << emailAddress << ", AES_ENCRYPT(" << quote << password << ", " << quote << conn.get_Key() << "), ";
q << quote << firstName << ", ";
q << quote << lastName << ", ";
q << quote << emailAddress << ", ";
q << quote << emailCode << ", ";
q << "now(), " << (U16)REGSTAGES::SendEmailForConfirmation << ", " << (regType == "licensed" ? (int)UserRole::Licensed : (int)UserRole::Standard ) << ", 1, " << quote << get_Session()->get_UniqueId() << ", ";
q << quote << (remember ? "1" : "0") << ", now() )";
BDBG << q.str();
q.exec();
userId = q.insert_id();
// obtain a reference to the user instance.
pUser.Clear();
if (!street1.empty() && ISOK(get_User(userId, &pUser)))
{
//TODO
SP<IAddress> paddr;
IAddress::Create(this->get_Session(), &paddr);
paddr->set_City(street1.c_str());
paddr->set_Street2((street2.c_str()));
paddr->set_City(town.c_str());
paddr->set_State(stateprovince.c_str()); // paddr->set_State(state) //TODO takes integer
//paddr->set_Country() // TODO : takes integer.
THROWIFFAILED(pUser->set_Address(paddr), "User address not saved.");
}
// register user activity
auto retCode = RecordSessionActivity(conn, userId);
if (FAILED(retCode))
{
throw se::seexception(retCode);
}
get_Session()->set_Id(userId);
}
RBCATCHCLAUSE("RegisterUser")
try
{
// send an email
string emailTemplate = "standardregistration.html";
se::net::TemplateVaribles vars;
vars.insert(make_pair("FirstName", regInfo.get("FirstName", "").asString()));
std::ostringstream os;
// if device is IOS ///TODO FOR ANDROID, WINDOWS, BROWSER, ETC.
os << "earnsmart://confirmemail=";
os << emailCode;
vars.insert(make_pair("ConfirmUrl", os.str() ));
se::net::CEmailTemplate etempl(this->get_Session(),emailTemplate, vars);
std::string emailContent = etempl.Apply();
SP<IString> retMsg;
auto retVal = se::net::SendEmail(
se::net::EMLPROVD::Office365,
FROMEMAIL,
emailAddress.c_str(),
"Earnsmart Registration : Email Confirmation Required",
emailContent.c_str(),
&retMsg
);
if (FAILED(retVal))
{
BERR << "Failed to send email with error '" << get_CodeMessage(retVal) << "'";
throw se::seexception(E_EmailSendError);
}
else
{
BINF << retMsg->get_Buffer();
}
conn.CommitTransaction();
return S_OK;
}
RBCATCHCLAUSE("RegisterUser(SendEmailConfirmation)")
}
SE_CODE CAdminAPI::RegisterUser(IUser** ppUser)
{
ISession* pSession = this->get_Session();
// generate a unique id
uuid_t uniqueId;
uuid_generate_time_safe(uniqueId);
char buff2[256];
uuid_unparse_lower(uniqueId, buff2);
pSession->set_UniqueId(buff2);
pSession->set_Id(0);
// save a record in user sessions and return.
CSmartConnection conn(SEDBADM);
try
{
Query q = conn->query();
q << "INSERT INTO user_sessions (";
q << "session_id, user_id, session_date, session_type ";
q << ") VALUES (";
q << quote << buff2 << ", 0, NOW(), 1";
q << ")";
BDBG << q.str();
q.exec();
if (ppUser)
{
return IUser::CreateAnonymous(get_Session(), ppUser);
}
return S_OK;
}
CATCHCLAUSE("RegisterUser")
}
long unsigned int CAdminAPI::ConfirmUser(const char* emailCode)
{
CSmartConnection conn(SEDBADM);
try
{
conn.BeginTransaction();
// flag the user a email confirmed.
UID userId = 0;
Query q = conn->query();
q << "select ID from users where user_emailconfirmcode = " << quote << emailCode;
auto qstore = q.store();
if (qstore.size())
userId = qstore[0][0];
else
{
BERR << "Register user not found in the system.";
conn.RollbackTransaction();
return E_UserRegistrationNotFound;
}
q = conn->query();
q << "UPDATE saadmin.users SET ";
q << "user_regstage = " << (U16)REGSTAGES::RegistrationCompleted << ", user_updatedon = NOW() ";
q << "WHERE `ID` = " << userId;
q.exec();
conn.CommitTransaction();
return S_RegistrationCompleted;
}
RBCATCHCLAUSE("RegisterUser(EmailConfirmed)")
}
long unsigned int CAdminAPI::UnregisterUser(unsigned long userId)
{
try
{
CSmartConnection conn(SEDBADM);
conn.BeginTransaction();
try
{
// delete customer record 'customers'
// delete user type records
// delete session record.
// delete address record
// delete user record.
Query q = conn->query();
q << "delete from customers where user_id = " << userId;
q.execute();
//q = conn->query();
q << "delete from user_usertypes where user_id = " << userId;
q.execute();
//q = conn->query();
q << "delete from user_addr where user_id = " << userId;
q.execute();
//q = conn->query();
q << "delete from users where ID = " << userId;
q.execute();
//q = conn->query();
q << "delete from user_sessions where user_id = " << userId;
q.execute();
conn.CommitTransaction();
return S_Success;
}
RBCATCHCLAUSE("UnregisterUser");
}
CATCHCLAUSE("UnregisterUser");
}
SE_CODE CAdminAPI::UpgradeUser(const Json::Value& upgradeInfo)
{
/*
*
*/
// capture session user
RP<IUser> pUser = ((ISessionInterface*)get_Session())->get_User();
if (!pUser)
{
BERR << "get_Session() didn't return a user object of standard license.";
return E_UserRegistrationNotFound;
}
if (pUser->get_IsInRole(UserRole::Licensed))
{
return E_UserAlreadyLIcensed;
}
if (!pUser->get_IsInRole(UserRole::Standard))
{
return E_CannotUpgradeUser;
}
if (upgradeInfo.empty() || !upgradeInfo.isMember("paymentdetails") || !upgradeInfo.isMember("packages"))
{
BERR << "Invalid parameter 'upgradeInfo'. Doesn't contain required information.";
return E_JsonRpcInsufficientParameters;
}
assert(pUser->get_UserId() > 0);
CSTR customertoken = upgradeInfo["paymentdetails"]["customertoken"].asCString();
R8 fees = upgradeInfo["paymentdetails"]["fees"].asDouble();
const Json::Value& packages = upgradeInfo["packages"];
// verify user
auto ret = this->CheckUserLogin(pUser->get_UserId(), &pUser);
RETIFFAILED(ret);
CSmartConnection conn(SEDBADM);
conn.BeginTransaction();
try
{
// update users table (regstage completed,
Query q = conn->query();
q << "update users set user_role = " << (U32)UserRole::Licensed;
q << ", user_registered = Now() ";
q << ", user_updatedon = Now() ";
q << " where ID = " << pUser->get_Id();
BDBG << q.str();
q.execute();
ERRIFFAILED(BeginAsLicensedUser(conn, pUser->get_Id(), 1 /* paypal */, packages.asCString(), fees));
conn.CommitTransaction();
this->RecordSessionActivity();
return S_OK;
}
RBCATCHCLAUSE("UpgradeUser")
}
SE_CODE CAdminAPI::DowngradeUser(CSTR userlogin)
{
// apart from downgrading in our tables, we also want to cancel
// the payment processing of the user in the paypay server.
if (!userlogin || !strlen(userlogin))
{
return E_InvalidArg;
}
// verify user
SP<IUser> pUser;
auto ret = this->CheckUserLogin(userlogin, &pUser);
RETIFFAILED(ret);
if (pUser->get_Roles() != UserRole::Licensed)
{
return E_CannotDowngradeUser;
}
try
{
CSmartConnection conn(SEDBADM);
conn.BeginTransaction();
try
{
Query q = conn->query();
q << "update users set user_role = " << (U32)UserRole::Standard;
q << ", user_registered = Now() ";
q << ", user_updatedon = Now() ";
q << " where ID = " << pUser->get_Id();
BDBG << q.str();
q.execute();
ERRIFFAILED(EndAsLicensedUser(conn, pUser->get_Id()));
conn.CommitTransaction();
this->RecordSessionActivity();
}
RBCATCHCLAUSE("DowngradeUser")
bool yes =false;
if (yes)
{
SP<IPaypalExpressCheckout> ppCheckout;
auto retCode= this->get_PaypalExpressCheckOut(&ppCheckout);
if (ISOK(retCode))
{
SP<IString> profileId;
retCode = ppCheckout->Step0x1_CancelRecurringPaymentsProfileStatus("ss", "ss", &profileId);
}
if (FAILED(retCode))
{
// EMAIL TO ADMINISTRATION TO HANDLE THIS MANUALLY.
se::net::SendEmail(se::net::EMLPROVD::SparkPost, FROMEMAIL, "postmaster@earn-smart.com", "ADMIN-URGENT: Paypal Cancellation Failed", "User xxx's downgrade failed to paypal cancelation failure.");
}
}
return S_OK;
}
catch(const std::exception& ex)
{
BERR << ex.what();
return E_DBUpdateError;
}
}
ErrorId CAdminAPI::CheckUserLogin(CSTR login, IUser** ppUser)
{
try
{
if (!strlen(login))
throw seexception(E_InvalidArg, "login parameter is empty.");
//is email ?
bool isemail = se::utils::CStringUtility::ValidateEmail(login);
CSmartConnection conn(SEDBCONN);
Query qCheck = conn->query();
qCheck << "SELECT ID FROM saadmin.users where ";
if (isemail)
qCheck << " user_email = " << quote << login;
else
qCheck << " user_login = " << quote << login;
BDBG << qCheck.str();
auto store = qCheck.store();
if (store.size())
{
UID userId = store[0][0];
if (ppUser)
{
return get_User(userId, ppUser);
}
return S_OK;
}
else
{
return E_UnknownUser;
}
}
CATCHCLAUSE("CheckUserLogin")
}
long unsigned int CAdminAPI::ResetGetTemporaryPassword(const char* login, IString** ppOut)
{
CSmartConnection conn(SEDBADM);
try
{
if (!strlen(login))
throw seexception(E_InvalidArg, "login parameter is empty.");
conn.BeginTransaction();
Query qCheck = conn->query();
qCheck << "SELECT ID, user_pass FROM saadmin.users where user_login = " << quote << login;
auto sqr = qCheck.store();
if (!sqr.size())
throw seexception(E_NotFound, "Login not registered in the system.");
// reset password process involves generating a new password with 8 chars and then
// encrypting it and save to the database.
char buff1[8];
CSecure::GenerateRandomPassword(buff1, 8);
CString::Create(buff1, ppOut);
// generate a unique session id and store back in the table and return in the session instance.
uuid_t uniqueId;
uuid_generate_time_safe(uniqueId);
char buff2[256];
uuid_unparse_lower(uniqueId, buff2);
auto q = conn->query();
q << "Update saadmin.users set " ;
q << "user_pass=AES_ENCRYPT(" << quote << buff1 << ", " << quote << conn.get_Key() << ")";
q << ", user_sessionid = " << quote << buff2;
q << " where user_login=" << quote << login;
q.exec();
get_Session()->set_UniqueId(buff2);
conn.CommitTransaction();
return S_OK;
}
RBCATCHCLAUSE(__FUNCTION__)
}
long unsigned int CAdminAPI::UpdateAuthentication(const char* login, const char* currentPwd, const char* newPwd)
{
if (!newPwd or !strlen(newPwd))
{
BERR << "New password is invalid.";
return E_IncorrectOperation;
}
UID uid;
auto rcode = VerifyUser(login, currentPwd, &uid);
if (E_SecurityAuthorization == rcode)
{
BWRN << "Authentication failed for " << login;
return rcode;
}
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q << "Update users set user_pass=AES_ENCRYPT(" << quote << newPwd << ", " << quote << conn.get_Key() << ")";
q << " where ID=" << uid;
q.exec();
return S_Success;
}
CATCHCLAUSE(__FUNCTION__)
}
long unsigned int CAdminAPI::get_HasUserSessionExpired(const char* sessionId)
{
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q << "select user_sessionid from users";
q << " where user_sessionid = " << quote << sessionId;
q << " and datediff(now(), coalesce(user_createdon, user_updatedon)) > " << SESSIONEXPIREDAYS;
return q.store().size() ? S_False : E_SessionExpired;
}
CATCHCLAUSEAUTO
}
long unsigned int CAdminAPI::VerifyUser(const char* login, const char* pwd, UID* uid)
{
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q << "select * from users ";
q << "where user_login = " << quote << login ;
q << " and ";
q << " aes_encrypt(" << quote << pwd << ", " << quote << conn.get_Key() << ") ";
q << " = user_pass";
//LOGIP(q.str());
auto qRes = q.store();
if (!qRes.size())
throw seexception(E_SecurityAuthorization, "Security authentication failed for the user.");
if (uid)
*uid = qRes[0]["ID"];
return S_Success;
}
CATCHCLAUSE(__FUNCTION__)
}
ErrorId CAdminAPI::AuthenticateUser(CSTR userId, CSTR password, bool IsEmailAddress)
{
try
{
// generate a unique session id and store back in the table and return in the session instance.
uuid_t uniqueId;
uuid_generate_time_safe(uniqueId);
char buff[256];
uuid_unparse_lower(uniqueId, buff);
CSmartConnection conn(SEDBADM);
Query q = conn->query();
q << "select * from users ";
q << "where ";
if (IsEmailAddress)
q << "user_email = " << quote << userId;
else
q << "user_login = " << quote << userId ;
q << " and ";
q << " aes_encrypt(" << quote << password << ", " << quote << conn.get_Key() << ") ";
q << " = user_pass";
BDBG << q.str();
auto qRes = q.store();
if (qRes.size())
{
UID uid = qRes[0]["ID"];
get_Session()->set_Id(uid);
q = conn->query();
q << "update users set user_sessionid = " << quote << buff << ", user_updatedon = NOW() where ID = " << uid;
q.exec();
((CSession*)get_Session())->set_UniqueId(buff);
return S_Success;
}
else
{
((CSession*)get_Session())->set_UniqueId(buff);
throw seexception(E_SecurityAuthorization, "Security authentication failed for the user.");
}
}
CATCHCLAUSE("AuthenticateUser")
}
long unsigned int CAdminAPI::SetSessionAndRememberStates(CSmartConnection& conn, unsigned long UserId, const char* sessionId, bool Remember)
{
try
{
Query q = conn->query();
q << "update users set user_sessionid = " << quote << sessionId;
q << ", user_remember=" << (Remember ? '1' : '0') ;
q << " where ID = " << UserId;
q.exec();
return S_OK;
}
CATCHCLAUSE(__FUNCTION__)
}
ErrorId CAdminAPI::set_UserStatus(CSTR userId, bool IsActive)
{
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q<<"UPDATE users set user_status = "<<IsActive<<" where user_nickname = "<<quote<<userId;
q.exec();
return S_Success;
}
CATCHCLAUSE(__FUNCTION__)
}
long unsigned int CAdminAPI::set_UserRoles(unsigned long userId, UserRole roles)
{
try
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
q << "UPDATE users set user_roles = "<< (I32)roles <<" where ID = " << userId;
q.exec();
return S_Success;
}
CATCHCLAUSE(__FUNCTION__)
}
///////////////////////////// User's session management ////////////////////////////
long unsigned int CAdminAPI::RecordSessionActivity()
{
if (!this->get_Session())
{
return E_SessionUnknown;
}
CSmartConnection conn(SEDBADM);
return RecordSessionActivity(conn, get_Session()->get_UserId());
}
long unsigned int CAdminAPI::RecordSessionActivity(CSmartConnection& conn, UID userId)
{
if (!this->get_Session())
{
return E_SessionUnknown;
}
try
{
Query q = conn->query();
q << "CALL spRegisterUserSession(" << quote << get_Session()->get_UniqueId() << ", " << userId << ")";
q.execute();
return S_OK;
}
CATCHCLAUSE("RecordSessionActivity")
}
/////////////////////////////////Global Methods///////////////////////////////////
SE_CODE CAdminAPI::get_Countries(mysqlpp::StoreQueryResult& sqr, const std::function<CSTR (ICountry::QUERYFLDS, LGX&, BOOL& include)>& criteria)
{
try
{
// ask for fields needed
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
if (!criteria)
query << "select * from se_gbl_countries where country_id > 0 order by country_name";
else
{
bool bWhere = false;
query << "select * from se_gbl_countries ";
BOOL bresult = false;
LGX lgx = LGX_None;
CSTR sret = criteria(ICountry::QUERYFLDS::Name, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << " country_name = " << quote << sret;
bWhere=true;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::TwoChar, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << " country_code = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::ThreeChar, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_code1 = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::IsPaypalavailable, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_ispaypalavailable = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::Id, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_id = " << sret;
}
query << " order by country_name";
}
// LOGIP(query.str());
sqr = query.store();
if (!sqr.size())
return E_NotFound;
return S_OK;
}
CATCHCLAUSE("get_Countries(private)");
}
long unsigned int CAdminAPI::get_Countries(Json::Value& jsonOut, std::function<CSTR (ICountry::QUERYFLDS, LGX&, bool&) > criteria)
{
try
{
Json::Value& list = jsonOut;
mysqlpp::StoreQueryResult sqr;
THROWIFFAILED(get_Countries(sqr, criteria), "Failed to query data for countries.");
for (const Row& row : sqr)
{
Json::Value cntry ;
cntry["key"] = (I16)row["country_id"];
cntry["name"] = (string)row["country_name"];
cntry["code1"] = (string)row["country_code1"];
cntry["code"] = (string)row["country_code"];
cntry["ispaypalavailable"] = (string)row["country_ispaypalavailable"]=="1";
list.append(cntry);
}
return S_OK;
}
CATCHCLAUSE("get_Countries(json)");
}
long unsigned int CAdminAPI::get_Countries(IROSPList<ICountry>** ppOut, std::function<CSTR (ICountry::QUERYFLDS, LGX&, BOOL& include)> criteria)
{
try
{
mysqlpp::StoreQueryResult sqr;
THROWIFFAILED(get_Countries(sqr, criteria), "Failed to query data for countries.");
SP<CROSPList<ICountry>> pList;
THROWIFFAILED(CROSPList<ICountry>::CreateROSPList(get_Session(), &pList), "Failed to create ROSPList for countries.");
for (const Row& row : sqr)
{
SP<ICountry> pc;
THROWIFFAILED(SetCountry(row, &pc), "Failed to create a country instance.");
pList->Add(pc);
}
pList.CopyTo(ppOut);
return S_Success;
}
CATCHCLAUSE("get_Countries(list)");
}
long unsigned int CAdminAPI::get_Country(ICountry** ppOut, std::function<CSTR (ICountry::QUERYFLDS, LGX&, BOOL& include)> criteria)
{
try
{
// ask for fields needed
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
if (!criteria)
query << "select * from se_gbl_countries order by country_name";
else
{
bool bWhere = false;
query << "select * from se_gbl_countries ";
BOOL bresult = false;
LGX lgx = LGX_None;
CSTR sret = criteria(ICountry::QUERYFLDS::Name, lgx, bresult);
if (bresult && sret)
{
query << " where " << "country_name = " << quote << sret;
bWhere=true;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::TwoChar, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << " country_code = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::ThreeChar, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_code1 = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::IsPaypalavailable, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_ispaypalavailable = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(ICountry::QUERYFLDS::Id, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_id = " << sret;
}
query << " order by country_name";
}
// LOGIP(query.str());
auto result = query.store();
if (result.size())
{
const Row& row = result[0];
return SetCountry(row, ppOut);
}
return E_NotFound;
}
CATCHCLAUSE("get_Country");
}
SE_CODE CAdminAPI::get_Country(Json::Value& outVal, CSqlAst* criteria)
{
if (!criteria)
{
return E_InvalidArg;
}
try
{
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
query << "select * from list_CountryStates where " << *criteria;
auto store = query.store();
if (!store.size())
return E_NotFound;
SetCountry(store[0], outVal);
return S_OK;
}
CATCHCLAUSE("get_Country");
}
// private method begin
void CAdminAPI::SetCountry(const Row& row, Json::Value& out)
{
out["country_id"] = (I16)row["country_id"];
out["country_name"] = (string)row["country_name"];
out["country_code1"] = (string)row["country_code1"];
out["country_code"] = (string)row["country_code"];
out["country_ispaypalavailable"] = (string)row["country_ispaypalavailable"];
}
long unsigned int CAdminAPI::SetCountry(const Row& row, ICountry** ppOut)
{
return CObject<CCountry>::Create(
get_Session(),
(I16)row["country_id"],
(string)row["country_name"],
(string)row["country_code1"],
(string)row["country_code"],
(string)row["country_ispaypalavailable"]=="1",
ppOut);
}
// private method end
ErrorId CAdminAPI::get_States(IStateList** ppOut, std::function<CSTR(IState::QUERYFLDS,LGX&,bool&)> criteria)
{
try
{
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
if (!criteria)
query << "select * from se_gbl_states order by name";
else
{
bool bWhere = false;
query << "select * from se_gbl_states ";
BOOL bresult = false;
LGX lgx = LGX_None;
CSTR sret = criteria(IState::QUERYFLDS::Name, lgx, bresult);
if (bresult && sret)
{
query << " where " << "name = " << quote << sret;
bWhere=true;
}
bresult = false;
lgx = LGX_None;
sret = criteria(IState::QUERYFLDS::Code, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "code = " << quote << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(IState::QUERYFLDS::CountryId, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
query << "country_id = " << sret;
}
bresult = false;
lgx = LGX_None;
sret = criteria(IState::QUERYFLDS::CountryCode, lgx, bresult);
if (bresult && strlen(sret))
{
QUERYFIELDLOGIC;
auto qcnty = conn->query();
qcnty << "select country_id from se_gbl_countries where country_code=" << quote << sret;
auto scnty = qcnty.store();
query << "country_id = " << (scnty.size() ? (CSTR)scnty[0][0] : "0");
}
query << " order by name";
}
// LOGIP(query.str());
auto qr = query.store();
if (!qr.size())
return E_NotFound;
else
{
SP<CROSPList<IState>> pList;
THROWIFFAILED(CROSPList<IState>::CreateROSPList(get_Session(), &pList), "Failed to create ROSPList for countries.");
for (const Row& row : qr)
{
SP<IState> pc;
THROWIFFAILED(SetState(row, &pc), "Failed to create a state instance.");
pList->Add(pc);
}
pList.CopyTo(ppOut);
return S_Success;
}
}
CATCHCLAUSE("get_States");
}
SE_CODE CAdminAPI::get_States(Json::Value& jsonOut, CSqlAst* criteria)
{
try
{
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
if (!criteria)
query << "select * from list_CountryStates order by country_name, state_name";
else
{
const CSqlAst& ast = *criteria;
query << "select * from list_CountryStates where ";
query << ast;
query << " order by state_name";
}
BDBG << query.str();
auto qr = query.store();
if (!qr.size())
return E_NotFound;
else
{
for (const Row& row : qr)
{
Json::Value state;
THROWIFFAILED(SetState(row, state), "Failed to create a state instance.");
jsonOut.append(state);
}
return S_Success;
}
}
CATCHCLAUSE("get_States");
}
long unsigned int CAdminAPI::get_State(Json::Value& jsonOut, CSqlAst* criteria)
{
if (!criteria)
{
BERR << "Invalid argument criteria.";
return E_InvalidArg;
}
try
{
CSmartConnection conn(SEDBCONN);
Query query = conn->query();
query << "select * from list_CountryStates where " << *criteria;
BDBG << query.str();
auto store = query.store();
if (!store.size())
{
return E_NotFound;
}
SetState(store[0], jsonOut);
return S_OK;
}
CATCHCLAUSE("get_State");
}
// private method begin
long unsigned int CAdminAPI::SetState(const Row& row, IState** ppOut)
{
return CObject<CCountryState>::Create(
get_Session(),
(UID)row["state_id"],
(string)row["name"],
(string)row["code"],
(I16)row["country_id"],
ppOut);
}
long unsigned int CAdminAPI::SetState(const Row& row, Json::Value& jsout)
{
jsout["key"] = (I32)row["state_id"];
jsout["name"] = (string)row["state_name"];
jsout["code"] = (string)row["state_code"];
jsout["countrykey"] = (I16)row["country_id"];
SetCountry(row, jsout);
return S_OK;
}
/**********************Exchanges and Fees*************************/
/*
* Returns exchange code, name and fee
* @vendorSources (in): ['VENDOR1', 'VENDOR2']
* @jsOut (out): [{ key: 99, code : 'xx', name: 'xxxxx', fee: 99.99, vendor: 'xx'}]
*
*/
long unsigned int CAdminAPI::get_ExchangePackages(Json::Value& jsOut)
{
try
{
CSmartConnection conn(SEDBADM);
Query q = conn->query();
q << "select * from exchange_packages";
for (const Row& row : q.store())
{
Json::Value exchData;
exchData["key"] = (I32)row["package_id"];
exchData["name"] = (string)row["name"];
exchData["description"] = (string)row["description"];
exchData["fee"] = (R8)row["fee"];
jsOut.append(exchData);
}
return S_OK;
}
CATCHCLAUSE("get_ExchangePackages")
}
// private method end
/*************** busines operations **************/
ErrorId CAdminAPI::get_PaypalExpressCheckOut(IPaypalExpressCheckout** ppOut)
{
try
{
return CObject<CPaypalExpressCheckout>::Create(get_Session(), ppOut);
}
CATCHCLAUSE("get_PaypalExpressCheckOut");
}
ErrorId CAdminAPI::get_Product(UID id, IProduct** ppOut)
{
ErrorId retCode = E_UnknownError;
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
try
{
Row row;
Query q = conn->query();
q << "select products.*, product_prices.monthly_price as monthly_price, product_prices.quarterly_price as quarterly_price, ";
q << "product_prices.yearly_price as yearly_price from products " ;
q << "left join product_prices on products.product_id = product_prices.product_id ";
q << "where products.product_id =" << id;
auto qRes = q.use();
row = qRes.fetch_row();
if(row)
{
retCode = SetProduct(row,ppOut);
if (FAILED(retCode))
{
// LOGE(_logger, "Failed with error code " << retCode);
}
return retCode;
}
return E_NotFound;
}
catch (const std::exception& ex)
{
// LOGE(_logger, "Error update: " << ex.what());
return E_DBUpdateError;
}
}
ErrorId CAdminAPI::set_Product(IProduct* pIn)
{
CSmartConnection conn(SEDBCONN);
Query q = conn->query();
try
{
{
q<<"INSERT INTO products (name) VALUES ("<<quote<<pIn->get_Name()<<")";
q.exec();
I64 pdt_Id = (I64)q.insert_id();
pIn->set_Id(pdt_Id);
}
{
q<<"INSERT INTO product_prices (product_id, monthly_price, quarterly_price, yearly_price) VALUES ("<<pIn->get_Id()<<",\
"<<pIn->get_PriceMonthlyRate()<<","<<pIn->get_PriceQuarterlyRate()<<","<<pIn->get_PriceYearlyRate()<<")";
q.exec();
}
return S_Success;
}
catch (const std::exception& ex)
{
// LOGE(_logger, "Error update: " << ex.what());
return E_DBUpdateError;
}
}
ErrorId CAdminAPI::get_Products(IROSPList<IProduct>** ppOut)
{
ErrorId retCode = E_UnknownError;
CSmartConnection conn(SEDBCONN);
SP<CROSPList<IProduct>> pList;
retCode = CObject<CROSPList<IProduct>>::Create(get_Session(), &pList);
if (FAILED(retCode))
{
// LOGEP("Error Creating List");
return retCode;
}
Query q = conn->query();
q << "select products.*, product_prices.monthly_price as monthly_price, product_prices.quarterly_price as quarterly_price, \
product_prices.yearly_price as yearly_price from products \
join product_prices on products.product_id = product_prices.product_id\
order by products.name";
auto qRes = q.use();
if (!qRes)
{
// LOGE(_logger, "can't found products");
return E_DBQueryException;
}
Row row ;
while (row = qRes.fetch_row())
{
SP<IProduct> pProduct ;
retCode = IProduct::Create(get_Session(), &pProduct);
if (FAILED(retCode))
{
// LOGE(_logger, "can't create products");
return retCode;
}
retCode = SetProduct(row, &pProduct);
if (FAILED(retCode))
{
// LOGE(_logger, "Failed with error code " << retCode);
return retCode;
}
pList->Add(pProduct);
}
pList.CopyTo(ppOut);
return S_Success;
}
/////////////////////////////// Portfolio Operations /////////////////////////////////
long unsigned int CAdminAPI::get_Porfolio(unsigned int portfolioId, IPortfolio** ppOut)
{
}
long unsigned int CAdminAPI::get_Porfolios(unsigned long ownerId, IPortfolioList** ppOut)
{
}
long unsigned int CAdminAPI::get_Positions(unsigned long ownerId, IPositions** ppOut)
{
Json::Value val;
auto ret = CObject<CPositions>::Create(get_Session(), val, ppOut);
return ret;
}
/********************* Private Methods ************************/
ErrorId CAdminAPI::SetUser(CSmartConnection &conn, Row const& row, IUser** ppOut)
{
try
{
ErrorId retCode = CObject<CUser>::Create(get_Session(), ppOut);
if (FAILED(retCode))
{
// LOGE(_logger, "can't create User Type");
return retCode;
}
(*ppOut)->set_Id(row["ID"]);
(*ppOut)->set_UserId(row["user_login"]);
(*ppOut)->add_Role((UserRole)(I32)row["user_role"]);
(*ppOut)->set_FirstName(row["user_firstname"]);
(*ppOut)->set_LastName(row["user_lastname"]);
(*ppOut)->set_Active(row["user_isactive"]);
(*ppOut)->set_RegistrationStage((REGSTAGES)(I32)row["user_regstage"]);
((CUser*)(*ppOut))->set_CurrentSessionId(row["user_sessionid"]);
auto q = conn->query();
q << "select a.* from addresses a, (select addr_id from user_addr where ";
q << "user_id = " << (UID)row["ID"] << " and is_current = 1 order by seton limit 1) b where a.address_id = b.addr_id";
StoreQueryResult result ;
if ((result = q.store()).size())
{
((CUser*)(*ppOut))->_addrId = row[0];
}
return retCode;
}
catch (std::exception const& ex)
{
// LOGE(_logger, "Error: " << ex.what());
return E_DBQueryException;
}
}
SE_CODE CAdminAPI::SyncUserSession(CSmartConnection &conn, UID userId, CSTR sessionId)
{
try
{
conn.BeginTransaction();
Query q = conn->query();
q << "update users set user_sessionid = " << quote << sessionId << ", user_updatedon = NOW() where ID = " << userId;
q.exec();
if (FAILED(this->RecordSessionActivity(conn, userId)))
{
throw se::seexception("Failed to record session activity. Rolling back.");
}
conn.CommitTransaction();
}
catch(const se::seexception& ex)
{
conn.RollbackTransaction();
BERR << ex.what();
return E_DBUpdateError;
}
catch(const mysqlpp::Exception& ex)
{
conn.RollbackTransaction();
BERR << ex.what();
return E_DBUpdateError;
}
catch (const std::exception& ex)
{
conn.RollbackTransaction();
BERR << ex.what();
return E_DBUpdateError;
}
}
ErrorId CAdminAPI::SetProduct(Row const& row, IProduct** ppOut)
{
if (!row) return E_NotFound;
ErrorId retCode = CObject<CProduct>::Create(get_Session(), ppOut);
if (FAILED(retCode))
{
return retCode;
}
(*ppOut)->set_Id(row["product_id"]);
(*ppOut)->set_Name(row["name"]);
(*ppOut)->set_PriceMonthlyRate(row["monthly_price"]);
(*ppOut)->set_PriceQuarterlyRate(row["quarterly_price"]);
(*ppOut)->set_PriceYearlyRate(row["yearly_price"]);
return retCode;
}
// Billing related
SE_CODE CAdminAPI::BeginAsLicensedUser(CSmartConnection& conn, UID userId, U16 paymentType, CSTR packages, R8 fee, UID* newId)
{
try
{
Query q = conn->query();
q << "insert into cust_licensesetup ";
q << "( userid, paymenttype, packagekeys, fees, startedon ) ";
q << "VALUES ";
q << "(" << userId << ", " << paymentType << ", " << quote << packages << ", " << fee << ", NOW())";
q.execute();
if (newId)
{
*newId = q.insert_id();
}
}
CATCHCLAUSEAUTO
}
SE_CODE CAdminAPI::EndAsLicensedUser(CSmartConnection& conn, UID userId)
{
try
{
Query q = conn->query();
q << "update cust_licensesetup set endedon = NOW() where userid = " << userId;
q.execute();
}
CATCHCLAUSEAUTO
}
SE_CODE CAdminAPI::RefundLicensedUser(CSmartConnection& conn, UID userId, R8 amount, CSTR notes, UID refId)
{
return BillLicensee(conn, userId, BILLINGTYPES::Refunds, amount, notes, refId);
}
SE_CODE CAdminAPI::BillLicensee(CSmartConnection& conn, UID userId, BILLINGTYPES billingType, R8 amount, CSTR notes, UID refId, TRANSACTIONTYPES transType)
{
// this table has only inserts. no deletes
// eg. if a fee is charged twice accidently and customer needs refund
// the duplicate entry remains there, but will capture its unique id and
// then create a new table for 'Debit-Refund' and refid set to the unique id.
if (!userId)
{
BERR << "User id not given.";
return E_InvalidArg;
}
if (!amount || amount <= 0)
{
BERR << "amount parameter must be a positive amount";
return E_InvalidArg;
}
if (!notes || !strlen(notes))
{
BERR << "notes parameter is empty";
return E_InvalidArg;
}
TRANSACTIONTYPES tt;
switch(billingType)
{
case BILLINGTYPES::SubscriptionFee:
tt = TRANSACTIONTYPES::Credit;
break;
case BILLINGTYPES::Refunds:
tt = TRANSACTIONTYPES::Debit;
if (!refId)
{
BERR << "refId parameter must be greater than zero.";
return E_InsufficientParameters;
}
break;
case BILLINGTYPES::OnceOnly:
tt = transType;
}
if (refId)
{
Query q = conn->query();
q << "select billingid from cust_billing where billingid = " << refId;
if (!q.store().size())
{
BERR << "refId provided is not found";
return E_IncorrectOperation;
}
}
try
{
Query q1 = conn->query();
q1 << "insert into cust_billing ";
q1 << "( userid, billingtype, transtype, transdate, amount, referid, notes ) ";
q1 << "VALUES (";
q1 << userId << ", ";
q1 << (U16)billingType << ", ";
q1 << quote << (char)transType << ", ";
q1 << "NOW(), ";
q1 << amount << ", ";
q1 << refId << ", ";
q1 << quote << notes ;
q1 << ")";
q1.execute();
}
CATCHCLAUSEAUTO
}
/////////////////////////// Help Related Methods ////////////////////////
RP<IHelpDocTree> CAdminAPI::get_HelpDocTree()
{
SP<IHelpDocTree> docTree ;
if (FAILED(CObject<CHelpDocTree>::Create(get_Session(), &docTree)))
return nullptr;
return docTree;
}
}
} | [
"sajiantony@hotmail.com"
] | sajiantony@hotmail.com |
668e1c75fa499cb56d96988568d9567fea7f07f8 | 0de7df0382a8c18bde2e10b71631ac3587a9936a | /MainzPackage/CK_RungeKutta.h | 06cec73a361881364af9f379bcbb61902b5ad278 | [] | no_license | erezcoh4/Mainz_deep | c8ddcfe5ab4e372bedb52e306f872109174721d3 | b9bcdc7d3e0538ea75678c693283fb0ac26f49e3 | refs/heads/master | 2016-08-11T07:24:27.867464 | 2016-04-14T05:31:31 | 2016-04-14T05:31:31 | 54,966,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,301 | h | /**
* \file CK_RungeKutta.h
*
* \ingroup MainzPackage
*
* \brief Class def header for a class CK_RungeKutta
*
* @author erezcohen
*/
/** \addtogroup MainzPackage
@{*/
#ifndef CK_RUNGEKUTTA_H
#define CK_RUNGEKUTTA_H
#include <iostream>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
/**
\class CK_RungeKutta
User defined class CK_RungeKutta ... these comments are used to generate
doxygen documentation!
*/
class CK_RungeKutta{
public:
/// Default constructor
CK_RungeKutta(){}
/// Default destructor
~CK_RungeKutta(){}
// C++ file CK_RungeKutta.h
//
// Cash-Karp Runge-Kutta solution of ordinary diffrential equations
// (call routine odeint)
//
// The original functions are taken from the book "NUMERICAL RECIPES in C".
//
// Version 1.0, T.Pospischil, 12/97:
// Modification of the original routines:
// - memory handling (nrutil routines replaced by "new" statements)
// - step storage is written into a file instead of an array.
// - value of TINY raised from 1e-30 to 0.001.
//
/* ------- rkck: Take a Cash-Karp Runge-Kutta step:
Given values for n variables y[1..n] and their derivatives dydx[1..n]
known at x, use the fifth-order Cash-Karp Runge-Kutta method to advance
the solution over an interval h and return the incremented variables as
yout[1..n]. Also return an estimate of the local truncation error in
yout using the embedded fourth-order method.
The user supplies the routine derivs(x,y,dydx), which returns dervatives
dydx at x.
*/
void rkck(double y[],
double dydx[],
int n,
double x,
double h,
double yout[],
double yerr[],
void (*derivs)(double, double [], double []) );
/* ----------------------- rkqs: Fifth-order Runge-Kutta stepper
Fifth-order Runge-Kutta step with monitoring of local truncation error
to ensure accuracy and adjust stepsize. Input are the dependent variable
vector y[1..n] and jts derivative dydx[1..n] at the starting value of the
independent variable x. Also input are the stepsize to be attempted htry,
the required accuracy eps, and the vector yscal [1..n] against which the
error is scaled.
On output, y and x are replaced by their new values, hdid is the stepsize
that was actually accomplished, and hnext is the estimated next stepsize.
derivs is the user-supplied routine that computes the right-hand side
derivatives.
*/
void rkqs(double y[],
double dydx[],
int n,
double *x,
double htry,
double eps,
double yscal[],
double *hdid,
double *hnext,
void (*derivs)(double, double [], double []));
/* ---------------------------- odeint -------------------------------------
Runge-Kutta driver with adaptive stepsize control. Integrate starting
values ystart [1..nvar] from x1 to x2 with accuracy eps, storing inter-
mediate results in global variables. h1 should be set as a guessed first
stepsize, hmin as the minimum allowed stepsize (can be zero).
On output nok and nbad are the number of good and bad (but retried and
fixed) steps taken, and ystart is replaced by values at the end of the
integration interval. derivs is the user-supplied routine for calculating
the right-hand side derivative, while rkqs is the name of the stepper
routine to be used. */
int odeint(double ystart[], // Start values
int nvar, // number of ODEs (= dimension of the arrays)
double x1, // start value for the independent variable
double x2, // stop at this value of the independent variable
double y1min, // stop if y[1] smaller than y1min
double eps, // required accuracy
double h1, // guessed first stepsize
double hmin, // min. allowed stepsize (can be zero)
int *nok, // number of good steps taken
int *nbad, // number of bad (retried and fixed) steps taken
double dxsav, // interval size for step storing
int kmax, // max number of steps to store
int &kount, // number of stored steps
void (*stepstore)(double, double [], int, int),// func stores steps
void (*derivs)(double, double [], double []), // derivatives
double *xact ); // actual value for the independent variable
int odeint2(double ystart[], // Start values
int nvar, // number of ODEs (= dimension of the arrays)
double x1, // start value for the independent variable
double x2, // stop at this value of the independent variable
double y1min, // stop if y[1] smaller than y1min
double eps, // required accuracy
double h1, // guessed first stepsize
double hmin, // min. allowed stepsize (can be zero)
int *nok, // number of good steps taken
int *nbad, // number of bad (retried and fixed) steps taken
double dxsav, // interval size for step storing
int kmax, // max number of steps to store
int &kount, // number of stored steps
void (*stepstore)(double, double [], int, int),// func stores steps
void (*derivs)(double, double [], double []), // derivatives
double *xact, // actual value for the independent variable
int (*checkPosition)(double []) ) ;
int odeint3(double ystart[], // Start values
int nvar, // number of ODEs (= dimension of the arrays)
double x1, // start value for the independent variable
double x2, // stop at this value of the independent variable
double y1min, // stop if y[1] smaller than y1min
double eps, // required accuracy
double h1, // guessed first stepsize
double hmin, // min. allowed stepsize (can be zero)
int *nok, // number of good steps taken
int *nbad, // number of bad (retried and fixed) steps taken
double dxsav, // interval size for step storing
int kmax, // max number of steps to store
int &kount, // number of stored steps
void (*stepstore)(double, double [], int, int),// func stores steps
void (*derivs)(double, double [], double []), // derivatives
double *xact, // actual value for the independent variable
int (*checkPosition)(double []),
int (*checkInside)(double x, double y, double z)) ;
};
#endif
/** @} */ // end of doxygen group
| [
"cohen.erez7@gmail.com"
] | cohen.erez7@gmail.com |
293569fa43476fb818f826eb05e1349594a93e49 | bfa2a4ce99b3f93d3f00e538e4195301e521a261 | /app/jni/DetectionBasedTracker_jni.cpp | d08e6297c954772aade2c7aa2cc960787ba22655 | [] | no_license | V0tis/OpenCV-Android | c467b4a307a1d7dfd9a46a6a4a1a232de500a7ac | bf714d38a93c4a8ae7519f10058a32b701bab43b | refs/heads/main | 2023-08-15T12:13:23.020487 | 2021-09-23T11:41:26 | 2021-09-23T11:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,808 | cpp | #include <DetectionBasedTracker_jni.h>
#include <opencv2/core.hpp>
#include <opencv2/objdetect.hpp>
#include <string>
#include <vector>
#include <android/log.h>
#define LOG_TAG "FaceDetection/DetectionBasedTracker"
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
using namespace std;
using namespace cv;
inline void vector_Rect_to_Mat(vector<Rect>& v_rect, Mat& mat)
{
mat = Mat(v_rect, true);
}
class CascadeDetectorAdapter: public DetectionBasedTracker::IDetector
{
public:
CascadeDetectorAdapter(cv::Ptr<cv::CascadeClassifier> detector):
IDetector(),
Detector(detector)
{
LOGD("CascadeDetectorAdapter::Detect::Detect");
CV_Assert(detector);
}
void detect(const cv::Mat &Image, std::vector<cv::Rect> &objects)
{
LOGD("CascadeDetectorAdapter::Detect: begin");
LOGD("CascadeDetectorAdapter::Detect: scaleFactor=%.2f, minNeighbours=%d, minObjSize=(%dx%d), maxObjSize=(%dx%d)", scaleFactor, minNeighbours, minObjSize.width, minObjSize.height, maxObjSize.width, maxObjSize.height);
Detector->detectMultiScale(Image, objects, scaleFactor, minNeighbours, 0, minObjSize, maxObjSize);
LOGD("CascadeDetectorAdapter::Detect: end");
}
virtual ~CascadeDetectorAdapter()
{
LOGD("CascadeDetectorAdapter::Detect::~Detect");
}
private:
CascadeDetectorAdapter();
cv::Ptr<cv::CascadeClassifier> Detector;
};
struct DetectorAgregator
{
cv::Ptr<CascadeDetectorAdapter> mainDetector;
cv::Ptr<CascadeDetectorAdapter> trackingDetector;
cv::Ptr<DetectionBasedTracker> tracker;
DetectorAgregator(cv::Ptr<CascadeDetectorAdapter>& _mainDetector, cv::Ptr<CascadeDetectorAdapter>& _trackingDetector):
mainDetector(_mainDetector),
trackingDetector(_trackingDetector)
{
CV_Assert(_mainDetector);
CV_Assert(_trackingDetector);
DetectionBasedTracker::Parameters DetectorParams;
tracker = makePtr<DetectionBasedTracker>(mainDetector, trackingDetector, DetectorParams);
}
};
JNIEXPORT jlong JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeCreateObject
(JNIEnv * jenv, jclass, jstring jFileName, jint faceSize)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeCreateObject enter");
const char* jnamestr = jenv->GetStringUTFChars(jFileName, NULL);
string stdFileName(jnamestr);
jlong result = 0;
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeCreateObject");
try
{
cv::Ptr<CascadeDetectorAdapter> mainDetector = makePtr<CascadeDetectorAdapter>(
makePtr<CascadeClassifier>(stdFileName));
cv::Ptr<CascadeDetectorAdapter> trackingDetector = makePtr<CascadeDetectorAdapter>(
makePtr<CascadeClassifier>(stdFileName));
result = (jlong)new DetectorAgregator(mainDetector, trackingDetector);
if (faceSize > 0)
{
mainDetector->setMinObjectSize(Size(faceSize, faceSize));
//trackingDetector->setMinObjectSize(Size(faceSize, faceSize));
}
}
catch(const cv::Exception& e)
{
LOGD("nativeCreateObject caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeCreateObject caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeCreateObject()");
return 0;
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeCreateObject exit");
return result;
}
JNIEXPORT void JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeDestroyObject
(JNIEnv * jenv, jclass, jlong thiz)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeDestroyObject");
try
{
if(thiz != 0)
{
((DetectorAgregator*)thiz)->tracker->stop();
delete (DetectorAgregator*)thiz;
}
}
catch(const cv::Exception& e)
{
LOGD("nativeestroyObject caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeDestroyObject caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeDestroyObject()");
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeDestroyObject exit");
}
JNIEXPORT void JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeStart
(JNIEnv * jenv, jclass, jlong thiz)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeStart");
try
{
((DetectorAgregator*)thiz)->tracker->run();
}
catch(const cv::Exception& e)
{
LOGD("nativeStart caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeStart caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeStart()");
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeStart exit");
}
JNIEXPORT void JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeStop
(JNIEnv * jenv, jclass, jlong thiz)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeStop");
try
{
((DetectorAgregator*)thiz)->tracker->stop();
}
catch(const cv::Exception& e)
{
LOGD("nativeStop caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeStop caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeStop()");
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeStop exit");
}
JNIEXPORT void JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeSetFaceSize
(JNIEnv * jenv, jclass, jlong thiz, jint faceSize)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeSetFaceSize -- BEGIN");
try
{
if (faceSize > 0)
{
((DetectorAgregator*)thiz)->mainDetector->setMinObjectSize(Size(faceSize, faceSize));
//((DetectorAgregator*)thiz)->trackingDetector->setMinObjectSize(Size(faceSize, faceSize));
}
}
catch(const cv::Exception& e)
{
LOGD("nativeStop caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeSetFaceSize caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code of DetectionBasedTracker.nativeSetFaceSize()");
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeSetFaceSize -- END");
}
JNIEXPORT void JNICALL Java_com_sizl_facedetector_DetectionBasedTracker_nativeDetect
(JNIEnv * jenv, jclass, jlong thiz, jlong imageGray, jlong faces)
{
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeDetect");
try
{
vector<Rect> RectFaces;
((DetectorAgregator*)thiz)->tracker->process(*((Mat*)imageGray));
((DetectorAgregator*)thiz)->tracker->getObjects(RectFaces);
*((Mat*)faces) = Mat(RectFaces, true);
}
catch(const cv::Exception& e)
{
LOGD("nativeCreateObject caught cv::Exception: %s", e.what());
jclass je = jenv->FindClass("org/opencv/core/CvException");
if(!je)
je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, e.what());
}
catch (...)
{
LOGD("nativeDetect caught unknown exception");
jclass je = jenv->FindClass("java/lang/Exception");
jenv->ThrowNew(je, "Unknown exception in JNI code DetectionBasedTracker.nativeDetect()");
}
LOGD("Java_com_sizl_facedetector_DetectionBasedTracker_nativeDetect END");
}
| [
"donggun.dev@gmail.com"
] | donggun.dev@gmail.com |
9e3a0b95739989e96fa74af367149397002929c9 | a8003497954bdb3b6a91e128be211df1289f0c06 | /libs/base/include/suil/base/exception.hpp | 2c4668238f830e88ebba79cc48f874568dbb816f | [
"MIT"
] | permissive | dccarter/suil | 5bf4d47869582a4088c74ac65be33bf79e67d162 | 849ab2ac4b33cd1cbd24ae3253fe472ba5bb7f85 | refs/heads/main | 2022-12-17T12:17:33.581772 | 2022-11-17T02:08:29 | 2022-11-17T02:08:29 | 324,083,766 | 6 | 0 | MIT | 2022-11-17T01:53:30 | 2020-12-24T06:27:13 | C++ | UTF-8 | C++ | false | false | 6,557 | hpp | //
// Created by Mpho Mbotho on 2020-10-05.
//
#ifndef SUIL_BASE_EXCEPTION_HPP
#define SUIL_BASE_EXCEPTION_HPP
#include <exception>
#include <string>
#include <sstream>
#include <variant>
#include <suil/base/utils.hpp>
namespace suil {
class Exception: public std::exception {
public:
explicit Exception(std::string message);
COPY_CTOR(Exception) = default;
MOVE_CTOR(Exception) = default;
COPY_ASSIGN(Exception) = default;
MOVE_ASSIGN(Exception) = default;
/**
* Get the message that was constructed when creating the exception
*
* @return the message constructed when creating the exception
*/
[[nodiscard]]
const std::string& message() const noexcept {
return mMessage;
}
/**
* Gets the tag of the exception instance which is basically
* the name of the exception kind
*
* @return a string pointing to the name of the exception
*/
[[nodiscard]]
const std::string& tag() const noexcept {
return mTag;
}
/**
* Retrieve the ID of the exception which is a hash of the exception
* kind
*
* @return the ID of the exception
*/
[[nodiscard]]
int64_t id() const noexcept {
return mId;
}
/**
* eq equality comparison operator
* @param other the other exception to compare to
* @return true if the exceptions have the same code
*/
inline bool operator==(const Exception& other) const {
return mId == other.mId;
}
/**
* neq equality comparison operator
* @param other the other exception to compare to
* @return true if the exceptions have different codes
*/
inline bool operator!=(const Exception& other) const {
return mId != other.mId;
}
/**
* Get the message that was created when creating the exception in C style string
* format
*
* @return the message in C-style string
*/
[[nodiscard]]
const char* what() const noexcept override {
return mMessage.c_str();
}
/**
* Construct exception from current exception
* @return the current exception
*
* @note this function is only applicable on a catch exception
*/
static Exception fromCurrent();
protected:
template <typename... Args>
Exception(const std::string& tag, uint64_t id, Args... args)
: mTag{tag},
mId{id}
{
makeMessage(std::forward<Args>(args)...);
}
static std::string makeTag(const std::string_view& sv);
static std::uint64_t makeId(const std::string& tag);
private:
template <typename... Args>
void makeMessage(Args... args) {
if (sizeof...(args)) {
std::stringstream ss;
(ss << ... << args);
mMessage = ss.str();
}
}
std::string mMessage{};
const std::uint64_t mId{};
const std::string& mTag{};
};
#define AnT() __PRETTY_FUNCTION__, ":", __LINE__, " "
#define DECLARE_EXCEPTION(Name) \
class Name : public suil::Exception { \
public: \
template <typename... Args> \
Name (Args... args) \
: Exception( Name ::Tag(), Name ::Id(), std::forward<Args>(args)...)\
{} \
\
using Exception::operator=; \
using Exception::operator!=; \
\
static const std::string& Tag() { \
static std::string _Tag{Exception::makeTag(__PRETTY_FUNCTION__)}; \
return _Tag; \
} \
\
static const uint64_t& Id() { \
static uint64_t _Id{Exception::makeId(Tag())}; \
return _Id; \
} \
}
DECLARE_EXCEPTION(AccessViolation);
DECLARE_EXCEPTION(OutOfRange);
DECLARE_EXCEPTION(KeyNotFound);
DECLARE_EXCEPTION(MemoryAllocationFailure);
DECLARE_EXCEPTION(IndexOutOfBounds);
DECLARE_EXCEPTION(InvalidArguments);
DECLARE_EXCEPTION(UnsupportedOperation);
template <typename V, typename E = Exception>
requires (std::is_same_v<E, Exception> || std::is_base_of_v<Exception, E>)
struct Return : public std::variant<V, E> {
using std::variant<V, E>::variant;
operator bool() const { return std::holds_alternative<V>(Ego); }
V& operator*() { return std::get<V>(Ego); }
const V& operator*() const { return std::get<V>(Ego); }
const E& exception() const { return std::get<E>(Ego); }
const V& value() const { return std::get<V>(Ego); }
E& exception() { return std::get<E>(Ego); }
V& value() { return std::get<V>(Ego); }
void raise() {
if (!Ego) {
throw std::move(exception());
}
}
Return<V, E> operator||(V value) {
if (!std::holds_alternative<V>(Ego)) {
return {std::move(value)};
}
return std::move(Ego);
}
};
template <typename R, typename F, typename... Args>
Return<R> TryCatch(F func, Args&&... args)
{
try {
return {func(std::forward<Args>(args)...)};
}
catch (...) {
return {Exception::fromCurrent()};
}
}
}
#endif //SUIL_BASE_EXCEPTION_HPP
| [
"lastcarter@gmail.com"
] | lastcarter@gmail.com |
0d4b50a3b0f5f6fe4bca5993bed5ab9ce92351ed | 5d6278f9a2eda792f54f6cc8fb9bbafd6551c1fe | /Files/FrankowskiFantasy/Encounters/NeverEndingTower/Neverending-Tower_Hard.h | c60a3bb7b1707010b12c8cfbece69a0e0f9e0a4b | [] | no_license | 6b4cb9/JPO | 76a88e7f3bed15f87b1de706fec7aa0f7941a8e8 | 50eda1d68854ad8c577850248aafe9fe5f27159a | refs/heads/master | 2021-01-11T19:47:48.665415 | 2017-01-22T13:24:05 | 2017-01-22T13:24:05 | 79,398,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 757 | h | #pragma once
//Author: Kamil Janowski
// Difficulty: 3
// Priority : 3
#include"stdafx.h"
#include "..\..\Character.h"
#include "..\..\Encounter.h"
#include <fstream>
#include <string>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <Windows.h>
#include <cstdlib>
#include <chrono>
class Neverending_Tower_Hard : public Encounter
{
private:
void Read_Note(string Name_Of_File);
bool First_Floor(Character* Character);
bool Second_Floor(Character* Character);
bool Third_Floor(Character* Character);
bool Fourth_Floor(Character* Character);
bool Fifth_Floor(Character* Character);
bool Sixth_Floor(Character* Character);
bool Seventh_Floor(Character* Character);
public:
bool Proceed(Character* Character);
};
| [
"rosenhof@student.agh.edu.pl"
] | rosenhof@student.agh.edu.pl |
5522d8e928c8055ad435a73d46887e5b89773983 | 6cb8560e1da833eeeba77cc05f22147d8ad8ad69 | /hello_world.cpp | e31111d477b1fd783471db374eef719dc539f89d | [
"MIT"
] | permissive | tugberkugurlu/cpp-samples | 8f6c51ac3aa83fe995eacf0f84cfef26fe3cc2cc | 14fd24af43b76848cbf71764fdae1da2a938dfdd | refs/heads/master | 2021-01-20T20:57:32.014863 | 2015-07-07T15:26:59 | 2015-07-07T15:26:59 | 38,696,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 102 | cpp | #include <iostream>
using namespace std;
int main() {
cout << "Hello World!\n";
return 0;
}
| [
"tugberk@outlook.com"
] | tugberk@outlook.com |
409c09595b82939840bc12782b916f293f8fa583 | a740fa23e2e7c1d650ddc05f0651502367674ebf | /iterator.cpp | 26941f1b03ad6dabbaf015d14cb022c7cc3037e6 | [] | no_license | dimores28/Kurs | 7a2a292db7ab9403b8a6df04973fb466425c507e | 2a92766493ee5edc8a277c376160b4b10bbdf394 | refs/heads/master | 2020-03-28T14:20:23.342535 | 2018-10-05T13:13:40 | 2018-10-05T13:13:40 | 148,479,192 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 5,785 | cpp | #include <iostream>
#include <string>
#include <memory>
#include <set>
#include <vector>
#include <algorithm>
using namespace std;
template<class T>
void print(const T& t)
{
for (typename T::const_iterator it = t.begin(); it != t.end(); ++it)
{
cout << *it ;
}
cout << endl;
}
template<class T>
struct Node
{
private:
template<class Iter>
class NodeIterator
{
friend struct Node;
public:
typedef Iter iterator_type;
typedef std::forward_iterator_tag iterator_category;
typedef iterator_type value_type;
typedef ptrdiff_t difference_type;
typedef iterator_type& reference;
typedef iterator_type* pointer;
iterator_type* value;
private:
NodeIterator(Iter* p): value(p){}
public:
NodeIterator(const NodeIterator& it) : value(it.value){}
bool operator !=(NodeIterator const& other)const
{
return value != other.value;
}
//Не обязательно реализововать
bool operator ==(NodeIterator const& other)const
{
return value == other.value;
}
typename NodeIterator::reference operator*()const
{
return *value;
}
NodeIterator& operator++()
{
if (value->parent == nullptr)
value = nullptr;
else if (value->parent->right.get() == value)
value = value->parent;
else
{
value = value->parent;
if (value->right.get() != nullptr)
{
value = value->right.get();
while (value->left.get() != nullptr)
value = value->left.get();
}
}
return *this;
}
};
public:
T value;
unique_ptr <Node> left;
unique_ptr <Node> right;
Node* parent;
Node(const T& value, unique_ptr <Node> left, unique_ptr <Node> right, Node* parent)
: value(value), left(std::move(left)), right(std::move(right)), parent(parent)
{}
Node(const Node&) = delete;
typedef NodeIterator<Node> iterator;
typedef NodeIterator<const Node> const_iterator;
iterator begin()
{
Node* node = this;
while (node->left != nullptr)
node = node->left.get();
return iterator(node);
}
iterator end()
{
return nullptr;
}
const_iterator begin()const
{
const Node* node = this;
while (node->left != nullptr)
node = node->left.get();
return const_iterator(node);
}
const_iterator end()const
{
return nullptr;
}
friend std::ostream& operator<<(std::ostream& os, const Node& n)
{
return os << n.value;
}
};
struct Point
{
unsigned x;
unsigned y;
friend bool operator<(const Point& p1, const Point& p2)
{
if (p1.y < p2.y)
return true;
if (p1.y > p2.y)
return false;
return (p1.x < p2.x);
}
};
//JAVA ITERATOR реализация на C++
template <class Container>
class Iterator
{
Container conteiner;
bool isStart;
typename Container::iterator it;
public:
Iterator(const Container& c): conteiner(c), isStart(false){}
Iterator() = delete;
bool next()
{
if (!isStart)
{
it = conteiner.begin();
isStart = true;
}
else
it++;
return !(it == conteiner.end());
}
inline typename Container::value_type current() const
{
return *it;
}
};
template<class Container>
Iterator<Container> create_iterator(const Container& c)
{
return Iterator<Container>(c);
}
int main()
{
/* string str{ "Hello world\n" };
for (std::string::iterator it = str.begin(); it != str.end(); ++it)
{
cout << *it << endl;
}
for (auto it = str.begin(); it != str.end(); ++it)
{
cout << *it << endl;
}
for (auto &&s : str)
{
cout << s << endl;
}
print(str);
*/
auto root = make_unique<Node<string>>("a1", nullptr, nullptr, nullptr);
root->left = make_unique<Node<string>>("b1", nullptr, nullptr, root.get());
root->right = make_unique<Node<string>>("b2", nullptr, nullptr, root.get());
auto b1 = root->left.get();
auto b2 = root->right.get();
b1->left = make_unique<Node<string>>("c1", nullptr, nullptr, b1);
b1->right = make_unique<Node<string>>("c2", nullptr, nullptr, b1);
b2->left = make_unique<Node<string>>("c3", nullptr, nullptr, b2);
b2->right = make_unique<Node<string>>("c3", nullptr, nullptr, b2);
auto c1 = b1->left.get();
auto c2 = b1->right.get();
auto c3 = b2->left.get();
auto c4 = b2->right.get();
/*
cout << root->value << endl;
cout << b1->value << endl;
cout << b2->value << endl;
cout << c1->value << endl;
cout << c2->value << endl;
cout << c3->value << endl;
cout << c4->value << endl;
*/
/*
auto it = root->begin();
cout << *it<< endl;
++it;
cout << *it << endl;
++it;
cout << *it << endl;*/
/*
for (auto it = root->begin(); it != root->end(); ++it)
{
cout << *it << endl;
}
for (auto&& node : *root)
{
cout << node << endl;
}
std::set<Point> points = { {5,3}, {1,2}, {0,0} };
for (auto it = points.begin(); it != points.end(); ++it)
{
Point& n = const_cast<Point&> (*it);
//it->x = 0;
//it->y = 0;
n.x = 0;
n.y = 0;
}
for (auto &&p : points)
{
cout << p.x << " " << p.y << endl;
}
string str{ "Hello world\n" };
auto it = str.begin();
cout << *std::next(it) << endl;
cout << std::distance(str.begin(), str.end()) << endl;
std::advance(it, 3);
std::advance(it, -2);
cout << *it << endl;
auto first = root->begin();
std::advance(first, 2);
std::next(first);
cout << *first << endl;
typename std::iterator_traits<std::set<int>::iterator>::iterator_category a;
*/
string s = "Hello world";
std::reverse_iterator<std::string::iterator> r = s.rbegin();
string new_s(r, s.rend());
cout << new_s << endl;
std::sort(s.begin(), s.end());
cout << s << endl;
std::sort(std::make_reverse_iterator(s.end()), std::make_reverse_iterator(s.begin()));
cout << s << endl;
///////Using JAVA Iteratir
vector<int> data{ 1,2,3,4,5,6,7,8,9,0 };
auto iter = create_iterator(data);
while (iter.next())
{
cout << iter.current() << " ";
}
cout << endl;
return 0;
}
| [
"dimores28@rambler.ru"
] | dimores28@rambler.ru |
980fc2cfc720232761d26acd52881bd2bc516aa1 | 935a397d01fba9e332f63c71d140de1a1bffe277 | /kmp.cpp | 46051ee2ad7e9cd54eea9eda63d8cbbd6bc76a4f | [] | no_license | dreamzen/programming | c043b54a0a42a3fbf9cdbc804a4aa08f1dfa3dc1 | a58f4449e4dfc6823ba0a2d3aa7793dec56358d2 | refs/heads/master | 2021-01-25T08:42:58.721002 | 2014-06-21T15:43:48 | 2014-06-21T15:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution
{
private:
vector<int> p;
public:
char *strStr(char *haystack, char *needle)
{
if(haystack == NULL || needle == NULL)
{
return NULL;
}
int len1 = strlen(haystack);
int len2 = strlen(needle);
if(len2 == 0)
{
return haystack;
}
p.resize(len2);
getNextVal(needle);
int i = 0;
int j = -1;
while(i < len1 && j < len2)
{
if(haystack[i] == needle[j + 1])
{
i++;
j++;
if(j == len2 - 1)
{
return &haystack[i - len2];
}
}
else
{
if(j == -1)
{
i++;
}
else
{
j = p[j];
}
}
}
return NULL;
}
void getNextVal(char *str)
{
int len = strlen(str);
int j = 1;
int k = -1;
p[0] = -1;
while(j < len)
{
if(str[j] == str[k + 1])
{
p[j] = k + 1;
j++;
k++;
}
else
{
if(k == -1)
{
p[j] = -1;
j++;
}
else
{
k = p[k];
}
}
}
}
};
int main()
{
char A[1024];
char B[1024];
cin >> A >> B;
cout << A << B << endl;
Solution s;
cout << s.strStr(A,B) << endl;
return 0;
}
| [
"dreamzen@163.com"
] | dreamzen@163.com |
18bf1ceb4ceb10664de6e7696e8ad3241d034663 | 2bc2415e697671aea985d3145ec6b80b87f2e644 | /ScanVer1_0/highform.cpp | 5fc55c321ba50fbb233c96fdd638fd12ba69e270 | [] | no_license | zhuym799/scan | 36b66db55406c337facf3d1e288873295de4f938 | b5b16e5f3b4d89ce6e12bc19e054b0d810ffad0e | refs/heads/main | 2023-04-28T23:28:04.640498 | 2021-05-09T10:26:20 | 2021-05-09T10:26:20 | 353,310,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | #include "highform.h"
#include "ui_highform.h"
HighForm::HighForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::HighForm)
{
ui->setupUi(this);
}
HighForm::~HighForm()
{
delete ui;
}
| [
"923637194@qq.com"
] | 923637194@qq.com |
0ef886ea61fd7358a8283519322b4714730d920d | 8d4baaf91cee3ea8ae16ab3359ab89b0557b0a6c | /depenseGroupe.cpp | 5265d0de8a245c4aaa3e3d2c2fcc9773180986c1 | [] | no_license | Karl-Nels/H18-TP2 | 1599f2b7963786325dca9009597c760bfbb8380a | 3042110f650e003904740b955b54be7f7d451807 | refs/heads/master | 2020-04-01T08:18:56.293880 | 2018-10-22T01:49:13 | 2018-10-22T01:49:13 | 153,025,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | #include "depenseGroupe.h"
//constructeurs
DepenseGroupe::DepenseGroupe(const string& nom, double montant,
const string& lieu): Depense::Depense(nom,montant,lieu,groupe),nombreParticipants_(0)
{
}
DepenseGroupe::DepenseGroupe(const DepenseGroupe& depense): Depense(depense),nombreParticipants_(0) {}
// accesseurs
unsigned int DepenseGroupe::getNombreParticipants() const {
return nombreParticipants_;
}
double DepenseGroupe::getMontantPersonnel() const {
if (nombreParticipants_ == 0)
return 0.0;
else
return getMontant() / getNombreParticipants();
}
//modificateurs
void DepenseGroupe::setNombreParticipants(unsigned int nombre) {
nombreParticipants_ = nombre;
}
//Surcharge de l'operateur << pour affichage
ostream& operator<<(ostream& os, const DepenseGroupe& depense) {
os << "\t\t Depense de groupe : "
<< "\t" << static_cast<Depense>(depense)
<< " fait par: " << depense.getNombreParticipants() << " soit: "
<< depense.getMontantPersonnel() << " par personne." << endl;
return os;
}
| [
"xhworking@gmail.com"
] | xhworking@gmail.com |
cd818e6ceefd6acbfc56015206b2c96d477c675b | 062a5099de7ab2fd1b12d6e98bdc446473cea455 | /140728/Graphic/model/character.h | 74eea0a58cdabc212ac562e771699dcbdc546edb | [
"MIT"
] | permissive | lthnim371/DirectX3D | 8fbda7a3f9b1cec2fad3c410465b4ab14bd87cf2 | 13848ae691747d5ec1d3b42e55a765cbbdc809c9 | refs/heads/master | 2016-09-05T21:44:02.897351 | 2014-08-22T03:43:30 | 2014-08-22T03:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | #pragma once
namespace graphic
{
class cCharacter : public cModel
{
public:
cCharacter(const int id);
virtual ~cCharacter();
virtual bool Create(const string &modelName) override;
void LoadWeapon(const string &fileName);
virtual bool Move(const float elapseTime) override;
virtual void Render() override;
virtual void RenderShader(cShader &shader);
private:
cModel *m_weapon;
cBoneNode *m_weaponNode; // reference
};
}
| [
"taehoon0720@naver.com"
] | taehoon0720@naver.com |
30e193897f4bbf5f424d10cd0eb690a21ffd323b | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/webrtc-jumpingyang001_for_boss/modules/desktop_capture/win/screen_capture_utils.cc | 2effad745bcc5a48d376003d1159f26dea51b522 | [
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webm",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | C++ | false | false | 3,619 | cc | /*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "modules/desktop_capture/win/screen_capture_utils.h"
#include <windows.h>
#include <string>
#include <vector>
#include BOSS_WEBRTC_U_modules__desktop_capture__desktop_capturer_h //original-code:"modules/desktop_capture/desktop_capturer.h"
#include BOSS_WEBRTC_U_rtc_base__checks_h //original-code:"rtc_base/checks.h"
#include BOSS_WEBRTC_U_rtc_base__stringutils_h //original-code:"rtc_base/stringutils.h"
#include BOSS_WEBRTC_U_rtc_base__win32_h //original-code:"rtc_base/win32.h"
namespace webrtc {
bool GetScreenList(DesktopCapturer::SourceList* screens,
std::vector<std::string>* device_names /* = nullptr */) {
RTC_DCHECK_EQ(screens->size(), 0U);
if (device_names) {
RTC_DCHECK_EQ(device_names->size(), 0U);
}
BOOL enum_result = TRUE;
for (int device_index = 0;; ++device_index) {
DISPLAY_DEVICE device;
device.cb = sizeof(device);
enum_result = EnumDisplayDevices(NULL, device_index, &device, 0);
// |enum_result| is 0 if we have enumerated all devices.
if (!enum_result)
break;
// We only care about active displays.
if (!(device.StateFlags & DISPLAY_DEVICE_ACTIVE))
continue;
screens->push_back({device_index, std::string()});
if (device_names) {
device_names->push_back(rtc::ToUtf8(device.DeviceName));
}
}
return true;
}
bool IsScreenValid(DesktopCapturer::SourceId screen, std::wstring* device_key) {
if (screen == kFullDesktopScreenId) {
*device_key = L"";
return true;
}
DISPLAY_DEVICE device;
device.cb = sizeof(device);
BOOL enum_result = EnumDisplayDevices(NULL, screen, &device, 0);
if (enum_result)
*device_key = device.DeviceKey;
return !!enum_result;
}
DesktopRect GetFullscreenRect() {
return DesktopRect::MakeXYWH(GetSystemMetrics(SM_XVIRTUALSCREEN),
GetSystemMetrics(SM_YVIRTUALSCREEN),
GetSystemMetrics(SM_CXVIRTUALSCREEN),
GetSystemMetrics(SM_CYVIRTUALSCREEN));
}
DesktopRect GetScreenRect(DesktopCapturer::SourceId screen,
const std::wstring& device_key) {
if (screen == kFullDesktopScreenId) {
return GetFullscreenRect();
}
DISPLAY_DEVICE device;
device.cb = sizeof(device);
BOOL result = EnumDisplayDevices(NULL, screen, &device, 0);
if (!result)
return DesktopRect();
// Verifies the device index still maps to the same display device, to make
// sure we are capturing the same device when devices are added or removed.
// DeviceKey is documented as reserved, but it actually contains the registry
// key for the device and is unique for each monitor, while DeviceID is not.
if (device_key != device.DeviceKey)
return DesktopRect();
DEVMODE device_mode;
device_mode.dmSize = sizeof(device_mode);
device_mode.dmDriverExtra = 0;
result = EnumDisplaySettingsEx(device.DeviceName, ENUM_CURRENT_SETTINGS,
&device_mode, 0);
if (!result)
return DesktopRect();
return DesktopRect::MakeXYWH(
device_mode.dmPosition.x, device_mode.dmPosition.y,
device_mode.dmPelsWidth, device_mode.dmPelsHeight);
}
} // namespace webrtc
| [
"slacealic@nate.com"
] | slacealic@nate.com |
6000a0289fddc09b6b35514880e0b69a328ea6b2 | eda0aa1e172285968d075ff018d2620dce0c34e2 | /codeforces1203D2.cpp | 6e4ef1e6471e5125513712be1e7243ae8ca81d71 | [] | no_license | AbhJ/some-cp-files-2 | bb12596453010a5e2f60329cbb397b2dc42c151d | 8d3dbf726939fbd3ae4a952f5049ab3ab40e7917 | refs/heads/master | 2023-07-30T23:17:28.150149 | 2021-09-26T13:16:29 | 2021-09-26T13:16:29 | 402,768,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | #include <bits/stdc++.h>
#define ibs ios_base::sync_with_stdio(false)
#define cti cin.tie(0)
using namespace std;//coded by abhijay mitra
const int N=2e5+10;
int n,m,dp[2][N];
void f(string s,string t,bool x){
n=s.length(),m=t.length();
s='#'+s,t='#'+t;
int j=n+1;
for (int i = m; i; --i)
{
while(s[--j]!=t[i]);
dp[x][i]=j;
}
}
void solve(){
string s,t;
cin>>s>>t;
f(s,t,0);
reverse(s.begin(), s.end()),reverse(t.begin(), t.end());
f(s,t,1);
int left=0,ans=0;dp[0][m+1]=n+1,dp[1][m+1]=0;
ans=max(dp[0][1]-1,n-(n-dp[1][1]+1));
for (int i = 2; i <= m; ++i)ans=max(dp[0][i]-(n-dp[1][m-i+1+1]+1)-1,ans);
cout<<ans;
}
int main()
{
ibs;cti;
solve();
cout<<"\n";
return 0;
} | [
"mitraabhijay@gmail.com"
] | mitraabhijay@gmail.com |
577467ab6eb687f67d068b5a55679b88148174de | 4f3d6b63dd5d1975aca587cf26ab79d403d35771 | /Lab06/Invulnerability.cpp | 0b0bf26c1b89c657732e10e3d2ae358498e67bac | [] | no_license | alinaf/spaceGame | 473ecb9bba50fa3f15f40372a345bc0964b92746 | 0a2d0925b6755fb036ef1875fad1a47818d91ad6 | refs/heads/master | 2021-04-15T05:41:12.009246 | 2018-04-19T06:07:12 | 2018-04-19T06:07:12 | 126,744,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | //
// Invulnerability.cpp
// Game-mac
//
// Created by tml on 4/15/18.
// Copyright © 2018 Sanjay Madhav. All rights reserved.
//
#include <stdio.h>
#include "Game.h"
#include "Invulnerability.h"
#include "Player.h"
Invulnerability::Invulnerability(class Game* game):Actor(game){
mSprite = new SpriteComponent(this);
mCollision = new CollisionComponent(this);
mCollision->SetSize(32, 32);
}
void Invulnerability::UpdateActor(float deltaTime){
if (this->GetCollision()->Intersect(this->GetGame()->GetPlayer()->GetCollision())){
Mix_PlayChannel(-1, GetGame()->GetSound("Assets/Sounds/Invincibility.wav"), 0);
this->GetGame()->GetPlayer()->SetInvulnerable(true);
this->SetState(Actor::EDead);
}
if (this->GetPosition().x - this->GetGame()->GetCameraPos().x < -this->GetCollision()->GetWidth()/2){
this->SetState(Actor::EDead);
}
}
| [
"TheJeffrey@tmldeMacBook-Pro.local"
] | TheJeffrey@tmldeMacBook-Pro.local |
a716aae1d7bbf003a6c688531c403f57ae49a5b1 | 0bae86219e690b4690633c309509eee379793abb | /1095.cpp | eab02ca2a34665427fb1fabca83380d2aa26194a | [] | no_license | toffanetto/URI_toffanetto | 959cb3074e4f3ac7f2745177f05af26d29d525c5 | 1d741f971ffb2395f74f041e7905fc70248963e5 | refs/heads/master | 2022-12-06T01:08:40.947325 | 2020-08-30T18:48:02 | 2020-08-30T18:48:02 | 291,491,068 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | cpp | #include <iostream>
using namespace std;
int main(){
int h=1,j=60;
for(int i=0;i<=12;i++){
cout << "I=" << h << " J=" << j << endl;
h+=3;
j-=5;
}
}
| [
"gabrieltoffanetto@gmail.com"
] | gabrieltoffanetto@gmail.com |
b5dd94722e7d3a75662085f1eb590b3bf9ea7440 | 375389e3a1eeb45dd6ef79cfec28262e0e694009 | /Codes/706c.cpp | ceeee681b7553d39d7140cd11baadb3a9fe29f57 | [] | no_license | erocodesenin/PracticeCP-1500-1600- | 15fbb26d4f980b9051d87c06ad25636c38b5ad72 | 9e7054051efd594835c62d10df45d0fe041a638d | refs/heads/master | 2020-05-29T09:33:43.858921 | 2019-06-06T08:27:17 | 2019-06-06T08:27:17 | 189,067,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | cpp | #include <stdio.h>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <vector>
#include <set>
#include <map>
#include <cstring>
#include <unordered_map>
#define lld long long int
#define DBG1(vari1) cerr<<#vari1<<" = "<<(vari1)<<endl;
#define DBG2(vari1,vari2) cerr<<#vari1<<" = "<<(vari1)<<" "<<#vari2<<" = "<<(vari2)<<endl;
#define DBG3(vari1,vari2,vari3) cerr<<#vari1<<" = "<<(vari1)<<" "<<#vari2<<" = "<<(vari2)<<" "<<#vari3<<" = "<<(vari3)<<endl;
using namespace std;
string s[100005][2];
lld dp[100005][2];
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// freopen("input.txt", "r", stdin);
int n;
cin >> n;
int arr[n];
// for(int i=0;i<n;i++)
// cin >> arr[i];
vector <pair <int,int> > v;
for(int i=0;i<10;i++)
{
int a,b;
cin >> a >> b;
v.push_back({a,b});
}
for(int i=0;i<10;i++)
{
cout << v[i].first << " " << v[i].second << "\n";
}
for(int i=0;i<n;i++)
{
cin >> s[i][0];
s[i][1]=s[i][0];
reverse(s[i][1].begin(),s[i][1].end());
}
dp[0][1]=arr[0];
for(int i=1;i<n;i++)
{
for(int j=0;j<2;j++)
{
dp[i][j]=1e18;
for(int k=0;k<2;k++)
{
if(s[i][j]>=s[i-1][k])
{
dp[i][j]=min(dp[i][j],dp[i-1][k]+j*arr[i]);
}
}
}
}
lld ans = min(dp[n-1][0],dp[n-1][1]);
if(ans==1e18)
cout <<"-1";
else
cout << ans;
} | [
"erocodesenin@gmail.com"
] | erocodesenin@gmail.com |
09ed3fac8b05fc87183e2529803e4f4a5db4ea82 | 83bacfbdb7ad17cbc2fc897b3460de1a6726a3b1 | /v8_4_8/src/base/platform/platform-win32.cc | 1f4a2a9f35492e34a06ee5fa24a6e7b83f29020b | [
"Apache-2.0"
] | permissive | cool2528/miniblink49 | d909e39012f2c5d8ab658dc2a8b314ad0050d8ea | 7f646289d8074f098cf1244adc87b95e34ab87a8 | refs/heads/master | 2020-06-05T03:18:43.211372 | 2019-06-01T08:57:37 | 2019-06-01T08:59:56 | 192,294,645 | 2 | 0 | Apache-2.0 | 2019-06-17T07:16:28 | 2019-06-17T07:16:27 | null | UTF-8 | C++ | false | false | 46,571 | cc | // Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Platform-specific code for Win32.
// Secure API functions are not available using MinGW with msvcrt.dll
// on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to
// disable definition of secure API functions in standard headers that
// would conflict with our own implementation.
#ifdef __MINGW32__
#include <_mingw.h>
#ifdef MINGW_HAS_SECURE_API
#undef MINGW_HAS_SECURE_API
#endif // MINGW_HAS_SECURE_API
#endif // __MINGW32__
#include <limits>
#include "src/base/win32-headers.h"
#include "src/base/bits.h"
#include "src/base/lazy-instance.h"
#include "src/base/macros.h"
#include "src/base/platform/platform.h"
#include "src/base/platform/time.h"
#include "src/base/utils/random-number-generator.h"
// Extra functions for MinGW. Most of these are the _s functions which are in
// the Microsoft Visual Studio C++ CRT.
#if USING_VC6RT == 1 //#ifdef __MINGW32__
#ifndef __MINGW64_VERSION_MAJOR
#define _TRUNCATE 0
#define STRUNCATE 80
//inline void MemoryBarrier() {
// int barrier = 0;
// __asm__ __volatile__("xchgl %%eax,%0 ":"=r" (barrier));
//}
#endif // __MINGW64_VERSION_MAJOR
int localtime_s(tm* out_tm, const time_t* time) {
tm* posix_local_time_struct = localtime(time); // NOLINT
if (posix_local_time_struct == NULL) return 1;
*out_tm = *posix_local_time_struct;
return 0;
}
int fopen_s(FILE** pFile, const char* filename, const char* mode) {
*pFile = fopen(filename, mode);
return *pFile != NULL ? 0 : 1;
}
int _vsnprintf_s(char* buffer, size_t sizeOfBuffer, size_t count,
const char* format, va_list argptr) {
DCHECK(count == _TRUNCATE);
return _vsnprintf(buffer, sizeOfBuffer, format, argptr);
}
int strncpy_s(char* dest, size_t dest_size, const char* source, size_t count) {
CHECK(source != NULL);
CHECK(dest != NULL);
CHECK_GT(dest_size, 0);
if (count == _TRUNCATE) {
while (dest_size > 0 && *source != 0) {
*(dest++) = *(source++);
--dest_size;
}
if (dest_size == 0) {
*(dest - 1) = 0;
return STRUNCATE;
}
} else {
while (dest_size > 0 && count > 0 && *source != 0) {
*(dest++) = *(source++);
--dest_size;
--count;
}
}
CHECK_GT(dest_size, 0);
*dest = 0;
return 0;
}
#endif // __MINGW32__
namespace v8 {
namespace base {
namespace {
bool g_hard_abort = false;
} // namespace
class TimezoneCache {
public:
TimezoneCache() : initialized_(false) { }
void Clear() {
initialized_ = false;
}
// Initialize timezone information. The timezone information is obtained from
// windows. If we cannot get the timezone information we fall back to CET.
void InitializeIfNeeded() {
// Just return if timezone information has already been initialized.
if (initialized_) return;
// Initialize POSIX time zone data.
_tzset();
// Obtain timezone information from operating system.
memset(&tzinfo_, 0, sizeof(tzinfo_));
if (GetTimeZoneInformation(&tzinfo_) == TIME_ZONE_ID_INVALID) {
// If we cannot get timezone information we fall back to CET.
tzinfo_.Bias = -60;
tzinfo_.StandardDate.wMonth = 10;
tzinfo_.StandardDate.wDay = 5;
tzinfo_.StandardDate.wHour = 3;
tzinfo_.StandardBias = 0;
tzinfo_.DaylightDate.wMonth = 3;
tzinfo_.DaylightDate.wDay = 5;
tzinfo_.DaylightDate.wHour = 2;
tzinfo_.DaylightBias = -60;
}
// Make standard and DST timezone names.
WideCharToMultiByte(CP_UTF8, 0, tzinfo_.StandardName, -1,
std_tz_name_, kTzNameSize, NULL, NULL);
std_tz_name_[kTzNameSize - 1] = '\0';
WideCharToMultiByte(CP_UTF8, 0, tzinfo_.DaylightName, -1,
dst_tz_name_, kTzNameSize, NULL, NULL);
dst_tz_name_[kTzNameSize - 1] = '\0';
// If OS returned empty string or resource id (like "@tzres.dll,-211")
// simply guess the name from the UTC bias of the timezone.
// To properly resolve the resource identifier requires a library load,
// which is not possible in a sandbox.
if (std_tz_name_[0] == '\0' || std_tz_name_[0] == '@') {
OS::SNPrintF(std_tz_name_, kTzNameSize - 1,
"%s Standard Time",
GuessTimezoneNameFromBias(tzinfo_.Bias));
}
if (dst_tz_name_[0] == '\0' || dst_tz_name_[0] == '@') {
OS::SNPrintF(dst_tz_name_, kTzNameSize - 1,
"%s Daylight Time",
GuessTimezoneNameFromBias(tzinfo_.Bias));
}
// Timezone information initialized.
initialized_ = true;
}
// Guess the name of the timezone from the bias.
// The guess is very biased towards the northern hemisphere.
const char* GuessTimezoneNameFromBias(int bias) {
static const int kHour = 60;
switch (-bias) {
case -9*kHour: return "Alaska";
case -8*kHour: return "Pacific";
case -7*kHour: return "Mountain";
case -6*kHour: return "Central";
case -5*kHour: return "Eastern";
case -4*kHour: return "Atlantic";
case 0*kHour: return "GMT";
case +1*kHour: return "Central Europe";
case +2*kHour: return "Eastern Europe";
case +3*kHour: return "Russia";
case +5*kHour + 30: return "India";
case +8*kHour: return "China";
case +9*kHour: return "Japan";
case +12*kHour: return "New Zealand";
default: return "Local";
}
}
private:
static const int kTzNameSize = 128;
bool initialized_;
char std_tz_name_[kTzNameSize];
char dst_tz_name_[kTzNameSize];
TIME_ZONE_INFORMATION tzinfo_;
friend class Win32Time;
};
// ----------------------------------------------------------------------------
// The Time class represents time on win32. A timestamp is represented as
// a 64-bit integer in 100 nanoseconds since January 1, 1601 (UTC). JavaScript
// timestamps are represented as a doubles in milliseconds since 00:00:00 UTC,
// January 1, 1970.
class Win32Time {
public:
// Constructors.
Win32Time();
explicit Win32Time(double jstime);
Win32Time(int year, int mon, int day, int hour, int min, int sec);
// Convert timestamp to JavaScript representation.
double ToJSTime();
// Set timestamp to current time.
void SetToCurrentTime();
// Returns the local timezone offset in milliseconds east of UTC. This is
// the number of milliseconds you must add to UTC to get local time, i.e.
// LocalOffset(CET) = 3600000 and LocalOffset(PST) = -28800000. This
// routine also takes into account whether daylight saving is effect
// at the time.
int64_t LocalOffset(TimezoneCache* cache);
// Returns the daylight savings time offset for the time in milliseconds.
int64_t DaylightSavingsOffset(TimezoneCache* cache);
// Returns a string identifying the current timezone for the
// timestamp taking into account daylight saving.
char* LocalTimezone(TimezoneCache* cache);
private:
// Constants for time conversion.
static const int64_t kTimeEpoc = 116444736000000000LL;
static const int64_t kTimeScaler = 10000;
static const int64_t kMsPerMinute = 60000;
// Constants for timezone information.
static const bool kShortTzNames = false;
// Return whether or not daylight savings time is in effect at this time.
bool InDST(TimezoneCache* cache);
// Accessor for FILETIME representation.
FILETIME& ft() { return time_.ft_; }
// Accessor for integer representation.
int64_t& t() { return time_.t_; }
// Although win32 uses 64-bit integers for representing timestamps,
// these are packed into a FILETIME structure. The FILETIME structure
// is just a struct representing a 64-bit integer. The TimeStamp union
// allows access to both a FILETIME and an integer representation of
// the timestamp.
union TimeStamp {
FILETIME ft_;
int64_t t_;
};
TimeStamp time_;
};
// Initialize timestamp to start of epoc.
Win32Time::Win32Time() {
t() = 0;
}
// Initialize timestamp from a JavaScript timestamp.
Win32Time::Win32Time(double jstime) {
t() = static_cast<int64_t>(jstime) * kTimeScaler + kTimeEpoc;
}
// Initialize timestamp from date/time components.
Win32Time::Win32Time(int year, int mon, int day, int hour, int min, int sec) {
SYSTEMTIME st;
st.wYear = year;
st.wMonth = mon;
st.wDay = day;
st.wHour = hour;
st.wMinute = min;
st.wSecond = sec;
st.wMilliseconds = 0;
SystemTimeToFileTime(&st, &ft());
}
// Convert timestamp to JavaScript timestamp.
double Win32Time::ToJSTime() {
return static_cast<double>((t() - kTimeEpoc) / kTimeScaler);
}
// Set timestamp to current time.
void Win32Time::SetToCurrentTime() {
// The default GetSystemTimeAsFileTime has a ~15.5ms resolution.
// Because we're fast, we like fast timers which have at least a
// 1ms resolution.
//
// timeGetTime() provides 1ms granularity when combined with
// timeBeginPeriod(). If the host application for v8 wants fast
// timers, it can use timeBeginPeriod to increase the resolution.
//
// Using timeGetTime() has a drawback because it is a 32bit value
// and hence rolls-over every ~49days.
//
// To use the clock, we use GetSystemTimeAsFileTime as our base;
// and then use timeGetTime to extrapolate current time from the
// start time. To deal with rollovers, we resync the clock
// any time when more than kMaxClockElapsedTime has passed or
// whenever timeGetTime creates a rollover.
static bool initialized = false;
static TimeStamp init_time;
static DWORD init_ticks;
static const int64_t kHundredNanosecondsPerSecond = 10000000;
static const int64_t kMaxClockElapsedTime =
60*kHundredNanosecondsPerSecond; // 1 minute
// If we are uninitialized, we need to resync the clock.
bool needs_resync = !initialized;
// Get the current time.
TimeStamp time_now;
GetSystemTimeAsFileTime(&time_now.ft_);
DWORD ticks_now = timeGetTime();
// Check if we need to resync due to clock rollover.
needs_resync |= ticks_now < init_ticks;
// Check if we need to resync due to elapsed time.
needs_resync |= (time_now.t_ - init_time.t_) > kMaxClockElapsedTime;
// Check if we need to resync due to backwards time change.
needs_resync |= time_now.t_ < init_time.t_;
// Resync the clock if necessary.
if (needs_resync) {
GetSystemTimeAsFileTime(&init_time.ft_);
init_ticks = ticks_now = timeGetTime();
initialized = true;
}
// Finally, compute the actual time. Why is this so hard.
DWORD elapsed = ticks_now - init_ticks;
this->time_.t_ = init_time.t_ + (static_cast<int64_t>(elapsed) * 10000);
}
// Return the local timezone offset in milliseconds east of UTC. This
// takes into account whether daylight saving is in effect at the time.
// Only times in the 32-bit Unix range may be passed to this function.
// Also, adding the time-zone offset to the input must not overflow.
// The function EquivalentTime() in date.js guarantees this.
int64_t Win32Time::LocalOffset(TimezoneCache* cache) {
cache->InitializeIfNeeded();
Win32Time rounded_to_second(*this);
rounded_to_second.t() =
rounded_to_second.t() / 1000 / kTimeScaler * 1000 * kTimeScaler;
// Convert to local time using POSIX localtime function.
// Windows XP Service Pack 3 made SystemTimeToTzSpecificLocalTime()
// very slow. Other browsers use localtime().
// Convert from JavaScript milliseconds past 1/1/1970 0:00:00 to
// POSIX seconds past 1/1/1970 0:00:00.
double unchecked_posix_time = rounded_to_second.ToJSTime() / 1000;
if (unchecked_posix_time > INT_MAX || unchecked_posix_time < 0) {
return 0;
}
// Because _USE_32BIT_TIME_T is defined, time_t is a 32-bit int.
time_t posix_time = static_cast<time_t>(unchecked_posix_time);
// Convert to local time, as struct with fields for day, hour, year, etc.
tm posix_local_time_struct;
if (localtime_s(&posix_local_time_struct, &posix_time)) return 0;
if (posix_local_time_struct.tm_isdst > 0) {
return (cache->tzinfo_.Bias + cache->tzinfo_.DaylightBias) * -kMsPerMinute;
} else if (posix_local_time_struct.tm_isdst == 0) {
return (cache->tzinfo_.Bias + cache->tzinfo_.StandardBias) * -kMsPerMinute;
} else {
return cache->tzinfo_.Bias * -kMsPerMinute;
}
}
// Return whether or not daylight savings time is in effect at this time.
bool Win32Time::InDST(TimezoneCache* cache) {
cache->InitializeIfNeeded();
// Determine if DST is in effect at the specified time.
bool in_dst = false;
if (cache->tzinfo_.StandardDate.wMonth != 0 ||
cache->tzinfo_.DaylightDate.wMonth != 0) {
// Get the local timezone offset for the timestamp in milliseconds.
int64_t offset = LocalOffset(cache);
// Compute the offset for DST. The bias parameters in the timezone info
// are specified in minutes. These must be converted to milliseconds.
int64_t dstofs =
-(cache->tzinfo_.Bias + cache->tzinfo_.DaylightBias) * kMsPerMinute;
// If the local time offset equals the timezone bias plus the daylight
// bias then DST is in effect.
in_dst = offset == dstofs;
}
return in_dst;
}
// Return the daylight savings time offset for this time.
int64_t Win32Time::DaylightSavingsOffset(TimezoneCache* cache) {
return InDST(cache) ? 60 * kMsPerMinute : 0;
}
// Returns a string identifying the current timezone for the
// timestamp taking into account daylight saving.
char* Win32Time::LocalTimezone(TimezoneCache* cache) {
// Return the standard or DST time zone name based on whether daylight
// saving is in effect at the given time.
return InDST(cache) ? cache->dst_tz_name_ : cache->std_tz_name_;
}
// Returns the accumulated user time for thread.
int OS::GetUserTime(uint32_t* secs, uint32_t* usecs) {
FILETIME dummy;
uint64_t usertime;
// Get the amount of time that the thread has executed in user mode.
if (!GetThreadTimes(GetCurrentThread(), &dummy, &dummy, &dummy,
reinterpret_cast<FILETIME*>(&usertime))) return -1;
// Adjust the resolution to micro-seconds.
usertime /= 10;
// Convert to seconds and microseconds
*secs = static_cast<uint32_t>(usertime / 1000000);
*usecs = static_cast<uint32_t>(usertime % 1000000);
return 0;
}
// Returns current time as the number of milliseconds since
// 00:00:00 UTC, January 1, 1970.
double OS::TimeCurrentMillis() {
return Time::Now().ToJsTime();
}
TimezoneCache* OS::CreateTimezoneCache() {
return new TimezoneCache();
}
void OS::DisposeTimezoneCache(TimezoneCache* cache) {
delete cache;
}
void OS::ClearTimezoneCache(TimezoneCache* cache) {
cache->Clear();
}
// Returns a string identifying the current timezone taking into
// account daylight saving.
const char* OS::LocalTimezone(double time, TimezoneCache* cache) {
return Win32Time(time).LocalTimezone(cache);
}
// Returns the local time offset in milliseconds east of UTC without
// taking daylight savings time into account.
double OS::LocalTimeOffset(TimezoneCache* cache) {
// Use current time, rounded to the millisecond.
Win32Time t(TimeCurrentMillis());
// Time::LocalOffset inlcudes any daylight savings offset, so subtract it.
return static_cast<double>(t.LocalOffset(cache) -
t.DaylightSavingsOffset(cache));
}
// Returns the daylight savings offset in milliseconds for the given
// time.
double OS::DaylightSavingsOffset(double time, TimezoneCache* cache) {
int64_t offset = Win32Time(time).DaylightSavingsOffset(cache);
return static_cast<double>(offset);
}
int OS::GetLastError() {
return ::GetLastError();
}
int OS::GetCurrentProcessId() {
return static_cast<int>(::GetCurrentProcessId());
}
int OS::GetCurrentThreadId() {
return static_cast<int>(::GetCurrentThreadId());
}
// ----------------------------------------------------------------------------
// Win32 console output.
//
// If a Win32 application is linked as a console application it has a normal
// standard output and standard error. In this case normal printf works fine
// for output. However, if the application is linked as a GUI application,
// the process doesn't have a console, and therefore (debugging) output is lost.
// This is the case if we are embedded in a windows program (like a browser).
// In order to be able to get debug output in this case the the debugging
// facility using OutputDebugString. This output goes to the active debugger
// for the process (if any). Else the output can be monitored using DBMON.EXE.
enum OutputMode {
UNKNOWN, // Output method has not yet been determined.
CONSOLE, // Output is written to stdout.
ODS // Output is written to debug facility.
};
static OutputMode output_mode = UNKNOWN; // Current output mode.
// Determine if the process has a console for output.
static bool HasConsole() {
// Only check the first time. Eventual race conditions are not a problem,
// because all threads will eventually determine the same mode.
if (output_mode == UNKNOWN) {
// We cannot just check that the standard output is attached to a console
// because this would fail if output is redirected to a file. Therefore we
// say that a process does not have an output console if either the
// standard output handle is invalid or its file type is unknown.
if (GetStdHandle(STD_OUTPUT_HANDLE) != INVALID_HANDLE_VALUE &&
GetFileType(GetStdHandle(STD_OUTPUT_HANDLE)) != FILE_TYPE_UNKNOWN)
output_mode = CONSOLE;
else
output_mode = ODS;
}
return output_mode == CONSOLE;
}
static void VPrintHelper(FILE* stream, const char* format, va_list args) {
if ((stream == stdout || stream == stderr) && !HasConsole()) {
// It is important to use safe print here in order to avoid
// overflowing the buffer. We might truncate the output, but this
// does not crash.
char buffer[4096];
OS::VSNPrintF(buffer, sizeof(buffer), format, args);
OutputDebugStringA(buffer);
} else {
vfprintf(stream, format, args);
}
}
FILE* OS::FOpen(const char* path, const char* mode) {
FILE* result;
if (fopen_s(&result, path, mode) == 0) {
return result;
} else {
return NULL;
}
}
bool OS::Remove(const char* path) {
return (DeleteFileA(path) != 0);
}
bool OS::isDirectorySeparator(const char ch) {
return ch == '/' || ch == '\\';
}
FILE* OS::OpenTemporaryFile() {
// tmpfile_s tries to use the root dir, don't use it.
char tempPathBuffer[MAX_PATH];
DWORD path_result = 0;
path_result = GetTempPathA(MAX_PATH, tempPathBuffer);
if (path_result > MAX_PATH || path_result == 0) return NULL;
UINT name_result = 0;
char tempNameBuffer[MAX_PATH];
name_result = GetTempFileNameA(tempPathBuffer, "", 0, tempNameBuffer);
if (name_result == 0) return NULL;
FILE* result = FOpen(tempNameBuffer, "w+"); // Same mode as tmpfile uses.
if (result != NULL) {
Remove(tempNameBuffer); // Delete on close.
}
return result;
}
// Open log file in binary mode to avoid /n -> /r/n conversion.
const char* const OS::LogFileOpenMode = "wb";
// Print (debug) message to console.
void OS::Print(const char* format, ...) {
va_list args;
va_start(args, format);
VPrint(format, args);
va_end(args);
}
void OS::VPrint(const char* format, va_list args) {
VPrintHelper(stdout, format, args);
}
void OS::FPrint(FILE* out, const char* format, ...) {
va_list args;
va_start(args, format);
VFPrint(out, format, args);
va_end(args);
}
void OS::VFPrint(FILE* out, const char* format, va_list args) {
VPrintHelper(out, format, args);
}
// Print error message to console.
void OS::PrintError(const char* format, ...) {
va_list args;
va_start(args, format);
VPrintError(format, args);
va_end(args);
}
void OS::VPrintError(const char* format, va_list args) {
VPrintHelper(stderr, format, args);
}
int OS::SNPrintF(char* str, int length, const char* format, ...) {
va_list args;
va_start(args, format);
int result = VSNPrintF(str, length, format, args);
va_end(args);
return result;
}
int OS::VSNPrintF(char* str, int length, const char* format, va_list args) {
int n = _vsnprintf_s(str, length, _TRUNCATE, format, args);
// Make sure to zero-terminate the string if the output was
// truncated or if there was an error.
if (n < 0 || n >= length) {
if (length > 0)
str[length - 1] = '\0';
return -1;
} else {
return n;
}
}
char* OS::StrChr(char* str, int c) {
return const_cast<char*>(strchr(str, c));
}
void OS::StrNCpy(char* dest, int length, const char* src, size_t n) {
// Use _TRUNCATE or strncpy_s crashes (by design) if buffer is too small.
size_t buffer_size = static_cast<size_t>(length);
if (n + 1 > buffer_size) // count for trailing '\0'
n = _TRUNCATE;
int result = strncpy_s(dest, length, src, n);
USE(result);
DCHECK(result == 0 || (n == _TRUNCATE && result == STRUNCATE));
}
#undef _TRUNCATE
#undef STRUNCATE
// Get the system's page size used by VirtualAlloc() or the next power
// of two. The reason for always returning a power of two is that the
// rounding up in OS::Allocate expects that.
static size_t GetPageSize() {
static size_t page_size = 0;
if (page_size == 0) {
SYSTEM_INFO info;
GetSystemInfo(&info);
page_size = base::bits::RoundUpToPowerOfTwo32(info.dwPageSize);
}
return page_size;
}
// The allocation alignment is the guaranteed alignment for
// VirtualAlloc'ed blocks of memory.
size_t OS::AllocateAlignment() {
static size_t allocate_alignment = 0;
if (allocate_alignment == 0) {
SYSTEM_INFO info;
GetSystemInfo(&info);
allocate_alignment = info.dwAllocationGranularity;
}
return allocate_alignment;
}
static LazyInstance<RandomNumberGenerator>::type
platform_random_number_generator = LAZY_INSTANCE_INITIALIZER;
void OS::Initialize(int64_t random_seed, bool hard_abort,
const char* const gc_fake_mmap) {
if (random_seed) {
platform_random_number_generator.Pointer()->SetSeed(random_seed);
}
g_hard_abort = hard_abort;
}
void* OS::GetRandomMmapAddr() {
// The address range used to randomize RWX allocations in OS::Allocate
// Try not to map pages into the default range that windows loads DLLs
// Use a multiple of 64k to prevent committing unused memory.
// Note: This does not guarantee RWX regions will be within the
// range kAllocationRandomAddressMin to kAllocationRandomAddressMax
#ifdef V8_HOST_ARCH_64_BIT
static const uintptr_t kAllocationRandomAddressMin = 0x0000000080000000;
static const uintptr_t kAllocationRandomAddressMax = 0x000003FFFFFF0000;
#else
static const uintptr_t kAllocationRandomAddressMin = 0x04000000;
static const uintptr_t kAllocationRandomAddressMax = 0x3FFF0000;
#endif
uintptr_t address;
platform_random_number_generator.Pointer()->NextBytes(&address,
sizeof(address));
address <<= kPageSizeBits;
address += kAllocationRandomAddressMin;
address &= kAllocationRandomAddressMax;
return reinterpret_cast<void *>(address);
}
static void* RandomizedVirtualAlloc(size_t size, int action, int protection) {
LPVOID base = NULL;
static BOOL use_aslr = -1;
#ifdef V8_HOST_ARCH_32_BIT
// Don't bother randomizing on 32-bit hosts, because they lack the room and
// don't have viable ASLR anyway.
if (use_aslr == -1 && !IsWow64Process(GetCurrentProcess(), &use_aslr))
use_aslr = FALSE;
#else
use_aslr = TRUE;
#endif
if (use_aslr &&
(protection == PAGE_EXECUTE_READWRITE || protection == PAGE_NOACCESS)) {
// For executable pages try and randomize the allocation address
for (size_t attempts = 0; base == NULL && attempts < 3; ++attempts) {
base = VirtualAlloc(OS::GetRandomMmapAddr(), size, action, protection);
}
}
// After three attempts give up and let the OS find an address to use.
if (base == NULL) base = VirtualAlloc(NULL, size, action, protection);
return base;
}
void* OS::Allocate(const size_t requested,
size_t* allocated,
bool is_executable) {
// VirtualAlloc rounds allocated size to page size automatically.
size_t msize = RoundUp(requested, static_cast<int>(GetPageSize()));
// Windows XP SP2 allows Data Excution Prevention (DEP).
int prot = is_executable ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE;
LPVOID mbase = RandomizedVirtualAlloc(msize,
MEM_COMMIT | MEM_RESERVE,
prot);
if (mbase == NULL) return NULL;
DCHECK((reinterpret_cast<uintptr_t>(mbase) % OS::AllocateAlignment()) == 0);
*allocated = msize;
return mbase;
}
void OS::Free(void* address, const size_t size) {
// TODO(1240712): VirtualFree has a return value which is ignored here.
VirtualFree(address, 0, MEM_RELEASE);
USE(size);
}
intptr_t OS::CommitPageSize() {
return 4096;
}
void OS::ProtectCode(void* address, const size_t size) {
DWORD old_protect;
VirtualProtect(address, size, PAGE_EXECUTE_READ, &old_protect);
}
void OS::Guard(void* address, const size_t size) {
DWORD oldprotect;
VirtualProtect(address, size, PAGE_NOACCESS, &oldprotect);
}
void OS::Sleep(TimeDelta interval) {
::Sleep(static_cast<DWORD>(interval.InMilliseconds()));
}
void OS::Abort() {
if (g_hard_abort) {
V8_IMMEDIATE_CRASH();
}
// Make the MSVCRT do a silent abort.
raise(SIGABRT);
// Make sure function doesn't return.
abort();
}
void OS::DebugBreak() {
#if V8_CC_MSVC
// To avoid Visual Studio runtime support the following code can be used
// instead
// __asm { int 3 }
__debugbreak();
#else
::DebugBreak();
#endif
}
class Win32MemoryMappedFile final : public OS::MemoryMappedFile {
public:
Win32MemoryMappedFile(HANDLE file, HANDLE file_mapping, void* memory,
size_t size)
: file_(file),
file_mapping_(file_mapping),
memory_(memory),
size_(size) {}
~Win32MemoryMappedFile() final;
void* memory() const final { return memory_; }
size_t size() const final { return size_; }
private:
HANDLE const file_;
HANDLE const file_mapping_;
void* const memory_;
size_t const size_;
};
// static
OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) {
// Open a physical file
HANDLE file = CreateFileA(name, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
if (file == INVALID_HANDLE_VALUE) return NULL;
DWORD size = GetFileSize(file, NULL);
// Create a file mapping for the physical file
HANDLE file_mapping =
CreateFileMapping(file, NULL, PAGE_READWRITE, 0, size, NULL);
if (file_mapping == NULL) return NULL;
// Map a view of the file into memory
void* memory = MapViewOfFile(file_mapping, FILE_MAP_ALL_ACCESS, 0, 0, size);
return new Win32MemoryMappedFile(file, file_mapping, memory, size);
}
// static
OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name,
size_t size, void* initial) {
// Open a physical file
HANDLE file = CreateFileA(name, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_ALWAYS, 0, NULL);
if (file == NULL) return NULL;
// Create a file mapping for the physical file
HANDLE file_mapping = CreateFileMapping(file, NULL, PAGE_READWRITE, 0,
static_cast<DWORD>(size), NULL);
if (file_mapping == NULL) return NULL;
// Map a view of the file into memory
void* memory = MapViewOfFile(file_mapping, FILE_MAP_ALL_ACCESS, 0, 0, size);
if (memory) memmove(memory, initial, size);
return new Win32MemoryMappedFile(file, file_mapping, memory, size);
}
Win32MemoryMappedFile::~Win32MemoryMappedFile() {
if (memory_) UnmapViewOfFile(memory_);
CloseHandle(file_mapping_);
CloseHandle(file_);
}
// The following code loads functions defined in DbhHelp.h and TlHelp32.h
// dynamically. This is to avoid being depending on dbghelp.dll and
// tlhelp32.dll when running (the functions in tlhelp32.dll have been moved to
// kernel32.dll at some point so loading functions defines in TlHelp32.h
// dynamically might not be necessary any more - for some versions of Windows?).
// Function pointers to functions dynamically loaded from dbghelp.dll.
#define DBGHELP_FUNCTION_LIST(V) \
V(SymInitialize) \
V(SymGetOptions) \
V(SymSetOptions) \
V(SymGetSearchPath) \
V(SymLoadModule64) \
V(StackWalk64) \
V(SymGetSymFromAddr64) \
V(SymGetLineFromAddr64) \
V(SymFunctionTableAccess64) \
V(SymGetModuleBase64)
// Function pointers to functions dynamically loaded from dbghelp.dll.
#define TLHELP32_FUNCTION_LIST(V) \
V(CreateToolhelp32Snapshot) \
V(Module32FirstW) \
V(Module32NextW)
// Define the decoration to use for the type and variable name used for
// dynamically loaded DLL function..
#define DLL_FUNC_TYPE(name) _##name##_
#define DLL_FUNC_VAR(name) _##name
// Define the type for each dynamically loaded DLL function. The function
// definitions are copied from DbgHelp.h and TlHelp32.h. The IN and VOID macros
// from the Windows include files are redefined here to have the function
// definitions to be as close to the ones in the original .h files as possible.
#ifndef IN
#define IN
#endif
#ifndef VOID
#define VOID void
#endif
// DbgHelp isn't supported on MinGW yet
#ifndef __MINGW32__
#if USING_VC6RT == 1
#define MAX_MODULE_NAME32 255
#define SYMOPT_LOAD_LINES 0x00000010
#define SYMOPT_FAIL_CRITICAL_ERRORS 0x00000200
#define TH32CS_SNAPMODULE 0x00000008
typedef enum {
AddrMode1616,
AddrMode1632,
AddrModeReal,
AddrModeFlat
} ADDRESS_MODE;
typedef struct _tagADDRESS64 {
DWORD64 Offset;
WORD Segment;
ADDRESS_MODE Mode;
} ADDRESS64, *LPADDRESS64;
typedef struct _KDHELP64 {
DWORD64 Thread;
DWORD ThCallbackStack;
DWORD ThCallbackBStore;
DWORD NextCallback;
DWORD FramePointer;
DWORD64 KiCallUserMode;
DWORD64 KeUserCallbackDispatcher;
DWORD64 SystemRangeStart;
DWORD64 KiUserExceptionDispatcher;
DWORD64 StackBase;
DWORD64 StackLimit;
DWORD BuildVersion;
DWORD Reserved0;
DWORD64 Reserved1[4];
} KDHELP64, *PKDHELP64;
typedef struct _tagSTACKFRAME64 {
ADDRESS64 AddrPC; // program counter
ADDRESS64 AddrReturn; // return address
ADDRESS64 AddrFrame; // frame pointer
ADDRESS64 AddrStack; // stack pointer
ADDRESS64 AddrBStore; // backing store pointer
PVOID FuncTableEntry; // pointer to pdata/fpo or NULL
DWORD64 Params[4]; // possible arguments to the function
BOOL Far; // WOW far call
BOOL Virtual; // is this a virtual frame?
DWORD64 Reserved[3];
KDHELP64 KdHelp;
} STACKFRAME64, *LPSTACKFRAME64;
typedef struct _IMAGEHLP_SYMBOL64 {
DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOL64)
DWORD64 Address; // virtual address including dll base address
DWORD Size; // estimated size of symbol, can be zero
DWORD Flags; // info about the symbols, see the SYMF defines
DWORD MaxNameLength; // maximum size of symbol name in 'Name'
CHAR Name[1]; // symbol name (null terminated string)
} IMAGEHLP_SYMBOL64, *PIMAGEHLP_SYMBOL64;
typedef struct _IMAGEHLP_LINE64 {
DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64)
PVOID Key; // internal
DWORD LineNumber; // line number in file
PCHAR FileName; // full filename
DWORD64 Address; // first instruction of line
} IMAGEHLP_LINE64, *PIMAGEHLP_LINE64;
typedef struct tagMODULEENTRY32W
{
DWORD dwSize;
DWORD th32ModuleID; // This module
DWORD th32ProcessID; // owning process
DWORD GlblcntUsage; // Global usage count on the module
DWORD ProccntUsage; // Module usage count in th32ProcessID's context
BYTE * modBaseAddr; // Base address of module in th32ProcessID's context
DWORD modBaseSize; // Size in bytes of module starting at modBaseAddr
HMODULE hModule; // The hModule of this module in th32ProcessID's context
WCHAR szModule[MAX_MODULE_NAME32 + 1];
WCHAR szExePath[MAX_PATH];
} MODULEENTRY32W;
typedef MODULEENTRY32W * PMODULEENTRY32W;
typedef MODULEENTRY32W * LPMODULEENTRY32W;
typedef
BOOL
(__stdcall *PREAD_PROCESS_MEMORY_ROUTINE64)(
HANDLE hProcess,
DWORD64 qwBaseAddress,
PVOID lpBuffer,
DWORD nSize,
LPDWORD lpNumberOfBytesRead
);
typedef
PVOID
(__stdcall *PFUNCTION_TABLE_ACCESS_ROUTINE64)(
HANDLE ahProcess,
DWORD64 AddrBase
);
typedef
DWORD64
(__stdcall *PGET_MODULE_BASE_ROUTINE64)(
HANDLE hProcess,
DWORD64 Address
);
typedef
DWORD64
(__stdcall *PTRANSLATE_ADDRESS_ROUTINE64)(
HANDLE hProcess,
HANDLE hThread,
LPADDRESS64 lpaddr
);
#endif
// DbgHelp.h functions.
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymInitialize))(IN HANDLE hProcess,
IN PSTR UserSearchPath,
IN BOOL fInvadeProcess);
typedef DWORD (__stdcall *DLL_FUNC_TYPE(SymGetOptions))(VOID);
typedef DWORD (__stdcall *DLL_FUNC_TYPE(SymSetOptions))(IN DWORD SymOptions);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetSearchPath))(
IN HANDLE hProcess,
OUT PSTR SearchPath,
IN DWORD SearchPathLength);
typedef DWORD64 (__stdcall *DLL_FUNC_TYPE(SymLoadModule64))(
IN HANDLE hProcess,
IN HANDLE hFile,
IN PSTR ImageName,
IN PSTR ModuleName,
IN DWORD64 BaseOfDll,
IN DWORD SizeOfDll);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(StackWalk64))(
DWORD MachineType,
HANDLE hProcess,
HANDLE hThread,
LPSTACKFRAME64 StackFrame,
PVOID ContextRecord,
PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine,
PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine,
PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine,
PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetSymFromAddr64))(
IN HANDLE hProcess,
IN DWORD64 qwAddr,
OUT PDWORD64 pdwDisplacement,
OUT PIMAGEHLP_SYMBOL64 Symbol);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(SymGetLineFromAddr64))(
IN HANDLE hProcess,
IN DWORD64 qwAddr,
OUT PDWORD pdwDisplacement,
OUT PIMAGEHLP_LINE64 Line64);
// DbgHelp.h typedefs. Implementation found in dbghelp.dll.
typedef PVOID (__stdcall *DLL_FUNC_TYPE(SymFunctionTableAccess64))(
HANDLE hProcess,
DWORD64 AddrBase); // DbgHelp.h typedef PFUNCTION_TABLE_ACCESS_ROUTINE64
typedef DWORD64 (__stdcall *DLL_FUNC_TYPE(SymGetModuleBase64))(
HANDLE hProcess,
DWORD64 AddrBase); // DbgHelp.h typedef PGET_MODULE_BASE_ROUTINE64
// TlHelp32.h functions.
typedef HANDLE (__stdcall *DLL_FUNC_TYPE(CreateToolhelp32Snapshot))(
DWORD dwFlags,
DWORD th32ProcessID);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(Module32FirstW))(HANDLE hSnapshot,
LPMODULEENTRY32W lpme);
typedef BOOL (__stdcall *DLL_FUNC_TYPE(Module32NextW))(HANDLE hSnapshot,
LPMODULEENTRY32W lpme);
#undef IN
#undef VOID
// Declare a variable for each dynamically loaded DLL function.
#define DEF_DLL_FUNCTION(name) DLL_FUNC_TYPE(name) DLL_FUNC_VAR(name) = NULL;
DBGHELP_FUNCTION_LIST(DEF_DLL_FUNCTION)
TLHELP32_FUNCTION_LIST(DEF_DLL_FUNCTION)
#undef DEF_DLL_FUNCTION
// Load the functions. This function has a lot of "ugly" macros in order to
// keep down code duplication.
static bool LoadDbgHelpAndTlHelp32() {
static bool dbghelp_loaded = false;
if (dbghelp_loaded) return true;
HMODULE module;
// Load functions from the dbghelp.dll module.
module = LoadLibrary(TEXT("dbghelp.dll"));
if (module == NULL) {
return false;
}
#define LOAD_DLL_FUNC(name) \
DLL_FUNC_VAR(name) = \
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
DBGHELP_FUNCTION_LIST(LOAD_DLL_FUNC)
#undef LOAD_DLL_FUNC
// Load functions from the kernel32.dll module (the TlHelp32.h function used
// to be in tlhelp32.dll but are now moved to kernel32.dll).
module = LoadLibrary(TEXT("kernel32.dll"));
if (module == NULL) {
return false;
}
#define LOAD_DLL_FUNC(name) \
DLL_FUNC_VAR(name) = \
reinterpret_cast<DLL_FUNC_TYPE(name)>(GetProcAddress(module, #name));
TLHELP32_FUNCTION_LIST(LOAD_DLL_FUNC)
#undef LOAD_DLL_FUNC
// Check that all functions where loaded.
bool result =
#define DLL_FUNC_LOADED(name) (DLL_FUNC_VAR(name) != NULL) &&
DBGHELP_FUNCTION_LIST(DLL_FUNC_LOADED)
TLHELP32_FUNCTION_LIST(DLL_FUNC_LOADED)
#undef DLL_FUNC_LOADED
true;
dbghelp_loaded = result;
return result;
// NOTE: The modules are never unloaded and will stay around until the
// application is closed.
}
#undef DBGHELP_FUNCTION_LIST
#undef TLHELP32_FUNCTION_LIST
#undef DLL_FUNC_VAR
#undef DLL_FUNC_TYPE
// Load the symbols for generating stack traces.
static std::vector<OS::SharedLibraryAddress> LoadSymbols(
HANDLE process_handle) {
static std::vector<OS::SharedLibraryAddress> result;
static bool symbols_loaded = false;
if (symbols_loaded) return result;
BOOL ok;
// Initialize the symbol engine.
ok = _SymInitialize(process_handle, // hProcess
NULL, // UserSearchPath
false); // fInvadeProcess
if (!ok) return result;
DWORD options = _SymGetOptions();
options |= SYMOPT_LOAD_LINES;
options |= SYMOPT_FAIL_CRITICAL_ERRORS;
options = _SymSetOptions(options);
char buf[OS::kStackWalkMaxNameLen] = {0};
ok = _SymGetSearchPath(process_handle, buf, OS::kStackWalkMaxNameLen);
if (!ok) {
int err = GetLastError();
OS::Print("%d\n", err);
return result;
}
HANDLE snapshot = _CreateToolhelp32Snapshot(
TH32CS_SNAPMODULE, // dwFlags
GetCurrentProcessId()); // th32ProcessId
if (snapshot == INVALID_HANDLE_VALUE) return result;
MODULEENTRY32W module_entry;
module_entry.dwSize = sizeof(module_entry); // Set the size of the structure.
BOOL cont = _Module32FirstW(snapshot, &module_entry);
while (cont) {
DWORD64 base;
// NOTE the SymLoadModule64 function has the peculiarity of accepting a
// both unicode and ASCII strings even though the parameter is PSTR.
base = _SymLoadModule64(
process_handle, // hProcess
0, // hFile
reinterpret_cast<PSTR>(module_entry.szExePath), // ImageName
reinterpret_cast<PSTR>(module_entry.szModule), // ModuleName
reinterpret_cast<DWORD64>(module_entry.modBaseAddr), // BaseOfDll
module_entry.modBaseSize); // SizeOfDll
if (base == 0) {
int err = GetLastError();
if (err != ERROR_MOD_NOT_FOUND &&
err != ERROR_INVALID_HANDLE) {
result.clear();
return result;
}
}
int lib_name_length = WideCharToMultiByte(
CP_UTF8, 0, module_entry.szExePath, -1, NULL, 0, NULL, NULL);
std::string lib_name(lib_name_length, 0);
WideCharToMultiByte(CP_UTF8, 0, module_entry.szExePath, -1, &lib_name[0],
lib_name_length, NULL, NULL);
result.push_back(OS::SharedLibraryAddress(
lib_name, reinterpret_cast<uintptr_t>(module_entry.modBaseAddr),
reinterpret_cast<uintptr_t>(module_entry.modBaseAddr +
module_entry.modBaseSize)));
cont = _Module32NextW(snapshot, &module_entry);
}
CloseHandle(snapshot);
symbols_loaded = true;
return result;
}
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
// SharedLibraryEvents are logged when loading symbol information.
// Only the shared libraries loaded at the time of the call to
// GetSharedLibraryAddresses are logged. DLLs loaded after
// initialization are not accounted for.
if (!LoadDbgHelpAndTlHelp32()) return std::vector<OS::SharedLibraryAddress>();
HANDLE process_handle = GetCurrentProcess();
return LoadSymbols(process_handle);
}
void OS::SignalCodeMovingGC() {
}
#else // __MINGW32__
std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
return std::vector<OS::SharedLibraryAddress>();
}
void OS::SignalCodeMovingGC() { }
#endif // __MINGW32__
int OS::ActivationFrameAlignment() {
#ifdef _WIN64
return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned.
#elif defined(__MINGW32__)
// With gcc 4.4 the tree vectorization optimizer can generate code
// that requires 16 byte alignment such as movdqa on x86.
return 16;
#else
return 8; // Floating-point math runs faster with 8-byte alignment.
#endif
}
VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { }
VirtualMemory::VirtualMemory(size_t size)
: address_(ReserveRegion(size)), size_(size) { }
VirtualMemory::VirtualMemory(size_t size, size_t alignment)
: address_(NULL), size_(0) {
DCHECK((alignment % OS::AllocateAlignment()) == 0);
size_t request_size = RoundUp(size + alignment,
static_cast<intptr_t>(OS::AllocateAlignment()));
void* address = ReserveRegion(request_size);
if (address == NULL) return;
uint8_t* base = RoundUp(static_cast<uint8_t*>(address), alignment);
// Try reducing the size by freeing and then reallocating a specific area.
bool result = ReleaseRegion(address, request_size);
USE(result);
DCHECK(result);
address = VirtualAlloc(base, size, MEM_RESERVE, PAGE_NOACCESS);
if (address != NULL) {
request_size = size;
DCHECK(base == static_cast<uint8_t*>(address));
} else {
// Resizing failed, just go with a bigger area.
address = ReserveRegion(request_size);
if (address == NULL) return;
}
address_ = address;
size_ = request_size;
}
VirtualMemory::~VirtualMemory() {
if (IsReserved()) {
bool result = ReleaseRegion(address(), size());
DCHECK(result);
USE(result);
}
}
bool VirtualMemory::IsReserved() {
return address_ != NULL;
}
void VirtualMemory::Reset() {
address_ = NULL;
size_ = 0;
}
bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
return CommitRegion(address, size, is_executable);
}
bool VirtualMemory::Uncommit(void* address, size_t size) {
DCHECK(IsReserved());
return UncommitRegion(address, size);
}
bool VirtualMemory::Guard(void* address) {
if (NULL == VirtualAlloc(address,
OS::CommitPageSize(),
MEM_COMMIT,
PAGE_NOACCESS)) {
return false;
}
return true;
}
void* VirtualMemory::ReserveRegion(size_t size) {
return RandomizedVirtualAlloc(size, MEM_RESERVE, PAGE_NOACCESS);
}
bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
int prot = is_executable ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE;
if (NULL == VirtualAlloc(base, size, MEM_COMMIT, prot)) {
return false;
}
return true;
}
bool VirtualMemory::UncommitRegion(void* base, size_t size) {
return VirtualFree(base, size, MEM_DECOMMIT) != 0;
}
bool VirtualMemory::ReleaseRegion(void* base, size_t size) {
return VirtualFree(base, 0, MEM_RELEASE) != 0;
}
bool VirtualMemory::HasLazyCommits() {
// TODO(alph): implement for the platform.
return false;
}
// ----------------------------------------------------------------------------
// Win32 thread support.
// Definition of invalid thread handle and id.
static const HANDLE kNoThread = INVALID_HANDLE_VALUE;
// Entry point for threads. The supplied argument is a pointer to the thread
// object. The entry function dispatches to the run method in the thread
// object. It is important that this function has __stdcall calling
// convention.
static unsigned int __stdcall ThreadEntry(void* arg) {
Thread* thread = reinterpret_cast<Thread*>(arg);
thread->NotifyStartedAndRun();
return 0;
}
class Thread::PlatformData {
public:
explicit PlatformData(HANDLE thread) : thread_(thread) {}
HANDLE thread_;
unsigned thread_id_;
};
// Initialize a Win32 thread object. The thread has an invalid thread
// handle until it is started.
Thread::Thread(const Options& options)
: stack_size_(options.stack_size()),
start_semaphore_(NULL) {
data_ = new PlatformData(kNoThread);
set_name(options.name());
}
void Thread::set_name(const char* name) {
OS::StrNCpy(name_, sizeof(name_), name, strlen(name));
name_[sizeof(name_) - 1] = '\0';
}
// Close our own handle for the thread.
Thread::~Thread() {
if (data_->thread_ != kNoThread) CloseHandle(data_->thread_);
delete data_;
}
// Create a new thread. It is important to use _beginthreadex() instead of
// the Win32 function CreateThread(), because the CreateThread() does not
// initialize thread specific structures in the C runtime library.
void Thread::Start() {
data_->thread_ = reinterpret_cast<HANDLE>(
_beginthreadex(NULL,
static_cast<unsigned>(stack_size_),
ThreadEntry,
this,
0,
&data_->thread_id_));
}
// Wait for thread to terminate.
void Thread::Join() {
if (data_->thread_id_ != GetCurrentThreadId()) {
WaitForSingleObject(data_->thread_, INFINITE);
}
}
Thread::LocalStorageKey Thread::CreateThreadLocalKey() {
DWORD result = TlsAlloc();
DCHECK(result != TLS_OUT_OF_INDEXES);
return static_cast<LocalStorageKey>(result);
}
void Thread::DeleteThreadLocalKey(LocalStorageKey key) {
BOOL result = TlsFree(static_cast<DWORD>(key));
USE(result);
DCHECK(result);
}
void* Thread::GetThreadLocal(LocalStorageKey key) {
return TlsGetValue(static_cast<DWORD>(key));
}
void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
BOOL result = TlsSetValue(static_cast<DWORD>(key), value);
USE(result);
DCHECK(result);
}
} // namespace base
} // namespace v8
| [
"22249030@qq.com"
] | 22249030@qq.com |
9a7d8df9234b46c619605fe60471f0cd78c62e1c | 08cbeb3db9317e892dc3ec683e4fbf9c3b0e86ac | /agc/041/a.cpp | 5881d19fcb3bd94bd24b52759150367a2ce99768 | [] | no_license | wonda-tea-coffee/atcoder | 0b7a8907d6b859e7b65bbf2829fb861e080e671a | 5282f9915da773df3fd27c8570690d912b0bbd90 | refs/heads/master | 2020-12-21T09:57:41.187968 | 2020-04-19T12:33:48 | 2020-05-02T14:49:48 | 236,391,204 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | cpp | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <ctime>
#include <cstring>
#include <functional>
#include <iostream>
#include <iomanip>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <regex>
#include <vector>
#define fix(n) cout<<fixed<<setprecision(n)
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define sort(a) sort((a).begin(), (a).end())
#define uniq(a) sort(a);(a).erase(unique((a).begin(), (a).end()), (a).end())
#define reverse(a) reverse((a).begin(), (a).end())
#define ctos(c) string(1, (c))
#define out(d) cout << (d)
#define outl(d) std::cout<<(d)<<"\n"
#define YES() cout << "YES" << endl
#define NO() cout << "NO" << endl
#define Yes() cout << "Yes" << endl
#define No() cout << "No" << endl
#define ceil(x, y) ((x + y - 1) / (y))
#define debug(x) cerr << #x << ": " << (x) << '\n'
#define debug2(x, y) cerr << #x << ": " << (x) << ", " << #y << ": " << (y) << '\n'
#define debug3(x, y, z) cerr << #x << ": " << (x) << ", " << #y << ": " << (y) << ", " << #z << ": " << (z) << '\n'
#define dbg(v) for (size_t _ = 0; _ < v.size(); ++_){ cerr << #v << "[" << _ << "] : " << v[_] << '\n'; }
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
const ll MOD = 1000000007; // 10^9 + 7
void solve() {
ll n, a, b; cin >> n >> a >> b;
if ((b - a) % 2 == 0) outl((b - a) / 2);
else outl(min((a + b - 1) / 2, n - (a + b - 1) / 2));
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
srand((unsigned)time(NULL));
fix(12);
solve();
}
| [
"rikita.ishikawa@crowdworks.co.jp"
] | rikita.ishikawa@crowdworks.co.jp |
763a9f5fe4cf941b0bef6665c7846f89534e9d2c | adce6ec37a3bd41b6b26246615bceace9580a31b | /Binary_array_sorting.cpp | af6d630df3938e855327d0e7991ee3bf412b8c44 | [] | no_license | shivamkasat/Placement_Preparation_GFG | 8b2b2ad79ef2552bd5d4976b998239dd2cfb72eb | e7097ab03b2d86508476a831858b22840c30c861 | refs/heads/master | 2020-09-27T10:47:35.342988 | 2020-08-15T13:32:49 | 2020-08-15T13:32:49 | 226,497,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | #include <bits/stdc++.h>
using namespace std;
void swap(int &n1, int &n2)
{
int temp;
temp = n1;
n1 = n2;
n2 = temp;
}
int main()
{
int test;
cin>>test;
while (test > 0) {
int n;
cin>>n;
vector < int > nums(n, 0);
for (int i = 0; i < nums.size(); i++) {
cin>>nums[i];
}
int i = 0;
int j = nums.size() - 1;
while (i < j) {
while (nums[i] != 1 && i < j) {
i++;
}
while (nums[j] != 0 && j > i) {
j--;
}
swap(nums[i], nums[j]);
i++;
j--;
}
for (int i = 0; i < nums.size(); i++) {
printf("%d ", nums[i]);
}
test--;
}
return 0;
}
| [
"shivamkasatt@gmail.com"
] | shivamkasatt@gmail.com |
14ef77ae4de93f42b5d1ec9e32a743a12204a503 | 62e45e9478a5e5d9ec293916d9b549de663aba02 | /EGP-310/section03/burnett.jordan/snek/level.h | e6753f9d92648111ab2e6c725331e8fcf38e39b9 | [] | no_license | jburn7/Game-Programming-Projects | 88ea9a0978755019e5a81fb1d26078f32796db47 | 5eeca67d389f82c3a2355273b2d0bc3e46e6bd61 | refs/heads/master | 2020-08-31T02:07:19.287881 | 2019-10-30T14:57:20 | 2019-10-30T14:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | h | #pragma once
#include <string>
#include <vector>
#include <fstream>
#include "unit.h"
#include "EventSystem.h"
#include "wall.h"
#include "SnakeIncrementPowerUp.h"
#include "scorePowerUp.h"
#include "speedPowerUp.h"
#include "unitAddEvent.h"
#include "sprite.h"
#include "jsonData.h"
class Level
{
friend class LevelManager;
public:
Level(std::string &filename, int levelNumber);
~Level();
void spawnFood();
void update(double timeElapsed);
//getters
int getFoodScore(){ return mFoodScore; }
int getScorePowerupScore(){ return mScorePowerupScore; }
int getSpeedScore(){ return mSpeedScore; }
std::string &getLevelString(){ return mLevelString; }
Vector2D &getSnakeSpawn(){ return mSnakeSpawn; }
private:
void addItemSpawn(int x, int y);
void addSnake(int x, int y);
void addWall(int x, int y);
void load();
void spawnItem(Unit *item);
int mTileSize; //width/height of walls
int mLevelNumber;
std::string mFilename;
int mItemFrequency;
int mFoodScore;
int mScorePowerupScore;
int mSpeedScore;
int mTargetSegments; //when snake eats this many food pieces, increment level
std::string mLevelString;
Vector2D mSnakeSpawn;
std::vector<Vector2D> mItemSpawns;
Snake *mpSnake; //for spawning items without spawning on top of snake
}; | [
"jleeburnett@gmail.com"
] | jleeburnett@gmail.com |
fa167006a9ffacc7ca3c5c61cef14ce33ee69531 | 5095bbe94f3af8dc3b14a331519cfee887f4c07e | /howwet/source/rainfall/TRainfallForm.cpp | 5d2bd84bd65eac2e02606c114180dc6dbc3db905 | [] | no_license | sativa/apsim_development | efc2b584459b43c89e841abf93830db8d523b07a | a90ffef3b4ed8a7d0cce1c169c65364be6e93797 | refs/heads/master | 2020-12-24T06:53:59.364336 | 2008-09-17T05:31:07 | 2008-09-17T05:31:07 | 64,154,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,507 | cpp | //---------------------------------------------------------------------------
#include <general\pch.h>
#include <vcl.h>
#pragma hdrstop
#include "TRainfallForm.h"
#include <ApsimShared\ApsimDataFile.h>
#include <ApsimShared\ApsimDataFileWriter.h>
#include <boost\lexical_cast.hpp>
#include <general\date_functions.h>
#include <general\string_functions.h>
using namespace boost::gregorian;
using namespace boost;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "Planner"
#pragma link "AdvGrid"
#pragma link "BaseGrid"
#pragma link "AdvEdBtn"
#pragma link "AdvEdit"
#pragma link "AdvFileNameEdit"
#pragma resource "*.dfm"
TRainfallForm *RainfallForm;
//---------------------------------------------------------------------------
__fastcall TRainfallForm::TRainfallForm(TComponent* Owner)
: TForm(Owner)
{
dirty = false;
clearingCells = false;
}
//---------------------------------------------------------------------------
// setup the form.
//---------------------------------------------------------------------------
void TRainfallForm::setup(const std::string& fileName)
{
clear();
open(fileName);
}
//---------------------------------------------------------------------------
// User has close the form - save if necessary.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::FormClose(TObject *Sender,
TCloseAction &Action)
{
saveIfNecessary();
}
//---------------------------------------------------------------------------
// User has changed something in the grid - signal data is dirty.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::gridCellsChanged(TObject *Sender, TRect &R)
{
if (!clearingCells)
dirty = true;
}
//---------------------------------------------------------------------------
// Clear the grid back to default values.
//---------------------------------------------------------------------------
void TRainfallForm::clear(void)
{
clearingCells = true;
rainfall.erase(rainfall.begin(), rainfall.end());
grid->ClearRect(1, 1, grid->ColCount-1, grid->RowCount-1);
clearingCells = false;
fileName = "";
Caption = "Rainfall";
dirty = false;
}
//---------------------------------------------------------------------------
// open a met file
//---------------------------------------------------------------------------
void TRainfallForm::open(const std::string& file)
{
TCursor savedCursor = Screen->Cursor;
Screen->Cursor = savedCursor;
ApsimDataFile metFile;
try
{
metFile.open(file);
date startDate(metFile.getDate());
metFile.last();
date endDate(metFile.getDate());
// find rainfall column.
ApsimDataFile::iterator rainI = find(metFile.fieldsBegin(),
metFile.fieldsEnd(),
"rain");
if (rainI == metFile.fieldsEnd())
throw runtime_error("Cannot find a rainfall column in file " + file);
clear();
// fill grid with rainfall values.
metFile.first();
date currentDate(startDate);
while (currentDate <= endDate)
{
string rainString = rainI->values[0];
float rain = lexical_cast<float>(rainString);
if (rain != 0.0)
rainfall.insert(make_pair(currentDate, rain));
metFile.next();
currentDate = currentDate + date_duration(1);
}
populateGrid(startDate.year());
dirty = false;
fileName = file;
Caption = string("Rainfall - " + fileName).c_str();
YearUpDown->Position = startDate.year();
}
catch (const exception& err)
{
MessageBox(NULL, err.what(), "Error", MB_ICONSTOP | MB_OK);
}
metFile.close();
Screen->Cursor = savedCursor;
}
//---------------------------------------------------------------------------
// populate rainfall grid.
//---------------------------------------------------------------------------
void TRainfallForm::populateGrid(int year)
{
grid->ClearNormalCells();
gridYear = year;
Rainfall::iterator rainfallI = rainfall.begin();
while (rainfallI != rainfall.end() && rainfallI->first.year() < gridYear)
rainfallI++;
while (rainfallI != rainfall.end() && rainfallI->first.year() == gridYear)
{
date currentDate = rainfallI->first;
float rain = rainfallI->second;
int col = rainfallI->first.month();
int row = rainfallI->first.day();
grid->Floats[col][row] = rain;
rainfallI++;
}
// Put monthly sums of rainfall in footer.
float sum = 0.0;
for (int col = 1; col != grid->ColCount; col++)
{
grid->Floats[col][grid->RowCount - 1] = grid->ColumnSum(col,1,grid->RowCount - 2);
sum += grid->ColumnSum(col,1,grid->RowCount - 2);
}
TotalRainLabel->Caption = "Total rain: " + AnsiString(ftoa(sum, 1).c_str()) + "mm";
dirty = false;
}
//---------------------------------------------------------------------------
// save rainfall grid.
//---------------------------------------------------------------------------
void TRainfallForm::saveGrid(void)
{
if (dirty)
{
date startDate = date(gridYear, 1, 1);
date endDate = date(gridYear, 12, 31);
date currentDate = startDate;
for (unsigned col = 1; col <= 12; col++)
for (unsigned row = 1; row <= 31 && !isCellFixed(col, row); row++)
{
rainfall.erase(currentDate);
if (grid->Cells[col][row] != "")
rainfall.insert(make_pair(currentDate, grid->Floats[col][row]));
currentDate = currentDate + date_duration(1);
}
}
}
//---------------------------------------------------------------------------
// Save the data if it is dirty.
//---------------------------------------------------------------------------
void TRainfallForm::saveIfNecessary(void)
{
if (dirty)
{
if (MessageBox(NULL, "Do you want to save changes?", "Question", MB_ICONQUESTION | MB_YESNO)
== IDYES)
SaveButtonClick(NULL);
}
}
//---------------------------------------------------------------------------
// save all data in grid back to file.
//---------------------------------------------------------------------------
void TRainfallForm::save(void)
{
TCursor savedCursor = Screen->Cursor;
Screen->Cursor = crHourGlass;
try
{
saveGrid();
ApsimDataFileWriter writer;
writer.open(fileName, "weather.met.weather");
date startDate = rainfall.begin()->first;
startDate = date(startDate.year(), startDate.month(), 1);
date endDate = (--rainfall.end())->first;
endDate = date(endDate.year(), endDate.month(),
gregorian_calendar::end_of_month_day(endDate.year(), endDate.month()));
date previousDate = startDate;
for (Rainfall::iterator rainfallI = rainfall.begin();
rainfallI != rainfall.end();
rainfallI++)
{
date currentDate = rainfallI->first;
float rain = rainfallI->second;
for (date d = previousDate; d != currentDate; d = d + date_duration(1))
{
ApsimDataFileWriter::Values values;
values.push_back(Value("rain", "(mm)", "0.0", ""));
writer.addTemporalRecord(d, values);
}
ApsimDataFileWriter::Values values;
values.push_back(Value("rain", "(mm)", lexical_cast<string>(rain), ""));
writer.addTemporalRecord(currentDate, values);
previousDate = currentDate + date_duration(1);
}
Caption = string("Rainfall - " + fileName).c_str();
writer.close();
}
catch (const exception& err)
{
ShowMessage(err.what());
}
Screen->Cursor = savedCursor;
}
//---------------------------------------------------------------------------
// User has clicked new.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::NewButtonClick(TObject *Sender)
{
saveIfNecessary();
clear();
}
//---------------------------------------------------------------------------
// User has clicked open
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::OpenButtonClick(TObject *Sender)
{
if (OpenDialog->Execute())
{
saveIfNecessary();
open(OpenDialog->FileName.c_str());
}
}
//---------------------------------------------------------------------------
// user has clicked save.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::SaveButtonClick(TObject *Sender)
{
if (fileName == "")
{
if (SaveDialog->Execute())
fileName = SaveDialog->FileName.c_str();
else
return;
}
save();
}
//---------------------------------------------------------------------------
// user has clicked on exit.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::ExitButtonClick(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
// return true if cell is fixed.
//---------------------------------------------------------------------------
bool TRainfallForm::isCellFixed(int ACol, int ARow)
{
unsigned year = YearUpDown->Position;
unsigned month = ACol;
return (ARow > gregorian_calendar::end_of_month_day(year, month));
}
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::gridIsFixedCell(TObject *Sender, int ARow,
int ACol, bool &IsFixed)
{
IsFixed = isCellFixed(ACol, ARow);
}
//---------------------------------------------------------------------------
// User has changed the year combo box - save grid contents.
//---------------------------------------------------------------------------
void __fastcall TRainfallForm::YearUpDownChangingEx(TObject *Sender,
bool &AllowChange, short NewValue, TUpDownDirection Direction)
{
saveGrid();
populateGrid(NewValue);
}
//---------------------------------------------------------------------------
| [
"hol353@8bb03f63-af10-0410-889a-a89e84ef1bc8"
] | hol353@8bb03f63-af10-0410-889a-a89e84ef1bc8 |
16f8773cdd5db3bde949064041c2b3ab896dffdc | f39316b4b6d7874d4cb92f741489b63958a3ee5f | /test/test_tc_mapper.cc | de0b0b45f185c420ac47e50f095c23816368cb89 | [
"Apache-2.0"
] | permissive | PhenixI/TensorComprehensions | 2f7b26c54c42cade9a5147d976a24a864a1a255c | 9a9fcf5f79454a9cbae079394a4c47c9255c13f3 | refs/heads/master | 2020-03-07T22:45:58.666068 | 2018-04-02T13:00:10 | 2018-04-02T13:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,323 | cc | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <gtest/gtest.h>
#include <iostream>
#include <string>
#include <ATen/ATen.h>
#include "tc/aten/aten_compiler.h"
#include "tc/core/cuda/cuda.h"
#include "tc/core/cuda/cuda_compilation_cache.h"
#include "tc/core/cuda/cuda_tc_executor.h"
#include "tc/core/scope_guard.h"
#include "test_harness_aten_cuda.h"
using namespace std;
using OutputsAndCuda = std::pair<std::vector<at::Tensor>, std::string>;
struct TcMapperTest : public ::testing::Test {
uint32_t M = 165, N = 197, K = 227;
int B = 100, D = 1000;
int C1 = 512, C2 = 8, C3 = 2, H = 28, W = 28;
template <typename CheckFunction>
OutputsAndCuda Check(
const std::string& tc,
const std::string& name,
const tc::CudaMappingOptions& mappingOptions,
const std::vector<at::Tensor> inputs,
CheckFunction checkFun) {
tc::CudaCache::enableCache();
std::vector<at::Tensor> outputs;
tc::ATenCompilationUnit<tc::CudaTcExecutor> atCompl;
atCompl.define(tc);
auto handle = atCompl.compile(name, inputs, mappingOptions);
atCompl.run(name, inputs, outputs, handle);
checkFun(inputs, outputs);
auto inputDLTensorsPair = tc::toConstDlpackTensors(inputs);
auto outputDLTensorsPair = tc::toConstDlpackTensors(outputs);
tc::ScopeGuard sg([&]() {
tc::deleteDlmTensors(inputDLTensorsPair.second);
tc::deleteDlmTensors(outputDLTensorsPair.second);
});
auto cached = tc::CudaCache::getCache()->retrieveKernel(
name,
mappingOptions,
inputDLTensorsPair.first,
outputDLTensorsPair.first);
EXPECT_FALSE(cached == nullptr);
return std::make_pair(std::move(outputs), std::move(cached->source));
}
};
///////////////////////////////////////////////////////////////////////////////
// 1-D reduction
// C +=! A(j)
///////////////////////////////////////////////////////////////////////////////
constexpr auto reduction1DTCs = {
R"TC(
def sum1D(float(M) A) -> (C) {
C(0) +=! A(j) where i in 0:2
}
)TC",
R"TC(
def sum1D(float(M) A) -> (C) {
C() +=! A(j)
}
)TC",
R"TC(
def sum1D(float(M) A) -> (C) {
C +=! A(j)
}
)TC",
R"TC(
def sum1D(float(M) A) -> (C) {
C(i) +=! A(j) where i in 0:1
}
)TC"};
struct TcMapper1DReductionTest : public TcMapperTest {
using TcMapperTest::Check;
using TcMapperTest::M;
OutputsAndCuda Check(
at::Tensor A,
const tc::CudaMappingOptions& mappingOptions,
uint32_t version = 0) {
CHECK_GE(3, version) << "Versions [0-3] supported, asked for: " << version;
auto refOutput = A.sum();
auto checkFun = [&, refOutput](
const std::vector<at::Tensor>& inputs,
const std::vector<at::Tensor>& outputs) {
TC_CUDA_RUNTIMEAPI_ENFORCE(cudaDeviceSynchronize());
at::Tensor diff = outputs[0].sub(refOutput);
return checkRtol(diff, inputs, M, 5e-7);
};
return Check(
*(reduction1DTCs.begin() + version),
"sum1D",
mappingOptions,
{A},
checkFun);
}
};
TEST_F(TcMapper1DReductionTest, DISABLED_Reduction1Dv0) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(0)
.mapToBlocks({})
.mapToThreads({16});
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M});
Check(A, mappingOptions, 0);
}
TEST_F(TcMapper1DReductionTest, DISABLED_Reduction1Dv1) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(0)
.mapToBlocks({})
.mapToThreads({16});
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M});
Check(A, mappingOptions, 1);
}
TEST_F(TcMapper1DReductionTest, DISABLED_Reduction1Dv2) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(0)
.mapToBlocks({})
.mapToThreads({16});
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M});
Check(A, mappingOptions, 2);
}
TEST_F(TcMapper1DReductionTest, DISABLED_Reduction1Dv3) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(0)
.mapToBlocks({})
.mapToThreads({16});
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M});
Check(A, mappingOptions, 3);
}
///////////////////////////////////////////////////////////////////////////////
// 2-D reduction
// C(i) +=! A(i, j)
///////////////////////////////////////////////////////////////////////////////
struct TcMapper2DReductionTest : public TcMapperTest {
using TcMapperTest::Check;
using TcMapperTest::M;
using TcMapperTest::N;
OutputsAndCuda Check(
at::Tensor A,
const tc::CudaMappingOptions& mappingOptions,
bool skipCheck = false) {
string tc = R"TC(
def sum2D(float(M, N) A) -> (C) {
C(i) +=! A(i, j)
}
)TC";
auto refOutput = A.sum(1);
auto checkFun = [&, refOutput](
const std::vector<at::Tensor>& inputs,
const std::vector<at::Tensor>& outputs) {
TC_CUDA_RUNTIMEAPI_ENFORCE(cudaDeviceSynchronize());
at::Tensor diff = outputs[0].sub(refOutput);
return checkRtol(diff, inputs, N, 5e-7);
};
auto noCheckFun = [](const std::vector<at::Tensor>& inputs,
std::vector<at::Tensor>& outputs) { return true; };
return skipCheck ? Check(tc, "sum2D", mappingOptions, {A}, noCheckFun)
: Check(tc, "sum2D", mappingOptions, {A}, checkFun);
}
};
TEST_F(TcMapper2DReductionTest, Reduction2D1) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(32, 32)
.mapToBlocks({1, 1})
.mapToThreads({32})
.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M, N});
Check(A, mappingOptions);
}
struct TcMapper2DReductionStressTest : public TcMapper2DReductionTest {
using TcMapper2DReductionTest::M;
using TcMapper2DReductionTest::N;
OutputsAndCuda
Check(size_t tix, size_t tiy, bool skipCheck = false, bool ones = false) {
M = tiy;
N = tix;
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(tiy, tix)
.mapToBlocks({1})
.mapToThreads({tix, tiy})
.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = ones ? at::CUDA(at::kFloat).ones({M, N})
: at::CUDA(at::kFloat).rand({M, N});
return TcMapper2DReductionTest::Check(A, mappingOptions, skipCheck);
}
};
TEST_F(TcMapper2DReductionStressTest, ThreadIdy1) {
for (int i : {1, 2, 4, 7, 8, 11, 15, 17, 24, 32, 35, 42, 64, 128, 130}) {
auto res = Check(i, 1);
if (i > 1) {
std::string expected = std::string("__tc::CubReduceAlongX<") +
std::to_string(i) + std::string(",1,1,__tc::ReductionOp::Sum>");
ASSERT_NE(std::string::npos, res.second.find(expected))
<< "In resulting code:\n"
<< res.second << "\ncould not find: " << expected;
} else {
std::string expected = "__tc::CubReduceAlongX<";
ASSERT_EQ(std::string::npos, res.second.find(expected))
<< "In resulting code:\n"
<< res.second << "\nfound unexpected: " << expected;
}
}
}
TEST_F(TcMapper2DReductionStressTest, 4x7) {
Check(4, 7);
}
TEST_F(TcMapper2DReductionStressTest, 11x5) {
Check(11, 5);
}
TEST_F(TcMapper2DReductionStressTest, 16x9) {
Check(16, 9);
}
TEST_F(TcMapper2DReductionStressTest, 8x11) {
Check(8, 11);
}
TEST_F(TcMapper2DReductionStressTest, 11x8) {
Check(11, 8);
}
TEST_F(TcMapper2DReductionStressTest, 111x7) {
Check(111, 7);
}
TEST_F(TcMapper2DReductionStressTest, 128x7) {
Check(128, 7);
}
TEST_F(TcMapper2DReductionStressTest, 7x128) {
Check(7, 128);
}
// Run this iterative example to find new cases
TEST_F(TcMapper2DReductionStressTest, Iterate) {
for (auto tix : {1, 2, 5, 8, 11}) {
for (auto tiy : {3, 5, 11}) {
Check(tix, tiy);
}
}
}
///////////////////////////////////////////////////////////////////////////////
// Matmul tests
// C(i, j) += A(i, k) * B(k, j)
///////////////////////////////////////////////////////////////////////////////
struct TcMapperMatmulTest : public TcMapperTest {
using TcMapperTest::Check;
using TcMapperTest::K;
using TcMapperTest::M;
using TcMapperTest::N;
OutputsAndCuda Check(
at::Tensor A,
at::Tensor B,
const tc::CudaMappingOptions& mappingOptions) {
string tc = R"TC(
def matmul(float(M, K) A, float(K, N) B) -> (C) {
C(i, j) +=! A(i, k) * B(k, j)
}
)TC";
auto refOutput = A.mm(B);
auto checkFun = [&, refOutput](
const std::vector<at::Tensor>& inputs,
const std::vector<at::Tensor>& outputs) {
TC_CUDA_RUNTIMEAPI_ENFORCE(cudaDeviceSynchronize());
at::Tensor diff = outputs[0].sub(refOutput);
return checkRtol(diff, inputs, K, 5e-7);
};
return Check(tc, "matmul", mappingOptions, {A, B}, checkFun);
}
};
TEST_F(TcMapperMatmulTest, Matmul1DSchedule) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.fixParametersBeforeScheduling(true)
.tile(1, 1, K)
.mapToBlocks({M, N})
.mapToThreads({std::min(32u, K)})
.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M, K});
at::Tensor B = at::CUDA(at::kFloat).rand({K, N});
Check(A, B, mappingOptions);
}
TEST_F(TcMapperMatmulTest, Matmul1DScheduleMultipleOccurrence) {
// Without full specialization, AST generator will duplicate the first
// statement C[i][j] = 0.0f (for K > 0 and K < 0). The codegen must be able
// to handle the same statement appearing in different contexts.
auto mappingOptions = tc::CudaMappingOptions::makeMlpCudaMappingOptions()
.fixParametersBeforeScheduling(false)
.tile(32, 32, 32)
.mapToBlocks({8})
.mapToThreads({16})
.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M, K});
at::Tensor B = at::CUDA(at::kFloat).rand({K, N});
Check(A, B, mappingOptions);
}
TEST_F(TcMapperMatmulTest, Matmul3DSchedule) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.fixParametersBeforeScheduling(true)
.mapToBlocks({1, 1, 1})
.mapToThreads({4, 1, 1});
mappingOptions.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M, K});
at::Tensor B = at::CUDA(at::kFloat).rand({K, N});
Check(A, B, mappingOptions);
}
TEST_F(TcMapperMatmulTest, Matmul3DScheduleMultipleOccurrence) {
auto mappingOptions = tc::CudaMappingOptions::makeMlpCudaMappingOptions()
.tile(32, 32, 32)
.mapToBlocks({8})
.mapToThreads({16})
.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({M, K});
at::Tensor B = at::CUDA(at::kFloat).rand({K, N});
Check(A, B, mappingOptions);
}
///////////////////////////////////////////////////////////////////////////////
// Batch Matmul tests
// Z(b, n, k) += X(b, n, mm) * Y(b, mm, k)
///////////////////////////////////////////////////////////////////////////////
struct TcMapperBatchMatmulTest : public TcMapperTest {
using TcMapperTest::Check;
using TcMapperTest::K;
using TcMapperTest::M;
using TcMapperTest::N;
OutputsAndCuda Check(
at::Tensor A,
at::Tensor B,
const tc::CudaMappingOptions& mappingOptions) {
string tc = R"TC(
def batch_matmul(float(B, N, M) X, float(B, M, K) Y) -> (Z) {
Z(b, n, k) +=! X(b, n, mm) * Y(b, mm, k)
}
)TC";
auto refOutput = A.bmm(B);
auto checkFun = [&, refOutput](
const std::vector<at::Tensor>& inputs,
const std::vector<at::Tensor>& outputs) {
TC_CUDA_RUNTIMEAPI_ENFORCE(cudaDeviceSynchronize());
at::Tensor diff = outputs[0].sub(refOutput);
return checkRtol(diff, inputs, K, 5e-7);
};
return Check(tc, "batch_matmul", mappingOptions, {A, B}, checkFun);
}
};
TEST_F(TcMapperBatchMatmulTest, BatchMatmul) {
auto mappingOptions = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.tile(1)
.mapToThreads({123})
.mapToBlocks({50})
.usePrivateMemory(true)
.useSharedMemory(true);
mappingOptions.matchLibraryCalls(true);
LOG(INFO) << mappingOptions << endl;
at::Tensor A = at::CUDA(at::kFloat).rand({50, 26, 72});
at::Tensor B = at::CUDA(at::kFloat).rand({50, 72, 26});
Check(A, B, mappingOptions);
}
///////////////////////////////////////////////////////////////////////////////
// Hadamard tests
// Z(b, d) = U(b, d) * V(b, d) * W(b, d)
///////////////////////////////////////////////////////////////////////////////
TEST_F(TcMapperTest, BatchTripleHadamard) {
at::Tensor U = at::CUDA(at::kFloat).rand({B, D});
at::Tensor V = at::CUDA(at::kFloat).rand({B, D});
at::Tensor W = at::CUDA(at::kFloat).rand({B, D});
std::vector<at::Tensor> inputs = {U, V, W};
std::vector<at::Tensor> outputs;
static constexpr auto TC = R"TC(
def batch_triple_hadamard(float(B, D) U,
float(B, D) V,
float(B, D) W)
-> (Z)
{
Z(b, d) = U(b, d) * V(b, d) * W(b, d)
}
)TC";
auto checkFun = [=](const std::vector<at::Tensor>& inputs,
std::vector<at::Tensor>& outputs) {
at::Tensor diff = outputs[0].sub(inputs[0] * inputs[1] * inputs[2]);
checkRtol(diff, inputs, D);
};
Check(
TC,
"batch_triple_hadamard",
tc::CudaMappingOptions::makeNaiveCudaMappingOptions(),
inputs,
checkFun);
}
TEST_F(TcMapperTest, TensorDot) {
N = 32;
at::Tensor I0 = at::CUDA(at::kFloat).rand({N, C1, C2, H, W});
at::Tensor I1 = at::CUDA(at::kFloat).rand({N, C2, C3, H, W});
std::vector<at::Tensor> inputs = {I0, I1};
std::vector<at::Tensor> outputs;
static constexpr auto TC = R"TC(
def tensordot(float(N, C1, C2, H, W) I0,
float(N, C2, C3, H, W) I1)
-> (O)
{
O(n, c1, c3, h, w) +=! I0(n, c1, c2, h, w) * I1(n, c2, c3, h, w)
}
)TC";
// No defaults for this case
auto checkFun = [](const std::vector<at::Tensor>& inputs,
std::vector<at::Tensor>& outputs) { return true; };
auto options = tc::CudaMappingOptions::makeNaiveCudaMappingOptions();
auto name = "tensordot";
Check(TC, name, options, inputs, checkFun);
::benchmarkKernelOptions(TC, name, inputs, options);
}
TEST_F(TcMapperTest, LUT) {
const int B = 17, N = 82, R = 22;
at::Tensor LUT = at::CUDA(at::kFloat).rand({B, R});
at::Tensor I =
at::CUDA(at::kFloat).rand({B, N}).mul_(B).floor_().toType(at::kInt);
std::vector<at::Tensor> inputs = {LUT, I};
std::vector<at::Tensor> outputs;
static constexpr auto TC = R"TC(
def fun(float(B, R) LUT, int32(B, N) I) -> (O) {
O(b, n) +=! LUT(I(b, n), r)
}
)TC";
auto checkFun = [=](const std::vector<at::Tensor>& inputs,
std::vector<at::Tensor>& outputs) {
at::Tensor LUT = inputs[0].toBackend(at::kCPU);
at::Tensor I = inputs[1].toBackend(at::kCPU);
at::Tensor O = outputs[0].toBackend(at::kCPU);
auto LUTAccessor = LUT.accessor<float, 2>();
auto IAccessor = I.accessor<int, 2>();
auto OAccessor = O.accessor<float, 2>();
for (int b = 0; b < B; b++) {
for (int n = 0; n < N; n++) {
float correct = 0;
for (int r = 0; r < R; r++) {
int idx = IAccessor[b][n];
CHECK(idx >= 0 && idx < B);
correct += LUTAccessor[idx][r];
}
OAccessor[b][n] -= correct;
}
}
checkRtol(O, inputs, 5e-7);
};
Check(
TC,
"fun",
tc::CudaMappingOptions::makeNaiveCudaMappingOptions(),
inputs,
checkFun);
}
TEST_F(TcMapperTest, DISABLED_SpatialBatchNormalization) {
N = 32;
at::Tensor eps = at::CUDA(at::kFloat).rand({});
eps[0] = 1.0f;
at::Tensor momentum = at::CUDA(at::kFloat).rand({});
momentum[0] = 1.0;
at::Tensor I = at::CUDA(at::kFloat).rand({N, C2, H, W});
at::Tensor rMeanIn = at::CUDA(at::kFloat).rand({C2});
at::Tensor rVarIn = at::CUDA(at::kFloat).rand({C2});
std::vector<at::Tensor> inputs = {momentum, eps, I, rMeanIn, rVarIn};
std::vector<at::Tensor> outputs;
static constexpr auto TC = R"TC(
def spatial_batch_norm(
float momentum, float eps,
float(N,C,H,W) I, float(C) rMeanIn, float(C) rVarIn)
-> (O, rMeanOut, rVarOut, mean, centered, variance, expectedVariance, normalizedOut)
{
mean(c) +=! I(nn, c, hh, ww)
mean(c) = mean(c) / (N * H * W)
rMeanOut(c) = (1 - momentum) * rMeanIn(c) + momentum * mean(c)
centered(n, c, h, w) = I(n, c, h, w) - rMeanOut(c)
variance(n, c, h, w) = centered(n, c, h, w) * centered(n, c, h, w)
expectedVariance(c) +=! (variance(n, c, h, w) + eps) / (N * H * W)
rVarOut(c) = rsqrt(
(1 - momentum) * rVarIn(c) + momentum * expectedVariance(c))
O(n, c, h, w) = centered(n, c, h, w) * rVarOut(c)
normalizedOut(n, c, h, w) = O(n, c, h, w)
})TC";
auto checkFun = [=](const std::vector<at::Tensor>& inputs,
std::vector<at::Tensor>& outputs) {
TC_CUDA_RUNTIMEAPI_ENFORCE(cudaDeviceSynchronize());
double prec = 3e-7;
std::cout << "Checking expected output relative precision @" << prec;
bool training = true;
at::Tensor weight = at::CUDA(at::kFloat).ones({C1});
at::Tensor bias = at::CUDA(at::kFloat).zeros({C1});
auto save_mean = outputs[1].clone().zero_();
auto save_std = outputs[2].clone().zero_();
auto O = at::batch_norm_forward(
I,
weight,
bias,
rMeanIn,
rVarIn,
training,
at::Scalar(momentum).toFloat(),
at::Scalar(eps).toFloat(),
save_mean,
save_std);
auto diff = O.sub(outputs[0]);
checkRtol(diff, inputs, N * H * W, prec);
};
auto name = "spatial_batch_norm";
auto options = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
.outerScheduleFusionStrategy(tc::FusionStrategy::Max)
.intraTileScheduleFusionStrategy(tc::FusionStrategy::Min)
.tile(0)
.mapToBlocks({1})
.mapToThreads({32, 4});
Check(TC, name, options, inputs, checkFun);
::benchmarkKernelOptions(TC, name, inputs, options);
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
::gflags::ParseCommandLineFlags(&argc, &argv, true);
::google::InitGoogleLogging(argv[0]);
setAtenSeed(tc::initRandomSeed(), at::Backend::CUDA);
return RUN_ALL_TESTS();
}
| [
"nicolas.vasilache@gmail.com"
] | nicolas.vasilache@gmail.com |
96e84ea3295bd0090faaf59c77e4b70fcba34b4b | ad273708d98b1f73b3855cc4317bca2e56456d15 | /aws-cpp-sdk-appmesh/include/aws/appmesh/model/VirtualNodeRef.h | 64fc8164efc58dba505cf23334f941f5f567e24a | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | novaquark/aws-sdk-cpp | b390f2e29f86f629f9efcf41c4990169b91f4f47 | a0969508545bec9ae2864c9e1e2bb9aff109f90c | refs/heads/master | 2022-08-28T18:28:12.742810 | 2020-05-27T15:46:18 | 2020-05-27T15:46:18 | 267,351,721 | 1 | 0 | Apache-2.0 | 2020-05-27T15:08:16 | 2020-05-27T15:08:15 | null | UTF-8 | C++ | false | false | 16,022 | h | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#pragma once
#include <aws/appmesh/AppMesh_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppMesh
{
namespace Model
{
/**
* <p>An object that represents a virtual node returned by a list
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/VirtualNodeRef">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API VirtualNodeRef
{
public:
VirtualNodeRef();
VirtualNodeRef(Aws::Utils::Json::JsonView jsonValue);
VirtualNodeRef& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline VirtualNodeRef& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline VirtualNodeRef& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The full Amazon Resource Name (ARN) for the virtual node.</p>
*/
inline VirtualNodeRef& WithArn(const char* value) { SetArn(value); return *this;}
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
inline VirtualNodeRef& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
inline VirtualNodeRef& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
inline VirtualNodeRef& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
inline VirtualNodeRef& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline const Aws::String& GetMeshName() const{ return m_meshName; }
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline VirtualNodeRef& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline VirtualNodeRef& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
/**
* <p>The name of the service mesh that the virtual node resides in.</p>
*/
inline VirtualNodeRef& WithMeshName(const char* value) { SetMeshName(value); return *this;}
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
/**
* <p>The AWS IAM account ID of the service mesh owner. If the account ID is not
* your own, then it's
the ID of the account that shared the mesh
* with your account. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
/**
* <p>The AWS IAM account ID of the resource owner. If the account ID is not your
* own, then it's
the ID of the mesh owner or of another account
* that the mesh is shared with. For more information about mesh sharing, see <a
* href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
* with Shared Meshes</a>.</p>
*/
inline VirtualNodeRef& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
inline long long GetVersion() const{ return m_version; }
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
inline VirtualNodeRef& WithVersion(long long value) { SetVersion(value); return *this;}
/**
* <p>The name of the virtual node.</p>
*/
inline const Aws::String& GetVirtualNodeName() const{ return m_virtualNodeName; }
/**
* <p>The name of the virtual node.</p>
*/
inline bool VirtualNodeNameHasBeenSet() const { return m_virtualNodeNameHasBeenSet; }
/**
* <p>The name of the virtual node.</p>
*/
inline void SetVirtualNodeName(const Aws::String& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = value; }
/**
* <p>The name of the virtual node.</p>
*/
inline void SetVirtualNodeName(Aws::String&& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = std::move(value); }
/**
* <p>The name of the virtual node.</p>
*/
inline void SetVirtualNodeName(const char* value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName.assign(value); }
/**
* <p>The name of the virtual node.</p>
*/
inline VirtualNodeRef& WithVirtualNodeName(const Aws::String& value) { SetVirtualNodeName(value); return *this;}
/**
* <p>The name of the virtual node.</p>
*/
inline VirtualNodeRef& WithVirtualNodeName(Aws::String&& value) { SetVirtualNodeName(std::move(value)); return *this;}
/**
* <p>The name of the virtual node.</p>
*/
inline VirtualNodeRef& WithVirtualNodeName(const char* value) { SetVirtualNodeName(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::String m_meshName;
bool m_meshNameHasBeenSet;
Aws::String m_meshOwner;
bool m_meshOwnerHasBeenSet;
Aws::String m_resourceOwner;
bool m_resourceOwnerHasBeenSet;
long long m_version;
bool m_versionHasBeenSet;
Aws::String m_virtualNodeName;
bool m_virtualNodeNameHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws
| [
"aws-sdk-cpp-automation@github.com"
] | aws-sdk-cpp-automation@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.